:root{--nojan-orange:#ff5a00;--nojan-orange-dark:#d94c00;--nojan-orange-soft:#fff1e8}
.brand img{width:52px;height:52px;object-fit:contain;flex:0 0 auto}
.card .brand img{width:72px;height:72px}
button{background:var(--nojan-orange);box-shadow:0 6px 16px #ff5a0026;transition:background .18s ease,transform .18s ease}
button:hover{background:var(--nojan-orange-dark);transform:translateY(-1px)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ff5a0040;outline-offset:2px}
.hero{border-top:5px solid var(--nojan-orange)}
.hero span{color:#ffb083;font-weight:bold}
.container>nav a:hover,.ghost:hover{border-color:var(--nojan-orange);color:var(--nojan-orange-dark);background:var(--nojan-orange-soft)}
.stats div{border-top:3px solid var(--nojan-orange)}
.stats b,.title h2{color:#123d58}
.badge.expiring{background:var(--nojan-orange-soft);color:#a43d00}
@media(max-width:560px){.brand img{width:44px;height:44px}.card .brand img{width:64px;height:64px}}
.file-field{padding:12px;border:1px dashed #ff5a0070;border-radius:12px;background:var(--nojan-orange-soft);font-weight:bold}
.file-field input{margin-top:7px;background:#fff}.file-field small{color:#80523a;font-weight:normal}
.attachment{display:inline-block;margin:7px 0;padding:8px 12px;border-radius:10px;background:var(--nojan-orange-soft);color:var(--nojan-orange-dark);font-weight:bold}
.service-editor{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.4fr 1fr 1fr 1fr auto;gap:9px;align-items:end;padding:14px 0;border-top:1px solid #e3eaee}
.service-editor label{margin:0;font-size:12px}.service-editor button{white-space:nowrap}.service-owner{display:block;color:#708390;margin-top:4px}
.service-quantity{display:grid;gap:6px;text-align:center}.service-quantity span{font-size:12px;color:#607887}.service-quantity input{min-width:82px;min-height:43px;margin:0;padding:8px 10px;border:1px solid #ffc6a6;border-radius:11px;background:var(--nojan-orange-soft);color:var(--nojan-orange-dark);font-size:18px;font-weight:900;text-align:center}.service-quantity input:focus{background:#fff;border-color:var(--nojan-orange);box-shadow:0 0 0 4px #ff5a0018}
.service-count{display:inline-block;padding:6px 11px;border-radius:20px;background:var(--nojan-orange-soft);color:var(--nojan-orange-dark);font-size:13px;font-weight:bold}
.service-actions{display:grid;gap:7px}.service-actions button{width:100%}.service-actions .danger{background:#b94343;box-shadow:0 6px 16px #b9434326}.service-actions .danger:hover{background:#983333}
.service-children{margin:0 0 12px;padding:0 14px 14px;border-bottom:1px solid #e3eaee}.service-children summary{cursor:pointer;color:var(--nojan-orange-dark);font-weight:bold;padding:10px 0}.service-child{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;margin-top:7px;border-radius:11px;background:#f7f9fa}.service-child .danger{padding:8px 12px;background:#b94343;box-shadow:none;white-space:nowrap}.service-child .danger:hover{background:#983333}
.service-add-child{display:grid;grid-template-columns:160px auto;gap:10px;align-items:end;padding:12px;margin-bottom:10px;border-radius:12px;background:var(--nojan-orange-soft)}.service-add-child label{margin:0;font-size:12px}.service-add-child input{background:#fff}.service-add-child button{white-space:nowrap}
@media(max-width:650px){.service-child{align-items:stretch;flex-direction:column}.service-child .danger{width:100%}}
@media(max-width:650px){.service-add-child{grid-template-columns:1fr}.service-add-child button{width:100%}}
#service-search{margin:0 0 14px;border-color:#ff5a0060;background:#fffaf7}
.service-search-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-bottom:14px}.service-search-form #service-search{margin:0}.service-search-form button{min-width:150px}
.empty-search{padding:28px;text-align:center;border:1px dashed #ccdbe2;border-radius:14px;background:#f7fafb;color:#708390}
@media(max-width:1050px){.service-editor{grid-template-columns:repeat(4,1fr)}}
@media(max-width:650px){.service-editor{grid-template-columns:1fr 1fr}.service-editor button{grid-column:1/-1}}
@media(max-width:650px){.service-search-form{grid-template-columns:1fr}.service-search-form button{width:100%}}
.login-page{height:100vh;min-height:0;background:linear-gradient(135deg,#eef3f6 0%,#fff7f1 100%);padding:14px;display:grid;place-items:center;overflow:hidden}
.login-shell{width:min(1180px,100%);height:min(660px,calc(100vh - 28px));min-height:0;display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #dfe7eb;border-radius:32px;overflow:hidden;box-shadow:0 28px 80px #123d5824}
.login-showcase{position:relative;overflow:hidden;padding:36px 44px;color:#fff;background:radial-gradient(circle at 20% 15%,#315e75 0,#123d58 40%,#0b293c 100%);display:flex;flex-direction:column}
.login-showcase:before,.login-showcase:after{content:"";position:absolute;border:1px solid #ff8b4e55;border-radius:50%}.login-showcase:before{width:420px;height:420px;left:-170px;bottom:-180px}.login-showcase:after{width:290px;height:290px;left:-105px;bottom:-115px}
.login-showcase-brand{position:relative;display:flex;align-items:center;gap:14px}.login-showcase-brand img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:18px;padding:5px}.login-showcase-brand strong{display:block;font-size:20px}.login-showcase-brand small{display:block;margin-top:5px;color:#c4d8e3}
.login-intro{position:relative;margin:auto 0}.login-eyebrow{display:inline-block;padding:7px 12px;border-radius:30px;background:#ff5a0025;color:#ffb083;border:1px solid #ff8b4e44}.login-intro h2{font-size:24px;line-height:1.7;margin:18px 0 9px;white-space:nowrap}.login-intro h2 em{display:inline;margin-right:.25em;color:#ff7a32;font-style:normal}.login-intro>p{line-height:1.9;color:#d6e4eb;max-width:470px}.login-benefits{display:grid;gap:9px;margin:20px 0 0;padding:0;list-style:none}.login-benefits li{display:flex;align-items:center;gap:10px;color:#edf5f8}.login-benefits li:before{content:"✓";display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--nojan-orange);font-weight:bold}
.login-card-wrap{display:grid;place-items:center;padding:38px 50px}.login-card{width:min(430px,100%)}.login-mobile-logo{display:none}.login-card h1{font-size:32px;margin:0 0 8px;color:#123d58}.login-lead{color:#708390;line-height:1.8;margin:0 0 22px}.login-card label{color:#294556}.login-card input{padding:13px 15px;border-radius:13px;background:#f7f9fa}.login-card input:focus{border-color:var(--nojan-orange);background:#fff}.password-box{position:relative}.password-box input{padding-left:72px}.password-toggle{position:absolute;left:8px;top:50%;transform:translateY(-50%);padding:7px 10px;background:transparent;color:var(--nojan-orange-dark);box-shadow:none;font-size:12px}.password-toggle:hover{background:var(--nojan-orange-soft);transform:translateY(-50%)}.login-submit{width:100%;padding:14px;margin-top:9px;font-size:16px}.login-security{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:11px;border-radius:13px;background:#f3f7f9;color:#607887;font-size:12px;line-height:1.7}.login-security span{color:var(--nojan-orange);font-size:18px}.login-footer{margin-top:auto;color:#8eadbd;font-size:12px}
@media(max-width:850px){.login-page{height:auto;min-height:100vh;overflow:auto;padding:18px}.login-shell{grid-template-columns:1fr;height:auto;min-height:auto}.login-showcase{display:none}.login-card-wrap{padding:42px 28px}.login-mobile-logo{display:flex;align-items:center;gap:12px;margin-bottom:28px}.login-mobile-logo img{width:64px;height:64px;object-fit:contain}.login-mobile-logo strong{display:block;color:#123d58}.login-mobile-logo small{color:#708390}.login-card h1{font-size:30px}}
@media(max-width:480px){.login-page{padding:0;background:#fff}.login-shell{border:0;border-radius:0;box-shadow:none}.login-card-wrap{padding:30px 20px}}
.check-row{display:flex;align-items:center;gap:8px}.check-row input{width:auto;margin:0}
.sms-customer-list{display:grid;gap:9px}.sms-customer-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) 100px 90px;gap:10px;align-items:center;padding:10px;border-radius:12px;background:#f7f9fa}.sms-customer-row input{margin:0}.sms-customer-row .check-row{margin:0}.sms-log{display:grid;gap:8px}.sms-log>div{display:grid;grid-template-columns:90px minmax(140px,1fr) minmax(220px,2fr) auto;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #e3eaee}.sms-log small{color:#708390}code{direction:ltr;display:block;overflow-wrap:anywhere;padding:10px;border-radius:8px;background:#f1f5f7;color:#24485b}
@media(max-width:760px){.sms-customer-row,.sms-log>div{grid-template-columns:1fr}.sms-customer-row button{width:100%}}
.sms-test-form{display:grid;grid-template-columns:1.2fr 1fr 160px auto;gap:10px;align-items:end}.sms-test-form label{margin:0}.sms-test-form button{white-space:nowrap}
@media(max-width:760px){.sms-test-form{grid-template-columns:1fr}.sms-test-form button{width:100%}}
.ticket-center{max-width:1450px}.ticket-layout{display:grid;grid-template-columns:minmax(330px,420px) 1fr;gap:18px;align-items:start}.ticket-sidebar{padding:14px}.ticket-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.ticket-filters input{grid-column:1/-1}.ticket-filters button{grid-column:1/-1}.ticket-list{display:grid;gap:8px;max-height:72vh;overflow:auto}.ticket-item{display:block;padding:12px;border:1px solid #dfe8ec;border-radius:13px;background:#fff;color:#294556;text-decoration:none}.ticket-item:hover,.ticket-item.selected{border-color:var(--nojan-orange);background:#fff8f4}.ticket-item.unread{border-right:5px solid var(--nojan-orange)}.ticket-item>div{display:flex;justify-content:space-between;gap:8px}.ticket-item small{display:block;margin-top:6px;color:#708390}.ticket-item p{margin:7px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-status{padding:4px 8px;border-radius:20px;font-size:11px;white-space:nowrap}.ticket-status.open{background:#e8f5ee;color:#237248}.ticket-status.answered{background:#e7f1fb;color:#245f91}.ticket-status.closed{background:#eef1f3;color:#697b86}.thread-head{display:flex;justify-content:space-between;align-items:start;gap:12px;border-bottom:1px solid #e3eaee;padding-bottom:14px}.thread-head h2{margin:0;color:#123d58}.thread-head p{color:#708390}.thread-head .danger{background:#a63d3d}.messages{display:grid;gap:13px;padding:18px 0;max-height:58vh;overflow:auto}.message{max-width:82%;padding:13px 15px;border-radius:16px}.message header{display:flex;justify-content:space-between;gap:20px;background:none;padding:0;color:inherit}.message time{font-size:11px;opacity:.7}.message p{line-height:1.9;margin:8px 0 0}.customer-message{justify-self:start;background:#f2f6f8}.admin-message{justify-self:end;background:var(--nojan-orange-soft);border:1px solid #ff5a0030}.ticket-reply{display:grid;grid-template-columns:1fr 220px auto;gap:10px;align-items:end;border-top:1px solid #e3eaee;padding-top:14px}.ticket-reply textarea{margin:0}.ticket-reply .file-field{margin:0}.ticket-empty{text-align:center;padding:80px 20px;color:#708390}.new-ticket summary{cursor:pointer;font-size:18px;font-weight:bold;color:#123d58}.ticket-create{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-top:16px}.ticket-create label{margin:0}.ticket-create .wide{grid-column:1/-1}.ticket-create button{width:max-content}.muted{color:#708390}
@media(max-width:900px){.ticket-layout{grid-template-columns:1fr}.ticket-list{max-height:420px}.ticket-reply{grid-template-columns:1fr}.ticket-create{grid-template-columns:1fr 1fr}.ticket-create label:first-of-type,.ticket-create .wide{grid-column:1/-1}}
@media(max-width:560px){.ticket-filters,.ticket-create{grid-template-columns:1fr}.ticket-filters input,.ticket-filters button,.ticket-create label:first-of-type,.ticket-create .wide{grid-column:auto}.message{max-width:95%}.thread-head{flex-direction:column}.thread-head form,.thread-head button{width:100%}}
.renewal-alert{position:relative;isolation:isolate;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:18px;margin:20px 0;padding:22px 24px;border:2px solid;border-radius:22px;overflow:hidden;box-shadow:0 14px 36px #123d5818}.renewal-alert:before{content:"";position:absolute;z-index:-1;width:190px;height:190px;left:-75px;top:-95px;border-radius:50%;background:currentColor;opacity:.07}.renewal-alert-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;color:#fff;font-size:34px;font-weight:900;box-shadow:0 8px 18px #0002}.renewal-alert-content>span{display:block;margin-bottom:5px;font-size:13px;font-weight:800;letter-spacing:.02em}.renewal-alert-content h2{margin:0;color:#123d58;font-size:22px}.renewal-alert-content p{margin:7px 0 0;color:#395666}.renewal-alert-content small{display:inline-block;margin-right:10px;color:#647d89}.renewal-count{min-width:94px;padding:9px 14px;border-radius:16px;text-align:center;background:#fff;border:1px solid #ffffffaa;box-shadow:0 7px 20px #123d5810}.renewal-count b{display:block;color:#123d58;font-size:38px;line-height:1}.renewal-count span{display:block;margin-top:5px;color:#536d79;font-size:12px;font-weight:800}.renewal-alert>a{display:inline-block;padding:12px 17px;border-radius:12px;color:#fff;text-decoration:none;font-weight:800;white-space:nowrap;box-shadow:0 7px 18px #0002}.renewal-alert.safe{color:#23815c;background:#edf9f3;border-color:#82d1b0}.renewal-alert.safe .renewal-alert-icon,.renewal-alert.safe>a{background:#23815c}.renewal-alert.attention{color:#9a7200;background:#fff9df;border-color:#e6c958}.renewal-alert.attention .renewal-alert-icon,.renewal-alert.attention>a{background:#b48700}.renewal-alert.warning{color:#bd4b00;background:#fff1e7;border-color:#ff9a5c}.renewal-alert.warning .renewal-alert-icon,.renewal-alert.warning>a{background:#ee5a00}.renewal-alert.critical,.renewal-alert.expired{color:#b12e36;background:#fff0f1;border-color:#ea747b;animation:renewal-pulse 2.2s ease-in-out infinite}.renewal-alert.critical .renewal-alert-icon,.renewal-alert.critical>a,.renewal-alert.expired .renewal-alert-icon,.renewal-alert.expired>a{background:#c83c44}@keyframes renewal-pulse{0%,100%{box-shadow:0 14px 36px #c83c4418}50%{box-shadow:0 14px 42px #c83c4440}}
@media(max-width:800px){.renewal-alert{grid-template-columns:auto 1fr}.renewal-count{grid-row:1/3;grid-column:1}.renewal-alert>a{grid-column:1/-1;text-align:center}.renewal-alert-content small{display:block;margin:5px 0 0}}
@media(max-width:520px){.renewal-alert{padding:18px;gap:13px}.renewal-alert-icon{display:none}.renewal-alert-content h2{font-size:18px}.renewal-count{grid-row:auto;grid-column:auto;min-width:78px}.renewal-count b{font-size:31px}}
.profile-page{max-width:1180px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.profile-grid>.panel,.profile-grid>div>.panel{margin-top:18px}.profile-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.profile-section-title>span{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:var(--nojan-orange);color:#fff;font-size:18px;font-weight:900}.profile-section-title h2{margin:0;color:#123d58}.profile-section-title p{margin:5px 0 0;color:#708390;line-height:1.7}.profile-grid label small{color:#81929b;font-weight:normal}.security-panel{border-top:4px solid var(--nojan-orange)}.security-status{display:flex;align-items:center;gap:11px;padding:13px 15px;border-radius:13px}.security-status b{padding:5px 10px;border-radius:20px}.security-status.enabled{background:#edf9f3;color:#237248}.security-status.enabled b{background:#cdeedc}.security-status.disabled{background:#f2f5f7;color:#667b87}.security-status.disabled b{background:#dfe7eb}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0}.switch-row input{width:24px;height:24px;accent-color:var(--nojan-orange)}.otp-login-shell{max-width:960px}.otp-input{direction:ltr;text-align:center;letter-spacing:12px;font-size:28px;font-weight:900}.cancel-login{display:block;margin-top:16px;text-align:center;color:#667f8b}.cancel-login:hover{color:var(--nojan-orange-dark)}
@media(max-width:800px){.profile-grid{grid-template-columns:1fr}}
.invoice-page{max-width:1250px}.invoice-upload{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:12px;align-items:end}.invoice-upload label{margin:0}.invoice-upload .wide{grid-column:1/-1}.invoice-upload>button{width:max-content}.invoice-search{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:15px}.invoice-list{display:grid;gap:11px}.invoice-item{display:grid;grid-template-columns:auto minmax(190px,1fr) minmax(120px,.7fr) minmax(160px,.9fr) auto;align-items:center;gap:15px;padding:15px;border:1px solid #dfe8ec;border-radius:15px;background:#fff}.invoice-pdf{display:grid;place-items:center;width:52px;height:58px;border-radius:12px;background:#fff0f1;color:#bb3038;font-weight:900;border:1px solid #f2c5c8}.invoice-main>span,.invoice-meta span{display:block;color:#78909b;font-size:12px}.invoice-main h3{margin:4px 0;color:#123d58}.invoice-main p{margin:4px 0;color:#536d79}.invoice-main small{color:#78909b}.invoice-meta b{display:block;margin-top:5px;color:#294c5e}.invoice-actions{display:flex;align-items:center;gap:7px}.invoice-actions>a,.invoice-actions button{display:inline-block;padding:10px 13px;border-radius:10px;white-space:nowrap}.invoice-actions>a{background:var(--nojan-orange);color:#fff;font-weight:800}.invoice-actions form{margin:0}.invoice-actions .danger{background:#b94343}.invoice-empty{padding:35px;text-align:center;border:1px dashed #ccdbe2;border-radius:14px;background:#f7fafb;color:#708390}
@media(max-width:900px){.invoice-upload{grid-template-columns:1fr 1fr}.invoice-item{grid-template-columns:auto 1fr 1fr}.invoice-main{grid-column:2/-1}.invoice-actions{grid-column:1/-1}.invoice-actions>a{flex:1;text-align:center}}
@media(max-width:560px){.invoice-upload,.invoice-search{grid-template-columns:1fr}.invoice-upload .wide{grid-column:auto}.invoice-upload>button{width:100%}.invoice-item{grid-template-columns:auto 1fr}.invoice-meta{grid-column:2}.invoice-actions{display:grid;grid-template-columns:1fr}.invoice-actions form,.invoice-actions button{width:100%}}

/* Noujan Panel UI — v25 */
:root{--nj-navy:#103b56;--nj-navy-deep:#092b40;--nj-orange:#ff5a00;--nj-orange-dark:#d94c00;--nj-bg:#f4f7f9;--nj-line:#dce6eb;--nj-muted:#718691;--nj-shadow:0 12px 34px rgba(16,59,86,.09)}
html{scroll-behavior:smooth}body{min-height:100vh;background:radial-gradient(circle at 8% 4%,rgba(255,90,0,.07),transparent 24rem),radial-gradient(circle at 92% 12%,rgba(16,59,86,.08),transparent 28rem),var(--nj-bg);color:#17384a}body:before{content:"";position:fixed;z-index:-1;inset:0;background-image:linear-gradient(rgba(16,59,86,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(16,59,86,.025) 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(to bottom,#000,transparent 70%)}
body>header{min-height:78px;padding:11px clamp(18px,4vw,58px);background:rgba(255,255,255,.92);border-bottom:1px solid rgba(205,220,228,.9);box-shadow:0 8px 28px rgba(16,59,86,.07);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}body>header .brand{min-width:max-content}body>header .brand img{width:50px;height:50px;padding:3px;background:#fff;border:1px solid #e1eaee;border-radius:15px;box-shadow:0 7px 18px rgba(16,59,86,.1)}body>header .brand strong{display:block;color:var(--nj-navy);font-size:17px}body>header .brand small{font-size:12px;color:#7a8f99}body>header>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.ghost{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 13px;border-color:#d9e5ea;background:#fff;color:#38596a;font-size:13px;font-weight:700;transition:.2s ease}.ghost:hover{border-color:rgba(255,90,0,.45);background:#fff5ef;color:var(--nj-orange-dark);transform:translateY(-1px);box-shadow:0 6px 16px rgba(255,90,0,.11)}.ghost[href*="logout"]{color:#9d3c42;background:#fff8f8;border-color:#f0d7d9}.ghost[href*="logout"]:hover{background:#fff0f1;border-color:#e9aeb2}
.container{width:min(1240px,calc(100% - 36px));margin:32px auto 80px}.hero{position:relative;isolation:isolate;overflow:hidden;padding:36px 38px;border:0;border-top:0;background:linear-gradient(125deg,var(--nj-navy-deep),var(--nj-navy) 64%,#1d5873);box-shadow:0 22px 52px rgba(9,43,64,.2)}.hero:before,.hero:after{content:"";position:absolute;z-index:-1;border-radius:50%;border:1px solid rgba(255,255,255,.1)}.hero:before{width:330px;height:330px;left:-110px;top:-190px}.hero:after{width:180px;height:180px;left:60px;bottom:-145px;background:rgba(255,90,0,.12);border-color:rgba(255,139,78,.24)}.hero>span{display:inline-block;padding:6px 11px;border:1px solid rgba(255,139,78,.3);border-radius:30px;background:rgba(255,90,0,.13);color:#ffbd98;font-size:12px}.hero h1{margin:10px 0 8px;font-size:clamp(25px,3vw,35px);letter-spacing:-.02em}.hero p{max-width:720px;line-height:1.9}
.container>nav{position:relative;display:flex;gap:8px;padding:8px;margin:16px 0 24px;border:1px solid var(--nj-line);border-radius:16px;background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(16,59,86,.06);backdrop-filter:blur(10px)}.container>nav a{flex:0 0 auto;padding:10px 16px;border:0;border-radius:10px;background:transparent;color:#456372;font-weight:700}.container>nav a:hover{background:#fff1e8;color:var(--nj-orange-dark)}
.panel,.service,.card{border:1px solid rgba(210,224,231,.95);box-shadow:var(--nj-shadow)}.panel{border-radius:22px;padding:22px}.service{position:relative;overflow:hidden;border-radius:20px;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.service:before{content:"";position:absolute;right:0;top:0;width:5px;height:100%;background:linear-gradient(var(--nj-orange),#ff9b62)}.service:hover{transform:translateY(-4px);border-color:#ffc6a7;box-shadow:0 18px 40px rgba(16,59,86,.13)}.service h3{color:var(--nj-navy);font-size:18px}.grid{gap:18px}.title{margin:28px 0 14px}.title h2{font-size:21px}.title>span{padding:5px 10px;border-radius:20px;background:#eaf1f4;color:#5c7480;font-size:12px;font-weight:700}
input,select,textarea{border-color:#cfdee5;border-radius:12px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}input:hover,select:hover,textarea:hover{border-color:#afc6d1}input:focus,select:focus,textarea:focus{outline:0;border-color:var(--nj-orange);background:#fff;box-shadow:0 0 0 4px rgba(255,90,0,.11)}button,.invoice-actions>a{background:linear-gradient(135deg,var(--nj-orange),#f27028);box-shadow:0 8px 18px rgba(255,90,0,.2);transition:.2s ease}button:hover,.invoice-actions>a:hover{background:linear-gradient(135deg,var(--nj-orange-dark),var(--nj-orange));transform:translateY(-1px);box-shadow:0 10px 22px rgba(255,90,0,.26)}
.stats{gap:15px}.stats div{position:relative;overflow:hidden;padding:22px;border:1px solid var(--nj-line);box-shadow:var(--nj-shadow)}.stats div:after{content:"";position:absolute;width:70px;height:70px;left:-24px;bottom:-32px;border-radius:50%;background:rgba(255,90,0,.09)}.stats b{color:var(--nj-navy);font-size:30px}.stats span{display:block;margin-top:5px}
.notice,.error{border:1px solid;border-radius:14px;padding:13px 15px;box-shadow:0 7px 18px rgba(16,59,86,.05)}.notice{border-color:#b9e2cc}.error{border-color:#efc2c5}.badge{font-weight:700}.file-field{border-radius:14px}.invoice-item,.ticket-item,.service-child{transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.invoice-item:hover,.ticket-item:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,59,86,.09)}
@media(max-width:760px){body>header{position:sticky;align-items:flex-start;gap:10px;padding:10px 14px}body>header>div:last-child{max-width:62%;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}body>header>div:last-child::-webkit-scrollbar{display:none}.ghost{white-space:nowrap}.container{width:min(100% - 22px,1240px);margin-top:20px}.hero{padding:26px 23px;border-radius:21px}.container>nav{overflow-x:auto;scrollbar-width:none}.container>nav::-webkit-scrollbar{display:none}.panel{padding:17px;border-radius:18px}}
@media(max-width:480px){body>header{min-height:68px}body>header .brand img{width:43px;height:43px}body>header .brand strong{font-size:14px}body>header>div:last-child{max-width:58%}.ghost{min-height:36px;padding:7px 10px;font-size:12px}.hero h1{font-size:23px}.hero p{font-size:13px}.renewal-alert{border-radius:18px}.title h2{font-size:18px}}

/* Vertical tree navigation — v25.1 */
.panel-sidebar{position:fixed;z-index:8;right:18px;top:94px;bottom:18px;width:250px;display:flex;flex-direction:column;padding:15px;border:1px solid rgba(207,222,229,.95);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 18px 46px rgba(16,59,86,.13);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);overflow:auto}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:5px 5px 16px;margin-bottom:8px;border-bottom:1px solid #e4ecef}.sidebar-brand img{width:45px;height:45px;object-fit:contain;border:1px solid #e2eaee;border-radius:14px;padding:3px}.sidebar-brand strong{display:block;color:var(--nj-navy);font-size:15px}.sidebar-brand small{display:block;margin-top:4px;color:#80929c;font-size:11px}.sidebar-tree{display:grid;gap:9px}.sidebar-group{position:relative;margin:0;padding:8px;border-radius:14px;background:#f7fafb;border:1px solid #edf2f4}.sidebar-group:before{content:"";position:absolute;right:20px;top:42px;bottom:13px;width:1px;background:#d8e5ea}.sidebar-label,.sidebar-group summary{position:relative;z-index:1;padding:3px 7px 8px;color:#80939d;font-size:11px;font-weight:800;list-style:none;cursor:pointer}.sidebar-group summary::-webkit-details-marker{display:none}.sidebar-group summary:after{content:"⌄";float:left;color:#90a2aa;font-size:14px;transition:transform .2s ease}.sidebar-group:not([open]) summary:after{transform:rotate(90deg)}.sidebar-link{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-height:42px;padding:7px 9px;margin-top:3px;border-radius:11px;color:#44616f;font-size:13px;font-weight:700;transition:.18s ease}.sidebar-link:hover{background:#fff;color:var(--nj-orange-dark);box-shadow:0 5px 14px rgba(16,59,86,.07);transform:translateX(-2px)}.sidebar-link.active{color:#fff;background:linear-gradient(135deg,var(--nj-navy),#1c5874);box-shadow:0 8px 18px rgba(16,59,86,.2)}.sidebar-icon{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:#fff;color:var(--nj-orange);border:1px solid #e3ecef;font-size:15px}.sidebar-link.active .sidebar-icon{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.15);color:#ffb58c}.sidebar-logout{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;padding:11px;border-radius:12px;background:#fff3f3;color:#a33e44;font-size:13px;font-weight:800;border:1px solid #f1d9db}.sidebar-logout:hover{background:#ffe8e9}.sidebar-toggle,.sidebar-overlay{display:none}.has-sidebar>header>div:last-child{display:none}.has-sidebar .container{width:min(1240px,calc(100% - 320px));margin-right:288px;margin-left:auto}
@media(max-width:1050px){.panel-sidebar{right:12px;width:226px}.has-sidebar .container{width:calc(100% - 268px);margin-right:250px}}
@media(max-width:800px){.panel-sidebar{z-index:30;top:0;right:0;bottom:0;width:min(290px,86vw);border-radius:24px 0 0 24px;transform:translateX(105%);transition:transform .25s ease}.sidebar-open .panel-sidebar{transform:translateX(0)}.sidebar-overlay{display:block;position:fixed;z-index:29;inset:0;background:rgba(5,28,42,.48);opacity:0;visibility:hidden;transition:.22s ease}.sidebar-open .sidebar-overlay{opacity:1;visibility:visible}.sidebar-toggle{display:grid;position:fixed;z-index:31;right:14px;bottom:16px;place-content:center;gap:4px;width:52px;height:52px;padding:0;border-radius:17px;background:linear-gradient(135deg,var(--nj-orange),#ef7030);box-shadow:0 12px 28px rgba(255,90,0,.32)}.sidebar-toggle span{display:block;width:22px;height:2px;border-radius:4px;background:#fff}.sidebar-open .sidebar-toggle{right:min(304px,calc(86vw + 14px))}.has-sidebar .container{width:min(100% - 22px,1240px);margin:20px auto 70px}.has-sidebar>header>div:last-child{display:none}}
.two-factor-actions{display:grid;margin-top:14px}.two-factor-actions .danger{background:linear-gradient(135deg,#b7353e,#d14c54);box-shadow:0 8px 18px rgba(183,53,62,.2)}.two-factor-actions .danger:hover{background:linear-gradient(135deg,#982b33,#bd3c45)}

/* Proformas and staged payments — v26 */
.access-row-v26{grid-template-columns:minmax(170px,1fr) 135px 1fr 1fr auto}.proforma-page{max-width:1320px}.proforma-admin-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:start}.proforma-admin-grid>.panel{margin-top:18px}.proforma-create{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:11px;align-items:end}.proforma-create label{margin:0}.proforma-create .wide{grid-column:1/-1}.proforma-create>button{width:max-content}.payment-settings{display:grid;gap:10px}.payment-settings label{margin:0}.proforma-list{display:grid;gap:14px}.proforma-card{padding:18px;border:1px solid var(--nj-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(16,59,86,.06)}.proforma-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.proforma-head span{color:var(--nj-muted);font-size:12px}.proforma-head h3{margin:4px 0;color:var(--nj-navy)}.proforma-head small{color:#718691}.payment-status{padding:7px 11px;border-radius:30px;font-size:12px;white-space:nowrap}.payment-status.pending{background:#fff5df;color:#916800}.payment-status.receipt_pending{background:#e9f2fb;color:#26608c}.payment-status.paid{background:#e8f7ef;color:#217049}.payment-status.cancelled,.payment-status.expired{background:#f2f4f5;color:#687b85}.proforma-info{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.proforma-info>div{padding:11px;border-radius:12px;background:#f5f8fa}.proforma-info span{display:block;color:#78909b;font-size:11px}.proforma-info b{display:block;margin-top:5px;color:#294c5e}.proforma-description{padding:12px 14px;border-right:4px solid var(--nj-orange);border-radius:10px;background:#fff8f4;line-height:1.9}.proforma-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.print-button,.receipt-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border-radius:10px;font-weight:800}.print-button{background:#e9f0f4;color:#294f62}.receipt-link{background:#e8f7ef;color:#217049}.pay-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border:0;border-radius:10px;background:var(--nj-orange);color:#fff;font-weight:800}.pay-button.disabled{background:#dfe6e9;color:#718691;box-shadow:none;cursor:not-allowed;transform:none}.status-form{display:flex;gap:7px;margin:0}.status-form select,.status-form input{width:auto;margin:0}.status-form input{max-width:170px}.receipt-box{flex-basis:100%;padding:12px;border:1px solid #f1c6ae;border-radius:13px;background:#fff8f4}.receipt-box summary{cursor:pointer;color:var(--nj-orange-dark);font-weight:800}.receipt-box form{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:8px;align-items:end;margin-top:12px}.receipt-box label{margin:0;font-size:12px}.card-details{display:flex;gap:12px;margin-top:10px;padding:10px;border-radius:10px;background:#fff}.card-details b{direction:ltr;letter-spacing:2px}.card-details span{color:#718691}.proforma-actions>.danger,.proforma-actions>form>.danger{background:#b94343}.proforma-actions>form{margin:0}
@media(max-width:1050px){.proforma-admin-grid{grid-template-columns:1fr}.proforma-create{grid-template-columns:1fr 1fr}.access-row-v26{grid-template-columns:1fr 1fr}.access-row-v26>div{grid-column:1/-1}.receipt-box form{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.proforma-create,.proforma-info,.receipt-box form,.access-row-v26{grid-template-columns:1fr}.proforma-create .wide,.access-row-v26>div{grid-column:auto}.proforma-create>button,.access-row-v26 button{width:100%}.proforma-head{flex-direction:column}.proforma-actions{display:grid}.status-form{display:grid}.status-form select,.status-form input{width:100%;max-width:none}.card-details{flex-direction:column}}
.customer-picker{display:grid;gap:6px}.customer-picker input,.customer-picker select{margin:0}.customer-picker input{border-color:#ff9f6c;background:#fffaf7}.customer-picker small{color:#718691;font-weight:normal}.customer-picker option[hidden]{display:none}
.payment-settings h3{margin:8px 0 0;padding-top:12px;border-top:1px solid var(--nj-line);color:var(--nj-navy);font-size:15px}.payment-settings h3:first-of-type{padding-top:0;border-top:0}.iban-box{border-color:#a9d4e8;background:#f2faff}.iban-box summary{color:#176381}.iban-number{direction:ltr;letter-spacing:1px;overflow-wrap:anywhere}
.image-view-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border-radius:10px;background:#e8f2fb;color:#235f8b;font-weight:800}
.official-billing-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px;border:1px solid #b8d6e5;border-radius:14px;background:#f3faff}.official-billing-fields[hidden]{display:none}.official-billing-fields label{margin:0}.official-billing-fields .wide{grid-column:1/-1}.billing-calculation{display:flex;justify-content:space-between;gap:12px;padding:12px;border-radius:11px;background:#123d58;color:#fff}.billing-calculation b{color:#ffb083}.tax-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tax-summary span{padding:7px 10px;border-radius:9px;background:#f0f6f8;color:#456575;font-size:12px}.proforma-head small{display:block;margin-top:4px}
@media(max-width:700px){.official-billing-fields{grid-template-columns:1fr}.official-billing-fields .wide{grid-column:auto}.billing-calculation{flex-direction:column}}
.currency-notice{margin-top:10px;padding:11px 13px;border:1px solid #e7c65c;border-radius:11px;background:#fff9df;color:#765800;font-weight:800}
.billing-alert{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin:20px 0;padding:20px 22px;border:2px solid #69b99a;border-radius:20px;background:linear-gradient(135deg,#edfaf5,#fff);box-shadow:0 14px 32px rgba(21,112,78,.12)}.billing-alert-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#187a59;color:#fff;font-size:25px}.billing-alert-content>span{display:block;margin-bottom:4px;color:#187a59;font-size:12px;font-weight:800}.billing-alert-content h2{margin:0;color:#123d58;font-size:21px}.billing-alert-content p{margin:7px 0 0;color:#55717d}.billing-alert>a{padding:12px 17px;border-radius:12px;background:#187a59;color:#fff;font-weight:800;white-space:nowrap;box-shadow:0 7px 18px rgba(21,112,78,.2)}@media(max-width:650px){.billing-alert{grid-template-columns:auto 1fr;padding:17px}.billing-alert>a{grid-column:1/-1;text-align:center}.billing-alert-content h2{font-size:18px}}
.currency-entry-help{display:block;margin-top:7px;color:#527083;font-size:12px;line-height:1.8}.proforma-create label:has(.currency-entry-help){position:relative}

/* Calm, sectioned customer dashboard — v36 */
.panel-sidebar{right:14px;top:82px;bottom:14px;width:220px;padding:12px;border-radius:19px;box-shadow:0 12px 34px rgba(16,59,86,.1)}.sidebar-brand{padding-bottom:12px}.sidebar-tree{gap:6px}.sidebar-group{padding:6px}.sidebar-link{min-height:38px;padding:6px 8px}.has-sidebar .container{width:min(1240px,calc(100% - 276px));margin-right:250px}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:4px 2px 14px;border-bottom:1px solid var(--nj-line)}.dashboard-heading span{color:var(--nj-orange);font-size:12px;font-weight:800}.dashboard-heading h1{margin:5px 0 3px;color:var(--nj-navy);font-size:28px}.dashboard-heading p{margin:0;color:var(--nj-muted)}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.dashboard-shortcuts>a{position:relative;display:grid;justify-items:center;align-content:center;min-height:180px;padding:20px;border:1px solid #dfe7eb;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(16,59,86,.04);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.dashboard-shortcuts>a:hover{transform:translateY(-3px);border-color:#b7cbd5;box-shadow:0 12px 28px rgba(16,59,86,.09)}.shortcut-mark{display:grid;place-items:center;width:48px;height:48px;margin-bottom:8px;border-radius:50%;background:#f3efff;color:#7041d5;font-size:27px;font-weight:800}.dashboard-shortcuts b{position:absolute;top:13px;left:15px;min-width:27px;padding:4px 7px;border-radius:20px;background:#f3f5f6;color:#526b78;font-size:12px;text-align:center}.dashboard-shortcuts strong{color:#243e4d;font-size:17px;text-align:center}.dashboard-shortcuts small{margin-top:7px;color:#8999a1}.shortcut-mark.services{background:#edf8f4;color:#20805f}.shortcut-mark.billing{background:#fff4e9;color:#c55c16}.shortcut-mark.tickets{background:#eef5fb;color:#286b9a}.billing-alert,.renewal-alert{box-shadow:none}.billing-alert{border-width:1px}.renewal-alert{border-width:1px}

/* Compact financial list for customers */
.proforma-customer .proforma-page>.hero{padding:22px 25px;border:1px solid var(--nj-line);border-radius:17px;background:#fff;box-shadow:none;color:var(--nj-navy)}.proforma-customer .proforma-page>.hero:before,.proforma-customer .proforma-page>.hero:after{display:none}.proforma-customer .proforma-page>.hero>span{padding:0;border:0;background:transparent;color:var(--nj-orange)}.proforma-customer .proforma-page>.hero h1{margin:6px 0 2px;font-size:25px}.proforma-customer .proforma-page>.hero p{color:var(--nj-muted)}.proforma-customer .proforma-page>.panel{padding:0;border-radius:17px;box-shadow:none;overflow:hidden}.proforma-customer .proforma-page>.panel>.title{margin:0;padding:18px 20px;border-bottom:1px solid var(--nj-line)}.proforma-customer .invoice-search{padding:14px 20px;margin:0;border-bottom:1px solid var(--nj-line);background:#fafcfd}.proforma-customer .proforma-list{gap:0}.proforma-customer .proforma-card{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(370px,1.45fr) minmax(230px,1fr);align-items:start;gap:16px;padding:17px 20px;border:0;border-bottom:1px solid var(--nj-line);border-radius:0;box-shadow:none}.proforma-customer .proforma-card:last-child{border-bottom:0}.proforma-customer .proforma-card:hover{background:#fbfcfd}.proforma-customer .proforma-head{display:grid;gap:8px}.proforma-customer .proforma-info{margin:0}.proforma-customer .proforma-info>div{padding:9px 10px;background:#f7f9fa}.proforma-customer .proforma-actions{align-content:start;justify-content:flex-end;margin:0}.proforma-customer .proforma-actions>a,.proforma-customer .proforma-actions>button{padding:9px 11px;font-size:12px}.proforma-customer .currency-notice,.proforma-customer .tax-summary,.proforma-customer .proforma-description,.proforma-customer .receipt-box{grid-column:1/-1;margin-top:0}.proforma-customer .currency-notice{padding:9px 12px;font-size:12px}.proforma-customer .proforma-description{margin:0}.proforma-customer .receipt-box{width:100%}
@media(max-width:1100px){.panel-sidebar{right:12px;width:210px}.has-sidebar .container{width:calc(100% - 248px);margin-right:230px}.dashboard-shortcuts{grid-template-columns:repeat(2,1fr)}.dashboard-shortcuts>a{min-height:150px}.proforma-customer .proforma-card{grid-template-columns:minmax(180px,.8fr) 1.3fr}.proforma-customer .proforma-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:650px){.dashboard-heading h1{font-size:23px}.dashboard-shortcuts{grid-template-columns:1fr 1fr;gap:9px}.dashboard-shortcuts>a{min-height:132px;padding:15px}.dashboard-shortcuts strong{font-size:14px}.dashboard-shortcuts small{display:none}.shortcut-mark{width:42px;height:42px;font-size:23px}.proforma-customer .proforma-card{display:block;padding:16px}.proforma-customer .proforma-info{margin-top:12px}.proforma-customer .proforma-actions{margin-top:12px}.proforma-customer .currency-notice,.proforma-customer .tax-summary,.proforma-customer .proforma-description{margin-top:10px}}

/* v38: clean table-style billing archive */
.billing-heading{margin:0 0 18px;padding:3px 2px 16px;border-bottom:1px solid var(--nj-line)}
.billing-heading>span{color:var(--nj-orange);font-size:12px;font-weight:800}
.billing-heading h1{margin:5px 0 3px;color:var(--nj-navy);font-size:27px}
.billing-heading p{margin:0;color:var(--nj-muted)}
.billing-panel{padding:0;overflow:hidden;border-radius:16px;box-shadow:none}
.billing-panel>.billing-title{margin:0;padding:18px 20px;border-bottom:1px solid var(--nj-line)}
.billing-filters{display:grid;grid-template-columns:minmax(240px,1fr) minmax(170px,220px) auto auto;gap:10px;align-items:end;margin:0;padding:14px 20px;border-bottom:1px solid var(--nj-line);background:#fafbfc}
.billing-filters label{margin:0}
.billing-filters label>span{display:block;margin-bottom:5px;color:#71848e;font-size:11px;font-weight:700}
.billing-filters input,.billing-filters select{height:42px;margin:0;background:#fff}
.billing-filters button,.billing-filters>a{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 16px;border-radius:10px;font-size:13px;font-weight:800;white-space:nowrap}
.billing-filters>a{border:1px solid #d8e2e7;background:#fff;color:#526d7b}
.billing-table-head,.billing-row>summary{display:grid;align-items:center;gap:13px}
.proforma-customer .billing-table-head,.proforma-customer .billing-row>summary{grid-template-columns:minmax(175px,1.2fr) repeat(2,minmax(105px,.8fr)) minmax(135px,1fr) minmax(140px,1fr) 72px}
.proforma-admin .billing-table-head,.proforma-admin .billing-row>summary{grid-template-columns:minmax(145px,1fr) minmax(165px,1.2fr) minmax(100px,.75fr) minmax(110px,.8fr) minmax(135px,1fr) minmax(145px,1fr) 72px}
.billing-table-head{padding:13px 20px;border-bottom:1px solid var(--nj-line);background:#f5f7f8;color:#617683;font-size:11px;font-weight:800}
.billing-row{border-bottom:1px solid var(--nj-line);background:#fff}
.billing-row:last-child{border-bottom:0}
.billing-row>summary{min-height:70px;padding:12px 20px;cursor:pointer;list-style:none;transition:background .16s ease}
.billing-row>summary::-webkit-details-marker{display:none}
.billing-row>summary:hover{background:#fafcfd}
.billing-row[open]>summary{background:#f8fafb;border-bottom:1px solid var(--nj-line)}
.billing-cell{min-width:0;color:#2c4655;font-size:13px}
.billing-cell>b:not(.payment-status){display:block;overflow:hidden;text-overflow:ellipsis;color:#243f4f;white-space:nowrap}
.billing-cell small{display:block;margin-top:4px;color:#84959e;font-size:10px;font-weight:500}
.billing-number>b{color:var(--nj-navy)!important;font-size:14px}
.billing-amount>b{font-variant-numeric:tabular-nums}
.billing-row .payment-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;font-size:11px;font-weight:800}
.billing-row .payment-status:before{content:"";width:7px;height:7px;border:2px solid currentColor;border-radius:50%}
.billing-expand{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#6b7e89;font-size:11px;font-weight:800}
.billing-expand:after{content:"⌄";display:inline-block;font-size:16px;transition:transform .18s ease}
.billing-row[open] .billing-expand:after{transform:rotate(180deg)}
.billing-details{padding:17px 20px 19px;background:#fbfcfd}
.billing-details>.currency-notice,.billing-details>.tax-summary,.billing-details>.proforma-description{margin:0 0 12px}
.billing-details .proforma-actions{justify-content:flex-start;margin-top:4px}
.billing-details .print-button,.billing-details .receipt-link,.billing-details .pay-button,.billing-details .danger{min-height:40px;padding:9px 13px;font-size:12px;box-shadow:none}
.billing-details .status-form{padding:0;border:0;background:transparent}
.billing-details .receipt-box{margin-top:8px;background:#fff}
.billing-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:15px 18px;border-top:1px solid var(--nj-line);background:#fafbfc}
.billing-pagination a{display:grid;place-items:center;min-width:36px;height:36px;padding:0 10px;border:1px solid #dbe4e8;border-radius:9px;background:#fff;color:#536d7a;font-size:12px;font-weight:800}
.billing-pagination a:hover,.billing-pagination a.active{border-color:var(--nj-orange);background:var(--nj-orange);color:#fff}

@media(max-width:1100px){
  .proforma-admin .billing-table-head,.proforma-admin .billing-row>summary{grid-template-columns:minmax(140px,1fr) minmax(155px,1.1fr) 95px 110px minmax(125px,1fr) minmax(135px,1fr) 60px;gap:9px}
  .proforma-customer .billing-table-head,.proforma-customer .billing-row>summary{grid-template-columns:minmax(155px,1.1fr) 100px 105px minmax(125px,1fr) minmax(130px,1fr) 60px;gap:9px}
  .billing-table-head,.billing-row>summary{padding-right:15px;padding-left:15px}
}
@media(max-width:760px){
  .billing-heading h1{font-size:23px}
  .billing-filters{grid-template-columns:1fr 1fr;padding:13px 15px}
  .billing-filters button,.billing-filters>a{width:100%}
  .billing-table-head{display:none}
  .proforma-customer .billing-row>summary,.proforma-admin .billing-row>summary{grid-template-columns:1fr 1fr;gap:12px 18px;padding:15px}
  .billing-cell:before{content:attr(data-label);display:block;margin-bottom:3px;color:#8a99a1;font-size:10px;font-weight:600}
  .billing-number,.billing-customer{grid-column:1/-1}
  .billing-number{padding-bottom:9px;border-bottom:1px dashed #dce5e9}
  .billing-expand{grid-column:1/-1;justify-content:center;padding-top:8px;border-top:1px solid #e7edef}
  .billing-details{padding:15px}
  .billing-details .proforma-actions{display:grid;grid-template-columns:1fr}
  .billing-details .proforma-actions>a,.billing-details .proforma-actions>button,.billing-details .proforma-actions>form,.billing-details .proforma-actions>form>button{width:100%}
}
@media(max-width:520px){
  .billing-filters{grid-template-columns:1fr}
  .billing-panel>.billing-title{padding:16px}
  .billing-panel>.billing-title h2{font-size:17px}
}

/* v39: domain-grouped services on the customer dashboard */
.customer-dashboard .dashboard-shortcuts>a{min-height:132px;padding:16px;box-shadow:none}
.customer-dashboard .shortcut-mark{width:42px;height:42px;font-size:23px}
.customer-dashboard .billing-alert,.customer-dashboard .renewal-alert{margin:13px 0;padding:16px 18px;border-radius:16px}
.customer-dashboard .billing-alert-icon,.customer-dashboard .renewal-alert-icon{width:46px;height:46px;border-radius:13px;font-size:23px;box-shadow:none}
.customer-dashboard .billing-alert-content h2,.customer-dashboard .renewal-alert-content h2{font-size:18px}
.customer-dashboard .renewal-count{min-width:78px;padding:7px 11px;border-radius:12px;box-shadow:none}
.customer-dashboard .renewal-count b{font-size:29px}
.dashboard-services{margin-top:21px}
.services-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--nj-line)}
.services-title h2{margin:0}
.services-title p{margin:5px 0 0;color:#758892;font-size:12px}
.services-title>span{flex:0 0 auto}
.domain-service-groups{overflow:hidden;border:1px solid var(--nj-line);border-radius:16px;background:#fff}
.domain-service-group{border-bottom:1px solid var(--nj-line)}
.domain-service-group:last-child{border-bottom:0}
.domain-service-group>summary{display:grid;grid-template-columns:42px minmax(190px,1fr) minmax(125px,.55fr) auto 70px;align-items:center;gap:14px;min-height:78px;padding:13px 18px;cursor:pointer;list-style:none;transition:background .16s ease}
.domain-service-group>summary::-webkit-details-marker{display:none}
.domain-service-group>summary:hover,.domain-service-group[open]>summary{background:#fafcfd}
.domain-service-group[open]>summary{border-bottom:1px solid var(--nj-line)}
.domain-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f2effd;color:#7044cf;font-size:23px;font-weight:900}
.domain-name{min-width:0}
.domain-name strong{display:block;overflow:hidden;text-overflow:ellipsis;color:var(--nj-navy);font-size:15px;white-space:nowrap;text-align:right}
.domain-name small,.domain-expiry small{display:block;margin-top:4px;color:#87979f;font-size:10px}
.domain-expiry b{display:block;margin-top:4px;color:#405d6c;font-size:12px}
.domain-service-group>summary>.badge{justify-self:start;padding:6px 10px;font-size:11px;white-space:nowrap}
.domain-toggle{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#70838d;font-size:11px;font-weight:800}
.domain-toggle:after{content:"⌄";display:inline-block;font-size:16px;transition:transform .18s ease}
.domain-service-group[open] .domain-toggle:after{transform:rotate(180deg)}
.domain-services-body{background:#fbfcfd}
.domain-services-head,.domain-service-row{display:grid;grid-template-columns:minmax(210px,1.6fr) minmax(105px,.75fr) 65px minmax(105px,.75fr) minmax(110px,.8fr) minmax(95px,.7fr);align-items:center;gap:12px;padding:11px 18px}
.domain-services-head{border-bottom:1px solid #e3eaee;background:#f4f7f8;color:#738791;font-size:10px;font-weight:800}
.domain-service-row{min-height:58px;border-bottom:1px solid #e8edef;color:#4e6977;font-size:12px}
.domain-service-row:last-child{border-bottom:0}
.domain-service-row:hover{background:#fff}
.domain-service-row strong{display:block;color:#294b5c;font-size:12px}
.domain-service-row .badge{display:inline-flex;padding:5px 8px;font-size:10px}
.dashboard-empty{padding:35px;border:1px dashed #cad8df;border-radius:15px;background:#fafcfd;color:#71858f;text-align:center}
@media(max-width:900px){
  .domain-service-group>summary{grid-template-columns:40px minmax(160px,1fr) minmax(110px,.7fr) auto 62px;gap:10px;padding-right:14px;padding-left:14px}
  .domain-services-head,.domain-service-row{grid-template-columns:minmax(170px,1.4fr) minmax(100px,.8fr) 55px 100px 105px 90px;gap:8px;padding-right:14px;padding-left:14px}
}
@media(max-width:680px){
  .customer-dashboard .dashboard-shortcuts>a{min-height:118px;padding:13px}
  .customer-dashboard .billing-alert,.customer-dashboard .renewal-alert{padding:14px}
  .services-title{align-items:flex-start;flex-direction:column;gap:9px}
  .domain-service-group>summary{grid-template-columns:40px minmax(0,1fr) auto;padding:13px}
  .domain-expiry{grid-column:2}
  .domain-service-group>summary>.badge{grid-column:3;grid-row:1}
  .domain-toggle{grid-column:1/-1;justify-content:center;padding-top:8px;border-top:1px solid #e7edef}
  .domain-services-head{display:none}
  .domain-service-row{grid-template-columns:1fr 1fr;gap:10px 16px;padding:14px}
  .domain-service-row>span:before{content:attr(data-label);display:block;margin-bottom:3px;color:#8b9aa2;font-size:9px;font-weight:700}
  .domain-service-row>span:first-child{grid-column:1/-1;padding-bottom:8px;border-bottom:1px dashed #dce5e9}
}

/* v40: admin edit and delete controls for issued proformas */
.proforma-edit-box{flex-basis:100%;width:100%;margin-top:8px;border:1px solid #d8e4e9;border-radius:13px;background:#fff}
.proforma-edit-box>summary{padding:12px 14px;cursor:pointer;list-style:none;color:#31576a;font-size:12px;font-weight:900}
.proforma-edit-box>summary::-webkit-details-marker{display:none}
.proforma-edit-box>summary:after{content:"⌄";float:left;color:#82949d;font-size:16px;transition:transform .18s ease}
.proforma-edit-box[open]>summary{border-bottom:1px solid #e1e8ec;background:#f7fafb}
.proforma-edit-box[open]>summary:after{transform:rotate(180deg)}
.proforma-edit-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:15px}
.proforma-edit-form label{margin:0;font-size:11px;color:#58717e}
.proforma-edit-form input,.proforma-edit-form select,.proforma-edit-form textarea{margin-top:5px;background:#fff}
.proforma-edit-form>.wide{grid-column:1/-1}
.proforma-edit-form>button{width:max-content;min-width:150px;box-shadow:none}
.edit-official-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;grid-column:1/-1;padding:13px;border:1px solid #cfe0e8;border-radius:12px;background:#f6fafc}
.edit-official-fields[hidden]{display:none}
.edit-official-fields>.wide{grid-column:1/-1}
.edit-file-field{padding:11px;border:1px dashed #c7d7df;border-radius:11px;background:#fafcfd}
.edit-file-field small{display:block;margin-top:5px;color:#7c8e97}
.delete-proforma-form{margin-right:auto!important}
.delete-proforma-form .danger{box-shadow:none}
@media(max-width:900px){.proforma-edit-form,.edit-official-fields{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.proforma-edit-form,.edit-official-fields{grid-template-columns:1fr}.proforma-edit-form>.wide,.edit-official-fields>.wide{grid-column:auto}.proforma-edit-form>button{width:100%}.delete-proforma-form{margin-right:0!important}}

/* v41: recoverable financial archive */
.billing-title-actions{display:flex;align-items:center;gap:8px}
.billing-title-actions>span{padding:5px 10px;border-radius:20px;background:#eaf1f4;color:#5c7480;font-size:12px;font-weight:700}
.billing-title-actions>a{padding:7px 11px;border:1px solid #d5e1e6;border-radius:10px;background:#fff;color:#486572;font-size:11px;font-weight:800}
.billing-title-actions>a:hover{border-color:#b8ccd5;color:var(--nj-orange-dark)}
.archive-button,.restore-button{border:0;box-shadow:none!important}
.archive-button{background:#fff2df!important;color:#8a5a00!important}
.archive-button:hover{background:#ffe6bd!important}
.restore-button{background:#e7f7ee!important;color:#176845!important}
.restore-button:hover{background:#d2f0df!important}
.archived-note{display:inline-flex;align-items:center;padding:9px 12px;border-radius:10px;background:#f1f4f5;color:#687b85;font-size:11px}
.restore-proforma-form{margin:0!important}
@media(max-width:620px){.billing-title-actions{align-items:stretch;flex-direction:column}.billing-title-actions>a{text-align:center}.invoice-page .title{align-items:flex-start}}
@media(max-width:800px){.panel-sidebar{z-index:30;top:0;right:0;bottom:0;width:min(290px,86vw);padding:15px;border-radius:24px 0 0 24px}.has-sidebar .container{width:min(100% - 22px,1240px);margin:20px auto 70px}}
.login-turnstile{display:flex;justify-content:center;align-items:center;min-height:65px;margin:2px 0 12px;direction:ltr}

/* v43: full-width proforma issue form and dedicated payment accounts */
.proforma-issue-panel{margin-top:18px;padding:0;overflow:hidden;box-shadow:none}
.proforma-issue-panel>.title{margin:0;padding:19px 22px;border-bottom:1px solid var(--nj-line);background:#fff}
.proforma-issue-panel>.title>div h2{margin:0;color:var(--nj-navy)}
.proforma-issue-panel>.title>div p{margin:5px 0 0;color:var(--nj-muted);font-size:12px}
.proforma-create-v43{display:grid;grid-template-columns:1fr;gap:15px;padding:20px;background:#f8fafb}
.proforma-form-section{padding:18px;border:1px solid #e1e9ed;border-radius:15px;background:#fff}
.proforma-section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:15px}
.proforma-section-heading>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#fff0e7;color:var(--nj-orange-dark);font-size:13px;font-weight:900}
.proforma-section-heading h3{margin:0;color:var(--nj-navy);font-size:16px}
.proforma-section-heading p{margin:4px 0 0;color:#7a8e98;font-size:11px;line-height:1.7}
.proforma-primary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-items:start}
.proforma-primary-grid label,.proforma-document-grid label{margin:0}
.form-span-2{grid-column:span 2}
.proforma-document-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:15px;align-items:start}
.proforma-document-grid textarea{min-height:105px}
.proforma-create-v43 .official-billing-fields{grid-template-columns:repeat(3,minmax(0,1fr));padding:18px}
.proforma-create-v43 .official-billing-fields .proforma-section-heading{grid-column:1/-1}
.proforma-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border:1px solid #d9e5ea;border-radius:14px;background:#fff}
.proforma-submit-bar p{margin:0;color:#617985;font-size:12px}
.proforma-submit-bar button{width:auto;min-width:190px;margin:0}
.payment-settings-page{max-width:1320px}
.payment-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.payment-account-card{margin:0;padding:21px;box-shadow:none}
.payment-account-heading{display:flex;align-items:flex-start;gap:12px;padding-bottom:17px;border-bottom:1px solid var(--nj-line)}
.payment-account-heading h2{margin:0;color:var(--nj-navy);font-size:19px}
.payment-account-heading p{margin:6px 0 0;color:var(--nj-muted);font-size:12px;line-height:1.8}
.account-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:13px;background:#fff0e7;color:var(--nj-orange);font-size:24px;font-weight:900}
.account-icon.iban{background:#eaf6fb;color:#176d91}
.account-toggle{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:16px 0;padding:13px 14px;border-radius:12px;background:#f6f8f9;cursor:pointer}
.account-toggle span{display:block}.account-toggle b{display:block;color:#294858;font-size:13px}.account-toggle small{display:block;margin-top:4px;color:#82939c;font-size:10px;font-weight:500}.account-toggle input{width:20px;height:20px;margin:0;accent-color:var(--nj-orange)}
.payment-account-fields{display:grid;gap:11px}.payment-account-fields label{margin:0}.payment-account-fields input{margin-top:6px;background:#fff}
.payment-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:17px;padding:16px 18px;border:1px solid #dbe6ea;border-radius:14px;background:#fff}
.payment-settings-footer>div{display:grid;gap:3px}.payment-settings-footer b{color:var(--nj-navy)}.payment-settings-footer span{color:#718690;font-size:11px}.payment-settings-footer button{width:auto;min-width:175px;margin:0}
@media(max-width:1050px){.proforma-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-account-grid{grid-template-columns:1fr}}
@media(max-width:650px){.proforma-create-v43{padding:12px}.proforma-form-section{padding:14px}.proforma-primary-grid,.proforma-document-grid,.proforma-create-v43 .official-billing-fields{grid-template-columns:1fr}.form-span-2,.proforma-create-v43 .official-billing-fields .wide{grid-column:auto}.proforma-submit-bar,.payment-settings-footer{align-items:stretch;flex-direction:column}.proforma-submit-bar button,.payment-settings-footer button{width:100%}.payment-account-card{padding:16px}.account-toggle{align-items:flex-start}}

/* v44: cleaner official invoice workspace */
.invoice-page{max-width:1320px}
.invoice-heading-v44{margin-bottom:17px}
.invoice-create-panel{padding:0;overflow:hidden;box-shadow:none}
.invoice-create-panel>.title{margin:0;padding:19px 22px;border-bottom:1px solid var(--nj-line)}
.invoice-create-panel>.title>div h2{margin:0;color:var(--nj-navy)}
.invoice-create-panel>.title>div p{margin:5px 0 0;color:var(--nj-muted);font-size:12px}
.invoice-upload-v44{display:grid;grid-template-columns:1fr;gap:15px;padding:20px;background:#f8fafb}
.invoice-form-section{padding:18px;border:1px solid #e1e9ed;border-radius:15px;background:#fff}
.invoice-section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:15px}
.invoice-section-heading>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#fff0e7;color:var(--nj-orange-dark);font-size:13px;font-weight:900}
.invoice-section-heading h3{margin:0;color:var(--nj-navy);font-size:16px}
.invoice-section-heading p{margin:4px 0 0;color:#7a8e98;font-size:11px;line-height:1.7}
.invoice-primary-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.1fr;gap:13px;align-items:start}
.invoice-primary-grid label,.invoice-document-grid label{margin:0}
.invoice-customer-picker{min-width:0}
.invoice-document-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:15px;align-items:stretch}
.invoice-document-grid textarea{min-height:112px}
.invoice-document-grid .file-field{min-height:100%;align-content:start}
.invoice-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border:1px solid #d9e5ea;border-radius:14px;background:#fff}
.invoice-submit-bar p{margin:0;color:#617985;font-size:12px}
.invoice-submit-bar button{width:auto;min-width:220px;margin:0}
.invoice-list-panel-v44{padding:0;overflow:hidden;box-shadow:none}
.invoice-list-panel-v44>.title{margin:0;padding:18px 20px;border-bottom:1px solid var(--nj-line)}
.invoice-list-panel-v44 .invoice-search{margin:0;padding:14px 20px;border-bottom:1px solid var(--nj-line);background:#fafbfc}
.invoice-table-head-v44,.invoice-list-panel-v44 .invoice-item{display:grid;grid-template-columns:54px minmax(220px,1.35fr) minmax(125px,.7fr) minmax(170px,.9fr) auto;align-items:center;gap:15px}
.invoice-table-head-v44{padding:12px 20px;border-bottom:1px solid var(--nj-line);background:#f4f7f8;color:#6b7f89;font-size:11px;font-weight:800}
.invoice-list-panel-v44 .invoice-list{gap:0}
.invoice-list-panel-v44 .invoice-item{padding:15px 20px;border:0;border-bottom:1px solid var(--nj-line);border-radius:0;box-shadow:none}
.invoice-list-panel-v44 .invoice-item:last-child{border-bottom:0}
.invoice-list-panel-v44 .invoice-item:hover{transform:none;background:#fbfcfd;box-shadow:none}
.invoice-list-panel-v44 .invoice-pdf{width:48px;height:53px;border-radius:11px}
.invoice-list-panel-v44 .invoice-main h3{font-size:16px}
.invoice-list-panel-v44 .invoice-actions>a,.invoice-list-panel-v44 .invoice-actions button{min-height:38px;padding:8px 12px;font-size:12px;box-shadow:none}
@media(max-width:1050px){.invoice-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-customer-picker{grid-row:auto}.invoice-table-head-v44{display:none}.invoice-list-panel-v44 .invoice-item{grid-template-columns:50px minmax(0,1.4fr) minmax(120px,.7fr) minmax(150px,.9fr)}.invoice-list-panel-v44 .invoice-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:650px){.invoice-upload-v44{padding:12px}.invoice-form-section{padding:14px}.invoice-primary-grid,.invoice-document-grid{grid-template-columns:1fr}.invoice-submit-bar{align-items:stretch;flex-direction:column}.invoice-submit-bar button{width:100%}.invoice-list-panel-v44 .invoice-item{grid-template-columns:45px 1fr;padding:14px 15px}.invoice-list-panel-v44 .invoice-main{grid-column:2}.invoice-list-panel-v44 .invoice-meta{grid-column:2}.invoice-list-panel-v44 .invoice-actions{grid-column:1/-1;justify-content:stretch}.invoice-list-panel-v44 .invoice-actions>a,.invoice-list-panel-v44 .invoice-actions form,.invoice-list-panel-v44 .invoice-actions button{width:100%;text-align:center}}
