/* public/css/components.css */
/* ===============================================
   COMPONENT STYLES
   =============================================== */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background-color: var(--primary-color, #3498db);
  color: #fff;
}
.btn-primary:hover {
  background-color: #2980b9;
}
.btn-secondary {
  background-color: #fff;
  border-color: var(--primary-color, #3498db);
  color: var(--primary-color, #3498db);
}
.btn-secondary:hover {
  background-color: #f2f8fc;
}
.btn-disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  width: 90%;
  max-width: 500px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.account-security-page {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.account-security-card {
  padding: clamp(1rem, 4vw, 2rem);
}

.account-security-card .management-form {
  display: grid;
  gap: 1rem;
}

.management-dialog {
  width: min(calc(100% - 2rem), 32rem);
  border: 0;
  border-radius: 8px;
  padding: clamp(1rem, 4vw, 2rem);
}

.management-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success {
  background-color: #dff0d8;
  color: #3c763d;
}
.alert-error {
  background-color: #f2dede;
  color: #a94442;
}

/* Additional components from the consolidated CSS */
/* (Include any additional UI elements such as tooltips, modals, etc.) */

/* ===============================================
   END COMPONENT STYLES
   =============================================== */

/* Navbar POST logout button */
.nav-link-button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.nav-link-button:hover {
  opacity: 0.8;
}

/* ===============================================
   Admin Missed Check-In Alert Panel
   =============================================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.muted-text {
  color: #666;
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.alert-summary-widget strong {
  font-size: 1.75rem;
}

.missed-check-in-panel {
  border-left: 5px solid #a94442;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.alert-panel-body {
  margin-top: 1rem;
}

.missed-alert-list {
  display: grid;
  gap: 1rem;
}

.missed-alert-card {
  border: 1px solid #ddd;
  border-left-width: 6px;
  border-radius: 6px;
  padding: 1rem;
  background: #fff;
}

.missed-alert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.missed-alert-card-header h4 {
  margin: 0;
}

.missed-alert-card-header p {
  margin: 0.25rem 0 0;
  color: #666;
}

.alert-level-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eee;
  white-space: nowrap;
}

.missed-alert-status {
  margin: 0.75rem 0;
  font-size: 1.05rem;
}

.missed-alert-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.missed-alert-details div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.missed-alert-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.protocol-note {
  color: #555;
  font-size: 0.9rem;
}

.alert-level-due {
  border-left-color: #3498db;
}

.alert-level-late {
  border-left-color: #f39c12;
}

.alert-level-warning {
  border-left-color: #e67e22;
}

.alert-level-critical {
  border-left-color: #a94442;
}

.alert-level-due .alert-level-badge {
  background: #d9edf7;
  color: #31708f;
}

.alert-level-late .alert-level-badge {
  background: #fcf8e3;
  color: #8a6d3b;
}

.alert-level-warning .alert-level-badge {
  background: #fbe6d4;
  color: #9a4f00;
}

.alert-level-critical .alert-level-badge {
  background: #f2dede;
  color: #a94442;
}

.empty-state {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 1rem;
  background: #fafafa;
}

.empty-state p {
  margin-bottom: 0;
}

.error-state {
  border-color: #a94442;
  background: #f2dede;
  color: #a94442;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .page-header,
  .panel-header,
  .missed-alert-card-header {
    flex-direction: column;
  }

  .panel-actions {
    justify-content: flex-start;
  }
}

/* ===============================================
   End Admin Missed Check-In Alert Panel
   =============================================== */

/* ===============================================
   Missed Check-In Report Page
   =============================================== */

.report-filter-widget,
.report-results-widget {
  margin-top: 2rem;
}

.report-filter-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ===============================================
   End Missed Check-In Report Page
   =============================================== */

/* ===============================================
   Admin Management Pages
   =============================================== */

.admin-management-page .management-form-widget,
.admin-management-page .management-list-widget {
  margin-top: 2rem;
}

/* Controlled operator-only onboarding import */
.operator-onboarding-page [hidden] {
  display: none !important;
}

.operator-onboarding-page .page-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.operator-onboarding-page .onboarding-import-controls,
.operator-onboarding-page .onboarding-preview-panel,
.operator-onboarding-page .onboarding-result-panel {
  margin-top: 1.5rem;
}

.operator-onboarding-page .onboarding-import-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
}

.operator-onboarding-page input[type="file"] {
  width: 100%;
  max-width: 100%;
}

.operator-onboarding-page a.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.operator-onboarding-page .onboarding-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.operator-onboarding-page .onboarding-summary-grid > div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #d7dee7;
  border-radius: 6px;
  background: #f8fafc;
}

.operator-onboarding-page .onboarding-summary-grid dt {
  color: #555;
  font-size: 0.8rem;
  font-weight: 700;
}

.operator-onboarding-page .onboarding-summary-grid dd {
  margin: 0.25rem 0 0;
  color: #17324d;
  font-size: 1.25rem;
  font-weight: 800;
}

.operator-onboarding-page .onboarding-preview-table {
  width: 100%;
  table-layout: fixed;
}

.operator-onboarding-page .onboarding-preview-table th:nth-child(1) {
  width: 4rem;
}

.operator-onboarding-page .onboarding-preview-table th:nth-child(2) {
  width: 9rem;
}

.operator-onboarding-page .onboarding-preview-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.operator-onboarding-page .onboarding-row-status {
  font-weight: 700;
  text-transform: capitalize;
}

.operator-onboarding-page .onboarding-row-status-ready,
.operator-onboarding-page .onboarding-row-status-ready_with_warnings {
  color: #276738;
}

.operator-onboarding-page .onboarding-row-status-invalid,
.operator-onboarding-page .onboarding-row-status-duplicate {
  color: #9f1d2b;
}

.operator-onboarding-page .onboarding-approval {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #c6d2df;
  border-radius: 6px;
  background: #f8fafc;
}

.operator-onboarding-page .onboarding-approval h4 {
  margin-bottom: 0.75rem;
}

.operator-onboarding-page .onboarding-acknowledgement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin-top: 0.75rem;
}

.operator-onboarding-page .onboarding-acknowledgement input {
  width: auto;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .operator-onboarding-page .page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .operator-onboarding-page .onboarding-import-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .operator-onboarding-page .page-header-actions .btn {
    width: 100%;
  }

  .operator-onboarding-page .onboarding-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.management-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.checkbox-group,
.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-checkbox {
  font-size: 0.95rem;
}

.status-active {
  color: #3c763d;
  font-weight: 700;
}

.status-inactive {
  color: #a94442;
  font-weight: 700;
}

.license-management-section {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  background: #f8fafc;
}

.license-management-section legend {
  padding: 0 0.35rem;
  color: #243447;
  font-size: 1rem;
  font-weight: 800;
}

.license-management-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.license-management-heading small {
  display: block;
  margin-top: 0.25rem;
}

.license-management-heading .btn[hidden] {
  display: none;
}

.license-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.admin-management-page .btn-danger {
  border-color: #a61b29;
  background: #b42333;
  color: #fff;
}

.admin-management-page .btn-danger:hover,
.admin-management-page .btn-danger:focus-visible {
  border-color: #7f1420;
  background: #941d2a;
  color: #fff;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 210px;
}

.admin-user-actions .btn-compact,
.admin-location-actions .btn-compact {
  min-height: 44px;
  width: auto;
  padding: 0.32rem 0.58rem;
  font-size: 0.8rem;
  line-height: 1.1;
}

.admin-location-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 310px;
  white-space: nowrap;
}

.admin-locations-data-table th:last-child,
.admin-locations-data-table td:last-child {
  width: 1%;
  min-width: 330px;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .admin-management-page .table-responsive:has(.responsive-data-table) {
    overflow-x: visible;
  }

  .responsive-data-table,
  .responsive-data-table thead,
  .responsive-data-table tbody,
  .responsive-data-table tr,
  .responsive-data-table th,
  .responsive-data-table td {
    display: block;
  }

  .responsive-data-table {
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
  }

  .responsive-data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  .responsive-data-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .responsive-data-table tr {
    padding: 0.7rem;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
  }

  .responsive-data-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.4rem 0;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .responsive-data-table td:last-child {
    border-bottom: 0;
  }

  .responsive-data-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .admin-user-actions,
  .admin-location-actions {
    min-width: 0;
  }

  .admin-locations-data-table td:last-child {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .admin-location-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .license-management-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .license-management-heading .btn-danger {
    width: 100%;
  }

  .admin-user-actions {
    min-width: 0;
  }

  .responsive-data-table td {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .admin-location-actions .btn {
    flex: 0 1 auto;
    width: auto;
  }

  .admin-location-actions {
    flex-wrap: wrap;
    white-space: normal;
  }

  .admin-user-actions .btn {
    flex: 0 1 auto;
    width: auto;
  }
}

/* ===============================================
   End Admin Management Pages
   =============================================== */

.admin-user-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-user-search-panel h3,
.admin-user-search-panel p {
  margin: 0;
}

.admin-user-search-panel p {
  margin-top: 0.2rem;
}

.admin-user-search-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-user-search-controls input {
  min-width: 0;
  margin: 0;
}

.admin-clock-out-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 700px) {
  .admin-user-search-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 430px) {
  .admin-user-search-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-search-controls .btn {
    width: 100%;
  }
}

/* ===============================================
   Schedule Assignment UI
   =============================================== */

.assignment-management-widget {
  border-left: 5px solid #3498db;
}

#admin-assignment-table select,
#admin-assignment-occurrence,
#admin-assignment-user,
#admin-assignment-role,
#admin-assignment-status {
  max-width: 100%;
}

#admin-occurrence-table table,
#admin-assignment-table table {
  min-width: 900px;
}

/* ===============================================
   End Schedule Assignment UI
   =============================================== */

/* ===============================================
   Reports Landing Page
   =============================================== */

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.report-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.report-card h3 {
  margin-top: 0;
}

/* ===============================================
   End Reports Landing Page
   =============================================== */

/* ===============================================
   Phase 6 Admin UI Polish
   =============================================== */

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.message {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: #f7f7f7;
  border: 1px solid #ddd;
}

.message.success,
.success-message {
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #c8e5bc;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}

.message.error,
.error-message {
  background: #f2dede;
  color: #a94442;
  border: 1px solid #ebcccc;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}

.message.info,
.alert-info {
  background: #d9edf7;
  color: #31708f;
  border: 1px solid #bce8f1;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}

.field-error {
  display: block;
  margin-top: -0.3rem;
  color: #a61b29;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a61b29;
  box-shadow: 0 0 0 2px rgba(166, 27, 41, 0.12);
}

button[aria-busy="true"] {
  cursor: progress;
}

.error-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
}

.error-page-card {
  width: min(100%, 620px);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-top: 5px solid #a61b29;
  text-align: center;
}

.error-page-status {
  margin: 0;
  color: #a61b29;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.error-page-card h2 {
  margin-top: 0.75rem;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .error-page-actions .btn {
    width: 100%;
  }
}

.admin-data-report-page .report-results-widget {
  margin-top: 2rem;
}

.admin-data-report-page table {
  min-width: 900px;
}

.quick-links .btn,
.admin-quick-links .btn,
.report-actions .btn {
  text-decoration: none;
}

@media (max-width: 768px) {
  .page-actions {
    justify-content: flex-start;
  }
}

/* ===============================================
   End Phase 6 Admin UI Polish
   =============================================== */

/* ===============================================
   Admin Dashboard Stat Polish
   =============================================== */

.analytics .widget h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
}

.analytics .widget p {
  margin: 0;
}

.analytics .widget strong {
  font-size: 1.75rem;
  line-height: 1;
}

.admin-dashboard .quick-links {
  align-items: center;
}

.admin-dashboard .quick-links .btn {
  margin-bottom: 0;
}

/* ===============================================
   End Admin Dashboard Stat Polish
   =============================================== */

/* ===============================================
   Phase 11A Admin Dashboard Enhancement
   =============================================== */

.admin-dashboard {
  gap: 1.25rem;
}

.admin-dashboard .page-header {
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e5e8;
}

.admin-dashboard .page-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  line-height: 1.15;
}

.admin-dashboard .message {
  margin-bottom: 0;
}

.admin-dashboard .dashboard-section {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(30, 45, 62, 0.06);
}

.admin-dashboard .dashboard-section h3,
.admin-dashboard .dashboard-action-group h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: #243447;
}

.admin-dashboard .dashboard-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-dashboard .needs-attention-panel {
  border-top: 4px solid #a94442;
}

.admin-dashboard .attention-grid,
.admin-dashboard .metric-grid,
.admin-dashboard .dashboard-action-groups,
.admin-dashboard .dashboard-reference-grid {
  display: grid;
  gap: 1rem;
}

.admin-dashboard .attention-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard .attention-card,
.admin-dashboard .metric-card {
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
}

.admin-dashboard .attention-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  border-top: 4px solid #8795a1;
}

.admin-dashboard .attention-card h4,
.admin-dashboard .metric-card h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 0.98rem;
  line-height: 1.25;
}

.admin-dashboard .attention-card .muted-text {
  margin: 0;
}

.admin-dashboard .attention-count {
  margin: 0;
  color: #243447;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.admin-dashboard .attention-card .btn {
  margin-top: auto;
}

.admin-dashboard .attention-card-critical {
  background: #fffafa;
  border-top-color: #a94442;
}

.admin-dashboard .attention-card-warning {
  background: #fffdf8;
  border-top-color: #e67e22;
}

