/* Dashboard charts & projections */
.projection-card {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    color: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.projection-card--blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.projection-card--green { background: linear-gradient(135deg, #059669, #047857); }
.projection-card--amber { background: linear-gradient(135deg, #d97706, #b45309); }
.projection-card--purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.projection-card--red { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.projection-card--gray { background: linear-gradient(135deg, #4b5563, #374151); }
.projection-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.projection-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.35rem;
    line-height: 1.2;
}
.projection-sub {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.35rem;
}
.chart-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 1.25rem 1.5rem;
}
.chart-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}
.chart-wrap {
    position: relative;
    height: 260px;
    width: 100%;
}
.chart-wrap--doughnut {
    height: 280px;
    max-width: 320px;
    margin: 0 auto;
}
.chart-wrap--tall {
    height: 300px;
}

/* Executive summary */
.executive-summary__hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
    border-radius: 0.75rem;
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgb(37 99 235 / 0.25);
}
.executive-summary__eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(191 219 254);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.executive-summary__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.35rem;
    line-height: 1.25;
}
.executive-summary__narrative {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgb(219 234 254);
    max-width: 52rem;
}
.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .executive-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .executive-kpi-grid { grid-template-columns: repeat(6, 1fr); }
}
.executive-kpi {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
    border: 1px solid #f3f4f6;
}
.executive-kpi__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}
.executive-kpi__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0.25rem;
}
.executive-kpi__hint {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}
.executive-panel {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
    border: 1px solid #f3f4f6;
}
.executive-panel__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}
.executive-dl__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.executive-dl__row:last-child { border-bottom: none; }
.executive-dl__row dt { font-size: 0.875rem; color: #4b5563; }
.executive-dl__row dd { font-size: 0.875rem; font-weight: 600; color: #111827; }
.executive-project-row {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.executive-project-row:last-child { border-bottom: none; padding-bottom: 0; }
.executive-table th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
.executive-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}
.executive-table tbody tr:last-child td { border-bottom: none; }

/* App layout — prevent flex children from clipping wide tables */
.min-w-0 {
    min-width: 0;
}

/* Data table card: scroll lives inside the card, not the page */
.data-table-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 100%;
}

.data-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.data-table thead {
    background-color: #f9fafb;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    white-space: nowrap;
    vertical-align: bottom;
}

.data-table th.text-right,
.data-table td.text-right {
    text-align: right;
}

.data-table td {
    padding: 0.875rem 1rem;
    color: #111827;
    vertical-align: top;
    border-top: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table .cell-wrap {
    max-width: 20rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.data-table .cell-nowrap {
    white-space: nowrap;
}

.data-table .col-actions {
    white-space: nowrap;
    text-align: right;
    min-width: 8rem;
}

.data-table .col-check {
    width: 2.5rem;
    padding-left: 0.75rem;
    padding-right: 0.5rem;
}

/* Wide picker table (invoice generation) */
.data-table-invoice-picker {
    min-width: 1080px;
}

.data-table th.col-num,
.data-table td.col-num {
    min-width: 4.75rem;
    white-space: nowrap;
    text-align: right;
}

.data-table th.col-hours,
.data-table td.col-hours {
    min-width: 4.25rem;
}

/* Empty state inside tables */
.data-table-empty td {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 1023px) {
    .data-table {
        min-width: 640px;
    }
}

@media print {
    .data-table-scroll {
        overflow: visible !important;
    }
    .data-table {
        min-width: 0 !important;
    }
}

/* Timesheet calendar: 7 day columns + week total */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
}

.calendar-day-today {
    background-color: #eff6ff;
    border: 2px solid #60a5fa;
}

.calendar-week-total,
.calendar-month-total {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
}

