@import url('dev-banner.css');

/* Assignment root type colors (use in searches, calendars, lists) */
:root {
  --dts-assign-detail: #e67e22;      /* orange - DETAIL */
  --dts-assign-overtime: #c0392b;    /* red - OVERTIME */
  --dts-assign-attendance: #2980b9; /* blue - ATTENDANCE */
  --dts-cone-orange: #FF8800;       /* vibrant traffic-cone orange */
}

.text-cone-orange { color: var(--dts-cone-orange) !important; }

.dts-assign-detail { color: var(--dts-assign-detail); }
.dts-assign-overtime { color: var(--dts-assign-overtime); }
.dts-assign-attendance { color: var(--dts-assign-attendance); }

.dts-bg-detail { background-color: var(--dts-assign-detail); }
.dts-bg-overtime { background-color: var(--dts-assign-overtime); }
.dts-bg-attendance { background-color: var(--dts-assign-attendance); }

.dts-border-detail { border-color: var(--dts-assign-detail); }
.dts-border-overtime { border-color: var(--dts-assign-overtime); }
.dts-border-attendance { border-color: var(--dts-assign-attendance); }

/* Assignment edit header — circular X return (replaces former RETURN toolbar button) */
.assignment-edit-return-btn {
  line-height: 1;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.assignment-edit-return-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.assignment-edit-return-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Bootstrap tooltip for circular X return (Edit / Edit Detail) — quick, readable */
.tooltip.dts-return-btn-tooltip .tooltip-inner {
  max-width: 16rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* Assignment edit — supervisor tools row: solid primary (same as UPDATE), lighter blue on hover */
.btn.dts-supervisor-tools-btn.btn-primary {
  --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary) 72%, white);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary) 72%, white);
  --bs-btn-hover-color: #fff;
}

/* Assignment edit — Pay Events remove: solid danger, lighter red on hover */
.btn.dts-payevent-remove-btn.btn-danger {
  --bs-btn-hover-bg: color-mix(in srgb, var(--bs-danger) 72%, white);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-danger) 72%, white);
  --bs-btn-hover-color: #fff;
}

/* Calendar: cells expand to show all entries */
.calendar-grid { table-layout: fixed; }
.calendar-day { min-height: 60px; }
.calendar-entry:hover { filter: brightness(1.1); }