.admin-dashboard .attention-card-neutral {
  background: #fbfcfd;
  border-top-color: #3498db;
}

.admin-dashboard .metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-dashboard .metric-card {
  border-left: 3px solid #d7dde4;
}

.admin-dashboard .metric-card-featured {
  border-left-color: #3498db;
  background: #f7fbfe;
}

.admin-dashboard .metric-card p {
  margin: 0.55rem 0 0.35rem;
}

.admin-dashboard .metric-card strong {
  color: #243447;
  font-size: 1.85rem;
  line-height: 1;
}

.admin-dashboard .metric-note {
  display: block;
  color: #666;
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-dashboard .dashboard-actions-panel {
  padding: 0;
  overflow: hidden;
}

.admin-dashboard .dashboard-action-groups {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
}

.admin-dashboard .dashboard-action-group {
  min-width: 0;
  padding: 1.25rem;
}

.admin-dashboard .dashboard-action-group + .dashboard-action-group {
  border-left: 1px solid #e1e5ea;
}

.admin-dashboard .admin-quick-links {
  margin-top: 1rem;
  margin-bottom: 0;
}

.admin-dashboard .quick-links .btn {
  padding-inline: 1rem;
}

.admin-dashboard .attendance-review-panel {
  border-left: 5px solid #e67e22;
}

.manual-attendance-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 46rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.manual-attendance-dialog-header {
  position: relative;
  padding-right: 2rem;
}

.manual-attendance-dialog-header h3 {
  margin: 0 0 0.35rem;
}

.manual-attendance-dialog-header .modal-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #243447;
  font-size: 1.8rem;
  line-height: 1;
}

.manual-attendance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.manual-attendance-form-grid .form-group {
  min-width: 0;
  margin: 0;
}

.manual-attendance-form-grid input,
.manual-attendance-form-grid select,
.manual-attendance-form-grid textarea {
  width: 100%;
  box-sizing: border-box;
}

.manual-attendance-occurrence-field,
.manual-attendance-reason-field {
  grid-column: 1 / -1;
}

.manual-attendance-actions .btn {
  min-height: 44px;
}

.admin-dashboard .missed-check-in-panel {
  border-left: 5px solid #a94442;
}

.admin-dashboard .dashboard-table-panel table {
  margin-bottom: 0;
}

.admin-dashboard .dashboard-table-panel .empty-state,
.admin-dashboard .alert-panel-body .empty-state {
  margin-top: 0;
}

.admin-dashboard .dashboard-reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard .dashboard-empty-state,
.admin-dashboard .dashboard-loading-state {
  color: #555;
}

.admin-dashboard .dashboard-alert-card {
  box-shadow: 0 1px 2px rgba(30, 45, 62, 0.05);
}

.admin-dashboard .status-badge-success {
  background: #dff0d8;
  color: #3c763d;
}

.admin-dashboard .status-badge-danger {
  background: #f2dede;
  color: #a94442;
}

@media (max-width: 1100px) {
  .admin-dashboard .attention-grid,
  .admin-dashboard .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-dashboard .dashboard-action-groups,
  .admin-dashboard .dashboard-reference-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .dashboard-action-group + .dashboard-action-group {
    border-top: 1px solid #e1e5ea;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .admin-dashboard {
    gap: 1rem;
  }

  .admin-dashboard .dashboard-section,
  .admin-dashboard .dashboard-action-group {
    padding: 1rem;
  }

  .admin-dashboard .dashboard-section-header {
    flex-direction: column;
  }

  .admin-dashboard .attendance-review-panel .panel-actions {
    width: 100%;
  }

  .admin-dashboard .attendance-review-panel .panel-actions .btn {
    width: 100%;
  }

  .manual-attendance-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .manual-attendance-form-grid {
    grid-template-columns: 1fr;
  }

  .manual-attendance-occurrence-field,
  .manual-attendance-reason-field {
    grid-column: auto;
  }

  .manual-attendance-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-dashboard .attention-grid,
  .admin-dashboard .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .attention-count,
  .admin-dashboard .metric-card strong {
    font-size: 1.75rem;
  }

  .admin-dashboard .attention-card .btn,
  .admin-dashboard .quick-links .btn {
    width: 100%;
  }
}

/* ===============================================
   End Phase 11A Admin Dashboard Enhancement
   =============================================== */

/* ===============================================
   Phase 11A Schedule Page Enhancement
   =============================================== */

.schedule-page {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 0.85rem;
  overflow-x: clip;
}

.schedule-page .page-header {
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e2e5e8;
}

.schedule-page .page-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  line-height: 1.15;
}

.schedule-page .message {
  margin-bottom: 0;
}

.scheduling-v2-beta-page .sticky-status-panel {
  position: sticky;
  top: 0.75rem;
  z-index: 90;
}

.scheduling-v2-beta-page .weekday-checklist-control {
  position: relative;
  width: 100%;
}

.scheduling-v2-beta-page .weekday-checklist-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  color: #243447;
  background: #fff;
  border: 1px solid #b8c2cc;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.scheduling-v2-beta-page .weekday-checklist-trigger span:last-child {
  color: #5d6b7a;
  font-size: 0.88rem;
}

.scheduling-v2-beta-page .weekday-checklist-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 95;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(30, 45, 62, 0.16);
}

.scheduling-v2-beta-page .weekday-checklist-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: stretch;
}

.scheduling-v2-beta-page .weekday-checklist-options .inline-checkbox {
  justify-content: flex-start;
  min-height: 32px;
  padding: 0.2rem 0.25rem;
}

.scheduling-v2-beta-page .weekday-checklist-options input:disabled + span,
.scheduling-v2-beta-page .weekday-checklist-options input:disabled {
  opacity: 0.6;
}

.scheduling-v2-beta-page .v2-output-summary {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.scheduling-v2-beta-page .v2-summary-card {
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.scheduling-v2-beta-page .v2-summary-card h4 {
  margin: 0 0 0.55rem;
  color: #243447;
  font-size: 0.95rem;
  line-height: 1.25;
}

.scheduling-v2-beta-page .v2-summary-card p {
  margin: 0;
  color: #4b5d70;
  font-size: 0.86rem;
  line-height: 1.4;
}

.scheduling-v2-beta-page .v2-summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.scheduling-v2-beta-page .v2-summary-metric {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-left: 3px solid #2f6fdd;
  border-radius: 5px;
}

.scheduling-v2-beta-page .v2-summary-metric span {
  display: block;
  margin-bottom: 0.25rem;
  color: #5d6b7a;
  font-size: 0.72rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.scheduling-v2-beta-page .v2-summary-metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: #243447;
  font-size: 0.95rem;
  line-height: 1.2;
}

.scheduling-v2-beta-page .v2-summary-metric-success {
  border-left-color: #2f855a;
}

.scheduling-v2-beta-page .v2-summary-metric-warning {
  border-left-color: #b7791f;
}

.scheduling-v2-beta-page .v2-summary-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: #33475b;
  font-size: 0.86rem;
  line-height: 1.35;
}

.scheduling-v2-beta-page .v2-raw-json-details {
  margin-top: 0.55rem;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.scheduling-v2-beta-page .v2-raw-json-details summary {
  min-height: 34px;
  padding: 0.5rem 0.7rem;
  color: #31465c;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.scheduling-v2-beta-page .v2-raw-json-details .schedule-note {
  margin: 0;
  border-radius: 0 0 6px 6px;
  border-left-color: #8ba4bd;
  overflow-x: auto;
}

.location-coverage-v3-page .v3-beta-warning {
  margin-bottom: 0.85rem;
}

.location-coverage-v3-page .address-provider-status {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9e2ec;
  border-left: 4px solid #5f7f9f;
  border-radius: 6px;
  background: #f7fafc;
  color: #31465c;
  font-size: 0.9rem;
}

.location-coverage-v3-page .address-provider-status.is-success {
  border-left-color: #278653;
  background: #f0faf4;
  color: #195c39;
}

.location-coverage-v3-page .address-provider-status.is-warning {
  border-left-color: #b98212;
  background: #fff9e9;
  color: #664a0e;
}

.location-coverage-v3-page .address-provider-status.is-error {
  border-left-color: #b83232;
  background: #fff5f5;
  color: #7d2020;
}

.location-coverage-v3-page .google-place-autocomplete-inline {
  position: relative;
  width: 100%;
  min-width: 0;
}

.location-coverage-v3-page .google-place-autocomplete-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.location-coverage-v3-page .google-place-autocomplete-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  max-width: 100%;
  max-height: min(18rem, 45dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(15 23 42 / 18%);
}

.location-coverage-v3-page .google-place-autocomplete-suggestions[hidden] {
  display: none;
}

.location-coverage-v3-page .google-place-autocomplete-suggestions ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-coverage-v3-page .google-place-suggestion {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: #fff;
  color: #172b3f;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.location-coverage-v3-page .google-place-suggestion:hover,
.location-coverage-v3-page .google-place-suggestion:focus-visible {
  background: #eef5ff;
  outline: 2px solid #2d6cdf;
  outline-offset: -2px;
}

.location-coverage-v3-page .google-maps-attribution {
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  color: #52667a;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.location-coverage-v3-page .v3-shift-fields {
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(135px, 1fr));
  align-items: start;
}

.location-coverage-v3-page .v3-shift-policy-group {
  grid-column: span 2;
}

.location-coverage-v3-page .v3-shift-notes-group {
  grid-column: span 2;
}

.location-coverage-v3-page .form-group-wide {
  grid-column: span 2;
}

.location-coverage-v3-page .v3-weekday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.location-coverage-v3-page .v3-day-editor,
.location-coverage-v3-page .v3-specific-date-rule,
.location-coverage-v3-page .v3-shift-row {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.location-coverage-v3-page .v3-day-header,
.location-coverage-v3-page .v3-specific-date-header,
.location-coverage-v3-page .v3-shift-heading,
.location-coverage-v3-page .v3-day-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.location-coverage-v3-page .v3-day-header h4,
.location-coverage-v3-page .v3-shift-heading h5 {
  margin: 0;
}

.location-coverage-v3-page .v3-day-status,
.location-coverage-v3-page .v3-overnight-indicator {
  margin: 0.25rem 0 0;
  color: #526475;
  font-size: 0.82rem;
  font-weight: 600;
}

.location-coverage-v3-page .v3-overnight-indicator {
  display: inline-flex;
  margin: 0;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #f8edcc;
  color: #5f4511;
}

.location-coverage-v3-page .v3-overnight-indicator[hidden] {
  display: none !important;
}

.location-coverage-v3-page .v3-shift-list,
.location-coverage-v3-page .v3-specific-date-list,
.location-coverage-v3-page .v3-specific-date-shifts {
  display: grid;
  gap: 0.7rem;
  margin: 0.75rem 0;
}

.location-coverage-v3-page .v3-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.location-coverage-v3-page .v3-summary-grid div {
  padding: 0.65rem;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #f9fbfd;
}

.location-coverage-v3-page .v3-summary-grid dt {
  color: #526475;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.location-coverage-v3-page .v3-summary-grid dd {
  margin: 0.2rem 0 0;
  color: #1f2d3d;
  font-weight: 700;
}

.location-coverage-v3-page .v3-readiness-results {
  margin-top: 0.85rem;
}

.location-coverage-v3-page .v3-readiness-panel {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f9fbfd;
}

.location-coverage-v3-page .v3-readiness-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.location-coverage-v3-page .v3-readiness-heading-row h4,
.location-coverage-v3-page .v3-readiness-heading-row p {
  margin: 0;
}

.location-coverage-v3-page .v3-readiness-heading-row p {
  margin-top: 0.25rem;
}

.location-coverage-v3-page .v3-lifecycle-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #31465c;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.location-coverage-v3-page .v3-lifecycle-status.is-ready {
  background: #fff4d6;
  color: #755100;
}

.location-coverage-v3-page .v3-lifecycle-status.is-active {
  background: #e4f7eb;
  color: #11613a;
}

.location-coverage-v3-page #v3-activate-location[hidden] {
  display: none;
}

.location-coverage-v3-page .v3-readiness-status {
  margin: 0;
  font-weight: 800;
}

.location-coverage-v3-page .v3-readiness-status.is-ready {
  color: #11613a;
}

.location-coverage-v3-page .v3-readiness-status.is-blocked {
  color: #8a1f11;
}

.location-coverage-v3-page .v3-readiness-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.v3-revision-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.75rem;
}

.v3-revision-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f9fbfd;
}

.v3-revision-card.is-selected {
  border-color: #6da7cf;
  box-shadow: inset 0 0 0 1px #6da7cf;
}

.v3-revision-card strong,
.v3-revision-card span {
  display: block;
  overflow-wrap: anywhere;
}

.v3-revision-card > div > span {
  margin-top: 0.2rem;
  color: #526475;
  font-size: 0.86rem;
}

.v3-revision-card .v3-lifecycle-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #31465c;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.v3-revision-card .v3-lifecycle-status.is-active {
  background: #e4f7eb;
  color: #11613a;
}

.v3-revision-card .v3-lifecycle-status.is-ready {
  background: #fff4d6;
  color: #755100;
}

.v3-revision-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.v3-revision-card .btn + .btn {
  margin-top: -0.35rem;
}

.v3-create-revision-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d9e2ec;
}

.v3-create-revision-form[hidden] {
  display: none;
}

.location-coverage-v3-page.is-future-revision .v3-location-details-layout {
  opacity: 0.78;
}

