@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=Karla:wght@400;500;600;700&display=swap");

/* Buying Sheet — Inter UI; table column titles Barlow Condensed; data rows Karla */

.buying-sheet {
  --bs-font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-rows: "Karla", ui-sans-serif, system-ui, sans-serif;
  --bs-table-head-font: "Barlow Condensed", var(--bs-font-sans);
  /* Header + column header strip (design token) */
  --bs-header-bg: #0f172a;
  --bs-header-accent: #2563eb;
  /* Legacy ring — prefer solid border focus (--bs-input-focus-blue) */
  --bs-input-focus-ring: 0 0 0 2px rgba(37, 99, 235, 0.28);
  --bs-input-focus-blue: #2563eb;
  /* Filter / add / edit row: one height for Input, DatePicker, Select */
  --bs-compact-control-height: 26px;
  /* Darker than gray-400 — readable placeholder text */
  --bs-input-placeholder: #64748b;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  font-family: var(--bs-font-sans);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Native focus ring off — Ant controls show border color instead */

.buying-sheet .ant-input:focus,
.buying-sheet .ant-picker-input > input:focus,
.buying-sheet .ant-select-selection-search-input:focus {
  outline: none !important;
}

.buying-sheet .ant-input::placeholder,
.buying-sheet .ant-picker .ant-picker-input > input::placeholder,
.buying-sheet .ant-select .ant-select-selection-placeholder {
  color: var(--bs-input-placeholder) !important;
  opacity: 1 !important;
  font-weight: 400;
}

/* Top bar — navy + blue accent line (reference) */

.buying-sheet__topbar {
  --bs-topbar-bg: #121826;
  --bs-topbar-line: #2e5bff;
  background: var(--bs-topbar-bg);
  color: #e2e8f0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  border-top: none;
  border-bottom: 1px solid var(--bs-topbar-line);
  box-shadow: none;
}

.buying-sheet__brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* Wordmark: TICKET white + BOAT sky blue + dot */

.buying-sheet__logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.buying-sheet__logo-ticket {
  color: #ffffff;
}

.buying-sheet__logo-boat {
  color: #5da2d5;
}

.buying-sheet__logo-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  margin-left: 8px;
  flex-shrink: 0;
}

.buying-sheet__logo-divider {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  font-size: 15px;
  margin: 0 2px 0 10px;
  letter-spacing: 0;
}

.buying-sheet__logo-page {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.buying-sheet__brand-date {
  font-weight: 400;
  color: #8e9aaf;
  font-size: 14px;
  margin-left: 10px;
  letter-spacing: 0.02em;
}

.buying-sheet__topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

/* Logged-in line — compact (spec) */

.buying-sheet__login-line {
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.buying-sheet__login-label {
  color: #8e9aaf;
  font-weight: 400;
}

.buying-sheet__login-name {
  color: #ffffff;
  font-weight: 700;
}

/* Role pills — Captain bronze + cream; Buyer blue + white (reference) */

.buying-sheet__role-badge.ant-tag {
  margin: 0;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  border: none !important;
  border-radius: 5px;
}

.buying-sheet__role-badge--captain.ant-tag {
  color: #fdf8c1 !important;
  background: #845424 !important;
}

.buying-sheet__role-badge--buyer.ant-tag {
  color: #ffffff !important;
  background: #2b418c !important;
}

/* DEMO ROLE — framed group; segmented thumb = slate pill + white selected text */

.buying-sheet__demo-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 12px;
  border: 1px solid #323a48;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.buying-sheet__demo-role-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #717d8a;
  white-space: nowrap;
}

.buying-sheet__demo-role .ant-segmented {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: 6px;
}

.buying-sheet__demo-role .ant-segmented-item {
  color: #717d8a !important;
  font-weight: 500;
}

.buying-sheet__demo-role .ant-segmented-item:hover:not(.ant-segmented-item-selected) {
  color: #8e9aaf !important;
}

.buying-sheet__demo-role .ant-segmented-item-selected {
  /* bg/text from ConfigProvider Segmented tokens — avoid default white elevated */
  border-radius: 4px !important;
  box-shadow: none !important;
}

.buying-sheet__demo-role .ant-segmented-item-selected .ant-segmented-item-label {
  color: #ffffff !important;
  font-weight: 700;
}

.buying-sheet__demo-role
  .ant-segmented-item:not(.ant-segmented-item-selected)
  .ant-segmented-item-label {
  color: #717d8a !important;
  font-weight: 500;
}

.buying-sheet__demo-role .ant-segmented-thumb {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.buying-sheet__demo-role .ant-segmented-item-label {
  position: relative;
  z-index: 1;
}

/* Main: full viewport width — grid so table panel always spans full column (avoids ~80% flex shrink) */

.buying-sheet__body {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 0 0 16px;
}

/* Tours + search: framed like a table block */

.buying-sheet__page-header-card {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0;
  margin-bottom: 12px;
  margin-top: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.05),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

.buying-sheet__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px 12px;
}

.buying-sheet__title-block {
  min-width: 0;
}

.buying-sheet__tours-title {
  margin: 0 !important;
  font-family: var(--bs-font-sans) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: #000000 !important;
  line-height: 1.25 !important;
}

.buying-sheet__subtitle {
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.buying-sheet__title-right {
  text-align: right;
  flex-shrink: 0;
  padding-top: 2px;
}

.buying-sheet__hint {
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 300px;
}

.buying-sheet__page-header-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0;
}

/* Search: one horizontal row — label | date | Search; total on the right */

.buying-sheet__search-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 14px;
  flex-wrap: wrap;
}

