.billing-portal-shell{min-height:100vh;color:var(--ink);background:#f7f9fc}.billing-portal-header{z-index:40;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border-top:5px solid #4f92f4;border-bottom:1px solid #dce3ee;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;min-height:76px;padding:10px clamp(18px,4vw,64px);display:grid;position:sticky;top:0;box-shadow:0 4px 18px #192d500f}.billing-portal-brand{color:#1e3156;align-items:center;gap:11px;display:flex}.billing-portal-brand>span{color:#fff;background:linear-gradient(145deg,#4f92f4,#3475dd);border-radius:12px;place-items:center;width:43px;height:43px;font-weight:950;display:grid;box-shadow:0 7px 18px #4f92f447}.billing-portal-brand strong,.billing-portal-brand small{display:block}.billing-portal-brand strong{font-size:17px}.billing-portal-brand small{color:#74839a;margin-top:2px;font-size:9px}.billing-portal-header nav{justify-content:center;gap:26px;display:flex}.billing-portal-header nav a{color:#52627a;font-size:11px;font-weight:800}.billing-portal-header nav a:hover{color:#3475dd}.billing-portal-user{align-items:center;gap:10px;display:flex}.billing-portal-user>div small,.billing-portal-user>div b{display:block}.billing-portal-user>div small{color:#8a97aa;font-size:8px}.billing-portal-user>div b{text-overflow:ellipsis;white-space:nowrap;max-width:150px;font-size:11px;overflow:hidden}.billing-portal-user button{color:#546175;min-height:34px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe2ec;border-radius:9px;padding:7px 10px;font-size:9px;font-weight:800}.portal-health{background:#aab4c2;border-radius:999px;width:8px;height:8px}.portal-health.ready{background:#21aa79;box-shadow:0 0 0 4px #e2f6ef}.portal-health.degraded{background:#e6a526}.portal-health.offline{background:#db5361}.billing-portal-main{width:min(1240px,100% - 34px);margin:0 auto;padding:24px 0 56px}.company-picker-hero{text-align:center;max-width:720px;margin:20px auto 30px}.picker-mark{color:#fff;background:linear-gradient(145deg,#4f92f4,#3475dd);border-radius:20px;place-items:center;width:67px;height:67px;margin:0 auto 12px;font-size:23px;font-weight:950;display:grid;box-shadow:0 13px 30px #3170dc3b}.company-picker-hero>span{color:#4f92f4;letter-spacing:.09em;text-transform:uppercase;font-size:10px;font-weight:900}.company-picker-hero h1{color:#1e3156;margin:8px 0 9px;font-size:30px}.company-picker-hero p{color:#75839a;margin:0;line-height:1.8}.company-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;display:grid}.company-picker-card{border:1px solid #dce3ee;border-top:4px solid var(--company-color);color:#1d2d4d;background:#fff;border-radius:18px;min-height:230px;padding:23px;transition:all .18s;position:relative;box-shadow:0 8px 25px #233c640f}.company-picker-card:hover{border-color:var(--company-color);transform:translateY(-4px);box-shadow:0 17px 34px #233c6421}.company-picker-number{color:#a8b3c4;font-size:11px;font-weight:900;position:absolute;top:18px;left:18px}.company-picker-logo{width:54px;height:54px;color:var(--company-color);background:#edf4ff;border-radius:15px;place-items:center;margin-bottom:18px;font-size:22px;font-weight:950;display:grid}.company-picker-card h2{min-height:45px;margin:0 0 6px;font-size:15px;line-height:1.5}.company-picker-card p{color:#8793a5;height:26px;margin:0;font-size:9px}.company-picker-card>div:last-child{border-top:1px solid #eef1f5;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;padding-top:14px;display:flex}.company-picker-card>div:last-child span{color:#99a4b4;font-size:9px}.company-picker-card>div:last-child b{color:var(--company-color);font-size:9px}.company-picker-admin{color:#8692a4;justify-content:center;gap:12px;margin:25px auto 0;font-size:10px;display:flex}.company-picker-admin a{color:#3475dd;font-weight:900}.portal-company-identity{background:#fff;border:1px solid #dce3ee;border-radius:15px;grid-template-columns:170px 1fr 280px;align-items:center;gap:22px;margin-bottom:18px;padding:15px 20px;display:grid}.portal-company-identity>a{color:#397de4;font-size:10px;font-weight:900}.portal-company-identity>div{text-align:center}.portal-company-identity small,.portal-company-identity h2,.portal-company-identity p{margin:0;display:block}.portal-company-identity small{color:#8b97a9;font-size:8px}.portal-company-identity h2{color:#2c66c4;margin:3px 0;font-size:16px}.portal-company-identity p{color:#718096;font-size:9px}.portal-company-identity>span{color:#3876d3;text-align:center;background:#eef6ff;border-radius:9px;padding:8px 11px;font-size:8px;font-weight:800}.invoice-portal-home{gap:25px;display:grid}.invoice-portal-hero{color:#fff;background:linear-gradient(115deg,#1d2c4f,#2a3859);border-radius:20px;justify-content:space-between;align-items:center;min-height:270px;padding:45px clamp(30px,6vw,82px);display:flex;position:relative;overflow:hidden;box-shadow:0 18px 45px #1d2c4f33}.invoice-portal-hero:after{content:"";background:#4f92f4;border-radius:50%;width:70%;height:140px;position:absolute;bottom:-85px;right:-5%;box-shadow:0 -20px #6ebcf59e}.invoice-portal-hero>div:first-child{z-index:2;position:relative}.invoice-portal-hero span{color:#9cc7ff;font-size:12px;font-weight:900}.invoice-portal-hero h1{max-width:760px;margin:8px 0 13px;font-size:38px;line-height:1.35}.invoice-portal-hero p{color:#d8e2f2;margin:0}.portal-hero-mark{z-index:2;background:#ffffff1f;border:1px solid #ffffff59;border-radius:25px;place-items:center;width:110px;height:110px;font-size:34px;font-weight:950;display:grid;position:relative}.invoice-portal-actions{z-index:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:min(760px,90%);margin:-72px auto 0;display:grid;position:relative}.invoice-portal-actions button{color:#1c2d4e;cursor:pointer;background:#fff;border:1px solid #d7dfea;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:190px;transition:all .18s;display:flex;box-shadow:0 14px 35px #233a5e21}.invoice-portal-actions button:hover{border-color:#76a9f5;transform:translateY(-4px)}.portal-action-icon{color:#4f92f4;background:#dceaff;border-radius:18px;place-items:center;width:62px;height:62px;font-size:31px;display:grid}.invoice-portal-actions b{font-size:22px}.invoice-portal-actions small{color:#8a96a8}.portal-secondary-link{text-align:center}.portal-secondary-link a{color:#58739a;font-size:10px;font-weight:800}.portal-workspace-head{border-bottom:2px solid #e0e7f1;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;margin:0 0 18px;padding:13px 17px;display:grid}.portal-workspace-head>div{text-align:center}.portal-workspace-head>div span,.portal-workspace-head>div small{display:block}.portal-workspace-head>div span{color:#397de4;font-size:14px;font-weight:900}.portal-workspace-head>div small{color:#8793a5;margin-top:3px;font-size:8px}.portal-workspace-head>.btn{justify-self:end}.portal-back{color:#397de4;font:inherit;cursor:pointer;background:0 0;border:0;justify-self:start;font-size:10px;font-weight:900}.portal-back.inline{margin:15px auto;display:block}.create-invoice-workspace{gap:18px;display:grid}.create-stepper{justify-content:center;align-items:center;gap:15px;margin-bottom:4px;display:flex}.create-stepper span{color:#9aa5b4;align-items:center;gap:7px;font-size:9px;font-weight:900;display:flex}.create-stepper span b{background:#e8ecf2;border-radius:999px;place-items:center;width:25px;height:25px;display:grid}.create-stepper span.active{color:#3678df}.create-stepper span.active b{color:#fff;background:#4f92f4}.create-stepper span.done{color:#328966}.create-stepper span.done b{color:#1e8462;background:#daf3e9}.create-stepper i{color:#c3cad5;font-style:normal}.payment-method-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:min(760px,100%);margin:0 auto;display:grid}.payment-method-grid button{color:#1e2e4d;cursor:pointer;background:#fff;border:1px solid #d8e0eb;border-radius:19px;align-content:center;place-items:center;gap:12px;min-height:220px;display:grid;box-shadow:0 12px 28px #243c6214}.payment-method-grid button:hover{border:2px solid #4f92f4}.payment-method-grid span{color:#397de4;background:#e4efff;border-radius:18px;place-items:center;width:63px;height:63px;font-size:16px;font-weight:900;display:grid}.payment-method-grid b{font-size:22px}.payment-method-grid small{color:#8693a7}.fawtara-form{border-top:5px solid #4f92f4;width:min(1060px,100%);margin:0 auto}.fawtara-form-title{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.fawtara-form-title span{color:#4f92f4;font-size:9px;font-weight:900}.fawtara-form-title h2{margin:4px 0}.fawtara-form-title>strong{color:#3475dd;background:#e9f2ff;border-radius:10px;padding:10px 13px;font-size:10px}.fawtara-form>.fawtara-form-title{grid-template-columns:1fr auto 1fr;display:grid}.fawtara-form>.fawtara-form-title>div{grid-column:1;justify-self:start}.fawtara-form>.fawtara-form-title>.invoice-kind-reminder{border-radius:12px;grid-column:2;justify-self:center;padding:13px 22px;font-size:15px;line-height:1.35;box-shadow:0 8px 22px #3475dd24}.fawtara-section-title{color:#4285e7;border-bottom:1px solid #dce3ee;margin:23px 0 13px;padding:0 0 9px;font-size:14px}.readonly-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.readonly-summary>div{background:#f4f6f9;border-radius:10px;padding:12px}.readonly-summary span,.readonly-summary b{display:block}.readonly-summary span{color:#8c98a9;font-size:8px}.readonly-summary b{margin-top:5px;font-size:10px}.readonly-summary.buyer{background:#f7fbff;margin-top:10px}.official-line{background:#fbfcfe;border-radius:13px}.official-line .line-fields{grid-template-columns:1fr 1.5fr repeat(4,minmax(110px,.7fr))}.add-line{margin:12px 0}.notes-field{gap:6px;margin-top:10px;display:grid}.official-invoice-list{gap:16px;display:grid}.invoice-list-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.invoice-list-kpis button{color:#397de4;cursor:pointer;background:#fff;border:1px solid #dae1eb;border-radius:13px;min-height:90px;padding:15px}.invoice-list-kpis button:hover,.invoice-list-kpis button.active{background:#f4f8ff;border-color:#4f92f4}.invoice-list-kpis span,.invoice-list-kpis b{display:block}.invoice-list-kpis span{font-size:10px}.invoice-list-kpis b{color:#1e3156;margin-top:7px;font-size:21px}.official-list-toolbar{border-top:1px solid #dce3ee;justify-content:space-between;align-items:flex-end;gap:15px;padding-top:8px;display:flex}.official-list-toolbar>div{gap:10px;display:flex}.official-list-toolbar label{color:#748198;gap:5px;font-size:8px;display:grid}.official-list-toolbar input{width:260px}.official-list-toolbar select{width:180px}.official-list-toolbar>span{color:#8793a5;font-size:9px}.official-table-wrap{padding:0;overflow:auto}.official-invoice-table{min-width:1120px}.official-invoice-table th{color:#263650;background:#f4f6f9;font-size:9px}.official-invoice-table td{font-size:9px}.table-action-menu{flex-wrap:wrap;gap:5px;display:flex}.table-action-menu button,.table-action-menu a{color:#426184;font:inherit;cursor:pointer;background:#fff;border:1px solid #d9e0eb;border-radius:7px;padding:6px 8px;font-size:8px;font-weight:900}.table-action-menu .return-action{color:#b83c49;border-color:#ebb9bf}.table-action-menu .primary{color:#fff;background:#4f92f4;border-color:#4f92f4}.import-portal-hero{margin-bottom:17px}.workflow-intro.centered{text-align:center}.invoice-kind-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:min(880px,100%);margin:0 auto;display:grid}.invoice-kind-grid button{color:#1f2d4a;cursor:pointer;background:#fff;border:1px solid #d8e0eb;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:13px;min-height:260px;transition:all .18s;display:flex;box-shadow:0 13px 32px #233c6017}.invoice-kind-grid button:hover{border-color:#6aa2f4;transform:translateY(-3px)}.invoice-kind-grid button.new{color:#fff;background:#4f92f4}.invoice-kind-grid button>span{color:#4384e8;background:#e4efff;border-radius:20px;place-items:center;width:76px;height:76px;font-size:35px;display:grid}.invoice-kind-grid button.new>span{color:#fff;background:#ffffff38}.invoice-kind-grid button>b{font-size:24px}.invoice-kind-grid button>small{color:#8592a5}.invoice-kind-grid button.new>small{color:#e6f0ff}.return-picker-toolbar{justify-content:space-between;align-items:center;gap:14px;display:flex}.return-picker-toolbar input{width:min(520px,100%)}.return-picker-table{padding:0;overflow:auto}.return-picker-table table{min-width:850px}.return-form-title{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.return-form-title span{color:#4f92f4;font-size:9px;font-weight:900}.return-form-title h2{margin:4px 0}.return-form-title>strong{color:#3979d9;background:#eaf2ff;border-radius:9px;padding:9px 12px;font-size:10px}.return-header-fields{margin-bottom:18px}.return-submit{justify-content:center;gap:10px;margin-top:20px;display:flex}.buyer-entry{grid-template-columns:repeat(2,minmax(0,1fr))}.buyer-entry label small{color:#9aa5b4;font-size:8px;font-weight:500;display:inline}.buyer-help{color:#78869a;margin:8px 0 0;font-size:9px}.single-line-entry{background:#fbfcfe;border:1px solid #d8e0eb;border-radius:14px;padding:18px}.classification-field{gap:6px;margin-bottom:12px;display:grid}.line-entry-grid{grid-template-columns:1.5fr repeat(4,minmax(110px,.8fr));align-items:end;gap:10px;display:grid}.line-entry-grid label{gap:6px;display:grid}.line-entry-grid .checkline{grid-column:1/-1;display:flex}.line-add-button{color:#fff;width:34%;min-width:260px;font:inherit;cursor:pointer;background:#4f92f4;border:0;border-radius:8px;margin:18px auto 0;padding:11px;font-size:11px;font-weight:900;display:block}.line-add-button:hover{background:#367bdf}.added-lines-table{border:1px solid #dbe2ec;border-radius:13px;margin-top:16px;overflow:hidden}.added-lines-heading{background:#f4f7fb;justify-content:space-between;align-items:center;padding:12px 15px;display:flex}.added-lines-heading span{color:#7c899d;font-size:9px}.added-lines-table th{background:#f7f9fc;font-size:9px}.added-lines-table td{font-size:9px}.tax-inclusive-control{cursor:default;grid-column:1/-1;align-items:center;gap:9px;width:max-content;max-width:100%;display:flex}.tax-inclusive-control input{cursor:pointer;height:20px;margin:0;width:20px!important;min-height:20px!important}.tax-inclusive-control span{color:var(--ink);-webkit-user-select:none;user-select:none;font-size:13px;font-weight:800}.inclusive-price-breakdown{color:#244466;background:#edf6ff;border:1px solid #b9d7ff;border-radius:10px;flex-wrap:wrap;grid-column:1/-1;gap:12px;padding:11px 13px;display:flex}.inclusive-price-breakdown span{align-items:center;gap:7px;display:flex}.inclusive-price-breakdown b{color:#1269d3;font-size:12px}.inclusive-price-breakdown.full{width:100%}html[data-theme=dark] .inclusive-price-breakdown{color:#dcecff;background:#132944;border-color:#315b8d}html[data-theme=dark] .inclusive-price-breakdown b{color:#78b7ff}html[data-theme=dark] .billing-portal-shell{background:#0c1422}html[data-theme=dark] .billing-portal-header,html[data-theme=dark] .portal-company-identity,html[data-theme=dark] .company-picker-card,html[data-theme=dark] .invoice-portal-actions button,html[data-theme=dark] .payment-method-grid button,html[data-theme=dark] .invoice-kind-grid button,html[data-theme=dark] .invoice-list-kpis button,html[data-theme=dark] .table-action-menu button,html[data-theme=dark] .table-action-menu a{color:#e8eef8;background:#121d2e;border-color:#26344a}html[data-theme=dark] .billing-portal-user button{color:#dce5f2;background:#162236;border-color:#2a3850}html[data-theme=dark] .readonly-summary>div,html[data-theme=dark] .official-line,html[data-theme=dark] .single-line-entry{background:#111c2d}html[data-theme=dark] .official-invoice-table th,html[data-theme=dark] .added-lines-heading,html[data-theme=dark] .added-lines-table th{color:#dce5f2;background:#162236}html[data-theme=dark] .invoice-list-kpis button.active{background:#142a49}html[data-theme=dark] .fawtara-form-title>strong,html[data-theme=dark] .return-form-title>strong{color:#9fc6ff;background:#17345c}@media (max-width:1000px){.billing-portal-header{grid-template-columns:auto 1fr}.billing-portal-header nav{display:none}.company-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-company-identity{grid-template-columns:140px 1fr}.portal-company-identity>span{display:none}.official-line .line-fields,.line-entry-grid,.readonly-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.billing-portal-header{grid-template-columns:1fr}.billing-portal-user{justify-content:space-between}.billing-portal-user>div{display:none}.billing-portal-main{width:min(100% - 20px,1240px);padding-top:12px}.company-picker-grid,.invoice-portal-actions,.payment-method-grid,.invoice-kind-grid,.invoice-list-kpis,.readonly-summary,.buyer-entry{grid-template-columns:1fr}.company-picker-hero h1{font-size:24px}.invoice-portal-hero{min-height:250px;padding:30px 23px}.invoice-portal-hero h1{font-size:27px}.portal-hero-mark{display:none}.invoice-portal-actions{margin-top:-45px}.portal-company-identity{text-align:center;grid-template-columns:1fr}.portal-workspace-head{grid-template-columns:1fr}.portal-workspace-head>.btn,.portal-back{justify-self:center}.create-stepper{gap:6px}.create-stepper span{font-size:8px}.official-list-toolbar,.official-list-toolbar>div,.return-picker-toolbar,.return-submit{flex-direction:column;align-items:stretch}.official-list-toolbar input,.official-list-toolbar select,.return-picker-toolbar input{width:100%}.official-line .line-fields,.line-entry-grid{grid-template-columns:1fr}.line-add-button{width:100%;min-width:0}.company-picker-admin{flex-direction:column;align-items:center}.invoice-portal-hero:after{display:none}}.company-service-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;width:min(1160px,96%)}.company-service-actions button,.company-service-actions>a{color:#1c2d4e;text-align:center;cursor:pointer;background:#fff;border:1px solid #d7dfea;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:176px;padding:18px;transition:all .18s;display:flex;box-shadow:0 14px 35px #233a5e21}.company-service-actions>a:hover{border-color:#76a9f5;transform:translateY(-4px)}.company-service-actions b{font-size:18px}.company-service-actions small{color:#8a96a8;min-height:30px;font-size:9px;line-height:1.65}.company-service-actions .portal-action-icon{width:57px;height:57px;font-size:26px}.company-service-link.expenses .portal-action-icon{color:#cf7c1e;background:#fff0df}.company-service-link.payroll .portal-action-icon{color:#23886c;background:#e7f7f1}.company-service-link.checks .portal-action-icon{color:#7254c8;background:#f0ebff}html[data-theme=dark] .company-service-actions>a{color:#e8eef8;background:#121d2e;border-color:#26344a}@media (max-width:1000px){.company-service-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:680px){.company-service-actions{grid-template-columns:1fr}.company-service-actions button,.company-service-actions>a{min-height:145px}}.module-portal-head{background:#fff;border:1px solid #dce3ee;border-top:4px solid #4f92f4;border-radius:16px;grid-template-columns:180px 1fr 180px;align-items:center;gap:18px;margin-bottom:20px;padding:22px 26px;display:grid;box-shadow:0 8px 26px #233c640f}.module-portal-head>a{color:#397de4;font-size:10px;font-weight:900}.module-portal-head>div{text-align:center}.module-portal-head span{color:#4f92f4;font-size:10px;font-weight:900}.module-portal-head h1{color:#1e3156;margin:5px 0;font-size:25px}.module-portal-head p{color:#7a8799;margin:0;font-size:10px}.module-portal-head>strong{color:#3475dd;background:#edf4ff;border-radius:10px;justify-self:end;padding:10px 14px;font-size:10px}html[data-theme=dark] .module-portal-head{background:#121d2e;border-color:#26344a}html[data-theme=dark] .module-portal-head h1{color:#e8eef8}@media (max-width:680px){.module-portal-head{text-align:center;grid-template-columns:1fr}.module-portal-head>a,.module-portal-head>strong{justify-self:center}}.simple-module-actions{justify-content:center;gap:11px;margin:0 auto 18px;display:flex}.simple-module-actions button{color:#263a5d;min-width:175px;font:inherit;cursor:pointer;background:#fff;border:1px solid #d8e0eb;border-radius:11px;justify-content:center;align-items:center;gap:9px;padding:13px 17px;font-size:11px;font-weight:900;display:flex}.simple-module-actions button span{color:#397de4;background:#e9f2ff;border-radius:8px;place-items:center;width:28px;height:28px;display:grid}.simple-module-actions button.active{color:#286acb;background:#f1f7ff;border-color:#4f92f4}.simple-workspace-back{margin:-4px 0 12px}.simple-workspace-back button{color:#397de4;font:inherit;cursor:pointer;background:0 0;border:0;font-size:10px;font-weight:900}.simple-entry-form{width:min(960px,100%);margin:0 auto}.simple-form-submit{justify-content:center;margin-top:18px;display:flex}.simple-form-submit .btn{min-width:220px}.simple-ledger{padding:0;overflow:hidden}.simple-ledger table{min-width:1080px}.simple-ledger th{background:#f4f7fb;font-size:9px}.simple-ledger td{font-size:9px}.ledger-kind{color:#b96b18;background:#fff1df;border-radius:999px;padding:5px 8px;font-weight:900;display:inline-block}.ledger-kind.purchase{color:#316fc9;background:#e8f2ff}.table-receipt-button{color:#23775e;font:inherit;cursor:pointer;background:#effaf6;border:1px solid #8fc6b4;border-radius:7px;padding:6px 9px;font-size:8px;font-weight:900}.table-receipt-button:disabled{opacity:.45;cursor:not-allowed}.portal-history-back{color:#397de4;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe2ec;border-radius:9px;padding:7px 10px;font-size:9px;font-weight:900}html[data-theme=dark] .simple-module-actions button,html[data-theme=dark] .simple-entry-form,html[data-theme=dark] .simple-ledger,html[data-theme=dark] .portal-history-back{color:#e8eef8;background:#121d2e;border-color:#26344a}html[data-theme=dark] .simple-ledger th{color:#dce5f2;background:#162236}@media (max-width:680px){.simple-module-actions{flex-direction:column;align-items:stretch}.simple-module-actions button{width:100%}}.global-history-back{color:#397de4;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe2ec;border-radius:9px;margin:0 0 14px;padding:8px 12px;font-size:11px;font-weight:900}html[data-theme=dark] .global-history-back{color:#e8eef8;background:#121d2e;border-color:#26344a}.added-lines-table table{min-width:1450px}.official-invoice-summary{background:#fff;border:1px solid #dbe2ec;border-radius:11px;width:min(620px,100%);margin-inline-start:auto;overflow:hidden}.official-invoice-summary>div{border-bottom:1px solid #dbe2ec;grid-template-columns:1.45fr .75fr;align-items:center;display:grid}.official-invoice-summary>div:last-child{border-bottom:0}.official-invoice-summary span,.official-invoice-summary b{padding:12px 15px}.official-invoice-summary span{color:#263a5d;background:#f5f7fa;font-size:10px;font-weight:900}.official-invoice-summary b{text-align:center;font-size:13px}.official-invoice-summary .grand{background:#eef4fb}.official-invoice-summary .grand b{color:#174f9e;font-size:16px}html[data-theme=dark] .official-invoice-summary{background:#121d2e;border-color:#26344a}html[data-theme=dark] .official-invoice-summary>div{border-color:#26344a}html[data-theme=dark] .official-invoice-summary span{color:#dce5f2;background:#162236}html[data-theme=dark] .official-invoice-summary .grand{background:#142a49}@media (max-width:680px){.official-invoice-summary{margin-inline:0}.official-invoice-summary>div{grid-template-columns:1fr auto}}.company-picker-hero{background:linear-gradient(145deg,#fff,#f5f8fd);border:1px solid #dce5f1;border-radius:24px;max-width:900px;margin:18px auto 32px;padding:30px 28px;position:relative;overflow:hidden;box-shadow:0 18px 50px #233c6414}.company-picker-hero:before{content:"";background:linear-gradient(90deg,#4f8ff7,#6e7ae8,#37a8d8,#38a77c,#d49a38,#d86886);height:5px;position:absolute;inset:0 0 auto}.company-picker-hero:after{content:"";pointer-events:none;background:radial-gradient(circle,#4f8ff729,#0000 70%);border-radius:50%;width:230px;height:230px;position:absolute;top:-90px;left:-70px}.company-picker-summary{flex-wrap:wrap;justify-content:center;gap:9px;margin-top:18px;display:flex;position:relative}.company-picker-summary span{color:#5e6e86;background:#fff;border:1px solid #d9e5f5;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:800}.company-picker-summary b{color:#3475dd;font-size:12px}.company-picker-grid{gap:18px}.company-picker-card{isolation:isolate;background:linear-gradient(145deg,#fff 60%,color-mix(in srgb,var(--company-color) 7%,#fff));border-top:0;min-height:252px;padding:26px;overflow:hidden;box-shadow:0 12px 32px #233c6414}.company-picker-card:before{content:"";z-index:-1;background:linear-gradient(90deg,var(--company-color),var(--company-accent,var(--company-color)));height:6px;position:absolute;inset:0 0 auto}.company-picker-card:after{content:"";z-index:-1;background:color-mix(in srgb,var(--company-color) 10%,transparent);border-radius:50%;width:155px;height:155px;position:absolute;bottom:-64px;left:-58px}.company-picker-card:hover{box-shadow:0 21px 45px color-mix(in srgb,var(--company-color) 18%,#233c641a)}.company-picker-card:hover .company-picker-logo{transform:scale(1.05)rotate(-2deg)}.company-picker-number{background:color-mix(in srgb,var(--company-color) 9%,#fff);color:var(--company-color);border-radius:999px;padding:5px 8px;top:22px;left:22px}.company-picker-logo{border:1px solid color-mix(in srgb,var(--company-color) 18%,#fff);background:color-mix(in srgb,var(--company-color) 11%,#fff);width:62px;height:62px;box-shadow:0 9px 23px color-mix(in srgb,var(--company-color) 17%,transparent);border-radius:18px;transition:all .18s;position:relative}.company-picker-logo.has-logo{background:#fff}.company-picker-logo img{object-fit:contain;width:48px;height:48px}.company-picker-card h2{min-height:48px;font-size:17px}.company-picker-card p{font-size:10px}.company-picker-card>div:last-child{border-color:color-mix(in srgb,var(--company-color) 13%,#e8edf4)}.company-picker-card>div:last-child b{font-size:10px}.has-company-theme.billing-portal-shell{background:radial-gradient(circle at 88% 5%,color-mix(in srgb,var(--company-primary) 10%,transparent),transparent 30%),#f7f9fc}.has-company-theme .billing-portal-header{border-top-color:var(--company-primary);border-bottom-color:color-mix(in srgb,var(--company-primary) 18%,#dce3ee);background:color-mix(in srgb,#fff 96%,var(--company-primary));box-shadow:0 5px 24px color-mix(in srgb,var(--company-primary) 10%,transparent)}.billing-portal-brand>span.has-logo{border:1px solid color-mix(in srgb,var(--company-primary) 25%,#dce3ee);padding:4px;overflow:hidden;background:#fff!important}.billing-portal-brand>span img{object-fit:contain;width:100%;height:100%}.has-company-theme .billing-portal-brand strong,.has-company-theme .billing-portal-header nav a:hover,.has-company-theme .portal-history-back,.has-company-theme .portal-back,.has-company-theme .portal-workspace-head>div span,.has-company-theme .module-portal-head>a,.has-company-theme .module-portal-head span{color:var(--company-primary)}.has-company-theme .portal-company-identity,.has-company-theme .module-portal-head{border-top:4px solid var(--company-primary);box-shadow:0 10px 28px color-mix(in srgb,var(--company-primary) 8%,transparent)}.has-company-theme .portal-company-identity h2,.has-company-theme .module-portal-head h1{color:var(--company-primary)}.has-company-theme .portal-company-identity>span,.has-company-theme .module-portal-head>strong{background:color-mix(in srgb,var(--company-primary) 9%,#fff);color:var(--company-primary)}.has-company-theme .invoice-portal-hero{background:linear-gradient(120deg,color-mix(in srgb,var(--company-primary) 72%,#13213b),color-mix(in srgb,var(--company-accent) 62%,#172642))}.has-company-theme .invoice-portal-hero:after{background:color-mix(in srgb,var(--company-accent) 78%,#fff);box-shadow:0 -20px 0 color-mix(in srgb,var(--company-primary) 38%,transparent)}.has-company-theme .invoice-portal-hero span{color:color-mix(in srgb,var(--company-accent) 45%,#fff)}.has-company-theme .company-service-actions>a,.has-company-theme .invoice-portal-actions button{border-top:4px solid var(--company-primary)}.has-company-theme .company-service-actions>a:hover,.has-company-theme .invoice-portal-actions button:hover{border-color:var(--company-accent);box-shadow:0 18px 38px color-mix(in srgb,var(--company-primary) 14%,transparent)}.has-company-theme .create-stepper span.active{color:var(--company-primary)}.has-company-theme .create-stepper span.active b,.has-company-theme .portal-action-icon{background:color-mix(in srgb,var(--company-primary) 12%,#fff);color:var(--company-primary)}html[data-theme=dark] .company-picker-hero{background:linear-gradient(145deg,#121d2e,#0e1828);border-color:#26344a;box-shadow:0 18px 50px #0000003d}html[data-theme=dark] .company-picker-hero h1{color:#f1f5ff}html[data-theme=dark] .company-picker-summary span{color:#bbc7da;background:#172438;border-color:#30405a}html[data-theme=dark] .company-picker-summary b{color:#a9c5ff}html[data-theme=dark] .company-picker-card{border-color:color-mix(in srgb,var(--company-color) 28%,#26344a);background:linear-gradient(145deg,#121d2e 58%,color-mix(in srgb,var(--company-color) 14%,#101927));color:#eef3fc}html[data-theme=dark] .company-picker-number{background:color-mix(in srgb,var(--company-color) 18%,#111b2b);color:color-mix(in srgb,var(--company-color) 55%,#fff)}html[data-theme=dark] .company-picker-logo{border-color:color-mix(in srgb,var(--company-color) 30%,#26344a);background:color-mix(in srgb,var(--company-color) 18%,#111b2b);color:color-mix(in srgb,var(--company-color) 55%,#fff)}html[data-theme=dark] .company-picker-logo.has-logo{background:#f8fafc}html[data-theme=dark] .company-picker-card p{color:#a8b4c7}html[data-theme=dark] .company-picker-card>div:last-child{border-color:color-mix(in srgb,var(--company-color) 20%,#26344a)}html[data-theme=dark] .company-picker-card>div:last-child b{color:color-mix(in srgb,var(--company-color) 58%,#fff)}html[data-theme=dark] .has-company-theme.billing-portal-shell{background:radial-gradient(circle at 88% 4%,color-mix(in srgb,var(--company-primary) 20%,transparent),transparent 32%),#0c1422}html[data-theme=dark] .has-company-theme .billing-portal-header{background:color-mix(in srgb,#121d2e 92%,var(--company-primary));border-bottom-color:color-mix(in srgb,var(--company-primary) 28%,#26344a)}html[data-theme=dark] .has-company-theme .billing-portal-brand strong{color:color-mix(in srgb,var(--company-primary) 55%,#fff)}html[data-theme=dark] .has-company-theme .portal-company-identity,html[data-theme=dark] .has-company-theme .module-portal-head{border-top-color:var(--company-primary);background:color-mix(in srgb,#121d2e 94%,var(--company-primary))}html[data-theme=dark] .has-company-theme .portal-company-identity h2,html[data-theme=dark] .has-company-theme .module-portal-head h1{color:color-mix(in srgb,var(--company-primary) 52%,#fff)}html[data-theme=dark] .has-company-theme .portal-company-identity>span,html[data-theme=dark] .has-company-theme .module-portal-head>strong{background:color-mix(in srgb,var(--company-primary) 18%,#111b2b);color:color-mix(in srgb,var(--company-primary) 50%,#fff)}@media (max-width:680px){.company-picker-hero{padding:25px 18px}.company-picker-summary{gap:6px}.company-picker-card{min-height:225px}}.billing-portal-shell{min-width:0;overflow-x:hidden}.billing-portal-main,.create-invoice-workspace,.fawtara-form,.added-lines-table,.added-lines-table .table-scroll{min-width:0}.fawtara-form{max-width:100%}.portal-workspace-head{justify-content:center;align-items:center;min-height:64px;padding:13px 118px;display:flex;position:relative}.portal-workspace-head>.portal-back{color:#286dcc;background:#eef5ff;border:1px solid #b9cff1;border-radius:11px;min-width:96px;padding:11px 16px;font-size:12px;position:absolute;top:50%;right:0;transform:translateY(-50%);box-shadow:0 6px 18px #286dcc1a}.autocomplete-control{min-width:0;position:relative}.saved-names-menu{z-index:35;background:var(--panel);border:1px solid #cfd9e8;border-radius:11px;max-height:290px;padding:5px;display:grid;position:absolute;top:calc(100% + 5px);left:0;right:0;overflow:auto;box-shadow:0 16px 36px #1427482e}.saved-names-menu button{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--ink);font:inherit;text-align:right;cursor:pointer;background:0 0;padding:10px 12px;font-size:12px;font-weight:800}.saved-names-menu button:last-child{border-bottom:0}.saved-names-menu button:hover{color:#286dcc;background:#edf4ff}.saved-names-menu>span{color:var(--muted);padding:11px;font-size:11px}.issue-confirm-modal{text-align:center;width:min(520px,100%)}.issue-confirm-modal h2{margin:8px 0 10px}.issue-confirm-modal p{color:var(--muted);line-height:1.8}.issue-confirm-modal .actions{justify-content:center;margin-top:20px}.issue-confirm-modal .btn{min-width:120px}html[data-theme=dark] .portal-workspace-head>.portal-back{color:#bcd5ff;background:#17345c;border-color:#3d5f8f}html[data-theme=dark] .saved-names-menu{background:#121d30;border-color:#334667}html[data-theme=dark] .saved-names-menu button:hover{color:#d9e9ff;background:#17345c}@media (max-width:680px){.portal-workspace-head{justify-content:flex-start;padding:70px 10px 12px}.portal-workspace-head>.portal-back{top:8px;right:10px;transform:none}}
.creditor-picker-card{background:linear-gradient(145deg,#fff,#f0fbf7)}.creditor-picker-card .company-picker-logo{background:#e1f6ef}.creditor-picker-card h2{font-size:19px}.creditor-portal-hero{background:linear-gradient(120deg,#102d57,#155b75 60%,#178b7c)}.creditor-portal-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:850px;margin-left:auto;margin-right:auto}.creditor-portal-actions button:first-child{border-color:#9bd7c4}.creditor-portal-actions button:first-child>span{color:#168866;background:#e1f6ef}.creditor-create-workspace{max-width:920px;margin-inline:auto}.creditor-simple-form{padding:28px}.creditor-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creditor-form-actions{justify-content:center;gap:10px;margin-top:22px;display:flex}.creditor-form-actions .btn{min-width:170px}.creditor-list-card{padding:0;overflow:hidden}.creditor-list-card .official-list-toolbar{padding:18px}.creditor-list-card .official-list-toolbar input{width:min(440px,70vw)}.creditor-list-card .official-list-toolbar>span{color:#7d8a9e;font-size:11px;font-weight:900}.creditor-table td{vertical-align:middle}.creditor-table td:nth-child(4),.credit-balance{font-variant-numeric:tabular-nums;direction:ltr}.creditor-table .btn{white-space:nowrap}.creditor-account-workspace{max-width:1180px;margin-inline:auto}.creditor-current-balance{text-align:center;background:#edf3ff;border-radius:14px;min-width:210px;padding:13px 19px}.creditor-current-balance span,.creditor-current-balance small{color:#70809a;font-size:10px;display:block}.creditor-current-balance strong{color:#315da8;font-variant-numeric:tabular-nums;direction:ltr;margin:4px;font-size:27px;display:block}.creditor-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;display:grid}.creditor-quick-actions button{color:#1f2d4a;min-height:78px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce3ed;border-radius:15px;justify-content:center;align-items:center;gap:12px;transition:all .16s;display:flex;box-shadow:0 7px 20px #1e375a0d}.creditor-quick-actions button:hover{border-color:#6c9eed;transform:translateY(-2px);box-shadow:0 12px 25px #1e375a1a}.creditor-quick-actions span{color:#397bdc;background:#eaf2ff;border-radius:11px;place-items:center;width:40px;height:40px;font-size:19px;display:grid}.creditor-quick-actions b{font-size:14px}.creditor-entry-card{margin-bottom:16px;padding:22px}.creditor-entry-card .fawtara-form-title{margin-bottom:17px}.creditor-entry-grid{grid-template-columns:170px 145px 145px 145px minmax(180px,1fr) 95px;align-items:end;gap:10px;display:grid}.creditor-entry-grid label{margin:0}.side-switch{grid-template-columns:1fr 1fr;display:grid}.side-switch button{color:#6d798c;font:inherit;cursor:pointer;background:#fff;border:1px solid #d9e0ea;padding:10px;font-weight:800}.side-switch button:first-child{border-radius:0 8px 8px 0}.side-switch button:last-child{border-radius:8px 0 0 8px}.side-switch button.active.debit{color:#99610b;background:#fff1df;border-color:#dda24b}.side-switch button.active.credit{color:#147a59;background:#e7f7f0;border-color:#58af8e}.creditor-statement-card{padding:0;overflow:hidden}.creditor-statement-toolbar{padding:17px 18px}.creditor-statement-toolbar>div{align-items:center;gap:9px;display:flex}.creditor-statement-toolbar h2{margin:0 0 0 12px}.creditor-statement-toolbar input{width:145px}.creditor-statement-table{min-width:900px}.creditor-statement-table td{font-size:11px}.creditor-statement-table td:nth-child(5),.creditor-statement-table td:nth-child(6),.creditor-statement-table td:nth-child(7){font-variant-numeric:tabular-nums;direction:ltr}.creditor-statement-table .credit-cell{color:#16835f;font-weight:900}.creditor-statement-totals{justify-content:flex-end;gap:0;padding:17px 18px;display:flex}.creditor-statement-totals span{color:#6f7c90;border:1px solid #dce3ed;border-left:0;min-width:190px;padding:10px 13px;font-size:11px}.creditor-statement-totals span:last-child{border-left:1px solid #dce3ed}.creditor-statement-totals b{float:left;color:#1f2d4a;font-variant-numeric:tabular-nums;direction:ltr;font-size:14px}.creditor-statement-totals .grand{color:#315da8;background:#edf3ff}.creditor-statement-totals .grand b{color:#315da8}html[data-theme=dark] .creditor-quick-actions button,html[data-theme=dark] .creditor-simple-form,html[data-theme=dark] .creditor-list-card,html[data-theme=dark] .creditor-entry-card,html[data-theme=dark] .creditor-statement-card{color:#e8eef8;background:#121d2e;border-color:#26344a}html[data-theme=dark] .creditor-current-balance,html[data-theme=dark] .creditor-statement-totals .grand{background:#17345c}html[data-theme=dark] .creditor-statement-totals b{color:#e8eef8}html[data-theme=dark] .side-switch button{color:#dce5f2;background:#0c1525;border-color:#30405a}@media (max-width:900px){.creditor-portal-actions,.creditor-quick-actions,.creditor-form-grid{grid-template-columns:1fr}.creditor-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creditor-entry-grid .btn{width:100%}.creditor-statement-toolbar,.creditor-statement-toolbar>div{flex-direction:column;align-items:stretch}.creditor-statement-toolbar h2{margin:0}.creditor-statement-toolbar input{width:100%}.creditor-statement-totals{flex-direction:column}.creditor-statement-totals span{border-bottom:0;border-left:1px solid #dce3ed}.creditor-statement-totals span:last-child{border-bottom:1px solid #dce3ed}}@media (max-width:600px){.creditor-entry-grid{grid-template-columns:1fr}.creditor-current-balance{width:100%}.creditor-form-actions{flex-direction:column}.creditor-form-actions .btn{width:100%}}
@font-face{font-family:JorMallArial;src:url(/fonts/arial.ttf)format("truetype");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:JorMallArial;src:url(/fonts/arialbd.ttf)format("truetype");font-style:normal;font-weight:700 950;font-display:swap}.fawtara-invoice-sheet,.fawtara-invoice-sheet *,.receipt-book-sheet,.receipt-book-sheet *,.receipt-paper-live,.receipt-paper-live *{font-family:JorMallArial,Arial,sans-serif!important}@media print{html,body,.fawtara-invoice-sheet,.fawtara-invoice-sheet *,.receipt-book-sheet,.receipt-book-sheet *,.receipt-paper-live,.receipt-paper-live *{font-family:JorMallArial,Arial,sans-serif!important}}

.invoice-delivery-terms{display:grid;grid-template-columns:1fr 1fr;direction:rtl;gap:0;margin-top:14px;border-top:2px solid var(--company-accent,#7a4025);color:#172033;font-family:Arial,sans-serif;font-size:12px;line-height:1.65;break-inside:avoid;page-break-inside:avoid}
.invoice-delivery-terms>div{min-height:104px;padding:10px 14px}
.invoice-delivery-terms>div+div{border-right:1px solid #d8dee8}
.invoice-delivery-terms h3{margin:0 0 5px;color:var(--company-primary,#7a4025);font-family:Arial,sans-serif;font-size:12px;font-weight:700}
.invoice-delivery-terms p{margin:2px 0;color:#172033;font-family:Arial,sans-serif;font-size:11px;font-weight:600}
.invoice-receiver-signature{display:flex;flex-direction:column;align-items:flex-start}
.invoice-receiver-signature span{display:block;width:100%;margin-top:6px;color:#172033;font-family:Arial,sans-serif;font-size:10.5px;font-weight:600}
@media(max-width:720px){.invoice-delivery-terms{grid-template-columns:1fr}.invoice-delivery-terms>div+div{border-right:0;border-top:1px solid #d8dee8}}
@media print{.invoice-delivery-terms,.invoice-delivery-terms *{font-family:Arial,sans-serif!important;color:#111827!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.invoice-delivery-terms{border-top-color:var(--company-accent,#7a4025)!important}}

html[data-theme=dark] input[type=date],html[data-theme=dark] input[type=time]{color:#f8fbff!important;-webkit-text-fill-color:#f8fbff!important;background-color:#0f1b2d!important;background-image:none!important;border-color:#40506b!important;color-scheme:dark!important;box-shadow:inset 0 1px #ffffff08!important}
html[data-theme=dark] input[type=date]:hover,html[data-theme=dark] input[type=time]:hover,html[data-theme=dark] input[type=date]:focus,html[data-theme=dark] input[type=time]:focus{color:#fff!important;-webkit-text-fill-color:#fff!important;background-color:#13233a!important}
html[data-theme=dark] input[type=date]::-webkit-datetime-edit,html[data-theme=dark] input[type=time]::-webkit-datetime-edit,html[data-theme=dark] input[type=date]::-webkit-datetime-edit-fields-wrapper,html[data-theme=dark] input[type=time]::-webkit-datetime-edit-fields-wrapper{color:#f8fbff!important;-webkit-text-fill-color:#f8fbff!important;background:transparent!important}
html[data-theme=dark] input[type=date]::-webkit-calendar-picker-indicator,html[data-theme=dark] input[type=time]::-webkit-calendar-picker-indicator{filter:invert(1) brightness(1.4)!important;opacity:1!important;cursor:pointer!important}
.fawtara-invoice-sheet{display:flex!important;min-height:297mm;flex-direction:column}
.fawtara-invoice-sheet .invoice-delivery-terms{margin-top:auto!important}

html[data-theme=dark] input[type=date]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:18px 18px!important;padding-right:44px!important}
html[data-theme=dark] input[type=time]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:18px 18px!important;padding-right:44px!important}
html[data-theme=dark] input[type=date]::-webkit-calendar-picker-indicator,html[data-theme=dark] input[type=time]::-webkit-calendar-picker-indicator{opacity:0!important;width:24px!important;height:100%!important;cursor:pointer!important}

/* n103: compact invoice terms footer */
.fawtara-invoice-sheet .invoice-delivery-terms{gap:8px!important;padding-top:6px!important;margin-top:auto!important}
.fawtara-invoice-sheet .invoice-delivery-terms>div{min-height:54px!important;padding:5px 10px!important;border-radius:7px!important}
.fawtara-invoice-sheet .invoice-delivery-terms h3{margin:0 0 2px!important;padding-bottom:2px!important;font-size:10.5px!important}
.fawtara-invoice-sheet .invoice-delivery-terms p{margin:1px 0!important;font-size:9.5px!important;line-height:1.35!important}
.fawtara-invoice-sheet .invoice-receiver-signature{justify-content:flex-start!important}
.fawtara-invoice-sheet .invoice-receiver-signature span{margin-top:3px!important;padding-top:2px!important;border-top:0!important;font-size:9.5px!important}
@media print{.fawtara-invoice-sheet .invoice-delivery-terms{gap:8px!important;padding-top:5px!important}.fawtara-invoice-sheet .invoice-delivery-terms>div{min-height:50px!important;padding:4px 9px!important}}

.fawtara-invoice-sheet .invoice-delivery-terms{gap:12px!important;padding-top:12px!important;border-top:0!important;background:transparent!important}
.fawtara-invoice-sheet .invoice-delivery-terms>div{min-height:96px!important;padding:11px 14px!important;border:1px solid var(--company-accent,#7a4025)!important;border-radius:10px!important;background:color-mix(in srgb,var(--company-primary,#7a4025) 5%,#fff)!important}
.fawtara-invoice-sheet .invoice-delivery-terms>div+div{border-right:1px solid var(--company-accent,#7a4025)!important}
.fawtara-invoice-sheet .invoice-delivery-terms h3{text-align:center!important;padding-bottom:5px!important;border-bottom:1px solid #d8dee8!important}
.fawtara-invoice-sheet .invoice-receiver-signature span{margin-top:auto!important;padding-top:8px!important;border-top:1px solid #aeb8c6!important}
@media print{.fawtara-invoice-sheet .invoice-delivery-terms>div{background:#fafafa!important}}
+

/* n103 global readability, themes, company identity, and print footer */
html{font-size:17px}
body,button,input,select,textarea{font-family:JorMallArial,Arial,sans-serif!important}
body{font-size:16px;line-height:1.65}
button,.btn,.company-tabs a{font-size:15px!important}
label{font-size:14.5px!important;font-weight:700}
input,select,textarea{min-height:44px;font-size:16px!important;color:var(--ink)}
th,td{font-size:14px!important;line-height:1.55}
.workflow-intro h2,.portal-workspace-head span{font-size:25px!important}
.workflow-intro p,.portal-workspace-head small{font-size:14px!important}
.portal-company-identity h2{font-size:25px!important}
.invoice-portal-actions b,.company-service-actions b{font-size:18px!important}
.invoice-portal-actions small,.company-service-actions small{font-size:13px!important}
.portal-back{font-size:15px!important;font-weight:900!important;min-width:110px!important}
.company-logo-mark{width:120px!important;height:120px!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:#fff!important;border-radius:22px!important}
.company-logo-mark img{width:100%!important;height:100%!important;object-fit:contain!important;padding:8px!important}
.login{width:min(470px,100%)!important;padding:34px!important}
.login h1{font-size:30px!important}.login p{font-size:15px!important}
.receipt-live-head{direction:ltr!important;grid-template-columns:1fr 1fr 1fr!important;grid-template-rows:auto auto!important;align-items:start!important}
.receipt-live-head>*{direction:rtl!important}
.receipt-live-date{grid-column:1!important;grid-row:1!important}
.receipt-live-serial{grid-column:2!important;grid-row:1!important;text-align:center!important}
.receipt-live-title{grid-column:2!important;grid-row:2!important;text-align:center!important;margin-top:8px!important}
.receipt-live-currency{position:absolute!important;top:58px!important;right:48px!important;margin:0!important}
.receipt-live-title h3{font-size:27px!important}.receipt-live-line span{font-size:15px!important}.receipt-paper-live input{font-size:16px!important}
.fawtara-invoice-sheet .invoice-delivery-terms{display:grid!important;grid-template-columns:1fr 1fr!important;gap:24px!important;margin-top:auto!important;padding-top:6px!important;border-top:2px solid var(--company-accent,#7a4025)!important;background:transparent!important}
.fawtara-invoice-sheet .invoice-delivery-terms>div,.fawtara-invoice-sheet .invoice-delivery-terms>div+div{min-height:46px!important;padding:3px 6px!important;border:0!important;border-radius:0!important;background:transparent!important}
.fawtara-invoice-sheet .invoice-delivery-terms h3{margin:0 0 2px!important;padding:0!important;border:0!important;text-align:right!important;font-size:10.5px!important}
.fawtara-invoice-sheet .invoice-delivery-terms p{margin:1px 0!important;font-size:9.5px!important;line-height:1.35!important}
.fawtara-invoice-sheet .invoice-receiver-signature span{margin-top:2px!important;padding:0!important;border:0!important;font-size:9.5px!important}
html[data-theme=dark]{--bg:#09111f;--panel:#111c2e;--ink:#f2f6fd;--muted:#b5c0d1;--line:#30405a}
html[data-theme=dark] body{background:#09111f!important;color:#f2f6fd!important}
html[data-theme=dark] .card,html[data-theme=dark] table,html[data-theme=dark] .official-table-wrap,html[data-theme=dark] .fawtara-form,html[data-theme=dark] .receipt-builder{background:#111c2e!important;color:#f2f6fd!important;border-color:#30405a!important}
html[data-theme=dark] th{background:#19263a!important;color:#f4f7fc!important}html[data-theme=dark] td{color:#edf2fa!important;border-color:#30405a!important}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0d1728!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#40516d!important}
html[data-theme=dark] label,html[data-theme=dark] .muted,html[data-theme=dark] small{color:#c6d0df!important}
@media print{html{font-size:16px}.fawtara-invoice-sheet .invoice-delivery-terms{border-top-color:var(--company-accent,#7a4025)!important}.fawtara-invoice-sheet .invoice-delivery-terms>div{background:transparent!important}}

/* n103: clearer company identity and readable invoice rows in dark mode */
.portal-company-identity{
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:center!important;
  min-height:150px!important;
  padding:22px 28px!important;
}
.portal-company-identity>div{
  width:min(100%,920px)!important;
  text-align:center!important;
}
.portal-company-identity>div>small{
  display:inline-flex!important;
  color:var(--company-primary,#397de4)!important;
  background:color-mix(in srgb,var(--company-primary,#397de4) 10%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--company-primary,#397de4) 22%,#dce3ee)!important;
  border-radius:999px!important;
  padding:5px 11px!important;
  font-size:11px!important;
  font-weight:900!important;
}
.portal-company-identity h2{
  max-width:100%!important;
  margin:9px auto 13px!important;
  font-size:clamp(24px,2.5vw,34px)!important;
  line-height:1.45!important;
  text-wrap:balance!important;
}
.company-identity-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  gap:10px!important;
  margin:0!important;
}
.company-identity-meta>span{
  min-width:180px!important;
  color:var(--ink)!important;
  background:color-mix(in srgb,var(--company-primary,#397de4) 6%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--company-primary,#397de4) 16%,#e1e7ef)!important;
  border-radius:11px!important;
  display:grid!important;
  gap:3px!important;
  padding:9px 14px!important;
}
.company-identity-meta>span small{
  color:var(--muted)!important;
  font-size:10px!important;
  font-weight:800!important;
}
.company-identity-meta>span b{
  color:var(--company-primary,#2c66c4)!important;
  font-size:14px!important;
  letter-spacing:.04em!important;
}
.fawtara-invoice-sheet .fawtara-lines-table tbody td{
  color:#0b1324!important;
  background:#fff!important;
  font-weight:800!important;
  opacity:1!important;
}
html[data-theme=dark] .portal-company-identity>div>small{
  color:color-mix(in srgb,var(--company-primary) 55%,#fff)!important;
  background:color-mix(in srgb,var(--company-primary) 18%,#111b2b)!important;
  border-color:color-mix(in srgb,var(--company-primary) 32%,#26344a)!important;
}
html[data-theme=dark] .company-identity-meta>span{
  color:#eef3fc!important;
  background:color-mix(in srgb,var(--company-primary) 12%,#101a2a)!important;
  border-color:color-mix(in srgb,var(--company-primary) 27%,#2b3950)!important;
}
html[data-theme=dark] .company-identity-meta>span small{color:#b7c2d4!important}
html[data-theme=dark] .company-identity-meta>span b{color:color-mix(in srgb,var(--company-primary) 55%,#fff)!important}
@media(max-width:680px){
  .portal-company-identity{min-height:0!important;padding:18px 14px!important}
  .portal-company-identity h2{font-size:24px!important;line-height:1.5!important}
  .company-identity-meta>span{min-width:min(100%,220px)!important;flex:1!important}
}

/* n103: native invoice date/time controls use one consistent dark appearance */
html[data-theme=dark] .fawtara-form input.invoice-datetime-control{
  -webkit-appearance:none!important;
  appearance:none!important;
  forced-color-adjust:none!important;
  color-scheme:dark!important;
  color:#f8fbff!important;
  -webkit-text-fill-color:#f8fbff!important;
  caret-color:#f8fbff!important;
  background-color:#0f1b2d!important;
  border-color:#40506b!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
  opacity:1!important;
}
html[data-theme=dark] .fawtara-form input.invoice-datetime-control[type=date]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E")!important;
}
html[data-theme=dark] .fawtara-form input.invoice-datetime-control[type=time]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")!important;
}
html[data-theme=dark] .fawtara-form input.invoice-datetime-control[type=date],
html[data-theme=dark] .fawtara-form input.invoice-datetime-control[type=time]{
  background-repeat:no-repeat!important;
  background-position:right 18px center!important;
  background-size:20px 20px!important;
  padding-right:52px!important;
}
html[data-theme=dark] .fawtara-form input.invoice-datetime-control:hover,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control:focus{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#14243b!important;
  border-color:#78a0ff!important;
  box-shadow:0 0 0 4px rgba(103,145,255,.2)!important;
}
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-fields-wrapper,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-text,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-day-field,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-month-field,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-year-field,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-hour-field,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-minute-field,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-second-field,
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-datetime-edit-ampm-field{
  color:#f8fbff!important;
  -webkit-text-fill-color:#f8fbff!important;
  background:transparent!important;
  opacity:1!important;
}
html[data-theme=dark] .fawtara-form input.invoice-datetime-control::-webkit-calendar-picker-indicator{
  position:absolute!important;
  right:12px!important;
  width:30px!important;
  height:100%!important;
  opacity:0!important;
  cursor:pointer!important;
}

/* n103: improve invoice line readability in the on-screen preview only */
@media screen{
  .fawtara-invoice-sheet .fawtara-lines-table{
    font-size:12px!important;
  }
  .fawtara-invoice-sheet .fawtara-lines-table thead th{
    min-height:58px!important;
    padding:12px 7px!important;
    font-size:11px!important;
    line-height:1.55!important;
    font-weight:900!important;
    vertical-align:middle!important;
    opacity:1!important;
  }
  .fawtara-invoice-sheet .fawtara-lines-table tbody td{
    min-height:52px!important;
    padding:13px 7px!important;
    font-size:12px!important;
    line-height:1.5!important;
    font-weight:900!important;
    vertical-align:middle!important;
  }
  .fawtara-invoice-sheet .fawtara-lines-table tbody td:nth-child(2){
    font-size:13px!important;
  }
}


/* n103: clearer, tighter invoice identity and information blocks */
.fawtara-sheet-company .fawtara-company-tax{
  color:var(--company-primary,var(--company-accent))!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:950!important;
}
.fawtara-invoice-sheet>h1{
  margin:2px 0 7px!important;
  font-size:25px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
.fawtara-invoice-sheet .fawtara-top-info{
  gap:10px!important;
  margin-top:0!important;
}
.fawtara-invoice-sheet .fawtara-compact-card h2{
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:950!important;
}
.fawtara-invoice-sheet .fawtara-compact-card>div span{
  color:#111827!important;
  font-size:12px!important;
  font-weight:900!important;
  opacity:1!important;
}
.fawtara-invoice-sheet .fawtara-compact-card>div strong{
  color:#050505!important;
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:950!important;
  opacity:1!important;
}
.fawtara-invoice-sheet .fawtara-compact-card.buyer .buyer-name strong{
  color:#050505!important;
  font-size:16px!important;
  font-weight:950!important;
}
@media print{
  .fawtara-sheet-company .fawtara-company-tax{font-size:8.2pt!important;font-weight:950!important}
  .fawtara-invoice-sheet>h1{margin:.5mm 0 1.5mm!important;font-size:14pt!important;line-height:1.15!important}
  .fawtara-invoice-sheet .fawtara-top-info{gap:2.5mm!important;margin-top:0!important}
  .fawtara-invoice-sheet .fawtara-compact-card h2{font-size:8.8pt!important;line-height:1.25!important}
  .fawtara-invoice-sheet .fawtara-compact-card>div span{color:#050505!important;font-size:7.4pt!important;font-weight:900!important}
  .fawtara-invoice-sheet .fawtara-compact-card>div strong{color:#000!important;font-size:8.2pt!important;font-weight:950!important}
  .fawtara-invoice-sheet .fawtara-compact-card.buyer .buyer-name strong{font-size:9.5pt!important}
}


/* n103: return invoice clarity, watermark, and Khayrat navy secondary colour */
.fawtara-invoice-sheet{position:relative!important;isolation:isolate!important;overflow:hidden!important}
.fawtara-invoice-sheet>*:not(.fawtara-sheet-watermark){position:relative;z-index:1}
.fawtara-sheet-watermark{
  position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);
  width:min(58%,155mm);max-height:58%;object-fit:contain;
  opacity:.045;pointer-events:none;z-index:0;
}
.fawtara-invoice-sheet>h1.return-title{
  color:#b42318!important;margin-top:-2px!important;margin-bottom:5px!important;
}
.fawtara-return-summary{
  display:grid;grid-template-columns:1fr 1fr;gap:0;
  margin:7px 0 9px;border:1px solid #b42318;border-radius:7px;
  background:#fff3f2;overflow:hidden;color:#b42318;
}
.fawtara-return-summary>div{display:grid;grid-template-columns:minmax(120px,42%) 1fr;align-items:center;padding:8px 11px;gap:8px}
.fawtara-return-summary>div+div{border-inline-start:1px solid rgba(180,35,24,.4)}
.fawtara-return-summary span,.fawtara-return-summary strong{color:#b42318!important;font-weight:950!important;font-size:13px!important;line-height:1.35!important}
.fawtara-sheet-company .fawtara-company-tax{font-size:15px!important;line-height:1.4!important}
.fawtara-invoice-sheet.khayrat-brand{--khayrat-navy:#233a5e}
.fawtara-invoice-sheet.khayrat-brand>h1,
.fawtara-invoice-sheet.khayrat-brand .fawtara-compact-card>div strong{color:var(--khayrat-navy)!important}
.fawtara-invoice-sheet.khayrat-brand .fawtara-lines-table thead th{background:var(--khayrat-navy)!important;color:#fff!important;border-color:var(--company-accent)!important}
.fawtara-invoice-sheet.khayrat-brand .fawtara-lines-table tbody td{color:var(--khayrat-navy)!important}
@media print{
  .fawtara-sheet-watermark{position:fixed!important;left:50%!important;top:51%!important;width:145mm!important;max-height:145mm!important;opacity:.04!important}
  .fawtara-invoice-sheet>h1.return-title{margin-top:-1mm!important;margin-bottom:1mm!important;color:#b42318!important}
  .fawtara-return-summary{margin:1.2mm 0 1.8mm!important;border-radius:1.2mm!important;break-inside:avoid!important}
  .fawtara-return-summary>div{padding:1.4mm 2mm!important;gap:1.5mm!important}
  .fawtara-return-summary span,.fawtara-return-summary strong{font-size:7.8pt!important;line-height:1.25!important}
  .fawtara-sheet-company .fawtara-company-tax{font-size:9.7pt!important;line-height:1.35!important}
  .fawtara-invoice-sheet.khayrat-brand{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* n103: make the receipt date unmistakably editable */
.receipt-book-help{flex-wrap:wrap!important}
.receipt-date-control{
  display:grid!important;grid-template-columns:max-content minmax(165px,210px)!important;
  align-items:center!important;gap:9px!important;margin-inline-start:auto!important;
  color:var(--ink)!important;font-size:13px!important;font-weight:900!important;
  position:relative!important;z-index:30!important;pointer-events:auto!important;
}
.receipt-date-control input,
.receipt-paper-live .receipt-live-date input{
  position:relative!important;z-index:31!important;pointer-events:auto!important;
  user-select:auto!important;cursor:text!important;opacity:1!important;
}
.receipt-date-control input{min-height:42px!important;background:var(--panel)!important;color:var(--ink)!important;border:2px solid var(--company-primary,var(--brand))!important}
.receipt-live-date{position:relative!important;z-index:30!important;pointer-events:auto!important}
.receipt-date-control input::-webkit-calendar-picker-indicator,
.receipt-paper-live .receipt-live-date input::-webkit-calendar-picker-indicator{cursor:pointer!important;opacity:1!important;pointer-events:auto!important}
@media(max-width:760px){.receipt-date-control{grid-template-columns:1fr!important;width:100%!important;margin:8px 0 0!important}}
@media print{.receipt-date-control{display:none!important}}


/* n103: natural return metadata table with red text only */
.fawtara-invoice-sheet>h1.return-title{
  margin-top:-4px!important;
  margin-bottom:12px!important;
}
.fawtara-return-summary{
  border-color:var(--company-accent,var(--company-primary))!important;
  background:color-mix(in srgb,var(--company-primary,var(--company-accent)) 6%,#fff)!important;
}
.fawtara-return-summary>div+div{
  border-inline-start-color:color-mix(in srgb,var(--company-accent,var(--company-primary)) 62%,transparent)!important;
}
@media print{
  .fawtara-invoice-sheet>h1.return-title{
    margin-top:-1.4mm!important;
    margin-bottom:2.4mm!important;
  }
  .fawtara-return-summary{
    border-color:var(--company-accent,var(--company-primary))!important;
    background:color-mix(in srgb,var(--company-primary,var(--company-accent)) 6%,#fff)!important;
  }
}


/* n103: compact return reference strip */
.fawtara-return-summary{margin-top:5px!important;margin-bottom:7px!important}
.fawtara-return-summary>div{
  grid-template-columns:minmax(110px,40%) 1fr!important;
  padding:4px 8px!important;
  gap:6px!important;
}
.fawtara-return-summary span,.fawtara-return-summary strong{
  font-size:11.5px!important;
  line-height:1.22!important;
}
@media print{
  .fawtara-return-summary{margin-top:.8mm!important;margin-bottom:1.2mm!important}
  .fawtara-return-summary>div{padding:.55mm 1.4mm!important;gap:1mm!important}
  .fawtara-return-summary span,.fawtara-return-summary strong{font-size:6.8pt!important;line-height:1.15!important}
}


/* n103: high-contrast invoice statuses in dark mode */
html[data-theme=dark] .official-invoice-table .status,
html[data-theme=dark] .invoice-list .status,
html[data-theme=dark] .status{
  color:#eef4ff!important;
  background:#27364f!important;
  border:1px solid #536684!important;
  box-shadow:inset 0 0 0 1px #ffffff08!important;
  font-weight:950!important;
  opacity:1!important;
}
html[data-theme=dark] .status.SUBMITTED,
html[data-theme=dark] .status.ALREADY_SUBMITTED,
html[data-theme=dark] .status.ACTIVE,
html[data-theme=dark] .status.PAID{
  color:#a9f3d0!important;background:#123e31!important;border-color:#2b7e60!important;
}
html[data-theme=dark] .status.READY_TO_SUBMIT,
html[data-theme=dark] .status.SUBMITTING,
html[data-theme=dark] .status.NEEDS_REVIEW{
  color:#ffe3a8!important;background:#493513!important;border-color:#8b6825!important;
}
html[data-theme=dark] .status.REJECTED,
html[data-theme=dark] .status.CANCELLED,
html[data-theme=dark] .status.FAILED{
  color:#ffc4ca!important;background:#4b2029!important;border-color:#963c4c!important;
}
html[data-theme=dark] .status.PARTIALLY_RETURNED,
html[data-theme=dark] .status.FULLY_RETURNED,
html[data-theme=dark] .status.RETURNED{
  color:#ffd7b0!important;background:#4a2d17!important;border-color:#956039!important;
}


/* n103: returned invoice numbers are unmistakable in the invoice list */
.returned-invoice-number{
  color:#c62828!important;
  font-weight:950!important;
  text-decoration-color:#c62828!important;
}
[data-theme="dark"] .returned-invoice-number{
  color:#ff7373!important;
  text-decoration-color:#ff7373!important;
}


/* n103: orderly invoice-list action buttons in dark mode */
.official-invoice-list .table-action-menu{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(82px,1fr))!important;
  gap:6px!important;
  min-width:180px!important;
}

.official-invoice-list .table-action-menu button,
.official-invoice-list .table-action-menu a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 10px!important;
  border-radius:9px!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:950!important;
  text-align:center!important;
  white-space:nowrap!important;
  transition:transform .15s ease,border-color .15s ease,background .15s ease!important;
}

.official-invoice-list .table-action-menu button:hover,
.official-invoice-list .table-action-menu a:hover{
  transform:translateY(-1px)!important;
}

html[data-theme=dark] .official-invoice-list,
html[data-theme=dark] .official-invoice-list .official-list-toolbar,
html[data-theme=dark] .official-invoice-list .official-list-toolbar label,
html[data-theme=dark] .official-invoice-list .official-list-toolbar span,
html[data-theme=dark] .official-invoice-list .invoice-list-kpis span,
html[data-theme=dark] .official-invoice-list .invoice-list-kpis b,
html[data-theme=dark] .official-invoice-list .official-invoice-table th,
html[data-theme=dark] .official-invoice-list .official-invoice-table td,
html[data-theme=dark] .official-invoice-list .official-invoice-table td b{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

html[data-theme=dark] .official-invoice-list .table-action-menu button,
html[data-theme=dark] .official-invoice-list .table-action-menu a{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#1d2c43!important;
  border:1px solid #506581!important;
  box-shadow:0 3px 10px rgba(0,0,0,.22)!important;
}

html[data-theme=dark] .official-invoice-list .table-action-menu button:first-child,
html[data-theme=dark] .official-invoice-list .table-action-menu .primary{
  background:#245f9f!important;
  border-color:#67a8ea!important;
}

html[data-theme=dark] .official-invoice-list .table-action-menu .return-action{
  background:#652d38!important;
  border-color:#e47e8f!important;
}

html[data-theme=dark] .official-invoice-list .table-action-menu button:hover,
html[data-theme=dark] .official-invoice-list .table-action-menu a:hover{
  background:#2c405d!important;
  border-color:#8bb7f1!important;
}

html[data-theme=dark] .official-invoice-list .returned-invoice-number{
  color:#ff7373!important;
  -webkit-text-fill-color:#ff7373!important;
}


/* n103b: larger invoice KPI labels without enlarging values */
.official-invoice-list .invoice-list-kpis span,
.official-invoice-list .invoice-value-kpis span{
  font-size:14px!important;
  line-height:1.4!important;
  font-weight:900!important;
  letter-spacing:0!important;
}

/* n103c: crisp invoice status pills in light mode */
html:not([data-theme=dark]) .official-invoice-list .status{
  color:#24324a!important;
  background:#edf2f8!important;
  border:1px solid #aebbd0!important;
  border-radius:999px!important;
  padding:6px 11px!important;
  font-weight:950!important;
  line-height:1.15!important;
  opacity:1!important;
  box-shadow:0 2px 7px rgba(31,50,80,.10)!important;
}
html:not([data-theme=dark]) .official-invoice-list .status.SUBMITTED,
html:not([data-theme=dark]) .official-invoice-list .status.ALREADY_SUBMITTED,
html:not([data-theme=dark]) .official-invoice-list .status.ACTIVE,
html:not([data-theme=dark]) .official-invoice-list .status.PAID{
  color:#0c6243!important;background:#dff6eb!important;border-color:#77c5a2!important;
}
html:not([data-theme=dark]) .official-invoice-list .status.READY_TO_SUBMIT,
html:not([data-theme=dark]) .official-invoice-list .status.SUBMITTING,
html:not([data-theme=dark]) .official-invoice-list .status.NEEDS_REVIEW{
  color:#795000!important;background:#fff1ca!important;border-color:#ddb85b!important;
}
html:not([data-theme=dark]) .official-invoice-list .status.REJECTED,
html:not([data-theme=dark]) .official-invoice-list .status.CANCELLED,
html:not([data-theme=dark]) .official-invoice-list .status.FAILED{
  color:#a22031!important;background:#ffe5e8!important;border-color:#e49aa5!important;
}
html:not([data-theme=dark]) .official-invoice-list .status.PARTIALLY_RETURNED,
html:not([data-theme=dark]) .official-invoice-list .status.FULLY_RETURNED,
html:not([data-theme=dark]) .official-invoice-list .status.RETURNED{
  color:#8b4616!important;background:#ffead8!important;border-color:#dea46f!important;
}

/* n103d: use large screens for the invoice list instead of squeezing its columns */
@media (min-width:1001px){
  .billing-portal-main:has(.official-invoice-list){
    width:min(1600px,calc(100% - 40px))!important;
  }
  .official-invoice-list .official-invoice-table{
    min-width:1320px!important;
  }
}
.official-invoice-table tbody td:nth-child(3),.official-invoice-table tbody td:nth-child(4),.official-invoice-table tbody td:nth-child(4) .link-button{color:#13233f!important;font-weight:900}html[data-theme=dark] .official-invoice-table tbody td:nth-child(3),html[data-theme=dark] .official-invoice-table tbody td:nth-child(4),html[data-theme=dark] .official-invoice-table tbody td:nth-child(4) .link-button{color:#fff!important;font-weight:900}.official-invoice-table th:nth-child(4),.official-invoice-table td:nth-child(4){padding-inline-end:6px!important}.official-invoice-table th:nth-child(5),.official-invoice-table td:nth-child(5){padding-inline-start:6px!important;transform:translateX(4px)}.official-list-toolbar{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;gap:12px!important}.official-list-toolbar>div:first-child{display:grid!important;grid-template-columns:minmax(220px,1.3fr) repeat(6,minmax(145px,1fr));align-items:end;gap:10px;width:100%}.official-list-toolbar>div:first-child label{min-width:0}.official-list-toolbar>div:first-child input,.official-list-toolbar>div:first-child select{width:100%!important}.official-list-toolbar .list-export-actions{display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap;gap:10px!important;margin-top:0}.official-list-toolbar .list-export-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px}@media(max-width:1250px){.official-list-toolbar>div:first-child{grid-template-columns:repeat(4,minmax(150px,1fr))}}@media(max-width:760px){.official-list-toolbar>div:first-child{grid-template-columns:1fr}.official-list-toolbar .list-export-actions{align-items:stretch!important}.official-list-toolbar .list-export-actions a{flex:1 1 180px}}.official-invoice-list .official-invoice-table th,.official-invoice-list .official-invoice-table td{padding-top:8px!important;padding-bottom:8px!important}.official-invoice-list .official-invoice-table th:last-child,.official-invoice-list .official-invoice-table td:last-child{min-width:285px!important;width:285px!important}.official-invoice-list .table-action-menu{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:0!important}.official-invoice-list .table-action-menu button,.official-invoice-list .table-action-menu a{flex:0 1 auto!important;min-width:58px!important;min-height:29px!important;padding:5px 8px!important;border-radius:7px!important;font-size:9px!important;line-height:1.1!important}.official-invoice-table th:last-child,.official-invoice-table td:last-child{text-align:center!important}.official-list-toolbar .list-export-actions{justify-content:center!important;width:100%}.portal-workspace-head>div span{color:#111827!important}html[data-theme=dark] .portal-workspace-head>div span{color:#fff!important}.official-list-toolbar input[type=date]{cursor:pointer}.invoice-type-badge{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:5px 10px;border:1px solid;border-radius:999px;font-weight:950;line-height:1.2;white-space:nowrap}.invoice-type-badge.return{color:#b4232f!important;background:#fff0f1;border-color:#e5a0a8}.invoice-type-badge.cash{color:#11653a!important;background:#eaf8f0;border-color:#99d4b0}.invoice-type-badge.credit{color:#163d73!important;background:#eaf1fb;border-color:#a3bddf}html[data-theme=dark] .invoice-type-badge.return{color:#ff9aa5!important;background:#442129;border-color:#a94c59}html[data-theme=dark] .invoice-type-badge.cash{color:#86efac!important;background:#123723;border-color:#3b8558}html[data-theme=dark] .invoice-type-badge.credit{color:#b7d0ff!important;background:#1a2f52;border-color:#5876a8}.official-invoice-table th,.official-invoice-table td{text-align:center!important;vertical-align:middle!important}.official-invoice-table th:nth-child(4),.official-invoice-table td:nth-child(4){width:165px!important;padding-inline-end:2px!important}.official-invoice-table th:nth-child(5),.official-invoice-table td:nth-child(5){width:125px!important;padding-inline-start:2px!important;transform:translateX(12px)!important}.official-invoice-table .status{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-inline:auto!important}.official-invoice-list .table-action-menu .cancel-trash,.official-invoice-list .table-action-menu .pdf-download{flex:0 0 34px!important;min-width:34px!important;width:34px!important;height:30px!important;min-height:30px!important;padding:0!important;font-size:17px!important;line-height:1!important}.official-invoice-list .table-action-menu .cancel-trash{color:#344054!important;-webkit-text-fill-color:#344054!important;background:#f6f7f9!important;border-color:#cdd3dc!important;font-family:"Segoe UI Symbol",Arial,sans-serif!important;filter:grayscale(1)}.official-invoice-list .table-action-menu .pdf-download{color:#255b91!important;-webkit-text-fill-color:#255b91!important;background:#eef5fc!important;border-color:#b8cde3!important}html[data-theme=dark] .official-invoice-list .table-action-menu .cancel-trash{color:#e5e7eb!important;-webkit-text-fill-color:#e5e7eb!important;background:#263244!important;border-color:#5b687b!important}html[data-theme=dark] .official-invoice-list .table-action-menu .pdf-download{color:#b9dcff!important;-webkit-text-fill-color:#b9dcff!important;background:#1d3856!important;border-color:#537da7!important}.official-invoice-list .table-action-menu .return-action{color:#b42335!important;-webkit-text-fill-color:#b42335!important;border-color:#e7a1aa!important}html[data-theme=dark] .official-invoice-list .table-action-menu .return-action{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#652d38!important;border-color:#e47e8f!important}

/* n103: creditor/debtor account header, dates, and dark-mode readability */
.creditor-account-workspace .portal-workspace-head{
  grid-template-columns:120px minmax(300px,1fr) minmax(220px,260px)!important;
  gap:22px!important;
  min-height:150px!important;
  padding:22px 26px!important;
  background:#fff!important;
  border:1px solid #dce4ef!important;
  border-bottom:3px solid #397de4!important;
  border-radius:18px!important;
  box-shadow:0 12px 30px rgba(31,55,90,.08)!important;
}
.creditor-account-workspace .portal-workspace-head>div:not(.creditor-current-balance){
  padding:4px 18px!important;
}
.creditor-account-workspace .portal-workspace-head>div:not(.creditor-current-balance)>span{
  display:inline-flex!important;
  color:#2f6fd1!important;
  background:#edf4ff!important;
  border-radius:999px!important;
  padding:4px 14px!important;
  font-size:14px!important;
}
.creditor-account-workspace .portal-workspace-head h1{
  color:#111c31!important;
  margin:8px 0 6px!important;
  font-size:30px!important;
  line-height:1.35!important;
  font-weight:950!important;
}
.creditor-account-workspace .portal-workspace-head p{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  margin:0!important;
  padding:4px 12px!important;
  color:#455775!important;
  background:#f5f8fc!important;
  border:1px solid #e1e8f1!important;
  border-radius:9px!important;
  direction:rtl!important;
  font-size:14px!important;
  font-weight:800!important;
}
.creditor-account-workspace .creditor-current-balance{
  min-width:220px!important;
  padding:16px 22px!important;
  border:1px solid #d8e4f6!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65)!important;
}
.creditor-account-workspace .creditor-current-balance span{
  font-size:15px!important;
  font-weight:900!important;
}
.creditor-account-workspace .creditor-current-balance strong{
  margin:6px 0!important;
  font-size:31px!important;
  font-weight:950!important;
}
.creditor-account-workspace .creditor-current-balance small{
  font-size:12px!important;
  font-weight:800!important;
}
.creditor-statement-toolbar input[type=date]{
  width:180px!important;
  min-width:180px!important;
  direction:ltr!important;
  text-align:center!important;
  padding-inline:42px 12px!important;
  font-variant-numeric:tabular-nums!important;
  font-weight:900!important;
}
.creditor-statement-toolbar input[type=date]::-webkit-datetime-edit,
.creditor-statement-toolbar input[type=date]::-webkit-datetime-edit-fields-wrapper,
.creditor-statement-toolbar input[type=date]::-webkit-datetime-edit-day-field,
.creditor-statement-toolbar input[type=date]::-webkit-datetime-edit-month-field,
.creditor-statement-toolbar input[type=date]::-webkit-datetime-edit-year-field{
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
  opacity:1!important;
}
html[data-theme=dark] .creditor-account-workspace .portal-workspace-head{
  color:#fff!important;
  background:#111c2e!important;
  border-color:#30405a!important;
  border-bottom-color:#6fa4ff!important;
  box-shadow:0 14px 34px rgba(0,0,0,.25)!important;
}
html[data-theme=dark] .creditor-account-workspace .portal-workspace-head>div:not(.creditor-current-balance)>span{
  color:#fff!important;
  background:#1a345a!important;
}
html[data-theme=dark] .creditor-account-workspace .portal-workspace-head h1,
html[data-theme=dark] .creditor-account-workspace .portal-workspace-head p{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-theme=dark] .creditor-account-workspace .portal-workspace-head p{
  background:#0d1728!important;
  border-color:#34445f!important;
}
html[data-theme=dark] .creditor-account-workspace .creditor-current-balance{
  color:#fff!important;
  background:#17345c!important;
  border-color:#416690!important;
  box-shadow:none!important;
}
html[data-theme=dark] .creditor-account-workspace .creditor-current-balance span,
html[data-theme=dark] .creditor-account-workspace .creditor-current-balance strong,
html[data-theme=dark] .creditor-account-workspace .creditor-current-balance small,
html[data-theme=dark] .creditor-statement-totals span,
html[data-theme=dark] .creditor-statement-totals b,
html[data-theme=dark] .creditor-statement-totals .grand,
html[data-theme=dark] .creditor-statement-totals .grand b{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-theme=dark] .creditor-statement-totals span{
  background:#111c2e!important;
  border-color:#40506b!important;
}
html[data-theme=dark] .creditor-statement-totals .grand{
  background:#17345c!important;
}
html[data-theme=dark] .creditor-statement-toolbar input[type=date]{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#0d1728!important;
  border-color:#4b5f80!important;
  color-scheme:dark!important;
}
@media(max-width:760px){
  .creditor-account-workspace .portal-workspace-head{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:18px 14px!important;
  }
  .creditor-account-workspace .portal-back{justify-self:start!important}
  .creditor-account-workspace .creditor-current-balance{width:min(100%,320px)!important;justify-self:center!important}
}


/* n103: calculated debit inputs and current-balance status */
.creditor-entry-grid{grid-template-columns:160px 145px 145px 120px 145px minmax(180px,1fr) 95px!important}
.creditor-entry-grid input[readonly]{background:#eef3fa!important;color:#233b63!important;font-weight:950!important;cursor:not-allowed!important}
.creditor-account-workspace .creditor-current-balance{background:#203f70!important;border-color:#4e73a5!important}
.creditor-account-workspace .creditor-current-balance span{font-size:12px!important}
.creditor-account-workspace .creditor-current-balance strong,
.creditor-account-workspace .creditor-current-balance span,
.creditor-account-workspace .creditor-current-balance small{color:#fff!important;-webkit-text-fill-color:#fff!important}
.creditor-account-workspace .creditor-current-balance.negative strong{color:#ff5b5b!important;-webkit-text-fill-color:#ff5b5b!important}
html[data-theme=dark] .creditor-entry-grid input[readonly]{background:#17243a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(max-width:1100px){.creditor-entry-grid{grid-template-columns:repeat(3,minmax(160px,1fr))!important}}
@media(max-width:680px){.creditor-entry-grid{grid-template-columns:1fr!important}}


/* n103: visible intermediary note */
.creditor-account-workspace .portal-workspace-head p.creditor-person-note{
  display:block!important;
  width:min(100%,520px)!important;
  margin:7px auto 0!important;
  padding:6px 12px!important;
  color:#485a76!important;
  background:transparent!important;
  border:0!important;
  font-size:12px!important;
  line-height:1.55!important;
}
html[data-theme=dark] .creditor-account-workspace .portal-workspace-head p.creditor-person-note{
  color:#d8e2f1!important;
  -webkit-text-fill-color:#d8e2f1!important;
}


/* n103: intermediary transaction editing */
.creditor-statement-table .creditor-edit-btn{min-height:32px!important;padding:5px 12px!important;font-size:12px!important;white-space:nowrap!important}
html[data-theme=dark] .creditor-statement-table .creditor-edit-btn{color:#fff!important;background:#1b3152!important;border-color:#48638b!important}

/* n103 compact creditor header */
.creditor-account-workspace .portal-workspace-head .creditor-current-balance{min-width:0!important;width:auto!important;padding:5px 9px!important;border-radius:10px!important;gap:6px!important}.creditor-account-workspace .portal-workspace-head .creditor-current-balance span{display:inline!important;font-size:11px!important}.creditor-account-workspace .portal-workspace-head .creditor-current-balance strong{display:inline!important;font-size:20px!important;line-height:1!important;margin:0!important}.creditor-account-workspace .portal-workspace-head .creditor-current-balance small{display:inline!important;font-size:9px!important}.creditor-account-workspace .portal-workspace-head .creditor-person-note{width:auto!important;margin:0!important;padding:4px 8px!important;min-height:0!important;font-size:13px!important;line-height:1.25!important}

/* n103 match note card to balance card without changing balance */
.creditor-account-workspace .portal-workspace-head .creditor-person-note{min-height:32px!important;padding:5px 9px!important;border-radius:10px!important;font-size:12px!important;line-height:1.15!important;display:flex!important;align-items:center!important;gap:6px!important}.creditor-account-workspace .portal-workspace-head .creditor-person-note span{display:block;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creditor-account-workspace .portal-workspace-head .creditor-person-note button{flex:0 0 auto!important}

/* n103 smaller creditor note only */
.creditor-account-workspace .portal-workspace-head .creditor-person-note{min-height:26px!important;padding:3px 6px!important;border-radius:8px!important;font-size:10px!important;line-height:1.1!important;gap:4px!important}.creditor-account-workspace .portal-workspace-head .creditor-person-note span{max-width:360px!important}.creditor-account-workspace .portal-workspace-head .creditor-person-note button{font-size:12px!important;padding:0!important}

/* n103 force compact creditor note text */
.creditor-account-workspace .portal-workspace-head p.creditor-person-note{height:26px!important;min-height:26px!important;max-height:26px!important;box-sizing:border-box!important}.creditor-account-workspace .portal-workspace-head p.creditor-person-note span{font-size:10px!important;line-height:1.1!important;font-weight:700!important}.creditor-account-workspace .portal-workspace-head p.creditor-person-note button{font-size:11px!important;line-height:1!important}

/* n103 compact the visible note div in the account header */
.creditor-account-workspace .portal-workspace-head div.creditor-person-note{height:24px!important;min-height:24px!important;max-height:24px!important;padding:2px 6px!important;border-radius:7px!important;line-height:1!important;gap:3px!important;box-sizing:border-box!important}.creditor-account-workspace .portal-workspace-head div.creditor-person-note>span{font-size:11px!important;line-height:1!important;font-weight:700!important;max-width:360px!important}.creditor-account-workspace .portal-workspace-head div.creditor-person-note>button{font-size:10px!important;line-height:1!important;padding:0!important}

.login h1::before{content:"";display:block;width:7rem;height:4.5rem;margin:0 auto .5rem;background:center/contain no-repeat url("/sahaba-logo.png")}
