/* ============================================
   Suporte Fácil — Design System
   Paleta: Vermelho · Preto · Branco · Cinzas
   Fonte: Poppins
   ============================================ */

/* --- Variáveis CSS --- */
:root {
    --red:        #E63946;
    --red-dark:   #C1121F;
    --red-light:  #FF6B74;
    --red-bg:     #FFF0F1;

    --black:      #0D0D0D;
    --gray-900:   #1A1A1A;
    --gray-800:   #2D2D2D;
    --gray-700:   #404040;
    --gray-600:   #595959;
    --gray-500:   #737373;
    --gray-400:   #8C8C8C;
    --gray-300:   #BFBFBF;
    --gray-200:   #D9D9D9;
    --gray-100:   #F0F0F0;
    --gray-50:    #F8F8F8;
    --white:      #FFFFFF;

    --blue:       #0D6EFD;
    --blue-dark:  #0B5ED7;
    --blue-light: #E8F0FE;

    --green:      #198754;
    --green-bg:   #D1E7DD;
    --orange:     #FD7E14;
    --orange-bg:  #FFE8D2;

    --sidebar-w:  260px;
    --topbar-h:   64px;

    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow:     0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);

    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0;
    z-index: 200;
    transition: transform var(--transition);
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.logo-icon { flex-shrink: 0; }
.logo-text  { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name  { font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }
.logo-tagline { font-size: 0.7rem; font-weight: 400; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.5px; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.user-avatar.sm { width: 32px; height: 32px; font-size: 0.8rem; }
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.user-company { font-size: 0.72rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-badge {
    display: inline-flex; align-items: center;
    background: var(--red); color: var(--white);
    font-size: 0.6rem; font-weight: 700;
    padding: 2px 6px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: 0.5px;
    flex-shrink: 0;
}

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius);
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: var(--white);
}
.nav-item.active {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(230,57,70,0.35);
}
.nav-icon { display: flex; align-items: center; flex-shrink: 0; }

.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.nav-logout:hover { background: rgba(230,57,70,0.15); color: var(--red-light); }

/* Overlay mobile */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}

/* --- Main content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Topbar (mobile) --- */
.topbar {
    display: none;
    align-items: center;
    gap: 16px;
    height: var(--topbar-h);
    padding: 0 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0;
    z-index: 100;
}
.btn-menu-toggle {
    background: none; border: none;
    color: var(--gray-700);
    display: flex; align-items: center;
    padding: 4px;
}
.topbar-title { font-size: 1rem; font-weight: 600; flex: 1; }
.topbar-user { margin-left: auto; }

/* --- Page content --- */
.page-content { padding: 32px; flex: 1; }

/* ============================================
   COMPONENTES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}
.page-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; color: var(--gray-400);
    margin-bottom: 6px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb span { color: var(--gray-300); }

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    padding: 24px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon.red    { background: var(--red-bg);    color: var(--red); }
.stat-icon.orange { background: var(--orange-bg); color: var(--orange); }
.stat-icon.blue   { background: var(--blue-light); color: var(--blue); }
.stat-icon.green  { background: var(--green-bg);  color: var(--green); }
.stat-icon svg    { width: 24px; height: 24px; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* Chart area */
.chart-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    margin-bottom: 28px;
}
.chart-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: var(--gray-800); }
.chart-wrapper { position: relative; height: 240px; }

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
@media (max-width: 960px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* --- Tabela --- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-100);
}
tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-700);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }
.num-sol { font-weight: 700; color: var(--red); font-size: 0.82rem; }
.td-desc { max-width: 280px; }
.td-desc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.3; display: block; width: 48px; height: 48px; }
.empty-state p { font-size: 0.9rem; }

