:root{--navy:#102a43;--blue:#1769aa;--cyan:#2bb0ed;--ink:#243b53;--muted:#627d98;--line:#d9e2ec;--bg:#f4f7fb;--green:#14804a;--red:#c62828;--amber:#a86100;--white:#fff}
.top{height:78px!important;position:relative}.layout{min-height:calc(100vh - 78px)!important}.brand img{width:154px!important;height:64px!important;background:#fff;border-radius:8px;padding:2px;object-fit:contain!important}.system-title{position:absolute;left:50%;transform:translateX(-50%);font-size:22px;font-weight:800;letter-spacing:.3px;white-space:nowrap}.login-logo{width:300px!important;height:140px!important;object-fit:contain}.login-title{text-align:center;color:var(--navy);margin:0 0 5px}.share-record{margin-top:8px;padding-top:7px;border-top:1px dashed var(--line)}
.whatsapp-message{min-width:360px;min-height:330px!important;white-space:pre-wrap;line-height:1.45}
.brand{display:flex!important;align-items:center}.brand img{width:158px;height:39px;object-fit:contain;object-position:left center}.login-logo{display:block;width:190px;height:46px;margin:0 auto 10px}.renewal-comments{min-width:300px}.comment-list{max-height:220px;overflow:auto;margin:10px 0}.comment-item{padding:8px;border-bottom:1px solid var(--line)}.comment-meta{font-size:11px;color:var(--muted);margin-bottom:3px}.compact-form{display:flex;gap:6px;align-items:flex-end}.compact-form textarea{min-height:52px;min-width:210px}.direction-inward{background:#e8f3ff;color:#1769aa}.direction-outward{background:#fff2cf;color:#a86100}
.tick-form{display:grid;gap:7px;min-width:210px}.tick-form label{font-size:12px;font-weight:700}.tick-form input[type=text],.tick-form input:not([type]){padding:7px;border:1px solid #bcccdc;border-radius:7px}
@media(max-width:900px){.system-title{font-size:16px}.brand img{width:120px!important}.top .user span{display:none}}@media(max-width:700px){.system-title{display:none}}
.btn.amber{background:#a86100}.review-panel{background:#fff9e6;border:1px solid #efc75e;border-radius:12px;margin-bottom:16px;padding:16px;display:grid;gap:10px}.review-chips{display:flex;gap:7px;flex-wrap:wrap}.review-chip{border-radius:999px;padding:5px 9px;font-size:12px;font-weight:750}.review-chip.missing{background:#ffe0a6;color:#744500}.review-chip.ok{background:#dcf7e9;color:var(--green)}.field.review-required{background:#fff8dc;border:1px solid #e0ad28;border-radius:9px;padding:8px}.field.review-required label:after{content:" · CHECK";color:#a86100;font-size:11px}
.policy-pdf-drop{cursor:pointer;border:2px dashed #72afd0!important;border-radius:12px;padding:18px!important;text-align:center;background:#f4fbff;transition:border-color .15s,background .15s,transform .15s}.policy-pdf-drop input{max-width:520px;margin:8px auto}.policy-pdf-drop .drop-title{font-size:16px;font-weight:800;color:var(--blue);margin:5px}.policy-pdf-drop.drag-active{border-color:var(--green)!important;background:#e8f8ef;transform:scale(1.005)}
.client-sort-header{cursor:pointer;user-select:none;white-space:nowrap}.client-sort-header:hover{color:var(--blue);background:#eaf5fc}.client-sort-header:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}.client-sort-header[data-sort-direction="asc"],.client-sort-header[data-sort-direction="desc"]{color:var(--blue);background:#eaf5fc}.sort-indicator{display:inline-block;margin-left:5px;font-size:10px;color:#8197aa}.client-sort-header[data-sort-direction="asc"] .sort-indicator,.client-sort-header[data-sort-direction="desc"] .sort-indicator{color:var(--blue);font-weight:900}.renewal-filters input[type="search"]{min-width:310px}.renewal-result-count{margin:-5px 0 10px 2px;font-weight:650}
.inline-reset{display:flex;gap:6px;min-width:230px}.inline-reset input{min-width:130px;padding:6px 8px;border:1px solid #bcccdc;border-radius:7px}
.permission-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:350px}.permission-form label{white-space:nowrap;font-size:12px}.customer-fetch{margin-top:4px;padding:8px;background:#eef7fc;border-radius:7px;line-height:1.45}
.access-section{padding:14px;background:#f8fbfe;border:1px solid var(--line);border-radius:10px}.permission-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:9px}.permission-grid label{padding:9px;background:#fff;border:1px solid var(--line);border-radius:7px;font-size:13px}.permission-grid input{width:auto;margin-right:5px}@media(max-width:1000px){.permission-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.permission-grid{grid-template-columns:1fr}}
.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.row-actions form,.actions form,td form{margin:0}.upload-group{margin-top:8px;padding:12px;background:#f6fbfe;border:1px dashed #7abddd;border-radius:9px}
.section-label{padding:10px 12px;background:#eaf5fc;border-left:4px solid var(--blue);border-radius:7px;font-weight:800;color:var(--navy)}[hidden]{display:none!important}.upload-group>.field{margin-top:10px}
.multi-kyc-list{display:grid;gap:7px;margin-top:10px}.kyc-file-row{display:grid;grid-template-columns:1fr minmax(180px,260px);gap:10px;align-items:center;padding:8px;background:#fff;border:1px solid var(--line);border-radius:7px}.kyc-file-row span{overflow-wrap:anywhere}.message-list{display:grid;gap:10px}.message-item{padding:12px;border-radius:9px;border:1px solid var(--line);max-width:78%}.message-in{background:#eef7fc}.message-out{background:#e5f7ec;margin-left:auto}.dashboard-filter{background:#fff;padding:12px;border:1px solid var(--line);border-radius:10px}
.dashboard-card{display:block;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #1769aa22;border-color:#8bc7e8}.dashboard-card .hint{color:var(--blue)}
.account-detail .panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-detail .grid{margin-bottom:0}.account-detail .card{box-shadow:none}.account-meta{margin-bottom:18px;padding:13px;background:#f8fbfe;border:1px solid var(--line);border-radius:9px}.table-scroll{overflow-x:auto}td a:not(.btn){color:var(--blue);font-weight:650;text-decoration:none}td a:not(.btn):hover{text-decoration:underline}
.settings-section>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px}.settings-section>summary::-webkit-details-marker{display:none}.settings-section>summary:after{content:"+";font-size:22px;line-height:1;color:var(--blue);margin-left:4px}.settings-section[open]>summary:after{content:"−"}.settings-section[open]>summary{background:#eef7fc}.settings-section>.panel-body,.settings-section>form.panel-body{border-top:0}.summary-count{margin-left:auto;color:var(--muted);font-size:12px;font-weight:600}
.mobile-menu-toggle{display:none;border:0;background:transparent;color:#fff;font-size:26px;line-height:1;padding:8px;cursor:pointer}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Segoe UI,Arial,sans-serif;font-size:14px}.top{height:64px;background:linear-gradient(110deg,var(--navy),#164e78);display:flex;align-items:center;padding:0 24px;color:#fff;box-shadow:0 2px 12px #0b223933}.brand{font-weight:800;font-size:20px;letter-spacing:.2px}.brand small{font-weight:500;opacity:.72;font-size:12px;margin-left:8px}.top .user{margin-left:auto;display:flex;gap:12px;align-items:center}.top a{color:#fff;text-decoration:none}.layout{display:flex;min-height:calc(100vh - 64px)}nav{width:225px;background:#fff;border-right:1px solid var(--line);padding:18px 12px}nav a{display:block;padding:11px 14px;margin:2px 0;border-radius:8px;color:var(--ink);text-decoration:none;font-weight:600}nav a:hover{background:#eaf5fc;color:var(--blue)}main{flex:1;padding:24px;min-width:0}.head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.head h1{margin:0;font-size:25px;color:var(--navy)}.sub{color:var(--muted);font-size:13px}.grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:15px;margin-bottom:20px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 3px 12px #334e6812}.metric .label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.6px}.metric .value{font-size:26px;font-weight:800;color:var(--navy);margin-top:7px}.metric .hint{font-size:12px;color:var(--muted);margin-top:4px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;overflow:hidden}.panel-title{padding:15px 18px;font-size:16px;font-weight:750;border-bottom:1px solid var(--line);background:#fbfdff}.panel-body{padding:18px}.btn{display:inline-block;border:0;border-radius:8px;padding:9px 14px;background:var(--blue);color:#fff;text-decoration:none;font-weight:700;cursor:pointer;font-size:13px}.btn.secondary{background:#e9f2f9;color:var(--blue)}.btn.green{background:var(--green)}.btn.red{background:var(--red)}.btn.small{padding:6px 10px;font-size:12px}.actions{display:flex;gap:8px;flex-wrap:wrap}table{width:100%;border-collapse:collapse}th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:var(--muted);background:#f8fafc}tr:hover td{background:#fbfdff}.money{text-align:right;white-space:nowrap}.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.badge.paid{background:#dcf7e9;color:var(--green)}.badge.partial{background:#fff2cf;color:var(--amber)}.badge.unpaid{background:#fde4e4;color:var(--red)}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:700;color:#334e68}.field input,.field select,.field textarea{width:100%;padding:10px 11px;border:1px solid #bcccdc;border-radius:8px;background:#fff;font:inherit}.field textarea{min-height:80px}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #b9e5fb;border-color:var(--cyan)}.notice{padding:12px 14px;border-radius:8px;margin-bottom:14px}.notice.ok{background:#ddf7e9;color:#0b6b3a}.notice.error{background:#fde7e7;color:#a61b1b}.notice.warn{background:#fff3cd;color:#795600}.filters{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}.filters input,.filters select{padding:9px 11px;border:1px solid #bcccdc;border-radius:8px}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#102a43,#1769aa)}.login{width:390px;background:#fff;padding:32px;border-radius:16px;box-shadow:0 20px 50px #001a3377}.login h1{color:var(--navy);margin:0 0 5px}.login .field{margin:15px 0}.login .btn{width:100%;padding:12px}.empty{padding:30px;text-align:center;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.kv{display:grid;grid-template-columns:170px 1fr;gap:9px}.kv div:nth-child(odd){color:var(--muted)}.footer{padding:16px 0;color:var(--muted);font-size:12px}.danger{color:var(--red)}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}nav{width:185px}}@media(max-width:700px){.layout{display:block}nav{width:auto;display:flex;overflow:auto;padding:8px}nav a{white-space:nowrap}main{padding:14px}.grid,.two{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.brand small{display:none}}

/* Mobile application layout */
@media(max-width:700px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
  body{font-size:14px}
  .top{height:62px!important;padding:0 9px;position:sticky;top:0;z-index:50;gap:6px}
  .mobile-menu-toggle{display:block;flex:0 0 42px}
  .brand{min-width:0;flex:1}.brand img{width:105px!important;height:48px!important;padding:2px!important}
  .system-title{display:none}.top .user{margin-left:0;gap:9px;font-size:12px;white-space:nowrap}.top .user span,.top .user a:first-of-type{display:none}
  .layout{display:block;min-height:calc(100vh - 62px)!important}
  nav{display:none;position:fixed;left:0;top:62px;bottom:0;width:min(84vw,320px);padding:10px;background:#fff;overflow-y:auto;border-right:1px solid var(--line);box-shadow:8px 0 24px #102a4333;z-index:49}
  nav.mobile-open{display:block}nav a{white-space:normal;padding:12px 14px;border-bottom:1px solid #edf2f7}
  main{width:100%;max-width:100%;padding:10px;overflow:hidden}
  .head{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:13px}.head h1{font-size:21px;line-height:1.2;overflow-wrap:anywhere}.head>.actions{width:100%}
  .actions{gap:6px}.head>.btn,.head>.actions .btn{flex:1;text-align:center}.btn{min-height:40px;padding:10px 12px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.two{grid-template-columns:1fr;gap:10px}
  .card{min-width:0;padding:12px;border-radius:10px}.metric .label{font-size:10px;line-height:1.25;overflow-wrap:anywhere}.metric .value{font-size:19px;line-height:1.2;overflow-wrap:anywhere}.metric .hint{font-size:10px}
  .panel{margin-bottom:12px;border-radius:10px;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.panel-title{padding:12px;font-size:15px;position:sticky;left:0}.panel-body{padding:12px;min-width:0}
  .panel>table,.table-scroll table{width:max-content;min-width:680px}.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  th,td{padding:9px 10px;max-width:260px;overflow-wrap:anywhere}.money{text-align:right;white-space:nowrap}
  .form-grid{grid-template-columns:minmax(0,1fr);gap:11px}.field.full{grid-column:auto}.field input,.field select,.field textarea{min-width:0;font-size:16px;padding:11px}.field input[type=file]{font-size:13px}
  .filters{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.filters input,.filters select,.filters .btn{width:100%;min-width:0;font-size:16px}
  .login-wrap{padding:14px;align-items:center}.login{width:100%;max-width:390px;padding:22px 17px}.login-logo{width:220px!important;max-width:100%;height:105px!important}
  .kv{grid-template-columns:105px minmax(0,1fr);gap:9px}.kv div{min-width:0;overflow-wrap:anywhere}
  .whatsapp-message{min-width:0!important;width:100%;min-height:250px!important}.renewal-comments,.compact-form textarea,.inline-reset,.permission-form{min-width:0;width:100%}.compact-form,.inline-reset{flex-direction:column;align-items:stretch}.inline-reset input{min-width:0}
  .kyc-file-row{grid-template-columns:minmax(0,1fr);gap:7px}.message-item{max-width:94%}.account-detail .panel-title{align-items:flex-start;flex-wrap:wrap}.summary-count{white-space:nowrap}
  details>summary{touch-action:manipulation}.notice{padding:10px 11px;overflow-wrap:anywhere}.footer{text-align:center;padding-bottom:max(16px,env(safe-area-inset-bottom))}
}

@media(max-width:380px){
  .grid{grid-template-columns:1fr}.top .user{gap:6px}.brand img{width:94px!important}.btn{font-size:12px}.metric .value{font-size:21px}
}

/* Display preferences and safe wrapping (desktop + mobile app) */
html[data-font-size="small"] body{font-size:11px!important}html[data-font-size="normal"] body{font-size:14px!important}html[data-font-size="large"] body{font-size:18px!important}html[data-font-size="xlarge"] body{font-size:21px!important}
html[data-font-size="small"] .btn,html[data-font-size="small"] th{font-size:10px}html[data-font-size="large"] .btn,html[data-font-size="large"] th{font-size:15px}html[data-font-size="xlarge"] .btn,html[data-font-size="xlarge"] th{font-size:17px}html[data-font-size="large"] .field input,html[data-font-size="large"] .field select,html[data-font-size="large"] .field textarea,html[data-font-size="xlarge"] .field input,html[data-font-size="xlarge"] .field select,html[data-font-size="xlarge"] .field textarea{font-size:1em}html[data-font-size="large"] .head h1{font-size:31px}html[data-font-size="xlarge"] .head h1{font-size:36px}
.metric-icon{font-size:26px;line-height:1;color:var(--blue);margin-bottom:8px}.settings-icon{font-size:24px;line-height:1;padding:7px;border-radius:50%;display:inline-grid;place-items:center}.settings-icon:hover{background:#ffffff22}.display-settings-page{display:grid;grid-template-columns:minmax(170px,260px) minmax(200px,320px);gap:18px;align-items:end}.display-settings-page .display-toggle{width:auto}.font-preview{grid-column:1/-1;padding:16px;border:1px dashed var(--line);border-radius:9px;font-size:1.2em}.language-form{margin:0}
html[data-font-size="small"] .metric-icon{font-size:20px}html[data-font-size="large"] .metric-icon{font-size:36px}html[data-font-size="xlarge"] .metric-icon{font-size:44px}html[data-font-size="large"] .metric .value{font-size:34px}html[data-font-size="xlarge"] .metric .value{font-size:40px}html[data-font-size="large"] .metric .label,html[data-font-size="large"] .metric .hint{font-size:15px}html[data-font-size="xlarge"] .metric .label,html[data-font-size="xlarge"] .metric .hint{font-size:17px}
.display-controls{display:grid;gap:7px;padding:0 2px 12px;margin-bottom:8px;border-bottom:1px solid var(--line)}.display-controls label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:700}.display-controls select,.display-toggle{min-height:34px;border:1px solid #b9cad8;border-radius:7px;background:#f4f8fb;color:var(--ink);font:inherit;padding:6px 8px}.display-toggle{width:100%;font-weight:750;cursor:pointer}.wrap-text{display:block;min-width:120px;max-width:280px;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}.reminder-alert{border-left:5px solid var(--amber)}
th,td{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.policy-inventory{overflow:hidden}.policy-inventory .table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.policy-table{width:max-content;min-width:1320px}.policy-table th,.policy-table td{white-space:nowrap;overflow-wrap:normal;word-break:normal;max-width:none}.policy-table th:nth-child(1),.policy-table td:nth-child(1){min-width:150px}.policy-table th:nth-child(2),.policy-table td:nth-child(2){min-width:175px}.policy-table th:nth-child(3),.policy-table td:nth-child(3){min-width:250px}.policy-table th:nth-child(4),.policy-table td:nth-child(4){min-width:95px}.policy-table th:nth-child(5),.policy-table td:nth-child(5){min-width:175px}.policy-table th:nth-child(6),.policy-table td:nth-child(6),.policy-table th:nth-child(7),.policy-table td:nth-child(7){min-width:112px}.policy-table .product-cell{white-space:normal;min-width:175px;max-width:260px;overflow-wrap:break-word;word-break:normal}.sort-link{display:inline-flex;align-items:center;gap:4px;color:var(--muted);text-decoration:none;white-space:nowrap}.sort-link:hover,.sort-link.active{color:var(--blue);text-decoration:none}.sort-link span{font-size:11px}.date-cell{white-space:nowrap!important}
.renewal-table{overflow:hidden}.renewal-table .table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}.renewal-table table{width:max-content;min-width:1900px}.renewal-table th{white-space:nowrap;overflow-wrap:normal;word-break:normal}.renewal-table td{overflow-wrap:normal;word-break:normal}.renewal-table th:nth-child(1),.renewal-table td:nth-child(1){min-width:105px;white-space:nowrap}.renewal-table th:nth-child(2),.renewal-table td:nth-child(2){min-width:65px;white-space:nowrap}.renewal-table th:nth-child(3),.renewal-table td:nth-child(3){min-width:160px}.renewal-table th:nth-child(4),.renewal-table td:nth-child(4){min-width:180px}.renewal-table th:nth-child(5),.renewal-table td:nth-child(5){min-width:175px}.renewal-table th:nth-child(6),.renewal-table td:nth-child(6),.renewal-table th:nth-child(7),.renewal-table td:nth-child(7),.renewal-table th:nth-child(8),.renewal-table td:nth-child(8){min-width:330px}.renewal-table th:nth-child(9),.renewal-table td:nth-child(9){min-width:210px}.renewal-table th:nth-child(10),.renewal-table td:nth-child(10){min-width:190px}.renewal-table .btn{white-space:normal;word-break:normal}
/* Generic fixed pane for wide tables. JS measures live column widths so it
   remains correct in Hindi/English and every configured font size. */
.fixed-columns-table{border-collapse:separate;border-spacing:0}.fixed-columns-table .fixed-table-cell{position:sticky;left:var(--fixed-column-left,0);z-index:3;background:var(--white);background-clip:padding-box}.fixed-columns-table th.fixed-table-cell{z-index:5;background:#f8fafc}.fixed-columns-table .fixed-table-edge{box-shadow:7px 0 9px -8px #102a4377}.fixed-columns-table tr:hover td.fixed-table-cell{background:#fbfdff}
html[data-theme="dark"]{--ink:#e7eef7;--muted:#adbdcc;--line:#33485b;--bg:#0d1722;--white:#172534;--blue:#68b8f1;--cyan:#54c7f7;--green:#46c987;--red:#ff7777;--amber:#f0b657}
html[data-theme="dark"] body,html[data-theme="dark"] nav{background:#0d1722;color:var(--ink)}html[data-theme="dark"] nav{background:#132231}html[data-theme="dark"] nav a{color:#e7eef7}html[data-theme="dark"] nav a:hover,html[data-theme="dark"] .settings-section[open]>summary{background:#20384b;color:#8fd1ff}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .login,html[data-theme="dark"] .dashboard-filter,html[data-theme="dark"] .access-section,html[data-theme="dark"] .account-meta,html[data-theme="dark"] .upload-group,html[data-theme="dark"] .kyc-file-row,html[data-theme="dark"] .message-item{background:#172534;color:#e7eef7;box-shadow:none}html[data-theme="dark"] .panel-title,html[data-theme="dark"] th,html[data-theme="dark"] .section-label{background:#1d3041;color:#c6d7e5}html[data-theme="dark"] .fixed-columns-table td.fixed-table-cell{background:#172534}html[data-theme="dark"] .fixed-columns-table th.fixed-table-cell{background:#1d3041}html[data-theme="dark"] tr:hover td,html[data-theme="dark"] .fixed-columns-table tr:hover td.fixed-table-cell{background:#1b2e3e}html[data-theme="dark"] .head h1,html[data-theme="dark"] .metric .value,html[data-theme="dark"] .login-title{color:#eaf5ff}

/* V35: compact dashboard, policy-entry and fit-to-window inventory. */
.metric-icon{font-size:20px;margin-bottom:5px}html[data-font-size="small"] .metric-icon{font-size:16px}html[data-font-size="large"] .metric-icon{font-size:27px}html[data-font-size="xlarge"] .metric-icon{font-size:33px}
form[data-review-missing] .panel-body{padding:13px}form[data-review-missing] .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}form[data-review-missing] .field textarea{min-height:60px}
.policy-table.fit-window{width:100%;min-width:0;table-layout:fixed;font-size:11px}.policy-table.fit-window th,.policy-table.fit-window td{min-width:0!important;white-space:normal;overflow-wrap:anywhere;padding:8px 6px}.policy-table.fit-window th:nth-child(1),.policy-table.fit-window td:nth-child(1){width:4%}.policy-table.fit-window th:nth-child(2),.policy-table.fit-window td:nth-child(2){width:13%}.policy-table.fit-window th:nth-child(3),.policy-table.fit-window td:nth-child(3){width:12%}.policy-table.fit-window th:nth-child(4),.policy-table.fit-window td:nth-child(4){width:15%}.policy-table.fit-window th:nth-child(5),.policy-table.fit-window td:nth-child(5){width:7%}.policy-table.fit-window th:nth-child(6),.policy-table.fit-window td:nth-child(6){width:10%}.policy-table.fit-window th:nth-child(7),.policy-table.fit-window td:nth-child(7),.policy-table.fit-window th:nth-child(8),.policy-table.fit-window td:nth-child(8){width:8%}.policy-table.scroll-columns{width:max-content;min-width:1400px}
.renewal-table table{min-width:2110px}.renewal-table th:nth-child(1),.renewal-table td:nth-child(1){min-width:65px}.renewal-table th:nth-child(2),.renewal-table td:nth-child(2){min-width:105px}.renewal-table th:nth-child(3),.renewal-table td:nth-child(3){min-width:65px}.renewal-table th:nth-child(4),.renewal-table td:nth-child(4){min-width:160px}.renewal-table th:nth-child(5),.renewal-table td:nth-child(5){min-width:180px}.renewal-table th:nth-child(6),.renewal-table td:nth-child(6){min-width:190px}.renewal-table th:nth-child(7),.renewal-table td:nth-child(7){min-width:175px}.renewal-table th:nth-child(8),.renewal-table td:nth-child(8),.renewal-table th:nth-child(9),.renewal-table td:nth-child(9),.renewal-table th:nth-child(10),.renewal-table td:nth-child(10){min-width:330px}.renewal-table th:nth-child(11),.renewal-table td:nth-child(11){min-width:220px}
@media(max-width:1200px){form[data-review-missing] .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){form[data-review-missing] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.policy-table.fit-window{width:max-content;min-width:1300px;table-layout:auto}}

/* Upload/Add Policy only: compact fields that fit their available column width. */
form[data-review-missing] .panel-body{padding:12px}
form[data-review-missing] .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;min-width:0}
form[data-review-missing] .form-grid>.field{min-width:0;max-width:100%;gap:4px}
form[data-review-missing] .form-grid>.field.full{grid-column:1/-1}
form[data-review-missing] .form-grid>.field label{max-width:100%;line-height:1.3;overflow-wrap:break-word}
form[data-review-missing] .form-grid>.field input,
form[data-review-missing] .form-grid>.field select,
form[data-review-missing] .form-grid>.field textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:8px 10px}
form[data-review-missing] .form-grid>.field input[type="file"]{font-size:13px}
form[data-review-missing] .policy-pdf-drop{padding:11px 13px!important;gap:5px}
form[data-review-missing] .policy-pdf-drop input{margin:2px auto;max-width:520px}
form[data-review-missing] .policy-pdf-drop .drop-title{font-size:14px;margin:2px}
form[data-review-missing] .policy-pdf-drop .sub{line-height:1.35}
form[data-review-missing] .actions{margin-bottom:0}
@media(max-width:1250px){form[data-review-missing] .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){form[data-review-missing] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){form[data-review-missing] .form-grid{grid-template-columns:minmax(0,1fr)}form[data-review-missing] .panel-body{padding:10px}form[data-review-missing] .policy-pdf-drop{padding:10px!important}}

/* V36: Renewal Dashboard defaults to a true desktop fit-to-window layout. */
.renewal-table.renewal-fit .table-scroll{overflow-x:hidden}.renewal-table.renewal-fit table{width:100%;min-width:0;table-layout:fixed;font-size:11px}.renewal-table.renewal-fit th,.renewal-table.renewal-fit td{min-width:0!important;width:auto;white-space:normal!important;overflow-wrap:break-word;word-break:normal;padding:7px 5px}.renewal-table.renewal-fit th{font-size:10px;line-height:1.25}.renewal-table.renewal-fit th:nth-child(1){width:4%}.renewal-table.renewal-fit th:nth-child(2){width:7%}.renewal-table.renewal-fit th:nth-child(3){width:4%}.renewal-table.renewal-fit th:nth-child(4){width:10%}.renewal-table.renewal-fit th:nth-child(5){width:10%}.renewal-table.renewal-fit th:nth-child(6){width:10%}.renewal-table.renewal-fit th:nth-child(7){width:10%}.renewal-table.renewal-fit th:nth-child(8){width:11%}.renewal-table.renewal-fit th:nth-child(9){width:11%}.renewal-table.renewal-fit th:nth-child(10){width:13%}.renewal-table.renewal-fit th:nth-child(11){width:10%}.renewal-table.renewal-fit .btn{padding:5px 7px;font-size:10px;line-height:1.25;max-width:100%}.renewal-table.renewal-fit details summary{font-size:10.5px;line-height:1.3;white-space:normal}.renewal-table.renewal-fit textarea,.renewal-table.renewal-fit input{min-width:0;font-size:11px;padding:6px}.renewal-table.renewal-fit .comment-item,.renewal-table.renewal-fit .sub{font-size:10px}.renewal-table.renewal-scroll table{width:max-content;min-width:2110px}
@media(max-width:1050px){.renewal-table.renewal-fit .table-scroll{overflow-x:auto}.renewal-table.renewal-fit table{width:max-content;min-width:1500px;table-layout:auto}.renewal-table.renewal-fit th,.renewal-table.renewal-fit td{min-width:100px!important}.renewal-table.renewal-fit th:nth-child(1),.renewal-table.renewal-fit td:nth-child(1),.renewal-table.renewal-fit th:nth-child(3),.renewal-table.renewal-fit td:nth-child(3){min-width:58px!important}}

/* V38: true fit-to-window dashboard tables; mobile switches to cards. */
.dashboard-lists{align-items:start}.dashboard-list-panel{min-width:0;width:100%;overflow:hidden}.dashboard-table-scroll{width:100%;max-width:100%;overflow:hidden}.dashboard-renewals-table,.dashboard-dues-table{width:100%;min-width:0!important;table-layout:fixed}.dashboard-renewals-table th,.dashboard-renewals-table td,.dashboard-dues-table th,.dashboard-dues-table td{min-width:0!important;padding:9px 6px;word-break:normal;overflow-wrap:normal;vertical-align:top}.dashboard-renewals-table th:nth-child(1){width:15%}.dashboard-renewals-table th:nth-child(2){width:22%}.dashboard-renewals-table th:nth-child(3){width:25%}.dashboard-renewals-table th:nth-child(4){width:38%}.dashboard-renewals-table td:nth-child(1),.dashboard-renewals-table td:nth-child(2){white-space:normal;overflow-wrap:break-word}.dashboard-renewals-table td:nth-child(3),.dashboard-renewals-table td:nth-child(4){overflow-wrap:break-word}.dashboard-dues-table{font-size:12px}.dashboard-dues-table th{font-size:10px}.dashboard-dues-table th:nth-child(1){width:11%}.dashboard-dues-table th:nth-child(2){width:19%}.dashboard-dues-table th:nth-child(3){width:9%}.dashboard-dues-table th:nth-child(4){width:14%}.dashboard-dues-table th:nth-child(5){width:13%}.dashboard-dues-table th:nth-child(6){width:14%}.dashboard-dues-table th:nth-child(7){width:20%}.dashboard-dues-table td:nth-child(1),.dashboard-dues-table td:nth-child(2){overflow-wrap:break-word}.dashboard-dues-table td:nth-child(3){text-align:center}.dashboard-dues-table td:nth-child(4),.dashboard-dues-table td:nth-child(5),.dashboard-dues-table td:nth-child(6){white-space:nowrap;font-size:11px}.dashboard-action-cell{white-space:normal!important;text-align:center}.dashboard-payment-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:120px;min-width:0;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.2;text-align:center;padding:7px 5px}
@media(max-width:1250px){.dashboard-lists{grid-template-columns:1fr}.dashboard-dues-table{font-size:13px}.dashboard-dues-table th{font-size:11px}.dashboard-dues-table td:nth-child(4),.dashboard-dues-table td:nth-child(5),.dashboard-dues-table td:nth-child(6){font-size:12px}}
@media(max-width:700px){.dashboard-table-scroll{overflow:visible}.dashboard-renewals-table,.dashboard-dues-table{display:block}.dashboard-renewals-table tr:first-child,.dashboard-dues-table tr:first-child{display:none}.dashboard-renewals-table tbody,.dashboard-dues-table tbody{display:block}.dashboard-renewals-table tr,.dashboard-dues-table tr{display:grid;grid-template-columns:1fr;gap:0;margin:9px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--white)}.dashboard-renewals-table td,.dashboard-dues-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;width:100%!important;max-width:none;padding:8px 10px;border-bottom:1px solid var(--line);white-space:normal!important;font-size:13px!important;text-align:left!important;overflow-wrap:break-word}.dashboard-renewals-table td:last-child,.dashboard-dues-table td:last-child{border-bottom:0}.dashboard-renewals-table td:before,.dashboard-dues-table td:before{content:attr(data-label);font-size:11px;font-weight:800;text-transform:uppercase;color:var(--muted)}.dashboard-renewals-table td.empty,.dashboard-dues-table td.empty{display:block;text-align:center!important}.dashboard-renewals-table td.empty:before,.dashboard-dues-table td.empty:before{display:none}.dashboard-payment-btn{width:auto;min-width:125px;max-width:100%;white-space:nowrap!important}}
html[data-theme="dark"] .field label{color:#d5e3ef}html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .filters input,html[data-theme="dark"] .filters select,html[data-theme="dark"] .display-controls select,html[data-theme="dark"] .display-toggle{background:#0f1d29;color:#e7eef7;border-color:#456077}html[data-theme="dark"] .btn.secondary{background:#29435a;color:#9bd5ff}html[data-theme="dark"] .notice.warn{background:#493b1e;color:#ffe5a1}html[data-theme="dark"] .notice.ok{background:#173d2e;color:#9be5be}html[data-theme="dark"] .notice.error{background:#4b252a;color:#ffc3c8}
@media(max-width:700px){.wrap-text{min-width:135px;max-width:220px}.display-controls{position:sticky;top:0;background:inherit;z-index:2;padding-top:4px}html[data-theme="dark"] nav{background:#132231}}

/* V49: one-page NSE client dossier */
.ucc-page{max-width:1450px;margin:0 auto;padding-bottom:36px}.ucc-hero{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:32px 36px;border-radius:22px;background:linear-gradient(125deg,#091d35 0%,#123b55 62%,#115f68 100%);color:#fff;box-shadow:0 18px 38px rgba(9,29,53,.16)}.ucc-hero:after{content:"";position:absolute;right:-75px;bottom:-145px;width:350px;height:350px;border:1px solid rgba(255,255,255,.17);border-radius:50%;box-shadow:0 0 0 38px rgba(255,255,255,.035),0 0 0 86px rgba(255,255,255,.025);pointer-events:none}.ucc-eyebrow{font-size:10px;letter-spacing:.2em;font-weight:900;color:#8de7d7}.ucc-hero h1{font-size:clamp(24px,3.5vw,38px);line-height:1.15;letter-spacing:-.035em;margin:9px 0 18px;color:#fff}.ucc-hero-meta{display:flex;gap:10px;flex-wrap:wrap}.ucc-hero-meta span{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);border-radius:100px;padding:8px 13px;font-size:12px;color:#d4e4ee}.ucc-hero-meta b{color:#fff;margin-left:5px}.ucc-hero-status{position:relative;z-index:1;display:flex;align-items:center;gap:9px;background:rgba(205,251,226,.14);border:1px solid rgba(173,244,213,.35);border-radius:100px;padding:8px 13px;font-size:12px;font-weight:800;white-space:nowrap}.ucc-status-dot{height:8px;width:8px;border-radius:50%;background:#67efaa;box-shadow:0 0 0 3px rgba(103,239,170,.2)}.ucc-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.ucc-section{min-width:0;background:var(--white,#fff);border:1px solid var(--line,#dce5eb);border-radius:18px;box-shadow:0 5px 23px rgba(22,50,71,.045);overflow:hidden}.ucc-section-head{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line,#dce5eb)}.ucc-section-head h2{font-size:15px;letter-spacing:-.01em;margin:0}.ucc-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:#e4f6f3;color:#08736e;font-size:10px;font-weight:900}.ucc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;padding:4px 22px 14px}.ucc-item{min-width:0;padding:12px 12px 12px 0;border-bottom:1px solid rgba(125,148,165,.12)}.ucc-item dt{font-size:10px;letter-spacing:.035em;text-transform:uppercase;font-weight:800;color:var(--muted,#6d7c89);margin:0 0 4px}.ucc-item dd{font-size:13px;font-weight:650;line-height:1.42;margin:0;color:var(--text,#142b3e);overflow-wrap:anywhere;white-space:pre-wrap}.ucc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 2px}.ucc-toolbar .actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ucc-fetched,.ucc-note{font-size:12px;color:var(--muted,#647689)}.ucc-note{padding:12px 22px}.ucc-source{margin:16px 0 4px;background:var(--white,#fff);border:1px solid var(--line,#dce5eb);border-radius:16px;overflow:hidden}.ucc-source summary{cursor:pointer;list-style:none;padding:17px 22px;font-size:13px;font-weight:850}.ucc-source summary::-webkit-details-marker{display:none}.ucc-source summary:after{content:'＋';float:right;color:#098d86}.ucc-source[open] summary:after{content:'−'}.ucc-source summary span{font-weight:450;color:var(--muted,#6d7c89);margin-left:6px}.ucc-source .table-scroll{max-height:520px;overflow:auto}.ucc-source th,.ucc-source td{font-size:12px}.ucc-transactions{margin-top:12px}.ucc-transactions .panel-body{margin:0}.ucc-transactions .table-scroll{overflow:auto}.ucc-page .btn{white-space:nowrap}
html[data-theme="dark"] .ucc-section,html[data-theme="dark"] .ucc-source{background:#182a39;border-color:#385066}html[data-theme="dark"] .ucc-item dd{color:#eaf4fc}html[data-theme="dark"] .ucc-item dt,html[data-theme="dark"] .ucc-fetched,html[data-theme="dark"] .ucc-note{color:#aec3d2}html[data-theme="dark"] .ucc-icon{background:#214447;color:#9be7dc}
@media(max-width:960px){.ucc-card-grid{grid-template-columns:1fr}}@media(max-width:620px){.ucc-hero{padding:23px 20px;display:block}.ucc-hero-status{display:inline-flex;margin-top:16px}.ucc-fields{grid-template-columns:1fr;padding:2px 18px 12px}.ucc-section-head{padding:16px 18px}.ucc-item{padding:10px 0}.ucc-toolbar{align-items:flex-start}.ucc-page .btn{white-space:normal}.ucc-source summary span{display:block;margin:4px 0 0}.ucc-hero h1{font-size:27px}}

/* V62 Premium NSE UCC Onboarding */
.ucc-premium-shell{max-width:1180px;margin:0 auto 40px}.ucc-premium-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 30px;margin-bottom:18px;border:1px solid #dfe7e2;border-radius:20px;background:linear-gradient(135deg,#ffffff 0%,#f7fbf8 55%,#eef7f1 100%);box-shadow:0 14px 40px rgba(28,69,46,.08)}.ucc-premium-hero .eyebrow{font-size:12px;letter-spacing:.14em;font-weight:800;color:#557362;margin-bottom:8px}.ucc-premium-hero h1{margin:0 0 6px;font-size:32px;line-height:1.15}.ucc-premium-hero p{margin:0;color:#66756c;font-size:15px}.ucc-stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}.ucc-step{position:relative;min-height:78px;padding:14px 14px 12px 54px;border:1px solid #e1e8e4;border-radius:14px;background:#fff}.ucc-step>span{position:absolute;left:14px;top:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef3ef;font-weight:800;color:#4c6557}.ucc-step b{display:block;font-size:14px;margin-top:1px}.ucc-step small{display:block;margin-top:4px;color:#7a877f}.ucc-step.active{border-color:#c9ded1;background:#f6fbf7}.ucc-step.active>span{background:#1d6b43;color:#fff}.ucc-info-strip{display:flex;gap:18px;align-items:flex-start;padding:14px 18px;margin-bottom:18px;border-radius:14px;border:1px solid #dfe9e2;background:#fbfdfb}.ucc-info-strip strong{white-space:nowrap;color:#244d38}.ucc-info-strip span{color:#627168;line-height:1.5}.ucc-premium-form{display:grid;gap:16px}.ucc-section{border:1px solid #e0e7e3;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(36,66,49,.05)}.ucc-section-head{display:flex;gap:14px;align-items:center;padding:18px 20px;border-bottom:1px solid #edf1ee;background:#fbfdfc}.ucc-section-head .section-no{min-width:38px;height:38px;padding:0 8px;border-radius:12px;background:#eaf4ed;color:#24563a;display:grid;place-items:center;font-size:12px;font-weight:900}.ucc-section-head h2{margin:0;font-size:18px}.ucc-section-head p{margin:3px 0 0;color:#758078;font-size:13px}.ucc-section-body{padding:20px}.ucc-section .field label{font-weight:700;color:#2f3e35}.ucc-section .field input,.ucc-section .field select,.ucc-section .field textarea{border-radius:11px;border-color:#d9e2dd;background:#fff;min-height:43px}.ucc-section .field input:focus,.ucc-section .field select:focus,.ucc-section .field textarea:focus{border-color:#6c9b7d;box-shadow:0 0 0 3px rgba(55,128,82,.11);outline:none}.kyc-name-card{align-items:center;gap:13px;padding:14px 16px;border-radius:14px;border:1px solid #cfe5d6;background:#f4fbf6}.kyc-name-card .verify-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#2f7f4f;color:#fff;font-weight:900}.kyc-name-card div{display:grid;gap:2px}.kyc-name-card small{color:#6c7b72}.kyc-name-card strong{font-size:16px;color:#1d3d2b}.kyc-name-card span:not(.verify-icon){font-size:12px;color:#738078}.ekyc-premium{border-color:#eadfbf}.ekyc-premium .ucc-section-head{background:#fffaf0}.premium-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.ucc-submit-bar{position:sticky;bottom:12px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;margin-top:2px;border:1px solid #d7e3db;border-radius:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);box-shadow:0 12px 36px rgba(30,69,45,.14)}.ucc-submit-bar div{display:grid;gap:3px}.ucc-submit-bar span{font-size:12px;color:#738078}.premium-submit{min-width:210px;min-height:44px;font-weight:800}.recent-ucc{margin-top:18px}.ucc-premium-shell #second-holder-panel,.ucc-premium-shell #guardian-panel{margin:0;border-radius:18px}.ucc-premium-shell #second-holder-panel .panel-title,.ucc-premium-shell #guardian-panel .panel-title{padding:16px 20px;background:#fbfdfc;font-size:16px}.ucc-premium-shell #second-holder-panel .panel-body,.ucc-premium-shell #guardian-panel .panel-body{padding:20px}
@media(max-width:860px){.ucc-premium-hero{padding:22px;flex-direction:column}.ucc-premium-hero h1{font-size:26px}.ucc-stepper{grid-template-columns:repeat(2,1fr)}.ucc-info-strip{flex-direction:column;gap:5px}.ucc-info-strip strong{white-space:normal}.ucc-submit-bar{position:static;align-items:stretch;flex-direction:column}.premium-submit{width:100%}}
@media(max-width:560px){.ucc-stepper{grid-template-columns:1fr}.ucc-step{min-height:64px}.ucc-section-head{align-items:flex-start}.ucc-section-body{padding:16px}.ucc-premium-shell{margin-bottom:20px}}

/* V68 Mutual Fund workspace */
#main-nav.mf-workspace-nav{background:linear-gradient(180deg,#0b3d2e 0%,#0d513b 100%)}
#main-nav.mf-workspace-nav a{border-left:3px solid transparent}
#main-nav.mf-workspace-nav a:hover{background:rgba(255,255,255,.09);border-left-color:#77d6ad}
#main-nav.mf-workspace-nav .workspace-back{margin-bottom:10px;background:rgba(255,255,255,.10);font-weight:700;border-left-color:#fff}
.mf-workspace-main .head h1{color:#123b31}
.mf-workspace-main .metric{border-top:3px solid #198754}
@media(max-width:800px){#main-nav.mf-workspace-nav .workspace-back{margin-bottom:4px}}

/* V72 MF workspace bugfix + premium dashboard */
:root{--mf-green:#0f6a4c;--mf-green-deep:#0b3d2e;--mf-green-soft:#eaf6f0;--mf-gold:#b88a32;--mf-panel:#ffffff;--mf-shadow:0 10px 30px rgba(26,64,48,.08)}
#main-nav.mf-workspace-nav{width:270px;flex:0 0 270px;padding:14px 12px 18px;background:linear-gradient(180deg,#0a3528 0%,#0d4b38 50%,#0b3f30 100%);border-right:0;box-shadow:6px 0 22px rgba(10,53,40,.12);overflow-y:auto}
#main-nav.mf-workspace-nav .mf-nav-head{display:flex;align-items:center;gap:11px;padding:10px 10px 16px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.12);color:#fff}
#main-nav.mf-workspace-nav .mf-nav-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#effff7,#bfead6);color:#0a513a;font-weight:900;letter-spacing:.04em;box-shadow:0 6px 18px rgba(0,0,0,.14)}
#main-nav.mf-workspace-nav .mf-nav-head b{display:block;font-size:15px;color:#fff;line-height:1.2}
#main-nav.mf-workspace-nav .mf-nav-head small{display:block;margin-top:3px;font-size:11px;color:#b9d9ca}
#main-nav.mf-workspace-nav .mf-nav-section{padding:15px 12px 6px;color:#8fc5ae;font-size:10px;font-weight:900;letter-spacing:.14em}
#main-nav.mf-workspace-nav a{display:flex;align-items:center;gap:11px;margin:4px 0;padding:11px 12px;border:1px solid transparent;border-left:0;border-radius:11px;color:#dcefe6!important;font-weight:650;line-height:1.2;transition:background .15s,border-color .15s,transform .15s,color .15s}
#main-nav.mf-workspace-nav a:hover{background:rgba(255,255,255,.085);border-color:rgba(255,255,255,.08);color:#fff!important;transform:translateX(2px)}
#main-nav.mf-workspace-nav a.active{background:linear-gradient(90deg,rgba(255,255,255,.17),rgba(255,255,255,.09));border-color:rgba(255,255,255,.16);color:#fff!important;box-shadow:inset 3px 0 #8ee0ba,0 6px 18px rgba(0,0,0,.08)}
#main-nav.mf-workspace-nav .workspace-back{margin:2px 0 7px;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.09);color:#fff!important}
#main-nav.mf-workspace-nav .mf-nav-icon{width:31px;height:31px;flex:0 0 31px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.085);color:#c8eadb;font-size:10px;font-weight:900;letter-spacing:.02em}
#main-nav.mf-workspace-nav a.active .mf-nav-icon{background:#e6f7ee;color:#0c5a40}
.mf-workspace-main{background:linear-gradient(180deg,#f5f8f6 0,#f3f6f5 100%);padding:26px 28px 42px}
.mf-dashboard-shell{max-width:1540px;margin:0 auto}
.mf-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;margin-bottom:18px;border:1px solid #dbe7e0;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f8fcfa 62%,#edf7f1 100%);box-shadow:var(--mf-shadow)}
.mf-dashboard-hero h1{margin:5px 0 7px;color:#173b2e;font-size:31px;letter-spacing:-.035em}.mf-dashboard-hero p{margin:0;color:#677a70;font-size:14px}.mf-eyebrow{font-size:10px;font-weight:900;letter-spacing:.16em;color:#2e7c5b}.mf-hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.mf-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:13px;margin:18px 0}.mf-kpi{display:block;min-width:0;padding:17px 18px;border:1px solid #dde7e1;border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 5px 18px rgba(30,65,49,.045);transition:transform .15s,box-shadow .15s,border-color .15s}.mf-kpi:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(30,65,49,.10);border-color:#b9d6c6}.mf-kpi span{display:block;color:#687c71;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.mf-kpi strong{display:block;margin:7px 0 4px;font-size:28px;line-height:1;color:#183d2f}.mf-kpi small{display:block;color:#87958d;font-size:11px;line-height:1.35}.mf-kpi.success{border-top:3px solid #2a8c60}.mf-kpi.warning{border-top:3px solid #c58a2a}
.mf-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.85fr);gap:16px;margin-top:16px}.mf-dashboard-columns.mf-lower-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-premium-panel{min-width:0;background:#fff;border:1px solid #dfe8e3;border-radius:18px;box-shadow:0 7px 24px rgba(26,61,46,.05);overflow:hidden}.mf-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #edf2ef}.mf-panel-head h2{margin:2px 0 0;font-size:17px;color:#1d3f32}.mf-panel-head>a{font-size:12px;font-weight:750;color:#1769aa;text-decoration:none}.mf-panel-kicker{font-size:9px;letter-spacing:.14em;font-weight:900;color:#71867b}.mf-count-badge{min-width:30px;height:30px;padding:0 8px;border-radius:999px;display:grid;place-items:center;background:#fff1d7;color:#8d5d0b;font-weight:900}
.mf-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:16px}.mf-action-grid a{position:relative;display:grid;gap:5px;min-height:104px;padding:16px 42px 15px 16px;border:1px solid #e2ebe6;border-radius:14px;background:#fbfdfc;color:inherit;text-decoration:none}.mf-action-grid a:hover{border-color:#b9d5c6;background:#f5fbf7}.mf-action-grid b{color:#214336}.mf-action-grid span{color:#7a8981;font-size:12px;line-height:1.4}.mf-action-grid em{position:absolute;right:15px;top:15px;font-style:normal;font-size:18px;color:#2d8060}.mf-attention-list{display:grid;padding:9px 16px 16px}.mf-attention-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 5px;border-bottom:1px solid #edf1ef;color:#455b50;text-decoration:none}.mf-attention-list a:last-child{border-bottom:0}.mf-attention-list b{min-width:28px;text-align:right;color:#244b3a}.mf-clean-table th{background:#fafcfb;color:#76877f}.mf-clean-table td{font-size:12.5px}.mf-status{display:inline-block;padding:4px 8px;border-radius:999px;background:#edf2ef;color:#476154;font-size:10px;font-weight:850;text-transform:uppercase}.mf-status.active,.mf-status.success{background:#e1f5e9;color:#197247}.mf-status.inactive,.mf-status.rejected,.mf-status.failed{background:#fde8e8;color:#a12424}.mf-status.incomplete,.mf-status.pending{background:#fff2d8;color:#8d6113}.mf-status.neutral{background:#edf2f6;color:#546779}.mf-type-chip{display:inline-block;padding:4px 8px;border-radius:7px;background:#e8f2ed;color:#1b6849;font-size:10px;font-weight:850}
html[data-theme="dark"] #main-nav.mf-workspace-nav{background:linear-gradient(180deg,#092f24,#0b4030)}html[data-theme="dark"] .mf-workspace-main{background:#101c17}html[data-theme="dark"] .mf-dashboard-hero,html[data-theme="dark"] .mf-premium-panel,html[data-theme="dark"] .mf-kpi{background:#182720;border-color:#31463b}html[data-theme="dark"] .mf-dashboard-hero h1,html[data-theme="dark"] .mf-panel-head h2,html[data-theme="dark"] .mf-kpi strong{color:#eaf7ef}html[data-theme="dark"] .mf-action-grid a{background:#17251f;border-color:#31463b}
@media(max-width:1280px){.mf-kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){#main-nav.mf-workspace-nav{width:235px;flex-basis:235px}.mf-workspace-main{padding:20px}.mf-dashboard-columns,.mf-dashboard-columns.mf-lower-grid{grid-template-columns:1fr}.mf-dashboard-hero{align-items:flex-start;flex-direction:column}.mf-hero-actions{justify-content:flex-start}}
@media(max-width:800px){#main-nav.mf-workspace-nav{width:min(86vw,300px);flex-basis:auto}.mf-workspace-main{padding:15px}.mf-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-action-grid{grid-template-columns:1fr}.mf-dashboard-hero{padding:20px}.mf-dashboard-hero h1{font-size:25px}}
@media(max-width:520px){.mf-kpi-grid{grid-template-columns:1fr}.mf-hero-actions .btn{width:100%;text-align:center}.mf-dashboard-hero{border-radius:15px}.mf-premium-panel{border-radius:15px}}
.match-summary{cursor:pointer;color:#067a58;font-weight:800;margin-top:8px}.match-breakdown{background:#fff;border:1px solid #ead99c;border-radius:12px;padding:10px 10px 10px 30px;margin:8px 0}.match-breakdown li{margin:7px 0}.filter-check{display:flex;align-items:center;gap:7px;white-space:nowrap;font-weight:700}
.ucc-action-menu{position:relative}.ucc-action-menu summary{cursor:pointer;list-style:none}.ucc-action-pop{position:absolute;right:0;z-index:20;min-width:230px;background:#fff;border:1px solid #ccd7e2;box-shadow:0 10px 28px #16324f2e;border-radius:10px;padding:7px;display:grid;gap:3px}.ucc-action-pop a,.ucc-action-pop button{display:block;width:100%;border:0;background:#fff;color:#34495e;text-align:left;padding:9px 10px;text-decoration:none;border-radius:7px}.ucc-action-pop a:hover,.ucc-action-pop button:hover{background:#eef8f6;color:#087b61}
/* Customer tab: filterable Family Head and Merge tick lists. */
.customer-picker-panel .panel-body{display:grid;gap:12px}
.customer-picker-panel .field{min-width:0}
.customer-picker-list{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.customer-picker-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,150px) minmax(105px,150px);gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line);cursor:pointer}
.customer-picker-row:last-child{border-bottom:0}
.customer-picker-row[hidden]{display:none!important}
.customer-picker-row>span{min-width:0;overflow-wrap:anywhere}
.customer-picker-row small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.customer-picker-row input[type=checkbox]{width:18px;height:18px;cursor:pointer}
.customer-picker-row.picker-heading{position:sticky;top:0;background:var(--white);font-weight:700;z-index:1;cursor:default}
.customer-picker-panel .notice{margin-bottom:0}
@media(max-width:600px){.customer-picker-row{grid-template-columns:minmax(0,1fr) 72px 72px;gap:5px;padding:8px}.customer-picker-row.picker-heading{font-size:11px}}
.customer-bulk-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:14px;background:var(--white);border:1px solid var(--line);border-radius:10px}
.customer-bulk-toolbar .field{flex:1 1 190px;min-width:0}
.customer-bulk-toolbar .field[hidden]{display:none!important}
.customer-bulk-toolbar select,.customer-bulk-toolbar input{box-sizing:border-box;width:100%;min-width:0}
.customer-bulk-apply{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:2px}
.customer-bulk-hint{margin:7px 0 12px}
.customer-bulk-form table input[type=checkbox]{width:18px;height:18px;cursor:pointer}
[data-customer-row][hidden]{display:none!important}
@media(max-width:600px){.customer-bulk-toolbar{gap:9px}.customer-bulk-toolbar .field{flex:1 1 100%}.customer-bulk-apply{width:100%}}
.customer-review-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(13,28,39,.68);padding:16px}
.customer-review-overlay[hidden]{display:none!important}
.customer-review-card{box-sizing:border-box;width:min(100%,620px);max-height:90vh;overflow:auto;border-radius:14px;background:var(--white);color:inherit;padding:22px;box-shadow:0 16px 50px #0004}
.customer-review-card h2{margin:0 0 8px;font-size:19px}
.customer-review-card ol{max-height:42vh;overflow:auto;padding-left:25px;line-height:1.65}
.customer-review-card li{border-bottom:1px solid var(--line);padding:4px 0;overflow-wrap:anywhere}
.customer-review-buttons{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
/* Customer action bar: keep controls useful at wide and narrow widths. */
.customer-bulk-toolbar{display:grid;grid-template-columns:minmax(220px,1.45fr) minmax(190px,1fr) auto;align-items:end;gap:10px 12px}
.customer-bulk-toolbar .field{min-width:0;width:100%}
.customer-bulk-toolbar .field:first-child{grid-column:1}
.customer-bulk-apply{white-space:nowrap}
.customer-undo-item{border:1px solid var(--line);border-radius:9px;padding:10px;margin:8px 0}
.customer-undo-item summary{cursor:pointer;font-weight:700}
.customer-partial-undo{margin-top:10px}
.customer-undo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.customer-undo-controls input{width:140px;max-width:100%}
/* Employee access: checkboxes must not inherit full-width form input sizing. */
.access-section .permission-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;min-width:0;width:100%;align-items:stretch}
.access-section .permission-form label{display:flex;align-items:center;gap:9px;min-width:0;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--white);font-size:13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.access-section .permission-form input[type="checkbox"]{appearance:auto;width:17px!important;min-width:17px!important;max-width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;margin:0;padding:0;border:0;border-radius:0;accent-color:var(--blue)}
.access-section .permission-grid label{display:flex;align-items:center;gap:9px;min-width:0;line-height:1.35;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.access-section .permission-grid input[type="checkbox"]{width:17px!important;min-width:17px!important;max-width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;margin:0;padding:0;accent-color:var(--blue)}
@media(max-width:1100px){.access-section .permission-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.access-section .permission-form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:950px){.customer-bulk-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-bulk-apply{white-space:normal}}
@media(max-width:600px){.customer-bulk-toolbar{grid-template-columns:minmax(0,1fr)}.customer-bulk-toolbar .field:first-child{grid-column:1}}
.policy-table.fit-window :is(th,td):nth-child(1){width:4%}
.policy-table.fit-window :is(th,td):nth-child(2){width:12%}
.policy-table.fit-window :is(th,td):nth-child(3){width:10%}
.policy-table.fit-window :is(th,td):nth-child(4){width:12%}
.policy-table.fit-window :is(th,td):nth-child(5){width:11%}
.policy-table.fit-window :is(th,td):nth-child(6){width:6%}
.policy-table.fit-window :is(th,td):nth-child(7){width:10%}
.policy-table.fit-window :is(th,td):nth-child(8),.policy-table.fit-window :is(th,td):nth-child(9){width:8%}
.policy-table.fit-window :is(th,td):nth-child(10){width:7%}
.policy-table.fit-window :is(th,td):nth-child(11),.policy-table.fit-window :is(th,td):nth-child(12){width:6%}
.customer-review-conflicts{display:grid;gap:8px;margin:10px 0}
.customer-review-groups{display:grid;gap:12px;margin:12px 0}
.customer-review-group{padding:12px;border:1px solid var(--line);border-radius:9px;min-width:0}
.customer-review-group h3{font-size:15px;margin:0 0 8px}
.customer-review-group select{box-sizing:border-box;width:100%;min-width:0}
.customer-review-card [data-bulk-destination],.customer-review-card [data-bulk-confirm]{margin:12px 0;min-width:0}
.customer-review-card [data-bulk-destination] select,.customer-review-card [data-bulk-confirm] input{box-sizing:border-box;width:100%;min-width:0}
.customer-review-conflicts:empty{display:none}
.customer-review-conflicts .field{min-width:0}
.customer-review-conflicts select{width:100%;min-width:0;box-sizing:border-box}
.own-balance{display:block;color:var(--muted);font-weight:500;white-space:nowrap;margin-top:2px}
.customer-undo-item[hidden]{display:none!important}
[data-undo-filter]{width:min(100%,430px);margin:10px 0}

/* Customer finder filters the existing table, keeping checked rows selected. */
.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(230px,310px) minmax(175px,215px) auto;justify-content:start}
.customer-duplicate-finder{min-width:0}
.customer-duplicate-search{display:grid;grid-template-columns:minmax(90px,110px) minmax(0,1fr);gap:6px}
.customer-duplicate-search select,.customer-duplicate-search input{min-width:0;width:100%}
.customer-duplicate-search input[hidden]{display:none}
.customer-duplicate-finder .sub{line-height:1.35;min-height:16px}
.customer-duplicate-finder [data-duplicate-clear]{margin-top:4px}
.policy-inline-preview{display:inline-block;margin-left:8px;font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:1250px){.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(0,310px) minmax(0,215px)}}
@media(max-width:650px){.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(0,1fr)}}
.customer-review-group-toggle{display:flex;align-items:center;gap:7px;font-weight:700;margin-bottom:9px}
.customer-review-group-toggle input{width:17px;height:17px;margin:0}
.customer-review-group.skipped{opacity:.58}
.renewal-status-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.renewal-status-card{display:block;text-decoration:none;color:inherit;padding:14px 18px}
.renewal-status-card .label,.renewal-status-card .value{display:block;overflow-wrap:anywhere}
.renewal-status-card.active{border:2px solid var(--blue);background:#e9f2f9}
@media(max-width:650px){.renewal-status-cards{grid-template-columns:1fr;gap:8px}.renewal-status-card{display:flex;justify-content:space-between;align-items:center}.renewal-status-card .value{margin:0}}

/* Keep customer mobile numbers readable; scroll the table on narrow screens. */
.customer-list-table :is(th,td):nth-child(4){min-width:122px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.customer-list-table :is(th,td):nth-child(3){min-width:122px}
.customer-bulk-form .customer-list-table :is(th,td):nth-child(4){min-width:122px;white-space:normal}
.customer-bulk-form .customer-list-table :is(th,td):nth-child(5){min-width:122px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
/* Compact Customer controls: view, duplicate finder, and action. */
.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){display:grid;grid-template-columns:minmax(150px,190px) minmax(230px,310px) minmax(210px,280px) auto;align-items:end;justify-content:start;gap:10px;padding:11px 13px}
.customer-bulk-toolbar .field:first-child{grid-column:auto}
.customer-bulk-toolbar .field{margin:0;min-width:0;width:auto}
.customer-bulk-toolbar .field label,.customer-readonly-controls label{display:block;margin-bottom:5px;font-size:12px;font-weight:700;white-space:nowrap}
.customer-bulk-toolbar select,.customer-bulk-toolbar input,.customer-readonly-controls select{height:36px;min-height:36px;padding:5px 9px}
.customer-duplicate-search{grid-template-columns:minmax(115px,145px) minmax(0,1fr)}
.customer-duplicate-search:not(:has(input:not([hidden]))){grid-template-columns:minmax(115px,145px)}
.customer-duplicate-finder [data-duplicate-clear]{margin:3px 0 0;padding:3px 7px}
.customer-bulk-hint{display:none}
.customer-bulk-apply{align-self:end;padding-bottom:0;white-space:nowrap}
.customer-bulk-apply .btn{height:36px;padding:7px 13px}
.customer-readonly-controls{display:inline-block;margin:0 0 10px;padding:9px 12px;background:var(--white);border:1px solid var(--line);border-radius:9px}
@media(max-width:1050px){.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(145px,190px) minmax(200px,1fr) minmax(190px,1fr)}.customer-bulk-apply{grid-column:3}}
@media(max-width:700px){.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.customer-bulk-apply{grid-column:2}.customer-duplicate-search{grid-template-columns:minmax(0,1fr)}.customer-duplicate-search input:not([hidden]){margin-top:6px}}
@media(max-width:480px){.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(0,1fr)}.customer-bulk-apply{grid-column:1;width:auto}}
/* Customer list keeps its columns and controls legible at desktop and phone widths. */
.customer-list-table{min-width:1320px;table-layout:auto}
.customer-list-table th,.customer-list-table td{overflow-wrap:normal;word-break:normal}
.customer-list-table :is(th,td):nth-child(2){min-width:65px;white-space:nowrap}
.customer-list-table :is(th,td):last-child{min-width:175px;white-space:nowrap}
.customer-list-table .row-actions{flex-wrap:nowrap;white-space:nowrap}
.customer-list-table .row-actions .btn{white-space:nowrap}
.customer-list-table .customer-mobile-entry{display:flex;align-items:center;gap:5px;white-space:nowrap}
.customer-mobile-entry input{width:115px;min-width:115px;height:32px;padding:5px 6px;border:1px solid var(--line);border-radius:6px;font:inherit}
.customer-mobile-entry button{white-space:nowrap}
.customer-list-table :is(th,td):nth-child(5){min-width:185px}
.customer-bulk-form .customer-list-table :is(th,td):nth-child(5){min-width:185px}
.customer-bulk-form .customer-list-table :is(th,td):nth-child(2){min-width:65px}
.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(170px,230px) minmax(210px,320px) minmax(260px,350px) auto}
.customer-bulk-toolbar .customer-duplicate-finder{justify-self:start}
.customer-bulk-toolbar .customer-action-control{min-width:260px}
@media(max-width:1050px){.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:repeat(2,minmax(0,1fr))}.customer-bulk-apply{grid-column:auto}.customer-bulk-toolbar .customer-action-control{min-width:0}}
@media(max-width:700px){.customer-bulk-toolbar,.customer-bulk-toolbar:has(.customer-duplicate-finder){grid-template-columns:minmax(0,1fr)}.customer-bulk-apply{grid-column:1}.customer-bulk-toolbar .customer-duplicate-finder{justify-self:stretch}}
.shortcut-bar{position:fixed;left:12px;right:12px;bottom:10px;z-index:10000;display:flex;align-items:center;gap:6px;overflow-x:auto;white-space:nowrap;padding:9px 11px;border:1px solid #8195ad;border-radius:12px;background:#10253e;color:#fff;box-shadow:0 8px 24px #0005;font:13px Arial,sans-serif}.shortcut-bar[hidden]{display:none}.shortcut-heading{font-weight:700;margin-right:6px}.shortcut-item{flex:none;color:inherit;background:#ffffff18;border:1px solid #ffffff35;border-radius:7px;padding:6px 8px;cursor:pointer}.shortcut-item:hover,.shortcut-item:focus-visible{background:#ffffff40}.shortcut-item kbd{display:inline-block;background:#fff;color:#10253e;border-radius:4px;padding:2px 5px;font-weight:700}
/* Keep every available shortcut visible without a horizontal scrollbar. */
.shortcut-bar{left:8px;right:8px;gap:3px;overflow:hidden;padding:6px;font-size:clamp(10px,.76vw,12px)}
.shortcut-heading{flex:none;margin:0 4px 0 2px}
.shortcut-item{flex:1 1 auto;min-width:0;padding:5px 3px;white-space:normal;line-height:1.15;text-align:center}
.shortcut-item kbd{padding:1px 3px}
@media(max-width:1050px){.shortcut-bar{flex-wrap:wrap;justify-content:center;gap:4px}.shortcut-heading{width:100%;text-align:center}.shortcut-item{flex:1 1 105px}}
/* Customer rows fit the available desktop width; narrow screens use readable cards. */
.customer-bulk-form,.customer-bulk-form>.panel,.customer-bulk-form .table-scroll{max-width:100%;min-width:0}
.customer-list-table{min-width:0;width:100%;table-layout:fixed;font-size:12px}
.customer-list-table :is(th,td){min-width:0!important;padding:8px 5px;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.customer-list-table :is(th,td):first-child{width:34px;text-align:center}
.customer-list-table :is(th,td):nth-child(2){width:45px}
.customer-list-table :is(th,td):nth-child(3){width:9%}
.customer-list-table :is(th,td):nth-child(4){width:13%}
.customer-list-table :is(th,td):nth-child(5){width:12%}
.customer-list-table :is(th,td):last-child{width:150px;white-space:normal}
.customer-list-table .row-actions{flex-wrap:wrap;gap:4px;white-space:normal}
.customer-list-table .row-actions .btn{white-space:normal;padding:4px 6px;font-size:11px}
.customer-list-table .customer-mobile-entry{flex-wrap:wrap;white-space:normal}
.customer-list-table .customer-mobile-entry input{min-width:0;max-width:100%}
@media(max-width:1250px){
  .customer-list-table,.customer-list-table tbody{display:block;width:100%}
  .customer-list-table tr:first-child{display:none}
  .customer-list-table tr:not(:first-child){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:8px 0;border:1px solid var(--line);border-radius:9px;overflow:hidden}
  .customer-list-table td{display:grid;grid-template-columns:minmax(95px,38%) minmax(0,1fr);align-items:center;gap:5px;width:auto!important;max-width:none;padding:7px 9px;border-bottom:1px solid var(--line);text-align:left!important}
  .customer-list-table td:before{content:attr(data-label);font-weight:700;color:var(--muted);font-size:11px}
  .customer-list-table td:last-child{grid-column:1/-1}
  .customer-list-table td.empty{display:block;grid-column:1/-1;text-align:center!important}
  .customer-list-table td.empty:before{display:none}
  .customer-list-table .row-actions{justify-content:flex-start}
}
@media(max-width:700px){.customer-list-table tr:not(:first-child){grid-template-columns:minmax(0,1fr)}.customer-list-table td:last-child{grid-column:1}.customer-list-table td{grid-template-columns:105px minmax(0,1fr)}}
.report-card{display:block;text-decoration:none;color:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s}
.report-card:hover,.report-card:focus-visible{transform:translateY(-2px);box-shadow:0 6px 20px #334e6833;outline:2px solid var(--blue);outline-offset:1px}
.list-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:10px 2px 18px;font-size:13px;color:var(--ink)}
.list-pagination form{margin:0}.list-pagination label{display:flex;align-items:center;gap:7px;font-weight:700}
.list-pagination select{border:1px solid var(--line);border-radius:7px;background:var(--white,#fff);color:var(--ink);padding:6px 9px;font:inherit}
.list-pagination button:disabled{opacity:.45;cursor:default}
/* Renewal bulk email selection lives immediately after the Email column. */
.renewal-table.renewal-fit th:nth-child(11){width:8%}
.renewal-table.renewal-fit th:nth-child(12){width:6%;text-align:center}
.renewal-table th:nth-child(12),.renewal-table td:nth-child(12){min-width:75px;text-align:center}
.renewal-table .renewal-email-select,.renewal-table th:nth-child(12) input[type="checkbox"]{width:17px;height:17px;min-width:17px;padding:0;vertical-align:middle}
.renewal-table.renewal-scroll table{min-width:2190px}
/* Signed-in user menu */
.top .account-menu{position:relative;z-index:70;color:#fff;font-size:14px}
.top .account-menu>summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;border-radius:9px;padding:5px 8px;white-space:nowrap;font-weight:600}
.top .account-menu>summary::-webkit-details-marker{display:none}
.top .account-menu>summary:hover,.top .account-menu[open]>summary{background:#ffffff20}
.top .account-avatar{display:grid!important;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#d9f0ff;color:#114268;font-size:13px;font-weight:800;letter-spacing:.2px}
.top .account-name,.top .account-chevron{display:inline!important}
.top .account-menu .account-dropdown{position:absolute;right:0;top:calc(100% + 6px);min-width:204px;max-width:min(88vw,290px);padding:6px;background:#fff;color:#15334d;border:1px solid #dbe4ee;border-radius:10px;box-shadow:0 12px 30px #0b223944}
.top .account-dropdown a,.top .account-dropdown a:first-of-type{display:block!important;padding:10px 12px;border-radius:7px;color:#15334d;text-decoration:none;font-weight:600;white-space:nowrap}
.top .account-dropdown a:hover,.top .account-dropdown a:focus-visible{background:#eaf5fc;color:#075985}
@media(max-width:700px){.top .account-menu>summary{gap:5px;padding:4px}.top .account-menu .account-name{display:none!important}.top .account-menu .account-chevron{display:inline!important}.top .account-avatar{display:grid!important}}

/* Alerts in top bar */
.top .top-alert{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #ffffff55;border-radius:8px;color:#fff;font-weight:700;white-space:nowrap}.top .top-alert:hover{background:#ffffff22}.top .alert-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:12px;background:#f4cb4e;color:#20354b;font-size:12px}.alert-inline{display:inline-block;margin:2px 6px 2px 0}.panel-title .btn{float:right}@media(max-width:700px){.top .top-alert{font-size:12px;padding:5px}.top .alert-count{min-width:18px;height:18px}}