.location-coverage-v3-page.is-future-revision #v3-location-details-heading::after {
  content: " — unchanged while editing future coverage";
  color: #526475;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .location-coverage-v3-page .v3-shift-fields,
  .location-coverage-v3-page .v3-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.location-detail-page .v3-summary-grid,
.location-detail-page .v3-weekday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.location-detail-page .location-detail-shifts {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.location-detail-page .v3-day-editor {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.location-detail-page .v3-day-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.location-detail-page .v3-day-header h4,
.location-detail-page .v3-day-status {
  margin: 0;
}

.location-detail-page .location-detail-shifts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 6px;
  background: #f7fafc;
}

.scheduling-v3-operations-page .v3-beta-warning {
  margin-bottom: 0.85rem;
}

.scheduling-v3-operations-page .v3-operations-summary-grid,
.scheduling-v3-operations-page .v3-occurrence-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.scheduling-v3-operations-page .v3-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.75rem;
}

.scheduling-v3-operations-page .v3-operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel {
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.8fr);
}

.scheduling-v3-operations-page .v3-shift-view-stack {
  min-width: 0;
}

.scheduling-v3-operations-page .v3-staffing-panel {
  position: sticky;
  top: 1rem;
  display: flex;
  max-height: min(48rem, calc(100vh - 2rem));
  max-height: min(48rem, calc(100dvh - 2rem));
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.scheduling-v3-operations-page .v3-staffing-panel[hidden] {
  display: none;
}

.scheduling-v3-operations-page .v3-staffing-panel .btn-compact {
  min-height: 44px;
  padding: 0.5rem 0.7rem;
}

.scheduling-v3-operations-page .v3-staffing-panel > .schedule-section-header {
  flex: 0 0 auto;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e1e7ee;
}

.scheduling-v3-operations-page .v3-assignment-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.25rem;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.scheduling-v3-operations-page .v3-assignment-panel:focus-visible {
  outline: 2px solid #2d6cdf;
  outline-offset: -2px;
}

.scheduling-v3-operations-page .v3-view-mode-tabs,
.scheduling-v3-operations-page .v3-calendar-controls,
.scheduling-v3-operations-page .v3-card-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.scheduling-v3-operations-page .v3-view-mode-tab[aria-selected="true"],
.scheduling-v3-operations-page .v3-view-mode-tab.is-active {
  border-color: #2d6cdf;
  background: #eaf1ff;
  color: #173f8a;
}

.scheduling-v3-operations-page .v3-calendar-controls[hidden],
.scheduling-v3-operations-page .v3-view-panel[hidden] {
  display: none;
}

.scheduling-v3-operations-page .v3-summary-card,
.scheduling-v3-operations-page .v3-occurrence-card,
.scheduling-v3-operations-page .v3-guard-card,
.scheduling-v3-operations-page .v3-week-day,
.scheduling-v3-operations-page .v3-month-cell,
.scheduling-v3-operations-page .v3-month-day-detail {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.scheduling-v3-operations-page .v3-summary-card span,
.scheduling-v3-operations-page .v3-occurrence-metrics span {
  display: block;
  color: #526475;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.scheduling-v3-operations-page .v3-summary-card strong,
.scheduling-v3-operations-page .v3-occurrence-metrics strong {
  color: #1f2d3d;
  font-size: 1.15rem;
}

.scheduling-v3-operations-page .v3-occurrence-list,
.scheduling-v3-operations-page .v3-guard-list,
.scheduling-v3-operations-page .v3-assignment-list,
.scheduling-v3-operations-page .v3-week-day-occurrences {
  display: grid;
  gap: 0.75rem;
}

.scheduling-v3-operations-page .v3-week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.scheduling-v3-operations-page .v3-calendar-day-heading h4 {
  margin: 0;
  font-size: 0.95rem;
}

.scheduling-v3-operations-page .v3-calendar-day-heading p {
  margin: 0.2rem 0 0.65rem;
  color: #526475;
  font-size: 0.82rem;
  font-weight: 700;
}

.scheduling-v3-operations-page .v3-month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.scheduling-v3-operations-page .v3-month-weekday {
  padding: 0.4rem 0.3rem;
  color: #526475;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.scheduling-v3-operations-page .v3-month-cell {
  min-height: 150px;
  padding: 0.55rem;
}

.scheduling-v3-operations-page .v3-month-cell.is-outside-month {
  background: #f7fafc;
}

.scheduling-v3-operations-page .v3-month-date-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2d3d;
  cursor: pointer;
  text-align: left;
}

.scheduling-v3-operations-page .v3-month-date-button span {
  display: block;
  color: #526475;
  font-size: 0.78rem;
  font-weight: 700;
}

.scheduling-v3-operations-page .v3-month-date-number {
  color: #1f2d3d !important;
  font-size: 1rem !important;
}

.scheduling-v3-operations-page .v3-month-preview-list {
  display: grid;
  gap: 0.3rem;
  margin: 0.45rem 0;
  padding: 0;
  list-style: none;
}

.scheduling-v3-operations-page .v3-month-preview-list li {
  padding-top: 0.3rem;
  border-top: 1px solid #edf2f7;
  font-size: 0.78rem;
}

.scheduling-v3-operations-page .v3-month-preview-list span,
.scheduling-v3-operations-page .v3-month-preview-list small {
  display: block;
  color: #526475;
}

.scheduling-v3-operations-page .v3-month-day-detail {
  margin-top: 0.85rem;
}

.scheduling-v3-operations-page .v3-occurrence-card.is-selected {
  border-color: #2d6cdf;
  box-shadow: 0 0 0 2px rgba(45, 108, 223, 0.12);
}

.scheduling-v3-operations-page .v3-occurrence-card-main,
.scheduling-v3-operations-page .v3-assignment-row,
.scheduling-v3-operations-page .v3-guard-card,
.scheduling-v3-operations-page .v3-assignment-panel-header,
.scheduling-v3-operations-page .v3-override-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.scheduling-v3-operations-page .v3-assignment-panel-header {
  position: sticky;
  z-index: 2;
  top: 0;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0 0.65rem;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.scheduling-v3-operations-page .v3-staffing-mode-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.scheduling-v3-operations-page .v3-assignment-duration-label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #2d6cdf;
  border-radius: 4px;
  background: #eef4ff;
  color: #183f7a;
  font-size: 0.8rem;
  font-weight: 800;
}

.scheduling-v3-operations-page .v3-assignment-classification-note {
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #91a4b7;
  background: #f7f9fb;
}

.scheduling-v3-operations-page .v3-occurrence-card-main > :first-child {
  min-width: 0;
  flex: 1 1 240px;
}

.scheduling-v3-operations-page .v3-occurrence-card .muted-text {
  overflow-wrap: anywhere;
}

.scheduling-v3-operations-page .v3-staffing-status {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  text-align: right;
}

.scheduling-v3-operations-page .v3-needs-staffing-text,
.scheduling-v3-operations-page .v3-fully-staffed-text {
  font-size: 0.82rem;
}

.scheduling-v3-operations-page .v3-needs-staffing-text {
  color: #8a4b08;
}

.scheduling-v3-operations-page .v3-fully-staffed-text {
  color: #11613a;
}

.scheduling-v3-operations-page .v3-primary-shift-actions {
  justify-content: flex-end;
  max-width: none;
  margin-top: 0.75rem;
}

.scheduling-v3-operations-page .v3-primary-shift-actions .btn {
  min-width: 108px;
}

.scheduling-v3-operations-page .v3-occurrence-card h4 {
  margin: 0;
}

.scheduling-v3-operations-page .v3-assignment-list {
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}

.scheduling-v3-operations-page .v3-assignment-row {
  padding: 0.55rem 0;
  border-top: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-assignment-row span,
.scheduling-v3-operations-page .v3-guard-card span {
  display: block;
  color: #526475;
  font-size: 0.84rem;
}

.scheduling-v3-operations-page .v3-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #31465c;
  font-size: 0.78rem;
  font-weight: 800;
}

.scheduling-v3-operations-page .v3-status-fully-staffed {
  background: #e4f7eb;
  color: #11613a;
}

.scheduling-v3-operations-page .v3-status-partially-staffed {
  background: #fff4d6;
  color: #755100;
}

.scheduling-v3-operations-page .v3-status-overstaffed,
.scheduling-v3-operations-page .v3-status-cancelled,
.scheduling-v3-operations-page .v3-conflict-text {
  color: #8a1f11;
}

.scheduling-v3-operations-page .v3-status-overstaffed,
.scheduling-v3-operations-page .v3-status-cancelled {
  background: #fde8e2;
}

.scheduling-v3-operations-page .v3-advisory-text {
  color: #755100;
}

.scheduling-v3-operations-page .v3-overnight-indicator {
  display: inline-flex;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #f8edcc;
  color: #5f4511;
  font-size: 0.76rem;
  font-weight: 800;
}

.scheduling-v3-operations-page .v3-override-controls input,
.scheduling-v3-operations-page .v3-override-controls select {
  max-width: 220px;
}

.scheduling-v3-operations-page .v3-action-dialog[hidden] {
  display: none;
}

.scheduling-v3-operations-page .v3-action-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.48);
}

.scheduling-v3-operations-page .v3-action-dialog-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
}

.scheduling-v3-operations-page .v3-action-form-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.scheduling-v3-operations-page .v3-action-form-fields .form-group-wide,
.scheduling-v3-operations-page .v3-action-section {
  grid-column: 1 / -1;
}

