

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   VARIABLES (tokens del design system institucional)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --primary:       #1a3a5c;
    --primary-light: #2c5282;
    --primary-dark:  #0f2440;

    --success:       #16a34a;
    --success-bg:    #f0fdf4;
    --success-border:#bbf7d0;

    --warning:       #d97706;
    --warning-bg:    #fffbeb;
    --warning-border:#fde68a;

    --danger:        #dc2626;
    --danger-bg:     #fef2f2;
    --danger-border: #fecaca;

    --info:          #2563eb;
    --info-bg:       #eff6ff;
    --info-border:   #bfdbfe;

    --accent:        #f2c300;

    --neutral:       #6b7280;
    --neutral-bg:    #f3f4f6;
    --neutral-border:#d1d5db;

    --muted:         #9ca3af;

    --text:          #1f2937;
    --text-secondary:#6b7280;
    --text-light:    #9ca3af;

    --bg:            #f0f2f5;
    --bg-white:      #ffffff;

    --border:        #e5e7eb;
    --border-light:  #f3f4f6;

    --font-family:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     12px;

    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:     0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg:     0 10px 15px rgba(0, 0, 0, 0.1);

    --transition:    0.2s ease;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   BASE
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    margin: 0;
    line-height: 1.5;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   TIPOGRAFÃA
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin: 0 0 1em;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   BOTONES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn-danger:hover {
    background: #b91c1c;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
    border-color: var(--warning);
}
.btn-warning:hover {
    background: #b45309;
}

.btn-info {
    background: var(--info);
    color: #fff;
    border-color: var(--info);
}
.btn-info:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg);
    border-color: var(--neutral);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   BADGES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge svg {
    flex-shrink: 0;
    display: inline-flex;
}

.badge > span {
    vertical-align: middle;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.badge-neutral {
    background: var(--neutral-bg);
    color: var(--neutral);
    border: 1px solid var(--neutral-border);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CARDS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FORMULARIOS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

































































.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 1rem;
    height: 1rem;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   TABLAS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-container {
    overflow-x: auto;
    max-width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.75rem 0.75rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: nowrap;
}

.lineas-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.table-action-menu {
    position: relative;
    display: inline-block;
}

.table-action-menu summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.table-action-menu summary::-webkit-details-marker {
    display: none;
}

.table-action-menu-panel {
    position: fixed;
    z-index: 40;
    min-width: 190px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.table-action-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.table-action-menu-item:hover {
    background: #f8fafc;
}

.table-action-menu-item-danger {
    color: #dc2626 !important;
}

.table-action-menu-item-danger:hover {
    background: #fef2f2 !important;
}

.table-action-menu-panel > :last-child .table-action-menu-item,
.table-action-menu-panel > .table-action-menu-item:last-child {
    border-bottom: 0;
}

.table-action-menu-panel form {
    margin: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

@media (max-width: 640px) {
    .table-container {
        overflow-x: visible;
    }

    .table {
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-white);
        box-shadow: var(--shadow-sm);
    }

    .table tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid var(--border-light);
        text-align: right;
        word-break: break-word;
    }

    .table tbody td:last-child {
        border-bottom: 0;
    }

    .table tbody td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        text-align: left;
        color: var(--text-secondary);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .table-actions,


    .table-actions .btn,


    .page-header-right,
    .form-actions,
    .modal-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-header-right .btn,
    .form-actions .btn,
    .modal-actions .btn {
        min-height: 44px;
    }

    .form-input,
    .form-select,
    .form-textarea,
    .btn {
        max-width: 100%;
    }}

@media (max-width: 375px) {
    .table tbody td {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        text-align: left;
    }

    .table tbody td::before {
        flex-basis: auto;
        max-width: 100%;
    }}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   ALERTAS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.alert-success {
    background: var(--success-bg);
    color: #166534;
    border-color: var(--success-border);
}

.alert-danger {
    background: var(--danger-bg);
    color: #991b1b;
    border-color: var(--danger-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: #92400e;
    border-color: var(--warning-border);
}

.alert-info {
    background: var(--info-bg);
    color: #1e40af;
    border-color: var(--info-border);
}

.alert-dismissible {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    line-height: 1;
    padding: 0 0.25rem;
}

.alert-close:hover {
    opacity: 0.7;
}

/* ──────────────────────────────────────────────────────
   PAGE HEADER
   ────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-left {
    flex: 1;
    min-width: 0;
}

.page-header-right {
    flex-shrink: 0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.page-subtitle--muted {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    max-width: 42rem;
}

/* ──────────────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state-icon svg {
    width: 64px;
    height: 64px;
}

.empty-state-title {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}






































.alert-content {
    flex: 1;
}


























.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
    border-radius: var(--radius-sm);
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}



.modal-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

body.modal-open {
    overflow: hidden;
}

/* ──────────────────────────────────────────────────────
   Historial de movimientos
   ────────────────────────────────────────────────────── */





























/* Responsive: tabla como cards en mobile */



































































/* ──────────────────────────────────────────────────────
   NOTIFICACIONES — BADGE EN NAVBAR
   ────────────────────────────────────────────────────── */
.notif-badge-wrapper {
    position: relative;
    margin-right: 0.5rem;
}

.notif-badge-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background var(--transition);
    text-decoration: none;
}

.notif-badge-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.notif-badge-link svg {
    width: 20px;
    height: 20px;
}

.notif-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--primary);
}

