@charset "UTF-8";
:root{--ink:#193e4b;--muted:#697d85;--teal:#087f80;--teal-dark:#066466;--mint:#e5f4ee;--gold:#c2934b;--border:#dce7e8;--bg:#f3f7f7;--red:#b24047;--shadow:0 10px 35px #183b4908;font-family:Segoe UI,system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.5}
*,*::before,*::after{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--border);background:white;color:var(--ink);padding:10px 16px;border-radius:10px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:background .15s,box-shadow .15s}button:hover{background:#edf5f5}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--teal);color:white;border-color:var(--teal)}button.primary:hover{background:var(--teal-dark)}button.ghost{border-color:transparent;background:transparent}button.small{padding:6px 10px;font-size:12px}button.danger{color:var(--red);border-color:#efd4d6}button svg{width:17px;height:17px}a{color:var(--teal)}:focus-visible{outline:3px solid #5dbcbc;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;font-weight:650;margin-bottom:8px;line-height:1.25}h2{font-size:20px;letter-spacing:-.4px;margin-bottom:6px}h3{font-size:16px;margin-bottom:8px}p{margin-bottom:12px}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:var(--teal)}.flex{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:20px}.gap8{gap:8px}.grow{flex:1}.hidden{display:none!important}
.shell{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:234px;background:#143d49;color:#d6e6e9;padding:32px 18px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;padding:0 12px 30px}.brand img{width:42px;height:42px}.brand strong{display:block;font-size:20px;letter-spacing:2px;color:#fff}.brand small{font-size:9px;color:#9fbfc3;letter-spacing:2px;text-transform:uppercase}.nav-group{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:#89aaaf;padding:12px 16px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{color:#c7dade;background:transparent;border:0;justify-content:flex-start;padding:13px 16px;border-radius:10px;font-weight:500}.sidebar nav button svg{width:20px;height:20px;opacity:.85}.sidebar nav button.active{background:#ffffff14;color:#fff;box-shadow:inset 3px 0 #75d1bd}.sidebar nav button:hover{background:#ffffff0b}.sidebar .bottom{margin-top:auto;padding:22px 12px 0;border-top:1px solid #ffffff14}.status-dot{display:inline-block;width:7px;height:7px;background:#79c9ac;border-radius:50%;margin-right:6px}.sidebar .bottom small{color:#a4bdc4}.workspace{grid-column:2;min-width:0}.topbar{height:79px;padding:0 36px;border-bottom:1px solid var(--border);background:#ffffffd9;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar .date{font-size:12px;color:var(--muted)}.profile-dot{background:#e4f0ed;color:var(--teal);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:700}.content{padding:30px 36px 50px;max-width:1600px;margin:auto}.demo-bar{padding:7px 36px;color:#765825;background:#fff3d9;font-size:12px;border-bottom:1px solid #efe0bf}.page-head{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-bottom:26px}.page-head p{margin:0;color:var(--muted)}.hero{background:linear-gradient(115deg,#17404f,#176463);border-radius:18px;color:white;padding:32px;position:relative;overflow:clip}.hero:after{content:"";position:absolute;width:230px;height:230px;border:38px solid #ffffff05;border-radius:50%;right:-18px;top:-76px;pointer-events:none}.hero .eyebrow{color:#a8dbd3}.hero p{color:#bdd7db}.hero h1{font-size:29px}.hero button{position:relative;z-index:1;background:#e0f2ea;color:#18534f;border:0}.hero .avatar{height:72px;width:72px;font-size:24px;border-radius:20px;background:#ffffff12;border:1px solid #ffffff30}.avatar{display:grid;place-items:center;border-radius:13px;width:42px;height:42px;background:#e7f1ef;color:var(--teal);font-size:14px;font-weight:600;flex-shrink:0}.hero .avatar{color:white}.hero .pill{background:#e3f5eb;color:#1c6860}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:23px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.stat .value{font-size:28px;font-weight:650;letter-spacing:-1px;margin:10px 0 1px}.stat .value.date-value{font-size:21px}.stat .stat-icon{background:var(--mint);padding:8px;border-radius:10px;display:grid;place-items:center;color:var(--teal)}.stat svg{height:18px;width:18px}.card{background:white;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.card-head{padding:21px 24px;border-bottom:1px solid #e7eeef;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-head p{margin:3px 0 0}.card-body{padding:24px}.two-cols{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.equal-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.pill{padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;background:#edf2f4;display:inline-flex;align-items:center;white-space:nowrap}.pill.green{background:#e1f1e9;color:#28735c}.pill.gold{background:#fff3de;color:#94702c}.pill.red{background:#fbe8e9;color:#a94d54}.pill.blue{background:#e8effa;color:#4f72a3}.pill.purple{background:#f0eafa;color:#7c6199}.empty{text-align:center;padding:42px 24px;color:var(--muted)}.empty svg{width:36px;height:36px;stroke:#91abae;margin-bottom:10px}.empty strong{display:block;color:var(--ink);font-size:15px;margin-bottom:5px}.empty p{font-size:13px;margin-bottom:16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#70868d;font-weight:650;padding:14px 20px;background:#f8fbfb;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:17px 20px;border-bottom:1px solid #ecf1f1;font-size:13px;vertical-align:top}tr:last-child td{border-bottom:0}td strong{font-weight:600}td .sub{display:block;color:var(--muted);font-size:11px;margin-top:4px}td.actions{white-space:nowrap}td.amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}th.right{text-align:right}tr.clickable:hover td{background:#f5faf9}.table-title{min-width:170px}.searchbar{display:flex;gap:10px;align-items:center;margin-bottom:22px}.searchbar input{max-width:450px}.searchbar svg{width:20px;flex-shrink:0}.tabs{display:flex;gap:5px;overflow:auto;padding:12px 0 2px;border-bottom:1px solid var(--border);margin-bottom:22px}.tabs button{white-space:nowrap;border:0;border-radius:0;background:transparent;padding:14px 16px;color:#71878e;border-bottom:3px solid transparent;font-size:13px}.tabs button.active{color:var(--teal);border-color:var(--teal);font-weight:700}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.info-grid dt{font-size:11px;color:var(--muted);margin-bottom:5px}.info-grid dd{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.notice{border:1px solid #eadbbd;background:#fff8ea;color:#836331;border-radius:10px;padding:13px 16px;font-size:12px;margin-bottom:18px}.notice.info{border-color:#cfe2e6;background:#eff7f9;color:#476c78}.notice.error{background:#fff0f0;border-color:#edc4c4;color:#a43a43}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#506c76;min-width:0}.field input,.field select,.field textarea,input.search{width:100%;border:1px solid #d5e1e3;border-radius:8px;padding:11px 12px;background:#fcfefe;color:var(--ink);font-weight:400;min-height:43px}.field textarea{resize:vertical;min-height:85px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#44a7a2;outline:2px solid #ceeae5}.field input[readonly]{background:#f3f6f6}.span2{grid-column:1/-1}.form-section{padding:20px 0;border-bottom:1px solid #ebf1f1}.form-section:first-child{padding-top:0}.form-section h3{font-size:14px;margin-bottom:18px;color:var(--teal)}.form-footer{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:24px}.form-footer small{margin-right:auto}.check{display:flex;gap:10px;align-items:center;font-size:13px}.check input{accent-color:var(--teal);width:17px;height:17px}.list-item{padding:16px 24px;border-bottom:1px solid #edf2f2;display:flex;gap:14px;align-items:center}.list-item:last-child{border-bottom:0}.list-item .time{font-size:13px;font-weight:700;min-width:48px;color:var(--teal)}.list-item .grow{min-width:0}.list-item p{margin:2px 0 0;font-size:12px;color:var(--muted)}.link-button{border:0;padding:0;background:none;border-radius:0;text-align:left;display:inline;font-weight:600;color:var(--teal)}.link-button:hover{background:none;text-decoration:underline}.timeline{border-left:2px solid #dbece8;margin:4px 4px 4px 10px;padding-left:22px}.timeline article{padding-bottom:25px;position:relative}.timeline article:before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#8fcbbd;left:-28px;top:6px;border:2px solid white}.timeline article:last-child{padding-bottom:0}.timeline p{margin:5px 0;white-space:pre-wrap}.timeline small{font-size:11px}
dialog{border:1px solid var(--border);border-radius:18px;box-shadow:0 30px 100px #062e3f35;padding:0;width:min(820px,calc(100% - 32px));max-height:90vh;color:var(--ink);background:white}dialog.wide{width:min(1160px,calc(100% - 32px))}dialog::backdrop{background:#0d2d3c77;backdrop-filter:blur(3px)}.modal-head{padding:22px 26px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:white;z-index:2}.modal-head h2{margin:0}.modal-content{padding:25px}.modal-head button{padding:5px 10px;font-size:20px}.form-error:empty{display:none}.form-error{padding:12px;background:#fff1f1;color:#ab3840;border:1px solid #eabebe;border-radius:8px;margin:15px 0;white-space:pre-wrap}.pending{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.pending p{flex-basis:100%}.loading{text-align:center;padding:90px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:10px;color:white;background:#174f4c;box-shadow:0 12px 30px #092c3b30;max-width:min(90vw,600px);z-index:100;display:none}#toast.show{display:block}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:#143d49;padding:12vh 12%;color:white;display:flex;flex-direction:column;justify-content:center}.login-brand .brand{padding:0 0 60px}.login-brand h1{font-size:44px;font-weight:500;line-height:1.15}.login-brand p{color:#aac9cd;max-width:350px;font-size:16px}.login-form{display:grid;place-items:center;padding:40px}.login-box{width:100%;max-width:390px}.login-box form{display:grid;gap:17px}.login-box button{width:100%;margin-top:5px}.login-box h2{font-size:27px}.login-box .notice{margin-top:22px}.login-brand .version{color:#89acb1;margin-top:60px;font-size:11px}
.dental-chart{overflow:auto;padding:20px 8px}.arcade{display:flex;justify-content:center;gap:5px;min-width:760px;margin:0 auto 13px}.arcade.primary-teeth{min-width:510px}.tooth{display:flex;flex-direction:column;align-items:center;width:42px;padding:5px 2px 7px;border:1px solid transparent;border-radius:8px;background:transparent;color:#6e858d;gap:4px;font-size:11px;flex-shrink:0}.tooth:hover,.tooth.selected{background:#e8f4ee;border-color:#82c2b3}.tooth svg{width:36px;height:42px;stroke:#9db4ba;fill:white;stroke-width:1}.tooth .dental-surface{fill:#fff}.tooth .s-sano{fill:#d1ebe3}.tooth .s-caries{fill:#e38b8f}.tooth .s-restauracion-previa{fill:#7eadd5}.tooth .s-tratamiento-indicado{fill:#ecc47c}.tooth .s-tratamiento-realizado{fill:#78bca4}.tooth.absent svg{opacity:.25}.tooth.absent .missing-mark{stroke:#a44e56;stroke-width:3;opacity:1}.tooth .missing-mark{display:none}.tooth.absent .missing-mark{display:initial}.tooth .tooth-caption{font-size:8px;height:12px;max-width:45px;overflow:hidden;white-space:nowrap}.dental-legend{display:flex;justify-content:center;gap:17px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding:18px}.swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;background:#fff;border:1px solid #9db4ba}.swatch.caries{background:#e38b8f}.swatch.previous{background:#7eadd5}.swatch.planned{background:#ecc47c}.swatch.done{background:#78bca4}.budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.budget-card{padding:23px}.budget-card h3{font-size:17px;margin:16px 0 4px}.budget-total{font-size:28px;letter-spacing:-1px;margin:17px 0}.budget-card .actions{border-top:1px solid #e7eeef;padding-top:16px;display:flex;flex-wrap:wrap;gap:8px}.line-editor{padding:18px;border:1px solid var(--border);background:#f8fbfb;border-radius:12px;margin:14px 0}.line-editor .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.line-editor .description-field{grid-column:span 2}.line-editor .line-head{display:flex;justify-content:space-between;margin-bottom:12px}.budget-totals{background:#e7f3ee;padding:18px 22px;border-radius:10px;display:flex;justify-content:space-between;align-items:center}.budget-totals strong{font-size:25px}.document-sheet{padding:35px;background:white}.document-header{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:2px solid #187c7b;padding-bottom:22px;margin-bottom:22px}.document-header img{width:50px;height:50px}.document-header h2{margin:4px 0}.document-sheet table{margin:20px 0}.document-sheet td,.document-sheet th{padding:12px}.document-sheet .totals{margin-left:auto;max-width:320px;border-top:2px solid var(--teal);padding-top:16px}.document-sheet .totals strong{font-size:23px}.signatures{display:grid;grid-template-columns:1fr 1fr;gap:80px;margin-top:65px}.signatures div{border-top:1px solid #859aa2;text-align:center;padding-top:8px;font-size:12px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.photo-card{border:1px solid var(--border);border-radius:12px;overflow:hidden}.photo-card img{width:100%;height:180px;object-fit:contain;background:#f3f7f7;display:block}.photo-card .pdf-tile{height:180px;display:grid;place-items:center;background:#eff3f6;font-size:25px;color:#9bb0b7}.photo-card .caption{padding:15px}.photo-card h3{font-size:13px;margin:0 0 3px;overflow-wrap:anywhere}.image-large{width:100%;max-height:65vh;object-fit:contain}.mobile-menu{display:none}#print-area{display:none}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.topspace{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.patient-toolbar{margin-bottom:18px}.center{text-align:center}.notice>svg{height:15px;width:15px;vertical-align:middle;margin-right:5px}.document-group td{background:#edf5f3;color:#28756f;font-size:12px}
@media(min-width:1500px){.content{padding:36px 48px}.topbar{padding:0 48px}}
@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{width:200px;padding:27px 12px}.brand{padding-left:9px}.brand strong{font-size:17px}.topbar{padding:0 22px}.content{padding:25px 22px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.two-cols{grid-template-columns:1fr}.hero{padding:25px}.tabs button{padding:12px}.info-grid{grid-template-columns:repeat(2,1fr)}.topbar .date{display:none}}
@media(max-width:750px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .15s;width:234px}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #123d4960}.workspace{width:100%}.mobile-menu{display:inline-flex;padding:7px 10px}.topbar{height:63px;padding:0 16px;position:sticky;top:0;z-index:10}.topbar .user-name{display:none}.content{padding:22px 16px}.demo-bar{padding:7px 16px}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.page-head button{padding:10px 12px}.hero{padding:24px}.hero h1{font-size:25px}.hero .avatar{display:none}.hero>.flex{flex-wrap:wrap}.hero p{font-size:12px}.cards.three{grid-template-columns:1fr}.stat{padding:18px}.stat .value{font-size:24px}.equal-cols,.budget-grid{grid-template-columns:1fr}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.card-head,.card-body{padding:18px}.info-grid{gap:20px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-card img,.photo-card .pdf-tile{height:135px}.login{grid-template-columns:1fr}.login-brand{display:none}.login-form{padding:30px;min-height:100vh}.modal-content{padding:20px}.line-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.document-sheet{padding:12px}.document-header{flex-wrap:wrap;gap:12px}.document-sheet table{font-size:11px}.document-sheet td,.document-sheet th{padding:8px}.topbar .profile-dot{display:none}.signatures{gap:30px}.form-footer{flex-wrap:wrap}.form-footer small{flex-basis:100%}.list-item{padding:15px 18px}td,th{padding:13px 15px}}
@media(max-width:430px){.form-grid,.form-grid.three{grid-template-columns:1fr}.cards{gap:10px}.stat{padding:15px}.page-head .button-label{display:none}.info-grid{grid-template-columns:1fr}.line-editor .form-grid{grid-template-columns:1fr}.line-editor .description-field{grid-column:auto}.photo-grid{grid-template-columns:1fr}.hero .between{align-items:flex-start}.hero .pill{font-size:10px}}
/* Patient ledger: a bounded viewport with its own vertical and horizontal scroll. */
.clinical-ledger{min-width:0}
.clinical-ledger .card-head{align-items:flex-start;flex-wrap:wrap}
.clinical-ledger .card-head h2{color:var(--teal);font-size:18px}
.ledger-guide,.ledger-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;font-size:12px;color:var(--muted);background:#f8fbfb;flex-wrap:wrap}
.ledger-guide{border-bottom:1px solid var(--border)}
.ledger-scroll{height:430px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:60px;scrollbar-color:#83aaa9 #eef4f3;scrollbar-width:auto}
.ledger-scroll:focus-visible{outline-offset:-3px}
.ledger-table{min-width:1260px;table-layout:fixed}
.ledger-table th{position:sticky;top:0;z-index:2;background:#eaf4f5;color:#087c88;text-transform:none;font-size:12px;letter-spacing:0;box-shadow:0 1px var(--border);padding:16px 12px}
.ledger-table th:nth-child(1){width:135px}.ledger-table th:nth-child(2){width:260px}.ledger-table th:nth-child(3){width:130px}.ledger-table th:nth-child(4){width:155px}.ledger-table th:nth-child(5){width:110px}.ledger-table th:nth-child(6){width:135px}.ledger-table th:nth-child(7){width:160px}.ledger-table th:nth-child(8){width:175px}
.ledger-table td{padding:17px 12px;border-bottom:1px solid #dce9ec;overflow-wrap:anywhere}
.ledger-table tbody>tr:nth-child(even){background:#eaf5f8}
.ledger-table tbody>tr:nth-child(odd){background:#fff}
.ledger-table .ledger-detail strong{font-weight:500}
.ledger-date{display:flex;align-items:center;gap:7px;min-height:40px;font-size:12px;line-height:1.4}
.ledger-date svg{width:17px;height:17px;color:var(--teal);flex-shrink:0}
.ledger-date-button{padding:9px 8px;min-height:44px;font-size:12px;justify-content:flex-start;font-weight:500;width:100%;background:#ffffffad}
.ledger-date-button svg{flex-shrink:0}
.ledger-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px}
.ledger-actions button{white-space:normal;min-height:32px}
.ledger-row-menu summary{cursor:pointer;color:var(--teal);font-size:11px;padding:6px 0;text-align:center}.ledger-row-menu button{width:100%;margin-top:4px}
.ledger-void td.amount>strong{text-decoration:line-through;color:var(--muted)}
.ledger-footer{border-top:1px solid var(--border);background:#f1f8f5;color:#3c6966}
.ledger-footer>span{display:flex;align-items:center;gap:8px}.ledger-footer svg{width:17px;height:17px}
.ledger-footer>strong{font-size:23px;color:var(--teal);font-variant-numeric:tabular-nums}
.ledger-empty td{height:230px;text-align:center;vertical-align:middle;color:var(--muted)}
.ledger-table .ledger-editor-row>td{padding:0;background:#f3fbf7;border-top:2px solid #5baa9d;border-bottom:2px solid #5baa9d}
.ledger-editor-row form{padding:20px 22px;max-width:1120px}
.ledger-editor-title{display:flex;gap:16px;align-items:center;margin-bottom:18px}.ledger-editor-title strong{font-size:16px;color:var(--teal)}.ledger-editor-title span{font-size:12px;color:var(--muted)}
.ledger-fields{align-items:start;gap:13px 18px}.ledger-fields>.span2{grid-column:span 2}.ledger-fields textarea{min-height:68px}
.ledger-fields input[type="date"]{color-scheme:light;cursor:pointer;min-width:160px}
.ledger-professional{min-height:43px;padding:11px 0;font-weight:400;color:var(--ink)}
.ledger-extra{border-top:1px solid #d6e7e1;padding:12px 0;margin-top:12px}.ledger-extra summary{cursor:pointer;color:var(--teal);font-size:13px;font-weight:600}.ledger-extra[open] summary{margin-bottom:16px}.ledger-extra .form-grid{gap:14px}
.ledger-save{display:flex;align-items:center;gap:10px;margin-top:18px;border-top:1px solid #d6e7e1;padding-top:16px}.ledger-save small{margin-right:auto}.ledger-edit-note{margin:12px 0 0;font-size:12px}
.reserved-appointments{max-height:280px;overflow:auto;overscroll-behavior:contain}
@media(max-width:750px){.ledger-scroll{height:390px}.ledger-guide,.ledger-footer{padding:12px 18px}.ledger-editor-row form{max-width:900px}.ledger-editor-title{flex-wrap:wrap}.ledger-fields.form-grid.three,.ledger-extra .form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* The sidebar can fold without re-rendering the patient's form. */
.shell{transition:grid-template-columns .18s ease}
.shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}
.sidebar{overflow-y:auto;transition:transform .18s ease}
.sidebar[aria-hidden="true"]{transform:translateX(-100%);visibility:hidden}
.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:10px;flex-shrink:0}
.sidebar-toggle:hover{background:#e9f3f0}
.sidebar-toggle[aria-expanded="true"]{background:#e9f3f0;color:var(--teal)}
.sidebar-mobile-head,.sidebar-backdrop{display:none}
@media(max-width:750px){
  body.navigation-open{overflow:hidden}
  .sidebar{z-index:30;width:min(280px,85vw);padding:18px 18px 22px}
  .sidebar.open{box-shadow:8px 0 30px #123d4926}
  .sidebar .brand{padding:12px 8px 24px}
  .sidebar-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px 10px;color:#a4bdc4;font-size:10px;letter-spacing:1.4px}
  .sidebar-mobile-head button{width:42px;height:42px;padding:0;color:#fff;font-size:26px}
  .sidebar-mobile-head button:hover{background:#ffffff14}
  .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:25;border:0;border-radius:0;background:#123d4970;cursor:pointer}
}
@media(prefers-reduced-motion:reduce){.shell,.sidebar{transition:none}}
@media print{@page{size:A4;margin:15mm}body{background:white;color:#142f3a;font-size:11px}#app,#toast,dialog{display:none!important}#print-area{display:block!important}.document-sheet{padding:0;box-shadow:none;border:0}.document-sheet tr{break-inside:avoid}.document-header{break-inside:avoid}.document-sheet th{background:#edf5f3!important;print-color-adjust:exact}.document-sheet .pill{border:1px solid #aaa}.signatures{break-inside:avoid}.no-print{display:none!important}}
/* Direct cell editing, like the clinical ledger reference. */
.ledger-editable{border:0;padding:0;margin:0;min-width:0}
.ledger-table{min-width:1400px}
.ledger-table th:nth-child(1){width:165px}.ledger-table th:nth-child(2){width:270px}.ledger-table th:nth-child(3){width:150px}.ledger-table th:nth-child(4){width:165px}.ledger-table th:nth-child(5){width:110px}.ledger-table th:nth-child(6){width:165px}.ledger-table th:nth-child(7){width:190px}.ledger-table th:nth-child(8){width:155px}
.ledger-table td{padding:12px 8px}
.ledger-table input,.ledger-table select,.ledger-table textarea{width:100%;min-width:0;border:1px solid #cbdde1;background:#ffffffa8;border-radius:6px;padding:9px 7px;font-size:12px;line-height:1.5;color:var(--ink);box-shadow:none}
.ledger-table textarea{resize:vertical;min-height:76px}
.ledger-table input[type=date]{min-height:40px;color-scheme:light;font-variant-numeric:tabular-nums}
.ledger-table input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.85;padding:3px}
.ledger-table input[data-cell=amount]{text-align:right;font-variant-numeric:tabular-nums}
.ledger-table input:focus,.ledger-table select:focus,.ledger-table textarea:focus{border-color:var(--teal);outline:2px solid #6ec4b875;outline-offset:0;background:#fff}
.ledger-table small{display:block;font-size:10px;margin-top:5px;line-height:1.5}
.ledger-table .ledger-extra{border:0;padding:0;margin-top:7px}
.ledger-table .ledger-extra summary{font-size:10px;font-weight:500}
.ledger-table .ledger-extra[open] summary{margin-bottom:8px}
.ledger-table .ledger-extra label{display:block;font-size:10px;color:var(--muted);margin-top:8px}
.ledger-table .ledger-changed>td:first-child{box-shadow:inset 3px 0 #dfb060}
.ledger-row-status{font-size:10px;color:#946820;text-align:center}
.ledger-void input,.ledger-void textarea,.ledger-void select{opacity:.65;background:#f1f3f3}
.ledger-void input[data-cell=amount]{text-decoration:line-through}
.ledger-confirm{padding:12px 22px 18px}
.ledger-confirm .form-error:empty{display:none}
.ledger-save{margin:0;padding:0;border:0;flex-wrap:wrap}
.ledger-save>div{margin-right:auto}
.ledger-save strong{font-size:12px}.ledger-save small{display:block;font-size:11px;margin-top:4px}
@media(max-width:750px){.ledger-confirm{padding:12px 18px}.ledger-save>div{flex-basis:100%}.ledger-table input,.ledger-table select,.ledger-table textarea{font-size:14px}}

/* Public Ruray reference: pastel icon tiles, soft light, rounded panels and short transitions.
   Clinical content remains a stable, high-contrast workspace with no looping effects. */
:root{--ink:#253342;--muted:#657487;--teal:#087e88;--teal-dark:#08636c;--border:#e0e5ee;--bg:#f5f6fa;--shadow:0 5px 24px #27385506}
.workspace{background:radial-gradient(ellipse at 95% 4%,#e9e5fa70,transparent 38%),radial-gradient(ellipse at 0 0,#dbf8f470,transparent 36%),var(--bg)}
.sidebar{background:linear-gradient(165deg,#171e2b,#172d36);border-right:1px solid #ffffff10}
.sidebar nav button{min-height:49px;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.sidebar nav button svg{padding:5px;width:29px;height:29px;background:#ffffff09;border-radius:9px;color:#b8d2e3}
.sidebar nav button.active{background:linear-gradient(100deg,#48d3c91c,#8a70df15);box-shadow:inset 3px 0 #7ce3d7;color:#f4ffff}
.sidebar nav button.active svg{background:#3bd6c925;color:#91ebe0}
.topbar{background:#ffffffdb;backdrop-filter:blur(14px)}
.brand img{border-radius:12px;background:#fff;padding:3px}
.hero{background:radial-gradient(ellipse at 85% 0,#7561aa40,transparent 65%),linear-gradient(115deg,#1b2939,#164850);box-shadow:0 8px 30px #1a364810}
.hero:after{width:310px;height:310px;border-width:55px;top:-110px;right:-60px}
.patient-hero{padding:25px 28px;border-radius:20px}
.hero h1{font-size:28px;font-weight:650;letter-spacing:-.8px}
.hero .avatar{border-radius:18px;background:linear-gradient(145deg,#ffffff20,#ffffff08)}
.hero .gap8>span:not(.pill){font-size:12px;color:#c4dbdf}
.card,.stat,.photo-card{border-radius:17px;box-shadow:var(--shadow)}
.card-head{background:linear-gradient(100deg,#fff,#f9fafc)}
.card-head h2{font-size:17px;font-weight:650;letter-spacing:-.3px}
.card-head p{font-size:12px}
.stat .stat-icon{background:#dff6f1;color:#16786d;border-radius:11px}
.stat:nth-child(2) .stat-icon{background:#e8e4fa;color:#7656b5}
.stat:nth-child(3) .stat-icon{background:#e1effd;color:#467caf}
.stat:nth-child(4) .stat-icon{background:#fbe7ee;color:#a94c71}
.stat .value{letter-spacing:-.6px}
.tabs{gap:6px;padding:10px;margin:16px 0 22px;background:#ffffffdf;border:1px solid var(--border);border-radius:16px;box-shadow:0 4px 16px #283c5304;scrollbar-width:thin}
.tabs button{gap:8px;min-height:49px;border:1px solid transparent;border-radius:11px;padding:8px 11px;font-size:12px;color:#5f6c7c;transition:background .18s,border-color .18s,box-shadow .18s}
.tabs button:hover{background:#f0f4f9;color:#293d50}
.tabs button.active{background:#eef8f7;border-color:#bbdedb;color:#086d76;box-shadow:0 2px 7px #087f8010}
.tab-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:#edf2f7;color:#6b8096;flex-shrink:0}
.tab-icon svg{width:17px;height:17px}
.tabs button[data-tab=anamnesis] .tab-icon{background:#dff5ed;color:#2a8a70}
.tabs button[data-tab=odontogram] .tab-icon{background:#ddf5f4;color:#16868c}
.tabs button[data-tab=visits] .tab-icon{background:#e3edfc;color:#3d77b9}
.tabs button[data-tab=budgets] .tab-icon{background:#fcf0d9;color:#916520}
.tabs button[data-tab=ortho] .tab-icon{background:#ece3fb;color:#7951b2}
.tabs button[data-tab=files] .tab-icon{background:#fbe6ef;color:#b3527c}
.tabs button[data-tab=ortho].active{background:#f5f0fd;border-color:#d1bdea;color:#704aa3}
.subtabs{display:flex;gap:5px;overflow-x:auto;padding:6px;background:#edf0f5;border:1px solid #e1e6ef;border-radius:13px;scrollbar-width:thin;max-width:100%}
.subtabs button{background:transparent;border:1px solid transparent;color:#637184;white-space:nowrap;padding:10px 13px;min-height:42px;font-size:12px;border-radius:9px;flex-shrink:0;font-weight:550}
.subtabs button:hover{background:#ffffff9c;color:#344c62}
.subtabs button.active{background:white;border-color:#e0e6ef;box-shadow:0 2px 6px #243d5710;color:#166b75;font-weight:650}
.subtabs button svg{width:16px;height:16px}
.ortho-module{--teal:#7653ae;--teal-dark:#614192;--mint:#eee8f8;display:grid;gap:20px;min-width:0;padding:22px;border-radius:20px;border:1px solid #dcd2ef;background:linear-gradient(125deg,#f4f0fb8c,#f8fbff80);box-shadow:0 6px 28px #8060b308}
.module-heading{display:flex;align-items:center;gap:14px}
.module-symbol{display:grid;place-items:center;flex-shrink:0;width:49px;height:49px;border-radius:15px;background:linear-gradient(140deg,#e3d8f6,#eee8fb);color:#7550ae;border:1px solid #d9caec}
.module-symbol svg{width:26px;height:26px}
.module-heading .eyebrow{letter-spacing:1.5px;font-size:9px;color:#735394;margin-bottom:2px}
.module-heading h2{font-size:22px;margin:0}
.module-heading p{margin:3px 0 0;color:#6e7185;font-size:12px}
.ortho-module>.subtabs{background:#eae4f480;border-color:#ded5ed}
.ortho-module>.subtabs button.active{color:#70489f;border-color:#daceea;box-shadow:0 2px 8px #6849990d}
.ortho-module .ledger-table th{background:#f0ebf8;color:#725095}
.ortho-module .ledger-table tbody>tr:nth-child(even){background:#f6f3fc}
.ortho-module .ledger-footer{background:#f2eef8;color:#6d558a}
.ortho-module .ledger-footer>strong{color:#6c479d}
.photo-card,.budget-card{transition:border-color .18s ease,box-shadow .18s ease}
.photo-card:hover,.budget-card:hover{border-color:#c8d3e4;box-shadow:0 8px 22px #253f5d0b}
.photo-card img{background:linear-gradient(140deg,#f4f6fa,#edf2f7)}
.field input,.field select,.field textarea{border-color:#d8e0e9;background:#fdfefe;border-radius:9px}
.form-section h3{font-size:13px;letter-spacing:.1px}
.form-section{border-bottom-color:#e9edf3}
.info-grid dt{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#6a778a}
.info-grid dd{font-weight:500;color:#2d4053}
button.primary{box-shadow:0 3px 8px #233d4910}
button.primary:hover{box-shadow:0 5px 14px #233d4922}
button:active:not(:disabled){filter:brightness(.97)}
.view-enter{animation:panel-appear .2s ease-out}
dialog[open]{animation:dialog-appear .18s ease-out}
@keyframes panel-appear{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes dialog-appear{from{opacity:.5;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1100px){.tabs{gap:3px;padding:7px}.tabs button{padding:8px;font-size:11px}.ortho-module{padding:16px}}
@media(max-width:750px){.patient-hero{padding:22px}.hero h1{font-size:24px}.tabs{margin-top:12px;scroll-padding-inline:8px}.tabs button{font-size:12px;min-height:48px}.ortho-module{padding:12px;gap:16px;border-radius:16px}.module-heading{gap:11px}.module-heading h2{font-size:21px}.module-symbol{width:42px;height:42px}.module-heading p{font-size:11px}.subtabs button{min-height:44px}.ortho-module .card-head{padding:16px}.ortho-module .card-body{padding:16px}.ortho-module .cards.three{gap:10px}.card,.stat{border-radius:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact navigation keeps every icon operable instead of removing the sidebar. */
.shell{--sidebar-size:234px;--rail-size:80px;grid-template-columns:var(--sidebar-size) minmax(0,1fr);transition:grid-template-columns .24s ease}
.shell.sidebar-collapsed{--sidebar-size:var(--rail-size);grid-template-columns:var(--sidebar-size) minmax(0,1fr)}
.sidebar{width:var(--sidebar-size);transform:none;visibility:visible;overflow-x:hidden;transition:width .24s ease,padding .24s ease}
.sidebar .brand{flex-shrink:0;min-height:72px}
.sidebar .brand img{flex-shrink:0}
.sidebar .brand-copy,.sidebar .nav-label{white-space:nowrap}
.sidebar nav button{min-width:0;position:relative}
.sidebar nav button svg{flex-shrink:0;transition:transform .2s,background .2s,color .2s}
.sidebar nav button[data-section=home] svg{background:#33c4b31c;color:#7fe4d7}
.sidebar nav button[data-section=patients] svg{background:#7e87e51f;color:#c5b6ff}
.sidebar nav button[data-section=calendar] svg{background:#4f9ae526;color:#9bcdff}
.sidebar nav button[data-section=tasks] svg{background:#e9a8641c;color:#efcb99}
.sidebar nav button[data-section=reports] svg{background:#d66c9c1c;color:#f0adcf}
.sidebar nav button[data-section=settings] svg{background:#8497af1f;color:#b9cadf}
.sidebar nav button.active{background:linear-gradient(110deg,#44d4c92b,#9276e322);box-shadow:inset 3px 0 #75e5d7,0 4px 16px #04192715}
.sidebar-collapsed .sidebar{padding:27px 12px 22px}
.sidebar-collapsed .sidebar .brand{justify-content:center;padding:0 0 25px;gap:0}
.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-group,.sidebar-collapsed .connection-label,.sidebar-collapsed .bottom small{display:none}
.sidebar-collapsed .sidebar nav{gap:10px;margin-top:18px}
.sidebar-collapsed .sidebar nav button{justify-content:center;width:100%;height:52px;padding:0;border-radius:14px;gap:0}
.sidebar-collapsed .sidebar nav button svg{width:33px;height:33px;padding:6px;border-radius:10px;opacity:1}
.sidebar-collapsed .sidebar .bottom{padding:20px 0 0;text-align:center}
.sidebar-collapsed .sidebar .bottom p{margin-bottom:0}
.sidebar-collapsed .status-dot{margin:0;width:9px;height:9px;box-shadow:0 0 0 5px #5be1bd12}
.nav-tooltip{position:fixed;z-index:80;pointer-events:none;max-width:220px;padding:9px 13px;border:1px solid #ffffff24;border-radius:9px;background:#223446;color:#f5fcff;font-size:12px;font-weight:600;box-shadow:0 8px 24px #122f4725}
.nav-tooltip[hidden]{display:none}
.sidebar-toggle svg{transition:transform .24s ease}
.sidebar-toggle[aria-expanded=false]{background:#edf3fa;color:#6475a4;border-color:#dce4ef}
.sidebar-toggle[aria-expanded=false] svg{transform:scaleX(.8)}
.topbar>div:first-child{min-width:0}
.topbar>div:first-child>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar>div:last-child{flex-shrink:0}
.effects-toggle{min-height:38px;white-space:nowrap;border-color:#d9d4ee;background:#f6f2fd;color:#73529e;gap:6px}
.effects-toggle[aria-pressed=true]{background:linear-gradient(120deg,#e6faf5,#f0e5fb);border-color:#c4dedd;box-shadow:0 2px 10px #8066b60d;color:#5a5999}
.effects-toggle:disabled{cursor:default;opacity:.65}
.effects-toggle svg{width:18px;height:18px}

/* Ambient light and responsive surfaces. All data and form controls stay still. */
.workspace{position:relative;isolation:isolate;background:linear-gradient(140deg,#f4f9fb,#f6f3fb 60%,#f4faf8)}
.workspace::before{content:"";position:fixed;z-index:-1;pointer-events:none;inset:0;background:radial-gradient(ellipse at 15% 15%,#68e2cf28,transparent 45%),radial-gradient(ellipse at 85% 45%,#a78be230,transparent 45%),radial-gradient(ellipse at 55% 90%,#7ebcf421,transparent 45%);opacity:.8;transform-origin:center}
.effects-on .workspace::before{animation:ambient-light 20s ease-in-out infinite alternate}
.hero{isolation:isolate;background:linear-gradient(120deg,#182c42,#175c66 58%,#42517d)}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at var(--glow-x,78%) var(--glow-y,25%),#65e0d252,transparent 58%),radial-gradient(ellipse at 95% 100%,#ae8aed40,transparent 65%);opacity:.9}
.hero::after{border-color:#a8dbf510;box-shadow:0 0 0 30px #b6a0ef05}
.effects-on .hero::after{animation:halo-drift 12s ease-in-out infinite alternate}
.cards .stat{position:relative;border-top:2px solid #7bcfc1;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}
.cards .stat:nth-child(2){border-top-color:#b69be4}
.cards .stat:nth-child(3){border-top-color:#86b9ea}
.cards .stat:nth-child(4){border-top-color:#e7a7c6}
.stat .stat-icon{transition:transform .2s ease,box-shadow .2s ease}
.effects-on .cards .stat:hover{transform:translateY(-3px);box-shadow:0 12px 28px #466a8813}
.effects-on .stat:hover .stat-icon{transform:rotate(-7deg) scale(1.06);box-shadow:0 4px 14px #487c8e12}
.effects-on .sidebar nav button:hover svg,.effects-on .sidebar nav button:focus-visible svg{transform:scale(1.1)}
.tabs button,.subtabs button{transition:background .2s,border-color .2s,box-shadow .2s,color .2s}
.effects-on .tabs button:hover .tab-icon{transform:translateY(-2px)}
.tab-icon{transition:transform .2s ease,box-shadow .2s ease}
.tabs button.active .tab-icon{box-shadow:0 3px 9px #64878c18}
.effects-on .effects-toggle:hover svg{transform:rotate(-12deg) scale(1.12)}
.effects-toggle svg{transition:transform .2s ease}
.effects-on .content>.stack>.cards .stat{animation:surface-appear .32s ease-out backwards}
.effects-on .content>.stack>.cards .stat:nth-child(2){animation-delay:.04s}
.effects-on .content>.stack>.cards .stat:nth-child(3){animation-delay:.08s}
.effects-on .content>.stack>.cards .stat:nth-child(4){animation-delay:.12s}
body:not(.effects-on) .view-enter,body:not(.effects-on) dialog[open]{animation:none}
body:not(.effects-on) .shell,body:not(.effects-on) .sidebar,body:not(.effects-on) .sidebar-toggle svg{transition:none}
@keyframes ambient-light{from{opacity:.7;transform:translate3d(-1%,-1%,0) scale(1.02)}to{opacity:1;transform:translate3d(1%,1%,0) scale(1.06)}}
@keyframes halo-drift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-32px,15px,0) scale(1.08)}}
@keyframes surface-appear{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.shell{--sidebar-size:200px}.topbar .user-name{display:none}}
@media(max-width:750px){
  .shell,.shell.sidebar-collapsed{display:grid;--rail-size:64px;--sidebar-size:64px;grid-template-columns:64px minmax(0,1fr)}
  .workspace{grid-column:2;width:auto}
  .sidebar{width:64px;padding:18px 8px;transform:none}
  .sidebar.open{width:min(280px,calc(100vw - 48px));padding:18px 18px 22px}
  .sidebar-collapsed .sidebar{padding:20px 8px 18px}
  .sidebar-collapsed .sidebar-mobile-head{display:none}
  .sidebar-collapsed .sidebar .brand{padding-bottom:14px;min-height:54px}
  .sidebar-collapsed .brand img{width:36px;height:36px}
  .sidebar-collapsed .sidebar nav{gap:8px;margin-top:14px}
  .sidebar-collapsed .sidebar nav button{height:48px;min-height:48px;border-radius:12px}
  .sidebar-collapsed .sidebar nav button svg{width:30px;height:30px}
  .topbar{gap:8px;padding:0 12px}
  .topbar>div{gap:7px}
  .topbar>div:first-child{flex:1}
  .topbar>div:first-child>strong{font-size:12px}
  .effects-label{display:none}
  .effects-toggle{width:38px;height:40px;padding:8px!important}
  .topbar .sidebar-toggle{width:38px;height:40px;padding:9px}
  .topbar>div:last-child>button.ghost{width:36px;height:40px;padding:8px}
  .content{padding:20px 12px 35px}
  .demo-bar{padding:7px 12px;font-size:10px}
  .patient-hero{padding:20px 16px}
  .hero h1{font-size:23px;overflow-wrap:anywhere}
  .module-heading{align-items:flex-start}
  .module-heading p{overflow-wrap:anywhere}
  .cards{grid-template-columns:1fr}
  .page-head{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.effects-on .stat:hover,.effects-on .stat:hover .stat-icon,.effects-on .sidebar nav button:hover svg,.effects-on .tabs button:hover .tab-icon{transform:none}}
/* Clinical editing: compact ledgers, surface colours and a tooth-by-tooth budget. */
.clinical-ledger .card-head{padding:16px 18px;gap:12px}
.clinical-ledger .card-head h2{font-size:17px}
.ledger-guide,.ledger-footer{padding:9px 16px;font-size:11px}
.ledger-scroll{height:360px}
.ledger-table{min-width:1100px}
.ledger-table th{padding:11px 6px;font-size:11px}
.ledger-table th:nth-child(1){width:133px}.ledger-table th:nth-child(2){width:230px}.ledger-table th:nth-child(3){width:100px}.ledger-table th:nth-child(4){width:133px}.ledger-table th:nth-child(5){width:95px}.ledger-table th:nth-child(6){width:120px}.ledger-table th:nth-child(7){width:150px}.ledger-table th:nth-child(8){width:120px}
.ledger-table td{padding:9px 6px}
.ledger-table input,.ledger-table select,.ledger-table textarea{padding:6px 5px;font-size:12px;line-height:1.4}
.ledger-table textarea{min-height:54px}
.ledger-table input[type=date]{min-height:34px;font-size:11px}
.ledger-table input[type=date]::-webkit-calendar-picker-indicator{padding:1px;margin-left:0}
.ledger-table small{line-height:1.3;margin-top:4px}
.ledger-table .ledger-extra{margin-top:5px}
.ledger-actions button{padding:6px;font-size:11px}
.ledger-footer>strong{font-size:21px}
.ledger-confirm{padding:10px 16px 14px}
.dental-chart{padding:8px 12px 4px}
.dental-chart .arcade{min-width:950px;gap:3px;margin:6px auto 18px}
.dental-chart .primary-teeth{min-width:590px}
.tooth{width:55px;padding:3px;gap:3px}
.tooth svg{width:49px;height:49px;overflow:visible}
.tooth-number{background:transparent;border:0;padding:5px 9px;font-weight:700;color:var(--ink);font-size:13px;border-radius:6px}
.tooth-number:hover{background:#dceee9}
.tooth .dental-surface{stroke:#8aa3ac;stroke-width:.7;cursor:pointer;transition:filter .12s,stroke .12s}
.tooth .dental-surface:hover,.tooth .dental-surface:focus{stroke:#123e52;stroke-width:1.8;filter:brightness(.94);outline:none}
.tooth .dental-surface[aria-disabled=true]{cursor:default}
.tooth .missing-mark{pointer-events:none}
.tooth .s-sin-registrar,.swatch.s-sin-registrar{fill:#fff;background:#fff}
.tooth .s-sano,.swatch.s-sano{fill:#6fcba2;background:#6fcba2}
.tooth .s-caries,.swatch.s-caries{fill:#ec777e;background:#ec777e}
.tooth .s-restauracion-previa,.swatch.s-restauracion-previa{fill:#79b2e7;background:#79b2e7}
.tooth .s-tratamiento-indicado,.swatch.s-tratamiento-indicado{fill:#efc36a;background:#efc36a}
.tooth .s-tratamiento-realizado,.swatch.s-tratamiento-realizado{fill:#ad94d5;background:#ad94d5}
.dental-legend{padding:12px 18px;gap:12px;background:#f7fafb;border-block:1px solid var(--border)}
.dental-legend .swatch{width:13px;height:13px;vertical-align:-2px}
.surface-editor{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center}
.surface-preview{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.surface-preview .tooth{width:135px;background:transparent;border:0}
.surface-preview svg{width:120px;height:120px}
.surface-preview .dental-surface{cursor:default}
.surface-preview .surface-selected{stroke:#173f52;stroke-width:2;stroke-dasharray:2 1}
.surface-preview small{color:var(--muted)}
.surface-palette{border:0;padding:0;margin:0;min-width:0}
.surface-palette legend{font-weight:650;margin-bottom:12px;font-size:13px}
.surface-choice{display:flex;align-items:center;gap:10px;padding:10px;margin:6px 0;border:1px solid var(--border);border-radius:10px;cursor:pointer;min-height:55px}
.surface-choice:has(input:checked){border-color:var(--teal);background:#eef8f6;box-shadow:0 0 0 1px var(--teal)}
.surface-choice input{width:16px;height:16px;accent-color:var(--teal);flex-shrink:0}
.surface-choice .swatch{width:23px;height:23px;flex-shrink:0;margin:0}
.surface-choice b{font-size:13px}.surface-choice small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.budget-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 12px}
.budget-editor-heading h3{margin:0 0 5px;font-size:16px}.budget-editor-heading p{margin:0;color:var(--muted);font-size:12px}
.budget-teeth-scroll{max-height:460px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:0 0 12px 12px;scroll-padding-top:38px;scrollbar-gutter:stable}
.budget-tooth-columns,.budget-tooth-row{display:grid;grid-template-columns:64px minmax(0,1fr) 132px;gap:14px}
.budget-tooth-columns{padding:12px 14px;background:#eaf4f3;border:1px solid var(--border);border-bottom:0;border-radius:10px 10px 0 0;color:var(--teal);font-weight:650;font-size:12px}
.budget-tooth-group h3{position:sticky;top:0;z-index:1;margin:0;padding:10px 14px;font-size:11px;text-transform:uppercase;letter-spacing:.8px;background:#f0f5f7;color:#53727c;border-bottom:1px solid var(--border)}
.budget-tooth-row{padding:12px 14px;align-items:start;border-bottom:1px solid #e4edef;background:white}
[data-tooth-lines]:nth-child(odd) .budget-tooth-row{background:#f8fbfb}
.budget-tooth-number{display:flex;flex-direction:column;align-items:center;padding:9px 0;border:1px solid #c7e3df;border-radius:9px;background:#e9f5f1;color:var(--teal)}
.budget-tooth-number b{font-size:21px;line-height:1.2}.budget-tooth-number small{font-size:10px;margin-top:2px}
.budget-tooth-treatment>textarea{width:100%;min-height:62px;resize:vertical;font-size:13px;line-height:1.5;padding:10px 12px;border:1px solid #cbdde1;border-radius:8px;background:#ffffffcc;color:var(--ink)}
.budget-tooth-row button,.budget-tooth-row textarea{scroll-margin-block:45px 12px}
.budget-tooth-details summary{font-size:11px;color:var(--muted);cursor:pointer;padding:7px 0 0}
.budget-tooth-details[open] summary{padding-bottom:10px}
.budget-tooth-details .form-grid{gap:10px}
.budget-tooth-price .field{font-size:10px;gap:5px}
.budget-tooth-price input{min-width:0;padding:8px;font-size:13px;font-variant-numeric:tabular-nums}
.budget-tooth-actions{display:flex;gap:4px;margin-top:7px;justify-content:space-between}
.budget-tooth-actions button{font-size:11px;padding:5px 7px;min-height:30px}
.budget-tooth-treatment:has(textarea:focus)~.budget-tooth-price,.budget-tooth-row:focus-within .budget-tooth-number{color:var(--teal)}
.document-sheet td:nth-child(2){white-space:pre-wrap;min-width:180px}
@media(max-width:750px){
  .ledger-scroll{height:350px}.ledger-table input,.ledger-table select{min-height:40px;font-size:13px}.ledger-table textarea{font-size:13px}
  .budget-tooth-columns,.budget-tooth-row{grid-template-columns:46px minmax(0,1fr) 105px;gap:9px;padding:10px}
  .budget-teeth-scroll{max-height:55vh}.budget-editor-heading{flex-wrap:wrap}
}
@media(max-width:480px){
  .surface-editor{grid-template-columns:1fr;gap:16px}.surface-preview{display:none}
  .budget-tooth-columns{grid-template-columns:40px 1fr}.budget-tooth-columns>span:last-child{display:none}
  .budget-tooth-row{grid-template-columns:40px minmax(0,1fr)}.budget-tooth-price{grid-column:2;display:flex;gap:12px;align-items:end}.budget-tooth-price .field{max-width:115px}
  .budget-tooth-details .form-grid{grid-template-columns:1fr}
}
/* Local visual ambience: decorative SVG/CSS only; never alters clinical colours. */
.ambient-scene{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;opacity:.5}
.ambient-scene svg{width:100%;height:100%;fill:none}
.ambient-track{stroke:#8aaac2;stroke-width:1;opacity:.18}
.ambient-signal{stroke:#79abcb;stroke-width:1.4;stroke-dasharray:70 1400;opacity:.45}
.ambient-signal path:nth-child(2){stroke:#aa8bcb;stroke-dashoffset:400}.ambient-signal path:nth-child(3){stroke:#5fbcae;stroke-dashoffset:800}
.ambient-nodes{fill:#6facba;stroke:white;stroke-width:2;opacity:.4}
.hero-art{position:absolute;inset:0 0 0 auto;width:60%;z-index:-1;pointer-events:none;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 30%)}
.hero-art svg{width:100%;height:100%;fill:none}
.hero-wire{stroke:#a8e7e3;stroke-width:.7;opacity:.17}
.hero-signal{stroke:#c6fff1;stroke-width:1.6;stroke-dasharray:25 650;opacity:.55}
.hero-signal path:nth-child(2){stroke:#c6b6ff;stroke-dashoffset:230}
.hero-signal path:nth-child(3){stroke:#7ed9ff;stroke-dashoffset:430}
.hero-stars{fill:#c3ffed;opacity:.5}
.hero-stars circle:nth-child(2){fill:#d8c4ff}.hero-stars circle:nth-child(3){fill:#96eaff}
.hero-sheen{position:absolute;inset:-100% -60%;background:linear-gradient(105deg,transparent 43%,#b5f9e50a 48%,#c9bcff1a 50%,transparent 57%);transform:translateX(-25%) rotate(-12deg);opacity:.5}
.effects-on .ambient-signal{animation:circuit-flow 28s linear infinite}
.effects-on .ambient-nodes{animation:soft-glimmer 7s ease-in-out infinite alternate}
.effects-on .hero-signal{animation:hero-flow 15s linear infinite}
.effects-on .hero-stars{animation:soft-glimmer 6s ease-in-out infinite alternate}
.effects-on .hero-sheen{animation:light-sweep 18s ease-in-out infinite alternate}
.effects-on .hero::before{background-size:150% 150%;animation:colour-drift 24s ease-in-out infinite alternate}
.effects-on .cards .stat:hover{border-color:#a7c7dc;box-shadow:0 8px 28px #8570b321,0 0 0 1px #aee3dc}
.effects-on .effects-toggle[aria-pressed=true]{background-size:220% 220%;animation:colour-drift 12s ease-in-out infinite alternate}
.birthday-card{position:relative;isolation:isolate;background:linear-gradient(115deg,#f6fbfd,#faf7ff 58%,#f2faf7);border-color:#d8dff1}
.birthday-card::before{content:"";position:absolute;z-index:-1;pointer-events:none;inset:0;background:radial-gradient(ellipse at var(--glow-x,85%) var(--glow-y,30%),#b7a0e922,transparent 55%)}
.birthday-card.has-birthday{border-color:#cdb9e6;box-shadow:0 4px 25px #977ac012}
.birthday-card.has-birthday::after{content:"";position:absolute;pointer-events:none;top:0;left:8%;width:84%;height:2px;background:linear-gradient(90deg,transparent,#80d6cc,#bb92e2,#e6b3cf,transparent);background-size:200% 100%}
.effects-on .birthday-card.has-birthday::after{animation:colour-drift 9s ease-in-out infinite alternate}
.birthday-head{display:flex;gap:14px;align-items:center;padding:19px 24px}
.birthday-icon{position:relative;display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:1px solid #d5c2eb;background:linear-gradient(140deg,#f4eaff,#e6f6f5);border-radius:15px;color:#8559a8;box-shadow:0 4px 15px #a58ab218}
.birthday-icon svg{width:27px;height:27px}
.birthday-head h2{font-size:20px;margin:3px 0}.birthday-head p{font-size:12px;color:var(--muted);margin:0}
.birthday-head .eyebrow{font-size:9px;letter-spacing:1.3px;color:#8b6aa0}
.birthday-count{border:1px solid #ded4ed;border-radius:20px;padding:6px 12px;background:#ffffffc9;color:#865ba4;font-size:12px;font-weight:650;white-space:nowrap}
.birthday-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 24px 18px;max-height:260px;overflow:auto;overscroll-behavior:contain}
.birthday-person{display:flex;align-items:center;gap:13px;padding:13px;background:#ffffffd9;border:1px solid #e1e7ed;border-radius:12px;min-width:0}
.birthday-person.is-today{border-color:#d7bce8;background:linear-gradient(110deg,#fff,#fcf7ff)}
.birthday-person .grow{min-width:0}.birthday-person .link-button{font-size:13px;overflow-wrap:anywhere}
.birthday-person p{font-size:11px;color:var(--muted);margin:4px 0 0}
.birthday-person button.ghost{margin-left:auto;flex-shrink:0;padding:7px}
.birthday-date{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:72px;min-height:50px;border-right:1px solid #e4e8f1;padding-right:12px}
.birthday-date strong{font-size:12px;color:#8c65ae}.birthday-date small{font-size:11px}
.birthday-empty{display:flex;align-items:center;gap:10px;padding:2px 24px 18px;color:var(--muted)}
.birthday-empty svg{width:19px;height:19px;color:#9a82b8}.birthday-empty p{margin:0;font-size:12px}
.birthday-note{padding:10px 24px;background:#ffffff80;border-top:1px solid #e5e6ef;color:#7b8191;font-size:11px}
.birthday-pill,.hero .birthday-pill{background:#f6eaff;color:#8051a0;border:1px solid #e2cbed;gap:5px}
.birthday-pill svg{width:14px;height:14px}.birthday-marker:empty{display:none}.birthday-marker .birthday-pill{margin-block:3px}
.effects-on .has-birthday .birthday-icon{animation:birthday-glow 7s ease-in-out infinite alternate}
body.page-hidden *,body.page-hidden *::before,body.page-hidden *::after{animation-play-state:paused!important}
@keyframes circuit-flow{to{stroke-dashoffset:-1470}}
@keyframes hero-flow{to{stroke-dashoffset:-675}}
@keyframes soft-glimmer{from{opacity:.25}to{opacity:.65}}
@keyframes light-sweep{from{transform:translateX(-25%) rotate(-12deg);opacity:.4}to{transform:translateX(25%) rotate(-12deg);opacity:.7}}
@keyframes colour-drift{from{background-position:0% 30%}to{background-position:100% 70%}}
@keyframes birthday-glow{from{box-shadow:0 4px 15px #a58ab218}to{box-shadow:0 0 20px #aa7bd437}}
@media(max-width:750px){.birthday-list{grid-template-columns:1fr;padding:0 15px 15px;max-height:300px}.birthday-head{padding:16px;gap:10px}.birthday-head .eyebrow{display:none}.birthday-note{padding:10px 16px}.birthday-empty{padding:0 16px 16px}.birthday-person{gap:9px;padding:10px}.birthday-date{min-width:65px;padding-right:8px}.hero-art{width:90%;opacity:.7}.ambient-scene{opacity:.25}}
@media print{.ambient-scene,.hero-art{display:none}}
/* Compact workspace · public Ruray reference: cyan/violet light, fine borders and short transitions. */
:root{--accent-cyan:#1ac8df;--accent-violet:#9870ed}
.topbar{height:56px;padding-inline:24px;gap:12px}
.topbar>div{gap:10px}.topbar .date{font-size:11px}.topbar .user-name{font-size:11px}
.topbar .sidebar-toggle{padding:7px 10px;min-height:34px}
.topbar .effects-toggle{min-height:32px;padding:5px 10px}
.demo-bar{padding:4px 24px;font-size:11px;line-height:1.4}
.patient-workspace .content{padding:12px 22px 30px;max-width:1800px}
.patient-toolbar{min-height:26px;margin-bottom:8px;gap:8px}
.patient-toolbar small{font-size:10px}.patient-toolbar>button{padding:4px 8px;font-size:11px}
.patient-hero{padding:12px 18px;border-radius:13px}
.patient-hero>.flex{gap:12px}
.patient-hero .avatar{width:44px;height:44px;border-radius:12px;font-size:18px}
.patient-hero h1{font-size:22px;line-height:1.2;margin:3px 0 5px;letter-spacing:-.5px}
.patient-hero .eyebrow{font-size:9px;letter-spacing:1.2px}
.patient-hero .pill{padding:2px 8px;font-size:10px}
.patient-hero .gap8{gap:7px;line-height:1.35}
.patient-hero .gap8>span:not(.pill){font-size:11px}
.patient-hero button{padding:7px 11px;font-size:11px}
.patient-workspace .tabs{gap:4px;padding:4px 6px;margin:8px 0 10px;border-radius:11px}
.patient-workspace .tabs button{position:relative;flex-shrink:0;min-height:36px;padding:5px 9px;gap:6px;border-radius:8px;font-size:12px;overflow:hidden}
.patient-workspace .tab-icon{width:24px;height:24px;border-radius:7px}
.patient-workspace .tab-icon svg{width:15px;height:15px}
.patient-workspace .subtabs{padding:3px;gap:4px;border-radius:9px}
.patient-workspace .subtabs button{min-height:32px;padding:5px 10px;border-radius:7px;font-size:11px}
.patient-workspace #patient-content .stack{gap:10px}
.patient-workspace #patient-content .card-head{padding:11px 16px;gap:12px}
.patient-workspace #patient-content .card-head h2{font-size:16px;line-height:1.25;margin:0}
.patient-workspace #patient-content .card-head p{margin:4px 0 0;font-size:11px}
.patient-workspace #patient-content .card-body{padding:14px 16px}
.patient-workspace .info-grid{gap:12px 20px;margin-block:0}
.patient-workspace .info-grid dd{font-size:13px}
.patient-workspace .ortho-module{gap:10px;padding:14px;border-radius:13px}
.patient-workspace .module-heading{gap:10px}.patient-workspace .module-heading h2{font-size:19px}
.patient-workspace .module-symbol{width:36px;height:36px;border-radius:10px}.patient-workspace .module-symbol svg{width:21px;height:21px}
.patient-workspace .module-heading p{font-size:11px;margin-top:2px}
.patient-workspace .form-grid{gap:10px 14px}
.patient-workspace .field{font-size:12px;gap:4px}
.patient-workspace .field input,.patient-workspace .field select{min-height:34px;padding:6px 9px;font-size:13px;border-radius:7px}
.patient-workspace .field textarea{min-height:54px;padding:7px 9px;font-size:13px;line-height:1.4;border-radius:7px}
.patient-workspace .form-section{padding:12px 0}
.patient-workspace .form-section:first-child{padding-top:0}
.patient-workspace .form-section h3{margin-bottom:9px;font-size:12px}
.patient-workspace .form-footer{margin-top:14px;gap:10px}
[data-kind=anamnesis] .field.span2{grid-column:auto}
[data-kind=anamnesis] .form-section:nth-child(2) .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
[data-kind=anamnesis] .form-section:nth-child(3) .form-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
[data-kind=anamnesis] .form-section:nth-child(2) .field.span2{grid-column:1/-1}
.budget-dialog{max-height:94vh;border-radius:14px}
.budget-dialog .modal-head{padding:10px 18px;min-height:52px}
.budget-dialog .modal-head h2{font-size:18px;letter-spacing:-.4px}
.budget-dialog .modal-head button{min-width:32px;min-height:32px;padding:2px 8px;font-size:20px}
.budget-dialog .modal-content{padding:14px 18px 18px}
.budget-dialog .budget-meta{grid-template-columns:minmax(200px,1.7fr) minmax(140px,.85fr) minmax(165px,1.25fr) minmax(120px,.7fr);gap:12px}
.budget-dialog .field{font-size:11px;gap:4px}
.budget-dialog .field input,.budget-dialog .field select{padding:6px 9px;min-height:34px;font-size:13px;border-radius:7px}
.budget-dialog .field textarea{min-height:54px;padding:7px 9px;font-size:13px;line-height:1.4}
.budget-dialog .form-grid{gap:10px 12px}
.budget-dialog .budget-editor-heading{margin:14px 0 8px;gap:12px}
.budget-dialog .budget-editor-heading h3{font-size:14px;margin-bottom:3px}
.budget-dialog .budget-editor-heading p{font-size:11px;line-height:1.4}
.budget-dialog .budget-tooth-columns{padding:7px 12px;font-size:11px}
.budget-dialog .budget-teeth-scroll{max-height:min(49vh,430px);scroll-padding-top:32px}
.budget-dialog .budget-tooth-group h3{padding:7px 12px;font-size:10px}
.budget-dialog .budget-tooth-columns,.budget-dialog .budget-tooth-row{grid-template-columns:48px minmax(0,1fr) 126px;gap:12px}
.budget-dialog .budget-tooth-row{padding:8px 12px}
.budget-dialog .budget-tooth-number{padding:5px 0;border-radius:7px}
.budget-dialog .budget-tooth-number b{font-size:18px}.budget-dialog .budget-tooth-number small{font-size:9px}
.budget-dialog .budget-tooth-treatment>textarea{min-height:44px;height:44px;padding:6px 9px;font-size:13px;line-height:1.4}
.budget-dialog .budget-tooth-details summary{padding-top:3px;font-size:10px}
.budget-dialog .budget-tooth-price .field{font-size:9px;gap:3px}
.budget-dialog .budget-tooth-price input{min-height:30px;padding:4px 7px}
.budget-dialog .budget-tooth-actions{margin-top:3px;gap:3px}
.budget-dialog .budget-tooth-actions button{min-height:24px;padding:2px 5px;font-size:10px}
.budget-dialog .budget-totals{padding:12px 16px;margin-top:12px}
.budget-dialog .budget-totals strong{font-size:23px}
.budget-dialog .form-section{padding:13px 0}.budget-dialog .form-section h3{margin-bottom:10px}
.budget-dialog .line-editor{padding:12px;margin:10px 0}
.budget-dialog .form-footer{margin-top:14px}
.budget-dialog .notice{padding:9px 12px;font-size:11px;margin-block:12px}
.budget-dialog .line-editor .description-field textarea{min-height:54px}
/* Concentrated light in edges and decorative paths; the clinical inputs stay still. */
@property --rim-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.hero{background:linear-gradient(110deg,#142638,#125566 57%,#353969);box-shadow:0 5px 18px #16455918}
.hero::before{background:radial-gradient(ellipse at var(--glow-x,80%) var(--glow-y,30%),#16cddd55,transparent 58%),radial-gradient(ellipse at 95% 95%,#8a5be870,transparent 65%)}
.hero::after{inset:0;width:auto;height:auto;border:0;border-radius:inherit;padding:1px;background:conic-gradient(from var(--rim-angle),#57dce440,#27d9ef 12%,#829dff 20%,#b493fa 30%,#a08bf220 44%,#4bc7dc10 75%,#57dce440);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;box-shadow:none;opacity:.5;z-index:1;transform:none;pointer-events:none}
.effects-on .hero::after{animation:rim-orbit 9s linear infinite;opacity:1}
.hero-art{width:66%;mask-image:linear-gradient(90deg,transparent,#000 22%)}
.hero-wire{stroke:#88d9f0;stroke-width:.8;opacity:.3}
.hero-signal{stroke:#a7f9ff;stroke-width:2;stroke-dasharray:60 615;opacity:.9;filter:drop-shadow(0 0 3px #39dcff)}
.hero-signal path:nth-child(2){stroke:#d2baff}.hero-signal path:nth-child(3){stroke:#9ce1ff}
.effects-on .hero-signal{animation:hero-flow 9s linear infinite}
.hero-stars{fill:#d4ffff;filter:drop-shadow(0 0 4px #83eaff)}
.hero-sheen{background:linear-gradient(105deg,transparent 40%,#81f7fc0b 46%,#a6cdff2b 50%,#b798ff10 53%,transparent 60%)}
.effects-on .hero-sheen{animation:light-sweep 11s ease-in-out infinite alternate}
.ambient-scene{opacity:.65}.ambient-track{stroke:#6c9fc4;opacity:.2}
.ambient-signal{stroke:#46b7dc;stroke-width:1.8;opacity:.65;filter:drop-shadow(0 0 2px #71d9ef)}
.ambient-signal path:nth-child(2){stroke:#a782e2}.ambient-signal path:nth-child(3){stroke:#3dbfbf}
.effects-on .ambient-signal{animation:circuit-flow 20s linear infinite}
.patient-workspace .tabs button.active{border-color:#89cad8;background:linear-gradient(120deg,#eafafa,#f3efff);box-shadow:0 0 0 1px #abdddf25,0 2px 9px #5b94d41a}
.patient-workspace .tabs button.active::after{content:"";position:absolute;left:7%;right:7%;bottom:0;height:2px;border-radius:3px;background:linear-gradient(90deg,transparent,#16c4d8,#8192ef,#b07bdf,transparent);background-size:220% 100%;pointer-events:none}
.effects-on .tabs button.active::after{animation:linear-glint 5s ease-in-out infinite alternate}
.patient-workspace .tabs button[data-tab=ortho].active{border-color:#bc9be9;background:linear-gradient(120deg,#f1eafd,#edf7fc)}
.patient-workspace .subtabs button.active{border-color:#bed5e7;box-shadow:0 2px 8px #6b80ca18}
.card-head,.modal-head{position:relative}
.modal-head{position:sticky}
.card-head::after,.modal-head::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background:linear-gradient(90deg,#b6dfe900,#24bbd475,#8c80e68a,#c398df55,#b6dfe900);background-size:250% 100%;pointer-events:none}
.effects-on .card-head::after,.effects-on .modal-head::after{animation:linear-glint 10s ease-in-out infinite alternate}
.effects-on .field:focus-within{color:#246e88}
.effects-on .field input:focus,.effects-on .field select:focus,.effects-on .field textarea:focus,.effects-on .budget-tooth-treatment>textarea:focus{border-color:#5cb8d2;outline:2px solid #9dceee40;box-shadow:0 0 0 3px #90baf30f}
.effects-on .sidebar nav button.active{box-shadow:inset 2px 0 #74e6ef,0 0 18px #6ba8f01a;background:linear-gradient(110deg,#32bac937,#8f68e42b)}
.effects-on .effects-toggle[aria-pressed=true]{border-color:#a7c9df;box-shadow:0 0 12px #8c96e325}
@keyframes rim-orbit{to{--rim-angle:360deg}}
@keyframes linear-glint{from{background-position:0% 50%}to{background-position:100% 50%}}
@media(max-width:1050px){
  .budget-dialog .budget-meta{grid-template-columns:1.6fr 1fr}
  [data-kind=anamnesis] .form-section:nth-child(3) .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:750px){
  .topbar{height:52px;padding-inline:10px}.topbar .sidebar-toggle,.topbar .effects-toggle{height:36px;min-height:36px}
  .demo-bar{padding:3px 12px;font-size:10px}.patient-workspace .content{padding:10px 10px 28px}
  .patient-toolbar{margin-bottom:6px}.patient-toolbar small{font-size:9px}
  .patient-hero{padding:12px}.patient-hero h1{font-size:20px}
  .patient-workspace .tabs button{min-height:42px;padding:6px 9px}
  .patient-workspace .subtabs button{min-height:40px;padding:6px 9px}
  .patient-workspace .field input,.patient-workspace .field select{min-height:40px;font-size:14px}
  .patient-workspace .field textarea{min-height:62px;font-size:14px}
  [data-kind=anamnesis] .form-section:nth-child(2) .form-grid,[data-kind=anamnesis] .form-section:nth-child(3) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .budget-dialog .modal-content{padding:12px}.budget-dialog .modal-head{padding:8px 12px}
  .budget-dialog .budget-meta{grid-template-columns:1fr 1fr}
  .budget-dialog .field input,.budget-dialog .field select{min-height:40px;font-size:14px}
  .budget-dialog .budget-tooth-columns,.budget-dialog .budget-tooth-row{grid-template-columns:40px minmax(0,1fr) 112px;gap:9px;padding:8px}
  .budget-dialog .budget-tooth-treatment>textarea{min-height:58px;font-size:14px}
  .budget-dialog .budget-tooth-actions button{min-height:34px;min-width:34px}
  .hero-art{width:86%;opacity:.85}.ambient-scene{opacity:.35}
}
@media(max-width:480px){
  .patient-toolbar small{display:none}
  .patient-hero>.flex{align-items:flex-start;gap:8px}
  .patient-hero .gap8{gap:4px}
  [data-kind=anamnesis] .form-grid,[data-kind=anamnesis] .form-section:nth-child(2) .form-grid,[data-kind=anamnesis] .form-section:nth-child(3) .form-grid{grid-template-columns:1fr}
  .budget-dialog .budget-meta{grid-template-columns:1fr}
  .budget-dialog .budget-tooth-columns,.budget-dialog .budget-tooth-row{grid-template-columns:36px minmax(0,1fr)}
  .budget-dialog .budget-tooth-price{grid-column:2}
  .budget-dialog .budget-tooth-columns>span:last-child{display:none}
}
/* One utility bar, readable clinical type and layered decorative motion. */
:root{font-size:15px;--muted:#53677a}
.topbar{height:52px;padding:0 22px;gap:10px;position:relative;z-index:25}
.topbar-context,.topbar-actions{display:flex;align-items:center;gap:10px;min-width:0}
.topbar-context{flex:1}.topbar-actions{flex-shrink:0}
.topbar-title{font-size:15px;white-space:nowrap}
.topbar .sidebar-toggle{width:36px;height:36px;min-height:36px;padding:8px}
.topbar-back{padding:5px 2px!important;font-size:15px;white-space:nowrap}
.breadcrumb-divider{color:#9baab8;font-size:16px}
.environment-tag{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;font-weight:650;padding:3px 8px;border:1px solid;border-radius:6px}
.demo-tag{background:#fff6df;color:#785015;border-color:#e8d9af}
.clinic-tag{background:#eaf7ef;color:#22644b;border-color:#c7dfd0}
.account-menu{position:relative}
.account-menu>summary{display:flex;align-items:center;gap:5px;padding:3px;cursor:pointer;list-style:none;border-radius:9px}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu .profile-dot{display:grid}
.account-chevron{font-size:18px;color:#546b7d}.account-menu[open] .account-chevron{transform:rotate(180deg)}
.account-panel{position:absolute;right:0;top:calc(100% + 9px);width:290px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #d0dfe8;box-shadow:0 14px 40px #152f4e26;border-radius:13px;padding:17px;display:grid;gap:7px;color:var(--ink);z-index:40}
.account-panel>strong{font-size:16px}.account-panel>span,.account-panel>time,.account-panel>p{font-size:14px;color:var(--muted)}
.account-panel>time{padding-top:9px;border-top:1px solid #e5ecf2}.account-panel>p{margin:0;line-height:1.45}
.account-panel>button{justify-content:flex-start;margin-top:4px;border-top:1px solid #e5ecf2;border-radius:0;font-size:14px;padding:9px 0}
.patient-workspace .content{padding-top:10px}
.patient-hero{padding:12px 18px;overflow:clip}
.patient-hero h1{font-size:26px;margin:3px 0 5px}
.patient-hero .eyebrow{font-size:12px;letter-spacing:1px}
.patient-hero .pill{font-size:12px;padding:2px 8px}
.patient-hero .gap8>span:not(.pill){font-size:14px}
.patient-hero button{font-size:14px;padding:7px 12px}
.patient-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin-left:15px;max-width:40%;position:relative;z-index:2}
.patient-updated{font-size:12px;color:#d6e7ee;text-align:right;line-height:1.4}
.patient-hero .patient-specialty-trigger{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:4px 10px;background:linear-gradient(135deg,#eef7ff,#c5e0f5);border:1px solid #b8d8ed;border-radius:8px;color:#17445f;font-size:14px;font-weight:650;box-shadow:0 1px 0 #ffffffa0 inset}
.patient-specialty-trigger svg{width:16px;height:16px}.patient-specialty-trigger:hover{background:#f5fbff;border-color:#fff}
#patient-specialty-menu{position:fixed;inset:auto;margin:0;padding:14px;background:#f8fbff;color:#213f59;border:1px solid #99b6d0;border-radius:12px;box-shadow:0 14px 48px #14304c40;overflow:auto;max-width:calc(100vw - 24px)}
#patient-specialty-menu::backdrop{background:transparent}
.specialty-menu-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px solid #d4e1ec;padding-bottom:10px;margin-bottom:8px}
.specialty-menu-heading strong{display:block;font-size:16px}.specialty-menu-heading small{display:block;color:#55718a;font-size:13px;margin-top:4px}.specialty-menu-heading button{font-size:23px;min-height:28px;padding:0 5px}
.specialty-choices{display:grid;grid-template-columns:1fr;gap:3px;margin:0;padding:0;border:0}
.specialty-choices label{display:flex;align-items:center;gap:10px;padding:7px 8px;border:1px solid transparent;border-radius:7px;cursor:pointer;font-size:15px;line-height:1.3}
.specialty-choices label:hover{background:#edf4fc}.specialty-choices label:has(input:checked){border-color:#a4c8e7;background:#e1effc;color:#184f7d;font-weight:650}
.specialty-choices input{width:18px;height:18px;min-height:18px;accent-color:#3478ab;margin:0}.specialty-choices label:has(input:focus-visible){outline:2px solid #3478ab;outline-offset:1px}
.specialty-save-state{font-size:13px;line-height:1.4;color:#3c6d66;border-top:1px solid #d4e1ec;margin-top:10px;padding-top:10px}
.patient-searchbar{flex-wrap:wrap;gap:12px}.patient-searchbar .search{flex:1;min-width:220px}.patient-searchbar .followup-filter{min-width:210px;margin:0;font-size:13px}.followup-filter select{font-size:15px;padding:7px 10px;min-height:37px}
.followup-table{min-width:700px;font-size:14px}.followup-table th{padding:10px 12px}.followup-table td{padding:9px 12px;vertical-align:middle}.followup-table tbody tr:nth-child(even){background:#edf4fb}.followup-table .link-button{font-size:15px;font-weight:600}.followup-tags{display:flex;flex-wrap:wrap;gap:5px}.followup-tags .pill{font-size:12px;padding:3px 8px}
.followup-table .followup-whatsapp{display:inline-flex;flex-direction:column;gap:0;min-height:34px;padding:4px 10px;border:1px solid #c7ddcf;border-radius:7px;background:#edf6f0;color:#456853;opacity:1;cursor:not-allowed;font-size:13px;line-height:1.25;box-shadow:none}.followup-whatsapp span{font-size:10px;font-weight:400}
#patient-specialty-menu .form-error{font-size:13px;line-height:1.4}#patient-specialty-menu .form-error:empty{display:none}.specialty-recovery{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.patient-hero>.flex{position:relative;z-index:2}
.patient-workspace .tabs button{font-size:15px;min-height:40px;padding:5px 10px}
.patient-workspace .subtabs button{font-size:14px;min-height:36px;padding:5px 10px}
.patient-workspace #patient-content .card-head h2{font-size:19px}
.patient-workspace #patient-content .card-head p{font-size:14px}
.patient-workspace .field,.budget-dialog .field{font-size:14px;color:#375466}
.patient-workspace .field input,.patient-workspace .field select,.budget-dialog .field input,.budget-dialog .field select{font-size:16px;min-height:38px;padding:6px 9px}
.patient-workspace .field textarea,.budget-dialog .field textarea{font-size:16px;line-height:1.4;min-height:58px;padding:6px 9px}
.patient-workspace .form-section h3{font-size:15px;margin-bottom:9px}
.patient-workspace .info-grid dt{font-size:13px}.patient-workspace .info-grid dd{font-size:16px}
.patient-workspace .module-heading h2{font-size:23px}.patient-workspace .module-heading p{font-size:14px}
.patient-workspace .form-footer small,.patient-workspace .notice{font-size:13px}
.patient-workspace button.small{font-size:14px}.patient-workspace td{font-size:14px}.patient-workspace th{font-size:12px}
.patient-workspace .ledger-table input,.patient-workspace .ledger-table select,.patient-workspace .ledger-table textarea{font-size:14px}
.patient-workspace .ledger-table input[type=date]{font-size:14px}
.patient-workspace .ledger-table th,.patient-workspace .ledger-guide,.patient-workspace .ledger-footer{font-size:13px}
.patient-workspace .ledger-table small,.patient-workspace .ledger-table .ledger-extra summary,.patient-workspace .ledger-table .ledger-extra label{font-size:12px}
.budget-dialog .modal-head h2{font-size:21px}
.budget-dialog .budget-editor-heading h3{font-size:17px}.budget-dialog .budget-editor-heading p{font-size:13px}
.budget-dialog .budget-tooth-columns{font-size:13px}
.budget-dialog .budget-tooth-group h3{font-size:12px}
.budget-dialog .budget-tooth-columns,.budget-dialog .budget-tooth-row{grid-template-columns:48px minmax(0,1fr) 145px}
.budget-dialog .budget-tooth-treatment>textarea{font-size:16px;min-height:52px;height:52px}
.budget-dialog .budget-tooth-details summary{font-size:12px}.budget-dialog .budget-tooth-price .field{font-size:12px}
.budget-dialog .budget-tooth-number b{font-size:22px}.budget-dialog .budget-tooth-number small{font-size:11px}
.budget-dialog .budget-tooth-actions button{font-size:12px;min-height:28px}
.budget-dialog .notice,.budget-dialog .form-footer small{font-size:13px}
/* Decorative enamel, orbit and light layers: no external images or 3D runtime. */
.hero-depth{position:absolute;right:22%;top:50%;width:200px;height:138px;pointer-events:none;z-index:0;opacity:.82;transform:translate(var(--depth-x,0px),calc(-50% + var(--depth-y,0px)));transition:transform .65s cubic-bezier(.2,.65,.3,1);perspective:600px}
.depth-tooth{position:absolute;width:89px;height:101px;top:16px;left:56px;transform:rotate(-12deg);filter:drop-shadow(0 6px 8px #05152c80) drop-shadow(0 0 9px #66dfff45)}
.depth-tooth svg{width:100%;height:100%}
.depth-orbit{position:absolute;inset:25px -20px;border:1px solid #9df5ff75;border-radius:50%;transform:rotate(-25deg) rotateX(60deg);box-shadow:inset 0 0 13px #63d4fb20,0 0 9px #7b9dfa20}
.depth-orbit-back{border-color:#a898ec80;transform:rotate(30deg) rotateX(65deg);inset:17px -25px}
.depth-orbit-front{border-top-color:transparent;border-left-color:transparent}
.depth-spark{position:absolute;width:4px;height:4px;border-radius:50%;background:#ddffff;box-shadow:0 0 10px 2px #99f5ff85}
.spark-one{left:7%;top:34%}.spark-two{right:7%;bottom:30%;background:#d3baff}.spark-three{right:28%;top:16%;width:2px;height:2px}
.hero-art{opacity:.5}.hero-sheen{opacity:.8}
.effects-on .depth-tooth{animation:enamel-float 8s ease-in-out infinite alternate}
.effects-on .depth-orbit-front{animation:orbit-drift 12s ease-in-out infinite alternate}
.effects-on .depth-spark{animation:depth-glimmer 5s ease-in-out infinite alternate}
.effects-on .spark-two{animation-delay:-2s}.effects-on .spark-three{animation-delay:-4s}
.effects-on .hero-art{transform:translate(calc(var(--depth-x,0px) * -.35),calc(var(--depth-y,0px) * -.35));transition:transform .8s ease}
.effects-on .hero-sheen{animation-duration:9s}
.effects-on .view-enter{animation-duration:.22s}
body:not(.effects-on) .hero-depth{transform:translateY(-50%)}
@keyframes enamel-float{from{transform:translateY(-3px) rotate(-10deg) rotateY(-14deg)}to{transform:translateY(4px) rotate(-4deg) rotateY(20deg)}}
@keyframes orbit-drift{from{transform:rotate(-25deg) rotateX(60deg)}to{transform:rotate(-8deg) rotateX(70deg)}}
@keyframes depth-glimmer{from{opacity:.3;transform:translateY(-3px)}to{opacity:.9;transform:translateY(4px)}}
@media(max-width:1100px){.topbar-title{display:none}.breadcrumb-divider{display:none}.hero-depth{right:25%;opacity:.5}.patient-actions{max-width:38%}.environment-tag span{display:none}}
@media(max-width:750px){
  .topbar{padding-inline:10px;gap:7px;height:52px}.topbar-context,.topbar-actions{gap:7px}
  .topbar .effects-toggle{min-width:36px;width:36px}.environment-tag{font-size:11px;padding:3px 6px}
  .topbar-back{font-size:14px}.topbar .profile-dot{width:30px;height:30px}.account-chevron{display:none}
  .patient-hero>.flex{flex-wrap:wrap;gap:8px}.patient-hero h1{font-size:24px}
  .patient-actions{max-width:100%;margin:0;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px 12px}
  .patient-updated{text-align:left;font-size:12px}
  .hero-depth{right:5%;opacity:.35;width:180px}.patient-hero .eyebrow{font-size:12px}
  .patient-workspace .tabs button{font-size:15px;min-height:42px}.patient-workspace .subtabs button{font-size:14px;min-height:40px}
  .patient-workspace .field input,.patient-workspace .field select,.budget-dialog .field input,.budget-dialog .field select{font-size:16px;min-height:40px}
  .patient-workspace .field textarea{font-size:16px;min-height:62px}
  .budget-dialog .budget-meta{grid-template-columns:1fr}
  .budget-dialog .budget-tooth-columns,.budget-dialog .budget-tooth-row{grid-template-columns:36px minmax(0,1fr)}
  .budget-dialog .budget-tooth-price{grid-column:2}.budget-dialog .budget-tooth-columns>span:last-child{display:none}
  .budget-dialog .budget-tooth-actions button{min-height:34px;min-width:34px}.budget-dialog .budget-tooth-treatment>textarea{min-height:62px}
}
@media(max-width:380px){.topbar-back span{display:none}.topbar-back{font-size:24px;min-width:24px}.topbar .profile-dot{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.hero-depth,.hero-art{transform:translateY(-50%);transition:none}.hero-art{transform:none}}
@media print{.hero-depth{display:none}}
/* Performed dental care and compact daily register. */
.ledger-table.ledger-general{min-width:1450px}
.ledger-general th:nth-child(1){width:135px}.ledger-general th:nth-child(2){width:220px}.ledger-general th:nth-child(3){width:110px}.ledger-general th:nth-child(4){width:135px}.ledger-general th:nth-child(5){width:270px}.ledger-general th:nth-child(6){width:110px}.ledger-general th:nth-child(7){width:130px}.ledger-general th:nth-child(8){width:175px}.ledger-general th:nth-child(9){width:120px}
.performed-editor>summary{cursor:pointer;color:#147580;font-size:14px;line-height:1.4;padding:7px;border:1px solid #c8dfe4;border-radius:7px;background:#f4fbfc;max-width:280px;overflow-wrap:anywhere}
.performed-editor>summary:focus-visible{outline:2px solid #48a9bd}
.treatment-rows{display:grid;gap:8px}.treatment-rows>div{margin-top:8px;border:1px solid #d6e3eb;background:#fff;padding:8px;border-radius:7px}
.treatment-main{display:flex;align-items:center;gap:7px}.treatment-main label{flex:1}.treatment-main>button{padding:3px;min-width:28px;height:28px}
.treatment-rows label{font-size:13px;display:block;color:#3f5c70}
.treatment-rows input,.treatment-rows select{margin-top:3px}
.treatment-surfaces{margin:7px 0;padding:0;border:0;display:flex;gap:4px;flex-wrap:wrap}.treatment-surfaces legend{font-size:12px;margin-bottom:3px}
.treatment-surfaces label{display:inline-flex;align-items:center;gap:3px;padding:3px 4px;background:#f0f5f9;border:1px solid #d7e3ec;border-radius:4px;font-size:12px;cursor:pointer}
.ledger-table .treatment-surfaces input{width:14px;min-width:14px;height:14px;min-height:14px;margin:0;accent-color:#8461bc}
.treatment-editor-fields{margin:0;padding:0;border:0;min-width:0}.treatment-editor-fields>button{margin-top:7px}
.ledger-preview{border-top:1px solid var(--border);padding:10px 16px}.ledger-preview>summary{cursor:pointer;font-weight:600;color:#6d4ba5;font-size:14px}.ledger-preview>p{font-size:13px;margin:8px 0}
.completed-chart .tooth-number{display:inline-flex;justify-content:center;font-weight:700}.completed-chart .tooth-caption{font-size:11px;color:#6f5292}
.completed-chart .tooth svg{pointer-events:none}
.reports-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}.reports-heading h1{font-size:24px;margin:0}.reports-heading .subtabs{padding:3px}.reports-heading .subtabs button{min-height:34px;padding:5px 10px;font-size:14px}
.register-filter{display:flex;align-items:flex-end;gap:14px;margin-bottom:12px;min-width:0}.register-filter .field{flex:0 0 88px;gap:3px}.register-filter select{min-height:34px;padding:5px 8px;font-size:14px}
.month-tabs{display:flex;gap:3px;overflow:auto;padding-bottom:2px;scrollbar-width:thin}.month-tabs button{font-size:14px;min-height:34px;padding:5px 12px;border-radius:6px;flex-shrink:0}.month-tabs button.active{color:#fff;background:#087f80;border-color:#087f80}
.register-card{border-radius:9px;box-shadow:none}.register-caption{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 12px;background:#f4f8fa;border-bottom:1px solid #d7e1e8;font-size:14px}.register-caption>span{font-size:13px;color:var(--muted)}
.daily-register-scroll{overflow:auto;max-height:65vh;scrollbar-width:thin}.daily-register{min-width:760px;table-layout:fixed}
.daily-register th{position:sticky;top:0;z-index:1;background:#e9f2f4;text-transform:none;letter-spacing:0;color:#265a66;font-size:13px;padding:7px 10px}
.daily-register th:nth-child(1){width:128px}.daily-register th:nth-child(2){width:240px}.daily-register th:nth-child(4){width:100px}.daily-register th:nth-child(5){width:86px;text-align:center}
.daily-register td{padding:6px 10px;font-size:14px;line-height:1.4;vertical-align:middle;border-right:1px solid #e6edef;border-bottom:1px solid #e0e8ec}
.daily-register tbody tr:nth-child(even){background:#f6fafb}.daily-register tbody tr:hover{background:#edf6f8}
.daily-register .register-detail{overflow:hidden}.daily-register td:last-child{text-align:center}.daily-register .register-date{white-space:nowrap}
.daily-register .register-detail-text{display:block;max-width:100%;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;border-radius:0;background:transparent;padding:0;min-height:25px;text-align:left;font-size:14px;color:var(--ink);font-weight:400}.daily-register .register-detail-text:hover{color:#087f80;text-decoration:underline}.register-full-detail{display:grid;gap:12px;margin-top:14px}
.daily-register button.whatsapp-pending{font-size:12px;min-height:27px;padding:3px 6px;background:#f0f5f3;color:#61796c;cursor:not-allowed;opacity:1;border-color:#dae3dd;border-radius:4px}
.contact-dot{height:25px;width:25px;min-height:25px;padding:0;border-radius:50%;border:2px solid #9bacb9;color:#53677a;background:white;font-size:16px;font-weight:800}
.contact-dot.needs-contact{background:#d94450;border-color:#b72535;color:#fff}.contact-dot.needs-contact:hover{background:#bd293a}
.register-payment-filters{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;margin:0 0 12px}.register-payment-filters .field{margin:0;gap:3px;font-size:13px;min-width:200px}.register-payment-filters select{padding:5px 9px;min-height:34px;font-size:14px}.register-payment-filters>span{color:var(--muted);font-size:12px;margin-bottom:9px;flex:1}.register-call-filter{display:inline-flex;align-items:center;gap:7px;font-size:14px;min-height:34px;white-space:nowrap}.register-call-filter input{width:17px;height:17px;margin:0;accent-color:#bd3345}
.daily-register{min-width:1090px}.daily-register th:nth-child(1){width:120px}.daily-register th:nth-child(2){width:215px}.daily-register th:nth-child(4){width:130px}.daily-register th:nth-child(5){width:132px;text-align:right}.daily-register th:nth-child(6){width:100px}.daily-register th:nth-child(7){width:100px;text-align:center}.daily-register td:nth-child(5){text-align:right}
.payment-state{display:inline-flex;align-items:center;white-space:nowrap;font-size:12px;font-weight:600;padding:3px 7px;border-radius:5px;line-height:1.4;background:#eef1f5;color:#536174}.payment-state.state-unpaid{background:#ffdfb8;color:#854000}.payment-state.state-partial{background:#fff0ce;color:#805315}.payment-state.state-paid{background:#e2f1e9;color:#276246}.payment-state.state-credit{background:#e4effc;color:#2e5f8a}.balance-warning{display:block;font-size:11px;color:#7a5c24}
.daily-register .register-balance{display:inline-block;font-size:14px;font-weight:600;min-height:28px;padding:2px 4px;border:0;border-bottom:1px dotted #8594a3;border-radius:0;box-shadow:none;background:transparent;color:#536174}.daily-register .register-balance.has-balance{color:#935000}.daily-register .register-balance:hover{background:#fff4dc}
.daily-register .contact-call{display:inline-flex;align-items:center;gap:4px;justify-content:center;border-radius:6px;border:1px solid #ccd7e1;background:#f2f5f8;color:#526579;font-size:12px;min-height:29px;min-width:79px;padding:4px 6px;box-shadow:none}.contact-call svg{width:16px;height:16px}.daily-register .contact-call.needs-contact{background:#b62e41;border-color:#a42639;color:white}.daily-register .contact-call.needs-contact:hover{background:#962237}.contact-call:focus-visible{outline:3px solid #60a8cc;outline-offset:2px}
.register-legend{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin:10px 2px}.register-legend svg{flex-shrink:0;width:15px;height:15px;color:#a42639}.balance-detail-table{min-width:650px;font-size:14px}.balance-detail-table small{display:block;font-size:12px;margin-top:4px}
.daily-register .form-error:empty{display:none}.daily-register .form-error{font-size:12px;max-width:200px;text-align:left;margin-top:4px}.register-empty{text-align:center!important;padding:20px!important;color:var(--muted)}
@media(max-width:750px){.reports-heading{gap:10px}.register-filter{gap:8px}.register-caption{align-items:flex-start;flex-direction:column;gap:2px}.daily-register th:nth-child(2){width:180px}.daily-register{min-width:730px}.month-tabs button{padding:5px 9px}}
/* Visual treatment editor and payments grouped under their own attendance. */
.ortho-list-filters,.ortho-case-fields{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.ortho-list-filters{margin:12px 0}.ortho-list-filters .field,.ortho-case-fields .field{flex:1;min-width:180px;margin:0;font-size:14px}.ortho-list-filters select,.ortho-case-fields select,.ortho-case-fields input{min-height:36px;padding:7px 10px;font-size:15px}.ortho-case-card .card-head{padding:12px 16px}.ortho-case-card .card-body{padding:12px 16px}.ortho-case-card{margin-bottom:12px}.ortho-patients-table{min-width:980px;font-size:14px}.ortho-patients-table td{padding:10px 12px}.ortho-patients-table button[disabled]{font-size:12px;opacity:1;color:#54715f;background:#edf6f0;cursor:not-allowed}.ortho-access-card{max-width:680px;margin:20px auto}.ortho-unlock-form{display:grid;gap:14px;max-width:400px}.ortho-reauth{padding:20px;max-width:700px;width:calc(100% - 32px);border:0;border-radius:16px}.ortho-reauth::backdrop{background:#0d2138ed;backdrop-filter:blur(8px)}.ortho-reauth .ortho-access-card{margin:0;box-shadow:none}
.daily-register{min-width:1200px}.daily-register th:nth-child(1){width:120px}.daily-register th:nth-child(2){width:190px}.daily-register th:nth-child(4){width:110px;text-align:right}.daily-register th:nth-child(5){width:125px;text-align:left}.daily-register th:nth-child(6){width:130px;text-align:right}.daily-register th:nth-child(7){width:95px;text-align:left}.daily-register th:nth-child(8){width:100px;text-align:center}.daily-register td:nth-child(5){text-align:left}.daily-register td:nth-child(4),.daily-register td:nth-child(6){text-align:right}.register-movement{display:block;font-size:10px;color:var(--muted)}.daily-income{font-variant-numeric:tabular-nums}
.ledger-table.ledger-general{min-width:1380px}
.ledger-general th:nth-child(1){width:130px}.ledger-general th:nth-child(2){width:190px}.ledger-general th:nth-child(3){width:85px}.ledger-general th:nth-child(4){width:115px}.ledger-general th:nth-child(5){width:190px}.ledger-general th:nth-child(6){width:220px}.ledger-general th:nth-child(7){width:100px}.ledger-general th:nth-child(8){width:180px}.ledger-general th:nth-child(9){width:95px}
.doctor-input>span{flex-shrink:0;white-space:nowrap}
.care-dialog-rows{max-height:54vh;overflow:auto;padding-right:4px}
.care-picker-button{width:100%;justify-content:center;font-size:14px;background:#f4f1fc;border-color:#d7ccec;color:#614b8d;padding:8px}
.ledger-treatments .treatment-summary{display:block;margin-top:6px;font-size:13px;line-height:1.4;max-height:58px;overflow:auto}
.doctor-input{display:flex;align-items:center;min-width:0;border:1px solid #c9dce4;background:white;border-radius:7px;overflow:hidden}.doctor-input>span{font-size:15px;font-weight:700;padding-left:9px;color:#375367}.ledger-table .doctor-input input{border:0;min-width:0;width:100%;background:transparent;padding-left:6px}.doctor-input:focus-within{outline:2px solid #7ac6cd}
.ledger-paid-total strong{display:block;font-size:17px;color:#096b69;padding-top:9px}.ledger-paid-total small{font-size:12px}
.payment-expander{margin-top:7px}.payment-expander>summary{color:#087b82;cursor:pointer;font-size:13px;font-weight:600;line-height:1.5}.payment-count{font-weight:400;font-size:12px}
.payment-expander[open]{max-height:250px;overflow:auto;scrollbar-width:thin;padding-right:3px}

/* Silver clinical register, separate attendances and explicit save feedback. */
.clinical-ledger{border:1px solid #aebbc9;background:#f6f8fb;box-shadow:0 8px 24px #23374c12,0 1px 0 #fff inset}
.clinical-ledger .card-head{background:linear-gradient(110deg,#fff 0%,#eff2f6 46%,#f8fafc 73%,#e2e8ef 100%);border-bottom:1px solid #b5c1cf}
.clinical-ledger .ledger-guide{background:linear-gradient(180deg,#e6ebf1,#f5f7fa);color:#4b5d70;border-bottom:1px solid #a7b5c5}
.clinical-ledger .ledger-scroll{background:#e2e7ee;scrollbar-color:#929fac #e9edf3}
.clinical-ledger .ledger-table th{background:linear-gradient(180deg,#f7f9fc 0%,#d5dde6 55%,#e5ebf1 100%);color:#263d53;border-top:1px solid #fff;border-bottom:1px solid #9aaabc;box-shadow:0 2px 4px #253b531a;font-weight:700}
.clinical-ledger .ledger-table tbody>tr[data-ledger-row]:nth-child(odd){background:linear-gradient(110deg,#fafbfd 0%,#e8edf3 48%,#f8fafc 72%,#e9eef3 100%)}
.clinical-ledger .ledger-table tbody>tr[data-ledger-row]:nth-child(even){background:linear-gradient(110deg,#b6d0ee 0%,#d2e3f5 45%,#aecbeb 100%)}
.clinical-ledger .ledger-table tbody>tr[data-ledger-row]>td{border-top:1px solid #fff;border-bottom:6px solid #f9fbfd;box-shadow:0 -2px 0 #99a9bc inset}
.clinical-ledger .ledger-table tbody>tr[data-ledger-row]>td:first-child{border-left:5px solid #9aabba}
.clinical-ledger .ledger-table tbody>tr[data-ledger-row]:nth-child(even)>td:first-child{border-left-color:#4d83b8}
.clinical-ledger .ledger-table tbody>tr.ledger-changed>td:first-child{border-left-color:#b78835;box-shadow:0 -1px 0 #b7c3d1 inset}
.clinical-ledger .ledger-table tr[data-ledger-row]:focus-within{outline:2px solid #728aa2;outline-offset:-2px}
.clinical-ledger .ledger-table input:not([type="checkbox"]),.clinical-ledger .ledger-table textarea,.clinical-ledger .ledger-table select{background:#fff;border-color:#aab8c8;box-shadow:0 1px 2px #34485e0c inset;color:#253c50}
.clinical-ledger .ledger-table input:focus,.clinical-ledger .ledger-table textarea:focus,.clinical-ledger .ledger-table select:focus{border-color:#497b94;outline:2px solid #78a7b333;box-shadow:none}
.clinical-ledger .ledger-table .doctor-input input{border:0;box-shadow:none}
.clinical-ledger .care-picker-button{background:linear-gradient(160deg,#fff,#e7eaf3);color:#535679;border-color:#adb7cd;box-shadow:0 1px 0 #fff inset}
.clinical-ledger .ledger-confirm{background:linear-gradient(120deg,#fafbfd,#e9eef4);border-top:1px solid #b3c0d0;padding:12px 16px}
.clinical-ledger .ledger-save strong{font-size:14px;color:#314c60}.clinical-ledger .ledger-save small{font-size:12px;color:#52667a}
.clinical-ledger .ledger-confirm[data-state="dirty"]{border-top:2px solid #b58b46}
.clinical-ledger .ledger-confirm[data-state="error"]{background:#fff3f2;border-top:2px solid #c46061}
.clinical-ledger .ledger-confirm[data-state="error"] #ledger-status{color:#9b2930}
.clinical-ledger .ledger-confirm .form-error{padding:8px 0;font-size:14px;line-height:1.5;font-weight:600;color:#a52b35}
.clinical-ledger [aria-invalid="true"]{outline:2px solid #c43e4a!important;border-color:#c43e4a!important;background:#fff7f7!important}
#ledger-save-button{min-width:166px}#ledger-save-button:disabled{opacity:1;background:#dfe9e9;border-color:#b3c6c5;color:#416763;cursor:default;box-shadow:none}
.ledger-save [data-action="ledger-revert"]:disabled{opacity:.4;cursor:default}
.save-spinner{width:16px;height:16px;display:inline-block;border:2px solid #ffffff70;border-top-color:#fff;border-radius:50%;animation:ledger-saving .8s linear infinite}
@keyframes ledger-saving{to{transform:rotate(360deg)}}
.ledger-save::before{content:"";display:inline-block;flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#45806d;box-shadow:0 0 0 4px #45806d12}
.ledger-confirm[data-state="dirty"] .ledger-save::before{background:#b58b46}.ledger-confirm[data-state="error"] .ledger-save::before,.ledger-confirm[data-state="pending"] .ledger-save::before{background:#b94b53}.ledger-confirm[data-state="saving"] .ledger-save::before{background:#457b9a;animation:autosave-pulse 1s ease-in-out infinite}
.clinical-ledger .ledger-save{justify-content:flex-start;gap:12px;min-height:30px}
.clinical-ledger .ledger-save>div{flex:1}.clinical-ledger .ledger-save strong{font-size:15px}.clinical-ledger .ledger-save small{font-size:13px}
.clinical-ledger .ledger-row-status{font-size:12px;color:#466d60;font-weight:600}.clinical-ledger .ledger-changed .ledger-row-status{color:#93651d}
.clinical-ledger tr[data-auto-error] .ledger-row-status,.clinical-ledger tr[data-auto-issue]:not([data-auto-issue=""]) .ledger-row-status{color:#a63843}
@keyframes autosave-pulse{50%{box-shadow:0 0 0 5px #457b9a20;opacity:.6}}
@media(prefers-reduced-motion:reduce){.ledger-confirm[data-state="saving"] .ledger-save::before{animation:none}}
@media(prefers-reduced-motion:reduce){.save-spinner{animation:none}}
.primary-payment-fields{display:grid;gap:6px;margin:8px 0}.primary-payment-fields label,.extra-payment-grid label{font-size:12px;color:#456373}
.payment-expander input,.payment-expander select{margin-top:3px}.extra-payments{display:grid;gap:8px;margin-bottom:8px}
.extra-payment{border:1px solid #cde2e4;border-radius:7px;background:#f5fafb;padding:8px}.extra-payment fieldset{border:0;margin:0;padding:0;min-width:0}.extra-payment legend{font-size:12px;color:#456373;padding:0 0 5px}.extra-payment-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px}.extra-payment-grid .pay-method{grid-column:1/-1}
.extra-payment-actions{display:flex;justify-content:flex-end;gap:4px;margin-top:5px}.extra-payment-actions button{font-size:12px;padding:3px 5px;min-height:26px}.payment-void{background:#f7f4f4;opacity:.7}.ledger-table .extra-payment-grid input,.ledger-table .extra-payment-grid select{font-size:14px;padding:6px 5px}
.care-dialog{max-width:940px}.care-dialog-rows{display:grid;gap:12px;margin:14px 0}.care-treatment{display:grid;grid-template-columns:190px minmax(0,1fr);gap:25px;border:1px solid #dce5ed;border-radius:12px;padding:20px;background:#fcfdff}.care-tooth{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.care-tooth .tooth{width:150px;max-width:100%}.care-tooth .tooth svg{width:150px;height:150px;display:block}.care-tooth small{font-size:12px;text-align:center;color:var(--muted)}.care-tooth-placeholder{font-size:14px;color:var(--muted);text-align:center;padding:15px}.care-fields .field{min-width:0;flex:1}.care-fields>.flex{gap:20px}.care-fields input,.care-fields select{font-size:16px;min-height:40px;padding:8px 10px}.care-surfaces{margin:14px 0;padding:0;border:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.care-surfaces legend{font-size:14px;font-weight:600;margin-bottom:7px}.care-surface-choice{display:flex;align-items:center;gap:9px;cursor:pointer;padding:8px;border:1px solid #d6e0e8;background:white;border-radius:7px;font-size:14px}.care-surface-choice:has(input:checked){background:#f0eafa;border-color:#9675be;color:#5e3e8d}.care-surface-choice input{min-height:18px;height:18px;width:18px;accent-color:#8256ad}.care-dialog .form-footer{padding-top:16px;margin-top:16px}.care-dialog .form-footer small{max-width:55%}
@media(max-width:650px){.care-treatment{grid-template-columns:1fr;gap:14px;padding:12px}.care-tooth .tooth,.care-tooth .tooth svg{width:115px;height:115px}.care-dialog .form-footer{align-items:stretch;flex-direction:column}.care-dialog .form-footer small{max-width:100%}.care-surfaces{gap:5px}.care-surface-choice{font-size:13px;padding:7px}}
/* Three chair day planner. Positions use minutes, never overlapping fixed cards. */
.home-dashboard .home-welcome{padding:18px 24px;min-height:108px}.home-welcome h1{font-size:25px;margin:4px 0}.home-welcome p{margin:0}.home-reminders{align-items:start}.home-reminders .birthday-card{margin:0}
.schedule{--schedule-hour:120px;border:1px solid #c5d6e3;border-radius:18px;box-shadow:0 8px 32px #284e6f0d;overflow:hidden;background:#fff}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px 20px;background:linear-gradient(115deg,#fff,#f2f8fc 68%,#f3f1fc)}
.schedule-title{display:flex;align-items:center;gap:12px}.schedule-logo{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(140deg,#e3f5f5,#e7ebfb);color:#176c88;border:1px solid #c9e1e9}.schedule-logo svg{width:23px;height:23px}.schedule-title h2{font-size:21px;color:#213f56;margin:0}.schedule-title p{font-size:14px;color:#526b80;margin:3px 0 0;text-transform:capitalize}
.schedule-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.schedule-controls button{min-height:37px;font-size:14px;padding:7px 12px}.schedule-controls .schedule-arrow{font-size:24px;line-height:1;padding:4px 10px;min-width:34px}.schedule-controls .primary{margin-left:4px}.schedule-controls input{font-size:14px;padding:7px 9px;min-height:37px;width:147px;border-color:#c8d7e3}.schedule-date-picker{display:block}
.schedule-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:10px 20px;border-block:1px solid #e2e9f0;background:#fcfdff}
.schedule-week .schedule-day{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:6px 4px;min-height:75px;background:transparent;border:1px solid transparent;box-shadow:none;color:#647587;border-radius:10px;font-size:13px}.schedule-day>span{text-transform:uppercase;font-size:11px;letter-spacing:.8px}.schedule-day strong{font-size:21px;line-height:1.3;color:#344f66}.schedule-day small{font-size:11px;color:inherit}.schedule-week .schedule-day:hover{background:#edf4f8;border-color:#d4e2eb}.schedule-week .schedule-day.is-today:not(.selected){border-color:#94c8ce;color:#136c77}.schedule-week .schedule-day.selected{background:linear-gradient(125deg,#126a85,#356b9c);border-color:#15627e;color:#e9f7ff;box-shadow:0 4px 10px #245f8625}.schedule-day.selected strong{color:white}
.schedule-caption{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 20px;font-size:12px;color:#586e80;border-bottom:1px solid #d7e2eb}.schedule-caption b{color:#33536a;font-weight:600}
.schedule-scroll{height:490px;max-height:65vh;min-height:320px;overflow:auto;scrollbar-color:#98b0c4 #f1f5f8;scrollbar-width:thin;overscroll-behavior:contain}.schedule-canvas{min-width:690px}.schedule-head{position:sticky;top:0;z-index:7;display:grid;grid-template-columns:66px repeat(3,minmax(0,1fr));height:46px;background:#f5f8fb;box-shadow:0 2px 5px #28456610;border-bottom:1px solid #cbd9e5}.schedule-head>div{display:flex;align-items:center;gap:8px;padding:10px 16px;border-left:1px solid #dce5ed;background:linear-gradient(110deg,#fff,var(--lane-pale));color:var(--lane-ink)}
.lane-1{--lane-color:#15869c;--lane-ink:#185169;--lane-pale:#e4f5f7;--lane-fill:#e1f3f5;--lane-border:#9fcfd7}.lane-2{--lane-color:#4d76bf;--lane-ink:#294e86;--lane-pale:#eaf0fd;--lane-fill:#e7effe;--lane-border:#b4c8ed}.lane-3{--lane-color:#8261b4;--lane-ink:#5b4084;--lane-pale:#f2edfa;--lane-fill:#f0e9fa;--lane-border:#d0bde8}
.schedule-head i{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:var(--lane-color);box-shadow:0 0 0 4px var(--lane-pale)}.schedule-head strong{font-size:15px}.schedule-head>div>span{margin-left:auto;font-size:12px;color:#657b8d}.schedule-timezone{font-size:10px;letter-spacing:.8px;display:grid;place-items:center;color:#758898}
.schedule-body{display:flex;position:relative;isolation:isolate;background:#fff}.schedule-hours{width:66px;flex-shrink:0;position:sticky;left:0;z-index:4;background:#fafcfd;border-right:1px solid #dce5ed}.schedule-hours>span{position:absolute;left:0;right:0;padding:5px 8px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;text-align:center;color:#61788b;border-top:1px solid #dce5ed}
.schedule-lane{position:relative;flex:1;min-width:0;border-right:1px solid #dce5ed;background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#e9eef3 59px,#e9eef3 60px,transparent 60px,transparent 119px,#dce5ed 119px,#dce5ed 120px)}.schedule-lane:last-of-type{border-right:0}
.schedule-slot{position:absolute;left:0;width:100%;height:60px;min-height:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--lane-ink);justify-content:flex-start;padding:10px 14px;font-size:12px;z-index:0}.schedule-slot>span{opacity:0}.schedule-slot:hover:not(:disabled),.schedule-slot:focus-visible{background:var(--lane-pale);box-shadow:inset 0 0 0 1px var(--lane-border);transform:none}.schedule-slot:hover:not(:disabled)>span,.schedule-slot:focus-visible>span{opacity:1}.schedule-slot:disabled{opacity:1;background:transparent;cursor:default}
.schedule-event{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:3px;border-radius:8px;border:1px solid var(--lane-border);border-left:4px solid var(--lane-color);padding:9px 11px;min-width:0;min-height:0;text-align:left;background:linear-gradient(115deg,var(--lane-fill),#ffffffed);box-shadow:0 2px 4px #2346620a;color:var(--lane-ink);overflow:hidden;line-height:1.3;cursor:pointer;transition:box-shadow .15s,border-color .15s}.schedule-event:hover{transform:none;background:var(--lane-fill);box-shadow:0 3px 10px #345b7726;border-color:var(--lane-color)}.schedule-event>strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.3}.schedule-event-time{display:flex;gap:4px;align-items:center;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.schedule-event-time>span{margin-left:auto;font-size:10px;font-weight:400}.schedule-event-reason{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.schedule-event-footer{margin-top:auto;display:flex;gap:4px;align-items:center;font-size:10px;white-space:nowrap;overflow:hidden}.schedule-event-footer>span{padding:2px 5px;border-radius:4px;background:#ffffffb3}.schedule-event-footer small{overflow:hidden;text-overflow:ellipsis;margin-left:auto;font-size:11px}
.schedule-event.event-medium{padding:4px 9px;gap:1px}.schedule-event.event-medium .schedule-event-footer,.schedule-event.event-medium .schedule-event-reason{display:none}.schedule-event.event-short{padding:0 5px;flex-direction:row;align-items:center;gap:6px;border-radius:4px}.schedule-event.event-short>strong{font-size:12px}.schedule-event.event-short .schedule-event-time{font-size:10px}.schedule-event.event-short .schedule-event-time>span,.schedule-event.event-short .schedule-event-reason,.schedule-event.event-short .schedule-event-footer{display:none}
.schedule-event.event-attended{--lane-fill:#e9f4ef;--lane-color:#4b9079;--lane-border:#b7d5c9;--lane-ink:#386b59}.schedule-event.event-missed{--lane-fill:#fff3e5;--lane-color:#ba8140;--lane-border:#e4c7a2;--lane-ink:#875d2d}.schedule-event.event-cancelled{--lane-fill:#f1f3f5;--lane-color:#9eabb5;--lane-border:#c8d1d9;--lane-ink:#647784;border-style:dashed}.schedule-event.event-cancelled>strong{text-decoration:line-through}.schedule-event.event-private{--lane-fill:#eef1f6;--lane-color:#718399;--lane-border:#c2cdd8;--lane-ink:#4f6275;cursor:default}
.schedule-now{position:absolute;left:0;right:0;z-index:5;border-top:2px solid #df536b;pointer-events:none}.schedule-now[hidden]{display:none}.schedule-now>span{position:absolute;left:5px;top:-11px;background:#c9425c;color:white;padding:2px 5px;border-radius:4px;font-size:11px;line-height:1.4}.schedule-now::after{content:'';position:absolute;left:62px;top:-5px;width:8px;height:8px;border-radius:50%;background:#df536b}
.schedule-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 20px;border-top:1px solid #d7e2eb;background:#fafcfe;color:#52697b;font-size:12px}.schedule-legend>span{display:flex;gap:5px;align-items:center}.schedule-legend i{display:inline-block;width:8px;height:8px;border-radius:3px}.legend-booked{background:#397da1}.legend-attended{background:#4b9079}.legend-missed{background:#ba8140}.schedule-legend label{display:flex;align-items:center;gap:5px}.schedule-legend input{width:15px;height:15px;min-height:0;accent-color:#287390}.schedule-legend>small{margin-left:auto;font-size:11px;color:#6c8192}
.schedule :is(button,input):focus-visible,.schedule-event:focus-visible,.schedule-scroll:focus-visible{outline:3px solid #418fae;outline-offset:-3px}.schedule-patient-name{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:12px;background:#edf5f8;border-radius:9px}.schedule-patient-name svg{width:24px;height:24px;color:#38778b}.schedule-form-note{font-size:12px;color:#64798c;margin:0 0 15px}
@media(max-width:1000px){.schedule-toolbar{padding:14px}.schedule-controls{gap:4px}.schedule-week{padding:8px 12px}.schedule-event-time>span{display:none}.schedule-head>div{padding:10px}}
@media(max-width:750px){.home-dashboard .home-welcome{padding:15px}.home-welcome h1{font-size:22px}.home-reminders{grid-template-columns:1fr}.schedule-toolbar{gap:12px}.schedule-title h2{font-size:19px}.schedule-title p{font-size:12px}.schedule-logo{width:38px;height:38px}.schedule-controls{width:100%}.schedule-controls .primary{margin-left:auto}.schedule-controls .primary svg{display:none}.schedule-controls button{font-size:12px;padding:6px 9px}.schedule-controls input{font-size:12px;width:133px}.schedule-week{padding:8px 6px;gap:3px}.schedule-week .schedule-day{min-height:66px}.schedule-day strong{font-size:19px}.schedule-day small{font-size:10px}.schedule-caption{padding:8px 12px}.schedule-caption>span:last-child{display:none}.schedule-legend{gap:10px;padding:10px 12px}.schedule-legend>small{width:100%;margin-left:0}.schedule-scroll{height:440px;min-height:280px}.schedule{border-radius:13px}}
@media(prefers-reduced-motion:reduce){.schedule-event{transition:none}}

/* Date control and compact booking refinements. */
.schedule-controls input{border:1px solid #c8d7e3;border-radius:8px;background:#fff;color:#314d63}
.schedule-event.event-medium .schedule-event-reason{display:block}
.schedule-event.event-medium{gap:1px}
.schedule-title p{text-transform:none}

/* Calendar connection controls stay separate from clinical data. */
.google-connection{display:flex;gap:5px;flex-direction:column;padding:15px 17px;background:#edf6f5;border:1px solid #c7dfda;border-radius:10px;margin:15px 0}.google-connection span{color:#42696a;font-size:14px}
.google-help{margin:14px 0;padding:13px;border:1px solid #d8e2ec;border-radius:9px}.google-help summary{cursor:pointer;font-weight:600}.google-help li{margin:9px 0;line-height:1.5}
.google-auth-link{display:inline-block;margin:18px 0;padding:13px 20px;background:#087e88;border-radius:9px;color:white;font-weight:650;text-decoration:none}
.google-conflict{border:1px solid #e3c5a5;background:#fffbf6;padding:15px;margin:12px 0;border-radius:10px}.google-conflict p{margin:8px 0;color:#755b40}.google-versions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0}.google-versions>div{display:flex;flex-direction:column;gap:5px;padding:10px;background:#fff;border:1px solid #e2e7eb;border-radius:8px}.google-versions small{color:#596d81;letter-spacing:.04em;font-size:11px}.google-versions b{font-size:15px}.google-versions span{font-size:13px;color:#52697b}
@media(max-width:750px){.google-versions{grid-template-columns:1fr}}
.viewer-label{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid #b6d3e5;border-radius:7px;background:#edf6ff;color:#285571;font-size:13px;font-weight:600;white-space:nowrap}
.viewer-mode form[data-form]:not([data-form="ortho-unlock"]) .form-footer{display:none}
.viewer-mode main input:disabled,.viewer-mode main textarea:disabled,.viewer-mode main select:disabled,.viewer-mode dialog input:disabled,.viewer-mode dialog textarea:disabled,.viewer-mode dialog select:disabled{opacity:1;color:#33495b;background:#f3f7fa;cursor:default;-webkit-text-fill-color:#33495b}

.lane-4{--lane-color:#bb783e;--lane-ink:#79502f;--lane-pale:#fff4e6;--lane-fill:#fff0dc;--lane-border:#e5c49d}

/* Movimiento ambiental mas visible; el SVG del logotipo conserva sus tiempos. */
.effects-on .workspace::before{animation-duration:14s}
.effects-on .ambient-signal{animation-duration:12s;opacity:.8}
.effects-on .ambient-nodes{animation-duration:4.5s;opacity:.85}
.effects-on .hero-signal{animation-duration:6s}.effects-on .hero-stars{animation-duration:4s}.effects-on .hero-sheen{animation-duration:7s}
.effects-on .hero::before{animation-duration:16s}.effects-on .hero::after{animation-duration:6s}
.effects-on .tabs button.active::after{animation-duration:3.5s}.effects-on .card-head::after,.effects-on .modal-head::after{animation-duration:6s}
.effects-on .sx-chair.is-busy::before{animation-duration:3.5s}.effects-on .sx-bar{animation-duration:.5s}.effects-on .sx-line{animation-duration:.85s}
body.page-hidden .workspace::before,body.page-hidden .hero::before,body.page-hidden .hero::after,body.page-hidden .ambient-signal,body.page-hidden .ambient-nodes,body.page-hidden .hero-signal,body.page-hidden .hero-stars,body.page-hidden .hero-sheen{animation-play-state:paused!important}
