/* Generated by Utilities.css_bundle; edit static/css sources. */

/* ./css/themes.css */
/* ================================================================
   SISTEMA DE MISSÕES v3.0 — Preto & Branco + Sidebar
   ================================================================ */
:root {
    --bg: #ffffff;
    --bg-sidebar: #111111;
    --bg-surface: #f7f7f7;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --text-dim: #999999;
    --text-sidebar: #cccccc;
    --text-sidebar-active: #ffffff;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --accent: #111111;
    --accent-hover: #333333;
    --input-bg: #ffffff;
    --input-border: #d0d0d0;
    --input-focus: #111111;
    --success: #222222;
    --warning: #555555;
    --danger: #111111;
    --sidebar-width: 240px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

/* ./css/base.css */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-surface);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    line-height: 1.6;
}

/* ./css/layout.css */
/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
    transform: translateX(calc(-100% + 12px));
    box-shadow: var(--shadow-lg);
}

.sidebar:hover,
.sidebar:focus-within,
.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: 0 auto 1rem;
    /* Logo original é preta; inverte para branca na sidebar escura */
    filter: invert(1) brightness(2);
}

.sidebar-header p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
    text-align: center;
}

.sidebar-nav { flex: 1; padding: 0.75rem 0; overflow-y: auto; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #fff;
}

.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content {
    margin-left: 0;
    flex: 1;
    min-height: 100vh;
    padding: 1.5rem 2rem 3rem;
    max-width: 100vw;
}

.page-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    border: none;
    margin: 0;
    padding: 0;
}

/* Tab pages */
.tab-page { display: none; }
.tab-page.active { display: block; animation: fadeIn 0.3s ease; }

/* ./css/components/panel.css */
/* ================================================================
   PANELS / CARDS
   ================================================================ */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.panel h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-light);
}

/* ./css/components/kpi.css */
/* ================================================================
   KPI CARDS
   ================================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    border-radius: 3px 0 0 3px;
    background: var(--text-dim);
}

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

.kpi-card.kpi-dark::before { background: #111; }
.kpi-card.kpi-mid::before { background: #666; }
.kpi-card.kpi-light::before { background: #999; }

.kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.kpi-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: opacity(0.7);
}
.kpi-dark .kpi-icon img { filter: brightness(0) opacity(0.9); }
.kpi-data { display: flex; flex-direction: column; }
.kpi-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.kpi-currency { font-size: 1rem; }
.kpi-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }

/* ./css/components/form.css */
/* ================================================================
   FORM
   ================================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid.full { grid-template-columns: 1fr; }

.input-group { margin-bottom: 0.75rem; display: flex; flex-direction: column; }

label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.optional-badge {
    background: var(--bg-surface);
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.3rem;
    font-weight: 400;
    color: var(--text-dim);
    text-transform: none;
}

input, select, textarea {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
    width: 100%;
}

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

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }

.select-wrapper { position: relative; }
.select-wrapper::after { content: "▾"; font-size: 0.8rem; position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-dim); }
select { appearance: none; padding-right: 2rem; cursor: pointer; }

.file-input { padding: 0.45rem; font-size: 0.8rem; }

.form-section-title {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin: 1rem 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
}

/* ================================================================

/* ./css/components/button.css */
/* Buttons and role-aware actions */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
    padding: 0.8rem;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

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

.logout-button,
.logout-button:hover,
.logout-button:focus-visible {
    background: #000;
    border-color: #000;
    color: #fff;
}

.logout-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

.btn-outline img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: opacity(0.6);
    transition: var(--transition);
}
.btn-outline:hover img { filter: opacity(0.9); }

.btn-icon {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) opacity(0.6);
    transition: var(--transition);
}

.btn-icon:hover { background: var(--bg-surface); border-color: var(--border); }
.btn-icon:hover img { filter: brightness(0) opacity(0.9); }

