:root{--blue:#0055B7;--red:#EA5562;--gray:#E9F1F8;--light:#F7F9FB;--black:#040404}*{box-sizing:border-box}body{margin:0;font:15px Arial,sans-serif;background:var(--light);color:var(--black);display:flex}aside{width:238px;height:100vh;position:sticky;top:0;background:white;padding:24px 18px;border-right:1px solid #e8edf2}aside h1{color:var(--blue);font-size:46px;margin:4px 10px 34px}aside button{display:block;width:100%;margin:7px 0;padding:13px 15px;border:0;border-radius:10px;background:var(--gray);color:var(--black);text-align:left;cursor:pointer}aside button:hover{background:var(--blue);color:white}main{flex:1;padding:28px 36px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:20px}header h2{font-size:30px;font-weight:500}header input{width:360px;padding:13px 16px;border:0;border-radius:10px;background:white;outline:1px solid #e4e9ef}.header-tools{display:flex;align-items:center;gap:12px}#who{color:#5f6d7a}#logout{border:0;background:var(--gray);border-radius:10px;padding:13px 16px;cursor:pointer}body.login-body{display:block;min-height:100vh}.login-card{width:min(420px,calc(100% - 32px));margin:12vh auto;background:white;padding:32px;border-radius:12px}.login-card h1{color:var(--blue);font-size:46px;margin:0 0 8px}.login-card label{display:block;margin:16px 0}.login-card input{display:block;width:100%;margin-top:8px;padding:13px 16px;border:1px solid #dce3e9;border-radius:10px}.login-card .primary{width:100%;margin-top:8px}.password-line{display:flex;align-items:center;gap:8px;margin-top:8px}.password-line input{flex:1;width:auto;min-width:0;margin-top:0}.password-line input.masked{-webkit-text-security:disc}#showPassword{position:static;transform:none;flex:0 0 auto;border:0;background:var(--gray);border-radius:8px;padding:8px 12px;cursor:pointer}#showPassword[aria-pressed="true"]{background:var(--blue);color:#fff}section{display:none;margin-top:30px}.active{display:block}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.card{background:white;padding:22px;border-radius:12px;min-height:116px}.card b{display:block;font-size:28px;margin-top:12px;color:var(--blue)}.panel{background:white;padding:26px;border-radius:12px;margin-top:18px}.panel h2,.panel h3{font-weight:500}.primary{background:var(--red);color:white;border:0;border-radius:24px;padding:13px 22px;cursor:pointer}.primary:hover{background:var(--blue)}select{padding:12px 14px;border-radius:10px;border:1px solid #dce3e9;min-width:360px}.terminal{background:#101419;color:#d8f8e5;padding:18px;border-radius:12px;white-space:pre-wrap;max-height:480px;overflow:auto}.list div{background:white;padding:14px 16px;border-radius:10px;margin:8px 0;display:flex;justify-content:space-between;gap:15px}.list button{border:0;background:var(--gray);border-radius:8px;padding:8px 12px;cursor:pointer}@media(max-width:900px){aside{width:190px}.cards{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start;flex-direction:column}header input{width:100%}}

.card small{display:block;margin-top:8px;color:#6b7785;font-size:12px}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.toolbar select{min-width:180px}
input[type=date]{padding:12px 14px;border-radius:10px;border:1px solid #dce3e9;background:white}
.tablewrap{overflow:auto;margin-top:18px;max-height:min(72vh,900px)}
table{width:max-content;border-collapse:separate;border-spacing:0;background:white;font-size:13px}
th,td{padding:6px 8px;border-bottom:1px solid #e8edf2;text-align:right;vertical-align:top}
th:first-child,td:first-child{text-align:left;white-space:normal;min-width:180px;max-width:280px}
td:not(:first-child){white-space:nowrap}
th{background:#f3f7fb;font-weight:600;white-space:normal;line-height:1.25;max-width:148px}
th:first-child{max-width:280px}
.tablewrap thead th{position:sticky;top:0;z-index:3;background:#f3f7fb;box-shadow:0 1px 0 #d5dee8}
.tablewrap thead th.dds{background:#d9e8ff}
.tablewrap tfoot td{position:sticky;bottom:0;z-index:3;background:#e7eef8;font-weight:700;box-shadow:0 -1px 0 #d5dee8}
th.dds,td.dds{background:#d9e8ff}
.tablewrap tfoot td.dds{background:#c5daf8}
.overview-wrap{max-height:none;overflow:visible}
.overview-table{width:100%;table-layout:fixed}
.overview-table th,.overview-table td{width:8.333%;max-width:none;min-width:0;padding:12px 10px;text-align:right;white-space:normal;vertical-align:bottom}
.overview-table th:first-child,.overview-table td:first-child{min-width:0;max-width:none;text-align:left}
.overview-table td{white-space:nowrap}
.muted{margin-top:12px;color:#6b7785}

.warning{margin-top:15px;padding:14px 16px;border-radius:10px;background:#fff4df;color:#7a4b00}
tr.preliminary td{background:#fff3b0}
tr.final-estimate td{background:#d8f3e2}
tr[data-register]{cursor:pointer}
tr[data-register]:hover td{background:#eef6ff}
.refresh-state{display:flex;align-items:flex-start;gap:16px;margin-top:16px;padding:14px 16px;border-radius:10px;background:#eef2f6}
.refresh-state b{min-width:220px;flex:0 0 auto}
.refresh-state span{line-height:1.4}
.refresh-state.run{background:#fff6df}
.refresh-state.run b{color:#8a5a00}
.refresh-state.ok{background:#e7f6ee}
.refresh-state.ok b{color:#1d7a45}
.refresh-state.bad{background:#fde8ea}
.refresh-state.bad b{color:#b42334}
.refresh-steps,.refresh-step{margin-top:0}
#refreshSteps{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.plan-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.plan-card{min-width:0;display:flex;flex-direction:column;gap:12px;background:#f4f7fb;border-radius:12px;padding:16px;min-height:176px}
.plan-label{margin:0;color:#5f6d7a;font-size:13px}
.plan-card .primary,.plan-card select,.plan-card input[type=date]{width:100%;min-height:48px;margin:0}
.plan-card select{min-width:0;max-width:100%}
.plan-card .primary{margin-top:auto;border-radius:12px;padding:12px 16px;line-height:1.25;white-space:normal}
.plan-open{background:var(--blue)}
.plan-open:hover{background:#173f86}
@media(max-width:1100px){.plan-board{grid-template-columns:1fr}}
.refresh-step{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border-radius:10px}
.refresh-step.wait,.refresh-step.run{background:#fff6df;color:#8a5a00}
.refresh-step.ok{background:#e7f6ee;color:#1d7a45}
.refresh-step.bad{background:#fde8ea;color:#b42334}
.refresh-mark{min-width:180px;text-align:right;font-weight:700}
.refresh-spin{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:refresh-spin .8s linear infinite;vertical-align:middle}
@keyframes refresh-spin{to{transform:rotate(360deg)}}

.econ-grid{grid-template-columns:repeat(3,minmax(220px,1fr))}
.econ-card{min-height:148px;display:flex;flex-direction:column}
.econ-card b{margin-top:14px}
.econ-card small{margin-top:auto;padding-top:14px;line-height:1.35;font-size:12px;color:#5f6d7a}
@media(max-width:1100px){.econ-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}
@media(max-width:700px){.econ-grid{grid-template-columns:1fr}}
