/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* FIX */
html,
body {
    background: #ffffff;
    width: 100%;
    min-height: 100%;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 30px;

    background: #1e293b;
    color: white;
    position: relative;
    z-index: 10;
}

.admin-body {
    --admin-header-height: 56px;
    background: #faf8fc;
    padding-top: var(--admin-header-height);
}

.vendor-body {
    --admin-header-height: 56px;
    background: #faf8fc;
    padding-top: var(--admin-header-height);
}

.delivery-manager-body {
    --admin-header-height: 56px;
    background: #faf8fc;
    padding-top: var(--admin-header-height);
}

.admin-navbar {
    height: var(--admin-header-height);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.vendor-navbar {
    background: #1e293b;
}

.delivery-manager-navbar {
    background: #172344;
}

.vendor-top-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.delivery-manager-top-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.vendor-status-badge {
    align-items: center;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.6);
    border-radius: 6px;
    color: #86efac;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    padding: 6px 10px;
}

.delivery-manager-status-badge {
    align-items: center;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.6);
    border-radius: 6px;
    color: #bfdbfe;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    padding: 6px 10px;
}

/* VENDOR APPBAR */
.vendor-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 30px;

    background: #1e293b;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #60a5fa;
}

/* MENU */
.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover,
.menu a.active {
    color: #fff;
    border-bottom: 2px solid #60a5fa;
    padding-bottom: 4px;
}

/* SEARCH */
.search-box {
    display: flex;
    align-items: center;

    background: #0f172a;

    border: 1px solid #334155;

    padding: 8px 12px;

    border-radius: 8px;

    width: 280px;

    gap: 8px;
}

.search-box i {
    color: #94a3b8;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;

    color: white;

    width: 100%;
}

.search-box input::placeholder {
    color: #64748b;
}

/* RIGHT SIDE */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ICONS */
.icons i {
    color: #cbd5e1;
    margin: 0 6px;
    cursor: pointer;
    transition: 0.3s;
}

.icons a {
    text-decoration: none;
}

.icons i:hover {
    color: #60a5fa;
}

/* BUTTONS */
.auth {
    display: flex;
    gap: 10px;
}

/* COMMON LINK BUTTON STYLE */
.auth a {
    text-decoration: none;
    display: inline-block;
}

.user-name {
    align-self: center;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* LOGIN */
.login {
    padding: 6px 14px;

    border: 1px solid #334155;

    background: transparent;

    color: white;

    border-radius: 6px;

    cursor: pointer;

    transition: 0.3s;

    font-size: 14px;
    font-weight: 500;
}

.login:hover {
    background: rgba(255,255,255,0.05);
}

/* SIGNUP */
.signup {
    padding: 6px 14px;

    border: none;

    background: #60a5fa;

    color: #0f172a;

    font-weight: 600;

    border-radius: 6px;

    cursor: pointer;

    transition: 0.3s;

    font-size: 14px;
}

.signup:hover {
    opacity: 0.9;
}

.storefront-home {
    background: #f8fafc;
    color: #172344;
    min-height: calc(100vh - 70px);
    padding-bottom: 48px;
}

.storefront-hero {
    align-items: center;
    background: #172344;
    color: #fff;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 56px 6vw 48px;
}

.storefront-eyebrow {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.storefront-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    margin-bottom: 16px;
    max-width: 820px;
}

.storefront-hero p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.6;
    max-width: 620px;
}

.storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.storefront-primary,
.storefront-secondary,
.storefront-product-footer a,
.storefront-section-heading a {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
}

.storefront-primary {
    background: #60a5fa;
    color: #0f172a;
}

.storefront-secondary {
    border: 1px solid #475569;
    color: #fff;
}

.storefront-hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 24px;
}

.storefront-hero-panel strong {
    display: block;
    font-size: 52px;
    line-height: 1;
}

.storefront-hero-panel span {
    color: #cbd5e1;
    display: block;
    font-weight: 700;
    margin-top: 10px;
}

.storefront-section {
    margin: 0 auto;
    max-width: 1240px;
    padding: 34px 24px 0;
}

.storefront-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.storefront-section-heading h2 {
    color: #172344;
    font-size: 26px;
}

.storefront-section-heading a {
    color: #2563eb;
    padding: 0;
}

.storefront-category-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.storefront-category {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #172344;
    padding: 18px;
    text-decoration: none;
}

.storefront-category span {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.storefront-category small {
    color: #64748b;
    font-weight: 600;
}

.storefront-product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.storefront-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.storefront-product-image {
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    display: block;
}

.storefront-product-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.storefront-product-body {
    padding: 16px;
}

.storefront-product-body p {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.storefront-product-body h3 {
    color: #172344;
    font-size: 17px;
    line-height: 1.3;
    min-height: 44px;
}

.storefront-product-meta,
.storefront-product-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.storefront-product-meta {
    color: #64748b;
    font-size: 12px;
    margin: 14px 0;
}

.storefront-product-footer strong {
    color: #172344;
    font-size: 18px;
}

.storefront-product-footer a {
    background: #172344;
    color: #fff;
    min-height: 34px;
}

.storefront-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px;
}

.storefront-empty h2 {
    color: #172344;
    margin-bottom: 8px;
}

.storefront-empty p {
    color: #64748b;
}

.signup:hover {
    opacity: 0.9;
}

/* VERIFIED BADGE */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    border-radius: 6px;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
}

.verified-badge i {
    color: #22c55e;
}

/* COMPANY INFO */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.company-title {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.5px;
}

/* PROFILE AVATAR */
.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #334155;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.profile-avatar:hover {
    border-color: #60a5fa;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar i {
    color: #cbd5e1;
    font-size: 20px;
}

/* FLEXBOX UTILITIES - MAIN AXIS ALIGNMENT */
.main-start {
    justify-content: flex-start;
}

.main-end {
    justify-content: flex-end;
}

.main-center {
    justify-content: center;
}

.main-between {
    justify-content: space-between;
}

.main-around {
    justify-content: space-around;
}

/* FLEXBOX UTILITIES - CROSS AXIS ALIGNMENT */
.cross-start {
    align-items: flex-start;
}

.cross-end {
    align-items: flex-end;
}

.cross-center {
    align-items: center;
}

.cross-stretch {
    align-items: stretch;
}

/* FLEXBOX UTILITIES - DIRECTION */
.row {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
}

/* TYPOGRAPHY - TITLE */
.title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

/* TYPOGRAPHY - SUBTITLE */
.subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.4px;
}

/* FLEXBOX UTILITIES - GAP */
.gap-2 {
    gap: 2px;
}

.gap-4 {
    gap: 4px;
}

