*{box-sizing:border-box}body{margin:0;background:#f7f5fa;color:#292032;font:15px 'Segoe UI',system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #e4d9eb;background:#fff;color:#71127b;border-radius:10px;padding:10px 16px;font-weight:600}button:hover{background:#f5eafa}button:disabled{cursor:default;opacity:.6}.primary{background:linear-gradient(120deg,#71127b,#9530a3);color:#fff;border:0}.primary:hover{background:#71127b}.danger{color:#a62b47}input,select,textarea{width:100%;min-height:46px;border:1px solid #ded4e6;border-radius:9px;padding:10px 12px;background:#fff;color:#292032}textarea{min-height:110px;resize:vertical}label{display:block;font-size:13px;font-weight:600;color:#65586f;margin:12px 0 5px}h1{font-size:27px;letter-spacing:-.6px;margin:0 0 8px}h2{font-size:21px;margin:0 0 12px}h3{font-size:16px;margin:0 0 12px}p{line-height:1.5}.muted{color:#7b6c87;font-size:13px}.brand{font-weight:750;font-size:24px;letter-spacing:-.7px}.brand span{display:block;font-size:11px;letter-spacing:3px;font-weight:500;margin-top:5px}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 15%,#e8d6f5,transparent 50%),#f7f5fa}.loginbox{width:min(520px,calc(100% - 36px));background:white;border:1px solid #e7dbef;border-radius:24px;padding:36px;box-shadow:0 25px 80px #49286613}.login .brand{color:#71127b;margin-bottom:26px}.role-group{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 20px}.role-group button.active{background:#efe2f5;border:2px solid #8b2c97}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{background:linear-gradient(165deg,#521367,#741478 75%,#892286);color:#fff;padding:28px 16px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar .brand{padding:0 12px 28px}.sidebar nav{overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:5px;flex:1}.sidebar nav button{background:transparent;color:#eddef7;text-align:left;border:0;padding:12px 15px;font-weight:500}.sidebar nav button.active,.sidebar nav button:hover{background:#ffffff20;color:#fff}.account{padding:20px 12px 0;border-top:1px solid #ffffff28}.account small{display:block;color:#e2c9ed;margin:5px 0 12px}.account button{background:#ffffff15;color:#fff;border-color:#ffffff30;width:100%}.topbar{position:sticky;top:0;z-index:4;background:#fffffff5;backdrop-filter:blur(12px);border-bottom:1px solid #eee6f2;display:flex;justify-content:space-between;align-items:center;padding:18px 28px;gap:14px}.badge{font-size:12px;color:#88538e;background:#f3eaf8;padding:7px 10px;border-radius:20px}.main{padding:26px 28px;max-width:1600px;margin:auto}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px}.card{background:white;border:1px solid #e8dfef;border-radius:16px;padding:22px;margin-bottom:18px;box-shadow:0 3px 12px #50325a04}.hero{background:linear-gradient(115deg,#f0e3f7,#fcf8fe);padding:30px;border:1px solid #e9d7f2;border-radius:18px;margin-bottom:24px}.patientgrid{display:grid;grid-template-columns:285px minmax(0,1fr);gap:20px}.patients{padding:18px}.patient-list{display:grid;gap:8px;margin-top:14px;max-height:63vh;overflow-y:auto}.patient-list button{text-align:left;font-weight:600;padding:14px}.patient-list small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#82708b}.patient-list .selected{background:#f4eaf8;border-color:#c798d3}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin:18px 0}.tabs button{border:0;background:#f8f4fa}.tabs button.active{background:#ede0f5}.scroll-table{overflow-x:auto;border:1px solid #ece5f1;border-radius:12px;margin:14px 0}table{width:100%;border-collapse:collapse;font-size:14px}th{background:#faf7fc;color:#74617f;text-align:left;font-size:12px;white-space:nowrap;position:sticky;top:0}td,th{padding:14px 12px;border-bottom:1px solid #eee6f2}tr:last-child td{border-bottom:0}td button{padding:8px 11px;min-height:40px;font-size:12px}td.actions{display:flex;gap:6px;flex-wrap:wrap}.state{display:inline-block;padding:6px 10px;border-radius:7px;font-size:12px;white-space:nowrap;font-weight:600}.pending{background:#fff0e1;color:#9c6617}.progress{background:#ece5fb;color:#7851ad}.done{background:#e6f5ed;color:#258451}.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.totals{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0}.totals .card{flex:1;margin:0;background:#fcf8fe;min-width:180px}.total{font-size:24px;font-weight:700;color:#71127b;margin-top:8px}.note{border-left:3px solid #c9a1d6;padding:8px 15px;margin-top:18px;white-space:pre-wrap}.empty{padding:22px;color:#89778f;background:#faf8fc;border-radius:12px}.clock{max-width:530px;margin:45px auto;text-align:center;padding:40px}.clock .check{color:#2a965c;font-size:56px;margin:10px}.clock button{display:block;width:100%;margin-top:18px}dialog{width:min(650px,calc(100% - 28px));border:0;border-radius:18px;padding:28px;max-height:88vh;overflow:auto;box-shadow:0 24px 100px #3b194d40}dialog::backdrop{background:#27132f66}.formactions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.error{color:#a62b47;margin:14px 0;font-size:14px}#toast{position:fixed;bottom:24px;right:24px;background:#392045;color:white;padding:14px 20px;border-radius:10px;z-index:20;display:none;max-width:80vw}.lineeditor{display:grid;grid-template-columns:1fr 110px 90px 44px;gap:8px;align-items:end;margin-bottom:12px}.wide{grid-column:1/-1}.hint{background:#f5eff9;border-radius:8px;padding:12px;color:#7e6688;font-size:13px}.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.focus-visible,:focus-visible{outline:3px solid #c28ddb;outline-offset:2px}@media(max-width:1100px){.shell{grid-template-columns:185px 1fr}.sidebar{padding:24px 10px}.brand{font-size:21px}.main{padding:22px 18px}.topbar{padding:16px 18px}.patientgrid{grid-template-columns:230px minmax(0,1fr)}.card{padding:18px}}@media(max-width:820px){.shell{display:block}.sidebar{height:auto;position:relative;padding:15px}.sidebar .brand{padding:0 0 12px}.sidebar nav{flex-direction:row;overflow-x:auto;gap:4px}.sidebar nav button{white-space:nowrap}.account{padding:10px 0 0;display:flex;justify-content:space-between;align-items:center}.account small{margin:0}.account button{width:auto}.topbar{top:0}.patientgrid{grid-template-columns:1fr}.patient-list{max-height:180px}.cols{grid-template-columns:1fr}.statgrid{grid-template-columns:1fr}.lineeditor{grid-template-columns:1fr 85px 75px 40px}.loginbox{padding:26px}}
/* Dental Clinic: logo oficial sin reconstruir su tipografía; texto de interfaz Segoe UI. */ .brand{background:linear-gradient(115deg,#71127b,#990e9a,#ba0bb4);border-radius:12px;padding:16px}.brand img{display:block;width:100%;height:auto;object-fit:contain}.sidebar .brand{background:none;border-radius:0;padding:0 4px 18px}.sidebar .brand img{height:138px;width:100%}.login .brand{padding:18px;margin-bottom:26px}.sidebar{background:linear-gradient(145deg,#71127b,#990e9a 55%,#ba0bb4)}body{font-family:"Segoe UI",system-ui,sans-serif;font-size:14px}h1{font-size:24px;font-weight:600;letter-spacing:normal}h2{font-size:18px;font-weight:600}h3{font-size:17px;font-weight:600}.hero h1{font-size:28px}.login h1{font-size:30px}.sidebar nav button{font-size:14px}.total{font-size:24px;font-weight:600}.pending{background:#dc2626;color:white}.progress{background:#eab308;color:white}.done{background:#16a34a;color:white}@media(max-width:820px){.sidebar .brand img{height:76px;width:160px;margin:auto}.sidebar .brand{padding:0 0 12px}}
.budget-state{background:#6d28d9;color:white}#agendaday{width:180px}
.categorychecks label{display:flex;align-items:center;gap:8px}.categorychecks input{width:18px;min-height:18px}#dialog .scroll-table{max-height:330px;overflow:auto}

