/* ============================================================
   DeskFlow Helpdesk — styles.css
   Design: Refined utilitarian SaaS / warm cream + deep indigo
   Font: Sora (display) + DM Sans (body) + DM Mono (code/ids)
   ============================================================ */

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Core palette */
    --cream: #F8F6F1;
    --cream-dark: #EDE9E0;
    --white: #FFFFFF;
    --ink: #1A1916;
    --ink-2: #3A3832;
    --ink-3: #6B6760;
    --ink-4: #9C9994;

    /* Accent — deep indigo */
    --accent: #3D52A0;
    --accent-2: #2C3D7A;
    --accent-light: #E8EBF5;
    --accent-glow: rgba(61, 82, 160, 0.12);

    /* Status colors */
    --open: #E8863A;
    --open-bg: #FEF4EC;
    --progress: #5B8FDD;
    --progress-bg: #EBF2FC;
    --resolved: #3DAA72;
    --resolved-bg: #E8F6EE;
    --closed: #8A8A8A;
    --closed-bg: #F0F0F0;

    /* Priority colors */
    --urgent: #D94040;
    --urgent-bg: #FAEAEA;
    --high: #E8863A;
    --high-bg: #FEF4EC;
    --medium: #C9A227;
    --medium-bg: #FDF7E5;
    --low: #3DAA72;
    --low-bg: #E8F6EE;

    /* SLA overdue */
    --overdue: #D94040;
    --overdue-bg: #FAEAEA;

    /* UI */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(26, 25, 22, 0.07), 0 1px 2px rgba(26, 25, 22, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 25, 22, 0.08), 0 2px 4px rgba(26, 25, 22, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 25, 22, 0.1), 0 4px 12px rgba(26, 25, 22, 0.06);
    --shadow-xl: 0 24px 60px rgba(26, 25, 22, 0.14), 0 8px 20px rgba(26, 25, 22, 0.08);

    --transition: 0.18s ease;
    --border: 1px solid rgba(26, 25, 22, 0.09);
}

html {
    font-size: 15px;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-4);
    border-radius: 99px;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 60px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.brand-mark {
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1;
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.role-toggle {
    display: flex;
    background: var(--cream-dark);
    border: var(--border);
    border-radius: var(--radius-xl);
    padding: 3px;
    gap: 2px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border: none;
    background: transparent;
    border-radius: 99px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-3);
    cursor: pointer;
    transition: all var(--transition);
}

.toggle-btn.active {
    background: var(--white);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
}

.toggle-icon {
    font-size: 0.9rem;
}

.header-version {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--ink-4);
    background: var(--cream-dark);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: var(--border);
}

/* ══════════════════════════════════════════
   VIEWS
══════════════════════════════════════════ */
.view {
    width: 100%;
}

/* ══════════════════════════════════════════
   CUSTOMER VIEW — HERO
══════════════════════════════════════════ */
.customer-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    padding: 56px 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 14px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

/* Decorative circles */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.c1 {
    width: 300px;
    height: 300px;
    top: -120px;
    right: -80px;
}

.c2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -40px;
}

.c3 {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 15%;
    background: rgba(255, 255, 255, 0.04);
}

/* ── Customer Body ── */
.customer-body {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}

.form-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    animation: slideUp 0.35s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card-header {
    padding: 32px 36px 24px;
    border-bottom: var(--border);
    background: var(--cream);
}

.form-card-header h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.form-card-header p {
    font-size: 0.88rem;
    color: var(--ink-3);
}

/* Form inner */
form {
    padding: 28px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.01em;
}

.required {
    color: var(--urgent);
}

input[type="text"],
input[type="email"],
textarea,
select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid rgba(26, 25, 22, 0.14);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: var(--urgent);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '↓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--ink-3);
}

.select-wrapper select {
    appearance: none;
    padding-right: 34px;
}

.select-wrapper.sm select {
    padding: 7px 32px 7px 11px;
    font-size: 0.84rem;
}

.field-error {
    font-size: 0.76rem;
    color: var(--urgent);
    min-height: 16px;
    font-weight: 500;
}

.char-count {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--ink-4);
    text-align: right;
    margin-top: -4px;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-light);
}

.btn-danger-outline {
    background: transparent;
    color: var(--urgent);
    border-color: var(--urgent);
}

.btn-danger-outline:hover {
    background: var(--urgent-bg);
}

.btn-arrow {
    transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

/* Success card */
.success-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 52px 40px;
    text-align: center;
    animation: slideUp 0.35s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--resolved-bg);
    color: var(--resolved);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.success-card h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.success-card p {
    color: var(--ink-3);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success-ticket-id {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 8px 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   AGENT DASHBOARD
══════════════════════════════════════════ */

/* ── Metrics ── */
.metrics-section {
    padding: 24px 28px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.metric-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cream-dark);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.metric-card.accent-open::before {
    background: var(--open);
}

.metric-card.accent-progress::before {
    background: var(--progress);
}

.metric-card.accent-resolved::before {
    background: var(--resolved);
}

.metric-card.accent-time::before {
    background: var(--accent);
}

.metric-card.accent-urgent::before {
    background: var(--urgent);
}

.metric-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-3);
    margin-bottom: 6px;
}

.metric-value {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
}

.metric-sub {
    font-size: 0.73rem;
    color: var(--ink-4);
}