.btn-icon.delete:hover { background: #fff1f1; border-color: #ffdada; }
.btn-icon.delete:hover img {
    filter: invert(27%) sepia(91%) saturate(2352%) hue-rotate(339deg) brightness(94%) contrast(106%);
}

.btn-export {
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.btn-export:hover { background: var(--border-light); color: var(--text-main); }

body[data-user-role="visualizador"] [data-role-edit],
body[data-user-role="visualizador"] [data-role-delete],
body[data-user-role="editor"] [data-role-delete] {
    display: none !important;
}

/* ./css/components/filter.css */
   ================================================================ */
.filters-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-input { flex: 1; min-width: 200px; font-size: 0.85rem; }
.filter-select { min-width: 150px; }
.filter-select select { font-size: 0.85rem; }

/* ./css/components/table.css */
/* ================================================================
   TABLE
   ================================================================ */
.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
.missions-table { min-width: 920px; }


th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    font-size: 0.875rem;
}

tr:hover td { background: var(--bg-surface); }

.missao-nome { font-weight: 600; margin-bottom: 0.15rem; }
.missao-local { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.missao-processo { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.15rem; font-family: 'Courier New', monospace; }

.btn-localidade {
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn-localidade:hover:not(:disabled) { border-color: var(--accent); }
.btn-localidade:disabled { opacity: 0.6; cursor: progress; }
.localidade-escolha { display: inline-flex; align-items: center; gap: 0.3rem; }
.localidade-escolha select { font-size: 0.7rem; padding: 0.1rem 0.25rem; }
.missao-nota { color: #111; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.78rem; font-weight: 500; line-height: 1.45; margin-top: 0.15rem; }

.tag-departamento {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    white-space: nowrap;
.mission-summary { min-width: 180px; font-size: 0.78rem; line-height: 1.45; }
.mission-summary div + div { margin-top: 0.15rem; }
}

.date-cell { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.date-separator { font-size: 0.65rem; color: var(--text-dim); font-style: italic; }
.date-definitivo { font-size: 0.7rem; color: var(--text-main); margin-top: 0.2rem; padding-top: 0.2rem; border-top: 1px dashed var(--border); }

.finance-cell { font-size: 0.8rem; white-space: nowrap; }
.finance-label { color: var(--text-dim); font-size: 0.7rem; font-weight: 500; }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.status-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }

.status-badge.scheduled { background: #f9f9f9; color: #888; }
.status-badge.scheduled::before { background: #aaa; }

.status-badge.progress { background: #f0f0f0; color: #333; }
.status-badge.progress::before { background: #333; animation: pulse 2s infinite; }

.status-badge.concluded { background: #eee; color: #111; }
.status-badge.concluded::before { background: #111; }

.status-badge.unknown { background: #f9f9f9; color: #999; }
.status-badge.unknown::before { background: #ccc; }

.conciliacao-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.conciliacao-badge.pendente { background: #f7f7f7; color: #666; }
.conciliacao-badge.conciliado { background: #eee; color: #111; }
.conciliacao-badge.divergente { background: #f5f5f5; color: #333; border-style: dashed; }

.anexo-icon { margin-left: 0.3rem; cursor: help; }
.actions-cell { white-space: nowrap; }
.empty-state { text-align: center; color: var(--text-dim); padding: 2.5rem 1rem !important; font-style: italic; }

/* ./css/components/items.css */
/* ================================================================
   EXPANDABLE SUB-ITEMS (Accordion)
   ================================================================ */
.expand-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.expand-btn:hover { background: var(--bg-surface); color: var(--text-main); }
.expand-btn.open { background: var(--accent); color: #fff; border-color: var(--accent); }

.sub-items-row { display: none; }
.sub-items-row.open { display: table-row; }

.sub-items-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0.5rem 0;
}

.nav-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 20px;
    display: inline-flex;
    justify-content: center;
}
.nav-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.8);
}
.nav-item.active .nav-icon img { filter: brightness(0) invert(1) opacity(1); }

.sub-items-container h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-item-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.sub-item-table th { font-size: 0.68rem; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); }
.sub-item-table td { padding: 0.5rem; border-bottom: 1px solid var(--border-light); font-size: 0.8rem; }

/* Vehicle details panel */
.vehicle-details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.vehicle-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    font-size: 0.75rem;
}

.vehicle-details .detail-label { color: var(--text-dim); font-weight: 600; text-transform: uppercase; font-size: 0.65rem; }
.vehicle-details .detail-value { font-weight: 500; }

/* Add item inline form */
.add-item-form {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px 100px 40px;
    gap: 0.5rem;
    align-items: end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.add-item-form input, .add-item-form select {
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
}

.vehicle-fields {
    display: none;
    grid-column: 1 / -1;
    background: #fafafa;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.vehicle-fields.show { display: block; }

.vehicle-fields .vf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.vehicle-fields .vf-grid input { padding: 0.4rem 0.5rem; font-size: 0.78rem; }
.vehicle-fields .vf-grid label { font-size: 0.68rem; margin-bottom: 0.15rem; }

/* ================================================================
   DEPARTMENT SUMMARY
   ================================================================ */
/* ====== MULTI-VEHICLE TABS ====== */
.vehicle-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    padding-bottom: 2px;
}

.vehicle-tab-btn {
    padding: 6px 12px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.vehicle-tab-btn.active {
    background: var(--primary);
    color: white;
}

.vehicle-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.vehicle-tab-panel.active {
    display: block;
}

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

/* ./css/components/modal.css */
/* Modal Z-Index fix */
.modal-overlay {
    z-index: 2000;
}
#itemEditModal {
    z-index: 2100;
}

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; padding: 0; border: none; font-size: 1.15rem; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 0.25rem;
    line-height: 1;
}

.modal-close:hover { color: var(--text-main); }

/* ./css/pages/departments.css */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.dept-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
}

.dept-card:hover { border-color: var(--border); transform: translateY(-1px); }
.dept-name { margin-bottom: 0.6rem; }
.dept-name .tag-departamento { font-size: 0.75rem; padding: 0.15rem 0.6rem; }
.dept-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.dept-stat { text-align: center; }
.dept-stat-value { display: block; font-size: 0.8rem; font-weight: 600; }
.dept-stat-label { display: block; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; }

/* ./css/pages/auth.css */
.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 12%, rgb(255 255 255 / 90%), transparent 34%),
        linear-gradient(145deg, #f6f7f9 0%, #e7ebef 100%);
}

.auth-shell {
    width: min(calc(100% - 2rem), 720px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgb(15 23 42 / 12%);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eceff2;
}

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

.auth-brand span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-brand h1 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.55rem, 4vw, 2rem);
}

.auth-intro {
    margin: 1.25rem 0;
    color: var(--text-muted);
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 5.3rem;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    padding: 0.35rem 0.55rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.input-hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.auth-captcha {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0;
}

.auth-submit {
    margin-top: 1.25rem;
}

.auth-message {
    margin: 1.25rem 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    line-height: 1.5;
}

.auth-message-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.auth-message-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.auth-message-info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
}

@media (max-width: 620px) {
    .auth-shell {
        width: min(calc(100% - 1rem), 720px);
        padding: 0.5rem 0;
    }

    .auth-card {
        border-radius: 12px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field-full {
        grid-column: auto;
    }
}

/* ./css/components/toast.css */
/* ================================================================
   TOAST
   ================================================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    max-width: 400px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #333; }

/* ./css/components/loader.css */
/* ================================================================
   LOADER
   ================================================================ */
.loader { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; }

/* ./css/animations.css */
/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ./css/responsive.css */
/* ================================================================
   RESPONSIVE
   ================================================================ */
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); padding: 0.5rem; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar:hover,
    .sidebar:focus-within,
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; max-width: 100vw; padding: 1rem; }
    .menu-toggle { display: block; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .add-item-form { grid-template-columns: 1fr 1fr; }
    .modal-content { width: 95%; padding: 1.25rem; }
    .dept-stats { grid-template-columns: repeat(2, 1fr); }
    .missions-table th,
    .missions-table td { padding: 0.6rem; }
    .missions-table { min-width: 840px; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

/* ./css/scrollbar.css */
/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }
