/* CENTRAL / Calendar event layer - compact dark neutrals + ember.
   Event titles are informational; Shoot, Prep and Rest remain distinct day types. */
#centralProductionOverview .prod-calendar-actions{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 5px;
}
#centralProductionOverview .prod-calendar-hint{color:#baa99d;font-size:11px;line-height:1.45}
#centralProductionOverview .prod-day{position:relative;touch-action:manipulation}
#centralProductionOverview .prod-event-count{
 display:block;max-width:100%;color:#ffbb91;font-size:10px;font-weight:750;
 letter-spacing:.01em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
#centralProductionOverview .prod-event-snippets{display:grid;gap:3px;width:100%;min-width:0;margin:2px 0}
#centralProductionOverview .prod-event-hint{
 display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font-size:10px;line-height:1.25;padding:3px 5px;border-radius:4px;
 color:#f2e7dc;background:#55473a;border-left:2px solid #da8053;text-align:left;
}
#centralProductionOverview .prod-event-overflow{
 color:#e4bb9e;font-size:9px;line-height:1.2;
}
#centralProductionOverview .prod-detail .prod-detail-events{
 background:#35312e;border:1px solid #706052;border-radius:10px;
}
#centralProductionOverview .prod-detail-events>.prod-detail-head{gap:8px}
#centralProductionOverview .prod-event-record{
 display:flex;justify-content:space-between;align-items:flex-start;gap:11px;
 border:1px solid #74604f;border-radius:9px;padding:11px 12px;margin:9px 0 0;
 background:#51463e;overflow-wrap:anywhere;
}
#centralProductionOverview .prod-event-record-main{min-width:0;flex:1}
#centralProductionOverview .prod-event-record-main strong{
 display:block;font-size:13px;line-height:1.4;color:#fff4e8;margin:5px 0;
}
#centralProductionOverview .prod-event-record-main small{
 display:block;color:#d6c6b8;font-size:11px;line-height:1.5;
}
#centralProductionOverview .prod-event-record-main p{
 margin:8px 0 0;font-size:12px;color:#f1e0d4;white-space:pre-wrap;line-height:1.45;
}
#centralProductionOverview .prod-event-type{
 display:inline-block;border:1px solid #a57b5f;border-radius:6px;
 color:#ffd8bc;background:#3c2f29;padding:3px 7px;
 font-size:10px;font-weight:750;letter-spacing:.04em;
}
#centralProductionOverview .prod-event-record-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
#centralProductionOverview .prod-event-record-actions .btn{padding:6px 8px;font-size:10px}
#centralProductionOverview .prod-event-error{
 color:#ffc3ad;font-size:11px;line-height:1.45;padding:9px 11px;
 background:#442d27;border:1px solid #805449;border-radius:8px;
}
#centralProductionOverview .prod-custom-day-label{
 display:inline-block;font-size:12px;font-weight:650;color:#ffe0c8;
 background:#695343;border:1px solid #94745f;border-radius:6px;padding:4px 7px;
}
.prod-event-dialog{
 width:min(660px,calc(100vw - 22px));max-width:660px;
 max-height:calc(100dvh - 22px);padding:0;overflow:auto;
 color:#f0e5da;background:#201c19;border:1px solid #765849;border-radius:13px;
 box-shadow:0 30px 85px #000a;
}
.prod-event-dialog::backdrop{background:#080604b8}
.prod-event-dialog .form{padding:16px 20px}
.prod-event-dialog .formgrid{gap:11px}
.prod-event-dialog .modalhead{position:sticky;top:0;background:#28221e;z-index:1}
.prod-event-dialog [hidden]{display:none!important}
.prod-event-form-hint{margin:0;font-size:11px;line-height:1.45}
.prod-event-dialog .foot{position:sticky;bottom:0;background:#25201d;z-index:1}
@media(max-width:1100px){
 #centralProductionOverview .prod-event-snippets{display:none}
 #centralProductionOverview .prod-event-count{font-size:9px}
}
@media(max-width:620px){
 #centralProductionOverview .prod-calendar-hint{width:100%;font-size:10px}
 #centralProductionOverview .prod-event-count{font-size:9px}
 #centralProductionOverview .prod-event-record{padding:10px;flex-wrap:wrap}
 #centralProductionOverview .prod-event-record-actions{justify-content:flex-end;width:100%}
 .prod-event-dialog .form{padding:12px}
 .prod-event-dialog .fieldctl{min-height:44px;font-size:16px}
}


/* November 2026: give the month grid priority over side panels. */
#centralProductionOverview .prod-main{
 grid-template-columns:minmax(0,1fr)!important;gap:15px;margin-top:14px;
}
#centralProductionOverview .prod-calendar{width:100%;min-width:0;padding:17px}
#centralProductionOverview .prod-days{gap:6px}
#centralProductionOverview .prod-day{
 min-height:132px;min-width:0;padding:9px;display:flex;flex-direction:column;align-items:stretch;
 gap:5px;overflow:hidden;
}
#centralProductionOverview .prod-number{font-size:15px;text-align:left}
#centralProductionOverview .prod-chips{display:flex;flex-wrap:wrap;align-items:flex-start;gap:3px}
#centralProductionOverview .prod-event-snippets{display:grid!important;gap:4px;margin-top:3px}
#centralProductionOverview .prod-event-hint{
 display:-webkit-box;white-space:normal;overflow:hidden;text-overflow:ellipsis;
 -webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
 line-height:1.3;font-size:11px;padding:4px 6px;word-break:break-word;
}
#centralProductionOverview .prod-detail{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
 align-items:start;min-width:0;
}
#centralProductionOverview .prod-selected-date{grid-column:1/-1;min-width:0}
#centralProductionOverview .prod-detail-block{min-width:0}
#centralProductionOverview .prod-calendar-actions{justify-content:space-between;margin:12px 0 8px}
#centralProductionOverview .prod-add-event{
 background:#d9764f;color:#18100c;border-color:#e58f68;
 font-weight:850;letter-spacing:.09em;padding:12px 20px;
}