.gap-6 {
    gap: 6px;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.gap-24 {
    gap: 24px;
}

/* VERTICAL DIVIDER */
.divider-vertical {
    width: 1px;
    height: 32px;
    background: #334155;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    height: 100vh;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
}

/* SIDEBAR HEADER */
.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.sidebar-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* SIDEBAR MENU */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    border-right: 3px solid transparent;
}

.menu-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.menu-item.active {
    background: #f1f5f9;
    color: #1e293b;
    border-right-color: #60a5fa;
}

.menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ADD PRODUCT BUTTON */
.btn-add-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px;
    padding: 10px 16px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-product:hover {
    background: #0f172a;
}

.btn-add-product i {
    font-size: 16px;
}

/* SIDEBAR BOTTOM */
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

/* MAIN LAYOUT */
.main-layout {
    display: flex;
    flex-direction: column;
    margin-left: 280px;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* STATS CARD */
.stats-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.3s;
}

.stats-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stats-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card-icon i {
    font-size: 24px;
    color: #1e293b;
}

.stats-card-percentage {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.stats-card-percentage.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.stats-card-percentage.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.stats-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-card-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

.stats-card-value {
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 30px;
}

/* SALES PERFORMANCE CARD */
.sales-performance-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sales-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sales-card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sales-card-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.sales-card-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.sales-card-buttons {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.chart-btn:hover {
    background: #e2e8f0;
}

.chart-btn.active {
    background: #60a5fa;
    color: white;
    border-color: #60a5fa;
}

.sales-card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    position: relative;
}

.sales-card-body canvas {
    max-height: 100%;
}

/* POPULAR PRODUCTS CARD */
.popular-products-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 420px;
}

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.popular-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.view-all-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.view-all-link:hover {
    color: #60a5fa;
}

.popular-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: 0.3s;
}

.popular-product-item:hover {
    background: #f8fafc;
}

.popular-product-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.popular-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.popular-product-sales {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

.popular-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

/* RECENT ORDERS TABLE */
.recent-orders-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: #f8fafc;
}

