.toast-notification {
  position: fixed;
  top: 5%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, 0);
  z-index: 10002;
  padding: 10px 15px;
  color: #fff;
  background-color: #4caf50;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-weight: 500;
  animation: toast-notification-slide-in 0.3s ease-out;
}

.toast-notification--success {
  background-color: #4caf50;
}

.toast-notification--error {
  background-color: #f44336;
}

@keyframes toast-notification-slide-in {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

body {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

:root {
  --app-subnav-strip-height: 52px;
  --app-header-help-reserve: 142px;
}

.app {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: var(--assistant-panel-width, 0px);
  bottom: 0;
}

.main-component {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: auto;
  height: 100%;
  background-color: #f9f9f9;
}

.app-header-help {
  position: absolute;
  top: 0;
  right: 12px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5;
}

.main-component.expanded {
  width: auto;
}

@media (max-width: 768px) {
  .app {
    flex-direction: column;
    right: 0;
  }

  .main-component,
  .main-component.expanded {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    padding-bottom: 0;
  }
}

.transfer-row {
  background-color: rgb(235, 235, 235);
}

.budget-summary-table .transfer-indent {
  padding-left: 24px;
}

.transfers-demarcation-row td {
  padding: 8px;
}

.transfers-toggle-button {
  margin-left: 12px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: normal;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.transfers-toggle-button:hover {
  background-color: #e0e0e0;
}

.calculator-icon-button {
  margin-left: 10px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.budget-detail-table-container {
  margin-left: 15px;
}

.budget-summary-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #ccc;
  /* Horizontal scroll at high zoom (WCAG reflow). overflow: hidden clipped wide tables. */
  overflow-x: auto;
  text-align: center;
}

.budget-summary-container .scroll-wrapper {
  width: 100%;
  max-width: 100%;
}

.budget-summary-table {
  width: 98%;
  border-collapse: separate; /* ✅ Allow border-radius to work */
  border-spacing: 0; /* ✅ Removes gaps between cells */
  font-size: 16px;
  background-color: white;
  margin-left: 1%;
  margin-bottom: 2%;
  border-radius: 10px; /* ✅ Apply rounding */
  overflow: hidden; /* ✅ Ensures content respects rounded corners */
}

/* Table caption styling - provide the apperance of headers */
.budget-summary-caption {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.6em;
  font-weight: 700;
  caption-side: top;
}
.budget-summary-caption-lg {
  font-size: 2em;
}

/* Round top table edges to account for table captions */
.budget-summary-table tr:first-child th:first-child {
  border-radius: 10px 0 0 0;
  border-collapse: separate;
}
.budget-summary-table thead tr:first-child th:last-child {
  border-radius: 0 10px 0 0;
  border-collapse: separate;
}
.empty-table-header {
  border-radius: 10px 0 0 0;
  border-collapse: separate;
  background-color: #1f302c;
  border: none !important;
}

/* Prevent changes from impacting cells outside of the table header */
.budget-summary-table .row-header {
  border-radius: 0 !important;
}

.budget-summary-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: right;
  size: 16px;
}

.budget-summary-table td:first-child {
  text-align: left;
}

.budget-summary-table th {
  background-color: #1f2f2c;
  font-weight: bold;
  color: white;
  padding: 10px;
  white-space: pre-line;
}
.budget-summary-table .row-header {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-weight: normal;
  color: revert;
  background-color: revert;
}

.budget-summary-table .total-row {
  background-color: #e0e0e0;
}

.budget-summary-table input {
  width: 90%;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
  font-size: 16px;
  padding-right: 8px;
}

.budget-summary-table td:not(:first-child) {
  padding-right: 16px;
}

.budget-summary-table:not(:last-child) {
  margin-bottom: 40px;
}

/* Centralized Modal Styles - Scoped to prevent conflicts */
.modal-overlay {
  --modal-gutter: 20px;
  --modal-width: 600px;
  --modal-max-height: 770px;
  /* The docked assistant panel stays outside the overlay so it isn't blurred. */
  --modal-viewport-width: calc(100vw - var(--assistant-panel-width, 0px));

  position: fixed;
  top: 0;
  left: 0;
  right: var(--assistant-panel-width, 0px);
  bottom: 0;
  z-index: 1300; /* MODAL_OVERLAY - Higher than line-item-table-modal-overlay (110) and other modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--modal-gutter);
  box-sizing: border-box;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease-out;
  box-sizing: border-box;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Size variants */
.modal-overlay.modal-small {
  --modal-width: 450px;
  --modal-max-height: 300px;
}

.modal-overlay.modal-medium {
  --modal-width: 600px;
  --modal-max-height: 770px;
}

.modal-overlay.modal-large {
  --modal-width: 800px;
  --modal-max-height: 800px;
}

.modal-overlay.modal-xlarge {
  --modal-width: 1000px;
  --modal-max-height: 850px;
}

.modal-overlay.modal-full {
  --modal-width: 95vw;
  --modal-height: 95vh;
  --modal-max-height: 95vh;
}

.modal-overlay.modal-fullscreen {
  --modal-width: 100vw;
  --modal-height: 100vh;
  --modal-max-height: 100vh;
  --modal-gutter: 0;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.modal-overlay.modal-fullscreen .modal-content {
  width: var(--modal-viewport-width);
  max-width: var(--modal-viewport-width);
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
}

.modal-overlay.modal-fullscreen .modal-header {
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid #ddd;
}

/* Stacked above print preview modal (.print-preview-visible uses z-index: 9999) */
.modal-overlay.modal-above-print-preview {
  z-index: 10000;
}

.modal-overlay.modal-small .modal-content,
.modal-overlay.modal-medium .modal-content,
.modal-overlay.modal-large .modal-content,
.modal-overlay.modal-xlarge .modal-content,
.modal-overlay.modal-full .modal-content,
.modal-overlay.modal-fullscreen .modal-content {
  display: flex;
  flex-direction: column;
  width: min(var(--modal-width), calc(var(--modal-viewport-width) - (var(--modal-gutter) * 2)));
  min-width: 0;
  height: var(--modal-height, auto);
  max-width: min(var(--modal-width), calc(var(--modal-viewport-width) - (var(--modal-gutter) * 2)));
  max-height: min(var(--modal-max-height), calc(100vh - (var(--modal-gutter) * 2)));
  overflow: hidden;
  box-sizing: border-box;
}

/* Theme variants */
.modal-default .modal-header {
  background: #eaeaea;
}

.modal-warning .modal-header {
  background: #fff3cd;
}

.modal-danger .modal-header {
  background: #f8d7da;
}

.modal-success .modal-header {
  background: #d4edda;
}

.modal-header {
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
  margin: 5px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.modal-title {
  margin: 0px 0px 0px 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #6c757d;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: #ccc;
  border-radius: 50%;
}

.modal-close:active {
  border-radius: 50%;
  background-color: #aaa;
  transform: scale(0.92);
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  /* Reserve scrollbar space so content width doesn't jump when overflow appears. */
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-overlay {
    --modal-gutter: 10px;
    --modal-viewport-width: 100vw;
    right: 0;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .modal-title {
    font-size: 1.1rem;
  }
}

/* Accessibility improvements */
.modal-overlay:focus {
  outline: none;
}

.modal-content:focus {
  outline: none;
}

/* Print styles */
@media print {
  .modal-overlay {
    position: static;
    display: block;
  }

  .modal-backdrop {
    display: none;
  }

  .modal-content {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Modal element styles */
.modal-form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-form-group label {
  min-width: 180px;
  margin-right: 0px;
  text-align: left;
  font-size: 16px;
}

.modal-form-group label input {
  width: 200px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal-form-group label select {
  width: 212px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}

/* Fallback for inputs not inside labels (if any exist) */
.modal-form-group input {
  width: 200px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal-form-group select {
  width: 212px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}

/* Additional styles for radio buttons */
.modal-form-group.radio {
  display: flex;
  flex-direction: column;
  /* Override default styles */
  align-items: unset;
  justify-content: unset;
  margin-bottom: 15px;
}
.modal-form-group.radio label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}
.modal-form-group.radio input[type="radio"] {
  margin-right: 10px;
  width: unset; /* Override default style */
}

/* Inline search / autocomplete inside modals (shared by budget, capital projects, staff, etc.) */
.modal-search-input-wrapper {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 212px;
}

.modal-search-suggestions-list {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  border-top: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  left: 0;
  list-style: none;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 1000;
}

.modal-search-suggestions-list li {
  border-bottom: 1px solid #eee;
  cursor: pointer;
  padding: 8px 12px;
  text-align: left;
}

.modal-search-suggestions-list li:hover {
  background-color: #f5f5f5;
}

/* Standardized Modal Button Styles */
.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  outline: none;
  position: relative;
  overflow: hidden;
}

.modal-button:focus {
  outline: none;
}

.modal-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Button Size Variants */
.modal-button--small {
  padding: 6px 12px;
  font-size: 14px;
  min-height: 32px;
}

.modal-button--medium {
  padding: 8px 16px;
  font-size: 16px;
  min-height: 36px;
}

/* Button Color Variants */
.modal-button--primary {
  background-color: #0071eb; /* WCAG update - contrast */
  color: white;
  border: 1px solid #0071eb; /* WCAG update - contrast */
}

.modal-button--primary:hover:not(:disabled) {
  background-color: #0056b3;
  border-color: #0056b3;
}

.modal-button--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.modal-button--secondary {
  background-color: #6c757d;
  color: white;
  border: 1px solid #6c757d;
}

.modal-button--secondary:hover:not(:disabled) {
  background-color: #5a6268;
  border-color: #5a6268;
}

.modal-button--secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.modal-button--danger {
  background-color: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

.modal-button--danger:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #c82333;
}

.modal-button--danger:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Button Group Styles */
.modal-button-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 20px;
}

.modal-button-group--left {
  justify-content: flex-start;
}

.modal-button-group--right {
  justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-button--medium {
    padding: 10px 14px;
    font-size: 16px;
    min-height: 44px;
  }

  .modal-button-group {
    gap: 6px;
  }

  .modal-button-group--right {
    justify-content: stretch;
  }

  .modal-button-group--right .modal-button {
    flex: 1;
  }
}

.active-filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.active-filter-chip {
  background: #e3eafc;
  color: #1565c0;
  border-radius: 16px;
  padding: 4px 10px;
  margin-right: 4px;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
}

.remove-filter-btn {
  background: #fff;
  border: 1px solid #e57373;
  color: #e57373;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 1.1em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  padding: 0;
  outline: none;
}

.remove-filter-btn:hover,
.remove-filter-btn:focus {
  background: #e57373;
  color: #fff;
  border-color: #d32f2f;
}

.remove-filter-btn:active {
  background: #d32f2f;
  color: #fff;
  border-color: #b71c1c;
}

.remove-filter-btn:focus {
  box-shadow: 0 0 0 2px #ffcdd2;
}

.accounting-container {
  padding: 15px 24px;
  overflow: auto;
}

.accounting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.accounting-header h3 {
  margin: 0;
}

.accounting-header-actions,
.accounting-filters,
.accounting-form-actions,
.accounting-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.accounting-header-actions {
  margin-left: auto;
}

.accounting-filters {
  margin-bottom: 16px;
  flex: 1;
  min-width: 0;
}

.accounting-header .accounting-filters {
  margin-bottom: 0;
}

.accounting-filters input,
.accounting-form input,
.accounting-form textarea,
.accounting-lines input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
}

.accounting-form select,
.accounting-lines select {
  box-sizing: border-box;
}

.accounting-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.accounting-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.accounting-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.accounting-account-code-preview {
  background: #f3f4f6;
  color: #374151;
  cursor: not-allowed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
}

.accounting-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition:
    background-color 0.2s,
    opacity 0.2s;
}

.accounting-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.accounting-btn-primary {
  background: #2563eb;
  color: white;
}

.accounting-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.accounting-btn-danger {
  background: #dc2626;
  color: white;
}

.accounting-empty,
.accounting-loading,
.accounting-error {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.accounting-error {
  color: #b91c1c;
}

.accounting-status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: capitalize;
}

.accounting-status-draft {
  background: #fef3c7;
  color: #92400e;
}

.accounting-status-posted {
  background: #dcfce7;
  color: #166534;
}

.accounting-status-reversed {
  background: #e5e7eb;
  color: #374151;
}

.accounting-lines table {
  width: 100%;
  table-layout: fixed;
}

.accounting-lines th,
.accounting-lines td {
  padding: 6px;
  text-align: left;
}

.accounting-lines th:nth-child(1) {
  width: 30%;
}

.accounting-lines th:nth-child(2) {
  width: 28%;
}

.accounting-lines th:nth-child(3),
.accounting-lines th:nth-child(4) {
  width: 14%;
}

.accounting-lines th:nth-child(5) {
  width: 14%;
}

.accounting-lines input,
.accounting-lines select {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.accounting-lines .accounting-btn {
  padding: 6px 8px;
  white-space: normal;
  width: 100%;
}

.accounting-total-row {
  font-weight: 700;
}

.accounting-balance-warning {
  color: #b91c1c;
  font-weight: 700;
}

.accounting-muted {
  color: #6b7280;
  margin-bottom: 16px;
}

.accounting-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.accounting-config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.accounting-config-field input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px;
  font-weight: 400;
}

.accounting-config-field small {
  color: #6b7280;
  font-weight: 400;
}

.accounting-table {
  width: 100%;
  border-collapse: collapse;
}

.accounting-table th,
.accounting-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
}

.accounting-fund-config {
  margin-top: 32px;
}

.accounting-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.accounting-fund-config .accounting-table input {
  width: 96%;
  min-width: 120px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px;
}

.accounting-fund-config-table th[scope="row"] {
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}

.accounting-fund-config .accounting-fund-fallback-col {
  background: #f9fafb;
}

.accounting-trial-balance-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #374151;
}

.accounting-expand-col {
  width: 28px;
  text-align: center;
}

.accounting-expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.accounting-expand-button:hover {
  background: #e5e7eb;
}

.accounting-expand-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.accounting-expand-caret {
  color: #6b7280;
  font-size: 0.7rem;
}

.accounting-trial-balance-row {
  cursor: pointer;
}

.accounting-trial-balance-row:hover {
  background: #f9fafb;
}

.accounting-trial-balance-row--expanded {
  background: #f3f4f6;
}

.accounting-trial-balance-detail-row > td {
  padding: 0;
  background: #fafafa;
}

.accounting-trial-balance-transactions {
  padding: 12px 16px 16px 36px;
}

.accounting-nested-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.accounting-nested-table th,
.accounting-nested-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 6px;
  text-align: left;
}

.accounting-nested-table th {
  color: #6b7280;
  font-weight: 600;
}

.accounting-show-more {
  margin-top: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
}

.accounting-show-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.accounting-status-completed {
  background: #dcfce7;
  color: #166534;
}

.bank-rec-account-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.bank-rec-new,
.bank-rec-detail {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin: 0 0 20px;
}

.bank-rec-new h3,
.bank-rec-detail h3 {
  margin: 0;
  font-size: 1.125rem;
}

.bank-rec-new-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: end;
  gap: 12px;
}

.bank-rec-detail {
  margin-top: 20px;
  padding: 20px;
}

.bank-rec-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bank-rec-detail-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-rec-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.bank-rec-stat {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
}

.bank-rec-stat dt {
  color: #6b7280;
  font-size: 0.8125rem;
}

.bank-rec-stat dd {
  margin: 4px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bank-rec-stat--balanced {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.bank-rec-stat--unbalanced {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.bank-rec-stat--balanced dt,
.bank-rec-stat--unbalanced dt {
  color: inherit;
}

.module-list-table .bank-rec-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.module-list-table .bank-rec-check-col {
  width: 80px;
  text-align: center;
}

.bank-rec-check-col input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.bank-rec-check-col input:disabled {
  cursor: default;
}

.module-list-table > tbody > tr.bank-rec-row--selected > td {
  background: #eef2ff;
}

.module-tabs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  box-sizing: border-box;
  height: var(--app-subnav-strip-height);
  min-height: var(--app-subnav-strip-height);
  padding: 4px 30px 4px 8px;
  background-color: #eaeaea;
  border-bottom: 1px solid #dddddd;
}

.module-tabs-list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
}

.module-tabs-trailing {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.module-tabs--with-trailing .module-tab {
  padding-left: 12px;
  padding-right: 12px;
}

.module-tab {
  padding: 8px 20px;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  border-radius: 8px;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.module-tab.active {
  color: #1f2f2c;
  font-weight: 600;
  background: #87b6a761;
}

.module-tab:hover:not(.active) {
  color: #495057;
  background-color: #ccc;
}

/* Column Filter Dropdown Styles */
.column-filter-button {
  background: none;
  box-sizing: border-box;
  border: 1px solid transparent;
  padding: 4px 6px;
  cursor: pointer;
  color: #999;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.column-filter-button:hover {
  color: #0066cc;
  background-color: #e3f2fd;
  border-color: #e3f2fd;
}

.column-filter-button.active {
  color: #0066cc;
  background-color: #e3f2fd;
  border-color: #0066cc;
}

.column-filter-dropdown {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  width: 220px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.column-filter-caret {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid white;
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
  transform: translateX(-50%);
}

.column-filter-search {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.column-filter-search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}

.column-filter-search input:focus {
  outline: none;
  border-color: #0066cc;
}

.column-filter-actions {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.filter-action-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-action-btn:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.column-filter-options {
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
  padding: 4px 0;
}

.column-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.column-filter-option:hover {
  background-color: #f0f7ff;
}

.column-filter-option input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.column-filter-option span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-filter-no-results {
  padding: 16px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

/* TODO: add whitespace between icon picker and end of select box */
select.default {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
}

select.default:disabled {
  background-color: #f1f3f5;
  color: #6c757d;
  cursor: not-allowed;
}

.account-code-fields-row {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-bottom: 10px;
}

.account-code-fields-select {
  width: 100%;
  box-sizing: border-box;
}

.account-code-fields-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.account-code-fields-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-code-fields-item label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 4px;
}

.account-code-fields-error {
  color: #b42318;
  margin-left: 8px;
  font-weight: 600;
}

.account-code-fields-general-error {
  width: 100%;
  margin-bottom: 8px;
  color: #b42318;
  font-size: 0.95rem;
  font-weight: 600;
}

.account-code-fields-search-wrapper {
  position: relative;
  width: 100%;
}

.account-code-fields-suggestions-list {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  border-top: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  left: 0;
  list-style: none;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
  position: absolute;
  top: 100%;
  width: 200px;
  z-index: 1000;
}

.account-code-fields-suggestions-list li {
  border-bottom: 1px solid #eee;
  cursor: pointer;
  padding: 8px 12px;
  text-align: left;
}

.account-code-fields-suggestions-list li:hover {
  background-color: #f5f5f5;
}

.hr-staff-import-modal .modal-content {
  max-width: 640px;
}

.hr-staff-import-intro {
  margin: 0 0 1rem;
  color: var(--text-secondary, #555);
  font-size: 1rem;
  line-height: 1.45;
}

.hr-staff-import-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hr-staff-import-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 500;
}

.hr-staff-import-form input[type="date"] {
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
}

.hr-staff-import-error {
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 1rem;
}

.hr-staff-import-preview {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.hr-staff-import-counts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hr-staff-import-counts-block h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.hr-staff-import-counts-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 1rem;
}

.hr-staff-import-create {
  color: #15803d;
  font-weight: 600;
}

.hr-staff-import-update {
  color: #1d4ed8;
  font-weight: 600;
}

.hr-staff-import-warnings {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.hr-staff-import-warnings h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.hr-staff-import-warnings ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: #92400e;
}

.hr-staff-import-readonly-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

.assistant-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
}

.assistant-button svg {
  display: block;
}

.app-header-help .assistant-button {
  height: 100%;
}

.assistant-button:hover,
.assistant-button.active {
  color: #87b6a7;
}

.assistant-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 640px;
  max-width: 100vw;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -8px 0 24px rgba(31, 41, 55, 0.06);
  color: #1f2937;
}

/* Above the Show me overlay (Joyride zIndex 11000, tooltip 11001). Below the
   overlay breakpoint in App.css the panel covers the app, so it stays under. */
@media (min-width: 769px) {
  .assist-highlight-open .assistant-panel {
    z-index: 11002;
  }
}

.assistant-panel-resize {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  cursor: ew-resize;
  border-left: 2px solid transparent;
  touch-action: none;
}

.assistant-panel-resize:hover,
.assistant-panel-resize:focus-visible {
  border-left-color: #0071eb;
  outline: none;
}

.assistant-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.assistant-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.assistant-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 0;
  font-size: 16px;
  color: #6b7280;
  cursor: pointer;
}

.assistant-panel-close:hover {
  color: #1f2937;
  background: #f5f6f8;
}

.assistant-panel-close:focus-visible {
  outline: 2px solid #0071eb;
  outline-offset: 2px;
}

.assistant-panel-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  scrollbar-gutter: stable;
}

.assistant-panel-empty {
  margin-bottom: 16px;
}

.assistant-panel-empty-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.assistant-panel-empty-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
}

.assistant-panel-suggestions {
  margin-bottom: 8px;
}

.assistant-panel-suggestions--compact {
  margin-bottom: 4px;
}

.assistant-panel-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistant-panel-suggestions--compact .assistant-panel-chips {
  gap: 6px;
}

.assistant-panel-chip {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f5f6f8;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.assistant-panel-chip:hover {
  border-color: #0071eb;
  background: #eaf3ff;
}

.assistant-panel-chip:focus-visible {
  outline: 2px solid #0071eb;
  outline-offset: 2px;
}

.assistant-panel-chip:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.assistant-panel-composer {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.assistant-panel-free-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assistant-panel-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #f5f6f8;
}

.assistant-panel-input:focus-within {
  border-color: #0071eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 113, 235, 0.12);
}

.assistant-panel-input textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 120px;
  box-sizing: border-box;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
}

.assistant-panel-input textarea:focus {
  outline: none;
}

.assistant-panel-input textarea:disabled {
  color: #aaa;
}

.assistant-panel-input textarea::placeholder {
  color: #9ca3af;
}

.assistant-panel-send.modal-button {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
}

.assistant-panel-send.modal-button svg {
  width: 18px;
  height: 18px;
}

.assistant-panel-send.modal-button:focus-visible {
  outline: 2px solid #0071eb;
  outline-offset: 2px;
}

.assistant-panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.assistant-panel-status.loading {
  color: #6b7280;
}

.assistant-panel-status__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.assistant-panel-status__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7280;
  animation: assistant-panel-dot 1.2s ease-in-out infinite;
}

