/* ==========================================================================
   Dashboard Layout Elements
   ========================================================================== */

/* Grid Settings */
.cus_admin_metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.cus_admin_two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .cus_admin_two-col {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.cus_admin_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
}

.cus_admin_btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.cus_admin_btn i {
    font-size: 1rem;
}

.cus_admin_btn-primary {
    background-color: var(--cus_admin_primary, #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.cus_admin_btn-primary:hover {
    background-color: var(--cus_admin_primary-hover, #4338ca);
    color: #ffffff;
    box-shadow: 0 6px 12px -2px rgba(79, 70, 229, 0.3);
}

/* Alert Error */
.cus_admin_alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   Table Design
   ========================================================================== */
.cus_admin_table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.cus_admin_table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.cus_admin_table th {
    padding: 14px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.cus_admin_table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.cus_admin_table tbody tr:last-child td {
    border-bottom: none;
}

.cus_admin_table tbody tr:hover td {
    background-color: #f8fafc;
}

.cus_admin_table-sub {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.cus_admin_table strong {
    color: #1e293b;
    font-weight: 600;
}

/* ==========================================================================
   Chart Styling (SVG)
   ========================================================================== */
.cus_admin_chart-scroll {
    width: 100%;
    overflow-x: auto;
    padding-top: 10px;
}

.cus_admin_chart {
    width: 100%;
    min-width: 500px;
    height: auto;
    display: block;
}

.cus_admin_chart-grid {
    stroke: #e2e8f0;
    stroke-dasharray: 4;
    stroke-width: 1;
}

.cus_admin_chart-axis {
    fill: #94a3b8;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.cus_admin_chart-sales {
    stroke: #4f46e5;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0px 4px 6px rgba(79, 70, 229, 0.2));
}

.cus_admin_chart-commission {
    stroke: #10b981;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cus_admin_chart-point-sales {
    fill: white;
    stroke: #4f46e5;
    stroke-width: 2;
}

/* ==========================================================================
   Progress Bars (Order Status)
   ========================================================================== */
.cus_admin_bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0;
}

.cus_admin_bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cus_admin_bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.cus_admin_bar-head strong {
    color: #1e293b;
    font-weight: 700;
}

.cus_admin_bar-track {
    display: block;
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.cus_admin_bar-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}