.notif-badge-count.zero {
    display: none;
}

.notif-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    min-width: 220px;
    font-size: 0.8125rem;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.notif-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: var(--text);
    transform: rotate(45deg);
}

.notif-tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-tooltip-item:last-child {
    border-bottom: none;
}

.notif-tooltip-label {
    color: rgba(255, 255, 255, 0.8);
}

.notif-tooltip-value {
    font-weight: 600;
    color: #fff;
}

.notif-badge-wrapper:hover .notif-tooltip {
    display: block;
}

/* ──────────────────────────────────────────────────────
   SMTP — CONFIGURATION FORM
   ────────────────────────────────────────────────────── */
.form-help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-group-half {
    min-width: 0;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* ──────────────────────────────────────────────────────
   FOCUS VISIBLE (accesibilidad)
   ────────────────────────────────────────────────────── */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 2px;
}






@media (max-width: 768px) {
    

    .page-header {
        flex-direction: column;
    }

    .page-header-right {
        width: 100%;
    }}

@media (max-width: 480px) {
    

    .modal {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .modal-body {
        padding: 1rem;
    }}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   PAGE HEADER (tÃ­tulo + acciones)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-header-left {
    flex: 1;
    min-width: 0;
}

.page-header-right {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.page-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

.page-subtitle .badge {
    vertical-align: middle;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   ESTADO VACÃO (empty state)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
}

.empty-state-icon {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

























.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.form-check-inline:hover {
    border-color: var(--primary-light);
    background: #f8faff;
}

.form-check-inline:has(input:checked) {
    border-color: var(--success);
    background: var(--success-bg);
    color: #166534;
}

.form-check-inline input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.25rem;
}





.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}














/* Detalle en lista (definition list) */
.detail-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.detail-row dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-row dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
}

/* Grid de servicios */
.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.servicio-item.is-disponible {
    background: var(--success-bg);
    color: #166534;
}

.servicio-item.is-no-disponible {
    background: var(--neutral-bg);
    color: var(--text-light);
}

.servicio-icon {
    display: flex;
}

/* Foto placeholder */




/* Estado en la sidebar */





@media (max-width: 768px) {


    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .detail-row dt {
        font-size: 0.75rem;
    }

    .page-header {
        flex-direction: column;
    }

    .page-header-right {
        width: 100%;
    }

    .page-header-right .btn {
        flex: 1;
        justify-content: center;
    }


}

@media (max-width: 480px) {
    .empty-state {
        padding: 3rem 1rem;
    }

    .form-check-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FOTO â€” formulario y ficha
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-input-file {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.form-help {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.form-help-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
}































.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    vertical-align: -0.125em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-loading-spin 0.65s linear infinite;
}



@keyframes btn-loading-spin {
    to {
        transform: rotate(360deg);
    }
}



/* ──────────────────────────────────────────────────────
   RESPONSABLES — TARJETAS EN FORMULARIO Y VISTA
   ────────────────────────────────────────────────────── */





























.mt-2 {
    margin-top: 0.5rem;
}

/* Tarjeta de responsable en el formulario */
.responsable-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background: var(--bg);
    overflow: hidden;
}

.responsable-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: var(--neutral-bg);
    border-bottom: 1px solid var(--border);
}

.responsable-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.responsable-remove {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.responsable-card-body {
    padding: 1rem;
}

.responsable-card-body .form-row {
    margin-bottom: 0;
}

.responsable-card-body .form-row + .form-row {
    margin-top: 0.75rem;
}

/* Previsualización de foto en tarjeta de responsable */
.responsable-photo-preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    display: block;
    margin-bottom: 0.375rem;
}

/* Lista de responsables en la vista de detalle */
.responsables-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.responsable-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.responsable-list-item.is-principal {
    border-color: var(--primary);
    background: #f0f7ff;
}

.responsable-list-avatar {
    flex-shrink: 0;
}

.responsable-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.responsable-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--neutral-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--border);
}

.responsable-list-info {
    flex: 1;
    min-width: 0;
}

.responsable-list-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.responsable-list-detail {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.125rem;
}

.responsable-list-detail svg {
    flex-shrink: 0;
    color: var(--text-light);
}

/* Form help text (reutilizable) */
.form-help {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: -0.5rem 0 0.75rem;
}


































































































.familiar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-muted);
}

.familiar-card-toggle {
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.familiar-card-title {
    display: block;
    font-weight: 700;
}

.familiar-card-subtitle {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-light);
    font-size: 0.8rem;
}

.familiar-card-collapsed .familiar-card-header {
    border-bottom: 0;
}

































@media (max-width: 480px) {






    .familiar-card-header {
        align-items: stretch;
        flex-direction: column;
    }}





/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   OCUPACIÃ“N â€” tarjeta en ficha
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */


















.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.fw-semibold {
    font-weight: 600;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}










/* Avatar / foto placeholder en tabla */




/* CÃ©dula en tabla */


/* Nombre */