.assistant-panel-status__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.assistant-panel-status__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes assistant-panel-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.assistant-panel-status.error {
  color: #b91c1c;
}

.assistant-panel-answer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.assistant-panel-support-mailto {
  color: #0071eb;
}

.assistant-panel-support-mailto:focus-visible {
  outline: 2px solid #0071eb;
  outline-offset: 2px;
}

.assistant-turn__selection {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 12px;
}

.assistant-panel-disclaimer {
  padding: 10px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f5f6f8;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

.assistant-figures {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9f9f9;
  font-size: 13px;
}

.assistant-figures-list {
  margin: 0;
}

.assistant-figures-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.assistant-figures-row dt {
  color: #4b5563;
}

.assistant-figures-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.assistant-figures-section {
  margin-top: 8px;
}

.assistant-figures-heading {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.assistant-figures-group-label {
  font-weight: 600;
  color: #4b5563;
}

.assistant-figures-table {
  width: 100%;
  border-collapse: collapse;
}

.assistant-figures-table th,
.assistant-figures-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.assistant-panel-counter {
  align-self: flex-end;
  padding-right: 8px;
  font-size: 12px;
  color: #6b7280;
}

.assistant-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.assistant-thread--empty {
  margin-top: 0;
}

.assistant-thread__header {
  display: flex;
  justify-content: flex-end;
}

.assistant-turn {
  padding: 12px 14px;
  border-radius: 16px;
}

.assistant-turn--user {
  align-self: flex-end;
  max-width: 90%;
  border-radius: 16px 16px 4px 16px;
  background: #eaf3ff;
}

.assistant-turn--assistant {
  border: 1px solid #e5e7eb;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
}

.assistant-turn__warning {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  background: #fffbeb;
  font-size: 13px;
  color: #92400e;
}

.assistant-turn__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.assistant-turn__learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.assistant-turn__learn-more svg {
  flex-shrink: 0;
  font-size: 0.8em;
}

.assistant-turn__fallback {
  margin: 8px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.assistant-turn__feedback {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.assistant-turn__feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
}

.assistant-turn__feedback-button:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.assistant-turn__feedback-button:focus-visible {
  outline: 2px solid #0071eb;
  outline-offset: 2px;
}

.assistant-turn__feedback-button.active {
  color: #0071eb;
}

.assistant-turn__feedback-thanks {
  margin-left: 4px;
  font-size: 12px;
  color: #6b7280;
}

.assistant-figures-call {
  margin-top: 6px;
}

.assistant-figures-call:first-child {
  margin-top: 0;
}

.assistant-figures-call-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.assistant-figures-download {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: #0071eb;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.assistant-figures-download:hover {
  color: #0155af;
  text-decoration: underline;
}

.assistant-figures-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.assistant-figures-total td,
.assistant-figures-list--total {
  font-weight: 700;
}

.assistant-figures-table caption {
  text-align: left;
  font-weight: 600;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .assistant-panel {
    width: 100vw;
    box-shadow: none;
  }

  .assistant-panel-header,
  .assistant-panel-body,
  .assistant-panel-composer,
  .assistant-panel-disclaimer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.portal {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f5f6f8;
  color: #1f2937;
  display: flex;
  flex-direction: column;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.portal-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-logo {
  height: 32px;
  width: auto;
}

.portal-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.portal-header-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-user-name {
  font-size: 16px;
  color: #4b5563;
}

.portal-switch-view {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.portal-switch-view:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.portal-logout {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 16px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.portal-logout:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.portal-body {
  flex: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* Desktop left sidebar (hidden on phones, replaced by the bottom tab bar). */
.portal-sidebar {
  position: sticky;
  top: 64px;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 12px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.portal-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.portal-nav-link.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.portal-nav-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* A count on a nav item (days to submit on Time), in the sidebar and the tab bar alike. */
.portal-nav-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}

.portal-nav-link .portal-nav-count {
  margin-left: auto;
}

/* Mobile bottom tab bar (hidden on desktop). */
.portal-tabbar {
  display: none;
}

.portal-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-main-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  box-sizing: border-box;
}

.portal-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.portal-subheading {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
}

.portal-state {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

.portal-state-error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.portal-state-notice {
  color: #175cd3;
  border-color: #b2ddff;
  background: #eff8ff;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.portal-table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.portal-table thead th {
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.portal-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.portal-table tbody tr:last-child td {
  border-bottom: none;
}

.portal-num {
  font-variant-numeric: tabular-nums;
}

.portal-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.portal-row:hover {
  background: #f9fafb;
}

.portal-chevron {
  text-align: right;
  color: #9ca3af;
  font-size: 18px;
  width: 32px;
}

.portal-back {
  align-self: flex-start;
  background: none;
  border: none;
  color: #2563eb;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.portal-back:hover {
  text-decoration: underline;
}

.portal-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-summary-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-summary-net {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.portal-summary-label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.portal-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.portal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 0 0;
  overflow: hidden;
}

.portal-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  padding: 12px 16px;
}

/* -- Section header with an action button -------------------------------- */
.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* -- Buttons ------------------------------------------------------------- */
a.portal-btn-primary,
a.portal-btn-secondary,
a.portal-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.portal-btn-primary {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.portal-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.portal-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.portal-btn-secondary {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}

.portal-btn-secondary:hover:not(:disabled) {
  background: #f3f4f6;
}

.portal-btn-link {
  border: none;
  background: none;
  color: #b91c1c;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 0;
}

.portal-btn-link:hover:not(:disabled) {
  text-decoration: underline;
}

.portal-btn-link:disabled {
  opacity: 0.6;
  cursor: default;
}

/* -- Forms --------------------------------------------------------------- */
.portal-form-card {
  padding: 16px;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-form-row {
  display: flex;
  gap: 16px;
}

.portal-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.portal-form-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.portal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.portal-checkbox-label input {
  width: 18px;
  height: 18px;
}

.portal-form-optional {
  font-weight: 400;
  color: #9ca3af;
}

.portal-form-help {
  color: #6b7280;
  font-size: 14px;
}

.portal-form-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
  color: #1f2937;
  background: #ffffff;
  min-height: 44px;
  font-family: inherit;
}

.portal-form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.portal-form-input {
  min-height: 80px;
  resize: vertical;
}

.portal-day-hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-day-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-size: 16px;
}

.portal-day-hours-input {
  max-width: 120px;
}

.portal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.portal-req-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-req-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 130px auto;
  gap: 12px;
  align-items: end;
}

.portal-req-select {
  width: 100%;
  min-height: 44px;
}

.portal-req-line-amount {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.portal-req-total {
  font-weight: 600;
  text-align: right;
}

/* -- Requisition detail ----------------------------------------------------- */
.portal-req-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 4px 16px 16px;
}

.portal-req-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-req-detail-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.portal-req-detail-value {
  margin: 0;
  font-size: 16px;
  color: #111827;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.portal-req-lines-table .portal-num {
  text-align: right;
}

.portal-req-detail-total {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
}

.portal-req-actions {
  display: flex;
  justify-content: flex-end;
}

.portal-btn-secondary--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.portal-btn-secondary--danger:hover:not(:disabled) {
  background: #fef2f2;
}

.portal-btn-secondary--danger:disabled {
  opacity: 0.6;
  cursor: default;
}

.portal-form-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}

.portal-form-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.portal-form-block-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* -- Leave request cards ------------------------------------------------- */
.portal-request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-request-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.portal-request-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-request-type {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.portal-request-dates {
  font-size: 16px;
  color: #4b5563;
}

.portal-request-hours {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.portal-request-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  color: #6b7280;
}

.portal-request-reason {
  font-size: 16px;
  color: #6b7280;
}

.portal-request-note {
  font-size: 16px;
  color: #b91c1c;
}

.portal-request-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* -- Status badges ------------------------------------------------------- */
.portal-badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.portal-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.portal-badge-approved {
  background: #dcfce7;
  color: #166534;
}

.portal-badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.portal-badge-neutral {
  background: #f3f4f6;
  color: #4b5563;
}

/* Make wide tables usable on phones: allow horizontal scroll within the card. */
.portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  /* Paystub detail LineTables: stack each row as a labeled card. */
  .portal-card .portal-table,
  .portal-card .portal-table tbody,
  .portal-table-wrap .portal-table,
  .portal-table-wrap .portal-table tbody {
    display: block;
    width: 100%;
  }

  .portal-card .portal-table tbody,
  .portal-table-wrap .portal-table tbody {
    box-sizing: border-box;
    padding: 0 12px 12px;
  }

  /* Stacked cells: long values wrap instead of widening the page. */
  .portal-table tbody td {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .portal-table tbody td::before {
    text-align: left;
    flex-shrink: 0;
    max-width: 45%;
  }

  /* Paystub list rows are tappable cards. */
  .portal-table-wrap .portal-row {
    min-height: 44px;
  }

  .portal-table-wrap .portal-table tbody td.portal-chevron {
    width: auto;
    justify-content: flex-end;
    padding: 0;
    line-height: 1;
  }

  .portal-table-wrap .portal-table tbody td.portal-chevron::before {
    content: none;
  }

  .portal-card .portal-table thead,
  .portal-table-wrap .portal-table thead {
    display: none;
  }

  .portal-card .portal-table tbody tr,
  .portal-table-wrap .portal-table tbody tr {
    display: block;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
  }

  .portal-card .portal-table tbody tr:last-child,
  .portal-table-wrap .portal-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .portal-card .portal-table tbody tr:last-child td,
  .portal-table-wrap .portal-table tbody tr:last-child td {
    border-bottom: none;
  }

  .portal-card .portal-table tbody td,
  .portal-table-wrap .portal-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: none;
  }

  .portal-card .portal-table tbody td::before,
  .portal-table-wrap .portal-table tbody td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .portal-header {
    gap: 8px;
    padding: 0 16px;
  }

  .portal-header-brand {
    min-width: 0;
    gap: 8px;
  }

  .portal-logo {
    height: 28px;
    flex-shrink: 0;
  }

  .portal-title {
    font-size: 16px;
    white-space: nowrap;
  }

  .portal-header-user {
    gap: 8px;
    min-width: 0;
  }

  .portal-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-header-user {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .portal-switch-view,
  .portal-logout {
    padding: 7px 10px;
    font-size: 16px;
    white-space: nowrap;
    min-height: 44px;
    flex-shrink: 0;
  }

  .portal-back {
    min-height: 44px;
  }

  .portal-main-inner {
    overflow-wrap: anywhere;
  }

  .portal-btn-link {
    min-height: 44px;
  }

  .portal-detail-head {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Hide the desktop sidebar; the fixed bottom tab bar takes over. */
  .portal-sidebar {
    display: none;
  }

  .portal-main-inner {
    max-width: 100%;
    /* Leave room for the fixed bottom tab bar. */
    padding: 20px 16px calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .portal-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .portal-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 8px 4px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
  }

  .portal-tab.is-active {
    color: #1d4ed8;
  }

  .portal-tab-icon {
    font-size: 20px;
  }

  .portal-tab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .portal-summary-grid {
    grid-template-columns: 1fr;
  }

  .portal-form-row {
    flex-direction: column;
  }

  .portal-req-line {
    grid-template-columns: 1fr;
  }

  .portal-req-details {
    grid-template-columns: 1fr;
  }

  .portal-req-detail-total {
    justify-content: space-between;
  }

  .portal-req-actions .portal-btn-secondary--danger {
    width: 100%;
  }

  .portal-day-hours-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-day-hours-input {
    max-width: none;
  }

  .portal-section-head .portal-btn-primary,
  .portal-section-head .portal-btn-secondary {
    width: 100%;
  }

  .portal-form-actions {
    flex-direction: column-reverse;
  }

  .portal-form-actions .portal-btn-primary,
  .portal-form-actions .portal-btn-secondary,
  .portal-form-block .portal-btn-secondary,
  .portal-req-line .portal-btn-link {
    width: 100%;
  }

  .portal-form-block-head {
    flex-wrap: wrap;
  }

  .portal-form-input,
  .portal-req-select,
  select.default.portal-req-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .portal-request-card {
    flex-direction: column;
  }

  .portal-request-main {
    width: 100%;
  }

  .portal-request-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  /* Dual-access users need the room for Exit Portal + Sign out. */
  .portal-user-name {
    display: none;
  }

  .portal-header {
    padding: 0 12px;
  }

  .portal-logo {
    height: 24px;
  }

  .portal-title {
    font-size: 16px;
  }

  .portal-switch-view,
  .portal-logout {
    padding: 6px 8px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .portal-title {
    display: none;
  }

  .portal-header-brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .portal-logo {
    flex-shrink: 1;
    min-width: 0;
    object-fit: contain;
  }

  .portal-switch-view,
  .portal-logout {
    padding: 6px;
  }

  .portal-tab-label {
    font-size: 12px;
  }

  .portal-tab {
    padding: 8px 2px;
  }
}

/* -- Substitute jobs ---------------------------------------------------------
   Cards on phones, a sortable table from 769px up (the same breakpoint as the tab bar). Both are rendered and CSS
   shows one, so the cards below stay in step with the table. */
.portal-sub {
  gap: 20px;
}

.portal-sub-switch {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px;
  border-radius: 12px;
  background: #e5e7eb;
}

.portal-sub-switch-btn {
  min-height: 44px;
  padding: 8px 20px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.portal-sub-switch-btn.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.portal-sub-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-sub-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.portal-sub-block-title .portal-nav-count {
  margin-left: 0;
}

.portal-sub-count {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
}

.portal-sub-help,
.portal-sub-note {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
}

.portal-sub-where {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: #374151;
}

.portal-sub-address {
  color: #6b7280;
}

.portal-sub-card--stale {
  border-style: dashed;
  background: #f9fafb;
  color: #6b7280;
}

.portal-sub-card--blocked,
.portal-sub-row--blocked {
  opacity: 0.55;
}

.portal-sub-blocked {
  font-size: 16px;
  color: #6b7280;
}

.portal-sub-day {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.portal-sub-day-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.portal-sub-day-notice {
  margin: 0;
  font-size: 16px;
  color: #92400e;
}

.portal-sub-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.portal-sub-search {
  flex: 1 1 240px;
  min-height: 44px;
  box-sizing: border-box;
}

.portal-sub-sortby {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

select.default.portal-sub-select {
  min-height: 44px;
  font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
}

.portal-sub-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.portal-sub-sort-arrow {
  display: inline-block;
  min-width: 1em;
  font-size: 12px;
}

.portal-sub-action {
  text-align: right;
}

.portal-sub-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.portal-sub-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.portal-sub-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.portal-sub-total dt {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.portal-sub-total dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

@media (min-width: 769px) {
  .portal-sub-cards,
  .portal-sub-sortby {
    display: none;
  }

  .portal-sub-table th .portal-sub-sort {
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .portal-sub-table-wrap {
    display: none;
  }

  .portal-sub-sortby {
    flex: 1 1 100%;
  }

  /* Six tabs (a sub with requisitions and the time clock) at 375px are about 62px each: "Requisitions" needs the room. */
  .portal-tabbar:has(.portal-tab:nth-child(6)) .portal-tab {
    padding-left: 2px;
    padding-right: 2px;
  }

  .portal-tabbar:has(.portal-tab:nth-child(6)) .portal-tab-label {
    font-size: 12px;
  }
}

.portal-install-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1f2937;
}

.portal-install-prompt-text {
  flex: 1 1 220px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.portal-install-prompt-actions {
  display: flex;
  gap: 8px;
}

.portal-install-prompt-button {
  min-height: 44px;
  min-width: 44px;
}

.check-stub-view {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #111;
  background: #fff;
  padding: 12px 30px 20px;
  border-radius: 4px;
}

.check-stub-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.check-stub-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #222;
  padding-bottom: 4px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.check-stub-meta {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4px 18px;
  margin: 0 0 12px;
  font-size: 0.8rem;
}

.check-stub-meta-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2px 6px;
  align-items: start;
  margin: 0;
}

.check-stub-meta-field dt {
  margin: 0;
  color: #555;
  white-space: nowrap;
}

.check-stub-meta-field dd {
  margin: 0;
}

.check-stub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.check-stub-section h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #444;
  padding: 4px 6px;
  background: #ddd;
  letter-spacing: 0.02em;
  border-radius: 6px 6px 0 0;
}

.check-stub-table {
  width: 100%;
  border-collapse: collapse;
}

.check-stub-table th,
.check-stub-table td {
  padding: 3px 4px;
  text-align: left;
  font-size: 0.8rem;
}

.check-stub-table th {
  font-weight: 600;
  color: #333;
}

.check-stub-table .num,
.check-stub-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.check-stub-table tfoot td {
  font-weight: 700;
}

.check-stub-withholding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 11px;
}

.check-stub-withholding .label {
  color: #555;
  margin-right: 4px;
}

.check-stub-full {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .check-stub-view {
    font-size: 14px;
    overflow-x: hidden;
    padding: 12px;
  }

  .check-stub-section h3 {
    font-size: 0.9rem;
  }

  .check-stub-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .check-stub-meta-field {
    grid-template-columns: 1fr auto;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
  }

  .check-stub-meta-field dt {
    white-space: normal;
    font-weight: 600;
    color: #555;
  }

  .check-stub-meta-field dd {
    text-align: right;
  }

  .check-stub-grid {
    grid-template-columns: 1fr;
  }

  .check-stub-withholding {
    grid-template-columns: 1fr;
    font-size: 13px;
    gap: 6px;
  }

  .check-stub-table,
  .check-stub-table tbody,
  .check-stub-table tfoot {
    display: block;
    width: 100%;
  }

  .check-stub-table thead {
    display: none;
  }

  .check-stub-table tbody tr,
  .check-stub-table tfoot tr {
    display: block;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
  }

  .check-stub-table tbody tr:last-child {
    margin-bottom: 10px;
  }

  .check-stub-table tfoot tr {
    background: #f3f4f6;
    border-color: #888;
    border-width: 1.5px;
  }

  .check-stub-table tbody td,
  .check-stub-table tfoot td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: none;
    text-align: left;
  }

  .check-stub-table tbody td::before,
  .check-stub-table tfoot td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    color: #555;
    font-weight: 600;
    text-align: left;
  }

  .check-stub-table tbody td.num,
  .check-stub-table tfoot td.num {
    text-align: right;
    white-space: normal;
  }

  .check-stub-table tbody tr.check-stub-empty-row {
    background: transparent;
    border-style: dashed;
  }

  .check-stub-table tbody tr.check-stub-empty-row td {
    display: block;
    text-align: center;
    color: #6b7280;
  }

  .check-stub-table tbody tr.check-stub-empty-row td::before {
    content: none;
  }

  /* Hide empty Rate cell on wage TOTAL card when it has no content */
  .check-stub-table tfoot td.num:empty {
    display: none;
  }
}

/* Phone-first punch clock; narrower than the rest of the portal so it stays a single column on desktop. */
.portal-time {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* One column on phones; on desktop the summary and history sit in a second column. */
.portal-time-columns,
.portal-time-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 769px) {
  .portal-time--wide {
    max-width: none;
  }

  .portal-time-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
}

.portal-time .portal-section-head {
  align-items: baseline;
}

/* Same specificity as select.default would make the radius depend on bundle order, so name both classes. */
select.default.portal-time-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  border-radius: 12px;
  font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
  font-weight: 500;
}

/* -- Location banner ------------------------------------------------------ */
.portal-time-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
}

.portal-time-banner--verified {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Amber, not red: an off-rule location is noted for HR, never an error and never a block. */
.portal-time-banner--flagged {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.portal-time-banner--neutral {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.portal-time-banner--pending {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #4b5563;
}

.portal-time-banner-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 20px;
}

.portal-time-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-time-banner-title {
  font-size: 16px;
  font-weight: 600;
}

.portal-time-banner-detail {
  font-size: 14px;
  line-height: 1.4;
}

/* -- Clock panel ---------------------------------------------------------- */
.portal-time-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);
}

/* The status pill. */
.portal-time-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-time-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.portal-time-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.portal-time-status--out {
  background: #f3f4f6;
  color: #374151;
}

.portal-time-status--in {
  background: #eff6ff;
  color: #1d4ed8;
}

.portal-time-status--break {
  background: #fff7ed;
  color: #9a3412;
}

/* Worked leads, large; Break sits under it, smaller; both centred, label over time. */
.portal-time-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.portal-time-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.portal-time-total dt {
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
}

.portal-time-total dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #374151;
}

.portal-time-total--worked {
  padding: 14px 16px;
  border: 2px solid #2563eb;
  background: #f8fbff;
}

.portal-time-total--worked dt {
  color: #1d4ed8;
}

.portal-time-total--worked dd {
  font-size: 40px;
  letter-spacing: -0.02em;
  color: #111827;
}

/* Worked time stops counting during a break, so its box goes grey. */
.portal-time-total--worked.portal-time-total--paused {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.portal-time-total--worked.portal-time-total--paused dt,
.portal-time-total--worked.portal-time-total--paused dd {
  color: #4b5563;
}

/* While on break the Break line takes the break color, so it is clear which clock is running. */
.portal-time-total--break.portal-time-total--running {
  border-color: #fdba74;
  background: #fff7ed;
}

.portal-time-total--break.portal-time-total--running dt,
.portal-time-total--break.portal-time-total--running dd {
  color: #9a3412;
}

.portal-time-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-time-actions-row {
  display: flex;
  gap: 10px;
}

.portal-time-actions .portal-time-btn {
  flex: 1;
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
}

/* Clock in and Clock out share the darker blue of the design; Start break is the plain secondary button. */
.portal-time-actions .portal-btn-primary.portal-time-btn,
.portal-time-actions .portal-btn-primary.portal-time-btn:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.portal-time-actions .portal-time-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.portal-time-actions .portal-btn-primary.portal-time-btn--break,
.portal-time-actions .portal-btn-primary.portal-time-btn--break:hover:not(:disabled) {
  background: #c2410c;
  border-color: #c2410c;
}

.portal-time-notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 16px;
  line-height: 1.45;
}

.portal-time-footnote {
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #6b7280;
}

/* -- Today's punches -------------------------------------------------------- */
/* Today's head is tinted so the current day stands apart from the history beside it. */
.portal-time-today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
  border-bottom: 1px solid #dbeafe;
  border-radius: 12px 12px 0 0;
  background: #eff6ff;
}

.portal-time-today-total {
  font-size: 14px;
  color: #4b5563;
}

.portal-time-empty {
  margin: 0;
  padding: 0 16px 16px;
  color: #4b5563;
  font-size: 16px;
}

.portal-time-punches {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-time-punch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #f3f4f6;
}

.portal-time-punch-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.portal-time-punch-label {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.portal-time-punch-meta {
  font-size: 14px;
  color: #6b7280;
}

.portal-time-punch-time {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #111827;
}

.portal-time-punch--placeholder .portal-time-punch-time {
  color: #6b7280;
}

.portal-time-today-head .portal-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Smallest phones: "Today" and its tag on one line, the day's totals under them. */
@media (max-width: 400px) {
  .portal-time-today-head {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }

  .portal-time-today-head .portal-card-title {
    padding-bottom: 4px;
  }

  .portal-time-today-total {
    padding-left: 16px;
  }
}

.portal-time-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-time-punch-meta--pending {
  color: #5b21b6;
}

.portal-btn-link.portal-time-day-revise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  color: #1d4ed8;
  font-weight: 600;
}

/* Actions on a pay period's days (Revise, Submit, Submit all) are smaller than page buttons, so the days read first. */
.portal-btn-link.portal-time-day-revise,
.portal-btn-secondary.portal-time-day-submit {
  font-size: 14px;
}

.portal-time-today {
  display: flex;
  flex-direction: column;
}

/* The tinted head runs to the card's top edge, so drop the card's top padding (both classes: beats .portal-card). */
.portal-card.portal-time-today {
  padding-top: 0;
}

/* -- Time worked and history ---------------------------------------------- */
.portal-time-history-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
}

/* The week and pay period totals, at the top of the history card. */
.portal-time-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}

.portal-time-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f6f8;
}

.portal-time-stat dt {
  font-size: 14px;
  color: #4b5563;
}

.portal-time-stat dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.portal-time-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.portal-time-history-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: #111827;
  cursor: pointer;
}

.portal-time-history-label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.portal-time-history-heading {
  font-size: 17px;
  font-weight: 700;
}

.portal-time-history-empty {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.portal-time-chevron {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-right: 2px solid #4b5563;
  border-bottom: 2px solid #4b5563;
  transform: rotate(-135deg);
}

.portal-time-history-toggle[aria-expanded="false"] .portal-time-chevron {
  transform: rotate(45deg);
}

.portal-time-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-time-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.portal-time-day-head,
.portal-time-day-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Bottom row of a day card, set off from the details above it. */
.portal-time-day-actions {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

/* Keeps the sign-off button on the right even when there is no Revise or Locked label beside it. */
.portal-time-day-actions .portal-time-day-submit {
  margin-left: auto;
}

/* Location and approval tags, under the day's times. */
.portal-time-day-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.portal-time-day-date,
.portal-time-day-hours {
  font-size: 14px;
  font-weight: 600;
}

.portal-time-day-hours {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.portal-time-day-job,
.portal-time-day-span {
  font-size: 14px;
  color: #4b5563;
}

/* A worked day's punches, stacked: label left, time right. */
.portal-time-day-punches {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 0;
  font-size: 14px;
}

.portal-time-day-punches > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.portal-time-day-punches dt {
  color: #4b5563;
}

.portal-time-day-punches dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: #111827;
}

.portal-time-day-pending,
.portal-time-day-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 14px;
  line-height: 1.4;
}

/* History day cards: tag badge, lock */
.portal-time-day-locked {
  font-size: 14px;
  color: #4b5563;
}

.portal-time-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* Tags differ in text and in lightness, not hue alone: light tints for the two routine kinds, solid dark for HR edits. */
.portal-time-tag--verified {
  background: #ecfdf5;
  color: #065f46;
}

/* Amber: reads as "look at this" by its wording, not hue alone. */
.portal-time-tag--flagged {
  background: #fef3c7;
  color: #78350f;
}

.portal-time-tag--neutral {
  background: #f3f4f6;
  color: #374151;
}

.portal-time-tag--leave {
  background: #eff6ff;
  color: #1e40af;
}

.portal-time-tag--hr {
  background: #5b21b6;
  color: #ffffff;
}

a.portal-btn-link.portal-time-history-link {
  min-height: 44px;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}

/* -- My time history page -------------------------------------------------- */
.portal-time-page-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-time-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -12px;
}

.portal-time-back-chevron {
  width: 10px;
  height: 10px;
  border-left: 2px solid #374151;
  border-bottom: 2px solid #374151;
  transform: translateX(2px) rotate(45deg);
}

.portal-time-period {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid;
  border-radius: 16px;
}

.portal-time-period--open {
  background: #eff6ff;
  border-color: #93c5fd;
  --portal-time-period-fg: #1e40af;
}

.portal-time-period--approved {
  background: #ecfdf5;
  border-color: #a7f3d0;
  --portal-time-period-fg: #065f46;
}

.portal-time-period--pending_approval {
  background: #fffbeb;
  border-color: #fcd34d;
  --portal-time-period-fg: #92400e;
}

.portal-time-period--rejected {
  background: #fef2f2;
  border-color: #fca5a5;
  --portal-time-period-fg: #991b1b;
}

.portal-time-period--needs_reapproval {
  background: #fff7ed;
  border-color: #fdba74;
  --portal-time-period-fg: #9a3412;
}

.portal-time-period-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.portal-time-period-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--portal-time-period-fg) 12%, #ffffff);
  color: var(--portal-time-period-fg);
  font-size: 12px;
  font-weight: 600;
}

