/* TribesPOS — Material Design design system (MDB UI Kit + Bootstrap 5) */

:root {
    /* Tribes POS — forest green + white brand palette */
    --tribes-brand: #1b5e20;
    --tribes-brand-dark: #0f3d1c;
    --tribes-brand-darker: #0a2e15;
    --tribes-brand-light: #2e7d32;
    --tribes-brand-muted: #e8f5e9;
    --tribes-brand-accent: #c9a227;

    --tribespos-primary: var(--tribes-brand);
    --tribespos-primary-dark: var(--tribes-brand-dark);
    --tribespos-accent: var(--tribes-brand-accent);
    --tribespos-success: #2e7d32;
    --tribespos-danger: #c62828;
    --tribespos-warning: #f9a825;
    --tribespos-surface: #ffffff;
    --tribespos-background: #f4f7f4;
    --tribespos-sidebar-width: 268px;
    --tribespos-navbar-height: 56px;
    --tribespos-border: rgba(15, 61, 28, 0.1);
    --tribespos-shadow-sm: 0 1px 2px rgba(10, 46, 21, 0.06);
    --tribespos-shadow-md: 0 0.5rem 1.25rem rgba(10, 46, 21, 0.1);
    --tribespos-shadow-lg: 0 0.75rem 1.8rem rgba(10, 46, 21, 0.12);
    --tribespos-radius: 0.75rem;
    --tribespos-radius-lg: 1rem;
    --mdb-primary: var(--tribes-brand);
    --mdb-primary-rgb: 27, 94, 32;
}

/* Typography & shell */
body.tribespos-shell {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--tribespos-background);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.tribespos-shell .navbar.bg-primary {
    background: linear-gradient(135deg, var(--tribespos-primary-dark) 0%, var(--tribespos-primary) 100%) !important;
    min-height: var(--tribespos-navbar-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tribespos-shell .navbar-brand {
    letter-spacing: -0.02em;
}

/* App layout */
.app-layout {
    display: flex;
    min-height: calc(100vh - var(--tribespos-navbar-height));
}

.main-content {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 991.98px) {
    .main-content {
        padding: 0.85rem;
    }
}

.tribespos-shell .mb-4 {
    margin-bottom: 1rem !important;
}

.tribespos-shell .mb-3 {
    margin-bottom: 0.75rem !important;
}

.tribespos-shell .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.tribespos-shell .g-3,
.tribespos-shell .gx-3 {
    --bs-gutter-x: 0.75rem;
}

.tribespos-shell .g-3,
.tribespos-shell .gy-3 {
    --bs-gutter-y: 0.75rem;
}

.tribespos-shell .g-4,
.tribespos-shell .gx-4 {
    --bs-gutter-x: 1rem;
}

.tribespos-shell .g-4,
.tribespos-shell .gy-4 {
    --bs-gutter-y: 1rem;
}

/* Sidebar */
.app-sidebar {
    position: sticky;
    top: var(--tribespos-navbar-height);
    flex-shrink: 0;
    width: var(--tribespos-sidebar-width);
    min-width: var(--tribespos-sidebar-width);
    height: calc(100vh - var(--tribespos-navbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.65rem 1.5rem;
    background: linear-gradient(180deg, var(--tribes-brand-darker) 0%, var(--tribes-brand-dark) 55%, #14532d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.app-sidebar::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.75rem 1rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-section + .sidebar-section {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-heading {
    margin: 0 0 0.4rem 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0.65rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--tribes-brand-dark) 0%, var(--tribes-brand-light) 100%);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
}

.sidebar-link i {
    width: 1.15rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        position: fixed;
        top: var(--tribespos-navbar-height);
        left: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--tribespos-shadow-lg);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop.is-visible {
        display: block;
    }
}

/* Page header */
.page-header {
    margin-bottom: 0.75rem;
}

.page-header-eyebrow {
    color: var(--tribes-brand);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.page-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--tribes-brand-darker);
}

.page-header-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

/* Cards */
.tribespos-card,
.tribespos-shell .card:not(.border-0) {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
}

.tribespos-shell .card-header {
    background: transparent;
    border-bottom: 1px solid var(--tribespos-border);
    font-weight: 600;
    padding: 0.55rem 0.9rem;
}

.tribespos-shell .card-body {
    padding: 0.85rem 1rem;
}

.tribespos-shell .table-card .card-header {
    padding: 0.45rem 0.85rem;
}

.tribespos-shell .table-card .card-header .h5,
.tribespos-shell .table-card .card-header .h6 {
    font-size: 0.95rem;
}

.dashboard-stat-card {
    border: 0;
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card .card-body {
    padding: 0.65rem 0.9rem;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tribespos-shadow-lg);
}

.dashboard-chart-card {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
}

.chart-container {
    position: relative;
    height: 280px;
    max-height: 280px;
    width: 100%;
    overflow: hidden;
}

.dashboard-chart-card .chart-container canvas {
    max-height: 100%;
}

.stat-tile {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    padding: 0.65rem 0.85rem;
    background: var(--tribespos-surface);
    height: 100%;
}

.stat-tile-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.stat-tile-value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.15;
}

.stat-tile--compact {
    padding: 0.45rem 0.55rem;
}

.stat-tile--compact .stat-tile-label {
    font-size: 0.68rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-tile--compact .stat-tile-value {
    font-size: 1.15rem;
}

/* Daily sales report — compact executive view */
.daily-sales-page .page-header {
    margin-bottom: 0.5rem;
}

.daily-sales-page .page-header-title {
    font-size: 1.35rem;
}

.daily-sales-page .page-header-subtitle {
    font-size: 0.8rem;
}

.daily-sales-toolbar .dashboard-toolbar {
    margin: 0;
}

.daily-sales-breakdown {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    box-shadow: var(--tribespos-shadow-sm);
}

.daily-sales-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(27, 94, 32, 0.08);
    border: 1px solid rgba(27, 94, 32, 0.15);
    font-size: 0.78rem;
    line-height: 1.2;
}

.daily-sales-chip--muted {
    background: #f8fafc;
    border-color: var(--tribespos-border);
}

.daily-sales-chip__label {
    font-weight: 600;
    color: #334155;
}

.daily-sales-chip__value {
    font-weight: 700;
    color: var(--tribes-brand-dark, #1b5e20);
}

.daily-sales-chip__meta {
    color: #64748b;
    font-size: 0.72rem;
}

.daily-sales-page .btn-icon,
.transactions-page .btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Transactions list — compact filters + table */
.transactions-page .page-header {
    margin-bottom: 0.5rem;
}

.transactions-page .page-header-title {
    font-size: 1.35rem;
}

.transactions-page .page-header-subtitle {
    font-size: 0.8rem;
}

.transactions-filter-card {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
}

.transactions-filters > .mb-3 {
    margin-bottom: 0.65rem !important;
}

.transactions-filters > .mb-3:last-of-type {
    margin-bottom: 0.35rem !important;
}

.transactions-filters .text-uppercase {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    min-width: 4.5rem;
}

.transactions-filters .btn-sm {
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
}

.transactions-refine-form {
    border-top: 1px dashed var(--tribespos-border);
    padding-top: 0.55rem;
}

.transactions-breakdown {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    box-shadow: var(--tribespos-shadow-sm);
}

.transactions-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    font-size: 0.78rem;
    line-height: 1.2;
}

.transactions-chip__label {
    font-weight: 600;
    color: #334155;
}

.transactions-chip__value {
    font-weight: 700;
    color: var(--tribes-brand-dark, #1b5e20);
}

.transactions-chip__meta {
    color: #64748b;
    font-size: 0.72rem;
}

.transactions-row--exception {
    background: rgba(220, 53, 69, 0.04);
}

.transactions-page .status-pill {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
}

/* CoffeeClub reports hub */
.cafe-reports-page .page-header {
    margin-bottom: 0.5rem;
}

.cafe-reports-page .page-header-title {
    font-size: 1.35rem;
}

.cafe-reports-page .page-header-subtitle {
    font-size: 0.8rem;
}

.cafe-reports-breakdown {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    box-shadow: var(--tribespos-shadow-sm);
}

.cafe-reports-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(27, 94, 32, 0.08);
    border: 1px solid rgba(27, 94, 32, 0.15);
    font-size: 0.78rem;
    line-height: 1.2;
}

