:root {
    --primary: #1d63d8;
    --primary-dark: #0b2b5c;
    --sidebar: #111927;
    --sidebar-border: #263241;
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #061224;
    --muted: #5f718c;
    --border: #dbe3ee;
    --success: #14c963;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #a855f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
}

a {
    color: inherit;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--sidebar);
    color: white;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    flex-shrink: 0;
    height: 82px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    width: 85px;
    height: auto;
    max-width: 85px;
    max-height: none;
    object-fit: contain;
}

.sf-logo {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
}

.sidebar-nav {
    padding: 20px 10px;
    flex: 1 1 0;
    min-height: 0;
}

.sidebar-nav a {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 16px;
    margin-bottom: 8px;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
}

.sidebar-nav a i {
    font-size: 18px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary);
}

.sidebar-user {
    height: 84px;
    border-top: 1px solid var(--sidebar-border);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    background: #cfe2ff !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    overflow: hidden !important;
    flex: 0 0 36px !important;
}

.sidebar-avatar img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-info strong,
.sidebar-user-info small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info strong {
    font-size: 14px;
}

.sidebar-user-info small {
    color: #8fa3c1;
}

.main-content {
    margin-left: 270px;
    width: calc(100% - 270px);
    padding: 28px 30px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 24px;
}

.stat-icon.blue {
    background: #2f7df6;
}

.stat-icon.orange {
    background: #ff5d0d;
}

.stat-icon.green {
    background: #02c657;
}

.stat-icon.purple {
    background: #a83df2;
}

.stat-number {
    font-size: 31px;
    line-height: 1;
    font-weight: 800;
}

.stat-label {
    color: var(--muted);
    margin-top: 6px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.chart-card {
    padding: 22px;
    min-height: 270px;
}

.chart-placeholder {
    height: 200px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    margin-top: 20px;
}

.table-card {
    overflow: hidden;
}

.table-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    margin: 0;
    font-size: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--muted);
    font-weight: 600;
}

.table tr:last-child td {
    border-bottom: 0;
}

.btn {
    border: 0;
    border-radius: 5px;
    padding: 11px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1557c5;
}

.btn-light {
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
}