.buying-sheet__search-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  min-width: 0;
}

.buying-sheet__search-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
}

.buying-sheet__search-date {
  width: 200px !important;
  max-width: min(200px, 100%);
}

.buying-sheet__search-submit.ant-btn {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--bs-font-sans) !important;
}

.buying-sheet__page-header-card .ant-picker .ant-picker-input > input {
  font-family: var(--bs-font-sans) !important;
}

.buying-sheet__search-total {
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
  margin-left: auto;
}

/* Table panel: sits on gray; second row of body grid (1fr) */

.buying-sheet__panel {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

/* Table block only — inset from Tours/search card (20px each side) */

.buying-sheet__panel-table {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  margin-left: 20px;
  margin-right: 20px;
  min-width: 0;
  overflow-x: auto;
}

/* Main table: light border + subtle shadow (reference) */

.buying-sheet__table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.05);
}

.buying-sheet__table-head-wrap {
  overflow: hidden;
}

/* Full-width grid — columns flex with browser; no side gutters on panel */

.buying-sheet__grid {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.9fr) minmax(200px, 2.2fr) minmax(100px, 1fr) minmax(88px, 0.7fr)
    minmax(130px, 1.1fr) minmax(136px, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.buying-sheet__th {
  background: var(--bs-header-bg);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--bs-table-head-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid #1e293b;
}

/*
 * Filter + add: one parent column definition so both rows share the same track sizes (subgrid).
 */

.buying-sheet__filter-add-wrap {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.9fr) minmax(200px, 2.2fr) minmax(100px, 1fr) minmax(88px, 0.7fr)
    minmax(130px, 1.1fr) minmax(136px, 1fr);
  column-gap: 8px;
  width: 100%;
}

/* Light blue tint — filter row only */

.buying-sheet__filter-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  box-sizing: border-box;
  background: #eff6ff;
  border-top: 1px solid #e5e7eb;
  padding: 8px 16px;
  min-width: 0;
}

.buying-sheet__filter-row > *,
.buying-sheet__add-row > * {
  min-width: 0;
}

.buying-sheet__filter-row-spacer {
  min-height: 1px;
}

/* Browsers without subgrid: same template on both rows (columns still line up) */

@supports not (grid-template-columns: subgrid) {
  .buying-sheet__filter-add-wrap {
    display: block;
  }

  .buying-sheet__filter-row,
  .buying-sheet__add-row {
    display: grid;
    grid-template-columns:
      minmax(110px, 0.9fr) minmax(200px, 2.2fr) minmax(100px, 1fr) minmax(88px, 0.7fr)
      minmax(130px, 1.1fr) minmax(136px, 1fr);
    column-gap: 8px;
    grid-column: auto;
  }
}

/* Blue-tinted inputs — filter row only */

.buying-sheet__filter-row .buying-sheet__filter-input {
  border-color: #93c5fd !important;
}

.buying-sheet__filter-row .ant-picker {
  border-color: #93c5fd !important;
}

/* 2px borders so focus stays same width (reference: solid blue ring) */

.buying-sheet__filter-row .ant-input-affix-wrapper,
.buying-sheet__filter-row .ant-picker {
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Same pale blue as filter row; subgrid aligns columns with row above */

.buying-sheet__add-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  box-sizing: border-box;
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
  padding: 8px 16px;
  min-width: 0;
}

/*
 * Onsale name + platform sit in one grid cell (column 2) so their combined width
 * matches the single "Filter name..." field above; each takes half of that track.
 */

