/* Employer office schedule: open days, confirms, day sheet. */
body.cal-page.is-employer-home .cal-shell {
  max-width: min(1320px, calc(100% - 2rem));
}
body.cal-page.is-employer-home .cal-card {
  max-width: none;
  margin: 0 0 1.25rem;
}

/* Work calendar: clear day cells + borders (buttons must reset browser chrome) */
body.cal-page.is-employer-home .cal-grid,
.team-combined-page .cal-grid {
  gap: 0.5rem;
}
body.cal-page.is-employer-home .cal-dow,
.team-combined-page .cal-dow {
  color: #475569;
  font-weight: 800;
}
body.cal-page.is-employer-home .cal-day,
.team-combined-page .cal-day {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.35rem 0.2rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
  min-height: 3rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
}
body.cal-page.is-employer-home .cal-day .cal-day-num,
.team-combined-page .cal-day .cal-day-num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: inherit;
}
body.cal-page.is-employer-home .cal-day.is-past,
.team-combined-page .cal-day.is-past {
  opacity: 1;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
}
body.cal-page.is-employer-home .cal-day.is-open,
body.cal-page.is-employer-home .cal-day.is-available,
.team-combined-page .cal-day.is-open,
.team-combined-page .cal-day.is-available {
  background: #ecfdf5;
  border: 2px solid #34d399;
  color: #065f46;
  box-shadow: none;
}
body.cal-page.is-employer-home .cal-day.is-today,
.team-combined-page .cal-day.is-today {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}
body.cal-page.is-employer-home .cal-day.is-today.is-open,
body.cal-page.is-employer-home .cal-day.is-today.is-available,
.team-combined-page .cal-day.is-today.is-open,
.team-combined-page .cal-day.is-today.is-available {
  border-color: #2563eb;
  background: #ecfdf5;
}
body.cal-page.is-employer-home .cal-day.is-selected,
.team-combined-page .cal-day.is-selected {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px #2563eb;
}
body.cal-page.is-employer-home .cal-day:hover:not(.is-past):not(.is-pad),
.team-combined-page .cal-day:hover:not(.is-past):not(.is-pad) {
  border-color: #64748b;
  transform: none;
}
body.cal-page.is-employer-home .cal-day.is-open:hover:not(.is-past),
body.cal-page.is-employer-home .cal-day.is-available:hover:not(.is-past),
.team-combined-page .cal-day.is-open:hover:not(.is-past),
.team-combined-page .cal-day.is-available:hover:not(.is-past) {
  border-color: #059669;
  background: #d1fae5;
}
body.cal-page.is-employer-home .cal-day.is-pad,
.team-combined-page .cal-day.is-pad {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
      .cal-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.5rem;
      }
      .cal-dow {
        text-align: center;
        font-size: 0.72rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        padding: 0.25rem 0;
      }
      .cal-legend {
        display: flex;
        gap: 0.85rem 1.1rem;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.8rem;
        color: #64748b;
        margin: 0.85rem 0 0;
      }
      .cal-schedule-cue {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0.85rem 0 0;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1e3a8a;
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.35;
      }
      .cal-schedule-cue[hidden] {
        display: none !important;
      }
      .cal-schedule-cue i {
        color: #2563eb;
        flex-shrink: 0;
      }
      .cal-schedule-cue strong {
        font-weight: 800;
      }
      .cal-schedule-cue.is-neutral {
        background: #f8fafc;
        border-color: #e2e8f0;
        color: #334155;
      }
      .cal-schedule-cue.is-neutral i {
        color: #64748b;
      }
      .cal-legend span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
      }
      .cal-legend .swatch-open-day {
        width: 14px;
        height: 14px;
        border-radius: 4px;
        display: inline-block;
        background: #ecfdf5;
        border: 1px solid #6ee7b7;
      }
      .cal-legend .dot-yes,
      .cal-legend .dot-wait,
      .cal-legend .dot-no,
      .cal-day-dots i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
      }
      .cal-legend .dot-yes,
      .cal-day-dots i.is-yes { background: #16a34a; }
      .cal-legend .dot-wait,
      .cal-day-dots i.is-wait { background: #d97706; }
      .cal-legend .dot-no,
      .cal-day-dots i.is-no { background: #dc2626; }
      .cal-day-dots {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        justify-content: center;
        margin-top: 0.2rem;
        min-height: 8px;
        max-width: 100%;
      }
      .cal-day.is-open .cal-day-mark { opacity: 0; width: 0; height: 0; overflow: hidden; }
      .cal-day-sheet {
        margin-top: 0.85rem;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #f8fafc;
      }
      .cal-day-sheet[hidden] { display: none !important; }
      .cal-day-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.55rem;
      }
      .cal-day-sheet-head strong {
        font-size: 0.92rem;
        color: #0f172a;
        line-height: 1.25;
      }
      .cal-day-sheet-close {
        width: 2rem;
        height: 2rem;
        border: 0;
        border-radius: 999px;
        background: #e2e8f0;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
      }
      .cal-day-sheet-close:hover { background: #cbd5e1; color: #0f172a; }
      @media (max-width: 420px) {
        .cal-sheet-btn { font-size: 0.78rem; min-height: 2.7rem; }
      }
      .cal-day-sheet-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
      }
      .cal-sheet-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        min-height: 3.4rem;
        padding: 0.45rem 0.35rem;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.15;
        cursor: pointer;
      }
      .cal-sheet-btn i { font-size: 0.95rem; color: #2563eb; }
      .cal-sheet-btn.is-primary {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
      }
      .cal-sheet-btn.is-primary i { color: #fff; }
      #officeClosedModal .modal-dialog {
        max-width: 420px;
      }
      #officeClosedModal .modal-header {
        border-bottom: 0;
        padding-bottom: 0.15rem;
      }
      #officeClosedModal .modal-body {
        padding-top: 0.35rem;
      }
      #officeClosedModal .modal-footer {
        border-top: 1px solid #e2e8f0;
        gap: 0.5rem;
      }
      .office-closed-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #eff6ff;
        color: #2563eb;
        border: 1px solid #bfdbfe;
        font-size: 1.05rem;
        flex-shrink: 0;
      }
      .office-closed-title-row {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        flex: 1;
        padding-right: 0.5rem;
      }
      .office-closed-title-row .modal-title {
        margin: 0;
        font-weight: 750;
        letter-spacing: -0.02em;
      }
      .office-closed-lead {
        margin: 0.15rem 0 0;
        color: #64748b;
        font-size: 0.88rem;
        line-height: 1.4;
      }
      .office-closed-summary {
        margin: 0.85rem 0 0;
        padding: 0.75rem 0.9rem;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
      }
      .office-closed-summary strong {
        display: block;
        color: #0f172a;
        font-size: 1rem;
        margin-bottom: 0.15rem;
      }
      .office-closed-summary span {
        color: #64748b;
        font-size: 0.86rem;
        line-height: 1.35;
      }
      #officeClosedConfirmBtn {
        background: #0f172a;
        border-color: #0f172a;
        font-weight: 700;
      }
      #officeClosedConfirmBtn:hover,
      #officeClosedConfirmBtn:focus {
        background: #1e293b;
        border-color: #1e293b;
      }
      .cal-sheet-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .cal-day-sheet-closed {
        margin: 0.55rem 0 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
      }
      .cal-day-sheet-closed:hover:not(:disabled) { color: #334155; text-decoration: underline; }
      .cal-day-sheet-closed:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        text-decoration: none;
      }
      .cal-dot-more {
        font-size: 0.58rem;
        font-weight: 700;
        color: #64748b;
        line-height: 1;
      }
      .cal-day-sheet-people {
        margin-top: 0.65rem;
        padding-top: 0.55rem;
        border-top: 1px solid #e2e8f0;
      }
      .cal-day-sheet-people:empty { display: none; }
      .cal-day-sheet-summary {
        margin: 0 0 0.35rem;
        font-size: 0.78rem;
        font-weight: 700;
        color: #475569;
      }
      .cal-confirm-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.45rem 0;
        border-top: 1px solid #f1f5f9;
        font-size: 0.86rem;
      }
      .cal-confirm-person {
        display: flex;
        flex-direction: column;
        gap: 0.12rem;
        min-width: 0;
      }
      .cal-confirm-hours {
        font-size: 0.78rem;
        font-weight: 600;
        color: #64748b;
      }
      .cal-confirm-when {
        font-size: 0.74rem;
        font-weight: 650;
        color: #334155;
        line-height: 1.35;
      }
      .cal-confirm-row:first-child { border-top: 0; padding-top: 0; }
      .cal-confirm-status {
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-radius: 999px;
        padding: 0.18rem 0.45rem;
        white-space: nowrap;
      }
      .cal-confirm-status.is-confirmed { background: #dcfce7; color: #166534; }
      .cal-confirm-status.is-pending { background: #fef3c7; color: #92400e; }
      .cal-confirm-status.is-declined { background: #fee2e2; color: #991b1b; }
      .cal-confirm-status.is-cancelled { background: #f1f5f9; color: #64748b; }

/* Combined Work page: schedule + people share a wide desktop workspace */
.team-combined-shell {
  max-width: min(1320px, calc(100% - 2rem));
}
.team-combined-shell .cal-card {
  max-width: none;
  margin: 0 0 1.25rem;
}
.team-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.team-view-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #dbe3ef;
  background: #fff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  color: #0f172a;
}
.team-view-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.team-view-tab .hire-mode-icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #64748b;
  font-size: 1rem;
}
.team-view-tab strong {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}
.team-view-tab.is-schedule.is-selected {
  border-color: #2563eb;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 0 0 1px #2563eb, 0 8px 20px rgba(37, 99, 235, 0.16);
}
.team-view-tab.is-schedule.is-selected .hire-mode-icon { background: #1d4ed8; color: #fff; }
.team-view-tab.is-people.is-selected {
  border-color: #059669;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 0 0 1px #059669, 0 8px 20px rgba(5, 150, 105, 0.16);
}
.team-view-tab.is-people.is-selected .hire-mode-icon { background: #047857; color: #fff; }
.team-view-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 720px) {
  .team-views { grid-template-columns: 1fr; gap: 0.5rem; }
}
