:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#493b33;background:#f7f2ea;font-synthesis:none;--teal:#80503b;--muted:#7b6c60}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:11px 17px;background:var(--teal);color:white;font-weight:600}button:hover{filter:brightness(.94)}button.secondary{background:#f0e3d5;color:var(--teal)}button.danger{background:#fff0ee;color:#ac4137}button:disabled{opacity:.5;cursor:wait}input,select,textarea{border:1px solid #d9c7b6;background:white;border-radius:7px;padding:10px;width:100%;color:inherit}input:focus,select:focus{outline:2px solid #bd8b65}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#78604f}label.check{flex-direction:row;align-items:center;grid-column:1/-1}input[type=checkbox]{width:auto}aside{position:fixed;inset:0 auto 0 0;width:238px;background:#efe0cc;color:#684a37;padding:30px 20px;display:flex;flex-direction:column}.brand{color:white;font-size:23px;font-weight:750;letter-spacing:-1px}.brand span{color:#ab7654}.brand small{display:block;font-size:11px;letter-spacing:2px;font-weight:400;margin-top:9px;color:#8a6a53}nav{display:grid;gap:6px;margin-top:40px}nav button{background:transparent;color:#705342;text-align:left;font-weight:400;padding:14px}nav button.active{background:#79513b;color:#fff}.aside-foot{margin-top:auto;font-size:12px;line-height:1.7;color:#80634f}main{margin-left:238px;padding:34px 40px;max-width:1700px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e1d3c4;padding-bottom:22px;margin-bottom:28px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;color:var(--teal);font-weight:700}h1{font-size:28px;font-weight:650;letter-spacing:-.7px;margin:8px 0}h2{font-size:17px;margin:0 0 16px}p{color:#7b6c60;line-height:1.6;font-size:14px}.tools{display:flex;gap:10px;align-items:center}.tools input{width:auto}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.card,.panel{background:white;border:1px solid #e4d7c9;border-radius:12px;padding:23px}.card .value{display:block;font-size:26px;font-weight:650;letter-spacing:-.7px;margin:12px 0;color:#603d2a}.card small{color:#806c5d;font-size:12px}.card.feature{background:#80503b;color:#f7ead8;border-color:#80503b}.card.feature .value,.card.feature small{color:white}.split{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-head h2{margin:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#f9f4ed;padding:13px 12px;color:#806c5d;font-weight:500;white-space:nowrap}td{padding:16px 12px;border-bottom:1px solid #eee4d9}td.money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.badge{font-size:11px;background:#e8f4ef;color:#267c64;padding:5px 8px;border-radius:5px;white-space:nowrap}.badge.gray{background:#eee8e1;color:#807065}.badge.orange{background:#fff2dc;color:#9c6c23}.empty{text-align:center;padding:42px 20px;color:#8b7767}.empty strong{display:block;color:#6c5140;margin-bottom:8px}.notice{background:#f1e7db;color:#78583e;padding:13px 17px;border-radius:8px;font-size:13px;line-height:1.6;margin-bottom:20px}.notice.warn{background:#fff5df;color:#886521}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.detail-line{display:grid;grid-template-columns:2.3fr .6fr 1fr .9fr .9fr 35px;gap:8px;margin-bottom:10px;align-items:end}.detail-line button{padding:10px;background:#f9eeed;color:#b06057}.detail-line label{font-size:11px}.preview-total{display:flex;justify-content:space-between;background:#f5ebdf;padding:18px;margin-top:17px;border-radius:8px;gap:15px}.preview-total strong{display:block;margin-top:5px}.bar{height:9px;background:#eedecb;border-radius:5px;margin:9px 0 20px;overflow:hidden}.bar span{display:block;background:#b67f58;height:100%}.doctor-row{display:flex;justify-content:space-between;font-size:13px}.login{max-width:420px;margin:12vh auto;background:#fff;border:1px solid #e0cbb8;padding:35px;border-radius:14px}.login .brand{color:#603d2a}dialog{border:0;border-radius:15px;padding:30px;max-width:950px;width:calc(100% - 40px);max-height:90vh;box-shadow:0 20px 90px #59382240}dialog::backdrop{background:#48302380}dialog h2{font-size:22px}#toast{position:fixed;bottom:25px;right:25px;background:#69432e;color:white;padding:14px 20px;border-radius:9px;display:none;z-index:99;max-width:500px}.help{font-size:12px;color:#8b7767}.stack{display:grid;gap:20px}a{color:var(--teal)}@media(max-width:1100px){main{padding:25px}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}@media(max-width:750px){aside{position:static;width:100%;padding:20px}nav{display:flex;overflow:auto;margin:20px 0 0}nav button{white-space:nowrap;padding:10px}.aside-foot{display:none}main{margin:0;padding:20px}header{align-items:flex-start;flex-direction:column}.tools{flex-wrap:wrap}.cards{gap:10px}.card{padding:16px}.card .value{font-size:22px}.form-grid{grid-template-columns:1fr}.detail-line{grid-template-columns:1fr 1fr}.detail-line label:first-child{grid-column:1/-1}.preview-total{flex-wrap:wrap}.panel{padding:17px}}@media print{aside,header .tools,button,.notice,#toast{display:none!important}main{margin:0;padding:0}.cards{grid-template-columns:repeat(4,1fr)}body{background:white}dialog{position:static;max-height:none;box-shadow:none;width:100%}}

/* Identidad visual del emblema proporcionado: crema, cobre y marrón. */
:root{--brand:#80503b;--teal:var(--brand)}aside{border-right:1px solid #d6b89b;background:linear-gradient(160deg,#f4e7d5,#e7cdb1)}.brand{display:flex;align-items:center;gap:13px;color:#603d2a;letter-spacing:0}.brand img{width:62px;height:108px;object-fit:contain;border-radius:9px;box-shadow:0 3px 12px #68432b18}.brand strong{font-size:16px;line-height:1.4;display:block;font-weight:650}.brand small{font-size:9px;letter-spacing:1.6px;color:#84634b;line-height:1.6}.heading-group{display:flex;align-items:center;gap:18px}.header-logo{width:45px;height:78px;object-fit:contain;border-radius:6px}.card.feature{background:linear-gradient(135deg,#946448,#67402e);border-color:#80503b}.card,.panel{box-shadow:0 3px 16px #7b523207}h1,h2{color:#5a3c2b}.login{background:linear-gradient(160deg,#fffdf9,#f6ebde);border-color:#cfb298}.login .brand{flex-direction:column;text-align:center;gap:18px;margin-bottom:28px}.login .brand img{width:100px;height:175px}.login .brand strong{font-size:21px}.login .brand small{font-size:10px}.login h1{font-size:24px}.aside-foot .secondary{margin-top:12px;border:1px solid #d1b394}button:focus-visible{outline:3px solid #c79c77;outline-offset:3px}@media(max-width:750px){.brand img{width:44px;height:77px}.brand strong{font-size:18px}.header-logo{width:36px;height:63px}.heading-group{gap:12px}.eyebrow{font-size:10px;letter-spacing:1px}}@media print{header{border-bottom:2px solid #a57650;padding-bottom:12px;margin-bottom:18px}.header-logo{width:43px;height:75px}.card.feature{background:white;color:#493b33}.card.feature .value,.card.feature small{color:#493b33}img{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