.portal-time-period-note {
  font-size: 14px;
  color: #4b5563;
}

.portal-time-period-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.portal-time-period-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.portal-time-period-stat dt {
  font-size: 14px;
  color: #4b5563;
}

.portal-time-period-stat dd {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* The blue highlight the clock card's Worked box uses. */
.portal-time-period-stat--total {
  border: 2px solid #2563eb;
  background: #f8fbff;
}

/* With an odd number of tiles the total sits alone on the last row, so let it fill that row. */
.portal-time-period-stat--total:nth-child(odd) {
  grid-column: 1 / -1;
}

.portal-time-period-stat--total dt {
  color: #1d4ed8;
}

.portal-time-period-stat--total dd {
  color: #111827;
}

.portal-time-approval {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
}

.portal-time-approval-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.portal-time-approval-note {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.portal-time-history--daily {
  padding-top: 16px;
}

.portal-time-week {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-time-week-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  text-align: left;
  color: #111827;
  cursor: pointer;
}

.portal-time-week-toggle .portal-time-chevron {
  flex-shrink: 0;
  margin: 0 4px 0 2px;
  transform: rotate(-45deg);
}

.portal-time-week-toggle[aria-expanded="true"] .portal-time-chevron {
  transform: rotate(45deg);
}

.portal-time-week-label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.portal-time-week-count {
  font-size: 14px;
  color: #4b5563;
}

.portal-time-week-total {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* -- Missed-punch / revise sheet ------------------------------------------ */
.portal-time-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 20px 24px;
}

.portal-time-sheet-sub {
  margin: 0;
  font-size: 16px;
  color: #4b5563;
}

.portal-time-sheet-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-time-sheet .portal-form-input {
  min-height: 48px;
}

.portal-time-sheet textarea.portal-form-input {
  min-height: 80px;
  resize: none;
}

.portal-time-sheet-break .portal-form-input {
  max-width: 160px;
}

.portal-time-sheet .portal-form-help {
  margin: 0;
  line-height: 1.45;
}

.portal-time-sheet .portal-time-sheet-actions {
  margin: 0;
}

.portal-time-sheet .portal-time-sheet-actions .modal-button {
  flex: 1;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 600;
}

.portal-time-approval-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-time-approval-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 8px 10px;
  border-top: 1px solid #e5e7eb;
  border-left: 3px solid transparent;
}

.portal-time-approval-step--current {
  border-left-color: #111827;
  background: #f9fafb;
}

.portal-time-approval-step-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}

.portal-time-approval-step-label {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-time-approval-step-status {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.portal-time-approval-step--approved .portal-time-approval-step-status {
  color: #166534;
}

.portal-time-approval-step--returned .portal-time-approval-step-status {
  color: #b91c1c;
}

.portal-time-approval-step-detail,
.portal-time-approval-step-note {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  overflow-wrap: anywhere;
}

.portal-time-approval-step-note {
  font-style: italic;
}

/* -- Punch sections (the review sheet), with a placeholder until each happens -- */
.portal-time-punch-section-title {
  margin: 0;
  padding: 10px 16px 4px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.portal-time-punch-section .portal-time-punch {
  border-top: 0;
  padding-top: 4px;
}

/* The Today card's placeholder rows keep their bold label, as in the design; only the dash is muted. */
.portal-time-sheet .portal-time-punch--placeholder .portal-time-punch-label {
  font-weight: 400;
  color: #6b7280;
}

/* A punch's location result as icon and text, without the pill: green when verified, purple for an HR entry. */
.portal-time-result--verified {
  color: #065f46;
}

.portal-time-result--hr {
  color: #5b21b6;
}

/* Links that sit just below a card instead of inside it: centred, and pulled up so they read as belonging to the card above. */
.portal-time-column > .portal-btn-link {
  align-self: center;
  margin-top: -8px;
  padding-inline: 4px;
  text-align: center;
}

/* -- Daily sign-off --------------------------------------------------------- */
/* Below the Today card, centred like the links there. */
.portal-time-column > .portal-time-submit-today {
  align-self: center;
  min-width: 220px;
}

/* Submit on a past day, and Submit all beside the history heading: smaller than a page button. */
.portal-btn-secondary.portal-time-day-submit {
  flex-shrink: 0;
  min-height: 28px;
  padding: 2px 12px;
  font-weight: 600;
}

.portal-time-history-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-time-history-head .portal-time-history-toggle {
  flex: 1;
  width: auto;
}

.portal-time-submit-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  font-size: 16px;
  color: #374151;
}

/* Under a shift in the review: the link that corrects it, or the note that a change is waiting. Lined up with the punch rows. */
.portal-time-sheet .portal-time-correct {
  margin: 0 16px;
  color: #1d4ed8;
  text-decoration: underline;
}

.portal-time-sheet .portal-time-muted {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.portal-time-sheet .portal-time-punch-section .portal-time-muted {
  margin: 0 16px;
}

.portal-time-submit-total strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #111827;
}

/* Add className="modal-bottom-sheet" to a medium <Modal>: on phones it becomes a bottom sheet, desktop keeps the centred modal. */
@media (max-width: 600px) {
  .modal-overlay.modal-medium.modal-bottom-sheet {
    --modal-gutter: 0;
    align-items: flex-end;
    padding: 0;
  }

  .modal-overlay.modal-medium.modal-bottom-sheet .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }

  .modal-overlay.modal-medium.modal-bottom-sheet .modal-header {
    border-radius: 16px 16px 0 0;
  }
}

/* Icon beside a punch's location result (employee portal and HR Time). Sized and coloured by the surrounding text. */
.time-verification-icon {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-right: 4px;
  vertical-align: -0.2em;
}

.monthly-report-container {
  width: 100%;
  overflow-y: auto;
  container-type: inline-size;
}

.monthly-report-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 400px;
  color: #1f2937;
}