.scheduling-v3-operations-page .v3-action-section {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-action-section h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.scheduling-v3-operations-page .v3-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scheduling-v3-operations-page .v3-more-actions > summary {
  width: fit-content;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #24415f;
  cursor: pointer;
  font-weight: 800;
}

.scheduling-v3-operations-page .v3-more-actions[open] > summary {
  margin-bottom: 0.65rem;
  background: #f3f7fb;
}

.scheduling-v3-operations-page .v3-cause-empty-state {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  min-height: 150px;
  align-content: center;
}

@media (max-width: 1500px) {
  .scheduling-v3-operations-page .v3-week-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .scheduling-v3-operations-page .v3-operations-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduling-v3-operations-page .v3-staffing-panel {
    position: static;
  }

  .scheduling-v3-operations-page .v3-month-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scheduling-v3-operations-page .v3-month-weekday {
    display: none;
  }
}

@media (max-width: 950px) {
  .scheduling-v3-operations-page .v3-filter-grid,
  .scheduling-v3-operations-page .v3-week-calendar,
  .scheduling-v3-operations-page .v3-month-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scheduling-v3-operations-page .v3-operations-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .scheduling-v3-operations-page .v3-filter-grid,
  .scheduling-v3-operations-page .v3-week-calendar,
  .scheduling-v3-operations-page .v3-month-calendar {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduling-v3-operations-page .v3-month-cell {
    min-height: auto;
  }

  .scheduling-v3-operations-page .v3-month-preview-list {
    display: grid;
  }

  .scheduling-v3-operations-page .v3-staffing-status {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .scheduling-v3-operations-page .v3-primary-shift-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scheduling-v3-operations-page .v3-primary-shift-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

.scheduling-v3-operations-page .v3-history-list,
.scheduling-v3-operations-page .v3-segment-list,
.scheduling-v3-operations-page .v3-transfer-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scheduling-v3-operations-page .v3-history-list li,
.scheduling-v3-operations-page .v3-segment-row,
.scheduling-v3-operations-page .v3-transfer-row {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  background: #fbfdff;
}

.scheduling-v3-operations-page .v3-segment-row,
.scheduling-v3-operations-page .v3-transfer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.scheduling-v3-operations-page .v3-history-list span,
.scheduling-v3-operations-page .v3-history-list small,
.scheduling-v3-operations-page .v3-segment-row span,
.scheduling-v3-operations-page .v3-segment-row small,
.scheduling-v3-operations-page .v3-transfer-row span,
.scheduling-v3-operations-page .v3-transfer-row small {
  display: block;
  color: #526475;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .v3-revision-list,
  .v3-revision-card {
    grid-template-columns: 1fr;
  }

  .v3-create-revision-form,
  .v3-create-revision-form .form-group,
  .v3-create-revision-form .btn {
    width: 100%;
  }
  .location-coverage-v3-page .form-group-wide {
    grid-column: auto;
  }

  .location-coverage-v3-page .v3-weekday-grid {
    grid-template-columns: 1fr;
  }

  .location-coverage-v3-page .v3-shift-fields {
    grid-template-columns: 1fr;
  }

  .location-coverage-v3-page .v3-shift-policy-group,
  .location-coverage-v3-page .v3-shift-notes-group {
    grid-column: auto;
  }

  .location-coverage-v3-page .v3-summary-grid {
    grid-template-columns: 1fr;
  }

  .scheduling-v3-operations-page .v3-override-controls input:not([type="checkbox"]),
  .scheduling-v3-operations-page .v3-override-controls select {
    width: 100%;
    max-width: none;
  }

  .scheduling-v3-operations-page .v3-week-calendar {
    grid-template-columns: 1fr;
  }

  .scheduling-v3-operations-page .v3-month-calendar {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .scheduling-v3-operations-page .v3-month-cell {
    min-height: 84px;
    padding: 0.35rem;
  }

  .scheduling-v3-operations-page .v3-action-dialog {
    align-items: end;
    padding: 0;
  }

  .scheduling-v3-operations-page .v3-action-dialog-panel {
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .scheduling-v3-operations-page .v3-action-grid,
  .scheduling-v3-operations-page .v3-segment-row,
  .scheduling-v3-operations-page .v3-transfer-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.schedule-page .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.84rem;
  line-height: 1.15;
}

.schedule-page .schedule-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.schedule-page .schedule-role-guidance {
  max-width: 70ch;
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.7rem;
  border-left: 4px solid #2d6cdf;
  background: #f4f7ff;
  color: #31465c;
  font-size: 0.9rem;
}

.schedule-page .schedule-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(30, 45, 62, 0.06);
}

.schedule-page .schedule-section h3,
.schedule-page .schedule-section h4 {
  margin-top: 0;
  color: #243447;
}

.schedule-page .schedule-section h3 {
  margin-bottom: 0.35rem;
}

.schedule-page .schedule-section h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.schedule-page .schedule-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  margin-bottom: 0.6rem;
}

.schedule-page .schedule-workflow-widget {
  border-top: 4px solid #3498db;
}

.schedule-page .schedule-workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.schedule-page .workflow-step {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #fbfcfd;
}

.schedule-page .workflow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: #2c3e50;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-page .workflow-step strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #243447;
  font-size: 0.9rem;
}

.schedule-page .workflow-step p {
  color: #666;
  font-size: 0.78rem;
  line-height: 1.3;
}

.schedule-page .schedule-guidance-grid,
.schedule-page .schedule-option-grid {
  display: grid;
  gap: 0.75rem;
}

.schedule-page .schedule-guidance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-page .schedule-note {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-color: #3498db;
  background: #f7fbfe;
  font-size: 0.86rem;
  line-height: 1.4;
}

.schedule-page .warning-note {
  border-left-color: #b7791f;
  background: #fff9ed;
}

.schedule-page .schedule-form-group {
  min-width: 0;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e8edf2;
}

.schedule-page .schedule-form-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.schedule-page .schedule-form-group > .muted-text {
  margin-bottom: 0.7rem;
}

.schedule-page .management-form .form-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  min-width: 0;
}

/* Deliberate Location Information rows keep paired fields balanced. */
.location-coverage-v3-page .v3-location-details-layout {
  display: grid;
  gap: 0.85rem;
}

.location-coverage-v3-page .v3-location-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  min-width: 0;
}

.location-coverage-v3-page .v3-location-address-row,
.location-coverage-v3-page .v3-location-formatted-address-row {
  grid-template-columns: minmax(0, 1fr);
}

.location-coverage-v3-page .v3-location-info-row > .form-group {
  min-width: 0;
}

.location-coverage-v3-page .v3-location-info-row input:not([type="checkbox"]),
.location-coverage-v3-page .v3-location-info-row select,
.location-coverage-v3-page .v3-location-info-row textarea {
  width: 100%;
}

.schedule-page.location-coverage-v3-page .v3-location-enabled-group {
  align-items: flex-start;
  flex-direction: column;
}

.schedule-page.location-coverage-v3-page .v3-location-enabled-group > label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.schedule-page .form-group,
.schedule-page .management-form,
.schedule-page .report-actions,
.schedule-page .panel-actions {
  min-width: 0;
}

.schedule-page .form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.schedule-page input,
.schedule-page select,
.schedule-page textarea {
  min-width: 0;
  min-height: 36px;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.55rem;
}

.schedule-page .field-help {
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.schedule-page .day-selector-options,
.schedule-page .schedule-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.45rem;
  min-width: 0;
}

.schedule-page .day-selector-options label,
.schedule-page .schedule-option {
  align-items: flex-start;
  min-width: 0;
  padding: 0.52rem 0.6rem;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #fbfcfd;
}

.schedule-page .day-selector-options label {
  display: flex;
  gap: 0.55rem;
}

.schedule-page .schedule-option {
  margin: 0;
}

.schedule-page .schedule-option span {
  display: grid;
  gap: 0.2rem;
}

.schedule-page .schedule-option small {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
}

.schedule-page .schedule-option-warning {
  border-color: #f0d6b0;
  background: #fffaf2;
}

.schedule-page .schedule-override-option {
  max-width: 760px;
}

.schedule-page .schedule-primary-actions {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e8edf2;
}

.schedule-page .assignment-management-widget {
  border-left: 5px solid #3498db;
}

.schedule-page .schedule-template-list-section {
  border-left: 5px solid #2c3e50;
}

.schedule-page .table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.schedule-page .schedule-data-table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  font-size: 0.82rem;
}

.schedule-page .schedule-data-table th {
  padding: 0.42rem 0.48rem;
  background: #f7f9fb;
  color: #4b5563;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-page .schedule-data-table td {
  padding: 0.42rem 0.48rem;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.schedule-page .schedule-data-table tbody tr:hover {
  background: #fbfcfd;
}

.schedule-page .table-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  min-width: 0;
  max-width: 205px;
}

.schedule-page .table-action-group .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.schedule-page .schedule-data-table td:last-child,
.schedule-page .schedule-data-table th:last-child {
  width: 1%;
  white-space: nowrap;
}

.schedule-page .js-assignment-status {
  min-height: 30px;
  margin-bottom: 0.3rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.8rem;
}

.schedule-page .status-badge-success {
  background: #dff0d8;
  color: #3c763d;
}

.schedule-page .status-badge-danger {
  background: #f2dede;
  color: #a94442;
}

.schedule-page .status-badge-warning {
  background: #fcf8e3;
  color: #8a6d3b;
}

.schedule-page .assignment-status-preview {
  margin-top: 0.45rem;
}

.schedule-page .schedule-loading-state {
  color: #555;
}

#admin-schedule-table table {
  min-width: 960px;
}

#admin-occurrence-table table,
#admin-assignment-table table {
  min-width: 700px;
}

@media (max-width: 1180px) {
  .schedule-page .schedule-section {
    padding: 0.75rem;
  }

  .schedule-page .table-action-group {
    max-width: 190px;
  }
}

@media (max-width: 1024px) {
  .schedule-page .management-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 900px) {
  .schedule-page .schedule-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-page .schedule-guidance-grid {
    grid-template-columns: 1fr;
  }

  .schedule-page .table-responsive {
    overflow-x: visible;
  }

  .schedule-page .schedule-data-table,
  .schedule-page .schedule-data-table thead,
  .schedule-page .schedule-data-table tbody,
  .schedule-page .schedule-data-table tr,
  .schedule-page .schedule-data-table th,
  .schedule-page .schedule-data-table td {
    display: block;
  }

  .schedule-page .schedule-data-table {
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  .schedule-page .schedule-data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  .schedule-page .schedule-data-table tbody {
    display: grid;
    gap: 0.6rem;
  }

  .schedule-page .schedule-data-table tr {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    background: #fff;
  }

  .schedule-page .schedule-data-table td {
    display: grid;
    grid-template-columns: minmax(6.75rem, 32%) minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.34rem 0;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    white-space: normal;
  }

  .schedule-page .schedule-data-table td:last-child,
  .schedule-page .schedule-data-table th:last-child {
    width: auto;
    white-space: normal;
  }

  .schedule-page .schedule-data-table td:last-child {
    border-bottom: 0;
  }

  .schedule-page .schedule-data-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .schedule-page .table-action-group {
    max-width: none;
  }

  .schedule-page .table-action-group .btn {
    width: auto;
  }
}

@media (max-width: 800px) {
  .location-coverage-v3-page .v3-location-info-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .schedule-page {
    gap: 0.7rem;
  }

  .schedule-page .page-header,
  .schedule-page .panel-header,
  .schedule-page .schedule-section-header {
    flex-direction: column;
  }

  .schedule-page .panel-actions {
    align-items: stretch;
    width: 100%;
  }

  .schedule-page .schedule-guidance-grid,
  .schedule-page .schedule-workflow-grid,
  .schedule-page .management-form .form-row {
    grid-template-columns: 1fr;
  }

  .schedule-page .schedule-section {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .schedule-page .page-header,
  .schedule-page .panel-header,
  .schedule-page .schedule-section-header {
    gap: 0.5rem;
  }

  .schedule-page .schedule-data-table td {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .schedule-page .table-action-group,
  .schedule-page .table-action-group .btn {
    width: 100%;
  }
}

/* ===============================================
   End Phase 11A Schedule Page Enhancement
   =============================================== */

/* ===============================================
   Phase 11A Reports and Payroll Enhancement
   =============================================== */

.reports-landing-page,
.admin-data-report-page,
.missed-check-in-report-page,
.payroll-page {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 0.95rem;
  overflow-x: clip;
}

.reports-landing-page .page-header,
.admin-data-report-page .page-header,
.missed-check-in-report-page .page-header,
.payroll-page .page-header {
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e5e8;
}

.reports-landing-page .page-header h2,
.admin-data-report-page .page-header h2,
.missed-check-in-report-page .page-header h2,
.payroll-page .page-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.15;
}

.reports-overview-panel,
.report-filter-widget,
.report-results-widget,
.payroll-filter-widget,
.payroll-page .management-list-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.95rem;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(30, 45, 62, 0.06);
}

.reports-overview-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 4px solid #3498db;
}

.reports-overview-panel h3,
.report-filter-widget h3,
.report-results-widget h3,
.payroll-filter-widget h3,
.payroll-page .management-list-widget h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  color: #243447;
}

.reports-overview-panel p,
.report-card p,
.report-filter-widget p,
.report-results-widget p,
.payroll-filter-widget p,
.payroll-page .management-list-widget p {
  margin-bottom: 0;
}

.reports-overview-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  min-width: 0;
}

.reports-overview-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #d7dde4;
  border-radius: 999px;
  background: #f7f9fb;
  color: #2c3e50;
  font-size: 0.78rem;
  font-weight: 700;
}

.reports-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
}

.report-card {
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 45, 62, 0.05);
}

.report-card h3 {
  margin-bottom: 0.35rem;
  color: #243447;
  font-size: 1.05rem;
}

.report-card-note {
  margin-top: 0.7rem;
  color: #56616f;
  font-size: 0.84rem;
  line-height: 1.35;
}

.report-card .report-actions {
  margin-top: 0.85rem;
}

.admin-data-report-page .report-filter-widget,
.admin-data-report-page .report-results-widget,
.missed-check-in-report-page .report-filter-widget,
.missed-check-in-report-page .report-results-widget,
.payroll-page .management-form-widget,
.payroll-page .management-list-widget {
  margin-top: 0;
}

