/* ── Two-column body ───────────────────────────────────────── */

.dash-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .dash-body {
        grid-template-columns: 1fr;
    }
}

.dash-left,
.dash-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Panel shell ───────────────────────────────────────────── */

.dash-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.dash-panel--flush .cal-wrap {
    padding: 0;
}

.dash-panel--flush .cal-card {
    border: none;
    border-radius: 0;
    max-width: 100%;
}

.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.dash-panel-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dash-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--bg-accent);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.dash-badge--alert {
    background: #FEF3C7;
    color: #92400E;
}

.dash-view-all {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}

.dash-view-all:hover {
    color: var(--primary);
}

.dash-panel-body {
    padding: 0.75rem 1.25rem 1.25rem;
}

/* ── Empty / loading states ────────────────────────────────── */

.dash-loading,
.dash-empty {
    font-size: 13px;
    color: var(--text-muted);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-empty--error {
    color: var(--red);
}

/* ── Quote items ───────────────────────────────────────────── */

.quote-item {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--bg-accent);
}

.quote-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quote-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.quote-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.quote-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.quote-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-left: 8px;
}

.quote-status--urgent {
    background: #FEE2E2;
    color: #991B1B;
}

.quote-status--pending {
    background: #FEF9C3;
    color: #854D0E;
}

.quote-progress {
    height: 3px;
    border-radius: 2px;
    background: var(--amber);
    width: 60%;
    margin-bottom: 10px;
    opacity: 0.7;
}

.quote-progress--urgent {
    background: var(--red);
    width: 85%;
}

.quote-item-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.quote-detail {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.quote-detail i {
    font-size: 12px;
}

.quote-actions {
    display: flex;
    gap: 6px;
}

.qbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.qbtn--accept {
    background: #D1FAE5;
    color: #065F46;
    border-color: #A7F3D0;
}

.qbtn--accept:hover {
    background: #A7F3D0;
}

.qbtn--modify {
    background: var(--bg-accent);
    color: var(--text-secondary);
    border-color: var(--border);
}

.qbtn--modify:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.qbtn--reject {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

.qbtn--reject:hover {
    background: #FECACA;
}

/* ── Today's schedule table ────────────────────────────────── */

.sched-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.sched-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 420px;
}

.sched-table thead th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-align: left;
    padding: 6px 0 10px;
    border-bottom: 1px solid var(--bg-accent);
}

.sched-table tbody tr {
    border-bottom: 1px solid var(--bg-accent);
    transition: background 0.12s;
}

.sched-table tbody tr:last-child {
    border-bottom: none;
}

.sched-table tbody tr:hover {
    background: var(--bg);
}

.sched-table td {
    padding: 10px 0;
    color: var(--text-secondary);
    vertical-align: middle;
}

.sched-name {
    font-weight: 600;
    color: var(--text-primary) !important;
    padding-right: 12px !important;
}

.sched-service {
    color: var(--text-secondary);
}

.sched-time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sched-view {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.sched-view:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

/* Status badges - shared utility */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.status-confirmed  { background: #D1FAE5; color: #065F46; }
.status-pending    { background: #FEF9C3; color: #854D0E; }
.status-completed  { background: #DBEAFE; color: #1E40AF; }
.status-cancelled  { background: #F3F4F6; color: #6B7280; }

/* ── Profit tracker ────────────────────────────────────────── */

.profit-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-accent);
    border-radius: 7px;
    padding: 2px;
}

.profit-tab {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.profit-tab.active {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profit-amount {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0.5rem 0 2px;
    line-height: 1;
}

.profit-amount--pos { color: var(--green); }
.profit-amount--neg { color: var(--red); }

.profit-label {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profit-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.profit-row-label {
    color: var(--text-secondary);
}

.profit-row-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.profit-row-val--rev  { color: var(--green); }
.profit-row-val--cost { color: var(--red); }

.profit-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.profit-row--total .profit-row-label {
    font-weight: 600;
    color: var(--text-primary);
}