
/* assets/transaction-shortcut-icons.css */
@font-face{font-family:"LedgerOne Shortcut";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/shortcut/inter-semibold-latin.woff2") format("woff2")}
/* Meaningful 3D transaction shortcuts; native permissions and actions remain authoritative. */
.topbar:has(#transactionShortcutBar){height:auto!important;flex-wrap:wrap!important;padding-top:8px;padding-bottom:5px;row-gap:4px}
.topbar #transactionShortcutBar{order:10!important;flex:1 1 100%!important;width:100%!important;height:86px!important;margin:2px 0 0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scrollbar-color:#8eb8a2 transparent}
.topbar #transactionShortcutBar .shortcut-icons{gap:5px!important;padding:4px 6px 6px!important;margin-inline:auto!important}
html #transactionShortcutBar .shortcut-icons button[data-shortcut-index]{display:flex!important;flex-direction:column!important;align-items:center;justify-content:flex-start;gap:5px;width:74px!important;min-width:74px!important;height:72px!important;flex:0 0 74px!important;padding:2px 1px!important;background:transparent!important;border:1px solid transparent!important;border-radius:11px!important;box-shadow:none!important;backdrop-filter:none!important;text-shadow:none!important;white-space:normal!important}
html #transactionShortcutBar .shortcut-icons button[data-shortcut-index]:hover{background:#eaf4ee!important;border-color:#b7d3c3!important;transform:none!important;box-shadow:none!important}
#transactionShortcutBar .shortcut-icon-3d{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;box-sizing:border-box;padding:3px;color:var(--shortcut-ink,#24765a);border:1px solid #c4d9cc;border-radius:10px;background:linear-gradient(145deg,#f9fffc,#e0efe7 48%,#b6d3c3);box-shadow:inset 0 1px 1px #fff,0 3px 0 #a4c3b1,0 5px 9px #234b3520;transform:perspective(200px) rotateX(6deg) rotateY(-6deg);transition:transform .16s,box-shadow .16s}
#transactionShortcutBar .shortcut-icon-3d svg{display:block!important;width:25px!important;height:25px!important;overflow:visible}
#transactionShortcutBar .shortcut-name{display:block;max-width:68px;font-family:"LedgerOne Shortcut",Arial,sans-serif!important;line-height:14px!important;font-size:11px!important;font-weight:600!important;text-align:center;color:#284d3c;white-space:normal;letter-spacing:normal;font-kerning:normal;text-transform:none}
#transactionShortcutBar button:hover .shortcut-icon-3d,#transactionShortcutBar button:focus-visible .shortcut-icon-3d{transform:translateY(-1px);box-shadow:inset 0 1px #fff,0 3px 0 #a4c3b1,0 7px 10px #234b352b}
#transactionShortcutBar button:focus-visible{outline:2px solid #53ac80!important;outline-offset:1px}
html[data-ui-theme=dark] #transactionShortcutBar .shortcut-name{color:#e0eee5}
html[data-ui-theme=dark] #transactionShortcutBar .shortcut-icon-3d{background:linear-gradient(145deg,#edfff4,#c1dfca 46%,#82b293);border-color:#a1c4ab;box-shadow:inset 0 1px #ffffffc0,0 3px 0 #477858,0 6px 11px #0005}
html[data-ui-theme=dark] #transactionShortcutBar .shortcut-icons button[data-shortcut-index]:hover{background:#2b4b39!important;border-color:#587a63!important}
@media(max-width:600px){.topbar #transactionShortcutBar .shortcut-icons{margin-left:0!important}.topbar #transactionShortcutBar{height:84px!important}html #transactionShortcutBar .shortcut-icons button[data-shortcut-index]{width:72px!important;min-width:72px!important;flex-basis:72px!important}}
@media(prefers-reduced-motion:reduce){#transactionShortcutBar .shortcut-icon-3d{transition:none}}

/* One stable ribbon layout on Dashboard and transaction pages. */
#appView .topbar:has(#transactionShortcutBar){display:flex!important;flex-flow:row wrap!important;align-content:flex-start;column-gap:12px}
#appView .topbar #transactionShortcutBar{order:10!important;flex:0 0 100%!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;transform:none!important}
#appView .topbar #transactionShortcutBar .shortcut-icons{flex-wrap:nowrap!important;width:max-content!important;min-width:max-content!important;max-width:none!important;transform:none!important;zoom:1}
#transactionShortcutBar .shortcut-name{font-synthesis:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#transactionShortcutBar .shortcut-icon-3d{width:32px!important;min-width:32px!important;height:32px!important;flex-shrink:0!important}

/* Two explicit header rows keep company controls left and utilities right. */
#appView .topbar:has(#transactionShortcutBar){display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center;column-gap:12px}
#appView .topbar:has(#transactionShortcutBar)>#menuBtn{grid-column:1;grid-row:1}
#appView .topbar:has(#transactionShortcutBar)>.company-picker{grid-column:2;grid-row:1;min-width:0}
#appView .topbar:has(#transactionShortcutBar)>.top-actions{grid-column:3;grid-row:1;justify-self:end;margin-left:0!important;margin-inline-start:0!important;min-width:0;max-width:100%}
#appView .topbar #transactionShortcutBar{grid-column:1/-1;grid-row:2;justify-self:stretch}
#appView .topbar #transactionShortcutBar .shortcut-icons{margin-left:auto!important;margin-right:auto!important}
@media(max-width:800px){
 #appView .topbar:has(#transactionShortcutBar){grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:auto auto auto!important}
 #appView .topbar:has(#transactionShortcutBar)>.top-actions{grid-column:1/-1;grid-row:2;justify-self:end;flex-wrap:wrap;justify-content:flex-end}
 #appView .topbar #transactionShortcutBar{grid-row:3}
 #appView .topbar #transactionShortcutBar .shortcut-icons{margin-left:0!important}
}

#appView .topbar #transactionShortcutBar::-webkit-scrollbar{display:block!important;height:6px}
#appView .topbar #transactionShortcutBar::-webkit-scrollbar-thumb{background:#91b7a3;border-radius:5px}

/* Compact the ribbon whitespace without shrinking the artwork or text. */
#appView .topbar #transactionShortcutBar{height:74px!important;margin-top:0!important}
#appView .topbar #transactionShortcutBar .shortcut-icons{gap:2px!important;padding:2px 4px 4px!important}
html #transactionShortcutBar .shortcut-icons button[data-shortcut-index]{width:68px!important;min-width:68px!important;flex-basis:68px!important;height:66px!important;gap:4px!important;padding:1px 0!important}
#transactionShortcutBar .shortcut-name{max-width:66px}
#appView .topbar:has(#transactionShortcutBar){row-gap:2px!important;padding-bottom:2px!important}

/* Requested readable 10pt labels (13.333 CSS px), including two-line names. */
#transactionShortcutBar .shortcut-name{font-size:10pt!important;line-height:16px!important;max-width:86px!important}
html #transactionShortcutBar .shortcut-icons button[data-shortcut-index]{width:90px!important;min-width:90px!important;flex-basis:90px!important;height:70px!important}
#appView .topbar #transactionShortcutBar{height:78px!important}

/* Company, transactions and utility controls share the upper header row. */
#appView .topbar:has(#transactionShortcutBar){grid-template-columns:auto auto minmax(0,1fr) auto!important;grid-template-rows:auto!important;column-gap:10px!important;align-items:center}
#appView .topbar:has(#transactionShortcutBar)>.company-picker{grid-column:2;grid-row:1;max-width:min(290px,25vw)}
#appView .topbar:has(#transactionShortcutBar)>.top-actions{grid-column:4;grid-row:1;flex-wrap:nowrap}
#appView .topbar #transactionShortcutBar{grid-column:3;grid-row:1;width:100%!important;min-width:0!important;max-width:100%!important}
#appView .topbar #transactionShortcutBar .shortcut-icons{margin-inline:0!important}
@media(max-width:600px){#appView .topbar:has(#transactionShortcutBar){column-gap:5px!important;padding-left:6px!important;padding-right:6px!important}#appView .topbar:has(#transactionShortcutBar)>.company-picker{max-width:100px!important}#appView .topbar .company-picker>span{display:none!important}#appView .topbar .company-picker select{max-width:100px!important}#appView .topbar .top-actions{gap:4px!important}}

#transactionShortcutBar .shortcut-name{font-size:8.5pt!important;line-height:14px!important}

/* Balanced single-row proportions at the selected 8.5pt label size. */
#appView .topbar:has(#transactionShortcutBar){column-gap:12px!important;padding-left:18px!important;padding-right:18px!important;padding-top:6px!important;padding-bottom:6px!important}
#appView .topbar:has(#transactionShortcutBar)>.company-picker{max-width:240px;gap:9px}
#appView .topbar:has(#transactionShortcutBar)>.company-picker>span{white-space:nowrap;line-height:1.4;flex:0 0 auto}
#appView .topbar:has(#transactionShortcutBar) .company-picker select{max-width:190px!important;min-width:0;width:100%}
#appView .topbar #transactionShortcutBar{height:78px!important}
#appView .topbar #transactionShortcutBar .shortcut-icons{gap:3px!important;padding:3px 4px 5px!important;margin-inline:auto!important}
html #transactionShortcutBar .shortcut-icons button[data-shortcut-index]{width:70px!important;min-width:70px!important;flex-basis:70px!important;height:68px!important;gap:4px!important}
#transactionShortcutBar .shortcut-name{max-width:68px!important;min-height:28px;line-height:14px!important;display:flex;align-items:flex-start;justify-content:center;text-wrap:balance}
#appView .topbar:has(#transactionShortcutBar)>.top-actions{gap:7px!important}
@media(max-width:1350px){#appView .topbar:has(#transactionShortcutBar)>.company-picker>span{display:none!important}#appView .topbar:has(#transactionShortcutBar)>.company-picker{max-width:180px!important}}
@media(max-width:800px){#appView .topbar:has(#transactionShortcutBar){column-gap:6px!important;padding-left:8px!important;padding-right:8px!important}#appView .topbar:has(#transactionShortcutBar)>.company-picker{max-width:130px!important}#appView .topbar #transactionShortcutBar .shortcut-icons{margin-inline:0!important}}
@media(max-width:600px){#appView .topbar:has(#transactionShortcutBar)>.company-picker{max-width:92px!important}}

/* No large tiles around shortcut actions in light mode. */
html:not([data-ui-theme=dark]) #transactionShortcutBar .shortcut-icons button[data-shortcut-index],html:not([data-ui-theme=dark]) #transactionShortcutBar .shortcut-icons button[data-shortcut-index]:hover{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:none!important}

/* assets/topbar-icon-controls.css */
/* Compact utility controls retain native search/theme behavior. */
.topbar #quickVoucher{display:none!important}
.topbar #uiThemeToggle{width:34px!important;height:34px!important;padding:7px!important;display:grid!important;place-items:center;gap:0!important;min-width:34px!important}
.topbar #uiThemeToggle>span{display:none!important}
.topbar #stockLookup{display:block!important;position:relative!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.topbar #stockLookup>svg{display:none!important}
#topStockSearchToggle{display:grid;place-items:center;width:34px;height:34px;padding:7px;border:1px solid #d7e3dd;border-radius:9px;background:#fff;color:#28654d;cursor:pointer}
#topStockSearchToggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#topStockSearchToggle:focus-visible{outline:2px solid #53ac80;outline-offset:2px}
.topbar #stockLookup:not(.utility-search-open)>#topStockInput{display:none!important}
.topbar #stockLookup.utility-search-open>#topStockInput{display:block!important;position:fixed!important;z-index:1000!important;box-sizing:border-box!important;height:40px!important;padding:9px 12px!important;border:1px solid #9abdab!important;border-radius:9px!important;background:#fff!important;color:#193f2e!important;box-shadow:0 6px 20px #132c3326;font-size:14px!important}
html[data-ui-theme=dark] #topStockSearchToggle{background:#203a2c;border-color:#476653;color:#d5eadc}
html[data-ui-theme=dark] .topbar #stockLookup.utility-search-open>#topStockInput{background:#172e21!important;color:#e0eee5!important;border-color:#50765e!important}

/* assets/transaction-bulk-print.css */
/* Select and print a compact report without changing individual voucher print state. */
.transaction-bulk-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 16px;border-bottom:1px solid #dbe5e0}
.transaction-bulk-actions small{flex-basis:100%;color:#64766e}
.transaction-voucher-table>thead>tr>th{padding-top:8px;padding-bottom:8px}
.transaction-voucher-table>tbody>tr>td{padding-top:5px;padding-bottom:5px;vertical-align:middle}
@media(min-width:769px){.transaction-voucher-table .row-actions>button{height:26px;min-height:26px;padding:3px 6px}.transaction-voucher-table .row-actions>button>.lo-icon{width:16px;height:16px}}
.transaction-select-cell{width:46px!important;min-width:46px;text-align:center!important}
.transaction-select-cell input{width:20px;height:20px;min-height:20px;cursor:pointer;accent-color:#155b43}
.transaction-print-dialog{width:min(1100px,calc(100vw - 24px));height:calc(100dvh - 32px);max-width:none;max-height:none;border:0;border-radius:12px;padding:0;overflow:hidden;color:#173c30}
.transaction-print-dialog[open]{display:flex;flex-direction:column}
.transaction-print-dialog::backdrop{background:#102f28aa}
.transaction-print-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #dbe5e0}
.transaction-print-controls button{min-height:44px;padding:10px 16px;margin:0 0 0 8px;border:0;border-radius:8px;background:#155b43;color:white;cursor:pointer;font:inherit}
.transaction-print-controls button:disabled{opacity:.5;cursor:wait}
.transaction-print-dialog iframe{width:100%;flex:1;min-height:0;border:0;background:white}
.transaction-print-document{font:11px Arial,sans-serif;color:#172e25;background:white;margin:0;padding:24px}
.transaction-print-document header{border-bottom:2px solid #155b43;margin-bottom:14px;padding-bottom:10px}
.transaction-print-document h1{font-size:20px;margin:0 0 5px}
.transaction-print-document h2{font-size:16px;margin:12px 0 6px}
.transaction-print-document p{margin:4px 0}
.transaction-print-document table{width:100%;border-collapse:collapse;table-layout:fixed}
.transaction-print-document th,.transaction-print-document td{padding:6px;border-bottom:1px solid #d3ddd7;text-align:left;vertical-align:top;overflow-wrap:anywhere;line-height:1.35}
.transaction-print-document th{background:#edf5f0;font-size:10px}
.transaction-print-document th:first-child{width:22px}
.transaction-print-document th:nth-child(2){width:100px}
.transaction-print-document th:nth-child(4){width:100px}
.transaction-print-document th:last-child{width:90px}
.transaction-print-document .num{text-align:right;white-space:nowrap}
.transaction-print-document small{color:#566b60;font-size:10px}
.transaction-print-totals{margin:12px 0 24px 50%;break-inside:avoid}
.transaction-print-totals div{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid #bdcdc3}
.transaction-print-document footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;margin-top:30px;break-inside:avoid}
@media(max-width:600px){.transaction-bulk-actions .btn{min-height:44px}.transaction-print-document{padding:12px}.transaction-print-document table{table-layout:auto;font-size:10px}.transaction-print-controls{padding:10px}.transaction-print-controls button{margin:0 4px 0 0}}
@page{size:A4 portrait;margin:12mm}
@media print{.transaction-print-document{padding:0}.transaction-print-document thead{display:table-header-group}.transaction-print-document tr{break-inside:avoid;page-break-inside:avoid}.transaction-print-document th{background:#edf5f0;print-color-adjust:exact}}

.transaction-list-card .report-export-actions{display:none!important}
.transaction-format-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:12px;padding:24px;color:#173c30;font:inherit}
.transaction-format-dialog::backdrop{background:#102f28aa}
.transaction-format-dialog h2{font-size:20px;margin:0 0 12px}
.transaction-format-dialog label{display:grid;gap:8px;margin:20px 0;font-weight:600}
.transaction-format-dialog select{width:100%;min-height:46px;padding:10px;font:inherit;font-size:16px;border:1px solid #bdcfc5;border-radius:8px}
.transaction-format-dialog form>div{display:flex;justify-content:flex-end;gap:10px}
.transaction-format-dialog button{min-height:44px;padding:10px 18px;background:#155b43;color:white;border:0;border-radius:8px;font:inherit;cursor:pointer}
.transaction-format-dialog [data-error]{color:#a32929}

.transaction-bulk-actions .transaction-bulk-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#155b43;box-shadow:none;cursor:pointer}
.transaction-bulk-icon>svg{width:20px;height:20px;fill:currentColor}.transaction-bulk-icon>.lo-icon{margin:0}
.transaction-bulk-icon:hover:not(:disabled){background:#edf5f1}.transaction-bulk-icon:disabled{opacity:.4;cursor:default}

.transaction-list-card .transaction-bulk-actions [data-preview]{margin-left:auto}
.transaction-list-card>.transaction-filter-bar{gap:7px;padding:9px 11px;justify-content:flex-end}
@media(min-width:621px){
.transaction-filter-bar>.transaction-search{min-width:150px;width:180px}
.transaction-filter-bar>.transaction-type{min-width:0;width:155px}
.transaction-filter-bar>.transaction-payment-method{min-width:0;width:160px}
.transaction-filter-bar>.transaction-client-picker{width:180px;margin-right:auto}
.transaction-filter-bar input,.transaction-filter-bar select{font-size:12px;padding:7px 9px;min-height:34px;box-sizing:border-box}
.transaction-filter-bar>.btn{font-size:12px;padding:7px 12px;min-height:34px}
.transaction-filter-bar>.transaction-date-range{width:auto;margin-left:auto;gap:5px;justify-content:flex-end}
.transaction-filter-bar .transaction-date-range label{flex:0 0 auto;gap:5px}
.transaction-filter-bar .transaction-date-range .localized-date-input{width:128px}
.transaction-filter-bar .transaction-date-range input:not(.localized-date-native){width:128px!important}
.transaction-filter-bar>.transaction-current-month{flex:0 0 auto}
}
@media(max-width:620px){.transaction-filter-bar>.transaction-date-range{margin-left:auto;justify-content:flex-end}.transaction-filter-bar>.btn{min-height:44px}}

.transaction-filter-note>.transaction-bulk-actions{margin-left:auto;padding:0;border:0;flex-wrap:nowrap;gap:4px}
.transaction-filter-note>.transaction-bulk-actions small{display:none}
.transaction-filter-note>.transaction-bulk-actions [data-count]{margin-right:8px;white-space:nowrap}
.transaction-filter-note>.transaction-bulk-actions [data-preview]{margin-left:0}
.transaction-filter-note>.transaction-bulk-actions .transaction-bulk-icon{width:32px;height:32px;min-height:32px}
.transaction-list-card>.transaction-filter-note{justify-content:flex-start;gap:10px;flex-direction:row;align-items:center;flex-wrap:wrap}
.transaction-filter-note>.transaction-bulk-actions+span{white-space:nowrap}

.transaction-list-card>.transaction-filter-bar>button{margin-left:0!important;margin-right:0!important}
.transaction-list-card>.transaction-filter-bar{column-gap:0}
.transaction-list-card>.transaction-filter-bar>input,.transaction-list-card>.transaction-filter-bar>select,.transaction-list-card>.transaction-filter-bar>.transaction-client-picker,.transaction-list-card>.transaction-filter-bar>.transaction-date-range{margin-right:7px}
