/* Scheme 01 customer work surfaces. Original permission/hidden rules win. */
@layer plan01 {
  body.erp-plan01 #customersView [data-plan01-customer-list] {
    min-width: 0 !important; width: 100% !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important;
  }
  body.erp-plan01 #customersView [data-plan01-customer-list] > .panel-header {
    margin: 0 0 4px !important; padding: 0 !important; border: 0 !important;
  }
  body.erp-plan01 #customersView [data-plan01-customer-list] > .panel-header h2 { font-size: 18px !important; line-height: 1.5 !important; color: #172438 !important; }
  body.erp-plan01 #customersView [data-plan01-customer-list] > .panel-header > span { color: #66768c !important; font-size: 12px !important; }
  body.erp-plan01 .plan01-customer-source-caption { margin: 0 0 16px; color: #66768c; font-size: 12px; line-height: 1.6; }
  body.erp-plan01 #customersView #customerFollowQuickFilters {
    display: flex !important; flex-wrap: wrap !important; gap: 8px !important;
    margin: 0 0 16px !important; padding: 0 !important; background: #fff !important; border: 0 !important;
  }
  body.erp-plan01 #customerFollowQuickFilters button { min-height: 39px !important; padding: 8px 18px !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; font-size: 13px !important; box-shadow: none !important; }
  body.erp-plan01 #customerFollowQuickFilters button[aria-pressed="true"] { background: #008575 !important; border-color: #008575 !important; color: #fff !important; }
  body.erp-plan01 #customersView [data-plan01-customer-list] > .toolbar {
    display: grid !important; grid-template-columns: minmax(220px,1.8fr) repeat(3,minmax(130px,1fr)) !important;
    gap: 12px !important; margin: 0 0 16px !important; padding: 0 !important; background: #fff !important; border: 0 !important;
  }
  body.erp-plan01 #customersView [data-plan01-customer-list] :is(input,select) { min-width: 0 !important; width: 100% !important; min-height: 39px !important; height: auto !important; margin: 0 !important; padding: 8px 12px !important; background: #fff !important; border: 1px solid #dce6ee !important; border-radius: 5px !important; color: #172438 !important; font-size: 13px !important; box-shadow: none !important; }
  body.erp-plan01 .plan01-customer-log-filters { display: grid; grid-template-columns: minmax(220px,1.8fr) repeat(2,minmax(160px,1fr)) auto; gap: 12px; align-items: end; margin: 0 0 16px; }
  body.erp-plan01 .plan01-customer-log-filters label { display: grid; gap: 6px; min-width: 0; color: #66768c; font-size: 12px; }
  body.erp-plan01 #customersView [data-plan01-customer-list] > .table-wrap { width: 100% !important; min-width: 0 !important; max-width: 100% !important; overflow-x: auto !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; overscroll-behavior-x: contain; }
  body.erp-plan01 #customersView [data-plan01-customer-list] table { width: 100% !important; min-width: 1060px !important; table-layout: auto !important; border-collapse: collapse !important; }
  body.erp-plan01 #customersView [data-plan01-customer-list] th { height: 43px !important; padding: 10px 12px !important; background: #edf4f7 !important; border: 1px solid #e0e9f0 !important; color: #485b73 !important; font-size: 12px !important; font-weight: 600 !important; white-space: nowrap !important; }
  body.erp-plan01 #customersView [data-plan01-customer-list] td { height: 54px !important; padding: 12px !important; background: #fff !important; border: 1px solid #e7eef3 !important; color: #172438 !important; font-size: 13px !important; line-height: 1.6 !important; vertical-align: middle !important; white-space: normal !important; }
  body.erp-plan01 #customersView [data-plan01-customer-list] tbody tr:hover td { background: #f0fbf7 !important; }
  body.erp-plan01 #customersView [data-plan01-customer-list] td:first-child { min-width: 150px; }
  body.erp-plan01 #customersView #customerFollowUps td:nth-child(6) { min-width: 170px; }
  body.erp-plan01 #customersView [data-plan01-customer-list] td:last-child { min-width: 145px; }
  body.erp-plan01 #customersView [data-plan01-customer-list] tr[data-plan01-page-out="true"] { display: none !important; }
  body.erp-plan01 .plan01-customer-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 20px; color: #66768c; font-size: 12px; }
  body.erp-plan01 .plan01-customer-page-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  body.erp-plan01 .plan01-customer-page-controls label { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; white-space: nowrap; }
  body.erp-plan01 #customersView .plan01-customer-page-controls select { width: 86px !important; }
  body.erp-plan01 #customersView .plan01-customer-page-controls input { width: 58px !important; }
  body.erp-plan01 .plan01-customer-page-index { min-width: 48px; text-align: center; color: #008575; font-variant-numeric: tabular-nums; }
  body.erp-plan01 :is(.plan01-customer-pagination,.plan01-customer-log-filters) button { min-height: 39px !important; padding: 8px 12px !important; border: 1px solid #dce6ee !important; border-radius: 5px !important; background: #fff !important; color: #172438 !important; font-size: 13px !important; box-shadow: none !important; }
  body.erp-plan01 .plan01-customer-pagination button:disabled { color: #94a3b8 !important; background: #f6f9fb !important; cursor: not-allowed; }
  body.erp-plan01 .plan01-customer-filter-empty { border: 1px solid #e0e9f0; border-radius: 5px; padding: 20px; color: #66768c; font-size: 13px; }
  body.erp-plan01 .plan01-customer-aux { border: 1px solid #e0e9f0 !important; border-radius: 5px !important; background: #fff !important; margin: 0 0 16px !important; padding: 0 16px !important; box-shadow: none !important; }
  body.erp-plan01 .plan01-customer-aux > summary { min-height: 44px; padding: 12px 0; color: #485b73; font-size: 13px; cursor: pointer; }
  body.erp-plan01 .plan01-customer-aux > :not(summary) { margin-bottom: 16px !important; }
  body.erp-plan01 #customerHandover > .handover-box { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
  body.erp-plan01 #customersView[data-active-section="customerHandover"] > .section-bar { flex-wrap: wrap !important; }
  body.erp-plan01 #customersView[data-active-section="customerHandover"] > .section-bar > :first-child { flex: 1 1 260px; min-width: 0; }
  body.erp-plan01 #customersView[data-active-section="customerHandover"] > .section-bar #newCustomerBtn { background: #fff !important; color: #172438 !important; border-color: #dce6ee !important; }

  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] > .customer-detail-dialog {
    width: 100% !important; max-width: 100% !important; height: 100% !important; max-height: 100% !important;
    display: flex !important; flex-direction: column !important; gap: 0 !important; overflow: hidden !important;
    padding: 22px 28px 16px !important; background: #fff !important; border-radius: 0 !important; box-shadow: none !important;
    color: #172438 !important; font: 14px/1.5 'PingFang SC','Microsoft YaHei',Arial,sans-serif !important; font-variant-numeric: tabular-nums;
  }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .dialog-header { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 12px !important; padding: 0 0 16px !important; border: 0 !important; flex-shrink: 0; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .dialog-header > :first-child { flex: 1 1 260px; min-width: 0; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .dialog-header-spacer { display: none !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailTitle { margin: 0 !important; color: #172438 !important; font-size: 29px !important; line-height: 1.3 !important; letter-spacing: -.5px; overflow-wrap: anywhere; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(#customerDetailSubtitle,#customerDetailReturnHint) { margin: 4px 0 0 !important; color: #66768c !important; font-size: 12px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailActions { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(button,summary) { min-height: 39px; border-radius: 5px !important; box-shadow: none !important; font-size: 13px !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .dialog-actions-left { flex: 0 0 auto; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .order-detail-frame { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; min-height: 0 !important; min-width: 0 !important; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; overflow: hidden !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailTabs { flex: 0 0 auto !important; display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; margin: 0 !important; padding: 0 0 10px !important; border: 0 !important; border-bottom: 1px solid #e0e9f0 !important; overflow-x: auto !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailTabs button { flex: 0 0 auto; min-height: 39px !important; padding: 8px 16px !important; border: 0 !important; background: #fff !important; color: #172438 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailTabs button.active { background: #008575 !important; color: #fff !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailContent { flex: 1 1 auto !important; min-width: 0 !important; padding: 16px 0 !important; overflow: auto !important; background: #fff !important; scrollbar-gutter: stable; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-summary { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 0 !important; margin: 0 0 16px !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; padding: 14px 0 !important; background: #f7fafb !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-summary > article { border: 0 !important; border-right: 1px solid #e0e9f0 !important; border-radius: 0 !important; padding: 0 16px !important; background: none !important; min-width: 0; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-summary > article:last-child { border-right: 0 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-summary strong { font-size: 18px !important; line-height: 1.5 !important; margin-top: 7px !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-grid,.customer-detail-scoreboard,.customer-detail-list) :is(span,p) { color: #66768c !important; font-size: 12px !important; line-height: 1.65 !important; overflow-wrap: anywhere; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-grid,.customer-detail-scoreboard,.customer-detail-list) strong { color: #172438 !important; font-size: 14px !important; line-height: 1.65 !important; overflow-wrap: anywhere; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-grid.plan01-customer-summary strong { font-size: 18px !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-overview { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(280px,1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.plan01-customer-main,.plan01-customer-aside) { min-width: 0; display: grid; gap: 16px; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-scoreboard,.customer-detail-grid--three) { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; margin: 0 !important; background: #fff !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-scoreboard,.customer-detail-grid--three) > article { min-width: 0; border: 0 !important; border-bottom: 1px solid #e0e9f0 !important; border-radius: 0 !important; padding: 14px 16px !important; background: #fff !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-scoreboard,.customer-detail-grid--three) > article:last-child { border-bottom: 0 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-progress { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; padding: 12px 16px !important; margin: 0 !important; background: #fff !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-step { display: flex !important; align-items: center !important; gap: 12px !important; min-height: 54px !important; border: 0 !important; border-bottom: 1px solid #e0e9f0 !important; padding: 10px 0 !important; border-radius: 0 !important; background: #fff !important; text-align: left !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-step:last-child { border-bottom: 0 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-step span { width: 26px !important; height: 26px !important; margin: 0 !important; border-radius: 50% !important; background: #edf4f7 !important; color: #66768c !important; font-size: 12px !important; flex-shrink: 0; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-step strong { font-size: 13px !important; color: #66768c !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-step:is(.done,.active) span { background: #d0f6eb !important; color: #008575 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-deal-step.active strong { color: #008575 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-next-actions,.customer-stage-strip) { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; padding: 16px !important; margin: 0 !important; background: #f7fafb !important; min-width: 0; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-next-actions,.customer-stage-strip) :is(span,p) { font-size: 12px !important; line-height: 1.65 !important; color: #66768c !important; overflow-wrap: anywhere; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-next-actions strong { font-size: 14px !important; line-height: 1.6 !important; color: #172438 !important; overflow-wrap: anywhere; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-next-action-buttons,.customer-stage-buttons) { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-list { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; margin: 0 0 16px !important; background: #fff !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-list > article { border: 0 !important; border-bottom: 1px solid #e0e9f0 !important; border-radius: 0 !important; padding: 14px 16px !important; background: #fff !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-list > article:last-child { border-bottom: 0 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-timeline > article:first-child { background: #f2f7fa !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-alert-tags--detail { margin: 0 0 12px !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-stack { margin: 0 !important; padding: 0 !important; }
  body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-detail-notes :is(.customer-detail-workflow-notice,.customer-detail-action-strip) { background: #f7fafb !important; border-color: #e0e9f0 !important; border-radius: 5px !important; }

  body.erp-plan01 #handoverForm[data-plan01-customer-handover] { display: flex !important; flex-direction: column !important; gap: 16px !important; color: #172438 !important; background: #fff !important; box-shadow: none !important; overflow: auto !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] > * { flex-shrink: 0; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] .dialog-header h2 { font-size: 29px !important; color: #172438 !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] .form-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 24px !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] :is(input,select,textarea) { background: #fff !important; color: #172438 !important; border: 1px solid #dce6ee !important; border-radius: 5px !important; min-height: 39px !important; font-size: 13px !important; box-shadow: none !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] #handoverPreview { border: 1px solid #e0e9f0 !important; border-radius: 5px !important; background: #f7fafb !important; padding: 16px !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] #handoverPreview .customer-detail-action-strip { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; background: #fff !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; padding: 12px !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] #handoverPreview .customer-detail-action-strip :is(strong,p) { color: #485b73 !important; font-size: 13px !important; line-height: 1.6 !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] #handoverPreview .customer-empty-state-actions { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  body.erp-plan01 #handoverForm[data-plan01-customer-handover] :is(button,summary) { min-height: 39px !important; border-radius: 5px !important; font-size: 13px !important; }
  body.erp-plan01 :is([data-plan01-customer-list],[data-plan01-customer-detail],[data-plan01-customer-handover]) :is(button,input,select,textarea,summary,a,[tabindex]):focus-visible { outline: 2px solid #008575 !important; outline-offset: 2px !important; }

  @media (max-width: 980px) {
    body.erp-plan01 #customersView [data-plan01-customer-list] > .toolbar,
    body.erp-plan01 .plan01-customer-log-filters { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    body.erp-plan01 #customersView[data-active-section="customerHandover"] > .section-bar { flex-direction: row !important; align-items: flex-start !important; }
    body.erp-plan01 #customersView[data-active-section="customerHandover"] > .section-bar > :first-child { flex: 1 1 100%; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-overview { grid-template-columns: 1fr; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-summary { grid-template-columns: repeat(2,minmax(0,1fr)) !important; row-gap: 16px !important; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .plan01-customer-summary > article:nth-child(2) { border-right: 0 !important; }
    body.erp-plan01 :is(#customerDetailDialog[data-plan01-customer-detail],#handoverDialog.plan01-form-page) { inset: 0 !important; margin: 0 !important; width: 100vw !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] > .customer-detail-dialog,
    body.erp-plan01 #handoverDialog.plan01-form-page > #handoverForm { width: 100% !important; max-width: 100% !important; height: 100% !important; max-height: 100% !important; padding: 16px !important; border-radius: 0 !important; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .dialog-header { gap: 8px !important; padding-bottom: 12px !important; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .dialog-header > :first-child { flex: 1 1 calc(100% - 60px); }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailActions { order: 3; flex: 1 1 100%; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailTitle { font-size: 24px !important; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailContent { scrollbar-gutter: auto; }
    body.erp-plan01 #handoverForm[data-plan01-customer-handover] .form-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    body.erp-plan01 :is([data-plan01-customer-list],[data-plan01-customer-detail],[data-plan01-customer-handover]) :is(button,input,select,summary) { min-height: 44px !important; }
    body.erp-plan01 #customerFollowQuickFilters button,
    body.erp-plan01 #customersView [data-plan01-customer-list] :is(input,select),
    body.erp-plan01 #customersView[data-active-section="customerHandover"] :is(#openHandoverBtn,#newCustomerBtn),
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] #customerDetailTabs button,
    body.erp-plan01 #handoverForm[data-plan01-customer-handover] :is(button,input,select,summary) { min-height: 44px !important; }
    body.erp-plan01 .plan01-customer-page-controls { justify-content: flex-start; }
  }
  @media (max-width: 540px) {
    body.erp-plan01 #customersView [data-plan01-customer-list] > .toolbar,
    body.erp-plan01 .plan01-customer-log-filters { grid-template-columns: 1fr !important; }
    body.erp-plan01 #customersView [data-plan01-customer-list] > .panel-header { flex-wrap: wrap !important; }
    body.erp-plan01 .plan01-customer-pagination { display: block; }
    body.erp-plan01 .plan01-customer-page-controls { margin-top: 12px; }
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] .customer-detail-quick-actions,
    body.erp-plan01 #customerDetailDialog[data-plan01-customer-detail] :is(.customer-detail-workflow-notice,.customer-detail-action-strip) { flex-direction: column !important; align-items: stretch !important; }
  }
}

/* 03-06: original business writer, Scheme01 page-form layout. */
@layer plan01 {
  body.erp-plan01 #customerFollowEditor {
    position: fixed !important; inset: 134px 0 0 232px !important; margin: 0 !important;
    width: calc(100vw - 232px) !important; max-width: none !important;
    height: calc(100dvh - 134px) !important; max-height: none !important;
    border: 0 !important; border-radius: 0 !important; padding: 0 !important;
    color: var(--plan01-ink); background: var(--plan01-surface); overflow: hidden;
  }
  body.erp-plan01 #customerFollowEditor::backdrop { background: transparent !important; }
  body.erp-plan01 #customerFollowEditorForm { display: flex; flex-direction: column; height: 100%; padding: 22px 28px; gap: 0; margin: 0; max-width: none; min-width: 0; }
  body.erp-plan01 #customerFollowEditor .follow-editor-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; flex: none; }
  body.erp-plan01 #customerFollowEditor .follow-editor-head > div:first-child { flex: 1 1 240px; min-width: 0; }
  body.erp-plan01 #customerFollowEditor h2 { font-size: 29px !important; line-height: 1.28 !important; margin: 0 0 6px !important; letter-spacing: -.5px; color: var(--plan01-ink); }
  body.erp-plan01 #customerFollowEditor .follow-editor-head p { margin: 0; font-size: 14px; color: var(--plan01-muted); overflow-wrap: anywhere; }
  body.erp-plan01 #customerFollowEditor .follow-editor-top-actions { display: flex; gap: 10px; }
  body.erp-plan01 #customerFollowEditor .follow-editor-close { min-width: 39px; padding-inline: 8px; }
  body.erp-plan01 #customerFollowEditor .follow-editor-body { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
  body.erp-plan01 #customerFollowEditor .follow-editor-section { padding: 20px; border: 1px solid var(--plan01-line); border-radius: 5px; margin-bottom: 17px; }
  body.erp-plan01 #customerFollowEditor h3 { font-size: 18px !important; margin: 0 0 16px !important; color: var(--plan01-ink); }
  body.erp-plan01 #customerFollowEditor .follow-editor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 24px; }
  body.erp-plan01 #customerFollowEditor label { display: block !important; min-width: 0; font-size: 13px !important; font-weight: 550; }
  body.erp-plan01 #customerFollowEditor label > span { display: inline !important; color: #c83b36; }
  body.erp-plan01 #customerFollowEditor :is(input,select,textarea) { display: block; width: 100%; min-width: 0; margin-top: 7px; min-height: 39px; padding: 9px 12px; color: #40536a; border: 1px solid var(--plan01-control-line); border-radius: 4px; background: #fff; font: inherit; font-weight: 400; }
  body.erp-plan01 #customerFollowEditor :is(input,select,textarea)::placeholder { color: var(--plan01-muted); opacity: 1; }
  body.erp-plan01 #customerFollowEditor [readonly] { background: var(--plan01-subtle); }
  body.erp-plan01 #customerFollowEditor textarea { min-height: 80px; resize: vertical; }
  body.erp-plan01 #customerFollowEditor .follow-editor-wide { grid-column: 1 / -1; }
  body.erp-plan01 #customerFollowEditor small { display: block; font-size: 12px; color: var(--plan01-muted); font-weight: 400; margin-top: 5px; }
  body.erp-plan01 #customerFollowEditor .follow-editor-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--plan01-line); flex: none; }
  body.erp-plan01 #customerFollowEditor .follow-editor-footer p { margin: 0 auto 0 0; font-size: 13px; color: var(--plan01-muted); }
  body.erp-plan01 #customerFollowEditor .follow-editor-message { color: #c83b36; border: 1px solid #c83b36; padding: 12px; border-radius: 4px; }
  body.erp-plan01 #customerFollowEditor .follow-editor-message[hidden] { display: none; }
  body.erp-plan01 #customerFollowEditor :focus-visible { outline: 2px solid var(--plan01-accent); outline-offset: 2px; }
  @media(max-width:980px) {
    body.erp-plan01 #customerFollowEditor { inset: 0 !important; width: 100vw !important; height: 100dvh !important; }
    body.erp-plan01 #customerFollowEditorForm { padding: 18px 16px; }
    body.erp-plan01 #customerFollowEditor .follow-editor-grid { grid-template-columns: 1fr; }
    body.erp-plan01 #customerFollowEditor .follow-editor-top-actions { display: none; }
    body.erp-plan01 #customerFollowEditor .follow-editor-head > div:first-child { flex-basis: calc(100% - 60px); }
    body.erp-plan01 #customerFollowEditor .follow-editor-footer { flex-wrap: wrap; }
    body.erp-plan01 #customerFollowEditor .follow-editor-footer p { flex-basis: 100%; font-size: 14px; }
    body.erp-plan01 #customerFollowEditor :is(button,input,select,textarea),
    body.erp-plan01 #customerDialog #customerForm :is(button,input,select,textarea) { min-height: 44px !important; font-size: 16px !important; }
    body.erp-plan01 #customerDialog #customerForm #closeCustomerDialogBtn,
    body.erp-plan01 #customerFollowEditor .follow-editor-close { width: 44px !important; min-width: 44px; }
    body.erp-plan01 #customerFollowEditor label { font-size: 16px !important; }
  }
}
