:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --surface-3: #f3f4f6;
    --border: #d1d5db;
    --border-soft: #e5e7eb;
    --text: #111827;
    --text-muted: #111827;
    --accent: #0b3b92;
    --accent-2: #2563eb;
    --accent-soft: #eef2f7;
    --button-bg: #ffffff;
    --button-hover: #f9fafb;
    --send-bg: #111827;
    --send-hover: #1f2937;
    --send-text: #ffffff;
    --code-bg: #f9fafb;
    --table-head: #eef2f7;
    --table-hover: #f9fafb;
    --logo-bg: #ffffff;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-code: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

body.dark-mode {
    --bg: #1e1e1e;
    --surface: #252526;
    --surface-2: #2d2d30;
    --surface-3: #333333;
    --border: #3c3c3c;
    --border-soft: #2d2d30;
    --text: #d4d4d4;
    --text-muted: #f8fafc;
    --accent: #4fc1ff;
    --accent-2: #569cd6;
    --accent-green: #4ec9b0;
    --accent-orange: #ce9178;
    --accent-soft: #1f3a4d;
    --button-bg: #2d2d30;
    --button-hover: #37373d;
    --send-bg: #0e639c;
    --send-hover: #1177bb;
    --send-text: #ffffff;
    --code-bg: #1e1e1e;
    --table-head: #2a3b4d;
    --table-hover: #2a2d2e;
    --logo-bg: #ffffff;
}

* {
    box-sizing: border-box;
    font-family: var(--font-ui);
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease;
}

body.welcome-locked {
    overflow: hidden;
}

body.dark-mode {
    font-size: 13px;
}

.welcome-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: #ffffff;
    color: #111827;
}

.welcome-gate.is-hidden {
    display: none;
}

.welcome-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 980px);
    min-height: 0;
}

.welcome-visual img {
    display: block;
    width: min(78vw, 720px);
    max-height: 62vh;
    object-fit: contain;
}