.monthly-report-table-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0% 4% 1%;
}

.monthly-report-table-container .filter-container {
  margin-right: 0px;
  margin-bottom: 0px;
}

.monthly-report-chart-row {
  width: 95%;
  height: 70%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
  margin: 20px 2.5% 100px 2.5%; /* Add space below the chart row */
}

.monthly-report-select-container {
  display: grid;
  grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
  align-items: center;
  width: 100%;
  margin: 20px 0 0;
  padding: 0 2.5%;
  box-sizing: border-box;
  column-gap: 10px;
}

.monthly-report-select-container::after {
  content: "";
}

.monthly-report-type {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.monthly-report-select-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

@container (max-width: 64rem) {
  .monthly-report-select-container {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .monthly-report-select-container::after {
    content: none;
  }

  .monthly-report-select-main {
    justify-self: start;
  }
}

.monthly-report-bar-chart {
  width: 48%;
  height: 80%; /* Reduce height to make room for legend and labels */
  justify-items: center;
  position: relative; /* For proper positioning of chart elements */
  margin: 0 10px; /* Add some margin between charts */
}

.monthly-report-bar-chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  box-sizing: border-box;
}

.key-highlights {
  width: 90%;
  margin: 0% 5% 1%;
  font-family: Arial, sans-serif;
}

.key-highlights ul {
  list-style-type: disc;
}

.key-highlights li {
  display: flex;
  align-items: center;
  list-style-type: disc;
  list-style-position: inside;
  padding: 5px 0;
}

.monthly-report-highlight-input {
  width: 95%;
  padding: 8px;
  border: 1px solid #767676; /* WCAG update - contrast */
  border-radius: 4px;
  font-size: 16px;
}

.print-button {
  background-color: #e0e0e0; /* WCAG - meets required contrast with dark gray text */
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 10px;
  border-radius: 8px;
  color: #333;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}
.print-button:hover {
  background-color: #d6d6d6; /* WCAG - meets required contrast with light gray background */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.high-level-table-container {
  /* border-collapse: collapse; */
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-size: 16px; /* Enlarge table text for readability */
  border: 1px solid #ccc;
  background-color: white;
  margin: 0;
  text-align: center;
  border-radius: 10px;
  z-index: 1;
}

.high-level-table {
  border-radius: 10px;
  border-collapse: collapse;
  width: 98%;
  text-align: left;
  margin: 0 10px 10px 10px;
  overflow: hidden;
  table-layout: fixed; /* Enable fixed table layout for uniform column widths */
}

.high-level-table th {
  /* border-collapse: collapse; */
  background-color: #1f2f2c;
  color: white;
  padding: 10px;
  text-align: center;
  white-space: pre-line;
}

.high-level-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.high-level-table tr {
  position: relative;
}

/* Override <th> styling for semantic table row headers */
.budget-table .row-header {
  border-bottom: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-weight: normal;
  color: revert;
  background-color: revert;
  position: relative; /* Fixes overflow issue on scroll for multi-line row content */
}

.budget-table tbody tr:not(.net-row) > .row-header,
.budget-table tbody tr:not(.net-row) > td {
  transition: box-shadow 0.15s ease;
}

.budget-table tbody tr.expanded-parent-row:not(.net-row) > .row-header,
.budget-table tbody tr.expanded-parent-row:not(.net-row) > td {
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.12);
}

.budget-table tbody tr:not(.net-row):hover > .row-header,
.budget-table tbody tr:not(.net-row):hover > td {
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.05);
}

.budget-table tbody tr.expanded-parent-row:not(.net-row):hover > .row-header,
.budget-table tbody tr.expanded-parent-row:not(.net-row):hover > td {
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.12);
}

/* Slight grey background for the children of the highlighted parent */
.budget-table tbody tr.expanded-group-row:not(.expanded-parent-row):not(.net-row) > .row-header,
.budget-table tbody tr.expanded-group-row:not(.expanded-parent-row):not(.net-row) > td {
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.04);
}

.budget-table tbody tr.expanded-group-row:not(.expanded-parent-row):not(.net-row):hover > .row-header,
.budget-table tbody tr.expanded-group-row:not(.expanded-parent-row):not(.net-row):hover > td {
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.06);
}

.budget-table tbody tr.expanded-group-row:not(.net-row) > .row-header {
  border-left: 2px solid rgba(0, 0, 0, 0.2);
}

.budget-table tbody tr.expanded-group-row:not(.net-row) > td:last-child {
  border-right: 2px solid rgba(0, 0, 0, 0.2);
}

.budget-table tbody tr.expanded-group-first:not(.net-row) > .row-header,
.budget-table tbody tr.expanded-group-first:not(.net-row) > td,
.budget-table tbody tr.expanded-group-only:not(.net-row) > .row-header,
.budget-table tbody tr.expanded-group-only:not(.net-row) > td {
  border-top: 2px solid rgba(0, 0, 0, 0.2);
}

.budget-table tbody tr.expanded-group-last:not(.net-row) > .row-header,
.budget-table tbody tr.expanded-group-last:not(.net-row) > td,
.budget-table tbody tr.expanded-group-only:not(.net-row) > .row-header,
.budget-table tbody tr.expanded-group-only:not(.net-row) > td {
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.budget-table tbody tr.unrecognized-function-row:not(.net-row) > .row-header,
.budget-table tbody tr.unrecognized-function-row:not(.net-row) > td {
  background-color: #f8d7da;
  color: #842029;
  box-shadow: inset 0 0 0 1000px rgba(220, 53, 69, 0.12);
}

.budget-table tbody tr.unrecognized-function-row:not(.net-row):hover > .row-header,
.budget-table tbody tr.unrecognized-function-row:not(.net-row):hover > td {
  background-color: #f1c2c7;
  box-shadow: inset 0 0 0 1000px rgba(220, 53, 69, 0.18);
}

.budget-table tbody tr.unrecognized-function-row:not(.net-row) > .row-header {
  font-weight: 600;
}

.add-row-modal {
  position: fixed; /* Fixed position to overlay the screen */
  top: 0;
  left: 0;
  bottom: 0;
  right: var(--assistant-panel-width, 0px);
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it overlays other elements */
}

/* Modal content styles */
.add-row-modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Adds spacing between rows */
  z-index: 1001; /* Ensure it overlays other elements */
}

