@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Hide Alpine x-cloak elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    --navy: #0D1B2A;
    --navy-mid: #1B2D44;
    --navy-light: #243B55;
    --accent: #1A6EFF;
    --accent-dark: #1458CC;
    --teal: #0694A2;
    --bg: #F0F4F8;
    --bg-card: #FFFFFF;
    --border: #DEE6EF;
    --text: #1A2535;
    --text-muted: #6B7A8D;
    --text-light: #A3AFBF;

    /* Status */
    --success: #059669;
    --success-bg: #ECFDF5;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --info: #2563EB;
    --info-bg: #EFF6FF;

    --sidebar-w: 260px;
    --topnav-h: 64px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .10);
    --transition: all .18s ease;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-brand-text span {
    color: rgba(255, 255, 255, .4);
    font-size: 11px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    padding: 4px 12px;
    display: block;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 14px;
    margin: 1px 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.sidebar-item:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.sidebar-item.active {
    background: rgba(74, 144, 217, 0.15);
    color: #7eb8f7;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: #4a90d9;
    border-radius: 0 3px 3px 0;
}

.sidebar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}

.sidebar-item.active svg {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-user-info span {
    color: rgba(255, 255, 255, .4);
    font-size: 11px;
}

/* ─── Main Content ───────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Top Nav ────────────────────────────────────────────────── */
.topnav {
    height: var(--topnav-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.topnav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topnav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.topnav-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topnav-badge {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.topnav-badge:hover {
    background: var(--border);
    color: var(--text);
}

.topnav-badge .dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* ─── Page Content ───────────────────────────────────────────── */
.page-body {
    padding: 28px;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.page-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.card-body {
    padding: 20px;
}

/* ─── Stat Cards ─────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.amber {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.red {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-sub {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ─── Charts ─────────────────────────────────────────────────── */
.chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

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

.chart-container {
    position: relative;
    height: 260px;
    padding: 8px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    text-decoration: none;
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    opacity: .9;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    opacity: .9;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--info-bg);
    text-decoration: none;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
}

.btn-icon {
    padding: 6px;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

.badge-muted {
    background: #F1F5F9;
    color: var(--text-muted);
}

/* ─── Tables ─────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead th {
    background: #F8FAFB;
    border-bottom: 1px solid var(--border);
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.data-table thead th.sort-asc::after {
    content: ' ↑';
    color: var(--accent);
}

.data-table thead th.sort-desc::after {
    content: ' ↓';
    color: var(--accent);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
    background-color: #F1F5F9;
}

.data-table tbody tr:hover {
    background: #E2E8F0;
}

.data-table td {
    padding: 12px 14px;
    color: var(--text);
    vertical-align: middle;
}

.data-table td.muted {
    color: var(--text-muted);
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}

/* ─── Qty Input ──────────────────────────────────────────────── */
.qty-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
    transition: var(--transition);
}

.qty-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 110, 255, .12);
}

.qty-input-wrap.disabled {
    background: #F8FAFB;
}

.qty-btn {
    background: #F1F5F9;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.qty-btn:hover:not(:disabled) {
    background: #E2E8F0;
    color: var(--text);
}

.qty-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.qty-input-wrap .form-control {
    border: none;
    border-radius: 0;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
    box-shadow: none !important;
}

.qty-input-wrap .form-control::-webkit-outer-spin-button,
.qty-input-wrap .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-wrap .form-control[type=number] {
    -moz-appearance: textfield;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 110, 255, .12);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control[readonly] {
    background: #F8FAFB;
    color: var(--text-muted);
    cursor: default;
}

select.form-control {
    cursor: pointer;
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 11.5px;
    color: var(--danger);
    margin-top: 4px;
}

/* ─── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    width: auto;
    min-width: 140px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search-input-wrap svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.search-input-wrap .form-control {
    padding-left: 34px;
}

/* ─── Tabs ───────────────────────────────────────────────────── */
.tab-list {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    gap: 0;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
    background-color: rgba(26, 110, 255, 0.08);
    border-radius: 6px 6px 0 0;
}

/* ─── Draft Table (Incoming/Outgoing) ────────────────────────── */
.draft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.draft-table th {
    background: #F8FAFB;
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.draft-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.draft-table tbody tr:nth-child(even) {
    background-color: #F1F5F9;
}

.draft-table tbody tr:hover {
    background: #E2E8F0;
}

.draft-table .form-control {
    padding: 8px 10px;
    font-size: 13.5px;
}

.draft-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ─── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
    animation: modal-in .18s ease;
}

@keyframes modal-in {
    from {
        transform: scale(.96) translateY(-8px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ─── Alert / Flash ──────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #BBF7D0;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #FECACA;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid #FDE68A;
}

/* ─── Autocomplete ───────────────────────────────────────────── */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 300;
    max-height: 240px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.autocomplete-item:hover {
    background: #F0F4F8;
}

.autocomplete-item .code {
    font-weight: 600;
    color: var(--text);
}

.autocomplete-item .name {
    color: var(--text-muted);
    font-size: 12px;
}

.autocomplete-item .stock {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-wrap .info {
    font-size: 12.5px;
    color: var(--text-muted);
}

nav.pagination {
    display: flex;
    gap: 4px;
}

/* ─── Sidebar Collapsed State ───────────────────────────────── */
.sidebar-collapsed {
    --sidebar-w: 64px;
}

.sidebar-collapsed .sidebar-brand-text,
.sidebar-collapsed .sidebar-section-label,
.sidebar-collapsed .sidebar-item span,
.sidebar-collapsed .sidebar-user-info {
    display: none;
}

.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 20px 0;
}

.sidebar-collapsed .sidebar-item {
    justify-content: center;
    padding: 12px;
    border-left: none;
    border-right: 3px solid transparent;
}

.sidebar-collapsed .sidebar-item.active {
    border-left: none;
    border-right-color: var(--accent);
}

.sidebar-collapsed .sidebar-footer {
    display: flex;
    justify-content: center;
}

.sidebar-collapsed .sidebar-user {
    justify-content: center;
}

.sidebar-collapsed .main-content {
    margin-left: 64px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    :root {
        --sidebar-w: 64px;
    }

    .sidebar-brand-text,
    .sidebar-section-label,
    .sidebar-item span,
    .sidebar-user-info {
        display: none;
    }

    .sidebar-brand {
        justify-content: center;
        padding: 20px 0;
    }

    .sidebar-item {
        justify-content: center;
        padding: 12px;
        border-left: none;
        border-right: 3px solid transparent;
    }

    .sidebar-item.active {
        border-left: none;
        border-right-color: var(--accent);
    }

    .sidebar-footer {
        display: flex;
        justify-content: center;
    }

    .sidebar-user {
        justify-content: center;
    }

    .main-content {
        margin-left: 64px;
    }

    .page-body {
        padding: 16px;
    }
}

/* ─── Auth Layout ────────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.auth-logo-text strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.auth-logo-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ─── Print Surat ──────────────────────────────────────────────────── */
@media print {

    .sidebar,
    .topnav,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-body {
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    body {
        background: white !important;
    }
}

/* ─── Utilities ──────────────────────────────────────────────── */
.text-right {
    text-align: right;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-small {
    font-size: 12px;
}

.fw-600 {
    font-weight: 600;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.mt-4 {
    margin-top: 4px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.w-100 {
    width: 100%;
}

/* Remove Tailwind/Breeze default styles from Breeze login page */
.min-h-screen {
    min-height: auto;
}

/* Pagination Styling (Bootstrap Paginator) */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 4px;
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--bg);
    border-color: var(--text-light);
}

.page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: #f8fafc;
    color: var(--text-light);
    cursor: not-allowed;
}