/* Dr.View OPD — Doctor Weekly Schedule & Leave Studio (admin only) */
.ds-overlay{position:fixed;inset:0;z-index:1800;background:#11294e86;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto;font-family:'Segoe UI Variable Text','Segoe UI',Arial,sans-serif;color:#163c6d}
.ds-overlay *{box-sizing:border-box}.ds-dialog{background:#fff;width:min(1120px,100%);max-height:min(92vh,970px);overflow:hidden;display:flex;flex-direction:column;border-radius:19px;box-shadow:0 30px 80px #0820455c;border:1px solid #d7e5f9}
.ds-header{padding:17px 22px 15px;display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #e0ebf7}
.ds-eyebrow{font-size:10px;letter-spacing:.12em;color:#5280b5;font-weight:650}.ds-header h2{font-size:21px;font-weight:700;color:#0b376e;margin:4px 0}.ds-header p{font-size:12px;color:#6580a2;margin:2px 0}.ds-close{border:0;background:#eef5ff;color:#195aac;font-size:25px;border-radius:11px;width:38px;height:38px;line-height:1;cursor:pointer}
.ds-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:14px 21px 7px;background:#fff}
.ds-tabs button{border:1px solid #d9e6f5;background:#f3f8ff;color:#22548f;border-radius:10px;padding:12px 7px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.ds-tabs button.active{background:linear-gradient(115deg,#107fea,#0752bd);border-color:#0871d7;color:#fff;box-shadow:0 3px 10px #0876d522}
.ds-body{overflow:auto;padding:13px 22px 22px;min-height:275px}.ds-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 16px}.ds-section-head h3{margin:0 0 4px;color:#123f79;font-size:16px;font-weight:680}.ds-section-head p{font-size:11px;color:#7187a1;margin:0}.ds-pill{border-radius:30px;padding:8px 11px;background:#e9f3ff;color:#1361bd;font-size:11px;font-weight:600}.ds-flag{font-size:11px;border-radius:30px;padding:8px 11px;border:0;cursor:pointer;font-weight:600}.ds-flag.on{background:#e2f8e9;color:#087d42}.ds-flag.off{background:#fff0ef;color:#be3946}
.ds-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:17px}.ds-control{display:flex;flex-direction:column;gap:7px;padding:9px 10px;border:1px solid #d8e7fa;border-radius:12px;background:#f7faff;min-width:0;font-size:11px;font-weight:600;color:#355a84}.ds-control input,.ds-control select{border:1px solid #d2e0f3;border-radius:9px;background:white;color:#183a67;font:inherit;font-size:12px;min-height:37px;padding:7px 9px;width:100%;min-width:0;outline:none}.ds-control input:focus,.ds-control select:focus{border-color:#1682e5;box-shadow:0 0 0 3px #258ae31c}
.ds-table-scroll{overflow-x:auto;border:1px solid #d9e5f4;border-radius:12px}.ds-week-table{border-collapse:collapse;width:100%;min-width:795px;font-size:11.5px}.ds-week-table th{background:#e9f2ff;border-bottom:1px solid #d7e3f5;color:#2c517b;text-align:left;font-size:11px;font-weight:650;padding:12px 11px;text-transform:none;letter-spacing:0}.ds-week-table td{padding:9px 11px;border-bottom:1px solid #edf2f8;color:#24456b;vertical-align:middle}.ds-week-table tr:last-child td{border-bottom:none}.ds-week-table tr.day-off{background:#fff5f6}.ds-week-table td:first-child strong{font-size:12px}.ds-week-table td:nth-child(2){white-space:nowrap}.ds-week-table td:nth-child(2) small{margin-left:7px;font-size:10.5px}.ds-switch{width:38px;height:22px;border-radius:99px;background:#aabbd0;border:0;padding:3px;vertical-align:middle;cursor:pointer;transition:background .2s}.ds-switch.enabled{background:#0ba258}.ds-switch span{display:block;height:16px;width:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #1235;transform:translateX(0);transition:transform .2s}.ds-switch.enabled span{transform:translateX(16px)}.ds-shift-cell{min-width:400px}.ds-shift-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.ds-shift{display:inline-flex;align-items:center;border:1px solid #d4e2f3;border-radius:9px;background:#f7faff;color:#3b5879;font-size:11px;padding:3px 4px;gap:2px}.ds-shift input{width:92px;border:0;outline:0;background:transparent;color:#244d84;padding:4px 1px;font-size:10.5px;min-width:0}.ds-shift button{border:0;background:#fae9e9;color:#ae4854;border-radius:6px;width:19px;height:23px;font-weight:700;cursor:pointer}.ds-addshift{border:1px dashed #8ab9ed;border-radius:8px;padding:7px;background:#eaf4ff;color:#135db9;font-size:10.5px;font-weight:650;cursor:pointer}.ds-addshift:disabled{opacity:.45}.ds-day-limit{border:1px solid #d3e1f1;width:75px;padding:8px;border-radius:8px;color:#174a80;background:#fff}.ds-off-text{color:#a0616b}
.ds-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.ds-stat{border-radius:11px;border:1px solid #dbe8f8;padding:12px 15px;background:#f6faff}.ds-stat b,.ds-stat small{display:block}.ds-stat b{font-size:14px;font-weight:700;margin-bottom:3px;overflow-wrap:anywhere}.ds-stat small{font-size:11px;color:#69819d}.ds-stat.good{background:#e9fbf1;color:#087c47}.ds-stat.warn{background:#fff2f4;color:#b94251}.ds-stat.blue{background:#ebf4ff;color:#1955ab}
.ds-info{padding:13px 15px;margin:14px 0;border:1px solid #d9e9fa;background:#f3f8ff;border-radius:10px;color:#45698e;font-size:11.5px;line-height:1.65}.ds-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.ds-basic-grid>div{padding:13px;border:1px solid #dfe9f6;background:#f7faff;border-radius:11px}.ds-basic-grid small{display:block;color:#778ca7;font-size:10px;margin-bottom:5px}.ds-basic-grid strong{font-size:13px;color:#1a3e65;font-weight:650}
.ds-secondary{padding:11px 17px;border:1px solid #bdd6f3;border-radius:9px;background:#e8f3ff;color:#0968c1;cursor:pointer;font-size:12px;font-weight:650}.ds-leaves{display:flex;flex-direction:column;gap:10px;margin-top:12px}.ds-leave-row{display:grid;grid-template-columns:1fr 1fr 1.6fr 35px;gap:10px;align-items:end;border:1px solid #dbe8f9;border-radius:11px;padding:12px;background:#f8fbff}.ds-leave-row label{display:flex;flex-direction:column;gap:5px;color:#395777;font-size:11px;font-weight:550}.ds-leave-row input{min-width:0;width:100%;border:1px solid #cbdff4;border-radius:8px;padding:10px;color:#1e466c;font:inherit;background:#fff}.ds-del{height:36px;border:1px solid #f0cad0;border-radius:9px;background:#fff0f1;color:#b93c4b;cursor:pointer;font-size:19px}.ds-empty{border:1px dashed #b8d0ee;border-radius:11px;padding:36px;text-align:center;color:#6481a4;background:#f7fbff;font-size:12px}.ds-caption{font-size:11px;color:#70839b}.ds-other-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.ds-setting-line{grid-column:1/-1;background:#f2faf5;border:1px solid #c9ebd8;border-radius:10px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:20px}.ds-setting-line b{display:block;font-size:13px;color:#166141}.ds-setting-line small{font-size:10.5px;color:#4d8066;display:block;margin-top:5px}
.ds-bottom{padding:14px 22px;border-top:1px solid #dfeaf7;display:flex;justify-content:flex-end;align-items:center;gap:10px;background:#fff}.ds-help{font-size:10.5px;color:#738ba5;line-height:1.4;flex:1}.ds-neutral,.ds-save{border-radius:10px;padding:11px 17px;font-size:12px;font-weight:650;cursor:pointer}.ds-neutral{background:white;border:1px solid #c7dbf4;color:#28558a}.ds-save{border:1px solid #0570d4;background:linear-gradient(110deg,#107ee6,#0757c8);color:white;box-shadow:0 3px 10px #0972ce24}.ds-save:disabled{opacity:.5;cursor:wait}
@media(max-width:900px){.ds-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ds-overlay{padding:6px}.ds-dialog{max-height:98vh;border-radius:12px}.ds-header{padding:14px}.ds-body{padding:11px}.ds-tabs{padding:9px}.ds-tabs button{font-size:10px;padding:9px 3px}.ds-controls,.ds-other-grid,.ds-basic-grid{grid-template-columns:1fr}.ds-summary-grid{grid-template-columns:1fr}.ds-leave-row{grid-template-columns:1fr 1fr}.ds-leave-row label:nth-child(3){grid-column:1/-1}.ds-bottom{flex-wrap:wrap;padding:9px}.ds-help{flex:0 0 100%}}
