/* Shared operational layout. Loaded after page styles. */
:root {
  --muted-foreground: #b2c3bd;
  --blue-tourney: #80b5ff;
  --ruby-danger: #ff8299;
  --control-height: 2.75rem;
}
body { font-size: 1rem; line-height: 1.5; }
.content { max-width: 1920px; padding: 24px clamp(16px, 2vw, 32px) 32px; }
.content::before { display: none; }
.content > * { min-width: 0; }
.content h1, .content h2, .content h3 { text-wrap: balance; }
.sidebar { width: 232px; padding: 20px 12px 16px; }
.sidebar .nav-item { font-size: .875rem; line-height: 1.4; min-height: 44px; padding: 9px 10px; }
.sidebar .nav-caption { font-size: .75rem; letter-spacing: .04em; }
.sidebar .brand-row { margin-bottom: 16px; }
.sidebar .club-select-info strong, .sidebar .profile strong { font-size: .875rem; }
.sidebar .club-select-info span, .sidebar .profile span { font-size: .75rem; }
.sidebar .nav-item.active { border-left: 3px solid var(--primary); background: #1e4035; }
.sidebar .nav-item:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid #f0cf89; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 12px 16px;
  background: #f0cf89; color: #10201c; border-radius: 6px; transform: translateY(-180%); }
.skip-link:focus { transform: none; color: #10201c; }
.btn, .primary-button, .outline-button, .notification-btn, .mobile-close {
  min-height: var(--control-height); min-width: 2.75rem; font-size: .875rem; line-height: 1.4;
}
.btn-xs, .btn-sm { padding: 7px 10px; font-size: .875rem !important; }
.btn[aria-disabled="true"] { opacity: .65; cursor: wait; }
.form-control, .form-select { min-height: var(--control-height); font-size: 1rem; }
.form-label, .col-form-label { font-size: .875rem; line-height: 1.5; }
.form-text, .invalid-feedback, .valid-feedback { font-size: .8125rem; }
.form-control::placeholder { color: #aabcb5; opacity: 1; }
.form-check { min-height: 2rem; }
.form-check-input { border-color: #9cafaa; }
.form-check-label { padding-inline-start: 4px; }
.fs-7 { font-size: .875rem !important; }
.fs-8 { font-size: .8125rem !important; }
.fs-9 { font-size: .75rem !important; }
.table, .table-luxury { font-variant-numeric: tabular-nums; }
.table th, .table-dark th, .table-luxury th { font-size: .8125rem; letter-spacing: .035em; padding: 12px; }
.table td, .table-dark td, .table-luxury td { font-size: .875rem; padding: 12px; }
.table-responsive { max-width: 100%; border-radius: 8px; }
.table-responsive:focus-visible { outline-offset: -3px; }
.table-responsive table.table-wide { min-width: 560px; }
.modal-title { font-size: 1.25rem; }
.modal-body { overflow-wrap: anywhere; }
.modal-footer { gap: 8px; }
.modal-footer > * { margin: 0; }
.bg-success, .bg-info { color: #10201c !important; }
.stat-value, .kpi-value, .font-monospace, input[type="number"] { font-variant-numeric: tabular-nums; }
.stat-grid, .stats-grid, .analytics-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.top-actions, .page-heading, .cash-management-heading { flex-wrap: wrap; }
.nav-pills-poker { flex-wrap: wrap; }
.nav-pills-poker .nav-link, .nav-tabs .nav-link { min-height: 44px; font-size: .875rem; }
.search-field { min-width: 0; }
.search-field input { min-width: 0; width: 100%; }
.content img { max-width: 100%; }
.content .row > * { min-width: 0; }
body.menu-open { overflow: hidden; }
.form-submit-status { font-size: .875rem; color: #e4bb6e; margin-top: 8px; }
@media (min-width: 1600px) {
  .content { padding-inline: 32px; }
}
@media (max-width: 1199.98px) {
  .content { padding-inline: 20px; }
}
@media (max-width: 991.98px) {
  .sidebar { width: min(320px, calc(100vw - 32px)); height: 100dvh; min-height: 0; }
  .sidebar:not(.sidebar-open) { visibility: hidden; }
  .sidebar.sidebar-open { visibility: visible; }
  .mobile-close { display: inline-grid; place-items: center; flex-shrink: 0; }
  .content { padding: 20px 16px 28px; }
}
@media (max-width: 575.98px) {
  .content { padding-inline: 12px; }
  .content .card.p-4, .content .card.p-5 { padding: 16px !important; }
  .content .floor-panel { padding: 16px; }
  .top-actions { width: 100%; gap: 8px; }
  .top-actions .search-field { flex: 1 1 100%; }
  .modal-dialog { margin: 8px; }
  .modal-body { padding: 16px !important; }
  .modal-footer .btn { flex: 1 1 auto; }
  .table td, .table th, .table-luxury td, .table-luxury th { padding: 10px; }
  .content form .col-6:has(> .form-control), .content form .col-6:has(> .form-select) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Dense record lists: one hierarchy for names, amounts, metadata and actions. */
.table-records { font-size: .875rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.table-records > thead > tr > th {
  font-size: .75rem; line-height: 1.45; letter-spacing: .025em;
  padding: 10px; vertical-align: middle;
}
.table-records > tbody > tr > td {
  font-size: .875rem; line-height: 1.45; padding: 8px 10px; vertical-align: middle;
}
.table-records td.fs-4, .table-records td.fs-5, .table-records td.fs-6,
.table-records td .fs-4:not(i), .table-records td .fs-5:not(i), .table-records td .fs-6:not(i) {
  font-size: .875rem !important;
}
.table-records td > strong, .table-records td .fw-bold, .table-records td.fw-bold { font-weight: 600 !important; }
.table-records td small, .table-records td .fs-7, .table-records td .fs-8, .table-records td .fs-9 {
  font-size: .8125rem !important; line-height: 1.4;
}
.table-records td .badge, .table-records td [class*="badge-luxury-"] { font-size: .75rem; line-height: 1.4; }
.table-records td .btn { font-size: .8125rem !important; white-space: nowrap; }
.table-records td.text-end { font-variant-numeric: tabular-nums; }

/* The six-column blind structure needs a full-width panel, not a narrow sidebar. */
.tournament-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); gap: 24px; align-items: start; }
.tournament-support > .card { margin-top: 0 !important; min-width: 0; }
.blinds-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.blinds-header h5 { font-size: 1.125rem; line-height: 1.4; }
.blinds-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.blinds-table-region { overflow: visible; }
.blinds-table-region .blinds-table, .blinds-table-region .blinds-table.table-wide { width: 100%; min-width: 0; table-layout: fixed; }
.blinds-table th, .blinds-table td { overflow-wrap: anywhere; padding: 10px 8px; font-size: .875rem; }
.blinds-table th { font-size: .75rem; letter-spacing: .02em; }
.blinds-table th:last-child { width: 116px; }
.blinds-table .blinds-row-actions { white-space: nowrap; }
.blinds-action-buttons { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; vertical-align: middle; }
.blinds-action-buttons .blinds-delete-form { display: flex; margin: 0; flex: 0 0 auto; }
.blinds-action-buttons > .btn { flex: 0 0 auto; }
.blinds-table tbody td { padding-block: 8px; vertical-align: middle; }
.blinds-row-actions .btn { min-height: 44px; min-width: 44px; }
@media (max-width: 767.98px) {
  .blinds-table { display: block; }
  .blinds-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .blinds-table tbody { display: grid; gap: 12px; }
  .blinds-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; }
  .blinds-table tbody td { display: flex; flex-direction: column; gap: 4px; text-align: left !important; min-width: 0; }
  .blinds-table td[data-label]::before { content: attr(data-label); color: var(--muted-foreground); font-size: .75rem; font-weight: 600; }
  .blinds-table .blinds-row-actions { flex-direction: column; align-items: flex-start; gap: 4px; }
  .blinds-table .blinds-row-actions::before { flex: none; }
  .blinds-table td[colspan] { grid-column: 1 / -1; }
  .blinds-tools { width: 100%; }
  .blinds-tools .btn { flex: 1 1 auto; }
}