.admin-data-report-page .panel-header,
.missed-check-in-report-page .panel-header,
.payroll-page .panel-header {
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-data-report-page .form-grid,
.missed-check-in-report-page .report-filter-form .form-row,
.payroll-page .management-form .form-row {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
  min-width: 0;
}

.admin-data-report-page .form-group,
.missed-check-in-report-page .form-group,
.payroll-page .form-group,
.admin-data-report-page form,
.missed-check-in-report-page form,
.payroll-page form {
  min-width: 0;
}

.admin-data-report-page input,
.admin-data-report-page select,
.missed-check-in-report-page input,
.missed-check-in-report-page select,
.payroll-page input,
.payroll-page select {
  min-width: 0;
  min-height: 36px;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.55rem;
}

.admin-data-report-page .btn,
.missed-check-in-report-page .btn,
.payroll-page .btn {
  min-height: 32px;
  padding: 0.42rem 0.65rem;
  border-radius: 4px;
  font-size: 0.84rem;
  line-height: 1.15;
}

.admin-data-report-page .report-actions,
.missed-check-in-report-page .report-actions,
.payroll-page .report-actions,
.admin-data-report-page .panel-actions,
.missed-check-in-report-page .panel-actions,
.payroll-page .panel-actions {
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.admin-data-report-page .table-responsive,
.missed-check-in-report-page .table-responsive,
.payroll-page .table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-data-report-page table,
.missed-check-in-report-page table,
.payroll-page table,
.report-data-table,
.payroll-data-table {
  width: 100%;
  max-width: 100%;
  min-width: 880px;
  margin-bottom: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.missed-check-in-table {
  min-width: 980px;
}

.payroll-data-table {
  min-width: 900px;
}

.payroll-workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #f8fafc;
}

.payroll-workflow-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.payroll-workflow-step.is-current {
  border-color: #3498db;
  background: #eaf5fc;
  color: #0b567d;
}

.payroll-workflow p {
  flex: 1 1 18rem;
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

.payroll-work-line,
.payroll-review-detail,
.payroll-calculation-details small,
.payroll-calculation-details span {
  display: block;
  margin-top: 0.25rem;
}

.payroll-work-line,
.payroll-review-detail,
.payroll-calculation-details {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.payroll-record-needs-attention {
  box-shadow: inset 3px 0 0 #d69e2e;
}

.payroll-calculation-details,
.payroll-adjustment-disclosure {
  margin-top: 0.35rem;
}

.payroll-calculation-details summary,
.payroll-adjustment-disclosure summary {
  cursor: pointer;
  color: #286090;
  font-size: 0.76rem;
  font-weight: 700;
}

.payroll-adjustment-disclosure {
  width: 100%;
}

.payroll-adjustment-disclosure[open] summary {
  margin-bottom: 0.4rem;
}

.admin-data-report-page th,
.admin-data-report-page td,
.missed-check-in-report-page th,
.missed-check-in-report-page td,
.payroll-page th,
.payroll-page td {
  padding: 0.42rem 0.48rem;
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: normal;
}

.admin-data-report-page th,
.missed-check-in-report-page th,
.payroll-page th {
  background: #f7f9fb;
  color: #4b5563;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-data-report-page tbody tr:hover,
.missed-check-in-report-page tbody tr:hover,
.payroll-page tbody tr:hover {
  background: #fbfcfd;
}

.report-loading-state {
  color: #555;
}

.payroll-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 0.85rem;
}

.payroll-summary-card {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #e1e5ea;
  border-left: 3px solid #d7dde4;
  border-radius: 6px;
  background: #fbfcfd;
}

.payroll-summary-card-primary {
  border-left-color: #3498db;
  background: #f7fbfe;
}

.payroll-summary-card span,
.payroll-summary-card small {
  display: block;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.25;
}

.payroll-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #243447;
  font-size: 1.35rem;
  line-height: 1;
}

.payroll-batch-approval {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.2fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
  padding: 1rem;
  border: 1px solid #b9d0ef;
  border-left: 4px solid #2d6cdf;
  border-radius: 8px;
  background: #f7fbff;
}

.payroll-batch-approval h4,
.payroll-batch-approval p,
.payroll-batch-preview {
  margin: 0;
}

.payroll-batch-approval p {
  margin-top: 0.35rem;
  color: #526475;
  font-size: 0.84rem;
}

.payroll-batch-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.payroll-period-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f7fbff;
}

.payroll-period-context > div {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 230px);
}

.payroll-period-context span:not(.status-badge) {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.payroll-period-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.payroll-batch-date {
  font-size: 0.86rem !important;
  line-height: 1.3;
}

.payroll-batch-preview div {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid #dbe7f5;
  border-radius: 6px;
  background: #fff;
}

.payroll-batch-preview dt {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.payroll-batch-preview dd {
  margin: 0.25rem 0 0;
  color: #243447;
  font-size: 1.05rem;
  font-weight: 800;
}

.payroll-batch-approval-form {
  margin: 0;
}

@media (max-width: 1050px) {
  .payroll-batch-approval {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .payroll-batch-approval-form .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .payroll-batch-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-period-navigation .btn {
    flex: 1 1 10rem;
  }
}

.missed-check-in-table th:first-child,
.missed-check-in-table td:first-child {
  width: 10rem;
  min-width: 9rem;
  max-width: 14rem;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.payroll-data-table th:nth-child(2),
.payroll-data-table td:nth-child(2) {
  width: 18rem;
  min-width: 16rem;
  max-width: 21rem;
  vertical-align: top;
}

.payroll-data-table th:nth-child(6),
.payroll-data-table td:nth-child(6),
.payroll-data-table th:nth-child(8),
.payroll-data-table td:nth-child(8) {
  width: 14rem;
  min-width: 12rem;
  max-width: 17rem;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
}

.payroll-table-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.payroll-row-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.payroll-adjustment-form {
  align-items: flex-start;
}

.payroll-adjustment-form input {
  flex: 1 1 7rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  margin-bottom: 0;
  padding: 0.32rem 0.45rem;
  font-size: 0.78rem;
}

.payroll-table-actions .btn {
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 28px;
  padding: 0.3rem 0.5rem;
  font-size: 0.76rem;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

.payroll-page .status-badge-success {
  background: #dff0d8;
  color: #3c763d;
}

.payroll-page .status-badge-danger,
.admin-data-report-page .status-badge-danger,
.missed-check-in-report-page .status-badge-danger {
  background: #f2dede;
  color: #a94442;
}

.payroll-page .status-badge-warning,
.admin-data-report-page .status-badge-warning,
.missed-check-in-report-page .status-badge-warning {
  background: #fcf8e3;
  color: #8a6d3b;
}

.admin-data-report-page .status-badge-success,
.missed-check-in-report-page .status-badge-success {
  background: #dff0d8;
  color: #3c763d;
}

@media (max-width: 1100px) {
  .reports-grid,
  .payroll-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .reports-overview-panel,
  .admin-data-report-page .panel-header,
  .missed-check-in-report-page .panel-header,
  .payroll-page .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-overview-steps,
  .admin-data-report-page .panel-actions,
  .missed-check-in-report-page .panel-actions,
  .payroll-page .panel-actions {
    justify-content: flex-start;
  }

  .admin-data-report-page .table-responsive,
  .missed-check-in-report-page .table-responsive,
  .payroll-page .table-responsive {
    overflow-x: visible;
  }

  .report-data-table,
  .payroll-data-table,
  .admin-data-report-page .report-data-table thead,
  .admin-data-report-page .report-data-table tbody,
  .admin-data-report-page .report-data-table tr,
  .admin-data-report-page .report-data-table th,
  .admin-data-report-page .report-data-table td,
  .missed-check-in-report-page .report-data-table thead,
  .missed-check-in-report-page .report-data-table tbody,
  .missed-check-in-report-page .report-data-table tr,
  .missed-check-in-report-page .report-data-table th,
  .missed-check-in-report-page .report-data-table td,
  .payroll-page .payroll-data-table thead,
  .payroll-page .payroll-data-table tbody,
  .payroll-page .payroll-data-table tr,
  .payroll-page .payroll-data-table th,
  .payroll-page .payroll-data-table td {
    display: block;
  }

  .report-data-table,
  .payroll-data-table {
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  .report-data-table thead,
  .payroll-data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  .report-data-table tbody,
  .payroll-data-table tbody {
    display: grid;
    gap: 0.6rem;
  }

  .report-data-table tr,
  .payroll-data-table tr {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    background: #fff;
  }

  .report-data-table td,
  .payroll-data-table td {
    display: grid;
    grid-template-columns: minmax(6.75rem, 32%) minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.34rem 0;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    white-space: normal;
  }

  .missed-check-in-table th:first-child,
  .missed-check-in-table td:first-child,
  .payroll-data-table th:nth-child(2),
  .payroll-data-table td:nth-child(2),
  .payroll-data-table th:nth-child(6),
  .payroll-data-table td:nth-child(6),
  .payroll-data-table th:nth-child(8),
  .payroll-data-table td:nth-child(8) {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .missed-check-in-table td:first-child {
    white-space: normal;
  }

  .report-data-table td:last-child,
  .payroll-data-table td:last-child {
    border-bottom: 0;
  }

  .report-data-table td::before,
  .payroll-data-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
  }
}

@media (max-width: 640px) {
  .admin-data-report-page .form-actions .btn,
  .admin-data-report-page .panel-actions .btn,
  .missed-check-in-report-page .report-actions .btn,
  .payroll-page .report-actions .btn,
  .payroll-page .panel-actions .btn,
  .payroll-page .payroll-period-navigation .btn,
  .payroll-page .payroll-batch-approval-form .btn,
  .payroll-page .payroll-table-actions .btn {
    min-height: 44px;
  }

  .reports-grid,
  .payroll-summary-grid {
    grid-template-columns: 1fr;
  }

  .reports-overview-panel,
  .report-filter-widget,
  .report-results-widget,
  .payroll-filter-widget,
  .payroll-page .management-list-widget {
    padding: 0.8rem;
  }

  .payroll-table-actions,
  .payroll-row-action,
  .payroll-adjustment-form input {
    width: 100%;
  }

  .payroll-table-actions .btn {
    align-self: flex-start;
    width: auto;
  }
}

@media (max-width: 480px) {
  .report-data-table td,
  .payroll-data-table td {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ===============================================
   End Phase 11A Reports and Payroll Enhancement
   =============================================== */

/* ===============================================
   Phase 11A Remaining Frontend Page Polish
   =============================================== */

.guard-dashboard-page,
.guard-flow-page,
.field-report-page,
.login-page,
.help-page {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 1rem;
}

.guard-page-header {
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e1e5ea;
}

.guard-page-header h1,
.guard-page-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.15;
}

.guard-action-panel,
.field-flow-panel,
.field-guidance-panel,
.field-context-card,
.field-report-form,
.login-panel,
.help-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(30, 45, 62, 0.06);
}

.guard-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 1rem;
  border-left: 4px solid #3498db;
}

.guard-action-label,
.login-context-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #56616f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guard-action-panel strong,
.field-flow-summary strong {
  display: block;
  color: #243447;
  font-size: 1.35rem;
  line-height: 1.15;
}

.guard-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.guard-action-control {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.guard-action-control .btn {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
}

.action-help {
  display: block;
  min-height: 2.3em;
  color: #56616f;
  font-size: 0.78rem;
  line-height: 1.25;
}

.guard-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.guard-status-card {
  margin-bottom: 0;
  padding: 0.95rem;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #fff;
}

.guard-status-card h3,
.field-context-card h3,
.form-section h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: #243447;
  font-size: 1rem;
}

.guard-status-card p,
.field-context-card p,
.field-flow-summary p,
.field-guidance-panel p,
.help-panel p {
  margin-bottom: 0.45rem;
}

.guard-status-card p:last-child,
.field-context-card p:last-child,
.field-flow-summary p:last-child,
.field-guidance-panel p:last-child,
.help-panel p:last-child {
  margin-bottom: 0;
}

.guard-secondary-actions {
  margin-top: 0.15rem;
}

.notification-menu-state {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.8;
}

.notification-control-dialog {
  width: min(360px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin: auto;
  padding: 1rem;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.24);
}

.notification-control-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.notification-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-control-header h2,
.notification-control-status {
  margin: 0;
}

.notification-control-status {
  margin-top: 1rem;
  color: #4b5563;
}

.notification-control-status[data-state="enabled"] {
  color: #17633a;
}

.notification-control-status[data-state="error"] {
  color: #9f1d2d;
}

.notification-control-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.notification-control-actions .btn {
  width: 100%;
  min-height: 44px;
}

@media (max-width: 600px) {
  .notification-control-dialog {
    width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    overflow-y: auto;
  }
}

.field-flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 1rem;
  align-items: start;
}

.field-flow-form,
.field-report-form {
  display: grid;
  gap: 0.85rem;
}

.field-flow-form .form-group,
.field-report-form .form-group {
  min-width: 0;
}

.field-flow-form input,
.field-report-form input,
.field-report-form select,
.field-report-form textarea,
.login-form input {
  margin-bottom: 0.25rem;
}

.field-guidance-panel {
  border-left: 4px solid #3498db;
  background: #f7fbfe;
}

.field-context-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.field-context-details {
  padding: 0.75rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfd;
}

.form-section {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #edf1f5;
}

.field-requirement {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #f2dede;
  color: #a94442;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.field-optional {
  background: #eef2f6;
  color: #56616f;
}

.field-report-actions {
  margin-top: 0.25rem;
}

.field-report-links {
  margin-top: 0;
}

.login-page {
  justify-items: center;
  padding-top: clamp(1.25rem, 4vw, 3rem);
}

.login-panel {
  max-width: 460px;
  border-top: 4px solid #3498db;
}

.login-page-admin .login-panel {
  border-top-color: #073850;
}

.login-panel-header {
  margin-bottom: 1rem;
}

.login-panel-header h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.login-form {
  display: grid;
  gap: 0.8rem;
}

.login-form .form-group {
  margin-bottom: 0;
}

.login-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
  font-weight: 700;
}

.login-form .btn {
  width: 100%;
}

.login-switch {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #edf1f5;
  color: #56616f;
}

.help-page {
  max-width: 820px;
}

.help-panel .page-actions {
  justify-content: flex-start;
  margin-top: 1rem;
}

.help-page .btn {
  min-height: 44px;
}

.help-support-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0.9rem 0;
}

.help-support-actions span,
.help-support-fallback {
  overflow-wrap: anywhere;
}

.help-support-fallback,
.help-emergency-boundary {
  padding: 0.85rem;
  border-left: 4px solid #607d8b;
  background: #f7f9fb;
}

.help-guidance,
.help-emergency-boundary {
  margin-top: 1rem;
}

.help-guidance ul {
  margin-bottom: 0;
}

.help-emergency-boundary {
  border-left-color: #a94442;
  background: #fff8f7;
}

.admin-incident-page {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.incident-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: 1rem;
}

.incident-evidence,
.incident-follow-up,
.incident-history {
  min-width: 0;
}

.incident-summary-grid,
.incident-lifecycle-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.incident-lifecycle-summary {
  grid-template-columns: 1fr;
}

.incident-summary-grid > div,
.incident-lifecycle-summary > div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #fbfcfd;
}

.incident-summary-grid dt,
.incident-lifecycle-summary dt {
  color: #56616f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.incident-summary-grid dd,
.incident-lifecycle-summary dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.incident-text-block {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e1e5ea;
}

.incident-text-block h4,
.incident-text-block p {
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.incident-transition-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e5ea;
}

.incident-transition-form .form-group {
  margin: 0;
}

@media (max-width: 900px) {
  .incident-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .incident-summary-grid,
  .help-support-actions {
    grid-template-columns: 1fr;
  }

  .help-support-actions .btn,
  .incident-transition-form .btn {
    width: 100%;
    min-height: 44px;
  }

  .incident-history-table thead {
    display: none;
  }

  .incident-history-table,
  .incident-history-table tbody,
  .incident-history-table tr,
  .incident-history-table td {
    display: block;
    width: 100%;
  }

  .incident-history-table tr {
    margin-bottom: 0.75rem;
    padding: 0.7rem;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
  }

  .incident-history-table td {
    display: grid;
    grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
    gap: 0.5rem;
    border: 0;
  }

  .incident-history-table td::before {
    content: attr(data-label);
    font-weight: 700;
  }
}

@media (max-width: 900px) {
  .guard-action-panel,
  .field-flow-panel,
  .field-context-card {
    grid-template-columns: 1fr;
  }

  .guard-primary-actions {
    grid-template-columns: 1fr;
  }

  .guard-status-grid {
    grid-template-columns: 1fr;
  }

  .guard-action-control .btn {
    min-height: 50px;
  }
}

@media (max-width: 640px) {
  .guard-dashboard-page,
  .guard-flow-page,
  .field-report-page,
  .login-page,
  .help-page {
    gap: 0.85rem;
  }

  .guard-action-panel,
  .field-flow-panel,
  .field-guidance-panel,
  .field-context-card,
  .field-report-form,
  .login-panel,
  .help-panel {
    padding: 0.85rem;
  }

  .field-requirement {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* ===============================================
   End Phase 11A Remaining Frontend Page Polish
   =============================================== */

/* ===============================================
   Phase 10B PWA Field Experience
   =============================================== */

.portal-brand-logo,
.login-brand-logo,
.pwa-install-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.portal-brand-logo {
  margin-bottom: 1rem;
}

.login-brand-logo {
  margin: 0 auto 1rem;
}

.pwa-install {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  background: #f7fbfe;
}

.pwa-install[hidden],
.pwa-status-banner[hidden] {
  display: none !important;
}

.pwa-install-dashboard {
  margin-top: 0;
  border-left: 4px solid #3498db;
}

.pwa-install-brand {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.pwa-install-brand p,
.pwa-install-status {
  margin: 0.25rem 0 0;
  color: #56616f;
}

.pwa-install-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pwa-install-actions .btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.portal-hero-panel .pwa-install {
  margin-top: 1.1rem;
}

.pwa-install-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - max(2rem, env(safe-area-inset-left)) - max(2rem, env(safe-area-inset-right))));
  min-width: 0;
  max-width: 100%;
  margin: auto;
  padding: 1.1rem;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(15, 35, 50, 0.28);
}

.pwa-install-dialog::backdrop {
  background: rgba(15, 35, 50, 0.62);
}

.pwa-install-dialog-header,
.pwa-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pwa-install-dialog-header h2 {
  display: inline;
  margin: 0 0 0 0.45rem;
  font-size: 1.35rem;
}

.pwa-install-dialog form,
.pwa-install-dialog ol {
  min-width: 0;
}

.pwa-install-dialog ol {
  padding-inline-start: 1.5rem;
}

.pwa-platform-symbol {
  font-size: 1.5rem;
  font-weight: 700;
}

.pwa-status-banner {
  width: 100%;
  padding: 0.7rem max(1rem, env(safe-area-inset-right)) 0.7rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid #d7e0e8;
}

.pwa-network-banner {
  background: #fff3cd;
  color: #5f4700;
}

.pwa-update-banner {
  background: #e8f4fd;
  color: #123f5a;
}

.pwa-status-banner strong,
.pwa-status-banner span {
  display: block;
}

.field-user-identity {
  margin: 0.15rem 0 0.35rem;
  color: #44515f;
}

@media (display-mode: standalone) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    background: #2c3e50;
  }

  footer {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .guard-action-panel {
    border-left-width: 6px;
  }
}

@media (max-width: 640px) {
  .pwa-install-brand {
    grid-template-columns: 1fr;
  }

  .pwa-install-logo {
    width: min(100%, 260px);
  }

  .pwa-status-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .pwa-install-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .pwa-install-actions .btn,
  .pwa-status-banner .btn {
    width: 100%;
  }

  .pwa-install-dialog {
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1rem);
    padding: 1rem;
    overflow-y: auto;
  }

  .pwa-install-dialog-header {
    align-items: flex-start;
  }

  .pwa-install-dialog-header > div {
    min-width: 0;
  }

  .pwa-install-dialog-header h2 {
    display: block;
    margin: 0.25rem 0 0;
  }
}

/* Final Phase 10 owner operations: recent authenticated-session activity */
.login-activity-panel {
  min-width: 0;
}

.login-activity-list {
  display: grid;
  gap: 0.6rem;
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.2rem 0.15rem 0;
}

.login-activity-row {
  display: grid;
  grid-template-columns:
    0.8rem
    minmax(8.5rem, 1.35fr)
    minmax(17rem, 2fr)
    minmax(7.75rem, 0.65fr);
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #ffffff;
}

.login-activity-identity {
  min-width: 0;
}

.login-activity-identity strong,
.login-activity-role {
  display: block;
  overflow-wrap: anywhere;
}

.login-activity-role {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.login-activity-indicator {
  justify-self: center;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #64748b;
  border-radius: 50%;
  background: #ffffff;
}

.login-activity-active .login-activity-indicator {
  border-color: #1e7e34;
  background: #1e7e34;
}

.login-activity-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.login-activity-time {
  min-width: 0;
}

.login-activity-times dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-activity-times dd {
  margin: 0.15rem 0 0;
  color: #243447;
  font-size: 0.88rem;
  font-weight: 700;
}

.login-activity-state {
  justify-self: stretch;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #44515f;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.login-activity-active .login-activity-state {
  background: #e9f7ef;
  color: #1e7e34;
}

.login-activity-actions {
  display: flex;
  justify-content: center;
  padding-top: 0.85rem;
}

@media (max-width: 760px) {
  .login-activity-row {
    grid-template-columns: 0.8rem minmax(0, 1fr) auto;
    align-items: start;
  }

  .login-activity-indicator {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0.25rem;
  }

  .login-activity-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .login-activity-state {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .login-activity-times {
    grid-column: 2 / -1;
    grid-row: 2;
  }
}

@media (max-width: 430px) {
  .login-activity-row {
    grid-template-columns: 0.8rem minmax(0, 1fr);
  }

  .login-activity-state {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .login-activity-times {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr);
  }

  .login-activity-time {
    display: grid;
    grid-template-columns: minmax(4.8rem, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.6rem;
  }

  .login-activity-times dd {
    margin-top: 0;
  }
}

/* Operational gap closure: recurring staffing and field summaries */
.v3-recurring-assignment-row,
.v3-recurring-open-position,
.open-staffing-row,
.guard-upcoming-shift-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.v3-recurring-assignment-row > div:first-child,
.v3-recurring-open-position,
.open-staffing-row > div,
.guard-upcoming-shift-list li {
  min-width: 0;
}

.v3-recurring-assignment-row span,
.v3-recurring-assignment-row small,
.v3-recurring-open-position span,
.open-staffing-row span,
.open-staffing-row time,
.guard-upcoming-shift-list span,
.guard-upcoming-shift-list time {
  display: block;
  overflow-wrap: anywhere;
}

.v3-recurring-open-position {
  padding: 0.65rem;
  border: 1px dashed #9aa8b5;
  border-radius: 6px;
  background: #f8fafc;
}

.v3-recurring-staffing .schedule-section-header {
  align-items: flex-start;
}

.open-staffing-list,
.guard-upcoming-shift-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.open-staffing-row,
.guard-upcoming-shift-list li {
  padding: 0.75rem;
  border: 1px solid #d7e0e8;
  border-radius: 7px;
  background: #fff;
}

.open-staffing-row > div:last-child {
  flex: 0 0 auto;
  text-align: right;
}

@media (max-width: 768px) {
  .v3-recurring-assignment-row,
  .v3-recurring-open-position,
  .open-staffing-row,
  .guard-upcoming-shift-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .v3-recurring-assignment-row .table-action-group,
  .v3-recurring-staffing .schedule-section-header .btn,
  .open-staffing-panel .dashboard-section-header .btn {
    width: 100%;
  }

  .open-staffing-row > div:last-child {
    text-align: left;
  }
}

/* ===============================================
   End Phase 10B PWA Field Experience
   =============================================== */

/* ===============================================
   Navbar Readability Polish
   =============================================== */

nav {
  background: #2c3e50;
  border-bottom: 1px solid #1f2d3a;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.site-nav-brand {
  color: #ffffff;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav-identity {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.site-nav-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.15;
  white-space: nowrap;
}

.site-nav-platform-mark {
  display: block;
  width: 1.65rem;
  height: 1rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.site-nav-platform-compact {
  display: none;
}

nav ul,
.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-link,
.nav-link-button {
  white-space: nowrap;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #6f4e00;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav-beta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

nav a,
nav .nav-link-button {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover,
nav .nav-link-button:hover {
  color: #d9edf7;
  opacity: 1;
}

nav .nav-link-button {
  background: transparent;
  border: none;
}

.site-nav-toggle {
  display: none;
  width: 44px;
  min-height: 40px;
  padding: 0.55rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
}

.site-nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
  border-radius: 999px;
}

/* ===============================================
   End Navbar Readability Polish
   =============================================== */

/* Phase 8 login separation */
.login-section {
  max-width: 860px;
  margin: 0 auto;
}

.page-description {
  margin-bottom: 1.5rem;
  color: #555;
}

.login-switch {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.login-switch a {
  font-weight: 700;
}

/* Phase 8 Step 1D schedule workflow guidance */
.schedule-workflow-widget {
  margin-bottom: 1.5rem;
}

.schedule-workflow-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.workflow-step {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.workflow-step p {
  margin-bottom: 0;
}

.schedule-note {
  border-left: 4px solid #2f6fdd;
  background: #f4f8ff;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}

.warning-note {
  border-left-color: #b7791f;
  background: #fff8e6;
}

.field-help {
  display: block;
  margin-top: 0.35rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Shared foundation utilities */
.form-grid,
.management-form .form-row,
.report-filter-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.form-actions,
.report-actions,
.page-actions,
.panel-actions,
.quick-links,
.admin-quick-links,
.clock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-actions,
.report-actions {
  align-items: center;
  margin-top: 1rem;
}

.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.inline-form input,
.inline-form select,
.inline-checkbox input,
.checkbox-group input {
  width: auto;
  margin-bottom: 0;
}

.status-badge,
.alert-level-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .btn,
  button.btn,
  .quick-links .btn,
  .report-actions .btn,
  .form-actions .btn,
  .clock-actions .btn {
    width: 100%;
  }

  .inline-form,
  .form-actions,
  .report-actions,
  .quick-links,
  .admin-quick-links,
  .clock-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1120px) {
  .site-nav-inner {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .site-nav-brand {
    align-self: center;
  }

  .site-nav-identity {
    align-self: center;
  }

  .site-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .js-ready .site-nav-list {
    display: none;
  }

  .site-nav.is-open .site-nav-list,
  html:not(.js-ready) .site-nav-list {
    display: flex;
  }

  .site-nav-list {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-top: 0.75rem;
  }

  .site-nav-list li,
  .site-nav-list a,
  .site-nav-list .nav-link-button {
    width: 100%;
  }

  .site-nav-list a,
  .site-nav-list .nav-link-button {
    display: block;
    padding: 0.65rem 0;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-nav-platform-full {
    display: none;
  }

  .site-nav-platform-compact {
    display: inline;
  }

  .site-nav-platform {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .site-nav-platform-mark {
    width: 1.45rem;
    height: 0.88rem;
  }
}

/* ===============================================
   Login Page Refresh
   =============================================== */

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
}

.auth-shell {
  display: flex;
  flex-direction: column;
}

.portal-shell,
.login-shell {
  justify-content: center;
}

.login-section.portal-landing {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding-top: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: clamp(1.25rem, 4vw, 3rem);
}

.login-section.login-page {
  width: min(100%, 560px);
  max-width: 560px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding-top: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: clamp(1.25rem, 4vw, 3rem);
}

.login-hero-panel,
.login-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(30, 45, 62, 0.08);
}

.login-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(1.35rem, 4vw, 2.75rem);
  border-left: 5px solid var(--primary-color, #3498db);
  background:
    radial-gradient(circle at top right, rgba(52, 152, 219, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfe 54%, #eef6fb 100%);
}

.portal-hero-panel {
  min-height: 560px;
}

.login-hero-panel h1 {
  max-width: 760px;
  margin: 0 0 0.75rem;
  color: #243447;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.login-hero-panel p {
  max-width: 680px;
  margin: 0 0 1.5rem;
  color: #56616f;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.login-context-label,
.login-route-eyebrow {
  color: #56616f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}

.login-route-card {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  min-height: 190px;
  padding: 1.15rem;
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #243447;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-route-card:hover,
.login-route-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary-color, #3498db);
  box-shadow: 0 12px 28px rgba(30, 45, 62, 0.12);
  opacity: 1;
  text-decoration: none;
}

.login-route-card strong {
  color: #243447;
  font-size: 1.3rem;
  line-height: 1.15;
}

.login-route-card small {
  color: #56616f;
  font-size: 0.94rem;
  line-height: 1.4;
}

.login-route-button {
  align-self: end;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  margin-top: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--primary-color, #3498db);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.login-route-card:nth-child(2) .login-route-button {
  background: var(--primary-color-dark, #073850);
}

.login-assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.login-assurance-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #dce5ec;
  border-radius: 999px;
  background: #ffffff;
  color: #56616f;
  font-size: 0.78rem;
  font-weight: 800;
}

.login-panel {
  width: 100%;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-top: 5px solid var(--primary-color, #3498db);
}

.login-page-admin .login-panel {
  border-top-color: var(--primary-color-dark, #073850);
}

.login-panel-header {
  margin-bottom: 1.15rem;
}

.login-panel-header h2 {
  margin: 0 0 0.45rem;
  color: #243447;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
}

.login-panel .page-description {
  margin-bottom: 0;
  color: #56616f;
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-form .form-group {
  margin-bottom: 0;
}

.login-form label {
  color: #243447;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  min-height: 48px;
  margin-bottom: 0;
  border-color: #cfd8e1;
  border-radius: 10px;
  background: #fbfcfd;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  background: #ffffff;
}

.login-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #56616f;
  font-size: 0.94rem;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 0.25rem;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.login-submit-guard {
  background: var(--primary-color, #3498db);
  border-color: var(--primary-color, #3498db);
}

.login-submit-guard:hover {
  background: #2980b9;
  border-color: #2980b9;
}

.login-submit-admin {
  background: var(--primary-color-dark, #073850);
  border-color: var(--primary-color-dark, #073850);
}

.login-submit-admin:hover {
  background: #05283a;
  border-color: #05283a;
}

.login-switch {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf1f5;
  color: #56616f;
}

.login-switch-button {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
}

.login-home-link {
  display: inline-flex;
  justify-content: center;
  color: #56616f;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.login-home-link:hover,
.login-home-link:focus-visible {
  color: var(--primary-color-dark, #073850);
  text-decoration: underline;
}

.login-page .message,
.login-page .error {
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .login-section.portal-landing,
  .login-section.login-page {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .login-route-grid {
    grid-template-columns: 1fr;
  }

  .login-route-card {
    min-height: auto;
  }

  .login-assurance-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-hero-panel {
    min-height: auto;
  }
}

/* ===============================================
   End Login Page Refresh
   =============================================== */

/* ===============================================
   User Profile Dashboard
   =============================================== */

.user-profile-page {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.user-profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #dce5ec;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(52, 152, 219, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfe 52%, #eef6fb 100%);
  box-shadow: 0 18px 45px rgba(30, 45, 62, 0.08);
}

.user-profile-identity {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.user-profile-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(76px, 10vw, 108px);
  height: clamp(76px, 10vw, 108px);
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 24px;
  background: var(--primary-color-dark, #073850);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(30, 45, 62, 0.16);
}

.user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-avatar span {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.profile-eyebrow,
.profile-card-kicker {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: #56616f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-role-label {
  display: inline-flex;
  width: fit-content;
  margin: 0.25rem 0 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #dce5ec;
  border-radius: 999px;
  background: #ffffff;
  color: #56616f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-profile-hero h2 {
  margin: 0 0 0.35rem;
  color: #243447;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.user-profile-hero p {
  margin: 0.2rem 0;
}

.user-profile-hero-actions,
.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.profile-dashboard-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-summary-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
}

.profile-main-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
}

.profile-secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(30, 45, 62, 0.06);
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile-card h3 {
  margin: 0;
  color: #243447;
  font-size: 1.25rem;
}

.profile-edit-form {
  margin: 0;
}

.profile-edit-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-edit-fields .form-group {
  min-width: 0;
  margin: 0;
}

.profile-admin-boundaries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #edf1f5;
}

.profile-admin-boundaries div {
  min-width: 0;
}

.profile-admin-boundaries dt {
  color: #56616f;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-admin-boundaries dd {
  margin: 0.25rem 0 0;
  color: #243447;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-active,
.license-status-active {
  background: #e9f7ef;
  color: #1e7e34;
}

.status-inactive {
  background: #edf1f5;
  color: #56616f;
}

.status-warning,
.license-status-expiring_soon,
.license-status-missing_expiration {
  background: #fff8e6;
  color: #946200;
}

.license-status-expired {
  background: #fdecea;
  color: #b02a37;
}

.profile-detail-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.profile-detail-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.profile-detail-list dt {
  color: #56616f;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-detail-list dd {
  margin: 0;
  color: #243447;
  font-weight: 700;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-action-card {
  display: grid;
  gap: 0.25rem;
  min-height: 92px;
  padding: 0.9rem;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  background: #f8fbfd;
  color: #243447;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-action-card:hover,
.quick-action-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary-color, #3498db);
  box-shadow: 0 10px 24px rgba(30, 45, 62, 0.1);
  opacity: 1;
  text-decoration: none;
}

.quick-action-card span {
  color: #56616f;
  font-size: 0.86rem;
}

.availability-form {
  margin: 0;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.availability-row {
  padding: 0.8rem;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fbfcfd;
}

.availability-row:has(input:checked) {
  border-color: #9bc9ea;
  background: #f0f8fd;
}

.availability-check {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  color: #243447;
  font-weight: 900;
}

.notification-list,
.profile-list {
  display: grid;
  gap: 0.7rem;
}

.notification-item,
.profile-list-item {
  padding: 0.85rem;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fbfcfd;
}

.notification-item p,
.profile-list-item span,
.profile-list-item small {
  display: block;
  margin: 0.2rem 0 0;
  color: #56616f;
}

.notification-success {
  border-color: #d1f0dc;
  background: #f2fbf5;
}

.notification-warning {
  border-color: #ffe7a3;
  background: #fffaf0;
}

.notification-critical {
  border-color: #f5c2c7;
  background: #fff5f5;
}

.notification-info {
  border-color: #cfe8fa;
  background: #f4faff;
}

@media (max-width: 1000px) {
  .user-profile-hero,
  .user-profile-identity {
    align-items: flex-start;
  }

  .user-profile-hero {
    flex-direction: column;
  }

  .user-profile-hero-actions {
    justify-content: flex-start;
  }

  .profile-summary-grid,
  .profile-main-grid,
  .profile-secondary-grid,
  .profile-edit-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .user-profile-page {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .user-profile-identity {
    flex-direction: column;
  }

  .user-profile-hero-actions,
  .profile-card-actions {
    width: 100%;
  }

  .user-profile-hero-actions .btn,
  .profile-card-actions .btn {
    width: 100%;
  }

  .availability-card .profile-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .availability-card .profile-card-header .btn {
    width: 100%;
  }

  .quick-action-grid,
  .availability-grid,
  .profile-admin-boundaries,
  .profile-detail-list div {
    grid-template-columns: 1fr;
  }
}

/* ===============================================
   End User Profile Dashboard
   =============================================== */

/* ===============================================
   Owner Review — Scheduling UX Improvement Phase 2
   =============================================== */
.scheduling-v3-operations-page .v3-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 0.7rem;
}

.scheduling-v3-operations-page .v3-command-bar .v3-view-mode-tabs,
.scheduling-v3-operations-page .v3-command-bar .v3-calendar-controls {
  flex-wrap: nowrap;
}

.scheduling-v3-operations-page .v3-calendar-range-label,
.scheduling-v3-operations-page #v3-calendar-range-label {
  min-width: 150px;
  color: #1f2d3d;
  text-align: center;
}

.scheduling-v3-operations-page .v3-operations-controls {
  padding-block: 0.75rem;
}

.scheduling-v3-operations-page .v3-operations-controls .schedule-section-header {
  margin-bottom: 0.65rem;
}

.scheduling-v3-operations-page .v3-summary-card {
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.scheduling-v3-operations-page .v3-summary-card:hover,
.scheduling-v3-operations-page .v3-summary-card:focus-visible {
  border-color: #7ca4e8;
  background: #f6f9ff;
}

.scheduling-v3-operations-page .v3-summary-card.is-active,
.scheduling-v3-operations-page .v3-summary-card[aria-pressed="true"] {
  border-color: #2d6cdf;
  background: #eaf1ff;
  box-shadow: inset 0 0 0 1px rgba(45, 108, 223, 0.12);
}

.scheduling-v3-operations-page .v3-compact-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-compact-filter-form .form-group,
.scheduling-v3-operations-page .v3-filter-actions {
  margin-bottom: 0;
}

.scheduling-v3-operations-page .v3-filter-actions {
  flex-wrap: nowrap;
}

.scheduling-v3-operations-page .table-action-group {
  max-width: none;
  gap: 0.5rem;
}

.scheduling-v3-operations-page .v3-primary-shift-actions {
  max-width: none;
}

.scheduling-v3-operations-page.v3-view-list .v3-occurrence-list:not(.v3-two-week-planning) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheduling-v3-operations-page .v3-week-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.scheduling-v3-operations-page .v3-week-location,
.scheduling-v3-operations-page .v3-planning-week {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
}

.scheduling-v3-operations-page .v3-week-location > h4,
.scheduling-v3-operations-page .v3-planning-week-heading {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #d9e2ec;
  background: #f3f7fb;
}

.scheduling-v3-operations-page .v3-week-matrix-head,
.scheduling-v3-operations-page .v3-week-shift-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 7fr);
}

.scheduling-v3-operations-page .v3-week-matrix-head {
  color: #526475;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.scheduling-v3-operations-page .v3-week-matrix-head > span:first-child {
  text-align: left;
}

.scheduling-v3-operations-page .v3-week-matrix-head > span:first-child,
.scheduling-v3-operations-page .v3-week-shift-label {
  padding: 0.55rem 0.65rem;
  border-right: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-week-matrix-head > span:not(:first-child) {
  padding: 0.55rem 0.2rem;
}

.scheduling-v3-operations-page .v3-week-matrix-head small,
.scheduling-v3-operations-page .v3-week-shift-label > span {
  display: block;
}

.scheduling-v3-operations-page .v3-week-matrix-head {
  grid-template-columns: minmax(150px, 0.8fr) repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-week-shift-row + .v3-week-shift-row {
  border-top: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-week-shift-label {
  align-content: center;
  min-width: 0;
  background: #fbfdff;
}

.scheduling-v3-operations-page .v3-week-shift-label > span:not(.v3-overnight-indicator) {
  color: #526475;
  font-size: 0.78rem;
}

.scheduling-v3-operations-page .v3-week-shift-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: minmax(0, 1fr);
  min-width: 0;
}

.scheduling-v3-operations-page .v3-week-shift-cell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0.35rem;
  min-width: 0;
  min-height: 105px;
  padding: 0.45rem;
  border-left: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-week-shift-cell.is-empty {
  align-content: center;
  color: #7a8998;
  font-size: 0.76rem;
  text-align: center;
}

.scheduling-v3-operations-page .v3-week-occurrence.is-selected,
.scheduling-v3-operations-page .v3-planning-shift.is-selected {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px rgba(45, 108, 223, 0.28);
}

.scheduling-v3-operations-page .v3-week-cell-occurrences,
.scheduling-v3-operations-page .v3-week-occurrence {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.scheduling-v3-operations-page .v3-week-cell-occurrences {
  grid-auto-rows: minmax(0, 1fr);
  height: 100%;
}

.scheduling-v3-operations-page .v3-week-occurrence {
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  padding: 0.2rem;
  border-radius: 5px;
}

.scheduling-v3-operations-page .v3-week-occurrence + .v3-week-occurrence {
  padding-top: 0.55rem;
  border-top: 1px solid #d9e2ec;
  border-radius: 0;
}

.scheduling-v3-operations-page .v3-multiple-occurrence-label {
  color: #526475;
  font-size: 0.72rem;
  font-weight: 800;
}

.scheduling-v3-operations-page .v3-shift-cell-trigger,
.scheduling-v3-operations-page .v3-planning-shift-main,
.scheduling-v3-operations-page .v3-month-preview-button {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.scheduling-v3-operations-page .v3-shift-cell-trigger {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 0.22rem;
}

.scheduling-v3-operations-page .v3-shift-cell-trigger:focus-visible,
.scheduling-v3-operations-page .v3-planning-shift-main:focus-visible,
.scheduling-v3-operations-page .v3-month-preview-button:focus-visible {
  outline: 2px solid #2d6cdf;
  outline-offset: 3px;
}

.scheduling-v3-operations-page .v3-week-occurrence > .btn {
  align-self: end;
  justify-self: start;
  margin: auto 0 0;
  min-height: 28px;
  padding: 0.28rem 0.48rem;
  font-size: 0.76rem;
}

.attendance-review-reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.attendance-review-association {
  display: grid;
  flex: 1 1 100%;
  gap: 0.25rem;
  min-width: 0;
}

.attendance-review-association > span {
  font-weight: 700;
}

.attendance-review-association select {
  width: 100%;
  max-width: 36rem;
}

.geofence-denial-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
}

.geofence-denial-dialog[open] {
  display: flex;
  flex-direction: column;
}

.geofence-denial-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.geofence-denial-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 1rem;
}

.geofence-denial-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
}

.geofence-denial-header .btn {
  display: inline-flex;
  width: auto;
  min-width: 5.5rem;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.geofence-denial-scroll-region {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.geofence-denial-scroll-region:focus-visible {
  outline: 2px solid #2d6cdf;
  outline-offset: -2px;
}

.geofence-denial-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.geofence-denial-metrics div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #f8fafc;
}

.geofence-denial-metrics dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.geofence-denial-metrics dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.geofence-denial-map {
  min-height: 300px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #edf2f7;
}

.geofence-denial-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-right: 0;
  margin-left: 0;
  padding-top: 0.75rem;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #dfe5ec;
}

.geofence-denial-actions .btn {
  display: inline-flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .geofence-denial-dialog {
    width: calc(100vw - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right)));
    max-width: calc(100vw - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right)));
    max-height: calc(100vh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
    margin: auto;
  }

  .geofence-denial-content {
    padding:
      max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .geofence-denial-header {
    align-items: flex-start;
  }

  .geofence-denial-header .btn {
    flex: 0 0 auto;
  }

  .geofence-denial-metrics {
    grid-template-columns: 1fr;
  }

  .geofence-denial-map {
    min-height: 210px;
  }

}

.scheduling-v3-operations-page .v3-week-shift-cell .v3-card-flags,
.scheduling-v3-operations-page .v3-planning-shift .v3-card-flags {
  font-size: 0.72rem;
}

.scheduling-v3-operations-page .v3-card-flags {
  align-items: flex-start;
  gap: 0.25rem;
}

.scheduling-v3-operations-page .v3-advisory-chip,
.scheduling-v3-operations-page .v3-conflict-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  background: #fff2c7;
  color: #704c00;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.scheduling-v3-operations-page .v3-conflict-chip {
  background: #fde8e8;
  color: #a11919;
}

.scheduling-v3-operations-page .v3-occurrence-card h4,
.scheduling-v3-operations-page .v3-week-location > h4,
.scheduling-v3-operations-page .v3-week-shift-label strong,
.scheduling-v3-operations-page .v3-planning-location h5,
.scheduling-v3-operations-page .v3-planning-shift-main strong,
.scheduling-v3-operations-page .v3-month-preview-button strong,
.scheduling-v3-operations-page .v3-month-preview-button small,
.scheduling-v3-operations-page .v3-assignment-panel-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.scheduling-v3-operations-page .v3-month-preview-button strong,
.scheduling-v3-operations-page .v3-month-preview-button small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scheduling-v3-operations-page .v3-day-context {
  display: none;
}

.scheduling-v3-operations-page .v3-two-week-planning {
  gap: 1rem;
}

.scheduling-v3-operations-page .v3-planning-week-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.scheduling-v3-operations-page .v3-planning-week-heading h4,
.scheduling-v3-operations-page .v3-planning-location h5 {
  margin: 0;
}

.scheduling-v3-operations-page .v3-planning-location {
  padding: 0.7rem;
}

.scheduling-v3-operations-page .v3-planning-location + .v3-planning-location {
  border-top: 1px solid #edf2f7;
}

.scheduling-v3-operations-page .v3-planning-location-shifts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.scheduling-v3-operations-page .v3-planning-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.scheduling-v3-operations-page .v3-planning-shift-main {
  display: grid;
  gap: 0.22rem;
}

.scheduling-v3-operations-page .v3-planning-date {
  color: #526475;
  font-size: 0.76rem;
  font-weight: 700;
}

.scheduling-v3-operations-page .v3-month-preview-button:hover strong {
  color: #2d6cdf;
}

.scheduling-v3-operations-page .v3-assignment-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.scheduling-v3-operations-page .v3-assignment-actions {
  position: relative;
}

.scheduling-v3-operations-page .v3-assignment-actions > summary {
  padding: 0.35rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #24415f;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  list-style-position: inside;
}

.scheduling-v3-operations-page .v3-assignment-actions[open] .table-action-group {
  display: grid;
  position: absolute;
  z-index: 6;
  top: calc(100% + 0.3rem);
  right: 0;
  min-width: 180px;
  padding: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-matrix-head {
  display: none;
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-shift-row {
  display: block;
  padding: 0.65rem;
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-shift-label {
  padding: 0 0 0.55rem;
  border: 0;
  background: transparent;
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-shift-days {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-shift-cell {
  min-height: 112px;
  border: 1px solid #edf2f7;
  border-radius: 6px;
}

.scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-day-context {
  display: block;
  color: #526475;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1500px) {
  .scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduling-v3-operations-page .v3-staffing-panel {
    position: static;
    max-height: min(42rem, calc(100vh - 1.5rem));
    max-height: min(42rem, calc(100dvh - 1.5rem));
  }
}

@media (max-width: 1280px) {
  .scheduling-v3-operations-page .v3-week-matrix-head {
    display: none;
  }

  .scheduling-v3-operations-page .v3-week-shift-row {
    display: block;
    padding: 0.65rem;
  }

  .scheduling-v3-operations-page .v3-week-shift-row + .v3-week-shift-row {
    border-top: 1px solid #d9e2ec;
  }

  .scheduling-v3-operations-page .v3-week-shift-label {
    padding: 0 0 0.55rem;
    border: 0;
    background: transparent;
  }

  .scheduling-v3-operations-page .v3-week-shift-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .scheduling-v3-operations-page .v3-week-shift-cell {
    min-height: 112px;
    border: 1px solid #edf2f7;
    border-radius: 6px;
  }

  .scheduling-v3-operations-page .v3-day-context {
    display: block;
    color: #526475;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (max-width: 1000px) {
  .scheduling-v3-operations-page .v3-compact-filter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduling-v3-operations-page.v3-view-list .v3-occurrence-list:not(.v3-two-week-planning),
  .scheduling-v3-operations-page .v3-week-shift-days,
  .scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-shift-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .scheduling-v3-operations-page .v3-command-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduling-v3-operations-page .v3-command-bar .v3-view-mode-tabs,
  .scheduling-v3-operations-page .v3-command-bar .v3-calendar-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scheduling-v3-operations-page #v3-calendar-range-label {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  .scheduling-v3-operations-page .v3-primary-shift-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scheduling-v3-operations-page .v3-primary-shift-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .scheduling-v3-operations-page .v3-command-bar .v3-calendar-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scheduling-v3-operations-page .v3-command-bar .v3-view-mode-tab,
  .scheduling-v3-operations-page .v3-command-bar .v3-calendar-controls .btn {
    min-width: 0;
    padding-inline: 0.35rem;
  }

  .scheduling-v3-operations-page .v3-operations-summary-grid,
  .scheduling-v3-operations-page .v3-week-shift-days,
  .scheduling-v3-operations-page .v3-operations-layout.has-staffing-panel .v3-week-shift-days,
  .scheduling-v3-operations-page.v3-view-list .v3-occurrence-list:not(.v3-two-week-planning),
  .scheduling-v3-operations-page .v3-planning-location-shifts {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduling-v3-operations-page .v3-assignment-row,
  .scheduling-v3-operations-page .v3-assignment-row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduling-v3-operations-page .v3-assignment-row-actions > .btn,
  .scheduling-v3-operations-page .v3-assignment-actions,
  .scheduling-v3-operations-page .v3-assignment-actions > summary {
    width: 100%;
  }

  .scheduling-v3-operations-page .v3-filter-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .scheduling-v3-operations-page .v3-filter-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .scheduling-v3-operations-page .v3-staffing-panel {
    max-height: calc(100vh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
  }

  .scheduling-v3-operations-page .v3-staffing-panel > .schedule-section-header {
    align-items: flex-start;
    flex-direction: row;
  }

  .scheduling-v3-operations-page .v3-staffing-panel > .schedule-section-header > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .scheduling-v3-operations-page #v3-close-staffing-panel {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
  }

  .scheduling-v3-operations-page .v3-assignment-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduling-v3-operations-page .v3-staffing-mode-actions {
    justify-content: flex-start;
  }

  .scheduling-v3-operations-page .v3-override-controls {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduling-v3-operations-page .v3-override-controls input[type="checkbox"] {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
  }

  .scheduling-v3-operations-page .v3-assignment-panel-header .btn {
    align-self: flex-start;
  }

  .scheduling-v3-operations-page .v3-assignment-actions[open] .table-action-group {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
  }
}

/* ===============================================
   End Scheduling UX Improvement Phase 2
   =============================================== */

/* ===============================================
   OBS-28 Field Operations Dashboard
   =============================================== */

.field-operations-dashboard {
  width: min(100%, 1040px);
  margin-inline: auto;
  gap: 1rem;
}

.field-operations-dashboard [hidden] {
  display: none !important;
}

.field-dashboard-eyebrow,
.field-card-label {
  display: block;
  margin: 0 0 0.25rem;
  color: #56616f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.field-dashboard-message {
  margin: 0;
}

.field-officer-card,
.field-operations-card,
.guard-upcoming-shifts {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 45, 62, 0.07);
}

.field-officer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid #234e70;
}

.field-officer-identity {
  min-width: 0;
}

.field-officer-identity h2,
.field-section-heading h2,
.guard-upcoming-shifts h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #243447;
}

.field-officer-identity h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.field-duty-badge,
.field-verification-state,
.field-online-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.field-duty-badge.is-loading,
.field-verification-state.is-pending,
.field-verification-state.is-verifying {
  background: #eef1f4;
  color: #4b5563;
}

.field-duty-badge.is-clocked-in,
.field-verification-state.is-confirmed {
  background: #e5f4eb;
  color: #17633a;
}

.field-duty-badge.is-clocked-out {
  background: #f1f3f5;
  color: #384451;
}

.field-verification-state.is-denied,
.field-online-state.is-offline {
  background: #fbe9eb;
  color: #8f1d2c;
}

.field-online-state {
  background: #e5f4eb;
  color: #17633a;
}

.field-operations-card {
  overflow: hidden;
}

.field-location-section,
.field-duty-context,
.field-primary-duty-action,
.field-status-check-section {
  min-width: 0;
  padding: 1.15rem;
}

.field-duty-context,
.field-primary-duty-action,
.field-status-check-section {
  border-top: 1px solid #e1e5ea;
}

.field-section-heading,
.field-action-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.field-section-heading > div,
.field-action-heading > div {
  min-width: 0;
}

.field-section-heading h2 {
  font-size: 1.25rem;
}

.field-text-action {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.65rem 0;
  font-weight: 700;
}

.field-location-address,
.field-action-reason,
.field-action-help,
.field-duty-note {
  overflow-wrap: anywhere;
  color: #56616f;
}

.field-location-address {
  margin: 0.5rem 0 0.85rem;
}

.field-location-verification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.field-verify-button {
  width: auto;
  min-height: 44px;
}

.field-action-help {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.field-duty-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-duty-metrics > div {
  min-width: 0;
  padding: 0 1rem;
  border-left: 1px solid #e1e5ea;
}

.field-duty-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.field-duty-metrics span {
  display: block;
  margin-bottom: 0.25rem;
  color: #56616f;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field-duty-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  color: #243447;
  font-size: 1rem;
}

.field-duty-note {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
}

.field-review-note {
  color: #875800;
  font-weight: 700;
}

.field-action-heading strong {
  display: block;
  color: #243447;
}

.field-action-reason {
  margin: 0.5rem 0 0.85rem;
}

.field-slide-action {
  --slide-progress: 0;
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 4px;
  overflow: hidden;
  border: 2px solid #1f5f92;
  border-radius: 8px;
  background: #246fa8;
  color: #fff;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.field-slide-action:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.field-slide-action:disabled {
  border-color: #9ca7b2;
  background: #d9dee3;
  color: #394451;
  cursor: not-allowed;
  opacity: 1;
}

.field-slide-action.is-clock-out {
  border-color: #7f1d2d;
  background: #982b3d;
}

.field-slide-action.is-busy {
  cursor: wait;
}

.field-slide-thumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #fff;
  color: #234e70;
  font-size: 1.35rem;
  font-weight: 900;
  transform: translateX(calc(var(--slide-progress) * (100cqw - 60px)));
  pointer-events: none;
}

@supports not (width: 1cqw) {
  .field-slide-thumb {
    transform: translateX(calc(var(--slide-progress) * 240px));
  }
}

.field-slide-label {
  grid-column: 2;
  font-size: 0.95rem;
  font-weight: 800;
  pointer-events: none;
}

.field-check-in-slider {
  margin-top: 0.8rem;
  border-color: #9a6a00;
  background: #f2bd3d;
  color: #2f250d;
}

.field-status-heading {
  align-items: center;
}

.field-status-heading > strong {
  flex: 0 0 auto;
  color: #243447;
  font-size: 0.95rem;
}

.guard-upcoming-shifts {
  padding: 1.15rem;
}

.guard-upcoming-shift-time {
  text-align: right;
}

.guard-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.field-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body.field-role-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .field-role-shell .site-nav-list .field-nav-primary-duplicate {
    display: none;
  }

  .field-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0.3rem max(0.35rem, env(safe-area-inset-right)) max(0.3rem, env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
    border-top: 1px solid #cfd6de;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(15, 35, 50, 0.13);
  }

  .field-bottom-nav-item {
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    min-height: 56px;
    padding: 0.35rem 0.2rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #4b5563;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .field-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .field-bottom-nav-item[aria-current="page"],
  .field-bottom-nav-item.is-current {
    color: #204f73;
    background: #edf4f9;
  }

  .field-bottom-nav-item:focus-visible {
    outline: 3px solid #f4b942;
    outline-offset: -3px;
  }

  .field-bottom-nav-item:disabled {
    color: #9aa3ad;
    cursor: not-allowed;
    opacity: 1;
  }

  .field-officer-card,
  .field-location-section,
  .field-duty-context,
  .field-primary-duty-action,
  .field-status-check-section,
  .guard-upcoming-shifts {
    padding: 1rem;
  }

  .field-duty-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-duty-metrics > div,
  .field-duty-metrics > div:first-child {
    padding: 0.65rem 0;
    border-top: 1px solid #e1e5ea;
    border-left: 0;
  }

  .field-duty-metrics > div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .guard-secondary-actions {
    display: none;
  }
}

@media (max-width: 480px) {
  .field-officer-card,
  .field-section-heading,
  .field-action-heading,
  .field-location-verification,
  .field-status-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .field-duty-badge,
  .field-verification-state,
  .field-online-state {
    align-self: flex-start;
  }

  .field-text-action,
  .field-verify-button {
    align-self: flex-start;
    width: auto;
  }

  .guard-upcoming-shift-time {
    text-align: left;
  }
}

/* ===============================================
   End OBS-28 Field Operations Dashboard
   =============================================== */