/* Fecha en tabla */


/* Acciones */




/* BotÃ³n danger outline */
.btn-outline-danger {
    color: var(--danger);
    border-color: var(--danger-border);
}
.btn-outline-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}






















/* Alertas de verificaciÃ³n y egreso */










.egresado-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--neutral-bg);
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.egresado-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--neutral);
}

/* Grid de condiciones especiales */




/* Placeholder en ficha */




/* Foto placeholder */




/* Badge grande en sidebar */




/* Fecha de ingreso en sidebar */




/* Acciones en sidebar */



@media (max-width: 768px) {






    .page-header {
        flex-direction: column;
    }

    .page-header-right {
        width: 100%;
    }

    .page-header-right .btn {
        flex: 1;
        justify-content: center;
    }






}

@media (max-width: 480px) {
    .empty-state {
        padding: 3rem 1rem;
    }

    .form-check-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }}

.acceso-ficha {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acceso-ficha-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -0.5rem;
}

.acceso-ficha-grid {
    display: grid;
    grid-template-columns: 120px 1fr 180px;
    gap: 1.25rem;
    align-items: start;
}

/* Foto */
.acceso-ficha-foto {
    display: flex;
    justify-content: center;
}

.acceso-ficha-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: opacity var(--transition);
}

.acceso-ficha-img:hover {
    opacity: 0.85;
}

.acceso-ficha-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--neutral-bg);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}


.acceso-ficha-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.acceso-ficha-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

/* Estado actual como badge destacado en lÃ­nea con el nombre */
.acceso-ficha-estado-row {
    display: flex;
    align-items: center;
}

.acceso-ficha-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

.acceso-estado-dentro {
    background: var(--success-bg);
    color: #166534;
    border: 1px solid var(--success-border);
}

.acceso-estado-fuera {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid var(--warning-border);
}

.acceso-estado-sin {
    background: var(--neutral-bg);
    color: var(--neutral);
    border: 1px solid var(--neutral-border);
}

.acceso-estado-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.acceso-estado-dot-dentro {
    background: var(--success);
}

.acceso-estado-dot-fuera {
    background: var(--warning);
}

.acceso-estado-dot-sin {
    background: var(--neutral);
}


.acceso-ficha-detalles {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.acceso-ficha-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.acceso-ficha-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 60px;
    flex-shrink: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.acceso-ficha-value {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Ãšltimo movimiento â€” columna destacada */
.acceso-ficha-ultimo {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.acceso-ficha-ultimo-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.acceso-ficha-ultimo-tipo {
    margin-bottom: 0.125rem;
}

.acceso-ficha-ultimo-fecha {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.acceso-ficha-ultimo-hora {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.acceso-ficha-ultimo-responsable {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.acceso-ficha-ultimo-vacio {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
}







.historial-count {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    text-align: right;
    color: var(--text-secondary);
}

/* Color sutil en fila segÃºn tipo */




/* Badge con icono en historial */
.historial-table .badge svg {
    vertical-align: middle;
    margin-right: 2px;
}
.acceso-show-sidebar-info p {
    margin: 0 0 0.25rem;
}

/* ────────────────────────────────────────────────────────────────
   Filtros, exportaciÃ³n y paginaciÃ³n del Historial de Acceso
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-filtros-form {
    margin-bottom: 1rem;
}

.acceso-filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.acceso-filtro-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.acceso-filtro-busqueda {
    flex: 1;
    min-width: 180px;
}

.acceso-filtro-group .form-input {
    width: 100%;
}

.acceso-filtro-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding-bottom: 1px;
}

.acceso-export-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.acceso-pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.acceso-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    transition: background var(--transition), color var(--transition);
}

.acceso-pagination-link:hover {
    background: var(--bg-muted);
}

.acceso-pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.acceso-show-sidebar-nombre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}



.acceso-show-sidebar-estado {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.acceso-show-fechahora {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.acceso-show-fecha {
    font-weight: 600;
    color: var(--text);
}

.acceso-show-hora {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
}
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Focus-visible accesibilidad */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 2px;
}
/* Tablet: 2 columnas */
@media (max-width: 1024px) {
    .acceso-layout {
        grid-template-columns: 1fr 240px;
    }

    .acceso-ficha-grid {
        grid-template-columns: 100px 1fr 160px;
        gap: 1rem;
    }

    .acceso-show-grid {
        grid-template-columns: 1fr 240px;
    }
}

@media (max-width: 768px) {
    .acceso-layout {
        grid-template-columns: 1fr;
    }

    .acceso-sidebar {
        order: -1;
    }

    .acceso-ficha-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .acceso-ficha-foto {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-bottom: 0.25rem;
    }

    .acceso-ficha-info {
        align-items: flex-start;
    }

    .acceso-ficha-row {
        justify-content: flex-start;
    }

    .acceso-ficha-ultimo {
        align-self: stretch;
    }

    .acceso-header {
        flex-direction: column;
    }





    .acceso-show-grid {
        grid-template-columns: 1fr;
    }

    .acceso-show-sidebar {
        order: -1;
    }}

/* MÃ³vil: 1 columna, botones full width */
@media (max-width: 480px) {
    .acceso-ficha-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .acceso-ficha-ultimo {
        grid-column: 1 / -1;
    }

    .acceso-acciones {
        grid-template-columns: 1fr;
    }

    .acceso-btn-accion {
        width: 100%;
        min-height: 48px;
        font-size: 0.9375rem;
    }

    .acceso-buscador-input-group {
        flex-direction: column;
    }

    .acceso-buscador-btn {
        width: 100%;
    }

    .acceso-ficha-nombre {
        font-size: 1.125rem;
    }

    .acceso-empty-state {
        padding: 2rem 1rem;
    }

    .acceso-ficha-ultimo-hora {
        font-size: 1.125rem;
    }
}

/* MÃ³vil pequeÃ±o 320-375px */
@media (max-width: 375px) {








    .acceso-ficha-nombre {
        font-size: 1rem;
    }

    .acceso-ficha-img {
        width: 80px;
        height: 80px;
    }

    .acceso-ficha-img-placeholder {
        width: 80px;
        height: 80px;
    }

    .acceso-empty-icon svg {
        width: 48px;
        height: 48px;
    }
}
    .acceso-empty-icon svg {
        width: 48px;
        height: 48px;
    }
}
















/* Grupos visuales en la tabla */








/* Tipo tag */





/* TÃ­tulo link */




/* Reportado por */


/* Fecha */


/* Acciones */









/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Ficha (show) â€” detail grid
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */













/* DescripciÃ³n */





















































@media (max-width: 768px) {










    .page-header {
        flex-direction: column;
    }

    .page-header-right {
        width: 100%;
    }

    .page-header-right .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 3rem 1rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }}

}



/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Barra de filtros (formulario horizontal)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */




















/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Resumen de filtros activos
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */



























/* Fila cerrada â€” sutilmente atenuada */




/* Fila crÃ­tica â€” fondo suave, sin exceso de color */




/* Grupos visuales en la tabla */








/* Tags */




/* TÃ­tulo link */




/* Reportado por */


/* Fecha en tabla */





/* Acciones */









/* Secciones del formulario */








/* Photo placeholder en formulario */












/* Readonly field en formulario */


/* Acciones del formulario */


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Ficha (show) â€” detail grid
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */













/* DescripciÃ³n */


/* Fechas destacadas en detail-list */





































/* Estado en sidebar */






/* Prioridad en sidebar */






/* Fechas en sidebar */










/* FotografÃ­a en sidebar */














/* Acciones en sidebar */


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Lightbox
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */













@media (max-width: 768px) {










    .page-header {
        flex-direction: column;
    }

    .page-header-right {
        width: 100%;
    }

    .page-header-right .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 3rem 1rem;
    }}

/* MÃ³vil pequeÃ±o 320-375px */



/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CONTROL DE ACCESO â€” CONSOLA OPERATIVA (F3-03)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Cabecera con KPIs
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}





