* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;

    background: var(--background);
    color: var(--foreground);
}


/* ================================
   LAYOUT
================================ */

.admin-layout {
    min-height: 100vh;
    display: flex;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-content {
    padding: 32px;
}


/* ================================
   SIDEBAR
================================ */

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);
    background: #fafafa;
}

.sidebar-brand {
    height: var(--header-height);

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 20px;

    border-bottom: 1px solid var(--border);
}

.brand-logo {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--background);
    color: white;

    font-weight: 700;
}

.brand-name {
    font-size: 15px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-label {
    padding: 0 10px;
    margin-bottom: 6px;

    color: var(--muted-foreground);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: 6px;
    color: #52525b;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}

.nav-item-text {
    flex: 0 0 auto;
}

.nav-count {
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.nav-item:hover {
    background: var(--muted);
    color: var(--foreground);
}

.nav-item.active {
    background: #e4e4e7;
    color: var(--foreground);
    font-weight: 500;
}

.nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--primary);
}

.nav-icon img {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    object-fit: contain;


}

.head-icon {
    width: 30px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    object-fit: contain;
}

.brand-icon {
    width: 45px;
    height: 27px;
    flex: 0 0 27px;
    display: block;
    object-fit: contain;
}

/* ================================
   SIDEBAR FOOTER
================================ */

.sidebar-footer {
    padding: 16px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-top: 1px solid var(--border);
}

.user-avatar,
.header-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e4e4e7;

    font-size: 13px;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.user-info strong {
    font-size: 13px;
}

.user-info span {
    font-size: 11px;
    color: var(--muted-foreground);
}


/* ================================
   HEADER
================================ */

.admin-header {
    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    border-bottom: 1px solid var(--border);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;

    gap: 12px;
}

.icon-button {
    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    cursor: pointer;
}

.icon-button:hover {
    background: var(--muted);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted-foreground);
}

.breadcrumb strong {
    color: var(--foreground);
}


/* ================================
   PAGE HEADER
================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0 0 6px;

    font-size: 24px;
    letter-spacing: -0.025em;
}

.page-header p {
    margin: 0;

    color: var(--muted-foreground);
}


/* ================================
   CARDS
================================ */

.card {
    margin-bottom: 24px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;
}

.card-header {
    min-height: 72px;

    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    margin: 0 0 4px;

    font-size: 15px;
}

.card-header p {
    margin: 0;

    color: var(--muted-foreground);

    font-size: 13px;
}

.card-body {
    padding: 24px;
}


/* ================================
   STAT CARDS
================================ */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.stat-label {
    color: var(--muted-foreground);

    font-size: 13px;
}

.stat-icon {
    color: var(--muted-foreground);
}

.stat-value {
    display: block;

    margin-bottom: 6px;

    font-size: 24px;
    font-weight: 600;

    letter-spacing: -0.03em;
}

.stat-footer {
    color: var(--muted-foreground);

    font-size: 12px;
}

.stat-footer.positive {
    color: var(--success);
}


/* ================================
   DASHBOARD GRID
================================ */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr) minmax(320px, 1fr);

    gap: 24px;

    margin-bottom: 24px;
}

.chart-card {
    min-height: 350px;
}

.chart-placeholder {
    height: 275px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted-foreground);

    background:
        linear-gradient(135deg,
            #fafafa,
            #f4f4f5);
}


/* ================================
   PRODUCTS
================================ */

.product-list {
    padding: 8px 24px;
}

.product-item {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom: 1px solid var(--border);
}

.product-item:last-child {
    border-bottom: 0;
}

.product-placeholder {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: var(--muted);

    font-weight: 600;
}

.product-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.product-info span {
    color: var(--muted-foreground);

    font-size: 12px;
}


/* ================================
   TABLE
================================ */

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

.data-table {
    width: 100%;

    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 24px;

    text-align: left;

    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #fafafa;

    color: var(--muted-foreground);

    font-size: 12px;
    font-weight: 500;
}

.data-table td {
    font-size: 13px;
}

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


/* ================================
   BADGES
================================ */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 500;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}


/* ================================
   BUTTONS
================================ */

.btn {
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    cursor: pointer;
}

.btn-primary {
    border: 1px solid var(--primary);

    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline {
    border: 1px solid var(--border);

    background: white;
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted);
}

/* =========================================================
   PRODUCTS
========================================================= */

.page-title h1 {
    margin: 0 0 6px;

    font-size: 24px;
    font-weight: 600;

    letter-spacing: -0.03em;
}

