/*
 * inbox-skin.css — design skin for index.html (Inbox) only.
 * Panels now use a colored top-accent card style (set in dashboard.js _dashPanel).
 * This file handles the today-strip, inbox rows, and supporting elements.
 */

/* ── Global tokens (also referenced by dashboard.js inline styles) ── */
:root {
    --text-muted: #A09080;
}

/* ── Today schedule strip ────────────────────────────────────────── */
.today-strip {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.today-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 9px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
}

.today-strip-header strong {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1A1208;
}

.today-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: none;
}
.today-chips::-webkit-scrollbar { display: none; }

.today-chip {
    flex-shrink: 0;
    border-radius: 8px;
    padding: 8px 14px;
    gap: 3px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: filter 0.12s;
    border: 1px solid transparent;
    min-width: 72px;
}

.today-chip:hover { filter: brightness(0.96); }

.today-chip-time {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.today-chip-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

/* Color-coded chip types */
.today-chip.patient {
    background: #EDE5D8;
    border-color: #D0BFA8;
}
.today-chip.patient .today-chip-time  { color: #4A2E18; }
.today-chip.patient .today-chip-label { color: #7A5A38; }

.today-chip.consult {
    background: #FBF2EC;
    border-color: #EDD9C8;
}
.today-chip.consult .today-chip-time  { color: #7A4A20; }
.today-chip.consult .today-chip-label { color: #A07248; }

.today-chip.outside {
    background: #FBF7E8;
    border-color: #EDE4C0;
}
.today-chip.outside .today-chip-time  { color: #7A6A20; }
.today-chip.outside .today-chip-label { color: #9A8840; }

.today-chip.lunch {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    cursor: default;
}
.today-chip.lunch .today-chip-time  { color: var(--text-muted); font-weight: 400; }
.today-chip.lunch .today-chip-label { color: var(--text-muted); }

.today-chip-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
    padding: 12px 16px;
}

/* ── Panel type badge colors (outline inherits currentColor) ─────── */
#refillsPanel    .inbox-item-type { color: #A84030; }
#tasksPanel      .inbox-item-type { color: #8B6020; }
#newPatientPanel .inbox-item-type { color: #8C4A38; }
#prospectsPanel  .inbox-item-type { color: #7A6A1A; }
#dailyPanel      .inbox-item-type { color: #4A7C59; }

/* ── Inbox item rows ─────────────────────────────────────────────── */
.inbox-item {
    padding: 7px 16px;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.inbox-item:last-child { border-bottom: none; }

.inbox-item:hover { background: #FAF7F2; }

/* Stamp style — outline only, no fill. Vintage label feel. */
.inbox-item-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid currentColor;
    flex-shrink: 0;
    line-height: 1.6;
}

.inbox-item-patient {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.inbox-item-summary {
    font-size: 12px;
    color: var(--text-secondary);
}

.inbox-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

.inbox-item.urgent {
    border-left: 3px solid #c62828;
    padding-left: 13px;
}

/* ── Expanded rows ───────────────────────────────────────────────── */
.inbox-item-expand {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.inbox-expand-detail { font-size: 13px; line-height: 1.55; }
.inbox-expand-meta   { font-size: 12px; color: var(--text-secondary); }

.inbox-expand-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Action buttons inside rows ──────────────────────────────────── */
.inbox-action-btn {
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 5px 12px;
    transition: opacity 0.12s, box-shadow 0.12s;
}
.inbox-action-btn.primary {
    background: var(--button-primary);
    color: #fff;
    border-color: var(--button-primary);
}
.inbox-action-btn.primary:hover {
    box-shadow: 0 2px 8px rgba(74,124,89,0.3);
    opacity: 0.92;
}

/* #nextIntakeBanner removed from dashboard */


/* ── Header action buttons ───────────────────────────────────────── */
.page-header button {
    letter-spacing: 0.015em;
    border-radius: 7px;
}

/* ── Sidebar active nav indicator ────────────────────────────────── */
.sidebar-nav a.active {
    border-left-color: #C4AB94 !important;
}
