/* SIMAJAR V6.4.6 — Manual Schedule Editor */
.manual-policy{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:16px 18px;border-radius:16px;
  border:1px solid #cfe3eb;background:linear-gradient(135deg,#edf7ff,#effaf5);
}
.manual-policy p{margin:5px 0 0;color:var(--muted);line-height:1.5;max-width:760px}
.manual-policy-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.manual-policy-badges span{
  border-radius:999px;padding:7px 10px;background:#fff;border:1px solid #d6e6e8;
  font-size:.76em;font-weight:800;color:#22566b;white-space:nowrap;
}
.manual-empty-state{text-align:center;padding:28px 12px}
.manual-empty-state p{max-width:720px;margin:8px auto 18px;color:var(--muted);line-height:1.6}
.manual-empty-state .actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.manual-draft-toolbar{align-items:flex-start}
.manual-grid{
  display:grid;grid-template-columns:repeat(11,minmax(86px,1fr));
  gap:8px;margin-top:14px;overflow-x:auto;padding-bottom:5px;
}
.manual-cell{
  min-height:82px;border-radius:13px;border:1px solid #d6e2ea;
  padding:8px 6px;background:#fff;display:flex;flex-direction:column;
  justify-content:center;align-items:center;text-align:center;cursor:pointer;
  color:#18364d;transition:.15s transform,.15s box-shadow;
}
.manual-cell:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(25,72,106,.1)}
.manual-cell b{font-size:.78em;margin-bottom:7px}
.manual-cell span{font-weight:900;line-height:1.15}
.manual-cell small{font-size:.7em;margin-top:5px;color:#607184;line-height:1.2}
.manual-cell.empty{background:#f7fbff;border-style:dashed;border-color:#9fc8df;color:#176a96}
.manual-cell.occupied{background:#ECF7F8;border-color:#a9dce2}
.manual-cell.reserved{background:#FFF8E2;border-color:#ead58a;color:#735700}
.manual-cell.off{background:#f0f2f4;color:#9ba3aa;cursor:not-allowed}
.manual-editor{
  margin-top:18px;padding:18px;border-radius:17px;border:1px solid #cfe0e8;
  background:linear-gradient(145deg,#fff,#f8fbfd);
}
.manual-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:13px}
.manual-editor-head h3{margin:3px 0}
.manual-readonly{
  min-height:48px;padding:11px 12px;border-radius:10px;border:1px solid #d6e0e7;
  background:#f5f8fa;line-height:1.3;color:#263d50
}
.manual-readonly.bad{background:#fff1ef;border-color:#efc3bb;color:#9a3323}
.manual-readonly small{color:#8c5a00;font-weight:800}
.manual-filter{margin-bottom:4px}
.btn.danger{border-color:#efb4aa;color:#b52c1d;background:#fff6f4}
.btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:1100px){
 .manual-grid{grid-template-columns:repeat(6,minmax(92px,1fr))}
 .manual-policy{flex-direction:column;align-items:flex-start}
 .manual-policy-badges{justify-content:flex-start}
}
@media(max-width:720px){
 .manual-grid{grid-template-columns:repeat(3,minmax(92px,1fr))}
 .manual-editor-head{flex-direction:column}
}


/* SIMAJAR V6.4.6.2 — Day Overview + Conflict Monitor */
.manual-editor-toolbar{align-items:flex-start}
.manual-view-switch{display:flex;gap:8px;flex-wrap:wrap}
.manual-day-controls{
  display:flex;justify-content:flex-start;align-items:end;gap:12px;margin:10px 0 12px;
}
.manual-day-controls label{min-width:260px}
.manual-day-status{
  border-radius:15px;padding:13px 15px;margin-bottom:12px;
  display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #d8e4ea;
}
.manual-day-status>div:first-child{display:flex;flex-direction:column;gap:3px}
.manual-day-status span{font-size:.82em;color:#617180}
.manual-day-status.ok{background:#edf9f3;border-color:#bfe4d3;color:#087552}
.manual-day-status.bad{background:#fff0ee;border-color:#efb9b1;color:#a72d21}
.manual-day-status.warn{background:#fff8e6;border-color:#ead58f;color:#805f00}
.manual-day-status-counts{display:flex;gap:7px}
.manual-day-status-counts span{
  background:#fff;border:1px solid currentColor;border-radius:999px;padding:5px 9px;
  font-weight:800;color:inherit
}
.manual-conflict-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px
}
.manual-conflict-item{
  display:flex;gap:9px;padding:10px 12px;border-radius:12px;border:1px solid #dde5ea;background:#fff
}
.manual-conflict-item.error{background:#fff4f2;border-color:#efc0b9}
.manual-conflict-item.warn{background:#fff9e9;border-color:#ead995}
.manual-conflict-icon{
  flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  background:#c93b2e;color:white;font-weight:900
}
.manual-conflict-item.warn .manual-conflict-icon{background:#c78d00}
.manual-conflict-item b{font-size:.88em}
.manual-conflict-item p{margin:3px 0 0;font-size:.78em;line-height:1.35;color:#5e6973}
.manual-day-matrix-wrap{
  overflow:auto;border:1px solid #d7e2e9;border-radius:14px;background:white
}
.manual-day-matrix{
  border-collapse:separate;border-spacing:0;min-width:1320px;width:100%;table-layout:fixed
}
.manual-day-matrix th,.manual-day-matrix td{
  border-right:1px solid #dfe7ec;border-bottom:1px solid #dfe7ec;
  text-align:center;vertical-align:middle;padding:6px;position:relative
}
.manual-day-matrix thead th{
  position:sticky;top:0;z-index:3;background:#eaf2f8;color:#20445e;height:58px
}
.manual-day-matrix thead th small{display:block;font-weight:500;font-size:.68em;margin-top:3px}
.manual-day-class-head,.manual-day-class{
  position:sticky!important;left:0;z-index:4!important;width:90px;min-width:90px;
  background:#f5f8fa!important;font-weight:900;color:#183f59
}
.manual-day-matrix td{height:68px;cursor:pointer;font-size:.77em}
.manual-day-matrix td b{display:block;line-height:1.1}
.manual-day-matrix td small{display:block;margin-top:4px;font-size:.72em;color:#617281;line-height:1.05}
.manual-day-filled{background:#ECF7F8}
.manual-day-empty{background:#fbfdff;color:#48809b}
.manual-day-empty span{font-weight:800}
.manual-day-reserved{background:#FFF8E2;color:#775c00;font-weight:800;cursor:default!important}
.manual-day-off{background:#f0f2f4;color:#9aa2a8;cursor:default!important}
.manual-day-conflict{
  background:#ffb5ad!important;border:2px solid #d93025!important;color:#7d1811!important;
  box-shadow:inset 0 0 0 1px #fff
}
.manual-day-warning{
  background:#fff1b8!important;border:2px solid #d89a00!important;color:#765200!important
}
.manual-conflict-flag,.manual-warning-flag{
  position:absolute;right:4px;top:4px;width:19px;height:19px;border-radius:50%;
  display:grid;place-items:center;font-style:normal;font-weight:900;font-size:11px
}
.manual-conflict-flag{background:#c9271c;color:#fff}
.manual-warning-flag{background:#d89700;color:#fff}
.manual-live-validation{
  margin:10px 0 13px;padding:12px 14px;border-radius:13px;border:1px solid #dbe5ea;
  display:flex;flex-direction:column;gap:4px
}
.manual-live-validation b{font-size:.9em}
.manual-live-validation span{font-size:.8em;line-height:1.35}
.manual-live-validation.ok{background:#edf9f3;border-color:#bce1d0;color:#087451}
.manual-live-validation.warn{background:#fff9e8;border-color:#ead995;color:#795800}
.manual-live-validation.bad{background:#fff1ef;border-color:#efbdb5;color:#9f2e22}
.manual-live-validation .warn-text{color:#8a6300}
@media(max-width:950px){
  .manual-conflict-list{grid-template-columns:1fr}
  .manual-day-status{align-items:flex-start;flex-direction:column}
}
