/* Shared Sound & Color dialog surfaces. Screen only: PDF layouts are unchanged. */
@media screen {
body dialog{--dialog-pad:24px;box-sizing:border-box;padding:var(--dialog-pad);border:1px solid #dcd3e8;border-radius:16px;background:#fff;color:#17213c;box-shadow:0 24px 80px #01082255;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
body dialog::backdrop{background:#010822aa;backdrop-filter:blur(3px)}
body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head),body dialog>h2,body dialog>form>h2{box-sizing:border-box;position:relative;top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 20px;padding:18px var(--dialog-pad);background:#010822;color:#fff;border-bottom:3px solid #00b5e8;border-radius:15px 15px 0 0;min-height:72px;height:auto}
body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head) :is(h2,small){color:#fff;margin:0}
body dialog>h2,body dialog>form>h2,body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head) h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
body dialog>form>.eyebrow:first-child{margin:calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 0;padding:16px var(--dialog-pad) 6px;background:#010822;color:#9ee9ff;border-radius:15px 15px 0 0}
body dialog>form>.eyebrow:first-child+h2{margin-top:0;padding-top:0;border-radius:0}
body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head) button{background:#f0e8f7;color:#64268e;border:1px solid #ccb5df;min-height:44px;border-radius:8px}
body dialog :is(input,select,textarea){box-sizing:border-box;max-width:100%;border-radius:8px;border-color:#dcd3e8}
body dialog :is(input,select):not([type=checkbox]):not([type=radio]):not([type=range]){min-height:44px}
body dialog :is(input,button,select,textarea,a):focus-visible{outline:2px solid #00b5e8;outline-offset:2px}
body dialog :is(button,.primary,.secondary){min-height:44px;white-space:normal}
body dialog .primary{background:#c6008b;color:#fff;border-color:#c6008b}
body dialog .secondary{background:#faf7fd;color:#64268e;border-color:#ccb5df}
body dialog :is(.actions,.signature-actions){display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:20px;padding-top:16px;border-top:1px solid #e8dfef}
body dialog :is(.actions,.signature-actions)>:last-child{margin-left:auto}
body dialog fieldset{min-width:0;border-color:#dcd3e8;border-radius:10px}
body dialog legend{color:#7030a0;font-weight:600}
@media(max-width:600px){body dialog{--dialog-pad:18px}body dialog>h2,body dialog>form>h2,body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head) h2{font-size:19px}body dialog :is(.actions,.signature-actions)>button{flex:1 1 120px}body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head){gap:8px}}
}
@media screen {
body dialog.catalog-dialog>.panel-head{background:#010822;color:white;position:relative;top:auto;width:auto;max-width:none;margin:calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 20px;padding:18px var(--dialog-pad)}
body dialog>:is(.panel-head,.search-heading,.pdf-review-head,.quote-search-head),body dialog>h2,body dialog>form>h2{width:auto;max-width:none}
}
@media screen{body dialog{padding:var(--dialog-pad)!important}}
@media screen{body dialog.catalog-dialog>.panel-head h2,body dialog>.search-heading h2,body dialog>.pdf-review-head h2,body dialog>.quote-search-head h2{color:#fff!important}}
@media screen{
 body dialog button.secondary{border:1px solid #ccb5df;border-radius:8px}
 body dialog .pdf-review-actions [data-review-edit]{margin-right:auto}
 body dialog .pdf-review-head>div,body dialog .search-heading>div{min-width:0;flex:1}
 body dialog .pdf-review-head p{overflow-wrap:anywhere;color:#dce4f4}
 body dialog input[type=range]{accent-color:#7030a0}
}

@media screen{dialog .brief-section>h2>span{flex-shrink:0;white-space:nowrap}}

@media screen {
 #new-event .creation-fields{gap:12px 16px}
 #new-event .event-scope{margin-top:20px;padding:14px;border:1px solid #d8c5eb;border-left:4px solid #7030a0;background:#faf7fd}
 #new-event .event-scope>p{margin:0 0 12px;color:#64748b}
 #new-event .event-scope h3{font-size:14px;color:#7030a0;margin:14px 0 8px}
 #new-event .scope-checks{gap:6px 12px}
 #new-event .scope-checks label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:6px 8px;border:1px solid transparent;border-radius:8px;cursor:pointer}
 #new-event .scope-checks label:has(input:checked){background:#eee5f6;border-color:#deceeb}
 #new-event .scope-checks input{accent-color:#7030a0;width:18px;height:18px;flex-shrink:0;margin:0}
 #new-event .scope-checks label:focus-within{outline:2px solid #00b5e8;outline-offset:1px}
 #new-event #creation-error:empty{display:none}
}

@media screen{.add-kind-actions{display:flex;flex-wrap:wrap;gap:12px}.add-kind-actions button{flex:1 1 150px;min-height:48px}}

@media screen{.event-type-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.event-type-buttons button{flex:1 1 140px;min-height:44px;padding:10px 12px}.event-type-buttons button[aria-pressed=true]{background:#c6008b;color:white;border-color:#c6008b}.event-type-picker>select[hidden]{display:none!important}.event-type-picker>input[hidden]{display:none!important}}
@media screen {
 dialog:has(#stand-form) .stand-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .stand-fields>*{min-width:0}.stand-fields .creation-wide,.stand-fields h3{grid-column:1/-1}
 dialog:has(#stand-form) label{display:flex;flex-direction:column;gap:8px}dialog:has(#stand-form) input,dialog:has(#stand-form) select{width:100%;min-width:0;min-height:44px}
 dialog:has(#stand-form) .creation-time-controls{display:flex;gap:8px;align-items:center}dialog:has(#stand-form) .creation-time-controls select{flex:1;width:0}
 dialog:has(#stand-form) .scope-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}dialog:has(#stand-form) .scope-checks label{flex-direction:row;align-items:center;min-height:44px}dialog:has(#stand-form) .scope-checks input{width:18px;min-height:18px;flex-shrink:0}
 .stand-clocks{padding:12px;background:#f4f6fb;border-radius:8px}dialog:has(#stand-form) .event-scope{margin-top:20px}.stand-schedule{margin-bottom:20px}
 @media(max-width:480px){dialog:has(#stand-form) .stand-fields,dialog:has(#stand-form) .scope-checks{grid-template-columns:1fr}dialog:has(#stand-form) .actions{display:flex;flex-wrap:wrap}dialog:has(#stand-form) .actions button{flex:1;min-height:44px}}
}
@media screen{dialog:has(#stand-form) .stand-fields>label,dialog:has(#stand-form) .stand-fields>h3,dialog:has(#stand-form) .stand-fields>p{margin:0}dialog:has(#stand-form) .stand-fields{row-gap:14px}}
@media screen{#event-agenda .dashboard-schedule-times.stand-schedule-times{grid-template-columns:repeat(4,minmax(0,1fr))}.stand-master table{width:100%;table-layout:fixed;margin:16px 0;border-spacing:10px;background:#f8f5fc;border-radius:12px}.stand-master td{padding:12px;background:white;border:1px solid #ded4ed;border-radius:8px;overflow-wrap:anywhere}.stand-master td strong,.stand-master td span{display:block}.stand-master td strong{font-size:13px;margin-bottom:8px}.stand-master td span{font-size:15px}@media(max-width:600px){#event-agenda .dashboard-schedule-times.stand-schedule-times{grid-template-columns:repeat(2,minmax(0,1fr))}}}
@media screen{
 dialog:has(#stand-form) .stand-form-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
 .stand-form-tabs button{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px;border:1px solid #ded4ed;border-radius:9px;background:#f8f5fc;color:#7030a0;font-weight:600;text-align:left}
 .stand-form-tabs button small{font-size:11px;opacity:.8}.stand-form-tabs button[aria-selected=true]{background:#7030a0;color:white;border-color:#7030a0}
 #stand-form .stand-form-panel[hidden]{display:none}#stand-form .stand-section-title{display:flex;gap:12px;align-items:center;margin:0 0 18px;color:#7030a0;font-size:19px} .stand-section-title span{font-size:13px;color:#66738a}
 #stand-form .stand-hour-block{border:1px solid #ded4ed;border-left:4px solid #7030a0;border-radius:12px;margin:14px 0;background:#faf7fd;padding:16px}
 #stand-form .stand-hour-block h4{margin:0 0 14px;color:#7030a0;font-size:17px}#stand-form .stand-hour-block .stand-fields{row-gap:14px}
 #stand-form>.actions{position:sticky;bottom:-24px;background:white;padding:14px 0;margin-top:18px;border-top:1px solid #ded4ed;z-index:2;display:flex;justify-content:space-between}
 #stand-form .stand-error:empty{display:none}#stand-form .event-scope{margin-top:0}
 @media(max-width:600px){dialog:has(#stand-form) .stand-form-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}#stand-form>.actions{bottom:-18px}.stand-form-tabs button{font-size:13px}#stand-form .stand-hour-block{padding:12px}}
}
@media screen{
 .organized-event-form .stand-form-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}
 .organized-event-form .event-form-panel[hidden]{display:none}.organized-event-form .creation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.organized-event-form .creation-wide,.organized-event-form .event-type-picker{grid-column:1/-1}
 .organized-event-form .stand-section-title{color:#7030a0;font-size:19px}.organized-event-form .stand-hour-block{padding:16px;border:1px solid #ded4ed;border-left:4px solid #7030a0;background:#faf7fd;border-radius:12px;margin:14px 0}.organized-event-form .stand-hour-block h4{color:#7030a0;margin:0 0 14px;font-size:17px}
 .organized-event-form>.actions{position:sticky;bottom:-24px;z-index:2;background:white;padding:14px 0;border-top:1px solid #ded4ed;display:flex;justify-content:space-between}.organized-event-form label{min-width:0}.organized-event-form input,.organized-event-form select{min-width:0;max-width:100%}
 @media(max-width:600px){.organized-event-form .stand-form-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.organized-event-form .creation-fields{grid-template-columns:1fr}.organized-event-form>.actions{bottom:-18px}}
}
@media screen and (min-width:601px){.organized-event-form .stand-form-tabs{grid-template-columns:repeat(var(--event-tab-count,4),minmax(0,1fr))}.organized-event-form label:has([name=mountEndTime]){grid-column:2}}
@media screen{label[hidden]{display:none!important}.operation-date-note{display:block;margin-top:10px;color:#66738a;grid-column:1/-1}@media(min-width:601px){.organized-event-form label:has([name=dismantlingEndTime]){grid-column:2}}@media(min-width:481px){#stand-form .creation-time:has([name=mountEndTimeHour]),#stand-form .creation-time:has([name=dismantlingEndTimeHour]){grid-column:2}}}
/* Shared schedule columns: shorter rows keep the same cell width. */
@media screen{
 #event-agenda .dashboard-schedule-times,
 #event-agenda .dashboard-schedule-times.stand-schedule-times{grid-template-columns:repeat(4,minmax(0,1fr))}
 @media(max-width:600px){
  #event-agenda .dashboard-schedule-times,
  #event-agenda .dashboard-schedule-times.stand-schedule-times{grid-template-columns:repeat(2,minmax(0,1fr))}
 }
}
@media screen{#event-agenda .schedule-place{margin-top:16px;margin-bottom:16px}}
@media screen{
 .pending-date{font-size:13px;color:#7030a0;font-weight:600;line-height:1.4;margin:3px 0;overflow-wrap:normal}
 input:is([name=mountDate],[name=dismantlingDate])::-webkit-calendar-picker-indicator{pointer-events:none}
 .operation-calendar{grid-column:1/-1;max-width:380px;width:100%;box-sizing:border-box;padding:12px;background:white;border:1px solid #ded4ed;border-radius:12px;margin:8px 0}
 .operation-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7030a0;text-transform:capitalize}.operation-calendar-head button{min-height:44px;min-width:44px}
 .operation-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:8px 0}.operation-calendar-days>*{text-align:center;min-width:0}.operation-calendar-days button{padding:0;min-height:44px;background:#faf7fd;color:#7030a0;border:1px solid transparent;border-radius:6px}.operation-calendar-days button[aria-pressed=true]{background:#7030a0;color:white}
}

.pending-month-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 0 10px;padding:0 4px 8px;border-bottom:1px solid #ded4ed;color:#7030a0}.pending-month-heading h3{font-size:15px;margin:0;text-transform:capitalize}.pending-month-heading>span{font-size:12px;background:#f0e8f7;border-radius:6px;padding:3px 7px}

/* Consistent display for built-in and custom event types. */
.event-type-buttons button[data-event-type]:not([data-event-type='__new']),.event-type-picker input[name='newEventType']{text-transform:uppercase;}

.task-billing-summary{display:grid;gap:4px;text-align:center;margin-top:12px;color:#7130a5;overflow-wrap:anywhere}.task-billing-details{margin:16px 0;padding-top:12px;border-top:1px solid #e5d8f2}.task-billing-details button{min-height:44px}.task-billing-details dd{overflow-wrap:anywhere}

@media(max-width:600px){.task-billing-form [data-task-billing]{grid-template-columns:1fr}.task-billing-form .actions{position:sticky;bottom:0;background:white;padding:12px 0;margin-bottom:0;z-index:2}}
