/**
 * Shared cabinet design kit (desktop CEO visual contract).
 * Role CSS should only keep screen-specific rules.
 *
 * Shell: .cab-shell (role cabinets) and/or .ceo-shell (CEO / TLM, incl. SSR).
 */

html:has(.cab-shell),
body:has(.cab-shell),
html:has(.ceo-shell),
body:has(.ceo-shell) {
  background: #e0e0e0 !important;
}

.cab-shell,
.ceo-shell {
  align-content: start;
  background: #e0e0e0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 100vh;
  padding: 44px 48px 56px;
  width: min(1440px, calc(100vw - 32px));
}

.cab-shell > .cab-header,
.cab-shell > .cabinet-header,
.cab-shell > .ceo-header,
.cab-shell > .cab-tabs,
.cab-shell > .ceo-nav,
.cab-shell > .tab-panel,
.ceo-shell > .cab-header,
.ceo-shell > .cabinet-header,
.ceo-shell > .ceo-header,
.ceo-shell > .cab-tabs,
.ceo-shell > .ceo-nav,
.ceo-shell > .tab-panel {
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

.cab-shell > .tab-panel > *,
.ceo-shell > .tab-panel > * {
  min-width: 0;
}

.cab-shell > .tab-panel,
.cab-shell > .react-route-panel,
.cab-shell .react-animated-panel,
.ceo-shell > .tab-panel,
.ceo-shell > .react-route-panel,
.ceo-shell .react-animated-panel {
  display: grid;
  gap: 0;
  min-width: 0;
}

.cab-header,
.ceo-header,
.cab-shell > header.cabinet-header,
.ceo-shell > header.cabinet-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.cab-header h1,
.ceo-header h1,
.cab-shell > header.cabinet-header h1,
.ceo-shell > header.cabinet-header h1 {
  color: #101828;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.cab-header p,
.cab-header small,
.ceo-header p,
.ceo-header small,
.cab-shell > header.cabinet-header p,
.cab-shell > header.cabinet-header small,
.ceo-shell > header.cabinet-header p,
.ceo-shell > header.cabinet-header small {
  color: #667085;
  margin: 0;
}

.cab-header small,
.ceo-header small,
.cab-shell > header.cabinet-header small,
.ceo-shell > header.cabinet-header small {
  display: block;
  margin-top: 8px;
}

.cab-header .cabinet-header-actions,
.ceo-header .cabinet-header-actions,
.cab-shell > header .cabinet-header-actions,
.ceo-shell > header .cabinet-header-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.cab-wallet-button {
  gap: 8px;
  position: relative;
}

.cab-wallet-button svg {
  flex-shrink: 0;
}

.cab-wallet-badge {
  align-items: center;
  background: #d92d20;
  border: 2px solid #e0e0e0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 4px;
  pointer-events: none;
  position: absolute;
  right: -6px;
  top: -6px;
}

/* Shared employee wallet (booking, CEO, …). Isolated from role shell field overrides. */
.cab-wallet {
  display: grid;
  gap: 22px;
}

.cab-wallet-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.cab-wallet-head h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.cab-wallet-head p,
.cab-wallet-hint,
.cab-wallet-available,
.cab-wallet-card-meta {
  color: #667085;
  font-size: 13px;
  margin: 4px 0 0;
}

.cab-wallet-section {
  display: grid;
  gap: 12px;
}

.cab-wallet-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.cab-wallet-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.cab-wallet-card {
  background: #e0e0e0;
  border-radius: 18px;
  box-shadow:
    8px 8px 16px #bebebe,
    -8px -8px 16px #ffffff;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.cab-wallet-card-code {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cab-wallet-card strong {
  font-size: 22px;
  font-weight: 900;
}

.cab-wallet-card strong.is-negative {
  color: #d92d20;
}

.cab-wallet-form,
.cab-wallet-field {
  align-content: start;
  display: grid;
  gap: 8px;
  overflow: visible;
}

.cab-wallet-form-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr);
}

.cab-wallet-label,
.cab-wallet-field > label,
.cab-wallet-form label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.cab-wallet-error {
  background: #fee4e2;
  border-radius: 12px;
  color: #b42318;
  font-size: 14px;
  padding: 12px 14px;
}

.cab-wallet-history {
  display: grid;
  gap: 10px;
}

.cab-wallet-history-row {
  align-items: flex-start;
  background: #e0e0e0;
  border-radius: 16px;
  box-shadow:
    inset 5px 5px 10px #bebebe,
    inset -5px -5px 10px #ffffff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.cab-wallet-history-main {
  display: grid;
  gap: 2px;
}

.cab-wallet-history-main strong.is-in {
  color: #12b76a;
}

.cab-wallet-history-main strong.is-out {
  color: #344054;
}

.cab-wallet-history-date,
.cab-wallet-history-comment {
  color: #667085;
  font-size: 12px;
}

