* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: #1f2937;
}

.page-container {
    padding: 30px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h1 {
    margin: 0;
    font-size: 26px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    background: #eef2ff;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

table tbody td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    vertical-align: top;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-light {
    background: #e5e7eb;
    color: #111827;
}

.btn-light:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #22c55e;
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
}

.card.form-card {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge.purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 500;
}

.actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.info-value .badge {
    vertical-align: middle;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-left: 5px solid #2563eb;
}

.dashboard-card-warning {
    border-left-color: #f59e0b;
}

.dashboard-card-danger {
    border-left-color: #ef4444;
}

.dashboard-card-muted {
    border-left-color: #64748b;
}

.dashboard-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.dashboard-value {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.dashboard-drawer {
    position: fixed;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
}

.resumo-drawer {
    top: 140px;
}

.dashboard-drawer-toggle {
    border: none;
    background: #0f172a;
    color: #fff;
    padding: 14px 12px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-weight: 600;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    transition: background 0.2s ease;
}

.dashboard-drawer.open .dashboard-drawer-toggle {
    background: #2563eb;
}

.dashboard-drawer-panel {
    width: 320px;
    max-width: 80vw;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    padding: 18px;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.dashboard-drawer.open .dashboard-drawer-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.dashboard-drawer-header {
    margin-bottom: 14px;
}

.dashboard-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.dashboard-cards-drawer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
}

.dashboard-cards-drawer .dashboard-card {
    padding: 18px;
}

.dashboard-cards-drawer .dashboard-value {
    font-size: 28px;
}

@media (max-width: 1000px) {
    .form-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {


    .page-container {
        padding: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .resumo-drawer {
        top: 120px;
    }

    .dashboard-drawer-panel {
        width: 280px;
        max-height: calc(100vh - 140px);
    }
}
.filters-card-elevated {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filters-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.filters-subtitle {
    font-size: 13px;
    color: #64748b;
}

.filters-search-modern {
    margin-bottom: 18px;
}

.filters-search-modern input {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #fff;
    transition: 0.2s ease;
}

.filters-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label,
.filters-search-modern label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.filter-field select,
.filter-field input,
.filters-search-modern input {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    transition: 0.2s ease;
}

.filter-field select:focus,
.filter-field input:focus,
.filters-search-modern input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.filters-actions-modern {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filters-actions-modern .btn {
    min-width: 150px;
    text-align: center;
}

@media (max-width: 1000px) {
    .filters-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .filters-grid-modern {
        grid-template-columns: 1fr;
    }

    .filters-actions-modern {
        justify-content: stretch;
    }

    .filters-actions-modern .btn {
        width: 100%;
    }
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    min-width: 1100px;
}

.table-modern thead th {
    background: #eef2ff;
    color: #334155;
    padding: 15px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #dbe2ea;
    white-space: nowrap;
}

.table-modern thead th:first-child {
    border-top-left-radius: 14px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 14px;
}

.table-modern tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
    vertical-align: middle;
    background: #fff;
}

.table-modern tbody tr {
    transition: 0.18s ease;
}

.table-modern tbody tr:hover td {
    background: #f8fbff;
}

.table-modern tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.table-modern tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.table-ticket-code {
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.table-ticket-subject {
    font-weight: 600;
    color: #0f172a;
    min-width: 220px;
}

.table-muted {
    color: #64748b;
}

.table-time {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-table {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.empty-state-inline {
    padding: 24px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    color: #64748b;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .table-modern {
        min-width: 980px;
    }
}

.ticket-hero {
    background: linear-gradient(135deg, #494d55 0%, #949db6 100%);
    color: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.ticket-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.ticket-hero-code {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 8px;
}

.ticket-hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.ticket-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-bottom: 24px;
}

.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.card-subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.detail-description {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    line-height: 1.7;
    color: #334155;
}

.action-card-highlight {
    border-left: 5px solid #2563eb;
}

.action-card-success {
    border-left: 5px solid #22c55e;
}

.action-card-warning {
    border-left: 5px solid #f59e0b;
}

.action-card-danger {
    border-left: 5px solid #ef4444;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-card {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.comment-dept {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.comment-date {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2563eb;
    margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.timeline-content {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.timeline-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.sticky-side {
    position: sticky;
    top: 95px;
}

.form-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

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

.info-item strong {
    color: #0f172a;
}

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

    .sticky-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .ticket-hero-top {
        flex-direction: column;
    }

    .ticket-hero-title {
        font-size: 24px;
    }

    .ticket-hero-meta {
        flex-direction: column;
    }
}

.program-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.program-access-card {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
    min-height: 88px;
}

.program-access-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.program-access-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.program-access-content {
    min-width: 0;
}

.program-access-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.program-access-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.program-access-card:has(.program-access-checkbox:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}

.program-access-card:has(.program-access-checkbox:checked) .program-access-title {
    color: #1d4ed8;
}

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

.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.mode-card {
    display: block;
    cursor: pointer;
}

.mode-card input[type="radio"] {
    display: none;
}

.mode-card-content {
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    transition: 0.2s ease;
    min-height: 110px;
}

.mode-card:hover .mode-card-content {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.mode-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.mode-card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.mode-card input[type="radio"]:checked + .mode-card-content {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}

.mode-card input[type="radio"]:checked + .mode-card-content .mode-card-title {
    color: #1d4ed8;
}

@media (max-width: 800px) {
    .mode-selector {
        grid-template-columns: 1fr;
    }
}

.dashboard-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
}

.dashboard-hero-card .card-header h1 {
    color: #fff;
}

.dashboard-hero-text {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
}

.dashboard-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-grid-secondary {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.dashboard-panel {
    min-height: 100%;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    background: #f8fafc;
    transition: 0.2s ease;
}

.dashboard-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.dashboard-list-main {
    min-width: 0;
}

.dashboard-list-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.dashboard-list-subtitle {
    font-size: 13px;
    color: #64748b;
}

.dashboard-list-side {
    text-align: right;
    flex-shrink: 0;
}

.dashboard-list-date {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

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

.dashboard-shortcut {
    display: block;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #f8fafc;
    transition: 0.2s ease;
}

.dashboard-shortcut:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.dashboard-shortcut-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
}

.dashboard-shortcut-primary .dashboard-shortcut-title,
.dashboard-shortcut-primary .dashboard-shortcut-subtitle {
    color: #fff;
}

.dashboard-shortcut-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.dashboard-shortcut-subtitle {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .dashboard-grid-main,
    .dashboard-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-list-side {
        text-align: left;
    }
}

.dashboard-premium-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 30px;
    margin-bottom: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b1220 0%, #102348 55%, #1d4ed8 100%);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.20);
    color: #fff;
}

.dashboard-premium-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.82;
    margin-bottom: 8px;
}

.dashboard-premium-title {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
}

.dashboard-premium-subtitle {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.94;
}

.dashboard-premium-hero-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-premium-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.dashboard-premium-stat {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-premium-stat::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.dashboard-premium-stat.stat-warning {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border-color: #fdba74;
}

.dashboard-premium-stat.stat-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border-color: #93c5fd;
}

.dashboard-premium-stat.stat-muted {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.dashboard-premium-stat.stat-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border-color: #fca5a5;
}

.dashboard-premium-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 14px;
}

.dashboard-premium-stat-value {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-premium-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
}

.dashboard-premium-column {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.dashboard-premium-card {
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.dashboard-premium-card-header {
    margin-bottom: 22px;
}

.dashboard-premium-card-header h1 {
    margin-bottom: 4px;
}

.dashboard-premium-card-subtitle {
    font-size: 13px;
    color: #64748b;
}

.dashboard-premium-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-premium-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    text-decoration: none;
    transition: 0.22s ease;
}

.dashboard-premium-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
    border-color: #cbd5e1;
}

.dashboard-premium-list-main {
    min-width: 0;
}

.dashboard-premium-list-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.45;
}

.dashboard-premium-list-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.dashboard-premium-list-side {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.dashboard-premium-list-date {
    font-size: 12px;
    color: #64748b;
}

.dashboard-premium-info-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-premium-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.dashboard-premium-info-text {
    font-size: 14px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 14px;
}

.dashboard-premium-info-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .dashboard-premium-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-premium-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-premium-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .dashboard-premium-title {
        font-size: 28px;
    }

    .dashboard-premium-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-premium-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-premium-list-side {
        align-items: flex-start;
        text-align: left;
    }
}

.user-departments-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
}

.user-departments-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}

.user-departments-user-name {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.user-departments-user-email {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
}

.user-departments-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.user-departments-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.user-departments-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.user-departments-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.user-departments-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.departments-linked-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.department-linked-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.department-linked-main {
    min-width: 0;
}

.department-linked-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.department-linked-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.department-linked-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 950px) {
    .user-departments-hero-grid {
        grid-template-columns: 1fr;
    }

    .user-departments-stats {
        grid-template-columns: 1fr 1fr;
    }

    .department-linked-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .department-linked-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .user-departments-stats {
        grid-template-columns: 1fr;
    }
}

.login-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f7fb 0%, #eaf0f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-shell {
    width: 100%;
    max-width: 460px;
}

.login-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 34px 32px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}

.login-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.login-brand-text {
    min-width: 0;
}

.login-logo-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-page .form-group label {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.login-page .form-group input {
    height: 50px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    transition: 0.2s ease;
}

.login-page .form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.login-page .form-group input::placeholder {
    color: #94a3b8;
}

.btn-login {
    width: 100%;
    justify-content: center;
    height: 50px;
    border-radius: 12px;
    font-size: 15px;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.btn-login:hover {
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .login-brand {
        gap: 12px;
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    .login-logo-img {
        width: 54px;
        height: 54px;
    }

    .login-logo-title {
        font-size: 24px;
    }
}

.card-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(135deg, #0f172a 0%, #162033 100%);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.topbar .logo {
    flex-shrink: 0;
}

.topbar-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.topbar-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.topbar-logo-text {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1;
}

.menu-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 1;
    flex-wrap: wrap;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.menu-links a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.user-box-departamento {
    min-height: 46px;
}

.user-box-account {
    min-height: 46px;
}

.user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-user {
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.10);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-user:hover {
    background: rgba(255,255,255,0.18);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.20);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.32);
}

.topbar-departamento-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.topbar-departamento-static {
    display: flex;
    align-items: center;
}

.topbar-departamento-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.topbar-departamento-select {
    min-width: 220px;
    height: 38px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.topbar-departamento-select:focus {
    outline: none;
    border-color: rgba(147,197,253,0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.topbar-departamento-select option {
    color: #111827;
}

@media (max-width: 1100px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-right {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 16px 18px;
    }

    .topbar-logo-img {
        width: 36px;
        height: 36px;
    }

    .topbar-logo-text {
        font-size: 19px;
    }

    .menu-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .menu-links {
        width: 100%;
        gap: 10px;
    }

    .menu-links a {
        padding: 10px 12px;
    }

    .user-box {
        width: 100%;
        flex-wrap: wrap;
        border-radius: 14px;
    }

    .topbar-departamento-select {
        width: 100%;
        min-width: 0;
    }
}