:root{
    --sd-purple:#5B3DF5;
    --sd-purple-hover:#4C2FE0;
    --sd-purple-dark:#21066f;
    --sd-purple-soft:#6d4df5;
    --sd-orange:#FF8A32;
    --sd-ink:#101633;
    --sd-muted:#667085;
    --sd-border:#e8e7f3;
    --sd-bg:#F6F8FC;
    --sd-white:#fff;
    --sd-success:#27AE60;
    --sd-warning:#F2C94C;
    --sd-danger:#EB5757;
    --sd-info:#2D9CDB;
    --sd-sidebar-w:260px;
    --sd-shadow:0 10px 35px rgba(30,40,80,.08);
    --sd-radius:22px;
    --sd-radius-sm:14px;
}

/* ===== RESET FOR DASHBOARD ===== */
.sd-dashboard-body{
    margin:0;
    font-family:Poppins,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--sd-ink);
    background:var(--sd-bg);
    min-height:100vh;
    -webkit-font-smoothing:antialiased;
}

/* ===== SIDEBAR v3 ===== */
.sd-sidebar{
    position:fixed !important;
    inset:0 auto 0 0 !important;
    width:260px !important;
    min-height:100vh !important;
    padding:22px 14px !important;
    background:linear-gradient(180deg,#2D1A7F 0%,#1B0B5C 100%) !important;
    color:#fff !important;
    display:flex !important;
    flex-direction:column !important;
    z-index:1000 !important;
    box-shadow:8px 0 35px rgba(27,11,92,.22) !important;
    overflow-y:auto;overflow-x:hidden;
    scrollbar-width:none;
}
.sd-sidebar::-webkit-scrollbar{display:none}

.sd-sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 8px 26px}
.sd-brand-logo{
    width:46px;height:46px;border-radius:15px;flex-shrink:0;
    background:linear-gradient(135deg,#5B3DF5,#FF8A32);
    display:flex;align-items:center;justify-content:center;
    font-weight:900;font-size:20px;color:#fff;
    box-shadow:0 10px 25px rgba(255,138,50,.25);
}
.sd-brand-icon{
    width:46px;height:46px;border-radius:15px;flex-shrink:0;
    background:linear-gradient(135deg,#5B3DF5,#FF8A32);
    display:flex;align-items:center;justify-content:center;
    font-size:19px;color:#fff;
    box-shadow:0 10px 25px rgba(255,138,50,.25);
}
.sd-brand-title{font-size:19px;font-weight:800;line-height:1;color:#fff}
.sd-brand-title span{color:#FF8A32}
.sd-brand-subtitle{font-size:11px;color:rgba(255,255,255,.65);margin-top:5px}

.sd-sidebar-nav{display:flex;flex-direction:column;gap:6px;flex:1;overflow-y:auto;min-height:0}
.sd-sidebar-nav::-webkit-scrollbar{width:4px}
.sd-sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:20px}

.sd-nav-link,.sd-nav-item{
    height:46px !important;padding:0 14px !important;border-radius:14px !important;
    display:flex !important;align-items:center !important;gap:12px !important;
    color:rgba(255,255,255,.78) !important;text-decoration:none !important;
    font-size:14px !important;font-weight:700 !important;
    transition:all .22s ease !important;position:relative;
}
.sd-nav-link i,.sd-nav-item i{
    width:22px !important;font-size:16px !important;text-align:center !important;
    color:rgba(255,255,255,.86) !important;
}
.sd-nav-link:hover,.sd-nav-item:hover{
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
}
.sd-nav-link.active,.sd-nav-item.active{
    background:linear-gradient(135deg,rgba(91,61,245,.95),rgba(111,82,255,.85)) !important;
    color:#fff !important;font-weight:800 !important;
    box-shadow:0 10px 24px rgba(91,61,245,.28) !important;
}
.sd-nav-link.active i,.sd-nav-item.active i{color:#fff !important}

.sd-nav-divider{height:1px;background:rgba(255,255,255,.10);margin:12px 8px}
.sd-nav-section-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:rgba(255,255,255,.3);padding:14px 14px 6px}

/* Bottom area */
.sd-sidebar-bottom{flex-shrink:0;padding-top:12px}

.sd-mobile-card,.sd-app-card{
    border-radius:20px;padding:18px;
    background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.06));
    border:1px solid rgba(255,255,255,.12);margin-bottom:16px;
}
.sd-mobile-card .sd-icon-box,.sd-app-icon{
    width:42px;height:42px;border-radius:13px;margin-bottom:14px;
    display:flex;align-items:center;justify-content:center;
    background:rgba(255,255,255,.12);color:#FF8A32;font-size:18px;
}
.sd-mobile-card h4,.sd-app-card h4{font-size:15px;font-weight:800;margin:14px 0 8px;color:#fff;line-height:1.35}
.sd-mobile-card p,.sd-app-card p{font-size:12px;color:rgba(255,255,255,.72);margin-bottom:14px;line-height:1.45}
.sd-mobile-card button,.sd-app-button{
    width:100%;height:40px;border:0;border-radius:12px;
    background:rgba(255,255,255,.18);color:#fff;font-weight:800;
    font-size:13px;cursor:pointer;transition:all .22s ease;
}
.sd-mobile-card button:hover,.sd-app-button:hover{background:rgba(255,255,255,.25);transform:translateY(-1px)}

.sd-user-card{
    height:60px;border-radius:18px;padding:10px;
    display:flex;align-items:center;gap:10px;
    background:rgba(255,255,255,.08);
}
.sd-user-avatar{
    width:38px;height:38px;flex:0 0 38px;border-radius:50%;
    background:#fff;color:#5B3DF5;
    display:flex;align-items:center;justify-content:center;
    font-weight:900;font-size:13px;
}
.sd-user-info{flex:1;min-width:0}
.sd-user-info strong{display:block;font-size:13px;color:#fff;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-user-info span{display:block;font-size:11px;color:rgba(255,255,255,.65);margin-top:2px}
.sd-user-logout{color:rgba(255,255,255,.70);font-size:15px;transition:all .22s ease;text-decoration:none;background:none;border:none;cursor:pointer}
.sd-user-logout:hover{color:#fff}
.sd-user-card{position:relative}
.sd-user-menu{
    display:none;margin-top:8px;
    background:rgba(255,255,255,.1);border-radius:10px;padding:4px;
    border:1px solid rgba(255,255,255,.12);
}
.sd-user-menu-open{display:block}
.sd-user-menu-item{
    display:flex;align-items:center;gap:8px;padding:8px 12px;
    border-radius:8px;font-size:12px;font-weight:500;color:rgba(255,255,255,.75);
    text-decoration:none;transition:all .15s;cursor:pointer;
}
.sd-user-menu-item:hover{background:rgba(255,255,255,.12);color:#fff}

/* Tenant switcher */
.sd-sidebar-tenant{margin:0 0 12px;position:relative}
.sd-tenant-current{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.8);font-size:13px;font-weight:600;cursor:pointer;transition:all .2s}
.sd-tenant-current:hover{background:rgba(255,255,255,.12)}
.sd-tenant-current i:first-child{font-size:14px;color:#FF8A32;width:18px;text-align:center}
.sd-tenant-current span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-tenant-arrow{font-size:10px;opacity:.5}
.sd-tenant-list{display:none;position:absolute;bottom:100%;left:0;right:0;background:#1B0B5C;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:4px;margin-bottom:4px;box-shadow:0 12px 32px rgba(0,0,0,.5);z-index:10;max-height:200px;overflow-y:auto}
.sd-tenant-open{display:block}
.sd-tenant-item{display:flex;align-items:center;gap:8px;width:100%;padding:9px 12px;border:none;background:none;color:rgba(255,255,255,.6);font-size:13px;font-weight:500;border-radius:10px;cursor:pointer;text-align:left;transition:all .15s}
.sd-tenant-item:hover{background:rgba(255,255,255,.1);color:#fff}
.sd-tenant-item.active{color:#FF8A32;font-weight:700}
.sd-tenant-item i{width:16px;font-size:12px;text-align:center}

/* Icon boxes reutilizables */
.sd-icon-box{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.sd-icon-box.primary{background:linear-gradient(135deg,#5B3DF5,#7C5CFF);color:#fff;box-shadow:0 10px 22px rgba(91,61,245,.25)}
.sd-icon-box.orange{background:rgba(255,138,50,.14);color:#FF8A32}
.sd-icon-box.green{background:rgba(39,174,96,.14);color:#27AE60}
.sd-icon-box.blue{background:rgba(45,156,219,.14);color:#2D9CDB}
.sd-icon-box.red{background:rgba(235,87,87,.14);color:#EB5757}
.sd-icon-box.soft{background:rgba(91,61,245,.10);color:#5B3DF5}

/* Mobile toggle */
.sd-sidebar-toggle{
    display:none;position:fixed;top:18px;left:18px;z-index:210;
    width:44px;height:44px;border-radius:12px;border:none;
    background:#fff;color:var(--sd-purple);
    font-size:18px;cursor:pointer;
    box-shadow:0 4px 16px rgba(0,0,0,.15);
}
.sd-sidebar-overlay{
    display:none;position:fixed;inset:0;
    background:rgba(0,0,0,.5);z-index:190;
}

/* ===== MAIN CONTENT ===== */
.sd-main-content{
    margin-left:var(--sd-sidebar-w);
    min-height:100vh;
    padding:0;
    position:relative;
    background:#F6F8FC;
}
.sd-main-content::before{
    content:"";position:fixed;
    top:0;left:var(--sd-sidebar-w);right:0;bottom:0;
    background:
        radial-gradient(ellipse 300px 200px at 80% 10%,rgba(91,61,245,.03),transparent),
        radial-gradient(ellipse 250px 180px at 20% 80%,rgba(255,138,50,.02),transparent);
    pointer-events:none;z-index:0;
}
.sd-main-inner{
    position:relative;z-index:1;
    padding:20px 28px 16px;
}
.sd-content-shell{
    background:#fff;
    border-radius:var(--sd-radius);
    box-shadow:var(--sd-shadow);
    border:1px solid rgba(0,0,0,.03);
    padding:24px;
    min-height:calc(100vh - 120px);
}
.sd-content-shell .sd-kpi-card,
.sd-content-shell .sd-filter-card,
.sd-content-shell .sd-table-card,
.sd-content-shell .sd-summary-card,
.sd-content-shell .sd-pagination-card{
    box-shadow:none;
    border:1px solid var(--sd-border);
}
.sd-content-shell .sd-kpi-card:hover{box-shadow:0 8px 24px rgba(30,40,80,.1)}
.sd-content-shell .sd-help-card{box-shadow:none}

/* ===== DASHBOARD HEADER ===== */
.sd-dash-header{
    display:flex;justify-content:space-between;align-items:center;
    margin-bottom:24px;flex-wrap:wrap;gap:12px;
}
.sd-dash-greeting h1{
    font-size:26px;font-weight:700;color:var(--sd-ink);margin:0 0 4px;
    letter-spacing:-.3px;line-height:1.25;
}
.sd-dash-greeting p{font-size:14px;color:var(--sd-muted);margin:0;font-weight:400}
.sd-dash-meta{display:flex;align-items:center;gap:10px}
.sd-dash-date{
    display:flex;align-items:center;gap:6px;
    background:#fff;border:1px solid var(--sd-border);
    padding:6px 14px;border-radius:var(--sd-radius-sm);
    font-size:12px;font-weight:600;color:var(--sd-ink);
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.sd-dash-date i{color:var(--sd-purple);font-size:12px}
.sd-dash-notif{
    width:38px;height:38px;border-radius:12px;border:1px solid var(--sd-border);
    background:#fff;color:var(--sd-ink);font-size:15px;
    cursor:pointer;position:relative;display:grid;place-items:center;
    box-shadow:0 2px 8px rgba(0,0,0,.04);transition:all .2s;
}
.sd-dash-notif:hover{border-color:var(--sd-purple);color:var(--sd-purple)}
.sd-dash-notif-badge{
    position:absolute;top:-4px;right:-4px;
    width:20px;height:20px;border-radius:50%;
    background:var(--sd-orange);color:#fff;font-size:10px;font-weight:800;
    display:grid;place-items:center;border:2px solid #F6F8FC;
}

/* ===== KPI CARDS ===== */
.sd-kpi-grid{
    display:grid;grid-template-columns:repeat(6,1fr);gap:16px;
    margin-bottom:24px;
}
.sd-kpi-card{
    border-radius:20px;
    padding:20px 18px;
    transition:all .25s ease;
    border:none;
    display:flex;align-items:center;gap:16px;
    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.sd-kpi-card:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(30,40,80,.1)}
/* Card background colors matching mockup */
.sd-kpi-card:nth-child(1){background:linear-gradient(135deg,#eef0ff,#e8eaff)}
.sd-kpi-card:nth-child(2){background:linear-gradient(135deg,#fef6e0,#fef0cc)}
.sd-kpi-card:nth-child(3){background:linear-gradient(135deg,#f0ecff,#ebe5ff)}
.sd-kpi-card:nth-child(4){background:linear-gradient(135deg,#e5f5ff,#daf0ff)}
.sd-kpi-card:nth-child(5){background:linear-gradient(135deg,#e5f8ee,#d8f5e5)}
.sd-kpi-card:nth-child(6){background:linear-gradient(135deg,#fee8e8,#fdd)}
.sd-kpi-icon{
    width:50px;height:50px;border-radius:50%;
    display:grid;place-items:center;font-size:21px;color:#fff;
    flex-shrink:0;
}
.sd-kpi-icon--blue{background:linear-gradient(135deg,#5B3DF5,#7c5cff)}
.sd-kpi-icon--yellow{background:linear-gradient(135deg,#F2C94C,#f5d76e)}
.sd-kpi-icon--purple{background:linear-gradient(135deg,#7c3aed,#a78bfa)}
.sd-kpi-icon--cyan{background:linear-gradient(135deg,#2D9CDB,#56b4e9)}
.sd-kpi-icon--green{background:linear-gradient(135deg,#27AE60,#6fcf97)}
.sd-kpi-icon--red{background:linear-gradient(135deg,#EB5757,#f28b82)}
.sd-kpi-icon--orange{background:linear-gradient(135deg,#FF8A32,#ffb074)}
.sd-kpi-body{flex:1;min-width:0}
.sd-kpi-label{font-size:13px;font-weight:500;color:var(--sd-muted);margin-bottom:4px}
.sd-kpi-value{font-size:28px;font-weight:700;color:var(--sd-ink);line-height:1;letter-spacing:-.5px}
.sd-kpi-footer{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;color:var(--sd-muted);font-weight:400}
.sd-kpi-trend{font-size:12px;font-weight:600;margin-left:6px}
.sd-kpi-trend.up{color:var(--sd-success)}
.sd-kpi-trend.down{color:var(--sd-danger)}

/* ===== DASHBOARD BODY GRID ===== */
.sd-dash-body{
    display:grid;grid-template-columns:1fr 280px;gap:20px;
    align-items:start;
}

/* ===== FILTER CARD ===== */
.sd-filter-card{
    background:#fff;border-radius:20px;
    padding:20px 24px;margin-bottom:18px;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
    border:1px solid rgba(0,0,0,.03);
}
.sd-filter-title{
    font-size:16px;font-weight:600;color:var(--sd-ink);
    margin:0 0 16px;display:flex;align-items:center;gap:8px;
}
.sd-filter-title i{color:var(--sd-purple)}
.sd-filter-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.sd-filter-group{flex:1;min-width:120px}
.sd-filter-group label{display:block;font-size:12px;font-weight:500;color:var(--sd-muted);margin-bottom:6px}
.sd-filter-group input,
.sd-filter-group select{
    width:100%;height:42px;border:1.5px solid var(--sd-border);border-radius:var(--sd-radius-sm);
    padding:0 14px;font-size:14px;color:var(--sd-ink);font-weight:400;
    background:#fff;outline:none;transition:all .2s;
    font-family:inherit;
}
.sd-filter-group input:focus,
.sd-filter-group select:focus{border-color:var(--sd-purple);box-shadow:0 0 0 3px rgba(91,61,245,.08)}
.sd-filter-group input::placeholder{color:#b0b7c3;font-weight:400}
.sd-filter-actions{display:flex;gap:8px;padding-top:4px}
.sd-filter-btn{
    height:42px;padding:0 20px;border-radius:var(--sd-radius-sm);border:none;
    font-size:14px;font-weight:600;cursor:pointer;
    display:inline-flex;align-items:center;gap:7px;
    transition:all .25s ease;text-decoration:none;
    font-family:inherit;
}
.sd-filter-btn--primary{
    background:var(--sd-purple);
    color:#fff;box-shadow:0 4px 14px rgba(91,61,245,.22);
}
.sd-filter-btn--primary:hover{background:var(--sd-purple-hover);transform:translateY(-1px)}
.sd-filter-btn--outline{
    background:#fff;color:var(--sd-muted);
    border:1.5px solid var(--sd-border);
}
.sd-filter-btn--outline:hover{border-color:var(--sd-purple);color:var(--sd-purple)}
/* Quick filter pills */
.sd-quick-filters{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap;align-items:center}
.sd-quick-filters-label{font-size:13px;color:var(--sd-muted);font-weight:500;margin-right:4px}
.sd-pill{
    padding:6px 16px;border-radius:20px;font-size:13px;font-weight:500;
    border:1.5px solid var(--sd-border);background:#fff;color:var(--sd-muted);
    cursor:pointer;transition:all .2s;text-decoration:none;
    font-family:inherit;
}
.sd-pill:hover{border-color:var(--sd-purple);color:var(--sd-purple)}
.sd-pill.active{background:var(--sd-purple);color:#fff;border-color:var(--sd-purple);font-weight:600}

/* ===== ORDERS TABLE CARD ===== */
.sd-table-card{
    background:#fff;border-radius:var(--sd-radius);
    box-shadow:var(--sd-shadow);
    overflow:hidden;border:1px solid rgba(0,0,0,.03);
}
.sd-table-header{
    display:flex;justify-content:space-between;align-items:center;
    padding:14px 20px;border-bottom:1px solid var(--sd-border);
}
.sd-table-header h3{font-size:16px;font-weight:600;color:var(--sd-ink);margin:0;display:flex;align-items:center;gap:8px}
.sd-table-header h3 i{color:var(--sd-purple)}
.sd-table-badge{
    background:#efeaff;color:var(--sd-purple);
    font-size:12px;font-weight:700;padding:4px 12px;border-radius:20px;
}
.sd-table-card table{width:100%;border-collapse:collapse}
.sd-table-card thead th{
    font-size:12px;font-weight:700;color:var(--sd-muted);text-transform:uppercase;
    letter-spacing:.3px;padding:12px 16px;background:#fafafe;
    border-bottom:1px solid var(--sd-border);
}
.sd-table-card tbody td{padding:10px 16px;border-bottom:1px solid #f3f3f8;font-size:13px;vertical-align:middle}
.sd-table-card tbody tr:hover{background:#faf9ff}
.sd-table-card tbody tr:last-child td{border-bottom:none}
.sd-status-badge{
    display:inline-flex;align-items:center;gap:5px;
    padding:4px 10px;border-radius:6px;font-size:12px;font-weight:700;
}
.sd-status-badge--warning{background:#fef9c3;color:#92400e}
.sd-status-badge--info{background:#e0f2fe;color:#0369a1}
.sd-status-badge--success{background:#dcfce7;color:#166534}
.sd-status-badge--danger{background:#fee2e2;color:#991b1b}
.sd-status-badge--secondary{background:#f1f5f9;color:#475569}

/* ===== RIGHT PANEL ===== */
.sd-right-panel{display:flex;flex-direction:column;gap:14px}
.sd-summary-card{
    background:#fff;border-radius:var(--sd-radius);
    padding:16px 18px;box-shadow:var(--sd-shadow);
    border:1px solid rgba(0,0,0,.03);
}
.sd-summary-card h4{font-size:14px;font-weight:800;color:var(--sd-ink);margin:0 0 12px;display:flex;align-items:center;gap:8px}
.sd-summary-card h4 i{color:var(--sd-purple)}
.sd-summary-item{
    display:flex;align-items:center;gap:10px;
    padding:8px 0;border-bottom:1px solid #f3f3f8;
}
.sd-summary-item:last-child{border-bottom:none}
.sd-summary-icon{
    width:36px;height:36px;border-radius:10px;
    display:grid;place-items:center;font-size:15px;flex-shrink:0;
}
.sd-summary-icon--purple{background:#efeaff;color:var(--sd-purple)}
.sd-summary-icon--orange{background:#fff0e6;color:var(--sd-orange)}
.sd-summary-icon--green{background:#dcfce7;color:#16a34a}
.sd-summary-icon--cyan{background:#e0f7fa;color:#0891b2}
.sd-summary-data{flex:1}
.sd-summary-label{font-size:12px;color:var(--sd-muted);font-weight:600}
.sd-summary-value{font-size:16px;font-weight:900;color:var(--sd-ink)}
.sd-summary-trend{font-size:11px;color:var(--sd-muted)}

/* Help card */
.sd-help-card{
    background:linear-gradient(135deg,var(--sd-purple),var(--sd-purple-hover));
    border-radius:var(--sd-radius);padding:20px 18px;color:#fff;
}
.sd-help-card h4{color:#fff;margin:0 0 6px;font-size:15px;font-weight:800}
.sd-help-card h4 i{color:var(--sd-orange)}
.sd-help-card p{font-size:13px;color:rgba(255,255,255,.8);margin:0 0 16px;line-height:1.5}
.sd-help-btn{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;padding:11px;border-radius:10px;border:1.5px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.1);color:#fff;font-size:14px;font-weight:700;
    text-decoration:none;transition:all .2s;cursor:pointer;
}
.sd-help-btn:hover{background:rgba(255,255,255,.2);color:#fff}

/* ===== EMPTY STATE ===== */
.sd-empty-state{padding:48px 20px;text-align:center}
.sd-empty-illustration{
    width:140px;height:140px;border-radius:50%;
    background:linear-gradient(135deg,#efeaff,#f8f5ff);
    margin:0 auto 20px;display:grid;place-items:center;
    position:relative;
}
.sd-empty-illustration i{font-size:56px;color:var(--sd-purple-soft);opacity:.6}
.sd-empty-illustration::after{
    content:"";position:absolute;inset:-14px;
    border:2px dashed #ddd4f7;border-radius:50%;
}
.sd-empty-state h3{font-size:19px;font-weight:800;color:var(--sd-ink);margin:0 0 6px}
.sd-empty-state>p{font-size:14px;color:var(--sd-muted);margin:0 0 20px;max-width:380px;margin-left:auto;margin-right:auto;line-height:1.5}
.sd-empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.sd-btn-primary{
    display:inline-flex;align-items:center;gap:8px;
    height:44px;padding:0 22px;border-radius:var(--sd-radius-sm);border:none;
    background:var(--sd-purple);
    color:#fff;font-size:14px;font-weight:700;cursor:pointer;
    box-shadow:0 6px 16px rgba(91,61,245,.22);
    text-decoration:none;transition:all .2s ease;
}
.sd-btn-primary:hover{background:var(--sd-purple-hover);transform:translateY(-1px);color:#fff}
.sd-btn-outline-orange{
    display:inline-flex;align-items:center;gap:8px;
    height:44px;padding:0 22px;border-radius:var(--sd-radius-sm);
    border:1.5px solid var(--sd-orange);background:transparent;
    color:var(--sd-orange);font-size:14px;font-weight:700;cursor:pointer;
    text-decoration:none;transition:all .2s ease;
}
.sd-btn-outline-orange:hover{background:rgba(255,138,50,.08);color:var(--sd-orange)}

/* ===== PAGINATION ===== */
.sd-pagination-card{
    background:#fff;border-radius:22px;
    padding:14px 24px;margin-top:16px;text-align:center;
    box-shadow:0 10px 35px rgba(20,20,60,.08);
    border:1px solid rgba(0,0,0,.03);
}

/* ===== DASHBOARD FOOTER ===== */
.sd-dash-footer{
    margin-left:var(--sd-sidebar-w);
    padding:20px 32px;
    display:flex;justify-content:space-between;align-items:center;
    font-size:13px;color:var(--sd-muted);
    border-top:1px solid var(--sd-border);
    background:#fff;
}
.sd-dash-footer strong{color:var(--sd-ink)}

/* ===== PEDIDOS PAGE ===== */
.sd-pedidos-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px}
.sd-pedidos-header h1{font-size:24px;font-weight:900;color:var(--sd-ink);margin:0 0 2px}
.sd-pedidos-header p{font-size:13px;color:var(--sd-muted);margin:0}
.sd-pedidos-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sd-pedidos-actions .sd-pill{height:34px;display:inline-flex;align-items:center;gap:5px;font-size:12px}
.sd-pedidos-btn-sound{
    padding:5px 14px;border-radius:20px;font-size:12px;font-weight:600;
    border:1.5px solid var(--sd-success,#27AE60);background:rgba(39,174,96,.08);color:var(--sd-success,#27AE60);
    cursor:pointer;display:inline-flex;align-items:center;gap:5px;
}
.sd-pedidos-btn-timer{
    padding:5px 14px;border-radius:20px;font-size:12px;font-weight:700;
    border:none;background:var(--sd-purple);color:#fff;
    cursor:pointer;display:inline-flex;align-items:center;gap:5px;
}

/* Pedidos KPI row */
.sd-pedidos-kpis{
    display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:20px;
}
.sd-pedidos-kpi{
    background:#fff;border-radius:var(--sd-radius);border:1px solid var(--sd-border);
    padding:18px 16px;text-align:center;transition:all .2s;
}
.sd-pedidos-kpi:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(30,40,80,.08)}
.sd-pedidos-kpi i{font-size:28px;display:block;margin-bottom:8px}
.sd-pedidos-kpi .sd-pk-value{font-size:28px;font-weight:900;color:var(--sd-ink);line-height:1}
.sd-pedidos-kpi .sd-pk-label{font-size:12px;color:var(--sd-muted);margin-top:4px}
.sd-pedidos-kpi .sd-pk-trend{font-size:11px;font-weight:700;margin-top:4px}
.sd-pedidos-kpi .sd-pk-trend.up{color:var(--sd-success,#27AE60)}
.sd-pedidos-kpi .sd-pk-trend.down{color:var(--sd-danger,#EB5757)}

/* Pedidos filter bar */
.sd-pedidos-filters{
    background:#fff;border-radius:var(--sd-radius);border:1px solid var(--sd-border);
    padding:18px 20px;margin-bottom:16px;
}
.sd-pedidos-filters .sd-filter-row{gap:10px}
.sd-pedidos-filters .sd-filter-group{min-width:110px}

/* Pedidos tabs */
.sd-pedidos-tabs{
    display:flex;gap:4px;margin-bottom:16px;flex-wrap:wrap;
    border-bottom:2px solid var(--sd-border);padding-bottom:0;
}
.sd-pedidos-tab{
    padding:8px 16px;border-radius:12px 12px 0 0;font-size:13px;font-weight:600;
    color:var(--sd-muted);background:transparent;border:none;cursor:pointer;
    display:inline-flex;align-items:center;gap:6px;transition:all .2s;
    border-bottom:2px solid transparent;margin-bottom:-2px;
}
.sd-pedidos-tab:hover{color:var(--sd-ink);background:rgba(91,61,245,.04)}
.sd-pedidos-tab.active{color:var(--sd-purple);border-bottom-color:var(--sd-purple);font-weight:700}
.sd-pedidos-tab .badge{font-size:10px;padding:2px 7px;border-radius:10px}

/* Pedidos table */
.sd-pedidos-table-card{
    background:#fff;border-radius:var(--sd-radius);border:1px solid var(--sd-border);
    overflow:hidden;
}

@@media(max-width:1199px){.sd-pedidos-kpis{grid-template-columns:repeat(3,1fr)}}
@@media(max-width:640px){.sd-pedidos-kpis{grid-template-columns:repeat(2,1fr)}.sd-pedidos-tabs{overflow-x:auto;flex-wrap:nowrap}}

/* ===== CATALOG CARDS (Comidas, Categorias) ===== */
.sd-catalog-wrap{
    background:rgba(91,61,245,.03);
    border:1px solid rgba(91,61,245,.06);
    border-radius:22px;
    padding:24px;
}
.sd-catalog-card{
    background:rgba(255,255,255,.85);
    border:1px solid rgba(91,61,245,.08);
    border-radius:22px;
    box-shadow:0 10px 35px rgba(20,20,60,.06);
    transition:all .25s;
    overflow:hidden;
}
.sd-catalog-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 40px rgba(20,20,60,.12);
    background:#fff;
}
.sd-catalog-card .card-body{padding:20px}
.sd-catalog-card .card-footer{
    background:rgba(91,61,245,.02)!important;
    border-top:1px solid rgba(91,61,245,.06)!important;
    padding:16px 20px!important;
}
.sd-catalog-card .card-img-top{
    border-bottom:1px solid rgba(91,61,245,.06);
}
.sd-catalog-card .badge{border-radius:8px}

/* ===== LEGACY ADMIN STYLES (extracted from _Layout inline) ===== */
.admin-navbar{
    background:#fff!important;
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,.2);
    box-shadow:0 2px 20px rgba(0,0,0,.1);
    position:relative;z-index:1030;
}
.navbar-brand-logo{
    width:36px;height:36px;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    border-radius:50%;display:flex;align-items:center;justify-content:center;
    box-shadow:0 3px 10px rgba(102,126,234,.45);
}
.navbar-brand-logo i{color:#fff;font-size:17px}
.legacy-container{
    background:transparent;border-radius:0;padding:0 1rem;
    margin-top:0;margin-bottom:0;
    box-shadow:none;backdrop-filter:none;
    flex:1;position:relative;z-index:1000;
}
.legacy-body{
    background:#F6F8FC;
    min-height:100vh;display:flex;flex-direction:column;
}
.nav-link{
    color:#555;transition:all .3s;position:relative;
    padding:.5rem 1rem!important;border-radius:8px;
}
.nav-link:hover:not(.active){color:#667eea!important;background:rgba(102,126,234,.1)}
.nav-link.active,.navbar-nav .nav-link.active,
.navbar-nav .nav-item .nav-link.active,a.nav-link.active{
    color:white!important;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)!important;
    font-weight:600!important;
    box-shadow:0 4px 12px rgba(102,126,234,.3)!important;
    border-radius:8px!important;
}
.dropdown-menu{
    border:none;box-shadow:0 .5rem 1rem rgba(0,0,0,.15);
    border-radius:.5rem;z-index:1031!important;position:absolute!important;
    background:rgba(255,255,255,.9);backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.2);
}
.dropdown-item{transition:all .3s;border-radius:6px;margin:4px 8px;padding:8px 12px}
.dropdown-item:hover{background:rgba(102,126,234,.1);color:#667eea;transform:translateX(5px)}
.dropdown-toggle::after,[data-bs-toggle="dropdown"]::after{display:none!important;content:none!important;border:none!important}
.dropdown-icon{font-size:.75rem;transition:transform .3s}
.nav-link[aria-expanded="true"] .dropdown-icon{transform:rotate(180deg)}

.form-control:focus{border-color:#667eea;box-shadow:0 0 0 .2rem rgba(102,126,234,.25)}
.btn-primary{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    border:none;border-radius:.5rem;transition:all .3s;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(102,126,234,.4)}
.card{border:none;border-radius:1rem;box-shadow:0 5px 15px rgba(0,0,0,.08);transition:transform .3s,box-shadow .3s}
.card:hover{transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,.15)}

/* ===== RESPONSIVE ===== */
@media(max-width:1399px){
    .sd-kpi-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1199px){
    .sd-dash-body{grid-template-columns:1fr}
    .sd-right-panel{
        display:grid;grid-template-columns:1fr 1fr;gap:16px;
    }
    .sd-help-card{grid-column:1/-1}
}
@media(max-width:991px){
    .sd-sidebar{transform:translateX(-100%)}
    .sd-sidebar.sd-sidebar--open{transform:translateX(0)}
    .sd-sidebar-toggle{display:grid;place-items:center}
    .sd-sidebar-overlay.sd-sidebar-overlay--show{display:block}
    .sd-main-content{margin-left:0}
    .sd-main-content::before{left:0}
    .sd-dash-footer{margin-left:0}
    .sd-sidebar-toggle{display:grid;place-items:center}
    .sd-main-inner{padding:20px 16px 16px}
    .sd-kpi-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
    .sd-kpi-grid{grid-template-columns:1fr 1fr;gap:10px}
    .sd-kpi-value{font-size:24px}
    .sd-dash-greeting h1{font-size:22px}
    .sd-filter-row{flex-direction:column}
    .sd-filter-group{min-width:100%}
    .sd-right-panel{grid-template-columns:1fr}
    .sd-dash-footer{flex-direction:column;gap:4px;text-align:center}
}

/* ===== PAGINATION OVERRIDE ===== */
.pagination{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:center;margin:0;padding:0;list-style:none}
.pagination .page-item .page-link,.pagination .page-item .sd-nav-btn{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:36px;height:36px;padding:0 14px;
    border-radius:12px!important;border:1.5px solid #E5E7EB!important;
    background:#fff!important;color:#6B7280!important;
    font-size:13px;font-weight:500;font-family:inherit;
    text-decoration:none;transition:all .2s;margin:0!important;
}
.pagination .page-item .page-link:hover,.pagination .page-item .sd-nav-btn:hover{
    border-color:#5B3DF5!important;color:#5B3DF5!important;background:#F8F7FF!important;
}
.pagination .page-item.active .page-link{
    background:#5B3DF5!important;color:#fff!important;border-color:#5B3DF5!important;
    font-weight:700;box-shadow:0 4px 12px rgba(91,61,245,.25);
}
.pagination .page-item.disabled .page-link,.pagination .page-item.disabled .sd-nav-btn{
    opacity:.4;cursor:default;pointer-events:none;
}

/* ===== LOADING SPINNER (top bar) ===== */
.sd-loading-overlay{
    position:fixed;top:0;left:var(--sd-sidebar-w);right:0;
    height:3px;z-index:9000;display:none;
}
.sd-loading-overlay.active{display:block}
.sd-loading-bar{
    height:100%;width:30%;border-radius:0 3px 3px 0;
    background:linear-gradient(90deg,#5B3DF5,#7C5CFF,#FF8A32);
    animation:sd-progress 1.2s ease-in-out infinite;
}
@@keyframes sd-progress{
    0%{width:0;margin-left:0}
    50%{width:50%;margin-left:25%}
    100%{width:0;margin-left:100%}
}
@@media(max-width:991px){.sd-loading-overlay{left:0}}
