/* Bilanc workspace proportions, Llogarit identity. No financial rules here. */
@media screen {
  .side{z-index:7;box-shadow:1px 0 3px #0002}
  .nav{border-top:0;padding:4px 17px}
  .navGroup{position:relative}
  .nav .group{position:relative;padding-right:20px}
  .nav .group::after{content:'›';position:absolute;right:5px;color:#888}
  .nav .group[aria-expanded=true]{color:var(--n);background:#f0f5f6}
  .nav .sub{position:fixed;left:200px;top:48px;width:max-content;min-width:0;background:white;padding:7px 0;border:1px solid #ccc;box-shadow:2px 3px 8px #0003;z-index:8;max-height:calc(100vh - 64px);overflow:auto}
  .nav .sub button{padding:9px 16px;white-space:normal;overflow-wrap:anywhere;color:#222;font-size:13px}
  .nav .sub button:hover,.nav .sub button:focus-visible{background:#e7f6f7;color:var(--n)}
  button:focus-visible,summary:focus-visible{outline:2px solid var(--n);outline-offset:2px}
  .shortcut{font-size:12px}.icon{display:grid;place-items:center}.icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
  .workspace{width:720px}.flow{border-width:1px}.flow h2{font-size:25px}.node{height:32px;font-size:12px;padding:0 15px}
  .flowLinks{position:absolute;inset:0;width:100%;height:100%;color:var(--n);pointer-events:none}.sup .flowLinks{color:var(--t)}
  .flowLinks path{stroke:currentColor;stroke-width:1;fill:none;opacity:.6}
  .screen,.invoice,.master,.paymentScreen,.documentDetail{padding:8px 12px 20px}
  .screen>h1{font-size:28px;text-align:center;margin:0 0 8px;padding:0 0 8px}
  .docTop,.masterHead{position:relative;min-height:38px;padding:0 0 7px;justify-content:center}
  .docTop h1,.masterHead h1{font-size:28px;text-align:center;margin:0 110px;flex:1}
  .docTop>[data-home],.masterHead>#masterClose{position:absolute;right:0}
  .ghost,.action{padding:6px 11px;font-size:12px;min-height:30px}
  .table th,.table td{padding:6px 8px;font-size:12px}.table th{background:#ebebef}.table tbody tr:nth-child(even){background:#f8f8f8}
  .table td .ghost{padding:3px 7px;min-height:26px}
  .filters{background:transparent;border:0;border-bottom:1px solid #d3d3d3;padding:10px 0;font-size:12px}
  .filters input,.filters select{height:28px;padding:4px 6px}
  #invoiceForm{background:transparent;border:0;padding:0;margin-top:8px}
  .invoiceHeader{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:22px;min-height:144px}
  .invoiceFields{display:grid;grid-template-columns:85px minmax(100px,1fr);gap:10px 8px;align-content:start;align-items:center;font-size:12px}
  .invoiceFields label{text-align:left}.invoiceFields input,.invoiceFields select{width:100%;height:27px;padding:4px 7px;border:1px solid #ccc;border-radius:3px;background:#fff;min-width:0}
  .invoicePartnerFacts{white-space:pre-line;grid-column:1/-1;color:#666;font-size:11px;line-height:1.7;overflow-wrap:anywhere;padding:3px 8px}
  .invoiceCurrency{display:flex;justify-content:center;align-items:center;gap:12px;font-size:12px;margin:5px 0 10px}.invoiceCurrency output{padding:5px 14px;background:#e8ebef;border:1px solid #d3d3d3}
  .invoiceTableWrap{min-height:360px;max-height:calc(100vh - 350px);overflow:auto;background:repeating-linear-gradient(to bottom,#fff 0,#fff 29px,#ddd 29px,#ddd 30px,#f8f8f8 30px,#f8f8f8 59px,#ddd 59px,#ddd 60px);border:1px solid #ccc}
  #invoice .items{margin-top:0;table-layout:fixed;counter-reset:invoice-row;background:#fff;font-size:12px}
  #invoice .items th{background:#ebebef;position:sticky;top:0;z-index:1;height:32px;text-align:left;font-weight:600}
  #invoice .items th,#invoice .items td{padding:3px;border:1px solid #d3d3d3;height:30px}
  #invoice .items td:first-child{text-align:center;counter-increment:invoice-row}
  #invoice .items td:first-child::before{content:counter(invoice-row)}
  #invoice .items input{padding:3px;height:24px;background:transparent;min-width:0}
  #invoice .items .num{width:100%}.lineCode,.lineUnit{color:#666;overflow-wrap:anywhere}.lineNet,.lineVat,.lineTotal{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
  #invoice .totals{font-size:12px;width:280px}#invoice .totals .grand{font-size:15px}
  #invoice .docActions{text-align:center;border-top:1px solid #d3d3d3;padding-top:12px}
  #invoice #addItem{margin-top:8px}
  .masterForm{background:transparent;border:0}.tabs{background:transparent}.tabBtn{font-size:13px;padding:9px 15px}.tabBtn.active{border-bottom:2px solid var(--t);font-weight:400}
  .masterGrid{font-size:12px;grid-template-columns:150px minmax(180px,1fr) 150px minmax(180px,1fr);gap:9px 14px}.masterGrid label{text-align:left}.masterGrid input,.masterGrid select{min-height:27px;height:27px;padding:4px 7px}
  .masterActions{text-align:center}.masterTools{background:transparent;border:0;padding:8px 0}.masterTools input{height:29px;font-size:12px}
  .formGrid{font-size:12px;gap:9px 12px}.formGrid label{text-align:left}.formGrid input,.formGrid select{height:28px;padding:4px 7px}
  #paymentScreen .paymentLayout{grid-template-columns:1fr;gap:8px}
  #paymentScreen .paymentCard{background:transparent;border:0;padding:8px 0}
  #paymentScreen .paymentCard h2{font-size:15px;font-weight:400;margin-bottom:12px}
  #paymentScreen .paymentForm{grid-template-columns:90px minmax(150px,1fr) 90px minmax(150px,1fr) 90px minmax(150px,1fr);gap:9px 12px;font-size:12px}
  #paymentScreen .paymentForm label{text-align:left}
  #paymentScreen .paymentForm input,#paymentScreen .paymentForm select,#paymentScreen .paymentForm textarea{padding:4px 6px;min-height:28px;min-width:0;height:28px}
  #paymentScreen .paymentForm .wideAction{grid-column:1/-1;text-align:center}
  #paymentScreen .balanceCards{margin:8px 0}.balanceCard{padding:8px}.balanceCard b{font-size:16px}.balanceCard span{font-size:12px}
  .reportsLayout{display:grid;grid-template-columns:260px minmax(380px,1fr);gap:14px;min-height:650px}
  .reportsSidebar{background:white;border:1px solid #ddd;padding:8px;max-height:calc(100vh - 122px);overflow:auto}
  .reportsSidebar input{width:100%;height:30px;border:1px solid #ccc;padding:6px 8px;margin-bottom:8px;font-size:12px}
  .reportFolder{margin:0}.reportFolder summary{list-style:none;padding:8px 4px;font-size:13px;cursor:pointer;display:flex;gap:7px;align-items:center}
  .reportFolder summary::-webkit-details-marker{display:none}.reportFolder summary::before{content:'›';font-size:18px;line-height:12px;color:#888;width:10px}.reportFolder[open] summary::before{content:'⌄'}
  .folderIcon{width:17px;height:14px;fill:var(--t);opacity:.75}
  .reportLink{display:block;text-align:left;width:100%;border:0;background:white;padding:7px 8px 7px 38px;font:12px Arial;cursor:pointer;color:#333}
  .reportLink:hover,.reportLink[aria-current=true]{background:#e8f5f6;color:var(--n)}
  .reportInfo{border-left:1px solid #ccc;padding:12px 22px;max-width:850px;line-height:1.55}.reportInfo h2{font-size:22px;font-weight:400;margin:2px 0 12px}.reportInfo select{display:block;width:100%;max-width:430px;padding:7px;margin:10px 0}.reportInfo label{display:block}
  .reportInfo .action{margin-top:10px}.reportEmpty{font-size:13px;color:#666;padding:30px 10px}
}
@media print{#reportCenter{display:none!important}}
/* Analytical reports: compact filter column and a printable working paper. */
.commercialLayout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;align-items:start}
.commercialFilters{border:1px solid #d4dbe3;background:#fff;padding:14px;position:sticky;top:68px;max-height:calc(100vh - 95px);overflow:auto}
.commercialFilters h2{font-size:17px;margin:0 0 12px}.commercialFilters label{display:block;font-size:12px;margin:10px 0}
.commercialFilters select,.commercialFilters input{display:block;width:100%;box-sizing:border-box;margin-top:4px;min-height:30px}
.commercialFilters fieldset{margin:12px 0;border:1px solid #d4dbe3;padding:10px}.commercialFilters legend{font-size:13px}
.commercialFilters summary{font-size:14px;padding:10px 0;cursor:pointer;border-bottom:1px solid #e4e8ed}
.commercialOutput{min-width:0;background:#fff;padding:14px;border:1px solid #d4dbe3}.commercialHeading{display:flex;align-items:center;gap:18px}.commercialHeading img{max-width:130px;max-height:60px;object-fit:contain}.commercialHeading h2,.commercialHeading h3{margin:5px 0}
.commercialOutput .table th,.commercialOutput .table td{padding:7px;font-size:12px}.commercialOutput .table td:nth-last-child(-n+3){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.commercialPagination{display:flex;gap:15px;align-items:center;justify-content:flex-end;margin-top:16px}.commercialOutput p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media print{#commercialScreen.on>.detailToolbar,#commercialScreen .commercialFilters,#commercialScreen .commercialPagination,#commercialStatus{display:none!important}#commercialScreen .commercialLayout{display:block}#commercialScreen .commercialOutput{border:0;padding:0}#commercialPaper{page:commercial}#commercialPaper .tableWrap{overflow:visible}#commercialPaper thead{display:table-header-group}#commercialPaper tr{break-inside:avoid}#commercialPaper .table td,#commercialPaper .table th{font-size:8pt;padding:4px}}@page commercial{size:A4 landscape;margin:10mm}
/* Source documents and effective-price analysis reuse the report's read-only snapshot. */
#commercialScreen [hidden]{display:none!important}.commercialEvidenceToolbar{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:12px}.commercialEvidenceToolbar label{display:flex;align-items:center;gap:8px;font-size:12px}.commercialActions .ghost{font-size:12px;white-space:nowrap}.commercialOutput .table td{font-variant-numeric:tabular-nums}.commercialOutput .table td.commercialActions{text-align:center}
@media print{#commercialScreen .commercialActions,#commercialScreen .commercialEvidenceToolbar{display:none!important}#commercialEvidencePaper{page:commercial}#commercialEvidencePaper .tableWrap{overflow:visible}#commercialEvidencePaper thead{display:table-header-group}#commercialEvidencePaper tr{break-inside:avoid}#commercialEvidencePaper .table td,#commercialEvidencePaper .table th{font-size:7pt;padding:3px;white-space:normal;overflow-wrap:anywhere}#commercialPaper .table td,#commercialPaper .table th{white-space:normal;overflow-wrap:anywhere}}
#billingFields{border:1px solid #cbd5e1;padding:12px;margin:12px 0}#billingFields [hidden],#billingBatchScreen [hidden],#billingFields[hidden]{display:none!important}#billingFields .formGrid,#billingBatchScreen .formGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#billingFields label,#billingBatchScreen .formGrid label{display:grid;gap:5px;font-size:12px}#billingFields input,#billingFields select,#billingBatchScreen .formGrid input,#billingBatchScreen .formGrid select{width:100%;min-width:0}#billingBatchFields{border:1px solid #cbd5e1;padding:14px}#billingBatchLines input{width:120px}#billingPartnerBalance{font-size:12px}#billingBatchTotals{font-weight:600}#billingDetailMetadata{white-space:pre-wrap;overflow-wrap:anywhere}@media print{#billingBatchScreen{display:none!important}}
#billingFields .billingPolicyControls{margin-top:10px;border-top:1px solid #dbe2ea;padding-top:10px}#billingFields .billingPolicyControls .checkLine{display:flex;align-items:center;gap:8px}#billingFields input[type=checkbox]{width:auto}#billingPolicyHint{font-size:12px;line-height:1.5}
#advanceScreen [hidden]{display:none!important}#advanceScreen form,#advanceActionForm fieldset{border:1px solid #dbe2ea;padding:14px;margin:12px 0}#advanceScreen .formGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#advanceScreen label{display:grid;gap:5px;font-size:12px}#advanceScreen .checkLine{display:flex;align-items:center;gap:8px;margin:12px 0}#advanceScreen input:not([type=checkbox]),#advanceScreen select,#advanceScreen textarea{width:100%;min-width:0}#advanceScreen textarea{min-height:70px}.advancePagination,.advanceFilters{display:flex;gap:10px;align-items:end;margin:12px 0}#advanceStatus{min-height:1.5em}#advancePaper .balanceCards{display:flex;gap:30px;flex-wrap:wrap}@media print{#advanceScreen.on>*:not(#advanceDetail),#advanceDetail>*:not(#advancePaper),#advanceScreen .advanceNoPrint{display:none!important}#advancePaper{border:0;margin:0;padding:0;max-width:none}#advancePaper .tableWrap{overflow:visible}#advancePaper thead{display:table-header-group}#advancePaper tr{break-inside:avoid}#advancePaper td,#advancePaper th{font-size:9pt;white-space:normal;overflow-wrap:anywhere}}

#receiptPaper .receiptTotal{text-align:right;font-size:18px}#receiptPaper .receiptSignatures{display:flex;justify-content:space-between;gap:2rem;margin:3rem 0}#receiptPaper .receiptAudit{font-size:11px;overflow-wrap:anywhere;color:#4c5967}#receiptPaper .receiptLegacy{padding:10px;border:1px solid #aebbc3}
@media print{#receiptScreen #receiptStatus,#receiptScreen .detailToolbar,#receiptScreen .statementAction{display:none!important}#receiptPaper tr,#receiptPaper .detailBox{break-inside:avoid}#receiptPaper{box-shadow:none;border:0}}

.registryFilters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}.registryFilters label{display:grid;gap:4px}.registryDescription{max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere}.registryActorId{display:block;max-width:180px;font-size:10px;overflow-wrap:anywhere}.registryNote,#registryPrintFacts{font-size:12px;color:#536473}@media print{#registryScreen .detailToolbar,#registryScreen .registryFilters,#registryScreen .statementAction,#registryStatus{display:none!important}#registryScreen table{font-size:9px}#registryScreen tr{break-inside:avoid}}

#combinedPaper .combinedNote{font-size:12px;color:#536473}#combinedScreen .formGrid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px}@media print{#combinedScreen .detailToolbar,#combinedForm,#combinedStatus,#combinedScreen .statementAction{display:none!important}#combinedPaper tr{break-inside:avoid}}
/* Indirect EUR working paper: dense desktop evidence, responsive overflow. */
#indirectScreen{color:#16334b}#indirectScreen .table{font-size:12px;font-variant-numeric:tabular-nums}#indirectScreen .tableWrap{overflow:auto}#indirectScreen .table td{vertical-align:top}#indirectScreen input:not([type=checkbox]),#indirectScreen select,#indirectScreen textarea{max-width:100%;padding:6px}#indirectScreen textarea{display:block;width:100%;min-height:64px}#indirectScreen label{display:block;margin:8px 0}#indirectScreen input[data-indirect-in],#indirectScreen input[data-indirect-out]{width:110px}.indirectAccounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:2px 12px;max-height:260px;overflow:auto}.indirectAccounts small{display:block;overflow-wrap:anywhere}.indirectBadge{padding:12px;background:#fff5d9;border-left:4px solid #9c6b13}#indirectSetup,#indirectEditor{padding:14px;background:#edf5f7;border:1px solid #c6dade;margin:12px 0}#indirectEditor:empty{display:none}#indirectScreen button:focus-visible,#indirectScreen input:focus-visible,#indirectScreen select:focus-visible{outline:3px solid #0b807e;outline-offset:2px}#indirectPaper pre{white-space:pre-wrap;overflow-wrap:anywhere}@media print{#indirectScreen .detailToolbar,#indirectScreen .indirectControls,#indirectSetup,#indirectEditor,#indirectStatus,#indirectReviewForm{display:none!important}#indirectPaper{width:100%;max-width:none}#indirectPaper .tableWrap{overflow:visible}#indirectPaper th,#indirectPaper td{font-size:8pt;overflow-wrap:anywhere}#indirectPaper thead{display:table-header-group}#indirectPaper .indirectBadge{border:2px solid #222;background:transparent}}

/* Fit report screens to the desktop viewport, not the legacy 1180px page floor.
   Keep the 200px navigation and dense columns; wide data scrolls inside tables.
   Scope to active reports so document-entry layouts and print rules are unchanged. */
@media screen {
  html:has(:is(#reportCenter,#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen).on),
  body:has(:is(#reportCenter,#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen).on){min-width:0}
  :is(#reportCenter,#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen){min-width:0;max-width:100%}
  :is(#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen) .detailToolbar{flex-wrap:wrap;min-width:0}
  :is(#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen) .detailToolbar h1{min-width:0;overflow-wrap:anywhere}
  :is(#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen) .detailToolbar>button{flex-shrink:0;max-width:100%;white-space:normal}
  :is(#commercialScreen,#cashFlowScreen,#indirectScreen,#equityScreen,#fpScreen) .tableWrap{min-width:0;max-width:100%;overflow:auto}
  #reportCenter .reportsLayout{grid-template-columns:260px minmax(0,1fr)}
  #reportCenter .reportInfo{min-width:0;overflow-wrap:anywhere}
  #commercialScreen .commercialHeading,#commercialScreen .commercialEvidenceToolbar,#commercialScreen .commercialPagination,#commercialScreen .commercialMatrixEvidenceNav{flex-wrap:wrap;min-width:0}
  #commercialScreen .commercialHeading>div{min-width:0;overflow-wrap:anywhere}
}

/* Inventory activity controls contain their own labels; do not inherit paired-field columns. */
#activityControls{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:12px;min-width:0}
#activityControls>label{display:flex;flex-direction:column;gap:5px;text-align:left;min-width:0;overflow-wrap:anywhere}
#activityControls>label[hidden]{display:none!important}
#activityControls input:not([type=checkbox]),#activityControls select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#activityControls>.activityCheck{flex-direction:row;align-items:center;min-height:30px}
#activityControls .activityCheck input{flex:0 0 auto;width:auto;height:auto}
#activityControls>button{justify-self:start}
#activityScreen>.detailToolbar{flex-wrap:wrap;gap:10px}
#activityScreen>.detailToolbar h1{min-width:0;overflow-wrap:anywhere}
#activityPaging{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
@media(max-width:600px){#activityControls{grid-template-columns:minmax(0,1fr)}}

/* A current tenant identity is required before invoice print; keep permanent DOM intact. */
#documentCompanyIdentity{overflow-wrap:anywhere}#documentCompanyIdentity .identityAddress{white-space:pre-wrap}
@media print{#documentDetail.invoicePrintBlocked #printArea{display:none!important}#documentDetail.invoicePrintBlocked:after{content:"Printimi u bllokua. Hape përsëri dokumentin për identitetin e kompanisë aktuale.";display:block!important;color:#112D3C}}

/* GL report toolbar: keep the title and filters readable beside the fixed sidebar. */
@media screen {
  html:has(#glReportScreen.on),body:has(#glReportScreen.on){min-width:0}
  #glReportScreen>.detailToolbar:not(#glReportControls){flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
  #glReportScreen>.detailToolbar:not(#glReportControls)>h1{flex:0 0 100%;min-width:0;margin:0 0 4px;overflow-wrap:anywhere}
  #glReportScreen>.detailToolbar:not(#glReportControls)>button{flex:0 1 auto;min-width:0;max-width:100%;min-height:36px;white-space:normal;overflow-wrap:anywhere}
  #glReportScreen>.detailToolbar:not(#glReportControls)>button:disabled{cursor:not-allowed}
  #glReportControls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;align-items:end;padding:12px 0;min-width:0}
  #glReportControls>label{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}
  #glReportControls[hidden]{display:none!important}
  #glReportControls>label[hidden]{display:none!important}
  #glReportControls input,#glReportControls select{width:100%;max-width:100%;min-width:0;min-height:36px;padding:6px 8px;border:1px solid #bbb;background:#fff;box-sizing:border-box}
  #glReportControls input:focus-visible,#glReportControls select:focus-visible{outline:2px solid var(--n);outline-offset:2px}
}

/* Report-center filter layout: existing routes and selectors only. */
@media screen {
  #reportCenter .reportsLayout{gap:12px;align-items:start}
  #reportCenter .reportsSidebar{border-radius:4px;min-height:400px;padding:8px;max-height:calc(100vh - 170px)}
  :is(#reportCenter,#cashFlowScreen) .reportFolder summary{padding:6px 4px}
  :is(#reportCenter,#cashFlowScreen) .reportLink{padding:5px 8px 5px 30px;white-space:normal;overflow-wrap:anywhere}
  :is(#reportCenter,#cashFlowScreen) .reportLink[aria-current=true]{outline:1px solid var(--t);outline-offset:-1px;border-radius:3px}
  #reportCenter .reportInfo{padding:0 0 0 12px;max-width:none;min-width:0}
  #reportCenter .reportFilterHeading{font-size:18px;line-height:1.4;margin:0 0 8px;font-weight:700}
  #reportCenter .reportFilterCard{background:#fff;border:1px solid var(--b);border-radius:4px;padding:16px;box-shadow:0 1px 2px #112d3c14}
  #reportCenter .reportFilterCard h3{font-size:14px;margin:0 0 16px;font-weight:700}
  #reportCenter .reportDescription{font-size:13px;margin:0 0 16px;color:var(--brand-secondary)}
  #reportCenter .reportFilterFields{display:grid;grid-template-columns:minmax(90px,120px) minmax(0,1fr);gap:10px;align-items:center}
  #reportCenter .reportFilterFields label{font-size:13px;margin:0}
  #reportCenter .reportFilterFields select{width:100%;max-width:none;min-width:0;min-height:34px;margin:0;border:1px solid var(--b);background:#fff;padding:6px 8px}
  #reportCenter .reportFilterHint{font-size:13px;margin:0;color:var(--brand-secondary)}
  #reportCenter .reportFilterActions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
  #reportCenter #reportClear{margin-right:auto;color:var(--brand-secondary);border-color:var(--b)}
  #reportCenter #reportOpen{margin:0 0 0 auto;min-width:90px;min-height:34px}
  #reportCenter #reportCenterStatus{font-size:13px;overflow-wrap:anywhere}
}
@media screen and (max-width:850px){#reportCenter .reportsLayout{grid-template-columns:minmax(0,1fr)}#reportCenter .reportsSidebar{min-height:0;max-height:260px}#reportCenter .reportInfo{padding:0;border-left:0}}
@media screen and (max-width:450px){#reportCenter .reportFilterFields{grid-template-columns:minmax(0,1fr)}}

/* Reference-specific sales-summary setup remains beside the report directory. */
@media screen {
 #reportCenter .reportSalesFilterCard{max-width:720px;background:#fff;border:1px solid var(--b);border-radius:3px;box-shadow:0 1px 3px #112d3c1a}
 #reportCenter .reportSalesFilterCard>details{border-bottom:1px solid #e8ecef;padding:0 18px}
 #reportCenter .reportSalesFilterCard>details:last-child{border-bottom:0}
 #reportCenter .reportSalesFilterCard summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;font-size:13px;font-weight:600}
 #reportCenter .reportSalesFilterCard summary::-webkit-details-marker{display:none}
 #reportCenter .reportSalesFilterCard summary:after{content:'⌄';color:#677883;font-size:16px}
 #reportCenter .reportSalesFilterCard details[open]>summary:after{content:'⌃'}
 #reportCenter .reportSalesField{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:start;gap:12px;margin:7px 0 14px;font-size:12px}
 #reportCenter .reportSalesField>label{line-height:1.45;padding-top:6px;margin:0}
 #reportCenter .reportSalesField>div{min-width:0}
 #reportCenter .reportSalesField input:not([type=checkbox]),#reportCenter .reportSalesField select{box-sizing:border-box;width:100%;min-width:0;min-height:30px;padding:4px 7px;margin:0;border:1px solid #ccd4db;border-radius:3px;background:#fff;font:12px Arial}
 #reportCenter .reportSalesField input:disabled,#reportCenter .reportSalesField select:disabled{background:#f0f2f3;color:#6d7780;cursor:not-allowed}
 #reportCenter .reportSalesField input[type=checkbox]{width:18px;height:18px;margin:5px 0;accent-color:var(--t)}
 #reportCenter .reportSalesField small{display:block;font-size:11px;line-height:1.4;color:#61727d;margin-top:5px}
 #reportCenter .reportSalesPeriod{display:flex;align-items:center;gap:9px}
 #reportCenter .reportSalesPeriod input{max-width:155px}
 #reportCenter .reportSalesHint{font-size:11px;line-height:1.5;color:#61727d;margin:8px 0 14px;max-width:720px}
 #reportCenter .reportSalesActions{max-width:720px;margin-top:14px}
 #reportCenter .reportSalesActions #reportClear{border-color:#b37575;color:#9d4d4d}
 #reportCenter .reportSalesExport{position:relative}
 #reportCenter .reportSalesExport>summary{list-style:none;cursor:pointer;border:1px solid var(--t);border-radius:3px;padding:8px 12px;font-size:12px;color:var(--t)}
 #reportCenter .reportSalesExport>summary:after{content:' ▾'}
 #reportCenter .reportSalesExport>div{position:absolute;right:0;top:100%;min-width:135px;padding:4px;background:#fff;border:1px solid var(--b);box-shadow:0 3px 8px #112d3c25;z-index:3}
 #reportCenter .reportSalesExport button{display:block;width:100%;text-align:left;white-space:nowrap;margin:0;border:0}
 #reportCenter .reportSalesExport small{display:block;padding:4px 8px;font-size:10px;line-height:1.4;color:#61727d}
}
@media screen and (max-width:560px){#reportCenter .reportSalesField{grid-template-columns:minmax(0,1fr);gap:5px}#reportCenter .reportSalesPeriod input{max-width:none}#reportCenter .reportSalesFilterCard>details{padding:0 12px}}

/* Single-purpose signed-out account views; signed-in management remains unchanged. */
#accountModal.accountSimple .confirmModal{width:460px!important;max-width:calc(100vw - 32px);max-height:90vh;overflow:auto}
#accountModal.accountSimple .accountBrand{padding:16px 20px 0}#accountModal.accountSimple .accountBrand img{width:185px;height:48px}#accountModal.accountSimple .accountBrand p{display:none}
#accountModal.accountSimple h2{padding:12px 20px}#accountModal.accountSimple .body{padding:16px 20px}
#accountModal.accountSimple form{margin:10px 0;padding:0;border:0;gap:9px}#accountModal.accountSimple form h3{display:none}
#accountModal.accountSimple details>summary{display:none}#accountModal.accountSimple [hidden]{display:none!important}
#accountModal.accountSimple #accountSummary{margin:0 0 12px}#accountModal.accountSimple #accountAuthHint{margin:10px 0;color:#455b66;line-height:1.45}
#accountAuthLinks{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}#accountModal.accountSimple #accountStatus:not(:empty){padding:10px 12px;border:1px solid #b9d7d1;border-radius:7px;background:#f2faf8;margin:12px 0;outline-offset:2px}
#accountModal.accountSimple input{width:100%;min-width:0}#accountModal.accountSimple #accountGuest{margin-bottom:8px}#accountModal.accountSimple #accountClose{margin-top:8px}

/* Unpublished sales-invoice arrangement from observed Bilanc geometry.
   Disabled print hint and noninteractive blank rows make unsupported actions explicit. */
#invoice .invoiceMode,#invoice .invoiceFooterClose,#invoice .invoiceGridHelp,#invoice .invoicePrintOption,#invoice #invoicePrintHelp{display:none}
#invoice #namedSalesPrices{margin:10px 0;border:1px solid #cbd5e1;padding:8px 10px;font-size:12px}
#invoice #namedSalesPrices summary,#invoice .billingPolicyControls summary{cursor:pointer;font-size:12px;line-height:24px}
#invoice #namedSalesPrices label{margin-right:8px}#invoice #namedSalesPrices p{line-height:1.5}
#invoice #invoiceBlankRows{display:none}
@media screen {
 #invoice.salesInvoiceLayout [hidden]{display:none!important}
 #invoice.salesInvoiceLayout .docTop{min-height:38px;padding:0 0 6px}
 #invoice.salesInvoiceLayout .docTop h1{font-size:28px;font-weight:400}
 #invoice.salesInvoiceLayout .invoiceMode{display:block;position:absolute;right:8px;top:12px;font-size:12px;color:#555}
 #invoice.salesInvoiceLayout .invoiceHeaderClose{display:none}
 #invoice.salesInvoiceLayout #invoiceForm{display:grid;grid-template-columns:76px minmax(0,1fr) 86px minmax(0,1fr) 86px minmax(0,1fr);column-gap:8px;row-gap:7px;margin-top:8px;font-size:12px}
 #invoice.salesInvoiceLayout .invoiceHeader,#invoice.salesInvoiceLayout .invoiceFields,#invoice.salesInvoiceLayout #billingFields,#invoice.salesInvoiceLayout .billingMainFields{display:contents}
 #invoice.salesInvoiceLayout #billingFields>legend{display:none}
 #invoice.salesInvoiceLayout .invoiceFields>label{align-self:center}
 #invoice.salesInvoiceLayout .invoiceFields>input,#invoice.salesInvoiceLayout .invoiceFields>select,#invoice.salesInvoiceLayout .billingMainFields input,#invoice.salesInvoiceLayout .billingMainFields select{height:28px;min-width:0;width:100%;padding:3px 6px;border:1px solid #bfc4ca;border-radius:2px;background:#fff;font:12px Arial}
 #invoice.salesInvoiceLayout #partnerLabel{grid-column:1;grid-row:1}
 #invoice.salesInvoiceLayout #partner{grid-column:2;grid-row:1}
 #invoice.salesInvoiceLayout #invoicePartnerFacts{grid-column:1/3;grid-row:2/4;align-self:start;padding:0;font-size:11px;line-height:1.8}
 #invoice.salesInvoiceLayout #billingPartnerBalance{grid-column:1/3;grid-row:4;align-self:start;margin:0;font-size:11px;line-height:1.45;color:#56616d}
 #invoice.salesInvoiceLayout #invoiceNumberLabel{grid-column:3;grid-row:2}
 #invoice.salesInvoiceLayout #invNo{grid-column:4;grid-row:2}
 #invoice.salesInvoiceLayout label[for=invDate]{grid-column:3;grid-row:3}
 #invoice.salesInvoiceLayout #invDate{grid-column:4;grid-row:3}
 #invoice.salesInvoiceLayout #invoiceDueLabel{grid-column:5;grid-row:2}
 #invoice.salesInvoiceLayout #dueDate{grid-column:6;grid-row:2}
 #invoice.salesInvoiceLayout label[for=invoiceWarehouse]{grid-column:1;grid-row:5}
 #invoice.salesInvoiceLayout #invoiceWarehouse{grid-column:2;grid-row:5;background:#f0f1f3;color:#59616a}
 #invoice.salesInvoiceLayout .billingMainFields>label{display:grid!important;grid-template-columns:86px minmax(0,1fr);gap:8px;align-items:center;margin:0;font-size:12px}
 #invoice.salesInvoiceLayout .billingMainFields>label.invoiceServiceField{grid-column:3/5;grid-row:1}
 #invoice.salesInvoiceLayout .billingMainFields>label.invoiceDescriptionField{grid-column:5/7;grid-row:1}
 #invoice.salesInvoiceLayout .billingMainFields>label.invoicePaymentField{grid-column:5/7;grid-row:3}
 #invoice.salesInvoiceLayout .billingMainFields>#billingAgentBox{grid-column:3/5;grid-row:4}
 #invoice.salesInvoiceLayout #billingAgentHint{grid-column:2;font-size:10px;line-height:1.2}
 #invoice.salesInvoiceLayout .invoiceCurrency{grid-column:3/5;grid-row:5;margin:0;justify-content:flex-start;gap:8px}
 #invoice.salesInvoiceLayout .invoiceCurrency output{padding:5px 11px;border-radius:2px}
 #invoice.salesInvoiceLayout #billingPaymentFields{grid-column:1/-1;grid-row:6;margin:0;padding:8px;border:1px solid #ccd3db;background:#f7f8fa}
 #invoice.salesInvoiceLayout .billingPolicyControls{grid-column:1/5;grid-row:10;margin:0;padding:0;border:0}
 #invoice.salesInvoiceLayout .billingPolicyControls[open]{padding:7px 9px;border:1px solid #ccd3db}
 #invoice.salesInvoiceLayout .billingPolicyControls button{margin:4px 4px 0 0}
 #invoice.salesInvoiceLayout #namedSalesPrices{grid-column:5/7;grid-row:10;margin:0;padding:0;border:0}
 #invoice.salesInvoiceLayout #namedSalesPrices[open]{padding:7px 9px;border:1px solid #ccd3db}
 #invoice.salesInvoiceLayout #namedSalesPrices[open]>label{display:block;margin:5px 0}
 #invoice.salesInvoiceLayout #namedSalesPrices select{max-width:100%;height:28px}
 #invoice.salesInvoiceLayout #billingInvoiceHint{grid-column:1/-1;grid-row:11;font-size:10px;color:#65707b;margin:0;line-height:1.4}
 #invoice.salesInvoiceLayout #billingInvoiceRetry{grid-column:1/-1;grid-row:7;justify-self:start}
 #invoice.salesInvoiceLayout #quoteNotesBlock{grid-column:1/-1}
 #invoice.salesInvoiceLayout .invoiceTableWrap{grid-column:1/-1;grid-row:8;min-height:318px;height:calc(100vh - 425px);max-height:none;background:white;border:1px solid #bdc3c8}
 #invoice.salesInvoiceLayout .items{min-width:890px;counter-reset:invoice-row}
 #invoice.salesInvoiceLayout .items th{height:27px;background:#e9eaed;font-size:11px;white-space:nowrap}
 #invoice.salesInvoiceLayout .items td{height:25px;padding:1px 3px;font-size:11px}
 #invoice.salesInvoiceLayout .items input{height:22px;font-size:11px;padding:2px;max-width:100%}
 #invoice.salesInvoiceLayout .items tbody tr:nth-child(even){background:#f4f4f5}
 #invoice.salesInvoiceLayout .items .remove{min-height:21px;height:21px;line-height:16px;padding:0 5px}
 #invoice.salesInvoiceLayout #invoiceBlankRows{display:table-row-group}
 #invoice.salesInvoiceLayout #invoiceBlankRows td{color:#85898d}
 #invoice.salesInvoiceLayout #invoiceBlankRows tr{background:#fff}
 #invoice.salesInvoiceLayout #invoiceBlankRows tr.invoiceBlankRowEven{background:#f4f4f5}
 #invoice.salesInvoiceLayout .invoiceFooter{grid-column:1/-1;grid-row:9;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(190px,1fr);gap:12px;align-items:start;padding-top:3px}
 #invoice.salesInvoiceLayout .invoiceFooterTools{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;gap:5px}
 #invoice.salesInvoiceLayout #addItem{margin:0}
 #invoice.salesInvoiceLayout .invoiceFooterClose{display:inline-block}
 #invoice.salesInvoiceLayout .invoiceGridHelp{display:block;width:100%;font-size:10px;color:#65707b;margin-top:1px}
 #invoice.salesInvoiceLayout .totals{grid-column:3;grid-row:1;width:100%;max-width:260px;justify-self:end;margin:0}
 #invoice.salesInvoiceLayout .totals>div{padding:4px 6px}
 #invoice.salesInvoiceLayout .totals .grand{font-size:16px;border-top:1px solid #b7bdc4}
 #invoice.salesInvoiceLayout .docActions{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;width:330px;border:0;padding:0;margin:0}
 #invoice.salesInvoiceLayout .invoicePrintOption{display:flex;align-items:center;gap:5px;font-size:11px;width:100%;justify-content:center}
 #invoice.salesInvoiceLayout .invoicePrintOption select{height:26px;width:132px;font-size:12px;border:1px solid #bfc4ca;border-radius:2px;padding:3px 6px}
 #invoice.salesInvoiceLayout #invoicePrintHelp{display:block;order:2;width:100%;font-size:10px;color:#65707b}
}
@media screen and (max-width:1050px){
 #invoice.salesInvoiceLayout #invoiceForm{grid-template-columns:70px minmax(0,1fr) 78px minmax(0,1fr) 78px minmax(0,1fr);column-gap:5px}
 #invoice.salesInvoiceLayout .billingMainFields>label{grid-template-columns:78px minmax(0,1fr);gap:5px}
 #invoice.salesInvoiceLayout .invoiceFooter{grid-template-columns:1fr 1fr}
 #invoice.salesInvoiceLayout .docActions{grid-column:1/-1;grid-row:2;justify-self:center;width:auto;max-width:400px}
 #invoice.salesInvoiceLayout .totals{grid-column:2}
}
@media screen and (max-width:760px){
 #invoice.salesInvoiceLayout #invoiceForm{display:flex;flex-direction:column;gap:10px}
 #invoice.salesInvoiceLayout .invoiceHeader{display:grid;grid-template-columns:1fr;gap:12px;min-height:0}
 #invoice.salesInvoiceLayout .invoiceFields{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px}
 #invoice.salesInvoiceLayout .invoiceFields>*{grid-column:auto!important;grid-row:auto!important}
 #invoice.salesInvoiceLayout #invoicePartnerFacts{grid-column:1/-1!important}
 #invoice.salesInvoiceLayout #billingFields{display:block;border:1px solid #ccd3db;padding:10px;margin:0}
 #invoice.salesInvoiceLayout .billingMainFields{display:grid;grid-template-columns:1fr;gap:8px}
 #invoice.salesInvoiceLayout .billingMainFields>label{grid-column:auto!important;grid-row:auto!important;grid-template-columns:100px minmax(0,1fr)}
 #invoice.salesInvoiceLayout #billingPaymentFields{grid-template-columns:1fr;margin-top:8px}
 #invoice.salesInvoiceLayout .billingPolicyControls{margin-top:8px}
 #invoice.salesInvoiceLayout #billingPartnerBalance,#invoice.salesInvoiceLayout #billingInvoiceHint{margin:8px 0}
 #invoice.salesInvoiceLayout .invoiceTableWrap{height:330px;min-height:330px}
 #invoice.salesInvoiceLayout .invoiceFooter{display:flex;flex-wrap:wrap;justify-content:space-between}
 #invoice.salesInvoiceLayout .invoiceFooterTools{flex:1 1 150px}
 #invoice.salesInvoiceLayout .totals{flex:0 1 220px}
 #invoice.salesInvoiceLayout .docActions{order:3;flex:1 0 100%;max-width:none}
 #invoice.salesInvoiceLayout .docTop h1{font-size:23px;margin:0 65px 0 0}
}

/* Accounting-entry candidate: observed compact grid, existing accounting contract. */
#glScreen [hidden]{display:none!important}
#glScreen .glVisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media screen {
  #glForm{padding:0;margin:0;border:0;background:transparent;min-width:0}
  #glScreen .glDraftHeading{position:relative;display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:12px;border-bottom:1px solid #ddd}
  #glScreen .glDraftHeading h1{font-size:28px;margin:0 70px 10px;text-align:center;font-weight:600}
  #glScreen .glDraftHeading>span{position:absolute;right:4px;top:9px;font-size:13px;color:#535a60}
  #glScreen .glDraftHeader{display:grid;grid-template-columns:120px minmax(140px,340px);gap:6px 8px;align-items:center;max-width:468px;font-size:12px}
  #glScreen .glDraftHeader label{margin:0;font-size:12px}
  #glScreen .glDraftHeader input{height:27px;width:100%;min-width:0;border:1px solid #c6c6ca;border-radius:2px;padding:3px 7px;background:#fff;font-size:12px}
  #glScreen .glDraftCurrency{height:27px;display:flex;align-items:center;padding:3px 7px;color:#48515a}
  #glDraftNote{font-size:11px;color:#60676d;margin:9px 0 10px;line-height:1.4}
  #glScreen .glDraftGridWrap{overflow:auto;border:1px solid #c7c7cb;min-height:300px;max-height:calc(100vh - 340px);background:#fff}
  #glScreen .glDraftGrid{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;margin:0;font-size:12px}
  #glScreen .glDraftGrid th,#glScreen .glDraftGrid td{height:30px;padding:0 5px;border:1px solid #ddd;border-top:0;vertical-align:middle}
  #glScreen .glDraftGrid th{position:sticky;top:0;z-index:1;background:#e8e8ed;font-weight:600;text-align:left}
  #glScreen .glDraftGrid tr:nth-child(even){background:#f6f6f8}
  #glScreen .glDraftGrid tr:nth-child(odd){background:#fff}
  #glScreen #glDraftPlaceholders tr{background:#fff}#glScreen #glDraftPlaceholders tr.glStripe{background:#f6f6f8}
  #glScreen .glDraftGrid td:first-child,#glScreen .glDraftGrid th:first-child{text-align:center;color:#5d6267}
  #glScreen .glNrCol{width:38px}#glScreen .glAccountCol{width:27%}#glScreen .glDescriptionCol{width:auto}#glScreen .glCurrencyCol{width:70px}#glScreen .glAmountCol{width:110px}#glScreen .glRemoveCol{width:53px}
  #glScreen .glDraftGrid input,#glScreen .glDraftGrid select{width:100%;min-width:0;height:26px;padding:2px 4px;border:1px solid #cdd1d5;border-radius:1px;background:#fff;font-size:12px}
  #glScreen .glDraftGrid .gl-debit,#glScreen .glDraftGrid .gl-credit{text-align:right;font-variant-numeric:tabular-nums}
  #glScreen .gl-line-currency{color:#63686e}
  #glScreen .glDraftGrid .gl-remove{padding:1px 5px;min-height:24px;height:24px;font-size:11px}
  #glScreen .glDraftFooter{display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(230px,1fr);align-items:center;gap:12px;border-top:1px solid #ddd;padding:10px 0;margin-top:8px}
  #glScreen .glDraftNavigation{display:flex;flex-wrap:wrap;gap:6px}
  #glTotals{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px 16px;margin:0;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
  #glTotals>span{display:flex;flex-direction:column;gap:3px;min-width:85px}#glTotals b{font-weight:600;color:#313942}#glTotals .glDifference{flex-basis:100%;flex-direction:row;justify-content:flex-end;font-size:11px;color:#63686e;gap:8px}
  #glJournalPanel>.detailToolbar{flex-wrap:wrap;gap:6px}#glJournalPanel>.detailToolbar h1{flex-basis:100%}
}
@media screen and (max-width:900px){#glScreen .glDraftFooter{grid-template-columns:1fr auto}#glTotals{grid-column:1/-1}#glScreen .glDraftGridWrap{max-height:55vh}}
@media screen and (max-width:500px){#glScreen .glDraftHeader{grid-template-columns:85px minmax(0,1fr)}#glScreen .glDraftHeading h1{font-size:22px;margin-left:0;margin-right:55px}#glScreen .glDraftHeading>span{font-size:11px}#glScreen .glDraftFooter{gap:8px}}

/* Sales-grid metrics directly measured in the ready-state Bilanc reference.
   Existing extra controls remain in place until their safe mappings are known. */
@media screen{
 #invoice.salesInvoiceLayout .docTop h1{margin-top:5px;margin-bottom:5px;color:rgb(33,37,41)}
 #invoice.salesInvoiceLayout .items{min-width:907px}
 #invoice.salesInvoiceLayout .items th{height:31.78125px;background:rgb(235,237,240);color:rgb(30,30,30);border:1px solid rgb(213,213,213);padding:6.4px 8.8px}
 #invoice.salesInvoiceLayout .items td{height:30px;border:1px solid rgb(213,213,213)}
 #invoice.salesInvoiceLayout .items input{height:26px}
 #invoice.salesInvoiceLayout .items .invoiceGrossCell{text-align:right;white-space:nowrap}
 #invoice.salesInvoiceLayout .items #itemRows td:nth-child(7){position:relative}
 #invoice.salesInvoiceLayout .items #itemRows td:nth-child(7)::after{content:'%';position:absolute;right:5px;top:50%;transform:translateY(-50%);pointer-events:none}
 #invoice.salesInvoiceLayout .items .discount{padding-right:13px}
 #invoice.salesInvoiceLayout .items .invoiceGrossCell .remove{float:right;margin-left:3px;max-width:19px;padding:0 3px}
 /* Preserve the existing fieldsets and controls, rather than invent a new panel. */
 #invoice.salesInvoiceLayout #namedSalesPrices{grid-row:6;padding:7px 9px;border:1px solid #ccd3db}
 #invoice.salesInvoiceLayout .billingPolicyControls{grid-row:7;margin:0;padding:7px 9px;border:1px solid #ccd3db}
 #invoice.salesInvoiceLayout #billingInvoiceHint{grid-row:8}
 #invoice.salesInvoiceLayout #billingInvoiceRetry{grid-row:9}
 #invoice.salesInvoiceLayout #billingPaymentFields{grid-row:5}
 #invoice.salesInvoiceLayout .invoiceCurrency{grid-row:4;grid-column:5/7}
 #invoice.salesInvoiceLayout label[for=invoiceWarehouse]{grid-row:6}
 #invoice.salesInvoiceLayout #invoiceWarehouse{grid-row:6}
 #invoice.salesInvoiceLayout .invoiceTableWrap{grid-row:10}
 #invoice.salesInvoiceLayout .invoiceFooter{grid-row:11}
}

/* Named money-account screen only. */
#moneyScreenEditor:empty{display:none}#moneyScreenEditor{padding:18px;background:white;border:1px solid #ccc;margin:16px 0}#moneyAccountScreen .tableWrap{overflow:auto}#moneyScreenEditor input,#moneyScreenEditor select{padding:7px;max-width:100%}#moneyScreenAccounts{margin:16px 0}@media print{#moneyScreenManagement,#moneyScreenFilters,#moneyScreenStatus{display:none!important}}

/* Verified sales-summary paper structure only; original report screens stay unchanged. */
@media print {
 #commercialPaper:has(.salesSummaryPrint){page:sales-summary}
 #commercialPaper .salesSummaryPrint{font:6pt/1.05 Arial,sans-serif;color:#111}
 #commercialPaper .salesSummaryPrint header{border-top:.5pt solid #333;text-align:center;padding-top:2mm}
 #commercialPaper .salesSummaryPrint header h2{font:10pt/1.2 Arial,sans-serif;margin:0}
 #commercialPaper .salesSummaryPrint header p{font:9pt/1.2 Arial,sans-serif;color:#777;margin:1mm 0 2mm}
 #commercialPaper .salesSummaryPeriod{margin:0 0 1mm;border-bottom:.5pt solid #333;padding-bottom:1mm}
 #commercialPaper .salesSummaryKind{background:#eee;border:.5pt solid #333;padding:1mm 0;margin-bottom:1mm}
 #commercialPaper .salesSummaryTable{width:100%;table-layout:fixed;border-collapse:collapse;margin:0 0 1mm}
 #commercialPaper .salesSummaryTable thead{display:table-header-group}
 #commercialPaper .salesSummaryTable tr{break-inside:avoid}
 #commercialPaper .salesSummaryTable th,#commercialPaper .salesSummaryTable td{font:6pt/1.05 Arial,sans-serif;text-align:left;border:.4pt solid #222;padding:.3mm .4mm;overflow-wrap:anywhere;vertical-align:top}
 #commercialPaper .salesSummaryTable .salesSummaryWarehouse{border-left:0;border-right:0;text-transform:uppercase;padding:.7mm 0}
 #commercialPaper .salesSummaryTable .salesSummaryNumber{text-align:right}
 #commercialPaper .salesSummaryPrint footer{font:6pt/1.2 Arial,sans-serif;margin-top:2mm}
 #commercialPaper .salesSummaryPrint footer p{margin:1mm 0}
}
@page sales-summary{size:A4 landscape;margin:7mm}

/* Verified folder-only directory: native disclosure controls and existing green branding. */
@media screen {
 #reportCenter .reportsSidebar{min-height:0}
 :is(#reportCenter,#cashFlowScreen) .reportFolder > summary{font-size:12px;padding:3px 4px;min-height:21px}
 :is(#reportCenter,#cashFlowScreen) .reportFolder > summary::before{content:'›'}
 :is(#reportCenter,#cashFlowScreen) .reportFolder[open] > summary::before{content:'⌄'}
 :is(#reportCenter,#cashFlowScreen) .reportFolder > .reportFolder{margin-left:20px}
 :is(#reportCenter,#cashFlowScreen) .reportFolder > summary:focus-visible{outline:2px solid var(--t);outline-offset:-2px}
}

/* Exact reference tree and scoped report panel geometry. App header remains Llogarit green. */
@media screen {
 #reportCenter > h1{font-size:28px;font-weight:400;color:#333}
 #reportCenter .reportsLayout{grid-template-columns:minmax(235px,30%) minmax(0,1fr);gap:10px}
 #reportCenter .reportsSidebar{padding:4px 7px;min-height:0;border-radius:5px}
 #reportCenter .reportsSidebar input{height:26px;margin-bottom:4px;font:11px Arial}
 :is(#reportCenter,#cashFlowScreen) .reportFolder > summary{font:12px/18px Arial;padding:1px 4px;min-height:20px;gap:5px;color:#555}
 :is(#reportCenter,#cashFlowScreen) .reportFolder > summary::before{content:'›';font-size:15px;width:9px;flex-shrink:0}
 :is(#reportCenter,#cashFlowScreen) .reportFolder[open] > summary::before{content:'⌄'}
 :is(#reportCenter,#cashFlowScreen) .folderIcon{width:12px;height:12px;fill:#f5a400;opacity:1;flex-shrink:0}
 :is(#reportCenter,#cashFlowScreen) .reportFolder[open] > summary .folderIcon{fill:#20852a}
 :is(#reportCenter,#cashFlowScreen) .reportChildren > .reportFolder{margin-left:18px}
 :is(#reportCenter,#cashFlowScreen) .reportLink{display:flex;align-items:center;gap:5px;padding:1px 3px 1px 24px;font:11px/16px Arial;min-height:18px;white-space:nowrap;color:#555}
 :is(#reportCenter,#cashFlowScreen) .reportLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
 :is(#reportCenter,#cashFlowScreen) .reportDocumentIcon{width:11px;height:13px;flex-shrink:0;fill:none;stroke:#8070cc;stroke-width:1.2}
 #reportCenter .reportUnavailable{cursor:help;color:#777}
 :is(#reportCenter,#cashFlowScreen) .reportLink:hover,:is(#reportCenter,#cashFlowScreen) .reportLink[aria-current=true]{background:#edf6f8;color:#356b79}
 #reportCenter .reportInfo{padding:0 0 0 10px;border-left:1px solid #ddd}
 #reportCenter .reportFilterHeading{font:16px/1.25 Arial;margin:0 0 7px;color:#333}
 #reportCenter .reportUnavailablePanel{background:#fff;border:1px solid #ddd;border-radius:3px;padding:18px;font:13px/1.5 Arial;color:#555}
 #reportCenter .reportUnavailablePanel p{margin:10px 0 0}
 :is(#reportCenter,#cashFlowScreen) .reportLink:focus-visible{outline:2px solid var(--t);outline-offset:-2px}
}
@media screen and (max-width:850px){#reportCenter .reportsLayout{grid-template-columns:minmax(0,1fr)}#reportCenter .reportInfo{padding:0;border-left:0}}

@media screen {#reportCenter .reportPartialNotice{background:#fff8e4;border:1px solid #ddc77a;border-radius:3px;padding:10px 12px;margin-bottom:8px;font:12px/1.4 Arial;color:#5e4c20}#reportCenter .reportPartialNotice p{margin:4px 0 0}#reportCenter .reportPartial{cursor:pointer;color:#555}}
/* Measured report-directory typography; confined to the Reports screen. */
@media screen{
 #reportCenter .reportsLayout{grid-template-columns:minmax(235px,31.5%) minmax(0,1fr);gap:12px}
 #reportCenter #reportSearch{display:none}
 #reportCenter .reportsSidebar{padding:3px 18px;max-height:calc(100dvh - 120px)}
 :is(#reportCenter,#cashFlowScreen) .reportFolder>summary{font:12px/21px Verdana,Geneva,sans-serif;min-height:21px;padding:0;gap:6px}
 :is(#reportCenter,#cashFlowScreen) .reportLink{font:12px/21px Verdana,Geneva,sans-serif;min-height:21px;padding:0 3px 0 18px;gap:6px}
 :is(#reportCenter,#cashFlowScreen) .reportDocumentIcon{stroke:#4034c7}
 :is(#reportCenter,#cashFlowScreen) .reportLink[aria-current=true]{outline:2px solid #c8dafe;background:#eff7ff;color:#244ab5;border-radius:0}
 #reportCenter .reportFilterHeading{font:22px/24px Arial,sans-serif;margin:0 0 9px}
 #reportCenter .reportFilterCard{border-radius:0;padding:20px 24px;box-shadow:0 2px 3px #0003}
}
@media screen and (max-width:850px){#reportCenter .reportsLayout{grid-template-columns:minmax(0,1fr)}#reportCenter .reportsSidebar{max-height:260px}}
/* Journal filters and results, scoped to the dedicated read-only report. */
#journalReferenceForm{padding:20px 24px;border:1px solid #ddd;border-radius:0;box-shadow:0 2px 3px #0003;background:#fff;font:12px Arial,sans-serif}
#journalReferenceForm .reportSalesField{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;margin:0 0 12px;align-items:start}
#journalReferenceForm .reportSalesField>div{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
#journalReferenceForm input,#journalReferenceForm select{box-sizing:border-box;max-width:100%;min-width:0;height:29px;border:1px solid #d0d0d0;border-radius:3px;font:12px Arial,sans-serif;padding:4px 7px}
#journalReferenceForm input:not([type=checkbox]),#journalReferenceForm select{flex:1;width:100%}
#journalReferenceForm select[name$=Op]{flex:0 0 115px;width:115px}
#journalReferenceForm input[type=date]{width:140px;flex:1}
#journalReferenceForm select[multiple]{height:66px;flex-basis:100%}
#journalReferenceForm small{flex-basis:100%;color:#666;font-size:11px}
#journalReferenceForm input[type=checkbox]{width:16px;height:16px}
#journalReferenceForm>p{font-size:11px;line-height:1.4;color:#555}
#journalReferenceForm>button{margin:4px 5px 0 0;border-radius:3px;font-size:12px}
#journalReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}
#journalReferencePaper h1{font-size:20px}
#journalReferencePaper table{width:100%;border-collapse:collapse}
#journalReferencePaper th,#journalReferencePaper td{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}
#journalReferencePaper td:nth-last-child(-n+2),#journalReferencePaper th:nth-last-child(-n+2){text-align:right}
@media(max-width:600px){#journalReferenceForm{padding:12px}#journalReferenceForm .reportSalesField{grid-template-columns:1fr}}
#accountReferenceForm{background:#fff;border:1px solid #ddd;font:12px Arial,sans-serif}
#accountReferenceForm .reportFilterFields{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 10px;align-items:center}
#accountReferenceForm input,#accountReferenceForm select{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #d0d0d0;border-radius:3px;font:12px Arial,sans-serif;padding:4px 7px}
#accountReferenceForm p{font-size:11px;line-height:1.4;color:#555}
#accountReferenceForm button{margin-right:5px;border-radius:3px;font-size:12px}
#accountReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}
#accountReferencePaper h1{font-size:20px}#accountReferencePaper h2{font-size:16px}
#accountReferencePaper table{width:100%;border-collapse:collapse}
#accountReferencePaper td,#accountReferencePaper th{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}
#accountReferencePaper td:nth-last-child(-n+3),#accountReferencePaper th:nth-last-child(-n+3){text-align:right}
@media(max-width:600px){#accountReferenceForm .reportFilterFields{grid-template-columns:1fr}}
#trialReferenceForm{background:#fff;border:1px solid #ddd;font:12px Arial,sans-serif}
#trialReferenceForm .reportFilterFields{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 10px;align-items:center}
#trialReferenceForm input,#trialReferenceForm select{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #d0d0d0;border-radius:3px;font:12px Arial,sans-serif;padding:4px 7px}
#trialReferenceForm select[multiple]{height:66px}#trialReferenceForm input[type=checkbox]{width:16px;height:16px}
#trialReferenceForm p{font-size:11px;line-height:1.4;color:#555}#trialReferenceForm button{margin-right:5px;border-radius:3px;font-size:12px}
#trialReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}#trialReferencePaper h1{font-size:20px}
#trialReferencePaper table{width:100%;border-collapse:collapse}#trialReferencePaper td,#trialReferencePaper th{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}
#trialReferencePaper td:nth-last-child(-n+4),#trialReferencePaper th:nth-last-child(-n+4){text-align:right}
@media(max-width:600px){#trialReferenceForm .reportFilterFields{grid-template-columns:1fr}}
:is(#reportCenter,#cashFlowScreen) .reportDatePresentation{display:flex;min-width:0;flex:1;position:relative}
:is(#reportCenter,#cashFlowScreen) .reportDatePresentation input[hidden]{display:none!important}
:is(#reportCenter,#cashFlowScreen) .reportDatePresentation input[type=text]{width:100%;padding-right:30px}
:is(#reportCenter,#cashFlowScreen) .reportDatePresentation button{position:absolute;right:0;top:0;width:29px;height:29px;padding:0;margin:0;border:0;border-radius:0 3px 3px 0;background:#347bf3;color:white}
#accountReferenceForm select[multiple]{height:66px}#accountReferenceForm input[type=checkbox]{width:16px;height:16px}
@media print{#accountReferencePaper section+section{break-before:page}}
#movementsReferenceForm{background:#fff;border:1px solid #ddd;font:12px Arial,sans-serif}
#movementsReferenceForm .reportFilterFields{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 10px;align-items:center}
#movementsReferenceForm input,#movementsReferenceForm select{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #d0d0d0;border-radius:3px;font:12px Arial,sans-serif;padding:4px 7px}
#movementsReferenceForm select[multiple]{height:66px}#movementsReferenceForm input[type=checkbox]{width:16px;height:16px}
#movementsReferenceForm p{font-size:11px;line-height:1.4;color:#555}#movementsReferenceForm button{margin-right:5px;border-radius:3px;font-size:12px}
#movementsReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}#movementsReferencePaper h1{font-size:20px}
#movementsReferencePaper table{width:100%;border-collapse:collapse}#movementsReferencePaper td,#movementsReferencePaper th{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}
#movementsReferencePaper td:nth-last-child(-n+6),#movementsReferencePaper th:nth-last-child(-n+6){text-align:right}
@media(max-width:600px){#movementsReferenceForm .reportFilterFields{grid-template-columns:1fr}}
@media print{body #movementsReferencePaper{overflow:visible}body #movementsReferencePaper table{table-layout:fixed;width:100%}body #movementsReferencePaper th,body #movementsReferencePaper td{white-space:normal;overflow-wrap:anywhere;font-size:9px}}
#incomeReferenceForm{background:#fff;border:1px solid #ddd;font:12px Arial,sans-serif}
#incomeReferenceForm .reportFilterFields{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 10px;align-items:center}
#incomeReferenceForm input,#incomeReferenceForm select{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #d0d0d0;border-radius:3px;font:12px Arial,sans-serif;padding:4px 7px}
#incomeReferenceForm select[multiple]{height:66px}#incomeReferenceForm input[type=checkbox]{width:16px;height:16px}
#incomeReferenceForm p{font-size:11px;line-height:1.4;color:#555}#incomeReferenceForm button{margin-right:5px;border-radius:3px;font-size:12px}
#incomeReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}#incomeReferencePaper h1{font-size:20px}
#incomeReferencePaper table{width:100%;border-collapse:collapse}#incomeReferencePaper td,#incomeReferencePaper th{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}
#incomeReferencePaper td:last-child,#incomeReferencePaper th:last-child{text-align:right}
@media(max-width:600px){#incomeReferenceForm .reportFilterFields{grid-template-columns:1fr}}
@media print{body #incomeReferencePaper{overflow:visible}body #incomeReferencePaper th,body #incomeReferencePaper td{white-space:normal;overflow-wrap:anywhere}}

#yearBalancesReferenceForm{background:#fff;border:1px solid #ddd;font:12px Arial,sans-serif}
#yearBalancesReferenceForm .reportFilterFields{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 10px;align-items:center}
#yearBalancesReferenceForm input,#yearBalancesReferenceForm select{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #d0d0d0;border-radius:3px;font:12px Arial,sans-serif;padding:4px 7px}
#yearBalancesReferenceForm select[multiple]{height:66px}#yearBalancesReferenceForm input[type=checkbox]{width:16px;height:16px}
#yearBalancesReferenceForm p{font-size:11px;line-height:1.4;color:#555}#yearBalancesReferenceForm button{margin-right:5px;border-radius:3px;font-size:12px}
#yearBalancesReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}#yearBalancesReferencePaper h1{font-size:20px}
#yearBalancesReferencePaper table{width:100%;border-collapse:collapse}#yearBalancesReferencePaper td,#yearBalancesReferencePaper th{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}
#yearBalancesReferencePaper td:last-child,#yearBalancesReferencePaper th:last-child{text-align:right}
@media(max-width:600px){#yearBalancesReferenceForm .reportFilterFields{grid-template-columns:1fr}}
@media print{body #yearBalancesReferencePaper{overflow:visible}body #yearBalancesReferencePaper th,body #yearBalancesReferencePaper td{white-space:normal;overflow-wrap:anywhere}}

#yearBalancesReferencePaper td:not(:first-child):not(:nth-child(2)),#yearBalancesReferencePaper th:not(:first-child):not(:nth-child(2)){text-align:right}
@media print{body #yearBalancesReferencePaper table{table-layout:fixed;width:100%}body #yearBalancesReferencePaper td,body #yearBalancesReferencePaper th{font-size:8px}}

/* Report controls measured against the read-only 1280px reference. */
@media screen{
body:has(#reportCenter.on){background:#f0f0f0}
#reportCenter .reportsLayout{grid-template-columns:minmax(235px,32%) minmax(0,1fr)}
:is(#reportCenter,#cashFlowScreen) .reportLink{font-size:13px;line-height:19px;min-height:21px}
#reportCenter .reportFilterHeading{font-size:22px;font-weight:400}
:is(#reportCenter,#cashFlowScreen) form.reportReferenceControls{padding:0;border:0;background:transparent;box-shadow:none}
:is(#reportCenter,#cashFlowScreen) .reportReferenceCard{background:white;border:1px solid #ddd;padding:20px 23px;border-radius:2px;box-shadow:0 2px 3px #0003}
:is(#reportCenter,#cashFlowScreen) .reportReferenceCard h3{font:14px Arial;font-weight:400;margin:0 0 22px}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportFilterFields{grid-template-columns:150px minmax(0,1fr);gap:12px 10px}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls [hidden]{display:none!important}
:is(#reportCenter,#cashFlowScreen) .reportMulti{position:relative;display:flex;flex-wrap:wrap;align-items:center;min-height:27px;border:1px solid #ccc;border-radius:5px;padding:0 4px;box-sizing:border-box;background:white;gap:2px}
:is(#reportCenter,#cashFlowScreen) .reportMultiChips{display:contents}
:is(#reportCenter,#cashFlowScreen) .reportMulti input{border:0;outline:0;height:24px;min-height:24px;min-width:25px;flex:1;width:25px;padding:0;background:transparent}
:is(#reportCenter,#cashFlowScreen) .reportMultiChip{border:0;border-radius:2px;background:#0084d0;color:white;font:14px Arial;line-height:20px;padding:0 6px;margin:0;min-height:20px}
:is(#reportCenter,#cashFlowScreen) .reportMultiOptions{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:240px;overflow:auto;background:white;border:1px solid #ccc;box-shadow:0 3px 8px #0003}
:is(#reportCenter,#cashFlowScreen) .reportMultiOptions button{display:block;text-align:left;width:100%;border:0;background:white;color:#333;padding:7px;font:13px Arial;margin:0}
:is(#reportCenter,#cashFlowScreen) .reportMultiOptions button[aria-selected=true]{background:#e5f3ff}
:is(#reportCenter,#cashFlowScreen) .reportMultiOptions button:focus{outline:2px solid #337af3;outline-offset:-2px}
#reportCenter .reportSwitchRow{grid-column:1/-1;display:flex;align-items:center;gap:7px}
#reportCenter .reportSwitchRow input{appearance:none;width:32px;height:14px;min-height:14px;border:0;border-radius:10px;background:#aaa;position:relative;padding:0;margin:0}
#reportCenter .reportSwitchRow input:checked{background:#007eac}
#reportCenter .reportSwitchRow input:after{content:'';position:absolute;left:0;top:-2px;width:18px;height:18px;border-radius:50%;background:#ddd;box-shadow:0 1px 2px #0003}
#reportCenter .reportSwitchRow input:checked:after{content:'✓';color:white;text-align:center;line-height:18px;left:14px;background:#0089c7}
:is(#reportCenter,#cashFlowScreen) .reportReferenceHelp{font:11px Arial;color:#555;margin-top:10px}
:is(#reportCenter,#cashFlowScreen) .reportReferenceHelp summary{cursor:pointer}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportFilterActions{margin-top:20px;gap:10px}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportFilterActions button{background:transparent;border:1px solid #337af3;color:#337af3;padding:7px 12px;font:12px Arial;min-width:88px;margin:0;border-radius:5px}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportFilterActions .reportClearControl{order:-1;margin-right:auto;color:#c54c57;border-color:#c54c57}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportFilterActions button:disabled{opacity:.45}
}
@media(max-width:850px){#reportCenter .reportsLayout{grid-template-columns:1fr}}
@media(max-width:600px){:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportFilterFields{grid-template-columns:1fr}}

:is(#reportCenter,#cashFlowScreen) .reportReferenceValue{display:flex;flex-wrap:wrap;gap:5px;min-width:0}:is(#reportCenter,#cashFlowScreen) .reportReferenceValue>small{flex-basis:100%;font-size:10px;color:#555}:is(#reportCenter,#cashFlowScreen) .reportReferenceValue>.reportMulti{width:100%}:is(#reportCenter,#cashFlowScreen) .reportReferenceValue>select{flex:1;min-width:80px}:is(#reportCenter,#cashFlowScreen) .reportReferenceValue>input{flex:1;min-width:80px}:is(#reportCenter,#cashFlowScreen) .reportReferenceValue>.reportDatePresentation{flex:1;min-width:100px}

@media screen{
#reportCenter #journalReferenceForm .reportFilterFields{gap:4px 10px}
:is(#reportCenter,#cashFlowScreen) #journalReferenceForm .reportReferenceValue>input,:is(#reportCenter,#cashFlowScreen) #journalReferenceForm .reportReferenceValue>select{height:26px;min-height:26px;padding:2px 5px}
#reportCenter #journalReferenceForm select[name=numberOp],#reportCenter #journalReferenceForm select[name=descriptionOp]{width:20px;min-width:20px;flex:0 0 20px;padding:0;color:transparent}
#reportCenter #journalReferenceForm select[name=numberOp] option,#reportCenter #journalReferenceForm select[name=descriptionOp] option{color:#333}
:is(#reportCenter,#cashFlowScreen) #journalReferenceForm .reportReferenceValue>.reportDatePresentation{max-width:140px}
:is(#reportCenter,#cashFlowScreen) .reportReferenceHelp small{display:block;margin:5px 0}
#reportCenter .reportExportMenu{position:relative;padding:0;border:0}
#reportCenter .reportExportMenu summary{cursor:pointer;list-style:none;border:1px solid #31aec1;color:#31aec1;border-radius:5px;padding:7px 12px;font:12px Arial}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportExportMenu>button{display:block;width:100%;background:white;min-width:110px;margin-top:3px}
#reportCenter .reportExportMenu:not([open])>button{display:none}
}

@media screen{
#reportCenter #journalReferenceForm select[name=numberOp],#reportCenter #journalReferenceForm select[name=descriptionOp]{appearance:none;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") center no-repeat}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportReferenceHelp>summary{min-height:0;padding:0;font:11px Arial;display:block}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportReferenceHelp>summary:after{content:none}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportExportMenu>summary{min-height:0;display:block;font:12px Arial}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportExportMenu>summary:after{content:none}
}
:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportExportMenu>summary:after,:is(#reportCenter,#cashFlowScreen) .reportReferenceControls .reportReferenceHelp>summary:after{content:none!important}

#incomeYearsReferencePaper{overflow:auto;margin-top:20px;font:12px Arial,sans-serif}#incomeYearsReferencePaper h1{font-size:20px}#incomeYearsReferencePaper table{width:100%;border-collapse:collapse}#incomeYearsReferencePaper td,#incomeYearsReferencePaper th{padding:6px;border:1px solid #ddd;text-align:left}#incomeYearsReferencePaper td:nth-last-child(-n+3){text-align:right;white-space:nowrap}#incomeYearsReferencePaper section[aria-label]>section{display:inline-block;vertical-align:top;width:31%;min-width:200px;margin:1%;padding:8px;border:1px solid #ddd;box-sizing:border-box}#incomeYearsReferencePaper section h3{font-size:13px}#incomeYearsReferencePaper [role=img]{margin-bottom:8px}@media print{#incomeYearsReferencePaper{overflow:visible}#incomeYearsReferencePaper table{table-layout:fixed}#incomeYearsReferencePaper td,#incomeYearsReferencePaper th{white-space:normal!important;overflow-wrap:anywhere}}

#cashFlowReferenceControls{display:grid;grid-template-columns:minmax(220px,2fr) auto minmax(170px,1fr) minmax(130px,1fr);gap:10px;align-items:end;padding:16px;background:white;border:1px solid #ddd;border-radius:3px;margin:12px 0;font:13px Arial}#cashFlowReferenceControls label{display:flex;flex-direction:column;gap:5px}#cashFlowReferenceControls select{width:100%;height:29px;border:1px solid #ccc;border-radius:4px;padding:3px}#cashFlowReferenceControls select[multiple]{height:65px}#cashFlowReferenceHint{grid-column:1/-1;margin:3px 0;font-size:11px}#cashFlowReferenceControls button{border:1px solid #347bf3;color:#347bf3;background:white;border-radius:4px;height:32px;padding:5px 10px}@media(max-width:850px){#cashFlowReferenceControls{grid-template-columns:1fr 1fr}}@media(max-width:550px){#cashFlowReferenceControls{grid-template-columns:1fr}}

@media screen {
#cashFlowReferencePresentation{max-width:690px;margin:18px 0 18px auto;font:13px Arial;color:#222}
#cashFlowReferencePresentation .reportFilterFields{display:grid;align-items:center}
#cashFlowReferencePresentation input[type=text],#cashFlowReferencePresentation select:not([multiple]){height:27px;min-height:27px;border:1px solid #cbd0d8;border-radius:5px;padding:3px 7px;font:13px Arial;box-sizing:border-box;background:white;color:#222}
#cashFlowReferencePresentation .reportDatePresentation button{height:27px}
#cashFlowReferenceApply{border:1px solid #337af3;background:white;color:#337af3;border-radius:5px;padding:6px 12px;font:12px Arial}
#cashFlowScreen .detailToolbar h1{font:22px Arial;font-weight:400}
}

@media screen {
#cashFlowReferencePresentation .reportMulti input{border:0;background:transparent;height:24px;min-height:24px;padding:0}
#cashFlowOutputMenu{position:relative;padding:0;border:0}
#cashFlowOutputMenu summary{list-style:none;cursor:pointer;border:1px solid #31aec1;color:#168b9d;border-radius:5px;padding:7px 12px;font:12px Arial;background:white}
#cashFlowOutputMenu[open]{z-index:30}#cashFlowOutputMenu>button{display:block;width:100%;background:white;color:#168b9d;border:1px solid #31aec1;margin:3px 0 0;padding:7px 12px}
}

@media screen{#cashFlowScreen .cashFlowReferenceLayout{display:grid;grid-template-columns:minmax(235px,32%) minmax(0,1fr);gap:30px;align-items:start}#cashFlowScreen .cashFlowReferenceLayout #cashFlowReferencePresentation{width:100%;margin:18px 0;box-sizing:border-box}#cashFlowScreen #reportTree{margin-top:18px;background:white;border:1px solid #ddd;padding:8px;max-height:70vh;overflow:auto}#cashFlowScreen #reportTree button{font:13px Arial;text-align:left}}
@media(max-width:850px){#cashFlowScreen .cashFlowReferenceLayout{grid-template-columns:1fr}#cashFlowScreen #reportTree{max-height:220px}}

/* Fresh reference 541: paired sorting, compact dates and actions below the card. */
@media screen{
#cashFlowReferencePresentation .cashFlowReferenceHeading{font:22px/26px Arial;font-weight:400;margin:0 0 7px}
#cashFlowReferencePresentation .reportFilterFields{gap:4px 10px}
#cashFlowReferencePresentation .reportReferenceCard{padding:20px 23px}
#cashFlowReferencePresentation .reportReferenceCard h3{margin-bottom:20px}
#cashFlowReferencePresentation .reportDatePresentation{flex:0 1 134px;max-width:134px}
#cashFlowReferencePresentation .reportDatePresentation:first-child{margin-right:20px}
#cashFlowReferencePresentation .reportDatePresentation:first-child:after{content:'-';position:absolute;left:calc(100% + 11px);top:5px}
#cashFlowReferencePresentation #cashFlowReferenceSort,#cashFlowReferencePresentation #cashFlowReferenceDirection{flex:0 1 134px;width:134px}
#cashFlowReferencePresentation #cashFlowReferenceDirection{margin-left:20px}
#cashFlowReferencePresentation .cashFlowReferenceActions{display:flex;align-items:flex-start;gap:12px;margin-top:18px}
#cashFlowReferenceClear{margin-right:auto;background:transparent;color:#c54c57;border:1px solid #c54c57;border-radius:5px;padding:7px 12px;font:12px Arial}
#cashFlowReferencePresentation #cashFlowReferenceApply{min-width:94px;padding:7px 12px}
#cashFlowReferencePresentation #cashFlowOutputMenu{margin:0}
#cashFlowScreen .cashFlowReferenceLayout{gap:25px}
}
@media(max-width:600px){#cashFlowReferencePresentation .reportDatePresentation{flex:1;max-width:none}#cashFlowReferencePresentation .cashFlowReferenceActions{flex-wrap:wrap}}

@media screen{#cashFlowReferencePresentation .reportReferenceCard .reportFilterFields{gap:4px 10px}#cashFlowScreen>.detailToolbar{display:block;text-align:center;min-height:43px;padding:4px 0 7px}#cashFlowScreen>.detailToolbar h1{font:30px/35px Arial;margin:0}#cashFlowSourceTools{margin:12px 0;font:12px Arial}#cashFlowSourceTools summary{cursor:pointer}#cashFlowSourceTools button{margin:6px 6px 0 0}}

@media screen{#cashFlowScreen>.detailToolbar{min-height:0;padding:0 0 7px}#cashFlowScreen .cashFlowReferenceLayout #cashFlowReferencePresentation,#cashFlowScreen #reportTree{margin-top:8px}#cashFlowReferencePresentation .reportReferenceCard .reportFilterFields{gap:1px 10px}}

#cashFlowCounterpartyPaper{font:14px Arial;color:#000;max-width:940px;margin:0 auto;padding:25px;background:white}
#cashFlowCounterpartyPaper h1{text-align:center;font:28px Arial;margin:0 0 5px}#cashFlowCounterpartyPaper .cashCounterSubtitle{text-align:center;line-height:25px}
#cashFlowCounterpartyPaper h2{border:1px solid #222;border-bottom:0;font:bold 18px Arial;margin:12px 0 0;padding:4px}
#cashFlowCounterpartyPaper .table{width:100%;border-collapse:collapse}#cashFlowCounterpartyPaper th,#cashFlowCounterpartyPaper td{border:0;background:white;padding:7px;text-align:left}#cashFlowCounterpartyPaper th:nth-last-child(-n+2),#cashFlowCounterpartyPaper td:nth-last-child(-n+2){text-align:right}
#cashFlowCounterpartyPaper .cashCounterTotal{background:#c9ffff;font-size:18px;font-weight:bold;padding:6px 18px;margin:20px 5%;display:flex;justify-content:space-between;gap:16px}
#cashFlowCounterpartyPaper .cashCounterNote{font-size:11px;line-height:16px}#cashFlowCounterpartyPaper .cashCounterUnknown td{background:#fff4d4}
#cashFlowClassificationDetails{margin-top:20px}#cashFlowClassificationDetails>summary{cursor:pointer;font:14px Arial}
@media print{#cashFlowClassificationDetails{display:none!important}#cashFlowCounterpartyPaper{padding:0;max-width:none}.cashCounterTotal{print-color-adjust:exact}}

/* Account balance paper: verified public Bilanc example, report-only. */
#trialReferencePaper{background:white;padding:24px;font-family:Arial,sans-serif;color:#111}#trialReferencePaper h1,#trialReferencePaper .trialBaseCurrency,#trialReferencePaper .trialCompanyName{text-align:center;margin:5px 0}#trialReferencePaper h1{font-size:24px;font-weight:400}#trialReferencePaper .trialCompanyName{color:#666}#trialReferencePaper table{border-collapse:collapse;width:100%;font-size:12px}#trialReferencePaper th,#trialReferencePaper td{border:0;padding:3px 5px;background:white}#trialReferencePaper thead{border-top:1px solid black;border-bottom:1px solid black}#trialReferencePaper td:nth-child(n+3),#trialReferencePaper th:nth-child(n+3){text-align:right}#trialReferencePaper td:last-child{font-weight:bold}#trialReferencePaper tfoot{border-top:1px solid black}

@media screen{#customsRegisterForm #customsCostItems{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}#customsCostItems>label{display:grid;gap:4px;min-width:0}#customsCostItems>label:has(select[multiple]),#customsCostItems>p{grid-column:1/-1}#customsCostItems select{width:100%;box-sizing:border-box}#customsCostItems select[multiple]{min-height:90px}#customsCostItems>p{margin:0}}
@media screen and (max-width:600px){#customsRegisterForm #customsCostItems{grid-template-columns:minmax(0,1fr)}}

@media screen{#itemClientSalesPaper .documentSummaryTable{min-width:980px}#itemClientSalesPaper .documentSummaryTable td:first-child{white-space:nowrap}}
