/* v1.8 · Lịch điều phối */
.schedule-card{padding:0!important;background:#fff}
.schedule-card>.modal-head{padding:14px 20px!important;margin:0!important;border-bottom:1px solid #e5e9f0;display:flex;align-items:center;gap:10px}
.schedule-card>.modal-head>div:first-child{flex:1;min-width:0}
.schedule-card>.modal-head h3{margin:0;font-size:18px}
.modal-head>.dk18-btn{margin-left:auto}
.schedule-toolbar{display:flex!important;align-items:center;gap:8px;padding:12px 20px 8px!important;flex-wrap:wrap}
.schedule-toolbar .ghost{border:1px solid #e2e8f0!important;background:#fff!important;border-radius:10px!important;padding:7px 12px!important;font-size:14px!important;cursor:pointer}
.schedule-toolbar .ghost:hover{background:#f8fafc!important;border-color:#94a3b8!important}
#scheduleRangeTitle{font-size:17px;color:#0f172a;margin:0 8px;min-width:170px}
.schedule-view-switch{display:flex;background:#f1f5f9;border-radius:10px;padding:3px;gap:2px;border:0!important}
.schedule-view-switch button{border:0!important;background:none!important;border-radius:8px!important;padding:6px 14px!important;font-size:14px;color:#475569;cursor:pointer}
.schedule-view-switch button.active{background:#fff!important;color:#1d4ed8!important;font-weight:700;box-shadow:0 1px 3px rgba(15,23,42,.12)}
#scheduleCopyWeekBtn{margin-left:auto}
.schedule-legend{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 20px 10px!important}
.schedule-legend-item{display:inline-flex!important;align-items:center;gap:6px;border:1px solid #e2e8f0;border-radius:999px;padding:4px 11px 4px 8px;font-size:12.5px;color:#334155;cursor:pointer;background:#fff;user-select:none;transition:.12s}
.schedule-legend-item:hover{border-color:#94a3b8;background:#f8fafc}
.schedule-legend-item i{width:12px!important;height:12px!important;border-radius:4px!important;display:inline-block}
.schedule-legend-item.s18-on{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;font-weight:700;box-shadow:0 0 0 3px #dbeafe}
.s18-hint{font-size:12.5px;color:#64748b;margin-right:6px}
.s18-hint b{color:#1d4ed8}
.s18-hint button{border:0;background:#2563eb;color:#fff;border-radius:8px;padding:3px 10px;font-size:12px;cursor:pointer;margin-left:4px}
.schedule-grid-wrap{flex:1 1 auto;min-height:0;overflow:auto;padding:0 20px 20px!important}
.schedule-table{border:1px solid #dbe3ee;border-radius:12px;overflow:visible;font-size:12px!important}
.schedule-table th,.schedule-table td{border-right:1px solid #eef2f6!important;border-bottom:1px solid #eef2f6!important;height:46px!important}
.schedule-table thead th{background:#f8fafc!important;color:#0f172a;font-weight:700!important;font-size:12px;letter-spacing:.02em}
.schedule-table thead tr:first-child th{height:38px!important}
.schedule-table thead tr:first-child th .tiny{font-weight:500;color:#64748b;font-size:11px}
.schedule-table thead tr:nth-child(2) th{top:38px!important;background:#fff!important;color:#64748b;font-weight:600!important;font-size:10.5px!important;height:26px!important}
.schedule-table .employee-col{width:170px!important;min-width:170px!important;background:#f8fafc!important;border-right:1px solid #dbe3ee!important;font-size:13px}
.schedule-table tbody .employee-col{color:#0f172a!important;font-weight:600!important}
.schedule-table th.s18-daystart,.schedule-table td.s18-daystart{border-left:2px solid #dbe3ee}
.schedule-table thead tr:first-child th:not(.employee-col){border-left:2px solid #dbe3ee}
.schedule-table thead th.s18-today{background:#dbeafe!important;color:#1d4ed8}
.schedule-table td.s18-today{background:#f5f9ff}
.s18-now{display:inline-block;margin-left:6px;background:#2563eb;color:#fff;border-radius:999px;padding:0 7px;font-size:10px;font-weight:700;vertical-align:middle}
.schedule-table tbody tr:hover td{background:#fafcff}
.schedule-table tbody tr:hover .employee-col{background:#eef4ff!important}
.schedule-cell.empty{background:transparent!important}
.schedule-cell{height:46px!important;border-radius:8px!important;position:relative;transition:.1s;padding:3px 5px!important}
.schedule-cell[class*="type-"]{margin:2px;width:calc(100% - 4px)!important;height:42px!important}
.schedule-cell.empty:not(.readonly):hover{background:#eff6ff!important;outline:1px dashed #93c5fd;outline-offset:-3px}
.schedule-cell.empty:not(.readonly):hover::after{content:'+';color:#2563eb;font-size:16px;font-weight:700}
.schedule-cell .schedule-main{font-weight:700;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-cell .schedule-sub{font-size:10px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-cell.readonly{cursor:default}
.s18-painting .schedule-cell:not(.readonly){cursor:crosshair}
.schedule-week-title{font-weight:700;margin:14px 0 6px;color:#0f172a}
.schedule-cell .schedule-main{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.2;font-size:11px}.schedule-cell .schedule-sub{display:none}
/* Giờ riêng cho từng mục + gán nhiều ngày / nhiều khung giờ */
.schedule-cell .schedule-time{font-size:10px;font-weight:700;letter-spacing:.01em;opacity:.85;white-space:nowrap;font-variant-numeric:tabular-nums}
.s18-time{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.s18-time label{flex:1;min-width:110px;margin:0}.s18-time input{width:100%}.s18-time button{white-space:nowrap}
.s18-range{border:1px solid #e2e8f0;border-radius:10px;padding:8px 12px;margin:6px 0}.s18-range summary{cursor:pointer;font-weight:600;font-size:13px}
.s18-range[open] summary{margin-bottom:8px}
.s18-range-row{display:flex;gap:10px;flex-wrap:wrap}.s18-range-row label{flex:1;min-width:130px;margin:0}.s18-range-row input{width:100%}
.s18-slots-head{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:13px;color:#475569}
.s18-slots{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.s18-slots label{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;font-size:13px;cursor:pointer;margin:0}
.s18-slots input,.s18-check input{width:auto;margin:0}
.s18-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:6px 0 2px}
