/* Cabinet service and station tabs keep both forms mounted while switching. */
#manager-app .manager-cabinet-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:16px 24px; border-top:1px solid #E5EAF2; }
#manager-app .manager-cabinet-tabs > button { padding:7px 12px; min-height:32px; border:0; border-radius:999px; background:#f3f4f6; color:#475467; font:inherit; font-size:12px; font-weight:500; line-height:1.4; cursor:pointer; }
#manager-app .manager-cabinet-tabs > button[aria-selected="true"] { background:#eef2ff; color:#2F6BFF; }
#manager-app .manager-cabinet-tabs > button:focus-visible { outline:2px solid #2F6BFF; outline-offset:3px; }
#manager-app [data-cabinet-panel][hidden] { display:none !important; }
#manager-app .manager-cabinet-editor .manager-cabinet-status-column h3 { white-space:nowrap; }

#manager-app .manager-cabinet-editor > [data-cabinet-panel="stations"] > .desktop-stations { margin:0; padding:24px; border:0; border-top:1px solid #E5EAF2; overflow:visible; }
@media(max-width:600px) {
 #manager-app .manager-cabinet-tabs { padding:16px; }
 #manager-app .manager-cabinet-editor > [data-cabinet-panel="stations"] > .desktop-stations { padding:20px 16px; }
}

/* Keep navigation next to the heading and compact the cabinet name field. */
#manager-app .manager-cabinet-editor > .manager-cabinet-tabs { border-top:0; padding-bottom:0; }
#manager-app .manager-cabinet-editor .manager-cabinet-name-column > input { max-width:24rem; }
#manager-app .manager-cabinet-editor a.manager-cabinet-service-name { color:#2F6BFF; text-decoration:none; }
#manager-app .manager-cabinet-editor a.manager-cabinet-service-name:hover { text-decoration:underline; }
#manager-app .manager-cabinet-editor a.manager-cabinet-service-name:focus-visible { outline:2px solid #2F6BFF; outline-offset:3px; border-radius:2px; }

/* Station capabilities are simple assignments, using the shared service switches. */
#manager-app .desktop-station-services { overflow:visible; }
#manager-app .desktop-station-services .schedule-service-row { display:flex; flex-direction:row-reverse; align-items:center; justify-content:space-between; gap:16px; background:#fff; box-shadow:none; }
#manager-app .desktop-station-services .schedule-service-row:hover { background:#f8fafc; }
#manager-app .desktop-station-services .manager-staff-service-switch { flex:0 0 36px; }
#manager-app .desktop-station-services .manager-station-service-name { min-width:0; flex:1; font-weight:400; overflow-wrap:anywhere; }
#manager-app .desktop-station-form .manager-heading-with-help { font:inherit; }

/* The name section follows the tabs without a separator. */
#manager-app .manager-cabinet-editor>.manager-cabinet-tabs+.manager-cabinet-section { border-top:0; }