.cafe-reports-chip__label {
    font-weight: 600;
    color: #334155;
}

.cafe-reports-chip__value {
    font-weight: 700;
    color: var(--tribes-brand-dark, #1b5e20);
}

.cafe-reports-chip__meta {
    color: #64748b;
    font-size: 0.72rem;
}

.cafe-reports-page .chart-container--compact {
    height: 220px;
    max-height: 220px;
}

.cafe-reports-page .gm-stat-card--hero .h4,
.cafe-reports-page .gm-stat-card--hero .stat-tile-label {
    color: #fff;
}

.cafe-reports-page .gm-stat-card--hero .stat-tile-label {
    opacity: 0.85;
}

/* Paradise Tailoring — production kanban */
.tailoring-kanban-page .page-header-title {
    font-size: 1.35rem;
}

.tailoring-kanban-panel {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
    overflow: hidden;
}

.tailoring-kanban-board {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
}

.tailoring-kanban-column {
    flex: 0 0 min(260px, 88vw);
    scroll-snap-align: start;
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    display: flex;
    flex-direction: column;
    max-height: min(70vh, 640px);
}

.tailoring-kanban-column__head {
    align-items: center;
    border-bottom: 1px solid var(--tribespos-border);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    position: sticky;
    top: 0;
    z-index: 1;
    background: inherit;
    border-radius: var(--tribespos-radius) var(--tribespos-radius) 0 0;
}

.tailoring-kanban-column--confirmed .tailoring-kanban-column__head {
    background: linear-gradient(180deg, rgba(74, 20, 140, 0.12) 0%, #f8fafc 100%);
    border-top: 3px solid #7b1fa2;
}

.tailoring-kanban-column--cutting .tailoring-kanban-column__head {
    border-top: 3px solid #5e35b1;
}

.tailoring-kanban-column--sewing .tailoring-kanban-column__head {
    border-top: 3px solid #3949ab;
}

.tailoring-kanban-column--finishing .tailoring-kanban-column__head {
    border-top: 3px solid #00838f;
}

.tailoring-kanban-column--ready .tailoring-kanban-column__head {
    border-top: 3px solid #2e7d32;
    background: linear-gradient(180deg, rgba(46, 125, 50, 0.1) 0%, #f8fafc 100%);
}

.tailoring-kanban-column__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.tailoring-kanban-column__count {
    background: #fff;
    border: 1px solid var(--tribespos-border);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
}

.tailoring-kanban-column__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding: 0.5rem;
    flex: 1;
}

.tailoring-kanban-card {
    background: #fff;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    box-shadow: var(--tribespos-shadow-sm);
    padding: 0.55rem 0.65rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tailoring-kanban-card:hover {
    border-color: var(--bu-pt-red, #c62828);
    box-shadow: var(--tribespos-shadow-md);
}

.tailoring-kanban-card--overdue {
    border-color: #ef9a9a;
    background: #fffbfb;
}

.tailoring-kanban-card__number {
    color: var(--bu-pt-red-dark, #4a148c);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    text-decoration: none;
}

.tailoring-kanban-card__number:hover {
    text-decoration: underline;
}

.tailoring-kanban-card__customer {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.tailoring-kanban-card__garment {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.tailoring-kanban-card__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.72rem;
}

.tailoring-kanban-card__footer {
    align-items: center;
    border-top: 1px dashed var(--tribespos-border);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.7rem;
    gap: 0.25rem 0.5rem;
    justify-content: space-between;
    margin-top: 0.4rem;
    padding-top: 0.35rem;
}

.tailoring-kanban-card__balance {
    color: #b45309;
    font-weight: 600;
}

.tailoring-kanban-empty {
    color: #94a3b8;
    font-size: 0.78rem;
    margin: 0.5rem 0;
    text-align: center;
}

.tailoring-kanban-page .gm-stat-card--hero .h5 {
    color: #fff;
}

/* Waiter dashboard — compact tablet layout */
.waiter-screen .main-content {
    padding: 0.65rem 0.85rem 1rem;
}

.waiter-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.waiter-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--tribes-brand-darker);
}

.waiter-page-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.waiter-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.waiter-ready-panel {
    border: 1px solid rgba(27, 94, 32, 0.25);
    border-radius: 0.55rem;
    background: #f1f8f1;
    overflow: hidden;
}

.waiter-ready-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem;
    background: linear-gradient(135deg, var(--tribes-brand-dark) 0%, var(--tribes-brand) 100%);
    color: #fff;
}

.waiter-ready-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.waiter-ready-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    min-width: 1.35rem;
    text-align: center;
}

.waiter-ready-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.4rem;
    padding: 0.45rem;
}

.waiter-ready-grid .kds-ticket--compact {
    border-radius: 0.45rem;
}

.waiter-ready-grid .kds-action-btn {
    min-height: 40px;
    font-size: 0.76rem;
}

@media (max-width: 991.98px) {
    .waiter-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .waiter-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .waiter-ready-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Cafe compact forms (menu & retail products) */
.menu-form-page .main-content,
.product-form-page .main-content {
    padding: 0.65rem 1rem 1rem;
}

.menu-form-shell {
    max-width: 680px;
}

.menu-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.menu-form-eyebrow {
    margin: 0 0 0.1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.menu-form-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
}

.menu-form-hint {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
}

.menu-form-card .card-body {
    padding: 0.75rem;
}

.menu-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.65rem;
}

.menu-form-field .form-label {
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.menu-form-field .form-text {
    font-size: 0.68rem;
    margin-top: 0.1rem;
}

.menu-form-field--wide {
    grid-column: 1 / -1;
}

.menu-form-field--kitchen,
.menu-form-field--check {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-form-field--kitchen .form-check,
.menu-form-field--check .form-check {
    margin-bottom: 0;
}

.menu-form-field--kitchen .form-check-label,
.menu-form-field--check .form-check-label {
    font-size: 0.8125rem;
}

.menu-variant-section {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--tribespos-border);
}

.menu-variant-section-head {
    margin-bottom: 0.45rem;
}

.menu-variant-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
}

.menu-variant-hint {
    margin: 0.1rem 0 0;
    font-size: 0.68rem;
    color: #64748b;
}

.menu-variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.menu-variant-slot {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    padding: 0.35rem 0.45rem;
    background: #f8fafc;
}

.menu-variant-size {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.menu-variant-price .form-label {
    font-size: 0.65rem;
    margin-bottom: 0.05rem;
    color: #64748b;
}

.menu-variant-active {
    margin: 0;
    padding-top: 0.85rem;
}

.menu-variant-active .form-check-label {
    font-size: 0.68rem;
    white-space: nowrap;
}

.menu-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.menu-form-delete {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--tribespos-border);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 575.98px) {
    .menu-form-grid,
    .menu-variant-grid {
        grid-template-columns: 1fr;
    }

    .menu-variant-slot {
        grid-template-columns: 4.5rem 1fr auto;
    }
}

/* Product form (Paradise / Suppliers inventory) */
.product-form-shell {
    max-width: 920px;
}

.product-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-form-unit-chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    background: var(--gm-accent-soft, #f1f5f9);
    color: var(--gm-accent-dark, #334155);
    margin-right: 0.25rem;
}

.product-form-page--paradise_tailoring .product-form-unit-chip {
    background: #f3e5f5;
    color: #6a1b9a;
}

.product-form-page--suppliers .product-form-unit-chip {
    background: #e3f2fd;
    color: #0d47a1;
}

.product-form-page--coffeeclub .product-form-unit-chip {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-form-card .card-body {
    padding: 0.65rem 0.85rem;
}

.product-form-section {
    border: 0;
    margin: 0 0 0.55rem;
    padding: 0 0 0.55rem;
    border-bottom: 1px solid var(--tribespos-border);
}

.product-form-section--last,
.product-form-section.menu-variant-section {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin: 0 0 0.4rem;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    border: 0;
    float: none;
}

.product-form-section__title .fa-solid {
    font-size: 0.7rem;
    opacity: 0.85;
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.55rem;
}

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

.product-form-field--wide {
    grid-column: 1 / -1;
}

.product-form-field--check {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.15rem;
}

.product-form-field--check .form-check {
    margin: 0;
}

.product-form-field--check .form-check-label {
    font-size: 0.78rem;
}

.product-form-tip {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Product detail */
.product-detail-page .main-content {
    padding: 0.65rem 1rem 1rem;
}

.product-detail-shell {
    max-width: 1100px;
}

.product-detail-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.product-detail-card {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
}

.product-detail-image-wrap {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    display: flex;
    height: 140px;
    justify-content: center;
    overflow: hidden;
    width: 140px;
}

.product-detail-image {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.product-detail-metric {
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    padding: 0.45rem 0.55rem;
}

.product-detail-metric__label {
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-detail-metric__value {
    color: var(--tribes-brand-darker);
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-detail-dl dt {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0;
}

.product-detail-dl dd {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.product-detail-description {
    border-top: 1px dashed var(--tribespos-border);
    padding-top: 0.75rem;
}

.product-detail-barcode {
    max-height: 100px;
    object-fit: contain;
}

.product-detail-page--paradise_tailoring .product-detail-metric__value {
    color: #6a1b9a;
}

.product-detail-page--suppliers .product-detail-metric__value {
    color: #0d47a1;
}

.menu-variant-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.35rem;
    min-width: 0;
}

.menu-variant-mini-field .form-label {
    font-size: 0.62rem;
    margin-bottom: 0.05rem;
    color: #64748b;
}

.menu-variant-slot {
    grid-template-columns: 2rem minmax(0, 1fr);
}

/* Menu items: the size name ("Extra-large") sits on its own row above the
   price, so it never breaks mid-word in a narrow label column. */
.menu-variant-slot.menu-variant-slot--named {
    grid-template-columns: minmax(0, 1fr) auto;
}

.menu-variant-slot--named .menu-variant-size {
    grid-column: 1 / -1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .product-form-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .product-form-grid,
    .product-form-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Floor / Kitchen GM view */
.floor-screen .main-content {
    padding: 0.65rem 1rem 1rem;
}

.floor-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.floor-page-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--tribes-brand-darker);
}

.floor-page-subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
}

.text-kitchen-prep {
    color: #e65100 !important;
}

.floor-stat-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.floor-stat-chip {
    flex: 1 1 auto;
    min-width: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--tribespos-border);
    border-radius: 0.4rem;
    background: var(--tribespos-surface);
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
}

.floor-stat-chip strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.floor-table-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.floor-table-compact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tribespos-border);
    border-radius: 0.45rem;
    padding: 0.5rem 0.55rem;
    min-height: 96px;
    background: var(--tribespos-surface);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.floor-table-compact:hover {
    color: inherit;
    transform: translateY(-1px);
    box-shadow: var(--tribespos-shadow-sm);
}

.floor-table-compact-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.floor-table-compact-num {
    font-size: 0.92rem;
    line-height: 1;
}

/* Floor sections: tables grouped under their area, numbered naturally within. */
.floor-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.floor-section-title::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--tribespos-border);
}

.floor-section-branch {
    color: var(--tribes-brand);
}

.floor-section-count {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    letter-spacing: 0;
}

.floor-kitchen-chip-branch {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.85;
}

.floor-table-compact-meta,
.floor-table-compact-order {
    font-size: 0.6rem;
    color: #64748b;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floor-table-compact-order {
    font-weight: 600;
    color: #334155;
}

.floor-table-compact-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    min-height: 1.15rem;
}