.badge-blue {
    background: #dbeafe;
    color: #0746b7;
    border-color: #b7d2ff;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.badge-orange {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

.badge-green {
    background: #dcfce7;
    color: #047a35;
    border-color: #bbf7d0;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.badge-gray {
    background: #eef2f7;
    color: #334155;
    border-color: #dbe3ee;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 180px 190px 220px;
    gap: 12px;
    margin-bottom: 20px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: white;
    border-radius: 5px;
    padding: 11px 14px;
    font-size: 16px;
    color: var(--text);
    outline: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group label {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 7px;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-wrap {
    width: 100%;
    max-width: 480px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 34px;
}

.login-brand img {
    max-height: 90px;
    max-width: 220px;
    object-fit: contain;
}

.login-brand .sf-logo {
    width: 54px;
    height: 54px;
    font-size: 20px;
}

.login-brand-title {
    font-size: 32px;
    font-weight: 800;
}

.login-card {
    padding: 38px 40px;
}

.login-card h2 {
    margin: 0 0 8px;
}

.login-card p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 18px;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.login-divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

.login-link {
    text-align: center;
}

.login-link a {
    color: #075eea;
    text-decoration: none;
    font-size: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--muted);
}

.alert {
    padding: 12px 14px;
    border-radius: 5px;
    margin-bottom: 18px;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.profile-card {
    padding: 26px;
    max-width: 900px;
    margin-bottom: 30px;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #cfe2ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
}

.profile-email {
    color: var(--muted);
    font-size: 18px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.detail-card {
    padding: 26px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 90px;
}

.detail-label {
    color: var(--muted);
    margin-bottom: 6px;
}

.detail-value {
    font-size: 19px;
}

@media (max-width: 1000px) {
    .stat-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 230px;
    }

    .main-content {
        margin-left: 230px;
        width: calc(100% - 230px);
    }
}

.chart-card canvas {
    max-height: 220px;
    margin-top: 18px;
}

.table a:hover {
    color: var(--primary);
}
.select-rol {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
    padding: 8px 10px;
    font-size: 14px;
    height: 38px;
    box-shadow: none;
}

.table td {
    white-space: nowrap;
}

.table td:nth-child(1),
.table td:nth-child(2) {
    white-space: normal;
}

.acciones-usuario {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.btn-sm-custom {
    padding: 8px 11px;
    font-size: 14px;
    height: 38px;
}

.table-card {
    overflow-x: auto;
    overflow-y: visible;
}

.table {
    min-width: 1100px;
}

.table th:last-child,
.table td:last-child {
    min-width: 260px;
    width: 260px;
}

.acciones-usuario {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 240px;
}

.btn-sm-custom {
    padding: 8px 11px;
    font-size: 14px;
    height: 38px;
    white-space: nowrap;
}
.sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-logout {
    margin: 12px 16px 0;
    height: 34px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-logout:hover {
    background: #ef4444;
    color: white;
}

.sidebar-bottom .sidebar-user {
    border-top: 0;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0fa653;
}

.btn-finalizar {
    background: #14c963 !important;
    color: #ffffff !important;
    border: 0 !important;
}

.btn-finalizar:hover {
    background: #0fa653 !important;
    color: #ffffff !important;
}
.global-search-bar {
    width: 100%;
    max-width: 720px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.global-search-bar i {
    color: var(--muted);
    font-size: 18px;
}

.global-search-bar input {
    border: 0;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: var(--text);
}

.global-search-bar button {
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 9px 16px;
    font-weight: 700;
    cursor: pointer;
}

.global-search-bar button:hover {
    background: var(--primary-dark);
}

.dashboard-global-search {
    margin-top: -6px;
    margin-bottom: 28px;
}
.dashboard-search-top {
    width: 460px;
    margin-left: auto;
}

.dashboard-search-box {
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dashboard-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 99, 216, 0.12);
}

.dashboard-search-box i {
    color: var(--muted);
    font-size: 18px;
    flex: 0 0 auto;
}

.dashboard-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
}

.dashboard-search-box input::placeholder {
    color: #8a98ad;
}

.dashboard-search-box button {
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: white;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-search-box button:hover {
    background: var(--primary-dark);
}
.dashboard-search-form {
    width: 520px;
    margin-left: auto;
}

.dashboard-search-input {
    height: 54px;
    font-size: 17px;
    padding-left: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%235f718c' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.35-5.65a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px;
}

.dashboard-search-input:focus {
    border-color: var(--primary);
}

.password-view {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 210px;
    max-width: 260px;
}

.input-password-view {
    width: 150px !important;
    min-width: 150px !important;
    height: 40px;
    font-size: 15px;
}

.btn-ver-password,
.btn-copiar-password {
    height: 40px;
    width: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-password-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.modal-password-overlay.active {
    display: flex;
}

.modal-password-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
    padding: 26px;
}

.modal-password-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.modal-password-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #dbeafe;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 25px;
    flex: 0 0 auto;
}

.modal-password-header h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--text);
}

.modal-password-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 16px;
}

.modal-password-error {
    min-height: 22px;
    margin-top: 10px;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
}

.modal-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.sort-link {
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1;
}

.sort-bi {
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    width: 16px;
    min-width: 16px;
    transform: translateY(1px);
}

.sort-muted {
    opacity: .35;
}

.sort-link:hover {
    color: var(--primary);
}

.usuarios-table-card {
    overflow-x: hidden !important;
}

.usuarios-table-card {
    overflow-x: hidden !important;
}

.usuarios-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.usuarios-table th,
.usuarios-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.accesos-table th {
    font-weight: 800 !important;
    color: var(--muted);
    font-size: 16px;
}

.accesos-table td {
    font-size: 16px;
}

.adjuntos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.adjunto-card {
    width: 220px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.adjunto-img {
    width: 220px !important;
    height: 150px !important;
    object-fit: contain !important;
    display: block;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.adjunto-file-icon {
    width: 220px;
    height: 150px;
    display: grid;
    place-items: center;
    font-size: 42px;
    color: var(--muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.adjunto-info {
    padding: 10px;
}

.adjunto-info strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    word-break: break-word;
    margin-bottom: 8px;
}

.adjunto-info a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.ticket-thumb-link {
    width: 220px !important;
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.ticket-thumb-img {
    width: 220px !important;
    height: 150px !important;
    max-width: 220px !important;
    max-height: 150px !important;
    object-fit: contain !important;
    display: block !important;
}
.bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.bulk-actions-left span {
    color: var(--muted);
    font-weight: 700;
}

.bulk-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-select {
    width: 220px;
    height: 44px;
}

.check-ticket-masivo,
#checkTodosTickets {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
}

textarea.textarea {
    max-height: 220px;
}

/* FIX OVERFLOW HORIZONTAL GENERAL */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.app-layout {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.main-content {
    min-width: 0;
    width: calc(100vw - 260px);
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

.card,
.detail-card,
.dashboard-card,
.chart-card {
    min-width: 0;
    max-width: 100%;
}

.dashboard-grid,
.charts-grid,
.stats-grid {
    min-width: 0;
    max-width: 100%;
}

canvas {
    max-width: 100% !important;
}

.inventory-table th {
    font-weight: 800;
    color: var(--muted);
    font-size: 15px;
}

.inventory-table td {
    font-size: 15px;
    vertical-align: middle;
}

.inventory-table th,
.inventory-table td {
    padding: 18px 20px;
}
.inventario-table th {
    font-weight: 800;
    color: var(--muted);
    font-size: 15px;
}

.inventario-table td {
    font-size: 15px;
    vertical-align: middle;
}

.inventario-table th,
.inventario-table td {
    padding: 18px 20px;
}

.sort-link {
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1;
}

.sort-bi {
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    width: 16px;
    min-width: 16px;
    transform: translateY(1px);
}

.sort-muted {
    opacity: .35;
}

.sort-link:hover {
    color: var(--primary);
}
.main-content {
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 80px;
}

.detail-card {
    overflow: visible;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.tickets-filter-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tickets-filter-row input[name="busqueda"] {
    width: 320px !important;
    min-width: 320px !important;
}

.tickets-filter-row input[type="date"] {
    width: 155px !important;
    min-width: 155px !important;
}

.tickets-filter-row select[name="estado"] {
    width: 200px !important;
    min-width: 200px !important;
}

.tickets-filter-row select[name="prioridad"] {
    width: 210px !important;
    min-width: 210px !important;
}

.tickets-filter-row select[name="categoria"] {
    width: 210px !important;
    min-width: 210px !important;
}

.tickets-filter-row .input,
.tickets-filter-row .select {
    flex: 0 0 auto !important;
}

.config-profile-head {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    margin-bottom: 22px !important;
}

.config-avatar {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex: 0 0 74px !important;
    font-weight: 800 !important;
    font-size: 26px !important;
}

.config-avatar img {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
    min-height: 74px !important;
    max-width: 74px !important;
    max-height: 74px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    display: block !important;
}

.config-avatar span {
    line-height: 1 !important;
}

.foto-perfil-box {
    margin: 22px 0 26px 0 !important;
    padding-bottom: 22px !important;
    max-width: none !important;
    border-bottom: 1px solid var(--border) !important;
}

.foto-perfil-box label {
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--muted) !important;
    letter-spacing: .3px !important;
}

.foto-perfil-box small {
    display: block !important;
    color: var(--muted) !important;
    margin-top: 6px !important;
}

.foto-perfil-box button {
    margin-top: 10px !important;
}

.user-list-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-weight: 800 !important;
    flex: 0 0 38px !important;
}

.user-list-avatar img {
    width: 38px !important;
    height: 38px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
}

.user-list-avatar span {
    line-height: 1 !important;
}
/* FOTO EN TABLA DE USUARIOS */
.user-list-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-weight: 800 !important;
    flex: 0 0 38px !important;
}

.user-list-avatar img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    display: block !important;
}

.user-list-avatar span {
    line-height: 1 !important;
}


/* FOTO EN SIDEBAR */
.sidebar-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background: #cfe2ff !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    overflow: hidden !important;
    flex: 0 0 36px !important;
}

.sidebar-avatar img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    display: block !important;
}
.usuarios-compartidos-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.usuario-compartido-item {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.usuario-compartido-item input {
    margin-top: 4px;
}

.usuario-compartido-item strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.usuario-compartido-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.usuario-compartido-item:hover {
    border-color: var(--primary);
}

@media (max-width: 900px) {
    .usuarios-compartidos-box {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SIDEBAR MÓDULOS DESPLEGABLES
========================================================= */

.sidebar-module {
    margin-top: 6px;
}


/* =========================================================
   BOTÓN PRINCIPAL DEL DEPARTAMENTO
========================================================= */

.sidebar-module-toggle {
    width: 100%;
    height: 38px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #8193ad;

    cursor: pointer;

    font-family: inherit;
}

.sidebar-module-toggle:hover {
    background: rgba(255,255,255,.04);
    color: #ffffff;
}


/* =========================================================
   NOMBRE DEL DEPARTAMENTO
========================================================= */

.sidebar-module-title {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .55px;

    text-transform: uppercase;
}

.sidebar-module-title i {
    width: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}


/* =========================================================
   FLECHA
========================================================= */

.sidebar-module-arrow {
    flex: 0 0 auto;

    font-size: 11px;

    transition:
        transform .18s ease;
}

.sidebar-module.open
.sidebar-module-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   CONTENIDO
========================================================= */

.sidebar-module-content {
    display: none;

    padding-top: 3px;
}

.sidebar-module.open
.sidebar-module-content {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   LINKS INTERNOS
========================================================= */

.sidebar-module-content > a {
    height: 42px !important;

    margin: 2px 0 !important;

    padding: 0 14px 0 18px !important;

    display: flex !important;
    align-items: center !important;

    gap: 13px !important;

    border-radius: 5px !important;

    font-size: 14px !important;
}

.sidebar-module-content > a i {
    width: 18px;

    display: inline-flex;
    justify-content: center;

    font-size: 17px !important;
}


/* =========================================================
   ACTIVO
========================================================= */

.sidebar-module-content > a.active {
    background: var(--primary) !important;
    color: #ffffff !important;
}


/* =========================================================
   PRÓXIMAMENTE
========================================================= */

.sidebar-module
.sidebar-link-disabled {
    min-height: 40px !important;

    padding:
        0
        8px
        0
        18px !important;

    margin: 2px 0 !important;

    display: flex !important;
    align-items: center !important;

    gap: 13px !important;

    color: #60728d !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    opacity: .65 !important;
}

.sidebar-module
.sidebar-link-disabled > i {
    width: 18px;

    display: inline-flex;
    justify-content: center;
}

.sidebar-module
.sidebar-link-disabled > span {
    flex: 1;

    min-width: 0;
}

.sidebar-module
.sidebar-link-disabled > small {
    flex: 0 0 auto;

    padding: 3px 6px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.06);

    color: #71839d;

    font-size: 7px;
    font-weight: 800;

    white-space: nowrap;

    text-transform: uppercase;
}


/* =========================================================
   CONFIGURACIÓN
========================================================= */

.sidebar-config-separator {
    height: 1px;

    margin: 14px 10px 10px;

    background:
        rgba(255,255,255,.07);
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.sidebar-nav {
    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-bottom: 28px !important;
}

/* Firefox; WebKit uses the rules below for a custom hover state. */
@supports not selector(::-webkit-scrollbar) {
    .sidebar-nav {
        scrollbar-width: thin;
        scrollbar-color: #465873 transparent;
    }
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #465873;
    border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #60738e;
}

/* ICONOS BLANCOS EN MÓDULOS PRINCIPALES */

.sidebar-module-toggle {
    color: #8193ad;
}

.sidebar-module-title i {
    color: #ffffff !important;
}

.sidebar-module-toggle:hover .sidebar-module-title i {
    color: #ffffff !important;
}

.sidebar-module-arrow {
    color: #8193ad !important;
}
.sidebar-module-title {
    color: #ffffff !important;
}

.sidebar-module-title > span {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: normal;
}
