/* ==========================================================================
   Exfinserv — Tax & Financial Services Platform
   Portal-Style Corporate Theme (Income Tax Portal Color Palette)
   ========================================================================== */

:root {
    --portal-navy: #283583;
    --portal-navy-dark: #1d2766;
    --portal-blue-accent: #3b4cb8;
    --portal-blue-light: #eff6ff;
    --portal-border-blue: #bfdbfe;
    
    --bg-page: #f4f6f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --primary: #283583;
    --primary-hover: #1d2766;
    --primary-accent: #3b4cb8;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --sidebar-width: 240px;
    --sidebar-bg: #283583;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── App Layout ─────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    padding-top: 54px;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 54px;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.08);
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1d2766;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.brand-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #c7d2fe;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 1.25rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
    width: 0;
}

.nav-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c7d2fe;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    box-sizing: border-box;
}

.nav-item a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Active tab style matching the portal outline in reference image */
.nav-item.active a {
    color: #ffffff;
    background: #1e2865;
    border: 1.5px solid #ffffff;
    font-weight: 800;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.nav-item.active a i {
    color: #ffffff;
}

.nav-item a i {
    font-size: 1.05rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.nav-item a:hover i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 1.25rem;
    background: #1d2766;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    color: #c7d2fe;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    color: #6ee7b7;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* ── Main Content Area ───────────────────────────────────────────── */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.25rem 1.75rem 2.5rem;
    width: calc(100% - var(--sidebar-width));
    min-height: calc(100vh - 54px);
    overflow-x: hidden;
}

/* ── Mobile Header ──────────────────────────────────────────────── */
.mobile-header {
    display: none;
    padding: 0.85rem 1.25rem;
    background: var(--portal-navy);
    color: #ffffff;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
}

@media (max-width: 900px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.open { transform: translateX(0); }
    .app-main { margin-left: 0; width: 100%; padding: 1.25rem 1rem; }
    .mobile-header { display: flex; }
}

/* ── Top Header / Hero ───────────────────────────────────────────── */
.content-header {
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--portal-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.header-badge {
    background: var(--portal-blue-light);
    color: var(--portal-navy);
    border: 1px solid var(--portal-border-blue);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ── Portal Info Callout Box (Reference from Portal UI) ──────────── */
.portal-info-box {
    background: var(--portal-blue-light);
    border: 1px solid var(--portal-border-blue);
    border-left: 4px solid var(--portal-blue-accent);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.portal-info-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--portal-navy);
    margin-bottom: 0.35rem;
}

.portal-info-desc {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

/* ── Cards & Upload Form ─────────────────────────────────────────── */
.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f8fafc;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--portal-blue-accent);
    background: var(--portal-blue-light);
}

.drop-zone.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.drop-icon {
    font-size: 2.5rem;
    color: var(--portal-navy);
    margin-bottom: 0.85rem;
}

.drop-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.drop-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-input, .file-input-hidden { display: none !important; }

.file-selected {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 30px;
    font-size: 0.88rem;
    color: #065f46;
    font-weight: 600;
}

.clear-file {
    background: none;
    border: none;
    color: #065f46;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-generate {
    width: 100%;
    padding: 0.88rem 1.5rem;
    background: var(--portal-navy);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-generate:hover:not(:disabled) {
    background: var(--portal-navy-dark);
    box-shadow: 0 6px 18px rgba(28, 53, 94, 0.35);
}

.btn-generate:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Key Inputs for AIS Decryption ──────────────────────────────── */
.sidebar-brand {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
}

.header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.report-logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 4px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--portal-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.step-title { font-weight: 700; font-size: 1rem; color: var(--portal-navy); }
.step-sub { font-size: 0.82rem; color: var(--text-secondary); }

.key-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) { .key-inputs { grid-template-columns: 1fr; } }

.key-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.key-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.key-field input {
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.key-field input:focus {
    border-color: var(--portal-blue-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── ITR Grid Cards ──────────────────────────────────────────────── */
.itr-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 750px) { .itr-type-grid { grid-template-columns: 1fr; } }

.itr-type-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.itr-type-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.itr-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.itr-badge.itr1 { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.itr-badge.itr2 { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.itr-badge.itr3 { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }
.itr-badge.itr4 { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Alerts */
.alert {
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

.security-note {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ════════════════════════════════════════════════════════════════
   A4 COMPUTATION & AIS REPORT DISPLAY (Screen & Print)
 ════════════════════════════════════════════════════════════════ */
.comp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.toolbar-btn:hover { background: #f8fafc; }

.btn-print {
    background: var(--portal-navy);
    border-color: var(--portal-navy);
    color: #ffffff;
}
.btn-print:hover { background: var(--portal-navy-dark); }

/* A4 Sheet Formatting */
.a4-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.a4-page {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    font-size: 10px;
    line-height: 1.4;
    border: 1px solid #e2e8f0;
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #283583;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.comp-firm-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #283583;
}

.comp-doc-subtitle {
    font-size: 9px;
    color: #6b7280;
    font-weight: 600;
}

.comp-header-meta {
    text-align: right;
    font-size: 9.5px;
}

.comp-meta-row span { color: #6b7280; margin-right: 4px; }
.comp-meta-row strong { color: #111827; }

/* Tables inside Report */
.section-block { margin-bottom: 12px; }
.section-title {
    background: #283583;
    color: #ffffff;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 2px 2px 0 0;
}

.income-head-block {
    margin-top: -1px;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

.details-table, .comp-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    table-layout: fixed;
}

.details-table td {
    padding: 4px 8px;
    font-size: 9.5px;
    border-bottom: 1px solid #f3f4f6;
}

.dt-label { color: #4b5563; font-weight: 600; background: #f9fafb; width: 22%; }
.dt-value { color: #111827; }
.dt-value.strong { font-weight: 700; }
.dt-value.mono { font-family: 'JetBrains Mono', monospace; }

.comp-table th {
    background: #f1f5f9;
    color: #1c355e;
    font-weight: 700;
    font-size: 9px;
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid #cbd5e1;
}

.comp-table td {
    padding: 4px 8px;
    font-size: 9.5px;
    border-bottom: 1px solid #f3f4f6;
}

/* AIS Data Tables (L1 and L2) - Prevent Text Overlap */
.comp-table.dt-table {
    table-layout: auto !important;
    white-space: nowrap !important;
    min-width: 100% !important;
}

.comp-table.dt-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 9.5px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
    text-align: left !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.comp-table.dt-table td {
    padding: 6px 10px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
    text-align: left !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

.comp-table.dt-table td.amount-col {
    text-align: right !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 600;
}

.col-sr { width: 5%; text-align: center; }
.col-particulars { width: 55%; }
.col-amount { width: 20%; text-align: right; font-family: 'JetBrains Mono', monospace; }

.indent-1 { padding-left: 16px !important; }
.indent-2 { padding-left: 28px !important; }
.indent-3 { padding-left: 40px !important; }
.amt { text-align: right; font-family: 'JetBrains Mono', monospace; }

.head-row td { background: #f8fafc; font-weight: 700; color: #1c355e; }
.sub-total-row td { background: #f1f5f9; font-weight: 700; }
.total-row td { border-top: 1px solid #9ca3af; border-bottom: 1px solid #9ca3af; font-weight: 700; }
.grand-total-row td { background: #e2e8f0; font-weight: 800; font-size: 10px; border-top: 2px solid #1c355e; border-bottom: 2px solid #1c355e; }

/* Summary Grid inside Report */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: 4px;
}

.summary-card.highlight { background: #ecfdf5; border-color: #a7f3d0; }
.summary-card.refund { background: #eff6ff; border-color: #bfdbfe; }

.s-label { font-size: 8.5px; color: #64748b; font-weight: 600; text-transform: uppercase; }
.s-value { font-size: 12px; font-weight: 800; color: #1e293b; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

.comp-footer {
    margin-top: 20px;
    border-top: 1px solid #d1d5db;
    padding-top: 8px;
    font-size: 8px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.comp-footer-note { font-style: italic; color: #94a3b8; }

.site-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 1.5rem;
}

/* PRINT MEDIA STYLES */
@media print {
    .app-sidebar, .mobile-header, .bg-grid, .bg-orb, .comp-toolbar, .site-footer, .no-print {
        display: none !important;
    }
    .app-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    body { background: #ffffff !important; color: #000000 !important; }
    .a4-wrapper { margin: 0 !important; }
    .a4-page {
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        border: none !important;
    }

    /* Prevent orphan headers & income head rows at bottom of print page */
    .section-title,
    tr.head-row,
    tr.sub-total-row,
    tr.total-row,
    tr.grand-total-row {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Avoid splitting table rows awkwardly across page breaks */
    .comp-table tr,
    .details-table tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* If an income head row appears near bottom of page, force head row + detail row together */
    tr.head-row + tr {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }
}

/* ── SEND EMAIL & EXCEL MODAL STYLES ────────────────────────────────────────── */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.email-modal-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

.email-modal-header {
    background: #1e293b;
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-modal-title {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.email-modal-close:hover { color: #ffffff; }

.email-modal-body {
    padding: 1.25rem;
    max-height: 75vh;
    overflow-y: auto;
}

.email-form-group {
    margin-bottom: 1rem;
}

.email-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.email-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.comp-email-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}
.comp-email-input:focus { border-color: #2563eb; }

.comp-email-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
    color: #0f172a;
    outline: none;
    line-height: 1.5;
    resize: vertical;
}

.btn-add-more {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
}
.btn-add-more:hover { text-decoration: underline; }

.att-chip {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #334155;
}

.att-badge {
    background: #ecfdf5;
    color: #047857;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

.att-badge-btn {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}
.att-badge-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.email-modal-footer {
    background: #f8fafc;
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    border-top: 1px solid #e2e8f0;
}

.btn-email-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-email-primary:hover { background: #1d4ed8; }

.btn-email-secondary {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-email-secondary:hover { background: #047857; }

.btn-email-cancel {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-email-cancel:hover { background: #cbd5e1; }
