/* Source: app/Views/admin/layout/main.php */
/* 1. Import a premium geometric sans-serif font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Force full width across all admin pages */
html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#app {
    width: 100% !important;
    min-height: 100vh;
}

#main {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0; /* Prevents flex child overflow */
}

.content-wrapper {
    width: 100% !important;
}

button, .btn {
    width: auto;
}

/* Allow explicit full-width buttons when intended */
button.w-100, .btn.w-100 {
    width: 100% !important;
}

.form-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-height: auto !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.form-check .form-check-input {
    float: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check .form-check-label {
    margin-bottom: 0 !important;
    line-height: 1 !important;
    cursor: pointer;
    user-select: none;
}
/* 2. Apply font and soften the background */
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: #f4f7f9 !important; 
    color: #475569 !important;
}

/* 3. Upgrade typography weights and spacing */
h1, h2, h3, h4, h5, h6, .card-title, .page-title {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #1e293b !important; /* Deep slate instead of pure black */
}

/* 4. Sleeker Cards */
.card {
    border: none !important;
    border-radius: 1.25rem !important; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important; 
}

/* 5. Ruthless Whitespace (More breathing room) */
.card-body {
    padding: 1.25rem !important;
}

.dashboard-kpi-card .card-body,
.order-table-card .card-body,
.order-status-card .card-body,
.product-overview-card,
.product-section-card,
.customer-section-card,
.customer-form-section,
.customer-form-overview,
.category-card,
.swatch-card,
.material-card {
    padding: 1rem !important;
}