/* One uncomplicated input first; category, hire link and dates follow. */
.prod-event-dialog{width:min(650px,calc(100vw - 18px));max-height:calc(100dvh - 24px)}
.prod-event-dialog .prod-event-label-wrap{font-weight:850;font-size:12px;letter-spacing:.1em}
.prod-event-dialog .prod-event-title{
 width:100%;padding:17px 16px;min-height:67px;font-size:20px;font-weight:750;
 letter-spacing:normal;border:2px solid #b57856;background:#342922;color:#fff4e9;
}
.prod-event-dialog .prod-event-label-wrap small{
 font-size:11px;letter-spacing:normal;font-weight:450;color:#b9aba0;
}
.prod-event-dialog .prod-event-mode{
 display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:3px 0 8px;
}
.prod-event-dialog .prod-event-mode button{
 border:1px solid #5e5046;border-radius:10px;background:#2f2924;
 padding:14px 9px;color:#c5b8aa;font-size:12px;font-weight:800;letter-spacing:.06em;
}
.prod-event-dialog .prod-event-mode button.is-active{
 background:#664332;border-color:#d78a60;color:#fff0e5;
}
.prod-event-dialog .prod-event-only,
.prod-event-dialog .prod-hire-only{display:grid;gap:12px;min-width:0}
.prod-event-dialog .prod-event-time-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
.prod-event-dialog .prod-day-kind-hint{margin:0}
.prod-event-dialog .prod-equipment-match-list{
 max-height:225px;overflow:auto;background:#2b241f;
 border:1px solid #736151;border-radius:9px;
}
.prod-event-dialog .prod-equipment-match-list button{
 display:flex;width:100%;align-items:flex-start;flex-direction:column;gap:3px;
 padding:10px 12px;text-align:left;background:transparent;border:0;
 border-bottom:1px solid #554638;color:#f4e7da;cursor:pointer;
}
.prod-event-dialog .prod-equipment-match-list button:hover,
.prod-event-dialog .prod-equipment-match-list button:focus{background:#504035}
.prod-event-dialog .prod-equipment-match-list button small{font-size:11px;color:#c0afa1}
.prod-event-dialog .prod-equipment-selected{
 background:#342a23;border:1px solid #57453b;border-radius:8px;
 padding:10px 12px;color:#c3b5a6;font-size:12px;line-height:1.5;
}
.prod-event-dialog .prod-equipment-selected .btn{font-size:11px;margin-left:8px;padding:5px 9px}
@media(max-width:760px){
 #centralProductionOverview .prod-calendar{padding:9px 5px}
 #centralProductionOverview .prod-days{gap:3px}
 #centralProductionOverview .prod-day{min-height:107px;padding:4px 3px;gap:3px;border-radius:5px}
 #centralProductionOverview .prod-number{font-size:12px}
 #centralProductionOverview .prod-chip{font-size:8px;padding:2px 3px}
 #centralProductionOverview .prod-event-count,
 #centralProductionOverview .prod-hire-count,
 #centralProductionOverview .prod-todo-count{font-size:8px;white-space:normal}
 #centralProductionOverview .prod-event-snippets{display:grid!important;gap:2px;margin-top:2px}
 #centralProductionOverview .prod-event-hint{
  -webkit-line-clamp:2;line-clamp:2;font-size:9px;line-height:1.17;
  padding:3px 2px;letter-spacing:0;border-left-width:2px;
 }
 #centralProductionOverview .prod-event-overflow{font-size:8px}
 #centralProductionOverview .prod-detail{grid-template-columns:1fr;gap:9px}
 #centralProductionOverview .prod-calendar-actions .prod-calendar-hint{font-size:10px}
 #centralProductionOverview .prod-add-event{padding:12px 14px}
 .prod-event-dialog .form{padding:13px}
 .prod-event-dialog .prod-event-title{font-size:19px;min-height:66px}
 .prod-event-dialog .prod-event-time-grid{grid-template-columns:1fr 1fr;gap:8px}
}


/* Calendar events carry unit tints. Production day types remain independent. */
#centralProductionOverview .prod-event-hint:not(.prod-day-label){background:color-mix(in srgb,var(--prod-unit-color,#92979E) 23%,#242424);border-left-color:var(--prod-unit-color,#92979E);color:#faf7f3}
#centralProductionOverview .prod-event-hint.prod-day-label{border-left:0;color:#f4eee6}
#centralProductionOverview .prod-event-record{border-left:3px solid var(--prod-unit-color,#92979E);background:color-mix(in srgb,var(--prod-unit-color,#92979E) 16%,#282525);border-top-color:#494541;border-right-color:#494541;border-bottom-color:#494541}
#centralProductionOverview .prod-event-type{border-color:var(--prod-unit-color,#92979E);color:#f7eee8;background:#302b29}
#centralProductionOverview .prod-coloured-hire{border-left:3px solid var(--prod-unit-color,#92979E);padding-left:9px}
#centralProductionOverview .prod-unit-dot{display:inline-block;flex:none;width:9px;height:9px;border-radius:50%;background:var(--prod-unit-color,#92979E)}
#centralProductionOverview .prod-hire-tag{font-size:8px;font-weight:800;letter-spacing:.035em;border:1px solid currentColor;border-radius:2px;padding:1px 2px}
#centralProductionOverview .prod-chip.prod-shoot,#centralProductionOverview .prod-day-label.prod-shoot{background:#8B343B;color:#FFE6E6}
#centralProductionOverview .prod-chip.prod-rest,#centralProductionOverview .prod-day-label.prod-rest{background:#47484B;color:#E1E2E4}
#centralProductionOverview .prod-chip.prod-prep,#centralProductionOverview .prod-day-label.prod-prep{background:#765B35;color:#FBE0A4}
#centralProductionOverview .prod-chip.prod-derig,#centralProductionOverview .prod-day-label.prod-derig{background:#685039;color:#FFE0B8}
#centralProductionOverview .prod-chip.prod-recce,#centralProductionOverview .prod-day-label.prod-recce{background:#3C536A;color:#E0EEFC}
#centralProductionOverview .prod-chip.prod-lens-test,#centralProductionOverview .prod-day-label.prod-lens-test{background:#365B6E;color:#DCF5FC}
#centralProductionOverview .prod-chip.prod-travel,#centralProductionOverview .prod-day-label.prod-travel{background:#4C4666;color:#EFE9FE}
#centralProductionOverview .prod-chip.prod-hold,#centralProductionOverview .prod-day-label.prod-hold{background:#544D51;color:#F3E9EC}
#centralProductionOverview .prod-chip.prod-other,#centralProductionOverview .prod-day-label.prod-other{background:#495151;color:#E9F2F0}
#centralProductionOverview .prod-colour-legend{flex-basis:100%;font-size:11px;color:#c9c1b9}
#centralProductionOverview .prod-colour-legend summary{display:inline-flex;cursor:pointer;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:.055em;color:#d4c3b8;min-height:30px}
#centralProductionOverview .prod-legend-units,#centralProductionOverview .prod-legend-types{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:7px 0}
#centralProductionOverview .prod-legend-units button{display:inline-flex;gap:6px;align-items:center;background:#2b2928;color:#d8d1ca;border:1px solid #48413d;border-radius:6px;padding:6px 9px;font-size:11px}
#centralProductionOverview .prod-legend-units button[aria-pressed=true]{border-color:#db9e76;color:#fff4ea;background:#4c352d}
#centralProductionOverview .prod-legend-types>span:first-child{font-size:10px;letter-spacing:.05em;color:#aba19a;font-weight:750;margin-right:4px}
#centralProductionOverview .prod-legend-note{margin:6px 0 0;color:#9c9590;font-size:10px;line-height:1.4}
@media(max-width:760px){#centralProductionOverview .prod-legend-units{gap:5px}#centralProductionOverview .prod-legend-units button{padding:6px}}
