/* Account statements use the shared invoice document and its ten theme styles. */
.invoice-paper .statement-opening-section{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:15px 0 24px;padding:13px 16px;background:var(--invoice-muted,#f3f5f8);border-radius:6px;border:1px solid var(--invoice-line,#e5e8ef)}
.statement-opening-label{display:flex;flex-direction:column;gap:2px;font-weight:700}
.statement-opening-label small{font-size:.73rem;color:#677587;font-weight:400}
.statement-money-control{display:flex;align-items:center;max-width:190px;min-width:120px;border:1px solid var(--invoice-line,#dbe2eb);border-radius:5px;background:white;padding:5px 10px;gap:8px;flex-shrink:0}
.statement-money-control input{width:100%;min-width:0;background:transparent;color:inherit;border:0;outline:0;text-align:right}
.statement-ledger-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.statement-ledger-heading h3{font-size:1rem;font-weight:700;margin:0;letter-spacing:.01em}
.statement-ledger-heading small{font-size:.75rem;color:#687487}
.statement-table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain}
.invoice-paper .statement-ledger-table{width:100%;min-width:755px;table-layout:fixed;font-size:.79rem}
.invoice-paper .statement-ledger-table th,.invoice-paper .statement-ledger-table td{vertical-align:middle;padding:10px 4px}
.invoice-paper .statement-ledger-table input,.invoice-paper .statement-ledger-table textarea,.invoice-paper .statement-ledger-table select{width:100%;max-width:100%;min-width:0;font-size:.78rem;color:inherit;font-family:inherit;background:transparent;border:1px solid transparent;border-radius:3px;padding:6px 3px;line-height:1.4}
.invoice-paper .statement-ledger-table textarea{display:block;resize:vertical;min-height:35px}
.invoice-paper .statement-ledger-table select{background:var(--invoice-paper,#fff)}
.invoice-paper .statement-ledger-table input:focus,.invoice-paper .statement-ledger-table select:focus,.invoice-paper .statement-ledger-table textarea:focus{outline:1px solid #8ea0c6;border-color:#8ea0c6;background:white}
.statement-ledger-table .statement-running{font-variant-numeric:tabular-nums;font-size:.78rem;text-align:right;font-weight:600;white-space:nowrap}
.statement-ledger-table .statement-number{text-align:right}
.statement-ledger-table .invoice-remove-item{font-size:18px;width:24px;height:25px;display:inline-flex;align-items:center;justify-content:center}
.statement-line-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 22px}
.statement-line-actions .invoice-add-item{margin:0}
.statement-sort-button{border:1px solid var(--invoice-line,#ccd4e0);border-radius:5px;background:transparent;color:inherit;font-size:.77rem;padding:7px 11px;cursor:pointer}
.statement-sort-button:hover{background:rgba(120,130,140,.08)}
.statement-bottom-grid{align-items:start}
.statement-totals-area .invoice-total-row{gap:12px}
.statement-totals-area .invoice-total-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-paper .statement-date-field{position:relative;width:100%;min-width:0}
.invoice-paper .statement-date-field>input[data-field]{width:100%;min-width:0;padding-right:33px}
.statement-calendar-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%);width:30px;height:30px;padding:0;background:transparent;border:0;color:inherit;opacity:.8;cursor:pointer}
.statement-native-date{position:absolute!important;right:2px!important;top:100%!important;opacity:0!important;width:1px!important;height:1px!important;border:0!important;padding:0!important;pointer-events:none!important}
.statement-remove-logo{position:absolute;right:4px;top:4px;width:25px;height:25px;line-height:20px;border:1px solid #d5dbe2;border-radius:50%;color:#424c57;background:#fff;cursor:pointer;z-index:2}
.statement-remove-logo[hidden]{display:none!important}
.invoice-paper .statement-ledger-table td .statement-negative{color:#b1494b}
@media(max-width:767px){.invoice-paper .statement-opening-section{flex-wrap:wrap}.statement-line-actions{justify-content:flex-start}}
@media print{.statement-line-actions,.statement-actions-col,.statement-remove-logo,.statement-calendar-toggle{display:none!important}.statement-table-scroll{overflow:visible!important}}
.invoice-pdf-host .statement-actions-col,.invoice-pdf-host .statement-line-actions,.invoice-pdf-host .statement-remove-logo,.invoice-pdf-host .statement-calendar-toggle{display:none!important}
.invoice-pdf-host .statement-table-scroll{overflow:visible!important}
.invoice-pdf-host .statement-ledger-table{min-width:0!important}
.invoice-pdf-host .statement-pdf-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.invoice-pdf-host .statement-date-value{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;text-align:inherit}

/* Editable statement labels: discoverable, keyboard accessible and consistent across themes. */
.invoice-paper [contenteditable="true"][data-label-key]{cursor:text;min-width:1ch;border-radius:3px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .1s ease}
.invoice-paper [contenteditable="true"][data-label-key]:hover{outline-color:rgba(100,115,145,.55)}
.invoice-paper [contenteditable="true"][data-label-key]:focus{outline:2px solid #6083cc;background:rgba(118,146,212,.09)}
.statement-label-settings{margin:5px 0 14px;border:1px solid var(--invoice-line,#dce3ec);border-radius:7px}
.statement-label-settings>summary{font-size:.83rem;font-weight:700;cursor:pointer;padding:12px 11px;list-style-position:inside}
.statement-label-settings[open]>summary{border-bottom:1px solid var(--invoice-line,#dce3ec)}
.statement-label-tip{padding:9px 12px 0;margin:0;font-size:.75rem;line-height:1.5;color:#677587}
.statement-label-editor-list{padding:8px 11px 13px;max-height:380px;overflow-y:auto}
.statement-label-editor-list section+section{margin-top:12px;padding-top:9px;border-top:1px solid var(--invoice-line,#e5e8ed)}
.statement-label-editor-list h6{font-size:.78rem;font-weight:700;margin:3px 0 8px}
.statement-label-editor-row{display:block;margin:0 0 8px;font-weight:400}
.statement-label-editor-row>span{display:block;font-size:.72rem;margin-bottom:3px;color:inherit}
.statement-label-editor-row input{display:block;width:100%;min-width:0;border:1px solid var(--invoice-line,#cdd7e3);border-radius:5px;background:var(--invoice-paper,#fff);color:inherit;font:inherit;font-size:.77rem;padding:6px 8px;line-height:1.4}
.statement-label-editor-row input:focus{outline:2px solid #6083cc;outline-offset:1px}
.invoice-paper .statement-ledger-heading h3[contenteditable="true"],.invoice-paper .statement-opening-label small[contenteditable="true"]{white-space:normal;overflow-wrap:anywhere}

/* Six financial columns and one editor action column; Reference and Description have more room. */
.invoice-paper .statement-ledger-table{min-width:720px}
.invoice-paper .statement-ledger-table th:nth-child(1){width:13%}
.invoice-paper .statement-ledger-table th:nth-child(2){width:18%}
.invoice-paper .statement-ledger-table th:nth-child(3){width:29%}
.invoice-paper .statement-ledger-table th:nth-child(4),
.invoice-paper .statement-ledger-table th:nth-child(5),
.invoice-paper .statement-ledger-table th:nth-child(6){width:12%}
.invoice-paper .statement-ledger-table th:nth-child(7){width:4%}
.invoice-pdf-host .statement-ledger-table{min-width:0!important}
