/* Premium Dashboard Utilities (sb-*) */

/* Layout & Flexbox */
.dash-sb-flex {
    display: flex !important;
}

.dash-sb-flex-column {
    flex-direction: column !important;
}

.dash-sb-items-center {
    align-items: center !important;
}

.dash-sb-justify-between {
    justify-content: space-between !important;
}

.dash-sb-justify-center {
    justify-content: center !important;
}

.dash-sb-text-center {
    text-align: center !important;
}

.dash-sb-text-right {
    text-align: right !important;
}

.dash-sb-flex-1 {
    flex: 1 !important;
}

.dash-sb-gap-1 {
    gap: 4px !important;
}

.dash-sb-gap-2 {
    gap: 8px !important;
}

.dash-sb-gap-3 {
    gap: 12px !important;
}

.dash-sb-w-100 {
    width: 100% !important;
}

.dash-sb-d-none {
    display: none !important;
}

.dash-sb-relative {
    position: relative !important;
}

.dash-sb-absolute {
    position: absolute !important;
}

.dash-sb-overflow-hidden {
    overflow: hidden !important;
}

/* Spacing */
.dash-sb-p-1 {
    padding: 4px !important;
}

.dash-sb-p-3 {
    padding: 16px !important;
}

.dash-sb-p-4 {
    padding: 24px !important;
}

.dash-sb-px-2 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.dash-sb-py-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.dash-sb-px-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.dash-sb-py-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.dash-sb-m-0 {
    margin: 0 !important;
}

.dash-sb-mb-0 {
    margin-bottom: 0 !important;
}

.dash-sb-mb-1 {
    margin-bottom: 4px !important;
}

.dash-sb-mb-2 {
    margin-bottom: 8px !important;
}

.dash-sb-mb-3 {
    margin-bottom: 16px !important;
}

.dash-sb-mb-4 {
    margin-bottom: 24px !important;
}

.dash-sb-mt-2 {
    margin-top: 8px !important;
}

.dash-sb-mt-3 {
    margin-top: 16px !important;
}

.dash-sb-mt-4 {
    margin-top: 24px !important;
}

.dash-sb-my-4 {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

/* Grids */
.dash-sb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.dash-sb-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/* Styling & Appearance */
.dash-sb-rounded-lg {
    border-radius: 12px !important;
}

.dash-sb-bg-subtle {
    background: #ffffff !important;
}

.dash-sb-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Typography */
.dash-sb-fs-micro {
    font-size: 0.82rem !important;
}

.dash-sb-fs-small {
    font-size: 0.8rem !important;
}

.dash-sb-fs-normal {
    font-size: 0.95rem !important;
}

.title-md {
    font-size: 0.8rem !important;
}

.title-lg {
    font-size: 0.95rem !important;
}

.dash-sb-fw-bold {
    font-weight: 600 !important;
}

.dash-sb-fw-black {
    font-weight: 800 !important;
}

.dash-sb-uppercase {
    text-transform: uppercase !important;
}

.dash-sb-ls-tight {
    letter-spacing: -0.dash-02em !important;
}

.dash-sb-opacity-75 {
    opacity: 0.75;
}

/* Colors */
.dash-sb-text-primary {
    color: var(--bs-primary, #6366f1) !important;
}

.dash-sb-text-success {
    color: var(--bs-success, #10b981) !important;
}

.dash-sb-text-danger {
    color: var(--bs-danger, #ef4444) !important;
}

.dash-sb-text-warning {
    color: var(--bs-warning, #f59e0b) !important;
}

.dash-sb-text-dark {
    color: #1e293b !important;
}

.dash-sb-text-muted {
    color: #64748b !important;
}

.dash-sb-text-white {
    color: #ffffff !important;
}

.dash-sb-bg-primary-subtle {
    background: rgba(99, 102, 241, 0.1) !important;
}

.dash-sb-bg-success-subtle {
    background: rgba(16, 185, 129, 0.1) !important;
}

.dash-sb-bg-warning-subtle {
    background: rgba(245, 158, 11, 0.1) !important;
}

.dash-sb-bg-danger-subtle {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Components */
.dash-sb-m-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
}

.dash-sb-m-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dash-sb-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.dash-05em;
}

.dash-sb-badge-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.dash-05em;
    color: white;
}

/* Forms */
.dash-sb-form-group {
    margin-bottom: 0;
}

.dash-sb-input-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.dash-sb-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.dash-2s;
    background: #fff;
    color: #1e293b;
}

.dash-sb-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dash-sb-btn-primary {
    width: 100%;
    border: none;
    background: #6366f1;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.dash-2s;
}

.dash-sb-btn-primary:active {
    transform: scale(0.98);
}

.dash-sb-btn-sm-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1e293b;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.dash-2s;
}

.dash-sb-btn-sm-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.dash-2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dash-sb-btn-sm-light:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dash-sb-btn-sm-light:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dash-sb-border {
    border-color: #cbd5e1 !important;
}

/* =========================================
   UNIFIED SIDEBAR THEME
   ========================================= */

/* General Transition */
#sidebar ul li a i {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Unified Link & Icon Color - Using Orange for a vibrant look */
#sidebar ul li a {
    color: #475569 !important;
    /* Neutral Slate for base text */
}