.page-title p {
    margin: 0;

    color: var(--muted-foreground);

    font-size: 14px;
}

.page-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 0 13px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s,
        border-color 0.15s;
}

.btn-primary {
    border: 1px solid #18181b;

    background: #18181b;
    color: white;
}

.btn-primary:hover {
    background: #27272a;
}

.btn-outline {
    border: 1px solid var(--border);

    background: white;
    color: var(--foreground);
}

.btn-outline:hover {
    background: #f4f4f5;
}

.btn-icon {
    margin-left: 5px;

    font-size: 16px;
    line-height: 1;
}


/* =========================================================
   FILTER BAR
========================================================= */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    align-items: center;

    gap: 8px;
}

.search-input {
    width: 255px;
    height: 36px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;

    color: var(--foreground);

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.search-input::placeholder {
    color: #71717a;
}

.search-input:focus {
    border-color: #a1a1aa;

    box-shadow:
        0 0 0 2px rgba(24, 24, 27, 0.06);
}

.filter-button {
    height: 36px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 0 11px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;

    color: var(--foreground);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}

.filter-button:hover {
    background: #f4f4f5;
}

.view-button {
    padding-left: 12px;
    padding-right: 12px;
}


/* =========================================================
   PRODUCT TABLE
========================================================= */

.product-table-container {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: white;
}

.product-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;
}


/* Header */

.product-table thead th {
    height: 42px;

    padding: 0 14px;

    background: white;

    border-bottom: 1px solid var(--border);

    color: #52525b;

    font-size: 12px;
    font-weight: 500;

    text-align: left;

    white-space: nowrap;
}

.product-table thead th:first-child {
    padding-left: 10px;
}

.sort-icon {
    margin-left: 5px;

    color: #a1a1aa;

    font-size: 12px;
}


/* Rows */

.product-table tbody td {
    height: 64px;

    padding: 0 14px;

    border-bottom: 1px solid var(--border);

    color: #18181b;

    font-size: 13px;

    white-space: nowrap;
}

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

.product-table tbody tr:hover {
    background: #fafafa;
}


/* =========================================================
   CHECKBOX
========================================================= */

.checkbox-column {
    width: 46px;

    text-align: center !important;
}

.checkbox-column input {
    width: 16px;
    height: 16px;

    margin: 0;

    appearance: none;

    border: 1px solid #d4d4d8;
    border-radius: 5px;

    background: white;

    cursor: pointer;
}

.checkbox-column input:checked {
    border-color: #18181b;

    background: #18181b;
}


/* =========================================================
   SKU
========================================================= */

.sku {
    color: #52525b;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 12px;
}


/* =========================================================
   PRODUCT CELL
========================================================= */

.product-cell {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 250px;
}

.product-image-placeholder {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #e4e4e7;
    border-radius: 6px;

    background: #f4f4f5;

    color: #52525b;

    font-size: 12px;
    font-weight: 600;
}

.product-name {
    overflow: hidden;

    max-width: 360px;

    text-overflow: ellipsis;

    font-weight: 500;
}


/* =========================================================
   CATEGORY
========================================================= */

.category-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border: 1px solid #e4e4e7;
    border-radius: 6px;

    background: white;

    color: #3f3f46;

    font-size: 11px;
    font-weight: 500;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    font-size: 13px;
}

.status-icon {
    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid currentColor;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 600;
}

.status-active {
    color: #166534;
}

.status-warning {
    color: #a16207;
}

.status-danger {
    color: #b91c1c;
}


/* =========================================================
   ROW ACTION
========================================================= */

.actions-column {
    width: 48px;

    text-align: center !important;
}

.row-action {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 6px;

    background: transparent;

    color: #71717a;

    font-size: 16px;

    cursor: pointer;
}

.row-action:hover {
    background: #f4f4f5;

    color: #18181b;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pagination-bar>.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-bar>.pagination>.pagination-info {
    margin-right: 4px;
}

/* X.PagedList generated pagination */

.pagination-bar ul.pagination {
    display: flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.pagination-bar ul.pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-bar ul.pagination li a,
.pagination-bar ul.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 32px;

    padding: 0 8px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;
    color: var(--foreground);

    font-size: 13px;
    text-decoration: none;

    box-sizing: border-box;
}

.pagination-bar ul.pagination li a:hover {
    background: var(--muted);
}

.pagination-bar ul.pagination li.active a,
.pagination-bar ul.pagination li.active span {
    background: var(--foreground);
    color: #fff;
    border-color: var(--foreground);
}