.orders-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.orders-table td {
    padding: 14px 20px;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.orders-table tbody tr:hover {
    background: #f8fafc;
}

.delivery-manager-assign-page [data-delivery-assign-row] {
    cursor: pointer;
}

.delivery-manager-assign-page [data-delivery-assign-row]:focus {
    background: #f8fafc;
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.order-id {
    font-weight: 600;
    color: #1e293b;
}

.amount {
    font-weight: 600;
    color: #1e293b;
}

/* STATUS BADGES */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-shipped {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-processing {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.status-pending {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ACTION LINK */
.action-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.action-link:hover {
    color: #60a5fa;
}

/* DASHBOARD LAYOUT */
.dashboard-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0 30px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.dashboard-col-2-3 {
    flex: 2;
    width: 66.67%;
}

.dashboard-col-1-3 {
    flex: 1;
    width: 33.33%;
}

/* VENDOR FOOTER */
.vendor-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 20px 30px;
    margin-top: 40px;
    margin-left: 280px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.footer-copyright {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.footer-copyright p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 13px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.footer-link:hover {
    color: #60a5fa;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .menu {
        display: none;
    }

    .search-box {
        display: none;
    }

    .storefront-hero {
        grid-template-columns: 1fr;
        padding: 42px 24px;
    }

    .storefront-category-grid,
    .storefront-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .storefront-category-grid,
    .storefront-product-grid {
        grid-template-columns: 1fr;
    }

    .storefront-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
.admin-layout {
    min-height: calc(100vh - 56px);
    display: flex;
    background: #faf8fc;
}

.admin-body .admin-layout {
    display: block;
    min-height: calc(100vh - var(--admin-header-height));
}

.vendor-body .admin-layout {
    display: block;
    min-height: calc(100vh - var(--admin-header-height));
}

.delivery-manager-body .admin-layout {
    display: block;
    min-height: calc(100vh - var(--admin-header-height));
}

/* SIDEBAR */
.admin-sidebar {
    width: 220px;
    min-height: calc(100vh - 56px);
    background: #f7f7fb;
    border-right: 1px solid #d6d9e0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 26px 14px;
}

.admin-body .admin-sidebar {
    bottom: 0;
    left: 0;
    min-height: 0;
    position: fixed;
    top: var(--admin-header-height);
    z-index: 900;
}

.vendor-body .admin-sidebar {
    bottom: 0;
    left: 0;
    min-height: 0;
    position: fixed;
    top: var(--admin-header-height);
    z-index: 900;
}

.delivery-manager-body .admin-sidebar {
    bottom: 0;
    left: 0;
    min-height: 0;
    position: fixed;
    top: var(--admin-header-height);
    z-index: 900;
}

.vendor-sidebar {
    background: #f7f7fb;
}

.delivery-manager-sidebar {
    background: #f7f7fb;
}

.vendor-menu {
    gap: 10px;
}

.delivery-manager-menu {
    gap: 10px;
}

.vendor-menu a {
    font-size: 14px;
    font-weight: 500;
    padding: 11px 14px;
}

.delivery-manager-menu a {
    font-size: 14px;
    font-weight: 500;
    padding: 11px 14px;
}

.vendor-menu a i {
    font-size: 16px;
}

.delivery-manager-menu a i {
    font-size: 16px;
}

.vendor-menu a.active {
    background: #cfe3ff;
    color: #27364f;
}

.delivery-manager-menu a.active {
    background: #cfe3ff;
    color: #27364f;
}

.vendor-user-box .user-icon {
    overflow: hidden;
}

.delivery-manager-user-box .user-icon {
    overflow: hidden;
}

.vendor-user-box .user-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.delivery-manager-user-box .user-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* BRAND */
.admin-brand {
    margin-bottom: 34px;
    padding-left: 8px;
}

.admin-brand h2 {
    font-size: 20px;
    font-weight: 700;
    color: #18233f;
}

.admin-brand p {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #4d5870;
}

/* MENU */
.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 10px;
    border-radius: 4px;

    text-decoration: none;
    color: #343a46;

    font-size: 13px;
    font-weight: 600;
}

.admin-menu a i {
    width: 18px;
    font-size: 14px;
    color: #4b5563;
}

.admin-menu a.active {
    background: #cfe3ff;
    color: #27364f;
}

.admin-menu a:hover {
    background: #e9eef7;
}

/* USER BOX */
.admin-user-box {
    border-top: 1px solid #d6d9e0;
    padding-top: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;
    padding-left: 8px;
}

.user-icon {
    width: 34px;
    height: 34px;

    background: #263454;
    color: #ffffff;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-user-box .user-icon {
    overflow: hidden;
}

.admin-user-box .user-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.user-info h4 {
    font-size: 12px;
    color: #1f2937;
    font-weight: 700;
}

.user-info p {
    margin-top: 3px;
    font-size: 9px;
    color: #687386;
}

.logout {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-left: 8px;

    text-decoration: none;
    color: #3f4653;

    font-size: 13px;
    font-weight: 700;
}

/* MAIN CONTENT */
.admin-content {
    flex: 1;
    background: #faf8fc;
    min-width: 0;
    padding: 44px 56px 64px;
}

.admin-body .admin-content {
    margin-left: 220px;
    min-height: calc(100vh - var(--admin-header-height));
    width: calc(100% - 220px);
}

.vendor-body .admin-content {
    margin-left: 220px;
    min-height: calc(100vh - var(--admin-header-height));
    width: calc(100% - 220px);
}

.delivery-manager-body .admin-content {
    margin-left: 220px;
    min-height: calc(100vh - var(--admin-header-height));
    width: calc(100% - 220px);
}

.vendor-dashboard-page {
    margin: 0 auto;
    max-width: 1280px;
}

.delivery-manager-dashboard-page {
    margin: 0 auto;
    max-width: 1280px;
}

.admin-home-page {
    margin: 0 auto;
    max-width: 1280px;
}

.admin-home-stats {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 38px 0;
}

.admin-home-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
}

.admin-role-card {
    align-self: start;
    border-radius: 0;
    min-height: 88px;
}

.admin-role-card .category-summary-header {
    padding: 12px 16px;
}

.admin-role-card .category-summary-header h2 {
    font-size: 14px;
}

.admin-role-list {
    display: grid;
}

.admin-role-row {
    align-items: center;
    border-top: 1px solid #d4d6dd;
    display: flex;
    justify-content: space-between;
    padding: 7px 16px;
}

.admin-role-row span {
    color: #52607c;
    font-size: 12px;
    font-weight: 700;
}

.admin-role-row strong {
    color: #172344;
    font-size: 14px;
}

.admin-report-card .category-summary-header {
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
}

.admin-report-card .category-summary-header h2 {
    font-size: 18px;
}

.admin-report-card .category-summary-header p,
.admin-report-card .category-summary-header span {
    color: #596783;
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
    text-transform: uppercase;
}

.admin-report-card .category-summary-header span {
    background: #f4f6fb;
    border: 1px solid #d4d6dd;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 0;
    padding: 7px 10px;
}

.admin-report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-report-row {
    border-top: 1px solid #d4d6dd;
    min-height: 76px;
    padding: 16px 18px;
}

.admin-report-row:nth-child(odd) {
    border-right: 1px solid #d4d6dd;
}

.admin-report-row span {
    color: #596783;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-report-row strong {
    color: #172344;
    display: block;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .admin-home-stats,
    .vendor-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-home-grid,
    .vendor-dashboard-panels {
        grid-template-columns: 1fr;
    }
}

.vendor-stats-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: 38px 0;
}

.vendor-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vendor-dashboard-grid {
    margin-bottom: 24px;
}

.vendor-dashboard-panels {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}

.vendor-dashboard-list {
    display: grid;
}

.vendor-dashboard-row {
    align-items: center;
    border-top: 1px solid #d4d6dd;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 18px;
}

.vendor-dashboard-row strong,
.vendor-dashboard-row span {
    display: block;
}

.vendor-dashboard-row strong {
    color: #172344;
    font-size: 14px;
}

.vendor-dashboard-row span {
    color: #596783;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.vendor-dashboard-row > div:last-child {
    flex-shrink: 0;
    text-align: right;
}

.vendor-top-products-card {
    margin-bottom: 20px;
}

.vendor-top-products-card .admin-report-row small {
    color: #596783;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.delivery-manager-stats-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: 38px 0;
}

.delivery-manager-dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    margin-bottom: 24px;
}

.delivery-manager-profile-card {
    align-items: center;
    border-top: 1px solid #d4d6dd;
    display: flex;
    gap: 14px;
    padding: 18px 20px;
}

.delivery-manager-profile-card strong,
.delivery-manager-profile-card span {
    display: block;
}

.delivery-manager-profile-card strong {
    color: #172344;
    font-size: 15px;
    margin-bottom: 6px;
}

.delivery-manager-profile-card span {
    color: #596783;
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
}

.delivery-manager-card-actions {
    border-top: 1px solid #d4d6dd;
    display: grid;
    gap: 10px;
    padding: 18px 20px;
}

.delivery-manager-card-actions a {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #172344;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    text-decoration: none;
}

.delivery-manager-recent-card {
    margin-bottom: 24px;
}

.vendor-summary-card .category-summary-header p {
    color: #596783;
    font-size: 13px;
    margin-top: 6px;
}

.delivery-manager-summary-card .category-summary-header p,
.delivery-manager-side-card .category-summary-header p {
    color: #596783;
    font-size: 13px;
    margin-top: 6px;
}

.vendor-main-footer {
    margin-left: 220px;
    width: calc(100% - 220px);
}

.delivery-manager-main-footer {
    margin-left: 220px;
    width: calc(100% - 220px);
}

.vendor-profile-page {
    margin: 0 auto;
    max-width: 1120px;
}

.vendor-profile-message {
    margin: 24px 0;
}

.auth-message {
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 14px;
}

.auth-message p + p {
    margin-top: 4px;
}

.auth-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-message-success {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.vendor-profile-form {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.vendor-profile-panel {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    padding: 22px;
}

.vendor-profile-panel h2 {
    color: #172344;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 18px;
}

.vendor-logo-panel {
    align-items: center;
    display: flex;
    gap: 18px;
}

.vendor-profile-logo {
    align-items: center;
    background: #f7f7fb;
    border: 1px dashed #c7ccd6;
    border-radius: 12px;
    color: #687386;
    display: flex;
    flex-shrink: 0;
    font-size: 28px;
    height: 92px;
    justify-content: center;
    overflow: hidden;
    width: 92px;
}

.vendor-profile-logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vendor-logo-panel p {
    color: #596783;
    font-size: 13px;
    margin-bottom: 14px;
}

.vendor-file-btn {
    align-items: center;
    background: #172344;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
}

.vendor-profile-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vendor-profile-grid label {
    color: #4b5563;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
}

.vendor-profile-grid input,
.vendor-profile-grid select,
.vendor-profile-grid textarea {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    font: inherit;
    font-size: 14px;
    outline: none;
    padding: 0 12px;
    width: 100%;
}

.vendor-profile-grid input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.vendor-profile-grid input[type="file"] {
    background: transparent;
    border: none;
    height: auto;
    padding: 10px 0;
}

.vendor-profile-grid input {
    height: 42px;
}

.vendor-profile-grid select {
    height: 42px;
}

.vendor-profile-grid textarea {
    min-height: 96px;
    padding-top: 12px;
    resize: vertical;
}

.vendor-profile-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.vendor-profile-actions a,
.vendor-profile-actions button {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    text-decoration: none;
}

.vendor-profile-actions a {
    background: #fff;
    border: 1px solid #d4d6dd;
    color: #52607c;
}

.vendor-profile-actions button {
    background: #172344;
    border: none;
    color: #fff;
    cursor: pointer;
}

.vendor-inventory-page {
    margin: 0 auto;
    max-width: 1280px;
}

.vendor-inventory-grid {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.vendor-product-form .vendor-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vendor-file-field {
    justify-content: center;
}

.vendor-file-field span {
    color: #7b8394;
    font-size: 11px;
    font-weight: 600;
}

.vendor-wide-label {
    color: #4b5563;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    margin-top: 16px;
}

.vendor-wide-label textarea {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    font: inherit;
    min-height: 110px;
    outline: none;
    padding: 12px;
    resize: vertical;
}

.vendor-check-label {
    align-items: center;
    flex-direction: row !important;
    min-height: 68px;
    padding-top: 20px;
}

.vendor-check-label input {
    height: 16px;
    width: 16px;
}

.vendor-panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vendor-panel-heading h2 {
    margin-bottom: 0;
}

.vendor-product-search {
    width: 260px;
}

.vendor-product-table td strong,
.vendor-product-table td small {
    display: block;
}

.vendor-product-table td small {
    color: #596783;
    font-size: 12px;
    margin-top: 4px;
}

.vendor-low-stock-alert {
    align-items: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.vendor-low-stock {
    color: #dc2626 !important;
    font-weight: 800;
}

.vendor-secondary-btn {
    background: #fff !important;
    border: 1px solid #d4d6dd !important;
    color: #52607c !important;
}

.vendor-toggle-coupon {
    color: #64748b;
}

.platform-coupons-page .vendor-profile-panel h2 {
    color: #202331;
}

.platform-coupons-page .vendor-product-table td:nth-child(2) {
    color: #596783;
    font-weight: 700;
}

.seller-commission-rate {
    color: #202331;
    font-weight: 800;
}

.platform-reports-page {
    padding: 28px 32px;
}

.platform-report-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.platform-report-toolbar {
    align-items: center;
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
}

.platform-report-toolbar label {
    color: #596783;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.platform-report-toolbar input {
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    height: 40px;
    padding: 0 12px;
}

.platform-report-toolbar button {
    background: #172344;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    height: 40px;
    padding: 0 16px;
}

.platform-report-section {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    margin-bottom: 22px;
    padding: 20px;
}

.platform-section-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.platform-section-heading h2 {
    color: #202331;
    font-size: 22px;
}

.platform-section-heading p {
    color: #596783;
    margin-top: 6px;
}

.platform-report-grid,
.platform-delivery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-delivery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 18px;
}

.platform-report-card {
    border: 1px solid #d4d6dd;
    border-radius: 6px;
    padding: 16px;
}

.platform-report-card p {
    color: #596783;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.platform-report-card h3 {
    color: #172344;
    font-size: 24px;
}

.platform-report-card span {
    color: #596783;
    display: block;
    font-size: 12px;
    margin-top: 8px;
}

.platform-report-card.compact h3 {
    font-size: 20px;
}

.platform-report-columns {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-report-section .table-wrapper {
    overflow-x: auto;
}

@media (max-width: 1100px) {
    .platform-report-grid,
    .platform-delivery-grid,
    .platform-report-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .platform-reports-page {
        padding: 18px 14px;
    }

    .platform-report-header,
    .platform-section-heading,
    .platform-report-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-report-grid,
    .platform-delivery-grid,
    .platform-report-columns {
        grid-template-columns: 1fr;
    }
}

.vendor-orders-page {
    margin: 0 auto;
    max-width: none;
    width: 100%;
}

.vendor-orders-panel {
    margin-top: 34px;
    padding-left: 28px;
    padding-right: 28px;
}

.vendor-body .admin-content:has(.vendor-orders-page) {
    padding-left: 32px;
    padding-right: 32px;
}

.vendor-orders-panel .table-wrapper {
    overflow-x: visible;
}

.vendor-orders-table th,
.vendor-orders-table td {
    padding-left: 12px;
    padding-right: 12px;
}

.vendor-orders-page .page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.vendor-incoming-orders-btn {
    align-items: center;
    background: #172344;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    height: 40px;
    padding: 0 16px;
    white-space: nowrap;
}

.vendor-incoming-orders-btn:hover {
    background: #24345f;
}

.vendor-order-filter {
    align-items: center;
    display: flex;
    gap: 10px;
}

.vendor-order-search {
    width: 260px;
}

.vendor-order-filter label {
    color: #596783;
    font-size: 12px;
    font-weight: 800;
}

.vendor-order-filter select {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    height: 38px;
    min-width: 180px;
    padding: 0 10px;
}

.vendor-order-toggle-cell {
    width: 42px;
}

.vendor-order-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #172344;
    cursor: pointer;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.vendor-order-toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.vendor-order-toggle.is-open i {
    transform: rotate(180deg);
}

.vendor-order-detail-row td {
    background: #fbf9fd;
    padding: 0;
}

.vendor-order-dropdown {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.6fr) minmax(360px, 2fr);
    padding: 20px 22px;
}

.vendor-order-dropdown h3 {
    color: #172344;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.vendor-order-dropdown p {
    color: #52607c;
    font-size: 13px;
    line-height: 1.55;
}

.vendor-order-dropdown-items {
    min-width: 0;
}

.vendor-order-dropdown-items table {
    border-collapse: collapse;
    width: 100%;
}

.vendor-order-dropdown-items th,
.vendor-order-dropdown-items td {
    border-top: 1px solid #d4d6dd;
    padding: 10px 12px;
    text-align: left;
}

.vendor-order-dropdown-items th {
    color: #7b808a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.vendor-orders-table .status-badge.pending {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.vendor-orders-table .status-badge.confirmed {
    background: rgba(96, 165, 250, 0.15);
    color: #1d4ed8;
}

.vendor-orders-table .status-badge.shipped {
    background: rgba(79, 70, 229, 0.14);
    color: #4338ca;
}

.vendor-orders-table .status-badge.delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.vendor-order-action-btn,
.vendor-ship-form button {
    background: #172344;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    padding: 0 12px;
}

.vendor-ship-form {
    display: flex;
    gap: 8px;
    min-width: 260px;
}

.vendor-ship-form input {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    height: 30px;
    min-width: 150px;
    padding: 0 10px;
}

.vendor-muted-action {
    color: #7b8394;
    font-size: 12px;
    font-weight: 700;
}

.vendor-returns-page {
    margin: 0 auto;
    max-width: 1180px;
}

.vendor-returns-panel {
    margin-top: 34px;
}

.vendor-return-search {
    width: 260px;
}

.vendor-return-list {
    display: grid;
    gap: 16px;
}

.vendor-return-card {
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    padding: 18px;
}

.vendor-return-main {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.vendor-return-main h3 {
    color: #172344;
    font-size: 16px;
    margin: 10px 0 6px;
}

.vendor-return-main p,
.vendor-return-customer span,
.vendor-return-customer small,
.vendor-return-reasons p {
    color: #596783;
    font-size: 13px;
    margin: 0;
}

.vendor-return-customer {
    display: grid;
    gap: 4px;
    min-width: 190px;
    text-align: right;
}

.vendor-return-customer strong,
.vendor-return-reasons strong {
    color: #172344;
    font-size: 13px;
}

.vendor-return-reasons {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.vendor-return-reasons div {
    background: #f8fafc;
    border-left: 3px solid #172344;
    border-radius: 4px;
    padding: 12px;
}

.vendor-return-form {
    display: grid;
    gap: 10px;
}

.vendor-return-form textarea {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    font: inherit;
    min-height: 82px;
    padding: 12px;
    resize: vertical;
}

.vendor-return-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.vendor-return-actions button {
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    height: 34px;
    padding: 0 14px;
}

.vendor-return-approve {
    background: #15803d;
}

.vendor-return-reject {
    background: #dc2626;
}

.return-status.approved {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.return-status.rejected {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.return-status.completed {
    background: rgba(79, 70, 229, 0.14);
    color: #4338ca;
}

.vendor-reviews-page {
    margin: 0 auto;
    max-width: 1180px;
}

.vendor-reviews-panel {
    margin-top: 34px;
}

.vendor-review-search {
    width: 260px;
}

.vendor-review-list {
    display: grid;
    gap: 16px;
}

.vendor-review-item {
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    padding: 18px;
}

.vendor-review-meta {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.vendor-review-meta h3 {
    color: #172344;
    font-size: 16px;
    margin: 0 0 6px;
}

.vendor-review-meta p {
    color: #596783;
    font-size: 13px;
    margin: 0;
}

.vendor-review-meta span {
    margin-left: 10px;
}

.vendor-review-rating {
    color: #f59e0b;
    white-space: nowrap;
}

.vendor-review-text {
    color: #202331;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
}

.vendor-review-reply {
    background: #f8fafc;
    border-left: 3px solid #172344;
    border-radius: 4px;
    margin-bottom: 14px;
    padding: 12px;
}

.vendor-review-reply strong {
    color: #172344;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.vendor-review-reply p {
    color: #42506b;
    font-size: 13px;
    margin: 0;
}

.vendor-review-reply-form {
    display: grid;
    gap: 10px;
}

.vendor-review-reply-form textarea {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    font: inherit;
    min-height: 82px;
    padding: 12px;
    resize: vertical;
}

.vendor-review-reply-form button {
    align-items: center;
    background: #172344;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    height: 34px;
    justify-content: center;
    justify-self: flex-end;
    padding: 0 14px;
}

.vendor-analytics-page {
    margin: 0 auto;
    max-width: 1280px;
}

.vendor-analytics-panel {
    margin-top: 22px;
}

.vendor-analytics-period[hidden] {
    display: none;
}

.vendor-earnings-page {
    margin: 0 auto;
    max-width: 1280px;
}

.vendor-earnings-panel {
    margin-top: 22px;
}

.vendor-earnings-period[hidden] {
    display: none;
}

.vendor-panel-subtitle {
    color: #596783;
    font-size: 13px;
    margin-top: 6px;
}

.vendor-commission-cell {
    color: #dc2626 !important;
    font-weight: 800;
}

.vendor-product-actions {
    border-top: 1px solid #eef0f4;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 72px;
        padding: 20px 10px;
    }

    .admin-brand h2,
    .admin-brand p,
    .admin-menu a span,
    .user-info div,
    .logout {
        display: none;
    }

    .admin-menu a {
        justify-content: center;
    }

    .admin-content {
        padding: 28px 18px 44px;
    }

    .admin-body .admin-content {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

    .vendor-body .admin-content {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

    .delivery-manager-body .admin-content {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

    .vendor-stats-grid {
        grid-template-columns: 1fr;
    }

    .delivery-manager-stats-grid,
    .delivery-manager-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-home-stats {
        grid-template-columns: 1fr;
    }

    .admin-home-grid {
        grid-template-columns: 1fr;
    }

    .admin-report-list {
        grid-template-columns: 1fr;
    }

    .admin-report-row:nth-child(odd) {
        border-right: 0;
    }

    .vendor-status-badge {
        display: none;
    }

    .delivery-manager-status-badge {
        display: none;
    }

    .vendor-main-footer {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

    .delivery-manager-main-footer {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

    .vendor-logo-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .vendor-profile-grid {
        grid-template-columns: 1fr;
    }

    .vendor-product-form .vendor-profile-grid {
        grid-template-columns: 1fr;
    }

    .vendor-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .vendor-product-search {
        width: 100%;
    }

    .vendor-order-filter {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .vendor-order-search,
    .vendor-order-filter select {
        width: 100%;
    }

    .vendor-order-dropdown {
        grid-template-columns: 1fr;
    }

    .vendor-order-dropdown-items {
        overflow-x: auto;
    }
}
.admin-main {
    padding: 0;
    min-height: 100%;
    background: #fbf8fc;
}

.vendor-approval-page {
    max-width: 1280px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 36px;
    color: #172344;
    margin-bottom: 12px;
}

.page-header p {
    color: #4f5565;
    font-size: 17px;
    line-height: 1.6;
}

.stats-row {
    display: flex;
    gap: 24px;
    margin: 48px 0 44px;
    flex-wrap: wrap;
}

.stat-card {
    width: 285px;
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    padding: 22px 24px;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #dce7ff;
    color: #18284a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-top span {
    color: #d62828;
    font-size: 12px;
    font-weight: 700;
}

.stat-top span.approved-stat-label {
    color: #15803d;
}

.stat-card p {
    margin-top: 20px;
    color: #555a66;
    font-weight: 600;
}

.stat-card h2 {
    margin-top: 6px;
    color: #172344;
    font-size: 32px;
}

.approval-card {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
}

.approval-header {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.approval-header h2 {
    color: #172344;
    font-size: 24px;
}

.approval-tools {
    display: flex;
    gap: 12px;
}

.search-box-small {
    width: 255px;
    height: 36px;
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.search-box-small input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
}

.filter-btn,
.reject-btn {
    background: #fff;
    border: 1px solid #8d929d;
    padding: 8px 14px;
    border-radius: 2px;
    cursor: pointer;
}

.approval-table {
    width: 100%;
    border-collapse: collapse;
}

.approval-table th,
.approval-table td {
    padding: 16px 24px;
    border-top: 1px solid #d4d6dd;
    text-align: left;
}

.approval-table th {
    background: #f7f5f8;
    color: #555a66;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.business-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.business-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-logo.blue {
    background: #d8edf4;
}

.business-logo.dark {
    background: #142326;
    color: white;
}

.business-logo.green {
    background: #e5f4e6;
}

.business-info h4 {
    color: #1c2438;
    margin-bottom: 3px;
}

.business-info p,
.approval-table small {
    display: block;
    color: #596070;
    font-size: 12px;
}

.approve-btn {
    background: #172344;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 2px;
    font-weight: 700;
    margin-right: 8px;
    cursor: pointer;
}

.approve-btn:disabled,
.reject-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.delivery-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.failed-delivery-table td {
    vertical-align: top;
}

.delivery-history-table td {
    vertical-align: top;
}

.delivery-history-table strong,
.delivery-history-table small {
    display: block;
}

.delivery-history-table strong {
    margin-bottom: 4px;
}

.failed-delivery-inline-form {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.failed-delivery-inline-form select,
.failed-delivery-inline-form textarea {
    background: #fbf9fd;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #1f2937;
    font: inherit;
    font-size: 12px;
    outline: none;
    padding: 8px 10px;
    width: 100%;
}

.failed-delivery-inline-form textarea {
    min-height: 68px;
    resize: vertical;
}

.failed-delivery-inline-form button {
    margin-right: 0;
}

.approval-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.approval-status.approved {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.approval-status.pending {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.approval-status.rejected,
.approval-status.suspended {
    background: rgba(239, 68, 68, 0.13);
    color: #b91c1c;
}

.suspend-btn {
    border-color: #b91c1c;
    color: #b91c1c;
}

.seller-action-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(250, 248, 252, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.seller-action-modal-backdrop[hidden] {
    display: none;
}

.seller-action-modal {
    width: min(100%, 520px);
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(23, 35, 68, 0.16);
}

.seller-action-form label {
    color: #202331;
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
}

.seller-action-form textarea {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.seller-action-form input {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    height: 38px;
    outline: none;
    padding: 0 12px;
}

.seller-action-form select {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    height: 38px;
    outline: none;
    padding: 0 12px;
}

.seller-action-buttons {
    margin-top: 18px;
    padding-right: 0;
}

.account-create-modal {
    width: min(100%, 560px);
}

.account-create-form {
    display: grid;
    gap: 14px;
}

.delivery-assign-selected {
    background: #f8fafc;
    border: 1px solid #d4d6dd;
    border-radius: 6px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.delivery-assign-selected strong {
    color: #172344;
    font-size: 15px;
}

.delivery-assign-selected span {
    color: #596070;
    font-size: 13px;
}

.account-management-page .page-header p,
.account-subtitle {
    color: #596070;
    font-size: 13px;
    margin-top: 6px;
}

.account-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-table td {
    vertical-align: middle;
}

.account-table .approve-btn,
.account-table .reject-btn {
    min-width: 108px;
}

.product-tools {
    align-items: center;
    flex-wrap: wrap;
}

.admin-filter-select {
    background: #fff;
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font-size: 13px;
    height: 36px;
    min-width: 170px;
    padding: 0 10px;
}

.product-thumb {
    align-items: center;
    background: #eef2f7;
    border-radius: 8px;
    color: #52607c;
    display: flex;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.product-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-table small {
    display: block;
    margin-top: 3px;
}

.order-tools {
    max-width: 760px;
}

.order-date-input {
    min-width: 148px;
}

.order-date-filter {
    color: #52607c;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
}

.order-table small {
    color: #596070;
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.order-status.pending,
.order-status.confirmed,
.order-status.processing,
.order-status.shipped {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.order-status.delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.order-status.cancelled,
.order-status.return_requested,
.order-status.returned {
    background: rgba(239, 68, 68, 0.13);
    color: #b91c1c;
}

.empty-cell,
.admin-loading,
.admin-error {
    color: #596070;
    padding: 24px;
}

.table-footer {
    border-top: 1px solid #d4d6dd;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-footer p {
    color: #596070;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination button {
    border: none;
    background: transparent;
    padding: 9px 12px;
    cursor: pointer;
}

.pagination .active {
    background: #172344;
    color: white;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 30px;
    }

    .stats-row {
        margin: 32px 0;
    }

    .stat-card,
    .search-box-small {
        width: 100%;
    }

    .approval-header,
    .table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}
.category-page {
    background: #fbf8fc;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 58px;
}

.category-header h1 {
    font-size: 36px;
    color: #172344;
    font-weight: 800;
    letter-spacing: 0;
}

.add-category-btn {
    background: #172344;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(23, 35, 68, 0.25);
    cursor: pointer;
    text-decoration: none;
}

.add-category-btn i {
    margin-right: 8px;
}

.category-form {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 34px;
}

.category-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-form label {
    color: #52607c;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    text-transform: uppercase;
}

.category-form input,
.category-form select {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font-size: 15px;
    height: 42px;
    padding: 0 12px;
    text-transform: none;
}

.category-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.category-form button:disabled,
.edit-category:disabled,
.delete-category:disabled,
.add-subcategory:disabled {
    cursor: wait;
    opacity: 0.65;
}

.category-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 38px;
}

.category-stat-card {
    min-height: 88px;
    border: 1px solid #d4d6dd;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
}

.category-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #172344;
}

.category-stat-icon.blue {
    background: #cfe3ff;
}

.category-stat-icon.purple {
    background: #dce5ff;
}

.category-stat-icon.yellow {
    background: #ffe0a3;
}

.category-stat-icon.green {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.category-stat-card p {
    color: #596783;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-size: 12px;
}

.category-stat-card h2 {
    font-size: 28px;
    color: #202331;
    line-height: 1;
}

.clickable-stat-card {
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.clickable-stat-card:hover,
.clickable-stat-card:focus {
    border-color: #8d929d;
    box-shadow: 0 10px 22px rgba(23, 35, 68, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.category-summary-card {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    overflow: hidden;
}

.category-summary-header {
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-summary-header h2 {
    font-size: 22px;
    color: #172344;
}

.category-feedback {
    border-top: 1px solid #d4d6dd;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 20px;
}

.category-feedback.error {
    background: #fff7ed;
}

.category-feedback.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.summary-actions {
    display: flex;
    gap: 8px;
}

.summary-actions button {
    width: 24px;
    height: 28px;
    border: 1px solid #cbd1dd;
    background: #f8f9fb;
    color: #172344;
    border-radius: 3px;
    cursor: pointer;
}

.category-tools {
    align-items: center;
    display: flex;
    gap: 12px;
}

.category-search-box {
    align-items: center;
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    height: 38px;
    padding: 0 12px;
    width: 260px;
}

.category-search-box i {
    color: #596783;
    font-size: 13px;
}

.category-search-box input,
.category-product-filter {
    background: transparent;
    border: none;
    color: #202331;
    font-size: 13px;
    outline: none;
}

.category-search-box input {
    width: 100%;
}

.category-product-filter {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    height: 38px;
    min-width: 220px;
    padding: 0 12px;
}

.category-pagination {
    align-items: center;
    display: flex;
    gap: 8px;
}

.category-pagination[hidden] {
    display: none;
}

.category-pagination > button,
#categoryPageNumbers button {
    align-items: center;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    min-width: 34px;
}

.category-pagination > button {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #172344;
}

.category-pagination > button:disabled {
    color: #8d929d;
    cursor: not-allowed;
    opacity: 0.75;
}

#categoryPageNumbers {
    display: flex;
    gap: 6px;
}

#categoryPageNumbers button {
    border-radius: 4px;
    font-weight: 500;
}

#categoryPageNumbers button.active {
    background: #172344;
    color: #fff;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
}

.category-table th,
.category-table td {
    border-top: 1px solid #d4d6dd;
    padding: 18px 20px;
    text-align: left;
    color: #52607c;
}

.category-table th {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #7b808a;
}

.category-table td:first-child {
    color: #202331;
}

.main-category td {
    background: #fbf8fc;
    font-size: 13px;
    font-weight: 600;
}

.main-category i {
    margin-right: 10px;
    color: #172344;
}

.primary-badge {
    background: #d8e7fa;
    color: #586c87;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
}

.sub-category td:first-child {
    padding-left: 30px;
    color: #202331;
}

.tree-line {
    display: inline-block;
    height: 18px;
    border-left: 2px solid #cfd3dc;
    margin: 0 20px 0 10px;
    vertical-align: middle;
}

.category-actions-cell {
    white-space: nowrap;
}

.edit-category,
.delete-category,
.add-subcategory {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    margin-right: 20px;
}

.edit-category {
    color: #172344;
}

.add-subcategory {
    color: #15803d;
}

.delete-category {
    color: #e00000;
}

.delete-category:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.category-products-card {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    margin-top: 22px;
    overflow: hidden;
}

.category-products-header {
    align-items: center;
    border-bottom: 1px solid #d4d6dd;
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
}

.category-products-header h2 {
    color: #172344;
    font-size: 20px;
}

.category-products-header p {
    color: #596783;
    font-size: 13px;
}

.category-products-list {
    display: grid;
}

.category-product-item {
    align-items: center;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}

.category-product-item:last-child {
    border-bottom: none;
}

.category-product-item h3 {
    color: #202331;
    font-size: 14px;
    margin: 0 0 4px;
}

.category-product-item p,
.category-product-details span {
    color: #596783;
    font-size: 12px;
}

.category-product-details {
    align-items: center;
    display: flex;
    gap: 16px;
}

.category-product-details strong {
    border-radius: 4px;
    font-size: 11px;
    padding: 5px 8px;
}

.category-product-details strong.available {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.category-product-details strong.unavailable {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

body.modal-open {
    overflow: hidden;
}

.category-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(250, 248, 252, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 32px 20px;
}

.category-modal-backdrop[hidden] {
    display: none;
}

.category-modal {
    width: min(100%, 900px);
    margin: auto;
}

.category-modal-heading {
    margin-bottom: 24px;
}

.category-modal-heading h2 {
    color: #202331;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 4px;
}

.category-modal-heading p {
    color: #4f5565;
    font-size: 13px;
    margin: 0;
}

.category-form.category-modal-form {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.category-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(270px, 0.95fr);
    gap: 16px;
}

.category-form-panel {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(23, 35, 68, 0.06);
}

.category-info-panel {
    min-height: 296px;
    padding: 22px;
}

.category-assets-panel {
    min-height: 340px;
    padding: 16px;
}

.category-form-panel h3 {
    align-items: center;
    color: #172344;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    letter-spacing: 0;
    margin: 0 0 18px;
}

.category-form-panel label {
    color: #202331;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    text-transform: none;
}

.category-form-panel label + label {
    margin-top: 48px;
}

.category-form-panel input[type="text"],
.category-form-panel textarea {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    font-size: 13px;
    outline: none;
    padding: 0 10px;
    text-transform: none;
    width: 100%;
}

.category-form-panel input[type="text"] {
    height: 36px;
}

.category-form-panel textarea {
    height: 102px;
    padding-top: 12px;
    resize: vertical;
}

.category-form-panel input::placeholder,
.category-form-panel textarea::placeholder {
    color: #7b8394;
}

.thumbnail-drop {
    align-items: center;
    border: 2px dashed #cbd0db;
    border-radius: 4px;
    color: #202331;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 150px;
    justify-content: center;
    margin: 0;
    text-align: center;
}

.thumbnail-drop input {
    display: none;
}

.thumbnail-drop .upload-icon {
    align-items: center;
    background: #efedf1;
    border-radius: 8px;
    color: #687386;
    display: flex;
    font-size: 18px;
    height: 44px;
    justify-content: center;
    margin-bottom: 8px;
    width: 44px;
}

.thumbnail-drop strong {
    font-size: 12px;
}

.thumbnail-drop small {
    color: #4f5565;
    font-size: 10px;
    font-weight: 500;
}

.thumbnail-drop em {
    color: #172344;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    margin-top: 6px;
}

.icon-preview-label {
    color: #202331;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 18px 0 8px;
    text-transform: uppercase;
}

.icon-preview-row {
    display: grid;
    grid-template-columns: repeat(4, 54px);
    gap: 8px;
}

.icon-preview-row button {
    align-items: center;
    background: #efedf1;
    border: 1px solid #e1dfe5;
    border-radius: 3px;
    color: #343a46;
    cursor: pointer;
    display: flex;
    height: 54px;
    justify-content: center;
}

.icon-preview-row .add-icon {
    background: #fff;
    border: 2px dashed #cbd0db;
}

.category-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-right: 290px;
}

.modal-cancel-btn,
.modal-create-btn {
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    height: 30px;
    min-width: 82px;
    padding: 0 18px;
}

.modal-cancel-btn {
    background: #fbf8fc;
    border: 1px solid #d4d6dd;
    color: #52607c;
}

.modal-create-btn {
    align-items: center;
    background: #172344;
    border: 1px solid #172344;
    color: #fff;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-width: 148px;
    box-shadow: 0 3px 6px rgba(23, 35, 68, 0.2);
}

.modal-create-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.modal-create-btn.danger-action {
    background: #b91c1c;
    border-color: #b91c1c;
}

.seller-action-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    background: rgba(250, 248, 252, 0.94);
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
}

.seller-action-modal-backdrop[hidden] {
    display: none;
}

.seller-action-modal {
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(23, 35, 68, 0.16);
    margin: auto;
    padding: 22px;
    width: min(100%, 460px);
}

.seller-action-form label {
    color: #202331;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
}

.seller-action-form textarea {
    border: 1px solid #cfd2dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    font-size: 13px;
    min-height: 118px;
    outline: none;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.seller-action-form textarea::placeholder {
    color: #7b8394;
}

.seller-action-buttons {
    padding-right: 0;
}

@media (max-width: 900px) {
    .category-page {
        padding: 0;
    }

    .category-header,
    .category-summary-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .category-stats,
    .category-form-grid {
        grid-template-columns: 1fr;
    }

    .category-stat-card {
        width: 100%;
    }

    .category-tools,
    .category-product-item,
    .category-products-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-search-box,
    .category-product-filter {
        width: 100%;
    }

    .category-product-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .category-modal-backdrop {
        padding: 16px;
    }

    .category-modal-grid {
        grid-template-columns: 1fr;
    }

    .category-modal-actions {
        padding-right: 0;
    }
}

.dispute-page {
    padding: 24px 30px;
}

.dispute-header h1 {
    font-size: 30px;
    color: #202331;
    margin-bottom: 8px;
}

.dispute-header p {
    color: #4f5565;
    font-size: 15px;
    line-height: 1.5;
}

.dispute-tools {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 14px;
}

.dispute-content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
    background: #fff;
    border: 1px solid #d4d6dd;
    border-radius: 8px;
    overflow: hidden;
}

.dispute-table-box {
    overflow-x: auto;
}

.dispute-table {
    width: 100%;
    border-collapse: collapse;
}

.dispute-table th,
.dispute-table td {
    border-bottom: 1px solid #d4d6dd;
    padding: 16px 20px;
    text-align: left;
    color: #202331;
}

.dispute-table th {
    background: #fbf8fc;
    color: #596783;
    font-size: 14px;
    letter-spacing: 1px;
}

.dispute-table td small {
    display: block;
    color: #42506b;
    font-size: 13px;
    margin-top: 3px;
}

.dispute-table tr[data-dispute-row] {
    cursor: pointer;
}

.dispute-table tr[data-dispute-row].active td,
.dispute-table tr[data-dispute-row]:hover td {
    background: #fbf8fc;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.status-badge.urgent {
    background: #ffd8d3;
    color: #e12222;
}

.status-badge.progress {
    background: #cfe3ff;
    color: #425f82;
}

.status-badge.resolved {
    background: #dedee2;
    color: #333;
}

.dispute-detail {
    border-left: 1px solid #d4d6dd;
    padding: 22px;
}

.detail-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-title h2 {
    font-size: 22px;
    color: #202331;
}

.detail-title i {
    font-size: 22px;
    color: #42506b;
}

.selected-case {
    margin-top: 18px;
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    padding: 16px;
    background: #fff;
}

.selected-case p {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #596783;
    font-size: 12px;
    margin-bottom: 10px;
}

.selected-case h4 {
    color: #172344;
    font-size: 16px;
    margin-bottom: 8px;
}

.selected-case span {
    color: #3c465a;
    display: block;
    line-height: 1.5;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.case-meta div,
.case-note {
    border: 1px solid #d4d6dd;
    border-radius: 4px;
    padding: 12px;
}

.case-meta dt,
.case-note h4 {
    color: #596783;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.case-meta dd,
.case-note p {
    color: #202331;
    line-height: 1.45;
    margin: 0;
}

.case-note {
    margin-top: 16px;
}

.dispute-admin-messages {
    display: grid;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.dispute-admin-message {
    border: 1px solid #d4d6dd;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.dispute-admin-message.from-admin {
    border-color: #cfe3ff;
    background: #f5f9ff;
}

.dispute-admin-message div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.dispute-admin-message strong {
    color: #172344;
    font-size: 13px;
}

.dispute-admin-message time {
    color: #596783;
    font-size: 11px;
}

.dispute-admin-message p {
    white-space: pre-wrap;
}

.detail-actions {
    border-top: 1px solid #d4d6dd;
    margin-top: 18px;
    padding-top: 18px;
    display: grid;
    gap: 12px;
}

.dispute-note-input {
    border: 1px solid #cfd3dc;
    border-radius: 4px;
    color: #202331;
    font: inherit;
    min-height: 88px;
    padding: 12px;
    resize: vertical;
}

.detail-actions button {
    height: 40px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.detail-actions button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.form-feedback {
    color: #2d5c36;
    font-size: 13px;
    min-height: 18px;
}

.form-feedback.error {
    color: #b91c1c;
}

.refund-btn {
    background: #172344;
    color: white;
    border: none;
}

.deny-btn {
    background: #fff;
    color: #e12222;
    border: 1px solid #e12222;
}

.info-btn {
    background: #fff;
    color: #202331;
    border: 1px solid #8d929d;
}

@media (max-width: 980px) {
    .dispute-content {
        grid-template-columns: 1fr;
    }

    .dispute-detail {
        border-left: 0;
        border-top: 1px solid #d4d6dd;
    }
}

@media (max-width: 640px) {
    .dispute-page {
        padding: 18px 14px;
    }

    .dispute-tools {
        justify-content: stretch;
    }

    .case-meta {
        grid-template-columns: 1fr;
    }
}
.main-footer {
    width: 100%;
    border-top: 1px solid #d4d6dd;
    background: #fbf8fc;
    padding: 34px 24px;
    margin-top: 40px;
}

.storefront-main-footer {
    margin-top: 0;
}

.footer-content h3 {
    color: #172344;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-content p {
    color: #202331;
    font-size: 15px;
}
