/* PTEB administration: compact, readable workspaces and consistent forms. */
:root{--ink:#20272d;--muted:#65717a;--line:#e1e6e9;--brand:#c6281a;--sidebar:#20282e;--red:#b42318;--amber:#9a6700;background:#f3f5f7;color:var(--ink)}
body{font-size:14px}button,input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible{outline:3px solid #d55b46;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #e0a79d;border-color:#c54a38}
h1{font-size:28px;letter-spacing:-.8px;color:#20272d}h2{font-size:17px;color:#20272d}h3{color:#28343e}.muted{color:var(--muted)}
.app-shell{grid-template-columns:224px minmax(0,1fr)}.sidebar{width:224px;background:#20282e;padding:18px 12px 14px}.sidebar .brand{padding:0 12px 13px}.sidebar .brand .logo-frame{background:#fff;border-radius:5px;padding:7px 9px}.sidebar .brand small{font-size:9px;letter-spacing:2px}.sidebar .nav-caption{padding:12px 14px 5px;color:#aeb9c2;font-size:9px}.sidebar .nav-link{padding:10px 13px;margin:2px 0;color:#d5dde2;font-size:12px;border-radius:6px;min-height:37px}.sidebar .nav-link.active{background:#fff;color:#aa2519;box-shadow:inset 3px 0 #da1b0c}.sidebar .nav-link:hover{background:#35414a;color:#fff}.sidebar .nav-link.active:hover{background:#fff5f3;color:#9a2417}.sidebar-bottom{padding:13px 12px 0;border-color:#414b52}.sidebar-bottom p{color:#b0bac1;font-size:10px}
.content{max-width:none;margin:0;padding:24px 28px 20px}.topbar{height:64px;padding:0 28px;position:sticky;top:0;z-index:15;box-shadow:0 2px 9px #1b303006}.top-tools{gap:14px}.breadcrumbs{color:#687882}.breadcrumbs b{color:#364652}.workspace-pill{font-size:11px;color:#455965;padding:7px 10px}.top-user strong{font-size:12px}.top-user small{font-size:11px}.avatar{background:#edf0f2;color:#41525e}.search-box input{font-size:12px}
.page-heading{margin-bottom:20px}.page-heading>.flex{flex-wrap:wrap;justify-content:flex-end}.eyebrow{font-size:10px;color:#737d83;letter-spacing:1.35px;margin-bottom:6px}.subheading{font-size:13px;color:#65717a;margin-top:6px}.demo-bar{padding:8px 12px;background:#fff8e8;border-color:#efdfba;margin-bottom:18px;color:#795e24}.demo-bar button{color:#79521c}
.btn{font-size:12px;border-color:#d8dfe4;color:#3e505c;border-radius:6px;min-height:36px;padding:8px 12px}.btn.primary{background:#c92b1b;border-color:#c92b1b;color:#fff}.btn.primary:hover{background:#ad2416;border-color:#ad2416}.btn.sm{font-size:11px;padding:5px 8px;min-height:29px}.btn.danger{color:#a0271d}.btn.link{color:#a82b1c}.icon-btn{color:#596d7a}
.metrics{gap:14px;margin-bottom:18px}.metric{padding:16px 18px;border-color:#e1e6e9;border-radius:8px}.metric-top{font-size:12px;margin-bottom:12px;color:#5b6d78}.metric-value{font-size:28px;letter-spacing:-.6px;color:#263944}.metric-foot{font-size:11px;color:#617480}.metric:first-child{background:#253844;border-color:#253844}.metric-icon{background:#edf2f5;color:#687f8d}.metric:first-child .metric-icon{background:#364f5e}.dashboard-grid{gap:18px;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);margin-bottom:18px}.panel{border-radius:8px;border-color:#dfe5e9;box-shadow:0 2px 4px #23394503}.panel-head{padding:17px 19px 14px}.panel-head p{font-size:12px;color:#687985}.panel-body{padding:0 19px 19px}.legend{font-size:11px;color:#657987}.chart{height:180px}.bar{background:#667f90}.bar.light{background:#ccd8df}.legend .key{background:#667f90}.legend .key.light{background:#ccd8df}.chart-foot{font-size:11px}.alert-row p{font-size:11px}.alert-row strong{font-size:13px}.alert-icon{background:#fff3d9;color:#8c651e}
.table-wrap{max-width:100%;overflow:auto}table{font-variant-numeric:tabular-nums}th{background:#f3f6f8;color:#536775;font-size:11px;font-weight:650;padding:11px 15px;position:sticky;top:0;z-index:1}td{padding:11px 15px;font-size:13px;color:#465964;border-color:#eaf0f3}td strong{font-size:13px;color:#283d4a}td .sub{font-size:11px;line-height:1.5;color:#6a7c87}tbody tr:hover{background:#f8fafb}.table-link{font-size:13px;color:#284a60}.table-bottom{font-size:11px;align-items:center;color:#617381;padding:12px 16px}.initials{background:#edf2f5;color:#557084}.badge{font-size:11px;background:#e9f4ed;color:#216543;padding:4px 7px}.badge.gray{background:#edf1f4;color:#607481}.badge.red{background:#fcebea;color:#a32b23}.badge.amber{background:#fff1d7;color:#8a5e10}.badge.blue{background:#eaf2fa;color:#345f88}.badge.purple{background:#f0eaf9;color:#76599a}.tabs{gap:24px;margin-bottom:17px}.tabs button{font-size:13px;color:#5c707d;padding-bottom:11px}.tabs button.active{color:#b82b1c;border-color:#c82c1c}.filters{flex-wrap:wrap}.filters input,.filters select{font-size:12px;color:#374f60;border-color:#d7e0e7}.segmented button{font-size:11px}.segmented button.active{color:#af281a}.notice{font-size:12px;color:#5b6c77;border-color:#dde5eb;background:#f7fafc}.notice.warn{color:#7e601e}.notice.error{color:#a52c20}.field{font-size:12px;color:#475d6a;font-weight:600}.field input,.field select,.field textarea{font-size:13px;border-color:#cfdbe3;padding:10px 11px;min-height:41px}.field small{font-size:11px;color:#6c7e89;font-weight:400}.form-grid{gap:16px}.checkline{font-size:12px;color:#536772}.checkline input{accent-color:#c92b1b}.details-grid{gap:18px}.detail small{font-size:11px;color:#6b7d88}.detail strong{color:#354d5c}.modal{width:720px;border-radius:10px}.modal.wide{width:min(1180px,96vw)}.modal-overlay{padding:20px}.modal-head{padding:18px 24px}.modal-content{padding:22px 24px}.modal-foot{padding:13px 24px}.payment-summary{background:#eff4f7;color:#3d5969;border-color:#dbe5ec}.invoice-top h2{color:#263943}.invoice-totals .total{background:#f2f5f7}.page-foot{font-size:11px;color:#70818c;margin-top:20px}
.report-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;flex-wrap:wrap;margin-bottom:18px}.filter-label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#5a6f7b;font-weight:600}.filter-label input[type=date]{width:155px}.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #dde5eb;border-radius:8px;background:#fff;margin-bottom:18px;overflow:hidden}.report-stat{padding:16px 20px;border-right:1px solid #e6edf2}.report-stat:last-child{border-right:0}.report-stat small{display:block;color:#617482;font-size:11px;margin-bottom:8px}.report-stat strong{display:block;color:#263f50;font-size:23px;letter-spacing:-.5px;font-weight:650}.statement-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:23px 22px;border-bottom:3px solid #be2f21}.statement-heading .eyebrow{display:block;letter-spacing:1px;font-size:10px}.statement-heading h2{font-size:21px;margin:6px 0 7px}.statement-heading p{font-size:12px;color:#657e8d}.owner-table table{white-space:normal;table-layout:fixed}.owner-table th:first-child{width:26%}.owner-table th:nth-child(2){width:21%}.owner-table th:last-child{width:146px}.owner-table td{padding:12px 18px;vertical-align:top;line-height:1.55}.owner-table td:nth-child(2){white-space:nowrap}.owner-table td.observation-cell{font-size:13px;color:#435b6d}.owner-table tr:nth-child(even){background:#fbfcfd}.row-actions{display:flex;justify-content:flex-end;gap:6px}.observation-cell{white-space:normal;min-width:200px;max-width:560px;overflow-wrap:anywhere;line-height:1.6}.owner-table tfoot td{background:#eaf0f5;border-top:2px solid #b6c6d1;color:#253e50;font-size:12px;font-weight:650;padding:15px 18px}.credit-text{color:#1b7163!important}.report-basis{padding:14px 20px;font-size:11px;color:#6a7f8d;line-height:1.6;background:#fafcfd}.section-title{margin-top:22px;margin-bottom:14px}.print-report-title{margin-bottom:22px}.print-report-title h2{text-transform:uppercase;font-size:21px}.print-report-title p{margin-top:8px;font-size:12px;color:#566c7a}
.contract-summary p{font-size:11px;line-height:1.65;margin-top:18px;color:#617887}.client-autofill{display:flex;flex-direction:column;gap:6px;background:#f2f6f9;border-left:3px solid #8ca6b8;padding:12px 15px;border-radius:4px;font-size:12px;color:#516c7e}.client-autofill strong{color:#2e4c60}.selected-units{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0}.unit-chip{display:inline-flex;align-items:center;gap:8px;background:#edf3f7;border:1px solid #ccdae5;padding:6px 9px;color:#375d75;border-radius:5px;font-size:12px}.unit-chip button{border:0;background:none;color:#4b697e;font-size:20px;line-height:1}.inline-warning{padding:10px;border-radius:4px;background:#fff2d9;color:#8d6519;font-size:11px;line-height:1.6}
.audit-detail{font-size:11px}.audit-detail summary{cursor:pointer;color:#395f78}.audit-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:500px;max-height:320px;overflow:auto;font-size:11px;background:#f0f5f8;padding:12px}
@media(min-width:1750px){.content{padding:28px 34px}.dashboard-grid{grid-template-columns:2fr 1fr}.chart{height:220px}}
@media(max-width:1200px){.content{padding:22px}.topbar{padding:0 22px}.filters input{width:200px}.report-stat{padding:14px}.report-stat strong{font-size:21px}.owner-table th:first-child{width:25%}.owner-table th:nth-child(2){width:23%}.owner-table td{padding:11px 13px}}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.owner-table table{min-width:760px}}
@media(max-width:900px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding:14px 10px}.sidebar .nav-link{font-size:11px;padding:9px}.metrics,.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:25px}.report-stat{border-bottom:1px solid #e7edf1}.top-user{display:none}.topbar{gap:10px}.page-heading{flex-wrap:wrap}.page-heading>.flex{justify-content:flex-start}}
@media(max-width:650px){.app-shell{grid-template-columns:1fr}.sidebar{width:230px}.main-shell{grid-column:1}.topbar{height:60px;padding:0 13px}.breadcrumbs{font-size:10px}.top-tools{gap:6px}.workspace-pill{font-size:10px;padding:6px}.content{padding:20px 14px}.sidebar .nav-link{font-size:12px}.page-heading{display:block}.page-heading>.flex{margin-top:13px;gap:8px}.page-heading .btn{font-size:12px;padding:8px 11px}.page-heading .btn svg{display:block}h1{font-size:26px}.subheading{max-width:none;font-size:12px}.metric{padding:13px}.metric-value{font-size:23px}.metric-foot{font-size:10px}.metric-top{font-size:11px}.report-stat{padding:13px}.report-stat strong{font-size:21px}.report-toolbar>.filters{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}.filter-label input,.filter-label input[type=date],.filter-label select{width:100%;min-width:0}.report-toolbar>.flex{width:100%;justify-content:flex-end}.statement-heading{padding:18px}.statement-heading h2{font-size:18px}.statement-heading .eyebrow{font-size:9px}.modal-overlay{padding:7px}.modal-content{padding:17px}.modal-head{padding:16px}.modal-foot{padding:12px 16px}.tabs{gap:20px}.filters{max-width:100%}.report-basis{padding:13px}.demo-bar{align-items:flex-start;line-height:1.5}.demo-bar button{flex-shrink:0}.table-wrap{max-height:none}.ecf-layout{grid-template-columns:1fr}}
@media print{.modal.wide{width:100%;max-width:none}.modal-content{padding:0}.invoice-sheet{padding:0}.invoice-sheet .table-wrap{overflow:visible;max-height:none}.invoice-sheet table{white-space:normal;table-layout:auto;min-width:0}.invoice-sheet th{position:static;background:#e9eef4!important;color:#111;font-size:9px}.invoice-sheet td{font-size:10px;padding:8px;white-space:normal;overflow-wrap:anywhere}.invoice-sheet .owner-table th:first-child{width:29%}.invoice-sheet .owner-table th:nth-child(2){width:24%}.invoice-sheet .owner-table th:last-child{width:auto}.invoice-sheet .owner-table td:nth-child(2){white-space:nowrap}.invoice-sheet .owner-table tfoot td{font-size:10px;padding:9px}.invoice-sheet td .sub{font-size:9px;color:#555}.invoice-sheet td strong,.invoice-sheet .table-link{font-size:10px;color:#111}.invoice-sheet .report-stats{grid-template-columns:repeat(3,1fr)}.invoice-sheet .report-stat strong{font-size:18px}.invoice-sheet .report-basis{font-size:9px;padding:12px 0;background:none}.invoice-sheet .print-report-title h2{font-size:15px}.invoice-sheet tr{break-inside:avoid}.invoice-sheet thead{display:table-header-group}.invoice-sheet tfoot{display:table-row-group}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media screen and (max-width:650px){
 #toast{top:70px;bottom:auto;font-size:12px;max-width:94vw}
 .owner-table table{display:block;min-width:0;table-layout:auto}.owner-table thead{display:none}.owner-table tbody,.owner-table tfoot{display:block}
 .owner-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:15px 16px;gap:10px;border-bottom:1px solid #e0e8ee}
 .owner-table tbody td{display:block;border:0;padding:0;min-width:0;max-width:none}.owner-table tbody td:first-child{align-self:center}.owner-table tbody td:nth-child(2){align-self:center;font-size:14px}
 .owner-table tbody td.observation-cell{grid-column:1/-1;font-size:12px;min-width:0;padding-top:8px;border-top:1px dashed #dbe5ec}.owner-table td.observation-cell:before{content:'Observaciones';display:block;font-size:10px;font-weight:600;color:#738a9a;margin-bottom:5px}
 .owner-table tbody td:last-child:not(.observation-cell){grid-column:1/-1}.owner-table .row-actions .btn{min-height:35px;padding:7px 11px}
 .owner-table tfoot tr{display:grid;grid-template-columns:1fr auto;background:#eaf0f5;padding:16px;gap:12px}.owner-table tfoot td{display:block;border:0;padding:0!important;max-width:none}.owner-table tfoot td:last-child{grid-column:1/-1;font-weight:400}
}
/* Unknown conversions remain visible instead of looking like zero activity. */
.currency-basis{margin:-10px 0 20px;line-height:1.6}
.chart .bar.rate-pending{background:repeating-linear-gradient(135deg,#b28a4133 0 5px,#b28a410b 5px 10px);border:1px dashed #b28a41}