/* 6. Refine Buttons & Badges */
.btn {
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

.badge {
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
    padding: 0.4em 0.8em !important;
}

/* Optional: Make the sidebar fit the new sleek theme (if Mazer's is too dark/boxy) */
#sidebar {
    box-shadow: 4px 0 24px rgba(0,0,0,0.02) !important;
}
        :root {
            --mazer-primary: #435ebe;
            --mazer-primary-soft: rgba(67, 94, 190, 0.12);
            --mazer-sidebar: #ffffff;
            --mazer-body: #f2f7ff;
            --mazer-text: #25396f;
            --mazer-muted: #7c8db5;
            --mazer-border: #dce7f1;
        }

        body {
            background: var(--mazer-body);
            color: var(--mazer-text);
            font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        #app {
            min-height: 100vh;
            width: 100%;
            overflow-x: hidden;
        }

        #sidebar {
            width: 225px;
            min-width: 225px;
            flex: 0 0 225px;
            background: var(--mazer-sidebar);
            border-right: 1px solid var(--mazer-border);
            box-shadow: 0 0 30px rgba(15, 34, 58, 0.05);
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
        }

        #sidebar::-webkit-scrollbar {
            width: 5px;
        }

        #sidebar::-webkit-scrollbar-thumb {
            background-color: rgba(0, 0, 0, 0.1);
            border-radius: 5px;
        }

        #sidebar .sidebar-wrapper {
            min-height: 100vh;
            padding: 0.85rem 0.7rem;
        }

        .sidebar-header {
            padding: 0 0.55rem 0.7rem;
        }

        .sidebar-title {
            font-size: 1.02rem;
            font-weight: 700;
            margin: 0;
            color: var(--mazer-text);
        }

        .sidebar-subtitle {
            font-size: 0.72rem;
            color: var(--mazer-muted);
        }

        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-item {
            margin-bottom: 0.18rem;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            border-radius: 0.5rem;
            color: #607080;
            padding: 0.5rem 0.65rem;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.84rem;
            transition: all 0.2s ease;
        }

        .sidebar-link:hover,
        .sidebar-link:focus {
            background: var(--mazer-primary-soft);
            color: var(--mazer-primary);
        }

        .sidebar-item.active > .sidebar-link,
        .submenu-link.active {
            background: linear-gradient(90deg, #5a8dee, var(--mazer-primary));
            color: #fff;
            box-shadow: 0 8px 22px rgba(67, 94, 190, 0.18);
        }

        .sidebar-link .bi {
            font-size: 0.88rem;
        }

        .has-sub > .sidebar-link::after {
            content: '\F282';
            font-family: 'bootstrap-icons';
            margin-left: auto;
            font-size: 0.72rem;
        }

        .submenu {
            list-style: none;
            padding-left: 0;
            margin: 0.15rem 0 0.35rem;
        }

        .submenu-link {
            display: block;
            margin: 0.08rem 0 0.08rem 1.9rem;
            padding: 0.4rem 0.62rem;
            border-radius: 0.45rem;
            color: #607080;
            text-decoration: none;
            font-size: 0.78rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .submenu-link:hover,
        .submenu-link:focus {
            background: var(--mazer-primary-soft);
            color: var(--mazer-primary);
        }

        #main {
            min-width: 0;
            width: 100% !important;
            max-width: 100% !important;
            min-height: 100vh;
        }

        .page-content {
            width: 100% !important;
            max-width: 100% !important;
            min-height: 100vh;
        }

        .page-heading {
            padding: 0.9rem 1.2rem 0.2rem;
        }

        .section-hero {
            margin-bottom: 0.9rem;
            padding: 1rem 1.1rem;
            border-radius: 1rem;
            background: linear-gradient(135deg, rgba(67, 94, 190, 0.14) 0%, rgba(90, 141, 238, 0.08) 100%);
            border: 1px solid rgba(67, 94, 190, 0.12);
            box-shadow: 0 10px 24px rgba(15, 34, 58, 0.045);
            width: 100%;
        }

        .section-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.34rem 0.6rem;
            border-radius: 999px;
            background: rgba(67, 94, 190, 0.12);
            color: var(--mazer-primary);
            font-size: 0.74rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 0.65rem;
        }

        .section-hero-title {
            margin: 0;
            font-size: 1.28rem;
            font-weight: 800;
            line-height: 1.2;
            color: var(--mazer-text);
        }

        .section-hero-description {
            margin: 0.35rem 0 0;
            font-size: 0.84rem;
            color: #63738a;
            max-width: 760px;
        }

        .section-breadcrumb {
            margin: 0.75rem 0 0;
            --bs-breadcrumb-divider-color: #8a9ab0;
            --bs-breadcrumb-item-active-color: #607080;
        }

        .section-breadcrumb .breadcrumb {
            margin: 0;
            font-size: 0.78rem;
            font-weight: 600;
        }

        .section-breadcrumb .breadcrumb-item a {
            color: var(--mazer-primary);
            text-decoration: none;
        }

        .page-title {
            margin: 0;
            font-size: 1.45rem;
            font-weight: 700;
            color: var(--mazer-text);
            line-height: 1.2;
        }

        .page-subtitle {
            color: var(--mazer-muted);
            margin-top: 0.15rem;
            font-size: 0.82rem;
        }

        .top-actions {
            gap: 0.5rem;
        }

        .content-wrapper {
            padding: 0.68rem 1.2rem 1.2rem;
        }

        .card {
            border: none;
            border-radius: 0.75rem;
            box-shadow: 0 10px 24px rgba(15, 34, 58, 0.045);
        }

        .card-header {
            background: #fff;
            border-bottom: 1px solid #edf2f8;
            padding: 0.75rem 0.95rem;
        }

        .card-title {
            color: var(--mazer-text);
            font-weight: 700;
            font-size: 0.98rem;
        }

        .card-body,
        .card-footer {
            padding: 0.9rem 0.95rem;
        }

        .table {
            font-size: 0.84rem;
            line-height: 1.3;
            margin-bottom: 0;
        }

        .table > :not(caption) > * > * {
            padding: 0.55rem 0.7rem;
            vertical-align: middle;
        }

        .table thead th {
            white-space: nowrap;
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            color: var(--mazer-muted);
            font-weight: 700;
            background: #fbfcfe;
        }

        .table td .fw-semibold,
        .table td .fw-bold {
            font-size: 0.84rem;
        }

        .form-control,
        .form-select,
        .btn,
        .badge {
            font-size: 0.83rem;
        }

        .form-control,
        .form-select {
            min-height: calc(1.8em + 0.65rem + 2px);
            padding: 0.34rem 0.6rem;
        }

        .btn {
            padding: 0.42rem 0.78rem;
            border-radius: 0.52rem;
        }

        .btn-sm {
            padding: 0.28rem 0.56rem;
            border-radius: 0.45rem;
            font-size: 0.76rem;
        }

        .badge {
            padding: 0.35em 0.55em;
            border-radius: 999px;
            font-weight: 700;
        }

        .alert {
            padding: 0.7rem 0.9rem;
            font-size: 0.84rem;
            border-radius: 0.7rem;
        }

        .table-responsive {
            overflow-x: auto;
        }

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

        .btn-outline-danger {
            border-color: #dc3545;
        }

        .badge.bg-green-lt,
        .badge.bg-success-lt {
            background: rgba(40, 167, 69, 0.14) !important;
            color: #198754 !important;
        }

        .badge.bg-secondary-lt,
        .badge.bg-dark-lt {
            background: rgba(108, 117, 125, 0.14) !important;
            color: #6c757d !important;
        }

        .badge.bg-primary-lt,
        .badge.bg-info-lt {
            background: rgba(13, 110, 253, 0.14) !important;
            color: #0d6efd !important;
        }

        .badge.bg-warning-lt {
            background: rgba(255, 193, 7, 0.18) !important;
            color: #946200 !important;
        }

        .badge.bg-danger-lt {
            background: rgba(220, 53, 69, 0.14) !important;
            color: #dc3545 !important;
        }

        .pagination .page-link {
            color: var(--mazer-primary);
        }

        .pagination .active .page-link {
            background: var(--mazer-primary);
            border-color: var(--mazer-primary);
            color: #fff;
        }

        @media (max-width: 991.98px) {
            #app {
                flex-direction: row;
            }

            #sidebar {
                position: fixed;
                top: 0;
                left: -320px;
                width: 280px;
                height: 100vh;
                z-index: 10000;
                transition: left 0.3s ease-in-out;
                background: var(--mazer-sidebar);
                border-right: none;
                box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
            }

            #sidebar.mobile-active {
                left: 0;
            }

            #sidebar .sidebar-wrapper {
                height: 100%;
                overflow-y: auto;
            }

            #main {
                width: 100% !important;
                min-width: 100%;
            }

            .content-wrapper {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }
        }

            /* Source: app/Views/admin/login.php */

            /* Fix: Scope login styles so they don't break the admin layout */
            body.login-page {
            margin: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f4f7fb;
            color: #1f2937;
        }

        .login-card {
            width: 100%;
            max-width: 420px;
            padding: 32px;
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
        }

        h1 {
            margin: 0 0 8px;
            font-size: 28px;
        }

        p {
            margin: 0 0 24px;
            color: #6b7280;
        }

        .alert {
            margin-bottom: 16px;
            padding: 12px 14px;
            border-radius: 10px;
            background: #fee2e2;
            color: #b91c1c;
            font-size: 14px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 14px;
        }

        .field {
            margin-bottom: 18px;
        }

        input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            font-size: 15px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }

        .login-page button {
            border: 0;
            border-radius: 10px;
            padding: 13px 16px;
            background: #2563eb;
            color: #ffffff;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
        }

        .login-page button:hover {
            background: #1d4ed8;
        }


