:root {
    --bg-light: #f0f2f5;
    --panel-white: #ffffff;
    --text-main: #1a1a1b;
    --text-dim: #646970;
    --cyan: #007cba;
    --orange: #f57c00;
    --red: #d63638;
    --border-light: #e5e5e5;
}


.pd-dashboard-wrapper {
    background: var(--bg-light);
    margin: -10px -20px 0 -20px;
    padding: 80px;
    min-height: 100vh;
    color: var(--text-main);
}

/* Header Styles */
.pd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pd-main-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.pd-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-dim);
    font-size: 14px;
}

.pd-refresh-link {
    color: var(--cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.pd-select-minimal {
    background: var(--panel-white);
    border: 1px solid var(--border-light);
    color: var(--cyan);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Summary Grid */
.pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-stat-card {
    background: var(--panel-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pd-card-cyan {
    border-top: 4px solid var(--cyan);
}

.pd-card-orange {
    border-top: 4px solid var(--orange);
}

.pd-card-red {
    border-top: 4px solid var(--red);
}

.pd-stat-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.pd-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.pd-card-cyan .pd-stat-value {
    color: var(--cyan);
}

/* Middle Grid */
.pd-middle-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.pd-panel {
    background: var(--panel-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.pd-panel-title {
    font-size: 14px;
    color: var(--text-main);
    margin: 0 0 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inventory Table */
.pd-modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pd-modern-table th {
    color: var(--text-dim);
    padding: 12px 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    background: #fafafa;
}

.pd-modern-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.pd-row-warning {
    background: #fffcf0;
}

.pd-img-box img {
    width: 80px;
    height: 80px;
    background: #eee;
}

.pd-name-main {
    font-weight: 600;
    color: var(--text-main);
    font-size: 17px;
}

.pd-modern-table strong {
    font-size: 17px;
}

.pd-sku-sub {
    color: var(--text-dim);
    font-size: 11px;
}

/* Top Seller List */
.pd-seller-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.pd-seller-item:last-child {
    border-bottom: none;
}

.pd-seller-rank {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    min-width: 28px;
}

.pd-seller-name {
    flex: 1;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-main);
}

.pd-seller-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    white-space: nowrap;
}

/* Chart Panel */
.pd-chart-container {
    height: 280px;
    margin-top: 10px;
}

.pd-chart-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.pd-chart-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.pd-chart-label.active {
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.txt-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
    .pd-stats-grid {
        grid-template-columns: 1fr;
    }

    .pd-middle-grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 440px) {
    .pd-dashboard-wrapper {
    padding: 30px;
}
}

