/* v1.3.0 — Apps Script parity color system
   Approved Al Kubaisi dashboard palette: Navy/Blue + pastel semantic status colors. */
:root{
  --ak-navy:#17365D;--ak-blue:#1F4E78;--ak-light-blue:#DDEBF7;
  --ak-green:#E2F0D9;--ak-yellow:#FFF2CC;--ak-orange:#FCE4D6;
  --ak-red:#F4CCCC;--ak-purple:#E4DFEC;--ak-grey:#E7E6E6;
  --ak-white:#FFFFFF;--ak-border:#D9E2F3;--ak-text:#203864;
  --navy:#1F4E78;--navy-dark:#17365D;--border:#D9E2F3;--text:#203864;
  --bg:#f6f8fb;--success:#548235;--danger:#a61c00;
}
.navbar{background:var(--ak-navy)}
.topbar{border-bottom-color:var(--ak-border)}
.btn.primary{background:var(--ak-blue);border-color:var(--ak-blue)}
.period-option.active{background:var(--ak-blue)}
.dashboard-kpi{border:1px solid var(--ak-border);box-shadow:0 7px 20px rgba(23,54,93,.08)}
.kpi-blue{background:var(--ak-blue);color:#fff}
.kpi-orange{background:var(--ak-orange);color:var(--ak-text)}
.kpi-cyan{background:var(--ak-light-blue);color:var(--ak-text)}
.kpi-navy{background:var(--ak-navy);color:#fff}
.kpi-teal{background:var(--ak-blue);color:#fff}
.kpi-purple{background:var(--ak-purple);color:var(--ak-text)}
.kpi-green,.kpi-green-soft{background:var(--ak-green);color:var(--ak-text)}
.kpi-red{background:var(--ak-red);color:var(--ak-text)}
.kpi-orange:after,.kpi-cyan:after,.kpi-purple:after,.kpi-green:after,.kpi-green-soft:after,.kpi-red:after{background:rgba(23,54,93,.05)}
.kpi-orange .kpi-caption,.kpi-cyan .kpi-caption,.kpi-purple .kpi-caption,.kpi-green .kpi-caption,.kpi-green-soft .kpi-caption,.kpi-red .kpi-caption,
.kpi-orange .kpi-label,.kpi-cyan .kpi-label,.kpi-purple .kpi-label,.kpi-green .kpi-label,.kpi-green-soft .kpi-label,.kpi-red .kpi-label{opacity:.9}
.dot-blue,.fill-blue{background:var(--ak-blue)}
.dot-light-blue,.fill-light-blue{background:#9dc3e6}
.dot-navy,.fill-navy{background:var(--ak-navy)}
.dot-orange,.fill-orange{background:#ed7d31}
.dot-yellow,.fill-yellow{background:#d6b656}
.dot-purple,.fill-purple{background:#8064a2}
.dot-green,.fill-green{background:#70ad47}
.dot-red,.fill-red{background:#c0504d}
.dot-gray,.fill-gray{background:#a5a5a5}
.status-assigned{background:var(--ak-grey);color:var(--ak-text)}
.status-accepted,.status-contacted,.status-new_lead,.status-new{background:var(--ak-light-blue);color:var(--ak-text)}
.status-qualified,.status-quotation_sent,.status-quotation{background:var(--ak-purple);color:var(--ak-text)}
.status-meeting_scheduled,.status-follow_up{background:var(--ak-orange);color:var(--ak-text)}
.status-negotiation{background:var(--ak-yellow);color:var(--ak-text)}
.status-on_hold{background:var(--ak-grey);color:var(--ak-text)}
.status-won,.status-converted{background:var(--ak-green);color:#385723}
.status-lost,.status-closed,.status-not_interested,.status-invalid,.status-duplicate{background:var(--ak-red);color:#8a1c13}
.opportunity-stage-new_inquiry,.opportunity-stage-contacted,.opportunity-stage-site_visit_completed,.opportunity-stage-requirement_confirmed{background:var(--ak-light-blue);color:var(--ak-text)}
.opportunity-stage-qualified,.opportunity-stage-quotation_submitted,.opportunity-stage-contract_lpo_pending{background:var(--ak-purple);color:var(--ak-text)}
.opportunity-stage-site_visit_required,.opportunity-stage-awaiting_decision{background:var(--ak-yellow);color:var(--ak-text)}
.opportunity-stage-preparing_quotation,.opportunity-stage-follow_up{background:var(--ak-orange);color:var(--ak-text)}
.opportunity-stage-negotiation{background:#d9e2f3;color:var(--ak-navy)}
.opportunity-stage-won{background:var(--ak-green);color:#385723}
.opportunity-stage-lost{background:var(--ak-red);color:#8a1c13}
.opportunity-stage-on_hold{background:var(--ak-grey);color:var(--ak-text)}

/* notification bell/panel */
.topbar-tools{display:flex;align-items:center;gap:18px}.notification-menu{position:relative}.notification-menu summary{list-style:none}.notification-menu summary::-webkit-details-marker{display:none}.notification-bell{position:relative;width:40px;height:40px;border:1px solid var(--ak-border);border-radius:10px;display:grid;place-items:center;cursor:pointer;background:#fff;font-size:18px}.notification-bell span{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#c0504d;color:#fff;font:700 10px/19px Segoe UI,Arial,sans-serif;text-align:center}.notification-popover{position:absolute;z-index:40;right:0;top:48px;width:min(390px,86vw);background:#fff;border:1px solid var(--ak-border);border-radius:14px;box-shadow:0 18px 44px rgba(23,54,93,.18);overflow:hidden}.notification-popover-head{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;background:var(--ak-navy);color:#fff}.notification-popover-head a{color:#fff;font-size:12px}.notification-mini{display:block;padding:12px 14px;border-top:1px solid var(--ak-border);color:inherit}.notification-mini.unread{background:var(--ak-light-blue)}.notification-mini strong,.notification-mini span,.notification-mini small{display:block}.notification-mini strong{color:var(--ak-text);font-size:13px}.notification-mini span{color:#556987;font-size:12px;margin-top:4px}.notification-mini small{color:#7b8da6;font-size:10px;margin-top:6px}.notification-read-all{padding:11px 14px;width:100%;text-align:center;border-top:1px solid var(--ak-border)}.notification-empty{padding:22px;text-align:center;color:#7b8da6}.notification-page-list{padding:0}.notification-page-item{display:flex;justify-content:space-between;gap:20px;padding:15px 18px;border-top:1px solid var(--ak-border);color:inherit}.notification-page-item:first-child{border-top:0}.notification-page-item.unread{background:var(--ak-light-blue)}.notification-page-item p{margin:5px 0 0;color:#556987}.notification-meta{display:flex;align-items:flex-end;flex-direction:column;gap:8px;white-space:nowrap}.notification-meta small{color:#7b8da6}.page-actions{display:flex;gap:8px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-grid>div{border:1px solid var(--ak-border);border-radius:10px;padding:11px 12px;background:#fafcff}.info-grid span{display:block;color:#6e7f98;font-size:11px;text-transform:uppercase;font-weight:700}.info-grid strong{display:block;color:var(--ak-text);margin-top:5px}.warning-box{margin-top:14px;background:var(--ak-red);border-radius:10px;padding:13px;color:#8a1c13}
@media(max-width:700px){.topbar-tools{gap:8px}.notification-popover{right:-100px}.notification-page-item{flex-direction:column}.notification-meta{align-items:flex-start}.info-grid{grid-template-columns:1fr}}

/* v1.3.1 — Apps Script UI parity shell and dashboard
   Visual principle: navy navigation, white surfaces, semantic color accents. */
:root{
  --ak-sidebar:#112757;
  --ak-sidebar-active:#2a3f6f;
  --ak-page:#f4f6fa;
  --ak-card:#ffffff;
  --ak-blue-strong:#2f69dc;
  --ak-orange-strong:#d97706;
  --ak-green-strong:#159447;
  --ak-cyan-strong:#0f7f96;
  --ak-purple-strong:#7455a7;
  --ak-red-strong:#c0504d;
  --ak-copy:#17233c;
  --ak-muted:#77839a;
  --ak-line:#e1e6ef;
}
body.app-authenticated{background:var(--ak-page);min-height:100vh;color:var(--ak-copy)}
.app-sidebar{position:fixed;left:0;top:0;bottom:0;width:300px;background:var(--ak-sidebar);color:#fff;z-index:80;padding:18px 17px 22px;display:flex;flex-direction:column;box-shadow:3px 0 16px rgba(17,39,87,.08)}
.sidebar-brand{height:102px;display:flex;align-items:flex-start;gap:14px;padding:0 8px;border-bottom:1px solid rgba(255,255,255,.12);position:relative}
.sidebar-logo{position:absolute;left:8px;top:30px;width:92px;max-height:52px;object-fit:contain;filter:brightness(0) invert(1)}
.sidebar-brand>div{position:absolute;left:108px;top:31px;min-width:150px}
.sidebar-brand strong{display:block;font-size:16px;line-height:1.2;color:#fff}.sidebar-brand span{display:block;font-size:12px;margin-top:5px;color:#cbd5e1}
.sidebar-nav{display:grid;gap:8px;padding:28px 0 12px}.sidebar-link{display:flex;align-items:center;gap:14px;min-height:60px;padding:0 16px;border-radius:11px;color:#e7edf8;font-size:16px;transition:background .15s ease,color .15s ease}.sidebar-link:hover{background:rgba(255,255,255,.08);color:#fff}.sidebar-link.active{background:var(--ak-sidebar-active);color:#fff}.sidebar-icon{display:grid;place-items:center;width:20px;font-size:20px;color:#f4f7ff}
.sidebar-secondary{display:grid;gap:7px;margin-top:8px;padding:13px 10px;border-top:1px solid rgba(255,255,255,.10)}.sidebar-secondary a{color:#aebbd5;font-size:12px;padding:5px 6px}.sidebar-secondary a:hover{color:#fff}
.sidebar-user{display:grid;grid-template-columns:45px minmax(0,1fr) 26px;gap:10px;align-items:center;margin-top:auto;padding:22px 8px 12px;border-top:1px solid rgba(255,255,255,.12)}.sidebar-avatar{width:45px;height:45px;border-radius:50%;background:#fff;color:var(--ak-sidebar);display:grid;place-items:center;font-weight:800;font-size:18px}.sidebar-user-text{min-width:0}.sidebar-user-text strong,.sidebar-user-text span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-text strong{color:#fff;font-size:14px}.sidebar-user-text span{color:#b7c4dc;font-size:11px;margin-top:4px}.sidebar-logout{border:0;background:none;color:#b7c4dc;font-size:18px;cursor:pointer}.sidebar-logout:hover{color:#fff}.sidebar-version{padding:0 9px;color:#8193b5;font-size:11px}
.workspace-tools{position:absolute;right:32px;top:28px;z-index:60;display:flex;align-items:center;gap:12px}.workspace-tools .notification-bell{width:48px;height:48px;border-radius:12px;font-size:20px}.workspace-new-sale{height:48px;display:inline-flex;align-items:center;padding:0 22px;border-radius:10px;font-weight:800;background:#0b2a67!important;border-color:#0b2a67!important;color:#fff!important}
.app-content.container{max-width:none;margin:0 0 0 300px;padding:29px 38px 64px;min-height:100vh}.app-content .alert{max-width:1120px}.public-topbar{height:84px;background:#fff;border-bottom:1px solid var(--ak-line);display:flex;align-items:center;padding:0 32px}.public-content.container{max-width:1180px;margin:0 auto;padding:34px 32px 60px}
.dashboard-title-row{min-height:86px;display:flex;align-items:flex-start;justify-content:space-between;padding-right:260px}.dashboard-title-row h1{margin:0;color:#17213a;font-size:31px;line-height:1.1}.dashboard-title-row p{margin:9px 0 0;color:#7b8496;font-size:15px}.dashboard-hero{display:none}
.dashboard-filter-panel.appscript-filter-panel{background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 16px}.appscript-period-switch{display:inline-flex;background:#e9edf4;border-radius:12px;padding:4px;gap:2px;margin:0 0 18px}.appscript-period-switch .period-option{min-width:auto;padding:10px 16px;background:transparent;color:#667085;border-radius:9px;font-weight:800;font-size:13px}.appscript-period-switch .period-option.active{background:#fff;color:#10295d;box-shadow:0 2px 7px rgba(22,35,62,.10)}
.dashboard-filter-fields.appscript-filter-fields{display:grid;grid-template-columns:145px 145px minmax(180px,1fr) minmax(180px,1fr) 82px 74px;gap:10px;align-items:center;max-width:1035px}.appscript-filter-fields input[type=text],.appscript-filter-fields select{height:47px;border:1px solid #d5dce8;border-radius:10px;background:#fff;color:#25324a;padding:0 14px;font-size:13px;outline:none}.appscript-filter-fields input[type=text]:focus,.appscript-filter-fields select:focus{border-color:#8fa7ca;box-shadow:0 0 0 3px rgba(47,105,220,.09)}.appscript-filter-fields .btn{height:47px;border-radius:10px}.appscript-filter-fields .dashboard-apply{background:#fff;color:#15213b;border:1px solid #d5dce8;font-weight:700}.appscript-filter-fields .dashboard-apply:hover{background:#f8fafc}.compact-clear{padding-left:12px;padding-right:12px}
.calendar-text-field{position:relative}.calendar-text-field input[type=text]{width:100%;padding-left:38px}.calendar-button{position:absolute;left:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#17213a;width:24px;height:28px;cursor:pointer;font-size:13px}.native-date-picker{position:absolute!important;left:7px;top:9px;width:25px!important;height:28px!important;opacity:0;pointer-events:none}.scope-chip{display:inline-flex;margin-top:12px;background:#eaf2ff;color:#17365d;border:1px solid #d5e4ff;border-radius:999px;padding:6px 11px;font-size:11px}.sales-scope-note{max-width:1035px}
.appscript-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:14px 0 20px}.appscript-kpi,.report-hub-card{position:relative;min-height:136px;background:#fff;border:1px solid #e3e7ee;border-radius:16px;padding:22px 20px 17px;color:var(--ak-copy);box-shadow:0 7px 20px rgba(23,54,93,.045);overflow:hidden;transition:transform .15s ease,box-shadow .15s ease}.appscript-kpi:after,.report-hub-card:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;right:-31px;top:-40px;background:#f0f3f7}.appscript-kpi:hover,.report-hub-card:hover{transform:translateY(-2px);box-shadow:0 11px 26px rgba(23,54,93,.09)}.appscript-kpi:before,.report-hub-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#9aa7ba}.appscript-kpi span,.appscript-kpi strong,.appscript-kpi small,.report-hub-card span,.report-hub-card strong,.report-hub-card small{position:relative;z-index:1;display:block}.appscript-kpi span,.report-hub-card span{color:#737f93;font-size:13px}.appscript-kpi strong,.report-hub-card strong{font-size:29px;margin:17px 0 10px;color:#17365d;line-height:1}.appscript-kpi strong.money{font-size:27px}.appscript-kpi small,.report-hub-card small{font-size:11px;color:#9aa4b5}.accent-blue:before{background:var(--ak-blue-strong)}.accent-orange:before{background:var(--ak-orange-strong)}.accent-green:before{background:var(--ak-green-strong)}.accent-cyan:before{background:var(--ak-cyan-strong)}.accent-purple:before{background:var(--ak-purple-strong)}.accent-red:before{background:var(--ak-red-strong)}.accent-blue strong{color:#255ed4}.accent-orange strong{color:#b85b00}.accent-green strong{color:#14843e}.accent-cyan strong{color:#0f778b}.accent-purple strong{color:#684f97}.accent-red strong{color:#ad3d38}
.appscript-panels{grid-template-columns:1.08fr .92fr;gap:18px}.appscript-panels .dashboard-panel,.salesperson-performance-panel,.pipeline-summary-panel{border-radius:16px;border:1px solid #e3e7ee;box-shadow:0 7px 20px rgba(23,54,93,.045);padding:20px 22px}.dashboard-panel-head h2{font-size:18px;color:#17213a}.dashboard-panel-head p{margin:5px 0 0;color:#8490a3;font-size:12px}.panel-rate{background:#e8f6eb;color:#198447;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}.stage-track{height:6px;background:#eef1f5}.salesperson-performance-panel{margin:0 0 18px}.performance-table-wrap{overflow:auto}.performance-table{width:100%;border-collapse:collapse}.performance-table th{font-size:11px;text-transform:uppercase;letter-spacing:.02em;color:#7f8a9e;text-align:left;padding:10px 12px;border-bottom:1px solid #e6eaf0}.performance-table td{padding:12px;border-bottom:1px solid #eef1f5;color:#4b5870;font-size:13px}.performance-table tr:last-child td{border-bottom:0}.performance-table td strong{color:#17213a}.pipeline-summary-panel{margin:0}.pipeline-summary-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 18px}.pipeline-summary-metrics>div{background:#f8fafc;border:1px solid #edf0f4;border-radius:11px;padding:13px 14px}.pipeline-summary-metrics span{display:block;color:#7b8799;font-size:11px}.pipeline-summary-metrics strong{display:block;color:#17365d;margin-top:6px;font-size:18px}.compact-stage-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.report-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}.report-hub-card strong{font-size:28px}.report-parity-note{max-width:900px}.appscript-page-heading{padding-right:220px}
.page-heading{padding-right:170px}.page-heading h1{font-size:28px;color:#17213a}.table-wrap,.panel{border-radius:14px;border-color:#e3e7ee;box-shadow:0 6px 18px rgba(23,54,93,.04)}
.notification-popover{right:0;top:56px;z-index:120}.notification-bell{box-shadow:0 2px 8px rgba(23,54,93,.05)}
@media(max-width:1180px){.app-sidebar{width:250px}.app-content.container{margin-left:250px}.dashboard-filter-fields.appscript-filter-fields{grid-template-columns:140px 140px 1fr 1fr 82px}.compact-clear{display:none}.appscript-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.app-sidebar{position:relative;width:100%;height:auto;min-height:auto;padding:12px}.sidebar-brand{height:72px;padding:0;border-bottom:0}.sidebar-logo{top:9px;left:8px;width:68px}.sidebar-brand>div{top:12px;left:87px}.sidebar-nav{display:flex;overflow:auto;padding:10px 0}.sidebar-link{min-height:44px;white-space:nowrap}.sidebar-secondary,.sidebar-user,.sidebar-version{display:none}.app-content.container{margin-left:0;padding:24px 20px 50px}.workspace-tools{top:20px;right:20px}.dashboard-title-row{padding-right:200px}.dashboard-filter-fields.appscript-filter-fields{grid-template-columns:1fr 1fr}.dashboard-filter-fields.appscript-filter-fields .btn{width:100%}.compact-clear{display:flex}.appscript-panels{grid-template-columns:1fr}.report-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.workspace-tools{position:static;padding:14px 18px 0;justify-content:flex-end}.dashboard-title-row{padding-right:0;min-height:auto;margin-bottom:20px}.appscript-kpi-grid,.report-hub-grid{grid-template-columns:1fr}.dashboard-filter-fields.appscript-filter-fields{grid-template-columns:1fr}.appscript-period-switch{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.pipeline-summary-metrics{grid-template-columns:1fr}.compact-stage-list{grid-template-columns:1fr}.page-heading,.appscript-page-heading{padding-right:0}}

/* v1.3.2 — UI layout & Sales Records table parity fix */
.app-sidebar{
  padding:18px 17px 18px;
  overflow:hidden;
}
.sidebar-brand{
  flex:0 0 112px;
  height:112px;
  min-height:112px;
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:0 8px 8px;
  position:relative;
}
.sidebar-logo{
  position:static;
  width:96px;
  height:58px;
  max-height:58px;
  object-fit:contain;
  display:block;
  filter:brightness(0) invert(1);
}
.sidebar-brand>div,.sidebar-brand-copy{
  position:static;
  min-width:0;
}
.sidebar-brand strong{font-size:16px;white-space:nowrap}.sidebar-brand span{font-size:12px;white-space:nowrap}
.sidebar-nav{
  flex:0 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  display:grid;
  gap:6px;
  padding:18px 0 12px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.22) transparent;
}
.sidebar-link{min-height:52px;padding:0 15px;border-radius:10px;font-size:15px;flex:none}
.sidebar-link-utility{color:#cbd5e1}.sidebar-link-utility .sidebar-icon{font-size:17px}
.sidebar-nav-separator{height:1px;background:rgba(255,255,255,.11);margin:7px 9px 5px}
.sidebar-user{flex:0 0 auto;margin-top:auto;padding-top:16px}.sidebar-version{flex:0 0 auto;padding-bottom:2px}

.workspace-tools{
  position:absolute;
  right:38px;
  top:29px;
  display:flex;
  align-items:center;
  gap:10px;
}
.workspace-tools .notification-bell{width:46px;height:46px;border-radius:11px;font-size:19px}
.workspace-new-sale{height:46px;padding:0 19px;border-radius:10px;font-size:14px;white-space:nowrap}
.page-heading,.appscript-page-heading{min-height:78px;margin-bottom:17px;padding-right:270px;align-items:flex-start}
.page-heading h1,.appscript-page-heading h1{font-size:29px;line-height:1.12;margin-top:8px}
.page-heading p,.appscript-page-heading p{margin-top:8px;line-height:1.35;max-width:700px}

.compact-module-filter{margin-bottom:18px}
.filter-bar-sales.compact-module-filter{
  grid-template-columns:minmax(250px,1.35fr) minmax(155px,.72fr) minmax(190px,.9fr) 84px 72px;
  gap:10px;
}
.compact-module-filter input,.compact-module-filter select,.compact-module-filter .btn{height:46px;min-width:0}

.sales-table-wrap{
  width:100%;
  overflow-x:hidden;
  overflow-y:visible;
}
.sales-records-table{
  width:100%;
  min-width:0;
  table-layout:fixed;
}
.sales-records-table .col-entry{width:13%}
.sales-records-table .col-customer{width:18%}
.sales-records-table .col-product{width:18%}
.sales-records-table .col-value{width:12%}
.sales-records-table .col-status{width:17%}
.sales-records-table .col-follow{width:14%}
.sales-records-table .col-action{width:8%}
.sales-records-table th,.sales-records-table td{padding:13px 12px;overflow-wrap:anywhere;word-break:normal}
.sales-records-table th{font-size:11px;letter-spacing:.025em}
.sales-records-table td{font-size:13px;line-height:1.35}
.sales-records-table .entry-number,.sales-records-table .cell-primary{display:block;color:#17213a;font-weight:700}
.sales-records-table .entry-number{overflow-wrap:normal;word-break:normal}
.sales-records-table .table-sub{font-size:11px;line-height:1.35;margin-top:4px}
.sales-records-table .related-reference a{font-weight:700;color:#315f9a}
.sales-records-table .status-next-action{max-width:150px}
.sales-records-table .owner-name{font-weight:600;color:#52627a}
.sales-records-table .money-cell{white-space:nowrap}
.sales-records-table .action-cell{text-align:right;padding-left:6px;padding-right:10px}
.sales-records-table .row-action-select{width:100%;min-width:0;max-width:100px;padding:8px 24px 8px 9px;font-size:11px}
.sales-records-table .tag{max-width:100%;white-space:normal;line-height:1.2}

@media(max-width:1180px){
  .filter-bar-sales.compact-module-filter{grid-template-columns:minmax(220px,1.3fr) 150px 185px 80px 70px}
  .sales-records-table .col-entry{width:14%}.sales-records-table .col-customer{width:18%}.sales-records-table .col-product{width:17%}.sales-records-table .col-value{width:11%}.sales-records-table .col-status{width:18%}.sales-records-table .col-follow{width:14%}.sales-records-table .col-action{width:8%}
}
@media(max-width:1000px){
  .filter-bar-sales.compact-module-filter{grid-template-columns:1fr 1fr 1fr}.filter-bar-sales.compact-module-filter .btn{width:100%}
  .sales-table-wrap{overflow-x:auto}.sales-records-table{min-width:900px;table-layout:auto}.sales-records-table .row-action-select{min-width:100px}
}
@media(max-width:900px){
  .sidebar-brand{flex-basis:72px;min-height:72px;height:72px;grid-template-columns:68px 1fr;padding:0;border-bottom:0}.sidebar-logo{width:64px;height:46px}.sidebar-brand>div,.sidebar-brand-copy{position:static}.sidebar-brand strong{font-size:14px}.sidebar-brand span{font-size:11px}
  .sidebar-nav{display:flex;overflow-x:auto;overflow-y:hidden;padding:10px 0}.sidebar-nav-separator{display:none}.sidebar-link-utility{display:none}
  .page-heading,.appscript-page-heading{padding-right:220px}
}
@media(max-width:700px){
  .filter-bar-sales.compact-module-filter{grid-template-columns:1fr}.sales-page-heading{padding-right:0}.workspace-tools{position:static;padding:14px 18px 0;justify-content:flex-end}.page-heading,.appscript-page-heading{padding-right:0;min-height:auto}
}

/* v1.3.3 - compact action menus + Apps Script week/data import parity */
.row-action-menu{position:relative;display:inline-block;min-width:92px;text-align:left}
.row-action-menu>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:8px 10px;border:1px solid #c7d2e1;border-radius:9px;background:#fff;color:#17365d;font-size:12px;font-weight:700;cursor:pointer;user-select:none;white-space:nowrap}
.row-action-menu>summary::-webkit-details-marker{display:none}
.row-action-menu>summary:hover,.row-action-menu[open]>summary{border-color:#5b7ba8;background:#f7faff}
.row-action-menu>summary span{font-size:12px;color:#6f8098;transition:transform .15s ease}
.row-action-menu[open]>summary span{transform:rotate(180deg)}
.row-action-popover{position:absolute;right:0;top:calc(100% + 5px);z-index:120;min-width:156px;padding:5px;background:#fff;border:1px solid #d7deea;border-radius:10px;box-shadow:0 12px 28px rgba(23,54,93,.16)}
.row-action-popover a{display:block;padding:9px 10px;border-radius:7px;color:#17365d;font-size:12px;font-weight:650;white-space:nowrap}
.row-action-popover a:hover{background:#edf4fb;color:#0b2a67}
.action-cell{position:relative;overflow:visible!important}
.sales-records-table .row-action-menu{min-width:88px;max-width:100%}
.sales-records-table .row-action-menu>summary{min-height:34px;padding:7px 9px;font-size:11px}
@media(max-width:1000px){.row-action-popover{right:auto;left:0}}
.status-imported_review{background:#f2f4f7;color:#475467;border:1px solid #e4e7ec}
.status-quotation{background:#f3efff;color:#6941c6}

/* v1.3.4 — compact shell, pagination, state-safe lists and Apps Script pipeline parity */
body.app-authenticated{overflow-x:hidden}
.app-sidebar{width:260px;padding:16px 14px 16px}
.sidebar-brand{flex-basis:102px;height:102px;min-height:102px;grid-template-columns:78px minmax(0,1fr);gap:10px;padding:0 6px 7px}
.sidebar-logo{width:76px;height:52px;max-height:52px}
.sidebar-brand strong{font-size:15px}.sidebar-brand span{font-size:11px}
.sidebar-nav{padding:14px 0 10px;gap:5px}
.sidebar-link{min-height:48px;padding:0 13px;font-size:14px;gap:11px}.sidebar-icon{font-size:18px;width:18px}
.sidebar-user{grid-template-columns:40px minmax(0,1fr) 22px;padding:15px 6px 10px}.sidebar-avatar{width:40px;height:40px;font-size:16px}.sidebar-user-text strong{font-size:13px}.sidebar-user-text span{font-size:10px}
.app-content.container{margin-left:260px;width:calc(100% - 260px);max-width:none;padding:26px 30px 58px;min-width:0;overflow-x:hidden}
.workspace-tools{right:30px;top:25px;gap:9px}.workspace-tools .notification-bell{width:42px;height:42px;border-radius:11px;font-size:18px}
.workspace-primary-action{height:42px;padding:0 16px;border-radius:11px!important;font-size:13px!important;white-space:nowrap;background:#0b2a67!important;border-color:#0b2a67!important;box-shadow:0 3px 10px rgba(11,42,103,.12)}
.workspace-primary-action:hover{background:#173f82!important;transform:translateY(-1px)}.workspace-plus{font-size:17px;line-height:1;margin-right:5px}
.module-page-heading,.page-heading,.appscript-page-heading{min-height:70px;margin-bottom:14px;padding-right:255px}.module-page-heading h1,.page-heading h1,.appscript-page-heading h1{font-size:28px;margin-top:6px}.module-page-heading p{font-size:14px;max-width:680px}

.module-filter{display:grid;gap:9px;margin-bottom:15px;align-items:center}.module-filter input,.module-filter select,.module-filter .btn{height:43px;min-width:0;border-radius:10px}.module-filter input,.module-filter select{font-size:13px;padding-top:0;padding-bottom:0}.module-search-btn{background:#fff;color:#17365d;border-color:#d1d9e6}.module-clear-btn{background:#f8fafc;color:#52627a}.sales-module-filter{grid-template-columns:minmax(230px,1.45fr) minmax(145px,.65fr) minmax(175px,.82fr) 78px 68px}.inquiry-module-filter{grid-template-columns:minmax(220px,1.35fr) 145px 135px minmax(170px,.85fr) 78px 68px}.pipeline-module-filter{grid-template-columns:minmax(260px,1.4fr) minmax(190px,.8fr) 78px 68px;max-width:920px}

.module-table-wrap{width:100%;overflow:visible;border-radius:14px}.module-records-table{width:100%;table-layout:fixed;min-width:0}.module-records-table th,.module-records-table td{padding:11px 11px;vertical-align:middle;overflow-wrap:anywhere}.module-records-table th{font-size:10.5px;letter-spacing:.025em}.module-records-table td{font-size:12.5px;line-height:1.32;background:#fff}.module-records-table tbody tr:hover td{background:#fbfcfe}.record-code{display:block;color:#112757;font-size:12px;font-weight:800;line-height:1.28;overflow-wrap:anywhere}.cell-primary{display:block;color:#17213a;font-weight:700}.table-sub{font-size:10.5px;line-height:1.28;margin-top:3px}.clamp-one{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.clamp-two{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.requirement-text{color:#4d5b71;font-size:11.5px;line-height:1.35}.money-cell{white-space:nowrap}.owner-name{color:#53647d;font-weight:600}.tag{font-size:10.5px;padding:4px 7px;border-radius:7px}.sla-text{font-weight:800;font-size:10.5px}.sla-text.overdue{color:#b42318}.sla-text.ok{color:#147a4b}

.sales-records-table .col-entry{width:14%}.sales-records-table .col-customer{width:17%}.sales-records-table .col-product{width:17%}.sales-records-table .col-value{width:12%}.sales-records-table .col-status{width:17%}.sales-records-table .col-follow{width:18%}.sales-records-table .col-action{width:5%}
.inquiry-records-table .inq-code{width:15%}.inquiry-records-table .inq-customer{width:16%}.inquiry-records-table .inq-source{width:13%}.inquiry-records-table .inq-status{width:15%}.inquiry-records-table .inq-owner{width:14%}.inquiry-records-table .inq-requirement{width:22%}.inquiry-records-table .inq-action{width:5%}
.pipeline-records-table .opp-code{width:19%}.pipeline-records-table .opp-customer{width:23%}.pipeline-records-table .opp-value{width:16%}.pipeline-records-table .opp-prob{width:9%}.pipeline-records-table .opp-stage{width:14%}.pipeline-records-table .opp-follow{width:14%}.pipeline-records-table .opp-action{width:5%}

.action-cell{text-align:center!important;padding-left:5px!important;padding-right:7px!important}.row-action-menu.action-dots{min-width:0;width:34px}.row-action-menu.action-dots>summary{width:34px;height:34px;min-height:34px;padding:0;border-radius:999px;display:grid;place-items:center;font-size:20px;line-height:1;color:#36567f;border-color:#d4dce8;background:#fff}.row-action-menu.action-dots>summary:hover,.row-action-menu.action-dots[open]>summary{background:#edf3fb;border-color:#9fb2cc;color:#17365d}.row-action-menu.action-dots .row-action-popover{right:0;top:39px;min-width:150px;text-align:left}.row-action-menu.action-dots .row-action-popover a{font-size:11.5px}

.table-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 3px 0;color:#718096;font-size:11.5px}.page-size-control{display:flex;align-items:center;gap:8px;white-space:nowrap}.page-size-control select{width:62px;height:34px;padding:0 22px 0 9px;border-radius:8px;font-size:11.5px}.compact-pagination{display:flex;align-items:center;gap:7px;margin:0;padding:0}.compact-pagination .page-numbers{display:flex;align-items:center;gap:4px}.page-nav,.page-number{min-width:32px;height:32px;padding:0 9px;border:1px solid #d9e1ec;border-radius:8px;background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#334e73;font-weight:700;font-size:11px}.page-number{padding:0;min-width:32px}.page-number.active{background:#17365d;border-color:#17365d;color:#fff}.page-nav:hover,.page-number:hover{background:#edf3fb}.page-nav.disabled{opacity:.42;cursor:default}.page-ellipsis{padding:0 3px;color:#8a96a8}

.pipeline-stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:4px 0 15px}.pipeline-stage-card{position:relative;background:#fff;border:1px solid #e1e6ef;border-radius:13px;padding:14px 14px 12px;box-shadow:0 4px 14px rgba(23,54,93,.035);overflow:hidden;transition:.15s ease}.pipeline-stage-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#8fa1b8}.pipeline-stage-card span,.pipeline-stage-card strong,.pipeline-stage-card small{display:block;position:relative;z-index:1}.pipeline-stage-card span{font-size:11.5px;color:#6f7c91;font-weight:700}.pipeline-stage-card strong{font-size:23px;color:#17365d;margin:8px 0 5px}.pipeline-stage-card small{font-size:10.5px;color:#8792a5}.pipeline-stage-card.accent-blue:before{background:#2f69dc}.pipeline-stage-card.accent-purple:before{background:#7455a7}.pipeline-stage-card.accent-orange:before{background:#d97706}.pipeline-stage-card.accent-green:before{background:#159447}.pipeline-stage-card.accent-red:before{background:#c0504d}.pipeline-stage-card.selected{border-color:#9fb3d0;box-shadow:0 7px 18px rgba(23,54,93,.11);transform:translateY(-1px)}.pipeline-scope-line{display:flex;gap:8px;align-items:center;margin:-3px 0 12px;padding:7px 10px;background:#f3f6fa;border-radius:8px;color:#64748b;font-size:11px}.pipeline-scope-line a{margin-left:auto;font-weight:700}.pipeline-group-opportunity{background:#ddebf7;color:#203864}.pipeline-group-quotation{background:#e4dfec;color:#594779}.pipeline-group-negotiation{background:#fce4d6;color:#9a4f08}.pipeline-group-won{background:#e2f0d9;color:#385723}.pipeline-group-lost{background:#f4cccc;color:#8a1c13}.probability-value{font-weight:800;color:#405675}

@media(max-width:1180px){.app-sidebar{width:235px}.app-content.container{margin-left:235px;width:calc(100% - 235px);padding-left:24px;padding-right:24px}.sidebar-brand{grid-template-columns:66px 1fr}.sidebar-logo{width:64px}.sidebar-brand strong{font-size:13px}.sales-module-filter{grid-template-columns:1.25fr 140px 165px 74px 64px}.inquiry-module-filter{grid-template-columns:1.25fr 125px 120px 155px 74px 64px}.pipeline-stage-grid{gap:8px}.pipeline-stage-card{padding-left:11px;padding-right:11px}}
@media(max-width:980px){.app-sidebar{position:relative;width:100%;height:auto;min-height:auto;padding:10px 14px}.sidebar-brand{height:66px;min-height:66px;flex-basis:66px;grid-template-columns:58px 1fr;border-bottom:0}.sidebar-logo{width:54px;height:42px}.sidebar-nav{display:flex;overflow-x:auto;overflow-y:hidden;padding:8px 0}.sidebar-link{white-space:nowrap;min-height:42px}.sidebar-nav-separator,.sidebar-link-utility,.sidebar-user,.sidebar-version{display:none}.app-content.container{margin-left:0;width:100%;padding:22px 18px 48px}.workspace-tools{top:15px;right:18px}.module-page-heading,.page-heading,.appscript-page-heading{padding-right:225px}.sales-module-filter,.inquiry-module-filter{grid-template-columns:1fr 1fr 1fr}.pipeline-module-filter{grid-template-columns:1fr 1fr}.pipeline-stage-grid{grid-template-columns:repeat(3,1fr)}.module-table-wrap{overflow-x:auto}.module-records-table{min-width:820px}}
@media(max-width:700px){.workspace-tools{position:static;padding:12px 18px 0;justify-content:flex-end}.module-page-heading,.page-heading,.appscript-page-heading{padding-right:0;min-height:auto}.sales-module-filter,.inquiry-module-filter,.pipeline-module-filter{grid-template-columns:1fr}.pipeline-stage-grid{grid-template-columns:repeat(2,1fr)}.table-footer{align-items:flex-start;flex-direction:column}.compact-pagination{width:100%;justify-content:space-between}.page-numbers{overflow-x:auto}.module-table-wrap{overflow-x:auto}.module-records-table{min-width:760px}}

/* ========================================================================== 
   v1.3.5 — Full Apps Script UI Parity
   Visual reference: the approved Google Apps Script Sales Entry System.
   No business/schema logic is changed in this block.
   ========================================================================== */
:root{
  --legacy-sidebar:224px;
  --legacy-navy:#122654;
  --legacy-navy-active:#2e426f;
  --legacy-page:#f4f6fa;
  --legacy-border:#e1e6ef;
  --legacy-copy:#17233c;
  --legacy-muted:#7a8598;
  --legacy-blue:#2f69dc;
  --legacy-orange:#d97706;
  --legacy-green:#159447;
  --legacy-cyan:#0f7f96;
  --legacy-purple:#7455a7;
  --legacy-red:#c0504d;
}
html,body{max-width:100%;overflow-x:hidden}
body.app-authenticated{background:var(--legacy-page);color:var(--legacy-copy)}

/* Approved legacy shell */
.app-sidebar{
  width:var(--legacy-sidebar)!important;
  padding:14px 12px 13px!important;
  background:var(--legacy-navy)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.sidebar-brand{
  flex:0 0 88px!important;
  height:88px!important;
  min-height:88px!important;
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  padding:0 4px 8px!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}
.sidebar-logo{position:static!important;width:70px!important;height:44px!important;max-height:44px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important}
.sidebar-brand>div,.sidebar-brand-copy{position:static!important;min-width:0!important}
.sidebar-brand strong{font-size:13.5px!important;line-height:1.15!important;white-space:nowrap!important}.sidebar-brand span{font-size:10.5px!important;margin-top:4px!important;color:#cbd4e5!important;white-space:nowrap!important}
.sidebar-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  display:grid!important;
  align-content:start!important;
  gap:3px!important;
  padding:17px 0 10px!important;
  overflow:hidden!important;
}
.sidebar-link{min-height:46px!important;padding:0 11px!important;border-radius:9px!important;gap:10px!important;color:#e8edf7!important;font-size:13.5px!important;font-weight:500!important}
.sidebar-link:hover{background:rgba(255,255,255,.07)!important}.sidebar-link.active{background:var(--legacy-navy-active)!important;color:#fff!important}
.sidebar-icon{width:19px!important;font-size:17px!important;color:#fff!important}
.sidebar-footer{flex:0 0 auto;border-top:1px solid rgba(255,255,255,.11);padding-top:10px}
.sidebar-user{margin:0!important;padding:7px 3px 8px!important;border:0!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) 26px!important;gap:8px!important;align-items:center!important}
.sidebar-avatar{width:36px!important;height:36px!important;font-size:14px!important}.sidebar-user-text strong{font-size:11.5px!important;color:#fff!important}.sidebar-user-text span{font-size:9.5px!important;margin-top:3px!important;color:#bdc9dc!important}
.sidebar-version{padding:0 3px!important;font-size:9.5px!important;color:#8193b5!important}
.sidebar-user-menu{position:relative}.sidebar-user-menu>summary{list-style:none;width:26px;height:30px;display:grid;place-items:center;color:#b9c6da;cursor:pointer;border-radius:7px;font-size:18px}.sidebar-user-menu>summary::-webkit-details-marker{display:none}.sidebar-user-menu>summary:hover,.sidebar-user-menu[open]>summary{background:rgba(255,255,255,.08);color:#fff}
.sidebar-user-popover{position:absolute;left:calc(100% + 8px);bottom:0;z-index:220;min-width:172px;background:#fff;border:1px solid #d9e1ec;border-radius:10px;padding:5px;box-shadow:0 12px 30px rgba(13,30,67,.20)}
.sidebar-user-popover a,.sidebar-user-popover button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px;color:#17365d;font:inherit;font-size:11.5px;cursor:pointer}.sidebar-user-popover a:hover,.sidebar-user-popover button:hover{background:#edf3fb}
.sidebar-user-popover form{margin:0}

.app-content.container{
  margin-left:var(--legacy-sidebar)!important;
  width:calc(100% - var(--legacy-sidebar))!important;
  max-width:none!important;
  min-width:0!important;
  padding:25px 28px 56px!important;
  overflow-x:hidden!important;
}
.workspace-tools{position:absolute!important;right:28px!important;top:24px!important;gap:9px!important;z-index:75!important}
.workspace-tools .notification-bell{width:42px!important;height:42px!important;border-radius:10px!important;font-size:18px!important;background:#fff!important;border:1px solid #dce3ed!important;box-shadow:0 2px 7px rgba(23,54,93,.04)!important}
.workspace-primary-action{height:42px!important;padding:0 16px!important;border-radius:9px!important;background:#0b2a67!important;border-color:#0b2a67!important;font-size:12.5px!important;font-weight:800!important;box-shadow:none!important;white-space:nowrap!important}.workspace-primary-action:hover{background:#153b7b!important;transform:none!important}.workspace-plus{font-size:16px!important;margin-right:4px!important}

/* Headings / filters follow the old Apps Script proportions */
.dashboard-title-row,.module-page-heading,.page-heading,.appscript-page-heading{min-height:72px!important;padding-right:220px!important;margin-bottom:9px!important;align-items:flex-start!important}
.dashboard-title-row h1,.module-page-heading h1,.page-heading h1,.appscript-page-heading h1{font-size:27px!important;line-height:1.1!important;margin:4px 0 0!important;color:#17213a!important;letter-spacing:-.015em}.dashboard-title-row p,.module-page-heading p,.page-heading p,.appscript-page-heading p{font-size:13px!important;line-height:1.35!important;margin:7px 0 0!important;color:#7b8496!important;max-width:720px!important}
.module-filter{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;width:100%!important;max-width:none!important;margin:0 0 14px!important}
.module-filter input,.module-filter select,.module-filter .btn{height:40px!important;border-radius:8px!important;font-size:12px!important;min-width:0!important;margin:0!important}
.module-filter input{flex:1 1 285px!important;max-width:none!important}.module-filter select{flex:0 1 190px!important}.inquiry-module-filter select:nth-of-type(1){flex-basis:155px!important}.inquiry-module-filter select:nth-of-type(2){flex-basis:135px!important}.pipeline-module-filter select{flex-basis:205px!important}
.module-filter .module-search-btn{flex:0 0 76px!important;padding:0 12px!important}.module-filter .module-clear-btn{flex:0 0 66px!important;padding:0 10px!important}
.module-search-btn,.module-clear-btn{background:#fff!important;color:#17365d!important;border:1px solid #d7dfeb!important;font-weight:700!important}.module-search-btn:hover,.module-clear-btn:hover{background:#f7f9fc!important;border-color:#b9c8db!important}
.linked-filter-note{font-size:11px!important;padding:8px 10px!important;margin-bottom:10px!important}

/* Dashboard exactly follows the approved white-card + top-accent philosophy */
.dashboard-filter-panel.appscript-filter-panel{margin-bottom:13px!important}.appscript-period-switch{padding:3px!important;border-radius:10px!important;margin-bottom:13px!important}.appscript-period-switch .period-option{padding:8px 14px!important;font-size:11.5px!important;border-radius:8px!important}
.dashboard-filter-fields.appscript-filter-fields{display:grid!important;grid-template-columns:135px 135px minmax(170px,1fr) minmax(165px,1fr) 72px 62px!important;gap:8px!important;max-width:900px!important}.appscript-filter-fields input[type=text],.appscript-filter-fields select,.appscript-filter-fields .btn{height:40px!important;border-radius:8px!important;font-size:11.5px!important}.scope-chip{margin-top:9px!important;padding:5px 9px!important;font-size:10px!important}
.appscript-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:12px 0 16px!important}.appscript-kpi{min-height:112px!important;border-radius:13px!important;padding:17px 17px 13px!important;box-shadow:0 5px 14px rgba(23,54,93,.035)!important}.appscript-kpi:after{width:78px!important;height:78px!important;right:-27px!important;top:-34px!important}.appscript-kpi span{font-size:11.5px!important}.appscript-kpi strong{font-size:24px!important;margin:13px 0 8px!important}.appscript-kpi strong.money{font-size:22px!important}.appscript-kpi small{font-size:9.8px!important}
.dashboard-panel,.salesperson-performance-panel,.pipeline-summary-panel{border-radius:13px!important;padding:16px 17px!important;box-shadow:0 5px 14px rgba(23,54,93,.035)!important}.dashboard-panel-head{margin-bottom:12px!important}.dashboard-panel-head h2{font-size:16px!important}.dashboard-panel-head p{font-size:10.5px!important}.stage-list{gap:10px!important}.stage-name,.stage-numbers strong{font-size:11.5px!important}.stage-numbers span{font-size:9.5px!important}.stage-track{height:5px!important}.performance-table th{font-size:9.5px!important}.performance-table td{font-size:11.5px!important;padding:9px 10px!important}

/* Old project table language: compact rows, light header, no horizontal overflow */
.module-table-wrap{width:100%!important;max-width:100%!important;overflow:visible!important;border:1px solid var(--legacy-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 13px rgba(23,54,93,.025)!important}
.module-records-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
.module-records-table thead th{background:#fbfcfe!important;color:#17365d!important;font-size:9.5px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.025em!important;padding:10px 10px!important;border-bottom:1px solid #dde4ed!important;white-space:normal!important}
.module-records-table tbody td{font-size:11.2px!important;line-height:1.3!important;padding:10px 10px!important;border-bottom:1px solid #e8edf3!important;vertical-align:top!important;background:#fff!important;overflow-wrap:anywhere!important}.module-records-table tbody tr:last-child td{border-bottom:0!important}.module-records-table tbody tr:hover td{background:#fbfcff!important}
.record-code{font-size:10.8px!important;line-height:1.26!important}.cell-primary{font-size:11.5px!important}.table-sub{font-size:9.5px!important;line-height:1.25!important;margin-top:3px!important}.requirement-text{font-size:10.5px!important;line-height:1.32!important}.inquiry-records-table .requirement-text{-webkit-line-clamp:2!important}.tag{font-size:9.5px!important;padding:4px 6px!important;border-radius:6px!important}.sla-text{font-size:9.5px!important}
.sales-records-table .col-entry{width:13%!important}.sales-records-table .col-customer{width:18%!important}.sales-records-table .col-product{width:18%!important}.sales-records-table .col-value{width:12%!important}.sales-records-table .col-status{width:17%!important}.sales-records-table .col-follow{width:18%!important}.sales-records-table .col-action{width:4%!important}
.inquiry-records-table .inq-code{width:14%!important}.inquiry-records-table .inq-customer{width:15%!important}.inquiry-records-table .inq-source{width:13%!important}.inquiry-records-table .inq-status{width:14%!important}.inquiry-records-table .inq-owner{width:13%!important}.inquiry-records-table .inq-requirement{width:27%!important}.inquiry-records-table .inq-action{width:4%!important}
.pipeline-records-table .opp-code{width:18%!important}.pipeline-records-table .opp-customer{width:25%!important}.pipeline-records-table .opp-value{width:16%!important}.pipeline-records-table .opp-prob{width:9%!important}.pipeline-records-table .opp-stage{width:13%!important}.pipeline-records-table .opp-follow{width:15%!important}.pipeline-records-table .opp-action{width:4%!important}
.action-cell{padding-left:3px!important;padding-right:5px!important;text-align:center!important}.row-action-menu.action-dots{width:28px!important;min-width:28px!important}.row-action-menu.action-dots>summary{width:28px!important;height:28px!important;min-height:28px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#4e6381!important;font-size:18px!important}.row-action-menu.action-dots>summary:hover,.row-action-menu.action-dots[open]>summary{background:#edf3fb!important;color:#17365d!important}.row-action-menu.action-dots .row-action-popover{right:0!important;top:32px!important;min-width:145px!important;border-radius:8px!important;padding:4px!important;box-shadow:0 10px 25px rgba(23,54,93,.16)!important}.row-action-menu.action-dots .row-action-popover a{font-size:10.5px!important;padding:8px 9px!important}

/* Pagination is visually attached to the old-style table */
.table-footer{min-height:43px!important;padding:9px 4px 0!important;font-size:10.5px!important}.page-size-control select{height:30px!important;width:58px!important;font-size:10.5px!important}.page-nav,.page-number{height:29px!important;min-width:29px!important;border-radius:7px!important;font-size:10px!important}.page-number{padding:0!important}.compact-pagination{gap:5px!important}

/* Apps Script Sales Pipeline: five business-stage cards, then compact records */
.pipeline-stage-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin:5px 0 14px!important;width:100%!important}
.pipeline-stage-card{display:block!important;position:relative!important;min-width:0!important;min-height:92px!important;background:#fff!important;border:1px solid #e1e6ef!important;border-radius:12px!important;padding:14px 13px 11px!important;box-shadow:0 4px 13px rgba(23,54,93,.03)!important;overflow:hidden!important;color:#17365d!important}.pipeline-stage-card:before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:4px!important;background:#8fa1b8!important}.pipeline-stage-card:after{content:"";position:absolute;width:66px;height:66px;border-radius:50%;right:-24px;top:-28px;background:#f2f4f7}.pipeline-stage-card span,.pipeline-stage-card strong,.pipeline-stage-card small{display:block!important;position:relative!important;z-index:1!important}.pipeline-stage-card span{font-size:10.5px!important;color:#68768c!important;font-weight:700!important}.pipeline-stage-card strong{font-size:21px!important;margin:8px 0 4px!important;color:#17365d!important}.pipeline-stage-card small{font-size:9.5px!important;color:#8b96a7!important;white-space:nowrap!important}.pipeline-stage-card.accent-blue:before{background:var(--legacy-blue)!important}.pipeline-stage-card.accent-purple:before{background:var(--legacy-purple)!important}.pipeline-stage-card.accent-orange:before{background:var(--legacy-orange)!important}.pipeline-stage-card.accent-green:before{background:var(--legacy-green)!important}.pipeline-stage-card.accent-red:before{background:var(--legacy-red)!important}.pipeline-stage-card.accent-blue strong{color:#255ed4!important}.pipeline-stage-card.accent-purple strong{color:#684f97!important}.pipeline-stage-card.accent-orange strong{color:#b85b00!important}.pipeline-stage-card.accent-green strong{color:#14843e!important}.pipeline-stage-card.accent-red strong{color:#ad3d38!important}.pipeline-stage-card.selected{border-color:#8da5c8!important;box-shadow:0 7px 17px rgba(23,54,93,.10)!important;transform:none!important}.pipeline-scope-line{margin:-2px 0 10px!important;font-size:10px!important;padding:6px 9px!important;border-radius:7px!important}

/* General legacy panels/forms */
.panel,.form-card,.detail-card,.module-card,.dashboard-panel{border-color:#e2e7ef!important;box-shadow:0 5px 15px rgba(23,54,93,.035)!important}.btn{border-radius:8px}.alert{border-radius:9px!important}

@media(max-width:1160px){
  :root{--legacy-sidebar:196px}
  .sidebar-brand{grid-template-columns:58px minmax(0,1fr)!important}.sidebar-logo{width:57px!important}.sidebar-brand strong{font-size:11.5px!important}.sidebar-brand span{font-size:9.5px!important}.sidebar-link{font-size:12px!important;padding:0 9px!important}.sidebar-icon{font-size:15px!important}
  .app-content.container{padding-left:22px!important;padding-right:22px!important}.workspace-tools{right:22px!important}
  .module-filter input{flex-basis:220px!important}.module-filter select{flex-basis:150px!important}.pipeline-stage-grid{gap:7px!important}.pipeline-stage-card{padding-left:10px!important;padding-right:10px!important}
}
@media(max-width:920px){
  .app-sidebar{position:relative!important;width:100%!important;height:auto!important;min-height:auto!important;padding:9px 12px!important}.sidebar-brand{height:62px!important;min-height:62px!important;flex-basis:62px!important;grid-template-columns:54px 1fr!important;border-bottom:0!important}.sidebar-logo{width:52px!important;height:38px!important}.sidebar-nav{display:flex!important;overflow-x:auto!important;padding:7px 0!important;gap:4px!important}.sidebar-link{white-space:nowrap!important;min-height:40px!important}.sidebar-footer{display:none!important}
  .app-content.container{margin-left:0!important;width:100%!important;padding:21px 18px 46px!important}.workspace-tools{top:14px!important;right:18px!important}.dashboard-title-row,.module-page-heading,.page-heading,.appscript-page-heading{padding-right:210px!important}
  .module-filter{flex-wrap:wrap!important}.module-filter input{flex:1 1 100%!important}.module-filter select{flex:1 1 160px!important}.pipeline-stage-grid{grid-template-columns:repeat(3,1fr)!important}.module-table-wrap{overflow-x:auto!important}.module-records-table{min-width:780px!important}
}
@media(max-width:650px){
  .workspace-tools{position:static!important;padding:10px 18px 0!important;justify-content:flex-end!important}.dashboard-title-row,.module-page-heading,.page-heading,.appscript-page-heading{padding-right:0!important;min-height:auto!important;margin-bottom:16px!important}.module-filter{display:grid!important;grid-template-columns:1fr!important}.module-filter input,.module-filter select,.module-filter .btn{width:100%!important;max-width:none!important}.pipeline-stage-grid{grid-template-columns:repeat(2,1fr)!important}.appscript-kpi-grid{grid-template-columns:1fr!important}.table-footer{align-items:flex-start!important;flex-direction:column!important}.compact-pagination{width:100%!important;justify-content:space-between!important}
}
.pipeline-id-block{display:grid;gap:2px;min-width:0}.pipeline-id-block .cell-primary{display:block}.module-records-table th:last-child{text-align:center}
/* v1.3.6 Access & Security */
.record-code-link{display:inline-block;color:var(--navy);text-decoration:none}.record-code-link:hover{text-decoration:underline}.danger-link{color:var(--danger)!important}.inline-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.inline-form{display:inline}.auth-secondary-link{display:inline-block;margin-top:6px;text-align:center;font-weight:700}.danger-confirm-panel{max-width:720px}.record-summary{display:grid;grid-template-columns:150px 1fr;gap:10px 18px;margin:18px 0}.record-summary dt{font-weight:800;color:var(--navy-dark)}.record-summary dd{margin:0}.sidebar-user-popover a,.sidebar-user-popover button{white-space:nowrap}

/* v1.3.7 — User account UX, password controls and sidebar menu visibility */
.sidebar-footer{position:relative;z-index:300!important;overflow:visible!important}
.sidebar-user{position:relative;z-index:310!important;overflow:visible!important}
.sidebar-user-menu{position:relative!important;z-index:320!important}
.sidebar-user-menu[open]{z-index:999!important}
.sidebar-user-popover{
  left:auto!important;
  right:0!important;
  bottom:38px!important;
  top:auto!important;
  z-index:1000!important;
  min-width:184px!important;
  max-width:calc(var(--legacy-sidebar) - 18px)!important;
  padding:5px!important;
  background:#fff!important;
  border:1px solid #d9e1ec!important;
  box-shadow:0 14px 34px rgba(7,25,63,.28)!important;
}
.sidebar-profile-link{color:var(--legacy-navy)!important;text-decoration:none!important}
.sidebar-profile-name{display:block;color:#fff!important;text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-profile-name:hover{text-decoration:underline!important;text-underline-offset:2px}

/* Authorized Users follows the same compact action language as Sales/Inquiries. */
.users-table-wrap{overflow-x:hidden!important}
.users-table{table-layout:fixed!important;width:100%!important}
.users-table th:nth-child(1){width:21%}.users-table th:nth-child(2){width:25%}.users-table th:nth-child(3){width:12%}.users-table th:nth-child(4){width:10%}.users-table th:nth-child(5){width:10%}.users-table th:nth-child(6){width:22%}
.users-table td,.users-table th{vertical-align:middle!important}
.user-name-link{color:#17365d!important;text-decoration:none!important}.user-name-link:hover{text-decoration:underline!important;text-underline-offset:2px}
.user-row-actions{gap:10px!important;white-space:nowrap!important}.user-row-actions a,.user-row-actions button{font-size:12px!important;font-weight:700!important}

.account-heading{padding-right:0!important}
.account-profile-card{max-width:860px!important;margin-top:4px!important;padding:22px!important}
.account-profile-top{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid #e5eaf1}
.account-profile-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#17365d;color:#fff;font-size:20px;font-weight:800}
.account-profile-top h2{margin:0!important;font-size:20px!important;color:#17213a!important}.account-profile-top p{margin:4px 0 0;color:#748197;font-size:12px}
.account-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px;margin:16px 0 18px}
.account-detail-grid>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;padding:11px 0;border-bottom:1px solid #edf0f4}
.account-detail-grid dt{color:#76849a;font-size:11px;font-weight:700;text-transform:uppercase}.account-detail-grid dd{margin:0;color:#17213a;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.account-security-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:18px}.account-security-actions form{margin:0}.account-action-btn{height:40px!important;padding:0 14px!important;font-size:12px!important}
.account-security-note{margin:12px 0 0;color:#7c889b;font-size:11px;line-height:1.45}

@media(max-width:760px){
  .account-detail-grid{grid-template-columns:1fr}.users-table-wrap{overflow-x:auto!important}.users-table{min-width:760px!important}
}

/* v1.6.0-RC2 — horizontal controlled-list management */
.controlled-list-heading{margin-bottom:14px!important}.controlled-list-note{margin-bottom:12px!important}
.controlled-list-tabs{display:flex;align-items:stretch;gap:7px;background:#e9eef5;border-radius:11px;padding:4px;margin:0 0 13px;overflow-x:auto}
.controlled-list-tab{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:190px;padding:9px 13px;border-radius:8px;color:#56657a;font-size:11px;font-weight:800;white-space:nowrap}
.controlled-list-tab b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#dce4ee;color:#17365d;font-size:9.5px}
.controlled-list-tab:hover{background:rgba(255,255,255,.55)}.controlled-list-tab.active{background:#fff;color:#17365d;box-shadow:0 2px 8px rgba(23,54,93,.10)}.controlled-list-tab.active b{background:#17365d;color:#fff}
.controlled-list-panel{margin-top:0!important;padding:0!important;overflow:hidden}.controlled-list-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 19px 12px}.controlled-list-panel-head h2{margin:0 0 4px!important;font-size:17px!important}.controlled-list-panel-head p{margin:0;color:#7c899c;font-size:10.5px;line-height:1.4}.system-admin-badge{display:inline-flex;align-items:center;background:#eef5ff;color:#17365d;border:1px solid #d5e3f5;border-radius:999px;padding:6px 10px;font-size:9.5px;font-weight:800;white-space:nowrap}
.controlled-list-table-wrap{width:100%;overflow-x:auto;border-top:1px solid #e7ecf2;border-bottom:1px solid #e7ecf2}.controlled-list-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:680px}.controlled-list-table th{background:#f8fafc;color:#17365d;text-align:left;text-transform:uppercase;letter-spacing:.035em;font-size:9px;font-weight:900;padding:9px 13px;border-bottom:1px solid #e1e7ef}.controlled-list-table td{padding:9px 13px;border-bottom:1px solid #edf1f5;font-size:11px;color:#4b5b72;vertical-align:middle}.controlled-list-table tr:last-child td{border-bottom:0}.controlled-list-table tbody tr:hover td{background:#fbfcfe}.controlled-list-table th:nth-child(1){width:35%}.controlled-list-table th:nth-child(2){width:25%}.controlled-list-table th:nth-child(3){width:10%}.controlled-list-table th:nth-child(4){width:14%}.controlled-list-table code{font-family:Consolas,monospace;font-size:10px;background:#f1f4f8;border-radius:5px;padding:3px 6px;color:#42536a}.controlled-list-actions-col{width:16%!important;text-align:right!important}.controlled-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}.controlled-list-actions form{margin:0}.controlled-list-edit,.controlled-list-delete{height:30px!important;padding:0 10px!important;font-size:9.5px!important;min-width:auto!important}.controlled-list-delete{border-color:#efcbc7!important;background:#fff6f5!important;color:#b53b32!important}.controlled-list-delete:hover{background:#fde9e7!important}.controlled-list-history{display:block;color:#9a7b4d;font-size:8.5px;margin-top:3px}
.controlled-list-editor{padding:15px 19px 18px;background:#fbfcfe}.controlled-list-editor.editing{background:#f5f9ff}.controlled-list-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.controlled-list-editor-head h3{margin:0;color:#17365d;font-size:14px}.controlled-list-editor-head p{margin:3px 0 0;color:#8793a4;font-size:9.5px}.controlled-list-form{display:grid;grid-template-columns:minmax(145px,.8fr) minmax(220px,1.5fr) 105px 95px auto;align-items:end;gap:9px}.controlled-list-form label{display:grid;gap:4px;margin:0}.controlled-list-form label>span{font-size:8.5px;color:#64758b;text-transform:uppercase;letter-spacing:.035em;font-weight:900}.controlled-list-form input[type="text"],.controlled-list-form input[type="number"]{height:36px;border:1px solid #cdd8e6;border-radius:7px;padding:0 9px;font-size:10.5px;background:#fff;width:100%}.controlled-list-check{display:flex!important;align-items:center!important;gap:7px!important;height:36px;padding:0 8px;border:1px solid #d8e1ec;border-radius:7px;background:#fff}.controlled-list-check input{margin:0}.controlled-list-check span{font-size:10px!important;text-transform:none!important;letter-spacing:0!important;color:#43536a!important}.controlled-list-save{height:36px!important;padding:0 13px!important;font-size:10px!important;white-space:nowrap}.controlled-list-form .errorlist{list-style:none;margin:1px 0 0;padding:0;color:#b42318;font-size:8.5px}
@media(max-width:900px){.controlled-list-panel-head{flex-direction:column}.controlled-list-form{grid-template-columns:1fr 1fr}.controlled-list-save{width:100%}.system-admin-badge{white-space:normal}}@media(max-width:600px){.controlled-list-tab{min-width:165px}.controlled-list-form{grid-template-columns:1fr}.controlled-list-table{min-width:620px}}


/* v1.8.6 — Sidebar company brand fit */
.app-sidebar .sidebar-brand{
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:8px!important;
}
.app-sidebar .sidebar-logo{
  width:62px!important;
  height:42px!important;
  max-height:42px!important;
}
.app-sidebar .sidebar-brand-copy{
  min-width:0!important;
  max-width:none!important;
}
.app-sidebar .sidebar-brand-copy strong{
  font-size:13px!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.app-sidebar .sidebar-brand-copy span{
  font-size:10px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* v1.9.0 — Customers & outgoing customer calls */
.customer-module-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;margin:0 0 14px;border-radius:10px;background:#e9eef5}
.customer-module-tab{min-width:118px;padding:8px 14px;border-radius:7px;color:#5b687c;font-size:11.5px;font-weight:800;text-align:center}
.customer-module-tab:hover{background:rgba(255,255,255,.6);color:#17365d}.customer-module-tab.active{background:#fff;color:#17365d;box-shadow:0 2px 8px rgba(23,54,93,.10)}
.customer-record-link{color:#17365d!important;text-decoration:none}.customer-record-link:hover{text-decoration:underline;text-underline-offset:2px}
.customer-module-filter select{flex-basis:185px!important}.customer-call-module-filter{max-width:900px!important}.customer-call-module-filter select{flex:0 1 320px!important}
.customer-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.customer-register-switch{display:flex;align-items:center;gap:5px}
.customer-register-switch a{padding:7px 10px;border-radius:8px;color:#6b778a;font-size:10.5px;font-weight:800}.customer-register-switch a:hover{background:#eef3f8;color:#17365d}.customer-register-switch a.active{background:#17365d;color:#fff}
.customer-bulk-button{height:34px!important;padding:0 12px!important;font-size:10.5px!important;background:#fff!important;color:#17365d!important;border-color:#cfd9e7!important}
.customer-records-table .customer-select-col{width:3.5%}.customer-records-table .customer-name-col{width:17%}.customer-records-table .customer-contact-col{width:15%}.customer-records-table .customer-class-col{width:11%}.customer-records-table .customer-owner-col{width:18%}.customer-records-table .customer-last-col{width:15%}.customer-records-table .customer-activity-col{width:16%}.customer-records-table .customer-action-col{width:4.5%}
.customer-select-cell{text-align:center!important;vertical-align:middle!important}.customer-select-cell input{width:15px;height:15px;margin:0;accent-color:#17365d}
.customer-activity-counts{display:block;color:#4b5b72;font-size:10.5px}.customer-activity-counts b{color:#17365d}.temporary-owner-note{color:#9b5b00!important;font-weight:750!important}
.customer-classification-personal{background:#eef4ff;color:#315f9a}.customer-classification-company{background:#f1edfb;color:#684f97}.customer-classification-government{background:#e6f6f8;color:#0f778b}
.customer-call-records-table .call-number-col{width:13%}.customer-call-records-table .call-customer-col{width:16%}.customer-call-records-table .call-caller-col{width:14%}.customer-call-records-table .call-outcome-col{width:19%}.customer-call-records-table .call-notes-col{width:21%}.customer-call-records-table .call-result-col{width:12%}.customer-call-records-table .call-action-col{width:5%}
.sales-all-records-table .col-entry{width:16%!important}.sales-all-records-table .col-customer{width:16%!important}.sales-all-records-table .col-product{width:17%!important}.sales-all-records-table .col-status{width:15%!important}.sales-all-records-table .col-details{width:18%!important}.sales-all-records-table .col-follow{width:14%!important}.sales-all-records-table .col-action{width:4%!important}
.call-status-open{background:#fff5e8;color:#9b5b00}.call-status-converted{background:#e8f5ec;color:#19733d}.call-status-closed{background:#eef2f7;color:#53647a}
.call-outcome-purchase,.call-outcome-repair,.call-outcome-project{background:#e8f5ec;color:#19733d;border:1px solid #d3ead9}.call-outcome-complaint{background:#fff0ef;color:#ad3d38;border:1px solid #f0d4d1}.call-outcome-no_requirement{background:#eef2f7;color:#53647a;border:1px solid #dfe5ed}.call-outcome-no_answer{background:#fff5e8;color:#9b5b00;border:1px solid #f1dfc5}
.customer-form-panel,.customer-call-form-panel{max-width:980px}
.customer-call-outcomes,.customer-assignment-guidance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.customer-call-outcomes>div,.customer-assignment-guidance>div{position:relative;padding:13px 14px 12px;background:#fff;border:1px solid #e1e7ef;border-radius:11px;box-shadow:0 4px 13px rgba(23,54,93,.025)}
.customer-call-outcomes>div:before,.customer-assignment-guidance>div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:11px 0 0 11px;background:#2f69dc}.customer-call-outcomes>div:nth-child(2):before{background:#c0504d}.customer-call-outcomes>div:nth-child(3):before{background:#8a96a8}
.customer-call-outcomes strong,.customer-call-outcomes span,.customer-assignment-guidance strong,.customer-assignment-guidance span{display:block}.customer-call-outcomes strong,.customer-assignment-guidance strong{color:#17365d;font-size:11.5px}.customer-call-outcomes span,.customer-assignment-guidance span{margin-top:4px;color:#7a8799;font-size:9.8px;line-height:1.4}
.customer-assignment-guidance{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px}.customer-assignment-panel{max-width:980px}.customer-assignment-panel .panel-head>span{color:#748197;font-size:11px;font-weight:750}
.assignment-customer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px}.assignment-customer-list>div{padding:10px 11px;border:1px solid #e6ebf2;border-radius:9px;background:#f9fbfd}.assignment-customer-list strong,.assignment-customer-list span{display:block}.assignment-customer-list strong{font-size:11px;color:#17365d}.assignment-customer-list span{margin-top:3px;font-size:9.5px;color:#7b8799}.customer-assignment-form{padding-top:16px;border-top:1px solid #e7ecf2}
.customer-profile-panel{margin-bottom:14px}.customer-history-panel{margin:14px 0 0!important;padding:17px 18px!important;min-width:0}.customer-history-panel .panel-head{align-items:center}.customer-history-panel .panel-head p{margin:3px 0 0;color:#7c899c;font-size:10px}.customer-history-panel .panel-head .btn{height:34px!important;padding:0 11px!important;font-size:10px!important}
.customer-history-table-wrap{width:100%;overflow-x:auto;border:1px solid #e5eaf1;border-radius:9px}.customer-history-table{width:100%;min-width:650px;border-collapse:collapse;table-layout:auto}
.customer-history-table th{padding:8px 10px;background:#f8fafc;border-bottom:1px solid #e2e7ef;color:#66758b;font-size:8.8px;font-weight:850;text-align:left;text-transform:uppercase;letter-spacing:.03em}.customer-history-table td{padding:9px 10px;border-bottom:1px solid #edf1f5;color:#46556d;font-size:10.5px;line-height:1.4;vertical-align:top}.customer-history-table tr:last-child td{border-bottom:0}.customer-history-table td a{font-weight:800;color:#17365d}
.customer-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.customer-related-grid .customer-history-panel{height:100%}
.record-workflow-sidebar{display:grid;gap:14px;align-content:start;position:sticky;top:18px;min-width:0}
.record-workflow-sidebar .record-workflow-panel,.record-workflow-sidebar .record-history-panel{margin:0!important;min-width:0}
.record-workflow-sidebar .action-center{position:static;top:auto}
.record-workflow-panel .panel-head{align-items:flex-start;margin-bottom:12px}.record-workflow-panel .action-help{margin:5px 0 0}
.opportunity-action-form{display:grid;gap:9px}.opportunity-action-form label{font-size:11px;font-weight:800;color:#17365d}.opportunity-action-form .field-error{margin-top:-5px}.opportunity-action-link{display:flex!important;width:100%;justify-content:center}.opportunity-history-empty{margin:0;color:#7b8799;font-size:11px}
.record-history-panel .timeline-item p{overflow-wrap:anywhere}.call-status-open{color:#9b5b00;font-size:10.5px;font-weight:800}
@media(max-width:1050px){.customer-records-table{min-width:980px!important}.customer-table-wrap,.customer-call-table-wrap{overflow-x:auto!important}.customer-call-records-table,.sales-all-records-table{min-width:980px!important}.customer-related-grid{grid-template-columns:1fr}}
@media(max-width:1050px){.record-workflow-sidebar{position:static}.complaint-workflow-sidebar{position:static}}
@media(max-width:760px){.customer-call-outcomes,.customer-assignment-guidance,.assignment-customer-list{grid-template-columns:1fr}.customer-list-toolbar{align-items:flex-start;flex-direction:column}.customer-bulk-button{width:100%}}

/* v1.9.4 — Shared Dashboard-style operational date scopes. */
.module-period-filter{margin:0 0 14px}.module-period-filter .appscript-period-switch{margin-bottom:0!important}.module-period-custom-fields{display:flex;align-items:flex-end;gap:9px;margin-top:10px}.module-period-custom-fields[hidden]{display:none!important}.module-period-custom-fields label{display:grid;gap:4px;min-width:150px}.module-period-custom-fields label span{color:#64758c;font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.module-period-custom-fields input,.module-period-custom-fields .btn{height:40px!important;min-height:40px!important}.reports-workbench>.module-period-filter{margin-top:0}.report-page>.module-period-filter{margin-bottom:12px}
@media(max-width:600px){.module-period-custom-fields{align-items:stretch;flex-direction:column}.module-period-custom-fields label{min-width:0}.module-period-custom-fields .btn{width:100%}}

/* v1.9.5 — Clearer customer follow-up, ownership and focused assignment actions. */
.customer-records-table .customer-select-col{width:3.5%}.customer-records-table .customer-name-col{width:16%}.customer-records-table .customer-contact-col{width:12%}.customer-records-table .customer-class-col{width:13%}.customer-records-table .customer-owner-col{width:19%}.customer-records-table .customer-last-col{width:16%}.customer-records-table .customer-activity-col{width:15%}.customer-records-table .customer-action-col{width:5.5%}
.customer-records-table thead th{white-space:nowrap!important;font-size:8.5px!important;letter-spacing:.025em!important}.customer-records-table .action-heading{overflow:visible!important;text-overflow:clip!important}.customer-select-cell{overflow:visible!important;text-overflow:clip!important}
.customer-bulk-button:disabled{opacity:.52;cursor:not-allowed}.customer-primary-owner{color:#53647a!important}.customer-upcoming-coverage{color:#315f9a!important;font-weight:700!important}
.customer-follow-up-state{display:inline-flex;width:max-content;max-width:100%;margin-top:4px;padding:3px 7px;border-radius:6px;font-size:9px;font-weight:800;line-height:1.3}.customer-follow-up-never{margin-top:0;background:#fff4e5;color:#925a0c}.customer-follow-up-overdue{background:#fff0ef;color:#a33f3a}.customer-follow-up-recent{background:#eaf5ed;color:#257140}
.customer-activity-counts{display:flex;flex-wrap:wrap;gap:3px 8px}.customer-activity-counts>span{white-space:nowrap}
.assignment-customer-list span b{color:#17365d;font-weight:750}.assignment-current-coverage{color:#926016!important}.customer-assignment-form [hidden],.customer-action-panel [hidden]{display:none!important}.customer-assignment-form input[type="date"]{direction:ltr;text-align:left}.customer-assignment-form .field-help{color:#748197;font-size:9px;line-height:1.4}.assignment-action-note{display:grid;gap:4px;padding:12px 13px;border:1px solid #dce6f5;border-radius:9px;background:#f5f8fc}.assignment-action-note strong{color:#17365d;font-size:10.5px}.assignment-action-note span{color:#62718a;font-size:10px;line-height:1.45}.assignment-temporary-note{background:#fffaf0;border-color:#efdfbe}.assignment-ending-note{background:#eef7f1;border-color:#d4e8d9}
.customer-summary-grid .record-summary-item small{display:block;margin-top:4px;color:#926016;font-size:9px;font-weight:750}.customer-coverage-banner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid #eadfbd;border-radius:10px;background:#fffaf0}.customer-coverage-banner.upcoming{background:#f1f6ff;border-color:#dce6f5}.customer-coverage-banner div{min-width:0}.customer-coverage-banner span,.customer-coverage-banner strong{display:block}.customer-coverage-banner span{color:#768195;font-size:8.7px;font-weight:750;text-transform:uppercase}.customer-coverage-banner strong{margin-top:5px;color:#17365d;font-size:10.3px}
.customer-profile-layout{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(260px,.95fr);gap:14px;align-items:start}.customer-profile-layout .customer-profile-panel{margin-bottom:0}.customer-profile-sidebar{position:static}.customer-action-panel{display:grid;gap:9px}.customer-action-panel .panel-head{margin:0 0 2px}.customer-action-confirm,.customer-action-back{display:flex!important;width:100%;justify-content:center}.customer-action-back{margin-top:4px}
@media(max-width:1050px){.customer-profile-layout{grid-template-columns:1fr}.customer-coverage-banner{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.customer-coverage-banner{grid-template-columns:1fr}}
.searchable-select{position:relative;min-width:0}.searchable-select-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.searchable-select-input{width:100%;padding-right:38px;background:#fff}.searchable-select:after{content:'⌄';position:absolute;right:13px;top:11px;color:#64748b;pointer-events:none}.searchable-select-list{position:absolute;z-index:1000;left:0;right:0;top:calc(100% + 5px);max-height:280px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 18px 38px rgba(15,23,42,.16);padding:5px}.searchable-select-option{display:block;width:100%;border:0;background:#fff;color:#1e293b;text-align:left;padding:10px 11px;border-radius:7px;cursor:pointer;font:inherit}.searchable-select-option:hover,.searchable-select-option:focus{outline:0;background:#eaf1ff;color:#12356b}.searchable-select-option[aria-selected='true']{font-weight:800;background:#f1f5f9}.searchable-select-empty{padding:14px;color:#64748b;text-align:center;font-size:13px}.customer-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.customer-import-preview .table-wrap{margin-bottom:14px}.import-status{display:inline-flex;border-radius:7px;padding:5px 8px;font-size:12px;font-weight:700}.import-status-ready{background:#eaf7f0;color:#147a4b}.import-status-duplicate{background:#fff7e8;color:#9a6700}.import-status-error{background:#fff0ee;color:#b42318}
.dashboard-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:24px 0 12px}.dashboard-section-heading h2{margin:4px 0 0;color:var(--navy-dark);font-size:20px}.dashboard-section-heading small{max-width:560px;color:#64748b;text-align:right;line-height:1.45}.dashboard-filter-fields-simple{grid-template-columns:170px 170px minmax(260px,1fr) auto auto}.dashboard-alert-grid,.dashboard-commercial-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.dashboard-activity-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.text-danger{color:#b42318;font-weight:800}.performance-table{min-width:1050px}@media(max-width:1350px){.dashboard-alert-grid,.dashboard-commercial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-activity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.dashboard-section-heading{align-items:flex-start;flex-direction:column}.dashboard-section-heading small{text-align:left}.dashboard-alert-grid,.dashboard-commercial-grid,.dashboard-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filter-fields-simple{grid-template-columns:1fr 1fr}}@media(max-width:600px){.dashboard-alert-grid,.dashboard-commercial-grid,.dashboard-activity-grid,.dashboard-filter-fields-simple{grid-template-columns:1fr}}
/* Employee performance and daily reporting */
.performance-heading{margin-bottom:18px}
.performance-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.performance-tabs .btn{min-width:150px;justify-content:center}
.performance-date-filter{display:flex;align-items:end;gap:12px;padding:14px 16px;margin-bottom:18px;background:#fff;border:1px solid #dce4ef;border-radius:14px}
.performance-date-filter label{display:grid;gap:6px;min-width:220px;font-weight:700;color:#17233f}
.performance-date-filter label span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#697790}
.performance-date-filter input{min-height:44px;border:1px solid #ced8e6;border-radius:10px;padding:9px 12px;background:#fff;color:#17233f}
.performance-summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0;margin-bottom:22px;background:#fff;border:1px solid #dce4ef;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(24,48,88,.05)}
.performance-summary-strip>div{display:grid;gap:5px;padding:16px 18px;border-right:1px solid #e5eaf2}
.performance-summary-strip>div:last-child{border-right:0}
.performance-summary-strip span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#718098}
.performance-summary-strip strong{color:#10234c;font-size:15px}
.performance-summary-strip small{color:#718098}
.performance-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.performance-kpi-grid .appscript-kpi{min-height:116px}
.performance-kpi-grid .appscript-kpi strong{font-size:30px}
.performance-system-panel,.performance-manual-panel{margin-bottom:24px}
.performance-activity-table,.performance-report-list{width:100%;border-collapse:collapse}
.performance-activity-table th,.performance-report-list th{padding:12px 14px;background:#f7f9fc;color:#24395f;text-transform:uppercase;font-size:11px;letter-spacing:.04em;text-align:left;border-bottom:1px solid #dfe6f0}
.performance-activity-table td,.performance-report-list td{padding:13px 14px;vertical-align:top;border-bottom:1px solid #e6ebf2;color:#3a4760}
.performance-activity-table td:first-child{white-space:nowrap;color:#718098}
.performance-report-header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:18px;padding:18px 20px}
.performance-report-header>div:last-child{display:grid;gap:3px;text-align:right}
.performance-report-header p,.performance-report-header small{margin:4px 0 0;color:#718098}
.report-number-line{display:flex;gap:12px;align-items:center;font-size:20px;color:#10234c}
.performance-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#e8edf4;color:#52627b;font-size:11px;font-weight:800;white-space:nowrap}
.performance-status.status-draft{background:#e8edf4;color:#52627b}
.performance-status.status-submitted{background:#dfeeff;color:#145ca8}
.performance-status.status-reviewed{background:#dcf5e7;color:#167246}
.performance-status.status-returned{background:#fff0d8;color:#9b5a00}
.performance-status.status-notcreated{background:#f2f4f7;color:#667085;border:1px dashed #98a2b3}
.performance-activity-form{margin-top:18px;padding-top:18px;border-top:1px solid #e1e7ef}
.performance-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.performance-month-panel{padding:0;overflow:hidden}
.performance-month-panel .panel-head{padding:18px 20px;border-bottom:1px solid #e2e8f0}
.performance-stat-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px;border-bottom:1px solid #edf1f6}
.performance-stat-list>div:last-child{border-bottom:0}
.performance-stat-list span{color:#65738a}
.performance-stat-list strong{color:#10234c;text-align:right}
.performance-recent-team{margin-top:20px}
.performance-queue-count{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:50%;background:#12356b;color:#fff;font-weight:800}
.performance-employee-filter{min-width:340px!important;flex:1}.performance-date-filter select{min-height:44px;border:1px solid #ced8e6;border-radius:10px;padding:9px 12px;background:#fff;color:#17233f}.performance-team-date-filter{margin-top:20px}.performance-team-status-panel{margin-top:0}.performance-status-summary{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 16px}.performance-status-summary span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #e1e7ef;border-radius:9px;background:#f8fafc;color:#59677d;font-size:12px}.performance-status-summary b{color:#12356b;font-size:14px}.performance-team-status-table{min-width:980px}.performance-delete-panel{max-width:850px}.performance-delete-panel .alert.danger{margin-bottom:18px;background:#fff1f0;border:1px solid #f2c6c2;color:#9f2d24}
.performance-narrative-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.performance-narrative-grid article{min-height:145px}
.performance-narrative-grid article>span{display:block;margin-bottom:10px;color:#65738a;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.performance-narrative-grid article p{margin:0;color:#253653;line-height:1.7}
.performance-review-panel{margin-top:22px;border-top:4px solid #12356b}
@media(max-width:1100px){.performance-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-month-grid{grid-template-columns:1fr}.performance-narrative-grid{grid-template-columns:1fr}}
@media(max-width:700px){.performance-tabs .btn{min-width:0;flex:1 1 45%}.performance-date-filter{align-items:stretch;flex-direction:column}.performance-date-filter label{min-width:0}.performance-kpi-grid{grid-template-columns:1fr}.performance-report-header{align-items:flex-start;flex-direction:column}.performance-report-header>div:last-child{text-align:left}.performance-summary-strip{grid-template-columns:1fr}.performance-summary-strip>div{border-right:0;border-bottom:1px solid #e5eaf2}.performance-narrative-grid{grid-template-columns:1fr}}
@media print{.performance-tabs,.performance-date-filter,.workspace-tools,.app-sidebar,.no-print{display:none!important}.app-content{margin:0!important;padding:0!important}.performance-kpi-grid{grid-template-columns:repeat(4,1fr)}.panel,.performance-summary-strip{box-shadow:none!important;break-inside:avoid}}