.floor-table-compact-action {
    margin-top: auto;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tribes-brand);
}

.floor-table-compact.is-available {
    border-color: #a5d6a7;
    background: #f1f8f1;
}

.floor-table-compact.is-occupied {
    border-color: #ffcc80;
    background: #fff8e1;
}

.floor-table-compact.is-reserved {
    border-color: #81d4fa;
    background: #e1f5fe;
}

.floor-table-compact.is-cleaning {
    border-color: #b0bec5;
    background: #eceff1;
}

.floor-kitchen-pill {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.08rem 0.35rem;
    line-height: 1.2;
}

.floor-kitchen-pill--pending {
    background: #fff3e0;
    color: #e65100;
}

.floor-kitchen-pill--ready {
    background: #e8f5e9;
    color: #2e7d32;
}

.floor-queue-strips {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.15rem;
    margin-bottom: 0.65rem;
}

.floor-kitchen-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--tribespos-border);
    border-radius: 0.45rem;
    background: #f8faf8;
    min-height: 2.5rem;
}

.floor-kitchen-strip-label {
    flex: 0 0 8.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.65rem 0 0;
    margin-right: 0.65rem;
    border-right: 1px solid var(--tribespos-border);
    white-space: nowrap;
}

.floor-kitchen-strip-scroll {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.floor-kitchen-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    max-width: 100%;
    padding: 0.25rem 0.55rem;
    border-radius: 0.9rem;
    font-size: 0.65rem;
    border: 1px solid transparent;
    line-height: 1.2;
}

/* A long counter order wraps whole item names instead of squeezing each word. */
.floor-kitchen-chip span {
    white-space: nowrap;
}

.floor-kitchen-chip strong {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.floor-kitchen-chip span + span::before {
    content: ' · ';
    opacity: 0.55;
}

.floor-kitchen-chip--pending {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #bf360c;
}

.floor-kitchen-chip--ready {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

.queue-notify-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.75rem 0.9rem;
    border: 1px solid #a5d6a7;
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.queue-notify-banner[hidden] {
    display: none !important;
}

.queue-notify-banner-body {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #334155;
    flex: 1 1 12rem;
}

.queue-notify-banner-body i {
    color: var(--tribes-brand-darker);
    margin-top: 0.1rem;
}

.queue-notify-banner-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.queue-notify-status {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1075;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
    font-size: 0.72rem;
    font-weight: 600;
}

.queue-notify-status[hidden] {
    display: none !important;
}

.floor-empty {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    padding: 0.75rem 0.35rem;
}

@media (max-width: 767.98px) {
    .floor-kitchen-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .floor-kitchen-strip-label {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--tribespos-border);
        margin-right: 0;
        padding: 0 0 0.4rem;
    }
}

@media (max-width: 575.98px) {
    .floor-table-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    }
}

/* Tables */
.tribespos-shell .table {
    --bs-table-hover-bg: rgba(27, 94, 32, 0.05);
}

.tribespos-shell .table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom-width: 1px;
    white-space: nowrap;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.tribespos-shell .table > :not(caption) > * > * {
    padding: 0.5rem 0.75rem;
    line-height: 1.35;
    font-size: 0.875rem;
    vertical-align: middle;
}

.tribespos-shell .table .btn-sm {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.25;
}

.tribespos-shell .table .badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    font-weight: 600;
}

.tribespos-shell .table .status-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
}

.tribespos-shell .table .small {
    font-size: 0.78rem;
    line-height: 1.2;
}

.table-card .card-body {
    padding: 0;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table thead th:first-child,
.table-card .table tbody td:first-child {
    padding-left: 1rem;
}

.table-card .table thead th:last-child,
.table-card .table tbody td:last-child {
    padding-right: 1rem;
}

/* Forms */
.report-filter-card .card-body {
    padding: 0.65rem 0.85rem;
}

.report-filter-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.tribespos-shell .form-control,
.tribespos-shell .form-select {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
}

.tribespos-shell .form-control:focus,
.tribespos-shell .form-select:focus {
    border-color: var(--tribespos-primary);
    box-shadow: 0 0 0 0.2rem rgba(27, 94, 32, 0.18);
}

/* Buttons */
.tribespos-shell .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
}

.tribespos-shell .btn-primary {
    background: linear-gradient(135deg, var(--tribespos-primary-dark) 0%, var(--tribespos-primary) 100%);
    border: none;
}

.tribespos-shell .btn-primary:hover {
    background: linear-gradient(135deg, var(--tribes-brand-darker) 0%, var(--tribes-brand) 100%);
}

/* Brand logo */
.tribes-logo {
    object-fit: contain;
    flex-shrink: 0;
}

.tribes-logo--navbar {
    width: 38px;
    height: 38px;
}

.navbar-brand-text {
    line-height: 1.15;
}

.navbar-brand-text .brand-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar-brand-text .brand-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.auth-brand-panel {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand-panel .brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0.75rem 0 0.15rem;
}