.cab-wallet-history-side {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cab-wallet-recipient {
  position: relative;
}

.cab-wallet-recipient-search {
  position: relative;
}

.cab-wallet-recipient-search svg {
  fill: none;
  height: 18px;
  left: 12px;
  pointer-events: none;
  position: absolute;
  stroke: #98a2b3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  z-index: 1;
}

.cab-wallet-recipient-list {
  background: #e0e0e0;
  border-radius: 14px;
  box-shadow:
    8px 8px 16px #bebebe,
    -8px -8px 16px #ffffff;
  left: 0;
  list-style: none;
  margin: 4px 0 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.cab-wallet-recipient-empty {
  color: #667085;
  font-size: 13px;
  padding: 10px 12px;
}

.cab-wallet-recipient-list button strong,
.cab-wallet-recipient-list button span {
  display: block;
}

.cab-wallet-recipient-list button span {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.leader-incoming-transfers {
  display: grid;
  gap: 10px;
}

.leader-incoming-transfer-card {
  background: #e0e0e0;
  border-left: 5px solid #2e90fa;
  border-radius: 16px;
  box-shadow:
    8px 8px 16px #bebebe,
    -8px -8px 16px #ffffff;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.leader-incoming-transfer-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.leader-incoming-transfer-badge {
  color: #175cd3;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leader-incoming-transfer-date {
  color: #667085;
  font-size: 11px;
}

.leader-incoming-transfer-body {
  color: #101828;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.leader-incoming-transfer-amount {
  color: #12b76a;
  font-size: 18px;
  font-weight: 800;
  margin-right: 6px;
}

.leader-incoming-transfer-sender {
  color: #475467;
  font-size: 14px;
  font-weight: 500;
}

.leader-incoming-transfer-comment {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  color: #475467;
  font-size: 13px;
  font-style: italic;
  padding: 6px 10px;
}

.leader-incoming-transfer-actions {
  display: flex;
  gap: 10px;
}

.leader-incoming-transfer-accept-btn,
.leader-incoming-transfer-reject-btn {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.leader-incoming-transfer-accept-btn {
  background: #12b76a;
  color: #ffffff;
  flex: 1;
  padding: 10px 14px;
}

.leader-incoming-transfer-reject-btn {
  background: #e0e0e0;
  color: #d92d20;
  padding: 10px 16px;
}

@media (max-width: 720px) {
  .cab-wallet-form-row,
  .cab-wallet-history-row {
    grid-template-columns: 1fr;
  }

  .cab-wallet-history-row {
    display: grid;
  }

  .cab-wallet-history-side {
    justify-items: start;
  }
}

/* --- Segmented underline tabs (CEO nav / role status tabs) --- */
.ceo-nav,
.cab-tabs {
  --cab-tabs-count: 4;
  --cab-tab-index: 0;
  background: transparent !important;
  border: 0;
  border-bottom: 2px solid #d0d5dd;
  border-radius: 0;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  position: relative;
}

.cab-tabs {
  grid-template-columns: repeat(var(--cab-tabs-count), minmax(0, 1fr));
}

.ceo-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ceo-nav::after,
.cab-tabs::after {
  background: var(--btt-color-accent);
  border-radius: 3px 3px 0 0;
  bottom: -2px;
  content: "";
  height: 3px;
  left: 0;
  pointer-events: none;
  position: absolute;
  transition: transform 260ms ease;
}

.cab-tabs::after {
  transform: translateX(calc(var(--cab-tab-index) * 100%));
  width: calc(100% / var(--cab-tabs-count));
}

.ceo-nav::after {
  width: 25%;
}

.ceo-nav:has(.nav-tab:nth-child(2).active)::after {
  transform: translateX(100%);
}

.ceo-nav:has(.nav-tab:nth-child(3).active)::after {
  transform: translateX(200%);
}

.ceo-nav:has(.nav-tab:nth-child(4).active)::after {
  transform: translateX(300%);
}

.nav-tab,
.cab-tab,
.sales-tab,
.fin-tab,
.booking-tab {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #667085 !important;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
  height: auto;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
}

.nav-tab:hover:not(:disabled),
.nav-tab:active:not(:disabled),
.cab-tab:hover:not(:disabled),
.cab-tab:active:not(:disabled),
.sales-tab:hover:not(:disabled),
.sales-tab:active:not(:disabled),
.fin-tab:hover:not(:disabled),
.fin-tab:active:not(:disabled),
.booking-tab:hover:not(:disabled),
.booking-tab:active:not(:disabled) {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.nav-tab.active,
.cab-tab.active,
.sales-tab.active,
.fin-tab.active,
.booking-tab.active {
  background: transparent !important;
  color: var(--btt-color-accent) !important;
}

.cab-tab-count,
.sales-tab span,
.fin-tab span,
.booking-tab span {
  background: transparent;
  border-radius: 999px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.cab-tab.active .cab-tab-count,
.sales-tab.active span,
.fin-tab.active span,
.booking-tab.active span {
  background: var(--btt-color-accent-soft);
  color: var(--btt-color-accent-text);
}

/* --- SSR legacy tab rails (same chrome as .cab-tabs) --- */
.sales-tabs,
.fin-tabs,
.booking-tabs {
  background: transparent !important;
  border: 0;
  border-bottom: 2px solid #d0d5dd;
  border-radius: 0;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  position: relative;
}

.sales-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fin-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sales-tabs::after,
.fin-tabs::after,
.booking-tabs::after {
  background: var(--btt-color-accent);
  border-radius: 3px 3px 0 0;
  bottom: -2px;
  content: "";
  height: 3px;
  left: 0;
  pointer-events: none;
  position: absolute;
  transition: transform 260ms ease;
}

.sales-tabs::after {
  width: 25%;
}

.fin-tabs::after {
  width: calc(100% / 3);
}

.booking-tabs::after {
  width: 20%;
}

.sales-tabs:has(.sales-tab:nth-child(2).active)::after,
.fin-tabs:has(.fin-tab:nth-child(2).active)::after,
.booking-tabs:has(.booking-tab:nth-child(2).active)::after {
  transform: translateX(100%);
}

.sales-tabs:has(.sales-tab:nth-child(3).active)::after,
.fin-tabs:has(.fin-tab:nth-child(3).active)::after,
.booking-tabs:has(.booking-tab:nth-child(3).active)::after {
  transform: translateX(200%);
}

.sales-tabs:has(.sales-tab:nth-child(4).active)::after,
.booking-tabs:has(.booking-tab:nth-child(4).active)::after {
  transform: translateX(300%);
}

.booking-tabs:has(.booking-tab:nth-child(5).active)::after {
  transform: translateX(400%);
}

/* --- List head + search (CEO budget-search contract) --- */
.budget-list-head,
.cab-list-head {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 0 20px;
  min-width: 0;
}

.budget-list-head .budget-designer-trigger,
.budget-list-head .tour-designer-trigger,
.cab-list-head .budget-designer-trigger,
.cab-list-head .tour-designer-trigger {
  grid-column: 2;
  justify-self: center;
}

.budget-list.is-designing,
.tour-list.is-designing {
  display: grid;
  gap: 16px;
}

.budget-list.is-designing .budget-list-head,
.tour-list.is-designing .budget-list-head,
.budget-list.is-designing .cab-list-head,
.tour-list.is-designing .cab-list-head {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.budget-list.is-designing .budget-list-head .budget-designer-trigger,
.tour-list.is-designing .budget-list-head .tour-designer-trigger,
.budget-list.is-designing .cab-list-head .budget-designer-trigger,
.tour-list.is-designing .cab-list-head .tour-designer-trigger {
  grid-column: 1;
  justify-self: center;
}

.budget-list-head h3,
.budget-list-title,
.cab-list-head h3 {
  color: #101828;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.budget-list-head .budget-search,
.budget-list-head .cab-search,
.cab-list-head .budget-search,
.cab-list-head .cab-search {
  flex: none;
  grid-column: 3;
  justify-self: end;
  margin: 0;
  width: min(100%, 380px);
}

.cab-shell .budget-search,
.cab-shell .cab-search,
.cab-shell .sales-tour-search,
.cab-shell .booking-tour-search,
.cab-shell .fin-tour-search,
.ceo-shell .budget-search,
.ceo-shell .cab-search,
.work-shell-sales .sales-tour-search,
.work-shell-booking .booking-tour-search,
.work-shell-fin .fin-tour-search {
  color: #667085;
  font-size: 13px;
  position: relative;
}

.cab-shell .budget-search svg,
.cab-shell .cab-search svg,
.cab-shell .sales-tour-search svg,
.cab-shell .booking-tour-search svg,
.cab-shell .fin-tour-search svg,
.ceo-shell .budget-search svg,
.ceo-shell .cab-search svg,
.work-shell-sales .sales-tour-search svg,
.work-shell-booking .booking-tour-search svg,
.work-shell-fin .fin-tour-search svg {
  fill: none;
  height: 18px;
  left: 12px;
  pointer-events: none;
  position: absolute;
  stroke: #98a2b3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  z-index: 1;
}

.cab-shell .budget-search input::-webkit-search-decoration,
.cab-shell .budget-search input::-webkit-search-cancel-button,
.cab-shell .cab-search input::-webkit-search-decoration,
.cab-shell .cab-search input::-webkit-search-cancel-button,
.ceo-shell .budget-search input::-webkit-search-decoration,
.ceo-shell .budget-search input::-webkit-search-cancel-button,
.ceo-shell .cab-search input::-webkit-search-decoration,
.ceo-shell .cab-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cab-shell .budget-search-clear,
.cab-shell .cab-search-clear,
.ceo-shell .budget-search-clear,
.ceo-shell .cab-search-clear {
  align-items: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: #98a2b3;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.15s ease, background 0.15s ease;
  width: 22px;
  z-index: 2;
}

.cab-shell .budget-search-clear:hover,
.cab-shell .cab-search-clear:hover,
.ceo-shell .budget-search-clear:hover,
.ceo-shell .cab-search-clear:hover {
  background: rgba(16, 24, 40, 0.06);
  color: #667085;
}

/*
  List page rhythm (Sales / Fin / Booking / CEO lists):
  cab-list-head (margin-bottom 20) → cab-tabs → cab-panel → cards.
  Spacing under tabs:
  - Without hint (e.g. "All" tab): 36px padding-top gives clear clearance for
    the card's upward halo (~12–18px) so cards never stick to the slider line.
  - With hint: 20px padding-top places hint text cleanly under tabs, while
    the 20px grid gap + 4px margin gives 24px clearance between text and cards below.
*/
.cab-home {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.cab-home.cab-wallet {
  display: grid;
  gap: 22px;
  overflow: visible;
}

.cab-home > .cab-tabs {
  margin: 0;
}

.cab-panel {
  background: transparent !important;
  border: 0 !important;
  display: grid;
  gap: 20px;
  margin: 0;
  min-width: 0;
  padding: 36px 0 0;
}

.cab-panel:has(.cab-hint) {
  padding-top: 20px;
}

.cab-hint {
  background: transparent !important;
  border: 0 !important;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
  padding: 0;
}

.cab-empty {
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 20px;
  box-shadow:
    inset 6px 6px 12px #bebebe,
    inset -6px -6px 12px #ffffff;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 22px 18px;
  text-align: center;
}

/* --- Neumorphic fields + buttons (CEO contract) --- */
.cab-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-shell textarea,
.ceo-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ceo-shell textarea,
.budget-detail-screen input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.budget-detail-screen textarea,
.sales-cancel-participant-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.sales-cancel-participant-dialog textarea {
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 14px;
  box-shadow:
    inset 5px 5px 10px #bebebe,
    inset -5px -5px 10px #ffffff;
  color: #101828;
  font-size: inherit;
  font-weight: inherit;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
}

.cab-shell .budget-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-shell .cab-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-shell .sales-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-shell .booking-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-shell .fin-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ceo-shell .budget-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ceo-shell .cab-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.work-shell-sales .sales-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.work-shell-booking .booking-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.work-shell-fin .fin-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  /* CEO budgets/tours search: neumorphic inset pill (not glass) */
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow:
    inset 5px 5px 10px #bebebe,
    inset -5px -5px 10px #ffffff;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 40px 0 44px !important;
  width: 100%;
}

.cab-shell .budget-search input::placeholder,
.cab-shell .cab-search input::placeholder,
.ceo-shell .budget-search input::placeholder,
.ceo-shell .cab-search input::placeholder {
  -webkit-text-fill-color: #98a2b3;
  color: #98a2b3;
  opacity: 1;
}

.cab-shell input::placeholder,
.cab-shell textarea::placeholder,
.ceo-shell input::placeholder,
.ceo-shell textarea::placeholder,
.budget-detail-screen input::placeholder,
.budget-detail-screen textarea::placeholder,
.sales-cancel-participant-dialog input::placeholder,
.sales-cancel-participant-dialog textarea::placeholder {
  -webkit-text-fill-color: #98a2b3;
  color: #98a2b3;
  opacity: 1;
}

.cab-shell textarea,
.ceo-shell textarea,
.budget-detail-screen textarea,
.sales-cancel-participant-dialog textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
}

.cab-shell select,
.ceo-shell select,
.budget-detail-screen select,
.sales-cancel-participant-dialog select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #e0e0e0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  border: none !important;
  border-radius: 14px;
  box-shadow:
    inset 5px 5px 10px #bebebe,
    inset -5px -5px 10px #ffffff;
  color: #101828;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  height: 40px;
  min-height: 40px;
  padding: 0 36px 0 12px;
}

.cab-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.cab-shell select:focus,
.cab-shell textarea:focus,
.ceo-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.ceo-shell select:focus,
.ceo-shell textarea:focus,
.budget-detail-screen input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.budget-detail-screen select:focus,
.budget-detail-screen textarea:focus,
.sales-cancel-participant-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.sales-cancel-participant-dialog select:focus,
.sales-cancel-participant-dialog textarea:focus {
  outline: none;
  box-shadow:
    inset 4px 4px 8px #bebebe,
    inset -4px -4px 8px #ffffff,
    0 0 0 3px var(--btt-color-accent-focus);
}

.cab-shell .budget-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.cab-shell .cab-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.ceo-shell .budget-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.ceo-shell .cab-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.work-shell-sales .sales-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.work-shell-booking .booking-tour-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus {
  background: #e0e0e0 !important;
  border: none !important;
  box-shadow:
    inset 4px 4px 8px #bebebe,
    inset -4px -4px 8px #ffffff,
    0 0 0 3px var(--btt-color-accent-focus);
  outline: none;
}

/* Wallet fields: same booking chrome in every cabinet (beats .ceo-shell input[type=search] pill). */
.cab-wallet-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-wallet-form select,
.cab-wallet-form textarea,
.cab-shell .cab-wallet-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cab-shell .cab-wallet-form select,
.cab-shell .cab-wallet-form textarea,
.ceo-shell .cab-wallet-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ceo-shell .cab-wallet-form input[type="search"],
.ceo-shell .cab-wallet-form select,
.ceo-shell .cab-wallet-form textarea {
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow:
    inset 5px 5px 10px #bebebe,
    inset -5px -5px 10px #ffffff !important;
  color: #101828;
  font-size: 14px;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  width: 100%;
}

.cab-wallet-form textarea,
.cab-shell .cab-wallet-form textarea,
.ceo-shell .cab-wallet-form textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
}

.cab-wallet-form select,
.cab-shell .cab-wallet-form select,
.ceo-shell .cab-wallet-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  cursor: pointer;
  padding: 0 36px 0 12px !important;
}

.cab-wallet-recipient-search input,
.cab-shell .cab-wallet-recipient-search input,
.ceo-shell .cab-wallet-recipient-search input,
.ceo-shell .cab-wallet-recipient-search input[type="search"] {
  border-radius: 14px !important;
  padding: 0 12px 0 40px !important;
}

.cab-wallet-recipient-trigger,
.cab-shell .cab-wallet-recipient-trigger,
.ceo-shell .cab-wallet-recipient-trigger {
  -webkit-appearance: none;
  appearance: none;
  background-color: #e0e0e0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow:
    inset 5px 5px 10px #bebebe,
    inset -5px -5px 10px #ffffff !important;
  color: #101828 !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  height: 40px;
  min-height: 40px;
  padding: 0 36px 0 12px !important;
  text-align: left;
  width: 100%;
}

.cab-wallet-recipient-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cab-wallet-form input:focus,
.cab-wallet-form select:focus,
.cab-wallet-form textarea:focus,
.cab-wallet-recipient-trigger:focus,
.cab-shell .cab-wallet-form input:focus,
.cab-shell .cab-wallet-form select:focus,
.cab-shell .cab-wallet-form textarea:focus,
.ceo-shell .cab-wallet-form input:focus,
.ceo-shell .cab-wallet-form select:focus,
.ceo-shell .cab-wallet-form textarea:focus,
.ceo-shell .cab-wallet-recipient-trigger:focus {
  outline: none;
  box-shadow:
    inset 4px 4px 8px #bebebe,
    inset -4px -4px 8px #ffffff,
    0 0 0 3px var(--btt-color-accent-focus) !important;
}

.cab-wallet-recipient-list button,
.cab-shell .cab-wallet-recipient-list button,
.ceo-shell .cab-wallet-recipient-list button {
  background: transparent !important;
  border: none !important;
  border-radius: 10px;
  box-shadow: none !important;
  color: #101828 !important;
  cursor: pointer;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 2px;
  justify-items: start;
  min-height: 0;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.cab-wallet-recipient-list button.is-selected,
.cab-wallet-recipient-list button[aria-selected="true"],
.cab-shell .cab-wallet-recipient-list button.is-selected,
.ceo-shell .cab-wallet-recipient-list button.is-selected {
  background: #e8e8e8 !important;
  box-shadow:
    inset 4px 4px 8px #bebebe,
    inset -4px -4px 8px #ffffff !important;
}

.cab-shell button.ceo-btn,
.cab-shell button.secondary,
.cab-shell button.cab-btn,
.cab-shell .tour-participant-form-actions > button,
.ceo-shell button.ceo-btn,
.ceo-shell button.secondary,
.ceo-shell button.cab-btn,
.budget-detail-screen button.ceo-btn,
.budget-detail-screen button.secondary,
.sales-cancel-participant-actions > button,
.cab-shell > header .cabinet-header-actions > button.secondary,
.ceo-shell > header .cabinet-header-actions > button.secondary {
  align-items: center;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 14px;
  box-shadow: none !important;
  box-sizing: border-box;
  color: var(--btt-color-accent-text) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  padding: 12px 18px;
  transition: box-shadow 140ms ease, transform 120ms ease;
  width: auto;
}

.cab-shell > header .cabinet-header-actions > button.secondary,
.ceo-shell > header .cabinet-header-actions > button.secondary {
  font-weight: 800;
  height: 44px;
  padding: 0 16px;
}

.cab-shell button.ceo-btn:hover:not(:disabled),
.cab-shell button.secondary:hover:not(:disabled),
.cab-shell button.cab-btn:hover:not(:disabled),
.cab-shell .tour-participant-form-actions > button:hover:not(:disabled),
.ceo-shell button.ceo-btn:hover:not(:disabled),
.ceo-shell button.secondary:hover:not(:disabled),
.ceo-shell button.cab-btn:hover:not(:disabled),
.budget-detail-screen button.ceo-btn:hover:not(:disabled),
.budget-detail-screen button.secondary:hover:not(:disabled),
.sales-cancel-participant-actions > button:hover:not(:disabled),
.cab-shell > header .cabinet-header-actions > button.secondary:hover:not(:disabled),
.ceo-shell > header .cabinet-header-actions > button.secondary:hover:not(:disabled) {
  background: #e0e0e0 !important;
  box-shadow: 0 7px 14px #b0b0b0 !important;
}

.cab-shell button.ceo-btn:active:not(:disabled),
.cab-shell button.secondary:active:not(:disabled),
.cab-shell button.cab-btn:active:not(:disabled),
.cab-shell .tour-participant-form-actions > button:active:not(:disabled),
.ceo-shell button.ceo-btn:active:not(:disabled),
.ceo-shell button.secondary:active:not(:disabled),
.ceo-shell button.cab-btn:active:not(:disabled),
.budget-detail-screen button.ceo-btn:active:not(:disabled),
.budget-detail-screen button.secondary:active:not(:disabled),
.sales-cancel-participant-actions > button:active:not(:disabled),
.cab-shell > header .cabinet-header-actions > button.secondary:active:not(:disabled),
.ceo-shell > header .cabinet-header-actions > button.secondary:active:not(:disabled) {
  box-shadow: 0 2px 6px #b0b0b0 !important;
  transform: translateY(1px);
}

.cab-shell button.fin-cash-balances-btn,
.ceo-shell button.fin-cash-balances-btn,
button.fin-cash-balances-btn {
  box-shadow: 0 7px 14px #b0b0b0, -3px -3px 8px #ffffff !important;
  gap: 10px;
  transform: translateY(0);
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cab-shell button.fin-cash-balances-btn:hover:not(:disabled),
.ceo-shell button.fin-cash-balances-btn:hover:not(:disabled),
button.fin-cash-balances-btn:hover:not(:disabled) {
  background: #e0e0e0 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 13px 24px #a4a4a4, -5px -5px 14px #ffffff !important;
}

.cab-shell button.fin-cash-balances-btn:active:not(:disabled),
.ceo-shell button.fin-cash-balances-btn:active:not(:disabled),
button.fin-cash-balances-btn:active:not(:disabled) {
  transform: translateY(1px) !important;
  box-shadow: 0 3px 6px #b0b0b0, inset 1px 1px 3px #bebebe !important;
}

.cab-shell button.ceo-btn.is-destructive,
.cab-shell button.cab-btn.is-destructive,
.cab-shell button.danger,
.ceo-shell button.ceo-btn.is-destructive,
.ceo-shell button.cab-btn.is-destructive,
.ceo-shell button.danger {
  color: #b42318 !important;
}

@media (max-width: 900px) {
  /* Role cabinets only — CEO keeps its own 760px padding contract */
  .cab-shell:not(.ceo-shell) {
    padding: 28px 20px 40px;
    width: min(1440px, calc(100vw - 16px));
  }

  .budget-list-head,
  .cab-list-head {
    grid-template-columns: 1fr;
  }

  .budget-list-head .budget-designer-trigger,
  .budget-list-head .tour-designer-trigger,
  .cab-list-head .budget-designer-trigger,
  .cab-list-head .tour-designer-trigger {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .budget-list-head .budget-search,
  .budget-list-head .cab-search,
  .cab-list-head .budget-search,
  .cab-list-head .cab-search {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .cab-header h1,
  .cab-shell:not(.ceo-shell) > header.cabinet-header h1 {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  .ceo-shell,
  .cab-shell.ceo-shell {
    padding: 16px;
  }
}

/* --- Back button (CEO / Fin / Booking) --- */
.cab-back-button,
button.cab-back-button,
a.cab-back-button,
.budget-back-button,
.tour-detail-back,
.fin-back-button,
.booking-prepay-back {
  align-items: center;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 16px;
  box-shadow:
    8px 8px 16px #bebebe,
    -8px -8px 16px #ffffff !important;
  color: var(--btt-color-accent-text) !important;
  display: inline-flex;
  height: 52px !important;
  justify-content: center;
  min-height: 52px !important;
  padding: 0 !important;
  transition: box-shadow 140ms ease, transform 120ms ease;
  width: 52px !important;
}

.cab-back-button svg,
.budget-back-button svg,
.tour-detail-back svg,
.fin-back-button svg,
.booking-prepay-back svg {
  display: block;
  fill: currentColor;
  height: 32px;
  stroke: none;
  width: 32px;
}

.cab-back-button svg.is-stroke,
.budget-back-button svg.is-stroke,
.tour-detail-back svg.is-stroke,
.fin-back-button svg.is-stroke,
.booking-prepay-back svg.is-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cab-back-button:hover:not(:disabled),
.budget-back-button:hover:not(:disabled),
.tour-detail-back:hover:not(:disabled),
.fin-back-button:hover:not(:disabled),
.booking-prepay-back:hover:not(:disabled),
a.cab-back-button:hover,
a.budget-back-button:hover,
a.tour-detail-back:hover {
  background: #e0e0e0 !important;
  box-shadow:
    10px 10px 20px #bebebe,
    -10px -10px 20px #ffffff !important;
  color: var(--btt-color-accent-text) !important;
}

.cab-back-button:active:not(:disabled),
.budget-back-button:active:not(:disabled),
.tour-detail-back:active:not(:disabled),
.fin-back-button:active:not(:disabled),
.booking-prepay-back:active:not(:disabled),
a.cab-back-button:active,
a.budget-back-button:active,
a.tour-detail-back:active {
  background: #e0e0e0 !important;
  box-shadow:
    inset 6px 6px 12px #bebebe,
    inset -6px -6px 12px #ffffff !important;
  transform: translateY(1px);
}

/* --- Icon button --- */
.cab-icon-button,
.icon-button {
  align-items: center;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 12px;
  box-shadow: none !important;
  color: var(--btt-color-accent-text) !important;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 0;
  transition: box-shadow 140ms ease, transform 120ms ease;
  width: 38px;
}

.cab-icon-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  box-shadow: 0 7px 14px #b0b0b0 !important;
}

.cab-icon-button:active:not(:disabled),
.icon-button:active:not(:disabled) {
  box-shadow: 0 2px 6px #b0b0b0 !important;
  transform: translateY(1px);
}

.cab-icon-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cab-icon-button svg,
.icon-button svg {
  display: block;
  fill: currentColor;
  height: 18px;
  stroke: none;
  width: 18px;
}

.cab-icon-button svg.is-stroke,
.icon-button svg.is-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* --- Action buttons (neumorphic edit / delete / custom) --- */
.cab-action-btn {
  align-items: center;
  background: #e0e0e0 !important;
  border: none !important;
  outline: none !important;
  border-radius: 10px;
  box-shadow: 3px 3px 7px #bebebe, -3px -3px 7px #ffffff !important;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  width: 34px;
  min-height: 34px;
  min-width: 34px;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: transform 120ms ease, box-shadow 140ms ease, color 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.cab-action-btn:hover:not(:disabled) {
  background: #e0e0e0 !important;
  box-shadow: 4px 4px 10px #b4b4b4, -3px -3px 8px #ffffff !important;
  transform: translateY(-1px);
}

.cab-action-btn:active:not(:disabled) {
  box-shadow: inset 2px 2px 4px #bebebe, inset -2px -2px 4px #ffffff !important;
  transform: translateY(1px);
}

.cab-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 1px 1px 3px #bebebe, -1px -1px 3px #ffffff !important;
}

.cab-action-btn-edit:hover:not(:disabled),
.cab-action-btn.tour-participant-edit-button:hover:not(:disabled) {
  color: var(--btt-color-accent-text, #c2410c) !important;
}

.cab-action-btn-delete,
.cab-action-btn.tour-participant-delete-button {
  color: #667085;
}

.cab-action-btn-delete:hover:not(:disabled),
.cab-action-btn.tour-participant-delete-button:hover:not(:disabled) {
  color: #d92d20 !important;
}


/* --- Status pill (neumorphic) --- */
.cab-status-pill,
.status-pill {
  background: #e0e0e0;
  border: none;
  border-radius: 999px;
  box-shadow:
    4px 4px 10px #bebebe,
    -4px -4px 10px #ffffff;
  color: var(--btt-color-accent-text);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  isolation: isolate;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.cab-status-pill.is-success,
.status-pill.is-success,
.status-pill.planned,
.status-pill.closed {
  color: #067647;
}

.cab-status-pill.is-info,
.status-pill.is-info,
.status-pill.open {
  color: #175cd3;
}

.cab-status-pill.is-warning,
.status-pill.is-warning,
.status-pill.in-progress,
.status-pill.under-review {
  color: #c2410c;
}

.cab-status-pill.is-danger,
.status-pill.is-danger,
.status-pill.blocked,
.status-pill.cancelled {
  color: #b42318;
}

.cab-status-pill.is-neutral,
.status-pill.is-neutral {
  color: #667085;
}

/* --- CEO list cards (tours + budgets) --- */
/* Extracted from ceo-dashboard.css / styles.css */

.tour-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  isolation: isolate;
}

.tour-grid > .tour-summary-card {
  position: relative;
  z-index: 1;
}

.tour-grid > .tour-summary-card:nth-child(3n + 1) { z-index: 3; }
.tour-grid > .tour-summary-card:nth-child(3n + 2) { z-index: 2; }
.tour-grid > .tour-summary-card:nth-child(3n + 3) { z-index: 1; }

.budget-direction-groups {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.budget-direction-group {
  display: grid;
  gap: 12px;
}

.budget-direction-head {
  align-items: center;
  color: #101828;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  justify-self: start;
  list-style: none;
}

.budget-direction-head::-webkit-details-marker {
  display: none;
}

.budget-direction-head::before {
  border-bottom: 2px solid #667085;
  border-right: 2px solid #667085;
  content: "";
  height: 8px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
  width: 8px;
}

.budget-direction-group:not([open]) .budget-direction-head::before {
  transform: rotate(-45deg);
}

.budget-direction-head span {
  font-size: 20px;
  font-weight: 900;
}

.budget-direction-head strong {
  align-items: center;
  background: #eef2f6;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 16px;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 9px;
}

.budget-card,
.tour-summary-card {
  height: 100%;
  min-width: 0;
}

.tour-summary-card {
  --tour-accent: #2e7be6;
  --tour-accent-soft: #eff6ff;
  --tour-border: #e4e7ec;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 28px;
  box-shadow:
    10px 12px 24px #bebebe,
    -6px -6px 16px rgba(255, 255, 255, 0.7) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.tour-summary-card::before {
  background: var(--tour-accent);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}


.tour-summary-card:hover {
  box-shadow:
    12px 14px 28px #bebebe,
    -6px -6px 16px rgba(255, 255, 255, 0.75) !important;
  transform: none;
}


.tour-tone-green {
  --tour-accent: #12b76a;
  --tour-accent-soft: #ecfdf3;
  --tour-border: #d1fadf;
}

.tour-tone-orange {
  --tour-accent: #f79009;
  --tour-accent-soft: #fffaeb;
  --tour-border: #fef0c7;
}

.tour-tone-blue {
  --tour-accent: #2e7be6;
  --tour-accent-soft: #eff6ff;
  --tour-border: #dbeafe;
}

.tour-tone-purple {
  --tour-accent: #7a5af8;
  --tour-accent-soft: #f4f3ff;
  --tour-border: #e9d7fe;
}

.tour-tone-slate {
  --tour-accent: #667085;
  --tour-accent-soft: #f8fafc;
  --tour-border: #e4e7ec;
}

.budget-card-summary,
.tour-summary-head {
  cursor: pointer;
  list-style: none;
}

.budget-card-summary::-webkit-details-marker,
.tour-summary-head::-webkit-details-marker {
  display: none;
}

.tour-summary-head {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  width: 100%;
}

.tour-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  width: 100%;
}

.tour-card-top {
  background: transparent;
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  padding: 18px 18px 14px;
}

.tour-card-heading-row {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
}

.tour-card-icon-stack {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 48px;
}

.tour-card-report-button {
  align-items: center;
  background: var(--tour-accent-soft);
  border: 1px solid var(--tour-border);
  border-radius: 14px;
  box-sizing: border-box;
  color: var(--tour-accent);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  margin: 0;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  width: 48px;
}

.tour-card-report-button:hover {
  background: var(--tour-accent-soft);
  border-color: var(--tour-accent);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
  color: var(--tour-accent);
  transform: none;
}

.tour-card-report-button svg {
  display: block;
  fill: none;
  flex: 0 0 auto;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 24px;
}

.tour-card-icon {
  align-items: center;
  background: #e0e0e0;
  border: none;
  border-radius: 14px;
  box-shadow:
    5px 5px 12px #bebebe,
    -5px -5px 12px #ffffff;
  color: var(--btt-color-accent-text);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.tour-card-icon svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 24px;
}

.tour-card-heading {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tour-card-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.tour-card-title {
  color: #101828;
  flex: 1 1 auto;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: break-word;
}

.tour-card-status {
  background: var(--tour-accent-soft);
  border: 1px solid var(--tour-border);
  border-radius: 999px;
  color: var(--tour-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tour-card-org-meta {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  min-width: 0;
}

.tour-card-subdivision {
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.tour-card-project {
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 9rem;
  text-align: center;
}

.tour-card-meta {
  display: grid;
  gap: 6px;
}

.tour-card-meta-item {
  align-items: center;
  color: #475467;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.35;
  min-width: 0;
}

.tour-card-meta-item span {
  min-width: 0;
  overflow-wrap: break-word;
}

.tour-card-meta-item svg {
  fill: none;
  flex: 0 0 auto;
  height: 16px;
  stroke: #98a2b3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.tour-card-created {
  color: #98a2b3;
  display: grid;
  font-size: 12px;
  font-weight: 600;
  gap: 2px;
  line-height: 1.35;
}

.tour-card-footer {
  align-items: stretch;
  background: transparent;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: none;
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin-top: auto;
  min-height: 72px;
  width: 100%;
}

.tour-card-metric {
  align-content: center;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px;
}

.tour-card-metric + .tour-card-metric {
  border-left: 1px solid rgba(16, 24, 40, 0.08);
}

.tour-card-metric small {
  color: #98a2b3;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tour-card-metric > strong {
  color: #101828;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-card-metric-participants {
  justify-items: center;
  text-align: center;
}

.tour-card-metric-icon {
  color: #98a2b3;
  display: inline-flex;
  height: 18px;
  width: 18px;
}

.tour-card-metric-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.tour-card-metric-revenue {
  justify-items: center;
  text-align: center;
}

.tour-card-metric-revenue > strong span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.tour-card-metric .participant-debt {
  font-size: 15px;
}

.tour-card-metric .participant-debt span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

/* legacy selectors kept for detail panel reuse */
.tour-card-line {
  align-items: center;
  color: #475467;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
}

.tour-card-line.tour-card-created {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 600;
}

.tour-card-line svg {
  fill: none;
  height: 18px;
  stroke: #667085;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}


/* —— Modern Compact Budget Cards (React CEO; canonical list card design) —— */
/* Keep nested under .budget-card-modern so SSR landscape .budget-card-* rules do not leak. */

.budget-list .budget-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 16px !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  margin-top: 14px;
}

.budget-card-modern {
  background: #e8e8e8;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow:
    8px 8px 18px #bebebe,
    -8px -8px 18px #ffffff;
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), box-shadow 180ms cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.budget-card-modern:hover {
  transform: translateY(-3px);
  box-shadow:
    10px 14px 24px #b8b8b8,
    -8px -8px 20px #ffffff;
}

.budget-card-modern:active {
  transform: translateY(-1px);
  box-shadow:
    5px 5px 12px #bebebe,
    -5px -5px 12px #ffffff;
}

.budget-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #9ca3af;
  border-radius: 20px 20px 0 0;
  transition: opacity 180ms ease;
  opacity: 0.85;
}

.budget-card-modern.direction-europe::before {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}
.budget-card-modern.direction-russia::before {
  background: linear-gradient(90deg, #059669, #34d399);
}
.budget-card-modern.direction-asia::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
.budget-card-modern.direction-africa::before {
  background: linear-gradient(90deg, #ea580c, #f97316);
}
.budget-card-modern.direction-north-america::before,
.budget-card-modern.direction-south-america::before {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}
.budget-card-modern.direction-oceania::before,
.budget-card-modern.direction-antarctica::before {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.budget-card-modern-btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 20px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline-offset: -2px;
  position: relative;
}

.budget-card-modern-btn:focus-visible {
  outline: 2px solid #e75227;
  outline-offset: -2px;
}

.budget-card-modern .budget-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.budget-card-modern .budget-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.budget-card-modern .budget-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.budget-card-modern .budget-status-pill .budget-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.budget-card-modern .budget-status-pill.approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.budget-card-modern .budget-status-pill.approved .budget-status-dot {
  background: #16a34a;
}

.budget-card-modern .budget-status-pill.draft {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.budget-card-modern .budget-status-pill.draft .budget-status-dot {
  background: #2563eb;
}

.budget-card-modern .budget-status-pill.archived {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.budget-card-modern .budget-status-pill.archived .budget-status-dot {
  background: #9ca3af;
}

.budget-card-modern .budget-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.budget-card-modern .budget-tag-version {
  background: rgba(0, 0, 0, 0.06);
  color: #4b5563;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.budget-card-modern .budget-tag-subdivision {
  background: rgba(231, 82, 39, 0.09);
  color: #c2410c;
  border: 1px solid rgba(231, 82, 39, 0.2);
}

.budget-card-modern .budget-tag-project {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.budget-card-modern .budget-card-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.03);
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
  flex-shrink: 0;
}

.budget-card-modern .budget-card-action-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.budget-card-modern:hover .budget-card-action-icon {
  color: #e75227;
  background: rgba(231, 82, 39, 0.12);
  transform: translateX(2px);
}

.budget-card-modern .budget-card-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.budget-card-modern .budget-card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.25;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.budget-card-modern .budget-card-direction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
}

.budget-card-modern .budget-card-direction svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #9ca3af;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.budget-card-modern .budget-card-spacer {
  flex: 1 1 auto;
  min-height: 8px;
}

.budget-card-modern .budget-card-finance {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.03),
    inset -2px -2px 5px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.budget-card-modern .budget-card-finance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.budget-card-modern .budget-card-finance-caption {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.budget-card-modern .budget-card-finance-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.budget-card-modern .budget-card-finance-amount strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.01em;
}

.budget-card-modern .budget-card-finance-amount .currency-rub {
  font-size: 15px;
  font-weight: 700;
  color: #0f766e;
}

.budget-card-modern .budget-card-finance-amount .currency-alt {
  font-size: 11px;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: 5px;
  background: #ccfbf1;
  color: #0f766e;
  margin-left: 3px;
}

.budget-card-modern .budget-card-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 1px 0;
}

.budget-card-modern .budget-card-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.budget-card-modern .budget-card-metric svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.budget-card-modern .budget-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11.5px;
  color: #6b7280;
}

.budget-card-modern .budget-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.budget-card-modern .budget-card-date svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #9ca3af;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.budget-card-modern .budget-card-open-hint {
  font-weight: 700;
  color: #4b5563;
  transition: color 180ms ease;
}

.budget-card-modern:hover .budget-card-open-hint {
  color: #e75227;
}


@media (max-width: 760px) {
  .tour-grid {
    grid-template-columns: 1fr;
  }

  .tour-card-top {
    gap: 10px;
    padding: 16px 16px 12px;
  }

  .tour-card-heading-row {
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .tour-card-icon,
  .tour-card-report-button {
    border-radius: 12px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
  }

  .tour-card-title {
    font-size: 18px;
  }

  .tour-card-metric {
    padding: 12px 14px 14px;
  }
}

/* --- Shared in-app file viewer (.booking-file-viewer) --- */
.booking-file-viewer {
  background: transparent;
  border: 0;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: max(16px, env(safe-area-inset-top, 16px)) max(16px, env(safe-area-inset-right, 16px)) max(16px, env(safe-area-inset-bottom, 16px)) max(16px, env(safe-area-inset-left, 16px));
  width: 100%;
  z-index: 100010;
  box-sizing: border-box;
}

.booking-file-viewer[open] {
  align-items: center;
  display: flex;
  justify-content: center;
}

.booking-file-viewer::backdrop {
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(4px);
}

.booking-file-viewer-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.28);
  display: flex;
  flex-direction: column;
  max-height: min(860px, calc(100dvh - 32px));
  margin: 0;
  max-width: min(960px, calc(100vw - 32px));
  overflow: hidden;
  width: 100%;
}

.booking-file-viewer-head {
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
  background: #ffffff;
}

.booking-file-viewer-head strong {
  color: #101828;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-file-viewer-head .icon-button {
  font-size: 20px;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f2f4f7;
  color: #344054;
  border: 1px solid #d0d5dd;
  cursor: pointer;
}

.booking-file-viewer-body {
  align-items: center;
  background: #0f172a;
  display: flex;
  justify-content: center;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px;
  position: relative;
}

.booking-file-viewer-image {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.booking-file-viewer-frame {
  background: #fff;
  border: 0;
  height: 100%;
  min-height: 50vh;
  width: 100%;
}

.booking-file-viewer-fallback {
  color: #fff;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.booking-file-viewer-download {
  color: #84caff;
  font-weight: 800;
}

.booking-file-viewer-footer {
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.booking-file-viewer-close-btn {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  background: #1d2939;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.booking-file-viewer-close-btn:hover,
.booking-file-viewer-close-btn:active {
  background: #344054;
}

@media (max-width: 640px) {
  .booking-file-viewer {
    padding: max(60px, calc(env(safe-area-inset-top, 24px) + 20px)) 12px max(20px, calc(env(safe-area-inset-bottom, 16px) + 8px)) 12px;
  }
  .booking-file-viewer-panel {
    max-height: min(680px, calc(100dvh - max(60px, calc(env(safe-area-inset-top, 24px) + 20px)) - max(20px, calc(env(safe-area-inset-bottom, 16px) + 8px))));
    max-width: 100%;
    border-radius: 16px;
  }
  .booking-file-viewer-body {
    padding: 12px;
  }
}

/* Cabinet Role Switcher in Header */
.cabinet-role-switcher {
  position: relative;
  display: inline-flex;
}

.cabinet-role-switcher-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.cabinet-role-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #e0e0e0;
  border-radius: 14px;
  box-shadow: 6px 6px 14px #bebebe, -6px -6px 14px #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.cabinet-role-dropdown-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667085;
  padding: 4px 8px 6px 8px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  margin-bottom: 2px;
}

.cabinet-role-dropdown-item {
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
  text-align: left !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #101828 !important;
  cursor: pointer !important;
  transition: background 120ms ease;
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.cabinet-role-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

.cabinet-role-dropdown-item.is-active {
  color: var(--btt-color-accent-text, #c2410c) !important;
  font-weight: 750 !important;
  background: #e0e0e0 !important;
  box-shadow: inset 2px 2px 4px #bebebe, inset -2px -2px 4px #ffffff !important;
}

/* ==========================================================================
   Shared Direction Filter Panel (CEO / Booking / Role Cabinets)
   ========================================================================== */
.budget-directions-panel {
  background: #e0e0e0 !important;
  border-radius: 20px !important;
  box-shadow: 6px 8px 18px #bebebe, -6px -8px 18px #ffffff !important;
  padding: 18px 22px !important;
  margin: 16px 0 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  border: none !important;
}

.budget-directions-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.budget-macro-tabs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.budget-macro-tab {
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 3px 3px 6px #bebebe, -3px -3px 6px #ffffff !important;
  color: #4b5563 !important;
  font-family: var(--btt-font-sans, "Manrope", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 8px 14px !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  outline: none !important;
}

.budget-macro-tab:hover:not(:disabled) {
  box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff !important;
  color: #101828 !important;
}

.budget-macro-tab.active {
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff !important;
  color: var(--btt-color-accent, #e75227) !important;
  font-weight: 750 !important;
}

.budget-dir-search-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-width: 200px !important;
  max-width: 320px !important;
  flex: 1 !important;
}

.budget-dir-search-input {
  width: 100% !important;
  height: 38px !important;
  padding: 8px 32px 8px 14px !important;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff !important;
  color: #101828 !important;
  font-family: var(--btt-font-sans, "Manrope", sans-serif) !important;
  font-size: 13px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: box-shadow 140ms ease !important;
}

.budget-dir-search-input:focus {
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff, 0 0 0 2px rgba(231, 82, 39, 0.25) !important;
}

.budget-dir-search-input::placeholder {
  color: #98a2b3 !important;
}

.budget-dir-search-clear {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: #98a2b3 !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  line-height: 1 !important;
  border-radius: 50% !important;
}

.budget-dir-search-clear:hover {
  color: #344054 !important;
}

.budget-concrete-chips {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.budget-dir-pill {
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 3px 3px 6px #bebebe, -3px -3px 6px #ffffff !important;
  color: #344054 !important;
  font-family: var(--btt-font-sans, "Manrope", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 8px 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: all 140ms ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  outline: none !important;
}

.budget-dir-pill:hover:not(:disabled) {
  box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff !important;
  color: #101828 !important;
}

.budget-dir-pill.active {
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff !important;
  color: var(--btt-color-accent, #e75227) !important;
  font-weight: 750 !important;
}

.budget-dir-pill.active:hover:not(:disabled) {
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff !important;
  color: var(--btt-color-accent-hover, #d0441c) !important;
}

.budget-dir-pill-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: #667085 !important;
  transition: all 140ms ease !important;
}

.budget-dir-pill.active .budget-dir-pill-count {
  background: rgba(231, 82, 39, 0.15) !important;
  color: var(--btt-color-accent, #e75227) !important;
}

.budget-dir-pill.has-budgets:not(.active) {
  color: #1e293b !important;
}

.budget-dir-toggle-btn {
  font-size: 12px !important;
  color: var(--btt-color-accent, #e75227) !important;
  background: #e0e0e0 !important;
  font-weight: 600 !important;
  border: 1px dashed rgba(231, 82, 39, 0.35) !important;
}