#sidebar ul li a i:not(.chevron-icon) {
    color: #f97316 !important;
    /* Unified Orange for Icons */
}

/* Hover State */
#sidebar ul li a:hover {
    background: rgba(249, 115, 22, 0.08) !important;
    color: #ea580c !important;
    transform: translateX(4px);
}

#sidebar ul li a:hover i:not(.chevron-icon) {
    color: #ea580c !important;
    transform: scale(1.1);
}

/* Active State */
#sidebar ul li a.active,
#sidebar ul li a.dash-active {
    color: #ea580c !important;
    background: rgba(249, 115, 22, 0.12) !important;
    font-weight: 600;
}

#sidebar ul li a.active i:not(.chevron-icon),
#sidebar ul li a.dash-active i:not(.chevron-icon) {
    color: #ea580c !important;
}

/* Submenu Styles */
#sidebar ul.collapse {
    border-left: 1px solid #cbd5e1;
    margin-left: 25px;
}

#sidebar ul.collapse li a {
    font-size: 0.85rem;
    padding: 8px 16px;
    color: #64748b !important;
}

#sidebar ul.collapse li a i {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #64748b !important;
}

#sidebar ul.collapse li a:hover,
#sidebar ul.collapse li a.active,
#sidebar ul.collapse li a.dash-active {
    color: #ea580c !important;
    background: rgba(249, 115, 22, 0.05) !important;
}

#sidebar ul.collapse li a:hover i,
#sidebar ul.collapse li a.active i,
#sidebar ul.collapse li a.dash-active i {
    color: #ea580c !important;
    opacity: 1;
}

/* Keep chevron muted */
#sidebar .chevron-icon,
#sidebar .dash-chevron-icon {
    color: #94a3b8 !important;
    opacity: 0.5;
    font-size: 0.82rem !important;
}

#sidebar a[aria-expanded="true"] .chevron-icon,
#sidebar a[aria-expanded="true"] .dash-chevron-icon {
    opacity: 1;
    color: #f97316 !important;
}

/* Special Case: Logout should stay red but consistent */
#sidebar .logout-link {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    margin-top: 20px;
}

#sidebar .logout-link i {
    color: #ef4444 !important;
}

#sidebar .logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}


/* ============================
   Staff KPI Hero Cards
   ============================ */
.staff-kpi-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.staff-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Decorative floating orb */
.staff-kpi-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.12;
    z-index: 0;
    transition: transform 0.4s ease;
}

.staff-kpi-card:hover::before {
    transform: scale(1.15);
}

/* Second decorative element */
.staff-kpi-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -10px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    transform: rotate(35deg);
    opacity: 0.06;
    z-index: 0;
}

.staff-kpi-card>* {
    position: relative;
    z-index: 1;
}

