.break-schedule-shell {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  gap: 0;
}

body.view-break_schedule .app-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 24px 32px !important;
}

body.view-break_schedule .app-container > .break-schedule-shell {
  width: 100% !important;
  max-width: none !important;
}

.break-schedule-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 110px);
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: visible;
}

.break-schedule-sidebar {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 24px;
  align-self: start;
}

.break-schedule-sidebar-sticky {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 24px;
}

.break-schedule-main {
  padding: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.break-schedule-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.break-schedule-card:hover {
  border-color: #f6d5da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.break-schedule-sidebar-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.break-schedule-sidebar-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.break-schedule-sidebar-actions-list,
.break-schedule-sidebar-form,
.break-schedule-sidebar-legend {
  display: grid;
  gap: 16px;
}

.break-schedule-sidebar-button {
  width: 100%;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.break-schedule-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.break-schedule-inline-icon svg {
  width: 16px;
  height: 16px;
}

.break-schedule-field {
  display: grid;
  gap: 8px;
}

.break-schedule-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.break-schedule-sidebar-form input,
.break-schedule-sidebar-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.break-schedule-sidebar-form input:focus,
.break-schedule-sidebar-form select:focus {
  outline: none;
  border-color: #8f0e25;
  box-shadow: 0 0 0 3px rgba(251, 233, 236, 0.95);
}

.break-schedule-field-date input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.break-schedule-date-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #f1f5f9;
}

.break-schedule-date-input-wrap i {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex-shrink: 0;
}

.break-schedule-date-input-wrap input:focus {
  outline: none;
  box-shadow: none;
}

.break-schedule-sidebar-actions-row {
  display: grid;
  gap: 8px;
}

.break-schedule-legend-list {
  display: grid;
  gap: 10px;
}

.break-schedule-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #111827;
}

.break-schedule-legend-box {
  width: 16px;
  height: 16px;
  border-radius: 0;
  flex-shrink: 0;
}

.break-schedule-legend-box.is-booked {
  background: #8f0e25;
}

.break-schedule-legend-box.is-locked {
  background: #fee2e2;
  border: 1px solid #dc2626;
}

.break-schedule-legend-box.is-override {
  background: linear-gradient(135deg, #fee2e2 50%, #f3f4f6 50%);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.break-schedule-main-card {
  padding: 0;
  overflow: hidden;
}

.break-schedule-plan-card {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.break-schedule-plan-card:hover {
  border-color: #e5e7eb;
  box-shadow: none;
}

.break-schedule-main-head,
.break-schedule-bookings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 24px 0;
}

.break-schedule-main-head h2,
.break-schedule-bookings-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.break-schedule-bookings-head p {
  display: none;
}

.break-schedule-grid-wrap {
  overflow-x: auto;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
}

.break-schedule-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  margin-left: 0;
  margin-right: 0;
}

.break-schedule-grid th,
.break-schedule-grid td {
  border: 1px solid #f1f5f9;
  padding: 8px;
  font-size: 13px;
}

.break-schedule-grid th {
  background: #f1f5f9;
  color: #111827;
  text-align: left;
  font-weight: 600;
  padding: 10px 8px;
  vertical-align: middle;
}

.break-schedule-grid tbody tr:hover {
  background: #f1f5f9;
}

.break-schedule-slot-label {
  font-weight: 600;
  color: #111827;
  width: 90px;
  min-width: 90px;
  white-space: nowrap;
  background: #fff;
}

.break-schedule-cell {
  padding: 0 !important;
  background: #fff;
  vertical-align: middle;
}

.break-schedule-cell.is-booked {
  background: #fff;
}

.break-schedule-cell.is-locked {
  background: #fee2e2;
}

.break-schedule-cell.is-override {
  background: linear-gradient(135deg, #fee2e2 50%, #f1f5f9 50%);
}

.break-schedule-cell-button {
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  border-radius: 0;
}

.break-schedule-cell.is-booked .break-schedule-cell-button,
.break-schedule-cell.is-override .break-schedule-cell-button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.break-schedule-cell-button.is-readonly {
  cursor: default;
}

.break-schedule-cell-button.is-drop-target {
  background: rgba(22, 163, 74, 0.12);
}

.break-schedule-cell-button.is-dragging {
  opacity: 0.7;
}

.break-schedule-cell.is-empty .break-schedule-cell-button,
.break-schedule-cell.is-locked .break-schedule-cell-button,
.break-schedule-cell.is-override .break-schedule-cell-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.break-schedule-cell.is-empty .break-schedule-cell-button:hover {
  background: #dcfce7;
}

.break-schedule-cell.is-booked .break-schedule-cell-button:hover {
  background: linear-gradient(135deg, #8f0e25 0%, #7a0c20 100%);
}

.break-schedule-cell.is-locked .break-schedule-cell-button:hover,
.break-schedule-cell.is-override .break-schedule-cell-button:hover {
  background: rgba(220, 38, 38, 0.08);
}

.break-schedule-cell-button:focus-visible {
  outline: 2px solid rgba(143, 14, 37, 0.22);
  outline-offset: -2px;
}

.break-schedule-cell-empty {
  display: block;
  min-height: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  text-align: center;
}

.break-schedule-cell-empty.is-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 26px;
  border-radius: 0;
  color: #dc2626;
}

.break-schedule-lock-icon {
  width: 14px;
  height: 14px;
  color: #dc2626;
  display: block;
  flex-shrink: 0;
}

.break-schedule-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 0;
  background: linear-gradient(135deg, #8f0e25, #7a0c20);
  color: #fff;
  box-shadow: none;
  transition: filter 0.15s ease;
}

.break-schedule-chip + .break-schedule-chip {
  margin-top: 1px;
}

.break-schedule-cell-button:hover .break-schedule-chip {
  filter: saturate(1.06);
}

.break-schedule-chip strong {
  font-size: 12px;
  color: inherit;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.break-schedule-chip span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.break-schedule-booking-views {
  padding: 0 14px 14px;
}

.break-schedule-view-toggle {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 8px;
}

.break-schedule-view-toggle-button {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f1f5f9;
  color: #6b7280;
  border: none;
}

.break-schedule-view-toggle-button.is-active {
  background: #8f0e25;
  color: #fff;
}

.break-schedule-booking-view {
  display: none;
}

.break-schedule-booking-view.is-active {
  display: block;
}

.break-schedule-compact-list {
  display: grid;
  gap: 6px;
}

.break-schedule-compact-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(36, 31, 33, 0.08);
  border-radius: 8px;
  background: #fff;
}

.break-schedule-time-badge {
  font-size: 12px;
  font-weight: 800;
  color: #8f0e25;
  background: #f6d5da;
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
}

.break-schedule-compact-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.break-schedule-person {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.break-schedule-person strong {
  font-size: 13px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.break-schedule-person span {
  font-size: 11px;
  color: #6b7280;
}

.break-schedule-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.break-schedule-row-actions-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.break-schedule-row-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.break-schedule-row-action-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-small {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
}

.break-schedule-bookings {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.break-schedule-booking-card {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 8px;
}

.break-schedule-booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.break-schedule-booking-head h3 {
  margin: 0 0 2px;
  font-size: 13px;
}

.break-schedule-booking-head p {
  margin: 0;
  color: #6b7280;
  font-size: 10px;
}

.break-schedule-booking-meta {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.break-schedule-booking-meta div {
  padding: 7px 8px;
  border-radius: 6px;
  background: #fbe9ec;
}

.break-schedule-booking-meta dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 2px;
}

.break-schedule-booking-meta dd {
  margin: 0;
  font-weight: 700;
  color: #111827;
  font-size: 12px;
}

.break-schedule-empty {
  padding: 8px 0 2px;
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
}

.break-schedule-slot-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 233, 236, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(143, 14, 37, 0.1);
  margin-bottom: 18px;
}

.break-schedule-slot-summary-copy {
  display: grid;
  gap: 4px;
}

.break-schedule-slot-summary-copy strong {
  font-size: 15px;
  color: #111827;
}

.break-schedule-slot-summary-copy span {
  font-size: 13px;
  color: #6b7280;
  max-width: 520px;
}

.break-schedule-slot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.break-schedule-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.break-schedule-settings-head h1 {
  margin: 0 0 4px;
}

.break-schedule-settings-head p {
  margin: 0;
  color: #6b7280;
}

.break-schedule-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.break-schedule-settings-detected {
  display: grid;
  gap: 10px;
}

.break-schedule-settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.break-schedule-settings-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6d5da;
  color: #8f0e25;
  font-size: 12px;
  font-weight: 700;
}

.break-schedule-settings-locks {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.break-schedule-settings-lock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(36, 31, 33, 0.08);
  border-radius: 14px;
  background: #fff;
}

.break-schedule-settings-lock-copy {
  display: grid;
  gap: 3px;
}

.break-schedule-settings-lock-copy strong {
  font-size: 14px;
  color: #111827;
}

.break-schedule-settings-lock-copy span {
  font-size: 12px;
  color: #6b7280;
}

.break-schedule-checkbox {
  align-content: end;
}

.break-schedule-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  color: #111827;
}

.break-schedule-toggle input {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  body.view-break_schedule .app-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .break-schedule-app {
    grid-template-columns: 1fr;
  }

  .break-schedule-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .break-schedule-sidebar-sticky {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  body.view-break_schedule .app-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 16px !important;
  }

  .break-schedule-main,
  .break-schedule-sidebar {
    padding: 16px;
  }

  .break-schedule-main-head,
  .break-schedule-bookings-head {
    padding: 18px 18px 0;
  }

  .break-schedule-booking-views {
    padding: 0 14px 14px;
  }

  .break-schedule-settings-grid {
    grid-template-columns: 1fr;
  }

  .break-schedule-settings-lock-row {
    grid-template-columns: 1fr;
  }

  .break-schedule-view-toggle {
    width: 100%;
  }

  .break-schedule-view-toggle-button {
    flex: 1 1 0;
  }

  .break-schedule-compact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .break-schedule-row-actions {
    justify-content: space-between;
  }

  .break-schedule-row-actions-stack {
    justify-items: stretch;
  }

  .break-schedule-row-action-item {
    justify-content: space-between;
  }

  .break-schedule-time-badge {
    width: fit-content;
  }

  .break-schedule-bookings {
    grid-template-columns: 1fr;
  }

  .break-schedule-booking-meta {
    grid-template-columns: 1fr;
  }

  .break-schedule-app {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