.buying-sheet__add-name-platform {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.buying-sheet__add-name-platform > * {
  flex: 1 1 0;
  min-width: 0;
}

/* Filter + add rows: Inter for all fields (reference UI is all sans-serif) */

.buying-sheet__filter-row .ant-input,
.buying-sheet__filter-row .ant-input::placeholder,
.buying-sheet__filter-row .ant-picker .ant-picker-input > input,
.buying-sheet__filter-row .ant-picker .ant-picker-input > input::placeholder,
.buying-sheet__add-row .ant-input,
.buying-sheet__add-row .ant-input::placeholder,
.buying-sheet__add-row .ant-picker .ant-picker-input > input,
.buying-sheet__add-row .ant-picker .ant-picker-input > input::placeholder,
.buying-sheet__add-row .ant-select .ant-select-selector,
.buying-sheet__add-row .ant-select .ant-select-selection-item,
.buying-sheet__add-row .ant-select .ant-select-selection-placeholder,
.buying-sheet__add-row .ant-select .ant-select-selection-search-input {
  font-family: var(--bs-font-sans) !important;
}

.buying-sheet__add-row .ant-select .ant-select-selector {
  font-variant-numeric: tabular-nums;
}

/* Filter + add row: same outer height for Input, DatePicker, Select */

.buying-sheet__filter-row .ant-input-sm,
.buying-sheet__filter-row .ant-input-affix-wrapper-sm,
.buying-sheet__add-row .ant-input-sm,
.buying-sheet__add-row .ant-input-affix-wrapper-sm {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding-block: 0 !important;
  padding-inline: 8px !important;
  font-size: 12px;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-picker,
.buying-sheet__add-row .ant-picker {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-picker .ant-picker-input,
.buying-sheet__add-row .ant-picker .ant-picker-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-picker .ant-picker-input > input,
.buying-sheet__add-row .ant-picker .ant-picker-input > input {
  font-size: 12px;
  line-height: 1.2 !important;
  height: auto !important;
  padding: 0 !important;
}

.buying-sheet__filter-row .ant-select .ant-select-selector {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding: 0 8px !important;
  font-size: 12px;
  font-family: var(--bs-font-sans) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__add-row .ant-select .ant-select-selector {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding: 0 8px !important;
  font-size: 12px;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-select .ant-select-selection-item,
.buying-sheet__filter-row .ant-select .ant-select-selection-placeholder,
.buying-sheet__add-row .ant-select .ant-select-selection-item,
.buying-sheet__add-row .ant-select .ant-select-selection-placeholder {
  line-height: 1.2 !important;
}

.buying-sheet__add-row .buying-sheet__add-input,
.buying-sheet__add-row .ant-input-affix-wrapper,
.buying-sheet__add-row .ant-picker,
.buying-sheet__add-row .ant-select .ant-select-selector {
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 6px !important;
  border-color: #d1d5db !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.buying-sheet__add-row .ant-picker .ant-picker-input > input {
  background: transparent !important;
}

.buying-sheet__add-row .ant-select-arrow {
  color: rgba(0, 0, 0, 0.45);
}

/* Focus: solid blue border (reference — no outer glow) */

.buying-sheet__filter-row .ant-input-affix-wrapper-focused,
.buying-sheet__filter-row .ant-input-affix-wrapper:focus-within,
.buying-sheet__filter-row .ant-picker.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__add-row .ant-input-affix-wrapper-focused,
.buying-sheet__add-row .ant-input-affix-wrapper:focus-within,
.buying-sheet__add-row .ant-picker.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__add-row .ant-select-focused:not(.ant-select-disabled) .ant-select-selector {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__filter-row .buying-sheet__filter-select .ant-select-selector {
  border-color: #93c5fd !important;
}

/* Filter row — Clear: white fill, blue border (reference) */

.buying-sheet__btn-clear.ant-btn {
  justify-self: end;
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  font-family: var(--bs-font-sans) !important;
  background: #ffffff !important;
  border: 1px solid #93c5fd !important;
  color: #2563eb !important;
  box-shadow: none !important;
}

.buying-sheet__btn-clear.ant-btn:hover {
  background: #f8fafc !important;
  border-color: #60a5fa !important;
  color: #1d4ed8 !important;
}

/* + Add: right-aligned like Clear; hug content (no full-column stretch) */

.buying-sheet__btn-add.ant-btn-sm {
  justify-self: end;
  width: auto;
  min-width: unset;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  font-family: var(--bs-font-sans) !important;
}

.buying-sheet__btn-add .anticon {
  font-size: 12px;
}

/* Search card: date field — 2px border; focus = solid blue (reference) */

.buying-sheet__page-header-card .buying-sheet__search-date.ant-picker,
.buying-sheet__page-header-card .buying-sheet__search-date.ant-picker:hover {
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 6px !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

.buying-sheet__page-header-card .buying-sheet__search-date.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__page-header-card
  .buying-sheet__search-date.ant-picker
  .ant-picker-input
  > input:focus {
  outline: none !important;
}

.buying-sheet__data-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  font-family: var(--bs-font-rows);
}

.buying-sheet__data-rows .ant-tag,
.buying-sheet__data-rows .ant-btn {
  font-family: var(--bs-font-rows) !important;
}

.buying-sheet__data-row {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.9fr) minmax(200px, 2.2fr) minmax(100px, 1fr) minmax(88px, 0.7fr)
    minmax(130px, 1.1fr) minmax(136px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 16px 20px;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.buying-sheet__data-row:last-child {
  border-bottom: 1px solid #e5e7eb;
}

/* Edit row: light amber wash + accent bar — matches reference (amber-50 + #f59e0b) */

.buying-sheet__data-row--editing {
  background: #fffbeb !important;
  border-top: 1px solid #e5e7eb;
  border-bottom: 3px solid #f59e0b !important;
  border-left: none;
  border-right: none;
  box-sizing: border-box;
}

.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-input-affix-wrapper,
.buying-sheet__data-row--editing .buying-sheet__edit-date.ant-picker {
  border-radius: 6px !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #d1d5db !important;
  font-size: 13px;
  box-shadow: none !important;
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-date.ant-picker {
  padding: 0 8px !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-date .ant-picker-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-date .ant-picker-input > input {
  line-height: 1.2 !important;
  height: auto !important;
  padding: 0 !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-input-affix-wrapper-focused,
.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-input-affix-wrapper:focus-within,
.buying-sheet__data-row--editing .buying-sheet__edit-date.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input-affix-wrapper
  .ant-input:focus {
  outline: none !important;
}

.buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker
  .ant-picker-input
  > input:focus {
  outline: none !important;
}

.buying-sheet__actions--edit {
  gap: 8px;
}

.buying-sheet__btn-save.ant-btn-primary {
  background: #15803d !important;
  border-color: #15803d !important;
  font-weight: 700 !important;
  min-width: 64px;
}

.buying-sheet__btn-save.ant-btn-primary:hover {
  background: #166534 !important;
  border-color: #166534 !important;
}

.buying-sheet__btn-cancel-edit.ant-btn {
  border-color: #d1d5db !important;
  color: #6b7280 !important;
  background: #fff !important;
  font-weight: 600 !important;
}

.buying-sheet__btn-cancel-edit.ant-btn:hover {
  border-color: #9ca3af !important;
  color: #374151 !important;
}

.buying-sheet__btn-del-row.ant-btn {
  border-color: #fecaca !important;
  color: #dc2626 !important;
  background: #fff !important;
  font-weight: 600 !important;
}

.buying-sheet__btn-del-row.ant-btn:hover {
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

/* Fills remaining space — same gray as page */

.buying-sheet__panel-filler {
  flex: 1 1 auto;
  min-height: 48px;
  background: #f3f4f6;
}

.buying-sheet__date-cell {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
}

.buying-sheet__captain-cell {
  font-size: 14px;
  font-weight: 400;
  color: #111827;
}

.buying-sheet__name-cell strong {
  display: block;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.buying-sheet__name-sub {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 5px;
  line-height: 1.4;
}

.buying-sheet__team-tag {
  border-radius: 999px !important;
  padding: 3px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: none !important;
  background: #e0f2fe !important;
  color: #1d4ed8 !important;
}

.buying-sheet__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.buying-sheet__progress-track {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  position: relative;
  min-width: 60px;
}

.buying-sheet__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #ef4444;
  border-radius: 3px;
}

.buying-sheet__progress-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #ef4444;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.buying-sheet__progress-text {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.buying-sheet__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.buying-sheet__btn-edit.ant-btn {
  padding: 0 !important;
  height: auto !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

.buying-sheet__btn-edit.ant-btn:hover {
  color: #4b5563 !important;
}

.buying-sheet__actions .ant-btn-primary {
  font-weight: 600 !important;
}
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

#root {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: #f3f4f6;
  overflow-x: hidden;
}
