
/* Currency chooser: SVG flags render reliably on Windows. */
.currency-panel{display:flex;align-items:center;gap:25px;margin:0 0 22px;position:relative;z-index:3}
.currency-chooser{position:relative;flex:0 0 290px;min-width:0}
.currency-chooser>.eyebrow{display:block;margin-bottom:6px}
#currencyCurrent{width:100%;border:1px solid #dce0d1;border-radius:12px;background:#fff;padding:10px 13px;display:flex;align-items:center;gap:11px;text-align:left}
#currencyCurrent>span:nth-child(2),#currencyOptions button>span:nth-child(2){flex:1;min-width:0}
#currencyCurrent b,#currencyOptions b{display:block;font-size:12px}
#currencyCurrent small,#currencyOptions small{display:block;font-size:10px;color:#7d8572}
.currency-flag{display:inline-block;object-fit:contain;width:30px;height:20px;vertical-align:middle;flex-shrink:0;border-radius:3px;box-shadow:0 0 0 1px #d9dccf}
#currencyOptions{position:absolute;z-index:20;top:100%;left:0;right:0;margin-top:6px;background:#fff;border:1px solid #dce0d1;border-radius:12px;box-shadow:0 12px 30px #27351c22;padding:5px}
#currencyOptions button{width:100%;display:flex;align-items:center;gap:11px;background:#fff;border-radius:7px;padding:9px;text-align:left}
#currencyOptions button:hover,#currencyOptions [aria-selected=true]{background:#f8f2d7}
.currency-panel>p{font-size:11px;color:#717b65;line-height:1.8}
.currency-panel>p small{display:block;font-size:9px;margin-top:5px}
.currency-warning{padding:12px 16px;border:1px solid #e2d292;background:#fff9df;border-radius:12px;font-size:11px;color:#83712e;margin:-9px 0 24px}
.category-toolbar>div{display:flex;gap:14px;align-items:center}
.add-toggle{font-weight:650;color:#536344}
.add-item-form{margin:10px 18px;padding:14px;border:1px solid #e4e6d8;border-radius:11px;background:#f7f8ef;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.add-item-form label,.rename-form>label{display:block;font-size:10px;color:#69765b;margin-bottom:5px}
.add-item-form input,.rename-form input{width:100%;min-width:0;border:1px solid #d9ddcf;border-radius:7px;padding:7px 9px;background:#fff;font-size:12px}
.add-item-form .add-error{grid-column:1/-1}
.add-actions{grid-column:1/-1;display:flex;align-items:center;gap:18px}
.add-actions .primary-button{font-size:10px;padding:8px 12px}
.add-error{font-size:10px;color:#a54832;margin:0}
.custom-actions{display:flex;gap:10px;margin-top:3px}
.custom-actions .text-button{font-size:9px;padding:0}.remove-item{color:#977666}
.item-name strong{overflow-wrap:anywhere}.item-name label{cursor:pointer}
.input-currency{font-size:9px}
.rename-form{padding:25px;max-width:500px;margin:auto}
.rename-form h2{margin-bottom:16px}.rename-form>div{display:flex;gap:10px;margin-top:15px}.rename-form .add-error{margin-top:8px}
.paper-choice{font-size:11px;display:flex;align-items:center;gap:6px}
.paper-choice select{font:inherit;border:1px solid #dce2d2;background:#fff;border-radius:7px;padding:6px}
.asset-stub{padding:28px 30px;font-size:12px;color:#283527}
.stub-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:12px;border-bottom:3px solid #edce4e}
.stub-header b{font-size:11px;letter-spacing:.08em}
.stub-header h1{font-size:25px;margin:8px 0 4px;letter-spacing:-.035em}
.stub-header p{font-size:11px;color:#737e69}
.stub-meta{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:9px;font-size:10px;color:#66765c;text-align:right}
.stub-meta .currency-flag{width:22px;height:15px;margin-right:5px}
.not-payroll{font-size:11px;color:#717b65;margin-top:9px}
.stub-summary{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:16px 0}
.stub-summary>div{padding:13px 17px;border:1px solid #e1dcc7;border-radius:8px;background:#fcf8e8;min-width:0}
.stub-summary span{font-size:11px}
.stub-summary strong{font-size:29px;display:block;line-height:1.3;margin:6px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.stub-summary strong.long-amount{font-size:23px}
.stub-summary small{font-size:9px;color:#828a76}
.stub-breakdown{display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:18px;align-items:center;margin:17px 0}
.stub-breakdown h2{font-size:13px;margin:0 0 8px}
.stub-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:10px}
.stub-table th,.stub-table td{padding:7px 5px;border-bottom:1px solid #e4e8da;vertical-align:middle;overflow-wrap:anywhere}
.stub-table th{font-size:9px;text-align:left;color:#6f7b61;background:#f1f4e9}
.stub-table .numeric{text-align:right;font-variant-numeric:tabular-nums}
.stub-table tbody td:first-child .legend-dot{display:inline-block;margin-right:6px}
.stub-table tfoot th,.stub-table tfoot td{border-top:2px solid #ddcf98;font-weight:700;background:#fcf9ec}
.stub-chart .donut-wrap{width:125px;height:125px;margin:0 auto 10px}
.stub-chart .donut-center strong{font-size:27px}
.stub-chart .donut-center>span{font-size:8px}
.stub-chart>p{font-size:8px;color:#88947d;text-align:center;line-height:1.7}
.stub-basis{padding:10px 12px;background:#f8faf3;border-radius:7px;font-size:9px;line-height:1.7;color:#77846a}
.stub-basis p+p{margin-top:5px}
.stub-basis b{color:#5b6c4e;margin-right:5px}
.cut-line{display:flex;align-items:center;gap:8px;border-top:2px dashed #9ca68f;padding-top:6px;margin:21px -10px 12px;color:#7d8970;font-size:9px}
.cut-line svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5}
.souvenir-check{border:1.5px solid #b3bfa2;border-radius:7px;background:#f6f8ee;padding:14px 18px;position:relative;break-inside:avoid}
.check-top{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#6c7c5c}
.check-top b{font-weight:650}
.specimen{font-size:13px;font-weight:800;color:#785a36;line-height:1.5;margin:10px 0;padding:6px 9px;background:#fff9df;border:1px solid #decd94;border-radius:4px;letter-spacing:.02em;text-align:center;overflow-wrap:anywhere}
.check-value>span{font-size:10px;color:#7c896d}
.check-value>strong{font-size:32px;line-height:1.35;display:block;margin:4px 0 9px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.check-value>strong.long-amount{font-size:26px}
.check-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:#647752;border-top:1px solid #d6dfc9;padding-top:8px}
.check-disclaimer{font-size:10px;color:#805e36;margin-top:7px;font-weight:600}
.stub-footer{font-size:8px;color:#8b977e;margin-top:10px;line-height:1.6}
@media(max-width:760px){.currency-panel{align-items:flex-start;gap:15px}.currency-chooser{flex-basis:270px}.stub-breakdown{grid-template-columns:minmax(0,1fr) 105px;gap:10px}.stub-chart .donut-wrap{width:105px;height:105px}.asset-stub{padding:22px}.stub-meta{font-size:9px}.stub-summary strong{font-size:23px}.stub-table{font-size:9px}}
@media(max-width:540px){
.currency-panel{flex-direction:column;gap:10px;margin-bottom:18px}.currency-chooser{flex-basis:auto;width:100%}.currency-panel>p{font-size:10px}.currency-panel>p small{font-size:9px}
.currency-warning{font-size:10px;padding:10px 12px;margin-top:0}
.item-row{grid-template-columns:18px 27px minmax(0,1fr) 126px;gap:6px}.price-field input.large-input{font-size:9px}.price-field>div>span{font-size:8px}
.category-toolbar>div{gap:9px}.category-toolbar .text-button{font-size:10px}.category-toolbar label{font-size:10px}
.add-item-form{margin:9px 13px;padding:11px;gap:9px}.add-item-form input{font-size:11px}.add-item-form label{font-size:9px}
.summary-number.long-number{font-size:23px}.breath-card .summary-number.long-number{font-size:25px}
.asset-stub{padding:14px 10px}.stub-header{gap:9px}.stub-header h1{font-size:20px}.stub-header b{font-size:9px}.stub-header p{font-size:9px}.stub-meta{font-size:8px;max-width:40%}
.stub-summary{gap:8px;margin:12px 0}.stub-summary>div{padding:10px 8px}.stub-summary strong{font-size:19px}.stub-summary strong.long-amount{font-size:16px}.stub-summary span{font-size:9px}.stub-summary small{font-size:8px}
.stub-breakdown{grid-template-columns:1fr;gap:10px;margin:13px 0}.stub-chart{display:flex;align-items:center;justify-content:center;gap:20px}.stub-chart .donut-wrap{width:105px;height:105px;margin:0}
.stub-table{font-size:9px}.stub-table th,.stub-table td{padding:6px 3px}.stub-table th{font-size:8px}
.stub-basis{font-size:8px;padding:9px}.cut-line{margin:16px 0 10px}.souvenir-check{padding:11px 10px}
.specimen{font-size:11px;padding:6px}.check-value>strong{font-size:25px}.check-value>strong.long-amount{font-size:21px}.check-top{font-size:8px}.check-bottom{font-size:9px}.check-disclaimer{font-size:9px}
.dialog-toolbar>div{flex-wrap:wrap}.paper-choice{font-size:10px}.stub-footer{font-size:7px}
}
@media print{
.asset-stub{padding:0;margin:0;font-size:9pt;break-inside:avoid;color:#283527}
.stub-header{gap:14pt;padding-bottom:8pt;border-bottom:2pt solid #edce4e}
.stub-header h1{font-size:19pt;margin:5pt 0 3pt}
.stub-header b{font-size:8.5pt}.stub-header p{font-size:8pt}
.stub-meta{font-size:7pt;max-width:45%;gap:5pt}
.not-payroll{font-size:8pt;margin-top:6pt}
.stub-summary{gap:10pt;margin:10pt 0}
.stub-summary>div{padding:9pt 11pt}
.stub-summary span{font-size:8pt}
.stub-summary strong{font-size:22pt;margin:4pt 0;line-height:1.25}
.stub-summary strong.long-amount{font-size:17pt}
.stub-summary small{font-size:7pt}
.stub-breakdown{grid-template-columns:minmax(0,1fr) 95pt;gap:12pt;margin:11pt 0}
.stub-breakdown h2{font-size:9pt;margin-bottom:5pt}
.stub-table{font-size:7.5pt}.stub-table th{font-size:7pt}
.stub-table th,.stub-table td{padding:4.5pt 3pt}
.stub-chart{display:block}.stub-chart .donut-wrap{width:95pt;height:95pt;margin:0 auto 7pt}
.stub-chart .donut-center strong{font-size:22pt}.stub-chart .donut-center>span{font-size:6.5pt}
.stub-chart>p{font-size:6.5pt}
.stub-basis{font-size:6.7pt;line-height:1.6;padding:7pt 9pt}
.stub-basis p+p{margin-top:3pt}
.cut-line{margin:14pt -4pt 8pt;padding-top:4pt;font-size:7pt}
.cut-line svg{width:14pt;height:14pt}
.souvenir-check{padding:10pt 12pt;border-radius:5pt;break-inside:avoid}
.check-top{font-size:7pt}.specimen{font-size:10pt;margin:7pt 0;padding:4pt 6pt}
.check-value>span{font-size:7.5pt}.check-value>strong{font-size:24pt;margin:3pt 0 6pt}
.check-value>strong.long-amount{font-size:20pt}
.check-bottom{font-size:7.5pt;padding-top:6pt}
.check-disclaimer{font-size:7.5pt;margin-top:5pt}
.stub-footer{font-size:6pt;margin-top:7pt}
}