.pagination-bar ul.pagination li.disabled span {
    color: #a1a1aa;
    background: #fafafa;
    cursor: not-allowed;
}

/* =========================================================
   INVENTORY
========================================================= */


/* SUMMARY CARDS */

.inventory-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.inventory-stat-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.inventory-stat-label {
    margin-bottom: 8px;
    color: #71717a;
    font-size: 12px;
    font-weight: 500;
}

.inventory-stat-value {
    color: #18181b;
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.inventory-stat-description {
    margin-top: 7px;
    color: #a1a1aa;
    font-size: 11px;
}

.inventory-warning-text {
    color: #a16207;
}

.inventory-danger-text {
    color: #b91c1c;
}


/* SECTIONS */

.inventory-section {
    margin-bottom: 28px;
}

.inventory-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.inventory-section-header h2 {
    margin: 0 0 4px;
    color: #18181b;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.inventory-section-header p {
    margin: 0;
    color: #71717a;
    font-size: 12px;
}


/* STOCK ALERTS */

.inventory-alert-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.inventory-alert {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.inventory-alert:last-child {
    border-bottom: none;
}

.inventory-alert:hover {
    background: #fafafa;
}

.inventory-alert-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
}

.alert-warning {
    color: #a16207;
    background: #fffbeb;
}

.alert-danger {
    color: #b91c1c;
    background: #fef2f2;
}

.inventory-alert-product {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.inventory-alert-product strong {
    overflow: hidden;
    color: #18181b;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-alert-product span {
    color: #71717a;
    font-size: 11px;
}

.inventory-alert-stock {
    width: 150px;
    font-size: 12px;
}

.inventory-alert-stock strong {
    font-weight: 500;
}

.inventory-action-button {
    height: 30px;
    min-width: 70px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: #18181b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.inventory-action-button:hover {
    background: #f4f4f5;
}


/* RECENT MOVEMENTS */

.inventory-movement-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.inventory-movement-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-movement-table th {
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    color: #52525b;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.inventory-movement-table td {
    height: 64px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    color: #52525b;
    font-size: 12px;
    white-space: nowrap;
}

.inventory-movement-table tbody tr:last-child td {
    border-bottom: none;
}

.inventory-movement-table tbody tr:hover {
    background: #fafafa;
}

.inventory-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inventory-product-cell .product-image-placeholder {
    width: 34px;
    height: 34px;
}

.inventory-product-cell>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.inventory-product-cell strong {
    color: #18181b;
    font-size: 12px;
    font-weight: 500;
}

.inventory-product-cell span {
    color: #71717a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
}

.movement-positive {
    color: #166534;
    font-weight: 600;
}

.movement-negative {
    color: #b91c1c;
    font-weight: 600;
}


/* CATEGORY SUMMARY */

.inventory-category-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.inventory-category-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-category-table th {
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    color: #52525b;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

.inventory-category-table td {
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    color: #52525b;
    font-size: 12px;
}

.inventory-category-table tbody tr:last-child td {
    border-bottom: none;
}

.inventory-category-table tbody tr:hover {
    background: #fafafa;
}

.inventory-category-table td strong {
    color: #18181b;
    font-weight: 500;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .inventory-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-alert-stock {
        width: auto;
        margin-left: auto;
    }

}

@media (max-width: 650px) {

    .inventory-summary {
        grid-template-columns: 1fr;
    }

    .inventory-alert {
        flex-wrap: wrap;
    }

    .inventory-alert-stock {
        width: auto;
        margin-left: 44px;
    }

    .inventory-action-button {
        margin-left: auto;
    }

}

/* ========================================
   LOGIN
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: var(--background);
}

.login-container {
    width: 100%;
    max-width: 400px;
}


/* Brand */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 28px;
}

.login-logo {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--background);
}

.login-logo img {
    width: 26px;
    height: 26px;

    display: block;
    object-fit: contain;
}

.login-brand-name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.01em;
}


/* Card */

.login-card {
    padding: 28px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04);
}


/* Header */

.login-header {
    margin-bottom: 24px;
}

.login-header h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;

    color: var(--foreground);
}

.login-header p {
    margin: 7px 0 0;

    font-size: 14px;

    color: var(--muted-foreground);
}


/* Error */

.login-error {
    margin-bottom: 18px;
    padding: 10px 12px;

    border: 1px solid #fecaca;
    border-radius: 6px;

    background: #fef2f2;
    color: #b91c1c;

    font-size: 13px;
}