/* Assignment totals and full-width table separators inside the cabinet card. */
#manager-app .manager-cabinet-editor{--cabinet-row-gutter:24px}
#manager-app .manager-cabinet-tabs>button{display:inline-flex;align-items:center;gap:6px}
#manager-app .manager-cabinet-tabs [data-cabinet-count]{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;min-width:20px;height:20px;padding:0 4px;border:0;border-radius:999px;background:#fff;color:#2F6BFF;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;line-height:20px}
#manager-app .manager-cabinet-editor>.manager-cabinet-section.desktop-resource-service-picker,
#manager-app .manager-cabinet-editor>[data-cabinet-panel="stations"]>.desktop-stations,
#manager-app .manager-cabinet-editor>.manager-cabinet-actions{border-top:0}
#manager-app .manager-cabinet-editor .desktop-station-columns{border-bottom:0}
#manager-app .manager-cabinet-editor :is(.manager-cabinet-service-row,.desktop-station-row){position:relative;border-top:0;border-bottom:0}
#manager-app .manager-cabinet-editor :is(.manager-cabinet-service-row,.desktop-station-row)::before{content:'';position:absolute;top:0;left:calc(-1 * var(--cabinet-row-gutter));right:calc(-1 * var(--cabinet-row-gutter));height:1px;background:#e5eaf2;pointer-events:none}
@media(max-width:600px){#manager-app .manager-cabinet-editor{--cabinet-row-gutter:16px}}

/* A single grid and gutter for the standalone cabinet creation form. */
#manager-app .manager-cabinet-create > .desktop-panel-head { padding:24px; align-items:center; }
#manager-app .manager-cabinet-create-form { padding:0; }
#manager-app .manager-cabinet-create-form > section { padding:24px; }
#manager-app .manager-cabinet-create-form > section + section { border-top:1px solid #e5eaf2; }
#manager-app .manager-cabinet-create-form h2 { margin:0 0 20px; font-size:1rem; font-weight:600; line-height:1.5; color:#172033; }
#manager-app .manager-cabinet-create-identity { display:grid; grid-template-columns:minmax(0,480px) 100px; gap:24px; align-items:start; }
#manager-app .manager-cabinet-create-form label:not(.schedule-service-row):not(.schedule-day-toggle) { display:grid; gap:8px; min-width:0; font-size:.75rem; font-weight:400; line-height:1.5; color:#667085; }
#manager-app .manager-cabinet-create-identity input:not([type=checkbox]),
#manager-app .manager-cabinet-create-form select { width:100%; min-width:0; min-height:40px; box-sizing:border-box; }
#manager-app .manager-cabinet-create-status .manager-staff-service-switch { align-self:center; justify-self:start; margin-top:8px; }
#manager-app .manager-cabinet-create-form .manager-equipment-settings { margin:24px 0 0; padding:0; border:0; }
#manager-app .manager-cabinet-create-form .manager-equipment-settings > label { max-width:480px; }
#manager-app .manager-cabinet-create-form [data-equipment-hours] { margin-top:20px; }
#manager-app .manager-cabinet-create-form [hidden] { display:none!important; }
#manager-app .manager-cabinet-create-form .manager-cabinet-create-hint,
#manager-app .manager-cabinet-create-form .desktop-resource-note { margin:12px 0 0; padding:0; background:none; border:0; border-radius:0; color:#667085; font-size:.75rem; font-weight:400; line-height:1.6; }
#manager-app .manager-cabinet-create-services h2 { margin-bottom:8px; }
#manager-app .manager-cabinet-create-services .manager-cabinet-create-hint { margin:0; }
@media(max-width:600px) {
  #manager-app .manager-cabinet-create > .desktop-panel-head,
  #manager-app .manager-cabinet-create-form > section { padding:20px 16px; }
  #manager-app .manager-cabinet-create-identity { grid-template-columns:minmax(0,1fr) 72px; gap:16px; }
}

/* Creation reuses the cabinet editor's service rows and switch controls. */
#manager-app .manager-cabinet-create-service-list { margin-top:20px; }
#manager-app .manager-cabinet-create-services :is(.manager-cabinet-service-columns,.manager-cabinet-service-row) { grid-template-columns:minmax(0,1fr) 80px 110px 72px; }
#manager-app .manager-cabinet-create-services .manager-cabinet-service-specialists { display:none; }
@media(max-width:600px) {
  #manager-app .manager-cabinet-create-services .manager-cabinet-service-columns { display:none; }
  #manager-app .manager-cabinet-create-services .manager-cabinet-service-row { grid-template-columns:minmax(0,1fr) auto 36px; }
}

/* Station editing is a full cabinet subpage, with one save action. */
#manager-app .manager-station-editor {
  margin:0; padding:0; border:0; border-radius:12px; background:#fff; box-shadow:none;
}
#manager-app .manager-station-editor > .desktop-panel-head {
  display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px;
}
#manager-app .manager-station-editor > .desktop-panel-head > button { flex:0 0 auto; min-height:44px; }
#manager-app .manager-station-context { margin:8px 0 0; color:#667085; font-size:.8125rem; line-height:1.5; }
#manager-app .manager-station-tabs { margin:0 24px; padding:0; }
#manager-app .manager-station-editor > :is(.desktop-station-data,.desktop-station-services) { margin:0; padding:24px; border:0; border-radius:0; }
#manager-app .manager-station-editor [data-station-panel][hidden] { display:none!important; }
#manager-app .manager-station-editor .desktop-station-data-grid { display:grid; grid-template-columns:minmax(0,480px) minmax(0,240px) auto; gap:24px; align-items:start; }
#manager-app .manager-station-editor .desktop-station-data-grid > label { display:grid; gap:8px; min-width:0; font-size:.875rem; line-height:1.5; }
#manager-app .manager-station-editor .desktop-station-data-grid input:not([type=checkbox]) { width:100%; box-sizing:border-box; min-height:44px; font:inherit; }
#manager-app .manager-station-editor .manager-cabinet-status-field { justify-self:end; }
#manager-app .manager-station-editor .manager-cabinet-status-field .manager-staff-service-switch { margin-top:8px; justify-self:end; }
#manager-app .manager-station-editor .desktop-station-services-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 16px; padding:0; border:0; font-size:.875rem; }
#manager-app .manager-station-editor .desktop-station-services-head > b { color:#667085; font-size:.8125rem; font-weight:400; }
#manager-app .manager-station-editor .schedule-service-list { display:block; margin:0; padding:0; border:0; }
#manager-app .manager-station-editor .schedule-service-row { display:flex; flex-direction:row-reverse; align-items:center; justify-content:space-between; gap:24px; min-height:60px; margin:0; padding:12px 0; box-sizing:border-box; border:0; border-top:1px solid #e5eaf2; border-radius:0; background:#fff; color:#172033; font-size:.875rem; line-height:1.5; }
#manager-app .manager-station-editor .manager-station-service-name { flex:1; min-width:0; font:inherit; }
#manager-app .manager-station-editor .manager-staff-service-switch { flex:0 0 36px; }
#manager-app .manager-station-editor .desktop-station-service-warning { margin-top:16px; padding:12px 16px; border-radius:8px; font-size:.8125rem; line-height:1.5; }
@media(max-width:760px) {
  #manager-app .manager-station-editor .desktop-station-data-grid { grid-template-columns:minmax(0,1fr) auto; }
  #manager-app .manager-station-editor .desktop-station-data-grid > label:nth-child(2) { grid-column:1; }
  #manager-app .manager-station-editor .manager-cabinet-status-field { grid-column:2; grid-row:1; }
}
@media(max-width:600px) {
  #manager-app .manager-station-editor > .desktop-panel-head { align-items:flex-start; padding:20px 16px; gap:12px; flex-wrap:wrap; }
  #manager-app .manager-station-editor > .desktop-panel-head > button { margin-left:auto; }
  #manager-app .manager-station-tabs { margin-inline:16px; }
  #manager-app .manager-station-editor > :is(.desktop-station-data,.desktop-station-services) { padding:20px 16px; }
}
