.accounting-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.accounting-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 18px}.accounting-tabs button{appearance:none;border:1px solid #d9e5eb;background:#fff;color:#526979;border-radius:999px;padding:10px 16px;font:600 14px Inter,sans-serif;cursor:pointer;transition:.18s ease}.accounting-tabs button:hover{border-color:#11a9e8;color:#087fbd}.accounting-tabs button.active{background:#07121a;color:#fff;border-color:#07121a;box-shadow:0 5px 14px rgba(7,18,26,.12)}.accounting-tab-panel{min-width:0}.accounting-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.accounting-metric{background:#fff;border:1px solid #dce8ee;border-radius:18px;padding:18px;min-width:0}.accounting-metric span{display:block;color:#6a7d8b;font-size:13px;font-weight:700}.accounting-metric b{display:block;margin:8px 0 4px;color:#07121a;font-size:20px;line-height:1.15}.accounting-metric small{color:#8a9aa5;font-size:11px}.accounting-overview-grid,.accounting-two-col{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.5fr);gap:16px;align-items:start}.accounting-profit-card strong{display:block;font-size:38px;letter-spacing:-1.5px;margin:18px 0 8px;color:#07121a}.accounting-profit-card>span{color:#6c7f8c;font-size:13px}.accounting-table-wrap{width:100%;overflow:auto;border:1px solid #e1ebef;border-radius:14px}.accounting-table{width:100%;border-collapse:collapse;min-width:640px;background:#fff}.accounting-table th,.accounting-table td{padding:12px 13px;border-bottom:1px solid #e8eff2;text-align:left;font-size:13px;white-space:nowrap}.accounting-table th{background:#f7fafb;color:#647884;font-size:11px;text-transform:uppercase;letter-spacing:.07em}.accounting-table tr:last-child td{border-bottom:0}.accounting-table .num{text-align:right}.accounting-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;text-transform:capitalize;background:#eef3f5;color:#63737d}.accounting-status.posted{background:#e8f7ee;color:#167544}.accounting-status.draft{background:#fff4d9;color:#946b08}.accounting-small-btn{border:1px solid #cfe0e7;background:#fff;color:#087fbd;border-radius:8px;padding:6px 9px;font:700 11px Inter,sans-serif;cursor:pointer}.accounting-empty{padding:28px!important;text-align:center!important;color:#8999a3!important}.accounting-form{display:grid;gap:13px}.accounting-form label{display:grid;gap:7px;color:#506672;font-size:12px;font-weight:700}.accounting-form input,.accounting-form select,.accounting-form textarea{width:100%;box-sizing:border-box;border:1px solid #d5e3e9;border-radius:11px;background:#fff;color:#07121a;padding:11px 12px;font:500 14px Inter,sans-serif;outline:none}.accounting-form input:focus,.accounting-form select:focus,.accounting-form textarea:focus{border-color:#10a7e7;box-shadow:0 0 0 3px rgba(16,167,231,.1)}.accounting-form .primary-btn{margin-top:4px}.check-field{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important;gap:9px!important}.check-field input{width:auto}.accounting-form-note{display:block;color:#81919a;line-height:1.5}.accounting-entry-layout{grid-template-columns:minmax(300px,.65fr) minmax(0,1.65fr)}@media(max-width:1100px){.accounting-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-overview-grid,.accounting-two-col,.accounting-entry-layout{grid-template-columns:1fr}}@media(max-width:700px){.accounting-intro{align-items:flex-start;flex-direction:column}.accounting-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.accounting-tabs button{white-space:nowrap}.accounting-metrics{grid-template-columns:1fr 1fr}.accounting-metric{padding:14px}.accounting-metric b{font-size:16px}.accounting-profit-card strong{font-size:30px}.accounting-table{min-width:580px}}@media(max-width:480px){.accounting-metrics{grid-template-columns:1fr}.accounting-tabs button{padding:9px 13px;font-size:13px}}.accounting-nav-label{margin-top:18px}

.accounting-document-layout{grid-template-columns:minmax(340px,.72fr) minmax(0,1.7fr)}
.accounting-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.document-lines{display:grid;gap:8px}
.document-line{display:grid;grid-template-columns:1.7fr 1.35fr .65fr .9fr .65fr 32px;gap:7px;align-items:center}
.document-line input,.document-line select{min-width:0;border:1px solid #d5e3e9;border-radius:9px;background:#fff;color:#07121a;padding:9px 8px;font:500 12px Inter,sans-serif}
.document-line input:focus,.document-line select:focus{border-color:#10a7e7;outline:none;box-shadow:0 0 0 3px rgba(16,167,231,.1)}
.line-remove{width:30px;height:30px;border:0;border-radius:8px;background:#f3f6f7;color:#667985;font-size:18px;cursor:pointer}
.document-total-box{display:grid;gap:7px;border:1px solid #dce8ee;background:#f7fafb;border-radius:13px;padding:12px 14px;margin-top:4px}
.document-total-box span,.document-total-box strong{display:flex;justify-content:space-between;gap:20px}
.document-total-box strong{padding-top:8px;border-top:1px solid #dce8ee;font-size:16px}
.accounting-report-toolbar{margin-bottom:16px}
.report-filter-row{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 130px;align-items:end}
.report-filter-row button{width:100%;min-height:44px}
@media(max-width:600px){.report-filter-row{grid-template-columns:1fr}.report-filter-row button{width:100%}}

.accounting-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.report-stack{display:grid;gap:0}
.report-row{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #e8eff2;font-size:13px}
.report-row:last-child{border-bottom:0}
.report-row span{color:#5d717d}.report-row strong{color:#07121a}
@media(max-width:900px){.accounting-report-grid{grid-template-columns:1fr}.document-line{grid-template-columns:1fr 1fr}.document-line .line-desc{grid-column:1/-1}}
@media(max-width:600px){.accounting-form-row{grid-template-columns:1fr}.document-line{grid-template-columns:1fr}.document-line input,.document-line select{width:100%}}

/* PILARK Accounting — proportional document layout fix */
.accounting-document-layout{grid-template-columns:minmax(500px,.9fr) minmax(680px,1.35fr);gap:20px}
.accounting-document-layout>.panel,.accounting-document-layout .accounting-form,.document-lines{min-width:0}
.document-lines{width:100%}
.document-line{grid-template-columns:minmax(190px,2.8fr) minmax(125px,1.55fr) minmax(65px,.7fr) minmax(115px,1.15fr) minmax(75px,.75fr) 34px;gap:8px}
.document-line input,.document-line select{width:100%;min-width:0;box-sizing:border-box}
.accounting-small-btn{width:100%;min-height:38px}
.document-total-box{width:100%;box-sizing:border-box}
@media(max-width:1250px){
.accounting-document-layout{grid-template-columns:minmax(440px,.9fr) minmax(600px,1.25fr)}
.document-line{grid-template-columns:minmax(155px,2.4fr) minmax(110px,1.35fr) 62px 105px 68px 34px}
}
@media(max-width:1050px){.accounting-document-layout{grid-template-columns:1fr}}

/* PILARK Accounting — final proportional invoice editor */
.accounting-document-layout{
  grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr);
  gap:20px;
}
.accounting-document-layout>.panel{min-width:0;overflow:hidden}
.document-lines{width:100%;min-width:0;overflow:hidden}
.document-line{
  width:100%;
  box-sizing:border-box;
  grid-template-columns:minmax(0,2.45fr) minmax(0,1.55fr) minmax(0,.55fr) minmax(0,.95fr) minmax(0,.65fr) 32px;
  gap:7px;
}
.document-line>*{min-width:0}
.document-line input,.document-line select{
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.accounting-document-layout .accounting-table{
  min-width:0;
  table-layout:fixed;
}
.accounting-document-layout .accounting-table th,
.accounting-document-layout .accounting-table td{
  padding:11px 9px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.accounting-document-layout .accounting-table th:nth-child(1){width:13%}
.accounting-document-layout .accounting-table th:nth-child(2){width:12%}
.accounting-document-layout .accounting-table th:nth-child(3){width:18%}
.accounting-document-layout .accounting-table th:nth-child(4){width:12%}
.accounting-document-layout .accounting-table th:nth-child(5){width:14%}
.accounting-document-layout .accounting-table th:nth-child(6){width:13%}
.accounting-document-layout .accounting-table th:nth-child(7){width:10%}
.accounting-document-layout .accounting-table th:nth-child(8){width:8%}
@media(max-width:1050px){
  .accounting-document-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  .document-line{
    grid-template-columns:minmax(0,1.7fr) minmax(0,1.3fr);
  }
  .document-line .line-desc{grid-column:1}
  .document-line .line-account{grid-column:2}
  .document-line .line-qty{grid-column:1}
  .document-line .line-price{grid-column:2}
  .document-line .line-tax{grid-column:1}
  .document-line .line-remove{grid-column:2;justify-self:end}
}


.accounting-actions{display:flex;gap:6px;align-items:center}.accounting-overdue{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:#fff0f0;color:#b42318;font-size:10px;font-weight:800}.document-history{margin-top:14px;border:1px solid #dce8ee;border-radius:14px;background:#fff;padding:14px}.document-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.document-history-head b{display:block;color:#07121a}.document-history-head span{display:block;color:#71838e;font-size:12px;margin-top:3px}.document-history .accounting-table{min-width:0}@media(max-width:900px){.accounting-actions{flex-wrap:wrap}}

/* PILARK Accounting — period control */
.accounting-period-layout{grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr)}
.period-status{display:flex;align-items:center;gap:8px;margin:0 0 16px;padding:12px 14px;border:1px solid #dce8ee;border-radius:12px;background:#f7fafb;color:#536b78;font-size:13px}
.period-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 auto}.period-dot.open{background:#22a06b}.period-dot.closed{background:#d64545}
@media(max-width:900px){.accounting-period-layout{grid-template-columns:1fr}}

.accounting-statement-panel{margin-top:16px}
.aging-total{margin-top:8px;border-top:1px solid #dce8ee;padding-top:10px}
.statement-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 14px}
.statement-summary>div{padding:12px 14px;border:1px solid #e1e9ed;border-radius:10px;background:#f8fafb}
.statement-summary span{display:block;color:#657783;font-size:11px;margin-bottom:5px}
.statement-summary b{font-size:15px}
.statement-doc-link{border:0;background:none;padding:0;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
@media(max-width:800px){.statement-summary{grid-template-columns:1fr}.partner-statement .accounting-table{min-width:850px}}
.statement-head{display:flex;justify-content:space-between;gap:20px;padding:14px 0}
.statement-head span{display:block;color:#657783;margin-top:4px}
.statement-total{display:flex;justify-content:flex-end;gap:28px;padding:14px 0;font-size:15px}
@media(max-width:800px){.statement-head{display:block}.statement-head>div+div{margin-top:12px}.statement-total{justify-content:space-between}}

.dashboard-toolbar{margin-bottom:16px}
.dashboard-grid{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr);gap:16px;align-items:start}
.dashboard-profit{min-height:150px}
.dashboard-profit>strong{display:block;font-size:30px;line-height:1.2;margin:18px 0 8px}
.dashboard-profit>span{color:#687985;font-size:12px}
.dashboard-bars{display:flex;flex-direction:column;gap:10px}
.dashboard-bar-group{display:grid;grid-template-columns:42px minmax(0,1fr) 115px;gap:10px;align-items:center;font-size:12px}
.dashboard-bar-group>span{font-weight:600}
.dashboard-bar-track{height:12px;border-radius:7px;background:#edf2f4;position:relative;overflow:hidden}
.dashboard-bar-track i,.dashboard-bar-track em{display:block;height:6px;position:absolute;left:0;border-radius:7px}
.dashboard-bar-track i{top:0;background:#32748f}
.dashboard-bar-track em{bottom:0;background:#b7c6ce}
.dashboard-bar-group small{text-align:right;color:#647783}
.dashboard-exposure{display:flex;flex-direction:column;gap:12px}
.exposure-row,.exposure-net{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #e5ecef}
.exposure-net{border-bottom:0;padding-top:14px;font-size:15px}
.dashboard-activity{margin-top:16px}
.dashboard-activity-list{display:flex;flex-direction:column}
.activity-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f3}
.activity-dot{width:8px;height:8px;border-radius:50%;background:#32748f}
.activity-row div span{display:block;color:#71818a;font-size:12px;margin-top:3px}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:800px){.dashboard-bar-group{grid-template-columns:38px minmax(0,1fr) 95px}}


/* PILARK Accounting — detailed Journal Entries */
.accounting-entry-toolbar{margin-bottom:14px}.entry-filter-row{display:grid;grid-template-columns:minmax(220px,1.7fr) minmax(150px,1fr) minmax(130px,.8fr) minmax(130px,.8fr) minmax(130px,.8fr) 90px;gap:10px;align-items:end}.entry-filter-row label{display:grid;gap:6px;color:#506672;font-size:11px;font-weight:800}.entry-filter-row input,.entry-filter-row select{width:100%;box-sizing:border-box;border:1px solid #d5e3e9;border-radius:10px;background:#fff;color:#07121a;padding:10px 11px;font:500 13px Inter,sans-serif}.entry-filter-row button{width:100%;min-height:40px}.entry-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.entry-link{appearance:none;border:0;background:transparent;padding:0;color:#087fbd;font:inherit;cursor:pointer;text-align:left}.entry-link:hover{text-decoration:underline}.accounting-entry-detail{margin-top:16px}.entry-detail-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid #e3ecef}.entry-detail-head h3{margin:5px 0 4px;font-size:24px;letter-spacing:-.5px}.entry-detail-head p{margin:0;color:#6b7d87;font-size:12px}.entry-detail-actions{display:flex;align-items:center;gap:10px}.entry-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 0}.entry-detail-meta span{display:grid;gap:4px;color:#71828c;font-size:11px}.entry-detail-meta b{color:#07121a;font-size:12px}.entry-detail-memo{padding:12px 14px;background:#f7fafb;border:1px solid #dce8ee;border-radius:11px;margin-bottom:14px;color:#526672;font-size:13px;line-height:1.5}.entry-detail-table{min-width:780px}.entry-detail-table tfoot th{padding:13px;border-top:2px solid #d8e4e9;background:#f8fafb}@media(max-width:1100px){.entry-filter-row{grid-template-columns:1.5fr 1fr 1fr}.entry-summary-grid{grid-template-columns:1fr 1fr}.entry-detail-meta{grid-template-columns:1fr 1fr}}@media(max-width:700px){.entry-filter-row{grid-template-columns:1fr}.entry-summary-grid{grid-template-columns:1fr}.entry-detail-head{display:block}.entry-detail-actions{margin-top:12px;justify-content:space-between}.entry-detail-meta{grid-template-columns:1fr}}

/* Odoo-style Chart of Accounts / Account Picker */
.account-tree-name{display:inline-block;padding-left:calc(var(--depth,0) * 18px);white-space:nowrap}.account-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5e3e9;border-radius:11px;background:#fff;color:#07121a;font:500 14px Inter,sans-serif;cursor:pointer;text-align:left}.account-picker-trigger:hover{border-color:#10a7e7}.account-picker-trigger b{font-size:18px;color:#6b7d87}.account-picker-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center}.account-picker-modal[hidden]{display:none}.account-picker-backdrop{position:absolute;inset:0;background:rgba(7,18,26,.32);backdrop-filter:blur(2px)}.account-picker-dialog{position:relative;width:min(1065px,calc(100vw - 32px));height:min(845px,calc(100vh - 48px));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;background:#fff;border-radius:10px;box-shadow:0 22px 70px rgba(7,18,26,.24);overflow:hidden}.account-picker-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;border-bottom:1px solid #e5eaed}.account-picker-head h2{margin:0;font-size:22px;letter-spacing:-.3px;color:#07121a}.account-picker-head span{color:#596d79;font-size:13px}.account-picker-close{width:38px;height:38px;border:0;background:transparent;color:#657681;font-size:30px;line-height:1;border-radius:8px;cursor:pointer}.account-picker-close:hover{background:#f2f5f6}.account-picker-tools{display:grid;grid-template-columns:minmax(260px,340px) 42px 42px;justify-content:center;gap:8px;padding:10px 18px;border-bottom:1px solid #edf1f3}.account-picker-tools label{display:flex;align-items:center;gap:8px;border:1px solid #bfcfd6;border-radius:24px;padding:0 13px;height:40px}.account-picker-tools label:focus-within{border-color:#5e9eac;box-shadow:0 0 0 2px rgba(94,158,172,.12)}.account-picker-tools label span{font-size:18px;color:#657681}.account-picker-tools input{width:100%;border:0;outline:0;background:transparent;font:500 14px Inter,sans-serif}.account-picker-tools button{border:1px solid #d5e0e5;background:#fff;border-radius:8px;font-size:24px;color:#4e6571;cursor:pointer}.account-picker-tools button:disabled{opacity:.35;cursor:not-allowed}.account-picker-table-wrap{overflow:auto}.account-picker-table{width:100%;border-collapse:collapse;min-width:760px}.account-picker-table th,.account-picker-table td{padding:11px 18px;border-bottom:1px solid #e5eaed;text-align:left;font-size:14px;white-space:nowrap}.account-picker-table th{position:sticky;top:0;background:#fff;color:#4f616c;font-weight:700;z-index:1}.account-picker-table tbody tr{cursor:pointer}.account-picker-table tbody tr:hover{background:#f5f9fa}.account-picker-table td:nth-child(1){width:130px}.account-picker-table td:nth-child(2){min-width:360px}.account-picker-table td:nth-child(3){width:210px}.reconcile-toggle{display:inline-flex;width:30px;height:17px;border-radius:12px;background:#e3e6e8;vertical-align:middle;padding:2px;box-sizing:border-box}.reconcile-toggle i{display:block;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.15)}.reconcile-toggle.on{background:#8ed2a4}.reconcile-toggle.on i{margin-left:13px}.account-picker-foot{display:flex;gap:8px;padding:10px 18px;border-top:1px solid #e5eaed;background:#fff}.account-picker-foot>button{min-height:38px;padding:8px 14px;border:1px solid #d5e0e5;background:#fff;border-radius:8px;font:700 13px Inter,sans-serif;cursor:pointer}.account-picker-foot .primary-btn{color:#fff;border:0}.accounting-table td .account-tree-name{max-width:100%;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.account-picker-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:8px}.account-picker-head{padding:14px}.account-picker-tools{grid-template-columns:minmax(0,1fr) 40px 40px;padding:9px}.account-picker-table th,.account-picker-table td{padding:10px 12px}.account-picker-table{min-width:700px}}


/* General Ledger */
.account-group-row{background:#f7fafb}.account-group-row td{font-weight:700;color:#344b57}.account-leaf-row{cursor:pointer}.account-leaf-row:hover{background:#f5fafc}.account-ledger-panel{margin-top:16px}.account-ledger-filters{display:grid;grid-template-columns:160px 160px minmax(220px,1fr) 130px;gap:10px;align-items:end;margin-bottom:14px}.account-ledger-filters label{display:grid;gap:6px;color:#506672;font-size:11px;font-weight:800}.account-ledger-filters input{width:100%;box-sizing:border-box;border:1px solid #d5e3e9;border-radius:10px;background:#fff;padding:10px 11px;font:500 13px Inter,sans-serif}.account-ledger-table{min-width:980px}.account-ledger-table tbody tr:hover{background:#f8fbfc}@media(max-width:800px){.account-ledger-filters{grid-template-columns:1fr 1fr}.account-ledger-filters label:nth-child(3){grid-column:1/-1}.account-ledger-filters button{width:100%}}

.reconcile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;margin:0 0 10px;border:1px solid #dce8ee;border-radius:10px;background:#f7fafb;color:#536b78;font-size:12px}.reconcile-toolbar b{color:#07121a}.reconcile-toolbar button{min-width:110px}.reconcile-col{width:42px;text-align:center!important}.ledger-reconcile-check{width:16px;height:16px;cursor:pointer}.account-ledger-table .is-reconciled{background:#fbfcfc}.account-ledger-filters{grid-template-columns:150px 150px minmax(180px,1fr) 170px 130px}.account-ledger-filters label select{width:100%;box-sizing:border-box;border:1px solid #d5e3e9;border-radius:10px;background:#fff;padding:10px 11px;font:500 13px Inter,sans-serif}@media(max-width:900px){.account-ledger-filters{grid-template-columns:1fr 1fr}.account-ledger-filters label:nth-child(3),.account-ledger-filters label:nth-child(4){grid-column:1/-1}}

.reconcile-toolbar{flex-wrap:wrap}.reconcile-amount-label{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:11px;font-weight:800;color:#506672}.reconcile-amount-label input{width:150px;box-sizing:border-box;border:1px solid #d5e3e9;border-radius:9px;padding:9px 10px;background:#fff;font:600 13px Inter,sans-serif}.reconcile-amount-label input:focus{outline:0;border-color:#10a7e7}@media(max-width:700px){.reconcile-amount-label{width:100%;margin-left:0}.reconcile-amount-label input{flex:1}}

.aging-reconciliation-note{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;padding:11px 12px;border:1px solid #dce8ee;border-radius:10px;background:#f7fafb;color:#637681;font-size:11px}.aging-reconciliation-note b{color:#07121a;font-size:12px}.aging-grid .accounting-table{min-width:920px}@media(max-width:800px){.aging-reconciliation-note{grid-template-columns:1fr 1fr}}

.accounting-ai-launch{position:fixed;right:28px;bottom:24px;z-index:1001;margin:0;display:block}
.accounting-ai-fab{display:inline-flex;align-items:center;gap:8px;border:1px solid #d4e3ea;background:#07121a;color:#fff;border-radius:999px;padding:11px 17px;font:700 13px Inter,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(7,18,26,.16)}
.accounting-ai-spark{font-size:16px;color:#66d6ff}
.accounting-ai-panel{position:fixed;right:28px;bottom:88px;width:min(430px,calc(100vw - 40px));height:min(650px,calc(100vh - 48px));z-index:1000;background:#fff;border:1px solid #d9e5ea;border-radius:18px;box-shadow:0 24px 70px rgba(7,18,26,.25);display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;overflow:hidden}
.accounting-ai-panel[hidden]{display:none}
.accounting-ai-head{display:flex;justify-content:space-between;gap:14px;padding:17px 18px;border-bottom:1px solid #e5ecef;background:#f8fbfc}
.accounting-ai-kicker{font-size:10px;letter-spacing:.16em;font-weight:800;color:#0b91cf}
.accounting-ai-head h3{margin:4px 0 2px;font-size:17px;color:#07121a}
.accounting-ai-head p{margin:0;color:#73838d;font-size:11px;line-height:1.4}
.accounting-ai-close{border:0;background:transparent;font-size:25px;line-height:1;cursor:pointer;color:#687984}
.accounting-ai-messages{padding:16px;overflow:auto;display:flex;flex-direction:column;gap:12px;background:#fff}
.accounting-ai-message{display:flex;gap:8px;align-items:flex-start}
.accounting-ai-message.user{justify-content:flex-end}
.accounting-ai-avatar{width:26px;height:26px;flex:0 0 26px;border-radius:50%;display:grid;place-items:center;background:#07121a;color:#fff;font-size:11px;font-weight:800}
.accounting-ai-message.user .accounting-ai-avatar{order:2;background:#0b91cf}
.accounting-ai-bubble{max-width:82%;padding:10px 12px;border-radius:13px;background:#f2f6f8;color:#23343d;font-size:13px;line-height:1.55;white-space:normal}
.accounting-ai-message.user .accounting-ai-bubble{background:#e1f4fb}
.accounting-ai-suggestions{display:flex;gap:7px;overflow:auto;padding:9px 12px;border-top:1px solid #edf2f4}
.accounting-ai-suggestions button{white-space:nowrap;border:1px solid #d9e5ea;background:#fff;border-radius:999px;padding:7px 10px;color:#48616e;font-size:11px;cursor:pointer}
.accounting-ai-form{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;padding:10px 12px;border-top:1px solid #e5ecef}
.accounting-ai-form textarea{resize:none;border:1px solid #d5e2e7;border-radius:11px;padding:10px;font:13px Inter,sans-serif;outline:none}
.accounting-ai-form textarea:focus{border-color:#0b91cf}
.accounting-ai-form button{border:0;border-radius:11px;background:#07121a;color:#fff;font-size:17px;cursor:pointer}
.accounting-ai-form button:disabled{opacity:.5;cursor:wait}
.accounting-ai-note{padding:7px 12px 11px;text-align:center;color:#8998a1;font-size:10px;background:#fff}
@media(max-width:700px){.accounting-ai-panel{right:12px;bottom:12px;width:calc(100vw - 24px);height:calc(100vh - 24px)}}

.accounting-ai-bubble p{margin:0 0 8px}
.accounting-ai-bubble p:last-child{margin-bottom:0}
.accounting-ai-bubble h1,.accounting-ai-bubble h2,.accounting-ai-bubble h3{margin:4px 0 8px;color:#07121a;line-height:1.3}
.accounting-ai-bubble h1{font-size:16px}.accounting-ai-bubble h2{font-size:15px}.accounting-ai-bubble h3{font-size:14px}
.accounting-ai-bubble strong{font-weight:800;color:#0b1d27}
.accounting-ai-bubble em{font-style:italic}
.accounting-ai-bubble ul,.accounting-ai-bubble ol{margin:5px 0 9px;padding-left:22px}
.accounting-ai-bubble li{margin:4px 0;padding-left:2px}
.accounting-ai-bubble code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:#e7eef2;border-radius:5px;padding:1px 4px}
.accounting-ai-bubble pre{margin:8px 0;padding:10px 12px;background:#0b1720;color:#eef7fa;border-radius:9px;overflow:auto;font-size:11px;line-height:1.5}
.accounting-ai-bubble pre code{background:transparent;padding:0;color:inherit}


.accounting-ai-action{margin-top:14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:14px;background:rgba(255,255,255,.035)}
.accounting-ai-action-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.accounting-ai-action-head b{display:block;font-size:13px}
.accounting-ai-action-head span{display:block;margin-top:3px;font-size:11px;opacity:.65}
.accounting-ai-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.accounting-ai-action-grid>div{padding:8px 9px;border-radius:9px;background:rgba(255,255,255,.04);min-width:0}
.accounting-ai-action-grid small{display:block;font-size:10px;opacity:.55;margin-bottom:3px}
.accounting-ai-action-grid b{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.accounting-ai-action-memo{margin-top:9px;font-size:11px;line-height:1.45;opacity:.78}
.accounting-ai-review-btn{margin-top:12px;border:0;border-radius:9px;padding:9px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
@media(max-width:640px){.accounting-ai-action-grid{grid-template-columns:1fr}}


/* Journal entry detail modal — keeps the accounting overview/list layout unchanged. */
.accounting-entry-detail{position:fixed;inset:0;z-index:10040;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;margin:0!important;background:rgba(7,18,26,.34);backdrop-filter:blur(2px);overflow:auto}
.accounting-entry-detail[hidden]{display:none!important}
.accounting-entry-dialog{position:relative;width:min(1180px,calc(100vw - 48px));max-height:min(820px,calc(100vh - 48px));overflow:auto;background:#fff;border:1px solid #dce8ee;border-radius:16px;box-shadow:0 24px 80px rgba(7,18,26,.28);padding:24px;box-sizing:border-box}
.accounting-entry-dialog .entry-detail-head{position:sticky;top:-24px;background:#fff;padding-top:0;padding-bottom:16px;z-index:2}
.accounting-entry-dialog .entry-detail-table{min-width:780px}
@media(max-width:700px){.accounting-entry-detail{padding:12px}.accounting-entry-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:18px}.accounting-entry-dialog .entry-detail-head{top:-18px}}

/* Posted journal delete action */
.accounting-small-btn.delete-entry-btn{color:#c62828;border-color:#f1c6c6;background:#fff}
.accounting-small-btn.delete-entry-btn:hover{color:#fff;background:#c62828;border-color:#c62828}

/* AI Receipt Scanner */
.receipt-scanner-grid{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(420px,1.4fr);gap:16px}
.receipt-upload-panel,.receipt-result-panel{min-height:460px}
.receipt-dropzone{min-height:260px;border:2px dashed #c8dce5;border-radius:16px;background:#f8fbfc;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;transition:.18s}
.receipt-dropzone.dragging{border-color:#0b91cf;background:#eef9fd;transform:scale(1.01)}
.receipt-upload-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:#e7f5fa;color:#0b91cf;font-size:30px;font-weight:800;margin-bottom:12px}
.receipt-dropzone h3{margin:0 0 6px;font-size:18px;color:#07121a}.receipt-dropzone p{margin:0 0 18px;color:#71838d;font-size:12px;line-height:1.5}
.receipt-scan-status{margin-top:12px;padding:11px 12px;border-radius:10px;background:#f4f7f8;color:#647680;font-size:12px}
.receipt-scan-status.working{background:#fff8e8;color:#9a6900}.receipt-scan-status.success{background:#edf9f1;color:#27733e}.receipt-scan-status.error{background:#fff0f0;color:#b02a37}
.receipt-preview-wrap{margin-top:12px;border:1px solid #dce8ee;border-radius:12px;overflow:hidden;background:#f7fafb;max-height:380px;text-align:center}
.receipt-preview-wrap img{display:block;width:100%;max-height:380px;object-fit:contain}
.receipt-result-empty{min-height:350px;display:grid;place-items:center;text-align:center;color:#7a8b94;font-size:13px}
.receipt-loading{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#536a76}
.receipt-loading span{width:28px;height:28px;border:3px solid #d9e8ee;border-top-color:#0b91cf;border-radius:50%;animation:receiptSpin .8s linear infinite}
@keyframes receiptSpin{to{transform:rotate(360deg)}}
.receipt-loading small{color:#8a9aa2}.receipt-error,.receipt-success{padding:18px;border-radius:12px;background:#fff2f2;color:#9b3038}.receipt-success{background:#edf9f1;color:#27733e;display:flex;flex-direction:column;gap:5px}
.receipt-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.receipt-fields label,.receipt-journal-grid label{display:grid;gap:5px;color:#566c77;font-size:11px;font-weight:800}
.receipt-fields input,.receipt-journal-grid select{width:100%;box-sizing:border-box;border:1px solid #d5e3e9;border-radius:9px;background:#fff;color:#07121a;padding:9px 10px;font:500 13px Inter,sans-serif}
.receipt-journal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0 10px;padding-top:15px;border-top:1px solid #e6eef1}
.receipt-journal-head b{font-size:13px;color:#07121a}.receipt-journal-head span{font-size:10px;color:#84939a}
.receipt-journal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.receipt-lines{margin-top:16px;border-top:1px solid #e6eef1;padding-top:12px}.receipt-lines>b{font-size:12px;color:#405864}
.receipt-lines>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf2f4;font-size:12px}.receipt-lines strong{font-size:12px}.receipt-ai-note{margin-top:12px;padding:10px 11px;border-radius:9px;background:#f7fafb;color:#637781;font-size:11px;line-height:1.5}
.receipt-confidence{display:inline-flex;padding:6px 9px;border-radius:999px;background:#edf8fc;color:#0b7eaf;font-size:10px;font-weight:800}
.receipt-action-bar{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.receipt-action-bar[hidden]{display:none}
@media(max-width:900px){.receipt-scanner-grid{grid-template-columns:1fr}.receipt-upload-panel,.receipt-result-panel{min-height:auto}}
@media(max-width:600px){.receipt-fields,.receipt-journal-grid{grid-template-columns:1fr}.receipt-action-bar{flex-direction:column}.receipt-action-bar button{width:100%}}

/* Sales quotations */
.quotation-line{display:grid;grid-template-columns:90px 130px minmax(180px,1fr) 65px 65px 115px 34px;gap:6px;align-items:start;padding:8px 0;border-bottom:1px solid #e5edf1}
.quotation-line input,.quotation-line textarea{width:100%;box-sizing:border-box;border:1px solid #d5e2e8;border-radius:7px;padding:8px;font:500 11px Inter,sans-serif;color:#14232c;background:#fff}
.quotation-line textarea{min-height:48px;resize:vertical}
.quotation-line:before{content:"";display:none}
#quotationLines{margin-top:10px}
#quotationForm textarea{line-height:1.45}
@media(max-width:1000px){.quotation-line{grid-template-columns:1fr 1fr}.quotation-line .q-desc{grid-column:1/-1}}
@media(max-width:650px){.quotation-line{grid-template-columns:1fr}.quotation-line .q-desc{grid-column:auto}}

/* Full-width quotation workspace */
.quotation-workspace{display:flex;flex-direction:column;gap:18px;width:100%}
.quotation-editor-panel,.quotation-history-panel{width:100%;box-sizing:border-box}
.quotation-header-grid{display:grid;grid-template-columns:1.25fr .75fr 1fr 1fr;gap:14px;margin-bottom:18px}
.quotation-header-grid .quotation-reference{grid-column:1/-1}
.quotation-items-section{border:1px solid #dce8ee;border-radius:12px;background:#fbfdfe;padding:14px;margin-top:4px}
.quotation-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.quotation-section-title strong{display:block;font-size:14px;color:#10232d}
.quotation-section-title span{display:block;margin-top:3px;font-size:11px;color:#718490}
.quotation-line-head{display:grid;grid-template-columns:1fr 1.15fr 2fr .65fr .65fr 1.05fr 1.1fr 34px;gap:8px;padding:0 0 7px;color:#718490;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.quotation-lines{display:grid;gap:8px}
.quotation-line{display:grid;grid-template-columns:1fr 1.15fr 2fr .65fr .65fr 1.05fr 1.1fr 34px;gap:8px;align-items:start;padding:0;border-bottom:0}
.quotation-line input,.quotation-line textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d5e2e8;border-radius:8px;padding:9px;font:500 12px Inter,sans-serif;color:#14232c;background:#fff}
.quotation-line textarea{min-height:42px;resize:vertical}
.quotation-line input:focus,.quotation-line textarea:focus{border-color:#10a7e7;outline:none;box-shadow:0 0 0 3px rgba(16,167,231,.1)}
.quotation-line .q-price{font-weight:600;text-align:right}
.quotation-line .q-line-total{background:#f4f8fa;text-align:right;font-weight:600}
.quotation-financial-row{display:grid;grid-template-columns:minmax(280px,420px) 160px;justify-content:end;align-items:end;gap:14px;margin-top:16px}
.quotation-total-box{margin:0}
.quotation-terms-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.quotation-terms-grid .quotation-wide{grid-column:1/-1}
.quotation-terms-grid textarea{min-height:70px;resize:vertical}
.quotation-save-row{display:flex;justify-content:flex-end;padding-top:18px}
.quotation-history-panel .accounting-table-wrap{max-height:430px;overflow:auto}
.quotation-history-table{min-width:900px}
.quotation-history-table th:last-child,.quotation-history-table td:last-child{min-width:250px}
@media(max-width:1050px){
  .quotation-header-grid{grid-template-columns:1fr 1fr}
  .quotation-line-head{display:none}
  .quotation-line{grid-template-columns:1fr 1fr}
  .quotation-line .q-desc{grid-column:1/-1}
  .quotation-financial-row{justify-content:stretch}
}
@media(max-width:700px){
  .quotation-header-grid,.quotation-terms-grid{grid-template-columns:1fr}
  .quotation-header-grid .quotation-reference,.quotation-terms-grid .quotation-wide{grid-column:auto}
  .quotation-line{grid-template-columns:1fr}
  .quotation-financial-row{grid-template-columns:1fr}
}

/* Quotation logo library */
.quotation-logo-panel{margin:18px 0;padding:16px;border:1px solid #dce8ee;border-radius:14px;background:#fbfdfe}
.quotation-logo-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.quotation-logo-head strong{display:block;font-size:13px;color:#203640}
.quotation-logo-head span{display:block;margin-top:3px;font-size:11px;color:#738892}
.quotation-logo-upload{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:9px;background:#124d85;color:#fff;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.quotation-logo-upload:hover{background:#0d3d6a}
.quotation-logo-library{display:flex;flex-wrap:wrap;gap:10px}
.quotation-logo-card{position:relative;width:150px;border:1px solid #dce8ee;border-radius:10px;background:#fff;padding:8px;cursor:pointer}
.quotation-logo-card.selected{border:2px solid #0b5b91;box-shadow:0 0 0 2px rgba(11,91,145,.08)}
.quotation-logo-card img{display:block;width:100%;height:58px;object-fit:contain;background:#fff;border-radius:6px}
.quotation-logo-card .quotation-logo-name{display:block;margin-top:7px;font-size:9px;color:#5d7480;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quotation-logo-card .quotation-logo-selected{position:absolute;right:7px;top:7px;background:#0b5b91;color:#fff;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}
.quotation-logo-empty{font-size:11px;color:#84959d;padding:6px 0}
@media(max-width:700px){.quotation-logo-head{align-items:flex-start;flex-direction:column}.quotation-logo-card{width:130px}}


/* 2026-10-10 Quotation proportional field layout */
@media (min-width:1001px){
  .quotation-editor-panel{overflow:hidden}
  .quotation-header-grid{
    grid-template-columns:minmax(0,1.35fr) minmax(150px,.7fr) minmax(190px,1fr) minmax(0,1fr);
    gap:16px;
  }
  .quotation-items-section{
    padding:16px;
    overflow:hidden;
  }
  .quotation-section-title{
    display:grid;
    grid-template-columns:minmax(260px,.55fr) minmax(0,1.45fr);
    gap:18px;
    align-items:center;
  }
  .quotation-section-title .accounting-small-btn{
    width:100%;
    min-height:46px;
    box-sizing:border-box;
  }
  .quotation-line-head,
  .quotation-line{
    grid-template-columns:
      minmax(105px,.85fr)
      minmax(145px,1.05fr)
      minmax(240px,1.9fr)
      minmax(72px,.62fr)
      minmax(72px,.62fr)
      minmax(125px,.95fr)
      minmax(125px,.95fr)
      34px;
    gap:9px;
  }
  .quotation-line-head>div,
  .quotation-line>*{
    min-width:0;
  }
  .quotation-line input,
  .quotation-line textarea{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  .quotation-line textarea{
    min-height:48px;
  }
  .quotation-financial-row{
    grid-template-columns:minmax(320px,1fr) 150px;
    width:min(100%,520px);
    margin-left:auto;
  }
  .quotation-terms-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:16px;
  }
  .quotation-terms-grid label{
    min-width:0;
  }
  .quotation-terms-grid input,
  .quotation-terms-grid textarea{
    width:100%;
    box-sizing:border-box;
  }
}
@media (min-width:701px) and (max-width:1000px){
  .quotation-header-grid{grid-template-columns:1fr 1fr}
  .quotation-section-title{grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr)}
  .quotation-section-title .accounting-small-btn{width:100%}
}


/* 2026-10-10 Quotation visual refinement — balanced, clean workspace */
.quotation-workspace{
  gap:20px;
}
.quotation-editor-panel{
  border-radius:18px!important;
}
.quotation-logo-panel{
  margin:0 0 2px!important;
  padding:18px 20px!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fbfdfe 0%,#f7fafb 100%)!important;
}
.quotation-logo-head{
  align-items:center!important;
  margin-bottom:14px!important;
}
.quotation-logo-library{
  display:flex!important;
  align-items:center!important;
  min-height:88px;
}
.quotation-logo-card{
  width:190px!important;
  padding:10px!important;
  border-radius:12px!important;
  box-sizing:border-box;
}
.quotation-logo-card img{
  height:62px!important;
}
.quotation-logo-upload{
  min-height:40px;
  padding:0 16px!important;
  border-radius:10px!important;
}

.quotation-items-section{
  padding:18px 20px!important;
  border-radius:16px!important;
  background:#fbfdfe!important;
}
.quotation-section-title{
  grid-template-columns:300px minmax(0,1fr)!important;
  gap:18px!important;
  margin-bottom:16px!important;
}
.quotation-section-title strong{
  font-size:16px!important;
}
.quotation-section-title span{
  font-size:12px!important;
  line-height:1.35;
}
.quotation-section-title .accounting-small-btn{
  min-height:48px!important;
  border-radius:10px!important;
  font-size:13px!important;
  background:#fff!important;
}

.quotation-line-head,
.quotation-line{
  grid-template-columns:
    minmax(100px,.78fr)
    minmax(150px,1.05fr)
    minmax(250px,1.9fr)
    minmax(70px,.55fr)
    minmax(70px,.58fr)
    minmax(125px,.9fr)
    minmax(125px,.9fr)
    34px!important;
  gap:10px!important;
}
.quotation-line-head{
  padding:0 2px 8px!important;
  font-size:10px!important;
}
.quotation-line{
  padding:0!important;
}
.quotation-line input,
.quotation-line textarea{
  min-height:42px;
  padding:10px 11px!important;
  border-radius:9px!important;
  font-size:12px!important;
}
.quotation-line textarea{
  min-height:58px!important;
}
.quotation-line .q-line-total{
  background:#f3f7f9!important;
  font-weight:700!important;
}
.quotation-line .q-remove{
  width:34px;
  height:42px;
  border-radius:9px;
  align-self:start;
}

.quotation-financial-row{
  width:min(100%,540px)!important;
  grid-template-columns:minmax(330px,1fr) 150px!important;
  gap:16px!important;
  margin-top:20px!important;
}
.quotation-total-box{
  padding:15px 18px!important;
  border-radius:14px!important;
  background:#f7fafb!important;
}
.quotation-total-box span,
.quotation-total-box strong{
  min-height:26px;
  align-items:center;
}
.quotation-total-box strong{
  font-size:18px!important;
}
.quotation-financial-row label{
  display:grid;
  gap:7px;
  color:#506672;
  font-size:12px;
  font-weight:700;
}
.quotation-financial-row input{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  border:1px solid #d5e3e9;
  border-radius:11px;
  padding:11px 12px;
  font:500 14px Inter,sans-serif;
}

.quotation-terms-grid{
  margin-top:22px!important;
  gap:18px!important;
}
.quotation-terms-grid label{
  display:grid;
  gap:7px;
  min-width:0;
  color:#506672;
  font-size:12px;
  font-weight:700;
}
.quotation-terms-grid input,
.quotation-terms-grid textarea{
  min-height:48px;
  box-sizing:border-box;
  border:1px solid #d5e3e9;
  border-radius:11px;
  padding:11px 12px;
  font:500 14px Inter,sans-serif;
}
.quotation-terms-grid textarea{
  min-height:92px!important;
}

@media(max-width:1000px){
  .quotation-section-title{
    grid-template-columns:1fr!important;
  }
  .quotation-section-title .accounting-small-btn{
    width:100%!important;
  }
  .quotation-line-head{display:none!important}
  .quotation-line{
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    padding:10px!important;
    border:1px solid #e1eaee;
    border-radius:12px;
    background:#fff;
  }
  .quotation-line .q-desc{
    grid-column:1/-1;
  }
  .quotation-line .q-remove{
    justify-self:end;
  }
}
@media(max-width:700px){
  .quotation-logo-head{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .quotation-logo-card{width:160px!important}
  .quotation-financial-row{
    width:100%!important;
    grid-template-columns:1fr!important;
  }
  .quotation-terms-grid{
    grid-template-columns:1fr!important;
  }
  .quotation-items-section{
    padding:14px!important;
  }
  .quotation-line{
    grid-template-columns:1fr!important;
  }
  .quotation-line .q-desc{
    grid-column:auto;
  }
}


/* 2026-10-10 VAT field alignment — center with quotation totals */
.quotation-financial-row{
  align-items:center!important;
}
.quotation-financial-row>label{
  align-self:center!important;
  justify-self:stretch;
  display:grid!important;
  grid-template-rows:auto 48px;
  gap:7px!important;
  margin:0!important;
  color:#506672;
  font-size:12px;
  font-weight:700;
}
.quotation-financial-row>label input{
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
}
@media(max-width:700px){
  .quotation-financial-row{
    align-items:stretch!important;
  }
  .quotation-financial-row>label{
    width:100%;
  }
}


/* 2026-10-10 Quotation totals align exactly with Unit Price + Total columns */
@media (min-width:1001px){
  .quotation-financial-row{
    width:470px!important;
    max-width:470px!important;
    grid-template-columns:304px 150px!important;
    gap:16px!important;
    margin-left:auto!important;
    margin-right:0!important;
    justify-content:initial!important;
    align-items:center!important;
  }
  .quotation-total-box{
    width:304px!important;
    box-sizing:border-box!important;
  }
  .quotation-financial-row>label{
    width:150px!important;
    box-sizing:border-box!important;
  }
}
@media (max-width:1000px){
  .quotation-financial-row{
    width:100%!important;
    max-width:none!important;
  }
}


/* 2026-10-10 Quotation financial row — VAT left, totals aligned under price/total */
.quotation-financial-row{
  width:min(100%,620px)!important;
  grid-template-columns:150px minmax(360px,1fr)!important;
  justify-content:end!important;
  align-items:center!important;
  gap:16px!important;
}
.quotation-financial-row>.quotation-vat-field{
  grid-column:1;
  grid-row:1;
  width:100%;
  align-self:center!important;
}
.quotation-financial-row>.quotation-total-box{
  grid-column:2;
  grid-row:1;
  width:100%;
  box-sizing:border-box;
  margin:0!important;
}
.quotation-vat-field input{
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  box-sizing:border-box;
}
@media(max-width:700px){
  .quotation-financial-row{
    width:100%!important;
    grid-template-columns:1fr!important;
  }
  .quotation-financial-row>.quotation-vat-field,
  .quotation-financial-row>.quotation-total-box{
    grid-column:1;
    grid-row:auto;
  }
}


/* 2026-10-10 Fixed quotation VAT — no manual rate entry */
.quotation-financial-row{
  width:min(100%,540px)!important;
  grid-template-columns:minmax(330px,1fr)!important;
  justify-content:end!important;
}
.quotation-financial-row>.quotation-total-box{
  grid-column:1;
  width:100%;
  box-sizing:border-box;
  margin:0!important;
}


/* 2026-10-10 Quotation totals — directly under Unit Price + Total columns */
.quotation-financial-row{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  width:100%!important;
  margin-top:20px!important;
}
.quotation-financial-row>.quotation-total-box{
  width:360px!important;
  max-width:calc(100% - 0px)!important;
  margin:0!important;
  box-sizing:border-box;
}
@media(max-width:700px){
  .quotation-financial-row{
    display:block!important;
  }
  .quotation-financial-row>.quotation-total-box{
    width:100%!important;
  }
}


/* 2026-10-10 Final quotation total alignment — right edge matches Total column */
@media(min-width:1001px){
  .quotation-financial-row{
    display:flex!important;
    justify-content:flex-end!important;
    width:100%!important;
    padding-right:44px!important; /* remove-button column (34px) + column gap (10px) */
    box-sizing:border-box;
  }
  .quotation-financial-row>.quotation-total-box{
    width:260px!important; /* Unit Price 125 + gap 10 + Total 125 */
    max-width:260px!important;
    margin:0!important;
    box-sizing:border-box;
  }
}