/* Form */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 13px;
    font-weight: 500;

    color: var(--foreground);
}

.form-field input {
    width: 100%;
    height: 40px;

    padding: 0 11px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--background);
    color: var(--foreground);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.form-field input::placeholder {
    color: var(--muted-foreground);
}

.form-field input:focus {
    border-color: var(--foreground);

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.08);
}


/* Button */

.login-button {
    width: 100%;
    height: 40px;

    margin-top: 4px;

    border: 1px solid var(--foreground);
    border-radius: 6px;

    background: var(--foreground);
    color: var(--background);

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        opacity 0.15s,
        background 0.15s;
}
.form-help{
    color: #d97706;
}
.login-button:hover {
    opacity: 0.9;
}

.login-button:active {
    opacity: 0.8;
}


/* Footer */

.login-footer {
    margin-top: 20px;

    text-align: center;

    color: var(--muted-foreground);

    font-size: 12px;
}


/* Mobile */

@media (max-width: 480px) {

    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 22px;
    }

}

.header-user {
    position: relative;
}

.header-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--foreground);
    color: var(--background);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.header-avatar:hover {
    opacity: 0.85;
}


/* Popup */

.header-user-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 190px;

    padding: 4px;

    background: var(--background);

    border: 1px solid var(--border);
    border-radius: 7px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);

    display: none;

    z-index: 1000;
}

.header-user-menu.open {
    display: block;
}

.header-user-info {
    padding: 8px 10px;
}

.header-user-info strong {
    display: block;

    font-size: 13px;
    font-weight: 600;
}

.header-user-info span {
    display: block;

    margin-top: 2px;

    font-size: 11px;
    color: var(--muted-foreground);
}

.header-menu-item {
    width: 100%;

    display: flex;
    align-items: center;

    padding: 8px 10px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: var(--foreground);

    font-family: inherit;
    font-size: 13px;

    text-decoration: none;
    text-align: left;

    cursor: pointer;
}

.header-menu-item:hover {
    background: var(--muted);
}

.header-menu-danger {
    color: #dc2626;
}

.header-menu-separator {
    height: 1px;

    margin: 4px 0;

    background: var(--border);
}

.actions-column {
    white-space: nowrap;
    width: 1%;
}

.form-container {

    width: 100%;

    max-width: 760px;

}

.form-container form {

    width: 100%;

}

.form-section {

    width: 100%;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 24px;

    margin-bottom: 16px;

}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;

    padding: 16px 0;
}
.category-tree-line {
    display: none;
}
/* Parent categories */
/* .category-parent-row {
    background: #e4e4e7;
} */

.category-parent-row .product-name {
    color: #18181b;
    font-weight: 600;
}

/* Child categories */
.category-child-row {
    background: #fff;
}

.category-child-cell {
    padding-left: 32px;
}

.category-child-row .product-name {
    color: #52525b;
    font-weight: 400;
}

/* Child category avatar */
.category-child-avatar {
    background: #f4f4f5;
    color: #71717a;
}
.product-image-column {
    width: 80px;
    text-align: center;
}

.product-thumbnail {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #f4f4f5;
}
/* =====================================
   ORDER ACTION DROPDOWN
===================================== */

.order-action-menu {
    position: relative;
    display: inline-block;
}

.order-action-menu summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.order-action-menu summary::-webkit-details-marker {
    display: none;
}

.order-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 9999;

    width: 210px;
    padding: 6px;

    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    display: none;
    box-sizing: border-box;
}

.order-action-menu[open] .order-dropdown {
    display: block;
}

/* Dropdown items */

.order-dropdown a,
.order-dropdown button {
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: none;
    border-radius: 5px;
    background: transparent;

    color: #333;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;

    cursor: pointer;
    box-sizing: border-box;
}

.order-dropdown a:hover,
.order-dropdown button:hover {
    background: #f5f5f5;
}

.order-dropdown form {
    margin: 0;
}

.order-dropdown .danger-action {
    color: #dc3545;
}

.order-dropdown .danger-action:hover {
    background: #fff1f1;
}

.dropdown-divider {
    height: 1px;
    margin: 5px 0;
    background: #eee;
}

/* =====================================
   TABLE OVERFLOW FIX
===================================== */

.product-table-container {
    overflow: visible !important;
}

.product-table {
    overflow: visible;
}

.product-table tbody,
.product-table tr,
.product-table td {
    overflow: visible;
}

.product-table td.actions-column {
    position: relative;
}
