* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --surface-hover: #252540;
    --border: #2a2a45;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --accent: #d4a017;
    --accent-dark: #b8860b;
    --error: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --success: #27ae60;
    --tab-bar-h: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.hidden { display: none !important; }

/* Login */
.login-box {
    max-width: 320px;
    margin: 20vh auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    text-align: center;
}

.login-box h1 { color: var(--accent); font-size: 2rem; margin-bottom: 0.25rem; }
.login-box p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

.login-box input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.login-box input:focus { outline: none; border-color: var(--accent); }

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.login-box button:hover { background: var(--accent-dark); }
.error { color: var(--error); margin-top: 0.75rem; font-size: 0.9rem; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 { color: var(--accent); font-size: 1.2rem; font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 0.5rem; }

.last-update-text { font-size: 0.7rem; color: var(--text-muted); }

.badge { padding: 0.2rem 0.45rem; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.badge-ok { background: var(--success); color: #000; }
.badge-error { background: var(--error); color: #fff; }
.badge-muted { background: var(--surface-hover); color: var(--text-muted); }

.btn-small {
    padding: 0.3rem 0.6rem;
    background: var(--surface-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
}

.btn-small:hover { background: var(--border); color: var(--text); }
.btn-warning { color: var(--warning) !important; border-color: var(--warning) !important; }
.btn-warning:hover { background: var(--warning) !important; color: #000 !important; }

/* Main + Tab panels */
main {
    padding: 0.875rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: calc(var(--tab-bar-h) + 1rem);
}

.tab-panel { display: block; }
.tab-panel.hidden { display: none; }

/* Tab Bar */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tab-bar-h);
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 20;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.15s;
}

.tab-btn.active { color: var(--accent); }
.tab-btn:hover { color: var(--text); }
.tab-icon { font-size: 1.3rem; line-height: 1; }
.tab-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Executive Summary */
.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.summary-row { display: flex; justify-content: space-around; text-align: center; }
.summary-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.summary-number { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.summary-number.muted { color: var(--text-muted); font-size: 1.25rem; }
.summary-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Action Items */
.item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    cursor: pointer;
    gap: 0.75rem;
}

.item-header:hover { background: var(--surface-hover); }
.item-left { flex: 1; min-width: 0; }

.item-severity {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.severity-error { background: var(--error); }
.severity-warning { background: var(--warning); }
.severity-info { background: var(--info); }

.item-title { font-size: 0.95rem; line-height: 1.4; word-break: break-word; }

.item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-actions { flex-shrink: 0; }

.btn-dismiss {
    padding: 0.35rem 0.65rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-dismiss:hover { background: var(--error); color: #fff; border-color: var(--error); }

.item-detail {
    padding: 0 1rem 0.875rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: none;
}

.item.expanded .item-detail { display: block; }

.category-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-action_needed { background: var(--warning); color: #000; }
.category-info { background: var(--info); color: #fff; }
.category-wedding_dj { background: #9b59b6; color: #fff; }
.category-spam { background: var(--error); color: #fff; }
.category-newsletter { background: var(--surface-hover); color: var(--text-muted); }

.followup-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--error);
    color: #fff;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Sender thread grouping */
.item-thread {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.item-thread-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    user-select: none;
}

.item-thread-header:hover { background: var(--surface-hover); }

.item-thread-body { flex: 1; min-width: 0; }

.item-thread-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.item-thread-name { font-weight: 600; font-size: 0.9rem; }

.item-thread-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    background: var(--accent);
    padding: 0.05rem 0.4rem;
    border-radius: 10px;
}

.item-thread-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-thread-items { display: none; border-top: 1px solid var(--border); }
.item-thread.expanded .item-thread-items { display: block; }

.item-thread .item {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
.item-thread .item:last-child { border-bottom: none; }

.section-empty { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }

.info-section { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.5rem; }

.info-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
}

.info-toggle:hover { background: var(--surface-hover); }
.info-arrow { transition: transform 0.2s; }
.info-section.expanded .info-arrow { transform: rotate(180deg); }
.info-items { display: none; padding-top: 0.5rem; }
.info-section.expanded .info-items { display: block; }
.info-items .item { opacity: 0.7; border-color: transparent; }
.info-items .item:hover { opacity: 1; }

#empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
#empty-state p { font-size: 1.1rem; }

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.25rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.modal-header h3 { font-size: 1.1rem; color: var(--accent); flex: 1; margin-right: 1rem; }

.modal-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

.modal-actions { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.modal-draft { margin-top: 0.75rem; }
.modal-draft h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 0.5rem; }

.modal-draft textarea {
    width: 100%;
    min-height: 150px;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.reauth-link {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.reauth-link:hover { opacity: 0.85; }
.success { color: #2ecc71; margin-top: 0.75rem; font-size: 0.9rem; }
.muted { color: var(--text-muted); font-size: 0.9rem; }

/* Chat */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-top: 0.25rem;
}

.chat-title { font-size: 1rem; font-weight: 600; color: var(--accent); }

#chat-messages {
    max-height: 55vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.chat-msg {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-msg.user { align-self: flex-end; background: var(--accent-dark); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.system { align-self: center; background: var(--surface-hover); color: var(--text-muted); font-size: 0.8rem; border-radius: 8px; }
.chat-msg code { background: var(--bg); padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.85em; }
.chat-msg pre { background: var(--bg); padding: 0.5rem; border-radius: 6px; overflow-x: auto; margin: 0.5rem 0; }
.chat-msg pre code { background: none; padding: 0; }
.chat-msg strong { color: var(--accent); }
.chat-msg a { color: var(--accent); }

.action-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover { background: var(--accent); color: #000; }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-input-bar { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

.chat-input-bar input {
    flex: 1;
    padding: 0.7rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
}

.chat-input-bar input:focus { outline: none; border-color: var(--accent); }

.chat-input-bar button {
    padding: 0.7rem 1.2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.chat-input-bar button:hover { background: var(--accent-dark); }
.chat-input-bar button:disabled { opacity: 0.5; cursor: not-allowed; }

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.65rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.queue-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-left: 0.5rem;
    align-self: center;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* Briefing */
.briefing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 0.25rem;
}

.briefing-title { font-size: 1rem; font-weight: 600; color: var(--accent); }

.briefing-hint { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

.briefing-loading { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: 0.9rem; }

.briefing-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.briefing-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
}

.briefing-section-header:hover { background: var(--surface-hover); }
.briefing-section-title { font-weight: 600; font-size: 0.95rem; }
.briefing-arrow { color: var(--text-muted); font-size: 0.8rem; transition: transform 0.2s; }
.briefing-section.open .briefing-arrow { transform: rotate(180deg); }
.briefing-articles { display: none; border-top: 1px solid var(--border); }
.briefing-section.open .briefing-articles { display: block; }

.briefing-article {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.briefing-article:last-child { border-bottom: none; }

.briefing-article a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.25rem;
}

.briefing-article a:hover { color: var(--accent); }

.briefing-article p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.briefing-error { font-size: 0.85rem; color: var(--text-muted); padding: 0.75rem 1rem; font-style: italic; }

/* Inbox AI prioritisation card */
.inbox-ai-summary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #3a3a5c;
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text);
}

/* AI-generated summary (replaces card layout) */
.briefing-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    line-height: 1.65;
    font-size: 0.97rem;
}

.briefing-summary p {
    margin-bottom: 0.9rem;
    color: var(--text);
}

.briefing-summary p:last-child { margin-bottom: 0; }

.briefing-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    header { padding: 0.6rem 0.875rem; }
    header h1 { font-size: 1.1rem; }
    main { padding: 0.75rem; padding-bottom: calc(var(--tab-bar-h) + 0.75rem); }
    .item-header { padding: 0.75rem; }
    .chat-msg { max-width: 92%; }
    #chat-messages { max-height: 50vh; }
    .modal-content { max-height: 90vh; padding: 1rem; }
    .last-update-text { display: none; }
}

@media (max-width: 380px) {
    .btn-small { padding: 0.25rem 0.4rem; font-size: 0.72rem; }
    header h1 { font-size: 1rem; }
    #health-status { display: none; }
}

/* ── Wedding Quotes ──────────────────────────────── */
.quotes-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.quotes-filters { display: flex; gap: 0.25rem; }
.quote-filter.active { background: var(--accent, #e6a817); color: #000; }

.quote-card {
    background: var(--card-bg, #16213e);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-left: 3px solid var(--accent, #e6a817);
    transition: background 0.15s;
}
.quote-card:hover { background: var(--card-hover, #1a2744); }
.quote-card.quote-lost { opacity: 0.5; border-left-color: #666; }

.quote-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.quote-card-venue { color: #aaa; font-size: 0.85rem; margin-bottom: 0.25rem; }
.quote-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: #888; margin-bottom: 0.25rem; }
.quote-card-bottom { display: flex; gap: 1rem; font-size: 0.75rem; color: #666; }

.quote-no-reply { color: #e67e22; }
.quote-reply { color: #27ae60; }

.badge-temp-hot { background: #e74c3c; color: #fff; }
.badge-temp-warm { background: #e6a817; color: #000; }
.badge-temp-cold { background: #3498db; color: #fff; }
.badge-success { background: #27ae60; color: #fff; }

.quote-details { padding: 0.5rem 0; }
.qd-row { padding: 0.25rem 0; font-size: 0.9rem; }
.qd-row strong { color: #aaa; min-width: 100px; display: inline-block; }

.quote-actions { display: flex; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid #333; }
.temp-buttons { display: flex; gap: 0.5rem; }
.status-buttons { display: flex; gap: 0.5rem; }

.btn-temp { padding: 0.3rem 0.7rem; border-radius: 4px; border: 1px solid #555; background: transparent; color: #ccc; cursor: pointer; font-size: 0.8rem; }
.btn-temp.hot { border-color: #e74c3c; }
.btn-temp.warm { border-color: #e6a817; }
.btn-temp.cold { border-color: #3498db; }
.btn-temp.selected { color: #fff; }
.btn-temp.hot.selected { background: #e74c3c; }
.btn-temp.warm.selected { background: #e6a817; color: #000; }
.btn-temp.cold.selected { background: #3498db; }

.quote-suggest { display: flex; gap: 0.5rem; padding: 0.5rem 0; }
.quote-suggest .action-btn { flex: 1; font-size: 0.8rem; }

/* ── Tasks ──────────────────────────────────────────── */
.tasks-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.tasks-filters { display: flex; gap: 0.3rem; }
.task-add-bar { display: flex; gap: 0.5rem; padding: 0.5rem 0; }
.task-add-bar input { flex: 1; padding: 0.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.9rem; }
.task-card { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); }
.task-card-left { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.task-card-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.task-content { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-done .task-content { text-decoration: line-through; color: var(--text-muted); }
.task-check { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0; width: 1.5rem; }
.task-check.checked { color: var(--success); }
.task-delete { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0.2rem; opacity: 0.5; }
.task-delete:hover { opacity: 1; color: var(--error); }
.task-due { font-size: 0.75rem; color: var(--text-muted); }

/* ── Statements ────────────────────────────────────── */
.statements-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.statements-actions { display: flex; gap: 0.5rem; }
.stmt-batch-summary { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.stmt-batch-summary span { font-size: 0.85rem; color: var(--text-muted); }
.stmt-batch-actions { display: flex; gap: 0.5rem; }

.stmt-card { background: var(--card-bg, #16213e); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.5rem; cursor: pointer; border-left: 3px solid var(--accent, #e6a817); transition: background 0.15s; }
.stmt-card:hover { background: var(--card-hover, #1a2744); }
.stmt-card-top { display: flex; justify-content: space-between; align-items: center; }
.stmt-card-top strong { font-size: 0.95rem; }
.stmt-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.stmt-card-email { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

.stmt-card.status-pending { border-left-color: var(--accent, #e6a817); }
.stmt-card.status-approved { border-left-color: #27ae60; }
.stmt-card.status-sent { border-left-color: #3498db; opacity: 0.7; }
.stmt-card.status-failed { border-left-color: #e74c3c; }
.stmt-card.status-skipped { border-left-color: #666; opacity: 0.5; }

.badge-stmt { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: var(--accent, #e6a817); color: #000; }
.badge-approved { background: #27ae60; color: #fff; }
.badge-sent { background: #3498db; color: #fff; }
.badge-failed { background: #e74c3c; color: #fff; }
.badge-skipped { background: #666; color: #fff; }

.stmt-input { width: 100%; padding: 0.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.9rem; box-sizing: border-box; }
.stmt-pdf-preview { margin-top: 0.75rem; }
.stmt-pdf-preview h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 0.5rem; }
.stmt-pdf-frame { width: 100%; height: 400px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.cust-overdue { color: #e74c3c; font-weight: 600; }
