:root{color-scheme:light;--bg:#f6f4ef;--paper:#fff;--ink:#22201c;--muted:#5f5a52;--border:#e6e0d5;--sidebar:#12110f;--side-muted:#c1b5a1;--accent:#ba934e;--accent-dark:#84642f;--green:#285a49;--green-light:#e7f0e8;--shadow:0 2px 4px #211a1109;font-family:"Inter","Segoe UI",system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
a{color:#235343}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #ae7f29;outline-offset:3px}
.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;overflow:auto;scrollbar-width:thin;scrollbar-color:#665438 transparent;background:var(--sidebar);border-right:1px solid #332a1e;color:#fff;padding:18px 14px 16px}
.brand{display:block;flex:none;width:100%;aspect-ratio:2.56;overflow:hidden;position:relative;margin:0 0 15px;padding:0;background:#000;border:1px solid #493a24;border-radius:10px}
.brand img{position:absolute;top:50%;left:4%;width:92%;height:auto;transform:translateY(-51%);display:block}
.brand:hover{border-color:#c6a063}
.workspace{display:flex;align-items:center;gap:10px;padding:11px 10px;margin:0 3px 15px;border:1px solid #55442f;border-radius:9px;background:#241e17;font-size:.83rem}
.workspace-icon{display:grid;place-content:center;width:30px;height:30px;border-radius:8px;background:#503a20;color:#ebcf9a;font-size:1rem}
.workspace small{display:block;color:var(--side-muted);font-size:.7rem;margin-top:3px}
.nav-group{margin:11px 0 12px}
.nav-label{padding:0 10px;margin:0 0 5px;color:#c9bcaa;font-size:.66rem;line-height:1.4;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.nav-button,.sidebar-info{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;border-radius:7px;color:#eee5d6;text-align:left;padding:8px 10px;font-size:.85rem;min-height:35px}
.nav-button:hover,.sidebar-info:hover{background:#2f271d;color:white}
.nav-button.active{background:#402e18;color:#f5dfb4;font-weight:650}
.nav-icon{width:18px;text-align:center;color:#d9b982;font-size:1rem;line-height:1}
.sidebar-info{margin-top:auto;border-top:1px solid #3e3426;border-radius:0;padding-top:13px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;height:68px;padding:0 clamp(16px,3vw,38px);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:2}
.breadcrumbs,.top-actions,.search-btn,.account{display:flex;align-items:center;gap:12px;font-size:.875rem}
.breadcrumbs{white-space:nowrap}
.crumb-base,.crumb-divider{color:#687a70}
.top-actions{gap:17px}
.search-btn{border:1px solid var(--border);padding:7px 9px 7px 11px;color:#53655b;background:#f9faf8;border-radius:7px;gap:9px;min-height:35px}
.glass{display:inline-block;width:11px;height:11px;border:1.6px solid currentColor;border-radius:50%;position:relative;margin-right:3px}
.glass::after{position:absolute;content:"";width:5px;height:1.5px;bottom:-2px;right:-4px;background:currentColor;transform:rotate(45deg)}
kbd{font:inherit;font-size:.72rem;border:1px solid var(--border);border-radius:4px;padding:0 5px;background:white;color:var(--muted)}
.top-divider{width:1px;height:26px;background:var(--border)}
.account{border:0;background:none;padding:0;text-align:left;color:var(--ink);gap:8px}
.avatar{width:33px;height:33px;display:grid;place-content:center;background:#e9e0ca;color:#5d4924;border-radius:50%;font-size:.73rem;font-weight:750}
.account-label{font-size:.8rem;font-weight:650}
.account-label small{display:block;font-weight:500;color:var(--muted);font-size:.71rem;margin-top:2px}
.down{color:var(--muted)}
.mobile{display:none!important}
#main{max-width:1510px;margin:auto;padding:24px clamp(16px,3vw,38px) 12px;min-height:calc(100vh - 130px)}
.banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:21px;padding:9px 11px;background:#ece9de;border:1px solid #e5dfcf;border-radius:8px;color:#574a30;font-size:.83rem}
.banner strong{font-size:.84rem}
.banner p{display:inline;margin:0 0 0 6px}
.banner button{border:0;background:transparent;color:#624919;font-weight:700;white-space:nowrap;font-size:.81rem}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 21px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(1.85rem,3vw,2.45rem);letter-spacing:-.065em;line-height:1.08;margin:0 0 7px}
.page-head p{font-size:.94rem;color:var(--muted);margin:0;line-height:1.5}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;color:var(--ink);border:1px solid #d9e3da;border-radius:7px;font-size:.85rem;font-weight:650;padding:9px 13px;min-height:38px;white-space:nowrap;text-decoration:none}
.btn:hover,.icon-btn:hover{background:#edf2ec;border-color:#bdcec2}
.btn.primary{color:#20170b;background:#d7ad69;border-color:#d7ad69}
.btn.primary:hover{background:#e7c68d;border-color:#bd9353}
.btn.soft{background:#f5eee0;color:#674e21;border-color:#e3d5b9}
.btn.danger{color:#92392f}
.inline-btn{border:0;background:none;color:#245743;padding:0;font-size:.84rem;font-weight:700;text-align:left}
.inline-btn:hover{text-decoration:underline}
.hero{background:linear-gradient(110deg,#242019,#191610 53%,#080706);position:relative;isolation:isolate;overflow:hidden;color:#fffbf2;min-height:154px;padding:15px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto clamp(132px,16vw,190px);align-items:center;gap:22px;border:1px solid #433520;border-radius:12px;margin-bottom:20px}
.hero-copy{min-width:0}
.hero-mark{display:block;width:100%;height:auto;mix-blend-mode:screen}
.hero-kicker{font-size:.75rem;color:#e6c389;font-weight:750;text-transform:uppercase;letter-spacing:.13em;margin-bottom:7px}
.hero h2{font-size:1.55rem;letter-spacing:-.04em;margin-bottom:5px}
.hero p{color:#e7decf;font-size:.88rem;line-height:1.4;margin:0;max-width:510px}
.hero .btn{background:#e1bd80;border-color:#e1bd80;color:#271d0e;justify-self:start}
.hero .btn:hover{background:#ecd6aa}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.metric{padding:14px 15px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);min-width:0;text-align:left;color:var(--ink)}
.metric:hover{border-color:#a6bcaa}
.metric-top{font-size:.82rem;display:flex;justify-content:space-between;align-items:center;gap:5px;font-weight:650;color:#455850}
.metric-icon{background:#e9f2eb;color:#2e5d48;display:grid;place-content:center;width:30px;height:29px;border-radius:7px;font-size:1rem;flex:none}
.metric-icon.gold{background:#f3ebd9;color:#805f2d}
.metric-icon.rust{background:#f6e8e0;color:#8c4738}
.metric strong{display:block;margin:8px 0 4px;font-size:clamp(1rem,2.5vw,1.65rem);letter-spacing:-.05em;overflow-wrap:anywhere}
.metric small{display:block;color:var(--muted);font-size:.75rem;line-height:1.35}
.grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:15px;margin-bottom:16px}
.card{min-width:0;background:#fff;border:1px solid var(--border);border-radius:11px;box-shadow:var(--shadow)}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 17px 12px}
.card-head h2{margin:0 0 3px;font-size:1rem;letter-spacing:-.025em}
.card-head p{font-size:.78rem;color:var(--muted);margin:0;line-height:1.4}
.legend{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:.72rem;color:var(--muted)}
.legend span{display:flex;align-items:center;gap:5px}
.legend i{width:9px;height:9px;background:#42715a;border-radius:2px}
.legend span+span i{background:#cfad70}
.plot-area{margin:4px 17px 13px;display:grid;grid-template-columns:auto 1fr;gap:9px}
.axis{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:0 0 21px;color:#607068;font-size:.69rem;white-space:nowrap}
.chart{display:flex;justify-content:space-around;align-items:stretch;gap:8px;min-width:0}
.group{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:.71rem;color:var(--muted)}
.plot{width:100%;height:138px;display:flex;align-items:flex-end;justify-content:center;gap:4px;background:repeating-linear-gradient(to top,#e7ece6 0 1px,transparent 1px 34px);border-top:1px solid #e7ece6}
.bar{display:block;width:clamp(8px,2.4vw,21px);background:#42715a;border-radius:4px 4px 0 0}
.bar.second{background:#cfad70}
.agenda{padding:0 17px 8px}
.agenda-row{display:flex;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #eef1ed}
.agenda-row:first-child{border-top:0}
.agenda-date{display:grid;place-content:center;text-align:center;border-radius:7px;background:#eef2eb;width:37px;height:38px;color:#325242;flex:none;line-height:1}
.agenda-date strong{font-size:.91rem}
.agenda-date small{font-size:.63rem;text-transform:uppercase;margin-top:2px}
.agenda-label{flex:1;min-width:0}
.agenda-label button{font-size:.82rem}
.agenda-label small{display:block;color:var(--muted);font-size:.7rem;margin-top:2px}
.pill{background:#edf0ee;color:#465751;border-radius:20px;font-size:.73rem;font-weight:650;padding:4px 8px;display:inline-block;white-space:nowrap}
.pill.green{background:#e5f2e8;color:#24583d}
.pill.gold{background:#f5ebd7;color:#755522}
.pill.red{background:#f8e7e1;color:#8a312b}
.pill.blue{background:#e7eef6;color:#305477}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left;font-size:.85rem;white-space:nowrap}
th{font-size:.75rem;text-align:left;font-weight:700;color:#56695f;background:#f5f7f4}
th,td{padding:11px 13px;border-bottom:1px solid #edf0ec}
tbody tr:hover{background:#f8faf7}
tbody tr:last-child td{border-bottom:0}
.amount{font-variant-numeric:tabular-nums;font-weight:600}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;padding:12px}
.toolbar .search-input{width:min(100%,330px)}
input,textarea,select{width:100%;border:1px solid #d5dfd6;border-radius:7px;padding:9px 10px;background:#fff;color:var(--ink);font-size:.9rem;min-height:38px}
input::placeholder{color:#617168}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#596c61 50%),linear-gradient(135deg,#596c61 50%,transparent 50%);background-position:calc(100% - 13px) 16px,calc(100% - 8px) 16px;background-size:5px 5px;background-repeat:no-repeat;padding-right:24px}
.toolbar select,.toolbar input[type=month],.page-head input[type=month]{width:auto}
.toolbar .actions select{max-width:220px}
.board{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:10px;min-width:0;overflow:auto;padding-bottom:6px}
.lane{background:#e9eee8;border:1px solid #dfe8de;padding:9px;border-radius:9px;min-height:205px}
.lane h3{font-size:.84rem;margin:0 0 9px;display:flex;justify-content:space-between;gap:4px}
.lane h3 span{color:var(--muted);font-weight:500}
.lead-card{background:white;border:1px solid var(--border);border-radius:7px;padding:10px;margin:0 0 7px;width:100%;text-align:left;color:var(--ink)}
.lead-card strong,.lead-card small{display:block;line-height:1.3}
.lead-card strong{font-size:.85rem}
.lead-card small{color:var(--muted);margin-top:5px}
.empty,.loading,.error-page{padding:24px;color:var(--muted);line-height:1.5}
.loading{border:1px solid var(--border);border-radius:9px;background:white;margin-top:5px}
.loading span{display:inline-block;border:2px solid #bac8be;border-top-color:var(--green);width:14px;height:14px;border-radius:50%;vertical-align:middle;margin-right:6px;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.footer{display:flex;justify-content:space-between;padding:13px clamp(16px,3vw,38px) 16px;gap:12px;color:#52645b;font-size:.75rem;max-width:1510px;margin:auto}
dialog{width:min(690px,calc(100% - 24px));max-height:90vh;border:1px solid var(--border);border-radius:13px;padding:0;color:var(--ink);box-shadow:0 18px 60px #11262150}
dialog::backdrop{background:#12231e7d}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 19px;border-bottom:1px solid var(--border)}
.dialog-head h2{margin:0;font-size:1.12rem}
.dialog-content{padding:17px 19px}
.dialog-content>p{font-size:.9rem;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.field{font-size:.8rem;font-weight:650;display:block}
.field span{display:block;margin-bottom:5px}
.field.wide{grid-column:1/-1}
textarea{min-height:77px;resize:vertical}
.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:17px}
.error{color:#8a312b;background:#f9e9e1;padding:9px;border-radius:6px;margin:9px 0;font-size:.85rem}
.detail-grid{margin:0 0 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.detail-grid dt{font-size:.73rem;color:var(--muted);font-weight:650;margin-bottom:3px}
.detail-grid dd{margin:0;font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-line{padding:8px 0;border-top:1px solid var(--border);font-size:.87rem;display:flex;justify-content:space-between;gap:7px}
.detail-total{font-weight:750;color:#275541}
.results{margin-top:10px;max-height:50vh;overflow:auto}
.result{display:flex;justify-content:space-between;gap:10px;min-height:38px;width:100%;background:white;border:0;border-bottom:1px solid var(--border);text-align:left;color:var(--ink);padding:8px}
.result small{color:var(--muted)}
#toast{position:fixed;right:16px;bottom:15px;z-index:5;background:#234b3b;color:white;padding:11px 15px;border-radius:8px;box-shadow:0 10px 25px #10281c30;font-size:.86rem;max-width:min(380px,calc(100% - 32px))}
#toast:empty{display:none}
.prose{padding:17px 19px;line-height:1.55}
.prose h2{font-size:1rem;margin-bottom:5px}
.prose p,.prose li{font-size:.88rem}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.metrics{gap:8px}.metric{padding:12px 10px}.metric-icon{width:26px;height:25px}.grid{gap:10px}.hero{padding:17px}.topbar{padding-inline:20px}}
@media(max-width:880px){.shell{grid-template-columns:minmax(0,1fr)}.mobile{display:inline-flex!important}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:6;width:230px;height:100%;transform:translateX(-101%);transition:transform .15s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #15222166}.topbar{height:57px}}
@media(max-width:650px){.grid{grid-template-columns:minmax(0,1fr)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.banner p,.crumb-base,.crumb-divider,.top-divider,.account-label,.down,.search-btn kbd,.search-btn>span:nth-child(2){display:none}.search-btn{padding:9px}.page-head{align-items:flex-start;flex-direction:column}.hero{grid-template-columns:minmax(0,1fr) minmax(83px,32%);gap:10px;align-items:center}.hero-mark{grid-area:1/2/span 2/3}.hero .btn{grid-column:1}.hero-copy{grid-column:1}.top-actions{gap:9px}.breadcrumbs{gap:8px}.hero h2{font-size:1.3rem}.form-grid{grid-template-columns:minmax(0,1fr)}.field.wide{grid-column:auto}.footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
fieldset{min-width:0;border:1px solid var(--border);border-radius:8px;margin:0;padding:8px 10px 10px}
legend{font-size:.82rem;font-weight:700;padding:0 4px;color:var(--ink)}
.check-item{display:flex;align-items:flex-start;gap:7px;padding:5px 0;font-size:.86rem}
.check-item input{width:16px;height:16px;min-height:0;margin:1px 0 0;flex:none;accent-color:var(--green)}
.access-scope{grid-column:1/-1}
.access-options{max-height:160px;overflow:auto}
.access-empty{font-size:.8rem;color:var(--muted);margin:4px 0}

.signin{background:#f6f3ec;min-height:100vh;display:grid;place-items:center;padding:24px}
.access-shell{width:min(100%,1050px);background:#fff;border:1px solid var(--border);border-radius:17px;overflow:hidden;display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,1.55fr);box-shadow:0 15px 45px #30200f16}
.access-brand{background:#080706;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;color:#e5c28a;border-right:1px solid #4b3a23}
.access-logo{display:block;width:min(100%,335px);height:auto;mix-blend-mode:screen}
.access-brand p{color:#e5c28a;margin:3px 0 8px;font-size:.9rem;letter-spacing:.12em;text-transform:uppercase}
.access-panel{min-width:0;padding:clamp(24px,5vw,66px)}
.access-panel h1{line-height:1.12}
.access-intro{color:var(--muted);font-size:.96rem;line-height:1.45;margin:0 0 18px}
.access-panel form,.access-path{display:grid;gap:12px}
.access-panel form .btn{justify-self:start}
.access-panel form fieldset{padding:12px}
.access-path .btn{width:100%}
.access-panel .field span{font-size:.85rem}
.access-panel input{min-height:43px}
.access-panel input[type=checkbox]{min-height:0}
.access-links{margin-top:17px}
.access-hint,.access-privacy{font-size:.85rem;line-height:1.5;margin:0;color:var(--muted)}
.access-success{background:#e6f1e7;color:#215134;padding:9px 12px;border-radius:7px}
.registration-panel{padding:clamp(19px,3.5vw,40px)}
.applicant-record{margin-top:15px}
.applicant-record h3{font-size:.95rem;margin-bottom:8px}
.applicant-record dt{margin-top:4px}
.print-ficha{display:none}
@media(max-width:740px){
  .signin{padding:12px}
  .access-shell{grid-template-columns:minmax(0,1fr)}
  .access-brand{padding:8px 12px;border-right:0;border-bottom:1px solid #4b3a23}
  .access-logo{width:126px}
  .access-brand p{font-size:.72rem;margin:0 0 3px}
}
@media print{
  body.printing-ficha>.shell,body.printing-ficha>dialog,body.printing-ficha>#toast{display:none!important}
  body.printing-ficha>.print-ficha{display:block;background:white;color:#151515;padding:12mm;font-size:11pt}
  .print-ficha dd{white-space:pre-wrap;overflow-wrap:anywhere}
}