.acceso-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}



/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Layout principal: 3 columnas (main + sidebar)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

.acceso-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.acceso-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Buscador
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-buscador-card {
    margin-bottom: 0;
}

.acceso-buscador-form {
    width: 100%;
}

.acceso-buscador-input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.acceso-buscador-input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.acceso-buscador-input:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.acceso-buscador-btn {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.acceso-buscador-help {
    margin-top: 0.375rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--text-light);
}


.acceso-ficha {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acceso-ficha-grid {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    gap: 1.25rem;
    align-items: start;
}

/* Foto */
.acceso-ficha-foto {
    display: flex;
    justify-content: center;
}

.acceso-ficha-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: opacity var(--transition);
}

.acceso-ficha-img:hover {
    opacity: 0.85;
}

.acceso-ficha-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--neutral-bg);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}


.acceso-ficha-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acceso-ficha-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.acceso-ficha-detalles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.acceso-ficha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.acceso-ficha-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 70px;
    flex-shrink: 0;
}

.acceso-ficha-value {
    color: var(--text);
    font-weight: 500;
}

/* Estado actual */
.acceso-ficha-estado {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.acceso-ficha-estado-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.acceso-ficha-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

.acceso-estado-dentro {
    background: var(--success-bg);
    color: #166534;
    border: 1px solid var(--success-border);
}

.acceso-estado-fuera {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid var(--warning-border);
}

.acceso-estado-sin {
    background: var(--neutral-bg);
    color: var(--neutral);
    border: 1px solid var(--neutral-border);
}

.acceso-estado-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.acceso-estado-dot-dentro {
    background: var(--success);
}

.acceso-estado-dot-fuera {
    background: var(--warning);
}

.acceso-estado-dot-sin {
    background: var(--neutral);
}

/* Ãšltimo movimiento en ficha */
.acceso-ficha-ultimo-mov {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

.acceso-ficha-ultimo-label {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.acceso-ficha-ultimo-fecha,
.acceso-ficha-ultimo-hora {
    font-weight: 600;
    color: var(--text);
}

.acceso-ficha-ultimo-responsable {
    color: var(--text-secondary);
    font-style: italic;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Botones de acciÃ³n principales
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-acciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.acceso-accion-form {
    display: flex;
}

.acceso-btn-accion {
    flex: 1;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    gap: 0.625rem;
    min-height: 56px;
}

.acceso-btn-accion svg {
    width: 22px;
    height: 22px;
}

.acceso-btn-accion:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}







/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Timeline vertical (reutilizable)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}







































/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Status Card (sidebar operativo)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.status-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.status-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.status-card-title svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.status-card-body {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.status-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.status-card-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-card-value {
    color: var(--text);
    font-weight: 600;
}

.status-card-porcentaje {
    font-size: 0.9375rem;
}

.status-card-bar {
    margin-top: 0.25rem;
}

.status-card-bar-track {
    height: 8px;
    background: var(--neutral-bg);
    border-radius: 9999px;
    overflow: hidden;
}

.status-card-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
    min-width: 0;
}

.status-card-mensaje {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Empty state personalizado
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.acceso-empty-icon {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.acceso-empty-icon svg {
    width: 64px;
    height: 64px;
}

.acceso-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.acceso-empty-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Show - Detail grid
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acceso-show-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

.acceso-show-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acceso-show-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acceso-show-card .card-header .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.acceso-show-card .card-header .card-title svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.acceso-show-foto {
    text-align: center;
    margin-bottom: 1rem;
}

.acceso-show-foto img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.acceso-show-sidebar-info {
    text-align: center;
}

.acceso-show-sidebar-info p {
    margin: 0 0 0.25rem;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Historial - Table adjustments
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.historial-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.historial-table td {
    vertical-align: middle;
}





.historial-fecha,
.historial-hora {
    white-space: nowrap;
    font-size: 0.8125rem;
}

.historial-count {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    text-align: right;
    color: var(--text-secondary);
}

/* ─── Historial - Foto column ─────────────────────────────── */





/* Row accent for type */



/* Foto en cards móviles */



/* ─── Historial - Tablet: ocultar columna usuario ────────── */
@media (max-width: 1024px) {
    .historial-th-usuario,

}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Screen reader only
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE â€” Control de Acceso
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Tablet: 2 columnas */
@media (max-width: 1024px) {
    .acceso-layout {
        grid-template-columns: 1fr 240px;
    }

    .acceso-ficha-grid {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .acceso-ficha-estado {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .acceso-show-grid {
        grid-template-columns: 1fr 240px;
    }
}

@media (max-width: 768px) {
    .acceso-layout {
        grid-template-columns: 1fr;
    }

    .acceso-sidebar {
        order: -1;
    }

    .acceso-ficha-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .acceso-ficha-foto {
        margin-bottom: 0.5rem;
    }

    .acceso-ficha-info {
        align-items: center;
    }

    .acceso-ficha-row {
        justify-content: center;
    }

    .acceso-ficha-estado {
        grid-column: 1 / -1;
    }

    .acceso-header {
        flex-direction: column;
    }





    .acceso-show-grid {
        grid-template-columns: 1fr;
    }

    .acceso-show-sidebar {
        order: -1;
    }}

/* MÃ³vil: 1 columna, botones full width */
@media (max-width: 480px) {
    .acceso-acciones {
        grid-template-columns: 1fr;
    }

    .acceso-btn-accion {
        width: 100%;
        min-height: 48px;
        font-size: 0.9375rem;
    }

    .acceso-buscador-input-group {
        flex-direction: column;
    }

    .acceso-buscador-btn {
        width: 100%;
    }

    .acceso-ficha-nombre {
        font-size: 1.125rem;
    }

    .acceso-ficha-grid {
        gap: 0.75rem;
    }

    .acceso-empty-state {
        padding: 2rem 1rem;
    }
}
|/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CONTROL DE ACCESO â€” RESULTADOS DE BÃšSQUEDA (F3-04)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Grid de resultados: 2 columnas desktop/tablet, 1 columna mobile */


/* Tarjeta compacta de resultado */




/* FotografÃ­a circular */






/* InformaciÃ³n compacta */










/* BotÃ³n seleccionar */




/* Responsive: mobile 1 columna */




/* MÃ³vil pequeÃ±o: 1 columna */


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Empty state personalizado
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CONTROL DE ACCESO â€” RESULTADOS DE BÃšSQUEDA (F3-04)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Grid de resultados: 2 columnas desktop/tablet, 1 columna mobile */


/* Tarjeta compacta de resultado */




/* FotografÃ­a circular */






/* InformaciÃ³n compacta */










/* BotÃ³n seleccionar */




/* Responsive: mobile 1 columna */




/* MÃ³vil pequeÃ±o: 1 columna */


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Empty state personalizado
.w-100 {
    width: 100%;
}


























.pendientes-section {
    margin-bottom: 2rem;
}

.pendientes-header {
    margin-bottom: 1rem;
}

.pendientes-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.pendientes-title svg {
    color: var(--warning);
}

.pendientes-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    background: var(--warning);
    color: #fff;
}

.pendientes-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.pendientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}























































/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE â€” KPI y Pendientes
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {


    .pendientes-grid {
        grid-template-columns: 1fr;
    }






}



/* ============================================================
   DASHBOARD EJECUTIVO — Fase 6
   Refinamiento UX/UI, responsive y accesibilidad
   ============================================================ */

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

























































































































































































































































































































/* ── Responsive Dashboard ──────────────────── */

/* 1024px — Tablet horizontal */


/* 768px — Tablet vertical */


/* 480px — Mobile grande */


/* 375px — Mobile mediano */


/* 320px — Mobile pequeño */

























/* ──────────────────────────────────────────────
   Resumen de filtros activos
   ────────────────────────────────────────────── */










/* ──────────────────────────────────────────────
   KPIs
   ────────────────────────────────────────────── */

































/* ──────────────────────────────────────────────
   Detail grid (show page)
   ────────────────────────────────────────────── */






/* ──────────────────────────────────────────────
   Sidebar cards específicas
   ────────────────────────────────────────────── */




















/* ──────────────────────────────────────────────
   Stock en show page
   ────────────────────────────────────────────── */










/* ──────────────────────────────────────────────
   Formulario checkbox personalizado
   ────────────────────────────────────────────── */










/* Tablet: hasta 1024px */


/* Mobile: hasta 768px */


/* Mobile pequeño: hasta 480px */




/* Descripción institucional debajo de KPIs */








/* Contenedor de paneles — grid responsive */


/* Panel card genérico */


/* Panel de alertas ocupa ancho completo */


/* Header de panel */




/* Badge contador en título (ej: alertas) */


/* Body del panel */


/* Tabla dentro de paneles */










/* Enlace dentro de paneles */




/* Filas de alerta */








/* Columna cantidad en movimientos */










/* Columnas de categorías */




/* Empty states dentro de paneles */








/* Tablet: hasta 1024px */


/* Mobile: hasta 768px */




/* Tooltips con hover visible */






/* Transiciones hover en filas de tabla principal */




/* Transiciones en botones de acciones */






/* Contador de tabla con badge */


/* Descripción institucional con icono */


/* Estados en tabla con transición */




/* Empty state mejorado con animación suave */








/* ── Layout: grid + sidebar ──────────────────────────── */




/* ── Tarjeta de reporte ──────────────────────────────── */






/* Icono */




/* Cuerpo */






/* Información incluida */










/* Exportaciones */
















/* Footer */






/* Badge de estado */








/* ── Sidebar ─────────────────────────────────────────── */








/* Lista de estado */












/* Lista de próximas implementaciones */










/* Caja informativa */




/* ── Responsive ────────────────────────────────────────── */










/* ── Layout principal del reporte ─────────────────────── */


/* ── KPIs ─────────────────────────────────────────────── */


/* ── Barra de filtros ─────────────────────────────────── */


















/* ── Resumen ──────────────────────────────────────────── */






/* ── Contenedor de tabla ──────────────────────────────── */


/* ── Tabla ────────────────────────────────────────────── */




























/* ── Ocupación (barra de progreso) ────────────────────── */
















/* ── Cards (mobile) ───────────────────────────────────── */






















/* ── Empty states ─────────────────────────────────────── */










/* ── Export actions sidebar ────────────────────────────── */






/* ── Responsive ────────────────────────────────────────── */

/* Desktop (default) — show desktop table, hide tablet/mobile */


/* Tablet: hide parroquia column, show tablet table */


/* Mobile: show cards */




/* ── Layout principal ─────────────────────────────────── */


/* ── KPIs ─────────────────────────────────────────────── */


/* ── Barra de filtros ─────────────────────────────────── */


















/* ── Resumen ──────────────────────────────────────────── */






/* ── Contenedor de tabla ──────────────────────────────── */


/* ── Tabla ────────────────────────────────────────────── */






















/* Avatar / foto */


















/* ── Cards (mobile) ───────────────────────────────────── */




























/* ── Empty states ─────────────────────────────────────── */










/* ── Export actions sidebar ────────────────────────────── */






/* ── Responsive ────────────────────────────────────────── */

/* Desktop (default) — show desktop table, hide tablet/mobile */


/* Tablet: hide municipio column, show tablet table */


/* Mobile: show cards */


/* ── ACCESO REPORT — F8-05 ─────────────────────────────── */






.acceso-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md, 1rem);
    margin-bottom: var(--spacing-md, 1rem);
}

.acceso-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.acceso-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acceso-filter-input,
.acceso-filter-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-sm, 4px);
    background: var(--bg-white, #ffffff);
    transition: border-color var(--transition, 0.2s ease);
}

.acceso-filter-input:focus,
.acceso-filter-select:focus {
    outline: none;
    border-color: var(--primary-light, #2c5282);
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.15);
}

.acceso-filter-orden-row {
    display: flex;
    gap: 0.5rem;
}

.acceso-filter-orden-select {
    flex: 1;
}

.acceso-filter-orden-dir {
    width: 130px;
    flex-shrink: 0;
}

.acceso-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: var(--spacing-sm, 0.5rem);
}

/* Summary */






/* Table container */
.acceso-table-container {
    overflow-x: auto;
}

/* Desktop table */
.acceso-table-desktop {
    display: block;
}

.acceso-table-tablet {
    display: none;
}

.acceso-table-mobile {
    display: none;
}

.acceso-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.acceso-table thead {
    background: var(--bg, #f0f2f5);
}

.acceso-table-th {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
    border-bottom: 2px solid var(--border, #e5e7eb);
}

.acceso-table-th--sortable {
    padding: 0;
}

.acceso-table-th-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: color var(--transition, 0.2s ease);
}

.acceso-table-th-link:hover,
.acceso-table-th-link:focus-visible {
    color: var(--primary, #1a3a5c);
    outline: none;
}

.acceso-table-th--num {
    text-align: right;
}

.acceso-table-th--usuario {
    white-space: nowrap;
}

.acceso-table-sort-icon {
    font-size: 0.75rem;
    color: var(--text-light, #9ca3af);
    transition: color var(--transition, 0.2s ease);
}

.acceso-table-sort-icon--active {
    color: var(--primary, #1a3a5c);
    font-weight: 700;
}

.acceso-table-row {
    transition: background var(--transition, 0.2s ease);
}

.acceso-table-row:hover {
    background: var(--neutral-bg, #f3f4f6);
}

.acceso-table-row:focus-within {
    outline: 2px solid var(--primary-light, #2c5282);
    outline-offset: -2px;
}

.acceso-table-td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
    vertical-align: middle;
    color: var(--text, #1f2937);
}

.acceso-table-td--fecha,
.acceso-table-td--hora {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.acceso-table-td--name {
    min-width: 140px;
}

.acceso-table-name {
    font-weight: 500;
}



.acceso-table-td--usuario {
    white-space: nowrap;
}

.acceso-table-td--obs {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
}

/* Card (mobile) */
.acceso-table-card {
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 1rem);
    margin-bottom: var(--spacing-sm, 0.5rem);
    transition: box-shadow var(--transition, 0.2s ease);
}

.acceso-table-card:hover {
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.acceso-table-card:focus-visible {
    outline: 2px solid var(--primary-light, #2c5282);
    outline-offset: 2px;
}

.acceso-table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm, 0.5rem);
}



.acceso-table-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs, 0.375rem);
}

.acceso-table-card-detail {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.acceso-table-card-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-light, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acceso-table-card-detail-value {
    font-size: 0.8125rem;
    color: var(--text, #1f2937);
}

/* Empty states */
.acceso-table-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.acceso-table-empty-icon {
    color: var(--text-light, #9ca3af);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.acceso-table-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text, #1f2937);
    margin-bottom: 0.5rem;
}

.acceso-table-empty-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    max-width: 400px;
    margin: 0 auto;
}

/* Sidebar */


/* Export actions */






/* Responsive */
@media (max-width: 1024px) {
    .acceso-table-desktop {
        display: none;
    }
    .acceso-table-mobile {
        display: none;
    }
    .acceso-table-tablet {
        display: block;
    }

    .acceso-table-th--usuario,
    .acceso-table-td--usuario {
        display: none;
    }

    .acceso-filter-bar {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .acceso-table-desktop,
    .acceso-table-tablet {
        display: none;
    }
    .acceso-table-mobile {
        display: block;
    }

    .acceso-filter-bar {
        grid-template-columns: 1fr;
    }

    .acceso-filter-orden-row {
        flex-direction: column;
    }

    .acceso-filter-orden-dir {
        width: 100%;
    }}




















































































































/* ── INVENTORY REPORT — F8-07 ─────────────────────────── */



























































































































































































































































/* ── Section ─────────────────────────────────────────── */










/* ── Resumen Grid ────────────────────────────────────── */
















/* Variantes de color */








/* ── KPIs Grid ───────────────────────────────────────── */


















/* Variantes KPI */







/* ── Semáforo ────────────────────────────────────────── */




















/* ── Riesgos ──────────────────────────────────────────── */



















/* ── Ranking ──────────────────────────────────────────── */




























/* ── Actividad Reciente ──────────────────────────────── */


/* ── Módulos Grid ─────────────────────────────────────── */




















/* ── Observaciones ────────────────────────────────────── */















/* ── Sidebar actions ──────────────────────────────────── */




/* ── Empty state ──────────────────────────────────────── */




/* ── Responsive ───────────────────────────────────────── */

































/* ──────────────────────────────────────────────────────
   Control de Acceso — Scanner QR de Carnets
   ────────────────────────────────────────────────────── */
.acceso-qr-card {
    margin-bottom: 1rem;
}

.acceso-qr-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 1rem;
    align-items: stretch;
}

.acceso-qr-camera {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #0f172a;
}

.acceso-qr-video {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
    object-fit: cover;
}

.acceso-qr-overlay {
    position: absolute;
    inset: 18%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.acceso-qr-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.875rem;
}

.acceso-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.acceso-qr-status {
    margin: 0;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--neutral-bg);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.acceso-qr-status[data-type="success"] {
    background: #dcfce7;
    color: #166534;
}

.acceso-qr-status[data-type="warning"] {
    background: #fef3c7;
    color: #92400e;
}

.acceso-qr-status[data-type="error"] {
    background: #fee2e2;
    color: #991b1b;
}

.acceso-qr-manual-form {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.acceso-qr-manual-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .acceso-qr-layout {
        grid-template-columns: 1fr;
    }

    .acceso-qr-manual-row {
        grid-template-columns: 1fr;
    }}



.dashboard {
    width: 100%;
    max-width: 100%;
}











@media (max-width: 768px) {
    .dashboard {
        gap: 1rem;
    }

    

    

    

    

    

    

    

    

    

    

    

    }






































/* ════════════════════════════════════════════════════════════
   CONTROL DE ACCESO — PERSONAS EXTERNAS
   ════════════════════════════════════════════════════════════ */

/* Layout de una columna */
.acceso-externos-layout {
    display: block;
}

.acceso-externos-main {
    max-width: 100%;
}

/* Formulario de externos */
.externos-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.externos-form .form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .externos-form .form-row-2,
    .externos-form .form-row-3 {
        grid-template-columns: 1fr;
    }}

.externos-form .form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Preview de fotos */
.externos-file-preview {
    min-height: 40px;
    margin-top: 0.25rem;
}

/* Tarjetas de activos dentro */
.externos-activos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.externos-activo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.externos-activo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.externos-activo-foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.externos-activo-foto-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.externos-activo-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.externos-activo-nombre {
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.externos-activo-badge {
    display: flex;
}

.externos-activo-detalles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.externos-activo-detalle {
    color: var(--text);
}

.externos-activo-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-muted);
}

/* ÌModal de confirmaciÃ³n */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

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

.modal-body {
    padding: 1.25rem 1.5rem;
}

.modal-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .modal {
        width: 95%;
    }
    .modal-body {
        padding: 1rem;
    }
    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }}

/* Badge de tipo de externo */
.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.badge-primary {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Foto de externo en detalle */
.externo-show-foto {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Cabecera de acceso con múltiples botones */


/* Grupo de input file con botón adjuntar/cámara */
.externos-camera-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.externos-camera-group input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.externos-camera-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}







/* Alias Core — formularios usuarios */
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* ──────────────────────────────────────────────────────
   TASK 13.2 — Formularios mobile (usabilidad)
   No cambia reglas de negocio; solo layout/táctil.
   Respeta .form-row grid desktop existente; no lo redefine.
   ────────────────────────────────────────────────────── */

.form-row > .form-group {
    min-width: 0;
    box-sizing: border-box;
}

.form-input,
.form-select,
.form-textarea,
.form-control,
select.form-control,
input.form-control,
textarea.form-control {
    box-sizing: border-box;
    max-width: 100%;
}

.form-container {
    width: 100%;
    box-sizing: border-box;
}

/* Filtros de reportes / listados */
.form-filters {
    box-sizing: border-box;
    max-width: 100%;
}

.form-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
    align-items: end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-filters__grid .form-group {
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.form-filters__grid .form-control,
.form-filters__grid .form-input,
.form-filters__grid .form-select {
    width: 100%;
}

.form-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.85rem;
    width: 100%;
}

.form-filters--dense .form-filters__grid {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}

.hijo-row {
    box-sizing: border-box;
    max-width: 100%;
}

.hijo-row .form-group {
    min-width: 0;
}

.form-actions--sticky-mobile,
.card-footer.form-actions--sticky-mobile {
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .form-filters--dense .form-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Grid nativo de .form-row (sin inline flex): 2 cols en tablet */
    .form-row:not([style*="display:flex"]):not([style*="display: flex"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .form-filters__actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-height: 44px;
        justify-content: center;
    }

    /* Grid nativo → 1 columna */
    .form-row {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 100%;
    }

    /* Filas con display:flex inline → columna */
    .form-row[style*="display:flex"],
    .form-row[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .form-row > .form-group,
    .form-row > .btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }

    .form-input,
    .form-select,
    .form-textarea,
    .form-control,
    select.form-control,
    input.form-control,
    textarea.form-control {
        min-height: 44px;
        font-size: 1rem;
    }

    textarea.form-control,
    .form-textarea {
        min-height: 6rem;
    }

    .form-actions,
    .form-actions--sticky-mobile,
    .card-footer.form-actions--sticky-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .form-actions .btn,
    .form-actions--sticky-mobile .btn,
    .card-footer.form-actions--sticky-mobile .btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-height: 44px;
        justify-content: center;
    }

    .form-actions--sticky-mobile,
    .card-footer.form-actions--sticky-mobile {
        position: sticky;
        bottom: 0;
        z-index: 30;
        margin-top: 1rem;
        padding: 0.75rem 0.25rem 0.85rem;
        background: linear-gradient(to top, var(--bg-white, #fff) 70%, rgba(255, 255, 255, 0.92));
        border-top: 1px solid var(--border, #e5e7eb);
        box-shadow: 0 -6px 16px rgba(15, 36, 64, 0.06);
    }

    .hijo-row {
        padding: 0.75rem !important;
    }

    .hijo-row .form-row > .form-group,
    .telefono-row > .form-group {
        width: 100% !important;
        min-width: 0 !important;
    }

    .page-header-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-header-right .btn {
        flex: 1 1 auto;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 375px) {
    .form-actions .btn,
    .form-actions--sticky-mobile .btn,
    .card-footer.form-actions--sticky-mobile .btn,
    .form-filters__actions .btn {
        flex: 1 1 100%;
    }
}

@media (min-width: 901px) {
    .form-filters--dense .form-filters__grid {
        grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
    }
}