.add-row-modal-content label {
  position: relative;
  font-size: 20px; /* Adjust font size as needed */
  margin-left: 20px; /* Reduced from 40px to balance with right side */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-row-modal-content input,
.add-row-modal-content select {
  width: 200px; /* Fixed width for all form elements */
  margin-left: 10px; /* Adds spacing between label and input */
  padding: 5px; /* Adds padding inside inputs for better appearance */
  font-size: 18px;
  flex-shrink: 0; /* Prevent shrinking */
  margin-right: 20px; /* Added right margin to balance with left margin of labels */
  text-align: left;
}

/* Modal title */
.add-row-modal-content h4 {
  margin-top: 0px;
  font-size: 20px;
  text-align: center; /* Center the header */
  margin-bottom: 20px; /* Add some space below the header */
}

/* Modal actions (buttons) */
.add-row-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.add-row-modal-actions button {
  margin-left: 10px;
  font-size: 16px;
  padding: 10px 20px;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.add-row-modal-actions-save-button {
  background-color: #007bff;
}

.add-row-modal-actions-cancel-button {
  background-color: #6c757d;
}

.add-row-modal-actions-save-button:hover {
  background-color: #0056b3;
}

.add-row-modal-actions-cancel-button:hover {
  background-color: #5a6268;
}

/* Hover-reveal for ShowGraphIcon inside budget tables (base chrome lives in shared/ShowGraphIcon.css) */
.budget-table .show-graph-icon {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.budget-table tr:hover .show-graph-icon,
.budget-table tr:focus-within .show-graph-icon,
.budget-table .show-graph-icon:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.line-item-table-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: var(--assistant-panel-width, 0px);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 110;
}

.line-item-table-modal {
  flex-shrink: 0;
  background-color: whitesmoke;
  padding: 15px 20px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 95%;
  height: 85%;
  position: relative;
  overflow: auto; /* Handle modal table overflow */
}

.line-item-table-container {
  height: 90%;
  overflow-y: auto; /* Enable vertical scrolling */
  border-radius: 10px;
}

.line-item-table {
  width: 100%;
  margin: 0px 0;
  border-collapse: separate;
  border-spacing: 0;
}

.line-item-table td {
  border-top: none;
  border-left: none;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 5px;
  text-align: center;
}

.line-item-table td:first-child {
  border-left: 1px solid #ccc;
}

.line-item-table th {
  border: 0;
  padding: 10px;
  text-align: center;
  background-color: #1f2f2c;
  color: white;
  position: sticky;
  top: 0; /* Sticky header to keep the header in view while scrolling */
  z-index: 2;
  /*
   * Paint the header grid with inset shadows (reliable under position: sticky).
   * The 1px outset shadow in the header color fills subpixel gaps between
   * adjacent sticky cells that otherwise show the modal background as white seams
   * at certain viewport widths.
   */
  box-shadow:
    inset 0 1px 0 #000,
    inset 0 -1px 0 #000,
    inset -1px 0 0 #000,
    1px 0 0 0 #1f2f2c,
    0 1px 0 0 #000;
}

.line-item-table th:first-child {
  box-shadow:
    inset 0 1px 0 #000,
    inset 0 -1px 0 #000,
    inset 1px 0 0 #000,
    inset -1px 0 0 #000,
    1px 0 0 0 #1f2f2c,
    0 1px 0 0 #000;
}

.line-item-table td.line-item-table-cell {
  padding: 8px;
}

.line-item-table-total-row {
  background-color: #f2f2f2;
  font-weight: bold;
  height: 38px;
}

.line-item-table-total-row td {
  border-bottom: 1px solid black;
}

.line-item-table-total-row td.line-item-table-cell {
  font-size: 16px;
}

.line-item-budget-edit-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.line-item-budget-input {
  width: 120px;
  border: 1px solid #0071eb;
  border-radius: 4px;
  padding: 4px 8px;
  text-align: right;
  color: black;
  background-color: white;
  font-size: 16px;
  outline: none;
}

.line-item-budget-undo-btn {
  border: 1px solid #0071eb;
  background: white;
  border-radius: 4px;
  color: #0071eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
}

/* Report modals use shared Modal; mirror .line-item-table-modal shell */
.report-line-item-modal.modal-full .modal-content {
  background-color: whitesmoke;
}

.report-line-item-modal .modal-body {
  padding: 0 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.report-line-item-modal .line-item-table-container {
  flex: 1;
  min-height: 0;
  height: auto;
}

.line-item-description-input {
  width: auto;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #666; /* WCAG update - contrast */
  border-radius: 4px;
  font-size: 16px;
  min-width: 0;
  max-width: 75%;
}

.line-item-edit-button {
  background-color: #3271e7; /* WCAG update - contrast */
  width: 60px;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px;
  margin: 2px;
  cursor: pointer;
}

.line-item-edit-button:hover {
  background-color: #1346a4; /* WCAG update - contrast */
}

.line-item-delete-button {
  background-color: #dc3545; /* WCAG update - contrast */
  width: 60px;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px;
  margin: 2px;
  cursor: pointer;
}

.line-item-delete-button:hover {
  background-color: #c82333; /* WCAG update - contrast */
}

.line-item-actions-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.line-item-modal-close-button {
  color: black;
  border: none;
  cursor: pointer;
  font-size: 28px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.line-item-modal-close-button:hover {
  background-color: #ccc;
  border-radius: 50%;
}

.description-save-cancel-buttons {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-top: 1px; /* Fine-tune vertical alignment with the input */
}

.line-item-graph-container {
  margin: 0px;
}

.add-line-item-button {
  cursor: pointer;
}

.add-line-item-button:hover {
  font-weight: bold;
}

.line-item-add-row-button {
  background-color: #e0e0e0;
  color: #404040;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 1;
}

.line-item-add-row-button:hover {
  background-color: #d6d6d6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.line-item-add-row-button--readonly {
  cursor: default;
  opacity: 0.6;
}

.line-item-add-row-button--readonly:hover {
  background-color: #e0e0e0;
  box-shadow: none;
}

.suggestions-list {
  position: absolute; /* Position the suggestions relative to the parent container */
  top: 100%; /* Place the list directly below the input box */
  left: 0; /* Align the list with the left side of the input */
  width: 100%; /* Match the width of the input box */
  margin: 0; /* Remove any default margin */
  padding: 0; /* Remove default padding */
  list-style: none; /* Remove bullets from the list */
  background-color: white; /* Make the background of the suggestions white */
  border: 1px solid #ccc; /* Add a border to separate the suggestions from the input */
  border-radius: 4px; /* Slightly round the corners */
  z-index: 10; /* Ensure the suggestions appear above other elements */
  max-height: 300px; /* Set a maximum height for the list */
  overflow-y: auto; /* Allow scrolling if there are many suggestions */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for depth */
}

.suggestions-list li {
  padding: 8px 12px; /* Add padding inside each suggestion */
  cursor: pointer; /* Change the cursor to indicate clickability */
}

.suggestions-list li:hover {
  background-color: #f0f0f0; /* Highlight the suggestion on hover */
}

.budget-settings-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.budget-settings-button:hover {
  font-size: 24px;
}

.budget-settings-menu-item {
  padding: 5px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 3px;
  font-weight: bold;
  text-align: center;
}

.budget-settings-menu-item:hover {
  background-color: #f0f0f0;
}

.add-row-icon {
  vertical-align: middle;
  cursor: pointer;
  margin: 0px 0px 2px 3px;
  color: #acacac;
  transition: color 0.2s ease;
}

.add-row-icon:hover {
  fill: #66bf81;
  font-weight: bold;
}

.column-config-dropdown-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0px 0px 2px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: inherit;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.column-config-dropdown-button:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.budget-search-clear-button {
  padding: 4px 10px;
  border: 1px solid #dc3545;
  border-radius: 20px;
  background-color: #dc3545;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.budget-search-clear-button:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.open-table-icon {
  margin-bottom: 3px;
  vertical-align: middle;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.open-table-icon:hover {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.drilldown-table-label {
  cursor: pointer;
}

.drilldown-table-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.unrecognized-function-hint {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.unrecognized-group-warning {
  color: #dc3545;
}

.drilldown-table-label:hover {
  color: #0056b3; /* WCAG update - contrast */
}

/* FilterDisplayButton styles */
.filter-display-btn {
  min-width: 130px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
  color: #404040;
  background-color: #e0e0e0;
  border: none;
  border-radius: 8px;
}
.filter-display-btn:hover {
  background-color: #d6d6d6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinning-icon {
  animation: spin 1s linear infinite;
}

/* || Sticky drilldown-table header (Budget Builder)
   In BudgetBuilder the only intended vertical scroll container is
   .budget-builder-container. The table sits inside several wrappers
   (.high-level-table-container, .budget-table-container, .scroll-wrapper)
   that each establish their own scroll context, and position: sticky always
   binds to the nearest one — so the header would scroll away with the table.
   Neutralizing those intermediate scroll contexts lets the header pin to the
   top of .budget-builder-container. Horizontal overflow of a wide drilldown
   table is handled by .budget-builder-container instead of the inner
   .scroll-wrapper. Scope this to .drilldown-table so Budget Summary wrappers
   can still scroll at high zoom. */
.budget-builder-container .high-level-table-container,
.budget-builder-container .budget-table-container,
.budget-builder-container .budget-table {
  overflow: visible;
}

.budget-builder-container .drilldown-table .scroll-wrapper {
  overflow-x: visible;
}

.budget-table thead th {
  white-space: pre-line;
}

.budget-builder-container .budget-table thead th,
.budget-builder-container .budget-table thead td {
  position: sticky;
  top: -10px;
  z-index: 5;
  background-color: #1f2f2c;
  color: white;
  white-space: pre-line;
}

/* Display Net row above table content but below table headers */
.budget-builder-container .budget-table tbody tr.net-row > td {
  position: relative;
  z-index: 4;
  background-color: white;
}

/* Budget Filter Modal Content Styles - for use within standardized Modal */
.budget-filter-modal-form-group {
  display: flex;
  flex-direction: column;
  margin: 0px 30px 0px 30px;
}

.budget-filter-modal-form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.budget-filter-modal-mode-selector {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  background-color: #f9f9f9;
}

.mode-options {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mode-option:hover {
  background-color: #f0f0f0;
}

.mode-option input[type="radio"] {
  margin: 0;
  margin-top: 2px;
}

.mode-label {
  font-weight: bold;
  color: #333;
  min-width: 80px;
}

.mode-description {
  color: #666;
  font-size: 14px;
}

.budget-filter-modal-input {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
}

.budget-filter-modal-input label {
  font-weight: 500;
  width: 140px;
  color: #333;
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 10px;
}

/* FilterSearchBox dropdown styling - increased text size */
.multi-select-dropdown {
  position: relative;
  width: 310px;
  font-size: 16px;
  margin-right: 10px;
}

.dropdown-header {
  border: 1px solid #767676; /* WCAG update - contrast */
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  font-size: 16px;
}

.dropdown-options-container,
.dropdown-search-container,
.dropdown-options,
.search-input {
  box-sizing: border-box;
}

.dropdown-options-container {
  position: absolute;
  z-index: 10000;
  animation: dropdownSlideDown 0.2s ease-out;
  transform-origin: top;
}

.dropdown-options-container.open-upward {
  animation: dropdownSlideUp 0.2s ease-out;
  transform-origin: bottom;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-search-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-input {
  width: 100%;
  font-size: 16px;
  padding: 8px 10px;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Make dropdown open upward when needed (for last dropdown or when space is limited) */
.dropdown-options-container.open-upward .dropdown-options {
  top: auto;
  bottom: 100%;
  border-top: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-options-container.open-upward .dropdown-search-container {
  border-top: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.dropdown-option {
  padding: 10px 12px;
  font-size: 16px;
}

.dropdown-option label {
  cursor: pointer;
  width: fit-content;
  font-size: 16px;
}

.dropdown-option input {
  cursor: pointer;
}

.dropdown-option:hover {
  background-color: #f5f5f5;
}

.dropdown-arrow {
  margin-left: 10px;
}

.advanced-options-toggle {
  cursor: pointer;
  color: #666666; /* WCAG update - contrast */
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.advanced-options-toggle:hover {
  background-color: #f0f0f0;
}

.filter-button-container {
  margin: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-button {
  background-color: white;
  color: #404040;
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-size: 16px;
}
.filter-button.active {
  background-color: white;
  font-weight: bold;
}
.filter-button:hover,
.filter-button.active:hover {
  background-color: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clear-filters-button {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.clear-filters-button:hover {
  color: darkred;
}

/* Hide print content on screen */
.print-content-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: -9999;
  background: white;
  opacity: 0;
  pointer-events: none;
}

/* Visible preview when user is reviewing report before printing */
.print-content-wrapper.print-preview-visible {
  z-index: 9999;
  opacity: 1;
  pointer-events: auto;
}

/* Sticky action bar for Generate Report button in preview mode */
.report-actions {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #dee2e6;
  z-index: 2; /* Fix display overlap bug */
}

.report-actions .generate-report-btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #dee2e6;
}

.report-actions .generate-report-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.report-share-error {
  padding: 12px 24px;
  background: #fee;
  color: #c00;
  font-size: 14px;
  border-bottom: 1px solid #fcc;
}

.report-actions .generate-report-btn {
  background: #1f2f2c;
  color: white;
  border-color: #1f2f2c;
}

.report-name-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  max-width: 420px;
}

.report-name-inline-label {
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
}

/* Modal body flex layout for sidebar */
.print-content-wrapper.print-preview-visible .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 90%;
  max-height: 1100px;
}

/* Sidebar layout: main content + reports sidebar */
.report-preview-with-sidebar {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.report-sidebar {
  width: 20%;
  min-width: 200px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Landscape previews: give the report pane more horizontal room */
.report-preview-with-sidebar--landscape .report-sidebar {
  width: 250px;
  min-width: 250px;
}

/* Main preview pane — owned here so all report types (Payroll, Board, Budget)
   get a constrained scrollport without depending on BudgetReportContent.css */
.report-preview-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.report-preview-main > * {
  min-width: 0; /* Prevents children from overflowing */
  width: 100%;
  box-sizing: border-box;
}

.report-sidebar-title {
  color: #212529;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: none;
}
.report-sidebar-title.toggle:hover {
  color: #007bff;
  cursor: pointer;
}
.report-sidebar-title.expandable {
  padding-bottom: 0;
}
.report-sidebar-title.last {
  margin-top: 0;
  padding: 16px;
  border-bottom: 1px solid #dee2e6;
}

.expand-btn {
  font-size: 14px;
  display: inline-block;
}
.expand-btn:hover {
  cursor: pointer;
  color: #007bff;
}

.report-sidebar-empty {
  padding: 16px;
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

.reports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.reports-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
}

.reports-item:hover {
  background: #f1f3f5;
}

.reports-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.reports-item-actions {
  display: flex;
  align-items: center;
  justify-items: flex-start;
  gap: 4px;
}

.reports-item-copy {
  padding: 4px;
  padding-left: 0;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  border-radius: 4px;
  font-size: 11px;
}

.reports-item-copy:hover {
  color: #1f2f2c;
  background: rgba(31, 47, 44, 0.08);
}

.reports-item-date {
  font-size: 13px;
  color: #495057;
}

.reports-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
  word-break: break-word;
}

.reports-item-link {
  font-size: 12px;
  color: #1f2f2c;
  text-decoration: none;
}

.reports-item-link:hover {
  text-decoration: underline;
}

.reports-item-delete {
  padding: 2px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: auto;
  margin-bottom: auto;
}

.reports-item-delete:hover:not(:disabled) {
  color: #dc3545;
  background: rgba(31, 47, 44, 0.08); /* WCAG update - contrast */
}

.reports-item-delete:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.report-sidebar-section {
  margin-top: 0;
  margin-bottom: 0;
  padding: 16px;
  padding-top: 0;
  border-bottom: 1px solid #dee2e6;
}

.report-sidebar-section .section-title {
  border-bottom: none;
  padding-left: 0;
  padding-top: 0;
}

.report-name-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  color: #212529;
  background: #fff;
  box-sizing: border-box;
}

.report-name-input:focus {
  outline: 2px solid rgba(31, 47, 44, 0.18);
  border-color: #1f2f2c;
}

.section-description {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #666; /* WCAG update - contrast */
}

.section-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-options label {
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-options input {
  cursor: pointer;
}

/* Visually hide figcaptions - still accessible for assistive technology  */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Wide / landscape reports: reclaim the default 100px preview gutters from
   BudgetReportContent.css so dense tables fit without clipping. Opt-in only. */
.report-preview-with-sidebar--landscape .print-container.print-output-styles,
.print-container.print-output-styles.print-container--landscape {
  padding: 0 16px;
  box-sizing: border-box;
  overflow-x: auto;
}

/* || Print Preview Styling */

/* Show only print content when printing */
@media print {
  /* Force background graphics to print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body > *:not(.print-content-wrapper) {
    display: none !important;
  }

  .print-content-wrapper .modal-header {
    display: none !important;
  }

  /* Hide non-report content */
  .print-content-wrapper .no-print {
    display: none !important;
  }
}

.budget-table-container {
  width: 98% !important;
  margin: 1%;
  background-color: #f0f8ff;
  border-radius: 10px;
  border: 1px solid #ddd;
  overflow-y: auto;
  /* Remove height constraints */
  max-height: unset;
}

.budget-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  overflow-y: auto;
}

.budget-table td {
  max-height: 100px;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.budget-table th {
  background-color: #1f2f2c;
  padding: 10px;
  color: white;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 1;
}

.budget-table-budget-header-inner {
  position: relative;
  width: 100%;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.budget-table-budget-header-config {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.expand-arrow {
  cursor: pointer;
}

/* Use in place of expand arrow to match indentation */
.indent-for-no-expand-row {
  display: inline-block;
  margin-left: 30px;
  margin-right: 5px;
}

.budget-table-mode-button {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 4px;
}

.budget-table-mode-button-selected {
  background-color: #1f2f2c;
  color: white;
  border-color: #1f2f2c;
}

.mode-button-container {
  margin-left: 20px;
  margin-top: 20px;
}

/* Special case: add side borders on outermost table body items */
.budget-table tbody tr th:first-child {
  border-left: 1px solid #ddd !important;
}
.budget-table tbody tr td:last-child {
  border-right: 1px solid #ddd !important;
}

.column-config-dropdown-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 2px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.column-config-dropdown-button:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.column-config-dropdown-version-select {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.column-config-dropdown-version-select .action-select-trigger {
  width: 100%;
}

.action-select {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.action-select-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 4px 24px 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.action-select-trigger:hover:not(:disabled) {
  border-color: #007bff;
}

.action-select-trigger:focus,
.action-select-trigger.open {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.action-select-trigger:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.action-select-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.action-select-trigger-label.placeholder {
  color: #6c757d;
}

.action-select-chevron {
  position: absolute;
  right: 6px;
  top: 50%;
  display: flex;
  align-items: center;
  color: #333;
  font-size: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.action-select-trigger:disabled .action-select-chevron {
  color: #6c757d;
}

.action-select-menu {
  position: fixed;
  top: var(--action-select-top);
  bottom: var(--action-select-bottom, auto);
  left: var(--action-select-left);
  box-sizing: border-box;
  width: var(--action-select-width);
  max-height: var(--action-select-max-height, min(320px, calc(100vh - var(--action-select-top) - 8px)));
  z-index: 9999;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.action-select-list {
  margin: 0;
  padding: 0;
}

.action-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  color: #1f2937;
  font-size: 14px;
  cursor: pointer;
}

.action-select-option:hover,
.action-select-option.highlighted {
  background: #f5f6f8;
}

.action-select-option[aria-selected="true"] {
  font-weight: 600;
}

.action-select-overflow-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.action-select-option .action-select-overflow-label {
  flex: 1 1 auto;
}

.action-select-option-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 16px;
}

.tooltip.action-select-overflow-tooltip {
  width: auto;
  max-width: 280px;
  padding: 6px 10px;
  white-space: normal;
  z-index: 10000;
  transform: translateY(-100%);
}

.action-select-option-icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
}

.action-select-option-icon {
  display: inline-flex;
  align-items: center;
  padding-top: 2px;
  color: #1f2f2c;
  font-size: 16px;
  line-height: 1;
}

.action-select-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 0 6px;
  border-radius: 4px;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.action-select-option-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.action-select-option-action-wrap {
  display: inline-flex;
  flex-shrink: 0;
}

.action-select-option-action {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: #0071eb;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.action-select-option:hover .action-select-option-action,
.action-select-option.highlighted .action-select-option-action {
  opacity: 1;
  pointer-events: auto;
}

.action-select-option-action:hover {
  color: #0155af;
  text-decoration: underline;
}

.action-select-option-action--icon {
  padding: 2px;
  font-size: 14px;
  line-height: 1;
}

.action-select-option-action--icon:hover {
  text-decoration: none;
}

.action-select-option-action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-select-option-action-icon svg {
  stroke: currentColor;
  stroke-width: 36;
  paint-order: stroke fill;
}

.action-select-option-action-icon--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.action-select-option-action--icon:hover .action-select-option-action-icon--rest {
  opacity: 0;
}

.action-select-option-action--icon:hover .action-select-option-action-icon--hover {
  opacity: 1;
}

.action-select-action-tooltip {
  width: auto;
  max-width: 220px;
  padding: 6px 10px;
  white-space: nowrap;
  z-index: 10000;
}

.action-select-option--footer {
  position: sticky;
  bottom: 0;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  font-weight: 500;
  font-size: 14px;
  color: #0071eb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-select-option--footer:hover,
.action-select-option--footer.highlighted {
  background: #f5f6f8;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: normal;
  width: 200px;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  transform: translateY(-50%);
  left: 105%;
  top: -5px;
  z-index: 1400; /* Higher than modal overlay (1300) */
  line-height: 1.6;
}

.tooltip.visible {
  visibility: visible;
  opacity: 1;
}

/* Arrow styling */
.tooltip.tooltip-arrow::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
}

/* Arrow when tooltip is on the left of the trigger */
.tooltip.tooltip-arrow.tooltip-left::before {
  left: auto;
  right: -8px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.9);
}

.tooltip > div {
  margin-bottom: 6px;
}

.tooltip > div:last-child {
  margin-bottom: 0;
}

.tooltip strong {
  font-weight: 600;
  margin-right: 4px;
}

.add-item-button-container {
  margin: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px;
}

.add-item-button-container:hover {
  background-color: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.export-png-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #007bff;
  font-size: 14px;
  cursor: pointer;
}

.export-png-button:hover:not(:disabled) {
  background: #eee;
}

.export-png-button:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.export-png-button--reveal-on-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

:hover > .export-png-button--reveal-on-hover,
:focus-within > .export-png-button--reveal-on-hover,
.export-png-button--reveal-on-hover:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .export-png-button--reveal-on-hover {
    opacity: 1;
    pointer-events: auto;
  }
}

.show-graph-icon {
  margin: 0px 0px 0px 7px;
  cursor: pointer;
  background: #fff; /* WCAG update - contrast */
  border: 1px solid #696969; /* WCAG update - contrast */
  border-radius: 5px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.show-graph-icon:hover {
  background: #eee;
}

.show-graph-icon svg {
  display: block;
  transition: transform 0.2s ease;
}

/* Style all paths to black first (for axes) */
.show-graph-icon svg path {
  fill: black;
  stroke: black;
  stroke-width: 0.5px;
}

/* Style the line graph (typically the last path element) - make it red */
.show-graph-icon svg path:last-child {
  fill: red !important;
  stroke: red;
  stroke-width: 0.5px;
}

/* || Heading Styles
----------------------------------------------------------------------------------- */

.board-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #f0f0f0;
  flex-shrink: 0;
}
.sub-header {
  width: 90%;
  text-align: left;
  margin: unset;
}
/* Add slight margin for content alignment */
.side-margin {
  margin: 0 5%;
}

/* Table caption styling - provide the apperance of h2 headers */
.table-caption {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 0 10px 0 !important;
  caption-side: top;
}
/* Table caption styling - provide the appearance of smaller headers */
.table-caption-small {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 30px 0 10px 0 !important;
  caption-side: top;
}

/* || Layout Styles
----------------------------------------------------------------------------------- */

/* Main report content area */
.board-report-content {
  margin: 40px auto 20px auto;
}

/* Chart row */
.board-report-chart-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-evenly;
  align-items: flex-end;
  margin-bottom: 40px;
}

/* Chart container */
.chart-content {
  justify-items: center;
  max-width: 400px;
  break-inside: avoid;
}
.chart-content.single-chart {
  max-width: unset;
}

/* All table content container */
.board-report-table-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0% 5%;
}

/* Individual table container */
.budget-table-container {
  width: 100%;
}

/* Add whitespace to center content without impacting charts */
.highlights-container,
.board-report-table-container {
  padding: 0 20px;
}

/* || Report Content
----------------------------------------------------------------------------------- */

.bar-chart-as-image {
  transform: scale(1);
}

/* View-only filter pills on the report */
.print-container .remove-filter-btn {
  display: none;
}

/* || Table Styles
----------------------------------------------------------------------------------- */

/* General table styles */
.budget-table {
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  width: 100%;
}

/* Fixed width for first column */
.budget-table thead .qtr-first-col,
.budget-table tbody .row-header {
  min-width: 125px;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Maintain <td> styles for row headers */
.budget-table .row-header {
  border-bottom: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-weight: normal;
  color: revert;
  background-color: revert;
}

/* || Shared Special Cases
---------------------------------------------------------------------------------- */

/* Round table edges to account for table captions */
.budget-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}
.budget-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}
.budget-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.budget-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

/* Remove background + border for table caption */
.budget-table-container {
  background-color: transparent !important;
  border: none !important;
}

/* Apply <th> style for visual consistency */
.empty-table-header {
  border-radius: 10px 0 0 0;
  border-collapse: separate;
  background-color: #1f302c;
  border: none !important;
}

/* Key highlights indentation */
.highlight-item {
  font-size: 18px;
  margin: 0 20px 5px 0;
}

/* || Responsive Styles
---------------------------------------------------------------------------------- */

/* Wrap -- single column */
@media (width <= 1135px) {
  /* Reset table layout */
  .budget-table {
    table-layout: unset;
  }
  .budget-table thead .qtr-first-col,
  .budget-table tbody .row-header {
    width: revert;
  }
}

.file-uploader-wayfinder-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.file-uploader-wayfinder__dialog {
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  min-width: 320px;
  text-align: center;
}

.file-uploader-wayfinder__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.file-uploader-wayfinder__option {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
}

/* Maintain styles with those in FileUploaderCard.css */

.file-uploader-container {
  width: 97%;
  overflow-y: auto;
  padding: 20px;
}

.uploader-description {
  color: #666;
  margin-bottom: 20px;
}

.fiscal-year-upload-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fiscal-year-selector {
  text-align: left;
  z-index: 1;
  margin-right: 20px;
}

.fiscal-year-selector label {
  margin-right: 10px;
  font-weight: 500;
  color: #2c3e50;
}

.budget-version-selector {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  text-align: right;
  z-index: 1;
}

.budget-version-selector label {
  margin-right: 10px;
  margin-bottom: 4px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
  text-align: right;
}

.budget-version-input {
  padding: 8px 12px;
  border: 1px solid #888; /* WCAG update - contrast  */
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: #2c3e50;
  width: 200px;
}

.budget-version-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.budget-version-selector .help-text {
  margin-top: 4px;
  color: #888;
  font-size: 11px;
  font-style: italic;
  max-width: 200px;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.month-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  height: 200px;
  display: flex;
  flex-direction: column;
}

.month-card-with-files {
  border: 1px solid #87b6a7; /* BalanceHQ green border */
  box-shadow: 0 2px 4px rgba(144, 238, 144, 0.2);
}

.month-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.month-header {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.file-status {
  flex-grow: 1;
  margin-bottom: 10px;
}

.no-file {
  color: #666; /* WCAG update - contrast  */
  font-style: italic;
  font-size: 14px;
}

.file-selected,
.files-uploaded {
  font-size: 14px;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.files-count {
  font-weight: 500;
  color: #3498db;
  margin-bottom: 6px;
  font-size: 13px;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browse-button {
  background-color: #f8f9fa;
  border: 1px solid #888; /* WCAG update - contrast  */
  border-radius: 4px;
  color: #333;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.browse-button:hover {
  background-color: #e9ecef;
  border-color: #666; /* WCAG update - contrast  */
}

.drag-drop-text {
  font-size: 12px;
  color: #666; /* WCAG update - contrast  */
}

.upload-button-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.upload-button {
  background-color: #0071eb; /* WCAG update - contrast */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.upload-button:hover {
  background-color: #0056b3; /* WCAG update - contrast */
}

.upload-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.progress-bars {
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
}

.progress-item {
  margin-bottom: 8px;
}

.progress-filename {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 2px;
}

.progress-bar-container {
  height: 6px;
  background-color: #ecf0f1;
  border-radius: 3px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 10px;
  color: #666;
}

/* Loading spinner styles */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 20px;
  color: #c33;
  font-size: 14px;
}

.help-text {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 12px;
  font-style: italic;
}

.duplicate-warnings-modal-body {
  padding: 8px 24px 0;
}

.duplicate-warnings-modal-body p {
  margin: 0 0 16px;
  color: #666;
  line-height: 1.5;
}

.duplicate-warnings-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
}

.duplicate-warnings-table-wrapper + p {
  margin-top: 16px;
}

.duplicate-warnings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.duplicate-warnings-table th,
.duplicate-warnings-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.duplicate-warnings-table th {
  background-color: #f5f7fa;
  font-weight: 600;
  color: #2c3e50;
  position: sticky;
  top: 0;
}

.duplicate-warnings-table tbody tr:hover {
  background-color: #f9fbfd;
}

.file-uploader-card {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.file-uploader-card.card-with-files {
  border: 1px solid #87b6a7; /* BalanceHQ green border */
  box-shadow: 0 2px 4px rgba(144, 238, 144, 0.2);
}

.file-uploader-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.file-upload-card-header {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.file-status {
  flex-grow: 1;
  margin-bottom: 10px;
}

.no-file {
  color: #666; /* WCAG update - contrast */
  font-style: italic;
  font-size: 14px;
}

.file-status-container {
  border: 1px solid #87b6a7;
  gap: 5px;
  overflow-y: auto;
}

.existing-files,
.selected-files {
  font-size: 14px;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.being-replaced {
  opacity: 0.7;
}

.replacement-indicator {
  font-size: 11px;
  color: #a55712; /* WCAG update - contrast */
  font-style: italic;
  margin-top: 2px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.replacement-icon {
  font-size: 12px;
}

.replacement-files {
  border-left: 3px solid #87b6a7;
  padding-left: 8px;
  margin-top: 2px;
}

.new-file {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 2px 0;
}

.existing-file,
.selected-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.file-name {
  font-weight: 500;
  width: 90%;
  color: #2c3e50;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size,
.track-files-file-info {
  color: #555; /* WCAG update - contrast */
  font-size: 11px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  background-color: #c4e9c6;
}

.file-size-before-upload {
  color: #555; /* WCAG update - contrast  */
  font-size: 11px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.file-name-x-button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.remove-file {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0 5px;
  margin-left: 5px;
}

.remove-file:hover {
  color: #c0392b;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browse-button {
  background-color: #f8f9fa;
  border: 1px solid #888; /* WCAG update - contrast */
  color: #333;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.browse-button:hover {
  background-color: #e9ecef;
  border-color: #666; /* WCAG update - contrast */
}

.drag-drop-text {
  font-size: 12px;
  color: #666; /* WCAG update - contrast */
}

/* Progress bar styling */
.progress-bars {
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
}

.progress-item {
  margin-bottom: 8px;
}

.progress-filename {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 2px;
}

.progress-bar-container {
  height: 6px;
  background-color: #ecf0f1;
  border-radius: 3px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 10px;
  color: #666;
}

/* Account Code Schema Builder — option 4b ("soft cards").
   Plain CSS, no preprocessor. Scoped under .acs, which is applied to the Modal. */

.acs-subtitle {
  margin: 0 0 5px;
  padding: 0 24px;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6570;
}

/* Tabs — Budget/Expense and Revenue schemas */

.acs-tabs {
  display: flex;
  gap: 6px;
  padding: 0 24px 14px;
  border-bottom: 1px solid #eef1f4;
}

.acs-tab {
  padding: 6px 14px;
  border: 1px solid #dfe5eb;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #1c2024;
  cursor: pointer;
}

.acs-tab.is-active {
  background: #e7effa;
}

/* An inactive tab whose schema still has problems — the count comes from the builder. */
.acs-tab.has-errors {
  border-color: #c25b5b;
  color: #8f2020;
}

.acs-tab-count {
  font-weight: 500;
}

.acs-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 22px;
}

/* Example ledger code, one column per dash position */

.acs-example {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #e4ebf2;
  border-radius: 7px;
  background: #f5f8fb;
}

.acs-example-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.acs-example-title {
  font-size: 11px;
  font-weight: 700;
  color: #41566b;
}

.acs-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #7d8b98;
}

.acs-code {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  color: #1c2024;
}

.acs-code-col {
  display: flex;
  align-items: baseline;
}

.acs-dash {
  color: #8a949e;
}

.acs-code-val {
  padding: 3px 6px;
  border-radius: 5px;
  background: transparent;
}

.acs-code-val.is-hovered {
  background: #cfe1f4;
}

/* One card per position */

.acs-cards {
  /* Equal columns: a wrapped last row keeps the same card width as the rows above. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.acs-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 38, 54, 0.06);
}

/* FormFieldset renders a <legend>; the visible position marker is in the head row. */
.acs-card > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.acs-card.is-hovered {
  background: #e4eef9;
}

.acs-card.has-problem {
  border-color: #c25b5b;
}

.acs-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-bottom: 1px solid #e6ebf0;
  background: #f0f4f8;
}

.acs-card-pos {
  font-size: 10.5px;
  font-weight: 700;
  color: #41566b;
}

.acs-card-flag {
  padding: 1px 6px;
  border: 1px solid #efd3d3;
  border-radius: 999px;
  background: #fdf4f4;
  color: #8f2020;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.acs-card-width {
  font-size: 10px;
  color: #7d8b98;
}

.acs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 9px;
}

.acs-field:first-of-type {
  padding-top: 10px;
}

.acs-field + .acs-field {
  margin-top: 9px;
}

.acs-field:last-of-type {
  padding-bottom: 10px;
}

.acs-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #7d8b98;
}

.acs-field select {
  width: 100%;
  box-sizing: border-box;
}

.acs-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 6px;
  border: 1px solid #d4dce4;
  border-radius: 5px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  color: #1c2024;
}

.acs-card-key,
.acs-card-note,
.acs-card-problem {
  margin: 0 9px 10px;
  font-size: 10.5px;
  line-height: 1.35;
}

.acs-card-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #7d8b98;
}

.acs-card-note {
  color: #5b6570;
}

.acs-card-problem {
  color: #8f2020;
}

.acs-card-problem span {
  font-weight: 700;
}

/* Inline validation panels — never a toast */

.acs-panel {
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  line-height: 1.45;
}

.acs-panel p {
  margin: 0;
}

.acs-panel--ok {
  border: 1px solid #d3e4d8;
  background: #f2f8f4;
  color: #2c4c35;
}

.acs-panel--warn {
  border: 1px solid #e6dcc4;
  background: #fbf7ed;
  color: #5c4a22;
}

.acs-panel--error {
  border: 1px solid #efd3d3;
  background: #fdf4f4;
  color: #6f2323;
}

/* Desktop-first; must not break at 1024px. Below ~1100px the cards wrap
   into two rows rather than shrinking below a usable width. */
@media (max-width: 1100px) {
  .acs-code {
    flex-wrap: wrap;
  }
}

.form-fieldset {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin: 0;
  padding: 12px 14px 14px;
  min-width: 0;
}

.form-fieldset-legend {
  padding: 0 6px;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

.form-fieldset-hint {
  margin: 0 0 10px;
}

.financial-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.financial-files-header h2 {
  margin: 0;
}

.download-all-fiscal-files__error {
  margin: 8px 0 0;
  color: #c0392b;
  font-size: 13px;
}

.notification {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  min-width: 300px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInFromTop 0.3s ease-out;
  text-align: center;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.notification-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.notification-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.notification-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.notification-success .notification-close:hover {
  background-color: rgba(21, 87, 36, 0.1);
}

.notification-error .notification-close:hover {
  background-color: rgba(114, 28, 36, 0.1);
}

.notification-info .notification-close:hover {
  background-color: rgba(12, 84, 96, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .notification {
    left: 20px;
    right: 20px;
    transform: none;
    min-width: auto;
  }

  .notification-content {
    padding: 12px;
  }

  .notification-message {
    font-size: 13px;
  }
}

/* Processing Modal Content Styles - for use within standardized Modal */

.processing-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  text-align: center;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e3f2fd;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.processing-message {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  max-width: 400px;
}

.processing-dots {
  display: flex;
  gap: 8px;
}

.processing-dots span {
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.processing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.processing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .processing-message {
    font-size: 14px;
  }

  .processing-spinner {
    width: 50px;
    height: 50px;
  }
}

/* Two yearly cards instead of a month grid; card chrome reuses SUITrackFileUploader.css */

.keystone-files-grid {
  grid-template-rows: auto;
}

/* Maintain styles with those in FileUploaderCard.css */

.uploader-description {
  color: #666;
  margin-bottom: 20px;
}

.fiscal-year-selector {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.fiscal-year-selector label {
  margin-right: 10px;
  font-weight: 500;
  color: #2c3e50;
}

.files-section-container {
  margin-top: 20px;
}

.frequency-section {
  margin-bottom: 20px;
}

.frequency-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  margin-top: 0;
}

.annual-toggle-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 2px solid #888; /* WCAG update - contrast  */
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.2s ease;
  margin-top: 20px;
  margin-bottom: 20px;
}

.annual-toggle-button:hover {
  background-color: #e9ecef;
  border-color: #888; /* WCAG update - contrast */
}

.annual-toggle-button:active {
  transform: scale(0.98);
}

.toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  min-width: 16px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.sisfin-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-template-rows: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.uploader-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  height: 180px;
  display: flex;
  flex-direction: column;
}

.month-card-with-files {
  border: 1px solid #87b6a7; /* BalanceHQ green border */
  box-shadow: 0 2px 4px rgba(144, 238, 144, 0.2);
}

.month-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.month-header {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.file-status {
  flex-grow: 1;
  margin-bottom: 10px;
}

.no-file {
  color: #666; /* WCAG update - contrast  */
  font-style: italic;
  font-size: 14px;
}

.file-selected,
.files-uploaded {
  font-size: 14px;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.files-count {
  font-weight: 500;
  color: #3498db;
  margin-bottom: 6px;
  font-size: 13px;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  width: 100%;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0 5px;
  margin-left: 5px;
}

.remove-file-btn:hover {
  color: #c0392b;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browse-button {
  background-color: #f8f9fa;
  border: 1px solid #888; /* WCAG update - contrast  */
  border-radius: 4px;
  color: #333;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.browse-button:hover {
  background-color: #e9ecef;
  border-color: #666; /* WCAG update - contrast  */
}

.drag-drop-text {
  font-size: 12px;
  color: #666; /* WCAG update - contrast  */
}

.progress-bars {
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
}

.progress-item {
  margin-bottom: 8px;
}

.progress-filename {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 2px;
}

.progress-bar-container {
  height: 6px;
  background-color: #ecf0f1;
  border-radius: 3px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 10px;
  color: #666;
}

/* Loading spinner styles */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Conversion error styles */
.conversion-errors {
  background-color: #ffebee;
  border: 1px solid #f44336;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  color: #c62828;
}

.conversion-errors h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.conversion-errors ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.conversion-errors li {
  margin-bottom: 4px;
  font-size: 13px;
}

.dismiss-errors {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.dismiss-errors:hover {
  background-color: #d32f2f;
}

/* File warning styles (non-blocking) */
.conversion-warnings {
  background-color: #fff8e1;
  border: 1px solid #ffb300;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  color: #8d6e00;
}

.conversion-warnings h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.conversion-warnings ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.conversion-warnings li {
  margin-bottom: 4px;
  font-size: 13px;
}

.dismiss-errors--warning {
  background-color: #8d6e00;
}

.dismiss-errors--warning:hover {
  background-color: #6d5500;
}

.manual-schema-modal {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #f5f5f5;
  color: #333;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #f44336;
}

.help-text {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px 24px;
  border-top: 1px solid #e0e0e0;
}

.cancel-button {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #555;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-button:hover {
  border-color: #ccc;
  background-color: #f9f9f9;
}

.submit-button {
  padding: 12px 24px;
  border: none;
  background-color: #2196f3;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.submit-button:hover:not(:disabled) {
  background-color: #1976d2;
}

.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Category section chrome; month cards reuse SUITrackFileUploader.css */

.webb-city-category-section {
  margin-bottom: 32px;
}

.webb-city-category-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  margin-top: 0;
}

.build-header {
  background-color: #1f2f2c;
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  min-height: 55px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #87b6a7;
  padding-right: var(--app-header-help-reserve);
}

.year-version-selector {
  display: flex;
  padding: 5px 0px 5px 10px;
  gap: 10px;
  align-items: center;
}

.year-version-selector-action-select .action-select-trigger {
  min-width: 220px;
  max-width: 300px;
}

.year-version-selector-action-select--year .action-select-trigger {
  min-width: 108px;
  max-width: 116px;
}

.year-version-selector-action-select--board-approved .action-select-trigger {
  min-width: 64px;
  max-width: 80px;
}

.year-version-selector-select {
  padding: 4px 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 16px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  max-width: 230px;
}

.year-version-selector-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.year-version-selector-select:hover {
  border-color: #007bff;
}

.year-version-selector-select:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.year-version-selector-label {
  font-weight: bold;
  color: white;
  font-size: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  margin-left: 5px;
}

.new-year-modal-form {
  display: flex;
  flex-direction: column;
  margin: 0px 20px 20px 20px;
}

.new-version-modal-form {
  display: flex;
  flex-direction: column;
  margin: 20px;
}

.new-version-modal-form .modal-button-group,
.new-year-modal-form .modal-button-group {
  margin: 12px 0 0;
}

.new-version-modal-form .modal-form-group input[type="checkbox"],
.new-year-modal-form .modal-form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  cursor: pointer;
}

.forecast-version-select {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forecast-version-select--inline {
  justify-content: flex-start;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.forecast-version-select-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.forecast-version-select-menu {
  flex-shrink: 0;
}

.forecast-version-select-label {
  font-weight: 600;
  color: white;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.forecast-version-select-dropdown {
  flex: 1 1 auto;
  min-width: 100px;
  width: 100%;
  padding: 4px 24px 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23333%27 d=%27M2 4l4 4 4-4%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  font-size: 14px;
  cursor: pointer;
  max-width: 200px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.forecast-version-select-dropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.budget-table thead th:has(.forecast-version-select--inline) {
  min-width: 240px;
  width: 26%;
  text-align: left;
  overflow: visible;
  position: sticky;
  left: 0;
  z-index: 3;
  background-color: #1f2f2c;
}

@media (max-width: 1280px) {
  .forecast-version-select--inline {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .forecast-version-select-controls {
    width: 100%;
  }

  .forecast-version-select-dropdown {
    max-width: none;
  }
}

.board-approved-create-version-prompt {
  display: flex;
  flex-direction: column;
  margin: 20px;
}

.board-approved-create-version-prompt__copy {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  color: #212529;
}

.board-approved-create-version-prompt .modal-button-group {
  margin: 12px 0 0;
}

/* Delete Budget Version Confirmation Modal */
.delete-budget-version-modal-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Warning Banner */
.warning-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
}

.warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.warning-text {
  color: #856404;
  font-size: 14px;
  line-height: 1.5;
}

.warning-text strong {
  font-weight: 600;
}

/* Version Info Section */
.version-info {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
}

.version-info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.version-info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #495057;
  width: 100px;
  flex-shrink: 0;
}

.info-value {
  color: #212529;
  flex: 1;
}

/* Confirmation Section */
.confirmation-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.confirm-input {
  padding: 10px 12px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.confirm-input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.confirm-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.confirm-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
}

.cancel-button,
.confirm-delete-button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
}

.cancel-button:hover:not(:disabled) {
  background-color: #e2e6ea;
}

.cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.confirm-delete-button {
  background-color: #dc3545;
  color: white;
}

.confirm-delete-button:hover:not(:disabled) {
  background-color: #c82333;
}

.confirm-delete-button:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 600px) {
  .delete-budget-version-modal-content {
    padding: 16px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .cancel-button,
  .confirm-delete-button {
    width: 100%;
  }

  .info-label {
    width: 80px;
  }
}

/* AuthenticationCard.css */
.authentication-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  min-height: 100vh;
  background-color: #eeeeee;
}

.login-logo {
  width: 300px;
  margin-bottom: 5vh;
}

.authentication-card {
  width: auto;
  padding: 40px;
  margin: 0 3%;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.authentication-header h2 {
  line-height: 1;
  margin: 0px 0px 20px 0px;
}

.signin-provider-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 95%;
  margin-bottom: 20px;
  gap: 15px;
}

.authentication-button {
  width: 50%;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 10px 15px;
  background-color: #ffffff;
  display: flex;
  font-size: 16px;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  justify-content: center;
}

.authentication-button:hover {
  background-color: #f3f3f3;
}

.button-icon {
  width: 5vh;
  max-width: 30px;
  height: 5vh;
  max-height: 30px;
  margin-right: 10px;
}

.email-password-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 95%;
  gap: 5px;
}

.email-password-container input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.password-toggle-button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
}

.password-toggle-button:hover {
  color: #333;
}

.feedback-message {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border-radius: 3px;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.login-create-account-button {
  width: 100%;
  margin: 15px 0;
  justify-content: center;
  padding: 10px 15px;
  background-color: #87b6a7;
  color: white;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.login-create-account-button:hover {
  background-color: #73a796;
}

.footer-text {
  font-size: 12px;
  text-align: center;
  color: #8d8d8d;
}

.footer-text-link {
  color: inherit;
  text-decoration: underline;
}

.footer-text-link:hover {
  color: #333;
}

.toggle-auth-mode {
  cursor: pointer; /* Changes the mouse to a pointer */
  text-decoration: none; /* Removes underline by default */
  color: inherit; /* Keeps the text color as it is in the parent */
}

.toggle-auth-mode:hover {
  text-decoration: underline; /* Underlines the text on hover */
}

/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Arial", sans-serif;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1f2f2c, #87b6a7);
  color: #ffffff;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition:
    transform 1s ease,
    opacity 1s ease;
  z-index: 10;
}

.loading-container.exit {
  transform: translateY(-100%); /* Slide up */
  opacity: 0; /* Fade out */
}

/* Logo Styling */
.logo-container {
  margin-bottom: 20px;
}

.logo-loading {
  width: 400px; /* Set the width to make the logo bigger */
  height: auto; /* Maintain the aspect ratio of the logo */
  animation: fadeIn 1.5s ease-in-out infinite alternate; /* Keep the fade-in animation */
}

/* Spinner Styling */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Keyframes for Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.compare-header {
  display: flex;
  height: 55px;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--app-header-help-reserve) 0 20px;
  border-bottom: 3px solid #87b6a7;
  background-color: #1f2f2c;
  color: white;
}

.peer-group-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.peer-group-selector label {
  font-weight: bold;
  color: white;
  margin: 0;
  white-space: nowrap;
}

.peer-group-dropdown {
  padding: 6px 8px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M2 5l6 6 6-6%27/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 32px;
}

.peer-group-dropdown:hover {
  border-color: #007bff;
}

.peer-group-dropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.peer-group-dropdown:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.help-button {
  display: flex;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.help-button svg {
  display: block;
}

.app-header-help .help-button {
  height: 100%;
}

.help-button:hover {
  color: #87b6a7;
}

.help-button:focus-visible {
  outline: 2px solid #87b6a7;
  outline-offset: 2px;
}

.help-modal {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  flex: 1;
}

.help-modal__compose,
.help-modal__notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafbfc;
}

.help-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.help-modal__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.help-modal__input,
.help-modal__textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}

.help-modal__textarea {
  resize: vertical;
  min-height: 120px;
}

.help-modal__input:focus,
.help-modal__textarea:focus {
  outline: 2px solid #0071eb;
  outline-offset: 1px;
  border-color: #0071eb;
}

.modal-button-group.help-modal__actions {
  margin: 12px 0 0;
}

.help-modal__message {
  margin: 4px 0 0;
  font-size: 0.875rem;
}

.help-modal__message--error {
  color: #b42318;
}

.help-modal__message--success {
  color: #027a48;
}

.help-modal__notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-modal__note {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.help-modal__note--focused {
  border-color: #0071eb;
  background: #f0f7ff;
  box-shadow: inset 3px 0 0 #0071eb;
}

.help-modal__note-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f2;
}

.help-modal__note-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
}

.help-modal__note-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
}

.help-modal__note-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-modal__note-paragraph {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
}

.help-modal__note-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef0f2;
}

.help-modal__note-meta,
.help-modal__note-audience {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.help-modal__note-audience {
  font-weight: 500;
  color: #4b5563;
}

.help-modal__audience-subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.help-modal__module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 12px;
}

.help-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
}

.help-modal__checkbox input {
  margin-top: 2px;
}

.help-modal__checkbox--notify-all {
  font-weight: 600;
}

.help-modal__hint {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280;
}

.help-modal__checkbox input:disabled + span {
  color: #9ca3af;
}

.help-modal__note-actions {
  margin-top: 12px;
  padding-top: 4px;
}

.help-modal__empty {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .help-modal__note-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .help-modal__note-date {
    white-space: normal;
  }
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.impersonation-banner__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.impersonation-banner__icon {
  flex-shrink: 0;
}

.impersonation-banner__exit {
  background-color: #664d03;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.impersonation-banner__exit:hover {
  background-color: #4d3a02;
}

.impersonation-banner__exit:active {
  transform: scale(0.97);
}

.notifications-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.notifications-button svg {
  display: block;
}

.app-header-help .notifications-button {
  height: 100%;
}

.notifications-button:hover,
.notifications-button--has-update {
  color: #87b6a7;
}

.notifications-button__badge {
  position: absolute;
  top: 2px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e67e22;
  border: 1px solid #1a1a1a;
}

/* Container and General Styling */
.container {
  width: 100%;
  max-width: 900px; /* Slightly wider */
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.header {
  text-align: center;
  font-size: 1.5em;
  color: #333;
  margin-bottom: 20px;
}

.cardPeer-container {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cardPeer {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  min-width: 250px; /* Slightly wider */
  min-height: 300px;
}

/* Input Fields */
.dropdown {
  width: 93.5%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Input Fields */
.input {
  width: 85%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.add {
  background: #4caf50;
  color: white;
}

.remove {
  background: #f44336;
  color: white;
  padding: 2px 4px;
}

.save {
  background: #2196f3;
  color: white;
}

/* Suggestions and Selected Peers */
.suggestions-list-peers {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  max-height: 150px;
  overflow-y: auto;
}

.selected-list {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  max-height: 250px; /* Height for up to five peers */
  overflow-y: auto;
}

.suggestions-list-peers li,
.selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 5px 0;
  background: white;
}

.suggestions-list li:hover,
.selected-item:hover {
  background: #e0f7fa;
}

/* Message Styling */
.message {
  text-align: center;
  color: #4caf50;
  margin-top: 15px;
  font-weight: bold;
}

.button-container {
  display: flex;
  gap: 10px; /* Adjust spacing between buttons as needed */
  justify-content: left; /* Center the buttons horizontally within the container */
  margin-top: 10px; /* Add some top margin if needed */
}

.button-container .btn.save,
.button-container .btn.delete {
  height: 40px; /* Match the height for both buttons */
  margin-left: 1.5%;
}

.privacy-policy {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #eeeeee;
  color: #1f2937;
  padding: 32px 16px 64px;
}

.privacy-policy-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.privacy-policy-logo {
  width: 200px;
  margin-bottom: 16px;
}

.privacy-policy-back {
  color: #0071eb;
  text-decoration: none;
  font-size: 14px;
}

.privacy-policy-back:hover {
  text-decoration: underline;
}

.privacy-policy-article {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 48px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.6;
}

.privacy-policy-article h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.privacy-policy-updated {
  color: #4b5563;
  margin: 0 0 24px;
}

.privacy-policy-article h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.privacy-policy-article h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

.privacy-policy-article p,
.privacy-policy-article ul {
  margin: 0 0 12px;
}

.privacy-policy-article ul {
  padding-left: 24px;
}

.privacy-policy-article li {
  margin-bottom: 6px;
}

.privacy-policy-article a {
  color: #0071eb;
}

.privacy-policy-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.privacy-policy-article th,
.privacy-policy-article td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  vertical-align: top;
}

.privacy-policy-article th {
  background: #f5f6f8;
  text-align: left;
}

.privacy-policy-contact {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .privacy-policy-article {
    padding: 24px 20px;
  }

  .privacy-policy-article table {
    display: block;
    overflow-x: auto;
  }
}

.release-notes-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background-color: #e8f4f0;
  color: #1f4f42;
  border: 1px solid #b8ddd2;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.release-notes-banner__text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.release-notes-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.release-notes-banner__button,
.release-notes-banner__dismiss {
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.release-notes-banner__button {
  background-color: #1f4f42;
  color: #fff;
}

.release-notes-banner__button:hover {
  background-color: #163a31;
}

.release-notes-banner__dismiss {
  background-color: transparent;
  color: #1f4f42;
  border: 1px solid #1f4f42;
}

.release-notes-banner__dismiss:hover {
  background-color: rgba(31, 79, 66, 0.08);
}

.sidebar {
  font-family: "Inter", "Roboto", sans-serif;
  background-color: #eaeaea;
  transition:
    flex-basis 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease-in-out;
  display: flex;
  flex: 0 0 190px;
  width: 190px;
  height: 100vh;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Sidebar/content divider starts below the dark header */
.sidebar::after {
  content: "";
  position: absolute;
  top: 58px; /* header 55px + teal border 3px */
  right: 0;
  bottom: 0;
  width: 1px;
  background-color: #dddddd;
  pointer-events: none;
}

.sidebar.minimized {
  flex-basis: 64px;
  width: 64px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar li {
  border-bottom: 1px solid #dddddd;
  cursor: pointer;
  align-content: center;
}

.sidebar-category {
  padding: 8px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sidebar-category.active,
.sidebar-category.active:hover {
  background-color: #87b6a761;
  color: #1f2f2c;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
}

.sidebar-category:hover {
  background-color: #ccc;
  border-radius: 8px;
  padding: 8px 16px;
}

.sidebar.minimized .category-title {
  display: flex;
  justify-content: center;
  padding: 4px 8px;
}

.sidebar.minimized .sidebar-category {
  gap: 0;
  justify-content: center;
  padding: 12px 0;
  width: 100%;
}

.sidebar.minimized .sidebar-category svg {
  display: block;
  flex-shrink: 0;
  margin: 0 auto;
}

.sidebar.minimized .sidebar-category.active,
.sidebar.minimized .sidebar-category:hover {
  padding: 12px 0;
}

/* Keep first nav row height matched to module-tabs */
.sidebar ul > .category-title:first-child {
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: var(--app-subnav-strip-height);
  min-height: var(--app-subnav-strip-height);
  padding: 4px 10px;
}

.sidebar ul > .category-title:first-child .sidebar-category,
.sidebar ul > .category-title:first-child .sidebar-category.active,
.sidebar ul > .category-title:first-child .sidebar-category:hover {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 16px;
}

.sidebar.minimized ul > .category-title:first-child {
  padding: 4px 8px;
  justify-content: center;
}

.sidebar.minimized ul > .category-title:first-child .sidebar-category,
.sidebar.minimized ul > .category-title:first-child .sidebar-category.active,
.sidebar.minimized ul > .category-title:first-child .sidebar-category:hover {
  width: auto;
  padding: 8px;
}

.sidebar.minimized .sidebar-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.sidebar.minimized .sidebar-toggle-section {
  justify-content: center;
}

.sidebar-toggle-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #dddddd;
  flex-shrink: 0;
}

.sidebar-toggle-arrow {
  position: relative;
  text-align: right;
  color: #333;
  padding: 5px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: ease;
  transition-duration: 0.5s;
}

.sidebar-toggle-arrow:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  position: relative;
  height: 55px;
  flex-shrink: 0;
  background-color: #1f2f2c;
  border-bottom: 3px solid #87b6a7;
}

.logo-section {
  background-color: #1f2f2c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  inset: 0;
  opacity: 1;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  visibility: visible;
}

.logo {
  padding: 15px;
  width: 110px;
}

.minimal-logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background-color: #1f2f2c;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  visibility: hidden;
}

.minimal-logo {
  width: 32px;
  height: 32px;
}

.sidebar.minimized .logo-section {
  opacity: 0;
  visibility: hidden;
}

.sidebar.minimized .minimal-logo-section {
  opacity: 1;
  visibility: visible;
}

.sidebar-label {
  max-width: 120px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-width 0.18s ease,
    opacity 0.12s ease;
}

.category-title {
  padding: 10px;
  font-weight: normal;
  font-size: 17px;
  margin: 0px;
  cursor: pointer;
  color: #333; /* Adjust as needed */
}

.sub-category {
  padding: 10px 12px;
  margin-left: 20px; /* Indent sub-categories for clearer hierarchy */
  color: #555; /* Optional: lighter color for sub-categories */
  font-size: 16px;
}

.sub-category.active {
  background-color: #f9f9f9;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-weight: bold;
  transition: ease;
  transition-duration: 0.1s;
  position: relative;
  z-index: 10;
}

.sub-category:hover {
  background-color: #ccc;
}

.settings-button {
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  padding: 15px;
  transition: transform 0.3s ease;
}

.settings-button:hover {
  transform: rotate(15deg);
  color: #87b6a7;
}

.settings-dropdown {
  position: absolute;
  top: 5%;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border: 1px solid #ccc;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  min-width: 200px;
}

.settings-dropdown button {
  background: none;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  font-size: 14px;
  transition: background-color 0.2s;
}

.settings-dropdown button:hover {
  background-color: #f0f0f0;
}

.production-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.production-badge {
  background-color: #ff4444;
  color: white;
  padding: 6px 12px;
  margin: 10px 0px 0px 0px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.production-badge--preview {
  background-color: #e6a800;
}

@media (max-width: 768px) {
  .sidebar,
  .sidebar.minimized {
    flex: 0 0 56px;
    order: 2;
    width: 100%;
    height: 56px;
    flex-direction: row;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    border-top: 1px solid #dddddd;
    z-index: 20;
  }

  .sidebar ul {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-around;
    overflow: visible;
  }

  .sidebar li {
    border-bottom: none;
    flex: 1;
  }

  .category-title {
    padding: 0;
  }

  .sidebar-category,
  .sidebar-category.active,
  .sidebar-category:hover,
  .sidebar.minimized .sidebar-category,
  .sidebar.minimized .sidebar-category.active,
  .sidebar.minimized .sidebar-category:hover {
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0px 0;
  }

  .sidebar-label {
    display: none;
  }

  /* Keep only the gear on mobile so users can still reach settings / Switch to Portal */
  .sidebar-header {
    order: 1;
    height: 100%;
    background: none;
    border-bottom: none;
  }

  .logo-section,
  .sidebar.minimized .logo-section {
    position: static;
    height: 100%;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .settings-button {
    color: #333;
  }

  .logo,
  .minimal-logo-section,
  .sidebar-toggle-section,
  #school-select,
  .production-indicator {
    display: none;
  }
}

@media print {
  .sidebar {
    display: none !important;
  }
}

/* Shared data-table styling for module lists (HR, Purchasing, etc.) */

.module-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}
.module-list-table > thead > tr > th:first-child {
  border-top-left-radius: 10px;
}
.module-list-table > thead > tr > th:last-child {
  border-top-right-radius: 10px;
}

.module-list-table > thead > tr > th,
.module-list-table > tbody > tr > td,
.module-list-table > tfoot > tr > td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.module-list-table > thead > tr > th {
  background-color: #1f2f2c;
  font-weight: 600;
  color: white;
  position: sticky;
  top: -10px;
  z-index: 1;
}

.module-list-table > thead > tr > th.module-list-table-sortable-th {
  vertical-align: middle;
}

.module-list-table-header-cell-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  user-select: none;
  min-width: 0;
}

.module-list-table-sort-label {
  cursor: pointer;
  min-width: 0;
}

.module-list-table > thead > tr > th.amount .module-list-table-header-cell-inner {
  justify-content: flex-end;
}

.module-list-table-sort-label:hover {
  text-decoration: underline;
}

.module-list-table-sort-indicator {
  font-size: 0.75em;
  margin-left: 2px;
  white-space: nowrap;
}

.module-list-table > tbody > tr:hover {
  background-color: #f1f3f5;
  cursor: pointer;
}

.module-list-table > tbody > tr.module-list-table-row-selected {
  background-color: #eef2ff;
}

.module-list-table > thead > tr > th.module-list-table-select-col,
.module-list-table > tbody > tr > td.module-list-table-select-cell {
  width: 44px;
  text-align: center;
}

.module-list-table-select-cell input,
.module-list-table-select-col input {
  cursor: pointer;
}

.module-list-table > tbody > tr > td.amount,
.module-list-table > tfoot > tr > td.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.module-list-table > thead > tr > th.amount {
  text-align: right;
}

.module-list-table > thead > tr > th.module-list-table-actions-col,
.module-list-table > tbody > tr > td.module-list-table-actions-cell {
  text-align: center;
  white-space: nowrap;
}

.module-list-table > tbody > tr.module-list-table-row-static {
  cursor: pointer;
}

.module-list-table > tbody > tr.module-list-table-row-muted {
  opacity: 0.65;
}

.module-list-table-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.module-list-table > tbody > tr .module-list-table-actions .hr-btn-danger,
.module-list-table > tbody > tr .module-list-table-actions .purchasing-btn-danger {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.module-list-table > tbody > tr:hover .module-list-table-actions .hr-btn-danger,
.module-list-table > tbody > tr:hover .module-list-table-actions .purchasing-btn-danger,
.module-list-table > tbody > tr:focus-within .module-list-table-actions .hr-btn-danger,
.module-list-table > tbody > tr:focus-within .module-list-table-actions .purchasing-btn-danger {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.assistant-usage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  margin: 15px 15px 0;
  font-size: 1rem;
  color: #1f2937;
}

.assistant-usage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.assistant-usage-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assistant-usage-filter input[type="month"] {
  box-sizing: border-box;
  min-width: 200px;
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
}

.assistant-usage-error {
  padding: 10px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  border-left: 4px solid #d32f2f;
}

.assistant-usage-empty {
  margin: 0;
  color: #6b7280;
}

.assistant-usage-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.assistant-usage-table.module-list-table > thead > tr > th {
  top: 0;
}

.assistant-usage-table.module-list-table > tbody > tr {
  cursor: default;
}

.assistant-usage-summary {
  color: #4b5563;
}

/* Firebase Data Deleter Styles */
.firebase-deleter-modal {
  padding: 20px;
}

.firebase-deleter-error {
  padding: 10px;
  margin-bottom: 15px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  border-left: 4px solid #d32f2f;
}

.firebase-deleter-controls {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.firebase-deleter-search {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 150px;
  flex: 1;
  font-size: 14px;
}

.firebase-deleter-delete-btn {
  padding: 8px 16px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.firebase-deleter-delete-btn:hover:not(:disabled) {
  background-color: #b71c1c;
}

.firebase-deleter-delete-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.firebase-deleter-content {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fafafa;
  max-height: 400px;
  overflow-y: auto;
}

.firebase-deleter-path {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.firebase-deleter-path-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}

.firebase-deleter-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.firebase-deleter-breadcrumb-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.firebase-deleter-breadcrumb-btn:hover:not(:disabled) {
  background-color: #e0e0e0;
}

.firebase-deleter-breadcrumb-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.firebase-deleter-breadcrumb-btn.clickable {
  color: #007bff;
  border-color: #007bff;
}

.firebase-deleter-breadcrumb-separator {
  color: #666;
  font-size: 12px;
}

/* Selected items for deletion - displayed as chips */
.firebase-deleter-selected-items {
  margin-bottom: 15px;
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.firebase-deleter-selected-label {
  font-size: 12px;
  color: #1565c0;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.firebase-deleter-selected-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.firebase-deleter-selected-chip {
  background: #e3eafc;
  color: #1565c0;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.firebase-deleter-selected-remove-btn {
  background: #fff;
  border: 1px solid #e57373;
  color: #e57373;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 1.1em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  padding: 0;
  outline: none;
}

.firebase-deleter-selected-remove-btn:hover,
.firebase-deleter-selected-remove-btn:focus {
  background: #e57373;
  color: #fff;
  border-color: #d32f2f;
}

.firebase-deleter-selected-remove-btn:active {
  background: #d32f2f;
  color: #fff;
  border-color: #b71c1c;
}

.firebase-deleter-selected-remove-btn:focus {
  box-shadow: 0 0 0 2px #ffcdd2;
}

.firebase-deleter-selected-remove-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.firebase-deleter-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.firebase-deleter-item:hover {
  background-color: #f0f0f0;
}

.firebase-deleter-item.selected {
  background-color: #e3f2fd;
}

.firebase-deleter-item-checkbox {
  margin-right: 10px;
}

.firebase-deleter-item-content {
  flex: 1;
  cursor: pointer;
}

.firebase-deleter-item-content.navigable {
  color: #007bff;
}

.firebase-deleter-item-key {
  font-weight: 600;
  margin-right: 5px;
}

.firebase-deleter-item-arrow {
  margin-left: 5px;
  color: #666;
}

.firebase-deleter-item-count {
  margin-left: 5px;
  color: #888;
  font-size: 12px;
  font-weight: normal;
}

.firebase-deleter-item-warning {
  margin-left: 5px;
  font-size: 14px;
  cursor: help;
}

.firebase-deleter-item-value {
  margin-left: 10px;
  color: #888;
  font-size: 12px;
}

.firebase-deleter-instructions {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

.firebase-deleter-instructions ul {
  margin-top: 5px;
  padding-left: 20px;
}

.firebase-deleter-instructions li {
  margin-bottom: 2px;
}

.firebase-deleter-loading {
  padding: 20px;
  text-align: center;
  color: #666;
}

.firebase-deleter-empty {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* Tab Navigation Styles */
.dashboard-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
  gap: 0;
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}

.tab-button:hover:not(:disabled) {
  color: #3388ff;
  background-color: #f5f5f5;
}

.tab-button.active {
  color: #3388ff;
  border-bottom-color: #3388ff;
  font-weight: 600;
}

.tab-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Copy Data Container */
.copy-data-container {
  overflow-y: auto;
  padding: 20px;
}

.copy-data-form {
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
}

.copy-data-form h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  font-size: 1.5rem;
}

.copy-data-description {
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.5;
}

.copy-data-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.copy-data-section h4 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #555;
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.copy-data-form-group {
  margin-bottom: 20px;
}

.copy-data-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.copy-data-form-group select.default {
  width: 100%;
  box-sizing: border-box;
}

.copy-data-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  background-color: #fff;
  cursor: pointer;
}

.copy-data-select:focus {
  outline: none;
  border-color: #3388ff;
  box-shadow: 0 0 0 3px rgba(51, 136, 255, 0.1);
}

.copy-data-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.copy-data-button-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.copy-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.copy-entity-select {
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
}

.copy-entity-select-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.copy-entity-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.copy-entity-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.copy-entity-option input {
  margin: 0;
}

.copy-diff-included {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}

.copy-diff-entity-heading {
  margin: 16px 0 8px;
  font-size: 14px;
  color: #333;
}

.copy-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #444;
  background: #fafafa;
}

.copy-mode-option.active {
  border-color: #3388ff;
  background: #eef5ff;
  color: #1a5fcc;
  font-weight: 600;
}

.copy-mode-option input {
  margin: 0;
}

.copy-diff-preview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.copy-diff-preview h4 {
  margin: 0 0 12px;
  color: #333;
}

.copy-diff-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.copy-diff-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.copy-diff-badge-added {
  background: #e8f5e9;
  color: #2e7d32;
}

.copy-diff-badge-updated {
  background: #fff8e1;
  color: #f57f17;
}

.copy-diff-badge-unchanged {
  background: #f5f5f5;
  color: #616161;
}

.copy-diff-badge-dest-only {
  background: #e3f2fd;
  color: #1565c0;
}

.copy-diff-firebase {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
}

.copy-diff-firebase-block + .copy-diff-firebase-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.copy-diff-firebase-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.copy-diff-firebase-toggle:disabled {
  cursor: default;
}

.copy-diff-firebase-changes {
  margin-top: 8px;
  max-height: 280px;
}

.copy-diff-kind {
  display: inline-block;
  min-width: 62px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.copy-diff-kind-added {
  color: #2e7d32;
}

.copy-diff-kind-changed {
  color: #f57f17;
}

.copy-diff-kind-removed {
  color: #1565c0;
}

.copy-diff-path {
  font-size: 12px;
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 3px;
}

.copy-diff-value-line {
  margin-top: 2px;
  margin-left: 4px;
  font-size: 12px;
  word-break: break-word;
}

.copy-diff-old {
  color: #c62828;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.copy-diff-new {
  color: #2e7d32;
  font-weight: 500;
}

.copy-diff-arrow {
  color: #888;
}

.copy-diff-muted {
  color: #888;
}

.copy-diff-field-changes {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.copy-diff-field-changes li {
  margin-bottom: 6px;
}

.copy-diff-section {
  margin-bottom: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.copy-diff-section-header {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: #f7f7f7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.copy-diff-section-header:hover {
  background: #efefef;
}

.copy-diff-list {
  margin: 0;
  padding: 8px 12px 8px 28px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  color: #444;
  background: #fff;
}

.copy-diff-list li {
  margin-bottom: 6px;
}

.copy-diff-changed-fields {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.copy-data-success {
  padding: 12px 16px;
  margin-bottom: 20px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  border-left: 4px solid #4caf50;
  font-size: 14px;
  line-height: 1.5;
}

/* Scraper status styles */
.scraper-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scraper-status-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.scraper-status-label {
  font-weight: 600;
  font-size: 13px;
  color: #555;
  min-width: 70px;
}

.scraper-status-value {
  font-size: 14px;
  color: #333;
}

.scraper-status-running {
  color: #1565c0;
  font-weight: 600;
}

.scraper-status-completed {
  color: #2e7d32;
  font-weight: 600;
}

.scraper-status-failed {
  color: #c62828;
  font-weight: 600;
}

/* User preferences tab */
.prefs-lookup-result {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.prefs-lookup-result h4 {
  margin: 0 0 16px;
  color: #555;
  font-size: 1.1rem;
}

.prefs-lookup-details {
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

.prefs-lookup-details > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: start;
}

.prefs-lookup-details dt {
  margin: 0;
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.prefs-lookup-details dd {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  word-break: break-word;
}

.prefs-tree-controls {
  margin-top: 8px;
}

.prefs-lookup-json {
  max-height: 260px;
  overflow: auto;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  color: #333;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .copy-data-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prefs-lookup-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.admin-line-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-line-items__hint {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}

.admin-line-items__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.admin-line-items__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.admin-line-items__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-line-items__field--wide {
  grid-column: span 2;
}

.admin-line-items__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 36px;
}

.admin-line-items__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #1f2937;
}

.admin-line-items__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.admin-line-items__input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.admin-line-items__input:disabled,
.admin-line-items select.default:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-line-items select.default {
  width: 100%;
  box-sizing: border-box;
}

.admin-line-items__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.admin-line-items__status {
  font-size: 13px;
  color: #4b5563;
}

.admin-line-items__error {
  padding: 10px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  border-left: 4px solid #d32f2f;
}

.admin-line-items__success {
  padding: 10px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  border-left: 4px solid #43a047;
}

.admin-line-items__table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.admin-line-items__empty {
  margin: 0;
  padding: 16px;
  color: #6b7280;
  font-size: 14px;
}

.admin-line-items__ledger {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.admin-line-items__ledger--budget {
  background: #e0f2fe;
  color: #075985;
}

.admin-line-items__ledger--observed {
  background: #fef3c7;
  color: #92400e;
}

.admin-line-items__acct {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-line-items__grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-line-items__field--wide {
    grid-column: span 2;
  }
}

.district-config {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0px 20px;
}

.district-config__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

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

.district-config__hint {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}

.district-config__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.district-config__label {
  font-weight: 600;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
}

.district-config__value {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.9);
}

.district-config__value--input {
  flex: 0 1 200px;
  text-align: right;
  overflow: hidden;
}

.district-config__field {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.district-config__retirement-funds {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.district-config__field-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
}

.district-config__input {
  width: 100%;
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  outline: none;
}

.district-config__input--small {
  padding: 6px 10px;
  box-sizing: border-box;
}

.district-config__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.district-config__schema-block {
  width: 50%;
  margin: 5px;
  margin-top: 12px;
}

.district-config__schema-block--full {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.district-config__schema-row {
  display: flex;
}

.district-config__help {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

.district-config__info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .district-config__info-layout {
    grid-template-columns: 1fr;
  }
}

.district-config__address-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.district-config__address-grid .district-config__field {
  grid-template-columns: 100px minmax(0, 1fr);
}

.district-config__field--wide .district-config__input--wide {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.district-config__field--state,
.district-config__field--zip {
  grid-template-columns: 100px auto;
}

.district-config__input--state {
  max-width: 72px;
  text-transform: uppercase;
}

.district-config__input--zip {
  max-width: 120px;
}

.district-config__logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.district-config__logo-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.district-config__logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.district-config__logo-preview img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.district-config__logo-placeholder {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}

.district-config__logo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.district-config__file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.district-config__file-label input[type="file"] {
  display: none;
}

.district-config__file-label:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.district-config__code {
  margin: 8px 0 0 0;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  max-height: 240px;
  overflow: auto;
  font-size: 12px;
}

.district-config__error {
  color: #8a1f17;
  background: rgba(138, 31, 23, 0.08);
  border: 1px solid rgba(138, 31, 23, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
}

.district-config__warning {
  color: rgba(0, 0, 0, 0.8);
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
}

.district-config__loading {
  padding: 12px 0;
  color: rgba(0, 0, 0, 0.7);
}

.district-config__panel--full {
  grid-column: 1 / -1;
}

.district-config__schema-edit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.district-config__error--inline {
  padding: 4px 8px;
  font-size: 12px;
}

.district-config__history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.district-config__history-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.district-config__history-row:last-child {
  border-bottom: none;
}

.district-config__history-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
}

.district-config__history-actor {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.district-config__history-group {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.district-config__history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.district-config__segment-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
}

.district-config__segment-chip--changed {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.45);
  font-weight: 600;
}

.district-config__toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.district-config__project2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .district-config__project2-grid {
    grid-template-columns: 1fr;
  }
}

.district-config__preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.district-config__project2-scroll {
  padding-right: 8px;
}

.district-config__project2-section {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.district-config__project2-section:last-child {
  border-bottom: none;
}

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

/* Container */
.users-modal-container {
  width: 100%;
  height: calc(95vh - 120px); /* Account for modal header */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.dashboard-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
  gap: 0;
}

.users-modal-preview-banner {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}

.tab-button:hover {
  color: #3388ff;
  background-color: #f5f5f5;
}

.tab-button.active {
  color: #3388ff;
  border-bottom-color: #3388ff;
  font-weight: 600;
}

/* Add User Container */
.add-user-container {
  overflow-y: auto;
}

.users-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #ccc;
  padding: 40px;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.users-modal-form .form-fieldset .users-modal-form-group:last-child {
  margin-bottom: 0;
}

.users-modal-form-group {
  margin-bottom: 20px;
}

.users-modal-form-group-label {
  display: block;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.users-modal-form-group input,
.users-modal-form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.users-modal-form-group input:focus,
.users-modal-form-group select:focus {
  outline: none;
  border-color: #87b6a7;
  box-shadow: 0 0 0 3px rgba(135, 182, 167, 0.1);
}

.users-modal-permissions-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 10px;
}

.users-modal-module-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 5px;
}

.users-modal-submodules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: 24px;
  padding-left: 8px;
  border-left: 2px solid #e0e0e0;
}

.users-modal-submodule {
  font-size: 0.9em;
  color: #666;
}

.users-modal-submodule-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  font-size: 0.85em;
  color: #3388ff;
  cursor: pointer;
}

.users-modal-submodule-toggle:hover {
  color: #2563eb;
}

.users-modal-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  color: #555;
}

.users-modal-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.users-modal-report-option span {
  margin-left: 5px;
}

.users-modal-report-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.users-modal-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.users-modal-cancel-button,
.users-modal-submit-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.users-modal-cancel-button {
  background-color: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}

.users-modal-cancel-button:hover {
  background-color: #e9ecef;
  color: #333;
}

.users-modal-submit-button {
  background-color: #2196f3;
  color: white;
}

.users-modal-submit-button:hover {
  background-color: #1976d2;
}

.users-modal-submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.users-modal-form-group input.error,
.users-modal-form-group select.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.error-message {
  color: #f44336;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.general-error {
  background-color: #ffebee;
  border: 1px solid #f44336;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Map Styles */
.search-bar-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.map-wrapper {
  flex: 1;
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.dashboard-loading,
.dashboard-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.2rem;
  color: #666;
}

.dashboard-error {
  color: #d32f2f;
}

.users-modal-container .leaflet-container {
  height: 100%;
  width: 100%;
  z-index: 1;
}

.district-tooltip {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.users-modal-container .leaflet-interactive {
  outline: none !important;
}

.users-modal-container .leaflet-interactive:focus {
  outline: none !important;
}

.district-search-container {
  position: relative;
  z-index: 1000;
  width: 300px;
}

.district-search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.district-search-input:focus {
  outline: none;
  border-color: #3388ff;
}

.district-search-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1300;
}

.district-search-option {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.district-search-option:hover {
  background-color: #f5f5f5;
}

.district-search-option:last-child {
  border-bottom: none;
}

/* User Activity Container */
.user-activity-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0px 20px;
}

.activity-summary {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.stat-value.stat-active {
  color: #4caf50;
}

.stat-value.stat-recent {
  color: #ff9800;
}

.stat-value.stat-inactive {
  color: #9e9e9e;
}

.stat-value.stat-pending {
  color: #2196f3;
}

.user-filters-container {
  margin-bottom: 20px;
}

.user-search-container {
  margin-bottom: 12px;
}

.user-search-input {
  width: 100%;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.user-search-input:focus {
  outline: none;
  border-color: #3388ff;
}

.filter-dropdowns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
}

.filter-select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: #3388ff;
  box-shadow: 0 0 0 2px rgba(51, 136, 255, 0.1);
}

.user-table-container {
  flex: 1;
  overflow: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.user-activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.user-activity-table thead {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.user-activity-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.user-activity-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.user-activity-table th.sortable:hover {
  background-color: #eeeeee;
}

.user-activity-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.user-activity-table tbody tr:hover {
  background-color: #f9f9f9;
}

.user-activity-table tbody tr:last-child td {
  border-bottom: none;
}

.user-activity-table .no-data {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.status-active {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-badge.status-recent {
  background-color: #fff3e0;
  color: #e65100;
}

.status-badge.status-inactive {
  background-color: #f5f5f5;
  color: #757575;
}

.status-badge.status-pending {
  background-color: #e3f2fd;
  color: #1565c0;
}

.status-badge.status-attention {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
}

/* Pending invitation row */
.pending-invitation-row {
  background-color: #f9fafb;
  font-style: italic;
}

.pending-row {
  background-color: #fafbff;
}

.pending-row:hover {
  background-color: #f0f4ff !important;
}

.pending-badge-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background-color: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Role Description */
.role-description {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Location Restrictions */
.location-restrictions-container {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  background-color: #fafafa;
}

.location-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.location-input-row input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
}

.location-input-row input:focus {
  outline: none;
  border-color: #3388ff;
}

.add-location-button {
  padding: 8px 16px;
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #1976d2;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.add-location-button:hover:not(:disabled) {
  background-color: #1976d2;
  color: white;
}

.add-location-button:disabled {
  background-color: #f5f5f5;
  color: #bbb;
  border-color: #ddd;
  cursor: not-allowed;
}

.location-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.clear-all-button {
  padding: 6px 12px;
  background-color: #fff;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.clear-all-button:hover {
  background-color: #dc3545;
  color: white;
}

.selected-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #e3f2fd;
  color: #1565c0;
  padding: 4px 8px 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-family: monospace;
  font-weight: 500;
}

.remove-location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background-color: transparent;
  color: #1565c0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s;
}

.remove-location-button:hover {
  background-color: #1565c0;
  color: white;
}

.location-hint,
.delegation-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Readonly district input */
.district-readonly {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Field hints */
.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.form-help-text {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 8px;
}

/* Action Column Styles */
.user-activity-table th.action-column {
  width: 240px;
  text-align: center;
}

.user-activity-table td.action-cell {
  display: flex;
  text-align: center;
  justify-content: right;
  padding: 8px 20px 8px 8px;
}

/* Action buttons in table */
.action-button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  margin-right: 6px;
}

.action-button:last-child {
  margin-right: 0;
}

.edit-button {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #1976d2;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  margin-right: 8px;
}

.edit-button:hover:not(:disabled) {
  background-color: #1976d2;
  color: white;
}

.view-as-button {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #d4a72c;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.view-as-button-icon {
  margin-right: 4px;
}

.view-as-button:hover:not(:disabled) {
  background-color: #d4a72c;
  color: white;
}

.view-as-button:disabled,
.edit-button:disabled,
.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.delete-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #c62828;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-button:hover:not(:disabled) {
  background-color: #ffebee;
  transform: scale(1.1);
}

.delete-button:active {
  transform: scale(0.95);
}

.resend-button {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #2e7d32;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.resend-button:hover:not(:disabled) {
  background-color: #2e7d32;
  color: white;
}

.resend-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 600px) {
  .users-modal-form {
    padding: 20px;
  }

  .users-modal-form-actions {
    flex-direction: column;
  }

  .users-modal-cancel-button,
  .users-modal-submit-button {
    width: 100%;
  }

  .activity-summary {
    flex-direction: column;
    gap: 10px;
  }

  .location-input-row {
    flex-direction: column;
  }

  .add-location-button {
    width: 100%;
  }
}

.user-approver-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.user-approver-role-tag {
  display: inline-block;
  padding: 0 6px;
  background: #e7f1ff;
  color: #4361ee;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Delete User Confirmation Modal */
.delete-user-modal-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Warning Banner */
.warning-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
}

.warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.warning-text {
  color: #856404;
  font-size: 14px;
  line-height: 1.5;
}

.warning-text strong {
  font-weight: 600;
}

/* User Info Section */
.user-info {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
}

.user-info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.user-info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #495057;
  width: 100px;
  flex-shrink: 0;
}

.info-value {
  color: #212529;
  flex: 1;
}

/* Sub-users Warning */

/* Deactivation Effects */
.deactivation-effects {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
}

.deactivation-effects p {
  margin: 0 0 12px 0;
  color: #495057;
  font-size: 14px;
  font-weight: 600;
}

.deactivation-effects ul {
  margin: 0;
  padding-left: 24px;
}

.deactivation-effects li {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.deactivation-effects li:last-child {
  margin-bottom: 0;
}

/* Confirmation Section */
.confirmation-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.confirm-input {
  padding: 10px 12px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.confirm-input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.confirm-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.confirm-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
}

.cancel-button,
.confirm-delete-button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
}

.cancel-button:hover:not(:disabled) {
  background-color: #e2e6ea;
}

.cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.confirm-delete-button {
  background-color: #dc3545;
  color: white;
}

.confirm-delete-button:hover:not(:disabled) {
  background-color: #c82333;
}

.confirm-delete-button:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 600px) {
  .delete-user-modal-content {
    padding: 16px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .cancel-button,
  .confirm-delete-button {
    width: 100%;
  }

  .info-label {
    width: 80px;
  }
}

.role-tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background: #fff;
  min-height: 30px;
  align-items: center;
  cursor: text;
}

.role-tag-input:focus-within {
  border-color: #4361ee;
  box-shadow: 0 0 0 2px rgb(67 97 238 / 0.15);
}

.role-tag-input__tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  background: #e7f1ff;
  color: #4361ee;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.role-tag-input__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #4361ee;
  cursor: pointer;
  padding: 0;
  font-size: 0.6rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.role-tag-input__remove:hover {
  opacity: 1;
}

.role-tag-input__field {
  border: none;
  outline: none;
  padding: 2px 0;
  font-size: 0.82rem;
  min-width: 60px;
  flex: 1;
  background: transparent;
}

.role-tag-input--readonly {
  cursor: default;
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}

.pending-signups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pending-signups__status,
.pending-signups__note {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.pending-signups__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pending-signups__table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.pending-signups__table td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}

.pending-signups__badge {
  margin-left: 8px;
}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

.terms-of-service {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #eeeeee;
  color: #1f2937;
  padding: 32px 16px 64px;
}

.terms-of-service-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.terms-of-service-logo {
  width: 200px;
  margin-bottom: 16px;
}

.terms-of-service-back {
  color: #0071eb;
  text-decoration: none;
  font-size: 14px;
}

.terms-of-service-back:hover {
  text-decoration: underline;
}

.terms-of-service-article {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 48px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.6;
}

.terms-of-service-article h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.terms-of-service-updated {
  color: #4b5563;
  margin: 0 0 24px;
}

.terms-of-service-article h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.terms-of-service-article h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

.terms-of-service-article p,
.terms-of-service-article ul {
  margin: 0 0 12px;
}

.terms-of-service-article ul {
  padding-left: 24px;
}

.terms-of-service-article li {
  margin-bottom: 6px;
}

.terms-of-service-article a {
  color: #0071eb;
}

.terms-of-service-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.terms-of-service-article th,
.terms-of-service-article td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  vertical-align: top;
}

.terms-of-service-article th {
  background: #f5f6f8;
  text-align: left;
}

.terms-of-service-contact {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .terms-of-service-article {
    padding: 24px 20px;
  }

  .terms-of-service-article table {
    display: block;
    overflow-x: auto;
  }
}

.track-header {
  background-color: #1f2f2c;
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  min-height: 55px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #87b6a7;
  padding-right: var(--app-header-help-reserve);
}