/* Icon circle */
.staff-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.staff-kpi-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.staff-kpi-value {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.staff-kpi-sub {
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    opacity: 0.7;
}

/* --- Emerald Theme (Sales) --- */
.staff-kpi-emerald {
    background: linear-gradient(145deg, #065f46 0%, #047857 50%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.2);
}

.staff-kpi-emerald::before {
    background: radial-gradient(circle, #34d399, transparent);
}

.staff-kpi-emerald::after {
    background: #6ee7b7;
}

.staff-kpi-emerald .staff-kpi-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #a7f3d0;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.staff-kpi-emerald .staff-kpi-label {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Blue Theme (Clients) --- */
.staff-kpi-blue {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
    border: 1px solid #bfdbfe;
}

.staff-kpi-blue::before {
    background: radial-gradient(circle, #93c5fd, transparent);
}

.staff-kpi-blue::after {
    background: #BBE0EF;
}

.staff-kpi-blue .staff-kpi-icon {
    background: linear-gradient(135deg, #BBE0EF, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.staff-kpi-blue .staff-kpi-label {
    color: #64748b;
}

.staff-kpi-blue .staff-kpi-value {
    color: #1e40af;
}

.staff-kpi-blue .staff-kpi-sub {
    color: #94a3b8;
}

/* --- Amber Theme (Pending) --- */
.staff-kpi-amber {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 50%, #ffffff 100%);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
    border: 1px solid #fde68a;
}

.staff-kpi-amber::before {
    background: radial-gradient(circle, #fcd34d, transparent);
}

.staff-kpi-amber::after {
    background: #f59e0b;
}

.staff-kpi-amber .staff-kpi-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.staff-kpi-amber .staff-kpi-label {
    color: #64748b;
}

.staff-kpi-amber .staff-kpi-value {
    color: #b45309;
}

.staff-kpi-amber .staff-kpi-sub {
    color: #94a3b8;
}

/* --- Violet Theme (Revenue / Plan) --- */
.staff-kpi-violet {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 50%, #ffffff 100%);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
    border: 1px solid #ddd6fe;
}

.staff-kpi-violet::before {
    background: radial-gradient(circle, #a78bfa, transparent);
}

.staff-kpi-violet::after {
    background: #8b5cf6;
}

.staff-kpi-violet .staff-kpi-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.staff-kpi-violet .staff-kpi-label {
    color: #64748b;
}

.staff-kpi-violet .staff-kpi-value {
    color: #5b21b6;
}

.staff-kpi-violet .staff-kpi-sub {
    color: #94a3b8;
}

/* --- Rose Theme (Payables) --- */
.staff-kpi-rose {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 50%, #ffffff 100%);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
    border: 1px solid #fecdd3;
}

.staff-kpi-rose::before {
    background: radial-gradient(circle, #fda4af, transparent);
}

.staff-kpi-rose::after {
    background: #f43f5e;
}

.staff-kpi-rose .staff-kpi-icon {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}

.staff-kpi-rose .staff-kpi-label {
    color: #64748b;
}

.staff-kpi-rose .staff-kpi-value {
    color: #be123c;
}

.staff-kpi-rose .staff-kpi-sub {
    color: #94a3b8;
}

/* --- Shared Utilities for KPI Cards --- */
.staff-kpi-clickable {
    cursor: pointer;
}

.staff-kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(4px);
    margin-top: auto;
}

.staff-kpi-badge-violet {
    color: #7c3aed;
    border-color: #ddd6fe;
}

.staff-kpi-badge-emerald {
    color: #059669;
    border-color: #d1fae5;
}

.staff-kpi-badge-amber {
    color: #d97706;
    border-color: #fef3c7;
}

.staff-kpi-badge-rose {
    color: #e11d48;
    border-color: #fee2e2;
}

/* Progress bar inside KPI card */
.staff-kpi-progress-wrap {
    margin-top: auto;
}

.staff-kpi-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.staff-kpi-progress-bar {
    height: 5px;
    background: #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}

.staff-kpi-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    transition: width 0.6s ease;
}

/* ============================
   Dashboard Action Strip
   ============================ */
.dash-action-strip {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.dash-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    background: #a0e0e745;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.dash-action-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.dash-action-btn:active {
    transform: translateY(0) scale(0.96);
}

.dash-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a8a0a03b;
    font-size: 18px;
    transition: all 0.3s ease;
}

.dash-action-btn:hover .dash-action-icon {
    transform: scale(1.08);
}

.dash-action-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
    transition: color 0.2s ease;
}

/* --- Color Themes --- */
.dash-action-icon-blue {
    background: linear-gradient(145deg, #ffffff, #dbeafe);
    color: #2563eb;
    /* box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-blue {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.dash-action-icon-green {
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    color: #16a34a;
    /* box-shadow: 0 3px 10px rgba(22, 163, 74, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-green {
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.2);
}

.dash-action-icon-pink {
    background: linear-gradient(145deg, #fdf2f8, #fce7f3);
    color: #db2777;
    /* box-shadow: 0 3px 10px rgba(219, 39, 119, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-pink {
    box-shadow: 0 6px 18px rgba(219, 39, 119, 0.2);
}

.dash-action-icon-teal {
    background: linear-gradient(145deg, #f0fdfa, #ccfbf1);
    color: #0d9488;
    /* box-shadow: 0 3px 10px rgba(13, 148, 136, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-teal {
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.2);
}

.dash-action-icon-purple {
    background: linear-gradient(145deg, #faf5ff, #f3e8ff);
    color: #7c3aed;
    /* box-shadow: 0 3px 10px rgba(124, 58, 237, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-purple {
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.2);
}

.dash-action-icon-red {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    color: #dc2626;
    /* box-shadow: 0 3px 10px rgba(220, 38, 38, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-red {
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.2);
}

.dash-action-icon-orange {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: #ea580c;
    /* box-shadow: 0 3px 10px rgba(234, 88, 12, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-orange {
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.2);
}

.dash-action-icon-indigo {
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    /* box-shadow: 0 3px 10px rgba(79, 70, 229, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-indigo {
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.2);
}

.dash-action-icon-slate {
    background: linear-gradient(145deg, #ffffff, #cbd5e1);
    color: #475569;
    /* box-shadow: 0 3px 10px rgba(71, 85, 105, 0.1); */
}

.dash-action-btn:hover .dash-action-icon-slate {
    box-shadow: 0 6px 18px rgba(71, 85, 105, 0.18);
}

.dash-action-icon-yellow {
    background: linear-gradient(145deg, #fefce8, #fef9c3);
    color: #ca8a04;
    /* box-shadow: 0 3px 10px rgba(202, 138, 4, 0.12); */
}

.dash-action-btn:hover .dash-action-icon-yellow {
    box-shadow: 0 6px 18px rgba(202, 138, 4, 0.2);
}

/* Responsive */
/* Tablet (769px – 991px): 5 columns, all 10 buttons */
@media (min-width: 769px) and (max-width: 991px) {
    .dash-action-strip {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        border-radius: 0;
        padding: 14px 16px;
    }

    .dash-action-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 14px;
    }

    .dash-action-label {
        font-size: 13px;
    }
}

/* Mobile (≤768px): 4 columns, only 8 buttons */
@media (max-width: 768px) {
    .dash-action-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        border-radius: 0;
        padding: 12px 14px;
    }

    .dash-action-icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
        border-radius: 14px;
    }

    .dash-action-label {
        font-size: 13px;
        letter-spacing: 0.01em;
    }

    /* Hide last 2 buttons (Reports + Summary) on mobile */
    .dash-action-strip .dash-action-btn:nth-child(9),
    .dash-action-strip .dash-action-btn:nth-child(10) {
        display: none;
    }
}

/* Dashboard High-Tech Cards Custom CSS */
.dash-tech-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.dash-tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.dash-tcard-revenue {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 40%, #ffffff 100%);
    border-left: 4px solid #10b981 !important;
}

.dash-tcard-revenue .card-head {
    background: rgba(16, 185, 129, 0.08) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.dash-tcard-revenue .tech-panel {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(8px);
}

.dash-badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dash-tcard-payment {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #ffffff 100%);
    border-left: 4px solid #8b5cf6 !important;
}

.dash-tcard-payment .card-head {
    background: rgba(139, 92, 246, 0.08) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
}

.dash-tcard-payment .tech-panel {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(8px);
}

.dash-badge-violet {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.dash-tcard-staff {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 40%, #ffffff 100%);
    border-left: 4px solid #a855f7 !important;
}

.dash-tcard-staff .card-head {
    background: rgba(168, 85, 247, 0.08) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15) !important;
}

.dash-tcard-staff .tech-panel {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(12px);
}

.dash-tcard-activity {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 4px solid #10b981 !important;
}

.dash-tcard-lowstock {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    border-left: 4px solid #f97316 !important;
}

.dash-tcard-overdue {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border-left: 4px solid #ef4444 !important;
}

.dash-tcard-top-staff {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border-left: 4px solid #a855f7 !important;
}

.dash-tcard-live-audit {
    background: #ffffff;
    border-left: 4px solid #cbd5e1 !important;
}

.dash-tcard-top-prod {
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
    border-left: 4px solid #f59e0b !important;
}

.dash-tcard-top-clients {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-left: 4px solid #BBE0EF !important;
}

.dash-tcard-tax {
    background: #ffffff;
    border-left: 4px solid #f1f5f9 !important;
}

.tech-panel-label {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.tech-panel-val {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.tech-card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tech-card-sub {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}