/* ── Toolbar ── */
.toolbar-section {
    padding: 20px 28px 0;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.search-icon {
    font-size: 1.1rem;
    color: var(--ink-4);
}

.toolbar-search input {
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 0.88rem;
    flex: 1;
    min-width: 0;
}

.toolbar-search input:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.toolbar-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-count {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--ink-3);
    background: var(--cream);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    border: var(--border);
}

/* ── Table ── */
.table-section {
    padding: 16px 28px 40px;
}

.table-wrapper {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.tickets-table thead tr {
    background: var(--cream);
    border-bottom: 1.5px solid var(--cream-dark);
}

.tickets-table th {
    padding: 12px 14px;
    text-align: left;
    font-family: 'Sora', sans-serif;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-3);
    white-space: nowrap;
}

.tickets-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: var(--border);
}

.tickets-table tbody tr {
    transition: background var(--transition);
    cursor: pointer;
}

.tickets-table tbody tr:hover {
    background: rgba(61, 82, 160, 0.03);
}

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

/* Overdue row highlight */
.tickets-table tbody tr.overdue {
    background: rgba(217, 64, 64, 0.04);
}

.tickets-table tbody tr.overdue td:first-child {
    border-left: 3px solid var(--overdue);
}

/* Ticket ID cell */
.ticket-id-cell {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.03em;
}

/* Customer cell */
.customer-cell .cust-name {
    font-weight: 500;
    color: var(--ink);
    display: block;
}

.customer-cell .cust-email {
    font-size: 0.76rem;
    color: var(--ink-3);
}

/* Subject cell */
.subject-cell {
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-status-open {
    background: var(--open-bg);
    color: var(--open);
}

.badge-status-progress {
    background: var(--progress-bg);
    color: var(--progress);
}

.badge-status-resolved {
    background: var(--resolved-bg);
    color: var(--resolved);
}

.badge-status-closed {
    background: var(--closed-bg);
    color: var(--closed);
}

.badge-priority-urgent {
    background: var(--urgent-bg);
    color: var(--urgent);
}

.badge-priority-high {
    background: var(--high-bg);
    color: var(--high);
}

.badge-priority-medium {
    background: var(--medium-bg);
    color: var(--medium);
}

.badge-priority-low {
    background: var(--low-bg);
    color: var(--low);
}

.badge-agent {
    font-size: 0.68rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 99px;
    font-weight: 600;
    vertical-align: middle;
}

.badge-category {
    background: var(--cream-dark);
    color: var(--ink-2);
}

/* SLA cell */
.sla-cell .sla-time {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    display: block;
}

.sla-cell .sla-label {
    font-size: 0.7rem;
    color: var(--ink-4);
}

.sla-cell.overdue-sla .sla-time {
    color: var(--urgent);
    font-weight: 600;
}

.sla-cell .overdue-tag {
    display: inline-block;
    font-size: 0.65rem;
    background: var(--urgent-bg);
    color: var(--urgent);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 2px;
}

/* Date cell */
.date-cell {
    font-size: 0.78rem;
    color: var(--ink-3);
    white-space: nowrap;
}

/* Actions cell */
.action-btn {
    background: var(--accent-light);
    color: var(--accent);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    padding: 5px 13px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Assigned agent display */
.assigned-cell {
    font-size: 0.8rem;
    color: var(--ink-2);
}

.assigned-cell.unassigned {
    color: var(--ink-4);
    font-style: italic;
}

/* Empty state */
.table-empty {
    text-align: center;
    padding: 64px 20px;
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--ink-4);
    margin-bottom: 14px;
    display: block;
}

.table-empty p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.table-empty span {
    font-size: 0.83rem;
    color: var(--ink-4);
}

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 22, 0.45);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-panel {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    animation: slideUp 0.25s ease;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 20px;
    background: var(--cream);
    border-bottom: var(--border);
    gap: 16px;
}

.modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-ticket-id {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.modal-title {
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--ink);
}

.modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: var(--border);
    background: var(--white);
    color: var(--ink-3);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--cream-dark);
    color: var(--ink);
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-cols {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

.info-section,
.control-section {
    margin-bottom: 24px;
}

.info-section:last-child,
.control-section:last-child {
    margin-bottom: 0;
}

.info-section h3,
.control-section h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-3);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label {
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-4);
}

.info-value {
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 500;
}

.description-text {
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.7;
    white-space: pre-wrap;
    background: var(--cream);
    padding: 14px;
    border-radius: var(--radius-md);
    border: var(--border);
}

.modal-controls .form-group {
    margin-bottom: 14px;
}

.modal-controls textarea {
    font-size: 0.85rem;
    min-height: 90px;
    background: var(--cream);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: var(--border);
    margin-top: 20px;
}

/* ══════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    pointer-events: none;
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success {
    background: var(--resolved);
}

.toast.toast-error {
    background: var(--urgent);
}

.toast.toast-info {
    background: var(--accent);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .modal-cols {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .metrics-section,
    .toolbar-section,
    .table-section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 640px) {
    .app-header {
        padding: 0 16px;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    form {
        padding: 20px 20px 24px;
    }

    .form-card-header {
        padding: 24px 20px 18px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-name {
        display: none;
    }

    .tickets-table {
        min-width: 700px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   UTILITY
══════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}