[x-cloak] {
    display: none !important;
}

body {
    background-color: #f8f9fa;
}

.admin-body {
    font-size: 0.8125rem;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4,
.admin-body h5,
.admin-body h6 {
    font-size: revert;
}

.admin-body h2 {
    font-size: 1.1rem;
}

/* Bootstrap sets these in absolute rem units, so they don't inherit
   .admin-body's smaller base - override explicitly to match the nav. */
.admin-body .form-control,
.admin-body .form-select,
.admin-body .form-check-label,
.admin-body .form-check-input,
.admin-body .input-group-text,
.admin-body .btn,
.admin-body label,
.admin-body select,
.admin-body textarea,
.admin-body .table,
.admin-body .badge,
.admin-body .dropdown-menu,
.admin-body .dropdown-item {
    font-size: 0.8125rem;
}

.stat-card {
    padding: 1.1rem 1.25rem 0;
    color: #fff;
}

.stat-card .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    line-height: 1.25;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    opacity: 0.85;
    display: block;
}

.stat-card .stat-footer {
    margin-top: 0.9rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.78rem;
    opacity: 0.9;
}

.stat-card .stat-footer a {
    color: inherit;
    text-decoration: none;
}

.stat-card .stat-footer a:hover {
    text-decoration: underline;
}

.stat-card--gold {
    background: linear-gradient(135deg, #f6d949 0%, #ddb324 100%);
    color: #2a2211;
}

.stat-card--gold .stat-icon {
    background: rgba(42, 34, 17, 0.12);
}

.stat-card--gold .stat-footer {
    border-top-color: rgba(42, 34, 17, 0.18);
}

.stat-card--charcoal {
    background: linear-gradient(135deg, #363c3a 0%, #1c2120 100%);
}

.stat-card--terracotta {
    background: linear-gradient(135deg, #e8896a 0%, #cf6541 100%);
}

.stat-card--emerald {
    background: linear-gradient(135deg, #3fae7f 0%, #1f8c60 100%);
}

.stat-card--rose {
    background: linear-gradient(135deg, #d1667e 0%, #b3455f 100%);
}

.stat-card--teal {
    background: linear-gradient(135deg, #2f9c9c 0%, #1c7d7d 100%);
}

/* Buttons: square corners, solid over outline, admin area only (POS screen is untouched) */
.admin-body .btn {
    border-radius: 0;
}

.admin-body .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.admin-body .btn-outline-primary:hover,
.admin-body .btn-outline-primary:active {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

.admin-body .btn-outline-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.admin-body .btn-outline-danger:hover,
.admin-body .btn-outline-danger:active {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

.admin-body .btn-outline-secondary {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #41474d;
}

.admin-body .btn-outline-secondary:hover,
.admin-body .btn-outline-secondary:active {
    background-color: #dee2e6;
    border-color: #dee2e6;
    color: #41474d;
}

/* DataTables: smaller text + tighter cell padding, matching table-sm + small */
.admin-body .table-responsive {
    padding: 0.5rem;
}

.admin-body .table-responsive table {
    font-size: 0.8125rem;
}

.admin-body .table-responsive table > :not(caption) > * > * {
    padding: 0.3rem 0.5rem;
}

/* Nav pills (Settings tabs, etc.): brand colors instead of default Bootstrap blue */
.admin-body .nav-pills .nav-link {
    border-radius: 0;
    color: #41474d;
    font-weight: 500;
    padding: 0.55rem 1rem;
    transition: background-color .15s ease-in-out, color .15s ease-in-out;
}

.admin-body .nav-pills .nav-link:hover {
    background-color: #f1efe9;
    color: #1c2120;
}

.admin-body .nav-pills .nav-link.active {
    background-color: #1c2120;
    color: #fff;
    box-shadow: inset 0 -3px 0 #ddb324;
}

/* Modals: square corners, tighter padding, smaller text (admin area only) */
.admin-body .app-modal {
    border-radius: 0 !important;
    font-size: 0.8125rem;
}

.admin-body .app-modal .p-4 {
    padding: 0.5rem !important;
}

.app-modal > .p-4,
.admin-body .app-modal > .p-4 {
    padding: 1rem !important;
}

.order-fulfil-qty {
    min-width: 8.5rem;
}

.order-fulfil-staff {
    min-width: 11rem;
}

.searchable-select-toggle {
    min-width: 14rem;
    max-width: 18rem;
}

.searchable-select-options {
    max-height: 16rem;
    overflow-y: auto;
}

.narrow-panel {
    max-width: 700px;
}

.internal-qty-col {
    width: 120px;
}

.return-qty-cell {
    max-width: 140px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Same colour as logo-dark-bg.png's own background so the logo blends in. */
.guest-page {
    background: #1c2120;
}

.guest-logo {
    max-height: 112px;
    width: auto;
    max-width: 100%;
}

.guest-card {
    max-width: 420px;
    background: #fff;
    border-top: 4px solid #ddb324;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
}

.guest-body .btn {
    border-radius: 0;
}

.guest-body .btn-primary {
    --bs-btn-color: #2a2211;
    --bs-btn-bg: #ddb324;
    --bs-btn-border-color: #ddb324;
    --bs-btn-hover-color: #2a2211;
    --bs-btn-hover-bg: #c9a11d;
    --bs-btn-hover-border-color: #c9a11d;
    --bs-btn-active-color: #2a2211;
    --bs-btn-active-bg: #c9a11d;
    --bs-btn-active-border-color: #c9a11d;
    --bs-btn-focus-shadow-rgb: 221, 179, 36;
    font-weight: 600;
}

.guest-body .form-label {
    margin-bottom: .15rem;
}

.guest-body .form-control:focus {
    border-color: #ddb324;
    box-shadow: 0 0 0 .2rem rgba(221, 179, 36, .25);
}

.guest-body .form-check-input:checked {
    background-color: #ddb324;
    border-color: #ddb324;
}

.guest-card,
.guest-card .text-secondary,
.guest-card a {
    color: #000 !important;
}

.guest-btn {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-border-width: 0;
    font-weight: 500;
}

.guest-btn--charcoal {
    --bs-btn-bg: #363c3a;
    --bs-btn-hover-bg: #1c2120;
    --bs-btn-active-bg: #1c2120;
}

.guest-btn--terracotta {
    --bs-btn-bg: #cf6541;
    --bs-btn-hover-bg: #b8552f;
    --bs-btn-active-bg: #b8552f;
}

.guest-btn--emerald {
    --bs-btn-bg: #1f8c60;
    --bs-btn-hover-bg: #187550;
    --bs-btn-active-bg: #187550;
}

.settings-logo-preview {
    max-height: 80px;
    max-width: 100%;
}

.sidebar {
    width: 250px;
    background-color: #1c2120 !important;
    transform: translateX(-100%);
    transition: transform .2s ease-in-out;
}

.sidebar nav a.text-white-50,
.sidebar nav button.text-white-50 {
    color: #fff !important;
}

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

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #212529;
    color: #fff;
    font-weight: 600;
}

.pl-total {
    border-left: 2px solid #dee2e6;
    font-weight: 600;
}

.pl-single {
    max-width: 520px;
}

.dashboard-branch-filter .form-select {
    min-width: 180px;
}

.item-branches {
    max-width: 520px;
}