.auth-brand-panel .brand-subtitle {
    font-size: 0.75rem;
    color: var(--tribes-brand);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.auth-brand-panel .product-name {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.35rem;
}

/* Status pills */
.status-pill {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-pill.status-good,
.status-good {
    background: #e8f5e9;
    color: var(--tribespos-success);
}

.status-pill.status-warning,
.status-warning {
    background: #fff8e1;
    color: #e65100;
}

.status-pill.status-critical,
.status-critical {
    background: #ffebee;
    color: var(--tribespos-danger);
}

.hero-settings-card {
    border: 1px solid var(--tribespos-border);
    box-shadow: var(--tribespos-shadow-sm);
}

.hero-settings-card .form-label {
    margin-bottom: 0.75rem;
}

.hero-settings-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--tribespos-border);
    background: #eef1f4;
}

.hero-settings-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-settings-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.8125rem;
}

.hero-settings-card .clearablefileinput,
.hero-settings-card input[type="file"] {
    font-size: 0.875rem;
}

.hero-settings-card .form-text,
.hero-settings-card a {
    font-size: 0.8125rem;
    word-break: break-all;
}

/* Activity lists (dashboard) */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--tribespos-border);
    font-size: 0.875rem;
}

.activity-list li:last-child {
    border-bottom: 0;
}

/* ===== Business unit brand tokens (logos in static/img/brands/) ===== */
:root {
    --bu-tcc-green: #38b449;
    --bu-tcc-green-dark: #2d8f3a;
    --bu-tcc-brown: #6f4e37;
    --bu-tcc-brown-dark: #3d2b1f;
    --bu-tcc-cream: #f8f4ef;
    --bu-tcc-tan: #c19a6b;

    --bu-tsup-green: #1b5e20;
    --bu-tsup-green-mid: #2e7d32;
    --bu-tsup-black: #111111;
    --bu-tsup-mint: #e8f5e9;

    --bu-pt-red: #d32f2f;
    --bu-pt-red-dark: #b71c1c;
    --bu-pt-yellow: #fbc02d;
    --bu-pt-yellow-light: #fff9e6;
    --bu-pt-black: #111111;
}

/* Module / unit cards — branded headers */
.bu-brand-card,
.module-card-coffee,
.module-card-suppliers,
.module-card-tailoring {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
    overflow: hidden;
}

.bu-brand-card--coffeeclub,
.module-card-coffee {
    border-top: 4px solid var(--bu-tcc-green);
}

.bu-brand-card--suppliers,
.module-card-suppliers {
    border-top: 4px solid var(--bu-tsup-green);
}

.bu-brand-card--paradise_tailoring,
.module-card-tailoring {
    border-top: 4px solid var(--bu-pt-red);
}

