:root{
  --bg:#071b28;--bg2:#0b2638;--panel:#0d3045;--panel2:#103a52;--panel3:#12435e;
  --line:#225a73;--line-soft:#17475d;--text:#f4f9fc;--muted:#9cb8c8;--accent:#16a6d4;
  --accent2:#2c79c7;--green:#54dc9a;--yellow:#ffc75a;--violet:#8f7cf7;--danger:#ff6f78;
  --shadow:0 18px 45px rgba(0,0,0,.24);--radius:14px
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at 78% 0,#0c3147 0,var(--bg) 38%,#061722 100%);color:var(--text);min-height:100vh}a{color:#5dc8f0;text-decoration:none}a:hover{color:#9de5ff}button,input,select,textarea{font:inherit}
#sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;background:linear-gradient(180deg,#0c3045 0,#082233 60%,#061b29 100%);border-right:1px solid #17475d;color:#fff;padding:18px 12px;transition:.22s ease;z-index:20;box-shadow:10px 0 35px rgba(0,0,0,.12)}
.side-brand{display:flex;align-items:center;gap:12px;padding:2px 8px 22px;border-bottom:1px solid #1b4d63;margin-bottom:16px}.side-brand strong{display:block;font-size:18px;letter-spacing:.2px;white-space:nowrap}.side-brand small{display:block;color:#92b5c8;font-size:11px;margin-top:3px;white-space:nowrap}.brand-mark{width:72px;height:72px;border-radius:18px;background:linear-gradient(145deg,#139ed1,#1e6fc3);border:1px solid #4bd6ff80;color:#fff;display:grid;place-items:center;font-weight:800;font-size:22px;box-shadow:0 12px 30px #001d2f80,inset 0 1px #ffffff33}.brand-mark.sm{width:42px;height:42px;border-radius:11px;font-size:13px;flex:0 0 auto}
#sidebar>a{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 13px;margin:4px 0;border-radius:10px;color:#b9d1de;font-weight:650;border:1px solid transparent;transition:.16s}.nav-icon{width:23px;height:23px;display:grid;place-items:center;flex:0 0 23px}.nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-label{white-space:nowrap}#sidebar>a:hover{background:#123f57;color:#fff;border-color:#205a72}#sidebar>a.active{background:linear-gradient(135deg,#0f83bd55,#16669650);border-color:#1e90c2;color:#fff;box-shadow:inset 3px 0 #24b4e8,0 8px 20px rgba(0,0,0,.12)}
#main{margin-left:250px;transition:.22s ease;min-height:100vh}header{height:76px;background:#0a283aee;border-bottom:1px solid #1e5268;display:flex;align-items:center;padding:0 24px;gap:16px;position:sticky;top:0;z-index:15;backdrop-filter:blur(12px)}.iconbtn{border:1px solid #235c74;background:#0e3a52;color:#d7eef8;width:42px;height:42px;border-radius:10px;font-size:20px;cursor:pointer;box-shadow:inset 0 1px #ffffff12}.iconbtn:hover{background:#14506c}.header-title strong{font-size:17px}.header-sub{display:block;font-size:11px;color:#8fb0c2;margin-top:3px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:11px}.header-chip{border:1px solid #27677c;background:#0d3b4c;color:#78e6b0;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700}.user-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#3d83b6,#21516f);border:1px solid #5fa5cf;color:#fff;font-weight:800}.userbox{font-size:12px;line-height:1.15}.userbox b{display:block}.userbox span{display:block;color:#91adbd;margin-top:4px}.logout{font-size:12px;border-left:1px solid #245267;padding-left:12px}
.content{padding:28px}.collapsed #sidebar{width:74px}.collapsed #sidebar .side-brand>div,.collapsed .nav-label{display:none}.collapsed #sidebar .side-brand{justify-content:center;padding-left:0;padding-right:0}.collapsed #main{margin-left:74px}.collapsed #sidebar>a{justify-content:center;padding-left:0;padding-right:0}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 20px}.page-heading h1{margin:3px 0 4px;font-size:28px;letter-spacing:-.3px}.page-heading p{margin:0;color:var(--muted);font-size:13px}.eyebrow{color:#49c7ed;text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:10px}.date-chip{border:1px solid #245b73;background:#0d3145;border-radius:10px;color:#bdd8e5;padding:10px 14px;font-size:12px}h1{margin:0 0 20px;font-size:27px}h2{margin:0 0 16px;font-size:20px}h3{margin:0}.titlebar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.titlebar h1{margin:0}
.cards{display:grid;grid-template-columns:repeat(5,minmax(155px,1fr));gap:15px;margin-bottom:20px}.stat{position:relative;overflow:hidden;background:linear-gradient(145deg,#0f3c55,#0b2d42);border:1px solid #24627d;border-radius:14px;padding:18px;box-shadow:var(--shadow);min-height:116px}.stat:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-35px;top:-35px;background:#25b6e51a}.stat:nth-child(2){border-color:#2e9c89}.stat:nth-child(3){border-color:#b28b39}.stat:nth-child(4){border-color:#665ab4}.stat:nth-child(5){border-color:#9f4b57}.stat span{display:block;color:#a7c2d0;font-size:12px;margin-bottom:12px}.stat strong{font-size:26px;color:#fff;letter-spacing:-.5px}
.panel{background:linear-gradient(145deg,#0d3045,#0a293c);border:1px solid #20566e;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);overflow:auto}.panel+.panel{margin-top:18px}.formpanel{max-width:1080px}.section-title{display:flex;align-items:center;gap:12px;padding:3px 0 12px;border-bottom:1px solid #1e5066;margin:4px 0 17px}.section-title:not(:first-of-type){margin-top:25px}.section-title>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#0e4a66;border:1px solid #1b7798;color:#62d9ff;font-size:11px;font-weight:800}.section-title h3{font-size:15px}.section-title p{margin:3px 0 0;color:var(--muted);font-size:11px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #2c6580;background:#103a50;color:#eaf7fc;border-radius:9px;padding:10px 15px;font-weight:750;cursor:pointer;box-shadow:inset 0 1px #ffffff0d;transition:.15s}.btn:hover{background:#154b65;color:#fff;transform:translateY(-1px)}.btn.primary{background:linear-gradient(90deg,#168fc5,#16acd0);border-color:#38c1e8;color:#fff;box-shadow:0 8px 20px #009ac43a}.btn.subtle{margin:8px 0 2px;background:#0b293a}.wide{width:100%}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #1c4b60}
table{width:100%;border-collapse:separate;border-spacing:0}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #17465a;white-space:nowrap}th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#95b4c4;background:#10364a}tr:hover td{background:#0f3449}td{font-size:13px;color:#dbeaf1}.badge{background:#164a5c;color:#7ce3ae;border:1px solid #26736d;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}
label{display:block;font-size:12px;font-weight:750;color:#d4e6ee;margin-bottom:14px}input,select,textarea{width:100%;margin-top:6px;padding:11px 12px;border:1px solid #2b6075;border-radius:8px;color:#f3fbff;background:#0a2637;outline:none;transition:.15s}input:focus,select:focus,textarea:focus{border-color:#2db8e5;box-shadow:0 0 0 3px #20a7d21f}input::placeholder,textarea::placeholder{color:#66899b}select option{background:#0b2a3c;color:#fff}textarea{resize:vertical}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.compound-field{display:grid;grid-template-columns:140px 1fr;gap:8px}.compound-field select,.compound-field input{margin-top:6px}.email-manager{border:1px solid #245b73;background:#092638;border-radius:12px;overflow:hidden}.email-manager-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid #1e5066;background:#0d3145}.email-manager-head strong{display:block;font-size:12px}.email-manager-head span{display:block;margin-top:3px;color:var(--muted);font-size:10px}.email-add-btn{margin:0!important;padding:8px 12px}.email-chip-list{height:118px;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.email-chip-row{min-width:0;height:46px;display:grid;grid-template-columns:31px minmax(0,1fr) 30px;align-items:center;gap:9px;background:#0d3247;border:1px solid #20576f;border-radius:9px;padding:6px 7px}.email-chip-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#0f4e6d;border:1px solid #237ea3;color:#62d9ff;font-weight:900}.email-chip-copy{min-width:0}.email-chip-copy strong{display:block;color:#edf8fc;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-chip-copy span{display:block;color:#8eb0c0;font-size:9px;margin-top:2px}.email-chip-remove{width:28px;height:28px;border:1px solid #75444e;background:#3f2630;color:#ff9ba2;border-radius:7px;font-size:17px;line-height:1;cursor:pointer}.email-chip-remove:hover{background:#582c37}.modal-backdrop{position:fixed;inset:0;background:#020b11c7;display:none;align-items:center;justify-content:center;padding:20px;z-index:100;backdrop-filter:blur(5px)}.modal-backdrop.show{display:flex}.modal-card{width:min(620px,100%);background:linear-gradient(145deg,#103a52,#0a293c);border:1px solid #2a6c87;border-radius:14px;box-shadow:0 30px 90px #000a;padding:20px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:14px;border-bottom:1px solid #1f5268;margin-bottom:16px}.modal-head h3{font-size:18px;margin-top:4px}.modal-close{width:34px;height:34px;border:1px solid #356b80;background:#0c3044;color:#cce3ed;border-radius:8px;font-size:21px;cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:14px;border-top:1px solid #1f5268;margin-top:5px}.email-modal-grid{align-items:end}.field-error{color:#ff9ba2;font-size:11px;margin:-3px 0 10px}.muted{color:var(--muted)}
.alert{padding:12px 14px;border-radius:9px;margin:0 0 16px}.alert.error{background:#4a242a;color:#ffc6c9;border:1px solid #82414a}.alert.success{background:#153e35;color:#8ff0bb;border:1px solid #2a6f5a}
.login-bg{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 20%,#16465a 0,#0d2e3e 34%,#071d29 72%,#061722 100%);padding:25px}.login-card{width:min(535px,100%);background:linear-gradient(160deg,#153e50ee,#0d2e3fee);border:1px solid #35647a;border-radius:18px;padding:38px 42px;box-shadow:0 30px 90px #0008,inset 0 1px #ffffff14;text-align:left}.login-brand{display:flex;align-items:center;gap:18px}.login-brand .brand-mark{width:70px;height:70px;flex:0 0 70px}.login-brand h1{margin:0;font-size:27px}.login-brand p{margin:6px 0 0;color:#a3becb}.login-divider{height:1px;background:#315d70;margin:26px 0}.login-card h2{text-align:center;font-size:24px}.login-card>p{text-align:center;margin-top:-6px;margin-bottom:24px}.login-card form{text-align:left}.login-card label{margin-bottom:15px}.field-icon{position:relative}.field-icon>span{position:absolute;left:13px;top:17px;color:#82afc2;z-index:2}.field-icon input{padding-left:40px}.login-card .btn{margin-top:5px;height:48px}.login-footer{display:flex;justify-content:space-between;gap:10px;color:#86a8b8;border-top:1px solid #31586a;margin-top:28px;padding-top:18px;font-size:10px}.install-card{width:min(760px,100%)}.install-card .brand-mark{margin-bottom:12px}
.itemrow{display:grid;grid-template-columns:4fr 1fr 1.5fr 1fr;gap:10px;margin-bottom:8px}.invoice-sheet{background:#fff;color:#17222b;max-width:900px;margin:auto;padding:42px;border:1px solid #d5dce2;box-shadow:0 10px 30px #0004;border-radius:4px}.invoice-sheet table th{background:#eef3f6;color:#52606b}.invoice-sheet table td{color:#22313b;border-color:#e5e9ed}.invoice-sheet tr:hover td{background:#fafcfd}.invoice-head{display:flex;justify-content:space-between;border-bottom:2px solid #23344a;padding-bottom:20px;margin-bottom:25px}.invoice-head h1,.invoice-head h2{margin:0}.totals{margin-left:auto;width:310px;margin-top:20px}.totals p{display:flex;justify-content:space-between;border-bottom:1px solid #e7ebee;padding:8px}.totals .grand{font-size:20px}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){#sidebar{transform:translateX(-100%);width:250px}.collapsed #sidebar{transform:translateX(0)}#main,.collapsed #main{margin-left:0}.collapsed #sidebar .side-brand>div,.collapsed .nav-label{display:block}.collapsed #sidebar>a{justify-content:flex-start}.content{padding:16px}.grid2{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.header-chip,.userbox,.logout{display:none}.compound-field{grid-template-columns:1fr}.email-chip-list{grid-template-columns:1fr;height:132px}.page-heading{align-items:flex-start;flex-direction:column}.itemrow{grid-template-columns:1fr 80px 100px 80px}}
@media print{#sidebar,header,.no-print{display:none!important}#main{margin:0}.content{padding:0}.invoice-sheet{box-shadow:none;border:0;max-width:none}}

/* Rentrak QBA v0.3.5: slightly larger customer table typography */
.customers-table th{font-size:11px}
.customers-table td{font-size:14px}


/* Rentrak QBA v0.3.6: slightly larger Add/Edit Customer form typography.
   Action buttons and Add Email button intentionally retain their existing size. */
.customer-form label{font-size:13px}
.customer-form input,
.customer-form select,
.customer-form textarea{font-size:14px}
.customer-form .section-title h3{font-size:16px}
.customer-form .section-title p{font-size:12px}
.customer-form .email-manager-head strong{font-size:13px}
.customer-form .email-manager-head span{font-size:11px}
.customer-form .email-chip-copy strong{font-size:12px}
.customer-form .email-chip-copy span{font-size:10px}
.customer-form .btn,
.customer-form .email-add-btn{font-size:inherit}


/* Rentrak QBA v0.3.7: further increase Add/Edit Customer form typography.
   Keep Cancel, Save Customer, and Add Email button sizing unchanged. */
.customer-form label{font-size:14px}
.customer-form input,
.customer-form select,
.customer-form textarea{font-size:15px}
.customer-form .section-title h3{font-size:17px}
.customer-form .section-title p{font-size:13px}
.customer-form .email-manager-head strong{font-size:14px}
.customer-form .email-manager-head span{font-size:12px}
.customer-form .email-chip-copy strong{font-size:13px}
.customer-form .email-chip-copy span{font-size:11px}
.customer-form .btn,
.customer-form .email-add-btn{font-size:inherit}

/* Footer build information */
.app-footer-build{
    margin-top:22px;
    padding:12px 18px;
    border-top:1px solid rgba(120,190,220,.18);
    color:#8fb7c8;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}
.app-footer-build strong{color:#b9d7e3;font-weight:600}

/* v0.3.8 payment details */
.payment-meta-grid{margin-top:14px}
.payment-meta-grid label{font-size:13px}
.payment-meta-grid select,
.payment-meta-grid input{font-size:14px}
.field-help{display:block;margin-top:5px;color:#8fb7c8;font-size:11px}

/* v0.3.9 QuickBooks-style customer transaction history, CEA EDR theme */
.customer-link{font-weight:700;color:#bfe8f7;text-decoration:none}.customer-link:hover{color:#fff}
.sep{opacity:.35;margin:0 5px}
.customer-profile{display:flex;flex-direction:column;gap:16px}
.customer-summary-card{display:grid;grid-template-columns:84px 1fr 230px;gap:22px;align-items:start;background:linear-gradient(145deg,rgba(16,70,91,.97),rgba(9,45,63,.97));border:1px solid rgba(82,180,218,.28);border-radius:16px;padding:24px;box-shadow:0 14px 38px rgba(0,0,0,.2)}
.customer-avatar{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(137,216,244,.2);font-size:22px;font-weight:800}
.customer-title-line{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.customer-title-line h1{margin:4px 0 4px}.customer-title-line p{margin:0;color:#9dc5d5}
.customer-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:14px 28px;margin-top:20px}.customer-contact-grid span,.detail-grid span{display:block;color:#86aebe;font-size:12px;margin-bottom:3px}.customer-contact-grid strong{font-weight:600;color:#e9f7fb}
.financial-summary{background:rgba(197,222,255,.08);border:1px solid rgba(126,194,225,.18);border-radius:13px;padding:18px}.financial-title{font-weight:800;margin-bottom:14px}.financial-summary>div:not(.financial-title){position:relative;padding-left:14px;margin:14px 0}.financial-summary small{display:block;color:#a5c0cb}.financial-summary strong{display:block;font-size:22px;margin-top:3px}.dot{position:absolute;left:0;top:5px;width:7px;height:7px;border-radius:50%}.dot.amber{background:#f0b429}.dot.red{background:#ef5656}
.customer-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid rgba(127,190,213,.24);padding:0 6px}.customer-tabs a{padding:12px 14px;color:#a7c4d0;white-space:nowrap}.customer-tabs a.active{color:#fff;border-bottom:2px solid #21b6dd}
.transaction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.transaction-toolbar h2{margin:0}.transaction-toolbar p{margin:4px 0 0}.toolbar-actions{display:flex;gap:8px}
.transaction-table td,.transaction-table th{font-size:13px}.transaction-table tr:hover td{background:rgba(36,155,196,.055)}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#1db98b;margin-right:8px;box-shadow:0 0 0 3px rgba(29,185,139,.12)}
.empty-state{text-align:center;padding:30px!important;color:#86aebe}
.drawer-backdrop{position:fixed;inset:0;background:rgba(1,16,24,.46);z-index:2000}.qba-drawer{position:absolute;right:0;top:0;bottom:0;width:min(420px,94vw);background:#f7fafb;color:#26343b;box-shadow:-20px 0 60px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:auto}.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #dbe3e6}.drawer-head small{color:#495a61}.drawer-head h2{margin:7px 0 0;font-size:16px;color:#148d4d}.drawer-close{width:34px;height:34px;border:2px solid #0b705e;border-radius:9px;display:grid;place-items:center;text-decoration:none;color:#0b705e;font-size:25px;line-height:1}.drawer-section{padding:20px;border-bottom:1px solid #dbe3e6}.drawer-section h3{margin:0 0 11px}.drawer-section p{color:#3e4d53}.drawer-total>span{display:block;font-size:13px}.drawer-total>strong{display:block;font-size:34px;margin:5px 0 22px}.drawer-total>div{margin:12px 0}.drawer-total small{display:block;color:#5d6c72}.drawer-total b{display:block;margin-top:3px}.timeline{position:relative;padding-left:28px}.timeline:before{content:"";position:absolute;left:8px;top:7px;bottom:7px;width:2px;background:#bcc8cd}.timeline>div{position:relative;margin:0 0 20px}.timeline i{position:absolute;left:-27px;top:4px;width:12px;height:12px;border-radius:50%;background:#25a72d;border:2px solid #fff;box-shadow:0 0 0 2px #25a72d}.timeline b,.timeline span,.timeline a{display:block}.timeline span{margin:4px 0;color:#34454d;font-size:13px}.timeline a{font-size:13px;color:#1769aa}.drawer-line{display:flex;justify-content:space-between;gap:18px;padding:8px 0;border-bottom:1px solid #e3eaed}.drawer-line:last-child{border-bottom:0}.drawer-actions{margin-top:auto;position:sticky;bottom:0;background:#f7fafb;border-top:1px solid #dbe3e6;padding:13px 16px;display:flex;justify-content:flex-end;gap:8px}.qba-drawer .btn{color:#0a5d50;border-color:#0a6c5a}.qba-drawer .btn.primary{color:#fff;background:#075c4f}
.detail-card{max-width:900px}.detail-amount span{display:block;color:#8fb7c8}.detail-amount strong{display:block;font-size:34px;margin:4px 0 20px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.detail-grid strong{display:block;font-size:15px}
.payment-form label{font-size:14px}.payment-form input,.payment-form select,.payment-form textarea{font-size:15px}
@media(max-width:900px){.customer-summary-card{grid-template-columns:64px 1fr}.financial-summary{grid-column:1/-1}.customer-avatar{width:58px;height:58px}.customer-contact-grid{grid-template-columns:1fr}.transaction-toolbar{align-items:flex-start;flex-direction:column}}

/* v0.4.0 QuickBooks migration */
.import-stats .stat strong{font-size:27px}
.import-progress{margin:20px 0}
.progress-label{display:flex;justify-content:space-between;margin-bottom:7px;color:#b8d8e5}
.progress-track{height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;border:1px solid rgba(111,194,224,.15)}
.progress-track>div{height:100%;width:0;background:linear-gradient(90deg,#168ac1,#1ec4d9);transition:width .2s ease}
.import-progress pre{white-space:pre-wrap;background:rgba(3,24,34,.46);border:1px solid rgba(100,182,213,.16);padding:14px;border-radius:10px;color:#b9dbe7;min-height:120px}

/* v0.4.2 footer alignment: LOC left, version right */
.app-footer-build > div:last-child{margin-left:auto;text-align:right}

/* v0.4.3 Settings > Payment Review */
.review-summary{margin-bottom:16px}
.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.review-tabs{display:flex;gap:7px;flex-wrap:wrap}
.review-tabs a{padding:8px 12px;border:1px solid rgba(111,190,219,.2);border-radius:8px;color:#9fc6d5;text-decoration:none;background:rgba(5,36,50,.38)}
.review-tabs a.active{color:#fff;background:linear-gradient(180deg,#147ca7,#0e5e83);border-color:#27aee1}
.review-search{max-width:320px}
.review-list{display:flex;flex-direction:column;gap:14px}
.review-card{border:1px solid rgba(105,188,220,.18);border-radius:13px;background:linear-gradient(150deg,rgba(11,51,69,.85),rgba(7,35,49,.85));padding:16px}
.review-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:13px}
.review-card-head strong{display:block;font-size:15px;color:#edfaff}
.review-card-head span{display:block;margin-top:3px;color:#9cc0cf;font-size:12px}
.review-status{padding:5px 9px!important;border-radius:999px;font-size:11px!important;font-weight:700}
.review-status.linked{background:rgba(34,190,132,.13);color:#62e0b4;border:1px solid rgba(34,190,132,.3)}
.review-status.needs-review{background:rgba(243,177,53,.13);color:#ffd36b;border:1px solid rgba(243,177,53,.3)}
.review-meta{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.review-meta>div{padding:10px;border-radius:9px;background:rgba(255,255,255,.025);border:1px solid rgba(118,183,206,.10)}
.review-meta span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#7da9bb;margin-bottom:4px}
.review-meta b{font-size:12px;color:#d9edf5;word-break:break-word}
.review-form{display:grid;grid-template-columns:minmax(260px,1fr) 180px;gap:12px;align-items:end}
.review-form label{font-size:12px;color:#a9cad6}
.review-form select,.review-form input{font-size:13px}
.review-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:2px}
.btn.danger{border-color:rgba(235,91,91,.42);color:#ffaaaa;background:rgba(132,35,35,.18)}
.alert.success{background:rgba(34,190,132,.12);border:1px solid rgba(34,190,132,.3);color:#8cf0ca;padding:12px 14px;border-radius:10px;margin-bottom:14px}
.alert.error{background:rgba(225,75,75,.12);border:1px solid rgba(225,75,75,.28);color:#ffb0b0;padding:12px 14px;border-radius:10px;margin-bottom:14px}
@media(max-width:900px){
  .review-meta{grid-template-columns:repeat(2,1fr)}
  .review-form{grid-template-columns:1fr}
}

/* v0.4.4 Settings visibility fix */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.settings-card{display:flex;gap:16px;align-items:flex-start;min-height:170px}
.settings-card-icon{width:52px;height:52px;flex:0 0 52px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#137eac,#0d5679);border:1px solid rgba(87,191,228,.35);font-weight:800;font-size:15px;color:#fff}
.settings-card-icon.review-icon{font-size:24px;background:linear-gradient(145deg,#159577,#0e6958)}
.settings-card-content{flex:1}
.settings-card-title-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.settings-card h2{margin:0 0 8px}
.settings-card p{color:#a8c5d1;line-height:1.45}
.settings-count{min-width:42px;height:42px;padding:0 9px;border-radius:999px;display:grid;place-items:center;background:rgba(245,181,52,.13);border:1px solid rgba(245,181,52,.34);color:#ffd16b;font-weight:800}
.settings-card-actions{margin-top:14px}
#sidebar .nav-sub{margin:2px 9px 7px 27px;padding:9px 12px;border-radius:9px;font-size:12px;opacity:.86}
#sidebar .nav-sub-dot{width:7px;height:7px;border-radius:50%;background:#69bad8;display:inline-block;margin-right:10px}
#sidebar .nav-sub.active{background:rgba(26,151,194,.18);color:#fff;opacity:1}
@media(max-width:850px){.settings-grid{grid-template-columns:1fr}}

/* v0.4.5 invoice status */
.invoice-table .badge{font-size:13px;padding:6px 10px;font-weight:700}

/* QuickBooks-inspired Products & Services, using CEA EDR colors */
.product-attention{border-left:3px solid #e58926}
.product-attention ul{margin:8px 0 0;padding-left:22px;color:#b9d0da}
.product-filters{display:grid;grid-template-columns:minmax(250px,1.5fr) 190px 190px auto;gap:12px;align-items:end;margin-bottom:18px}
.product-filters label{font-size:12px;color:#9ec0ce}
.table-scroll{overflow:auto}
.products-table{min-width:1180px}
.products-table td{vertical-align:middle;font-size:12px}
.products-table th{white-space:nowrap}
.product-name-cell{display:flex;align-items:center;gap:10px;min-width:210px}
.product-name-cell img,.product-placeholder{width:42px;height:42px;object-fit:contain;border-radius:7px;background:rgba(255,255,255,.05);border:1px solid rgba(121,187,212,.18)}
.product-placeholder{display:grid;place-items:center;font-size:21px;color:#84afc0}
.product-name-cell a{font-weight:700}
.stock-out{display:inline-block;margin-left:5px;padding:3px 5px;border-radius:6px;background:#b92646;color:white;font-size:9px;font-weight:800}
.product-form-top{display:grid;grid-template-columns:150px 1fr;gap:20px;margin-bottom:16px}
.product-image-editor{display:flex;flex-direction:column;gap:10px;align-items:center}
.product-image-editor img,.product-image-empty{width:130px;height:130px;border-radius:14px;object-fit:contain;background:rgba(255,255,255,.04);border:1px solid rgba(109,190,221,.22)}
.product-image-empty{display:grid;place-items:center;font-size:48px;color:#6999ab}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.checkbox-label{display:flex!important;align-items:center;gap:8px;margin-top:25px}
.checkbox-label input{width:auto!important}
.business-glance{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:16px 0}
.qb-glance-card>span{font-size:12px;color:#89afbf}.qb-glance-card>strong{display:block;font-size:26px;margin:8px 0}.qb-glance-card p{color:#8facb8;font-size:12px}.glance-split{display:flex;gap:24px;margin-top:10px}.glance-split b{font-size:16px}.glance-split small{display:block;color:#8facb8;font-weight:400;margin-top:3px}
.template-editor-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(380px,1fr);gap:18px;align-items:start}.template-vars{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 18px}.template-vars span{padding:5px 8px;border:1px solid rgba(107,190,222,.22);background:rgba(6,43,58,.45);border-radius:7px;font-size:11px;color:#a9d2df}.email-preview-shell{position:sticky;top:16px}.email-preview-head{display:flex;justify-content:space-between;color:#9bbbc7;margin-bottom:8px;font-size:12px}.email-preview-card,.invoice-email-paper{background:#fff;color:#31383d;border-radius:10px;padding:28px;box-shadow:0 10px 32px rgba(0,0,0,.24)}.preview-logo{font-weight:900;color:#0d5065;text-align:center;margin:8px 0 24px}.preview-logo.big{font-size:24px}.preview-amount-box,.invoice-due-box{background:#dbe8ed;padding:22px;text-align:center;margin:18px 0}.preview-amount-box small,.invoice-due-box small{display:block;font-size:11px;font-weight:700}.preview-amount-box strong,.invoice-due-box strong{display:block;font-size:28px;margin:8px}.invoice-due-box button{background:#075568;color:#fff;border:0;padding:10px 30px;border-radius:5px;font-weight:700}.preview-body{line-height:1.55;white-space:normal}.preview-footer{text-align:center;border-top:1px solid #dde5e8;margin-top:24px;padding-top:14px;font-size:11px;color:#66747b}
.email-send-page{display:grid;grid-template-columns:minmax(420px,1fr) minmax(430px,1fr);gap:18px}.email-compose,.invoice-email-preview{background:var(--panel);border:1px solid rgba(108,185,213,.18);border-radius:14px;padding:18px}.email-compose-head{display:flex;align-items:center;gap:12px}.email-compose-head h1{font-size:18px}.attachment-chip{border:1px solid rgba(118,187,211,.2);padding:10px;border-radius:8px;background:rgba(255,255,255,.025)}.email-send-actions{display:flex;justify-content:flex-end;margin-top:12px}.invoice-email-preview{padding:20px;background:rgba(5,27,37,.4)}
@media(max-width:1000px){.product-filters{grid-template-columns:1fr 1fr}.business-glance,.template-editor-grid,.email-send-page{grid-template-columns:1fr}.email-preview-shell{position:static}.product-form-top{grid-template-columns:1fr}.grid3{grid-template-columns:1fr}}


/* =========================================================
   v0.4.6 — CEA DMS page theme
   IMPORTANT: these rules intentionally do NOT alter #sidebar
   or its navigation/menu styling.
   ========================================================= */

.content{
  background:
    linear-gradient(180deg, rgba(27,40,55,.82), rgba(21,32,45,.92)),
    radial-gradient(circle at 80% 0, rgba(55,83,107,.16), transparent 38%);
  min-height:calc(100vh - 76px);
  padding:24px 26px 30px;
}

/* Page titles / breadcrumbs */
.content .page-heading,
.content .titlebar{
  margin-bottom:16px;
}
.content .page-heading h1,
.content .titlebar h1,
.content > h1{
  color:#f2f5f8;
  font-weight:650;
  letter-spacing:.1px;
}
.content .page-heading p,
.content .titlebar .muted,
.content .muted{
  color:#9aa8b6;
}
.content .eyebrow{
  color:#86a8c1;
  letter-spacing:.08em;
  font-weight:650;
}

/* DMS-style panels */
.content .panel,
.content .customer-summary-card,
.content .email-compose,
.content .invoice-email-preview{
  background:#1f2b3a;
  border:1px solid #39495d;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}
.content .panel{
  padding:18px;
}
.content .panel h2,
.content .panel h3{
  color:#eef3f6;
  font-weight:650;
}

/* Statistic cards */
.content .stat{
  background:#1f2b3a;
  border:1px solid #3a4c60;
  border-radius:10px;
  box-shadow:none;
  min-height:104px;
}
.content .stat:after{display:none}
.content .stat span{color:#9aaaba}
.content .stat strong{font-size:25px;color:#f5f7f9}
.content .cards{gap:12px}

/* Forms and controls */
.content label{
  color:#c7d0d8;
  font-weight:500;
}
.content input,
.content select,
.content textarea{
  background:#1a2533;
  color:#edf2f5;
  border:1px solid #405166;
  border-radius:8px;
  min-height:40px;
}
.content input::placeholder,
.content textarea::placeholder{
  color:#78899a;
}
.content input:focus,
.content select:focus,
.content textarea:focus{
  outline:none;
  border-color:#6b8ba5;
  box-shadow:0 0 0 2px rgba(107,139,165,.16);
}
.content select option{
  background:#1f2b3a;
  color:#edf2f5;
}
.content .form-actions{
  border-top:1px solid #344456;
}

/* Buttons inside pages only */
.content .btn{
  background:#253446;
  border:1px solid #485c72;
  color:#e8eef3;
  border-radius:8px;
  box-shadow:none;
  transform:none;
}
.content .btn:hover{
  background:#2d4054;
  color:#fff;
  transform:none;
}
.content .btn.primary{
  background:#235a77;
  border-color:#397898;
  color:#fff;
  box-shadow:none;
}
.content .btn.primary:hover{
  background:#2a698a;
}
.content .btn.danger{
  background:#5b2e35;
  border-color:#81414b;
  color:#ffdadd;
}

/* DMS-style tables */
.content table{
  border-collapse:separate;
  border-spacing:0;
  background:#1f2b3a;
  border:1px solid #39495d;
  border-radius:9px;
  overflow:hidden;
}
.content th{
  background:#39475a;
  color:#dfe7ed;
  font-size:11px;
  font-weight:650;
  letter-spacing:.03em;
  text-transform:none;
  border-bottom:1px solid #48596d;
}
.content td{
  color:#d8e0e6;
  border-bottom:1px solid #38485a;
  background:#1f2b3a;
}
.content tr:last-child td{border-bottom:0}
.content tbody tr:hover td,
.content .transaction-table tr:hover td{
  background:#263548;
}
.content td a{
  color:#83b3d0;
  font-weight:600;
}
.content td a:hover{color:#b8ddf2}

/* Badges */
.content .badge,
.content .status-dot + *{
  font-weight:650;
}
.content .badge{
  background:#26384a;
  border:1px solid #4b6177;
  color:#e7edf2;
}

/* Filter and toolbar areas */
.content .product-filters,
.content .review-toolbar,
.content .transaction-toolbar{
  background:#1c2735;
  border:1px solid #364659;
  border-radius:9px;
  padding:12px;
}
.content .review-tabs a{
  background:#232f3e;
  border:1px solid #405267;
  color:#b9c5cf;
  border-radius:7px;
}
.content .review-tabs a.active{
  background:#39495c;
  border-color:#61778f;
  color:#fff;
}

/* Customer profile */
.content .customer-summary-card{
  background:#1f2b3a;
  border:1px solid #39495d;
}
.content .customer-avatar{
  background:#2b394a;
  border-color:#4b6076;
  color:#e8eef3;
}
.content .financial-summary{
  background:#243142;
  border:1px solid #3f5166;
}
.content .customer-tabs{
  border-bottom:1px solid #415167;
}
.content .customer-tabs a{
  color:#9baaba;
}
.content .customer-tabs a.active{
  color:#fff;
  border-bottom-color:#7ca2bc;
}

/* Settings/review cards */
.content .settings-card,
.content .review-card{
  background:#1f2b3a;
  border:1px solid #39495d;
  border-radius:10px;
}
.content .settings-card-icon{
  background:#2e4053;
  border-color:#52687e;
}
.content .review-meta>div{
  background:#243142;
  border-color:#3b4b5e;
}
.content .review-status.linked{
  background:#25483f;
  border-color:#3f7062;
  color:#b6e2d1;
}
.content .review-status.needs-review{
  background:#55472b;
  border-color:#816b42;
  color:#f0d29a;
}

/* Products */
.content .product-attention{
  background:#242f3d;
  border:1px solid #4c5663;
  border-left:3px solid #bb8249;
}
.content .product-name-cell img,
.content .product-placeholder{
  background:#243142;
  border-color:#405166;
}
.content .stock-out{
  background:#96384b;
  color:#fff;
}
.content .product-image-editor img,
.content .product-image-empty{
  background:#1b2735;
  border-color:#405166;
}

/* Email/template editor keeps white paper preview, editor adopts DMS */
.content .template-editor,
.content .email-compose{
  background:#1f2b3a;
  border-color:#39495d;
}
.content .email-preview-head{
  color:#a8b5c1;
}
.content .email-preview-card,
.content .invoice-email-paper{
  background:#fff;
  color:#2b3135;
}
.content .template-vars span{
  background:#263548;
  border-color:#45596e;
  color:#c6d4de;
}
.content .attachment-chip{
  background:#263548;
  border-color:#405166;
  color:#d9e2e8;
}

/* Invoice/payment full views */
.content .detail-card{
  background:#1f2b3a;
  border-color:#39495d;
}
.content .detail-grid span,
.content .detail-amount span{
  color:#9baaba;
}
.content .detail-grid strong,
.content .detail-amount strong{
  color:#f0f4f7;
}

/* Dashboard glance */
.content .qb-glance-card{
  background:#1f2b3a;
  border-color:#39495d;
}
.content .qb-glance-card>span,
.content .qb-glance-card p,
.content .glance-split small{
  color:#9aa8b5;
}

/* Alerts */
.content .alert.success{
  background:#263f37;
  border-color:#3f6759;
  color:#c1e4d5;
}
.content .alert.error{
  background:#4a3035;
  border-color:#72434b;
  color:#ffd4d8;
}

/* Footer/build info */
.content .app-footer-build{
  border-top:1px solid #38485b;
  color:#8f9ca8;
}

/* Keep responsive behavior clean */
@media(max-width:1000px){
  .content{padding:18px}
}


/* =========================================================
   v0.4.7 — CEA DMS exact light page theme
   Sidebar/menu intentionally untouched.
   ========================================================= */

.content{
  --dms-page:#edf7fb;
  --dms-card:#ffffff;
  --dms-line:#c8dce8;
  --dms-soft:#e8f4f9;
  --dms-soft2:#f5fbfd;
  --dms-head:#e3f0f6;
  --dms-text:#163247;
  --dms-muted:#627f90;
  --dms-blue:#0b789f;
  --dms-blue-dark:#086386;
  --dms-green:#1c8c64;
  --dms-orange:#d7821d;
  --dms-red:#c84051;
  background:
    radial-gradient(circle at 15% 0%,rgba(184,219,234,.28),transparent 33%),
    linear-gradient(180deg,#f3fbfe 0%,#eaf5fa 100%) !important;
  color:var(--dms-text)!important;
  min-height:calc(100vh - 76px);
  padding:26px 30px 34px;
}

/* typography */
.content,
.content label,
.content input,
.content select,
.content textarea,
.content button,
.content .btn,
.content table{
  font-family:Arial,Helvetica,sans-serif;
}
.content h1,
.content h2,
.content h3,
.content .page-heading h1,
.content .titlebar h1{
  color:#183246!important;
  font-weight:700!important;
}
.content .page-heading h1,
.content .titlebar h1{font-size:26px!important}
.content h2{font-size:18px!important}
.content h3{font-size:15px!important}
.content .muted,
.content .page-heading p,
.content .titlebar p,
.content .eyebrow{
  color:var(--dms-muted)!important;
}
.content .eyebrow{
  font-size:11px!important;
  font-weight:700!important;
  text-transform:uppercase;
  letter-spacing:.07em;
}

/* main white cards */
.content .panel,
.content .customer-summary-card,
.content .settings-card,
.content .review-card,
.content .email-compose,
.content .invoice-email-preview,
.content .detail-card{
  background:#fff!important;
  border:1px solid var(--dms-line)!important;
  border-radius:12px!important;
  box-shadow:0 8px 24px rgba(58,93,112,.08)!important;
  color:var(--dms-text)!important;
}
.content .panel{padding:18px 20px!important}

/* controls */
.content label{
  color:#34566b!important;
  font-size:12px!important;
  font-weight:700!important;
}
.content input,
.content select,
.content textarea{
  background:#fff!important;
  color:#173247!important;
  border:1px solid #b9d2df!important;
  border-radius:7px!important;
  min-height:38px!important;
  box-shadow:none!important;
}
.content input::placeholder,
.content textarea::placeholder{color:#7d929f!important}
.content input:focus,
.content select:focus,
.content textarea:focus{
  border-color:#5da3c4!important;
  box-shadow:0 0 0 2px rgba(51,139,179,.12)!important;
  outline:none!important;
}
.content select option{background:#fff!important;color:#173247!important}

/* buttons exactly in DMS spirit */
.content .btn{
  background:#e7f1f6!important;
  border:1px solid #d6e7ef!important;
  color:#264d63!important;
  border-radius:8px!important;
  box-shadow:none!important;
  font-weight:700!important;
}
.content .btn:hover{background:#dcecf4!important;color:#17394d!important}
.content .btn.primary{
  background:#0c7ca4!important;
  border-color:#0c7ca4!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(12,124,164,.16)!important;
}
.content .btn.primary:hover{background:#086b8e!important}
.content .btn.danger{
  background:#ca4050!important;
  border-color:#ca4050!important;
  color:#fff!important;
}

/* forms */
.content .formpanel{
  background:#fff!important;
}
.content .form-actions{
  border-top:1px solid #dce9ef!important;
  background:transparent!important;
}
.content .section-title,
.content .transaction-toolbar,
.content .review-toolbar,
.content .product-filters{
  background:#eef7fb!important;
  border:1px solid #d1e4ed!important;
  color:#21465a!important;
  border-radius:8px!important;
}
.content .section-title p,
.content .transaction-toolbar p{color:#627f90!important}

/* tables */
.content table{
  width:100%;
  background:#fff!important;
  border:0!important;
  border-collapse:collapse!important;
  border-radius:0!important;
  overflow:visible!important;
}
.content th{
  background:#e6f1f6!important;
  color:#587286!important;
  border-bottom:1px solid #d4e4ec!important;
  padding:12px 14px!important;
  font-size:10px!important;
  line-height:1.2;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.035em!important;
}
.content td{
  background:#fff!important;
  color:#173247!important;
  border-bottom:1px solid #dce8ee!important;
  padding:13px 14px!important;
}
.content tbody tr:hover td,
.content .transaction-table tr:hover td{
  background:#f1f8fb!important;
}
.content td a{
  color:#0b6f98!important;
  font-weight:700!important;
}
.content td a:hover{color:#084e6a!important}

/* status pills */
.content .badge{
  background:#dff3ea!important;
  border:0!important;
  color:#176d4d!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  font-weight:700!important;
}
.content .stock-out{
  background:#c62545!important;
  color:#fff!important;
  border-radius:6px!important;
}
.content .review-status.linked{
  background:#dff3ea!important;
  border:0!important;
  color:#176d4d!important;
}
.content .review-status.needs-review{
  background:#edf1f3!important;
  border:0!important;
  color:#667983!important;
}

/* dashboard */
.content .cards{gap:12px!important}
.content .stat{
  border:0!important;
  border-radius:10px!important;
  box-shadow:0 6px 16px rgba(44,92,116,.11)!important;
  color:#fff!important;
  min-height:92px!important;
}
.content .stat:nth-child(4n+1){background:linear-gradient(135deg,#1c78a0,#0b5f87)!important}
.content .stat:nth-child(4n+2){background:linear-gradient(135deg,#249867,#16805a)!important}
.content .stat:nth-child(4n+3){background:linear-gradient(135deg,#dc8b26,#c96f0f)!important}
.content .stat:nth-child(4n+4){background:linear-gradient(135deg,#d64d5d,#bf3546)!important}
.content .stat span,
.content .stat strong{color:#fff!important}
.content .stat span{font-size:11px!important}
.content .stat strong{font-size:26px!important;margin-top:7px!important}

/* dashboard quickbooks summary cards remain light */
.content .business-glance .qb-glance-card{
  background:#fff!important;
  border:1px solid var(--dms-line)!important;
}
.content .qb-glance-card>span,
.content .qb-glance-card p,
.content .glance-split small{color:#6d8796!important}
.content .qb-glance-card>strong,
.content .glance-split b{color:#173247!important}

/* customer profile */
.content .customer-summary-card{
  display:grid;
}
.content .customer-avatar{
  background:#edf6fa!important;
  border:1px solid #d2e4ec!important;
  color:#27526a!important;
}
.content .customer-title-line h1{color:#173247!important}
.content .customer-title-line p{color:#6c8492!important}
.content .customer-contact-grid span{color:#6d8492!important}
.content .customer-contact-grid strong{color:#173247!important}
.content .financial-summary{
  background:#e7f3ff!important;
  border:0!important;
  color:#173247!important;
}
.content .financial-summary small{color:#557487!important}
.content .financial-summary strong{color:#173247!important}
.content .customer-tabs{
  border-bottom:1px solid #cbdde6!important;
}
.content .customer-tabs a{color:#627f90!important}
.content .customer-tabs a.active{
  color:#0b6f98!important;
  border-bottom-color:#0b7da6!important;
}

/* settings cards, like DMS Settings screenshot */
.content .settings-card{
  min-height:0!important;
  background:#f7fcfe!important;
}
.content .settings-card-icon{
  background:#edf7fb!important;
  color:#0c759b!important;
  border:1px solid #cae1eb!important;
}
.content .settings-count{
  background:#ddf1f8!important;
  border:0!important;
  color:#176a8b!important;
}
.content .review-card{
  background:#fff!important;
}
.content .review-meta>div{
  background:#f4f9fb!important;
  border:1px solid #dfebf0!important;
}
.content .review-meta span{color:#708998!important}
.content .review-meta b{color:#173247!important}
.content .review-tabs a{
  background:#eaf4f8!important;
  border:1px solid #d8e7ee!important;
  color:#35586b!important;
}
.content .review-tabs a.active{
  background:#0c7ca4!important;
  border-color:#0c7ca4!important;
  color:#fff!important;
}

/* product page */
.content .product-attention{
  background:#f8fbfc!important;
  border:1px solid #d6e3e9!important;
  border-left:0!important;
}
.content .product-attention strong{color:#455d6b!important}
.content .product-attention ul{color:#536f80!important}
.content .product-name-cell img,
.content .product-placeholder{
  background:#fff!important;
  border:1px solid #d5e5ec!important;
}
.content .product-placeholder{color:#9db5c1!important}
.content .product-image-editor img,
.content .product-image-empty{
  background:#f8fbfc!important;
  border:1px solid #cbdde6!important;
  color:#87a6b6!important;
}

/* email template editor + preview */
.content .template-editor,
.content .email-compose{
  background:#fff!important;
}
.content .template-vars span{
  background:#edf7fb!important;
  border:1px solid #d6e7ef!important;
  color:#456879!important;
}
.content .email-preview-head{color:#617b89!important}
.content .email-preview-card,
.content .invoice-email-paper{
  background:#fff!important;
  color:#2d373c!important;
  border:1px solid #d2dfe5!important;
  box-shadow:0 8px 22px rgba(66,94,107,.10)!important;
}
.content .attachment-chip{
  background:#f5fafc!important;
  border:1px solid #d4e5ec!important;
  color:#405d6d!important;
}

/* payment/invoice detail */
.content .detail-grid span,
.content .detail-amount span{color:#6d8796!important}
.content .detail-grid strong,
.content .detail-amount strong{color:#173247!important}

/* alerts and helpers */
.content .alert.success{
  background:#e1f5eb!important;
  border:1px solid #c9eadc!important;
  color:#176c4e!important;
}
.content .alert.error{
  background:#fdebed!important;
  border:1px solid #f2c9ce!important;
  color:#a42d3d!important;
}
.content .field-help,
.content small{color:#68818f}

/* modal-like cards on page */
.content .email-compose-head,
.content .settings-card-title-row{
  color:#173247!important;
}

/* pagination-ish footer and build info */
.content .app-footer-build{
  border-top:0!important;
  color:#587485!important;
  padding-top:22px!important;
}

/* scrollbar/table polish */
.content .table-scroll{border-radius:9px;border:1px solid #d4e3eb}
.content .table-scroll table{border:0!important}

@media(max-width:1000px){
  .content{padding:18px!important}
}


/* v0.5.0 invoice workflow, customer search, suppliers, chart of accounts */
.invoice-titlebar{align-items:flex-start}
.invoice-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.action-dropdown{position:relative}
.action-dropdown>summary{list-style:none;cursor:pointer}
.action-dropdown>summary::-webkit-details-marker{display:none}
.action-dropdown-menu{
  position:absolute;right:0;top:calc(100% + 6px);z-index:90;min-width:220px;
  background:#fff;border:1px solid #cadce5;border-radius:9px;
  box-shadow:0 14px 34px rgba(36,74,94,.16);padding:6px
}
.action-dropdown:not([open]) .action-dropdown-menu{display:none}
.action-dropdown-menu a,.action-dropdown-menu button{
  display:block;width:100%;text-align:left;border:0!important;background:transparent!important;
  color:#254b60!important;padding:10px 11px!important;border-radius:6px!important;
  font-size:12px!important;font-weight:700!important;text-decoration:none;cursor:pointer;margin:0!important
}
.action-dropdown-menu a:hover,.action-dropdown-menu button:hover{background:#edf7fb!important}
.action-dropdown-menu form{margin:0}
.inline-notice{margin-top:10px;padding:9px 11px;border-radius:7px;background:#e8f5fb;border:1px solid #cae5f0;color:#37687e;font-size:12px;font-weight:700}
.customer-search-bar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:9px;align-items:center;margin-bottom:14px}
.customer-search-bar input{min-width:0}
.suppliers-table td{font-size:12px}
.suppliers-table strong{color:#173247}
.account-balance-positive{color:#176d4d;font-weight:700}
.account-balance-negative{color:#a42d3d;font-weight:700}
.import-progress{margin:20px 0}
.progress-label{display:flex;justify-content:space-between;margin-bottom:7px;color:#567586}
.progress-track{height:12px;border-radius:999px;background:#e5eff4;overflow:hidden;border:1px solid #d2e3eb}
.progress-track>div{height:100%;width:0;background:linear-gradient(90deg,#0c7ca4,#32a7c6);transition:width .2s ease}
.import-progress pre{white-space:pre-wrap;background:#f7fbfd;border:1px solid #d5e5ed;padding:14px;border-radius:8px;color:#38596b;min-height:100px}
@media(max-width:760px){
  .customer-search-bar{grid-template-columns:1fr}
  .invoice-actions{width:100%}
  .action-dropdown-menu{left:0;right:auto}
}


/* v0.5.1 Email Configuration — ADCONS-inspired settings layout */
.email-settings-layout{display:grid;grid-template-columns:1fr;gap:16px}
.settings-email-card{padding:0!important;overflow:hidden}
.settings-card-headline{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;border-bottom:1px solid #d8e7ee;background:#fbfdfe}
.settings-card-headline h2{margin:0 0 4px!important}
.settings-card-headline p{margin:0;color:#637f8f}
.settings-pro-icon{width:42px;height:42px;border-radius:10px;background:#e8f5fb;border:1px solid #cae3ee;display:grid;place-items:center;color:#0c789f;font-size:20px;flex:0 0 42px}
.email-config-status{margin-left:auto;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}
.email-config-status.ready{background:#dff3ea;color:#176d4d}
.email-config-status.not-ready{background:#f4e8d5;color:#8a5d14}
.email-config-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px 20px}
.settings-groupbox{border:1px solid #d4e4ec;border-radius:10px;padding:14px;margin:0;min-width:0;background:#fff}
.settings-groupbox legend{padding:0 7px;color:#31566b;font-weight:800;font-size:12px}
.small-note{font-size:11px;color:#6d8796;margin-top:8px;line-height:1.4}
.smtp-test-row{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:end;padding:0 20px 20px}
.smtp-test-actions{display:flex;gap:8px}
.signature-editor-wrap{border:1px solid #c6dbe5;border-radius:9px;overflow:hidden;background:#fff}
.signature-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#edf6fa;border-bottom:1px solid #d3e4ec}
.signature-toolbar button{border:1px solid #c8dce6;background:#fff;color:#31556a;border-radius:6px;padding:7px 10px;cursor:pointer;font-weight:700}
.signature-toolbar button:hover{background:#e6f2f7}
.signature-editor{min-height:190px;padding:15px;color:#243c4b;outline:none;background:#fff;line-height:1.55}
.signature-editor img,.signature-preview img{max-width:100%;height:auto}
.signature-preview-grid{padding:18px 20px 20px;border-top:1px solid #e0ebf0}
.signature-preview-grid h3{margin-top:0}
.signature-preview{min-height:90px;padding:16px;border:1px solid #d8e6ec;border-radius:8px;background:#fff;color:#263b4d}
.invoice-signature-preview{margin-top:24px;padding-top:18px;border-top:1px solid #e4e9ed}
.settings-savebar{position:sticky;bottom:0;z-index:20;margin-top:16px;padding:12px 16px;background:rgba(247,252,254,.96);border:1px solid #d2e3eb;border-radius:10px;display:flex;justify-content:flex-end;gap:8px;backdrop-filter:blur(6px)}
@media(max-width:1100px){.email-config-groups{grid-template-columns:1fr}.smtp-test-row{grid-template-columns:1fr}.smtp-test-actions{justify-content:flex-start}}

/* v0.5.2 QuickBooks reconciliation */
.receive-payment-section{margin:18px 0;border:1px solid #d4e4ec;border-radius:10px;overflow:hidden;background:#fff}
.receive-payment-section .section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;background:#edf6fa;border-bottom:1px solid #d4e4ec}
.receive-payment-section .section-heading h3{margin:0!important}
.receive-payment-section .section-heading span{font-size:12px;color:#607d8d}
.receive-payment-table{margin:0!important;border:0!important;border-radius:0!important}
.receive-payment-table input{min-width:100px}
.payment-summary-box{margin:18px 0 8px;margin-left:auto;max-width:360px;display:grid;gap:8px;padding:14px 16px;background:#f5fafc;border:1px solid #d8e7ee;border-radius:9px}
.payment-summary-box>div{display:flex;justify-content:space-between;gap:20px}
.payment-summary-box span{color:#607988;font-size:12px}
.payment-summary-box strong{color:#173247}
.reconcile-list{color:#456274;line-height:1.7}


/* v0.5.5 Customer transaction invoice actions */
.customer-transaction-actions{white-space:nowrap}
.customer-transaction-actions .action-separator{
  display:inline-block;
  height:16px;
  width:1px;
  background:#cfdee6;
  margin:0 7px;
  vertical-align:middle;
}
.customer-transaction-actions .receive-payment-link{
  color:#0b6f98!important;
  font-weight:700!important;
}
.status-icon.overdue-icon{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  margin-right:7px;
  border-radius:50%;
  border:2px solid #e46d16;
  color:#e46d16;
  font-size:11px;
  font-weight:900;
  line-height:1;
  vertical-align:middle;
}


/* v0.5.8 — Customer form + right-side invoice/payment drawer restoration */
.content .formpanel.customer-form,
.content .formpanel{
  max-width:none!important;
  width:100%!important;
}
.content .customer-form{
  background:#fff!important;
}
.content .customer-form .section-title{
  margin:18px 0 12px!important;
  padding:12px 14px!important;
  background:#eaf5fa!important;
  border:1px solid #cfe3ed!important;
  border-radius:8px!important;
}
.content .customer-form .section-title:first-of-type{margin-top:0!important}
.content .customer-form .section-title>span{
  width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  background:#0b789f!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
}
.content .customer-form .section-title h3{
  color:#173247!important;
  font-size:15px!important;
  margin:0 0 2px!important;
}
.content .customer-form .section-title p{
  color:#6a8392!important;
  font-size:11px!important;
  margin:0!important;
}
.content .email-manager{
  background:#f8fcfe!important;
  border:1px solid #cfe2ec!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
.content .email-manager-head{
  background:#eaf5fa!important;
  border-bottom:1px solid #d4e5ed!important;
  color:#173247!important;
  padding:11px 13px!important;
}
.content .email-manager-head strong{color:#173247!important}
.content .email-manager-head span{color:#688493!important}
.content .email-chip-list{
  background:#fff!important;
  max-height:170px!important;
  overflow:auto!important;
  padding:10px!important;
}
.content .email-chip-row{
  background:#f8fbfd!important;
  border:1px solid #d6e5ec!important;
  color:#173247!important;
  border-radius:8px!important;
}
.content .email-chip-copy strong{color:#173247!important}
.content .email-chip-copy span{color:#708795!important}
.content .email-chip-icon{
  background:#e2f2f8!important;
  color:#0b789f!important;
  border:1px solid #c4e0eb!important;
}
.content .email-chip-remove{
  background:#f8e8ea!important;
  border:1px solid #edc9cf!important;
  color:#ad3444!important;
}
.content .compound-field{
  display:grid!important;
  grid-template-columns:150px minmax(0,1fr)!important;
  gap:8px!important;
}
.content .customer-billing-grid{
  grid-template-columns:240px minmax(0,1fr)!important;
  align-items:start!important;
}
.content .customer-address-field textarea{min-height:95px!important}
.content .customer-form textarea[name="notes"]{min-height:110px!important}
.content .customer-form .form-actions{
  margin-top:20px!important;
  padding-top:14px!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
}

/* Ensure invoice/payment details always open as the right-side QuickBooks-style panel. */
.drawer-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  background:rgba(16,39,52,.24)!important;
  backdrop-filter:blur(1px);
}
.qba-drawer{
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:min(430px,96vw)!important;
  height:100vh!important;
  z-index:5001!important;
  background:#fff!important;
  color:#243b49!important;
  border-left:1px solid #cadce5!important;
  box-shadow:-18px 0 44px rgba(38,75,95,.18)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow-y:auto!important;
}
.qba-drawer .drawer-head{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  background:#fff!important;
  border-bottom:1px solid #d9e6ec!important;
}
.qba-drawer .drawer-section{
  background:#fff!important;
  border-bottom:1px solid #e1eaee!important;
}
.qba-drawer .drawer-total strong,
.qba-drawer h2,
.qba-drawer h3,
.qba-drawer b{color:#203847!important}
.qba-drawer .drawer-actions{
  position:sticky!important;
  bottom:0!important;
  background:#f8fbfc!important;
  border-top:1px solid #d7e4ea!important;
  z-index:3!important;
}
.qba-drawer .drawer-close{
  color:#0b789f!important;
  border-color:#0b789f!important;
  background:#fff!important;
}
.qba-drawer .timeline span{color:#566f7e!important}
.qba-drawer .drawer-line{border-bottom-color:#e1eaee!important}

@media(max-width:820px){
  .content .customer-billing-grid{grid-template-columns:1fr!important}
  .content .compound-field{grid-template-columns:130px minmax(0,1fr)!important}
}


/* v0.5.9 — match ADCONS Tax Administration page background */
html,body{background:#f3f7fb!important}
.content{
  background:#f3f7fb!important;
  background-image:none!important;
}
.content:before,.content:after{display:none!important}

/* ADCONS-style HTML rich email template editor */
.qba-rte-wrap{
  border:1px solid #cfdce7;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  margin-top:7px;
}
.qba-rte-toolbar{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
  padding:9px 10px;
  background:#f3f7fb;
  border-bottom:1px solid #d7e4ed;
}
.qba-rte-tool{
  min-width:32px;
  height:32px;
  padding:0 8px!important;
  margin:0!important;
  border:1px solid transparent!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#304f65!important;
  box-shadow:none!important;
  cursor:pointer;
  font-size:13px!important;
}
.qba-rte-tool:hover{
  background:#e4eef5!important;
  border-color:#d0e0ea!important;
}
.qba-rte-letter{font-family:Arial,sans-serif!important}
.qba-rte-separator{
  width:1px;
  height:26px;
  background:#d5e2ea;
  margin:0 4px;
}
.qba-rte-select{
  height:34px!important;
  min-height:34px!important;
  width:auto!important;
  padding:0 28px 0 9px!important;
  border:1px solid #cbd9e3!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#304f65!important;
  font-size:12px!important;
}
.qba-rte-font-family{min-width:128px!important}
.qba-rte-font-size{min-width:78px!important}
.qba-rte-color-tool{
  position:relative;
  width:34px;
  height:32px;
  margin:0!important;
  border-radius:6px;
  display:grid!important;
  place-items:center;
  cursor:pointer;
  background:transparent;
  color:#304f65!important;
  font-size:14px!important;
  font-weight:800!important;
}
.qba-rte-color-tool:hover{background:#e4eef5}
.qba-rte-color-tool input[type=color]{
  position:absolute;
  inset:auto 5px 2px;
  width:24px!important;
  height:5px!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  opacity:.95;
  cursor:pointer;
}
.qba-rte-editor{
  min-height:305px;
  padding:22px 18px;
  background:#fff;
  color:#17324d;
  outline:none;
  font:16px/1.55 Arial,"Segoe UI",sans-serif;
}
.qba-rte-editor:focus{box-shadow:inset 0 0 0 2px rgba(11,111,184,.08)}
.qba-rte-editor p{margin:0 0 14px}
.template-editor-grid .template-editor{overflow:visible!important}
@media(max-width:900px){
  .qba-rte-toolbar{flex-wrap:nowrap;overflow-x:auto}
}


/* v0.6.1 — QuickBooks-style Receive Payment and Send Confirmation */
.credit-selection-table .select-col{width:46px;text-align:center}
.credit-selection-table .credit-select{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  accent-color:#08755f;
  cursor:pointer;
}
.credit-selection-table .credit-apply-input:disabled{
  background:#f2f5f7!important;
  color:#9aa8b0!important;
}
.payment-form-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.payment-save-actions{display:flex;gap:8px;margin-left:auto}

/* Large QuickBooks-like payment email confirmation */
.payment-email-overlay{
  position:fixed;
  inset:0;
  z-index:6000;
  background:rgba(24,47,59,.24);
  padding:14px;
  overflow:auto;
}
.payment-email-dialog{
  width:min(1540px,98vw);
  min-height:min(900px,96vh);
  margin:0 auto;
  background:#fff;
  border:1px solid #cfdde5;
  border-radius:14px;
  box-shadow:0 24px 80px rgba(39,69,86,.24);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.payment-email-dialog-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 28px;
  border-bottom:1px solid #d9e5eb;
}
.payment-email-dialog-head h1{margin:3px 0 0!important;font-size:26px!important}
.payment-email-close{
  width:38px;height:38px;border-radius:9px;display:grid;place-items:center;
  color:#45606e!important;text-decoration:none;font-size:28px;
}
.payment-email-close:hover{background:#eef5f8}
.payment-email-dialog-body{
  display:grid;
  grid-template-columns:minmax(420px,.9fr) minmax(650px,1.3fr);
  grid-template-rows:1fr auto;
  gap:20px;
  padding:22px 28px 0;
  flex:1;
  min-height:0;
}
.payment-email-compose{
  min-width:0;
  overflow:auto;
  padding-right:6px;
}
.payment-email-compose label{margin-bottom:13px}
.payment-email-compose textarea{min-height:300px!important}
.payment-receipt-preview{
  min-width:0;
  background:#303436;
  border-radius:9px;
  padding:26px;
  overflow:auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.receipt-preview-paper{
  width:min(780px,100%);
  min-height:760px;
  background:#fff;
  color:#233844;
  padding:38px 42px;
  box-shadow:0 6px 24px rgba(0,0,0,.25);
}
.receipt-preview-brand{
  display:flex;align-items:center;gap:16px;margin-bottom:28px
}
.receipt-preview-brand img{
  width:92px;height:92px;object-fit:contain
}
.receipt-preview-brand strong{display:block;font-size:20px;color:#173247}
.receipt-preview-brand span{display:block;color:#66808f;margin-top:3px}
.receipt-preview-title-row{
  display:flex;justify-content:space-between;gap:30px;align-items:flex-start;margin:12px 0 30px
}
.receipt-preview-title-row h2{font-size:32px!important;color:#0b5e7d!important;margin:0 0 18px!important}
.receipt-preview-title-row p{margin:0 0 3px;color:#69828f}
.receipt-preview-title-row strong,.receipt-preview-title-row span{display:block}
.receipt-preview-meta{display:grid;gap:8px;text-align:right;color:#526d7c}
.receipt-preview-table{
  width:100%;border-collapse:collapse!important;margin:24px 0!important;border:0!important
}
.receipt-preview-table th{
  background:#dce9ef!important;color:#3c5c6e!important;padding:9px!important;font-size:10px!important
}
.receipt-preview-table td{
  background:#fff!important;color:#273e4b!important;border-bottom:1px solid #dce7ec!important;padding:10px 9px!important
}
.receipt-preview-total{
  display:flex;justify-content:flex-end;align-items:baseline;gap:18px;margin:28px 0
}
.receipt-preview-total span{color:#68818f}
.receipt-preview-total strong{font-size:24px;color:#173247}
.receipt-preview-message{
  margin-top:30px;padding-top:24px;border-top:1px solid #e0e8ec;line-height:1.6;color:#334f5e
}
.receipt-preview-signature{
  margin-top:24px;padding-top:18px;border-top:1px solid #e4ebee
}
.payment-email-dialog-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:14px 0 18px;
  border-top:1px solid #e0e8ec;
}

/* Supplied Rentrak / Centropy eye logo */
.side-brand-logo{
  width:44px;
  height:44px;
  object-fit:contain;
  flex:0 0 44px;
}
.login-brand-logo{
  width:88px;
  height:88px;
  object-fit:contain;
  flex:0 0 88px;
}
.login-brand{align-items:center!important}

@media(max-width:1050px){
  .payment-email-dialog-body{grid-template-columns:1fr}
  .payment-email-dialog{min-height:auto}
  .payment-receipt-preview{min-height:600px}
}
@media(max-width:720px){
  .payment-email-overlay{padding:0}
  .payment-email-dialog{width:100%;min-height:100vh;border-radius:0}
  .payment-email-dialog-body{padding:16px}
  .receipt-preview-paper{padding:24px 18px}
  .payment-form-actions{align-items:stretch!important}
  .payment-save-actions{width:100%;margin-left:0}
  .payment-save-actions .btn{flex:1}
}


/* v0.6.2 — supplied transparent Rentrak icon */
.side-brand-logo{
  width:48px!important;
  height:48px!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.login-brand-logo{
  width:112px!important;
  height:112px!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}


/* v0.6.3 — CEA AdminPanel navigation, typography, fixed header, pagination */
html,body,button,input,select,textarea,table{font-family:"Segoe UI",Arial,sans-serif!important;font-size:14px}
body{font-weight:400}
#sidebar{width:248px!important;padding:14px 10px 18px!important;overflow-x:hidden!important;overflow-y:auto!important;transition:width .22s ease,transform .22s ease!important;z-index:80!important}
#main{margin-left:248px!important;transition:margin-left .22s ease!important;min-height:100vh!important;padding-top:76px!important}
header{position:fixed!important;top:0!important;left:248px!important;right:0!important;width:auto!important;height:76px!important;z-index:70!important;transition:left .22s ease!important;background:#0a283af2!important;backdrop-filter:blur(12px)!important}
.content{padding-top:28px!important}
.side-brand{height:62px!important;padding:0 9px 14px!important;margin-bottom:8px!important;gap:11px!important}
.side-brand strong{font-size:16px!important;font-weight:700!important}.side-brand small{font-size:10px!important}.side-brand-logo{width:42px!important;height:42px!important;flex:0 0 42px!important}
.side-nav{display:block}
#sidebar .side-nav>a{display:flex;align-items:center;gap:13px;min-height:44px;padding:9px 13px;margin:3px 0;border-radius:9px;color:#bfd2dd;font-weight:600;font-size:14px;border:1px solid transparent;transition:background .15s,border-color .15s,color .15s}
#sidebar .side-nav>a:hover{background:#123f57;color:#fff;border-color:#205a72}
#sidebar .side-nav>a.active{background:linear-gradient(135deg,#0f83bd55,#16669650);border-color:#1e90c2;color:#fff;box-shadow:inset 3px 0 #24b4e8}
#sidebar .nav-icon{width:23px;height:23px;flex:0 0 23px}.nav-icon svg{width:20px;height:20px}
.nav-section{position:relative;height:24px;margin:12px 8px 5px;display:flex;align-items:center;color:#62889c;font-size:9px;font-weight:800;letter-spacing:.12em;white-space:nowrap}
.nav-section:after{content:"";height:1px;background:#1b4d63;flex:1;margin-left:9px}.nav-section:first-child{margin-top:4px}
#sidebar .nav-sub{display:flex!important;align-items:center!important;min-height:36px!important;margin:1px 8px 5px 35px!important;padding:7px 10px!important;font-size:11px!important;color:#9fbac8!important}
body.collapsed #sidebar{width:76px!important}
body.collapsed #main{margin-left:76px!important}
body.collapsed header{left:76px!important}
body.collapsed #sidebar .side-brand>div,body.collapsed #sidebar .nav-label,body.collapsed #sidebar .nav-section span{display:none!important}
body.collapsed #sidebar .side-brand{justify-content:center;padding-left:0!important;padding-right:0!important}
body.collapsed #sidebar .nav-section{margin-left:5px;margin-right:5px}.collapsed #sidebar .nav-section:after{margin-left:0}
body.collapsed #sidebar .side-nav>a{justify-content:center;padding-left:0!important;padding-right:0!important}
body.collapsed #sidebar .nav-sub{margin-left:8px!important;justify-content:center!important}.collapsed #sidebar .nav-sub-dot{margin-right:0!important}
/* Hover expansion while collapsed, like CEA AdminPanel icon rail. */
body.collapsed #sidebar:hover,body.collapsed #sidebar:focus-within{width:248px!important;box-shadow:16px 0 36px rgba(0,0,0,.18)!important}
body.collapsed #sidebar:hover .side-brand>div,body.collapsed #sidebar:focus-within .side-brand>div,body.collapsed #sidebar:hover .nav-label,body.collapsed #sidebar:focus-within .nav-label,body.collapsed #sidebar:hover .nav-section span,body.collapsed #sidebar:focus-within .nav-section span{display:block!important}
body.collapsed #sidebar:hover .side-brand,body.collapsed #sidebar:focus-within .side-brand{justify-content:flex-start;padding-left:9px!important;padding-right:9px!important}
body.collapsed #sidebar:hover .side-nav>a,body.collapsed #sidebar:focus-within .side-nav>a{justify-content:flex-start;padding-left:13px!important;padding-right:13px!important}
body.collapsed #sidebar:hover .nav-section:after,body.collapsed #sidebar:focus-within .nav-section:after{margin-left:9px}
body.collapsed #sidebar:hover .nav-sub,body.collapsed #sidebar:focus-within .nav-sub{margin-left:35px!important;justify-content:flex-start!important}
body.collapsed #sidebar:hover .nav-sub-dot,body.collapsed #sidebar:focus-within .nav-sub-dot{margin-right:10px!important}
.page-heading h1,.titlebar h1{font-size:24px!important;font-weight:700!important}.content h2{font-size:18px!important}.content h3{font-size:15px!important}.content table{font-size:13px!important}.content th{font-size:10px!important}.content td{font-size:13px!important}.btn{font-size:13px!important}
/* Theme-adaptive dashboard date/time chip */
.content .date-chip{background:#e8f4fa!important;border:1px solid #c7dfe9!important;color:#285b72!important;border-radius:999px!important;padding:9px 14px!important;font-weight:700!important;box-shadow:0 4px 12px rgba(42,92,116,.08)!important}
/* reusable paging footer */
.list-footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-top:14px;padding-top:12px;border-top:1px solid #d9e6ec}
.rows-per-page{margin:0!important}.rows-per-page label{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:11px!important;color:#4d6b7c!important}.rows-per-page select{width:76px!important;min-height:34px!important;height:34px!important;padding:5px 24px 5px 8px!important;font-size:12px!important}.list-range{text-align:center;color:#617d8d;font-size:11px}.pager-actions{display:flex;gap:7px;justify-content:flex-end}.pager-actions .btn{padding:7px 12px!important}.pager-actions .disabled{opacity:.42;pointer-events:none}
.credit-total-pill{background:#e9f6fb;border:1px solid #cde3ed;border-radius:10px;padding:9px 13px;text-align:right}.credit-total-pill span{display:block;font-size:10px;color:#65808f}.credit-total-pill strong{display:block;font-size:19px;color:#173247;margin-top:2px}.customer-credit-table strong{color:#0a6f98}
@media(max-width:900px){#sidebar{transform:translateX(-100%);width:248px!important}#main,body.collapsed #main{margin-left:0!important}header,body.collapsed header{left:0!important}.menu-open #sidebar{transform:translateX(0)}body.collapsed #sidebar .side-brand>div,body.collapsed #sidebar .nav-label,body.collapsed #sidebar .nav-section span{display:block!important}body.collapsed #sidebar .side-nav>a{justify-content:flex-start;padding-left:13px!important;padding-right:13px!important}.content{padding-top:20px!important}.list-footer{grid-template-columns:1fr}.list-range{text-align:left}.pager-actions{justify-content:flex-start}}


/* v0.6.4 — CEA DMS-style login */
.login-bg{
  min-height:100vh!important;
  display:grid!important;
  place-items:center!important;
  padding:28px!important;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.96) 0,rgba(244,251,254,.90) 18%,rgba(226,241,248,.82) 48%,rgba(213,233,243,.88) 72%,rgba(205,227,239,.95) 100%)!important;
  position:relative!important;
  overflow:hidden!important;
}
.login-bg:before{
  content:"";
  position:fixed;
  inset:-12%;
  pointer-events:none;
  background:
    radial-gradient(circle at 28% 26%,rgba(255,255,255,.70),transparent 30%),
    radial-gradient(circle at 74% 72%,rgba(159,205,227,.24),transparent 36%);
  filter:blur(2px);
}
.login-bg:after{
  content:"";
  position:fixed;
  left:50%;top:50%;
  width:min(760px,84vw);height:min(760px,84vw);
  transform:translate(-50%,-50%);
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.58),rgba(255,255,255,.10) 44%,transparent 72%);
  filter:blur(12px);
}
.login-card{
  position:relative!important;
  z-index:2!important;
  width:min(560px,100%)!important;
  background:linear-gradient(155deg,rgba(15,61,80,.86),rgba(8,43,59,.82))!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:20px!important;
  padding:40px 42px!important;
  box-shadow:0 26px 70px rgba(50,79,94,.28),inset 0 1px rgba(255,255,255,.16)!important;
  backdrop-filter:blur(18px) saturate(115%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(115%)!important;
}
.login-card:before{
  content:"";
  position:absolute;inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 34%,rgba(255,255,255,.025));
}
.login-brand,.login-card form,.login-card h2,.login-card>p,.login-divider,.login-footer,.login-card .alert{position:relative;z-index:1}
.login-brand h1{font-size:29px!important;color:#fff!important;letter-spacing:-.2px!important}
.login-brand p{font-size:14px!important;color:#b8d0db!important}
.login-divider{background:rgba(181,220,235,.22)!important;margin:28px 0!important}
.login-card h2{font-size:27px!important;color:#fff!important;margin-bottom:10px!important}
.login-card>p{color:#b8d0db!important;font-size:15px!important;margin-bottom:28px!important}
.login-card label{font-size:13px!important;color:#f0f7fa!important;margin-bottom:18px!important}
.login-input-wrap{position:relative!important}
.login-input-icon{
  position:absolute!important;
  left:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:20px!important;height:20px!important;
  display:grid!important;place-items:center!important;
  color:#5c91a8!important;
  z-index:3!important;
  pointer-events:none!important;
}
.login-input-icon svg{
  width:18px!important;height:18px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
.login-input-wrap input{
  height:50px!important;
  padding:0 14px 0 46px!important;
  margin-top:7px!important;
  background:rgba(248,252,255,.95)!important;
  color:#173247!important;
  border:1px solid rgba(186,215,229,.95)!important;
  box-shadow:inset 0 1px 2px rgba(40,67,81,.05)!important;
}
.login-input-wrap input:focus{
  border-color:#22a9d6!important;
  box-shadow:0 0 0 3px rgba(34,169,214,.18),inset 0 1px 2px rgba(40,67,81,.05)!important;
}
.login-submit{
  height:56px!important;
  margin-top:8px!important;
  border-radius:9px!important;
  font-size:17px!important;
  font-weight:800!important;
  gap:12px!important;
  background:linear-gradient(90deg,#138fc4,#18afd1)!important;
  border-color:#43c5e9!important;
  box-shadow:0 9px 22px rgba(0,145,189,.22),inset 0 1px rgba(255,255,255,.16)!important;
}
.login-submit-arrow{font-size:23px!important;line-height:1!important;margin-top:-1px!important}
.login-footer{
  border-top:1px solid rgba(181,220,235,.20)!important;
  color:#a8c3d0!important;
  font-size:10px!important;
  margin-top:30px!important;
  padding-top:19px!important;
}
@media(max-width:620px){
  .login-bg{padding:18px!important}
  .login-card{padding:30px 24px!important}
  .login-brand-logo{width:92px!important;height:92px!important}
  .login-brand h1{font-size:25px!important}
}


/* v0.6.5 — CEA RMM-style login */
html body.login-bg{
  min-height:100vh!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:
    radial-gradient(circle at 50% 40%, rgba(29,118,155,.16) 0%, rgba(11,54,75,.06) 32%, transparent 60%),
    linear-gradient(180deg,#183f50 0%,#0b2f3e 100%)!important;
  background-color:#0b2f3e!important;
  color:#eef7fb!important;
  font-family:Arial,Helvetica,sans-serif!important;
  overflow:auto;
  padding:32px 18px!important;
}

html body.login-bg::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(95,160,188,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(95,160,188,.035) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),rgba(0,0,0,.1));
}

body.login-bg .login-card{
  width:min(560px,94vw)!important;
  padding:34px 40px 26px!important;
  background:rgba(21,63,82,.78)!important;
  border:1px solid rgba(126,187,211,.28)!important;
  border-radius:18px!important;
  box-shadow:
    0 30px 70px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.06)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}

body.login-bg .login-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  text-align:left!important;
}

body.login-bg .login-brand h1{
  color:#fff!important;
  font-size:28px!important;
  line-height:1.1!important;
  margin:0 0 4px!important;
  font-weight:700!important;
}

body.login-bg .login-brand p{
  color:#a9c4d1!important;
  margin:0!important;
  font-size:14px!important;
}

body.login-bg .login-divider{
  height:1px!important;
  margin:28px 0 24px!important;
  background:rgba(129,181,202,.22)!important;
}

body.login-bg .login-card h2{
  color:#fff!important;
  text-align:center!important;
  font-size:25px!important;
  margin:0 0 5px!important;
}

body.login-bg .login-card > .muted{
  text-align:center!important;
  color:#9db7c5!important;
  margin-bottom:22px!important;
}

body.login-bg .login-card label{
  color:#d7e6ed!important;
  font-size:13px!important;
  font-weight:700!important;
  margin:14px 0 6px!important;
}

body.login-bg .cea-login-field-icon{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  margin-top:6px!important;
}

body.login-bg .login-input-icon{
  position:absolute!important;
  left:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:22px!important;
  height:22px!important;
  display:grid!important;
  place-items:center!important;
  color:#82aabc!important;
  pointer-events:none!important;
  z-index:2!important;
}

body.login-bg .login-input-icon svg{
  width:21px!important;
  height:21px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

body.login-bg .field-icon input{
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  padding:0 16px 0 48px!important;
  background:rgba(8,40,55,.52)!important;
  color:#fff!important;
  border:1px solid rgba(119,166,187,.36)!important;
  border-radius:9px!important;
  box-shadow:none!important;
  font-size:14px!important;
}

body.login-bg .field-icon input:focus{
  outline:none!important;
  border-color:#2aa8d0!important;
  box-shadow:0 0 0 2px rgba(42,168,208,.16)!important;
}

body.login-bg .field-icon input::placeholder{
  color:#7f9dab!important;
}

body.login-bg .login-card .btn.primary.wide{
  width:100%!important;
  height:52px!important;
  margin-top:20px!important;
  border-radius:8px!important;
  background:linear-gradient(90deg,#1387b4,#19afd1)!important;
  border:1px solid #35b9d7!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  box-shadow:0 8px 18px rgba(0,111,153,.22)!important;
}

body.login-bg .login-card .btn.primary.wide:hover{
  background:linear-gradient(90deg,#1594c3,#1ebbdc)!important;
}

body.login-bg .signin-arrow{
  font-size:20px!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}

body.login-bg .login-footer{
  margin-top:28px!important;
  padding-top:16px!important;
  border-top:1px solid rgba(129,181,202,.22)!important;
  color:#8faab7!important;
  font-size:11px!important;
}

body.login-bg .login-brand-logo{
  width:96px!important;
  height:96px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.22))!important;
}

@media(max-width:640px){
  body.login-bg .login-card{padding:28px 22px 22px!important}
  body.login-bg .login-brand-logo{width:80px!important;height:80px!important}
  body.login-bg .login-brand h1{font-size:24px!important}
}


/* v0.6.6 — Email template body text flow */
.qba-rte-editor{
  direction:ltr!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.qba-rte-editor br{display:block!important}
.qba-rte-editor p,
.qba-rte-editor div{
  display:block!important;
  margin:0 0 12px!important;
}
.email-preview-card .preview-body{
  direction:ltr!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}


/* v0.6.7 — Customer transaction action dropdown + delete confirmation */
.customer-transaction-actions{
  white-space:nowrap;
  position:relative;
}
.transaction-action-menu{
  position:relative;
  display:inline-block;
  margin-left:4px;
  vertical-align:middle;
}
.transaction-action-menu>summary{
  list-style:none;
  width:25px;
  height:25px;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
  color:#0a6b72;
  border-radius:5px;
  font-size:13px;
  user-select:none;
}
.transaction-action-menu>summary::-webkit-details-marker{display:none}
.transaction-action-menu>summary:hover{
  background:#eaf4f7;
}
.transaction-action-dropdown{
  position:absolute;
  top:calc(100% + 5px);
  right:0;
  z-index:120;
  min-width:190px;
  padding:6px;
  background:#fff;
  border:1px solid #cfdee6;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(40,70,86,.16);
  text-align:left;
}
.transaction-action-dropdown a,
.transaction-action-dropdown button{
  display:block;
  width:100%;
  border:0!important;
  background:transparent!important;
  color:#284b60!important;
  padding:9px 10px!important;
  border-radius:6px!important;
  font-size:12px!important;
  font-weight:600!important;
  text-decoration:none!important;
  cursor:pointer;
  text-align:left;
  white-space:nowrap;
  margin:0!important;
  font-family:inherit!important;
}
.transaction-action-dropdown a:hover,
.transaction-action-dropdown button:hover{
  background:#eef6f9!important;
  color:#0a678c!important;
}
.transaction-action-dropdown form{margin:0}
.transaction-action-dropdown .danger-menu-action{
  color:#b73d4b!important;
}
.transaction-action-dropdown .danger-menu-action:hover{
  background:#fff0f2!important;
  color:#9e2c3a!important;
}

/* Styled confirmation modal */
.qba-confirm-backdrop[hidden]{display:none!important}
.qba-confirm-backdrop{
  position:fixed;
  inset:0;
  z-index:7000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(24,48,62,.34);
  backdrop-filter:blur(2px);
}
.qba-confirm-card{
  width:min(470px,94vw);
  background:#fff;
  border:1px solid #ccdde6;
  border-radius:14px;
  box-shadow:0 24px 70px rgba(31,61,78,.24);
  padding:24px;
  color:#173247;
}
.qba-confirm-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin-bottom:13px;
  background:#fff0f2;
  border:1px solid #f1cbd1;
  color:#bd3b4a;
  font-size:22px;
  font-weight:800;
}
.qba-confirm-card h3{
  margin:0 0 9px!important;
  color:#173247!important;
}
.qba-confirm-card p{
  color:#4f6a79;
  line-height:1.5;
}
.qba-confirm-note{
  padding:10px 12px;
  border-radius:8px;
  background:#f5fafc;
  border:1px solid #dbe8ee;
  font-size:12px;
}
.qba-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:20px;
}
body.modal-open{overflow:hidden}

/* Duplicate-period information */
.inline-notice{
  line-height:1.45;
}


/* v0.6.8 — customer balances, list search controls, transaction chevron */
.customer-open-balance{
  font-weight:700!important;
  color:#274b60!important;
  white-space:nowrap;
}
.list-top-controls{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid #dce8ee;
}
.list-search-form{
  display:grid;
  grid-template-columns:minmax(300px,520px) auto auto;
  gap:8px;
  align-items:center;
  flex:1;
}
.list-search-form input{
  min-width:0;
}
.top-rows-per-page{
  margin-left:auto;
}
.top-rows-per-page label{
  display:flex!important;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.top-rows-per-page select{
  width:78px!important;
  min-height:36px!important;
  height:36px!important;
}
.transaction-action-menu>summary{
  font-size:0!important;
}
.transaction-chevron{
  width:18px;
  height:18px;
  fill:none;
  stroke:#0a6b72;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .16s ease;
}
.transaction-action-menu[open]>summary .transaction-chevron{
  transform:rotate(180deg);
}

@media(max-width:800px){
  .list-top-controls{align-items:stretch}
  .list-search-form{grid-template-columns:1fr}
  .top-rows-per-page{margin-left:0}
}


/* v0.6.9 — consistent Status badge sizing */
.customers-table .badge,
.suppliers-table .badge,
.content table .account-status-badge,
.content table td .badge.status-badge{
  font-size:13px!important;
  line-height:1.15!important;
  padding:6px 10px!important;
  font-weight:700!important;
  min-width:0!important;
}

/* Chart of Accounts currently uses the generic badge class. Scope its table
   through the accounting page so it matches Invoice status without enlarging
   unrelated badges elsewhere. */
.content .chart-accounts-table .badge{
  font-size:13px!important;
  line-height:1.15!important;
  padding:6px 10px!important;
  font-weight:700!important;
}


/* v0.7.0 — smaller Invoice / Payment search buttons */
.list-search-form .btn.primary{
  min-height:34px!important;
  height:34px!important;
  padding:0 14px!important;
  font-size:12px!important;
  line-height:1!important;
  border-radius:7px!important;
  align-self:center!important;
}


/* v0.7.1 — compact Invoice / Payment search buttons */
.list-search-form{
  grid-template-columns:minmax(320px,520px) max-content max-content!important;
  justify-content:start!important;
}
.list-search-form .btn.primary{
  width:auto!important;
  min-width:78px!important;
  max-width:max-content!important;
  padding:0 16px!important;
  justify-self:start!important;
}


/* v0.7.4 — payment actions + live customer search */
.transaction-action-dropdown a,
.transaction-action-dropdown button{
  font-size:13px!important;
}

.payment-transaction-dropdown{
  min-width:175px;
}

#customerLiveSearch{
  transition:border-color .15s ease, box-shadow .15s ease;
}
#customerLiveSearch:focus{
  border-color:#5da3c4!important;
  box-shadow:0 0 0 2px rgba(51,139,179,.12)!important;
}


/* v0.7.5 — payment dropdown reliability, alignment, pagination */
.transaction-table th:last-child,
.transaction-table td.customer-transaction-actions{
  text-align:right!important;
}
.customer-transaction-actions{
  min-width:170px;
}
.customer-transaction-actions > a{
  display:inline-block;
  vertical-align:middle;
}
.customer-transaction-actions .transaction-action-menu{
  margin-left:8px!important;
  vertical-align:middle;
}
.customer-transaction-actions .transaction-action-menu>summary{
  width:28px!important;
  height:28px!important;
}
.transaction-action-dropdown a,
.transaction-action-dropdown button{
  font-size:13px!important;
}
.transaction-list-footer{
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid #dce8ee!important;
}


/* v0.7.6 — reliable payment delete confirmation */
.customer-transaction-actions{
  text-align:right!important;
}
.customer-transaction-actions > a{
  min-width:58px;
  text-align:right;
}
.transaction-action-menu{
  margin-left:8px!important;
}
.transaction-action-dropdown .danger-menu-action{
  color:#b73d4b!important;
}
.qba-confirm-backdrop:not([hidden]){
  display:grid!important;
}


/* v0.7.7 — tighter Invoice action spacing */
.customer-transaction-actions{
  white-space:nowrap!important;
}

.customer-transaction-actions > a,
.customer-transaction-actions > .action-separator,
.customer-transaction-actions > .transaction-action-menu{
  vertical-align:middle!important;
}

.customer-transaction-actions > a{
  min-width:0!important;
  margin:0!important;
}

.customer-transaction-actions > .action-separator{
  display:inline-block!important;
  margin:0 8px!important;
}

.customer-transaction-actions > .transaction-action-menu{
  margin-left:6px!important;
}

/* Keep View/Edit and Print grouped closely together instead of spreading apart */
.transaction-table td.customer-transaction-actions{
  text-align:right!important;
}

.transaction-table td.customer-transaction-actions > a + .action-separator + a{
  margin-left:0!important;
}


/* v0.7.8 — QuickBooks-style floating notification */
.qba-toast{
  position:fixed;
  top:74px;
  right:24px;
  z-index:9000;
  width:min(460px,calc(100vw - 48px));
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:14px 14px 14px 15px;
  background:#fff;
  color:#243746;
  border:1px solid #cbd9e2;
  border-radius:9px;
  box-shadow:0 12px 32px rgba(28,55,72,.20);
  animation:qbaToastIn .18s ease-out;
}
.qba-toast-success{
  border-left:4px solid #18864b;
}
.qba-toast-icon{
  flex:0 0 24px;
  width:24px;
  height:24px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e3f5ea;
  color:#137944;
  font-size:14px;
  font-weight:800;
  line-height:1;
}
.qba-toast-message{
  flex:1;
  padding-top:2px;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}
.qba-toast-close{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:#516b7b;
  border-radius:6px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  padding:0;
}
.qba-toast-close:hover{
  background:#edf3f6;
  color:#17384b;
}
.qba-toast.qba-toast-hide{
  opacity:0;
  transform:translateY(-8px);
  transition:opacity .18s ease,transform .18s ease;
  pointer-events:none;
}
@keyframes qbaToastIn{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:700px){
  .qba-toast{
    top:66px;
    right:12px;
    width:calc(100vw - 24px);
  }
}


/* v0.8.0 — QuickBooks-style Receive Payment workflow */
.qb-pay-page{
  max-width:1480px;
  margin:0 auto;
  padding:4px 0 88px;
}
.qb-pay-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}
.qb-pay-header h1{
  margin:3px 0 0!important;
  font-size:28px!important;
  font-weight:700!important;
  color:#173247!important;
}
.qb-pay-header-amount{
  min-width:230px;
  text-align:right;
  padding-top:5px;
}
.qb-pay-header-amount span{
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  color:#667f8f;
}
.qb-pay-header-amount strong{
  display:block;
  margin-top:3px;
  font-size:30px;
  line-height:1.1;
  font-weight:600;
  color:#142f40;
}
.qb-pay-form{
  display:block;
}
.qb-pay-card{
  background:#fff;
  border:1px solid #d5e2e9;
  border-radius:9px;
  box-shadow:0 1px 2px rgba(24,54,71,.04);
  padding:22px 24px;
  margin-bottom:14px;
}
.qb-pay-customer-row{
  display:grid;
  grid-template-columns:minmax(300px,1.05fr) minmax(520px,1.55fr);
  gap:34px;
  align-items:start;
}
.qb-pay-customer-main label,
.qb-pay-top-fields label,
.qb-pay-amount-line label,
.qb-pay-memo label{
  display:block;
  color:#425f70!important;
  font-size:12px!important;
  font-weight:600!important;
}
.qb-pay-customer-main select,
.qb-pay-top-fields input,
.qb-pay-top-fields select,
.qb-pay-memo textarea{
  width:100%;
  margin-top:6px;
  min-height:38px;
  border:1px solid #aebfca!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#193547!important;
  box-shadow:none!important;
}
.qb-pay-customer-main select:focus,
.qb-pay-top-fields input:focus,
.qb-pay-top-fields select:focus,
.qb-pay-memo textarea:focus{
  outline:none;
  border-color:#2a8dad!important;
  box-shadow:0 0 0 1px #2a8dad!important;
}
.qb-pay-customer-email{
  margin-top:9px;
  font-size:12px;
  color:#607988;
}
.qb-pay-top-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:14px 16px;
}
.qb-pay-amount-line{
  width:min(320px,100%);
  margin-top:20px;
}
.qb-pay-money-input{
  display:flex;
  align-items:center;
  margin-top:6px;
  border:1px solid #aebfca;
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}
.qb-pay-money-input:focus-within{
  border-color:#2a8dad;
  box-shadow:0 0 0 1px #2a8dad;
}
.qb-pay-money-input span{
  padding:0 10px;
  font-size:12px;
  font-weight:700;
  color:#627b89;
  background:#f4f7f9;
  border-right:1px solid #d1dde3;
  align-self:stretch;
  display:flex;
  align-items:center;
}
.qb-pay-money-input input{
  border:0!important;
  box-shadow:none!important;
  margin:0!important;
  min-height:38px!important;
  width:100%;
  font-size:14px!important;
  font-weight:600!important;
  color:#193547!important;
}
.qb-pay-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:15px;
}
.qb-pay-section-head h2{
  margin:0!important;
  font-size:18px!important;
  color:#173247!important;
}
.qb-pay-section-head p{
  margin:4px 0 0;
  font-size:12px;
  color:#6f8795;
}
.qb-open-balance{
  font-size:12px;
  color:#536e7d;
  white-space:nowrap;
}
.qb-open-balance strong{
  margin-left:4px;
  color:#173247;
}
.qb-pay-table-wrap{
  overflow:auto;
}
.qb-pay-table{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
}
.qb-pay-table th{
  background:#edf4f7!important;
  color:#536f7f!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.045em;
  text-align:left;
  border-bottom:1px solid #cfdee6!important;
  padding:10px 12px!important;
}
.qb-pay-table td{
  border-bottom:1px solid #dce6eb!important;
  padding:13px 12px!important;
  color:#1d394a;
  font-size:12px;
}
.qb-pay-table tbody tr:hover{
  background:#f8fbfc;
}
.qb-pay-table tbody tr:has(.invoice-radio:checked){
  background:#eef8fb;
}
.qb-select-col{
  width:42px;
  text-align:center!important;
}
.qb-pay-table input[type="radio"],
.qb-pay-table input[type="checkbox"]{
  width:17px!important;
  height:17px!important;
  accent-color:#1488a9;
}
.qb-pay-table td strong{
  font-weight:600;
}
.qb-pay-table td small{
  display:block;
  margin-top:3px;
  color:#7a909c;
  font-size:11px;
}
.qb-row-payment{
  color:#0a708f;
}
.qb-pay-credits[hidden]{
  display:none!important;
}
.qb-pay-footer-card{
  display:grid;
  grid-template-columns:minmax(360px,1fr) minmax(360px,440px);
  gap:34px;
  align-items:start;
  background:#fff;
  border:1px solid #d5e2e9;
  border-radius:9px;
  padding:20px 24px;
  margin-bottom:14px;
}
.qb-pay-memo textarea{
  resize:vertical;
  min-height:88px!important;
}
.qb-pay-summary{
  border-left:1px solid #dce6eb;
  padding-left:28px;
}
.qb-pay-summary>div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:7px 0;
  font-size:12px;
  color:#536f7f;
}
.qb-pay-summary strong{
  color:#173247;
}
.qb-pay-summary-total{
  margin-top:6px;
  padding-top:12px!important;
  border-top:1px solid #cad9e1;
  font-size:14px!important;
  font-weight:700;
}
.qb-pay-summary-total strong{
  font-size:18px;
}
.qb-pay-bottom-bar{
  position:sticky;
  bottom:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  background:rgba(255,255,255,.96);
  border:1px solid #cfdee6;
  border-radius:8px;
  box-shadow:0 -6px 22px rgba(30,61,78,.09);
  backdrop-filter:blur(8px);
}
.qb-pay-save-actions{
  display:flex;
  gap:8px;
}
.qb-pay-bottom-bar .btn{
  min-width:92px;
}
.qb-pay-bottom-bar .btn.primary{
  min-width:132px;
}

/* QuickBooks-style payment email overlay */
.payment-email-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:8500!important;
  display:grid!important;
  place-items:center!important;
  padding:28px!important;
  background:rgba(20,39,50,.34)!important;
  backdrop-filter:blur(1.5px);
}
.payment-email-dialog{
  width:min(1260px,96vw)!important;
  max-height:92vh!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #c9d9e1!important;
  border-radius:10px!important;
  box-shadow:0 26px 70px rgba(19,41,54,.28)!important;
}
.payment-email-dialog-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:18px 22px!important;
  border-bottom:1px solid #d7e3e9!important;
  background:#fff!important;
}
.payment-email-dialog-head h1{
  margin:2px 0 0!important;
  font-size:22px!important;
}
.payment-email-dialog-body{
  display:grid!important;
  grid-template-columns:minmax(420px,.95fr) minmax(470px,1.05fr)!important;
  grid-template-areas:
    "compose preview"
    "actions actions"!important;
  max-height:calc(92vh - 72px)!important;
  overflow:auto!important;
}
.payment-email-compose{
  grid-area:compose;
  padding:22px!important;
  border-right:1px solid #dbe6eb!important;
  background:#fff!important;
}
.payment-receipt-preview{
  grid-area:preview;
  padding:22px!important;
  background:#f3f6f8!important;
  overflow:auto;
}
.payment-email-dialog-actions{
  grid-area:actions;
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:12px 18px!important;
  border-top:1px solid #d7e3e9!important;
  background:#fff!important;
}
.payment-email-compose label{
  display:block;
  margin-bottom:12px;
  color:#4d6776;
  font-size:12px;
  font-weight:600;
}
.payment-email-compose input,
.payment-email-compose textarea{
  width:100%;
  margin-top:5px;
  border:1px solid #b5c6cf!important;
  border-radius:4px!important;
  box-shadow:none!important;
}
.payment-email-compose textarea{
  min-height:210px;
}
.receipt-preview-paper{
  width:min(100%,720px)!important;
  margin:0 auto!important;
  background:#fff!important;
  border:1px solid #d6e1e6!important;
  border-radius:4px!important;
  box-shadow:0 8px 24px rgba(25,54,69,.10)!important;
}
@media(max-width:1000px){
  .qb-pay-customer-row{
    grid-template-columns:1fr;
  }
  .qb-pay-footer-card{
    grid-template-columns:1fr;
  }
  .qb-pay-summary{
    border-left:0;
    border-top:1px solid #dce6eb;
    padding-left:0;
    padding-top:16px;
  }
  .payment-email-dialog-body{
    grid-template-columns:1fr!important;
    grid-template-areas:"compose" "preview" "actions"!important;
  }
  .payment-email-compose{
    border-right:0!important;
    border-bottom:1px solid #dbe6eb!important;
  }
}
@media(max-width:700px){
  .qb-pay-top-fields{
    grid-template-columns:1fr;
  }
  .qb-pay-header{
    align-items:flex-start;
  }
  .qb-pay-header-amount strong{
    font-size:24px;
  }
  .qb-pay-bottom-bar{
    position:static;
  }
}


/* v0.8.2 — invoice line deletion + edit spacing */
#invoiceItems .itemrow{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) 90px 120px 90px 38px!important;
  gap:8px!important;
  align-items:center!important;
  margin-bottom:8px!important;
}
.invoice-line-delete{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #d6e1e7!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#a84450!important;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer!important;
  padding:0!important;
}
.invoice-line-delete:hover{
  background:#fff1f3!important;
  border-color:#e7bdc4!important;
  color:#922f3c!important;
}
.invoice-add-line-btn{
  margin-bottom:18px!important;
}
.invoice-notes-label{
  display:block!important;
  margin-top:8px!important;
}
.invoice-notes-label textarea{
  margin-top:7px!important;
}
@media(max-width:850px){
  #invoiceItems .itemrow{
    grid-template-columns:1fr 1fr!important;
  }
  .invoice-line-delete{
    grid-column:2!important;
    justify-self:end!important;
  }
}


/* v0.8.3 — monthly income reconciliation */
.income-audit-note{
  margin-bottom:14px;
  padding:11px 13px;
  border:1px solid #d8e5eb;
  border-radius:7px;
  background:#f6fafc;
  color:#4e6877;
  font-size:12px;
  line-height:1.5;
}
.income-audit-summary{
  max-width:620px;
}


/* v0.8.4 — invoice create/duplicate is unsaved until Save */
.invoice-create-edit-form .invoice-notes-label{
  margin-top:10px!important;
}
.invoice-create-actions{
  margin-top:18px!important;
}


/* v0.8.6 — legacy draft cleanup + reliable invoice delete */
.qba-confirm-backdrop:not([hidden]){
  display:grid!important;
}
.transaction-action-dropdown .danger-menu-action{
  color:#b73d4b!important;
}


/* v0.8.7 — QuickBooks invoice numbering + accurate activity */
.timeline .timeline-historical b{
  color:#536f7f!important;
}
.timeline .timeline-historical span{
  color:#78909c!important;
}
.invoice-create-edit-form input[name="invoice_no"]{
  font-weight:700!important;
}


/* v0.8.8 — QuickBooks-style Invoice Activity drawer */
.qb-activity-drawer{
  width:min(390px,94vw)!important;
  background:#fff!important;
  color:#223746!important;
}
.qb-drawer-head{
  padding:12px 18px 14px!important;
  border-bottom:1px solid #d8e3e8!important;
}
.qb-drawer-head small{
  color:#526d7d!important;
  font-size:11px!important;
}
.qb-drawer-head h2{
  margin:4px 0 0!important;
  font-size:18px!important;
  color:#223746!important;
}
.qb-drawer-close{
  width:34px!important;
  height:34px!important;
  border:2px solid #0b7194!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  color:#0b7194!important;
  font-size:23px!important;
  text-decoration:none!important;
}
.qb-drawer-close:hover{
  background:#eef8fb!important;
  text-decoration:none!important;
}
.qb-paid-strip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 18px 0;
  font-size:12px;
  color:#3a4f5c;
}
.qb-paid-check{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#169b45;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.qb-drawer-total{
  padding:14px 18px 18px!important;
  border-bottom:1px solid #d8e3e8!important;
}
.qb-drawer-total>span{
  display:block!important;
  font-size:11px!important;
  color:#526d7d!important;
  margin-bottom:2px!important;
}
.qb-drawer-total>strong{
  display:block!important;
  font-size:32px!important;
  line-height:1.1!important;
  margin-bottom:18px!important;
  color:#24343f!important;
}
.qb-drawer-total>div{
  margin-top:9px!important;
}
.qb-drawer-total small{
  display:block!important;
  font-size:11px!important;
  color:#526d7d!important;
}
.qb-drawer-total b{
  font-size:13px!important;
  color:#24343f!important;
}
.qb-drawer-section{
  border-bottom:1px solid #d8e3e8!important;
  background:#fff!important;
}
.qb-drawer-section>summary{
  list-style:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:17px 18px!important;
  cursor:pointer!important;
  font-size:15px!important;
  font-weight:700!important;
  color:#263a47!important;
  user-select:none!important;
}
.qb-drawer-section>summary::-webkit-details-marker{display:none!important}
.qb-drawer-section>summary:hover{
  background:#f7fafb!important;
}
.qb-section-chevron{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:#425d6d!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  transition:transform .16s ease!important;
}
.qb-drawer-section[open]>summary .qb-section-chevron{
  transform:rotate(180deg)!important;
}
.qb-drawer-section-body{
  padding:0 18px 18px!important;
}
.qb-customer-label{
  font-size:11px!important;
  color:#526d7d!important;
  margin-bottom:3px!important;
}
.qb-customer-value{
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.45!important;
  margin-bottom:12px!important;
  color:#24343f!important;
}
.qb-email-link,
.qb-link{
  color:#1268c4!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.qb-link:hover,
.qb-email-link:hover{
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
.qb-customer-phone{
  margin-top:14px!important;
  font-size:13px!important;
  color:#24343f!important;
}
.qb-customer-phone span{
  color:#526d7d!important;
  margin-right:6px!important;
}
.qb-timeline{
  margin-left:8px!important;
  padding-left:16px!important;
  border-left:2px solid #c8d3d9!important;
}
.qb-timeline>div{
  position:relative!important;
  padding:0 0 20px 10px!important;
}
.qb-timeline>div:last-child{
  padding-bottom:2px!important;
}
.qb-timeline i{
  position:absolute!important;
  left:-24px!important;
  top:1px!important;
  width:14px!important;
  height:14px!important;
  border-radius:50%!important;
  border:2px solid #2aae3f!important;
  background:#fff!important;
}
.qb-timeline i::after{
  content:""!important;
  position:absolute!important;
  inset:3px!important;
  border-radius:50%!important;
  background:#2aae3f!important;
}
.qb-timeline b{
  display:block!important;
  margin-bottom:4px!important;
  font-size:14px!important;
  color:#24343f!important;
}
.qb-timeline span{
  display:block!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:#334f5f!important;
}
.qb-timeline a{
  display:inline-block!important;
  margin-top:2px!important;
  font-size:12px!important;
  font-weight:600!important;
}
.qb-product-line{
  padding:9px 0!important;
  font-size:12px!important;
}
.qb-product-line span{
  color:#24343f!important;
}
.qb-product-line b{
  color:#24343f!important;
}
.qb-drawer-actions{
  position:sticky!important;
  bottom:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:14px 18px!important;
  background:#fff!important;
  border-top:1px solid #d8e3e8!important;
  z-index:3!important;
}
.qb-more-actions{
  position:relative!important;
}
.qb-more-actions>summary{
  list-style:none!important;
  cursor:pointer!important;
}
.qb-more-actions>summary::-webkit-details-marker{display:none!important}
.qb-more-actions-menu{
  position:absolute!important;
  bottom:calc(100% + 6px)!important;
  right:0!important;
  min-width:170px!important;
  padding:6px!important;
  background:#fff!important;
  border:1px solid #d1dce2!important;
  border-radius:7px!important;
  box-shadow:0 10px 28px rgba(28,52,65,.18)!important;
}
.qb-more-actions-menu a{
  display:block!important;
  padding:9px 10px!important;
  border-radius:5px!important;
  font-size:12px!important;
  font-weight:600!important;
}
.qb-more-actions-menu a:hover{
  background:#f3f7f9!important;
}


/* v0.8.9 — single activity timeline + clickable transaction rows */
.qb-timeline:before{
  display:none!important;
  content:none!important;
}
.qb-timeline{
  border-left:2px solid #c8d3d9!important;
}

.transaction-click-row{
  cursor:pointer!important;
  transition:background .12s ease, box-shadow .12s ease!important;
}
.transaction-click-row:hover{
  background:#f6fbfd!important;
}
.transaction-click-row:focus{
  outline:none!important;
  background:#f3fafc!important;
  box-shadow:inset 0 0 0 1px #4aa06d!important;
}
.transaction-click-row td.customer-transaction-actions{
  cursor:default!important;
}


/* v0.9.0 — Payment Activity email/link styling + backdrop close affordance */
.qba-drawer .qb-link,
.qba-drawer .qb-email-link{
  color:#1268c4!important;
  text-decoration:none!important;
}
.qba-drawer .qb-link:hover,
.qba-drawer .qb-email-link:hover{
  color:#1268c4!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
.qba-drawer-backdrop{
  cursor:pointer;
}
.qba-drawer-backdrop .qba-drawer{
  cursor:default;
}




/* v0.9.2 — Payment Activity invoice number uses QuickBooks blue */
.qba-drawer .qb-payment-invoice-link{
  color:#1268c4!important;
  font-weight:600!important;
  text-decoration:none!important;
}
.qba-drawer .qb-payment-invoice-link:hover{
  color:#1268c4!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}


/* v0.9.3 — enhanced Invoice View + Edit Invoice screens */
.invoice-view-shell,
.invoice-edit-shell{
  max-width:1500px;
  margin:0 auto;
}

.invoice-view-topbar,
.invoice-edit-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.invoice-view-heading,
.invoice-edit-heading{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.invoice-view-heading h1,
.invoice-edit-heading h1{
  margin:0!important;
  color:#173247!important;
  font-size:28px!important;
  line-height:1.1!important;
}

.invoice-view-heading p,
.invoice-edit-heading p{
  margin:4px 0 0!important;
  color:#627b8a!important;
  font-size:13px!important;
}

.invoice-back-link{
  display:inline-flex;
  align-items:center;
  width:max-content;
  color:#1268c4!important;
  font-size:12px!important;
  font-weight:700!important;
  text-decoration:none!important;
}

.invoice-back-link:hover{
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}

.invoice-view-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.invoice-screen-close{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #bcd0db;
  border-radius:8px;
  background:#fff;
  color:#31566a!important;
  font-size:24px;
  text-decoration:none!important;
  line-height:1;
}

.invoice-screen-close:hover{
  background:#eef6f9;
  border-color:#8eb4c6;
}

.invoice-sheet-pro{
  max-width:980px!important;
  margin:0 auto!important;
  padding:42px!important;
  border:1px solid #d2dfe6!important;
  border-radius:6px!important;
  box-shadow:0 14px 40px rgba(25,55,73,.16)!important;
  background:#fff!important;
}

.invoice-brand-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
}

.invoice-company-brand{
  display:flex;
  align-items:center;
  gap:13px;
}

.invoice-company-brand img{
  width:54px;
  height:54px;
  object-fit:contain;
}

.invoice-company-brand strong{
  display:block;
  color:#173247;
  font-size:20px;
}

.invoice-company-brand span{
  display:block;
  margin-top:3px;
  color:#728896;
  font-size:12px;
}

.invoice-doc-title{
  text-align:right;
}

.invoice-doc-title h1{
  margin:0!important;
  font-size:31px!important;
  letter-spacing:.04em;
  color:#173247!important;
}

.invoice-doc-title span{
  display:block;
  margin-top:6px;
  color:#536e7e;
  font-size:13px;
  font-weight:700;
}

.invoice-rule{
  height:2px;
  margin:26px 0;
  background:#173247;
}

.invoice-meta-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:48px;
  margin-bottom:28px;
}

.invoice-small-label{
  display:block;
  margin-bottom:6px;
  color:#6d8492;
  font-size:10px;
  font-weight:800;
  letter-spacing:.07em;
}

.invoice-bill-to{
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#253e4d;
  font-size:13px;
  line-height:1.4;
}

.invoice-bill-to strong{
  font-size:15px;
  color:#173247;
}

.invoice-bill-to a{
  margin-top:4px;
  color:#1268c4!important;
  text-decoration:none!important;
}

.invoice-bill-to a:hover{
  text-decoration:underline!important;
}

.invoice-date-card{
  border:1px solid #d7e3e9;
  border-radius:7px;
  overflow:hidden;
}

.invoice-date-card>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:10px 12px;
  border-bottom:1px solid #e2eaee;
}

.invoice-date-card>div:last-child{
  border-bottom:0;
}

.invoice-date-card span{
  color:#687f8d;
  font-size:11px;
}

.invoice-date-card strong{
  color:#203948;
  font-size:12px;
}

.invoice-pro-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:26px;
}

.invoice-pro-table th{
  padding:11px 12px!important;
  background:#eaf3f7!important;
  color:#526f7f!important;
  font-size:10px!important;
  letter-spacing:.05em!important;
  text-transform:uppercase;
}

.invoice-pro-table td{
  padding:13px 12px!important;
  border-bottom:1px solid #dbe6eb!important;
  color:#263e4d!important;
  font-size:12px!important;
}

.invoice-pro-table th:nth-child(n+2),
.invoice-pro-table td:nth-child(n+2){
  text-align:right;
}

.invoice-bottom-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:40px;
  align-items:start;
}

.invoice-notes-display p{
  margin:0;
  color:#536d7c;
  font-size:12px;
  line-height:1.5;
}

.invoice-totals-pro{
  border-top:1px solid #d5e1e7;
}

.invoice-totals-pro>div{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:10px 4px;
  border-bottom:1px solid #e1e9ed;
  color:#435f70;
  font-size:12px;
}

.invoice-totals-pro strong{
  color:#173247;
}

.invoice-total-main{
  font-size:16px!important;
  font-weight:700;
}

.invoice-total-main strong{
  font-size:20px!important;
}

.invoice-balance-main{
  font-weight:700;
}

.invoice-balance-main strong{
  font-size:16px;
}

/* Edit Invoice */
.invoice-edit-card{
  padding:0!important;
  overflow:hidden;
  border:1px solid #cbdde6!important;
  border-radius:12px!important;
  box-shadow:0 8px 24px rgba(31,63,81,.06)!important;
}

.invoice-edit-section{
  padding:22px 24px;
  border-bottom:1px solid #dce7ec;
}

.invoice-edit-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.invoice-edit-section-title h2{
  margin:0!important;
  color:#173247!important;
  font-size:17px!important;
}

.invoice-edit-section-title p{
  margin:3px 0 0!important;
  color:#78909c!important;
  font-size:11px!important;
}

.invoice-edit-grid{
  gap:15px 18px!important;
}

.invoice-edit-grid label,
.invoice-notes-label{
  color:#3f5e6f!important;
  font-size:12px!important;
  font-weight:700!important;
}

.invoice-edit-grid input,
.invoice-edit-grid select,
.invoice-notes-label textarea{
  margin-top:6px!important;
  border:1px solid #aac2cf!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.invoice-edit-grid input:focus,
.invoice-edit-grid select:focus,
.invoice-notes-label textarea:focus{
  border-color:#1687aa!important;
  box-shadow:0 0 0 2px rgba(22,135,170,.12)!important;
}

.invoice-lines-head{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 90px 120px 90px 38px;
  gap:8px;
  padding:0 0 7px;
  color:#738b98;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.invoice-lines-section #invoiceItems .itemrow{
  margin-bottom:9px!important;
}

.invoice-lines-section #invoiceItems .itemrow input{
  min-height:40px!important;
  border:1px solid #aac2cf!important;
  border-radius:6px!important;
  background:#fff!important;
}

.invoice-lines-section #invoiceItems .itemrow input:focus{
  outline:none!important;
  border-color:#1687aa!important;
  box-shadow:0 0 0 2px rgba(22,135,170,.12)!important;
}

.invoice-add-line-btn{
  margin-top:4px!important;
  margin-bottom:0!important;
}

.invoice-notes-section{
  padding-top:20px!important;
}

.invoice-notes-label{
  margin-top:0!important;
}

.invoice-notes-label textarea{
  width:100%;
  min-height:92px;
}

.invoice-edit-footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
  padding:16px 24px;
  background:#f7fafb;
}

.invoice-edit-footer .btn{
  min-width:88px;
}

.invoice-edit-footer .btn.primary{
  min-width:112px;
}

@media(max-width:850px){
  .invoice-meta-grid,
  .invoice-bottom-grid{
    grid-template-columns:1fr;
  }

  .invoice-lines-head{
    display:none;
  }

  .invoice-view-topbar,
  .invoice-edit-topbar{
    flex-direction:column;
  }

  .invoice-view-actions{
    flex-wrap:wrap;
  }

  .invoice-screen-close{
    position:absolute;
    right:20px;
  }
}

@media print{
  .invoice-view-topbar{display:none!important}
  .invoice-sheet-pro{
    box-shadow:none!important;
    border:0!important;
    max-width:none!important;
    padding:0!important;
  }
}


/* v0.9.4 — enhanced Create / Duplicate Invoice screen */
.invoice-create-shell{
  max-width:1500px;
  margin:0 auto;
}

.invoice-create-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}

.invoice-create-heading h1{
  margin:0!important;
  color:#173247!important;
  font-size:28px!important;
  line-height:1.1!important;
}

.invoice-create-heading p{
  margin:6px 0 0!important;
  color:#627b8a!important;
  font-size:13px!important;
  line-height:1.5;
}

.invoice-duplicate-notice{
  max-width:860px;
  margin-bottom:16px!important;
  background:linear-gradient(180deg,#eff8fb 0%,#e4f2f8 100%)!important;
  border:1px solid #b8d5e4!important;
  color:#25536b!important;
  font-weight:700!important;
  border-radius:8px!important;
  box-shadow:0 6px 14px rgba(34,95,125,.05);
}

.invoice-create-card{
  padding:0!important;
  overflow:hidden;
  border:1px solid #cbdde6!important;
  border-radius:12px!important;
  box-shadow:0 8px 24px rgba(31,63,81,.06)!important;
}

.invoice-create-card form{
  background:#fff;
}

.invoice-create-card .invoice-edit-section:first-child{
  padding-top:24px!important;
}

.invoice-create-card .itemrow{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 90px 120px 90px 38px;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}

.invoice-create-card .itemrow input{
  min-height:40px!important;
  border:1px solid #aac2cf!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.invoice-create-card .itemrow input:focus{
  outline:none!important;
  border-color:#1687aa!important;
  box-shadow:0 0 0 2px rgba(22,135,170,.12)!important;
}

.invoice-line-delete{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #d0dbe1!important;
  border-radius:8px!important;
  background:#fff4f4!important;
  color:#a94c4c!important;
  font-size:22px!important;
  line-height:1!important;
  cursor:pointer;
}

.invoice-line-delete:hover{
  background:#ffeaea!important;
  border-color:#d8a0a0!important;
}

.invoice-create-card .invoice-notes-label textarea{
  min-height:92px!important;
}

.invoice-create-card .invoice-edit-footer{
  border-top:1px solid #dce7ec;
}

@media(max-width:850px){
  .invoice-create-topbar{
    flex-direction:column;
  }
}


/* v0.9.5 — enhanced Customer form */
.customer-form-shell{
  max-width:1500px;
  margin:0 auto;
}

.customer-form-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.customer-form-topbar h1{
  margin:2px 0 4px!important;
  font-size:28px!important;
  color:#173247!important;
}

.customer-form-topbar p{
  margin:0!important;
  color:#627b8a!important;
  font-size:13px!important;
}

.customer-form-card{
  padding:0!important;
  overflow:hidden;
  border:1px solid #cbdde6!important;
  border-radius:12px!important;
  box-shadow:0 8px 24px rgba(31,63,81,.06)!important;
  background:#fff!important;
}

.customer-form-section{
  padding:24px 26px;
  border-bottom:1px solid #dce7ec;
}

.customer-form-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:17px;
}

.customer-form-section-head h2{
  margin:0!important;
  color:#173247!important;
  font-size:17px!important;
}

.customer-form-section-head p{
  margin:4px 0 0!important;
  color:#78909c!important;
  font-size:11px!important;
}

.customer-details-grid,
.customer-phone-grid{
  gap:16px 18px!important;
}

.customer-form-card label{
  color:#3f5e6f!important;
  font-size:12px!important;
  font-weight:700!important;
}

.customer-form-card input,
.customer-form-card select,
.customer-form-card textarea{
  margin-top:6px!important;
  border:1px solid #aac2cf!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.customer-form-card input:focus,
.customer-form-card select:focus,
.customer-form-card textarea:focus{
  outline:none!important;
  border-color:#1687aa!important;
  box-shadow:0 0 0 2px rgba(22,135,170,.12)!important;
}

.customer-email-head{
  margin-bottom:12px!important;
}

.customer-email-manager{
  border:1px solid #d6e3e9!important;
  border-radius:9px!important;
  overflow:hidden!important;
  background:#fbfdfe!important;
}

.customer-email-manager .email-manager-head{
  padding:12px 14px!important;
  background:#f3f8fa!important;
  border-bottom:1px solid #dce8ed!important;
}

.customer-email-manager .email-chip-list{
  padding:12px!important;
  max-height:180px;
  overflow:auto;
}

.customer-email-manager .email-chip-row{
  background:#fff!important;
  border:1px solid #d8e4ea!important;
  border-radius:8px!important;
  padding:10px!important;
  box-shadow:0 2px 6px rgba(24,57,74,.03);
}

.customer-email-manager .email-chip-icon{
  width:30px!important;
  height:30px!important;
  border-radius:8px!important;
  background:#e9f5fa!important;
  color:#117ea2!important;
}

.customer-email-manager .email-chip-copy strong{
  color:#173247!important;
}

.customer-email-manager .email-chip-copy span{
  color:#7a909c!important;
}

.customer-billing-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.customer-country-field input{
  min-height:40px;
}

.customer-address-field textarea{
  min-height:100px;
}

.customer-notes-field{
  display:block;
  margin-top:16px!important;
}

.customer-notes-field textarea{
  min-height:92px;
}

.customer-form-footer{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding:16px 24px;
  background:#f7fafb;
}

.customer-form-footer .btn{
  min-width:88px;
}

.customer-form-footer .btn.primary{
  min-width:118px;
}

@media(max-width:850px){
  .customer-form-topbar{
    flex-direction:column;
  }

  .customer-billing-layout{
    grid-template-columns:1fr;
  }
}


/* v0.9.6 — professional Income This Month drilldown card */
.stat-income-drilldown{
  display:block!important;
  text-decoration:none!important;
  color:inherit!important;
  cursor:pointer!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease!important;
}
.stat-income-drilldown:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 12px 26px rgba(24,56,75,.16)!important;
  border-color:#4a8da8!important;
  text-decoration:none!important;
}
.stat-income-drilldown:focus-visible{
  outline:2px solid #1687aa!important;
  outline-offset:3px!important;
}
.stat-drilldown-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.stat-drilldown-top>span:first-child{
  color:inherit!important;
}
.stat-drilldown-icon{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  transition:background .16s ease, transform .16s ease;
}
.stat-drilldown-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.stat-income-drilldown:hover .stat-drilldown-icon{
  background:rgba(255,255,255,.15);
  transform:translateX(2px);
}
.stat-income-drilldown small{
  display:block;
  margin-top:7px;
  color:rgba(255,255,255,.58);
  font-size:12px;
  font-weight:600;
  letter-spacing:.01em;
}


/* v0.9.8 — QuickBooks-style grouped Chart of Accounts */
.coa-page{
  max-width:1600px;
  margin:0 auto;
}
.coa-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:18px;
}
.coa-topbar h1{
  margin:3px 0 4px!important;
  color:#173247!important;
  font-size:29px!important;
}
.coa-topbar p{
  margin:0!important;
  color:#6b8290!important;
  font-size:12px!important;
}
.coa-top-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.coa-panel{
  padding:0!important;
  overflow:hidden;
  border:1px solid #cbdde6!important;
  border-radius:11px!important;
  box-shadow:0 7px 20px rgba(31,63,81,.05)!important;
}
.coa-toolbar{
  padding:16px 18px;
  border-bottom:1px solid #d7e4ea;
  background:#fff;
}
.coa-filter-form{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.coa-search-wrap{
  position:relative;
  width:min(390px,100%);
}
.coa-search-wrap input{
  width:100%;
  height:38px!important;
  padding-left:38px!important;
  border:1px solid #adc2ce!important;
  border-radius:6px!important;
  background:#fff!important;
}
.coa-search-icon{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:#587584;
  font-size:18px;
  pointer-events:none;
}
.coa-filter-form select{
  min-width:230px;
  height:38px!important;
  border:1px solid #adc2ce!important;
  border-radius:6px!important;
}
.coa-table-wrap{
  overflow:auto;
}
.coa-table{
  width:100%;
  border-collapse:collapse;
}
.coa-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:11px 14px!important;
  background:#eef4f7!important;
  color:#4c6979!important;
  border-bottom:1px solid #cddde5!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
  text-transform:uppercase;
}
.coa-table td{
  padding:11px 14px!important;
  border-bottom:1px solid #dce6eb!important;
  color:#2c4655!important;
  font-size:12px!important;
}
.coa-col-account{
  min-width:310px;
}
.coa-balance-col{
  text-align:right!important;
  white-space:nowrap;
}
.coa-action-col{
  text-align:right!important;
  white-space:nowrap;
}
.coa-group-row td{
  padding:0!important;
  background:#f3f7f9!important;
  border-top:1px solid #cbdbe3!important;
  border-bottom:1px solid #cbdbe3!important;
}
.coa-group-toggle{
  width:100%;
  display:grid;
  grid-template-columns:24px minmax(220px,1fr) auto 150px;
  align-items:center;
  gap:9px;
  padding:11px 14px;
  border:0;
  background:transparent;
  color:#243f4f;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
}
.coa-group-toggle:hover{
  background:#eaf2f6;
}
.coa-group-chevron{
  width:17px;
  height:17px;
  fill:none;
  stroke:#456777;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .16s ease;
}
.coa-group-toggle[aria-expanded="false"] .coa-group-chevron{
  transform:rotate(-90deg);
}
.coa-group-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
}
.coa-group-count{
  color:#78909c;
  font-size:10px;
  font-weight:600;
}
.coa-group-balance{
  text-align:right;
  font-size:12px;
  color:#173247;
}
.coa-account-row{
  background:#fff;
}
.coa-account-row:hover{
  background:#f8fbfc;
}
.coa-account-name{
  padding-left:42px!important;
}
.coa-child-mark{
  display:inline-block;
  margin-right:8px;
  color:#8299a5;
}
.coa-account-name strong{
  color:#253f4f;
  font-weight:600;
}
.coa-edit-link{
  color:#1268c4!important;
  font-weight:700;
  text-decoration:none!important;
}
.coa-edit-link:hover{
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
.coa-account-row[hidden]{
  display:none!important;
}
@media(max-width:900px){
  .coa-topbar{
    flex-direction:column;
  }
  .coa-top-actions{
    justify-content:flex-start;
  }
  .coa-group-toggle{
    grid-template-columns:24px 1fr auto;
  }
  .coa-group-balance{
    grid-column:2/4;
    text-align:left;
  }
}


/* v0.9.9 — refined transaction action chevron */
.customer-transaction-actions > .transaction-action-menu{
  margin-left:7px!important;
}

.transaction-action-menu>summary{
  width:30px!important;
  height:30px!important;
  display:inline-grid!important;
  place-items:center!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#126f8f!important;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease!important;
}

.transaction-action-menu>summary:hover{
  background:#edf7fa!important;
  border-color:#c7dfe8!important;
  box-shadow:0 1px 4px rgba(28,75,96,.08)!important;
}

.transaction-action-menu>summary:focus-visible{
  outline:none!important;
  border-color:#55a9c4!important;
  box-shadow:0 0 0 2px rgba(22,135,170,.14)!important;
}

.transaction-action-menu[open]>summary{
  background:#e6f3f7!important;
  border-color:#b9d8e3!important;
}

.transaction-chevron{
  width:15px!important;
  height:15px!important;
  stroke:#126f8f!important;
  stroke-width:2.1!important;
  transition:transform .16s ease!important;
}

.transaction-action-menu[open]>summary .transaction-chevron{
  transform:rotate(180deg)!important;
}

.transaction-action-dropdown{
  top:calc(100% + 7px)!important;
  border-radius:9px!important;
  box-shadow:0 14px 34px rgba(31,66,84,.16)!important;
}


/* v1.0.1 — simplified current Settings */
.settings-clean-page{
  max-width:1200px;
  margin:0 auto;
}
.settings-clean-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.settings-card-current{
  min-height:180px;
}
.settings-system-card{
  grid-column:1/-1;
}
.settings-system-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.settings-system-details>div{
  padding:12px 14px;
  border:1px solid #d9e5eb;
  border-radius:8px;
  background:#f8fbfc;
}
.settings-system-details span{
  display:block;
  margin-bottom:4px;
  color:#718996;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.settings-system-details strong{
  color:#173247;
  font-size:12px;
}
.settings-clean-note{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #d8e5eb;
  border-radius:8px;
  background:#f6fafc;
  color:#607987;
  font-size:11px;
  line-height:1.5;
}
@media(max-width:800px){
  .settings-clean-grid{
    grid-template-columns:1fr;
  }
  .settings-system-card{
    grid-column:auto;
  }
  .settings-system-details{
    grid-template-columns:1fr;
  }
}


/* v1.0.2 — stable Income This Month card + refined drilldown arrow */
.stat-income-drilldown{
  transform:none!important;
}

.stat-income-drilldown:hover{
  transform:none!important;
  box-shadow:var(--shadow)!important;
  border-color:#b28b39!important;
}

/* Cleaner icon treatment: compact glass circle with a proper chevron/arrow */
.stat-drilldown-icon{
  width:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.32)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.12)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 2px 7px rgba(0,0,0,.08)!important;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease!important;
}

.stat-drilldown-icon svg{
  width:14px!important;
  height:14px!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Do not move the icon on hover */
.stat-income-drilldown:hover .stat-drilldown-icon{
  transform:none!important;
  background:rgba(255,255,255,.18)!important;
  border-color:rgba(255,255,255,.42)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 2px 8px rgba(0,0,0,.10)!important;
}


/* v1.0.5 — CEA AdminPanel-style fixed top header */
body{
  padding-top:76px!important;
}

/* Header is the top-most application chrome and spans the full viewport. */
#main>header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  height:76px!important;
  z-index:5000!important;
  padding:0 24px!important;
  margin:0!important;
  box-sizing:border-box!important;
  background:#0a283a!important;
  border-bottom:1px solid #1e5268!important;
  box-shadow:0 3px 14px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}

/* Sidebar starts below the global header instead of sitting behind/above it. */
#sidebar{
  top:76px!important;
  bottom:0!important;
  height:calc(100vh - 76px)!important;
  z-index:1200!important;
}

/* Main content remains beside the fixed sidebar, under the header. */
#main{
  margin-left:250px!important;
  min-height:calc(100vh - 76px)!important;
  transition:none!important;
}

/* Collapse mode is retired; ignore any stale class from an old browser session. */
body.collapsed #sidebar{
  width:250px!important;
}
body.collapsed #sidebar .side-brand>div,
body.collapsed .nav-label{
  display:block!important;
}
body.collapsed #sidebar .side-brand{
  justify-content:flex-start!important;
  padding-left:8px!important;
  padding-right:8px!important;
}
body.collapsed #main{
  margin-left:250px!important;
}
body.collapsed #sidebar>a{
  justify-content:flex-start!important;
  padding-left:13px!important;
  padding-right:13px!important;
}

/* The old collapse icon is intentionally not used. */
#menuBtn,
.iconbtn{
  display:none!important;
}

@media(max-width:900px){
  body{
    min-width:900px;
  }
  #sidebar{
    width:250px!important;
  }
  #main{
    margin-left:250px!important;
  }
}


/* v1.0.6 — authoritative QuickBooks Account List synchronization */
.coa-audit-note{
  margin:0 18px 14px;
  padding:11px 13px;
  border:1px solid #d7e4ea;
  border-radius:8px;
  background:#f7fafc;
  color:#607987;
  font-size:11px;
  line-height:1.5;
}
.coa-audit-note strong{color:#284a5d}
.coa-group-toggle{
  grid-template-columns:24px minmax(220px,1fr) auto 135px 135px!important;
}
.coa-group-qb{
  text-align:right;
  color:#526f7f;
  font-size:12px;
  font-weight:700;
}
@media(max-width:900px){
  .coa-group-toggle{
    grid-template-columns:24px 1fr auto!important;
  }
  .coa-group-qb,
  .coa-group-balance{
    grid-column:2/4;
    text-align:left!important;
  }
}


/* v1.0.7 — single authoritative account balance */
.coa-group-toggle{
  grid-template-columns:24px minmax(220px,1fr) auto 150px!important;
}
.coa-group-qb{
  display:none!important;
}
.coa-audit-note{
  display:none!important;
}


/* v1.0.9 — Rentrak-only accounting figures */
.coa-rentrak-source-note{
  margin:0 18px 14px;
  padding:10px 12px;
  border:1px solid #d5e4ea;
  border-radius:8px;
  background:#f7fafc;
  color:#617b89;
  font-size:11px;
  line-height:1.45;
}
.coa-rentrak-source-note strong{color:#24495d}


/* v1.1.1 — Chart of Accounts balance drilldown */
.coa-balance-link{
  color:#1268c4;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.coa-balance-link:hover{
  text-decoration:underline;
}
.account-history-page{
  max-width:1500px;
  margin:0 auto;
}
.account-history-heading{
  align-items:flex-start;
}
.account-history-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(180px,1fr));
  gap:12px;
  margin-bottom:16px;
}
.account-history-stat{
  min-height:98px;
}
.account-history-stat span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:8px;
}
.account-history-stat strong{
  font-size:22px;
}
.account-history-current{
  border-color:#2e9c89!important;
}
.account-history-panel{
  overflow:visible;
}
.account-history-toolbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.account-history-search{
  display:flex;
  gap:8px;
  width:min(820px,100%);
}
.account-history-search input[name="q"]{
  flex:1;
  min-width:260px;
}
.account-history-table-wrap{
  overflow:auto;
}
.account-history-table th,
.account-history-table td{
  vertical-align:top;
}
.account-history-table .num{
  text-align:right;
  white-space:nowrap;
}
.account-history-type{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  background:#eef5f8;
  color:#365b6d;
  font-size:10px;
  font-weight:800;
}
.account-history-reference{
  color:#1268c4;
  text-decoration:none;
  font-weight:700;
}
.account-history-reference:hover{
  text-decoration:underline;
}
.account-effect-positive{color:#20745b}
.account-effect-negative{color:#a3474e}
@media(max-width:900px){
  .account-history-summary{grid-template-columns:repeat(2,1fr)}
  .account-history-search{flex-wrap:wrap}
  .account-history-search input[name="q"]{min-width:100%}
}


/* v1.1.2 — clearer Account History transaction types */
.account-history-table{
  font-size:13px;
}
.account-history-table th{
  font-size:11px;
}
.account-history-table td{
  font-size:13px;
  line-height:1.45;
}
.account-history-table td strong,
.account-history-reference{
  font-size:13px;
}
.account-history-type{
  font-size:11px!important;
  font-weight:800!important;
  padding:5px 9px!important;
  border:1px solid transparent;
}

/* Invoice creates/increases A/R */
.account-history-type-invoice{
  background:#eaf3ff!important;
  color:#155c9a!important;
  border-color:#bfd8f1!important;
}

/* Payment reduces A/R */
.account-history-type-payment{
  background:#e8f7ef!important;
  color:#1f7658!important;
  border-color:#bee6d1!important;
}

/* Future transaction types still remain visually distinct */
.account-history-type-expense{
  background:#fff2e5!important;
  color:#9a5a16!important;
  border-color:#f0d2ae!important;
}


/* v1.1.3 — Invoice Status in Account History */
.account-history-status{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  border:1px solid transparent;
  white-space:nowrap;
}
.account-history-status-paid{
  background:#e8f7ef;
  color:#1f7658;
  border-color:#bee6d1;
}
.account-history-status-sent{
  background:#eaf3ff;
  color:#155c9a;
  border-color:#bfd8f1;
}
.account-history-status-overdue{
  background:#fdeceb;
  color:#a54444;
  border-color:#efc1bf;
}
.account-history-status-partially-paid{
  background:#fff3df;
  color:#9a6518;
  border-color:#efd3a4;
}
.account-history-status-cancelled{
  background:#f1f3f5;
  color:#66727a;
  border-color:#d9dfe3;
}


/* v1.2.0 — Expenses / Bills */
.expenses-page,.expense-entry-shell{max-width:1500px;margin:0 auto}
.expenses-heading{align-items:flex-start}
.expenses-head-actions{display:flex;gap:9px;align-items:center}
.expenses-new-menu{position:relative}
.expenses-new-menu summary{list-style:none;cursor:pointer}
.expenses-new-menu summary::-webkit-details-marker{display:none}
.expenses-new-menu>div{position:absolute;right:0;top:44px;width:190px;background:#fff;border:1px solid #ccdce4;border-radius:9px;box-shadow:0 14px 35px rgba(22,48,62,.18);z-index:80;padding:6px}
.expenses-new-menu>div a{display:block;padding:9px 11px;border-radius:6px;color:#173247;text-decoration:none;font-size:12px}
.expenses-new-menu>div a:hover{background:#edf6fa}
.expense-entry-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.expense-entry-head h1{margin:4px 0 0}
.expense-form{background:#fff;border:1px solid #d5e3e9;border-radius:10px;overflow:hidden;box-shadow:0 10px 25px rgba(21,48,62,.07)}
.expense-form-top{position:relative;background:#eef3f5;padding:22px 24px 26px;min-height:170px}
.expense-top-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,280px));gap:12px 18px;max-width:920px}
.expense-top-grid label,.expense-lower-grid label{font-size:11px;color:#677d89}
.expense-top-grid input,.expense-top-grid select,.expense-lines input,.expense-lines select{background:#fff;border:1px solid #c8d8df;color:#173247}
.expense-big-amount{position:absolute;right:28px;top:20px;text-align:right}
.expense-big-amount span{display:block;font-size:10px;color:#536b78;font-weight:700}
.expense-big-amount strong{display:block;font-size:38px;margin-top:4px;color:#162b38}
.expense-category-section{padding:20px 24px}
.expense-section-title{display:flex;align-items:center;gap:9px;margin-bottom:18px}
.expense-section-title h2{font-size:15px;margin:0}
.expense-lines{border-top:1px solid #ccdce4}
.expense-line{display:grid;grid-template-columns:36px minmax(220px,1.1fr) minmax(300px,2fr) 170px 34px;align-items:center;border-bottom:1px solid #d9e4e9;min-height:43px}
.expense-line>*{margin:0;border-radius:0!important;border:0!important;border-right:1px solid #d9e4e9!important;min-height:42px}
.expense-line>span{display:flex;align-items:center;padding:0 8px}
.expense-line-head{min-height:34px;color:#405966;font-size:10px;font-weight:800}
.expense-line-head>*{min-height:34px!important}
.expense-line-delete{background:transparent;border:0!important;color:#778c96;font-size:18px;cursor:pointer}
.expense-line-actions{display:flex;gap:8px;margin-top:8px}
.expense-total-row{display:flex;justify-content:flex-end;gap:120px;padding:22px 10px 4px;font-size:14px}
.expense-total-row strong{font-size:17px}
.expense-lower-grid{display:grid;grid-template-columns:380px 390px;gap:22px;padding:8px 24px 28px}
.expense-lower-grid textarea{width:100%;background:#fff;border:1px solid #c8d8df;color:#173247}
.expense-attachments>span{display:block;font-size:11px;color:#677d89;margin-bottom:6px}
.expense-upload-box{height:108px;border:1px dashed #b8cbd5;border-radius:7px;display:flex!important;align-items:center;justify-content:center;flex-direction:column;color:#1268c4!important;cursor:pointer}
.expense-upload-box small{color:#748992;margin-top:6px}
.expense-existing-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.expense-existing-files a{font-size:10px;color:#1268c4}
.expense-savebar{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-top:1px solid #d5e3e9;background:#fff}
.expense-savebar>div{display:flex;gap:8px}
.expenses-toolbar{margin-bottom:12px}
.expenses-table td,.expenses-table th{font-size:12px}
.pay-bills-panel table td,.pay-bills-panel table th{font-size:11px}
.pay-bill-action{display:grid;grid-template-columns:160px 135px 120px 130px auto;gap:6px;min-width:680px}
.pay-bill-amount{width:110px}
.bill-top-grid{grid-template-columns:repeat(5,minmax(150px,1fr));max-width:1100px}
@media(max-width:1100px){
 .expense-top-grid,.bill-top-grid{grid-template-columns:repeat(2,1fr)}
 .expense-big-amount{position:static;text-align:left;margin-top:16px}
 .expense-line{grid-template-columns:34px minmax(170px,1fr) minmax(210px,1.5fr) 120px 34px}
 .expense-lower-grid{grid-template-columns:1fr}
}


/* v1.2.1 — QuickBooks-style Expense Category dropdown */
.expense-category-native{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
.expense-category-combo{
  position:relative;
  min-width:0;
  min-height:42px;
  border-right:1px solid #d9e4e9!important;
}
.expense-category-trigger{
  width:100%;
  min-height:42px;
  padding:0 36px 0 12px;
  border:0;
  background:#fff;
  color:#627983;
  text-align:left;
  cursor:pointer;
  position:relative;
  font-size:12px;
  font-weight:500;
}
.expense-category-trigger:hover,
.expense-category-trigger:focus{
  outline:none;
  box-shadow:inset 0 0 0 2px #0b7f73;
  color:#173247;
}
.expense-category-trigger.has-value{
  color:#173247;
}
.expense-category-arrow{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:#647b86;
}
.expense-category-menu{
  position:absolute;
  left:0;
  top:calc(100% + 4px);
  width:430px;
  max-width:min(430px,80vw);
  max-height:390px;
  overflow:hidden;
  background:#fff;
  border:1px solid #ccd9df;
  border-radius:6px;
  box-shadow:0 10px 28px rgba(34,58,70,.18);
  z-index:300;
}
.expense-category-search-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-bottom:1px solid #e0e8ec;
  background:#fff;
}
.expense-category-search-wrap>span{
  color:#6d828d;
  font-size:15px;
}
.expense-category-search{
  width:100%;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  min-height:30px!important;
  padding:0!important;
  color:#1d3542!important;
  background:#fff!important;
  font-size:12px!important;
}
.expense-category-list{
  max-height:335px;
  overflow:auto;
  padding:4px 0;
}
.expense-category-group{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:38px;
  padding:0 12px;
  background:#f7f8f9;
  border-top:1px solid #edf0f2;
  border-bottom:1px solid #e3e8eb;
}
.expense-category-group:first-child{
  border-top:0;
}
.expense-category-group strong{
  color:#374b56;
  font-size:11px;
  letter-spacing:.01em;
}
.expense-category-group span{
  color:#788b94;
  font-size:10px;
  font-style:italic;
}
.expense-category-option{
  width:100%;
  min-height:39px;
  display:grid;
  grid-template-columns:minmax(170px,1fr) minmax(130px,.85fr);
  gap:12px;
  align-items:center;
  padding:7px 12px 7px 20px;
  border:0;
  border-bottom:1px solid #f0f3f5;
  background:#fff;
  color:#283e49;
  text-align:left;
  cursor:pointer;
}
.expense-category-option:hover,
.expense-category-option.selected{
  background:#eef1f3;
}
.expense-category-option-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
.expense-category-option-meta{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#7b8b93;
  font-size:10px;
  font-style:italic;
}
.expense-category-empty{
  padding:20px 12px;
  text-align:center;
  color:#7b8d96;
  font-size:11px;
}
.expense-line{
  overflow:visible!important;
}
.expense-lines{
  overflow:visible!important;
}


/* v1.2.2 — polished Chart-of-Accounts-style Category chevron */
.expense-category-arrow{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#f3f7f9;
  border:1px solid #d6e2e7;
  color:#486674;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.expense-category-arrow svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .16s ease;
}
.expense-category-trigger:hover .expense-category-arrow,
.expense-category-trigger:focus .expense-category-arrow{
  background:#e9f3f6;
  border-color:#bfd3dc;
  color:#1e586d;
}
.expense-category-trigger.open .expense-category-arrow svg{
  transform:rotate(180deg);
}


/* v1.3.0 — Bank Statement Matching */
.statement-matching-page{max-width:1550px;margin:0 auto}
.statement-heading{align-items:flex-start}
.statement-heading-actions{display:flex;gap:8px}
.statement-workflow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.statement-workflow>div{background:#f7fafb;border:1px solid #d6e4ea;border-radius:9px;padding:13px 14px}
.statement-workflow strong{display:block;color:#24495d;font-size:12px;margin-bottom:5px}
.statement-workflow span{display:block;color:#6b818d;font-size:11px;line-height:1.45}
.new-statement-form{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:12px}
.statement-file-field{display:flex;flex-direction:column}
.statement-file-field input{padding:7px}
.statement-file-field small{font-size:9px;color:var(--muted);margin-top:4px}
.new-statement-submit{display:flex;align-items:end}
.statement-summary{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:10px;margin-bottom:14px}
.statement-summary .panel{min-height:92px;padding:14px}
.statement-summary span{display:block;color:var(--muted);font-size:10px;margin-bottom:7px}
.statement-summary strong{font-size:19px}
.statement-pdf-note,.statement-prefill-notice{margin-bottom:14px;padding:10px 12px;background:#fff8e8;border:1px solid #edd5a6;border-radius:8px;color:#745b2e;font-size:11px;line-height:1.45}
.statement-lines-panel{overflow:visible}
.statement-toolbar{display:flex;justify-content:space-between;margin-bottom:12px}
.statement-search{display:flex;gap:7px;align-items:center;max-width:880px;width:100%}
.statement-search input[name="q"]{flex:1}
.statement-lines-table th,.statement-lines-table td{font-size:11px;vertical-align:top}
.statement-lines-table .num{text-align:right;white-space:nowrap}
.statement-lines-table .positive{color:#24745b;font-weight:800}
.statement-lines-table .negative{color:#a04a4a;font-weight:800}
.statement-description{min-width:250px;max-width:430px}
.statement-type{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800}
.statement-type-deposit{background:#e8f7ef;color:#1f7658;border:1px solid #bee6d1}
.statement-type-withdrawal{background:#fff0e7;color:#975017;border:1px solid #efc8aa}
.statement-line-matched{background:#f5fbf8}
.statement-suggestion{display:inline-flex;padding:4px 7px;background:#edf4ff;color:#245f9b;border:1px solid #ccddf2;border-radius:6px;font-size:9px;font-weight:800}
.statement-actions{min-width:250px;display:flex;flex-wrap:wrap;gap:5px}
.statement-action-menu{position:relative}
.statement-action-menu summary{list-style:none;cursor:pointer}
.statement-action-menu summary::-webkit-details-marker{display:none}
.statement-action-dropdown,.statement-account-dropdown{position:absolute;right:0;top:35px;width:390px;max-height:300px;overflow:auto;background:#fff;border:1px solid #ccdce4;border-radius:9px;box-shadow:0 14px 34px rgba(26,52,66,.18);padding:6px;z-index:500}
.statement-action-dropdown form{margin:0}
.statement-action-dropdown button{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:0;background:#fff;color:#213a47;padding:9px;border-radius:6px;text-align:left;cursor:pointer}
.statement-action-dropdown button:hover{background:#edf6fa}
.statement-action-dropdown button span{font-size:9px;color:#718894}
.statement-no-candidate{padding:12px;color:#718894;font-size:10px}
.statement-account-dropdown form{display:grid;gap:7px}
.statement-account-dropdown select,.statement-account-dropdown input{width:100%}
.statement-rule-check{display:flex;align-items:center;gap:7px;font-size:10px;color:#647b86}
.statement-manual-add{margin-top:15px}
.statement-manual-add form{display:grid;grid-template-columns:140px 150px minmax(260px,1fr) 150px 150px auto;gap:8px}
.statement-rule-create form{display:grid;grid-template-columns:1.3fr 130px 140px 1.5fr auto;gap:10px;align-items:end}
.statement-rules-table td,.statement-rules-table th,.statement-list-table td,.statement-list-table th{font-size:11px}
@media(max-width:1100px){
  .statement-workflow{grid-template-columns:1fr}
  .new-statement-form{grid-template-columns:repeat(2,1fr)}
  .statement-summary{grid-template-columns:repeat(3,1fr)}
  .statement-manual-add form{grid-template-columns:repeat(2,1fr)}
  .statement-rule-create form{grid-template-columns:repeat(2,1fr)}
}


/* v1.3.1 — visible imported statement inventory */
.statement-import-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:10px;
  margin-bottom:12px;
}
.statement-import-summary .panel{
  min-height:88px;
  padding:13px 14px;
}
.statement-import-summary span{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:7px;
}
.statement-import-summary strong{
  font-size:21px;
}
.statement-loaded-note{
  margin-bottom:14px;
  padding:11px 13px;
  border:1px solid #cfe0e7;
  border-radius:8px;
  background:#f5fafc;
  color:#5e7784;
  font-size:11px;
  line-height:1.5;
}
@media(max-width:900px){
  .statement-import-summary{grid-template-columns:repeat(2,1fr)}
}

/* v1.3.3 — bank/source visibility + payment preview */
.statement-bank-name{
  display:inline-flex;align-items:center;padding:4px 7px;border:1px solid #d5e2e8;
  border-radius:6px;background:#f5f9fb;color:#31586b;font-size:10px;font-weight:800;white-space:nowrap
}
.statement-payment-preview-btn em{font-size:9px;color:#1268c4;font-style:normal;font-weight:800;margin-top:2px}
.statement-payment-preview-backdrop{position:fixed;inset:0;background:rgba(11,31,43,.58);z-index:9000;display:grid;place-items:center;padding:24px}
.statement-payment-preview-backdrop[hidden]{display:none!important}
.statement-payment-preview-card{width:min(720px,94vw);max-height:90vh;overflow:auto;background:#fff;color:#1f3642;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.30);border:1px solid #cbd9e0}
.statement-payment-preview-head{display:flex;justify-content:space-between;gap:16px;padding:20px 22px 14px;border-bottom:1px solid #dde7eb}
.statement-payment-preview-head h2{margin:4px 0;font-size:18px}.statement-payment-preview-head p{margin:0;color:#728792;font-size:11px}
.statement-payment-preview-close{width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f7;color:#415f6e;font-size:20px;cursor:pointer}
.statement-payment-preview-amount{padding:18px 22px 12px}.statement-payment-preview-amount span{display:block;color:#718791;font-size:10px;font-weight:800;letter-spacing:.05em}
.statement-payment-preview-amount strong{display:block;margin-top:4px;font-size:30px;color:#173247}
.statement-payment-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 22px 18px}
.statement-payment-preview-grid>div{padding:10px 11px;border:1px solid #dbe5ea;border-radius:8px;background:#f8fbfc}
.statement-payment-preview-grid span{display:block;color:#738893;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.statement-payment-preview-grid strong{display:block;color:#243f4d;font-size:12px;overflow-wrap:anywhere}
.statement-payment-preview-wide{grid-column:1/-1}
.statement-payment-preview-warning{margin:0 22px 18px;padding:10px 12px;border:1px solid #efd7aa;border-radius:8px;background:#fff8e8;color:#745b2e;font-size:11px;line-height:1.45}
.statement-payment-preview-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 22px;border-top:1px solid #dde7eb;background:#fafcfd}
body.statement-preview-open{overflow:hidden}


/* v1.3.4 — professional Assign Account modal */
.statement-actions{
  min-width:260px;
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:5px;
}
.statement-assign-backdrop{
  position:fixed;
  inset:0;
  z-index:9100;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(11,31,43,.58);
}
.statement-assign-backdrop[hidden]{display:none!important}
.statement-assign-card{
  width:min(690px,94vw);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  color:#1f3642;
  border:1px solid #cbd9e0;
  border-radius:12px;
  box-shadow:0 24px 70px rgba(0,0,0,.30);
}
.statement-assign-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px 14px;
  border-bottom:1px solid #dde7eb;
}
.statement-assign-head h2{margin:4px 0;font-size:18px}
.statement-assign-head p{margin:0;color:#728792;font-size:11px}
.statement-assign-close{
  width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f7;
  color:#415f6e;font-size:20px;cursor:pointer
}
.statement-assign-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:18px 22px 12px;
}
.statement-assign-summary>div{
  padding:10px 11px;
  border:1px solid #dbe5ea;
  border-radius:8px;
  background:#f8fbfc;
}
.statement-assign-summary span{
  display:block;
  color:#738893;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:4px;
}
.statement-assign-summary strong{
  display:block;
  color:#243f4d;
  font-size:12px;
  overflow-wrap:anywhere;
}
.statement-assign-wide{grid-column:1/-1}
.statement-assign-form{
  display:grid;
  gap:12px;
  padding:8px 22px 20px;
}
.statement-assign-form>label:not(.statement-assign-remember){
  display:grid;
  gap:5px;
  color:#536d79;
  font-size:10px;
  font-weight:800;
}
.statement-assign-form select,
.statement-assign-form input[type="text"],
.statement-assign-form input:not([type]){
  min-height:40px;
  background:#fff;
  border:1px solid #cbdbe2;
  color:#173247;
  border-radius:7px;
}
.statement-assign-remember{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border:1px solid #dbe5ea;
  border-radius:7px;
  background:#f8fbfc;
  color:#536d79;
  font-size:10px;
  font-weight:700;
}
.statement-assign-remember input{
  width:16px!important;
  height:16px!important;
  min-height:0!important;
  margin:0!important;
}
.statement-assign-note{
  padding:10px 12px;
  border:1px solid #d5e4ea;
  border-radius:8px;
  background:#f5fafc;
  color:#647d89;
  font-size:10px;
  line-height:1.45;
}
.statement-assign-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:3px;
}
@media(max-width:700px){
  .statement-assign-summary{grid-template-columns:repeat(2,1fr)}
  .statement-assign-wide{grid-column:1/-1}
}

/* v1.3.4 — Bank Statement Document Center */
.statement-document-note{background:#f3f8fb;border-color:#c9dce6;color:#506c79}
.statement-document-note strong{color:#284c5d}
.statement-pdf-viewer{position:fixed;inset:0;z-index:5000;background:#e9eef1}
.statement-pdf-viewer[hidden]{display:none!important}
.statement-pdf-shell{height:100%;display:flex;flex-direction:column;background:#eef2f4}
.statement-pdf-topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 18px;background:#102b38;color:#fff;box-shadow:0 3px 14px rgba(12,35,46,.22);z-index:3}
.statement-pdf-topbar>div:first-child{display:grid;gap:2px}
.statement-pdf-topbar .eyebrow{color:#8ecbe7;font-size:9px;letter-spacing:.12em;text-transform:uppercase}
.statement-pdf-topbar strong{font-size:17px}
.statement-pdf-topbar span{font-size:10px;color:#c1d3dc}
.statement-pdf-top-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.statement-pdf-top-actions #pdfZoomLabel{min-width:46px;text-align:center;color:#dce9ef;font-weight:700;font-size:10px}
.statement-pdf-body{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 410px}
.statement-pdf-stage-wrap{min-width:0;min-height:0;display:flex;flex-direction:column;background:#cbd3d8;border-right:1px solid #afbec7}
.statement-pdf-legend{display:flex;align-items:center;gap:18px;padding:9px 16px;background:#f8fafb;border-bottom:1px solid #cbd7dd;color:#5f747e;font-size:10px;box-shadow:0 2px 6px rgba(31,55,67,.05);z-index:2}
.statement-pdf-legend span{display:inline-flex;align-items:center;gap:6px}
.statement-pdf-legend i{width:14px;height:9px;border-radius:2px;display:inline-block}
.legend-linked{background:rgba(47,161,111,.27);border:1px solid rgba(36,128,87,.7)}
.legend-location{background:rgba(224,166,54,.16);border:1px solid rgba(194,135,25,.8)}
.legend-selected{background:rgba(71,157,210,.18);border:2px solid #2788c2}
.statement-pdf-help{margin-left:auto;color:#6d858f!important}
.statement-pdf-pages{min-height:0;flex:1;overflow:auto;padding:24px 30px 54px;display:flex;flex-direction:column;align-items:center;gap:24px;scroll-behavior:smooth}
.statement-pdf-loading,.statement-pdf-fallback{margin:auto;background:#fff;border:1px solid #cbd8de;border-radius:10px;padding:22px 26px;color:#59707c;text-align:center;box-shadow:0 7px 24px rgba(30,54,67,.1)}
.statement-pdf-fallback strong{display:block;color:#284b5c;font-size:15px;margin-bottom:7px}
.statement-pdf-fallback p{max-width:520px;font-size:11px;line-height:1.5;margin:0 0 13px}
.pdf-page-wrap{position:relative;flex:0 0 auto;background:#fff;box-shadow:0 8px 25px rgba(20,42,52,.22);border:1px solid #b8c4ca}
.pdf-page-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.pdf-highlight-layer,.pdf-draw-layer{position:absolute;inset:0}
.pdf-highlight-layer{z-index:2;pointer-events:none}
.pdf-draw-layer{z-index:3;touch-action:none}
.pdf-txn-highlight{position:absolute;display:block;padding:0;margin:0;border-radius:2px;cursor:pointer;pointer-events:auto}
.pdf-txn-highlight.linked{background:rgba(53,181,123,.24);border:1.5px solid rgba(26,126,80,.88);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.pdf-txn-highlight.located{background:rgba(238,176,48,.11);border:1.5px dashed rgba(181,122,17,.9)}
.pdf-txn-highlight.selected{border:2.5px solid #158bd0!important;background:rgba(48,158,222,.18)!important;box-shadow:0 0 0 2px rgba(255,255,255,.9),0 0 0 4px rgba(21,139,208,.2)}
.statement-pdf-viewer.marking .pdf-draw-layer{cursor:crosshair;background:rgba(21,139,208,.025)}
.pdf-region-draft{position:absolute;border:2px solid #158bd0;background:rgba(21,139,208,.15);box-shadow:0 0 0 1px rgba(255,255,255,.8)}
.statement-pdf-sidebar{min-height:0;background:#fff;display:flex;flex-direction:column}
.statement-pdf-sidebar-head{padding:13px;border-bottom:1px solid #d8e2e7;display:grid;gap:8px;background:#fbfcfd}
.statement-pdf-sidebar-head>div{display:flex;justify-content:space-between;align-items:center}
.statement-pdf-sidebar-head strong{color:#2b4c5c;font-size:13px}
.statement-pdf-sidebar-head span{color:#81949d;font-size:9px}
.statement-pdf-sidebar-head input,.statement-pdf-sidebar-head select{width:100%;font-size:10px;padding:8px 9px}
.statement-pdf-txn-list{min-height:0;overflow:auto;flex:1;padding:8px}
.statement-pdf-txn{border:1px solid #dbe4e9;border-radius:8px;margin-bottom:7px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s,background .15s}
.statement-pdf-txn.matched{background:#f5fbf8;border-color:#cde7da}
.statement-pdf-txn.located:not(.matched){background:#fffaf0;border-color:#ebd9ae}
.statement-pdf-txn.selected{border-color:#3c9dcc;box-shadow:0 0 0 2px rgba(60,157,204,.14)}
.statement-pdf-txn-main{width:100%;display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:start;border:0;background:transparent;text-align:left;padding:10px;cursor:pointer;color:inherit}
.txn-status-dot{width:7px;height:7px;border-radius:50%;margin-top:4px;background:#aebbc1}
.statement-pdf-txn.matched .txn-status-dot{background:#309e70}
.statement-pdf-txn.located:not(.matched) .txn-status-dot{background:#d79b2c}
.txn-copy{min-width:0;display:grid;gap:2px}
.txn-copy strong{font-size:10.5px;color:#294754;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.txn-copy small{font-size:8.5px;color:#7b8f98}
.txn-copy em{font-style:normal;font-size:8.5px;color:#4d829b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.txn-amount{font-size:10px;font-weight:800;white-space:nowrap}
.txn-amount.positive{color:#24745b}.txn-amount.negative{color:#a04a4a}
.statement-pdf-txn-actions{display:flex;gap:5px;padding:0 10px 9px 27px;flex-wrap:wrap}
.statement-pdf-txn-actions .btn{font-size:8.5px;padding:5px 7px}
.statement-pdf-txn-actions .btn[disabled]{opacity:.42;cursor:not-allowed}
@media(max-width:1050px){
  .statement-pdf-body{grid-template-columns:minmax(0,1fr) 340px}
  .statement-pdf-legend{gap:10px;flex-wrap:wrap}.statement-pdf-help{width:100%;margin-left:0}
}


/* v1.3.5 — Bank Statement list/document-center access + form polish */
.new-statement-submit{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding-top:12px;
  border-top:1px solid #e2eaee;
  margin-top:2px;
}
.new-statement-button{
  min-width:168px;
  justify-content:center;
  padding-left:18px;
  padding-right:18px;
}
.statement-inventory-panel{overflow-x:auto}
.statement-inventory-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.statement-inventory-head h2{margin:0 0 4px;color:#203d4c;font-size:16px}
.statement-inventory-head p{margin:0}
.statement-list-table th:last-child,.statement-list-table td:last-child{min-width:175px;text-align:right}
.statement-list-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:nowrap}
.statement-list-actions .btn{white-space:nowrap;min-width:72px;justify-content:center}
.statement-document-center-btn{min-width:82px!important}
@media(max-width:700px){
  .new-statement-submit{justify-content:stretch}
  .new-statement-button{width:100%}
  .statement-list-actions{flex-wrap:wrap}
}


/* v1.3.7 — consistent controls and button sizing */
.statement-file-field{
  display:grid!important;
  gap:5px!important;
  align-content:start;
}
.statement-file-label{
  color:#31566a;
  font-size:10px;
  font-weight:800;
}
.statement-file-picker{
  height:42px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:5px 7px;
  border:1px solid #b9d3e1;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  box-sizing:border-box;
}
.statement-file-picker input[type="file"]{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.statement-file-button{
  width:112px;
  height:30px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 10px!important;
  border:1px solid #b9d3df;
  border-radius:7px;
  background:#edf5f8;
  color:#28586e!important;
  font-size:10px!important;
  font-weight:800!important;
  cursor:pointer;
  box-sizing:border-box;
}
.statement-file-button svg{
  width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
.statement-file-name{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#7a8e99;font-size:10px
}
.statement-file-name.has-file{color:#234b60;font-weight:700}

/* Top Matching Rules and statement row actions use one consistent size. */
.bank-toolbar-btn,
.statement-action-btn{
  width:104px!important;
  min-width:104px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  white-space:nowrap;
}

/* All four actionable controls in Settings use the same footprint. */
.settings-card-action-btn{
  width:190px!important;
  min-width:190px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  white-space:nowrap;
}

/* Keep Reconcile / View PDF side-by-side and equal. */
.statement-list-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  white-space:nowrap;
}
.statement-document-center-btn.disabled{
  opacity:.45;
  pointer-events:none;
}


/* v1.3.8 — equal Bank Statement Matching summary card sizes */
.statement-import-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
}
.statement-import-summary>.panel{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:88px!important;
  height:88px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:13px 20px!important;
}
.statement-import-summary>.panel:first-child,
.statement-import-summary>.panel:nth-child(2),
.statement-import-summary>.panel:nth-child(3),
.statement-import-summary>.panel:nth-child(4){
  grid-column:auto!important;
  width:100%!important;
}


/* v1.3.9 — force all four bank summary cards to identical vertical alignment */
.statement-import-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
}
.statement-import-summary .panel,
.statement-import-summary .panel + .panel{
  margin-top:0!important;
  margin-bottom:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:88px!important;
  height:88px!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
  padding:13px 20px!important;
}
.statement-import-summary .panel:first-child,
.statement-import-summary .panel:nth-child(2),
.statement-import-summary .panel:nth-child(3),
.statement-import-summary .panel:nth-child(4){
  margin-top:0!important;
  height:88px!important;
  min-height:88px!important;
}


/* v1.4.0 — four primary Settings cards use identical dimensions */
.settings-clean-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}

/* Email, Bank Matching, Invoice Numbering, Payment Review */
.settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card){
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:236px!important;
  min-height:236px!important;
  max-height:236px!important;
  margin:0!important;
  padding:20px!important;
  box-sizing:border-box!important;
  align-self:stretch!important;
}

/* Override the global .panel + .panel margin that was shifting cards */
.settings-clean-grid > .panel + .panel{
  margin-top:0!important;
}

/* Keep icon/text layout identical in every card */
.settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card){
  display:flex!important;
  align-items:flex-start!important;
  gap:16px!important;
}
.settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card) .settings-card-content{
  min-width:0!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card) .settings-card-actions{
  margin-top:auto!important;
}

/* Invoice Numbering has a form instead of settings-card-actions */
.settings-clean-grid .invoice-numbering-setting{
  margin-top:auto!important;
}

/* All four action buttons use the same footprint */
.settings-card-action-btn{
  width:192px!important;
  min-width:192px!important;
  max-width:192px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}

/* Prevent descriptive copy from changing card geometry */
.settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card) .settings-card-title-row{
  min-height:72px!important;
}
.settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card) p{
  margin-bottom:0!important;
}

@media(max-width:800px){
  .settings-clean-grid{
    grid-template-columns:1fr!important;
  }
  .settings-clean-grid > .settings-card.settings-card-current:not(.settings-system-card){
    height:auto!important;
    min-height:220px!important;
    max-height:none!important;
  }
}


/* v1.4.1 — bank statement file picker alignment fix */
.statement-file-field{display:grid!important;gap:5px!important;align-content:start!important;}
.statement-file-picker{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;column-gap:10px!important;min-height:42px!important;padding:5px 8px!important;}
.statement-file-button{margin:0!important;align-self:center!important;justify-self:start!important;position:relative!important;top:0!important;left:0!important;flex:0 0 auto!important;}
.statement-file-name{display:flex!important;align-items:center!important;min-height:30px!important;}


/* v1.4.2 — automatic PDF location and styled confirmation */
.statement-pdf-txn-actions{display:grid!important;grid-template-columns:repeat(3,104px)!important;gap:6px!important;padding:0 10px 10px 27px!important}
.statement-pdf-txn-actions .btn{width:104px!important;min-width:104px!important;max-width:104px!important;height:30px!important;min-height:30px!important;padding:0 7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;font-size:8.5px!important;white-space:nowrap!important}
#pdfAutoLocateAll{min-width:112px!important}
.pdf-confirm-backdrop{position:fixed;inset:0;z-index:9200;display:grid;place-items:center;padding:24px;background:rgba(11,31,43,.58)}
.pdf-confirm-backdrop[hidden]{display:none!important}
.pdf-confirm-card{width:min(520px,94vw);background:#fff;color:#1f3642;border:1px solid #cbd9e0;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.30);overflow:hidden}
.pdf-confirm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px 20px 13px;border-bottom:1px solid #dde7eb}
.pdf-confirm-head h3{margin:3px 0 0;font-size:17px;color:#203d4c}
.pdf-confirm-close{width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f7;color:#415f6e;font-size:20px;cursor:pointer}
.pdf-confirm-body{padding:18px 20px}.pdf-confirm-body>p{margin:0 0 13px;color:#667e89;font-size:11px;line-height:1.5}
.pdf-confirm-transaction{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #d8e4e9;border-radius:8px;background:#f7fafc}
.pdf-confirm-transaction span{font-size:10px;color:#738893;white-space:nowrap}.pdf-confirm-transaction strong{font-size:11px;color:#2b4958;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-confirm-transaction b{font-size:11px;color:#203f50;white-space:nowrap}
.pdf-confirm-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #dde7eb;background:#fafcfd}
.btn.danger{background:#a94d4d!important;border-color:#a94d4d!important;color:#fff!important}.btn.danger:hover{background:#963f3f!important}
@media(max-width:700px){.statement-pdf-txn-actions{grid-template-columns:1fr!important;padding-left:10px!important}.statement-pdf-txn-actions .btn{width:100%!important;min-width:0!important;max-width:none!important}}


/* v1.4.3 — larger Document Center transaction/sidebar typography */
.statement-pdf-sidebar-head strong{
  font-size:15px!important;
}
.statement-pdf-sidebar-head span{
  font-size:11px!important;
}
.statement-pdf-sidebar-head input,
.statement-pdf-sidebar-head select{
  font-size:12px!important;
  min-height:38px!important;
}

/* Right-side statement transaction cards */
.txn-copy strong{
  font-size:13px!important;
  line-height:1.35!important;
}
.txn-copy small{
  font-size:10.5px!important;
  line-height:1.35!important;
}
.txn-copy em{
  font-size:10.5px!important;
  line-height:1.35!important;
}
.txn-amount{
  font-size:12px!important;
}

/* Buttons under each transaction */
.statement-pdf-txn-actions .btn{
  font-size:10.5px!important;
  font-weight:750!important;
  height:34px!important;
  min-height:34px!important;
  line-height:1!important;
}

/* Give the transaction row a little more room for the larger text */
.statement-pdf-txn-main{
  padding:12px!important;
  gap:9px!important;
}
.statement-pdf-txn-actions{
  padding-bottom:12px!important;
}


/* v1.4.4 — slightly larger Statement Transaction panel */
.statement-pdf-sidebar-head strong{
  font-size:16px!important;
}
.statement-pdf-sidebar-head span{
  font-size:11.5px!important;
}
.statement-pdf-sidebar-head input,
.statement-pdf-sidebar-head select{
  font-size:12.5px!important;
  min-height:40px!important;
}

.txn-copy strong{
  font-size:14px!important;
}
.txn-copy small,
.txn-copy em{
  font-size:11.25px!important;
}
.txn-amount{
  font-size:12.75px!important;
}

.statement-pdf-txn-actions .btn{
  font-size:11.25px!important;
  height:36px!important;
  min-height:36px!important;
}

.statement-pdf-txn-main{
  padding:13px!important;
}


/* v1.4.5 — larger PDF legend labels */
.statement-pdf-legend{
  font-size:11.5px!important;
  min-height:42px!important;
}
.statement-pdf-legend span{
  font-size:11.5px!important;
  font-weight:700!important;
}
.statement-pdf-legend i{
  width:16px!important;
  height:11px!important;
}
.statement-pdf-help{
  font-size:11px!important;
}

/* v1.4.6 — equal reconciliation cards, readable transaction titles, equal action buttons */
.statement-summary{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
}
.statement-summary>.panel,
.statement-summary>.panel+.panel{
  margin-top:0!important;
  margin-bottom:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:108px!important;
  min-height:108px!important;
  box-sizing:border-box!important;
  align-self:stretch!important;
  padding:14px 20px!important;
}
.statement-summary>.panel:first-child,
.statement-summary>.panel:nth-child(2),
.statement-summary>.panel:nth-child(3),
.statement-summary>.panel:nth-child(4),
.statement-summary>.panel:nth-child(5),
.statement-summary>.panel:nth-child(6){
  width:100%!important;
  height:108px!important;
  min-height:108px!important;
  margin-top:0!important;
}

/* Show the statement transaction title on up to two full lines instead of truncating one line. */
.statement-pdf-txn-main{
  align-items:start!important;
}
.txn-copy strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  line-height:1.35!important;
  min-height:37px!important;
  word-break:break-word!important;
}
.txn-copy small,
.txn-copy em{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.35!important;
}

/* Every transaction action uses the exact same dimensions. */
.statement-pdf-txn-actions{
  display:grid!important;
  grid-template-columns:repeat(3,116px)!important;
  gap:7px!important;
  align-items:center!important;
  padding:0 13px 13px 31px!important;
}
.statement-pdf-txn-actions .btn{
  width:116px!important;
  min-width:116px!important;
  max-width:116px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  box-sizing:border-box!important;
  font-size:11.25px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

@media(max-width:1200px){
  .statement-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .statement-summary{grid-template-columns:1fr!important}
  .statement-pdf-txn-actions{grid-template-columns:1fr!important;padding-left:13px!important}
  .statement-pdf-txn-actions .btn{width:100%!important;min-width:0!important;max-width:none!important}
}


/* v1.4.7 — larger Match Payment preview + Chart-of-Accounts style Assign Account dropdown */

/* Match Payment preview typography */
.statement-payment-preview-head h2{
  font-size:21px!important;
}
.statement-payment-preview-head p{
  font-size:13px!important;
  line-height:1.45!important;
}
.statement-payment-preview-head .eyebrow{
  font-size:10.5px!important;
}
.statement-payment-preview-amount span{
  font-size:11px!important;
}
.statement-payment-preview-amount strong{
  font-size:34px!important;
}
.statement-payment-preview-grid span{
  font-size:10.5px!important;
}
.statement-payment-preview-grid strong{
  font-size:14px!important;
  line-height:1.4!important;
}
.statement-payment-preview-warning{
  font-size:12.5px!important;
  line-height:1.5!important;
}
.statement-payment-preview-actions .btn{
  min-height:40px!important;
  font-size:12px!important;
  font-weight:800!important;
}

/* Assign Account: replace native select with grouped/searchable Chart of Accounts dropdown */
.assign-account-native{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
.assign-account-combo{
  position:relative;
  width:100%;
}
.assign-account-trigger{
  width:100%;
  min-height:42px;
  padding:0 42px 0 12px;
  border:1px solid #cbdbe2;
  border-radius:7px;
  background:#fff;
  color:#607985;
  text-align:left;
  cursor:pointer;
  position:relative;
  font-size:12px;
  font-weight:600;
}
.assign-account-trigger:hover,
.assign-account-trigger:focus{
  outline:none;
  box-shadow:inset 0 0 0 2px #0b7f73;
  color:#173247;
}
.assign-account-trigger.has-value{
  color:#173247;
}
.assign-account-arrow{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:1px solid #d6e2e7;
  border-radius:7px;
  background:#f3f7f9;
  color:#486674;
}
.assign-account-arrow svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .16s ease;
}
.assign-account-trigger.open .assign-account-arrow svg{
  transform:rotate(180deg);
}
.assign-account-menu{
  position:absolute;
  left:0;
  top:calc(100% + 5px);
  width:100%;
  min-width:500px;
  max-width:min(620px,80vw);
  max-height:390px;
  overflow:hidden;
  background:#fff;
  border:1px solid #ccd9df;
  border-radius:8px;
  box-shadow:0 15px 36px rgba(34,58,70,.20);
  z-index:9500;
}
.assign-account-search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 11px;
  border-bottom:1px solid #e0e8ec;
}
.assign-account-search>span{
  color:#6d828d;
  font-size:15px;
}
.assign-account-search input{
  width:100%;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  min-height:31px!important;
  padding:0!important;
  background:#fff!important;
  color:#1d3542!important;
  font-size:12px!important;
}
.assign-account-list{
  max-height:330px;
  overflow:auto;
  padding:4px 0;
}
.assign-account-group{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:38px;
  padding:0 12px;
  background:#f7f8f9;
  border-top:1px solid #edf0f2;
  border-bottom:1px solid #e3e8eb;
}
.assign-account-group strong{
  color:#374b56;
  font-size:11px;
}
.assign-account-group span{
  color:#788b94;
  font-size:10px;
  font-style:italic;
}
.assign-account-option{
  width:100%;
  min-height:41px;
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(150px,.85fr);
  gap:12px;
  align-items:center;
  padding:7px 12px 7px 20px;
  border:0;
  border-bottom:1px solid #f0f3f5;
  background:#fff;
  color:#283e49;
  text-align:left;
  cursor:pointer;
}
.assign-account-option:hover,
.assign-account-option.selected{
  background:#eef1f3;
}
.assign-account-option-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:600;
}
.assign-account-option-meta{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#7b8b93;
  font-size:10px;
  font-style:italic;
}
.assign-account-empty{
  padding:20px 12px;
  text-align:center;
  color:#7b8d96;
  font-size:11px;
}

@media(max-width:700px){
  .assign-account-menu{
    min-width:100%;
    max-width:92vw;
  }
}


/* v1.4.8 — larger Payment Preview + proper outside-click close */
.statement-payment-preview-card{
  width:min(860px,95vw)!important;
  max-height:92vh!important;
}
.statement-payment-preview-head{
  padding:24px 26px 17px!important;
}
.statement-payment-preview-head .eyebrow{
  font-size:11px!important;
}
.statement-payment-preview-head h2{
  font-size:24px!important;
  line-height:1.25!important;
}
.statement-payment-preview-head p{
  font-size:14px!important;
  line-height:1.5!important;
}
.statement-payment-preview-close{
  width:38px!important;
  height:38px!important;
  font-size:22px!important;
}
.statement-payment-preview-amount{
  padding:22px 26px 14px!important;
}
.statement-payment-preview-amount span{
  font-size:12px!important;
}
.statement-payment-preview-amount strong{
  font-size:40px!important;
}
.statement-payment-preview-grid{
  gap:11px!important;
  padding:0 26px 20px!important;
}
.statement-payment-preview-grid>div{
  padding:12px 13px!important;
}
.statement-payment-preview-grid span{
  font-size:11px!important;
}
.statement-payment-preview-grid strong{
  font-size:15px!important;
  line-height:1.45!important;
}
.statement-payment-preview-warning{
  margin:0 26px 20px!important;
  padding:12px 14px!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.statement-payment-preview-actions{
  padding:15px 26px!important;
}
.statement-payment-preview-actions .btn{
  min-width:130px!important;
  min-height:43px!important;
  font-size:13px!important;
  font-weight:800!important;
}

/* Candidate list text */
.statement-match-payment-menu .statement-action-dropdown button strong{
  font-size:13px!important;
}
.statement-match-payment-menu .statement-action-dropdown button span{
  font-size:11px!important;
}
.statement-payment-preview-btn em{
  font-size:10.5px!important;
}


/* v1.5.2 — multi-invoice Receive Payment */
.qb-pay-table tbody tr:has(.invoice-check:checked){
  background:#eef8fb!important;
}
.qb-row-payment-input{
  display:flex;
  align-items:center;
  width:142px;
  min-height:36px;
  border:1px solid #cbdce4;
  border-radius:7px;
  background:#fff;
  overflow:hidden;
}
.qb-row-payment-input span{
  align-self:stretch;
  display:flex;
  align-items:center;
  padding:0 8px;
  background:#f3f7f9;
  border-right:1px solid #d6e2e8;
  color:#657c88;
  font-size:10px;
  font-weight:700;
}
.qb-row-payment-input input{
  width:100%!important;
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0 8px!important;
  color:#0a708f!important;
  font-size:12px!important;
  font-weight:800!important;
  text-align:right;
  background:#fff!important;
}
.qb-row-payment-input input:disabled{
  background:#f7fafb!important;
  color:#9babb3!important;
}

/* v1.5.3 — compact checkboxes + QuickBooks-style optional credits */
.qb-pay-table input[type="checkbox"],
.qb-pay-table .invoice-check,
.qb-pay-table .credit-select{
  appearance:auto!important;
  -webkit-appearance:auto!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:3px!important;
  box-shadow:none!important;
  vertical-align:middle!important;
  accent-color:#1488a9!important;
  cursor:pointer!important;
}
.qb-pay-table input[type="checkbox"]:focus,
.qb-pay-table .invoice-check:focus,
.qb-pay-table .credit-select:focus{
  border:0!important;
  box-shadow:none!important;
  outline:2px solid rgba(20,136,169,.25)!important;
  outline-offset:2px!important;
}
.qb-pay-table .qb-select-col{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  text-align:center!important;
  padding-left:12px!important;
  padding-right:12px!important;
}
.qb-pay-table tbody tr:has(.credit-select:checked){
  background:#eef8fb!important;
}
.qb-credit-table td strong{
  color:#1d394a!important;
}


/* v1.5.4 — Rentrak eye branding, auto-hover sidebar, and invoice send preview */

/* ---------- Application header + auto-collapsing sidebar ---------- */
body.sidebar-auto{
  --qba-sidebar-collapsed:78px;
  --qba-sidebar-expanded:250px;
}

body.sidebar-auto #sidebar{
  width:var(--qba-sidebar-collapsed)!important;
  padding:10px 8px 16px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  transition:width .22s ease,box-shadow .22s ease!important;
}

body.sidebar-auto #sidebar .side-nav{
  padding-top:6px!important;
}

body.sidebar-auto #sidebar .side-nav>a{
  justify-content:center!important;
  gap:13px!important;
  padding-left:0!important;
  padding-right:0!important;
  overflow:hidden!important;
}

body.sidebar-auto #sidebar .nav-label,
body.sidebar-auto #sidebar .nav-section span{
  display:none!important;
  opacity:0!important;
}

body.sidebar-auto #sidebar .nav-section{
  margin:7px 4px 5px!important;
  height:10px!important;
  min-height:10px!important;
  padding:0!important;
  border-bottom:1px solid rgba(127,181,205,.20)!important;
}

body.sidebar-auto #sidebar .nav-section:after{
  display:none!important;
}

body.sidebar-auto #sidebar:hover,
body.sidebar-auto #sidebar:focus-within{
  width:var(--qba-sidebar-expanded)!important;
  box-shadow:16px 0 38px rgba(0,0,0,.20)!important;
}

body.sidebar-auto #sidebar:hover .side-nav>a,
body.sidebar-auto #sidebar:focus-within .side-nav>a{
  justify-content:flex-start!important;
  padding-left:13px!important;
  padding-right:13px!important;
}

body.sidebar-auto #sidebar:hover .nav-label,
body.sidebar-auto #sidebar:focus-within .nav-label,
body.sidebar-auto #sidebar:hover .nav-section span,
body.sidebar-auto #sidebar:focus-within .nav-section span{
  display:block!important;
  opacity:1!important;
}

body.sidebar-auto #sidebar:hover .nav-section,
body.sidebar-auto #sidebar:focus-within .nav-section{
  height:auto!important;
  min-height:0!important;
  margin:14px 9px 5px!important;
  padding:0 7px!important;
  border-bottom:0!important;
}

body.sidebar-auto #main{
  margin-left:var(--qba-sidebar-collapsed)!important;
}

#main>header{
  padding-left:0!important;
}

.header-logo-slot{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:78px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid rgba(76,132,157,.25);
  transition:width .22s ease!important;
  z-index:2;
}

.header-logo-slot img{
  width:54px;
  height:54px;
  object-fit:contain;
  display:block;
}

#main>header .header-title{
  margin-left:98px!important;
  transition:margin-left .22s ease!important;
}

#sidebar:hover ~ #main>header .header-logo-slot,
#sidebar:focus-within ~ #main>header .header-logo-slot{
  width:250px!important;
}

#sidebar:hover ~ #main>header .header-title,
#sidebar:focus-within ~ #main>header .header-title{
  margin-left:270px!important;
}

@media(max-width:900px){
  body.sidebar-auto{min-width:0!important}
  body.sidebar-auto #sidebar{width:250px!important;transform:translateX(-100%)!important}
  body.sidebar-auto #main{margin-left:0!important}
  .header-logo-slot{width:76px!important}
  #main>header .header-title{margin-left:94px!important}
}

/* ---------- Login branding ---------- */
body.login-bg .login-brand{
  justify-content:center!important;
  flex-direction:column!important;
  text-align:center!important;
  gap:14px!important;
}
body.login-bg .login-brand-logo{
  width:150px!important;
  height:150px!important;
  max-width:none!important;
  object-fit:contain!important;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.32));
}
body.login-bg .login-brand h1,
body.login-bg .login-brand p{
  text-align:center!important;
}
@media(max-width:700px){
  body.login-bg .login-brand-logo{width:120px!important;height:120px!important}
}

/* ---------- Invoice Send / Preview page ---------- */
.invoice-send-shell{
  position:relative;
  margin:-28px;
  min-height:calc(100vh - 76px);
  padding-bottom:74px;
  background:#f5f8fa;
  color:#1e3544;
}
.invoice-send-topbar{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 22px;
  background:#fff;
  border-bottom:1px solid #d9e4e9;
}
.invoice-send-title{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:18px;
}
.invoice-send-title>a{
  font-size:23px;
  color:#273e4c;
  text-decoration:none;
}
.invoice-send-title strong{font-size:19px}
.invoice-send-top-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.invoice-send-help,
.invoice-send-close{
  width:34px;height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#314b59;
  text-decoration:none;
  font-size:20px;
}
.invoice-send-help{border:1px solid #b9cbd4;font-size:15px;font-weight:800}

.invoice-send-grid{
  display:grid;
  grid-template-columns:minmax(450px,.95fr) minmax(540px,1.05fr);
  gap:16px;
  padding:18px;
  align-items:stretch;
}
.invoice-send-compose,
.invoice-send-preview{
  background:#fff;
  border:1px solid #d7e3e9;
  border-radius:9px;
  box-shadow:0 5px 18px rgba(43,75,92,.06);
}
.invoice-send-compose{
  padding:20px;
}
.invoice-send-section-head h1{
  margin:0 0 4px;
  font-size:23px;
}
.invoice-send-section-head p{
  margin:0 0 22px;
  color:#6d828e;
  font-size:12px;
}
.invoice-send-field{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:12px;
  align-items:start;
  margin-bottom:12px;
}
.invoice-send-field>label{
  margin:11px 0 0!important;
  color:#526b77;
  font-size:11px!important;
  font-weight:800!important;
}
.invoice-send-field input,
.invoice-send-field textarea,
.invoice-send-input{
  width:100%;
  border:1px solid #cbdbe3!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#243d4a!important;
  box-sizing:border-box!important;
  font-size:12px!important;
}
.invoice-send-field input,
.invoice-send-input{
  min-height:40px!important;
  padding:9px 11px!important;
}
.invoice-send-disabled{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f9fbfc!important;
}
.invoice-cc-toggle{
  grid-column:2;
  justify-self:start;
  margin-top:-6px;
  padding:0;
  border:0;
  background:transparent;
  color:#0c74c9;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.invoice-copy-check{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:2px 0 18px 104px!important;
  color:#5f737e!important;
  font-size:11px!important;
  font-weight:500!important;
}
.invoice-copy-check input{
  width:17px!important;height:17px!important;min-height:0!important;
}
.invoice-attachment-chip{
  min-height:40px;
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  padding:0 12px;
  border:1px solid #cbdbe3;
  border-radius:6px;
  background:#f8fbfc;
  color:#273f4c;
}
.invoice-attachment-chip strong{font-size:11px}
.invoice-attachment-chip small{color:#80939c;font-size:9px}
.invoice-body-field textarea{
  min-height:420px!important;
  resize:vertical;
  padding:12px!important;
  line-height:1.5!important;
}
.invoice-delivery-settings{
  display:inline-flex;
  margin:6px 0 0 104px;
  color:#1475c8;
  font-size:10px;
  text-decoration:none;
}

.invoice-send-preview{
  overflow:hidden;
}
.invoice-preview-head{
  min-height:49px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid #dfe8ec;
  background:#fbfcfd;
}
.invoice-preview-head>strong{font-size:13px}
.invoice-preview-modes{
  display:flex;
  align-items:center;
  gap:18px;
  color:#70848e;
  font-size:10px;
}
.invoice-preview-modes span{
  height:49px;
  display:flex;
  align-items:center;
  border-bottom:3px solid transparent;
}
.invoice-preview-modes .active{
  color:#0876ce;
  border-bottom-color:#0876ce;
  font-weight:800;
}
.invoice-preview-paper{
  margin:0 auto;
  max-width:720px;
  min-height:830px;
  padding:24px 16px 0;
  text-align:center;
  background:#fff;
}
.invoice-preview-brand{
  display:flex;
  justify-content:center;
  padding:6px 0 20px;
}
.invoice-preview-brand img{
  width:132px;
  height:132px;
  object-fit:contain;
}
.invoice-ready-panel{
  padding:22px 18px 26px;
  background:#eaf5fd;
}
.invoice-ready-panel h2{
  margin:0 0 5px;
  color:#1f3441;
  font-size:20px;
}
.invoice-ready-panel p{
  margin:0 0 22px;
  color:#455f6c;
  font-size:12px;
}
.invoice-ready-panel span{
  display:block;
  margin-bottom:4px;
  color:#516a77;
  font-size:10px;
}
.invoice-ready-panel strong{
  display:block;
  font-size:34px;
  color:#1b3443;
}
.invoice-preview-message{
  padding:26px 34px 18px;
  color:#334d59;
  font-size:12px;
  line-height:1.65;
}
.invoice-preview-details{
  width:210px;
  min-height:42px;
  margin:8px auto 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#087fcf;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.invoice-preview-business{
  width:260px;
  margin:0 auto 22px;
  padding-top:18px;
  border-top:1px solid #dfe7eb;
  display:grid;
  gap:5px;
  color:#334d59;
  font-size:11px;
}
.invoice-preview-business a{
  color:#0876ce;
  text-decoration:none;
}
.invoice-preview-security{
  margin-top:26px;
  padding:14px 20px 17px;
  background:#f2f5f7;
  color:#7a8b94;
  font-size:9px;
}
.invoice-preview-security p{
  max-width:560px;
  margin:0 auto 10px;
  line-height:1.45;
}
.invoice-preview-security hr{
  border:0;
  border-top:1px solid #d8e0e4;
  margin:9px 0;
}
.invoice-preview-security strong,
.invoice-preview-security span{
  display:block;
}
.invoice-preview-security strong{color:#4b5f69;margin-bottom:2px}

.invoice-send-bottombar{
  position:fixed;
  left:78px;
  right:0;
  bottom:0;
  min-height:66px;
  z-index:4400;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 20px;
  background:#fff;
  border-top:1px solid #d9e4e9;
  box-shadow:0 -3px 16px rgba(43,75,92,.06);
}
.invoice-send-back{
  min-width:88px!important;
  justify-content:center!important;
}
.invoice-send-button{
  min-width:150px!important;
  min-height:42px!important;
  justify-content:space-between!important;
  padding-left:18px!important;
}
.invoice-send-button span{
  margin-left:14px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,.35);
}

#sidebar:hover ~ #main .invoice-send-bottombar,
#sidebar:focus-within ~ #main .invoice-send-bottombar{
  left:78px;
}

@media(max-width:1150px){
  .invoice-send-grid{grid-template-columns:1fr}
  .invoice-body-field textarea{min-height:280px!important}
}


/* v1.5.6 — CEA-style fixed header above hover sidebar */
:root{
  --qba-global-header-height:76px;
}

body.sidebar-auto #main{
  margin-left:var(--qba-sidebar-collapsed)!important;
  padding-top:var(--qba-global-header-height)!important;
}

#main>header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:var(--qba-global-header-height)!important;
  min-height:var(--qba-global-header-height)!important;
  z-index:7000!important;
  padding:0 22px!important;
  background:#ffffff!important;
  border-bottom:1px solid #d5e2e8!important;
  box-shadow:0 3px 12px rgba(30,59,73,.07)!important;
  display:flex!important;
  align-items:center!important;
}

body.sidebar-auto #sidebar{
  position:fixed!important;
  top:var(--qba-global-header-height)!important;
  left:0!important;
  bottom:0!important;
  height:calc(100vh - var(--qba-global-header-height))!important;
  z-index:6500!important;
}

.header-logo-slot{
  position:static!important;
  width:64px!important;
  height:64px!important;
  flex:0 0 64px!important;
  border-right:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.header-logo-slot img{
  width:56px!important;
  height:56px!important;
  object-fit:contain!important;
}

#main>header .header-title{
  margin-left:12px!important;
}

#main>header .header-title strong{
  display:block!important;
  font-size:16px!important;
  color:#1e3a49!important;
}

#main>header .header-sub{
  display:block!important;
  margin-top:2px!important;
  font-size:10px!important;
  color:#718793!important;
}

#sidebar:hover ~ #main>header .header-logo-slot,
#sidebar:focus-within ~ #main>header .header-logo-slot{
  width:64px!important;
}

#sidebar:hover ~ #main>header .header-title,
#sidebar:focus-within ~ #main>header .header-title{
  margin-left:12px!important;
}

.content{
  min-height:calc(100vh - var(--qba-global-header-height))!important;
}

/* The logo/text remain permanently in the fixed top header.
   The sliding sidebar contains navigation icons/labels only. */
body.sidebar-auto #sidebar{
  border-top:0!important;
}

.invoice-send-bottombar{
  left:var(--qba-sidebar-collapsed)!important;
}

@media(max-width:900px){
  body.sidebar-auto #main{
    margin-left:0!important;
    padding-top:var(--qba-global-header-height)!important;
  }
  #main>header{
    left:0!important;
  }
  body.sidebar-auto #sidebar{
    top:var(--qba-global-header-height)!important;
    height:calc(100vh - var(--qba-global-header-height))!important;
  }
  .invoice-send-bottombar{left:0!important}
}


/* v1.5.7 — keep original header colors + strict transaction-title wrapping */

/* Keep the fixed full-width CEA-style header, but restore the original Rentrak QBA colors. */
#main>header{
  background:#0a283af2!important;
  border-bottom:1px solid #1e5268!important;
  box-shadow:0 3px 12px rgba(4,25,37,.18)!important;
  backdrop-filter:blur(12px)!important;
}
#main>header .header-title strong{
  color:#f2f7fa!important;
}
#main>header .header-sub{
  color:#8fb0c2!important;
}
.header-logo-slot{
  border-right:1px solid #1e5268!important;
}

/* Statement Transaction:
   reserve a real amount column so long titles can never run underneath the amount. */
.statement-pdf-txn-main{
  display:grid!important;
  grid-template-columns:9px minmax(0,1fr) 86px!important;
  column-gap:9px!important;
  align-items:start!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.txn-copy{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.txn-copy strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  line-height:1.35!important;
}
.txn-copy small,
.txn-copy em{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
}
.txn-amount{
  width:86px!important;
  min-width:86px!important;
  max-width:86px!important;
  justify-self:end!important;
  text-align:right!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}


/* v1.5.8 — unified header branding */
.header-logo-slot{
  border-right:0!important;
  width:58px!important;
  flex-basis:58px!important;
  padding-right:0!important;
}
.header-logo-slot img{
  width:54px!important;
  height:54px!important;
}
#main>header .header-title{
  margin-left:5px!important;
  padding-left:0!important;
}
#main>header .header-title strong{
  margin:0!important;
  line-height:1.15!important;
}
#main>header .header-sub{
  margin-top:2px!important;
  line-height:1.2!important;
}
#sidebar:hover ~ #main>header .header-title,
#sidebar:focus-within ~ #main>header .header-title{
  margin-left:5px!important;
}


/* v1.6.0 — Document Center respects fixed app header/sidebar */
body.sidebar-auto .statement-pdf-viewer{
  top:var(--qba-global-header-height)!important;
  left:var(--qba-sidebar-collapsed)!important;
  right:0!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
}

/* The Document Center's own toolbar is now fully visible below the main header. */
body.sidebar-auto .statement-pdf-shell{
  height:100%!important;
  min-height:0!important;
}

/* Prevent the collapsed navigation rail from covering the PDF legend/content. */
body.sidebar-auto .statement-pdf-topbar,
body.sidebar-auto .statement-pdf-body,
body.sidebar-auto .statement-pdf-legend{
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Sidebar may slide over the Document Center when intentionally hovered,
   but the normal collapsed state never covers any PDF content. */
@media(max-width:900px){
  body.sidebar-auto .statement-pdf-viewer{
    left:0!important;
    top:var(--qba-global-header-height)!important;
  }
}


/* v1.6.1 — login button hover only, no movement */
.login-card button,
.login-card .btn,
.login-card input[type="submit"]{
  transform:none!important;
  translate:none!important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}

.login-card button:hover,
.login-card .btn:hover,
.login-card input[type="submit"]:hover,
.login-card button:focus,
.login-card .btn:focus,
.login-card input[type="submit"]:focus,
.login-card button:active,
.login-card .btn:active,
.login-card input[type="submit"]:active{
  transform:none!important;
  translate:none!important;
}


/* QuickBooks-inspired application typography. Outlook signatures retain their own fonts. */
:root{--qba-font-ui:"Avenir Next","Avenir",Helvetica,Arial,sans-serif}
html,
html body,
html body.login-bg,
body button,body input,body select,body textarea,body option,body optgroup,
body table,body .content,body header,body #sidebar{
  font-family:var(--qba-font-ui)!important;
}
body{font-size:14px;line-height:1.4;font-weight:400}
body button,body input,body select,body textarea{font-weight:400}
body .content td{font-size:13px!important;font-weight:400;line-height:1.4}
body .content th{font-size:12px!important;font-weight:600!important;letter-spacing:0!important}
body .content h1,body .page-heading h1,body .titlebar h1{font-size:24px!important;font-weight:500!important;line-height:1.3}
body .content h2{font-weight:500!important;line-height:1.3}
body .content h3{font-weight:600!important;line-height:1.3}
body .btn,body .content button{font-size:14px!important;font-weight:500!important}
body .content input,body .content select,body .content textarea,
body .content option,body .content optgroup{font-size:16px!important;font-weight:400!important;line-height:1.2}
body .content label{font-size:14px;font-weight:500}
body #sidebar .side-nav>a,body #sidebar>a{font-size:14px!important;font-weight:500!important}
body .transaction-action-dropdown a,body .transaction-action-dropdown button,
body [role="menuitem"],body [role="option"]{font-family:var(--qba-font-ui)!important;font-size:14px!important;font-weight:400!important;line-height:1.4}
/* Override older page-specific type rules without changing their layout. */
html body #main h1{font-size:24px!important;font-weight:500!important;line-height:1.3}
html body #main .btn,html body #main button{font-size:14px!important;font-weight:500!important}
html body #main input,html body #main select,html body #main textarea{font-family:var(--qba-font-ui)!important;font-size:16px!important;font-weight:400!important}

/* Statement-first metadata preview. */
.new-statement-form>.statement-file-field,.statement-autofill-status{grid-column:1/-1}
.statement-autofill-status{margin:0;padding:12px 14px;border:1px solid #c7dce7;border-radius:8px;background:#f0f7fb;color:#284b60;font-size:14px}
.statement-autofill-status[data-state="ready"]{background:#edf8f0;border-color:#a8d2b5;color:#23583a}
.statement-autofill-status[data-state="warning"]{background:#fff8e8;border-color:#e7cd8b;color:#755820}
.new-statement-button:disabled{opacity:.6;cursor:wait}

/* Matching Rules: separate back navigation and align the submit control. */
.statement-rules-page>.statement-rules-back{display:inline-flex;margin:0 0 18px}
.statement-rules-page .statement-rule-create form{grid-template-columns:minmax(200px,1.3fr) 130px 140px minmax(200px,1.5fr) auto;align-items:end}
.statement-rules-page .statement-rule-create form>label{margin-bottom:0;min-width:0}
.statement-rules-page .statement-rule-create input,
.statement-rules-page .statement-rule-create select,
.statement-rules-page .statement-rule-create button{height:44px;min-height:44px;box-sizing:border-box}
.statement-rules-page .statement-rule-create button{margin:0;align-self:end;white-space:nowrap}
@media(max-width:1100px){.statement-rules-page .statement-rule-create form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.statement-rules-page .statement-rule-create form{grid-template-columns:minmax(0,1fr)}.statement-rules-page .statement-rule-create button{width:100%}}

.pdf-import-preview{padding:14px;border-bottom:1px solid #c9dce6;background:#f1f7fb;color:#284b60}
.pdf-import-preview[hidden]{display:none}
.pdf-import-preview p{font-size:12px;line-height:1.5}
.pdf-import-rows{max-height:360px;overflow:auto;background:#fff}
.pdf-import-row{display:grid;grid-template-columns:80px 1fr 70px;gap:7px;padding:9px;border-bottom:1px solid #d9e5ec;font-size:12px}
.pdf-import-row span{overflow-wrap:anywhere}.pdf-import-row span:last-child{text-align:right}

/* Display the exact outbound email without inheriting application styles. */
.qba-email-preview-frame{display:block;width:100%;height:850px;min-height:650px;border:1px solid #dce3e9;background:#f4f5f7;box-sizing:border-box}
.payment-receipt-preview>.qba-email-preview-frame{margin-top:12px}
@media(max-width:800px){.qba-email-preview-frame{height:700px;min-height:500px}}
.qba-email-preview-frame[hidden]{display:none!important}
.email-preview-switch{display:flex;gap:8px;margin-bottom:12px}
.email-preview-switch [aria-pressed=true]{background:#087e9c;color:#fff}
.receipt-copy-check{display:flex!important;align-items:center;gap:8px}
.receipt-copy-check input{width:auto!important}
.invoice-reminder-popup{position:fixed!important;z-index:8500;inset:4vh max(20px,calc((100vw - 1100px)/2));margin:0!important;min-height:0!important;padding-bottom:0!important;overflow:auto;border:1px solid #ccdce4;border-radius:12px;box-shadow:0 0 0 100vmax rgba(20,39,50,.4),0 20px 60px rgba(20,39,50,.3);background:#fff}
.invoice-reminder-popup .invoice-send-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.invoice-reminder-popup .invoice-send-bottombar{position:sticky!important;left:auto!important;bottom:0;min-height:64px;z-index:1}
.invoice-reminder-popup .invoice-body-field textarea{min-height:240px!important}
.invoice-reminder-popup .qba-email-preview-frame{height:600px;min-height:450px}
@media(max-width:800px){.invoice-reminder-popup{inset:12px}.invoice-reminder-popup .invoice-send-grid{grid-template-columns:1fr}.invoice-reminder-popup .invoice-send-field{display:block}.payment-email-dialog-body{grid-template-columns:1fr!important;grid-template-areas:"compose" "preview" "actions"!important}}
.invoice-reminder-popup{inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:min(1100px,calc(100vw - 24px));max-height:92vh;height:auto!important}
.invoice-send-field[hidden]{display:none!important}
.payment-receipt-preview{display:block!important}
.payment-receipt-preview .qba-email-preview-frame{height:600px;min-height:450px}
.payment-email-compose textarea{height:260px!important;min-height:260px!important}

/* Match CEA's sliding rail: dividers remain lines, section titles fade separately. */
@media(min-width:901px){
  body.sidebar-auto{--qba-sidebar-collapsed:72px;--qba-sidebar-expanded:350px}
  body.sidebar-auto #sidebar{padding:10px 0 16px!important;transition:width .25s cubic-bezier(.4,0,.2,1),box-shadow .25s ease!important}
  body.sidebar-auto #sidebar .side-nav>a,
  body.sidebar-auto #sidebar:hover .side-nav>a,
  body.sidebar-auto #sidebar:focus-within .side-nav>a{justify-content:flex-start!important;gap:14px!important;padding-left:12px!important;padding-right:12px!important;white-space:nowrap}
  body.sidebar-auto #sidebar .nav-icon{width:48px!important;min-width:48px!important;flex:0 0 48px!important;display:grid;place-items:center}
  body.sidebar-auto #sidebar .nav-label{display:block!important;min-width:250px;opacity:0!important;visibility:hidden;transition:opacity .14s ease,visibility .14s ease}
  body.sidebar-auto #sidebar:hover .nav-label,
  body.sidebar-auto #sidebar:focus-within .nav-label{opacity:1!important;visibility:visible}
  body.sidebar-auto #sidebar .nav-section-divider{height:1px;background:rgba(173,207,220,.25);margin:11px 12px 6px}
  body.sidebar-auto #sidebar .nav-section-divider:first-child{margin-top:5px}
  body.sidebar-auto #sidebar .nav-section,
  body.sidebar-auto #sidebar:hover .nav-section,
  body.sidebar-auto #sidebar:focus-within .nav-section{display:block!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0 15px 5px!important;border:0!important;box-sizing:border-box;color:#9cb4be;font-size:9px;font-weight:800;letter-spacing:.15em;overflow:hidden;white-space:nowrap}
  body.sidebar-auto #sidebar .nav-section span{display:block!important;opacity:0!important;visibility:hidden;transition:opacity .15s ease,visibility .15s ease}
  body.sidebar-auto #sidebar:hover .nav-section span,
  body.sidebar-auto #sidebar:focus-within .nav-section span{opacity:1!important;visibility:visible}
  body.sidebar-auto #sidebar .nav-section:after{display:none!important}
}
@media(prefers-reduced-motion:reduce){body.sidebar-auto #sidebar,body.sidebar-auto #sidebar .nav-label,body.sidebar-auto #sidebar .nav-section span{transition:none!important}}

/* Clear QuickBooks-style typography in the statement transaction panel. */
.statement-pdf-sidebar,
.statement-pdf-sidebar button,
.statement-pdf-sidebar input,
.statement-pdf-sidebar select,
.statement-pdf-sidebar .txn-copy,
.statement-pdf-sidebar .txn-amount{font-family:var(--qba-font-ui)!important}
.statement-pdf-sidebar .txn-amount{font-weight:400!important;font-size:14px!important;line-height:1.4;font-variant-numeric:tabular-nums}
.statement-pdf-sidebar .txn-copy strong{font-weight:500!important;line-height:1.4}
.statement-pdf-sidebar .statement-pdf-txn-actions .btn{font-weight:400!important}

/* Bank Matching: readable type, distinct color badges, and generous indicators. */
.statement-matching-page,
.statement-matching-page table,
.statement-matching-page button,
.statement-matching-page input,
.statement-matching-page select{font-family:var(--qba-font-ui)!important}
.statement-matching-page .statement-lines-table td,
.statement-matching-page .statement-list-table td{font-size:14px!important;line-height:1.5!important;padding-top:15px;padding-bottom:15px}
.statement-matching-page .statement-lines-table th,
.statement-matching-page .statement-list-table th{font-size:13px!important;line-height:1.4!important}
.statement-matching-page .statement-description strong,
.statement-matching-page .statement-list-table td strong{font-weight:500!important}
.statement-matching-page .statement-lines-table .num{font-weight:400!important;font-variant-numeric:tabular-nums}
.statement-matching-page .statement-bank-name,
.statement-matching-page .statement-type,
.statement-matching-page .statement-suggestion,
.statement-matching-page .badge{font-size:13px!important;font-weight:500!important;line-height:1.4;min-height:30px;padding:6px 10px;box-sizing:border-box;align-items:center}
.statement-matching-page .statement-bank-name{white-space:normal;max-width:180px;color:#234c63;background:#e8f1f6;border-color:#b6cddb}
.statement-matching-page .statement-type-deposit{color:#13563b;background:#d1eddf;border-color:#80b99b}
.statement-matching-page .statement-type-withdrawal{color:#7d3a0e;background:#ffe1c8;border-color:#dca26e}
.statement-matching-page .statement-suggestion{color:#174e80;background:#deebfb;border-color:#93b5df}
.statement-matching-page .statement-line-matched{background:#e4f4eb}
.statement-matching-page .statement-line-matched>td:first-child{box-shadow:inset 4px 0 #25815b}
.statement-matching-page .statement-summary span,
.statement-matching-page .statement-import-summary span{font-size:13px!important;line-height:1.4}
.statement-matching-page .statement-heading .statement-back-link{display:block;width:fit-content;margin-bottom:12px}
.statement-matching-page .statement-heading .eyebrow{display:block;margin-bottom:5px}
.statement-pdf-legend{flex-wrap:wrap;gap:12px 22px!important;padding:12px 16px!important}
.statement-pdf-legend span{font-family:var(--qba-font-ui)!important;font-size:14px!important;font-weight:500!important;line-height:1.5;gap:8px}
.statement-pdf-legend i{width:24px!important;height:16px!important;flex:0 0 24px;box-sizing:border-box;border-radius:3px}
.statement-pdf-legend .legend-linked{background:#b4dec6;border:2px solid #287a50}
.statement-pdf-legend .legend-location{background:#f6d78b;border:2px dashed #996811}
.statement-pdf-legend .legend-selected{background:#badff4;border:2px solid #1576ae}
.statement-pdf-legend .statement-pdf-help{flex-basis:100%;margin-left:0;font-size:12px!important;font-weight:400!important}
.statement-pdf-sidebar .txn-status-dot{width:10px;height:10px;margin-top:5px}
.statement-pdf-sidebar .txn-copy em{font-size:12px!important;color:#345d76}
.pdf-txn-highlight.linked{border:2px solid #20774e;background:rgba(53,181,123,.3)}
.pdf-txn-highlight.located{border:2px dashed #996811;background:rgba(238,176,48,.2)}
.statement-matching-page .statement-search input[name="q"]{flex:1 1 360px;min-width:180px;width:auto!important}
.statement-matching-page .statement-search select{flex:0 0 160px;width:160px!important}
.statement-matching-page .statement-lines-table{width:100%;table-layout:fixed}
.statement-matching-page .statement-lines-table th:nth-child(1){width:7%}
.statement-matching-page .statement-lines-table th:nth-child(2){width:10%}
.statement-matching-page .statement-lines-table th:nth-child(3){width:6%}
.statement-matching-page .statement-lines-table th:nth-child(4){width:20%}
.statement-matching-page .statement-lines-table th:nth-child(5){width:8%}
.statement-matching-page .statement-lines-table th:nth-child(6),
.statement-matching-page .statement-lines-table th:nth-child(7){width:7%}
.statement-matching-page .statement-lines-table th:nth-child(8){width:8%}
.statement-matching-page .statement-lines-table th:nth-child(9){width:14%}
.statement-matching-page .statement-lines-table th:nth-child(10){width:13%}
.statement-matching-page .statement-lines-table td{overflow-wrap:anywhere}
.statement-matching-page .statement-lines-table .statement-description{min-width:0;max-width:none}
.statement-matching-page .statement-lines-table td.statement-actions{display:table-cell;min-width:0}
.statement-matching-page .statement-lines-table td.statement-actions>form,
.statement-matching-page .statement-lines-table td.statement-actions>details{margin:0 0 6px}
@media(max-width:1100px){.statement-matching-page .statement-search{flex-wrap:wrap}.statement-matching-page .statement-lines-table th,.statement-matching-page .statement-lines-table td{padding-left:6px;padding-right:6px}}
.statement-matching-page .statement-lines-table td{white-space:normal!important}
.statement-matching-page .statement-lines-table .statement-description strong{white-space:normal!important;overflow-wrap:anywhere}
.statement-matching-page .statement-lines-table .num{white-space:nowrap!important}
.statement-matching-page .bank-status-matched{background:#ccebdc!important;color:#13563b!important;border:1px solid #80b99b!important}
.statement-matching-page .bank-status-unmatched{background:#fff0c7!important;color:#704c0c!important;border:1px solid #d5b05b!important}

/* Readable reconciliation totals, matching the transaction colors. */
.statement-matching-page .statement-summary>.panel{border:1px solid #b6cddb;border-top:4px solid #5885a0;background:#f1f6fa!important;display:flex;flex-direction:column;justify-content:center}
.statement-matching-page .statement-summary>.panel>span{font-size:14px!important;font-weight:500!important;line-height:1.4;color:#294c61;margin-bottom:9px}
.statement-matching-page .statement-summary>.panel>strong{font-family:var(--qba-font-ui)!important;font-size:24px!important;font-weight:400!important;line-height:1.2;font-variant-numeric:tabular-nums;color:#173b50}
.statement-matching-page .statement-summary>.panel:nth-child(1),
.statement-matching-page .statement-summary>.panel:nth-child(3){background:#e4f4eb!important;border-color:#80b99b;border-top-color:#25815b}
.statement-matching-page .statement-summary>.panel:nth-child(1)>span,
.statement-matching-page .statement-summary>.panel:nth-child(3)>span{color:#13563b}
.statement-matching-page .statement-summary>.panel:nth-child(2){background:#fff0e3!important;border-color:#dca26e;border-top-color:#b66126}
.statement-matching-page .statement-summary>.panel:nth-child(2)>span{color:#7d3a0e}
.statement-matching-page .statement-summary>.panel:nth-child(4){background:#fff5d9!important;border-color:#d5b05b;border-top-color:#b78b24}
.statement-matching-page .statement-summary>.panel:nth-child(4)>span{color:#704c0c}

/* Consistent statement toolbar controls and readable document notice. */
.statement-matching-page .statement-heading-actions{align-items:center;flex-wrap:wrap}
.statement-matching-page .statement-heading-actions>.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;height:42px!important;min-height:42px!important;padding:0 14px!important;font-family:var(--qba-font-ui)!important;font-size:14px!important;line-height:1.4!important;white-space:nowrap}
.statement-matching-page .statement-document-note,
.statement-matching-page .statement-document-note strong{font-family:var(--qba-font-ui)!important;font-size:14px!important;line-height:1.5!important}
.statement-matching-page .statement-document-note{font-weight:400!important;padding:12px 14px}
.statement-matching-page .statement-document-note strong{font-weight:500!important}

/* Keep complete transaction field hints visible. */
.statement-matching-page .statement-manual-add form{grid-template-columns:170px 160px minmax(260px,1fr) 245px 190px auto;align-items:center}
.statement-matching-page .statement-manual-add input{width:100%!important;min-width:0;box-sizing:border-box}
@media(max-width:1450px){.statement-matching-page .statement-manual-add form{grid-template-columns:170px 160px minmax(260px,1fr)}.statement-matching-page .statement-manual-add input[name="amount"]{min-width:245px}.statement-matching-page .statement-manual-add input[name="amount"]{grid-column:1 / span 2}.statement-matching-page .statement-manual-add button{justify-self:start}}
@media(max-width:700px){.statement-matching-page .statement-manual-add form{grid-template-columns:minmax(0,1fr)}.statement-matching-page .statement-manual-add input[name="amount"]{grid-column:auto;min-width:0}.statement-matching-page .statement-manual-add button{justify-self:stretch}}

/* Clear, compact navigation back to bank statements. */
.statement-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 14px;font-family:var(--qba-font-ui);font-size:14px;line-height:1.5}
.statement-breadcrumb a{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;margin-left:-9px;border-radius:6px;color:#17628a;font-weight:500;text-decoration:none}
.statement-breadcrumb a:hover{background:#e0eef6;text-decoration:underline;text-underline-offset:3px}
.statement-breadcrumb a:focus-visible{outline:2px solid #087fa7;outline-offset:2px}
.statement-breadcrumb-separator{color:#8b9eab}
.statement-breadcrumb [aria-current="page"]{color:#506879;font-weight:400}

/* Shared application typography: readable tables, controls, and supporting text. */
html body #main,html body #sidebar,html body dialog,html body [role="dialog"]{font-family:var(--qba-font-ui)!important;font-size:14px;line-height:1.5}
html body #main :is(h1,h2,h3,h4,p,a,span,label,small,strong,td,th,summary,legend),
html body #sidebar :is(a,span,strong,small),
html body :is(dialog,[role="dialog"]) :is(h1,h2,h3,p,a,span,label,small,strong,td,th,button,input,select,textarea){font-family:var(--qba-font-ui)}
html body #main table th{font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:0!important}
html body #main table td{font-size:14px!important;line-height:1.5!important;font-weight:400}
html body #main table td strong{font-weight:500}
html body #main :is(h2,h3){font-weight:500!important;line-height:1.4}
html body #main h2{font-size:20px}
html body #main h3{font-size:17px}
html body #main :is(label,legend){font-size:14px!important;font-weight:500;line-height:1.5}
html body #main :is(.muted,.help-text,.form-help,.description,.page-heading p,.titlebar p){font-size:14px;line-height:1.5}
html body #main :is(.badge,.status-badge){font-size:13px!important;font-weight:500!important;line-height:1.4}
html body #main :is(.num,.amount){font-variant-numeric:tabular-nums}
html body #sidebar .nav-sub{font-size:14px!important;font-weight:400!important}
html body :is(dialog,[role="dialog"]) :is(button,input,select,textarea){font-family:var(--qba-font-ui)!important;font-size:14px!important}
html body #main table td :is(a,strong){font-weight:500!important}

/* Lighter QuickBooks-style table emphasis. */
html body #main table th{font-weight:500!important}
html body #main table td,
html body #main table td :is(a,strong,b,span){font-weight:400!important}
html body #main table td :is(.badge,.status-badge){font-weight:500!important}

/* Align dashboard figures independently of the monthly-detail icon. */
.dashboard-heading+.cards>.stat>span,
.dashboard-heading+.cards .stat-drilldown-top{display:flex;align-items:flex-start;height:22px;margin:0 0 10px!important}
.dashboard-heading+.cards .stat-drilldown-top>span:first-child{margin:0!important}
.dashboard-heading+.cards .stat-drilldown-icon{position:absolute;right:18px;top:18px;margin:0!important}
.dashboard-heading+.cards>.stat>strong{display:block;white-space:nowrap;line-height:1.25;margin:0;font-variant-numeric:tabular-nums}

/* Make transaction action links clearly interactive. */
html body #main :is(.customer-transaction-actions,.invoice-list-actions) a:hover,
html body #main :is(.customer-transaction-actions,.invoice-list-actions) a:focus-visible{ text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:1px }

/* Paid invoice status, with a clear green confirmation mark. */
.invoice-paid-status{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
html body #main table td .invoice-paid-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#007b62;color:#fff;font-family:Arial,sans-serif;font-size:14px!important;font-weight:600!important;line-height:1;vertical-align:middle}
.customer-transaction-actions~.invoice-paid-icon{margin-right:8px}
.transaction-table td>.invoice-paid-icon{margin-right:7px}
.transaction-credit-remaining{display:block;margin-top:3px;color:#647786;font-family:var(--qba-font-ui);font-size:13px;line-height:1.4;white-space:nowrap}

/* Clear, restrained typography for the customer financial summary. */
html body #main .financial-summary,
html body #main .financial-summary :is(.financial-title,small,strong){font-family:var(--qba-font-ui)!important}
html body #main .financial-summary .financial-title{font-size:16px!important;font-weight:500!important;line-height:1.4}
html body #main .financial-summary small{font-size:14px!important;font-weight:400!important;line-height:1.5}
html body #main .financial-summary strong{font-size:24px!important;font-weight:400!important;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}

.invoice-line-details{display:grid;gap:6px;min-width:0}
.invoice-line-details select{width:100%;min-width:0;min-height:40px;border:1px solid #aac2cf;border-radius:6px;background:#fff}

/* Separate QuickBooks invoice line columns. */
.invoice-lines-section .invoice-lines-head,
.invoice-lines-section #invoiceItems .itemrow{
  grid-template-columns:repeat(3,minmax(190px,1fr)) 70px 100px 70px 38px!important;
  align-items:start!important;
}
.invoice-lines-section #invoiceItems .itemrow select{min-width:0;width:100%;min-height:40px;border:1px solid #aac2cf;border-radius:6px;background:#fff}
.invoice-lines-section{overflow-x:auto}
.invoice-lines-head,#invoiceItems{min-width:920px}
.invoice-pro-table td:nth-child(1){white-space:nowrap}
.invoice-pro-table td:nth-child(2){width:23%}
.invoice-pro-table td:nth-child(3){width:34%;white-space:normal;overflow-wrap:anywhere}
.invoice-pro-table th:nth-child(2),.invoice-pro-table td:nth-child(2),
.invoice-pro-table th:nth-child(3),.invoice-pro-table td:nth-child(3){text-align:left}

.invoice-lines-section #invoiceItems .itemrow > :nth-child(-n+3){
  box-sizing:border-box;width:100%;min-width:0;height:44px!important;min-height:44px!important;
}

/* Readable top labels on dashboard summary cards. */
html body #main .dashboard-heading+.cards>.stat>span,
html body #main .dashboard-heading+.cards .stat-drilldown-top>span:first-child{
  font-size:18px!important;line-height:24px!important;font-weight:500;
}
.dashboard-heading+.cards>.stat>span,
.dashboard-heading+.cards .stat-drilldown-top{height:auto;min-height:48px}
.dashboard-heading+.cards .stat-drilldown-top>span:first-child{padding-right:28px}

/* Keep the statement upload icon and label on one line. */
html body #main .statement-file-button{
  width:auto;min-width:134px;height:30px;display:inline-flex!important;
  flex-direction:row;flex-wrap:nowrap;white-space:nowrap;line-height:20px!important;
  align-items:center;justify-content:center;gap:8px;padding:0 12px!important;
}
html body #main .statement-file-button svg{flex:0 0 14px}
