/* Classic cabinet workspace, based on the supplied visual reference. */
:root{font-family:"Segoe UI",Arial,sans-serif;font-size:13px;color:#25343b;background:#dce3e6;color-scheme:light;--ink:#25343b;--nav:#242f35;--bar:#46616e;--line:#a4b2b9;--pale:#ffffe7;--accent:#7da83b}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #758c98;border-radius:2px;padding:7px 12px;background:linear-gradient(#f7f9fa,#d5dfe4);color:#253b47;min-height:32px}button:hover{background:#e0edf3;border-color:#4b738a}button:active{background:#b9ced8}button:disabled{opacity:.48;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #277b9e;outline-offset:2px}
input,select,textarea{width:100%;min-width:0;margin:0;border:1px solid #91a2ac;border-radius:1px;background:white;color:#20313b;padding:7px 8px;min-height:32px}textarea{min-height:80px;resize:vertical}input[type=checkbox],input[type=radio]{width:auto;min-height:0}label{display:block;color:#293e49;margin:7px 0}label>input,label>select,label>textarea{margin-top:4px}h1,h2,h3,p{overflow-wrap:anywhere}h1{margin:0;font-size:17px}h2{margin:0 0 10px;font-size:18px;font-weight:600;color:#2b424e}h3{margin:10px 0;font-size:15px}p{line-height:1.5}small{font-size:11px}header{display:flex;justify-content:space-between;align-items:center;padding:5px 12px;color:#f1f4f6;background:linear-gradient(#66757d,#43525a);border-bottom:1px solid #1d2b33}header h1{white-space:nowrap;font-size:17px;font-weight:600}header h1 small{font-weight:400;margin-left:8px;color:#d5e0e6}header button{min-height:27px;padding:3px 8px;color:#edf5f8;background:#445963;border-color:#83949e;font-size:11px}.brand-mark{color:#a4cb63;margin-right:5px}
.hidden,[hidden]{display:none!important}.main{padding:14px}.panel,.list-pane,.detail-pane{padding:14px;background:#f6f8f9;border:1px solid #96a6af;margin-bottom:12px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.card,.info-grid>div{padding:12px;background:#edf2f5;border:1px solid #bdc9d0}.card strong{display:block;font-size:24px;margin-top:6px}.muted,.lookup,.cmd-help{font-size:12px;color:#526774}.tag,.pill{display:inline-block;background:#e0ebed;color:#2a525b;border:1px solid #b3c9ce;padding:3px 7px;margin:3px}.split,.directory{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toolbar,.actions,.module-tabs{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.actions{margin-top:12px}.toolbar{margin-bottom:10px}.toolbar input{max-width:420px}.fields,.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.info-grid{margin:12px 0}.info-grid small{display:block;color:#536c78;margin-bottom:5px}.modal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.modal-form label{display:grid;gap:4px}.modal-form .long,.modal-form .full{grid-column:1/-1}.modal-form textarea{min-height:100px}.record,.entry{display:block;padding:10px;margin:7px 0;background:#edf3f6;border:1px solid #b1c1ca}.patient-text,.preview{white-space:pre-wrap;overflow-wrap:anywhere}.preview{background:white;padding:12px;overflow:auto}.empty,.reception-empty{padding:18px;color:#617680}.detail-block{padding:12px 0;border-top:1px solid var(--line)}
table{border-collapse:collapse;width:100%;min-width:600px;font-size:12px}td,th{padding:7px 9px;border-right:1px solid #d3dde2;border-bottom:1px solid #d4dfe4;text-align:left}th{color:#f4f8fa;background:#2c3e48;font-weight:500;white-space:nowrap}td{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}tbody tr:nth-child(even){background:#edf1f4}tbody tr:nth-child(odd){background:#fff}tbody tr:hover{background:#e0ebf0}tbody tr.selected,tbody tr.active{background:#3f5967;color:#fff}tbody tr.selected td{color:#fff}.cmd-table th{position:sticky;top:0;z-index:1}.cmd-frame{background:#f7f9fa;border:1px solid #a0b0b9}.cmd-title,.cmd-windowbar,.reception-heading{background:#46616e;color:#f4f8fa;padding:9px 11px;font-weight:600;border-bottom:1px solid #293e4a}.cmd-actions{display:flex;gap:7px;padding:8px;align-items:center;flex-wrap:wrap;background:#e8eef1;border-bottom:1px solid #bdcbd3}.cmd-actions label{margin:0;display:grid;gap:3px}.cmd-actions label input{margin:0}.cmd-scroll,.scroll{overflow:auto;max-height:65vh}.cmd-status{padding:8px;background:#e0e8ed;color:#405966;font-size:12px}.cmd-status button{font-size:12px}.cmd-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:20;background:#1326339c}.cmd-window{border:1px solid #547183;background:#f5f7f8;box-shadow:0 12px 48px #14263466}.cmd-windowbar{display:flex;justify-content:space-between;align-items:center;gap:10px}.cmd-windowbar button{color:white;background:#3a515f;border-color:#7f99a8}.cmd-windowbody{padding:14px}.medical-section{border:1px solid #aebfc8;background:#f1f5f7;padding:11px;margin:10px 0}.medical-section h3{margin:-11px -11px 10px;padding:8px 10px;background:#dbe6ec;border-bottom:1px solid #a9bdc9}.consultation-link{cursor:pointer}.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}.report-metric{padding:12px;border:1px solid #a1b4be;background:#f0f5f7;color:#46616e}.report-metric strong{display:block;font-size:24px;font-weight:600;margin-top:4px}.report-metric.debt{border-left:4px solid #b2854d}.report-metric.paid{border-left:4px solid #7da83b}.report-actions{display:flex;gap:8px;flex-wrap:wrap}
.key-toolbar{display:flex;gap:2px;align-items:stretch;background:#46616e;border-bottom:1px solid #263e4a;padding:6px 10px}.key-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:104px;min-height:66px;padding:4px 12px;border:0;border-right:1px solid #8a9da7;background:transparent;color:#f3f8fa;font-size:12px;white-space:nowrap}.key-tool:hover{background:#577786;color:#fff}.tool-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font:bold 25px Arial;color:#fff;box-shadow:inset 0 1px 3px #ffffff70,0 1px 3px #263b4660;background:linear-gradient(#a5c85b,#5f9229)}.tool-owner{background:linear-gradient(#77b5d4,#3480a9);font-size:23px}.tool-patient{background:linear-gradient(#93b6c2,#547e91);font-size:20px}.tool-calendar{background:linear-gradient(#d3a267,#9f7038);border-radius:4px}.tool-help{background:linear-gradient(#82b4d5,#427b9d);font-size:20px}#message{padding:7px 12px;background:#fff3cd;color:#53451d;white-space:pre-wrap;font-size:12px}#message:empty{display:none}
.reception-topline{display:flex;justify-content:space-between;align-items:center;gap:10px}.reception-topline h2{margin:0;font-size:15px;padding:8px 14px;background:#eef3f6;border:1px solid #adbec9;border-bottom:0;color:#314d5b}.reception-topline span{font-size:12px;color:#546b79}.reception-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;flex:1 1 auto;min-height:640px}.reception-left{min-width:0;display:grid;grid-template-rows:minmax(290px,1.1fr) minmax(220px,.9fr);gap:8px}.reception-panel{min-width:0;border:1px solid #8da2ae;background:#fff;display:flex;flex-direction:column}.reception-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.reception-heading button{min-height:25px;padding:3px 7px;font-size:11px}.reception-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;background:#e1e9ed;padding:7px}.reception-toolbar input{flex:1 1 180px;min-width:0}.reception-toolbar button{font-size:12px}.reception-scroll{overflow:auto;min-height:0;flex:1 1 auto}.reception-table{min-width:720px;font-size:12px}.reception-table th{position:sticky;top:0;z-index:1}.reception-table td,.reception-table th{padding:6px 7px}.reception-table .patient-open{min-width:84px}.reception-table .patient-open button{min-height:28px;padding:3px 7px;font-size:11px}.reception-filter td{background:var(--pale);padding:2px}.reception-filter input{min-height:25px;padding:3px 5px;background:transparent;border:0;font-size:11px}.reception-table tbody tr{cursor:pointer}.reception-table tbody tr.selected .patient-open{background:#3f5967}.reception-table tbody tr.selected button{color:#203b49}.reception-status{padding:6px 9px;background:#e9eef1;border-top:1px solid #bbc9d2;font-size:11px;color:#45606f}.reception-agenda{min-width:0;display:flex;flex-direction:column}.reception-agenda .reception-toolbar label{margin:0;display:flex;align-items:center;gap:6px}.reception-agenda input[type=date]{width:145px}.reception-range{display:flex;gap:4px}.reception-range button[aria-pressed=true]{background:#46616e;color:white}.reception-history{min-width:580px}.reception-history td{max-width:280px}.reception-agenda-body{flex:1 1 auto;min-height:0;background:var(--pale)}.reception-agenda-body .agenda-grid-wrap{max-height:none;height:100%;background:var(--pale)}.reception-agenda-body .agenda-grid{padding:0;min-width:calc(46px + var(--agenda-days)*160px);grid-template-columns:46px repeat(var(--agenda-days),minmax(160px,1fr))}.reception-agenda-body .agenda-day-heading{background:#46616e;color:#fff}.reception-agenda-body .agenda-hours{background:#46616e;color:#e3edf1}.reception-agenda-body .agenda-slot{background:var(--pale);border-color:#dedfc3}.reception-agenda-body .agenda-event{background:#d5dde0;border-color:#718a99;color:#273d49;border-radius:0}.reception-agenda-body .agenda-event:hover{background:#bed3df}.reception-agenda-body .agenda-list{background:var(--pale)}.reception-outside{padding:8px;border-top:1px solid #acbdc6}.reception-outside button{margin:3px}.reception-error{color:#9a2f1b;padding:10px}.finance-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.finance-filters label{margin:0}.finance-filters label input{width:145px}.finance-filters .finance-search{flex:1 1 180px}.finance-filters .finance-search input{width:100%}.finance-frame{flex:0 0 auto!important;overflow:visible!important}.finance-frame>.cmd-scroll{flex:0 0 auto!important;max-height:none!important}.finance-empty{padding:20px}.finance-row-actions{display:flex;gap:5px}.finance-row-actions button{font-size:12px;padding:5px 8px}.finance-table{min-width:900px}.finance-table td{max-width:280px}.finance-table .payment-unpaid{border-left:4px solid #bd8a43}.finance-table .payment-paid{border-left:4px solid #79a443}
@media(max-width:1000px){.reception-workspace{grid-template-columns:1fr;min-height:0;flex:0 0 auto}.reception-left{grid-template-rows:minmax(280px,auto) minmax(180px,auto)}.reception-scroll{max-height:380px}.reception-agenda-body .agenda-grid-wrap{max-height:650px}.reception-agenda-body{flex:0 0 auto}}
@media(max-width:750px){.split,.directory,.modal-form{grid-template-columns:1fr}.key-tool{min-width:90px;font-size:11px}.reception-topline{margin-bottom:4px}.reception-topline>span{display:none}.reception-workspace{display:flex;flex-direction:column}.reception-left{display:flex;flex-direction:column}.reception-panel{flex:0 0 auto}.reception-scroll{max-height:380px}.reception-range{width:100%}.reception-range button{flex:1}.reception-toolbar>button{flex:1 1 auto}.reception-table .patient-open button{min-height:44px}.reception-status{font-size:12px}.report-summary{gap:6px}.report-metric{padding:8px;font-size:12px}.report-metric strong{font-size:19px}.finance-filters>label{flex:1 1 120px}.finance-filters label input{width:100%}.finance-filters>button{flex:1}.finance-row-actions{flex-wrap:wrap}.finance-row-actions button{min-height:44px}}
@media print{header,nav,.key-toolbar,.cmd-actions,.actions,.reception-toolbar,.reception-topline,.reception-heading button,.finance-row-actions,#message{display:none!important}.cmd-scroll,.reception-scroll{max-height:none!important;overflow:visible}.reception-workspace,.reception-left{display:block}.reception-panel{margin:0 0 12px}.report-summary{grid-template-columns:repeat(3,1fr)}table{min-width:0}td{white-space:normal}.panel{border:0}}