/* Source: app/Views/admin/dashboard.php */
.dashboard-kpi-card {
        border: 1px solid #e8eef6;
        border-radius: 1rem;
        overflow: hidden;
    }

    .dashboard-kpi-card .card-body {
        padding: 1rem !important;
    }

    .dashboard-kpi-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 0.85rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(67, 94, 190, 0.12);
        color: #435ebe;
        font-size: 1.2rem;
    }

    .dashboard-kpi-label {
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7c8db5;
        font-weight: 800;
    }

    .dashboard-kpi-value {
        font-size: 1.3rem;
        font-weight: 800;
        color: #25396f;
        line-height: 1.1;
    }

    @media (max-width: 767.98px) {
        .dashboard-kpi-value {
            font-size: 1.25rem;
        }

        .dashboard-kpi-label {
            font-size: 0.68rem;
        }

        .dashboard-kpi-icon {
            width: 2.5rem;
            height: 2.5rem;
            font-size: 1rem;
        }

        .dashboard-list-item {
            gap: 0.65rem;
            padding: 0.7rem 0;
        }

        .dashboard-list-icon {
            width: 2rem;
            height: 2rem;
            font-size: 0.9rem;
        }

        .quick-action-btn {
            padding: 0.7rem 0.85rem;
            font-size: 0.84rem;
        }
    }

    .dashboard-list-item {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid #eef3f8;
    }

    .dashboard-list-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .dashboard-list-icon {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.85rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(67, 94, 190, 0.10);
        color: #435ebe;
        font-size: 1rem;
        flex: 0 0 auto;
    }

    .dashboard-section-note {
        font-size: 0.82rem;
        color: #7c8db5;
    }

    .quick-action-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.78rem 0.95rem;
        border-radius: 0.85rem;
        border: 1px solid #e5edf7;
        background: #fff;
        color: #25396f;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.2s ease;
    }

    .quick-action-btn:hover {
        background: #f7faff;
        border-color: #cddbf6;
        color: #435ebe;
    }


/* Source: app/Views/admin/categories/form.php */
.category-form-overview {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 0.95rem 1.05rem;
        margin-bottom: 1rem;
    }

    .category-form-overview-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.15rem;
    }

    .category-form-overview-value {
        font-size: 0.92rem;
        font-weight: 700;
        color: #1f2d3d;
    }

    .category-form-section {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .category-form-section-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #526273;
        margin-bottom: 0.95rem;
    }

    .category-form-section-title .bi {
        color: #2b6cb0;
        font-size: 0.95rem;
    }

    .category-form-section .form-label {
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #66788a;
        margin-bottom: 0.35rem;
    }

    .category-form-section .form-control,
    .category-form-section .form-select {
        font-size: 0.84rem;
    }


/* Source: app/Views/admin/products/view.php */
.product-detail-main-image {
        width: 100%;
        max-height: 420px;
        object-fit: contain;
        border-radius: 0.75rem;
        background: #f8fbff;
        border: 1px solid #e5edf5;
        padding: 0.75rem;
    }

    .product-thumb-btn {
        width: 72px;
        height: 72px;
        border-radius: 0.6rem;
        overflow: hidden;
        border: 1px solid #dce7f1;
        background: #fff;
        cursor: pointer;
        padding: 0;
    }

    .product-thumb-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-overview-card {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 1rem 1.1rem;
    }

    .product-overview-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.2rem;
    }

    .product-overview-value {
        font-size: 0.92rem;
        font-weight: 600;
        color: #1f2d3d;
    }

    .product-info-panel {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 0.95rem 1rem;
        height: 100%;
    }

    .product-info-icon {
        width: 2.1rem;
        height: 2.1rem;
        border-radius: 0.65rem;
        background: #eef6ff;
        color: #2b6cb0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .product-info-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.2rem;
    }

    .product-info-value {
        font-size: 0.88rem;
        font-weight: 600;
        color: #203040;
        line-height: 1.4;
        word-break: break-word;
    }

    .product-section-card {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 1rem;
    }

    .product-section-heading {
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #526273;
        margin-bottom: 0.95rem;
    }


/* Source: app/Views/admin/products/form.php */
.product-form-overview {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 0.95rem 1.05rem;
        margin-bottom: 1rem;
    }

    .product-form-overview-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.15rem;
    }

    .product-form-overview-value {
        font-size: 0.92rem;
        font-weight: 700;
        color: #1f2d3d;
    }

    .product-form-section {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .product-form-section-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #526273;
        margin-bottom: 0.95rem;
    }

    .product-form-section-title .bi {
        color: #2b6cb0;
        font-size: 0.95rem;
    }

    .product-form-section .form-label {
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #66788a;
        margin-bottom: 0.35rem;
    }

    .product-form-section .form-control,
    .product-form-section .form-select,
    .product-form-section .select2-container--bootstrap-5 .select2-selection {
        font-size: 0.84rem;
    }

    .product-form-section textarea.form-control {
        min-height: 130px;
    }

    .product-form-help {
        font-size: 0.72rem;
        color: #7b8a9a;
        margin-top: 0.3rem;
        display: block;
    }

    .product-image-card {
        width: 140px;
        border: 1px solid #e5edf5;
        border-radius: 0.8rem;
        padding: 0.65rem;
        background: #fbfdff;
    }