.welcome-disclaimer {
    width: min(100%, 1040px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "copy"
        "fields"
        "consent"
        "action"
        "status";
    align-items: start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.welcome-disclaimer > div:first-child {
    grid-area: copy;
    padding-bottom: 14px;
    border-bottom: 1px solid #cbd5e1;
}

.visitor-fields {
    grid-area: fields;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.visitor-fields label {
    display: grid;
    gap: 5px;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
}

.visitor-fields label span {
    font-weight: 650;
}

.visitor-fields input {
    min-height: 38px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 8px 10px;
    background: #ffffff;
    color: #111827;
    font-size: 0.86rem;
}

.visitor-form-status {
    grid-area: status;
    min-height: 18px;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 750;
}

.welcome-disclaimer h1 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.welcome-disclaimer p {
    margin: 0;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.45;
}

.welcome-consent {
    grid-area: consent;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}

.welcome-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: #0b5cff;
}

.welcome-agree-btn {
    grid-area: action;
    justify-self: start;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #0b5cff;
    border-radius: 6px;
    background: #0b5cff;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.welcome-agree-btn:not(:disabled):hover {
    background: #0048d8;
    border-color: #0048d8;
}

.welcome-agree-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.auth-gate.is-visible {
    display: flex;
}

.auth-gate.is-hidden {
    display: none;
}

.auth-card {
    width: min(100%, 430px);
    border: 1px solid #0f172a;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    padding: 22px;
    color: #111827;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.auth-brand h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 850;
}

.auth-brand p,
.auth-help,
.auth-status {
    color: #111827;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-status {
    min-height: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.auth-form.secondary {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #cbd5e1;
}

.auth-form label {
    display: grid;
    gap: 5px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-form input {
    min-height: 40px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 8px 10px;
    color: #111827;
    background: #ffffff;
    font-size: 0.9rem;
}

.auth-form button,
.auth-user-actions button {
    min-height: 36px;
    border: 1px solid #0f172a;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.auth-user-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.auth-user-email {
    color: #111827;
    font-size: 0.76rem;
    font-weight: 800;
}

.auth-user-actions button {
    min-height: 30px;
    padding: 0 8px;
    background: #ffffff;
    color: #0f172a;
}

@media (max-width: 980px) {
    .welcome-gate {
        padding: 20px;
        justify-content: space-between;
    }

    .welcome-visual img {
        width: min(92vw, 560px);
        max-height: 48vh;
    }

    .visitor-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-consent {
        max-width: none;
    }

    .welcome-agree-btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .visitor-fields {
        grid-template-columns: 1fr;
    }
}

.app-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.app-logo,
.bot-avatar img {
    display: block;
    object-fit: contain;
    background: transparent;
}

.app-logo {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.app-title {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.app-subtitle,
.muted-text {
    color: var(--text-muted);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-container {
    width: 100%;
    max-width: 1600px;
}

.app-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 28px;
    transition: grid-template-columns 0.2s ease;
}

.sidebar-panel {
    min-width: 0;
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.main-panel {
    min-width: 0;
    position: relative;
}

.sidebar-slide-toggle {
    position: absolute;
    top: -42px;
    left: 0;
    z-index: 5;
}

.app-layout.sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.app-layout.sidebar-collapsed .sidebar-panel {
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
}

.chat-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    height: calc(100vh - 168px);
    min-height: 620px;
}

.chat-input-bar {
    border-top: 1px solid var(--border);
}

.icon-btn,
.icon-action-btn,
.header-action-btn,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--button-bg);
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-btn {
    width: 30px;
    height: 30px;
}

.icon-btn:hover,
.icon-action-btn:hover,
.header-action-btn:hover,
.theme-toggle:hover {
    background: var(--button-hover);
    border-color: var(--accent);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.icon-action-btn {
    width: 46px;
    height: 46px;
}

.send-action-btn {
    background: var(--send-bg);
    border-color: var(--send-bg);
    color: var(--send-text);
}

.send-action-btn:hover {
    background: var(--send-hover);
    border-color: var(--send-hover);
}

.send-action-btn.is-stopping {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.send-action-btn.is-stopping .send-icon {
    fill: currentColor;
    stroke: currentColor;
}

.send-action-btn.is-stopping:hover {
    background: #991b1b;
    border-color: #991b1b;
}

.header-action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
}

.header-action-btn svg {
    width: 15px;
    height: 15px;
}

.theme-toggle {
    width: 46px;
    height: 34px;
    padding: 0 5px;
}

.theme-toggle-track {
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    transition: transform 0.2s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    transform: translateX(16px);
}

.module-btn {
    color: var(--text);
}

.module-btn:hover,
.module-btn.active {
    background: var(--surface-2);
    border-color: var(--border);
}

body.dark-mode .module-btn.active {
    color: #ffffff;
    border-color: #007acc;
    background: #04395e;
}

textarea {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    font-size: 0.875rem;
}

body.dark-mode textarea {
    font-family: var(--font-code);
    caret-color: #ffffff;
}

textarea::placeholder {
    color: var(--text-muted);
}

@media (max-width: 1023px) {
    .app-layout,
    .app-layout.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .app-layout.sidebar-collapsed .sidebar-panel {
        display: none;
    }
}

.chat-message {
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--text-muted);
    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; }

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

.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    overflow: visible;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.user-avatar svg {
    width: 16px;
    height: 16px;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    padding: 0;
}

.system-message {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.message-content {
    color: var(--text);
    line-height: 1.6;
}

.message-content,
.message-content p,
.message-content li,
.message-content div,
.message-content span,
.message-content td {
    color: #111827;
}

body.dark-mode .message-content {
    font-family: var(--font-code);
    font-size: 13px;
    color: #f8fafc;
}

body.dark-mode .message-content,
body.dark-mode .message-content p,
body.dark-mode .message-content li,
body.dark-mode .message-content div,
body.dark-mode .message-content span,
body.dark-mode .message-content td {
    color: #f8fafc;
}

.message-content strong {
    color: var(--accent);
    font-weight: 600;
}

.message-content h1 {
    color: #0b3b92;
}

.message-content h2 {
    color: #2563eb;
}

.message-content h3 {
    color: #0f766e;
}

body.dark-mode .message-content h1 {
    color: #4fc1ff;
}

body.dark-mode .message-content h2 {
    color: var(--accent-orange);
}

body.dark-mode .message-content h3 {
    color: var(--accent-green);
}

.message-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.message-content code {
    background: var(--code-bg);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: var(--font-code);
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.82em;
    background: var(--surface);
    min-width: 720px;
}

.message-content th {
    background: var(--table-head);
    border: 1px solid var(--border);
    padding: 9px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    vertical-align: top;
}

.message-content td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    color: var(--text);
    vertical-align: top;
}

.message-content tr:hover {
    background: var(--table-hover);
}

.rca-figma-diagram {
    display: none;
    margin: 18px 0 22px;
    border: 1px solid #0f172a;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rca-diagram-chat-note {
    margin: 12px 0 14px;
    padding: 10px 12px;
    border: 1px solid #0f172a;
    border-left: 4px solid #0d9488;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a !important;
    font-size: 0.82rem;
    font-weight: 700;
}

body.dark-mode .rca-diagram-chat-note {
    background: #ffffff;
    color: #0f172a !important;
}

.rca-diagram-header {
    padding: 10px 14px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rca-diagram-canvas {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    overflow-x: auto;
    background: #ffffff;
}

.rca-diagram-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 150px;
    max-width: 230px;
    padding: 12px;
    border: 2px solid #0d9488;
    border-radius: 8px;
    background: #ecfeff;
    color: #0f172a !important;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
}

.rca-node-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 850;
}

.rca-diagram-arrow {
    align-self: center;
    width: 34px;
    height: 2px;
    flex: 0 0 34px;
    background: #0f172a;
    position: relative;
}

.rca-diagram-arrow::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -1px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #0f172a;
}

.rca-diagram-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
    background: #ffffff;
}

.rca-diagram-links span,
.rca-diagram-empty {
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f0fdfa;
    color: #0f172a !important;
    font-size: 0.72rem;
    font-weight: 750;
}

body.dark-mode .rca-figma-diagram,
body.dark-mode .rca-diagram-canvas,
body.dark-mode .rca-diagram-links {
    background: #ffffff;
}

.attachment-list,
.attachment-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.75rem;
    line-height: 1.2;
}

.attachment-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text);
    cursor: pointer;
    font-size: 0.7rem;
}

.attachment-chip button:hover {
    background: var(--border);
}

.matrix-container {
    position: relative;
    margin: 16px 0;
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--surface);
}

.matrix-container table {
    margin: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 58px;
    min-height: 34px;
    padding: 6px 9px;
    background: var(--button-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    margin: 4px;
}

.download-btn:hover {
    background: var(--button-hover);
    border-color: var(--accent);
}

.download-btn svg {
    width: 14px;
    height: 14px;
}

.report-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.icon-download-btn span {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.report-output {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
}

.report-header {
    border-bottom: 2px solid var(--text);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.report-header h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.report-header .metadata {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 8px;
}

.pdf-download-section {
    display: inline-flex;
    margin-top: 12px;
    margin-left: 8px;
    vertical-align: top;
}

.admin-page {
    background: #f8fafc;
    color: #111827;
}

.admin-shell {
    width: min(100% - 32px, 1440px);
    margin: 0 auto;
    padding: 28px 0 40px;
}

.admin-header,
.admin-section {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.admin-header h1,
.admin-section h2 {
    margin: 0;
    color: #0f172a;
    font-weight: 850;
}

.admin-header p {
    margin: 5px 0 0;
    color: #111827;
    font-size: 0.9rem;
}

.admin-storage-status {
    display: inline-flex;
    margin-top: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    background: #f8fafc;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-storage-status.is-active {
    border-color: #16a34a;
    background: #dcfce7;
    color: #14532d;
}

.admin-storage-status.is-warning {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #78350f;
}

.admin-token-form {
    display: inline-flex;
    gap: 8px;
}

.admin-token-form input {
    min-height: 38px;
    width: 240px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 8px 10px;
}

.admin-token-form button {
    min-height: 38px;
    border: 1px solid #0f172a;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    padding: 0 14px;
    font-weight: 800;
}

.admin-section {
    padding: 18px;
    margin-bottom: 18px;
}

.admin-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

.admin-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1280px;
    font-size: 0.82rem;
}

.admin-table-wrap th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    padding: 9px 10px;
    border: 1px solid #0f172a;
}

.admin-table-wrap td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    color: #111827;
    vertical-align: top;
}

.admin-query-cell {
    max-width: 520px;
    white-space: normal;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-status.is-active {
    background: #dcfce7;
    color: #14532d;
}

.admin-status.is-disabled {
    background: #fee2e2;
    color: #7f1d1d;
}

.admin-row-action {
    min-height: 30px;
    border: 1px solid #0f172a;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

.admin-row-action.disable {
    background: #7f1d1d;
    color: #ffffff;
    border-color: #7f1d1d;
}

.admin-row-action.enable {
    background: #14532d;
    color: #ffffff;
    border-color: #14532d;
}

.admin-table-wrap td:nth-child(4),
.admin-table-wrap td:nth-child(5),
.admin-table-wrap td:nth-child(6),
.admin-table-wrap td:nth-child(7) {
    font-variant-numeric: tabular-nums;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 58px;
    min-height: 34px;
    padding: 6px 9px;
    background: var(--send-bg);
    color: var(--send-text);
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.pdf-download-btn:hover {
    background: var(--send-hover);
}

.pdf-download-btn svg {
    width: 18px;
    height: 18px;
}