/* --- Status badge --- */
.badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.badge-em_aberto        { background: #F0F0F0;         color: #595959; }
.badge-em_analise       { background: var(--orange-bg); color: #D05E00; }
.badge-em_desenvolvimento { background: var(--blue-light); color: #0B5ED7; }
.badge-concluido        { background: var(--green-bg);  color: #146C43; }

/* --- Botões --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 12px rgba(13,110,253,0.3); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: var(--red-dark); box-shadow: 0 4px 12px rgba(230,57,70,0.3); }

.btn-secondary { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--gray-400); background: var(--gray-50); }

.btn-ghost { background: transparent; color: var(--gray-500); padding: 8px; border-radius: var(--radius-sm); border: none; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }

.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-icon { padding: 8px; gap: 0; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Action buttons in table */
.action-btns { display: flex; gap: 6px; }
.btn-edit  { background: var(--blue-light); color: var(--blue); border: none; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: all var(--transition); }
.btn-edit:hover { background: var(--blue); color: var(--white); }
.btn-del   { background: var(--red-bg); color: var(--red); border: none; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: all var(--transition); }
.btn-del:hover { background: var(--red); color: var(--white); }
.btn-view  { background: var(--gray-100); color: var(--gray-600); border: none; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: all var(--transition); }
.btn-view:hover { background: var(--gray-700); color: var(--white); }

/* --- Formulários --- */
.form-section { margin-bottom: 28px; }
.form-section-title {
    font-size: 0.85rem; font-weight: 700;
    color: var(--gray-500); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
    padding-bottom: 8px; border-bottom: 1px solid var(--gray-100);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
label .req { color: var(--red); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    font-family: 'Poppins', sans-serif;
}
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
}
.form-control:disabled { background: var(--gray-50); color: var(--gray-400); cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-hint { font-size: 0.75rem; color: var(--gray-400); }
.form-error { font-size: 0.75rem; color: var(--red); }

/* Input with icon */
.input-group { position: relative; }
.input-group .form-control { padding-left: 40px; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); display: flex; align-items: center; pointer-events: none; }

/* --- Alertas --- */
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius);
    font-size: 0.875rem; margin-bottom: 20px;
    border-left: 4px solid;
}
.alert-success { background: var(--green-bg);   color: #0F5132; border-color: var(--green); }
.alert-error   { background: var(--red-bg);     color: #842029; border-color: var(--red); }
.alert-info    { background: var(--blue-light);  color: #084298; border-color: var(--blue); }
.alert-warning { background: var(--orange-bg);  color: #664D03; border-color: var(--orange); }
.alert-close { margin-left: auto; cursor: pointer; opacity: 0.6; background: none; border: none; font-size: 1.2rem; line-height: 1; color: inherit; }
.alert-close:hover { opacity: 1; }

/* --- Upload de arquivos --- */
.upload-zone {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--blue);
    background: var(--blue-light);
}
.upload-zone input[type="file"] { display: none; }
.upload-icon { color: var(--gray-400); margin-bottom: 12px; }
.upload-icon svg { width: 36px; height: 36px; }
.upload-text { font-size: 0.875rem; color: var(--gray-600); }
.upload-text strong { color: var(--blue); cursor: pointer; }
.upload-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; }

/* Arquivo preview */
.file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius);
}
.file-item-icon { color: var(--gray-400); flex-shrink: 0; }
.file-item-name { flex: 1; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { font-size: 0.75rem; color: var(--gray-400); flex-shrink: 0; }
.file-remove { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 2px; display: flex; align-items: center; }
.file-remove:hover { color: var(--red); }

/* --- Filtros --- */
.filters-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    margin-bottom: 20px;
}
.filter-select { min-width: 160px; padding: 9px 36px 9px 12px; }
.search-input  { min-width: 220px; flex: 1; }

/* --- Tabs / Sections --- */
.section-tabs {
    display: flex; gap: 4px;
    background: var(--gray-100); border-radius: var(--radius);
    padding: 4px; width: fit-content; margin-bottom: 28px;
}
.tab-btn {
    padding: 8px 18px; border: none; background: none;
    font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 500;
    color: var(--gray-500); border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition);
}
.tab-btn.active { background: var(--white); color: var(--gray-900); box-shadow: var(--shadow-sm); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%; max-width: 460px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.modal-text  { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================
   PÁGINAS ESPECÍFICAS
   ============================================ */

/* --- AUTH (login / register) --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    bottom: -200px; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.auth-card {
    background: var(--gray-800);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.07);
    position: relative; z-index: 1;
}
.auth-logo {
    display: flex; align-items: center; gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}
.auth-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.auth-logo-text span { color: var(--red); }
.auth-title { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.auth-subtitle { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 28px; }
.auth-card label { color: var(--gray-300); }
.auth-card .form-control {
    background: var(--gray-700);
    border-color: rgba(255,255,255,0.1);
    color: var(--white);
}
.auth-card .form-control::placeholder { color: var(--gray-500); }
.auth-card .form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,0.15); }
.auth-card .input-icon { color: var(--gray-500); }
.auth-link { font-size: 0.85rem; color: var(--gray-400); text-align: center; margin-top: 20px; }
.auth-link a { color: var(--red); font-weight: 600; }
.auth-link a:hover { color: var(--red-light); }
.btn-auth { width: 100%; padding: 13px; font-size: 0.95rem; justify-content: center; background: var(--red); color: var(--white); margin-top: 8px; }
.btn-auth:hover { background: var(--red-dark); box-shadow: 0 4px 16px rgba(230,57,70,0.4); }

/* Strength indicator */
.pwd-strength { display: flex; gap: 4px; margin-top: 6px; }
.pwd-strength-bar { height: 4px; flex: 1; border-radius: 2px; background: var(--gray-600); transition: background 0.3s; }
.pwd-strength.w1 .pwd-strength-bar:nth-child(1) { background: var(--red); }
.pwd-strength.w2 .pwd-strength-bar:nth-child(1), .pwd-strength.w2 .pwd-strength-bar:nth-child(2) { background: var(--orange); }
.pwd-strength.w3 .pwd-strength-bar:nth-child(-n+3) { background: #facc15; }
.pwd-strength.w4 .pwd-strength-bar { background: var(--green); }

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .page-content { padding: 24px; }
    .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
    .sidebar-overlay.open { opacity: 1; pointer-events: all; }
    .main-content { margin-left: 0; }
    .topbar { display: flex; }
    .page-content { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 32px 24px; }
    .page-header { flex-direction: column; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filter-select, .search-input { min-width: unset; }
    thead th:nth-child(n+5) { display: none; }
    tbody td:nth-child(n+5) { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .form-grid  { grid-template-columns: 1fr; }
    .modal { padding: 24px 20px; }
}

/* --- Utilitários --- */
.text-muted     { color: var(--gray-500); }
.text-sm        { font-size: 0.82rem; }
.text-xs        { font-size: 0.75rem; }
.text-center    { text-align: center; }
.fw-600         { font-weight: 600; }
.fw-700         { font-weight: 700; }
.mt-4           { margin-top: 4px; }
.mt-8           { margin-top: 8px; }
.mt-16          { margin-top: 16px; }
.mt-24          { margin-top: 24px; }
.mb-16          { margin-bottom: 16px; }
.mb-24          { margin-bottom: 24px; }
.flex-center    { display: flex; align-items: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.gap-8          { gap: 8px; }
.gap-12         { gap: 12px; }
.d-none         { display: none; }

/* --- Paginação --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
}
.pagination-info { font-size: 0.8rem; color: var(--gray-400); }
.pagination-info strong { color: var(--gray-700); }
.pagination-pages { display: flex; align-items: center; gap: 4px; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    white-space: nowrap;
}
.page-btn:hover:not(.active):not(.disabled) {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-bg);
}
.page-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    font-weight: 700;
    pointer-events: none;
}
.page-btn.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}
.page-ellipsis { font-size: 0.85rem; color: var(--gray-400); padding: 0 2px; }

/* --- Prazo --- */
.prazo-ok      { color: var(--green);  font-weight: 600; font-size: 0.82rem; }
.prazo-alerta  { color: var(--orange); font-weight: 600; font-size: 0.82rem; }
.prazo-vencido { color: var(--red);    font-weight: 700; font-size: 0.82rem; }
.prazo-vazio   { color: var(--gray-300); font-size: 0.82rem; }
.prazo-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 12px;
    font-size: 0.72rem; font-weight: 600;
}
.prazo-tag.ok      { background: var(--green-bg);  color: #146C43; }
.prazo-tag.alerta  { background: var(--orange-bg); color: #854d0e; }
.prazo-tag.vencido { background: var(--red-bg);    color: var(--red-dark); }
.prazo-tag.vazio   { background: var(--gray-100);  color: var(--gray-400); }