/* Source: app/Views/admin/customers/view.php */
.customer-overview-card {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 1rem 1.1rem;
    }

    .customer-overview-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.2rem;
    }

    .customer-overview-value {
        font-size: 0.92rem;
        font-weight: 600;
        color: #1f2d3d;
    }

    .customer-info-panel {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 0.95rem 1rem;
        height: 100%;
    }

    .customer-info-icon {
        width: 2.1rem;
        height: 2.1rem;
        border-radius: 0.65rem;
        background: #eef6ff;
        color: #2b6cb0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .customer-info-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.2rem;
    }

    .customer-info-value {
        font-size: 0.88rem;
        font-weight: 600;
        color: #203040;
        line-height: 1.4;
        word-break: break-word;
    }

    .customer-section-card {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 1rem;
    }

    .customer-section-heading {
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #526273;
        margin-bottom: 0.95rem;
    }

    .customer-address-card {
        border: 1px solid #e9eef5;
        border-radius: 0.85rem;
        background: #fbfdff;
        padding: 0.95rem;
        height: 100%;
    }


/* Source: app/Views/admin/products/index.php */
.product-card {
        padding: 0.9rem 1rem;
    }

    .product-card-grid {
        display: grid;
        grid-template-columns: 34px 72px minmax(180px, 1.6fr) minmax(110px, 0.9fr) minmax(110px, 0.9fr) minmax(80px, 0.8fr) minmax(90px, 0.8fr);
        gap: 0.85rem;
        align-items: center;
    }

    .product-card-title {
        font-size: 0.92rem;
        line-height: 1.15;
        letter-spacing: 0.02em;
    }

    .product-card-subtitle {
        font-size: 0.78rem;
    }

    .product-card .meta-label {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .product-card .meta-value {
        font-size: 0.79rem;
        line-height: 1.2;
    }

    .product-card .meta-icon {
        font-size: 1rem;
    }

    .product-card .thumb-box {
        width: 64px;
        height: 64px;
        overflow: hidden;
        border-radius: 0.6rem;
        border: 1px solid #e5edf5;
        background: #f8fbff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-card .thumb-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-card .meta-block {
        min-width: 0;
    }

    .product-card .meta-value,
    .product-card-title,
    .product-card-subtitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-card .bulk-check {
        justify-self: center;
    }

    .product-card .btn-sm {
        padding: 0.22rem 0.5rem;
        font-size: 0.72rem;
    }

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

        .product-card .bulk-check,
        .product-card .thumb-box {
            justify-self: start;
        }
    }

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

        .product-card .product-card-actions {
            justify-self: start;
        }
    }


/* Source: app/Views/admin/orders/view.php */
.order-overview-card,
    .order-panel-card,
    .order-table-card,
    .order-status-card {
        border: 1px solid #e8eef6;
        border-radius: 1rem;
    }

    .order-hero {
        background: linear-gradient(135deg, rgba(67, 94, 190, 0.14), rgba(90, 141, 238, 0.06));
        border: 1px solid rgba(67, 94, 190, 0.12);
        border-radius: 1rem;
        padding: 1rem 1.1rem;
    }

    .order-hero-title {
        font-size: 1.2rem;
        font-weight: 800;
        margin: 0;
        color: #25396f;
    }

    .order-hero-meta {
        color: #7c8db5;
        font-size: 0.84rem;
    }

    .order-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.65rem;
        border-radius: 999px;
        background: #f5f8ff;
        color: #435ebe;
        font-weight: 700;
        font-size: 0.78rem;
    }

    .order-spec-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eef3f8;
    }

    .order-spec-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .order-spec-label {
        font-size: 0.66rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #7c8db5;
        font-weight: 800;
    }

    .order-spec-value {
        font-size: 0.84rem;
        font-weight: 700;
        color: #25396f;
    }

    .order-date-input {
        min-height: 42px;
    }


/* Source: app/Views/admin/categories/index.php */
.category-card {
        border: 1px solid #e8eef6;
        border-radius: 0.9rem;
        background: #fff;
        padding: 0.95rem 1rem;
    }

    .category-card-grid {
        display: grid;
        grid-template-columns: 34px minmax(180px, 1.8fr) minmax(120px, 1.1fr) minmax(100px, 0.9fr) auto;
        gap: 0.85rem;
        align-items: center;
    }

    .category-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #203040;
    }

    .category-subtitle,
    .category-meta-label,
    .category-meta-value {
        font-size: 0.8rem;
    }

    .category-meta-label {
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #7b8a9a;
        font-weight: 700;
    }

    .category-meta-value {
        color: #253649;
        font-weight: 600;
    }

    @media (max-width: 1199.98px) {
        .category-card-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

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


/* Source: app/Views/admin/colors/index.php */
.swatch-card {
        border: 1px solid #e8eef6;
        border-radius: 0.9rem;
        background: #fff;
        padding: 0.95rem 1rem;
    }

    .swatch-card-grid {
        display: grid;
        grid-template-columns: minmax(160px, 1.6fr) minmax(100px, 0.8fr) auto;
        gap: 0.85rem;
        align-items: center;
    }

    .swatch-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #203040;
    }

    .swatch-subtitle,
    .swatch-meta-label,
    .swatch-meta-value {
        font-size: 0.8rem;
    }

    .swatch-meta-label {
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #7b8a9a;
        font-weight: 700;
    }

    .swatch-meta-value {
        color: #253649;
        font-weight: 600;
    }


/* Source: app/Views/admin/customers/index.php */
.customer-card {
        padding: 0.9rem 1rem;
    }

    .customer-card-title {
        font-size: 0.92rem;
        line-height: 1.15;
        letter-spacing: 0.02em;
    }

    .customer-card-subtitle {
        font-size: 0.78rem;
    }

    .customer-card .meta-label {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .customer-card .meta-value {
        font-size: 0.79rem;
        line-height: 1.2;
    }

    .customer-card .meta-icon {
        font-size: 1rem;
    }

    .customer-card .customer-card-footer {
        margin-top: 0.2rem;
        padding-top: 0.55rem;
    }

    .customer-card .btn-sm {
        padding: 0.22rem 0.5rem;
        font-size: 0.72rem;
    }

    .customer-card .price-group-note {
        font-size: 0.72rem;
    }


/* Source: app/Views/admin/materials/index.php */
.material-card {
        border: 1px solid #e8eef6;
        border-radius: 0.9rem;
        background: #fff;
        padding: 0.95rem 1rem;
    }

    .material-card-grid {
        display: grid;
        grid-template-columns: minmax(160px, 1.6fr) minmax(100px, 0.8fr) auto;
        gap: 0.85rem;
        align-items: center;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table.card-table th,
    .table.card-table td {
        white-space: nowrap;
    }

    .material-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #203040;
    }

    .material-subtitle,
    .material-meta-label,
    .material-meta-value {
        font-size: 0.8rem;
    }

    .material-meta-label {
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #7b8a9a;
        font-weight: 700;
    }

    .material-meta-value {
        color: #253649;
        font-weight: 600;
    }


/* Source: app/Views/admin/customers/form.php */
.customer-form-overview {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 0.95rem 1.05rem;
        margin-bottom: 1rem;
    }

    .customer-form-overview-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7b8a9a;
        margin-bottom: 0.15rem;
    }

    .customer-form-overview-value {
        font-size: 0.92rem;
        font-weight: 700;
        color: #1f2d3d;
    }

    .customer-form-section {
        border: 1px solid #e9eef5;
        border-radius: 0.9rem;
        background: #fff;
        padding: 1rem;
        margin-bottom: 1rem;
        height: 100%;
    }

    .customer-form-section-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #526273;
        margin-bottom: 0.95rem;
    }

    .customer-form-section-title .bi {
        color: #2b6cb0;
        font-size: 0.95rem;
    }

    .customer-form-section .form-label {
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #66788a;
        margin-bottom: 0.35rem;
    }

    .customer-form-section .form-control,
    .customer-form-section .form-select {
        font-size: 0.84rem;
    }

    .customer-form-help {
        font-size: 0.72rem;
        color: #7b8a9a;
        margin-top: 0.3rem;
        display: block;
    }

