.epc-workspace{--epc-blue:#075f9b;--epc-ink:#183544;--epc-muted:#5c7583;min-width:0;max-width:100%;color:var(--epc-ink)}
.epc-workspace *{box-sizing:border-box}.epc-workspace button,.epc-workspace input,.epc-workspace select,.epc-workspace textarea{font:inherit}.epc-workspace button{border:1px solid #bdd2df;border-radius:8px;background:#fff;color:#165a83;min-height:40px;padding:9px 14px;font-size:.84rem;font-weight:600;cursor:pointer;line-height:1.3}.epc-workspace button:disabled{opacity:.5;cursor:not-allowed}.epc-workspace .epc-primary{background:var(--epc-blue);color:#fff;border-color:var(--epc-blue)}.epc-workspace .epc-danger{color:#963c32;border-color:#e4c8c4}.epc-workspace :is(button,input,select,textarea):focus-visible{outline:3px solid #e6ab2b;outline-offset:2px}
.epc-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.epc-heading h2{font-size:1.55rem;line-height:1.3;margin:5px 0 8px}.epc-heading p{font-size:.9rem;color:var(--epc-muted);line-height:1.5;margin:0}.epc-eyebrow{color:var(--epc-blue);letter-spacing:.1em;font-size:.7rem;font-weight:700}.epc-isolation{font-size:.79rem;color:#5b7482;background:#eef5f9;border-left:3px solid #e8a51b;padding:11px 13px;margin:18px 0;border-radius:0 8px 8px 0;line-height:1.5}
.epc-section-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:18px 0 14px}.epc-section-head h3{font-size:1.16rem;margin:0;line-height:1.4}.epc-basis,.epc-note{font-size:.78rem;line-height:1.55;color:var(--epc-muted);margin:12px 0}.epc-empty{padding:32px 18px;border:1px dashed #c8d8e2;border-radius:12px;background:#fafcfd;color:var(--epc-muted);line-height:1.5;font-size:.9rem}.epc-error{background:#fff2ef;border:1px solid #e8bcb4;color:#923b31;padding:12px 15px;border-radius:9px;line-height:1.5;font-size:.85rem;margin:12px 0}.epc-error p{margin:3px 0}.epc-notice{background:#eaf6ef;border:1px solid #b7d8c5;color:#2d6850;border-radius:9px;padding:12px 15px;font-size:.85rem;line-height:1.5}.epc-enable{max-width:720px;background:#fff;border:1px solid #d3e1e9;border-radius:14px;padding:23px}.epc-enable h3{margin:0 0 10px}.epc-enable p{color:var(--epc-muted);line-height:1.55}.epc-enable>strong{display:block;margin:18px 0;overflow-wrap:anywhere}.epc-check{display:flex;gap:9px;align-items:flex-start;font-size:.84rem;font-weight:500;line-height:1.5;padding:8px 0}.epc-check input{flex:0 0 18px;width:18px;height:18px;margin:2px 0;accent-color:var(--epc-blue)}
.epc-overview-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 20px}.epc-overview-counts>div{background:#fff;border:1px solid #d3e1e9;border-radius:11px;padding:17px;display:flex;justify-content:space-between;gap:10px;align-items:center}.epc-overview-counts span{font-size:.8rem;color:var(--epc-muted)}.epc-overview-counts strong{font-size:1.4rem;font-variant-numeric:tabular-nums}.epc-currency-cards{display:grid;gap:16px}.epc-currency-card{border:1px solid #cedee8;border-radius:14px;background:#fff;padding:18px}.epc-currency-card h3{font-size:.95rem;color:var(--epc-blue);margin:0 0 16px}.epc-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 16px}.epc-kpi{min-width:0}.epc-kpi>span{display:block;font-size:.73rem;color:var(--epc-muted);line-height:1.4;margin-bottom:6px}.epc-kpi strong{font-size:1.08rem;font-variant-numeric:tabular-nums;line-height:1.35}.epc-money{white-space:nowrap;font-variant-numeric:tabular-nums}
.epc-filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;border:1px solid #d8e4eb;background:#fff;border-radius:12px;padding:14px;margin:16px 0}.epc-filter-bar .epc-field{flex:1 1 145px;min-width:0}.epc-filter-bar .epc-check{flex:0 1 auto}.epc-field{display:flex;flex-direction:column;gap:6px;min-width:0}.epc-field>span{font-size:.78rem;font-weight:600;line-height:1.4;color:#496777}.epc-field b{color:#b75940}.epc-field input,.epc-field select,.epc-field textarea{width:100%;min-width:0;max-width:100%;border:1px solid #bcd0de;border-radius:7px;padding:10px 11px;color:var(--epc-ink);background:#fff;font-size:.9rem;line-height:1.3;min-height:42px}.epc-field input[readonly]{background:#edf3f7;color:#57717f}.epc-field textarea{resize:vertical}.epc-editor{border:1px solid #a8c8dc;background:#f8fbfd;border-radius:13px;padding:18px;margin:16px 0 22px}.epc-editor .epc-section-head{margin:0 0 18px}.epc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.epc-span{grid-column:1/-1}.epc-form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;margin-top:16px;border-top:1px solid #d3e1e9}
.epc-table-wrap{width:100%;overflow-x:auto;border:1px solid #d4e1e9;background:#fff;border-radius:11px}.epc-table{width:100%;border-collapse:collapse;table-layout:auto}.epc-table th,.epc-table td{text-transform:none;letter-spacing:normal;padding:12px 10px;font-size:.78rem;line-height:1.4;vertical-align:middle;border:0;border-bottom:1px solid #e1eaf0;text-align:left;overflow-wrap:anywhere}.epc-table th{background:#edf5fa;color:#496879;font-size:.72rem;font-weight:650;white-space:normal}.epc-table td strong{font-weight:600}.epc-table td small{display:block;color:var(--epc-muted);font-size:.69rem;margin-top:3px}.epc-table tbody tr:last-child td{border-bottom:0}.epc-table tbody tr:nth-child(even){background:#fbfdfe}.epc-badge{display:inline-block;padding:4px 7px;border-radius:6px;font-size:.7rem;line-height:1.35;background:#eef2f5;color:#58717d}.epc-badge.is-paid,.epc-badge.is-income,.epc-badge.is-completed{background:#e7f4ec;color:#2c6e4d}.epc-badge.is-unpaid,.epc-badge.is-expense{background:#fff1e8;color:#985b30}.epc-badge.is-partially_paid,.epc-badge.is-active{background:#e7f1fa;color:#226b9e}.epc-badge.is-voided{background:#f5e9e7;color:#994e44}.epc-row-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:90px}.epc-row-actions button{font-size:.7rem;min-height:32px;padding:6px 8px}.epc-export{display:flex;justify-content:flex-end;gap:8px;align-items:center;flex-wrap:wrap;padding:18px 0}.epc-export p{margin:0 auto 0 0;font-size:.76rem;color:var(--epc-muted);line-height:1.5;max-width:450px}.epc-footer{margin-top:18px;font-size:.7rem;color:#718995;overflow-wrap:anywhere}
@media(max-width:1050px){.epc-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.epc-overview-counts{gap:8px}.epc-overview-counts>div{padding:12px;flex-direction:column;align-items:flex-start;gap:5px}}
@media(max-width:700px){.epc-heading{flex-direction:column;gap:13px}.epc-heading h2{font-size:1.28rem}.epc-heading>button{align-self:flex-end}.epc-section-head{align-items:flex-start;flex-wrap:wrap}.epc-section-head h3{font-size:1.05rem}.epc-form-grid{grid-template-columns:minmax(0,1fr)}.epc-editor{padding:13px}.epc-filter-bar{padding:12px}.epc-filter-bar .epc-field{flex-basis:100%}.epc-currency-card{padding:14px}.epc-kpi-grid{gap:17px 9px}.epc-kpi strong{font-size:.94rem}.epc-table-wrap{overflow-x:visible}.epc-table,.epc-table tbody{display:block;width:100%}.epc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.epc-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:9px 12px;gap:0 12px;border-bottom:1px solid #d8e5ed}.epc-table td{display:block;padding:8px 0;border:0;min-width:0;font-size:.8rem}.epc-table td:first-child{grid-column:1/-1;font-size:.86rem}.epc-table td:last-child{grid-column:1/-1}.epc-table td:before{content:attr(data-label);display:block;color:#698491;font-size:.66rem;line-height:1.35;margin-bottom:4px}.epc-row-actions{gap:8px}.epc-row-actions button{min-height:37px;font-size:.76rem}.epc-export>p{width:100%;max-width:none}.epc-export>button{flex:1}.epc-enable{padding:16px}.epc-check{font-size:.8rem}.epc-workspace .epc-money{font-size:inherit}.epc-overview-counts span{font-size:.71rem}}
.epc-workspace .epc-money-long{white-space:normal;overflow-wrap:anywhere;max-width:100%}.epc-kpi:has(.epc-money-long){grid-column:span 2}
@media(max-width:700px){.epc-table td:has(.epc-money-long){grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.epc-workspace *{scroll-behavior:auto!important;transition:none!important}}
.epc-warning{background:#fff7e7;border:1px solid #e9cc90;border-left:3px solid #c78913;border-radius:8px;padding:10px 13px;color:#795213;font-size:.79rem;line-height:1.5;margin:12px 0}.epc-overdue-label{color:#aa3e32!important}.epc-badge.is-overdue{color:#a3362a;background:#fdebe7}.epc-badge.is-dueToday{color:#87590c;background:#fff3d8}.epc-status-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.epc-status-strip button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;text-align:left;background:#fff;border-color:#d3e0e9}.epc-status-strip button span{font-size:.76rem;line-height:1.3}.epc-status-strip button strong{font-size:1rem;font-variant-numeric:tabular-nums}.epc-status-strip button[aria-pressed=true]{background:#e7f2fa;border-color:#1778b6;color:#075f9b;box-shadow:inset 0 0 0 1px #1778b6}.epc-status-strip button.is-warning{color:#9b402b;border-color:#e5b4a8}.epc-invoice-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.epc-invoice-filters .epc-field input,.epc-invoice-filters .epc-field select{font-size:.81rem;min-height:38px;padding:8px}.epc-invoices-table{table-layout:fixed}.epc-invoices-table :is(th,td){font-size:.73rem;padding:10px 7px}.epc-invoices-table th:nth-child(1){width:11%}.epc-invoices-table th:nth-child(2){width:17%}.epc-invoices-table th:nth-child(3){width:14%}.epc-invoices-table th:nth-child(4){width:14%}.epc-invoices-table th:nth-child(5){width:12%}.epc-invoices-table th:nth-child(6){width:14%}.epc-invoices-table th:nth-child(7){width:9%}.epc-invoices-table th:nth-child(8){width:9%}.epc-invoices-table td :is(.epc-money,.epc-badge){max-width:100%;white-space:normal;overflow-wrap:anywhere}.epc-invoices-table .epc-row-actions{min-width:0;gap:4px}.epc-invoices-table .epc-row-actions button{font-size:.65rem;min-height:29px;padding:5px 6px}.epc-invoices-table .epc-badge{margin:2px 2px 2px 0}.epc-kpi-priority{background:#eff6fb;border:1px solid #cddfea;border-radius:9px;padding:12px}.epc-kpi-priority>span{font-weight:650}.epc-kpi-priority>strong{font-size:1.25rem}.epc-kpi-priority small{display:block;line-height:1.4;font-size:.7rem;margin-top:6px}.epc-project-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}.epc-project-status>div{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid #d4e2eb;border-radius:9px;padding:11px 13px;background:#fff}.epc-project-status strong{font-variant-numeric:tabular-nums}.epc-bank-section{margin-top:25px}.epc-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.epc-bank-card{min-width:0;background:linear-gradient(135deg,#f9fcfe,#eef5f9);border:1px solid #cadae5;border-radius:12px;padding:18px}.epc-bank-card h4{display:flex;justify-content:space-between;gap:10px;margin:0;font-size:.95rem;overflow-wrap:anywhere}.epc-bank-card h4>span{font-size:.72rem;color:#617988;white-space:nowrap}.epc-bank-card>p{font-size:.77rem;color:var(--epc-muted);margin:6px 0 16px}.epc-bank-card>span{display:block;font-size:.74rem;color:var(--epc-muted)}.epc-bank-card>strong{display:block;font-size:1.4rem;margin:6px 0 12px}.epc-bank-card>small{font-size:.7rem;color:var(--epc-muted);line-height:1.5;display:block}.epc-bank-card .epc-money{white-space:normal;overflow-wrap:anywhere}.epc-fx-action{display:flex;flex-direction:column;gap:7px;align-self:end}.epc-fx-action small{font-size:.72rem;color:#617988;line-height:1.4}.epc-field output{padding:10px 11px;background:#edf5fa;border:1px solid #bed5e3;border-radius:7px;min-height:42px;font-weight:650;overflow-wrap:anywhere}.epc-field output .epc-money{white-space:normal}.epc-money[data-epc-counter]{display:inline-block;min-width:0}
@media(max-width:1050px){.epc-invoice-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.epc-kpi-priority>strong{font-size:1.07rem}.epc-invoices-table :is(th,td){font-size:.7rem}}
@media(max-width:700px){.epc-invoice-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:10px}.epc-invoice-filters .epc-field:first-child{grid-column:1/-1}.epc-invoice-filters .epc-field>span{font-size:.72rem}.epc-status-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.epc-status-strip button:first-child{grid-column:1/-1}.epc-status-strip button{padding:9px 11px}.epc-invoices-table td{font-size:.78rem;padding:8px 0}.epc-invoices-table td .epc-money{white-space:normal}.epc-invoices-table .epc-row-actions button{font-size:.75rem;padding:8px 11px;min-height:37px}.epc-project-status{gap:7px}.epc-project-status>div{flex-direction:column;padding:9px 6px}.epc-bank-grid{grid-template-columns:minmax(0,1fr)}.epc-bank-card{padding:15px}.epc-kpi-priority{padding:10px;grid-column:1/-1}.epc-kpi-priority>strong{font-size:1.18rem}.epc-bank-card>strong{font-size:1.27rem}}
.epc-inline-party{border:1px solid #cbdde9;border-radius:8px;padding:10px;background:#fff}.epc-inline-party>small{display:inline-block;font-size:.73rem;color:#426b84;margin-left:10px}.epc-inline-party-fields{display:grid;grid-template-columns:2fr 1fr;gap:12px}.epc-inline-party-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.epc-inline-party .epc-note{margin:8px 0 0}.epc-advanced-filters{grid-column:1/-1;min-width:0;border-top:1px solid #e2eaf0;padding-top:7px}.epc-advanced-filters>summary{cursor:pointer;font-size:.75rem;color:#4a7087;width:max-content;max-width:100%;padding:4px 0}.epc-advanced-filters>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;margin-top:9px}.epc-status-strip{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.epc-status-strip button{flex:0 1 auto;justify-content:flex-start;padding:7px 11px;min-height:34px;border-radius:7px;gap:8px}.epc-status-strip button span{font-size:.74rem}.epc-status-strip button strong{font-size:.78rem;min-width:19px;text-align:center;background:#eff4f7;border-radius:5px;padding:1px 4px}.epc-invoice-filters{margin:10px 0;padding:10px;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:10px}.epc-invoices-table th:nth-child(1){width:10%}.epc-invoices-table th:nth-child(2){width:19%}.epc-invoices-table th:nth-child(3){width:13%}.epc-invoices-table th:nth-child(4),.epc-invoices-table th:nth-child(5),.epc-invoices-table th:nth-child(6),.epc-invoices-table th:nth-child(7){width:8%}.epc-invoices-table th:nth-child(8){width:12%}.epc-invoices-table th:nth-child(9){width:14%}.epc-invoices-table :is(th,td){padding:9px 6px;font-size:.72rem}.epc-invoices-table td:nth-child(n+4):nth-child(-n+7){text-align:right;font-variant-numeric:tabular-nums}.epc-invoices-table .epc-row-actions{flex-wrap:nowrap;gap:4px}.epc-invoices-table .epc-row-actions button{min-width:29px;min-height:31px;font-size:.92rem;padding:3px 6px}.epc-invoices-table .epc-quick-pay{background:#e7f5ec;color:#267042;border-color:#a9cfb8}.epc-invoices-table .epc-badge.is-expense_record{background:#f3eff9;color:#735090;display:block;width:max-content;max-width:100%;font-size:.63rem}.epc-overview-counts{grid-template-columns:repeat(4,minmax(0,1fr))}.epc-page-invoices>.epc-isolation,.epc-page-invoices>.epc-heading>div{display:none}.epc-page-invoices>.epc-heading{justify-content:flex-end}.epc-page-invoices .epc-section-head{margin:6px 0 10px}.epc-page-invoices .epc-basis{font-size:.71rem;margin:8px 0;line-height:1.45}@media(max-width:1050px){.epc-invoice-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.epc-invoices-table .epc-row-actions{flex-wrap:wrap}.epc-invoices-table :is(th,td){font-size:.69rem}}@media(max-width:700px){.epc-invoice-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.epc-invoice-filters .epc-field:first-child{grid-column:1/-1}.epc-invoice-filters>.epc-field:last-of-type{grid-column:1/-1}.epc-advanced-filters>div{grid-template-columns:repeat(2,minmax(0,1fr))}.epc-inline-party-fields{grid-template-columns:minmax(0,1fr)}.epc-inline-party>small{display:block;margin:8px 0 0}.epc-status-strip button:first-child{grid-column:auto}.epc-status-strip button{flex:1 0 auto}.epc-invoices-table :is(th,td){font-size:.78rem}.epc-invoices-table td:nth-child(n+4):nth-child(-n+7){text-align:left}.epc-invoices-table .epc-row-actions button{min-width:42px;min-height:38px;font-size:1rem}.epc-overview-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.epc-page-invoices>.epc-heading>button{min-height:32px;padding:6px 11px;font-size:.76rem}}
.epc-page-invoices>.epc-heading,.epc-page-invoices>.epc-isolation{display:none}
.epc-invoices-table th:nth-child(1){width:9%}.epc-invoices-table th:nth-child(2){width:16%}.epc-invoices-table th:nth-child(3){width:11%}.epc-invoices-table th:nth-child(4),.epc-invoices-table th:nth-child(5),.epc-invoices-table th:nth-child(6),.epc-invoices-table th:nth-child(7){width:11%}.epc-invoices-table th:nth-child(8){width:9%}.epc-invoices-table th:nth-child(9){width:11%}
.epc-invoices-table td:nth-child(n+4):nth-child(-n+7){container-type:inline-size}.epc-invoices-table td .epc-invoice-money{display:flex;flex-direction:column;align-items:flex-end;gap:1px;max-width:100%;white-space:normal;overflow-wrap:normal}.epc-invoices-table .epc-money-number{display:block;white-space:nowrap;overflow-wrap:normal;word-break:normal;max-width:100%;font-variant-numeric:tabular-nums;font-size:.72rem}.epc-invoices-table .epc-money-currency{display:block;white-space:nowrap;font-size:.59rem;line-height:1.2;color:#627d8b}.epc-invoices-table td>small .epc-invoice-money{margin-top:2px}
@supports(font-size:1cqw){.epc-invoices-table .epc-money-number{font-size:min(.72rem,calc(100cqw / var(--epc-money-chars) * 1.6))}}
@media(max-width:700px){.epc-invoices-table td .epc-invoice-money{align-items:flex-start}.epc-invoices-table .epc-money-number{font-size:.78rem}.epc-invoices-table .epc-money-currency{font-size:.65rem}@supports(font-size:1cqw){.epc-invoices-table .epc-money-number{font-size:min(.78rem,calc(100cqw / var(--epc-money-chars) * 1.6))}}}

/* Familiar invoice entry, with the same two sections as the other companies. */
.epc-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.epc-dashboard-actions{justify-content:flex-end;margin:0 0 12px}
.epc-modal-backdrop{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;background:#0b253d85;backdrop-filter:blur(3px);overflow:hidden}
.epc-editor.epc-modal{display:flex;flex-direction:column;width:min(1040px,100%);max-height:calc(100dvh - 40px);min-width:0;margin:0;padding:0;background:#fff;border:1px solid #d2e1e9;border-radius:16px;box-shadow:0 20px 70px #0b253d40;overflow:hidden}
.epc-modal>.epc-section-head{flex:0 0 auto;margin:0;padding:15px 20px;border-bottom:1px solid #dbe5eb;background:#fff}
.epc-modal>.epc-section-head h3{font-size:18px;line-height:1.35}
.epc-modal>.epc-section-head button{min-width:34px;min-height:34px;padding:3px;border-radius:50%;font-size:22px;background:#f0f5f7;color:#476171;border:0}
.epc-modal form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.epc-modal form>.epc-form-grid,.epc-entry-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px;scrollbar-gutter:stable}
.epc-modal form>.epc-error{flex:0 0 auto;margin:8px 20px;max-height:20vh;overflow:auto}
.epc-modal .epc-form-actions{flex:0 0 auto;margin:0;padding:13px 20px;border-top:1px solid #dbe5eb;background:#f8fafb}
.epc-modal .epc-form-actions button{min-height:39px;padding:8px 18px;font-size:13px}
.epc-modal .epc-field>span{font-size:12px;line-height:1.35;color:#405b6b}
.epc-modal .epc-field input,.epc-modal .epc-field select,.epc-modal .epc-field textarea{min-height:38px;padding:8px 10px;font-size:13px;line-height:1.35;border-color:#cfdee6;border-radius:8px}
.epc-modal .epc-field textarea{min-height:70px}
.epc-entry-body{display:grid;gap:12px}
.epc-entry-period{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center;background:#eaf4fb;border:1px solid #b8d3e5;border-left:4px solid #2677aa;border-radius:11px;padding:12px 14px}
.epc-entry-period .epc-field>span{color:#155783;font-weight:700}
.epc-entry-period input{background:#fff;border-color:#a9c7dc;color:#153f5b;font-weight:650}
.epc-entry-period>div{min-width:0;padding-left:18px;border-left:1px solid #bed5e4}
.epc-entry-period>div>span{display:block;font-size:11px;line-height:1.35;color:#5d7586;margin-bottom:4px}
.epc-entry-period>div>strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere;color:#193f59}
.epc-entry-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.epc-entry-section{min-width:0;border:1px solid #d8e3e9;border-radius:11px;background:#fff}
.epc-entry-section>h4{padding:10px 12px;margin:0;border-bottom:1px solid #e5edf1;border-radius:10px 10px 0 0;background:#f6f9fb;font-size:13px;line-height:1.35;color:#193f59;font-weight:750}
.epc-entry-section>.epc-form-grid{padding:12px;gap:11px 12px;align-items:start}
.epc-party-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end}
.epc-party-entry>button{font-size:11px;min-height:38px;padding:8px 10px;background:#edf6fc;border-color:#bdd6e7;white-space:nowrap}
.epc-pending-party{font-size:11px;line-height:1.4;color:#3c7361;overflow-wrap:anywhere}
.epc-invoice-entry .epc-inline-party{margin:0;background:#f5fafc;padding:10px}
.epc-invoice-entry .epc-inline-party-fields{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}
.epc-invoice-entry .epc-inline-party button{font-size:11px;min-height:34px;padding:6px 9px}
.epc-invoice-entry .epc-inline-party .epc-note{font-size:10.5px;line-height:1.4}
.epc-invoice-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border:1px solid #d9e7ed;border-radius:10px;background:#f4f9fc;padding:8px}
.epc-invoice-summary>div{min-width:0;padding:8px;border:1px solid #dfe9ee;border-radius:8px;background:#fff}
.epc-invoice-summary>div:last-child{background:#edf6fc;border-color:#a9cde2}
.epc-invoice-summary>div>span{display:block;font-size:10.5px;line-height:1.35;color:#56717f;margin-bottom:5px}
.epc-invoice-summary strong{display:block;min-width:0;container-type:inline-size;font-weight:700}
.epc-invoice-summary .epc-invoice-money{display:flex;flex-direction:column;min-width:0;gap:2px;white-space:normal}
.epc-invoice-summary .epc-money-number{font-size:14px;line-height:1.35;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
.epc-invoice-summary .epc-money-currency{font-size:10px;line-height:1.2;color:#5d7989}
@supports(font-size:1cqw){.epc-invoice-summary .epc-money-number{font-size:min(14px,calc(100cqw / var(--epc-money-chars) * 1.6))}}
.epc-payment-tip{font-size:11px;margin:0;line-height:1.45}
.epc-entry-extra{min-width:0;margin:0 12px 12px;border-top:1px solid #e2eaf0;padding-top:8px}
.epc-entry-extra>summary{cursor:pointer;width:max-content;max-width:100%;font-size:11.5px;line-height:1.4;color:#3f6c88;padding:4px 0}
.epc-entry-extra>.epc-form-grid{padding:10px 0 0;gap:11px 12px}
.epc-file-control{position:relative;display:flex;align-items:center;gap:9px;min-height:42px;padding:6px;border:1px solid #cfdee6;border-radius:8px;background:#fff;min-width:0;cursor:pointer}
.epc-file-control>span:first-child{flex:0 0 auto;border-radius:5px;background:#eaf4fb;padding:7px 9px;color:#155783;font-size:11px;font-weight:700;line-height:1.35}
.epc-file-control>span:nth-child(2){min-width:0;font-size:11px;line-height:1.4;overflow-wrap:anywhere;color:#5d7586}
.epc-file-control input[type=file]{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;opacity:0;cursor:pointer}
.epc-file-control:focus-within{outline:2px solid #2677aa;outline-offset:2px}
.epc-modal .epc-document-link{align-self:flex-start;min-height:28px;padding:4px 0;border:0;font-size:11px;background:none;text-decoration:underline}

/* A clear opening screen: company details and pending invoices. */
.epc-company-overview{border:1px solid #d4e1e9;border-radius:13px;background:#fff;padding:18px 20px}
.epc-company-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.epc-company-heading>div{min-width:0}
.epc-company-heading span{font-size:11px;color:#5d798a;line-height:1.35}
.epc-company-heading h3{margin:5px 0 0;font-size:19px;line-height:1.4;overflow-wrap:anywhere;color:#193e54}
.epc-company-heading button{min-height:32px;padding:6px 10px;font-size:11px}
.epc-company-overview dl{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr) minmax(0,1fr);gap:18px;margin:16px 0 0;padding-top:14px;border-top:1px solid #e2eaf0}
.epc-company-overview dl>div{min-width:0}
.epc-company-overview dt{font-size:11px;line-height:1.35;color:#657d8a;margin:0 0 4px}
.epc-company-overview dd{font-size:12px;line-height:1.5;color:#264b60;margin:0;overflow-wrap:anywhere}
.epc-open-balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:14px;margin:16px 0}
.epc-open-currency{padding:14px;border:1px solid #d4e1e9;border-radius:12px;background:#fff;min-width:0}
.epc-open-currency>h4{margin:0 0 10px;font-size:12px;line-height:1.3;color:#4a7088}
.epc-open-currency>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.epc-open-balance{min-width:0}
.epc-open-balance>span{display:block;font-size:11px;line-height:1.4;color:#5a7483;margin-bottom:6px}
.epc-open-balance>strong{display:block;font-size:20px;line-height:1.35;color:#173f58;font-variant-numeric:tabular-nums}
.epc-open-balance>strong{container-type:inline-size}
.epc-open-balance>strong .epc-invoice-money{display:flex;flex-direction:column;gap:2px;white-space:normal;overflow-wrap:normal}
.epc-open-balance>strong .epc-money-number{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:20px;line-height:1.3}
.epc-open-balance>strong .epc-money-currency{font-size:10px;color:#6b8190;line-height:1.2}
@supports(font-size:1cqw){.epc-open-balance>strong .epc-money-number{font-size:min(20px,calc(100cqw / var(--epc-money-chars) * 1.6))}}
.epc-open-balance.is-payable>strong{color:#936330}
.epc-open-balance.is-receivable>strong{color:#2d7353}
.epc-open-balance>small{display:block;font-size:10px;line-height:1.45;margin-top:7px;color:#637c88}
.epc-latest-invoices{margin-top:18px;min-width:0}
.epc-latest-invoices>.epc-section-head{align-items:center;gap:12px;margin:0 0 8px}
.epc-latest-invoices .epc-section-head h3{font-size:16px;line-height:1.4}
.epc-latest-invoices .epc-section-head p{font-size:11px;line-height:1.4;margin:5px 0 0;color:#637c88}
.epc-latest-invoices .epc-section-head>button{font-size:11px;min-height:34px;padding:7px 10px}
.epc-latest-invoices>.epc-note{font-size:11px;margin:0 0 10px}
.epc-open-invoices-table{table-layout:fixed}
.epc-open-invoices-table th:nth-child(1){width:13%}.epc-open-invoices-table th:nth-child(2){width:17%}.epc-open-invoices-table th:nth-child(3){width:18%}.epc-open-invoices-table th:nth-child(4),.epc-open-invoices-table th:nth-child(5){width:14%}.epc-open-invoices-table th:nth-child(6){width:13%}.epc-open-invoices-table th:nth-child(7){width:11%}
.epc-open-invoices-table :is(th,td){font-size:11px;padding:10px 8px}
.epc-open-invoices-table td:nth-child(4),.epc-open-invoices-table td:nth-child(5){container-type:inline-size;text-align:right}
.epc-open-invoices-table .epc-invoice-money{display:flex;flex-direction:column;gap:2px;align-items:flex-end;white-space:normal;overflow-wrap:normal}
.epc-open-invoices-table .epc-money-number{white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:12px;font-variant-numeric:tabular-nums}
.epc-open-invoices-table .epc-money-currency{font-size:9px;color:#637c88;white-space:nowrap}
@supports(font-size:1cqw){.epc-open-invoices-table .epc-money-number{font-size:min(12px,calc(100cqw / var(--epc-money-chars) * 1.6))}}
.epc-open-invoices-table .epc-row-actions{min-width:0;gap:4px;flex-wrap:wrap}
.epc-open-invoices-table .epc-row-actions button{min-width:28px;min-height:30px;padding:3px 5px;font-size:14px}
.epc-open-invoices-table .epc-quick-pay{background:#e7f5ec;color:#267042;border-color:#a9cfb8}
.epc-open-invoices-table .epc-badge{max-width:100%;font-size:10px;white-space:normal;line-height:1.35;margin:2px 2px 2px 0}
.epc-invoices-table .epc-row-actions{flex-wrap:wrap}
.epc-mobile-invoice-list,.epc-status-short{display:none}
@media(max-width:760px){
 .epc-page-invoices>.epc-section-head{display:flex;flex-wrap:nowrap;align-items:center;margin:0 0 10px;gap:8px}
 .epc-page-invoices>.epc-section-head h3{font-size:19px;min-width:0}
 .epc-page-invoices>.epc-section-head .epc-page-actions{width:auto;flex:0 0 auto}
 .epc-page-invoices>.epc-section-head .epc-page-actions button{min-height:40px;padding:7px 9px;font-size:12px}
 .epc-page-invoices .epc-invoice-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;margin:0 0 10px}
 .epc-page-invoices .epc-invoice-filters>.epc-field:first-child,.epc-page-invoices .epc-invoice-filters>.epc-field:last-of-type{grid-column:auto}
 .epc-page-invoices .epc-invoice-filters .epc-field>span{font-size:10px;line-height:1.3}
 .epc-page-invoices .epc-invoice-filters .epc-field{gap:4px}
 .epc-page-invoices .epc-invoice-filters .epc-field :is(input,select){min-height:42px;font-size:16px;padding:7px}
 .epc-page-invoices .epc-advanced-filters{padding-top:4px}
 .epc-page-invoices .epc-advanced-filters>summary{font-size:11px}
 .epc-page-invoices .epc-status-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}
 .epc-page-invoices .epc-status-strip button{min-height:44px;min-width:0;padding:6px;gap:4px;justify-content:center;flex-wrap:wrap}
 .epc-page-invoices .epc-status-strip button span{font-size:10px}
 .epc-page-invoices .epc-status-strip button strong{font-size:10px;min-width:17px}
 .epc-page-invoices .epc-status-full{display:none}
 .epc-page-invoices .epc-status-short{display:inline}
 .epc-page-invoices>.epc-warning{font-size:10px;line-height:1.45;padding:8px 10px;margin:8px 0}
 .epc-page-invoices>.epc-invoices-wrap{display:none}
 .epc-mobile-invoice-list{display:block;border:1px solid #D8E5ED;border-radius:12px;overflow:hidden;background:#fff}
 .epc-mobile-invoice-hint{margin:0;padding:8px 11px;font-size:10px;line-height:1.4;background:#EFF6FA;color:#607888;border-bottom:1px solid #DDE8EE}
 .epc-mobile-invoice-row{border-bottom:1px solid #E1E9EE}
 .epc-mobile-invoice-row>summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,45%) 10px;align-items:center;gap:8px;min-height:82px;padding:10px 11px;list-style:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,109,173,.08)}
 .epc-mobile-invoice-row>summary::-webkit-details-marker{display:none}
 .epc-mobile-invoice-row>summary::marker{display:none;content:""}
 .epc-mobile-invoice-row>summary:focus-visible{outline:2px solid #1688BA;outline-offset:-3px;border-radius:6px}
 .epc-mobile-invoice-party{display:flex;flex-direction:column;gap:4px;min-width:0}
 .epc-mobile-invoice-party>strong{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .epc-mobile-invoice-party>small{color:#657C88;font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
 .epc-mobile-invoice-direction{font-size:10px;font-weight:700;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .epc-mobile-invoice-direction.is-income{color:#237655}
 .epc-mobile-invoice-direction.is-expense{color:#B34B4B}
 .epc-mobile-invoice-payment{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:0}
 .epc-mobile-invoice-gross{display:block;min-width:0;max-width:100%;font-size:13px;color:#173A42;line-height:1.35}
 .epc-mobile-invoice-gross .epc-invoice-money{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:2px 4px;white-space:normal;max-width:100%;min-width:0}
 .epc-mobile-invoice-gross .epc-money-number{font-size:13px;white-space:normal;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:normal;text-align:right}
 .epc-mobile-invoice-gross .epc-money-currency{font-size:9px;white-space:nowrap}
 .epc-mobile-invoice-payment .epc-badge{max-width:100%;font-size:10px;line-height:1.4;padding:3px 6px;white-space:normal;text-align:right}
 .epc-mobile-invoice-chevron{font-size:15px;line-height:1;color:#60808F;transition:transform .15s}
 .epc-mobile-invoice-row[open]>summary{background:#F1F7FB}
 .epc-mobile-invoice-row[open] .epc-mobile-invoice-chevron{transform:rotate(180deg)}
 .epc-mobile-invoice-detail{padding:0 11px 12px;background:#F9FBFD;border-top:1px solid #E2ECF3}
 .epc-mobile-invoice-detail dl{margin:0}
 .epc-mobile-invoice-detail dl>div{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);gap:10px;align-items:start;padding:9px 0;border-bottom:1px solid #E6EDF2}
 .epc-mobile-invoice-detail dt{font-size:11px;line-height:1.5;color:#607888;font-weight:600;overflow-wrap:anywhere}
 .epc-mobile-invoice-detail dd{margin:0;min-width:0;font-size:12px;line-height:1.5;text-align:right;color:#203D48;overflow-wrap:anywhere}
 .epc-mobile-invoice-detail .epc-invoice-money{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:2px 4px;white-space:normal;max-width:100%;min-width:0}
 .epc-mobile-invoice-detail .epc-money-number{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:12px}
 .epc-mobile-invoice-detail .epc-money-currency{white-space:nowrap;font-size:10px}
 .epc-mobile-invoice-detail .epc-row-actions{justify-content:flex-end;gap:10px;padding-top:10px}
 .epc-mobile-invoice-detail .epc-row-actions button{width:44px;min-width:44px;height:44px;padding:4px;font-size:17px}
 .epc-mobile-invoice-amount-note{margin:0;padding:9px 11px;background:#F5F9FC;color:#607888;font-size:10px;line-height:1.5}
}
@media(max-width:820px){.epc-entry-columns{grid-template-columns:minmax(0,1fr)}.epc-company-overview dl{grid-template-columns:repeat(2,minmax(0,1fr))}.epc-company-overview dl>div:nth-child(2){grid-column:1/-1;order:3}}
@media(max-width:700px){
 .epc-modal-backdrop{padding:8px}
 .epc-editor.epc-modal{max-height:calc(100dvh - 16px);border-radius:12px}
 .epc-modal>.epc-section-head{padding:12px 14px}
 .epc-modal>.epc-section-head h3{font-size:16px}
 .epc-modal form>.epc-form-grid,.epc-entry-body{padding:12px}
 .epc-modal .epc-form-actions{padding:11px 12px;padding-bottom:max(11px,env(safe-area-inset-bottom));gap:8px}
 .epc-modal .epc-form-actions button{min-height:42px;font-size:13px;flex:1}
 .epc-entry-period{grid-template-columns:minmax(0,1fr);padding:11px 12px;gap:9px}
 .epc-entry-period>div{padding:9px 0 0;border-left:0;border-top:1px solid #bed5e4}
 .epc-entry-period>div>strong{font-size:12px}
 .epc-modal .epc-field input,.epc-modal .epc-field select,.epc-modal .epc-field textarea{min-height:44px;font-size:16px}
 .epc-entry-section>.epc-form-grid,.epc-entry-extra>.epc-form-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .epc-party-entry{grid-template-columns:minmax(0,1fr)}
 .epc-party-entry>button{justify-self:start;min-height:38px}
 .epc-invoice-entry .epc-inline-party-fields{grid-template-columns:minmax(0,1fr)}
 .epc-invoice-summary{gap:5px;padding:6px}
 .epc-invoice-summary>div{padding:7px 5px}
 .epc-invoice-summary>div>span{font-size:10px}
 .epc-entry-extra>summary{font-size:12px;padding:6px 0}
 .epc-file-control{min-height:44px;gap:7px}
 .epc-company-overview{padding:14px}
 .epc-company-heading h3{font-size:17px}
 .epc-company-overview dl{gap:12px;margin-top:13px;padding-top:12px}
 .epc-open-balances{gap:10px;margin:12px 0}
 .epc-open-currency{padding:13px}
 .epc-open-currency>div{gap:10px}
 .epc-open-balance>strong{font-size:17px}
 .epc-latest-invoices .epc-section-head{align-items:flex-start}
 .epc-latest-invoices .epc-section-head h3{font-size:15px}
 .epc-latest-invoices .epc-section-head>button{align-self:flex-end}
 .epc-open-invoices-table :is(th,td){font-size:12px;padding:7px 0}
 .epc-open-invoices-table td:nth-child(4),.epc-open-invoices-table td:nth-child(5){text-align:left}
 .epc-open-invoices-table .epc-invoice-money{align-items:flex-start}
 .epc-open-invoices-table .epc-row-actions button{min-height:39px;min-width:40px;padding:7px 10px;font-size:16px}
 .epc-page-actions{width:100%}
}
@media (max-width:360px){
 .epc-page-invoices .epc-section-head h3{font-size:16px!important;white-space:nowrap}
}