/* Holiday label on calendars: orange-red, italic, bold */
.calendar-holiday {
  color: #c45c26;
  font-style: italic;
  font-weight: 600;
}
[data-bs-theme="dark"] .calendar-holiday { color: #e07a4a; }

.calendar-holiday-trigger {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.calendar-holiday-trigger:hover,
.calendar-holiday-trigger:focus {
  text-decoration-style: solid;
  outline: none;
}
.calendar-holiday-trigger:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.calendar-custom-day-trigger {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.calendar-custom-day-trigger:hover,
.calendar-custom-day-trigger:focus {
  text-decoration-style: solid;
  outline: none;
}
.calendar-custom-day-trigger:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.calendar-holidays-modal-table tbody tr.calendar-holiday-modal-row-selected td {
  background-color: rgba(13, 110, 253, 0.14) !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .calendar-holidays-modal-table tbody tr.calendar-holiday-modal-row-selected td {
  background-color: rgba(13, 110, 253, 0.28) !important;
}

.calendar-custom-days-modal-table tbody tr.calendar-custom-day-modal-row-selected td {
  background-color: rgba(13, 110, 253, 0.14) !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .calendar-custom-days-modal-table tbody tr.calendar-custom-day-modal-row-selected td {
  background-color: rgba(13, 110, 253, 0.28) !important;
}

/* Holiday tooltip: light blue, transparent - shows this holiday and upcoming */
.calendar-holiday-tooltip .tooltip-inner {
  background: rgba(135, 206, 250, 0.92);
  color: #1a3a52;
  text-align: left;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.calendar-holiday-tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: rgba(135, 206, 250, 0.92);
}
.calendar-holiday-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: rgba(135, 206, 250, 0.92);
}

/* Calendar type toggles (Detail / Overtime / Attendance): subtle dim when unchecked, but clearly visible and clickable */
.calendar-type-toggle { transition: opacity 0.15s ease, box-shadow 0.15s ease; }
.calendar-type-off {
  opacity: 0.88;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
}
.calendar-type-off:hover {
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.06);
}
.calendar-type-off .dts-bg-detail,
.calendar-type-off .dts-bg-overtime,
.calendar-type-off .dts-bg-attendance { opacity: 0.95; }

/* Calendar group multi-select: match form-select-sm row styling; wide menu for long group names */
.calendar-group-filter .dropdown-toggle.form-select {
  background-image: none;
}
.calendar-group-filter .dropdown-toggle::after {
  flex-shrink: 0;
  margin-left: 0.35rem;
}
.calendar-group-filter-menu {
  min-width: 26rem;
  max-width: min(36rem, calc(100vw - 1.5rem));
  font-size: 0.875rem;
}
.calendar-group-filter-menu .form-check-label {
  font-weight: 400;
  white-space: nowrap;
}
.calendar-group-filter-options {
  overflow-y: auto;
  overflow-x: auto;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Form elements: slightly darker border for better visibility */
.form-control, .form-select, textarea.form-control {
  border-color: #ced4da;
}

/* Dropdown menus: slightly smaller text */
.form-select { font-size: 0.9rem; }
.form-select.form-select-sm { font-size: 0.8125rem; }

/* Unfilled Queue: notes textarea height */
.unfilled-notes-textarea { min-height: 7rem; }

/* Unfilled Queue: table header solid blue */
.unfilled-queue-table thead.unfilled-queue-thead th {
  background: #1e5a8e !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
}

/* Overtime Metrics: card and table headers use same blue as PDF */
.overtime-metrics-card .card-header {
  background: #1e5a8e !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
}

/* UserDashboard: List Position and Leave Balances card headers (match table header blue) */
.dashboard-list-leave-cards .dashboard-list-leave-header {
  background: #1e5a8e !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
  padding: 0.75rem 1rem;
}
.overtime-metrics-table thead th {
  background: #1e5a8e !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
}

/* Data tables: zebra striping, smaller text, left-aligned cell content */
.table {
  font-size: 0.8125rem;
  border-collapse: separate;
  border-spacing: 0;
}
.table th,
.table td {
  font-size: inherit;
  text-align: left;
}
.table thead th {
  text-align: left;
}
/* Table headers: same solid blue as topbar (#1e5a8e) */
.table thead.table-primary th,
.table thead.table-primary {
  background: #1e5a8e !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
}

/* Dashboard bubbles: color squares for Detail Board (orange) and Overtime Board (red) */
.dashboard-bubble-detail-sq {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ff9900;
  flex-shrink: 0;
}
.dashboard-bubble-overtime-sq {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #df0024;
  flex-shrink: 0;
}

/* Supervisor Dashboard (Index): faint eyebrow on request-total stat bubbles */
.dashboard-supervisor-bubbles-row .dashboard-supervisor-bubble-eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5b646d;
  opacity: 0.92;
  text-align: center;
  margin: -0.2rem -0.35rem 0.45rem -0.35rem;
  padding-bottom: 0.4rem;
  border-bottom: 4px solid var(--dashboard-supervisor-accent, rgba(0, 0, 0, 0.12));
  line-height: 1.2;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-supervisor-bubble-eyebrow {
  color: var(--bs-secondary-color);
  opacity: 0.78;
}
.dashboard-supervisor-bubbles-row .stat-card--detail { --dashboard-supervisor-accent: #fd7e14; }
.dashboard-supervisor-bubbles-row .stat-card--overtime { --dashboard-supervisor-accent: #dc3545; }
.dashboard-supervisor-bubbles-row .stat-card--unfilled { --dashboard-supervisor-accent: #6610f2; }
.dashboard-supervisor-bubbles-row .stat-card--ot-requests { --dashboard-supervisor-accent: #6f42c1; }
.dashboard-supervisor-bubbles-row .stat-card--leave { --dashboard-supervisor-accent: #0d6efd; }
.dashboard-supervisor-bubbles-row .stat-card--swap { --dashboard-supervisor-accent: #0d9488; }
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card--detail { --dashboard-supervisor-accent: #fd9844; }
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card--overtime { --dashboard-supervisor-accent: #e35d6a; }
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card--unfilled { --dashboard-supervisor-accent: #a370f7; }
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card--ot-requests { --dashboard-supervisor-accent: #9b7dd4; }
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card--leave { --dashboard-supervisor-accent: #6ea8fe; }
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card--swap { --dashboard-supervisor-accent: #2dd4bf; }

.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--detail {
  color: #fd7e14;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--overtime {
  color: #dc3545;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--unfilled {
  color: #6610f2;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--ot-requests {
  color: #6f42c1;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--leave {
  color: #0d6efd;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--swap {
  color: #0d9488;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--detail {
  color: #fd9844;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--overtime {
  color: #e35d6a;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--unfilled {
  color: #a370f7;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--ot-requests {
  color: #9b7dd4;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--leave {
  color: #6ea8fe;
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .dashboard-super-bubble-icon--swap {
  color: #2dd4bf;
}

.dashboard-supervisor-bubbles-row .stat-card {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.dashboard-supervisor-bubbles-row .dashboard-super-bubble-main {
  min-width: 0;
}
.dashboard-supervisor-bubbles-row > [class*="col-"] {
  min-width: 0;
}
.dashboard-supervisor-bubbles-row a:hover .stat-card,
.dashboard-supervisor-bubbles-row a:focus-visible .stat-card {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.11);
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row .stat-card {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 22px rgba(0, 0, 0, 0.45);
}
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row a:hover .stat-card,
[data-bs-theme="dark"] .dashboard-supervisor-bubbles-row a:focus-visible .stat-card {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.35),
    0 14px 32px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

/* UserDashboard: six metric bubbles (mockup — white cards, left accent, soft shadow) */
.dashboard-bubbles-panel {
  background: #f1f3f5;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 767.98px) {
  .dashboard-bubbles-panel {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  .dashboard-bubbles-panel > .row {
    --bs-gutter-x: 1.75rem;
  }
}
.user-dash-bubble-link {
  color: inherit;
}
.user-dash-bubble-link:focus-visible {
  outline: 2px solid var(--dts-primary, #1e5a8e);
  outline-offset: 2px;
  border-radius: 12px;
}
.user-dash-bubble {
  --bubble-accent: #6c757d;
  background: #fff;
  border-radius: 10px;
  border-left: 7px solid var(--bubble-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 5.5rem;
}
.user-dash-bubble-link:hover .user-dash-bubble {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.user-dash-bubble-body {
  position: relative;
  padding: 0.85rem 0.75rem 0.85rem 0.65rem;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
}
.user-dash-bubble-text {
  flex: 1;
  min-width: 0;
  padding-right: 1.75rem;
}
.user-dash-bubble--detail {
  --bubble-accent: #fd7e14;
}
.user-dash-bubble--overtime {
  --bubble-accent: #dc3545;
}
.user-dash-bubble--slips {
  --bubble-accent: #d35400;
}
.user-dash-bubble--leave {
  --bubble-accent: #0d6efd;
}
.user-dash-bubble--ot-request {
  --bubble-accent: #6f42c1;
}
.user-dash-bubble--swap {
  --bubble-accent: #0d9488;
}
.user-dash-bubble-value--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
}
.user-dash-bubble-value--loading .spinner-border {
    width: 1.35rem;
    height: 1.35rem;
    border-width: 0.15em;
}
.user-dash-bubble-value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bubble-accent);
  letter-spacing: -0.02em;
}
.user-dash-bubble .user-dash-bubble-value.text-danger {
  color: var(--bs-danger) !important;
}
.user-dash-bubble .user-dash-bubble-value.text-primary {
  color: var(--bs-primary) !important;
}
.user-dash-bubble-label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c636a;
  line-height: 1.25;
}
.user-dash-bubble-icon {
  position: absolute;
  top: 0.65rem;
  right: 0.55rem;
  font-size: 1.35rem;
  color: var(--bubble-accent);
  opacity: 0.72;
  pointer-events: none;
}
[data-bs-theme="dark"] .dashboard-bubbles-panel {
  background: rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] .user-dash-bubble {
  background: var(--bs-secondary-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
[data-bs-theme="dark"] .user-dash-bubble-link:hover .user-dash-bubble {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
[data-bs-theme="dark"] .user-dash-bubble-label {
  color: var(--bs-secondary-color);
}
[data-bs-theme="dark"] .user-dash-bubble-icon {
  color: var(--bubble-accent);
  opacity: 0.78;
}

/* Dashboard today card: leave tab top banks — same blue accent as selected tab */
.dts-bg-leave-bank {
  display: inline-block;
  background-color: #0d6efd;
  flex-shrink: 0;
}
.table .badge.badge-dts-leave-24h,
.badge.badge-dts-leave-24h {
  background-color: #0d6efd !important;
  color: #fff !important;
}
/* Dashboard today: detail count — match DETAIL orange strip */
.table .badge.badge-dts-detail-count,
.badge.badge-dts-detail-count {
  background-color: var(--dts-assign-detail) !important;
  color: #fff !important;
}
/* Table corners: 8px to match dashboard .card and .stat-card */
.table-responsive {
  border-radius: 8px;
}
.table thead th:first-child {
  border-radius: 8px 0 0 0;
}
.table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}
.table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* List Revert Tool: tier pills (1–9 distinct colors; 10+ and unset = neutral) */
.list-revert-table th.list-revert-th-tier,
.list-revert-table td.list-revert-tier {
  text-align: center !important;
}
.list-revert-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.22em 0.5em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}
.list-revert-tier-badge.list-revert-tier-none {
  background: #94a3b8;
  color: #fff;
}
.list-revert-tier-badge.list-revert-tier-1 { background: #2563eb; }
.list-revert-tier-badge.list-revert-tier-2 { background: #0891b2; }
.list-revert-tier-badge.list-revert-tier-3 { background: #059669; }
.list-revert-tier-badge.list-revert-tier-4 { background: #b45309; }
.list-revert-tier-badge.list-revert-tier-5 { background: #7c3aed; }
.list-revert-tier-badge.list-revert-tier-6 { background: #db2777; }
.list-revert-tier-badge.list-revert-tier-7 { background: #4338ca; }
.list-revert-tier-badge.list-revert-tier-8 { background: #c2410c; }
.list-revert-tier-badge.list-revert-tier-9 { background: #b91c1c; }
.list-revert-tier-badge.list-revert-tier-x {
  background: #475569;
  color: #fff;
}

/* Override Bootstrap text-center on table cells */
.table th.text-center,
.table td.text-center {
  text-align: left !important;
}
/* Zebra striping: odd = white, even = light gray (target td - Bootstrap sets bg on cells) */
.table tbody tr:nth-child(odd) td {
  background-color: #fff !important;
}
.table tbody tr:nth-child(even) td {
  background-color: #f8f9fa !important;
}

/* Roster Lists modal: same zebra striping for list rows */
.roster-lists-checkboxes .list-group-item:nth-child(odd) {
  background-color: #fff !important;
}
.roster-lists-checkboxes .list-group-item:nth-child(even) {
  background-color: #f8f9fa !important;
}
.roster-lists-checkboxes .list-group-item:hover {
  background-color: #e9ecef !important;
}
.table-hover tbody tr:hover td {
  background-color: #e9ecef !important;
}

/* Day view: type bar (left) + group/leave row colors; disable global + Bootstrap zebra */
.day-view-table tbody tr td {
  --bs-table-bg-type: transparent !important;
  --bs-table-bg-state: transparent !important;
  box-shadow: none !important;
  background-color: inherit !important;
}
.day-view-table.table tbody tr:nth-child(odd) td,
.day-view-table.table tbody tr:nth-child(even) td {
  background-color: inherit !important;
}
.day-view-table.table-striped > tbody > tr:nth-of-type(odd) > *,
.day-view-table.table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: transparent !important;
  --bs-table-accent-bg: transparent !important;
}
.day-view-table tbody tr td.day-view-type-bar.dts-bg-attendance {
  background-color: var(--dts-assign-attendance) !important;
}
.day-view-table tbody tr td.day-view-type-bar.dts-bg-overtime {
  background-color: var(--dts-assign-overtime) !important;
}
.day-view-table tbody tr td.day-view-type-bar.dts-bg-detail {
  background-color: var(--dts-assign-detail) !important;
}
.day-view-table tbody tr td.day-view-type-bar.bg-secondary {
  background-color: var(--bs-secondary) !important;
}
.day-view-table tbody tr:hover td {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.12) !important;
}

/* Day view: Replace with Overtime clock — strong red, readable on tinted rows */
.day-view-table .day-replace-overtime-icon {
  color: #b91c1c;
  font-size: 1.1em;
  vertical-align: -0.1em;
}
.day-view-table .day-replace-overtime-icon:hover,
.day-view-table .day-replace-overtime-icon:focus-visible {
  color: #991b1b;
}

/* Calendar day / day timeline: open-for-bid (detail or OT) label */
@keyframes dts-out-to-bid-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.dts-cal-out-to-bid {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-danger, #dc3545);
  animation: dts-out-to-bid-pulse 1.1s ease-in-out infinite;
}
.dts-cal-unfilled {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-danger, #dc3545);
}
@media (prefers-reduced-motion: reduce) {
  .dts-cal-out-to-bid {
    animation: none;
    opacity: 1;
  }
}

/* Unfilled Queue: checkbox column orange/red by type (matches batch_repost.asp, must follow zebra) */
.unfilled-queue-table tbody tr td.unfilled-type-detail { background-color: #ff9900 !important; }
.unfilled-queue-table tbody tr td.unfilled-type-overtime { background-color: #df0024 !important; }
.unfilled-queue-table tbody tr td.unfilled-type-other { background-color: #6c757d !important; }

/* Unfilled Queue: batch repost full width on narrow viewports */
.unfilled-batch-repost-btn { width: 100%; }
@media (min-width: 576px) {
  .unfilled-batch-repost-btn { width: auto; }
}
/* Unfilled Queue: desktop — cap selects; delete button beside form */
.unfilled-btn-delete { width: 100%; }
.unfilled-queue-actions .unfilled-delete-form { flex-shrink: 0; }
@media (min-width: 768px) {
  .unfilled-direct-assign-form {
    min-width: 0;
  }
  .unfilled-queue-button-row { justify-content: flex-start; }
  .unfilled-select-officer { max-width: 260px; }
  .unfilled-select-charge { max-width: 210px; }
  .unfilled-btn-delete { width: auto; }
  .unfilled-delete-form {
    margin-inline-start: 0;
    align-self: flex-start;
  }
}

/* Unfilled Queue: clearer separation between assignment rows (table / wide layout only) */
@media (min-width: 768px) {
  .unfilled-queue-table tbody tr.unfilled-queue-row + tr.unfilled-queue-row td {
    border-top: 2px solid var(--bs-border-color);
    padding-top: 1.15rem;
  }
  .unfilled-queue-table tbody tr.unfilled-queue-row td {
    padding-bottom: 1.1rem;
    vertical-align: top;
  }
}

/* Unfilled Queue: mobile — card-style rows, stacked controls, larger touch targets */
@media (max-width: 767.98px) {
  .unfilled-repost-controls .form-label {
    font-size: 0.75rem;
  }
  .unfilled-queue-table-wrap {
    overflow-x: visible;
  }
  .unfilled-queue-mobile-stack {
    border-collapse: separate;
    border-spacing: 0;
  }
  .unfilled-queue-mobile-stack thead.unfilled-queue-thead {
    display: none;
  }
  .unfilled-queue-mobile-stack tbody tr.unfilled-queue-row {
    display: block;
    margin-bottom: 2.7rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .unfilled-queue-mobile-stack tbody td {
    display: block;
    width: 100% !important;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
    padding: 0.75rem 1rem !important;
  }
  .unfilled-queue-mobile-stack tbody td:last-child {
    border-bottom: none;
  }
  .unfilled-queue-mobile-stack td.unfilled-check-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem !important;
  }
  .unfilled-queue-mobile-stack .unfilled-cb {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    flex-shrink: 0;
  }
  .unfilled-queue-mobile-stack td.unfilled-notes-cell {
    padding: 0.75rem 1rem !important;
    background: #f8f9fa;
  }
  .unfilled-queue-mobile-stack .unfilled-notes-textarea {
    min-height: 6rem;
    font-size: 1rem !important;
  }
  .unfilled-queue-actions {
    width: 100%;
  }
  /* Mobile: DIRECT ASSIGN + DELETE compact, side by side */
  .unfilled-queue-button-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }
  .unfilled-queue-actions .unfilled-delete-form {
    width: fit-content;
    flex-shrink: 0;
    align-self: auto;
  }
  .unfilled-direct-assign-form {
    width: 100%;
  }
  .unfilled-btn-direct,
  .unfilled-btn-delete {
    min-height: 2.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: auto;
    white-space: nowrap;
  }
  .who-to-force-modal-dialog {
    max-width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
  }
  .who-to-force-btn {
    width: 100%;
  }
}

/* Details Today / Overtime Today: narrow type strip (matches calendar orange/red) */
.dashboard-today-strip-th {
  width: 12px;
  min-width: 12px;
  max-width: 16px;
  padding: 0 !important;
  border-left: none !important;
  vertical-align: middle;
}
.dashboard-today-strip-td {
  width: 12px;
  min-width: 12px;
  max-width: 16px;
  padding: 0 !important;
  border-left: none !important;
  vertical-align: middle;
}
.details-today-table tbody tr td.details-today-strip,
.details-today-table tbody tr:hover td.details-today-strip {
  background-color: var(--dts-assign-detail) !important;
}
.overtime-today-table tbody tr td.overtime-today-strip,
.overtime-today-table tbody tr:hover td.overtime-today-strip {
  background-color: var(--dts-assign-overtime) !important;
}

/* Recent Leave Transactions: green for deposit/credit, red for debit */
.leave-transactions-table tbody tr td.leave-txn-deposit,
.leave-transactions-table tbody tr:hover td.leave-txn-deposit {
  background-color: #28a745 !important;
}
.leave-transactions-table tbody tr td.leave-txn-debit,
.leave-transactions-table tbody tr:hover td.leave-txn-debit {
  background-color: #dc3545 !important;
}

/* Leave Request Queue: card-based responsive layout */
.leave-request-queue .leave-request-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.leave-request-queue .leave-request-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.leave-request-queue .leave-request-card .card-header {
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}
.leave-request-queue .leave-request-card.leave-request-pending {
  border-left: 3px solid #ffc107;
}
.leave-request-queue .leave-request-card .card-header a {
  color: #212529;
}
.leave-request-queue .leave-request-card .card-header a:hover {
  color: var(--dts-primary, #0d6efd);
}
.leave-request-queue .leave-request-card .card-body {
  padding: 1rem;
}
.leave-request-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.leave-request-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #e9ecef;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.leave-request-badge.leave-request-datetime {
  background: #dee2e6;
  font-weight: 600;
}
.leave-request-meta dt { font-weight: 600; color: #6c757d; font-size: inherit; }
.leave-request-meta dd { margin-bottom: 0; font-size: inherit; }
.leave-request-meta .col-12 { margin-bottom: 0.25rem; }
.leave-request-min-staffing { font-size: 1.15rem; font-weight: 600; }
.leave-request-form .form-label { font-weight: 500; }
.leave-request-form .form-control, .leave-request-form .form-select { font-size: 0.875rem; }
.leave-request-form textarea { resize: vertical; }
.leave-request-links a:hover { text-decoration: underline !important; }

/* Overtime Request Queue: same card style as Leave Requests, with OT accent */
.overtime-request-queue .overtime-request-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.overtime-request-queue .overtime-request-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.overtime-request-queue .overtime-request-card .card-header {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.75rem 1rem;
}
.overtime-request-queue .overtime-request-card .card-header h3 {
  color: #fff;
}
.overtime-request-queue .overtime-request-card.overtime-request-pending {
  border-left: 3px solid var(--dts-assign-overtime, #b91c1c);
}
.overtime-request-queue .overtime-request-card .card-body {
  padding: 1rem;
}
.overtime-request-queue .overtime-request-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.overtime-request-queue .overtime-request-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #fca5a5;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #7f1d1d;
}
.overtime-request-queue .overtime-request-badge.overtime-request-datetime {
  background: #f87171;
  font-weight: 600;
}
.overtime-request-queue .overtime-request-meta dt { font-weight: 600; color: #6c757d; font-size: inherit; }
.overtime-request-queue .overtime-request-meta dd { margin-bottom: 0; font-size: inherit; }
.overtime-request-queue .overtime-request-form .form-label { font-weight: 500; }
.overtime-request-queue .overtime-request-form .form-control, .overtime-request-queue .overtime-request-form .form-select { font-size: 0.875rem; }
.overtime-request-queue .overtime-request-form textarea { resize: vertical; }

/* Swap Request Queue: same card style as Overtime Requests, with primary/swap accent */
.swap-request-queue .swap-request-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.swap-request-queue .swap-request-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.swap-request-queue .swap-request-card .card-header {
  background: linear-gradient(180deg, #e8f4fc 0%, #d0e8f8 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}
.swap-request-queue .swap-request-card.swap-request-pending {
  border-left: 3px solid var(--bs-primary, #0d6efd);
}
.swap-request-queue .swap-request-card .card-body {
  padding: 1rem;
}
.swap-request-queue .swap-request-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.swap-request-queue .swap-request-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #cfe2ff;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #084298;
}
.swap-request-queue .swap-request-badge.swap-request-datetime {
  background: #9ec5fe;
  font-weight: 600;
}
.swap-request-queue .swap-request-meta dt { font-weight: 600; color: #6c757d; font-size: inherit; }
.swap-request-queue .swap-request-meta dd { margin-bottom: 0; font-size: inherit; }
.swap-request-queue .swap-request-form .form-label { font-weight: 500; }
.swap-request-queue .swap-request-form .form-control, .swap-request-queue .swap-request-form .form-select { font-size: 0.875rem; }
.swap-request-queue .swap-request-form textarea { resize: vertical; }

/* Dark mode: request detail cards keep light header/badge fills that wash out body text */
[data-bs-theme="dark"] .leave-request-queue .leave-request-card .card-header {
  background: var(--bs-secondary-bg);
  border-bottom-color: var(--bs-border-color);
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .leave-request-queue .leave-request-card .card-header a {
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .leave-request-badge {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .leave-request-badge.leave-request-datetime {
  background: rgba(var(--bs-body-color-rgb), 0.18);
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .overtime-request-queue .overtime-request-badge {
  background: rgba(239, 68, 68, 0.28);
  color: #fecaca;
}
[data-bs-theme="dark"] .overtime-request-queue .overtime-request-badge.overtime-request-datetime {
  background: rgba(239, 68, 68, 0.4);
  color: #fee2e2;
}
[data-bs-theme="dark"] .swap-request-queue .swap-request-card .card-header {
  background: var(--bs-secondary-bg);
  border-bottom-color: var(--bs-border-color);
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .swap-request-queue .swap-request-card .card-header .text-muted {
  color: var(--bs-secondary-color) !important;
}
[data-bs-theme="dark"] .swap-request-queue .swap-request-badge {
  background: rgba(110, 168, 254, 0.22);
  color: #cfe2ff;
}
[data-bs-theme="dark"] .swap-request-queue .swap-request-badge.swap-request-datetime {
  background: rgba(110, 168, 254, 0.35);
  color: #e7f1ff;
}

@media (max-width: 575.98px) {
  .leave-request-queue .card-body { padding: 0.75rem; }
  .leave-request-queue .leave-request-form .d-flex { flex-direction: column; align-items: stretch !important; }
  .leave-request-queue .leave-request-form select { width: 100% !important; min-width: 0 !important; }
  .leave-request-queue .leave-request-form button { width: 100%; }
  .leave-request-highlights { flex-direction: column; }
  .overtime-request-queue .card-body { padding: 0.75rem; }
  .overtime-request-queue .overtime-request-form .d-flex { flex-direction: column; align-items: stretch !important; }
  .overtime-request-queue .overtime-request-form select { width: 100% !important; min-width: 0 !important; }
  .overtime-request-queue .overtime-request-form button { width: 100%; }
  .overtime-request-queue .overtime-request-highlights { flex-direction: column; }
  .swap-request-queue .card-body { padding: 0.75rem; }
  .swap-request-queue .swap-request-form .d-flex { flex-direction: column; align-items: stretch !important; }
  .swap-request-queue .swap-request-form select { width: 100% !important; min-width: 0 !important; }
  .swap-request-queue .swap-request-form button { width: 100%; }
  .swap-request-queue .swap-request-highlights { flex-direction: column; }
}

/* DTS Modal styling - use on all modals for consistent blue header bar */
.dts-modal-header {
  background: linear-gradient(135deg, #1e5a8e 0%, #2d7ab8 100%);
  color: #fff;
  border-bottom: none;
  padding: 1rem 1.25rem;
}
.dts-modal-header .modal-title { font-weight: 600; font-size: 1.1rem; }
.dts-modal-header.dts-modal-header-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}
.dts-modal-content { border: none; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.dts-modal-body { padding: 1.25rem 1.5rem; background: #f8fafc; }
.dts-modal-footer {
  padding: 0.75rem 1.5rem 1.15rem;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}
[data-bs-theme="dark"] .dts-modal-footer {
  background-color: var(--bs-body-bg) !important;
  border-top-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .day-quick-bv-field-card,
[data-bs-theme="dark"] .vendor-flag-summary-card {
  background-color: var(--bs-secondary-bg) !important;
  border-color: var(--bs-border-color) !important;
}

/* Suspended vendor lines in native <select> (Add Detail, etc.). Whole option is red; HTML cannot color part of an option. */
select.form-select option.add-detail-vendor-suspended {
  color: #b02a37;
  font-weight: 600;
}
[data-bs-theme="dark"] select.form-select option.add-detail-vendor-suspended {
  color: #f1aeb5;
}

/* Assignment location field: map + saved-locations tooltips (Bootstrap, placement left) */
.tooltip.dts-tooltip-assignment-loc {
  --bs-tooltip-bg: #fff;
  --bs-tooltip-color: #1e293b;
  --bs-tooltip-max-width: min(320px, 86vw);
}
.tooltip.dts-tooltip-assignment-loc .tooltip-inner {
  text-align: left;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.42;
  font-weight: 400;
  border: 1px solid rgba(30, 90, 142, 0.22);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
}

/* DTS Custom Menu offcanvas - match DTS modal (gradient header, light body, shadow) */
.dts-offcanvas-shortcuts.offcanvas-end {
  width: min(340px, 92vw) !important;
  border: none;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.dts-offcanvas-shortcuts .offcanvas-header.dts-modal-header {
  padding: 1rem 1.25rem;
}
.dts-offcanvas-shortcuts .offcanvas-header.dts-modal-header .offcanvas-title {
  font-weight: 600;
  font-size: 1.1rem;
}
.dts-offcanvas-shortcuts .offcanvas-body.dts-modal-body {
  background: #f8fafc;
}
.dts-shortcuts-toolbar {
  background: rgba(255, 255, 255, 0.85);
}
[data-bs-theme="dark"] .dts-shortcuts-toolbar {
  background: rgba(33, 37, 41, 0.5);
}
.dts-shortcuts-list .dts-shortcuts-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
  min-width: 0;
  background: transparent;
  transition: background 0.15s ease;
}
.dts-shortcuts-list .dts-shortcuts-link {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.dts-shortcuts-list .dts-shortcuts-row:last-child {
  border-bottom: none;
}
.dts-shortcuts-list .dts-shortcuts-row-action {
  cursor: pointer;
}
.dts-shortcuts-list .dts-shortcuts-row-action:hover {
  background: rgba(30, 90, 142, 0.06);
}
.dts-shortcuts-list .dts-shortcuts-unpin {
  opacity: 0.65;
  line-height: 1;
  border: none;
  padding: 0.25rem;
}
.dts-shortcuts-list .dts-shortcuts-unpin:hover {
  opacity: 1;
  color: var(--bs-danger) !important;
  background: rgba(220, 53, 69, 0.08);
  border-radius: 6px;
}
.dts-custom-menu-drag-handle {
  color: var(--bs-secondary-color);
  cursor: grab;
  line-height: 1;
  border: none;
  min-width: 1.35rem;
  text-decoration: none !important;
  touch-action: none;
  margin-top: 0.1rem;
}
.dts-custom-menu-drag-handle:hover {
  color: var(--bs-primary);
}
.dts-custom-menu-drag-handle:active {
  cursor: grabbing;
}
.dts-shortcuts-list .dts-custom-menu-sortable-ghost {
  opacity: 0.45;
  background: rgba(30, 90, 142, 0.08);
}
.dts-shortcuts-list .dts-custom-menu-sortable-chosen {
  background: rgba(30, 90, 142, 0.07);
}
.dts-shortcuts-empty {
  padding: 2.5rem 1.5rem;
  max-width: 16rem;
  margin: 0 auto;
}
[data-bs-theme="dark"] .dts-offcanvas-shortcuts .offcanvas-body.dts-modal-body {
  background-color: var(--bs-body-bg) !important;
}
[data-bs-theme="dark"] .dts-shortcuts-list .dts-shortcuts-row {
  border-bottom-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .dts-shortcuts-list .dts-shortcuts-row-action:hover {
  background: rgba(13, 110, 253, 0.12);
}
[data-bs-theme="dark"] .dts-shortcuts-list .dts-custom-menu-sortable-ghost {
  background: rgba(13, 110, 253, 0.15);
}
[data-bs-theme="dark"] .dts-shortcuts-list .dts-custom-menu-sortable-chosen {
  background: rgba(13, 110, 253, 0.12);
}

/* Payroll officer header row - gray to match Payroll Period card header */
.dts-payroll-officer-header,
.dts-payroll-officer-header td {
  background: #e9ecef !important;
  color: #333333 !important;
}

/* Batch Approve: checkbox, smaller notes text */
.batch-approve-select-cell { width: 70px; }
.batch-approve-checkbox { width: 1.15rem; height: 1.15rem; cursor: pointer; }
.batch-approve-notes { font-size: 0.7rem; line-height: 1.3; }

/* Batch Charging roster: slightly stronger zebra rows and clearer checkboxes */
#batchChargeRosterTable tbody tr:nth-child(odd) td {
  background-color: #fff !important;
}
#batchChargeRosterTable tbody tr:nth-child(even) td {
  background-color: #eef1f4 !important;
}
#batchChargeRosterTable.table-hover tbody tr:hover td {
  background-color: #e2e8ed !important;
}
#batchChargeRosterTable .batch-charge-officer-check {
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid #5c6770;
  cursor: pointer;
}
#batchChargeRosterTable .batch-charge-officer-check:checked {
  background-color: #1e5a8e;
  border-color: #1e5a8e;
}
#batchChargeRosterTable .batch-charge-officer-check:focus {
  border-color: #1e5a8e;
  box-shadow: 0 0 0 0.2rem rgba(30, 90, 142, 0.25);
}
#batchChargeRosterTable tr.batch-charge-not-on-list td {
  background-color: #eceff2 !important;
  color: #6c757d;
}
#batchChargeRosterTable tr.batch-charge-not-on-list:hover td {
  background-color: #e2e6ea !important;
}
#batchChargeRosterTable .batch-charge-not-on-list-name {
  text-decoration: line-through;
}
#batchChargeRosterTable .batch-charge-not-on-list-label {
  font-style: italic;
  color: #868e96;
}
#batchChargeRosterTable tr.batch-charge-not-on-list .batch-charge-officer-check:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* List modals: bookmark tick for "me" row */
.dts-list-modal-table .dts-list-me-col { width: 2rem; text-align: center; padding: 0.5rem 0.35rem !important; }
.dts-list-row-me td { background-color: rgba(30, 90, 142, 0.08) !important; }

/* Dark mode: tables use dark backgrounds (site.css and Bootstrap force light colors) */
[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .table > :not(caption) > * > * {
  --bs-table-bg: var(--bs-body-bg);
  --bs-table-color: var(--bs-body-color);
  --bs-table-border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .table tbody tr:nth-child(odd) td,
[data-bs-theme="dark"] .table tbody tr:nth-child(even) td {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .table tbody tr:nth-child(even) td {
  background-color: var(--bs-tertiary-bg) !important;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover td {
  background-color: var(--bs-secondary-bg) !important;
}
/* My Slips / Slip History mobile cards use tr as the card surface */
@media (max-width: 767.98px) {
  .my-slips-table tbody tr td,
  .my-slip-history-table tbody tr td {
    background-color: transparent !important;
  }
  .my-slips-table tbody tr:hover td,
  .my-slip-history-table tbody tr:hover td {
    background-color: transparent !important;
  }
  [data-bs-theme="dark"] .my-slips-table tbody tr,
  [data-bs-theme="dark"] .my-slip-history-table tbody tr {
    background: var(--bs-secondary-bg);
  }
}
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--bs-body-bg);
}
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: var(--bs-tertiary-bg);
}
[data-bs-theme="dark"] .table-primary,
[data-bs-theme="dark"] thead.table-primary th {
  --bs-table-bg: var(--bs-primary-border-subtle);
  --bs-table-color: var(--bs-primary-text-emphasis);
  --bs-table-border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] thead.table-light th {
  --bs-table-bg: var(--bs-secondary-bg);
  --bs-table-color: var(--bs-body-color);
  --bs-table-border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .table-success {
  --bs-table-bg: var(--bs-success-bg-subtle);
  --bs-table-color: var(--bs-success-text-emphasis);
  --bs-table-border-color: var(--bs-success-border-subtle);
}
[data-bs-theme="dark"] .table-danger {
  --bs-table-bg: var(--bs-danger-bg-subtle);
  --bs-table-color: var(--bs-danger-text-emphasis);
  --bs-table-border-color: var(--bs-danger-border-subtle);
}
/* Calendar Day view: keep row tinting/striping visible in dark mode (same behavior as light mode). */
[data-bs-theme="dark"] .day-view-table tbody tr td {
  --bs-table-bg-type: transparent !important;
  --bs-table-bg-state: transparent !important;
  background-color: inherit !important;
  color: #212529 !important;
  box-shadow: none !important;
}
[data-bs-theme="dark"] .day-view-table tbody tr:hover td {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.18) !important;
}
[data-bs-theme="dark"] .dts-payroll-officer-header,
[data-bs-theme="dark"] .dts-payroll-officer-header td {
  background: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}

/* Dark mode: form controls, selects, and announcement board text areas */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] textarea.form-control,
[data-bs-theme="dark"] input.form-control,
[data-bs-theme="dark"] select.form-select,
[data-bs-theme="dark"] .form-select {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}
/* Native option list colors (improves dark dropdowns in some browsers) */
[data-bs-theme="dark"] .form-select option {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Scrollable employee / officer checkbox lists: theme surface (replaces hardcoded #f8fafc) */
.dts-picklist-scroll {
  background-color: var(--bs-secondary-bg) !important;
  border-color: var(--bs-border-color) !important;
}

/* Dark: modal/tool bodies that used light gray (#f8fafc) in light mode */
[data-bs-theme="dark"] .view-bids-modal-body,
[data-bs-theme="dark"] .invoice-tool-modal-body,
[data-bs-theme="dark"] .who-to-force-modal-body,
[data-bs-theme="dark"] .payroll-audit-modal-body,
[data-bs-theme="dark"] .traffic-metrics-modal-body,
[data-bs-theme="dark"] #leave-notes-modal .leave-notes-modal-body {
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] #unbilledAllModal .view-bids-modal-body {
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .vendor-invoice-assignment-block .card-body {
  background: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .detail-inspections-table .form-cell {
  background: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .vir-section-row td {
  background: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}

/* Assignments list calendar strip (minical) */
[data-bs-theme="dark"] .assignments-calendar-day {
  background: var(--bs-secondary-bg) !important;
  border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .assignments-calendar-day:hover {
  background: var(--bs-tertiary-bg) !important;
  border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .assignments-calendar-day.today {
  background: var(--bs-primary-bg-subtle) !important;
  border-color: var(--bs-primary) !important;
}
[data-bs-theme="dark"] pre.bg-light {
  background-color: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}

/* Dark mode: report description cards (My Leave Transactions Report, etc.) - avoid light bg + muted text */
.dts-report-description-card { background-color: #f8f9fa; }
[data-bs-theme="dark"] .dts-report-description-card {
  background-color: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .dts-report-description-card .card-title,
[data-bs-theme="dark"] .dts-report-description-card .card-text {
  color: var(--bs-body-color) !important;
}

/* Dark mode: modal body - avoid white/light box in dark theme */
[data-bs-theme="dark"] .dts-modal-body {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .dts-modal-body .text-muted {
  color: var(--bs-secondary-color) !important;
}
[data-bs-theme="dark"] .dts-list-row-me td {
  background-color: rgba(13, 110, 253, 0.15) !important;
}

/* BatchBid / My Bids: row hover only on desktop, not mobile */
@media (min-width: 768px) {
  .batch-bid-index-wrapper .table-batch-bid tbody tr:hover td:not(.batch-bid-color-cell),
  .my-bids-table-wrapper .table-batch-bid tbody tr:hover td:not(.batch-bid-color-cell) {
    background-color: #e9ecef !important;
  }
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody tr:hover td:not(.batch-bid-color-cell),
  [data-bs-theme="dark"] .my-bids-table-wrapper .table-batch-bid tbody tr:hover td:not(.batch-bid-color-cell) {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color) !important;
  }
}
@media (max-width: 767px) {
  .batch-bid-index-wrapper .table-batch-bid tbody tr:hover td:not(.batch-bid-color-cell),
  .my-bids-table-wrapper .table-batch-bid tbody tr:hover td:not(.batch-bid-color-cell) {
    background-color: inherit !important;
  }
  html:not([data-bs-theme="dark"]) .batch-bid-index-wrapper .table-batch-bid tbody tr:nth-child(odd):hover td:not(.batch-bid-color-cell) { background-color: #fff !important; }
  html:not([data-bs-theme="dark"]) .batch-bid-index-wrapper .table-batch-bid tbody tr:nth-child(even):hover td:not(.batch-bid-color-cell) { background-color: #f8f9fa !important; }
  html:not([data-bs-theme="dark"]) .my-bids-table-wrapper .table-batch-bid tbody tr:nth-child(odd):hover td:not(.batch-bid-color-cell) { background-color: #fff !important; }
  html:not([data-bs-theme="dark"]) .my-bids-table-wrapper .table-batch-bid tbody tr:nth-child(even):hover td:not(.batch-bid-color-cell) { background-color: #f8f9fa !important; }
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody tr:nth-child(odd):hover td:not(.batch-bid-color-cell),
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody tr:nth-child(even):hover td:not(.batch-bid-color-cell),
  [data-bs-theme="dark"] .my-bids-table-wrapper .table-batch-bid tbody tr:nth-child(odd):hover td:not(.batch-bid-color-cell),
  [data-bs-theme="dark"] .my-bids-table-wrapper .table-batch-bid tbody tr:nth-child(even):hover td:not(.batch-bid-color-cell) {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color) !important;
  }
}

/* Read-only assignment notation/history blocks (modal + batch bid expanded row) */
textarea.form-control.assignment-card-notes[readonly] {
  line-height: 1.65;
  padding: 0.5rem 0.65rem;
  white-space: pre-wrap;
}

/* Dark mode: BatchBid expanded inline assignment sheet (table + notation column) */
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-table-wrap {
  background-color: var(--bs-secondary-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-table {
  color: var(--bs-body-color) !important;
  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-table td {
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-table td:nth-child(2) {
  color: var(--bs-emphasis-color) !important;
}
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-notes-section {
  background-color: var(--bs-secondary-bg) !important;
  border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-notes-label {
  color: var(--bs-secondary-color) !important;
}
[data-bs-theme="dark"] .batch-bid-inline-card .assignment-card-notes {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .batch-bid-index-wrapper.batch-bid-expanded .batch-bid-assignment-block tr.batch-bid-card-row td.batch-bid-card-cell,
[data-bs-theme="dark"] .batch-bid-index-wrapper.batch-bid-expanded .batch-bid-assignment-block tr.batch-bid-card-row td {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Dark mode: BatchBid desktop summary row (Index inline CSS forces white cells) */
@media (min-width: 768px) {
  [data-bs-theme="dark"] .batch-bid-index-wrapper .batch-bid-assignment-block tr.batch-bid-index-row td:not(.batch-bid-color-cell) {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Dark mode: BatchBid mobile cards (My Bids, Assignment Board) */
@media (max-width: 767px) {
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody.batch-bid-assignment-block {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  [data-bs-theme="dark"] .my-bids-table-wrapper .table-batch-bid tbody tr.my-bids-row,
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody tr.batch-bid-index-row {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  [data-bs-theme="dark"] .my-bids-table-wrapper .table-batch-bid tbody tr.my-bids-row td.my-bids-actions-cell,
  [data-bs-theme="dark"] .my-bids-table-wrapper .table-batch-bid tbody tr.my-bids-row td.my-bids-withdraw-cell,
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody tr.batch-bid-index-row td.batch-bid-actions-cell {
    border-top-color: var(--bs-border-color) !important;
  }
  [data-bs-theme="dark"] .batch-bid-index-wrapper .table-batch-bid tbody tr.batch-bid-index-row td.batch-bid-color-cell:has(.batch-bid-row-checkbox) {
    background: var(--bs-secondary-bg) !important;
  }
}
[data-bs-theme="dark"] .sortable-ghost {
  background: var(--bs-secondary-bg) !important;
  opacity: 0.5;
}

/* Dark mode: Bid Cal modal grid */
[data-bs-theme="dark"] .bid-cal-grid {
  background: var(--bs-border-color);
  border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .bid-cal-dow,
[data-bs-theme="dark"] .bid-cal-cell,
[data-bs-theme="dark"] .bid-cal-cell.bid-cal-empty,
[data-bs-theme="dark"] .bid-cal-cell.bid-cal-other-month {
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .bid-cal-dow {
  color: var(--bs-secondary-color) !important;
}

/* Dashboard: title as subtle button */
.dashboard-title-btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}

/* My Info: larger dark mode toggle */
.form-switch.form-switch-lg {
  padding-left: 3.5em;
}
.form-switch.form-switch-lg .form-check-input {
  width: 3em;
  height: 1.5em;
  margin-left: -3.5em;
  border-radius: 2em;
}

/* Dashboard: assignment search responsive on mobile */
.dashboard-search-form {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}
.dashboard-search-input-group {
  width: 100%;
  min-width: 0;
  max-width: 400px;
}
@media (min-width: 576px) {
  .dashboard-search-form {
    flex: 0 0 auto;
    max-width: none;
  }
  .dashboard-search-input-group {
    width: 400px;
    min-width: 400px;
    flex-shrink: 0;
  }
}

/* Shared mobile quick nav: app-wide tiles + search under top bar */
@media (max-width: 767.98px) {
  .dts-mobile-quicknav {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    min-width: 0;
    max-width: 100%;
  }
  .dts-mobile-quicknav-scroller-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .dts-mobile-quicknav-scroller {
    display: flex;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.35rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }
  .dts-mobile-quicknav-scroller::-webkit-scrollbar {
    display: none;
  }
  /* Desktop narrow windows: show a thin scrollbar + grab cursor (touch devices keep hidden bar). */
  @media (hover: hover) and (pointer: fine) {
    .dts-mobile-quicknav-scroller {
      scrollbar-width: thin;
      cursor: grab;
    }
    .dts-mobile-quicknav-scroller.is-dragging {
      cursor: grabbing;
      scroll-snap-type: none;
      user-select: none;
    }
    .dts-mobile-quicknav-scroller.is-dragging a,
    .dts-mobile-quicknav-scroller.is-dragging button {
      pointer-events: none;
    }
    .dts-mobile-quicknav-scroller::-webkit-scrollbar {
      display: block;
      height: 8px;
    }
    .dts-mobile-quicknav-scroller::-webkit-scrollbar-thumb {
      background: rgba(74, 85, 98, 0.45);
      border-radius: 999px;
    }
    .dts-mobile-quicknav-scroller::-webkit-scrollbar-track {
      background: transparent;
    }
  }
  .dts-mobile-quicknav-grid {
    display: grid;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .dts-mobile-quicknav-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dts-mobile-quicknav-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dts-mobile-quicknav-tile {
    min-width: 0;
    min-height: 5.25rem;
    padding: 0.9rem 0.45rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    text-decoration: none;
    color: #4a5562;
    background: transparent;
    border-right: 1px solid var(--bs-border-color);
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  button.dts-mobile-quicknav-tile {
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
  }
  .dts-mobile-quicknav-tile-scroll {
    flex: 0 0 8.9rem;
    scroll-snap-align: start;
  }
  .dts-mobile-quicknav-grid .dts-mobile-quicknav-tile:nth-child(4n),
  .dts-mobile-quicknav-grid-2 .dts-mobile-quicknav-tile:nth-child(2n) {
    border-right: 0;
  }
  .dts-mobile-quicknav-tile i {
    font-size: 1.45rem;
    line-height: 1;
  }
  .dts-mobile-quicknav-tile span {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
    text-wrap: balance;
  }
  .dts-mobile-quicknav-tile.active {
    background: var(--dts-primary);
    color: #fff;
  }
  .dts-mobile-quicknav-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .dts-mobile-quicknav-search-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .dts-mobile-quicknav-search-field i {
    color: #7b8794;
    font-size: 1.65rem;
    flex-shrink: 0;
  }
  .dts-mobile-quicknav-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.15rem 0;
  }
  .dts-mobile-quicknav-search-field input::placeholder {
    color: #8a94a3;
    opacity: 1;
  }
  .dts-mobile-quicknav-search-btn {
    width: 5rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--dts-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
  }
  .dts-mobile-quicknav-search-hint {
    display: none;
    grid-column: 1 / -1;
    padding: 0 1rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.35;
  }
  .dts-mobile-quicknav-search:focus-within .dts-mobile-quicknav-search-hint {
    display: block;
  }
  .dts-mobile-quicknav-search-btn:focus-visible,
  .dts-mobile-quicknav-tile:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
  }
}

/* Date inputs: larger on mobile/iOS WebView for readable picker and touch targets */
@media (max-width: 767.98px) {
  input[type="date"] {
    font-size: 16px !important;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }
  input[type="date"].form-control-sm {
    min-height: 44px;
    font-size: 16px !important;
  }
}

/* Flatpickr: larger calendar on phone/tablet (replaces tiny native iOS date wheel; include iPad ≥768px) */
@media (max-width: 1024px) {
  /* Prevent iOS zoom on focus: font-size 16px+ disables auto-zoom */
  .flatpickr-input,
  input.flatpickr-input {
    font-size: 16px !important;
  }
  .flatpickr-calendar {
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
  .flatpickr-calendar.open {
    max-width: calc(100vw - 24px);
  }
  .flatpickr-current-month {
    font-size: 1.1rem;
    padding: 8px 0;
  }
  .flatpickr-weekday {
    font-size: 0.85rem;
  }
  .flatpickr-day {
    font-size: 1rem;
    max-width: 44px;
    height: 44px;
    line-height: 44px;
  }
  .flatpickr-months .flatpickr-prev-month,
  .flatpickr-months .flatpickr-next-month {
    padding: 12px;
  }
  .flatpickr-months .flatpickr-prev-month svg,
  .flatpickr-months .flatpickr-next-month svg {
    width: 18px;
    height: 18px;
  }
}

/* Roster: Lists / Bid History / Mobile — compact primary row actions */
.dts-roster-action-btn {
  white-space: nowrap;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.dts-roster-action-btn.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
  filter: brightness(1.04);
}
/* Mobile: no app installed — gray button, subtle hover */
.dts-roster-action-btn.btn-secondary:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  filter: brightness(1.06);
}

/* Signature slip link icon (image; same asset as Detail Slips report) */
.slip-icon {
  position: relative;
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slip-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slip-icon-badge {
  position: absolute;
  right: -0.28rem;
  bottom: -0.32rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* DTS Partner — busy loading indicator while waiting for AI reply */
.dts-partner-thinking {
  font-size: 0.95rem;
}

.dts-partner-thinking-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  vertical-align: middle;
}

.dts-partner-thinking-blocks {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  flex-shrink: 0;
}

.dts-partner-thinking-blocks span {
  display: block;
  width: 5px;
  height: 8px;
  border-radius: 1px;
  transform-origin: center bottom;
  animation: dtsPartnerBlockPulse 0.48s ease-in-out infinite;
}

.dts-partner-thinking-blocks span:nth-child(1) {
  background: #1e5a8e;
  animation-delay: 0s;
}

.dts-partner-thinking-blocks span:nth-child(2) {
  background: #256da8;
  animation-delay: 0.07s;
}

.dts-partner-thinking-blocks span:nth-child(3) {
  background: #2d7ab8;
  animation-delay: 0.14s;
}

.dts-partner-thinking-blocks span:nth-child(4) {
  background: #3d8fd1;
  animation-delay: 0.21s;
}

.dts-partner-thinking-blocks span:nth-child(5) {
  background: #5ba3e0;
  animation-delay: 0.28s;
}

.dts-partner-thinking-label {
  color: #5f6368;
  font-weight: 500;
}

@keyframes dtsPartnerBlockPulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1.25);
    opacity: 1;
  }
}