.bu-brand-card__header {
    align-items: center;
    border-bottom: 1px solid var(--tribespos-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.bu-brand-card__header--coffeeclub {
    background: linear-gradient(135deg, var(--bu-tcc-brown-dark) 0%, var(--bu-tcc-brown) 42%, var(--bu-tcc-green-dark) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.12);
    color: #fff;
}

.bu-brand-card__header--suppliers {
    background: linear-gradient(135deg, var(--bu-tsup-black) 0%, var(--bu-tsup-green) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.15);
    color: #fff;
}

.bu-brand-card__header--paradise_tailoring {
    background: linear-gradient(135deg, var(--bu-pt-red-dark) 0%, var(--bu-pt-red) 45%, var(--bu-pt-yellow) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: var(--bu-pt-black);
}

.bu-brand-card__identity {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    min-width: 0;
}

.bu-brand-card__logo {
    background: #fff;
    border-radius: 0.35rem;
    flex-shrink: 0;
    height: auto;
    max-height: 2.5rem;
    object-fit: contain;
    padding: 0.2rem 0.35rem;
    width: auto;
}

.bu-brand-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.bu-brand-card__subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0.15rem 0 0;
    opacity: 0.9;
}

.bu-brand-card__header--coffeeclub .bu-brand-card__subtitle,
.bu-brand-card__header--suppliers .bu-brand-card__subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.bu-brand-card__header--paradise_tailoring .bu-brand-card__subtitle {
    color: rgba(17, 17, 17, 0.75);
}

.bu-brand-card__header .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: #334155;
}

.bu-brand-card--coffeeclub .card-body,
.module-card-coffee .card-body {
    background: linear-gradient(180deg, var(--bu-tcc-cream) 0%, #fff 2.5rem);
}

.bu-brand-card--suppliers .card-body,
.module-card-suppliers .card-body {
    background: linear-gradient(180deg, var(--bu-tsup-mint) 0%, #fff 2.5rem);
}

.bu-brand-card--paradise_tailoring .card-body,
.module-card-tailoring .card-body {
    background: linear-gradient(180deg, var(--bu-pt-yellow-light) 0%, #fff 2.5rem);
}

.bu-brand-card--coffeeclub .stat-tile--compact,
.module-card-coffee .stat-tile--compact {
    background: rgba(56, 180, 73, 0.08);
    border-color: rgba(111, 78, 55, 0.2);
}

.bu-brand-card--suppliers .stat-tile--compact,
.module-card-suppliers .stat-tile--compact {
    background: rgba(27, 94, 32, 0.06);
    border-color: rgba(27, 94, 32, 0.18);
}

.bu-brand-card--paradise_tailoring .stat-tile--compact,
.module-card-tailoring .stat-tile--compact {
    background: rgba(251, 192, 45, 0.15);
    border-color: rgba(211, 47, 47, 0.2);
}

/* Table rows tinted by business unit */
.bu-brand-row--coffeeclub > td,
.bu-brand-row--coffeeclub > th {
    background-color: rgba(56, 180, 73, 0.06);
    border-bottom-color: rgba(111, 78, 55, 0.12);
}

.bu-brand-row--coffeeclub:hover > td {
    background-color: rgba(56, 180, 73, 0.12);
}

.bu-brand-row--suppliers > td,
.bu-brand-row--suppliers > th {
    background-color: rgba(27, 94, 32, 0.05);
    border-bottom-color: rgba(17, 17, 17, 0.08);
}

.bu-brand-row--suppliers:hover > td {
    background-color: rgba(27, 94, 32, 0.1);
}

.bu-brand-row--paradise_tailoring > td,
.bu-brand-row--paradise_tailoring > th {
    background-color: rgba(251, 192, 45, 0.12);
    border-bottom-color: rgba(211, 47, 47, 0.1);
}

.bu-brand-row--paradise_tailoring:hover > td {
    background-color: rgba(251, 192, 45, 0.22);
}

.bu-brand-row__label {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.bu-brand-row__dot {
    border-radius: 50%;
    flex-shrink: 0;
    height: 0.5rem;
    width: 0.5rem;
}

.bu-brand-row__dot--coffeeclub { background: var(--bu-tcc-green); }
.bu-brand-row__dot--suppliers { background: var(--bu-tsup-green); }
.bu-brand-row__dot--paradise_tailoring { background: var(--bu-pt-red); }

/* Executive / accountant list highlights */
.bu-brand-list-item--coffeeclub {
    border-left: 4px solid var(--bu-tcc-green);
    background: linear-gradient(90deg, var(--bu-tcc-cream), transparent);
}

.bu-brand-list-item--suppliers {
    border-left: 4px solid var(--bu-tsup-green);
    background: linear-gradient(90deg, var(--bu-tsup-mint), transparent);
}

.bu-brand-list-item--paradise_tailoring {
    border-left: 4px solid var(--bu-pt-red);
    background: linear-gradient(90deg, var(--bu-pt-yellow-light), transparent);
}

.bu-brand-section--coffeeclub > .card-header,
.bu-brand-section--coffeeclub.bu-brand-section {
    background: linear-gradient(90deg, var(--bu-tcc-cream), #fff);
    border-bottom: 2px solid var(--bu-tcc-green);
}

.bu-brand-section--suppliers > .card-header,
.bu-brand-section--suppliers.bu-brand-section {
    background: linear-gradient(90deg, var(--bu-tsup-mint), #fff);
    border-bottom: 2px solid var(--bu-tsup-green);
}

.bu-brand-section--paradise_tailoring > .card-header,
.bu-brand-section--paradise_tailoring.bu-brand-section {
    background: linear-gradient(90deg, var(--bu-pt-yellow-light), #fff);
    border-bottom: 2px solid var(--bu-pt-red);
}

.module-card-accounting {
    border: 1px solid var(--tribespos-border);
    border-left: 4px solid var(--tribes-brand);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
}

.accounting-kpi-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.65rem;
    display: inline-flex;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.accounting-metric-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.accounting-watch-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.accounting-watch-list li {
    align-items: center;
    border-bottom: 1px solid var(--tribespos-border);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.65rem 0;
}

.accounting-watch-list li:last-child {
    border-bottom: 0;
}

.accounting-watch-list .watch-label {
    color: #475569;
    font-size: 0.85rem;
}

.accounting-watch-list .watch-value {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.accounting-unit-block + .accounting-unit-block {
    border-top: 1px solid var(--tribespos-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.accounting-unit-heading {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.accounting-unit-heading h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.accounting-unit-meta {
    color: #64748b;
    font-size: 0.78rem;
}

.accounting-posting-note {
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.75rem;
}

.accounting-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.accounting-mini-list li {
    border-bottom: 1px dashed var(--tribespos-border);
    font-size: 0.82rem;
    padding: 0.4rem 0;
}

.accounting-mini-list li:last-child {
    border-bottom: 0;
}

.accounting-mini-list a {
    font-weight: 600;
}

.accounting-watch-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.accounting-watch-tile {
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    padding: 0.65rem 0.75rem;
}

.accounting-watch-tile .watch-label {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.accounting-watch-tile .watch-value {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.accounting-location-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.accounting-location-card {
    background: var(--tribespos-surface);
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.accounting-location-card--coffee {
    border-top: 4px solid var(--bu-tcc-green);
}

.accounting-location-card--coffee .accounting-location-card__header {
    background: linear-gradient(135deg, var(--bu-tcc-cream), #fff);
}

.accounting-location-card--coffee .accounting-location-card__icon {
    background: var(--bu-tcc-green);
    color: #fff;
}

.accounting-location-card--coffee .accounting-location-pill {
    background: rgba(56, 180, 73, 0.15);
    color: var(--bu-tcc-brown-dark);
}

.accounting-location-card--suppliers {
    border-top: 4px solid var(--bu-tsup-green);
}

.accounting-location-card--suppliers .accounting-location-card__header {
    background: linear-gradient(135deg, var(--bu-tsup-mint), #fff);
}

.accounting-location-card--suppliers .accounting-location-card__icon {
    background: var(--bu-tsup-green);
    color: #fff;
}

.accounting-location-card--suppliers .accounting-location-pill {
    background: rgba(27, 94, 32, 0.12);
    color: var(--bu-tsup-black);
}

.accounting-location-card--tailoring {
    border-top: 4px solid var(--bu-pt-red);
}

.accounting-location-card--tailoring .accounting-location-card__header {
    background: linear-gradient(135deg, var(--bu-pt-yellow-light), #fff);
}

.accounting-location-card--tailoring .accounting-location-card__icon {
    background: var(--bu-pt-red);
    color: #fff;
}

.accounting-location-card--tailoring .accounting-location-pill {
    background: rgba(251, 192, 45, 0.35);
    color: var(--bu-pt-red-dark);
}

.accounting-location-card__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--tribespos-border);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.accounting-location-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.accounting-location-card__icon {
    align-items: center;
    background: #f1f5f9;
    border-radius: 0.55rem;
    color: #475569;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.accounting-location-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.85rem 1rem 1rem;
}

.accounting-location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.accounting-location-pill {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
}

.accounting-location-section-title {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.accounting-branch-row {
    align-items: center;
    border-bottom: 1px solid #eef2f7;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.5rem 0;
}

.accounting-branch-row:last-child {
    border-bottom: 0;
}

.accounting-branch-name {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
}

.accounting-branch-type {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.accounting-code-badge {
    background: #e2e8f0;
    border-radius: 0.35rem;
    color: #334155;
    display: inline-block;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
    padding: 0.08rem 0.35rem;
}

.accounting-branch-stat,
.accounting-stock-stat {
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.accounting-branch-stat small,
.accounting-stock-stat small {
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
}

.accounting-stock-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.accounting-stock-tile {
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    padding: 0.55rem 0.65rem;
}

.accounting-stock-tile__name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.accounting-stock-tile__meta {
    color: #64748b;
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
}

.accounting-stock-tile__qty {
    font-size: 0.82rem;
    font-weight: 700;
}

.accounting-location-empty {
    align-items: center;
    color: #94a3b8;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 5.5rem;
    text-align: center;
}

.accounting-location-empty i {
    font-size: 1.25rem;
    opacity: 0.7;
}

.accounting-location-empty p {
    font-size: 0.82rem;
    margin: 0;
}

.accounting-dashboard-section {
    margin-bottom: 1.25rem;
}

.accounting-dashboard-section__header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.accounting-dashboard-section__header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.accounting-dashboard-section__header p {
    color: #64748b;
    font-size: 0.78rem;
    margin: 0;
}

/* KDS */
.kds-board-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .kds-board-columns {
        grid-template-columns: 1fr;
    }
}

.kds-column {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    padding: 1rem;
    min-height: 320px;
}

.kds-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.kds-column-header--pending { background: linear-gradient(135deg, #e65100 0%, #f57c00 100%); }
.kds-column-header--ready { background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%); }
.kds-column-header--delivered { background: linear-gradient(135deg, #546e7a 0%, #78909c 100%); }

.kds-column-help {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.kds-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.kds-ticket {
    border-radius: var(--tribespos-radius-lg);
    border: 1px solid var(--tribespos-border);
    background: var(--tribespos-surface);
    box-shadow: var(--tribespos-shadow-sm);
    overflow: hidden;
}

.kds-ticket--pending { border-left: 4px solid #f57c00; }
.kds-ticket--ready { border-left: 4px solid #43a047; }
.kds-ticket--delivered { border-left: 4px solid #78909c; opacity: 0.92; }

.kds-ticket-header {
    background: #37474f;
    color: #fff;
    padding: 0.85rem 1rem;
    font-weight: 600;
}

.kds-status-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.18);
}

.kds-ticket-body {
    padding: 1rem;
}

.kds-ticket-body ul,
.kds-ticket-items {
    margin: 0;
    padding-left: 1.1rem;
}

/* Full-screen compact KDS (tablets) */
.kds-screen {
    --kds-navbar-height: 44px;
}

.kds-screen .navbar.bg-primary {
    min-height: var(--kds-navbar-height);
}

.kds-screen .navbar-brand-text .brand-subtitle {
    display: none !important;
}

.kds-screen .navbar-brand-text .brand-title {
    font-size: 0.95rem;
}

.kds-screen #sidebarToggle {
    display: none !important;
}

.kds-screen .app-sidebar,
.kds-screen .sidebar-backdrop {
    display: none !important;
}

.kds-screen .main-content {
    padding: 0.45rem 0.55rem 0.55rem;
    height: calc(100vh - var(--kds-navbar-height));
    max-height: calc(100vh - var(--kds-navbar-height));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kds-screen .alert {
    margin-bottom: 0.35rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
}

.kds-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
}

.kds-topbar-leading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.kds-back-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.kds-in-prep-strip {
    flex-shrink: 0;
}

.kds-in-prep-empty {
    font-size: 0.68rem;
    color: #94a3b8;
    font-style: italic;
}

.kds-ready-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0 !important;
}

.kds-topbar-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.kds-topbar-main > div {
    min-width: 0;
}

.kds-topbar-main > i {
    color: var(--tribes-brand);
    font-size: 1.1rem;
}

.kds-topbar-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    color: var(--tribes-brand-darker);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kds-topbar-flow {
    margin: 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.kds-topbar-flow-sep {
    opacity: 0.55;
}

.kds-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #e0f2f1;
    color: #004d40;
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1.2;
}

.kds-location-chip--warn {
    background: #fff3e0;
    color: #e65100;
}

.kds-topbar-counts {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.kds-count {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.kds-count--pending { background: #fff3e0; color: #e65100; }
.kds-count--ready { background: #e8f5e9; color: #2e7d32; }
.kds-count--delivered { background: #eceff1; color: #546e7a; }

.kds-screen .kds-board-columns {
    flex: 1;
    min-height: 0;
    gap: 0.45rem;
}

.kds-screen .kds-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.4rem;
    border-radius: 0.55rem;
    min-height: unset;
}

.kds-screen .kds-column-header {
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
    border-radius: 0.45rem;
}

.kds-screen .kds-column-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kds-screen .kds-column-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    min-width: 1.35rem;
    text-align: center;
}

.kds-screen .kds-grid {
    gap: 0.4rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    align-content: start;
}

.kds-screen .kds-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 0.75rem 0.35rem;
}

.kds-ticket--compact .kds-ticket-header {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
}

.kds-ticket-headline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.kds-ticket-headline strong {
    font-size: 1rem;
    line-height: 1;
}

.kds-ticket-num {
    opacity: 0.75;
    font-size: 0.72rem;
}

.kds-ticket--compact .kds-ticket-body {
    padding: 0.4rem 0.5rem 0.5rem;
}

.kds-ticket--compact .kds-ticket-items {
    padding-left: 0.95rem;
    font-size: 0.78rem;
    line-height: 1.25;
}

.kds-ticket--compact .kds-ticket-items li + li {
    margin-top: 0.15rem;
}

.kds-ticket-meta {
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
}

.kds-ticket-actions {
    margin-top: 0.35rem;
}

.kds-action-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 0.45rem;
}

.kds-ticket--compact.kds-ticket--delivered {
    opacity: 0.88;
}

.kds-ticket--compact.kds-ticket--delivered .kds-ticket-header {
    background: #546e7a;
    padding: 0.28rem 0.5rem;
}

.kds-ticket--compact.kds-ticket--delivered .kds-ticket-body {
    padding: 0.3rem 0.5rem;
}

.kds-ticket--compact.kds-ticket--delivered .kds-ticket-items {
    font-size: 0.72rem;
}

@media (max-width: 767.98px) {
    .kds-screen .kds-board-columns {
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    /* Phones: the title wraps instead of running under the counts, and the
       counts drop to their own row. */
    .kds-topbar {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 0.35rem;
    }

    .kds-topbar-leading {
        flex: 1 1 100%;
        align-items: flex-start;
    }

    .kds-topbar-title {
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
    }

    .kds-topbar-counts {
        flex-wrap: wrap;
        flex-shrink: 1;
    }

    .kds-screen .main-content {
        height: calc(100dvh - var(--kds-navbar-height));
        max-height: calc(100dvh - var(--kds-navbar-height));
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kds-topbar-title {
        font-size: 0.92rem;
    }

    .kds-count {
        font-size: 0.64rem;
        padding: 0.15rem 0.35rem;
    }
}

/* Floor / waiter table grid */
.floor-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 0.75rem;
}

.floor-table-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    padding: 0.9rem 0.65rem;
    text-align: center;
    background: var(--tribespos-surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floor-table-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--tribespos-shadow-md);
    color: inherit;
}

.floor-table-tile.is-available {
    border-color: #2e7d32;
    background: #e8f5e9;
}

.floor-table-tile.is-occupied {
    border-color: #f9a825;
    background: #fff8e1;
}

.floor-table-tile.is-reserved {
    border-color: #0277bd;
    background: #e1f5fe;
}

.floor-table-tile.is-cleaning {
    border-color: #78909c;
    background: #eceff1;
}

.floor-table-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.floor-table-card {
    border: 2px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    padding: 1rem;
    background: var(--tribespos-surface);
    display: flex;
    flex-direction: column;
    min-height: 168px;
}

.floor-table-card-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.floor-table-card-title {
    line-height: 1.2;
}

.floor-table-status-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.floor-table-status-badge--available {
    background: #2e7d32;
    color: #fff;
}

.floor-table-status-badge--occupied {
    background: #e65100;
    color: #fff;
}

.floor-table-status-badge--reserved {
    background: #0277bd;
    color: #fff;
}

.floor-table-status-badge--cleaning {
    background: #546e7a;
    color: #fff;
}

.floor-table-card.is-available {
    border-color: #2e7d32;
    background: #e8f5e9;
}

.floor-table-card.is-occupied {
    border-color: #f9a825;
    background: #fff8e1;
}

.floor-table-card.is-reserved {
    border-color: #0277bd;
    background: #e1f5fe;
}

.floor-table-card.is-cleaning {
    border-color: #78909c;
    background: #eceff1;
}

.floor-table-card-actions {
    margin-top: auto;
}

.pos-table-banner {
    border-left: 4px solid #00695c;
    background: #e0f2f1;
}

/* Warehouse queue */
.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.queue-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius);
    margin-bottom: 0.35rem;
    background: var(--tribespos-surface);
    font-size: 0.8125rem;
}

/* Alerts */
.tribespos-shell .alert {
    border: none;
    border-radius: var(--tribespos-radius);
    box-shadow: var(--tribespos-shadow-sm);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 1.25rem 0.75rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    opacity: 0.5;
}

/* POS receipt — compact thermal-style slip */
.receipt-print-page {
    background: #eef2f6;
    min-height: 100vh;
    color: #111;
    font-family: Inter, system-ui, sans-serif;
}

.receipt-print-shell {
    width: min(100%, 320px);
    max-width: 320px;
    margin: 1.5rem auto 0;
    padding: 0 0.75rem 1.5rem;
}

.receipt-card {
    background: #fff;
    border: 1px solid #c5d0db;
    border-radius: 0.4rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    width: 100%;
    height: fit-content;
}

.receipt-slip {
    padding: 1.15rem 0.95rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.receipt-brand {
    text-align: center;
}

.tribes-logo--receipt {
    width: 56px;
    height: 56px;
    margin: 0.15rem auto 0.45rem;
    display: block;
}

.receipt-brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.receipt-brand-channel,
.receipt-meta {
    font-size: 0.72rem;
    color: #64748b;
}

.receipt-meta--strong {
    color: #111;
    font-weight: 700;
    margin-top: 0.25rem;
}

.receipt-rule {
    border: 0;
    border-top: 1px dashed #cbd5e1;
    margin: 0.45rem 0;
    opacity: 1;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.2rem;
}

.receipt-row-label {
    flex: 1 1 auto;
    min-width: 0;
}

.receipt-row-value {
    flex-shrink: 0;
    white-space: nowrap;
}

.receipt-row--total {
    font-size: 0.92rem;
    margin-top: 0.15rem;
}

.receipt-note {
    font-size: 0.72rem;
    margin: 0;
}

.receipt-thanks {
    text-align: center;
    color: #64748b;
    font-size: 0.72rem;
    margin: 0.55rem 0 0;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.receipt-actions-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

@media print {
    .no-print {
        display: none !important;
    }

    html,
    body.receipt-print-page {
        background: #fff !important;
        min-height: auto;
        margin: 0;
        padding: 0;
    }

    .receipt-print-shell {
        width: 80mm;
        max-width: 80mm;
        margin: 5mm auto 0 !important;
        padding: 0;
    }

    .receipt-card {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        border-radius: 0.2rem;
    }

    .receipt-slip {
        padding: 3mm 2.5mm 2mm;
        font-size: 10pt;
        line-height: 1.3;
    }

    .receipt-brand-name {
        font-size: 11pt;
    }

    .receipt-brand-channel,
    .receipt-meta,
    .receipt-note,
    .receipt-thanks {
        font-size: 9pt;
    }

    .receipt-row--total {
        font-size: 11pt;
    }

    .tribes-logo--receipt {
        width: 14mm;
        height: 14mm;
        margin: 1mm auto 2.5mm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: 80mm auto;
        margin: 8mm 4mm 4mm;
    }
}

/* Executive dashboards — MD observation vs GGM operations */
.executive-dashboard .main-content {
    max-width: 1280px;
}

.executive-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.executive-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.executive-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
}

.executive-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.executive-kpi {
    background: var(--tribespos-surface);
    border: 1px solid var(--tribespos-border);
    border-radius: 0.5rem;
    padding: 0.75rem 0.85rem;
    min-height: 100%;
}

.executive-kpi--primary {
    background: linear-gradient(135deg, var(--tribes-brand-dark) 0%, var(--tribes-brand) 100%);
    border-color: transparent;
    color: #fff;
}

.executive-kpi--primary .executive-kpi-label,
.executive-kpi--primary .executive-kpi-hint {
    color: rgba(255, 255, 255, 0.78);
}

.executive-kpi--good {
    border-color: #2e7d32;
    background: #f1f8f2;
}

.executive-kpi--critical {
    border-color: #c62828;
    background: #fff5f5;
}

.executive-kpi--info {
    border-color: #0277bd;
    background: #f0f8ff;
}

.executive-kpi-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.executive-kpi-value {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0.2rem 0;
}

.executive-kpi-hint {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
}

.executive-risk-card {
    position: relative;
    background: var(--tribespos-surface);
    border: 1px solid var(--tribespos-border);
    border-radius: 0.45rem;
    padding: 0.65rem 0.7rem 1.6rem;
    min-height: 100%;
}

.executive-risk-card.status-critical {
    border-color: #ef9a9a;
    background: #fff5f5;
}

.executive-risk-card.status-warning {
    border-color: #ffcc80;
    background: #fffaf0;
}

.executive-risk-card.status-good {
    border-color: #a5d6a7;
    background: #f7fcf7;
}

.executive-risk-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}

.executive-risk-value {
    display: block;
    font-size: 1rem;
    margin: 0.15rem 0;
}

.executive-risk-hint {
    display: block;
    font-size: 0.62rem;
    color: #94a3b8;
    line-height: 1.25;
}

.executive-risk-card .status-pill {
    position: absolute;
    right: 0.5rem;
    bottom: 0.45rem;
}

.executive-checklist li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.executive-checklist li:last-child {
    border-bottom: 0;
}

.executive-ops-pulse {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.45rem;
}

.executive-ops-chip {
    background: var(--tribespos-surface);
    border: 1px solid var(--tribespos-border);
    border-radius: 0.4rem;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.executive-ops-chip span {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.03em;
}

.executive-ops-chip strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-top: 0.1rem;
    color: var(--tribes-brand-darker);
}

.executive-ops-chip--kitchen {
    border-color: #ffcc80;
    background: #fffaf0;
}

.executive-ops-chip--barista {
    border-color: #90caf9;
    background: #f3f9ff;
}

.executive-ops-chip--ready {
    border-color: #a5d6a7;
    background: #f1f8f2;
}


/* Modifier groups — compact tiled layout */
.modifier-groups-page {
    max-width: 1200px;
}

.modifier-groups-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.modifier-groups-eyebrow {
    margin: 0 0 0.1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.modifier-groups-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
}

.modifier-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.65rem;
}

.modifier-group-tile {
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.modifier-group-tile .card-body {
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
}

.modifier-group-tile__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.modifier-group-tile__title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.modifier-group-tile__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
    line-height: 1.2;
}

.modifier-group-tile__badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15em 0.45em;
}

.modifier-group-tile__edit {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
}

.modifier-group-tile__rule {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
}

.modifier-group-tile__options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.modifier-group-tile__options li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 0.18rem 0.35rem;
    background: #f8fafc;
    border-radius: 0.25rem;
}

.modifier-group-tile__option {
    color: #334155;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modifier-group-tile__price {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.modifier-group-tile__empty {
    font-size: 0.75rem;
    color: #94a3b8;
    background: transparent !important;
    padding-left: 0 !important;
}

.modifier-group-tile__foot {
    margin-top: 0.15rem;
}

.modifier-group-tile__foot .btn {
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
}

.modifier-groups-empty {
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 575.98px) {
    .modifier-groups-header {
        flex-direction: column;
        align-items: stretch;
    }

    .modifier-groups-grid {
        grid-template-columns: 1fr;
    }
}

/* IRC Tax dashboard — /tax/ */
.tax-dashboard .main-content {
    max-width: 1200px;
}

.tax-page-header {
    margin-bottom: 1rem;
}

.tax-page-actions {
    margin-top: -0.25rem;
}

.tax-stat-card .card-body {
    position: relative;
    padding-left: 2.75rem;
}

.tax-stat-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 94, 32, 0.1);
    color: var(--tribes-brand-dark);
    font-size: 0.85rem;
}

.tax-stat-card--alert {
    border-left: 3px solid #c62828;
}

.tax-stat-card--alert .tax-stat-icon {
    background: #ffebee;
    color: #c62828;
}

.tax-module-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: var(--tribespos-radius-lg);
    border: 1px solid var(--tribespos-border);
    background: var(--tribespos-surface);
    box-shadow: var(--tribespos-shadow-sm);
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tax-module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tribespos-shadow-md);
    color: inherit;
}

.tax-module-card--gst {
    border-color: #90caf9;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
}

.tax-module-card--swt {
    border-color: #ffcc80;
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
}

.tax-module-card--cit {
    border-color: #ce93d8;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
}

.tax-module-card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--tribes-brand-darker);
}

.tax-module-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.tax-module-card-text {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.tax-module-card-arrow {
    margin-left: auto;
    color: #94a3b8;
}

.tax-deadline-list .tax-deadline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
}

.tax-deadline-item--critical {
    background: #fff5f5;
}

.tax-deadline-type {
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 0.25rem;
    border-radius: 0.35rem;
}

.tax-deadline-type--blue {
    background: #e3f2fd;
    color: #1565c0;
}

.tax-deadline-type--orange {
    background: #fff3e0;
    color: #e65100;
}

.tax-deadline-type--red,
.tax-deadline-type--purple {
    background: #f3e5f5;
    color: #6a1b9a;
}

.tax-deadline-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tax-deadline-body strong {
    font-size: 0.88rem;
}

.tax-deadline-body .text-muted {
    font-size: 0.75rem;
}

.tax-status-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: capitalize;
}

.tax-status-badge--filed,
.tax-status-badge--paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.tax-status-badge--finalised,
.tax-status-badge--approved {
    background: #e3f2fd;
    color: #1565c0;
}

.tax-status-badge--overdue {
    background: #ffebee;
    color: #c62828;
}

.tax-status-badge--draft {
    background: #f1f5f9;
    color: #475569;
}

.tax-row-link {
    color: var(--tribes-brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.tax-row-link:hover {
    text-decoration: underline;
}

.tax-data-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.tax-summary-dl .tax-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--tribespos-border);
}

.tax-summary-dl .tax-summary-row:last-child {
    border-bottom: 0;
}

.tax-summary-dl dt {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.tax-summary-dl dd {
    margin: 0;
    text-align: right;
    font-size: 0.88rem;
}

.tax-summary-row--total {
    margin-top: 0.25rem;
    padding-top: 0.65rem;
    border-top: 2px solid var(--tribes-brand);
    border-bottom: 0;
}

.tax-summary-row--total dt,
.tax-summary-row--total dd {
    color: var(--tribes-brand-darker);
    font-weight: 600;
}

.tax-summary-card .card-header,
.tax-generate-card .card-header {
    font-weight: 600;
}

.tax-year-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--tribespos-surface);
    border: 1px solid var(--tribespos-border);
    border-radius: 999px;
    padding: 0.2rem;
}

.tax-year-nav-label {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 0.5rem;
    min-width: 4.5rem;
    text-align: center;
}

.tax-generate-card {
    border: 1px solid var(--tribespos-border);
    box-shadow: var(--tribespos-shadow-md);
}

.tax-empty-card {
    border: 1px dashed var(--tribespos-border);
    background: #fafafa;
}

/* IT SuperAdmin system dashboard */
.system-dashboard .main-content {
    max-width: 1200px;
}

.system-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

/* Filter chips (branch pickers, category pickers).
   Bootstrap's .btn-sm is still tall enough to dominate a filter row once the
   chips wrap over several lines, so tighten the vertical padding and shrink the
   inline icons while keeping the tap target usable on a tablet. */
.filter-chip {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.35;
    border-radius: 999px;
    white-space: nowrap;
}

.filter-chip i,
.filter-chip .material-icons {
    font-size: 0.85em;
    line-height: 1;
}

.branch-filter-label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.branch-filter-single .material-icons {
    font-size: 0.95rem;
}

/* Captured output from a System Tools run — terminal-style, scrolls on its own. */
.system-tool-output {
    max-height: 22rem;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.system-tool-output code {
    color: inherit;
    background: none;
}

.system-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.system-action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    background: #fff;
    box-shadow: var(--tribespos-shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.system-action-card:hover,
.system-action-card:focus {
    border-color: rgba(0, 105, 92, 0.35);
    box-shadow: var(--tribespos-shadow-md);
    color: inherit;
    transform: translateY(-1px);
}

.system-action-card--featured {
    border-color: rgba(0, 105, 92, 0.35);
    background: linear-gradient(135deg, #f1f8f6 0%, #fff 100%);
}

.system-action-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0f2f1;
    color: var(--tribes-brand);
    font-size: 1rem;
}

.system-action-card--featured .system-action-card__icon {
    background: var(--tribes-brand);
    color: #fff;
}

.system-action-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.system-action-card__body strong {
    font-size: 0.9rem;
    color: var(--tribes-brand-darker);
}

.system-action-card__body small {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.system-action-card__chevron {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.system-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.system-health-card {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    background: #fff;
    box-shadow: var(--tribespos-shadow-sm);
    padding: 0.75rem 0.85rem;
    border-top: 3px solid #cbd5e1;
}

.system-health-card--good { border-top-color: var(--tribespos-success); }
.system-health-card--warning { border-top-color: #fb8c00; }
.system-health-card--critical { border-top-color: var(--tribespos-danger); }

.system-health-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.system-health-card__icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
}

.system-health-card--good .system-health-card__icon {
    background: #e8f5e9;
    color: var(--tribespos-success);
}

.system-health-card--warning .system-health-card__icon {
    background: #fff8e1;
    color: #e65100;
}

.system-health-card--critical .system-health-card__icon {
    background: #ffebee;
    color: var(--tribespos-danger);
}

.system-health-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.1rem;
}

.system-health-card__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tribes-brand-darker);
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.system-health-card__detail {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.35;
}

.system-dashboard .stat-tile--compact {
    border: 1px solid var(--tribespos-border);
    box-shadow: var(--tribespos-shadow-sm);
}

.system-code {
    font-size: 0.75rem;
    color: var(--tribes-brand-darker);
    background: #f8fafc;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
}

.system-dashboard .card-header .h6 {
    font-weight: 700;
    color: var(--tribes-brand-darker);
}

.system-dashboard .table thead th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

.staff-pin {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: var(--tribes-brand-darker);
    border: 1px solid var(--tribespos-border);
}

.staff-list-page .main-content {
    max-width: none;
}

.staff-list-card {
    overflow: hidden;
}

.staff-list-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.78rem;
}

.staff-list-table th,
.staff-list-table td {
    padding: 0.35rem 0.45rem;
    vertical-align: middle;
}

.staff-list-table thead th {
    white-space: nowrap;
}

.staff-list-table__name {
    width: 18%;
    min-width: 0;
    font-weight: 600;
    color: var(--tribes-brand-darker);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-list-table__username {
    width: 16%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-list-table__username code {
    font-size: 0.68rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.05rem 0.25rem;
    border-radius: 0.2rem;
}

.staff-list-table__branch {
    width: 24%;
    min-width: 0;
}

.staff-list-table th:nth-child(3),
.staff-list-table td:nth-child(3) {
    width: 15%;
    min-width: 0;
}

.staff-list-table__pin {
    width: 5.5rem;
    white-space: nowrap;
}

.staff-list-table__action {
    width: 2.25rem;
    padding-right: 0.35rem !important;
}

.staff-list-table__inactive {
    font-size: 0.58rem;
    padding: 0.1rem 0.25rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.staff-list-table__branch span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-role-badge {
    display: inline-block;
    max-width: 100%;
    padding: 0.12rem 0.35rem;
    border-radius: 0.3rem;
    background: #f8fafc;
    border: 1px solid var(--tribespos-border);
    font-size: 0.65rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.staff-pin--compact {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.3rem;
}

.staff-list-table__edit {
    padding: 0.15rem 0.35rem;
    line-height: 1;
}

.staff-list-table__edit i {
    font-size: 0.72rem;
}

@media (max-width: 575.98px) {
    .system-actions-grid {
        grid-template-columns: 1fr;
    }

    .system-health-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* General Manager hub — /core/gm/ */
.gm-hub .main-content {
    max-width: 1320px;
}

.gm-hub--coffee {
    --gm-accent: var(--tribes-brand);
    --gm-accent-dark: var(--tribes-brand-dark);
    --gm-accent-soft: #e8f5e9;
}

.gm-hub--suppliers {
    --gm-accent: #1565c0;
    --gm-accent-dark: #0d47a1;
    --gm-accent-soft: #e3f2fd;
}

.gm-hub--paradise {
    --gm-accent: #7b1fa2;
    --gm-accent-dark: #4a148c;
    --gm-accent-soft: #f3e5f5;
}

.gm-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--tribespos-radius-lg);
    border: 1px solid var(--tribespos-border);
    background: linear-gradient(135deg, #fff 0%, var(--gm-accent-soft) 100%);
    border-left: 4px solid var(--gm-accent);
    box-shadow: var(--tribespos-shadow-sm);
}

.gm-hero-main {
    flex: 1 1 14rem;
    min-width: 0;
}

.gm-hero-actions {
    flex-shrink: 0;
}

.gm-hero-context {
    margin-top: -0.5rem;
}

.gm-hub .mb-3.d-flex.flex-wrap.align-items-center.gap-2 {
    padding: 0.35rem 0.5rem;
    background: #f8fafc;
    border-radius: var(--tribespos-radius);
    border: 1px solid var(--tribespos-border);
}

.gm-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.35rem 0.15rem;
}

.gm-stat-card {
    border: 1px solid var(--tribespos-border);
    box-shadow: var(--tribespos-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tribespos-shadow-md);
}

.gm-stat-card--hero {
    border-color: transparent;
}

.gm-stat-card--hero.module-card-coffee {
    background: linear-gradient(135deg, var(--tribes-brand-dark) 0%, var(--tribes-brand) 100%);
}

.gm-stat-card--hero.module-card-suppliers {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.gm-stat-card--hero.module-card-tailoring {
    background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
}

.gm-stat-card--hero .card-body {
    background: transparent;
}

.gm-stat-card--alert {
    border-color: #ef9a9a;
    background: #fff8f8;
}

.gm-stat-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: var(--gm-accent-soft);
    color: var(--gm-accent-dark);
    font-size: 0.85rem;
}

.gm-stat-icon--hero {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.gm-section-card {
    border: 1px solid var(--tribespos-border);
    border-radius: var(--tribespos-radius-lg);
    box-shadow: var(--tribespos-shadow-sm);
    overflow: hidden;
}

.gm-section-card__header {
    background: #f8fafc;
    border-bottom: 1px solid var(--tribespos-border);
    font-weight: 600;
}

.gm-section-card__header .fa-solid {
    color: var(--gm-accent-dark);
    opacity: 0.85;
}

.gm-metric-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gm-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--tribespos-border);
}

.gm-metric-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gm-metric-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.gm-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.gm-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-radius: var(--tribespos-radius-lg);
    border: 1px solid var(--tribespos-border);
    background: var(--gm-accent-soft);
}

.gm-callout__icon {
    color: var(--gm-accent-dark);
    margin-top: 0.15rem;
}

.gm-callout p {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.2rem;
}

.gm-pipeline-track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gm-pipeline-step {
    flex: 1 1 6rem;
    text-align: center;
    padding: 0.55rem 0.4rem;
    border-radius: var(--tribespos-radius);
    background: #f1f5f9;
    border: 1px solid var(--tribespos-border);
}

.gm-pipeline-step--active {
    background: var(--gm-accent-soft);
    border-color: var(--gm-accent);
}

.gm-pipeline-step__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tribes-brand-darker);
}

.gm-pipeline-step__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-top: 0.15rem;
}

.gm-client-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: var(--tribespos-radius);
    border: 1px solid var(--tribespos-border);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gm-client-tile:hover {
    border-color: var(--gm-accent);
    box-shadow: var(--tribespos-shadow-sm);
}

.gm-client-tile__icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: var(--gm-accent-soft);
    color: var(--gm-accent-dark);
}

.gm-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    border-bottom-width: 1px;
}

.gm-activity-list .list-group-item,
.gm-activity-list li {
    font-size: 0.875rem;
}

.gm-empty,
.gm-empty-cell {
    color: #94a3b8 !important;
    font-style: italic;
}

.gm-empty-cell {
    text-align: center;
    padding: 1.5rem !important;
}

.gm-hub .dashboard-chart-card .chart-container {
    height: 240px;
    max-height: 240px;
}

