:root{--ink:#162944;--muted:#728097;--blue:#215cbd;--line:#e1e7f0;--bg:#f4f7fb;--soft:#edf3fc}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button,a{transition:background .15s}button{border:1px solid var(--line);background:white;border-radius:8px;padding:11px 16px;color:var(--ink)}button:hover{background:var(--soft)}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px}p{color:var(--muted);line-height:1.7}small{color:var(--muted)}[hidden]{display:none!important}.primary{background:var(--blue);border-color:var(--blue);color:white;font-weight:600}.primary:hover{background:#184d9f}.full{width:100%;display:flex;justify-content:center;gap:20px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--blue);margin-bottom:18px}#login{min-height:100svh;display:flex;flex-direction:column;overflow:hidden}#login header{display:flex;justify-content:space-between;align-items:center;padding:30px 42px;color:var(--muted);font-size:12px}#login header img{width:166px}.login-main{flex:1;display:grid;place-items:center;position:relative;padding:35px 20px 60px}.login-main:before,.login-main:after{content:"";position:absolute;width:570px;height:570px;border:1px solid #e4ebf5;border-radius:50%;z-index:-1}.login-main:after{width:710px;height:710px}.login-card{background:white;border:1px solid var(--line);border-radius:20px;width:410px;max-width:100%;padding:40px;box-shadow:0 16px 55px -25px #1c3b6940}.login-card p{margin:12px 0 28px}.login-card label{display:block;margin:20px 0 9px;font-size:13px}.login-card input{width:100%;height:49px;border:1px solid #dbe2ec;border-radius:8px;background:#fbfcfe;padding:0 14px;font-size:16px}.password{position:relative}.password input{padding-right:48px}.password button{position:absolute;right:3px;top:4px;border:0;background:transparent;padding:10px;color:var(--muted)}.login-card .primary{margin-top:29px;min-height:49px}.login-note{border-top:1px solid var(--line);margin-top:24px;padding-top:22px;font-size:11px;color:var(--muted);text-align:center;line-height:1.6}footer{padding:20px 30px 26px;font-size:11px;color:var(--muted);text-align:center}#app{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100svh}aside{background:white;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column}.logo{width:166px;margin-bottom:32px}.workspace{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:14px;font-size:12px;line-height:1.65}.workspace strong{font-size:14px}.nav-caption{font-size:9px;letter-spacing:1.5px;color:#8b97a9;margin:32px 12px 12px}nav{display:grid;gap:6px}nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;font-size:12px;line-height:1.5;padding:12px}nav button.active{background:var(--soft);color:var(--blue);font-weight:600}.nav-icon{width:22px;color:#8293aa;font-size:19px}.active .nav-icon{color:var(--blue)}.side-bottom{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:60px}.side-bottom strong{font-size:12px}.side-bottom small{display:block;font-size:10px;margin-top:5px}.avatar{width:35px;height:35px;border-radius:50%;background:var(--soft);color:var(--blue);display:grid;place-items:center;font-size:11px}.logout{margin-top:18px;border:0;text-align:left;font-size:12px;color:var(--muted)}.main-shell{min-width:0}.topbar{height:74px;background:#ffffffb3;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:16px}.topbar b{font-weight:400;margin:0 13px;color:#bcc5d1}.badge{display:inline-block;border:1px solid #d9e5f6;background:#f0f5fd;color:var(--blue);border-radius:5px;padding:5px 8px;font-size:10px;white-space:nowrap}main{padding:36px;max-width:1500px;margin:auto}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.heading p{margin-top:10px;font-size:12px}.period{font-size:12px;background:white;border:1px solid var(--line);padding:12px;border-radius:8px;color:var(--ink)}.intro{padding:28px 30px;background:#eaf1fb;border:1px solid #dce6f6;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}.intro h2{font-size:22px;line-height:1.4}.intro p{font-size:12px;margin-top:8px;max-width:610px;color:#617695}.flow{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;color:#536a8b;margin-top:20px}.flow span{display:flex;align-items:center;gap:7px}.flow b{width:21px;height:21px;display:grid;place-items:center;background:white;border-radius:50%;font-size:10px;color:var(--blue)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.stat small{font-size:11px}.stat strong{display:block;font-size:29px;margin:12px 0 7px;font-weight:600}.stat span{font-size:10px;color:var(--muted)}.stat.warn strong{color:#b77920}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-title small{font-size:10px}.modules{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module{background:white;border:1px solid var(--line);border-radius:10px;padding:22px;text-align:left;min-height:205px;display:flex;flex-direction:column;align-items:start}.module:hover{border-color:#b4cbed;background:#fff;box-shadow:0 4px 15px #16294407}.module-icon{background:var(--soft);width:37px;height:37px;display:grid;place-items:center;color:var(--blue);border-radius:9px;font-size:20px;margin-bottom:17px}.module p{font-size:11px;margin:9px 0 19px}.module-bottom{margin-top:auto;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--blue)}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:24px;margin-bottom:22px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.tabs button{font-size:12px;min-width:90px}.tabs .active{border-color:var(--blue);background:var(--soft);color:var(--blue)}.two-col{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:22px}.dropzone{border:1px dashed #b7c9e2;border-radius:10px;background:#f8faff;padding:34px 20px;text-align:center;margin-top:20px}.dropzone .upload-icon{font-size:28px;color:var(--blue);margin-bottom:10px}.dropzone p{font-size:12px;margin:8px 0 18px}.dropzone small{display:block;margin-top:13px;font-size:10px}.checklist{list-style:none;padding:0;margin:20px 0 0}.checklist li{padding:12px 0;border-top:1px solid #edf0f5;font-size:12px;display:flex;gap:10px;line-height:1.5}.checklist li:before{content:'✓';color:var(--blue)}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}th{font-size:10px;letter-spacing:.3px;color:var(--muted);background:#f8fafc;font-weight:500}td,th{padding:16px 13px;border-bottom:1px solid #edf0f5}td small{display:block;margin-top:5px;font-size:10px}.status{font-size:10px;padding:5px 8px;border-radius:5px;background:#eaf5f0;color:#367859}.status.warn{background:#fff3dc;color:#a16c13}.status.gray{background:#eef1f6;color:#768297}.link-button{border:0;padding:6px;color:var(--blue);font-size:11px;background:transparent}.notice{font-size:11px;line-height:1.7;color:#73839a;background:#f5f8fc;border-radius:6px;padding:12px 15px;margin-top:18px}.app-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 36px 25px;text-align:left;font-size:10px}dialog{border:1px solid var(--line);border-radius:16px;width:540px;max-width:calc(100% - 30px);padding:28px;color:var(--ink)}dialog::backdrop{background:#16294466}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-head button{border:0;font-size:23px;padding:0 8px}.compare{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.compare div{border:1px solid var(--line);padding:16px;border-radius:8px}.compare small{display:block;margin-bottom:12px}.compare code{font-size:17px}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:22px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:15px 22px;border-radius:9px;max-width:90%;font-size:12px;z-index:10}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.plan-grid p{font-size:12px;margin-top:12px}.plan-grid .panel{margin:0}input[type=date]{padding:11px;border:1px solid var(--line);border-radius:7px;max-width:100%}.date-row{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.date-row label{font-size:11px;display:grid;gap:7px;color:var(--muted)}
@media(min-width:1500px){main{padding:45px 50px}.modules{gap:20px}.module{min-height:220px}}@media(max-width:1100px){#app{grid-template-columns:215px minmax(0,1fr)}main{padding:26px}.modules{grid-template-columns:1fr 1fr}.two-col{grid-template-columns:1fr}.intro{align-items:start}.stats{gap:10px}.stat{padding:15px}.topbar{padding:0 26px}.app-footer{padding-inline:26px}}@media(max-width:720px){#app{display:block}aside{padding:20px;border-right:0;border-bottom:1px solid var(--line)}.logo{width:135px;margin:0 0 18px}.workspace,.nav-caption,.side-bottom{display:none}nav{display:flex;overflow:auto;gap:6px}nav button{flex-shrink:0;padding:10px;font-size:11px}.nav-icon{display:none}.logout{position:absolute;right:14px;top:14px;margin:0}.topbar{height:auto;min-height:54px;padding:12px 20px;flex-wrap:wrap;font-size:10px}main{padding:25px 18px}.heading{align-items:start;flex-wrap:wrap}h1{font-size:26px}.intro{padding:22px;display:block}.intro>.primary{margin-top:20px}.stats{grid-template-columns:1fr 1fr}.modules,.plan-grid{grid-template-columns:1fr}.module{min-height:185px}.app-footer{padding:15px 20px;flex-direction:column}.panel{padding:19px}.badge{font-size:9px}#login header{padding:25px 24px}#login header img{width:135px}#login header span{font-size:10px}.login-card{padding:31px 26px}.flow{gap:10px}.compare{grid-template-columns:1fr}table{font-size:11px}}
select{font:inherit;max-width:240px;padding:9px;border:1px solid #d4dce5;border-radius:6px;background:#fff;color:#19324b}button:disabled,select:disabled{opacity:.6;cursor:not-allowed}#pdf{max-width:100%;margin-top:16px}#edit-category label{display:block;margin:16px 0}#edit-category input:not([type=checkbox]){width:100%;padding:10px}#upload-result{white-space:pre-wrap;color:#8a4c00}td small{color:#667085}a.link-button{text-decoration:none;white-space:nowrap}

#pdf-dialog{width:min(1280px,96vw);max-width:96vw;height:92dvh;max-height:96dvh;padding:20px;overflow:hidden}#pdf-dialog[open]{display:flex;flex-direction:column;gap:10px}.pdf-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.pdf-head h2{min-width:0;overflow-wrap:anywhere}.pdf-head button{font-size:24px;padding:4px 12px;flex-shrink:0}.pdf-toolbar{display:flex;gap:18px;flex-wrap:wrap}#pdf-status{font-size:12px;flex-shrink:0}#pdf-frame{display:block;width:100%;flex:1;min-height:0;border:1px solid var(--line);border-radius:8px;background:#e9edf2}body:has(#pdf-dialog[open]){overflow:hidden}@media(max-width:600px){#pdf-dialog{padding:12px;width:98vw;max-width:98vw;height:95dvh}.pdf-head h2{font-size:15px}.pdf-toolbar{gap:8px}}

.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.form-grid label,#review-body form>label{display:grid;gap:5px;font-size:12px}.form-grid input,.form-grid textarea,#review-body textarea{width:100%;min-width:0;padding:9px;border:1px solid var(--line);border-radius:6px}.form-grid textarea{min-height:80px}#supplier-dialog{width:760px}#review-dialog{width:96vw;max-width:1600px;height:94dvh;max-height:96dvh;padding:18px}#review-dialog[open]{display:flex;flex-direction:column}.review-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-height:0;flex:1}.review-document{min-height:0;display:flex;flex-direction:column}#review-pdf{width:100%;border:1px solid var(--line);flex:1;min-height:0}#review-body{overflow:auto;min-width:0;padding:0 8px 24px}#review-body details{border-top:1px solid var(--line);padding:12px 0}summary{cursor:pointer;font-weight:600}#review-body pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f5f8fc;padding:12px}.editable-table input{width:140px;min-width:110px;padding:8px;border:1px solid var(--line)}.warning-list{padding:14px 14px 14px 30px;background:#fff6e4;color:#805a17;font-size:12px;line-height:1.7}.difference-high{background:#fff0ed}.error-message{color:#a63624!important;white-space:normal;max-width:300px}#approve-form{margin:20px 0;padding:16px;background:#f4f7fb}#approve-form label{margin:12px 0}body:has(#review-dialog[open]){overflow:hidden}#upload-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.section-title>div{display:flex;gap:8px}@media(max-width:850px){.review-layout{display:flex;flex-direction:column;overflow:auto}.review-document{height:40vh;flex-shrink:0}#review-body{overflow:visible}.form-grid{grid-template-columns:1fr}}

.nav-submenu{padding-left:14px;border-left:2px solid var(--line);margin-left:10px;display:grid;gap:3px}.nav-submenu button{font-size:11px;padding:9px}#cost-assignment{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:16px 0}#cost-assignment label{display:grid;gap:6px;font-size:12px}.cost-comparison{padding:14px;background:#eef5fc;border-radius:8px;margin:14px 0}.cost-comparison p{font-size:12px}#cost-assignment input{padding:9px;border:1px solid var(--line);border-radius:6px}
/* Keep the dropdown chevron consistently inset from the right edge. */
select{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%2319324b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}
@media(forced-colors:active){select{appearance:auto;-webkit-appearance:auto;background-image:none}}

.fulfillment-check{padding:16px;border-radius:8px;margin:16px 0;border:1px solid #e7c67c}.fulfillment-check.pending{background:#fff7e5}.fulfillment-check.confirmed{background:#edf8f1;border-color:#add6bc}.fulfillment-check p{font-size:12px;margin-top:8px;color:#63552f}.fulfillment-check.confirmed p{color:#365e45}#fulfillment-confirm-form label{display:block;margin:12px 0;font-size:12px}#fulfillment-confirm-form textarea{display:block;width:100%;min-height:60px;border:1px solid var(--line);border-radius:6px;padding:9px;margin-top:6px}

.date-pending{color:#8a5c10!important;background:#fff3d8;padding:4px 6px;border-radius:4px}

.category-ai{color:#215cbd!important;background:#edf3fc;padding:4px 6px;border-radius:4px}.category-proposal{padding:16px;background:#f3f7ff;border:1px solid #d7e3f7;border-radius:8px;margin:16px 0}.category-proposal p{font-size:12px;margin:8px 0}.category-proposal label{display:grid;gap:7px;font-size:12px;margin-top:12px}.category-proposal select{max-width:100%}
#supplier-from-invoice{background:#157347;border-color:#157347;color:#fff;font-weight:600;margin:8px 0 16px}#supplier-from-invoice:hover{background:#105c39;border-color:#105c39}#supplier-from-invoice:focus-visible{outline:3px solid #157347;outline-offset:3px}

.upload-date{white-space:nowrap;font-variant-numeric:tabular-nums}

.overview-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.overview-filters label{flex:1 1 200px;margin:0}.overview-filters button{margin-bottom:0}.invoice-overview-table{min-width:1400px}.invoice-overview-table td{vertical-align:top}.invoice-overview-table td span,.invoice-overview-table td strong{display:block}.invoice-overview-table td:last-child button{white-space:nowrap;margin-bottom:8px}.status.overview-ready{background:#dcf4e8;color:#17643c;font-weight:700}.invoice-overview-done td:first-child{border-left:3px solid #27945e}.overview-notes{max-width:350px;margin-top:10px}.overview-notes summary{cursor:pointer;color:#815600;font-weight:600}.overview-notes ul{padding-left:18px;margin:8px 0}.overview-notes li{margin:6px 0;white-space:normal}.invoice-overview-done .overview-notes summary{color:#36556b}
.overview-filters label{display:flex;flex-direction:column;gap:6px}.overview-filters input[type="search"]{width:100%;min-height:40px;border:1px solid #d3ddeb;border-radius:7px;padding:10px 12px;font:inherit}.overview-note-preview{white-space:normal;max-width:320px;min-width:220px;color:#815600;font-size:12px;margin:8px 0}.overview-document-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.overview-document-actions button{font-size:12px;padding:7px 9px}
.overview-filters input[type="date"]{width:100%;min-height:40px;border:1px solid #d3ddeb;border-radius:7px;padding:8px 10px;font:inherit}.overview-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 10px}
.invoice-overview-table{min-width:2500px}.invoice-overview-table .overview-amount{text-align:right;white-space:nowrap}.invoice-overview-table .overview-supplier{min-width:190px;max-width:260px;white-space:normal}.invoice-overview-table .overview-invoice-number{min-width:150px;white-space:nowrap}.invoice-overview-table .overview-document{min-width:200px;max-width:260px;white-space:normal;overflow-wrap:anywhere}
/* NAV matching is separate from invoice approval. */
@media (min-width:1101px){
 #content:has(> .nav-reconciliation-panel){max-width:none;padding-inline:clamp(16px,1.5vw,28px)}
 .nav-reconciliation-panel{padding-inline:20px}
}
.nav-view-switch,.nav-summary{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.nav-view-switch button[aria-pressed="true"],.nav-summary button[aria-pressed="true"]{background:#215cc4;color:#fff;border-color:#215cc4}
.nav-summary button{font-size:12px;text-align:left}
.nav-status{white-space:normal;line-height:1.5}
.nav-matched,.nav-not_required{background:#e6f4ed;color:#196344}
.nav-mismatch,.nav-not_found{background:#fff0d8;color:#8b5100}
.nav-outside_scope,.nav-insufficient_data,.nav-source_unavailable,.nav-excluded{background:#edf1f7;color:#52627e}
.nav-result-cell{min-width:220px;max-width:340px}
.nav-result-cell small{display:block;white-space:normal;line-height:1.5;margin-top:6px}
.nav-reconciliation-table{min-width:1420px}
.nav-reconciliation-table th,.nav-reconciliation-table td{padding-inline:10px}
.nav-reconciliation-table th{white-space:normal}
.nav-reconciliation-table td{vertical-align:top}
.nav-reconciliation-table td:nth-last-child(1){min-width:200px}
.nav-reconciliation-table .link-button{display:block;text-align:left;white-space:normal;margin:4px 0}
.nav-reconciliation-table details small{word-break:break-all}

/* Protected bank workspace: source documents never appear in the public area. */
.bank-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px;margin:20px 0}.bank-card{border:1px solid #dce4ef;border-radius:10px;padding:18px;min-width:0}.bank-card .date-row{flex-wrap:wrap}.bank-card input[type=number]{width:120px}.bank-account{margin:0;display:flex;flex-direction:column;gap:12px}.bank-tabs{display:flex;flex-wrap:wrap;gap:8px}.bank-description{min-width:260px;max-width:440px;white-space:normal;overflow-wrap:anywhere}.bank-pdf{display:block;width:min(1100px,82vw);height:70vh;border:1px solid #dce4ef;margin-top:16px}#bank-upload-result{white-space:pre-line}.bank-card p{overflow-wrap:anywhere}
#detail.bank-source-preview{width:1120px;max-width:calc(100% - 36px)}#detail.bank-source-preview .bank-pdf{width:100%}#detail.bank-source-preview h2{overflow-wrap:anywhere}
.bank-card input[type=number]{padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff;min-height:40px}.bank-statements-table th:last-child,.bank-statements-table td:last-child{position:sticky;right:0;min-width:160px;max-width:220px;background:#fff;box-shadow:-2px 0 4px #1629440b;white-space:normal;overflow-wrap:anywhere}.bank-statements-table th:last-child{background:#f7f9fc}
.bank-list-evidence{border-left:3px solid #d4e4fb;margin:10px 0;padding:8px 12px;background:#f6f9fe;white-space:normal;overflow-wrap:anywhere}.bank-list-evidence strong{display:block;font-size:12px}.bank-list-evidence p{font-size:12px}.bank-lists-table{min-width:1500px}.bank-lists-table td{vertical-align:top}.bank-lists-table td:last-child{min-width:230px}
.bank-filter-grid{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:20px}.bank-filter-grid label{display:flex;flex-direction:column;gap:6px;flex:1 1 140px}.bank-filter-grid .bank-account-select{flex:2 1 260px}.bank-filter-grid .bank-year-select{flex:0 1 105px}.bank-filter-grid select,.bank-filter-grid input{width:100%;min-height:40px}.bank-toolbar .section-title{margin-bottom:0}.bank-transactions-table{min-width:1350px}.bank-transactions-table td{vertical-align:top}.bank-party{min-width:170px;max-width:240px;white-space:normal;overflow-wrap:anywhere}.bank-reference{min-width:240px;max-width:360px;white-space:normal;overflow-wrap:anywhere}.bank-money{text-align:right;white-space:nowrap}.bank-actions{min-width:190px;max-width:240px;white-space:normal}.bank-row-details{margin-top:8px;font-size:12px}.bank-row-details summary{cursor:pointer;color:var(--blue,#235ec4)}.bank-row-details p{white-space:pre-line}.bank-row-details .bank-list-evidence{max-width:350px}.bank-source-only{background:#fffdf7}

.bank-fee-note{white-space:normal;min-width:130px;max-width:180px;margin-left:auto;line-height:1.5}

.bank-card-table td{vertical-align:top}.bank-card-table td:nth-child(3),.bank-card-table td:nth-child(4){white-space:normal;min-width:190px;max-width:270px;overflow-wrap:anywhere}

.bank-acquiring-controls{display:flex;flex-wrap:wrap;gap:20px}.bank-acquiring-controls label{flex:1;min-width:240px;margin:0}

#server-detail{width:min(1400px,96vw);max-height:94vh;overflow:auto;border:1px solid #dce4f1;border-radius:12px;padding:24px} .server-description{white-space:pre-wrap;min-width:260px}
#server-filters{margin-bottom:24px}

.trash-button{color:#9f2525;border:1px solid #e2b8b8;background:#fff6f5;padding:8px 12px;border-radius:7px;font-weight:600;white-space:nowrap}
.trash-button:hover{background:#ffe7e4;border-color:#bc6666}
.trash-reason{white-space:pre-wrap;min-width:220px;max-width:420px;overflow-wrap:anywhere}
#trash-form textarea{min-height:100px}

.trash-table{table-layout:fixed;min-width:760px}.trash-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}.trash-table th:nth-child(1){width:14%}.trash-table th:nth-child(2){width:23%}.trash-table th:nth-child(3){width:14%}.trash-table th:nth-child(4){width:17%}.trash-table th:nth-child(5){width:19%}.trash-table th:nth-child(6){width:13%}.trash-table .trash-reason{min-width:0;max-width:none;white-space:pre-wrap}.trash-table td:last-child button{display:block;width:100%;font-size:12px;padding:8px 5px;margin-bottom:7px}

.mpl-table{min-width:2100px}.mpl-description{white-space:normal;min-width:230px;max-width:340px;overflow-wrap:anywhere}#mpl-detail{width:min(1100px,96vw);max-height:92vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:24px}#mpl-detail p{overflow-wrap:anywhere}#mpl-detail .panel{margin-top:16px}

/* Server sources and monthly checks */
.source-inline{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px;padding:16px;background:#f4f7fc;border-radius:8px}.source-inline small{flex-basis:100%}.source-inline label{margin:0}.source-inline strong{flex-basis:100%}.source-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.source-summary>span{display:flex;align-items:start;flex-direction:column;gap:8px;padding:12px;border:1px solid #dce4f1;border-radius:8px}.source-table{min-width:1050px}.source-table td{vertical-align:top;max-width:330px}.source-table td:last-child{min-width:205px}.source-table td:last-child button{display:block;margin:0 0 8px}.source-table code{display:block;white-space:normal;overflow-wrap:anywhere;margin:8px 0}.source-table small{display:block;margin-top:6px}.source-ok{background:#e6f4ec;color:#216a47}.source-dialog{width:min(1100px,95vw);max-height:90vh;overflow:auto}#source-check-dialog{width:min(600px,95vw)}#source-check-dialog textarea{width:100%;min-height:95px}#source-check-dialog form>label{display:block;margin-bottom:15px}
@media(max-width:1200px){
 .source-table,.source-table tbody{display:block;min-width:0;width:100%}
 .source-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .source-table tbody{display:grid;gap:16px}
 .source-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;border:1px solid #dce4f1;border-radius:8px;padding:16px}
 .source-table td{display:block;max-width:none;min-width:0!important;border:0;padding:0;overflow-wrap:anywhere}
 .source-table td:first-child,.source-table td:nth-child(2),.source-table td:last-child{grid-column:1/-1}
 .source-table td:nth-child(3)::before{content:'Legutóbbi ellenőrzés';display:block;font-size:11px;color:#6b7d9b;margin-bottom:5px}
 .source-table td:nth-child(4)::before{content:'Fájlok és teendők';display:block;font-size:11px;color:#6b7d9b;margin-bottom:5px}
 .source-table td:last-child{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}
 .source-table td:last-child button{display:inline-block;margin:0}
}

.source-issue-summary{color:#9a3412}.source-issue-label{display:block;color:#9a3412}.source-file-issue{background:#fff8ee}.source-file-path{display:block;max-width:400px;white-space:normal;overflow-wrap:anywhere;margin-top:6px;font-size:12px}.source-file-table td{vertical-align:top}.source-file-table td:last-child{min-width:250px;max-width:550px}.source-file-table p{margin:8px 0}.source-issue-action{padding:10px;background:#fff;border-left:3px solid #d97706}.source-recheck{margin-bottom:18px}.source-recheck p{max-width:800px}

.bank-finance-table{min-width:950px}.bank-finance-table td{vertical-align:top}.bank-finance-table td:nth-child(5){min-width:200px;max-width:440px;overflow-wrap:anywhere}

.source-dashboard-period{margin:16px 0;gap:12px;flex-wrap:wrap}.source-dashboard-period label{min-width:180px;margin:0}.source-dashboard-period select{width:100%}

.invoice-reconciliation-nav summary{padding:10px 12px;cursor:pointer;color:inherit;font-weight:600}
.invoice-reconciliation-table{min-width:1120px}
.invoice-reconciliation-table td{vertical-align:top}
.invoice-reconciliation-table td:last-child,.invoice-reconciliation-table .reconciliation-reasons{min-width:240px;white-space:normal}
.reconciliation-note{max-width:24rem;margin:0 0 6px;white-space:pre-wrap;overflow-wrap:anywhere}
.reconciliation-note-form{grid-template-columns:minmax(0,1fr)}
.invoice-reconciliation-table ul{margin:0;padding-left:16px}
.invoice-reconciliation-table small{display:block}
.invoice-reconciliation-table .reconciliation-bank-column{width:20rem;min-width:20rem;white-space:normal}
.reconciliation-bank-content{min-width:18rem;max-width:20rem;overflow-wrap:break-word}
.reconciliation-bank-column .status{display:inline-block}
.reconciliation-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 18px}
.reconciliation-summary>div{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.reconciliation-summary strong{font-size:1.35rem;font-variant-numeric:tabular-nums}
.reconciliation-summary button{text-align:left;align-self:end}
.reconciliation-summary button[aria-pressed=true]{border-color:var(--blue);background:var(--soft);color:var(--blue)}
.reconciliation-evidence{min-width:100px}
.reconciliation-evidence summary{cursor:pointer;color:var(--blue)}
.reconciliation-evidence p{margin:6px 0;white-space:normal}

.party-name{white-space:normal;overflow-wrap:anywhere}
td>.party-name{display:block;min-inline-size:9rem;max-inline-size:16rem}
.trash-table td>.party-name{min-inline-size:0}

.oss-huf-amount{min-inline-size:9rem;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.oss-huf-amount{vertical-align:top}
.oss-huf-amount small{display:flex;justify-content:space-between;gap:8px}
