:root{--bg: #e7ebf2;--content-bg: #f6f8fc;--panel: #ffffff;--primary: #4b9faa;--primary-dark: #347f8a;--brand: #176486;--navy: #14243e;--text: #26354d;--muted: #74839b;--border: #e3e8f0;--soft-blue: #e5f3f4;--soft-blue-text: #247b87;--soft-grey: #eef1f6;--radius: 14px;font-family:Segoe UI,Inter,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}h1{font-size:27px;font-weight:800;color:var(--navy);margin:0 0 18px;letter-spacing:-.01em}h2{font-size:19px;font-weight:700;color:var(--navy);margin:0 0 14px}h3{font-size:16px;font-weight:700;color:var(--navy)}button{cursor:pointer;border:none;border-radius:12px;padding:10px 20px;background:var(--primary);color:#fff;font-size:14px;font-weight:600;font-family:inherit;transition:background .15s,box-shadow .15s;box-shadow:0 2px 6px #4b9faa40}button:hover{background:var(--primary-dark)}button.secondary{background:var(--soft-grey);color:#2c3e57;box-shadow:none}button.secondary:hover{background:#e2e7ee}button.danger{background:#d64545;color:#fff;box-shadow:none}button.danger:hover{background:#bd3838}button.mini.danger{background:#fdeaea;color:#c23b3b}button.mini.danger:hover{background:#f8d7d7}button:disabled{opacity:.5;cursor:not-allowed}input,select{padding:10px 14px;border:1px solid #d9e0ea;border-radius:10px;font-size:14px;width:100%;background:#fff;color:var(--text);font-family:inherit}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #4b9faa29}.layout{display:flex;max-width:1760px;margin:22px auto;min-height:calc(100vh - 44px);background:var(--panel);border-radius:24px;overflow:hidden;box-shadow:0 18px 50px #14243e1a}.sidebar{width:256px;flex-shrink:0;background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:26px 18px 20px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:.01em;margin:0 6px 34px}.brand-logo{display:block;object-fit:contain;flex-shrink:0}.b-dark{color:#176486}.b-light{color:#55aeb7}.sidebar nav{display:flex;flex-direction:column;gap:6px;flex:1}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:11px 14px;border-radius:12px;color:#44546d;font-size:15px;font-weight:500;line-height:1.25}.nav-icon{width:21px;height:21px;flex-shrink:0;color:#3d4c66}.sidebar nav a:hover{background:#f2f6fb}.sidebar nav a.active{background:var(--soft-blue);color:var(--soft-blue-text);font-weight:600}.sidebar nav a.active .nav-icon{color:var(--soft-blue-text)}.sidebar-footer{padding-top:16px}.lang{display:flex;gap:4px;margin-bottom:12px;align-items:center}.lang button{background:transparent;color:var(--muted);padding:5px 12px;font-size:12.5px;font-weight:700;border-radius:8px;box-shadow:none}.lang button.active{background:var(--primary);color:#fff}.user{font-size:13px;margin:0 4px 10px;color:var(--muted)}.logout{background:var(--soft-grey);color:#2c3e57;width:100%;box-shadow:none;font-weight:600}.logout:hover{background:#e2e7ee}.content{flex:1;padding:34px 42px;background:var(--content-bg);min-width:0}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.search{max-width:440px;margin:18px 0}.toolbar{display:flex;gap:12px;margin:18px 0;max-width:640px}.reception-mode-note,.communication-note{margin:10px 0 14px;padding:11px 14px;border:1px solid #bddfe2;border-radius:11px;background:#edf8f8;color:#276b74;font-size:13.5px;font-weight:600}.communication-note{display:inline-block;margin-top:0}.journal-setting{display:flex;align-items:center;gap:12px;width:min(520px,100%);color:var(--muted);font-size:13px;font-weight:700}.journal-setting select{width:auto;min-width:240px}.grid{width:100%;border-collapse:separate;border-spacing:0;background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;box-shadow:0 2px 10px #14243e0a}.grid th,.grid td{text-align:left;padding:14px 18px;border-bottom:1px solid #eef1f6;font-size:14px}.grid th{background:var(--panel);color:#8b99b0;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.07em;border-bottom:1px solid var(--border)}.grid tbody tr:last-child td{border-bottom:none}.grid tbody tr:hover{background:#f9fbfe}.badge{display:inline-block;padding:5px 13px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap}.badge.ok{background:#d9f2df;color:#178a43}.badge.off{background:#eceff4;color:#64748b}button.mini{padding:6px 14px;font-size:12.5px;border-radius:10px;background:var(--soft-blue);color:var(--soft-blue-text);box-shadow:none;font-weight:600}button.mini:hover{background:#d4ecfb}button.mini.secondary{background:var(--soft-grey);color:#46586f}button.mini.secondary:hover{background:#e2e7ee}.muted{color:var(--muted)}.btn-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.login-wrap{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg)}.login-card{background:var(--panel);padding:38px 36px;border-radius:20px;box-shadow:0 18px 50px #14243e1f;width:380px;display:flex;flex-direction:column;gap:15px}.login-card h1{margin:0 0 4px;font-size:21px}.login-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:600}.login-brand-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:10px}.login-brand{font-weight:800;font-size:27px;letter-spacing:.02em}.login-subtitle{font-size:11px;color:#5b8a97;letter-spacing:.09em;text-transform:uppercase;font-weight:600;text-align:center}.form-error{color:#d03b3b;font-size:13px}.form-ok{color:#178a43;font-size:13px}.center{display:grid;place-items:center;min-height:100vh}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#14243e73;display:grid;place-items:center;z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:var(--panel);border-radius:18px;padding:28px;width:640px;max-width:92vw;display:flex;flex-direction:column;gap:15px;max-height:90vh;overflow-y:auto;box-shadow:0 24px 60px #14243e40}.modal h2{margin:0}.modal.wide{width:880px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid label,.checkbox{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:600}.checkbox{flex-direction:row;align-items:center;gap:8px}.checkbox input{width:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.modal textarea{padding:10px 14px;border:1px solid #d9e0ea;border-radius:10px;font-size:14px;width:100%;font-family:inherit;resize:vertical}.modal>label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:600}.detail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);padding:24px;margin:16px 0 24px;box-shadow:0 2px 10px #14243e0a}.detail-field{display:flex;flex-direction:column;gap:4px;font-size:14.5px}.detail-field .muted{font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.alert-banner{background:#fdf0d4;border:1px solid #efc36b;color:#8a5a12;padding:12px 16px;border-radius:12px;font-weight:600}.slot-grid{display:flex;flex-wrap:wrap;gap:8px}button.slot{background:#fff;color:var(--text);border:1px solid #d9e0ea;box-shadow:none;padding:8px 14px;border-radius:10px;font-weight:600}button.slot:hover{background:var(--soft-blue);border-color:var(--primary)}button.slot.active{background:var(--primary);color:#fff;border-color:var(--primary)}.picked{display:flex;align-items:center;gap:10px;justify-content:space-between}.picker-list{display:flex;flex-direction:column;gap:4px;margin-top:6px}.picker-list button{background:#f7f9fc;color:var(--text);text-align:left;border:1px solid var(--border);box-shadow:none;font-weight:500}.picker-list button:hover{background:var(--soft-blue)}.report-card{background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);padding:24px 28px;margin-bottom:24px;box-shadow:0 2px 10px #14243e0a}.report-card .grid{border:none;box-shadow:none;border-radius:0}.bar-chart{display:flex;flex-direction:column;gap:12px;max-width:720px}.bar-row{display:grid;grid-template-columns:130px 1fr 44px;align-items:center;gap:12px}.bar-label{font-size:13.5px;color:var(--muted);font-weight:600}.bar-track{background:#edf1f7;border-radius:999px;height:12px}.bar-fill{background:var(--primary);border-radius:999px;height:100%;min-width:3px;transition:width .3s}.bar-value{font-size:14px;text-align:right;font-weight:700;color:var(--navy)}.audit-values{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:center}.tabs{display:flex;gap:6px;border-bottom:2px solid var(--border);margin:18px 0;flex-wrap:wrap}button.tab{background:transparent;color:var(--muted);border:none;border-radius:10px 10px 0 0;padding:9px 18px;font-size:14.5px;margin-bottom:-2px;border-bottom:2px solid transparent;box-shadow:none;font-weight:600}button.tab:hover{color:var(--text);background:#eef3f9}button.tab.active{color:var(--primary);border-bottom-color:var(--primary)}.tooth-chart{background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);padding:28px;box-shadow:0 2px 10px #14243e0a}.tooth-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.tooth-rows{min-width:max-content;margin:0 auto}.tooth-row{display:flex;gap:3px;justify-content:center;flex-wrap:nowrap}.jaw-divider{border-top:1px dashed #cdd6e3;margin:10px 24px}button.tooth-cell{width:36px;display:flex;flex-direction:column;align-items:center;gap:2px;background:transparent;border:none;border-radius:10px;padding:6px 2px 4px;box-shadow:none;cursor:pointer;transition:background .12s,transform .12s}button.tooth-cell.problem{background:#fdeef0}button.tooth-cell:hover{background:var(--soft-blue);transform:translateY(-3px);box-shadow:0 6px 14px #14243e24}button.tooth-cell.problem:hover{background:#fbdfe3}button.tooth-cell:disabled{cursor:default;transform:none;box-shadow:none}button.tooth-cell:disabled:hover{background:transparent}button.tooth-cell.problem:disabled:hover{background:#fdeef0}.tooth-svg{width:24px;height:64px;display:block}.tooth-num{font-size:11.5px;font-weight:700;color:#3d5470;pointer-events:none}.tooth-marks{display:flex;gap:3px;min-height:7px;pointer-events:none}.mark{width:7px;height:7px;border-radius:50%;display:inline-block}.mark.red{background:#e0483f}.mark.green{background:#1ca457}.mark.blue{background:#2f80d6}.tooth-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px;justify-content:center}.legend-item{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);font-weight:600}.legend-item i{width:13px;height:13px;border-radius:4px;display:inline-block;border:1px solid #d9e0ea}.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}.file-card{background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);padding:12px;display:flex;flex-direction:column;gap:8px;box-shadow:0 2px 10px #14243e0a}.file-preview{height:124px;display:flex;align-items:center;justify-content:center;background:#f2f5fa;border-radius:10px;overflow:hidden}.file-preview img{max-width:100%;max-height:100%;object-fit:cover}.file-pdf{font-weight:800;color:var(--muted);letter-spacing:2px}.file-meta{display:flex;flex-direction:column;gap:2px;font-size:12.5px}.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.cash-summary{display:flex;gap:26px;margin-top:14px;flex-wrap:wrap;align-items:center;font-size:14.5px}.debt{color:#d03b3b}.deposit-balance{color:#178a43}.row-off{opacity:.45}.temp-pw{font-family:Consolas,monospace;font-size:20px;background:#f2f5fa;border:1px dashed #c3cddd;border-radius:12px;padding:14px;text-align:center;-webkit-user-select:all;user-select:all}@media (max-width: 1080px){.layout{margin:0;border-radius:0;min-height:100vh}.content{padding:22px 18px}.sidebar{width:220px;padding:20px 12px 16px}}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:16px 0 4px}.sum-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px 18px;display:flex;flex-direction:column;gap:4px;box-shadow:0 2px 10px #14243e0a}.sum-card b{font-size:17px;color:var(--navy)}.sum-card .small{font-size:12.5px}.timeline{display:flex;flex-direction:column;gap:10px;max-width:860px}.timeline-item{display:flex;gap:14px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:13px 18px;box-shadow:0 2px 10px #14243e0a}.tl-icon{font-size:21px;line-height:1.4}.tl-body{flex:1;min-width:0}.tl-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tl-sub{font-size:13.5px;margin-top:2px}.tl-details{font-size:13px;color:var(--muted);margin-top:6px;background:#f6f8fc;border-radius:8px;padding:8px 12px}.xray-inbox{margin-top:28px;border-top:2px dashed var(--border);padding-top:18px}.file-card.inbox{border-color:#efc36b;background:#fffdf5}@media (max-width: 760px){.layout{flex-direction:column;margin:0;border-radius:0;min-height:100vh}.sidebar{width:100%;border-right:none;border-bottom:1px solid var(--border);padding:12px 12px 10px}.brand{margin:0 4px 10px;font-size:17px}.brand-logo{width:30px;height:30px}.sidebar nav{flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:4px;-webkit-overflow-scrolling:touch}.sidebar nav a{flex-direction:column;gap:4px;padding:8px 10px;font-size:11px;white-space:nowrap;flex-shrink:0}.nav-icon{width:19px;height:19px}.sidebar-footer{display:flex;align-items:center;gap:10px;padding-top:8px}.sidebar-footer .lang{margin:0}.sidebar-footer .user{display:none}.logout{width:auto;margin-left:auto;padding:7px 14px;font-size:13px}.content{padding:16px 12px}h1{font-size:21px}.page-head{gap:10px}.toolbar{flex-direction:column;max-width:none}.search{max-width:none}.grid{display:block;overflow-x:auto;white-space:nowrap}.grid th,.grid td{padding:10px 12px;font-size:13px}.modal{width:100vw;max-width:100vw;max-height:100vh;border-radius:0;padding:18px}.modal.wide{width:100vw}.form-grid{grid-template-columns:1fr}.summary-cards{grid-template-columns:1fr 1fr;gap:8px}.sum-card{padding:10px 12px}.sum-card b{font-size:15px}.tooth-chart{padding:14px 10px}.tooth-scroll{margin:0 -10px;padding:0 10px 8px}.tooth-row{gap:2px}button.tooth-cell{width:30px;padding:5px 1px 4px}.tooth-svg{width:20px;height:54px}.tooth-num{font-size:10.5px}.jaw-divider{margin:8px 4px}.tooth-legend{gap:8px 12px}.tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:2px}button.tab{white-space:nowrap;padding:9px 13px;font-size:13.5px;flex-shrink:0}button{padding:11px 18px}button.mini{padding:8px 13px}.btn-row{gap:6px}.modal-actions button{flex:1}.cash-summary{gap:12px;font-size:13px}.detail-grid{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.file-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.file-preview{height:96px}}.receipt-modal{width:400px;align-items:center}.receipt-paper{width:320px;background:#fff;font-family:Consolas,Courier New,monospace;font-size:13px;color:#111;padding:10px 6px}.receipt-head{text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px}.receipt-brand{font-weight:800;font-size:18px;letter-spacing:.06em}.receipt-sub{font-size:11px;color:#444}.receipt-line{border-top:1px dashed #999;margin:10px 0}.receipt-row{display:flex;justify-content:space-between;gap:10px;margin:4px 0}.receipt-row span{color:#555}.receipt-row b{text-align:right}.receipt-total{display:flex;justify-content:space-between;font-weight:800;font-size:17px}.receipt-sign{margin-top:14px;font-size:12px}.receipt-thanks{text-align:center;margin-top:12px;font-size:12px;color:#444}@media print{body *{visibility:hidden!important}.receipt-paper,.receipt-paper *{visibility:visible!important}.receipt-paper{position:fixed;left:0;top:0;width:76mm;padding:2mm;box-shadow:none}.no-print{display:none!important}}.nav-badge{margin-left:auto;background:#e0483f;color:#fff;border-radius:999px;font-size:11px;font-weight:700;padding:2px 8px;min-width:20px;text-align:center}.request-list{display:flex;flex-direction:column;gap:12px;max-width:860px}.request-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;box-shadow:0 2px 10px #14243e0a}.request-main{flex:1;min-width:240px;display:flex;flex-direction:column;gap:6px}.request-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:15px}.request-details{display:flex;gap:12px;flex-wrap:wrap;font-size:13.5px}.request-comment{font-size:13px;background:#f6f8fc;border-radius:8px;padding:6px 10px}a.wa-btn{display:inline-flex;align-items:center;gap:4px;background:#e7f8ec;color:#128c4b;border-radius:10px;padding:5px 11px;font-size:12.5px;font-weight:700;white-space:nowrap}a.wa-btn:hover{background:#d4f2de}.booking-wrap{min-height:100vh;background:var(--bg);display:flex;justify-content:center;padding:24px 12px}.booking-card{background:var(--panel);border-radius:20px;box-shadow:0 18px 50px #14243e1f;width:480px;max-width:100%;padding:28px 26px;height:fit-content}.booking-head{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:18px}.booking-form{display:flex;flex-direction:column;gap:13px}.booking-form h1{font-size:22px;text-align:center;margin:0 0 4px}.booking-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:600}.booking-done{text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;padding:20px 0}.booking-done-icon{font-size:46px}.tunnel-info{background:#f2f8f4;border:1px solid #cde8d7;border-radius:12px;padding:10px 12px;margin-bottom:12px;display:flex;flex-direction:column;gap:8px}.tunnel-url{font-size:11.5px;font-weight:700;color:#178a43;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 760px){.tunnel-info{display:none}}
