:root{--bg:#f4f8f7;--panel:#fff;--line:#d7e4e1;--text:#153036;--muted:#64787d;--teal:#0c756f;--dark:#114247;--good:#18794e;--warn:#9a6700;--bad:#b42318;--shadow:0 12px 32px rgba(17,66,71,.08)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}body{padding-top:38px}.preview{position:fixed;z-index:1000;top:0;left:0;right:0;height:38px;display:grid;place-items:center;background:#fff2cc;color:#6d4d00;border-bottom:1px solid #e4c56e;font-weight:900;font-size:12px;letter-spacing:.08em}.shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 38px)}.sidebar{background:var(--dark);color:#e6f1ef;padding:18px 13px;display:flex;flex-direction:column;gap:16px}.brand{display:flex;align-items:center;gap:10px}.brand>div:last-child{display:flex;flex-direction:column}.brand span{font-size:12px;opacity:.78}.mark{width:42px;height:42px;border-radius:12px;background:#e6f4f1;color:var(--dark);display:grid;place-items:center;font-weight:900}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav button{border:0;border-radius:9px;background:transparent;color:#dbeceb;text-align:left;padding:9px 11px;cursor:pointer}.sidebar nav button:hover,.sidebar nav button.active{background:#e7f3f1;color:#0d5e59}.side-meta{margin-top:auto;display:flex;flex-direction:column;gap:7px;font-size:12px}.main{min-width:0}.topbar{min-height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:8px 22px;gap:16px}.business-id{display:flex;flex-direction:column}.business-id span{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:9px}.email-state{display:grid;grid-template-columns:auto auto;column-gap:7px;row-gap:1px;align-items:center;border:1px solid var(--line);background:#fbfefd;color:var(--text);border-radius:10px;padding:6px 9px;cursor:pointer;text-align:left}.email-state .email-label{font-size:11px;font-weight:900;color:var(--teal)}.email-state b{font-size:11px;color:var(--warn)}.email-state small{grid-column:1/-1;color:var(--muted);font-size:10px}.content{padding:22px;max-width:1500px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.page-head h1{margin:6px 0 5px;font-size:28px}.page-head p{margin:0;color:var(--muted);max-width:850px}.panel,.metric,.auth-card,.callout,.detail-block{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.panel{padding:16px;margin-bottom:16px}.panel h2,.panel h3{margin:0 0 12px}.k{font-size:12px;font-weight:900;letter-spacing:.09em;color:var(--teal);border-bottom:2px solid var(--teal);padding-bottom:8px;margin-bottom:14px}.last{border-left:4px solid #d7a629}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-bottom:16px}.metric{padding:14px;min-height:82px;display:flex;flex-direction:column;justify-content:center}.metric b{font-size:20px}.metric span,.muted{font-size:12px;color:var(--muted)}.metric small{display:block;margin-top:4px;color:var(--teal);font-weight:700}.metric-click{cursor:pointer;transition:.15s ease}.metric-click:hover{border-color:#91beb8;transform:translateY(-1px);box-shadow:0 14px 34px rgba(17,66,71,.13)}.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stack{display:flex;flex-direction:column;gap:9px}.callout{padding:12px;box-shadow:none;display:flex;flex-direction:column;gap:6px;text-align:left}.callout span{font-size:13px;color:var(--muted)}.callout a,.source-link{color:var(--teal);font-weight:800}.callout-click{width:100%;cursor:pointer;font:inherit}.callout-click:hover{border-color:#91beb8;background:#fbfefd}.callout-click small{color:var(--teal);font-weight:800}.attention-item{border-left:3px solid #d7a629}.insight-card{cursor:pointer}.insight-card:hover{border-color:#91beb8;background:#fbfefd}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;background:#eaf4f2;color:#17494b;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:10px;border-bottom:1px solid #e6eeec;vertical-align:top}tr:hover td{background:#fbfefd}.row-button{border:0;background:transparent;padding:0;text-align:left;color:inherit;cursor:pointer;width:100%;display:flex;flex-direction:column;gap:2px}.row-button:hover b{color:var(--teal)}.row-button span{font-size:11px;color:var(--teal);font-weight:700}.quick-link{border:0;background:transparent;color:var(--teal);font-weight:900;padding:4px 0;cursor:pointer}.missing-text{color:var(--warn);font-weight:700}.estimated{color:var(--warn)!important;font-weight:800}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900;background:#edf3f3;color:#466064}.badge.good{background:#e7f6ed;color:var(--good)}.badge.warn{background:#fff4d7;color:var(--warn)}.badge.bad{background:#fff0ee;color:var(--bad)}.badge.info{background:#e8f2f5;color:#23677a}.btn{border:1px solid var(--teal);background:var(--teal);color:#fff;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.btn.secondary{background:#fff;color:var(--teal)}.btn.ghost{background:transparent;border-color:#8fb4b0;color:inherit}.btn.danger{background:#fff1ef;border-color:#e5a49e;color:#9e271e}.btn.small{padding:6px 9px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.actions-row{display:flex;gap:7px;flex-wrap:wrap}.link{border:0;background:transparent;color:var(--teal);font-weight:800;padding:0;cursor:pointer}.form{display:grid;grid-template-columns:1fr;gap:10px}.form.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800}.form input,.form select,.form textarea{width:100%;border:1px solid #c5d7d4;background:#fff;color:var(--text);border-radius:9px;padding:9px}.form textarea{min-height:74px}.span2{grid-column:span 2}.span3{grid-column:span 3}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.filters select,.filters input{border:1px solid #c5d7d4;background:#fff;border-radius:9px;padding:8px;color:var(--text);min-width:140px}.filter-check{display:flex;align-items:center;gap:6px;border:1px solid #c5d7d4;background:#fff;border-radius:9px;padding:7px 9px;font-size:12px}.filter-check input{min-width:0}.chip{border:1px solid #bcd3cf;background:#fff;color:#315b5e;border-radius:999px;padding:7px 10px;cursor:pointer}.chip.active{background:var(--teal);color:#fff}.notice{padding:10px 12px;border-radius:10px;margin:9px 0 14px;border:1px solid #b8d9d5;background:#edf8f6;color:#245a59}.notice.warn{background:#fff8e7;border-color:#e8cb7b;color:#71530c}.notice.bad{background:#fff0ee;border-color:#e5aaa4;color:#94271e}.notice.good{background:#edf8f0;border-color:#abd4b8;color:#28623f}.empty{padding:14px;color:var(--muted);text-align:center;border:1px dashed var(--line);border-radius:10px}.backdrop{position:fixed;inset:38px 0 0;background:rgba(12,42,46,.3);z-index:900}.drawer{position:fixed;z-index:910;right:0;top:38px;bottom:0;width:min(860px,100%);overflow:auto;background:#fff;border-left:1px solid var(--line);padding:20px;box-shadow:-16px 0 42px rgba(13,47,51,.17)}.drawer-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.timeline{display:flex;flex-direction:column;gap:9px}.timeline>div{border-left:3px solid #c8dcd8;padding:8px 0 8px 10px;display:grid;grid-template-columns:150px 120px 1fr;gap:8px;font-size:12px}.timeline .change-pair{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}.timeline .change-pair>div{background:#f7faf9;border:1px solid #e1ebe9;border-radius:8px;padding:7px}.auth-shell{min-height:calc(100vh - 38px);display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);padding:24px}.auth-card h1{margin:20px 0 6px}.auth-card p{color:var(--muted)}.detail-block{padding:14px;margin-bottom:14px;box-shadow:none}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.detail-grid>div{border:1px solid #e1ebe9;border-radius:10px;padding:9px}.detail-grid label{display:block;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}.review-line{display:flex;gap:12px;align-items:center}.source-link-btn{text-decoration:none;display:inline-flex}.small{font-size:11px}.hint{font-size:11px;color:var(--muted);font-weight:500}.workflow-bar{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border-top:1px solid var(--line);margin-top:12px}.section-label{font-size:11px;font-weight:900;color:var(--teal);letter-spacing:.06em;text-transform:uppercase}.historical-row{opacity:.72}.assignee-kind{font-size:10px;color:var(--muted)}.classification-line{font-size:12px;color:var(--muted)}.classification-line b{color:var(--text)}hr{border:0;border-top:1px solid var(--line);margin:16px 0}@media(max-width:1100px){.action-table th:nth-child(2),.action-table td:nth-child(2){display:none}}@media(max-width:980px){.shell{grid-template-columns:1fr}.sidebar{position:relative;padding:12px}.sidebar nav{flex-direction:row;overflow:auto}.sidebar nav button{white-space:nowrap}.side-meta{margin-top:0;flex-direction:row;align-items:center}.content{padding:14px}.split{grid-template-columns:1fr}.form.three{grid-template-columns:repeat(2,minmax(0,1fr))}.span3{grid-column:span 2}.topbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%;flex-wrap:wrap}.action-table th:nth-child(5),.action-table td:nth-child(5){display:none}}@media(max-width:720px){.action-table th:nth-child(2),.action-table td:nth-child(2),.action-table th:nth-child(5),.action-table td:nth-child(5),.action-table th:nth-child(7),.action-table td:nth-child(7),.action-table th:nth-child(8),.action-table td:nth-child(8){display:none}}@media(max-width:620px){body{padding-top:44px}.preview{height:44px;font-size:10px}.form.two,.form.three,.detail-grid{grid-template-columns:1fr}.span2,.span3{grid-column:span 1}.page-head{flex-direction:column}.drawer,.backdrop{top:44px}.timeline>div{grid-template-columns:1fr}.timeline .change-pair{grid-template-columns:1fr}.top-actions{align-items:stretch}.email-state{flex:1}.filters{display:grid;grid-template-columns:1fr 1fr}.filters select,.filters input{min-width:0;width:100%}}

/* Daily Store Entries */
.daily-toolbar{position:sticky;top:69px;z-index:40;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
.daily-toolbar-row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.daily-tabs{display:flex;gap:7px;flex-wrap:wrap}.daily-date{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:900;color:var(--muted)}.daily-date input{border:1px solid #c5d7d4;border-radius:9px;padding:7px;background:#fff;color:var(--text)}
.ds-group{border-left:4px solid #a9d3cd}.ds-group .metrics{margin-bottom:8px}.ds-metric{border:1px solid var(--line);width:100%;font:inherit;text-align:left;cursor:pointer;background:#fff;color:var(--text)}.ds-metric:hover{border-color:#79aaa4;background:#fbfefd;transform:translateY(-1px)}
.fuel-closing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fuel-closing-line{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:9px;background:#fbfefd}.fuel-closing-line>b{color:var(--teal);font-size:13px}.fuel-closing-line>div{border-top:1px solid #e3ecea;padding-top:8px}.fuel-closing-line label{font-size:11px;color:var(--muted)}
.daily-toolbar .chip{font-weight:800}.daily-toolbar .chip.active{box-shadow:0 4px 12px rgba(12,117,111,.18)}
@media(max-width:900px){.fuel-closing-grid{grid-template-columns:1fr}.daily-toolbar{position:static}.daily-toolbar-row{align-items:stretch}.daily-date{justify-content:space-between}}

/* RIA Settlement & Reconciliation */
.ria-toolbar{position:sticky;top:69px;z-index:39;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
.ria-toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ria-tabs{display:flex;gap:7px;flex-wrap:wrap}
.ria-date{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:900;color:var(--muted)}
.ria-date input{border:1px solid #c5d7d4;border-radius:9px;padding:7px;background:#fff;color:var(--text)}
.history-json{margin:0;max-width:420px;white-space:pre-wrap;word-break:break-word;font:11px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#36545a}
.ria-toolbar .chip{font-weight:800}
@media(max-width:900px){.ria-toolbar{position:static}.ria-toolbar-row{align-items:stretch}.ria-date{justify-content:space-between}}

.bas-range{margin:14px 0}.bas-range [hidden]{display:none}.bas-range label{display:flex;flex-direction:column;gap:5px}.bas-range .filters{align-items:end}.bas-pagination{justify-content:flex-end;margin-top:16px}.drawer .table-wrap{max-width:100%}.drawer .actions-row{flex-wrap:wrap}.drawer input[type=date]{min-width:145px}

/* Existing ATM visual system, scoped within the BAS shell. */
.atm-module{--bg:#f2f7f5;--panel:#fff;--line:#cfe0dc;--text:#0b2b35;--muted:#60777d;--teal:#087f77;--teal2:#0d5c59;--side:#104b50;--soft:#e8f4f1;--warn:#fff1cb;--warnText:#815200;--bad:#fde7e4;--badText:#b42719;--good:#e4f5e9;--goodText:#08733a;--shadow:0 10px 28px rgba(17,76,73,.08)}.atm-module *{box-sizing:border-box}.atm-module body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.atm-module button,.atm-module input,.atm-module select,.atm-module textarea{font:inherit}.atm-module .preview{position:sticky;top:0;z-index:60;background:#fff1c8;border-bottom:1px solid #e5c86c;color:#6b4a00;text-align:center;font-weight:900;letter-spacing:.06em;padding:8px}.atm-module .shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 35px)}.atm-module .side{background:var(--side);color:#fff;padding:18px 10px;position:sticky;top:35px;height:calc(100vh - 35px);overflow:auto}.atm-module .brand{display:flex;gap:10px;align-items:center;padding:2px 4px 18px}.atm-module .mark{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#d8ece9;color:#0d5556;font-weight:950}.atm-module .brand b{font-size:16px}.atm-module .brand small{display:block;color:#b9d1d1}.atm-module .nav{display:grid;gap:4px}.atm-module .nav button{border:0;background:transparent;color:#fff;text-align:left;padding:9px 10px;border-radius:9px;cursor:pointer}.atm-module .nav button.active{background:#e9f3f2;color:#0a6462}.atm-module .nav button.dim{opacity:.85}.atm-module .main{min-width:0}.atm-module .top{background:#fff;border-bottom:1px solid #dfe8e5;padding:15px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center}.atm-module .top b{font-size:15px}.atm-module .top small{color:var(--muted);display:block}.atm-module .role{background:#edf6f6;border-radius:999px;padding:5px 9px;font-weight:800;color:#075c5a}.atm-module .content{max-width:1580px;margin:auto;padding:22px}.atm-module .head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}.atm-module .head h1{font-size:29px;margin:0 0 5px}.atm-module .head p{margin:0;color:var(--muted)}.atm-module .status{font-size:11px;font-weight:900;text-transform:uppercase;color:#067a39;background:#e4f6e9;padding:4px 8px;border-radius:999px;display:inline-block;margin-bottom:7px}.atm-module .panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:16px;box-shadow:var(--shadow)}.atm-module .range{display:flex;gap:7px;align-items:end;flex-wrap:wrap}.atm-module .btn{border:1px solid #0b8980;background:#07847b;color:white;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.atm-module .btn.secondary{background:#fff;color:#05716b}.atm-module .btn.ghost{background:transparent;color:#46686b;border-color:#bdd5d1}.atm-module .btn.danger{background:#fff4f2;border-color:#ef9e94;color:#bd2c20}.atm-module .btn.small{padding:6px 9px;font-size:12px}.atm-module .btn:disabled{opacity:.45;cursor:not-allowed}.atm-module .preset.active{background:#07847b;color:#fff}.atm-module .input,.atm-module select,.atm-module textarea{width:100%;border:1px solid #bdd6d2;background:#fff;color:var(--text);border-radius:9px;padding:9px 10px;outline:none}.atm-module .input:focus,.atm-module select:focus,.atm-module textarea:focus{border-color:#07847b;box-shadow:0 0 0 3px rgba(7,132,123,.12)}.atm-module textarea{min-height:82px;resize:vertical}.atm-module .range .field{min-width:145px}.atm-module .field{display:grid;gap:4px}.atm-module .field label{font-size:11px;font-weight:800;color:#47686c}.atm-module .form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.atm-module .span2{grid-column:span 2}.atm-module .tabs{display:flex;gap:7px;overflow:auto;margin:14px 0;padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.atm-module .tabs button{white-space:nowrap;border:1px solid #b9d4d0;background:#fff;color:#365f61;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer}.atm-module .tabs button.active{background:#07847b;color:white;border-color:#07847b}.atm-module .section{margin:15px 0}.atm-module .title{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#006d68;border-bottom:2px solid #0d827b;padding-bottom:7px;margin-bottom:11px}.atm-module .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.atm-module .metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;min-height:76px}.atm-module .metric b{display:block;font-size:21px}.atm-module .metric span{color:var(--muted);font-size:11px}.atm-module .metric.link{appearance:none;width:100%;text-align:left;color:inherit;cursor:pointer;position:relative;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.atm-module .metric.link:hover{border-color:#07847b;box-shadow:0 8px 22px rgba(7,132,123,.13);transform:translateY(-1px)}.atm-module .metric.link:focus{outline:none;border-color:#07847b;box-shadow:0 0 0 3px rgba(7,132,123,.12)}.atm-module .metric .viewlink{display:block;margin-top:7px;color:#06746f;font-size:10px;font-weight:900}.atm-module .metric.link:after{content:'›';position:absolute;right:12px;bottom:10px;color:#07847b;font-weight:950;font-size:16px}.atm-module .clickrow{cursor:pointer}.atm-module .clickrow:hover{background:#f0f8f6}.atm-module .grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;margin-top:14px}.atm-module .c4{grid-column:span 4}.atm-module .c5{grid-column:span 5}.atm-module .c6{grid-column:span 6}.atm-module .c7{grid-column:span 7}.atm-module .c8{grid-column:span 8}.atm-module .c12{grid-column:span 12}.atm-module .panel h2{font-size:17px;margin:0 0 3px}.atm-module .panel .sub{color:var(--muted);font-size:12px;margin:0 0 12px}.atm-module .tablewrap{overflow:auto;border:1px solid var(--line);border-radius:10px}.atm-module .table{width:100%;border-collapse:collapse;min-width:760px}.atm-module .table th,.atm-module .table td{padding:9px 10px;border-bottom:1px solid #e0ebe8;text-align:left;vertical-align:top}.atm-module .table th{background:#e8f3f1;color:#174e51;font-size:11px}.atm-module .table tr:last-child td{border-bottom:0}.atm-module .pill{display:inline-block;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900;text-transform:uppercase;background:#edf3f2;color:#325c5e}.atm-module .pill.good{background:var(--good);color:var(--goodText)}.atm-module .pill.warn{background:var(--warn);color:var(--warnText)}.atm-module .pill.bad{background:var(--bad);color:var(--badText)}.atm-module .notice{border:1px solid #e4cc83;background:#fff7db;color:#6c5003;padding:10px 12px;border-radius:10px;margin:10px 0}.atm-module .notice.error{border-color:#e8a199;background:#fff1ef;color:#a82d22}.atm-module .notice.success{border-color:#9bd0ac;background:#effaf2;color:#167440}.atm-module .empty{text-align:center;color:var(--muted);padding:22px}.atm-module .actions{display:flex;gap:6px;flex-wrap:wrap}.atm-module .list{display:grid;gap:8px}.atm-module .item{border:1px solid var(--line);border-radius:10px;padding:10px}.atm-module .item b{display:block}.atm-module .item small{color:var(--muted)}.atm-module .drawerbg{position:fixed;inset:0;background:rgba(15,38,40,.46);z-index:70}.atm-module .drawer{position:fixed;right:0;top:0;bottom:0;width:min(760px,96vw);background:#fff;z-index:71;padding:20px;overflow:auto;box-shadow:-15px 0 40px rgba(0,0,0,.18)}.atm-module .drawer h2{margin-top:0}.atm-module .login{min-height:100vh;display:grid;place-items:center;padding:20px;background:#eaf3f1}.atm-module .login .panel{width:min(470px,100%)}.atm-module .login h1{margin:6px 0}.atm-module .small{font-size:11px;color:var(--muted)}.atm-module .sep{height:1px;background:#e2ece9;margin:14px 0}.atm-module .hide{display:none!important}@media(max-width:1000px){.atm-module .shell{grid-template-columns:1fr}.atm-module .side{position:static;height:auto}.atm-module .nav{display:flex;overflow:auto}.atm-module .nav button{white-space:nowrap}.atm-module .c4,.atm-module .c5,.atm-module .c6,.atm-module .c7,.atm-module .c8{grid-column:span 12}}@media(max-width:650px){.atm-module .content{padding:13px}.atm-module .head{display:block}.atm-module .range{margin-top:10px}.atm-module .form{grid-template-columns:1fr}.atm-module .span2{grid-column:span 1}.atm-module .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}


.atm-module{min-width:0}.atm-module .audit-json{white-space:pre-wrap;overflow-wrap:anywhere}.atm-module .grid>*{min-width:0}.atm-module .range .field{min-width:0}.atm-module .cards .metric{min-width:0;overflow-wrap:anywhere}.atm-module .form .field{min-width:0}.atm-module label{display:block}.atm-module .tablewrap{max-width:100%}.atm-module .table td .actions{min-width:125px}.atm-module .metric span{display:block}
[hidden]{display:none!important}.closing-sticky-actions{display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:38px;z-index:30;background:#fff;padding:12px 0;border-bottom:1px solid #cfe0dc;margin:8px 0 14px}.closing-sticky-actions [data-top-message]{flex-basis:100%}.quick-link{border:0;background:transparent;cursor:pointer;text-align:left}.quick-link span{white-space:nowrap}#posDirection{display:block;margin-top:5px}
@media(max-width:768px){.atm-module .grid>.c4,.atm-module .grid>.c5,.atm-module .grid>.c6,.atm-module .grid>.c7,.atm-module .grid>.c8{grid-column:span 12}.atm-module .table{min-width:760px}.closing-sticky-actions{top:55px}.atm-module .range .field{flex:1 1 120px}.atm-module .form{grid-template-columns:1fr}.atm-module .span2{grid-column:span 1}.atm-module .head h1{font-size:25px}}

/* ===== Typography / readability pass (Pass 5) — reusable tokens, teal identity preserved ===== */
:root{
 --fs-page-title:30px; --fs-workspace-title:23px; --fs-section:17px; --fs-card-value:26px;
 --fs-card-label:14px; --fs-body:14px; --fs-table:14px; --fs-label:13px; --fs-helper:12px;
 --lh-body:1.5;
}
body{font-size:var(--fs-body);line-height:var(--lh-body)}
.page-head h1{font-size:var(--fs-page-title);line-height:1.25}
.page-head p{font-size:15px;line-height:1.5}
.drawer-head h2,.ws-head h2,#basRiaWs .rws-head h2,.atm-module .head h1{font-size:var(--fs-workspace-title)!important;line-height:1.3}
.panel h2,.panel h3{font-size:19px;line-height:1.35}
.k,.section-label,.time-semantics{font-size:var(--fs-section);letter-spacing:.03em}
.metric{padding:16px;min-height:88px}
.metric b{font-size:var(--fs-card-value);line-height:1.2}
.metric span,.muted{font-size:var(--fs-card-label);line-height:1.4}
.metric small{font-size:12.5px}
table{font-size:var(--fs-table)}
th{padding:12px 11px;font-size:13px}
td{padding:12px 11px;line-height:1.5}
.form label,.detail-grid label,.fuel-closing-line label{font-size:var(--fs-label);letter-spacing:.02em}
.form input,.form select,.form textarea{padding:10px;font-size:14px}
.form textarea{min-height:82px}
.small,.hint{font-size:var(--fs-helper);line-height:1.45}
.panel{padding:20px}
.detail-grid>div{padding:12px}
.badge{font-size:11.5px;padding:5px 9px}
.btn{padding:10px 14px;font-size:14px}
.btn.small{padding:7px 10px;font-size:12.5px}
@media(max-width:620px){:root{--fs-page-title:26px;--fs-workspace-title:21px}}


/* Integrated owner stabilization v6: readable enabled/disabled/button states */
.btn:not(.secondary):not(.ghost):not(.danger):not(:disabled),
.atm-module .btn:not(.secondary):not(.ghost):not(.danger):not(:disabled){background:#087f77!important;border-color:#087f77!important;color:#fff!important}
.btn:not(:disabled):hover,.atm-module .btn:not(:disabled):hover{filter:brightness(.92)}
.btn:focus-visible,.chip:focus-visible,.atm-module .btn:focus-visible,.atm-module .tabs button:focus-visible{outline:3px solid rgba(8,127,119,.28)!important;outline-offset:2px!important}
.btn:disabled,.atm-module .btn:disabled{opacity:1!important;background:#e4ece9!important;border-color:#c7d5d0!important;color:#61736d!important;cursor:not-allowed!important;box-shadow:none!important;filter:none!important}
.btn.secondary:not(:disabled),.atm-module .btn.secondary:not(:disabled){background:#fff!important;border-color:#6ba9a2!important;color:#075f59!important}
.btn.ghost:not(:disabled),.atm-module .btn.ghost:not(:disabled){background:transparent!important;color:#355e5b!important;border-color:#9dbfba!important}
.btn.danger:not(:disabled),.atm-module .btn.danger:not(:disabled){background:#fff3f1!important;border-color:#d56c61!important;color:#9d2118!important}
.chip.active,.atm-module .preset.active,.payment-tabs .chip.active{background:#087f77!important;border-color:#087f77!important;color:#fff!important}
.module-unavailable .callout{display:grid;gap:8px;justify-items:start}.payment-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
@media(max-width:768px){.payment-tabs{overflow:auto;flex-wrap:nowrap}.payment-tabs .chip{white-space:nowrap}}
@media(max-width:375px){.content{padding:10px!important}.filters{grid-template-columns:1fr!important}.metrics{grid-template-columns:1fr 1fr!important}.btn{min-height:40px}}

/* Prevent horizontal document overflow while keeping wide data tables locally scrollable. */
@media(max-width:980px){
 .shell{width:100%;max-width:100vw;min-width:0;overflow-x:hidden}
 .sidebar,.main,.topbar,.top-actions,.email-state{min-width:0;max-width:100%}
 .sidebar{width:100%;overflow:hidden}
 .sidebar nav{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
 .main,.content{width:100%;max-width:100%;overflow-x:hidden}
 .table-wrap,.tablewrap{max-width:100%;overflow-x:auto}
 .email-state{width:100%}
}

/* BAS Overview + Fuel Final Integration v8 */
.overview-semantics{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 12px;color:var(--muted);font-size:12px}
.time-semantics{font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#315f5b;margin:6px 0 12px}.time-semantics.current{color:#0b6c66}.time-semantics.forward{color:#705200}
.data-coverage-strip{border:1px solid #bddad5;background:#f7fbfa;border-radius:14px;padding:13px 14px;margin:12px 0 16px;box-shadow:0 5px 16px rgba(15,88,82,.05)}
.coverage-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:10px}.coverage-title b{color:#086f69;font-size:12px;letter-spacing:.07em}.coverage-title span{font-size:11px;color:var(--muted)}
.coverage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.coverage-grid>div{border-left:3px solid #b6d9d4;padding:5px 9px;min-width:0}.coverage-grid label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:3px}.coverage-grid b{display:block;font-size:12px;overflow-wrap:anywhere}
.missing-text{color:#8a5800!important;font-weight:900}.recent-activity-card{border:1px solid #c9ddd9;background:#fbfefd;border-radius:12px;padding:13px;margin-top:14px}.recent-activity-card h3{margin:0 0 10px;font-size:15px}.recent-activity-card .detail-grid{margin-bottom:10px}
.metric-click{cursor:pointer;text-align:left;color:inherit}.metric-click:hover{border-color:#78aaa4;box-shadow:0 6px 18px rgba(8,127,119,.09);transform:translateY(-1px)}.metric-click small{display:block;margin-top:4px;color:#087f77;font-weight:800}
.fuel-cost-line,.fuel-line{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fbfefd;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.fuel-cost-line h4,.fuel-line h4{grid-column:1/-1;margin:0;color:#075f59}.fuel-cost-line .span2,.fuel-line .span2{grid-column:span 2}.fuel-cost-line label,.fuel-line label{min-width:0}.fuel-cost-line input,.fuel-cost-line select,.fuel-cost-line textarea,.fuel-line input,.fuel-line select,.fuel-line textarea{width:100%;min-width:0}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.detail-grid>div{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;min-width:0}.detail-grid label{display:block;font-size:10px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.detail-grid b{display:block;overflow-wrap:anywhere}
@media(max-width:980px){.coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fuel-cost-line,.fuel-line{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.coverage-grid,.detail-grid,.fuel-cost-line,.fuel-line{grid-template-columns:1fr}.coverage-title{align-items:flex-start;flex-direction:column}.fuel-cost-line .span2,.fuel-line .span2{grid-column:span 1}.data-coverage-strip{padding:11px}.recent-activity-card{padding:11px}}

.team-allow{display:inline-flex;align-items:center;gap:7px;font-weight:700;white-space:nowrap}.team-allow input{width:18px;height:18px;accent-color:#176f73}.team-matrix table{min-width:980px}.team-matrix th:not(:first-child),.team-matrix td:not(:first-child){text-align:center}.team-role-select{min-width:150px}#teamInviteForm{display:grid;grid-template-columns:1.4fr 1.8fr 1.2fr auto;gap:12px;align-items:end}#teamInviteForm label{display:flex;flex-direction:column;gap:6px}#teamInviteForm input,#teamInviteForm select,.team-role-select{border:1px solid #d8e0e0;border-radius:8px;padding:9px;background:#fff}@media(max-width:900px){#teamInviteForm{grid-template-columns:1fr}.team-matrix{overflow:auto}}

.btn.danger{background:#fff3f3;color:#a33333;border:1px solid #e7bcbc}
.btn.danger:hover{background:#fde7e7}

.btn[data-team-password]{white-space:nowrap}

/* Bank Accounts (Safe -> Checks) — compact cards */
.bas-bank-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-top:8px}
.bas-bank-card{border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff}
.bas-bank-card.inactive{opacity:.6}
.bas-bank-card-h{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bas-bank-card .actions-row{margin-top:8px}

.ds-summary{display:grid;grid-template-columns:minmax(230px,1.2fr) 2fr;gap:22px;align-items:center}.ds-coverage{display:flex;gap:20px;align-items:center}.ds-donut{border:0;background:conic-gradient(#147d78 var(--coverage),#e3eeea 0);border-radius:50%;width:112px;height:112px;flex-shrink:0;display:grid;place-items:center;cursor:pointer}.ds-donut span{background:#fff;border-radius:50%;width:86px;height:86px;display:grid;place-content:center;color:#164a46;font-size:24px;font-weight:750}.ds-donut small{font-size:10px;font-weight:500}.ds-progress{display:grid;gap:14px}.ds-progress button{border:0;background:none;text-align:left;cursor:pointer;padding:0;color:inherit}.ds-progress label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}.ds-progress progress{width:100%;height:9px;accent-color:#147d78}.ds-chart{width:100%;min-width:520px;height:270px;display:block}.ds-chart-wrap{overflow:auto}.ds-chart text{font-size:11px;fill:#5b716b}.ds-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:12px}.ds-legend i{display:inline-block;width:20px;height:4px;vertical-align:middle;margin-right:7px}.ds-missing{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.ds-missing button{font-size:11px}.ds-lifecycle{position:sticky;top:0;z-index:15;display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#f0f8f5;border:1px solid #c4dcd4;padding:12px;border-radius:10px;box-shadow:0 4px 12px #164a4610;margin-bottom:18px}.ds-lifecycle .actions-row{margin-left:auto}.ds-lifecycle [role=status]{flex-basis:100%}.ds-statement table{min-width:950px}.ds-statement td{vertical-align:top}.ds-statement .actions-row{flex-wrap:nowrap}.ds-checklist table{min-width:620px}.ds-settlement-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ds-activity-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ds-activity-choice button{text-align:left;padding:16px}.ds-group .metrics{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}.ds-history-event{padding:12px;border-left:3px solid #c4dcd4;margin:10px 0}.ds-history-event time{display:block;font-size:12px;color:#5b716b}.ds-empty{padding:20px;background:#f5faf7;border-radius:8px;color:#526d62}.ds-status-detail{display:block;font-size:11px;color:#637970;margin-top:5px}@media(max-width:800px){.ds-summary{grid-template-columns:1fr}.ds-settlement-summary{grid-template-columns:1fr 1fr}.ds-lifecycle{top:0}.ds-activity-choice{grid-template-columns:1fr}}
.ds-dialog{border:1px solid #b9d4ca;border-radius:14px;padding:24px;width:min(480px,90vw);color:#163d36}.ds-dialog::backdrop{background:#102e2877}.ds-dialog label{display:grid;gap:12px}.ds-dialog input{padding:10px;border:1px solid #b9d4ca;border-radius:7px}.ds-dialog .actions-row{margin-top:20px}
/* Safe Drop + Payment Processing additions */
.vc-lines{min-width:760px;width:100%}.vc-lines th,.vc-lines td{padding:6px 8px;vertical-align:top}.vc-lines input,.vc-lines select{width:100%;padding:7px;border:1px solid #b9d4ca;border-radius:6px;font:inherit}.vc-lines .vc-num{text-align:right}.vc-del{padding:4px 9px}.ds-check-list{display:grid;gap:6px;font-size:13px}.ds-check-list label{display:flex;gap:8px;align-items:center}.ds-history-timeline{display:grid;gap:2px}@media(max-width:800px){.vc-lines{min-width:640px}}
/* nested subtabs */
.daily-tabs.bas-subtabs{margin-top:8px;padding-left:2px}.daily-tabs.bas-subtabs .chip{font-size:12px;padding:5px 12px;background:#eef6f2}.daily-tabs.bas-subtabs .chip.active{background:#147d78;color:#fff}
/* Expected / Actual / Variance emphasis strip */
.bas-eav{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;background:#f0f8f5;border:1px solid #c4dcd4;border-radius:10px;padding:14px 16px;margin:12px 0}
.bas-eav-cell{display:flex;flex-direction:column;gap:3px}.bas-eav-cell label{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#5b716b}.bas-eav-cell b{font-size:19px;font-weight:750;color:#164a46}.bas-eav-cell.big b{font-size:24px}.bas-eav-cell span{font-size:11px;color:#637970}.bas-eav-cell .badge{align-self:flex-start;margin-top:2px}
.bas-prog{display:grid;gap:5px}.bas-prog label{display:flex;justify-content:space-between;font-size:12px}.bas-prog progress{width:100%;height:9px;accent-color:#147d78}
.src-badge{background:#e7f0ec;color:#2f5c53;border:1px solid #c4dcd4}
/* Physical Count & Change denomination grid */
.denom-wrap{display:grid;grid-template-columns:1fr 1fr;gap:16px}.denom-cat h4{margin:4px 0 6px;font-size:13px;color:#164a46}
.denom-tbl{min-width:0;width:100%}.denom-tbl td,.denom-tbl th{padding:5px 8px}.denom-tbl .denom-ext,.denom-tbl .denom-sub{text-align:right;font-variant-numeric:tabular-nums}.denom-tbl tfoot td{font-weight:700;border-top:1px solid #c4dcd4}
@media(max-width:800px){.denom-wrap{grid-template-columns:1fr}.bas-eav{grid-template-columns:1fr 1fr}}
/* custody bridge */
.bas-bridge{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.bas-bridge>div{display:flex;flex-direction:column;gap:2px;min-width:110px}.bas-bridge label{font-size:11px;text-transform:uppercase;color:#5b716b}.bas-bridge b{font-size:18px;font-weight:750;color:#164a46}.bas-bridge span{font-size:11px;color:#637970}.bas-bridge .op{font-size:22px;font-weight:400;color:#8aa39a;min-width:0}.bas-bridge .eq b{color:#147d78}
/* attention / queue cards */
.bas-attn{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e3ece7;border-radius:9px;margin:8px 0}.bas-attn b{color:#164a46}.bas-queue{display:grid;gap:8px}
/* semantic timeline */
.bas-timeline{display:grid;gap:0}.bas-tl-row{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:11px 4px;border-bottom:1px solid #eef4f1}.bas-tl-row time{font-size:12px;color:#5b716b}.bas-tl-main b{color:#164a46}.bas-tl-amt{font-weight:700;color:#147d78}.bas-tl-main details{margin-top:4px}.bas-tl-main summary{font-size:11px;color:#5b716b;cursor:pointer}.bas-tl-raw{background:#f5faf7;border:1px solid #e0ebe6;border-radius:6px;padding:8px;font-size:11px;overflow:auto;max-height:260px;white-space:pre-wrap}
.bas-qfilters{margin-top:6px}
/* change/float location block */
.bas-chloc{border:1px solid #e3ece7;border-radius:9px;padding:12px;margin:10px 0}.bas-chloc h4{margin:0 0 8px;color:#164a46}
/* payment statement reconciliation card */
.bas-recon-card{margin:10px 0}.bas-recon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.bas-recon-grid label{font-size:11px;text-transform:uppercase;color:#5b716b;display:block}.bas-recon-grid b{font-size:17px;font-weight:750;color:#164a46}
/* vendor clearing owe/credit/fee groups */
.vc-owe{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:8px 0}.vc-grp{border:1px solid #e3ece7;border-radius:9px;padding:10px}.vc-grp h4{margin:0 0 6px;font-size:12px;text-transform:uppercase;color:#5b716b}.vc-grp-row{display:flex;justify-content:space-between;font-size:13px;padding:3px 0}.vc-grp-row.muted{color:#8aa39a}.vc-grp-row.total{border-top:1px solid #c4dcd4;margin-top:4px;padding-top:5px;font-weight:700;color:#164a46}
@media(max-width:800px){.bas-recon-grid{grid-template-columns:1fr 1fr}.vc-owe{grid-template-columns:1fr}.bas-tl-row{grid-template-columns:1fr}}
/* Safe cash-source donut */
.safe-donut-wrap{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.safe-donut-wrap svg{flex-shrink:0}
.safe-donut-legend{display:grid;gap:5px}.safe-legend-row{border:0;background:none;text-align:left;cursor:pointer;font-size:13px;color:#164a46;padding:2px 0}.safe-legend-row i{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:middle;margin-right:8px}
p.small.bad{color:#a4342b}
@media(max-width:800px){.safe-donut-wrap{gap:12px}}
/* Owner Dashboard (Safe Drop) */
.safe-donut-legend .safe-legend-row{line-height:1.35}
section.panel .k>span.muted{font-weight:400;text-transform:none;letter-spacing:0;font-size:11px}
.bas-attn{flex-wrap:wrap}.bas-attn>div{min-width:60%}
@media(max-width:520px){.bas-attn>div{min-width:100%}.bas-attn button{margin-top:6px}}
/* Cash Movements — categorised ledger */
.safe-cm-cat{border:1px solid #d7e6e0;border-radius:10px;margin:10px 0;background:#fbfdfc}
.safe-cm-cat>summary{cursor:pointer;padding:11px 14px;list-style:none;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.safe-cm-cat>summary::-webkit-details-marker{display:none}
.safe-cm-cat>summary::before{content:"▸";color:#5b716b;font-size:11px;margin-right:2px}
.safe-cm-cat[open]>summary::before{content:"▾"}
.safe-cm-cat>summary b{color:#164a46}
.cm-cat-letter{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#147d78;color:#fff;font-size:11px;font-weight:750}
.cm-cat-meta{font-size:11px;color:#5b716b}
.safe-cm-cat>p,.safe-cm-cat .table-wrap,.safe-cm-cat h4{margin-left:14px;margin-right:14px}
.safe-cm-cat h4.cm-attr-h{margin-top:12px;font-size:12px;color:#164a46}
.safe-cm-cat .table-wrap{padding-bottom:12px}
.cm-search{padding:6px 10px;border:1px solid #b9d4ca;border-radius:7px;font:inherit;min-width:200px;flex:1}
@media(max-width:560px){.cm-search{min-width:100%}.safe-cm-cat>summary{gap:6px}}
/* Safe Dashboard — reference layout */
.safe-dash-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.safe-dash-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.safe-dash-grid2 .bas-bridge .bridge-row{border-bottom:1px dashed #d7e5e3}
@media(max-width:900px){.safe-dash-grid2,.safe-dash-grid3{grid-template-columns:1fr}}
/* Payment Processing — 5-tab workflow */
.pay-moneypos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pay-procbox{border:1px solid #cfe2df;border-radius:13px;padding:13px;background:#fbfefe}
.pay-procbox h3{margin:0 0 8px;color:#164a46;font-size:15px}
.pay-metric{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px dashed #d7e6e4;font-size:13px}
.pay-metric:last-child{border-bottom:0}.pay-metric b{color:#164a46;font-variant-numeric:tabular-nums}
.pay-procswitch{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0 4px}
.sheet-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.pay-sheet{min-width:920px;width:100%;border-collapse:collapse}
.pay-sheet th{position:sticky;top:0;background:#edf7f5;text-align:left;padding:9px 10px;border-bottom:1px solid #cfe2df;font-size:12px;white-space:nowrap}
.pay-sheet td{padding:8px 10px;border-bottom:1px solid #dce9e7;vertical-align:middle}
.pay-sheet td.num,.pay-sheet .num{text-align:right;font-variant-numeric:tabular-nums}
.pay-sheet tbody tr:hover{background:#fbfefe}
.pay-cell{width:100%;min-width:96px;border:1px solid #bdd6d3;border-radius:7px;padding:6px 8px;font:inherit;text-align:right}
.summarybar{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:12px}
.pay-sum{background:#f5fbfa;border:1px solid #cfe2df;border-radius:10px;padding:9px}
.pay-sum .lab{font-size:10px;text-transform:uppercase;color:#647c7e;font-weight:800}
.pay-sum .val{font-size:17px;font-weight:850;margin-top:2px;color:#164a46}
.note.warnnote,.warnnote{background:#fff7e5;border-left:4px solid #d3941a;padding:10px 12px;border-radius:8px;color:#5b4a1e;font-size:12px}
.bas-chloc .empty,p.empty{color:#647c7e;font-size:12px;padding:8px 0}
@media(max-width:900px){.pay-moneypos{grid-template-columns:1fr}.summarybar{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.summarybar{grid-template-columns:1fr}}
/* Payment — reconciliation cards + worksheet diff cells */
.pay-recon-card.pay-ok{border-left:4px solid #17774b}
.pay-recon-card.pay-attn{border-left:4px solid #9a6400}
.pay-recon-card .bas-bridge b.good{color:#17774b}
.pay-recon-card .bas-bridge b.warn{color:#9a6400}
.pay-sheet b.good{color:#17774b}.pay-sheet b.warn{color:#a44136}
.bridge-sub{font-size:11px;color:#647d7f}
.pay-sheet .warn{color:#9a6400}.pay-sheet .muted{color:#8aa0a0}

/* One relocated Closing toolbar, outside ancestors that clip sticky positioning. */
#basClosingDock{position:fixed;top:38px;left:var(--dock-left);width:var(--dock-width);z-index:15;margin:0;padding:10px 12px;background:#f0f8f5;box-shadow:0 5px 20px #164a4630;gap:8px;max-height:45vh;overflow:auto}
#basClosingDock>span:last-child{flex-basis:100%;font-size:12px}
#basClosingDock .actions-row{margin-left:auto;gap:6px}
.bas-closing-open #page{padding-top:calc(var(--closing-dock-height,150px) + 18px);padding-bottom:30px}
.bas-closing-open input,.bas-closing-open textarea{scroll-margin-top:calc(var(--closing-dock-height,150px) + 56px);scroll-margin-bottom:30px}
.bas-unsaved-dialog{border:1px solid var(--line);border-radius:14px;max-width:min(440px,calc(100vw - 24px));color:var(--text);padding:22px}
.bas-unsaved-dialog::backdrop{background:#15303688}
#basDirtyLabel{font-size:12px;color:var(--warn)}
.bas-closing-open #page>.daily-toolbar{position:static}
.bas-source-back{margin:0 0 14px}
.ds-work-dates>.table-wrap{max-height:260px;overflow:auto}
.ds-work-dates th{position:sticky;top:0;z-index:1}
.ds-work-dates .chip{white-space:nowrap}
.ds-work-dates td{vertical-align:middle}
@media(max-width:800px){
 #closingForm{grid-template-columns:minmax(0,1fr)}
 #closingForm>*{min-width:0;max-width:100%}
 #closingForm input,#closingForm textarea{min-width:0;max-width:100%}
 #basClosingDock{top:auto;bottom:0;left:0;width:100%;border-radius:12px 12px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:7px}
 #basClosingDock .actions-row{width:100%;margin:0;display:flex;flex-wrap:wrap}
 #basClosingDock .btn{min-height:42px;flex:1;padding:8px}
 .bas-closing-open #page{padding-top:14px;padding-bottom:calc(var(--closing-dock-height,200px) + 30px)!important}
 .bas-closing-open input,.bas-closing-open textarea{scroll-margin-top:55px;scroll-margin-bottom:calc(var(--closing-dock-height,200px) + 30px)}
 .ds-work-dates>.table-wrap{max-height:230px}
}

.payment-module{min-width:0;color:#082f32}.payment-module .pay-panel{padding:18px;border:1px solid #cfe2df;border-radius:15px;box-shadow:0 10px 30px #0533360d;margin-bottom:16px}.payment-module .pay-sectionhead{border-bottom:2px solid #07877f;padding-bottom:9px;margin-bottom:14px}.payment-module .pay-sectionhead h2{font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin:0;color:#006c67}.payment-module .pay-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.payment-module .pay-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.payment-module .pay-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.payment-module .pay-metric{display:flex;flex-direction:column;gap:8px;min-width:0;border:1px solid #cfe2df;border-radius:12px;padding:15px;background:#fff;text-align:left;color:#082f32;overflow-wrap:anywhere}.payment-module .pay-metric>span{font-size:10px;text-transform:uppercase;letter-spacing:.065em;font-weight:800;color:#647d7f}.payment-module .pay-metric>b{font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}.payment-module .pay-metric>small{color:#647d7f;font-size:12px}.payment-module .pay-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.payment-module .pay-fee-period{border-top:1px solid #cfe2df;margin-top:15px;padding-top:12px}.payment-module .pay-fee-period>b{display:block;margin-bottom:10px;font-size:12px}.payment-module .pay-missing{background:#fff2d3;color:#9d6300;padding:10px;border-radius:8px;font-size:12px;font-weight:800}.payment-module .pay-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.payment-module .pay-summary .pay-metric{background:#f5fbfa}.payment-module .pay-summary b{font-size:18px}.payment-module .pay-addbox{border:1px solid #cfe2df;border-radius:12px;padding:14px;min-width:0}.payment-module h3{font-size:15px;margin:0 0 12px}.payment-module .pay-added{display:grid;gap:7px;border-top:1px solid #dbe9e6;padding:12px 0;margin-top:10px}.payment-module .pay-bridge{border:1px solid #9ccfc9;background:#f5fbfa;border-radius:12px;padding:16px;max-width:100%}.payment-module .pay-bridge>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px dashed #cfe2df;padding:9px 0}.payment-module .pay-bridge .pay-bridge-total{font-size:21px;font-weight:900;border-top:2px solid #07877f;border-bottom:0;margin-top:6px;padding-top:15px}.payment-module .pay-lifecycle{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:15px 0}.payment-module .pay-lifecycle>div{border:1px solid #cfe2df;border-radius:9px;padding:10px;text-align:center;display:grid;gap:4px}.payment-module .pay-lifecycle .on{background:#e8f6f4;border-color:#7fc5bf}.payment-module .pay-lifecycle b{font-size:12px}.payment-module .pay-focused{background:#fff2d3!important;outline:2px solid #bd8017}.payment-module .sheet-wrap,.payment-module .table-wrap{max-width:100%;overflow-x:auto;border:1px solid #cfe2df;border-radius:12px}.payment-module table{width:100%;border-collapse:collapse}.payment-module th{background:#edf7f5;color:#174e51;font-size:12px;padding:11px;text-align:left}.payment-module td{padding:11px;border-bottom:1px solid #dce9e7}.payment-module .pay-sheet{min-width:1200px}.payment-module .pay-cell{width:100%;min-width:95px;border:1px solid #bdd6d3;border-radius:7px;padding:7px}.payment-module .actions-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.payment-module .pay-procswitch{display:flex;gap:7px;margin:14px 0}.payment-module .chip{border-radius:999px}.payment-module .daily-tabs{display:flex;gap:7px;flex-wrap:wrap}.payment-module .panel>.k{border-bottom:2px solid #07877f;padding-bottom:10px;margin-bottom:14px}.payment-module .daily-toolbar{position:static}.payment-module .bas-range .filters{display:flex;flex-wrap:wrap;gap:7px}.payment-module select{max-width:100%}.payment-module .panel,.payment-module .pay-split>*{min-width:0}.payment-module .pay-metrics .pay-metric>b{font-size:20px}
@media(max-width:1100px){.payment-module .pay-cards,.payment-module .pay-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-module .pay-split{grid-template-columns:1fr}.payment-module .pay-lifecycle{grid-template-columns:repeat(3,minmax(0,1fr))}}
.payment-module .pay-variance-value{display:block;margin:4px 0;font-variant-numeric:tabular-nums}.payment-module .pay-worksheet-tools{align-items:end;margin-bottom:12px}.payment-module .pay-worksheet-tools label{display:grid;gap:5px;font-size:12px;color:#526e70}.payment-module .pay-worksheet-tools select{padding:9px;border:1px solid #bdd6d3;border-radius:7px;background:white;color:#174e51}.payment-module .pay-sheet td{vertical-align:middle}.payment-module .pay-sheet td:last-child{min-width:110px}.payment-module .pay-sheet details{margin-top:6px;font-size:11px}
@media(max-width:600px){.payment-module .pay-cards,.payment-module .pay-three,.payment-module .pay-summary,.payment-module .pay-metrics{grid-template-columns:1fr}.payment-module .pay-lifecycle{grid-template-columns:1fr 1fr}.payment-module .pay-panel{padding:12px}.payment-module .pay-bridge-total{flex-wrap:wrap}.payment-module .btn{min-height:40px}.payment-module .pay-bridge>div>span{max-width:65%}.payment-module .pay-metric>b{font-size:22px}}
/* Match existing BAS controls in the RIA and Owner account forms. */
#groupForm .detail-grid,#ownerMoneyForm .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
#groupForm .detail-grid label,#ownerMoneyForm .detail-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;text-transform:none;color:var(--ink,#173f46)}
#groupForm .detail-grid input,#groupForm textarea,#ownerMoneyForm input,#ownerMoneyForm select,#ownerMoneyForm textarea{box-sizing:border-box;width:100%;min-width:0;padding:10px 12px;border:1px solid #bed6d8;border-radius:8px;background:#fff;color:#173f46;font:inherit}
#groupForm textarea,#ownerMoneyForm textarea{min-height:72px}
#groupFormMessage,#ownerMoneyMessage{color:#a32626;margin-top:12px}
@media(max-width:600px){#groupForm .detail-grid,#ownerMoneyForm .detail-grid{grid-template-columns:1fr}}

.bas-ops{--ops-green:var(--teal);--ops-line:var(--line);--ops-muted:var(--muted);color:var(--text);min-width:0}.bas-ops *{box-sizing:border-box}.bas-ops .ops-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}.bas-ops h2,.bas-ops h3,.bas-ops h4{margin:0 0 8px}.bas-ops p{margin:5px 0 12px}.bas-ops .ops-sub{font-size:12px;color:var(--ops-muted);line-height:1.5}.bas-ops .ops-tabs{display:flex;flex-wrap:wrap;gap:7px;background:var(--panel);padding:12px;border-radius:14px;margin-bottom:20px}.bas-ops .ops-tabs button{background:var(--panel);color:var(--teal);border:1px solid var(--line);border-radius:999px;padding:9px 12px}.bas-ops .ops-tabs button.active{background:var(--teal);color:#fff}.bas-ops button{cursor:pointer}.bas-ops .ops-btn{border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:var(--panel);color:var(--teal);font-weight:700}.bas-ops .ops-btn.primary{background:var(--teal);color:white}.bas-ops .ops-btn.danger{color:#a4271d;background:#fff2ef}.bas-ops .ops-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.bas-ops .ops-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bas-ops .ops-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.bas-ops .ops-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.bas-ops .ops-panel,.bas-ops .ops-card{background:#fff;border:1px solid var(--ops-line);border-radius:14px;padding:16px;min-width:0}.bas-ops .ops-panel{margin-bottom:14px;box-shadow:var(--shadow)}.bas-ops .ops-card strong{font-size:23px;display:block;margin:7px 0}.bas-ops .ops-k{font-size:11px;letter-spacing:.07em;font-weight:850;text-transform:uppercase;color:var(--ops-muted)}.bas-ops .ops-badge{display:inline-block;border-radius:99px;padding:5px 8px;font-size:11px;font-weight:800;background:#edf2ef;color:#42574d}.bas-ops .ops-badge.good{background:#e4f4ec;color:#176344}.bas-ops .ops-badge.bad{background:#ffebe8;color:#ac281f}.bas-ops .ops-badge.warn{background:#fff2d8;color:#87550f}.bas-ops .ops-table{overflow:auto;width:100%;margin-top:12px}.bas-ops table{width:100%;border-collapse:collapse;font-size:13px}.bas-ops th,.bas-ops td{padding:10px;text-align:left;border-bottom:1px solid #e5ede8;vertical-align:top;min-width:90px}.bas-ops th{font-size:11px;color:var(--dark);background:#e8f3f1}.bas-ops input,.bas-ops select,.bas-ops textarea{width:100%;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:9px;background:white;color:var(--text)}.bas-ops textarea{min-height:90px}.bas-ops label{display:grid;gap:6px;font-size:12px;font-weight:700;margin:10px 0}.bas-ops input[type=checkbox]{width:18px;height:18px}.bas-ops .ops-link{color:var(--teal);background:none;border:0;padding:0;font-size:12px;font-weight:700;text-align:left}.bas-ops .ops-alert{padding:12px;border-radius:10px;background:#fff7e5;border-left:4px solid #b97b20;margin:10px 0;overflow-wrap:anywhere}.bas-ops .ops-alert.good{background:#edf7f0;border-color:#22835c}.bas-ops .ops-alert.bad{background:#fff0ec;border-color:#ba3026}.bas-ops details.ops-panel>summary{font-weight:800;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.bas-ops .ops-progress{height:10px;background:#e5eee9;border-radius:20px;overflow:hidden;margin:10px 0}.bas-ops .ops-progress i{display:block;height:100%;background:var(--teal)}.bas-ops .ops-order{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.6fr);gap:14px}.bas-ops img{max-width:100%;max-height:440px;object-fit:contain}.bas-ops .ops-info{border:0;border-radius:50%;background:#e7f3f1;color:var(--teal);padding:2px 6px;margin-left:5px}.bas-ops .ops-error{color:#ad2920;white-space:pre-wrap;margin:12px 0}.bas-ops pre{white-space:pre-wrap;overflow-wrap:anywhere}.bas-ops .ops-stock-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.bas-ops .ops-stock-values>div{background:#f3f7f4;padding:9px;border-radius:8px}.bas-ops .ops-stock-values b{display:block}.bas-ops .ops-log{border-left:2px solid #d7e5dc;padding-left:14px}.bas-ops .ops-log article{padding:10px 0;border-bottom:1px solid #e6eee8}.bas-ops .ops-search{margin-bottom:14px}.bas-ops .ops-checkline{border-bottom:1px solid #e4ede6;padding:12px 0}.bas-ops .ops-checkline:last-child{border:0}@media(max-width:1100px){.bas-ops .ops-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.bas-ops .ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bas-ops .ops-order{grid-template-columns:1fr}}@media(max-width:700px){.bas-ops .ops-grid,.bas-ops .ops-grid.two,.bas-ops .ops-grid.four{grid-template-columns:1fr}.bas-ops .ops-panel{padding:13px}.bas-ops .ops-tabs{gap:5px}.bas-ops .ops-tabs button{font-size:12px}.bas-ops .ops-stock-values{grid-template-columns:1fr}}

.bas-ops{font-family:inherit}.bas-ops button,.bas-ops input,.bas-ops select,.bas-ops textarea{font-family:inherit}.bas-ops .ops-tabs{border:1px solid var(--line);box-shadow:var(--shadow);padding:16px}.bas-ops .ops-tabs button{font-size:13px;font-weight:700}.bas-ops .ops-panel>h3,.bas-ops .ops-panel>h4{font-size:12px;font-weight:900;letter-spacing:.09em;color:var(--teal);text-transform:uppercase;border-bottom:2px solid var(--teal);padding-bottom:8px;margin-bottom:14px}.bas-ops .ops-btn{font-size:13px}.bas-ops .ops-template-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.bas-ops .ops-template-choices label{display:flex;align-items:center}.bas-ops fieldset{border:1px solid var(--line);border-radius:10px;margin:12px 0;min-width:0}.bas-ops .ops-issue-step{display:flex;align-items:center;gap:8px}

.bas-ops button,.bas-ops input,.bas-ops select{scroll-margin-top:70px}.bas-ops .ops-card .ops-actions{margin-top:10px}.bas-ops .ops-card h4{overflow-wrap:anywhere}
.ops-live-row{display:grid;grid-template-columns:minmax(140px,1.3fr) minmax(100px,1fr);gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.ops-live-row .ops-actions{flex-wrap:wrap}.ops-live-row:last-child{border-bottom:0}@media(max-width:600px){.ops-live-row{grid-template-columns:1fr}}


/* Shared BAS operator presentation. Financial data, permissions and source actions
   remain owned by their existing modules. */
:root{--shadow:0 2px 8px rgba(17,66,71,.035);--bas-radius:12px}
body{font-size:14px;line-height:1.5}
button,input,select,textarea{font-family:inherit}
.content{max-width:1720px;padding:24px}
.sidebar{position:sticky;top:38px;height:calc(100dvh - 38px);overflow-y:auto}
.sidebar nav button{font-size:14px;line-height:1.4;padding:10px 12px}
.page-head h1,.atm-module .head h1{font-size:30px;font-weight:650;letter-spacing:-.025em;line-height:1.2}
.bas-ops>.ops-head h2{font-size:30px;letter-spacing:-.025em}
.panel,.ops-panel,.ops-card{border-radius:var(--bas-radius);box-shadow:var(--shadow)}
.panel h2,.bas-ops h2{font-size:24px;font-weight:650}
.panel h3,.bas-ops h3,.bas-ops .ops-panel>h3,.bas-ops .ops-panel>h4{font-size:17px;letter-spacing:0;text-transform:none;font-weight:650;border-bottom:1px solid var(--line);padding-bottom:10px}
.k,.ops-k,.bas-ops .ops-k{font-size:15px;letter-spacing:0;text-transform:none;font-weight:650;border-bottom-width:1px}
.metrics{gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.metrics>.metric{border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;min-width:0;padding:14px 16px}
.metric b,.metric-click b{font-size:25px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric span,.muted,.small,.bas-ops .ops-sub{font-size:13px;line-height:1.5}
.badge,.bas-ops .ops-badge{font-size:12px;font-weight:650;letter-spacing:0}
.btn,.bas-ops .ops-btn{font-size:14px;font-weight:600;min-height:38px;line-height:1.3}
.btn.small{font-size:13px;min-height:34px}
.chip,.bas-ops .ops-tabs button{font-size:14px;font-weight:600}
.daily-toolbar,.ria-toolbar,.payment-tabs,.bas-ops .ops-tabs{gap:8px;flex-wrap:wrap;align-items:center}
.form label,.bas-ops label{font-size:14px;font-weight:600}
.form input,.form select,.form textarea,.bas-ops input,.bas-ops select,.bas-ops textarea{font-size:14px;min-height:40px}
table,.bas-ops table,.atm-module table{font-size:14px;font-variant-numeric:tabular-nums}
th,.bas-ops th,.atm-module th{font-size:13px;font-weight:650;padding:12px 10px}
td,.bas-ops td{padding:12px 10px;line-height:1.45}
.table-wrap,.tablewrap,.ops-table,.ws-tablewrap{max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.table-wrap>table,.tablewrap>table,.ops-table>table{min-width:640px}
.table-wrap th,.tablewrap th,.ops-table th{position:sticky;top:0;z-index:1}
.panel,.ops-panel,.ops-card,.detail-grid>*,.safe-dash-grid2>*{min-width:0}
.owner-position-card{transition:border-color .15s;background:#fff}
.owner-access{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.owner-position-card:hover{border-color:var(--teal)}
.owner-position-card .metrics{grid-template-columns:1fr;border:0;margin:12px 0}
.owner-position-card .metric{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-right:0;border-bottom:1px solid var(--line);min-height:0}
.owner-position-card .metric b{font-size:23px;order:2}
.owner-position-card .metric span{order:1}
.owner-position-card .muted{margin-bottom:0}
.ops-domain-details>summary{cursor:pointer;font-size:17px;font-weight:650;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ops-domain-details[open]>summary{margin-bottom:14px}
.ops-domain-row{font-size:14px}
.ops-legend{font-size:13px!important}
.bas-ops .ops-card strong{font-size:22px}
.notice,.empty{font-size:14px;line-height:1.55}
.drawer-head,#basWs .ws-head{position:sticky;top:0;z-index:5;background:#fff;padding-bottom:12px}
.drawer h2,#basWs .ws-head h2{font-size:24px}
:where(button,a,input,select,textarea,summary,[role=button]):focus-visible{outline:3px solid #318b86;outline-offset:3px}
@media(max-width:1100px){.content{padding:18px}.metrics{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.daily-toolbar{flex-wrap:wrap!important}.daily-toolbar>.metric{flex:1 1 200px!important}}
@media(max-width:980px){.sidebar{position:relative;top:0;height:auto;overflow:visible}.sidebar nav{display:flex;flex-direction:row;overflow-x:auto;flex-wrap:nowrap;gap:6px}.sidebar nav button{flex:0 0 auto;white-space:nowrap}.shell{grid-template-columns:minmax(0,1fr)}.content{overflow-x:visible}.main{min-width:0}.sidebar .side-meta{flex-direction:row;flex-wrap:wrap}.topbar{flex-wrap:wrap}.top-actions{flex-wrap:wrap}}
@media(max-width:700px){.content{padding:14px!important}.page-head h1,.atm-module .head h1,.bas-ops>.ops-head h2{font-size:28px}.page-head{flex-wrap:wrap}.panel,.bas-ops .ops-panel{padding:14px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metric b{font-size:23px}.metric span{font-size:13px}.form.two,.form.three,.detail-grid{grid-template-columns:minmax(0,1fr)}.span2,.span3{grid-column:1/-1}.owner-position-card .metrics{grid-template-columns:1fr!important}.cards-grid{grid-template-columns:minmax(0,1fr)!important}.safe-dash-grid2,.split{grid-template-columns:1fr!important}.daily-toolbar{display:flex!important;flex-wrap:wrap!important}.daily-toolbar>.metric{width:100%;flex-basis:100%!important}.drawer{width:100%;max-width:100vw;padding:14px}.drawer-head{gap:8px}.filters{display:flex;flex-wrap:wrap}.filters input,.filters select{max-width:100%;min-width:0}.bas-ops .ops-grid.three{grid-template-columns:1fr!important}.ops-domain-row{flex-wrap:wrap}.ops-domain-row>span{max-width:100%}.bas-ops .ops-tabs{padding:10px}.bas-ops .ops-tabs button{font-size:13px}#basWs{top:2dvh!important;width:98vw!important;height:96dvh!important}#basWs .ws-head,#basWs .ws-body{padding:14px!important}.topbar{padding:12px}.top-actions{width:100%}.email-state{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){.owner-access{margin-left:0}.sidebar{padding:10px 12px;gap:9px}.sidebar .mark{width:34px;height:34px}.sidebar nav button{padding:8px 10px}.sidebar .side-meta{font-size:12px;align-items:center}.topbar{gap:10px}.top-actions{gap:6px}}
/* VERDE_RESTAURANT_MENU_MANAGER_V69_CSS */
.v69-menu-dashboard .section-head{align-items:flex-start}
.v69-metrics{grid-template-columns:repeat(6,minmax(0,1fr));margin:18px 0}
.v69-subtabs{margin-top:18px}
.v69-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;margin:14px 0 18px}
.v69-filters label{font-size:12px;font-weight:700;color:#53625f}
.v69-filters input,.v69-filters select{margin-top:5px;width:100%}
.v69-thumb{width:74px;height:58px;border-radius:10px;object-fit:cover;border:1px solid #dfe7e3;background:#f5f8f6}
.v69-thumb-empty{display:grid;place-items:center;text-align:center;padding:6px;color:#7a8784;font-size:11px}
.v69-mini-chip{display:inline-flex;padding:4px 7px;margin:2px;border-radius:999px;background:#edf5f2;color:#0c5b4b;font-size:10px;font-weight:800}
.v69-actions{min-width:260px;flex-wrap:wrap}
.v69-image-preview{padding:10px;border:1px dashed #ccd9d5;border-radius:12px;background:#f8fbfa}
.v69-image-preview .v69-thumb{width:180px;height:130px}
.v69-modifier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.v69-mod-card{border:1px solid #dfe7e3;border-radius:16px;padding:16px;background:#fff}
.v69-mod-card.is-inactive,.v69-mod-link.is-inactive{opacity:.65}
.v69-mod-card h4{margin:0 0 4px;font-size:16px;color:#153f36}
.v69-option-list{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.v69-option-chip{padding:6px 9px;border-radius:999px;background:#f2f6f4;border:1px solid #dfe7e3;font-size:11px}
.v69-option-chip.is-inactive{text-decoration:line-through;opacity:.6}
.v69-mod-link-list{display:grid;gap:10px}
.v69-mod-link{border:1px solid #dfe7e3;border-radius:14px;padding:12px;display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:10px;align-items:center}
.v69-mod-main{font-size:14px}
.v69-small-input{width:72px!important}
.v69-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.v69-photo-card{border:1px solid #dfe7e3;border-radius:14px;overflow:hidden;background:#fff}
.v69-photo-card img{width:100%;height:170px;object-fit:cover;background:#f4f6f5}
.v69-photo-card div{padding:12px;display:grid;gap:4px}
.v69-photo-card span,.v69-photo-card small{color:#697572}
@media(max-width:1100px){
 .v69-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 .v69-modifier-grid{grid-template-columns:1fr}
 .v69-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v69-mod-link{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
 .v69-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v69-filters{grid-template-columns:1fr}
 .v69-photo-grid{grid-template-columns:1fr}
 .v69-mod-link{grid-template-columns:1fr}
}
/* END VERDE_RESTAURANT_MENU_MANAGER_V69_CSS */
/* VERDE_PUBLIC_SITE_MEDIA_MANAGER_V70_CSS */
.v70-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.v70-slot-card{border:1px solid #dfe7e3;border-radius:16px;padding:16px;background:#fff;display:grid;gap:12px}
.v70-slot-label{font-weight:900;color:#0b4c40;font-size:15px}
.v70-slot-card p{margin:3px 0;color:#687873;font-size:12px}
.v70-slot-preview{display:grid;grid-template-columns:112px 1fr;gap:12px;align-items:center}
.v70-slot-preview img,.v70-current-photo img{width:112px;height:80px;object-fit:cover;border-radius:10px;border:1px solid #dfe7e3}
.v70-empty-photo{height:80px;border:1px dashed #cbd9d4;border-radius:10px;display:grid;place-items:center;color:#7a8784;background:#f8fbfa}
.v70-slot-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.v70-slot-actions select{min-width:220px;flex:1}
.v70-gallery-current{display:grid;gap:8px}
.v70-current-photo{display:grid;grid-template-columns:112px 1fr;gap:10px;align-items:center;border:1px solid #e4ebe8;border-radius:12px;padding:8px}
.v70-current-photo>div{display:flex;justify-content:space-between;gap:8px;align-items:center}
.v70-library-thumb{width:84px;height:62px;object-fit:cover;border-radius:9px}
.v70-chip{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eaf4ef;color:#0b4c40;font-size:10px;font-weight:800;margin:2px}
@media(max-width:900px){.v70-slot-grid{grid-template-columns:1fr}}
/* END VERDE_PUBLIC_SITE_MEDIA_MANAGER_V70_CSS */

/* ==========================================================================
   VERDE_PORTAL_TYPOGRAPHY_V721
   One authoritative UI font family across the shell and all modules.
   Layout, font sizes, permissions and business logic are intentionally untouched.
   ========================================================================== */
:root {
  --verde-font-ui: "Inter", "Segoe UI", Arial, sans-serif;
  --verde-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html,
body,
body * {
  font-family: var(--verde-font-ui) !important;
}

body code,
body pre,
body kbd,
body samp,
body .history-json {
  font-family: var(--verde-font-mono) !important;
}
/* END VERDE_PORTAL_TYPOGRAPHY_V721 */
