/* ==========================================================================
   I.E. Monserrat — Tema "Escudo"
   Inspirado en el escudo institucional: franja roja-blanca-roja con las
   letras I E M, cuerpo celeste, marco gris piedra y detalles dorados.
   ========================================================================== */

:root {
    --ie-celeste:      #3a9ad9;
    --ie-celeste-dark: #1f6fa8;
    --ie-celeste-deep: #154f7a;
    --ie-celeste-pale: #e6f3fb;
    --ie-red:          #c62832;
    --ie-red-dark:     #9e1c25;
    --ie-red-pale:     #fbe9ea;
    --ie-stone:        #8c8a7e;
    --ie-stone-light:  #c9c5b8;
    --ie-gold:         #c39a2b;
    --ie-gold-pale:    #f8f0db;
    --ie-green:        #2e7d55;
    --ie-green-pale:   #e5f2ea;
    --ie-amber:        #b7791f;
    --ie-amber-pale:   #fbf0dc;
    --ie-ink:          #1f2a33;
    --ie-ink-soft:     #55606b;
    --ie-muted:        #8a929b;
    --ie-line:         #e4ded0;
    --ie-paper:        #f7f4ed;
    --ie-surface:      #ffffff;
    --ie-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ie-sans:  'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ie-radius: 6px;
}

/* ---------- Base ---------- */
html, body {
    font-family: var(--ie-sans);
    font-size: 14.5px;
    color: var(--ie-ink);
    background: var(--ie-paper);
}
body { -webkit-font-smoothing: antialiased; }
a { color: var(--ie-celeste-dark); }
a:hover { color: var(--ie-celeste-deep); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ie-serif); font-weight: 600; color: var(--ie-celeste-deep); }
h5, h6 { font-weight: 700; color: var(--ie-ink); }

/* Franja tricolor del escudo */
.ie-band {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 6px;
}
.ie-band span:nth-child(odd) { background: var(--ie-red); }
.ie-band span:nth-child(2)   { background: #fff; box-shadow: inset 0 -1px 0 var(--ie-line); }

/* ==========================================================================
   Encabezado institucional
   ========================================================================== */
.ie-header {
    background: var(--ie-surface);
    border-bottom: 1px solid var(--ie-line);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.ie-header .ie-band { border-bottom: 1px solid var(--ie-line); }
.ie-wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

.ie-top {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 78px;
}
.ie-crest {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ie-ink);
    min-width: 0;
}
.ie-crest:hover { color: var(--ie-ink); }
.ie-crest img {
    width: 54px; height: 54px;
    object-fit: contain;
    flex: none;
}
.ie-crest-text { min-width: 0; padding-left: 14px; border-left: 2px solid var(--ie-line); }
.ie-crest-text strong {
    display: block;
    font-family: var(--ie-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--ie-celeste-deep);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ie-crest-text small {
    display: block;
    font-size: 12px;
    color: var(--ie-stone);
    letter-spacing: .06em;
    margin-top: 3px;
}

.ie-top-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ie-today { text-align: right; line-height: 1.25; }
.ie-today small { display: block; font-size: 11px; color: var(--ie-muted); letter-spacing: .12em; text-transform: uppercase; }
.ie-today span { font-family: var(--ie-serif); font-size: 15px; color: var(--ie-ink); }

.ie-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 4px;
    color: var(--ie-ink);
}
.ie-user:hover { color: var(--ie-ink); }
.ie-monogram {
    width: 42px; height: 42px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ie-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--ie-celeste-deep);
    background: var(--ie-celeste-pale);
    border: 2px solid var(--ie-stone-light);
    border-radius: 6px 6px 50% 50% / 6px 6px 38% 38%;   /* forma de escudo */
}
.ie-user-info { line-height: 1.2; }
.ie-user-info strong { display: block; font-size: 13.5px; }
.ie-user-info small { color: var(--ie-muted); font-size: 12px; }
.ie-user .icon-chevron-small-down { color: var(--ie-muted); }

.ie-user-menu.dropdown-menu {
    border: 1px solid var(--ie-line);
    border-top: 3px solid var(--ie-red);
    border-radius: 0 0 var(--ie-radius) var(--ie-radius);
    box-shadow: 0 12px 30px rgba(31,42,51,.12);
    padding: 6px;
    min-width: 240px;
    margin-top: 10px;
}
.ie-user-menu .ie-user-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--ie-line); margin-bottom: 6px; }
.ie-user-menu .ie-user-head strong { display: block; font-family: var(--ie-serif); font-weight: 600; color: var(--ie-celeste-deep); }
.ie-user-menu .ie-user-head small { color: var(--ie-muted); }
.ie-user-menu .dropdown-item { border-radius: 4px; padding: 9px 12px; font-weight: 500; }
.ie-user-menu .dropdown-item i { margin-right: 8px; color: var(--ie-stone); }
.ie-user-menu .dropdown-item.ie-logout { color: var(--ie-red); }
.ie-user-menu .dropdown-item.ie-logout i { color: var(--ie-red); }
.ie-user-menu .dropdown-item.ie-logout:hover { background: var(--ie-red-pale); color: var(--ie-red-dark); }

.ie-burger {
    display: none;
    border: 1px solid var(--ie-line);
    background: var(--ie-surface);
    color: var(--ie-celeste-deep);
    width: 42px; height: 42px;
    border-radius: var(--ie-radius);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    flex: none;
}

/* ---------- Navegación horizontal ---------- */
.ie-nav {
    background: var(--ie-celeste-dark);
    background-image: linear-gradient(180deg, var(--ie-celeste) -40%, var(--ie-celeste-dark) 100%);
    border-bottom: 3px solid var(--ie-celeste-deep);
}
.ie-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.ie-menu > li { position: relative; }
.ie-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    color: rgba(255,255,255,.88);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    border-right: 1px solid rgba(255,255,255,.12);
    transition: background .15s, color .15s;
}
.ie-menu > li:first-child > a { border-left: 1px solid rgba(255,255,255,.12); }
.ie-menu > li > a::after { display: none; }
.ie-menu > li > a .batch-icon { font-size: 15px; opacity: .85; }
.ie-menu > li > a .ie-caret { font-size: 12px; opacity: .7; margin-left: -2px; }
.ie-menu > li > a:hover,
.ie-menu > li.show > a { background: rgba(255,255,255,.12); color: #fff; }
.ie-menu > li > a.active,
.ie-menu > li.ie-current > a {
    background: var(--ie-paper);
    color: var(--ie-celeste-deep);
}
.ie-menu > li > a.active::before,
.ie-menu > li.ie-current > a::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--ie-red);
}

.ie-drop.dropdown-menu {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--ie-line);
    border-top: 0;
    border-radius: 0 0 var(--ie-radius) var(--ie-radius);
    box-shadow: 0 16px 32px rgba(31,42,51,.14);
    min-width: 250px;
}
.ie-drop .ie-drop-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ie-stone);
    padding: 10px 12px 6px;
}
.ie-drop .ie-drop-title:first-child { padding-top: 4px; }
.ie-drop a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    border-radius: 4px;
    color: var(--ie-ink) !important;
    font-weight: 500;
    background: transparent;
}
.ie-drop a .batch-icon { color: var(--ie-celeste-dark); width: 18px; text-align: center; }
.ie-drop a:hover { background: var(--ie-celeste-pale) !important; color: var(--ie-celeste-deep) !important; }
.ie-drop a.active { background: var(--ie-celeste-pale) !important; color: var(--ie-celeste-deep) !important; font-weight: 700; box-shadow: inset 3px 0 0 var(--ie-red); }
.ie-drop a .badge { margin-left: auto; }

/* ==========================================================================
   Área de contenido
   ========================================================================== */
.main-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 34px 28px 40px !important;
    min-height: calc(100vh - 220px);
}
.main-content > .row:first-child h1 {
    font-size: 30px;
    margin: 0 0 30px;
    padding-bottom: 14px;
    position: relative;
}
.main-content > .row:first-child h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 72px; height: 5px;
    background: linear-gradient(90deg, var(--ie-red) 0 33.3%, #fff 33.3% 66.6%, var(--ie-red) 66.6%);
    outline: 1px solid var(--ie-stone-light);
}

.ie-footer {
    border-top: 1px solid var(--ie-line);
    background: var(--ie-surface);
}
.ie-footer .ie-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 12.5px;
    color: var(--ie-muted);
}
.ie-footer strong { font-family: var(--ie-serif); font-weight: 600; color: var(--ie-ink-soft); }

/* ==========================================================================
   Componentes Bootstrap
   ========================================================================== */
.card {
    background: var(--ie-surface);
    border: 1px solid var(--ie-line);
    border-radius: var(--ie-radius);
    box-shadow: 0 1px 0 rgba(31,42,51,.03);
}
.card-header {
    background: #fbf9f4;
    border-bottom: 1px solid var(--ie-line);
    padding: 15px 20px;
    font-family: var(--ie-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ie-celeste-deep);
    border-radius: var(--ie-radius) var(--ie-radius) 0 0 !important;
    box-shadow: inset 0 3px 0 var(--ie-celeste);
}
.card-header .task-list-stats {
    margin: 2px 0 0;
    font-family: var(--ie-sans);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ie-muted);
}
.card-header .header-btn-block { float: right; }
.card-body { padding: 22px 20px; }

label, .card h6 { font-weight: 600; font-size: 13px; color: var(--ie-ink-soft); margin-bottom: 6px; }
.required-item { color: var(--ie-red); }
.form-control, .custom-select {
    border: 1px solid var(--ie-stone-light);
    border-radius: var(--ie-radius);
    min-height: 42px;
    font-size: 14px;
    color: var(--ie-ink);
    background-color: #fff;
}
textarea.form-control { min-height: 90px; }
input[type="file"].form-control { padding: 8px; }
.form-control:focus {
    border-color: var(--ie-celeste);
    box-shadow: 0 0 0 3px rgba(58,154,217,.18);
}
.form-control::placeholder { color: #a9a597; }
.form-control:disabled, .form-control[readonly] { background: #f3f0e8; }
.input-group-text { background: #f3f0e8; border-color: var(--ie-stone-light); }

/* Botones */
.btn {
    border-radius: var(--ie-radius);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 16px;
    border-width: 1px;
    background-image: none;
    box-shadow: none !important;
}
.btn .icon, .btn [class^="icon-"] { vertical-align: -2px; }
td .btn, center .btn { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary, .btn-yellow  { background: var(--ie-celeste-dark); border-color: var(--ie-celeste-deep); color: #fff; }
.btn-primary:hover, .btn-yellow:hover,
.btn-primary:focus, .btn-primary:not(:disabled):active { background: var(--ie-celeste-deep); border-color: var(--ie-celeste-deep); color: #fff; }
.btn-success               { background: var(--ie-green); border-color: #256646; color: #fff; }
.btn-success:hover         { background: #256646; color: #fff; }
.btn-danger                { background: var(--ie-red); border-color: var(--ie-red-dark); color: #fff; }
.btn-danger:hover          { background: var(--ie-red-dark); color: #fff; }
.btn-warning, .btn-orange  { background: var(--ie-gold); border-color: #a5811f; color: #fff; }
.btn-warning:hover, .btn-orange:hover { background: #a5811f; color: #fff; }
.btn-info                  { background: var(--ie-celeste); border-color: var(--ie-celeste-dark); color: #fff; }
.btn-secondary, .btn-outline-secondary { background: #fff; border-color: var(--ie-stone-light); color: var(--ie-ink-soft); }
.btn-secondary:hover, .btn-outline-secondary:hover { background: #f3f0e8; color: var(--ie-ink); }
.btn:disabled, .btn.disabled { opacity: .45; }

/* Badges: estilo sello */
.badge {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid currentColor;
}
.badge-success { background: var(--ie-green-pale); color: var(--ie-green); }
.badge-danger  { background: var(--ie-red-pale);   color: var(--ie-red); }
.badge-warning { background: var(--ie-amber-pale); color: var(--ie-amber); }
.badge-primary, .badge-info { background: var(--ie-celeste-pale); color: var(--ie-celeste-dark); }

/* Tablas */
.table { color: var(--ie-ink) !important; margin-bottom: 0; }
.table-bordered, .table-bordered td, .table-bordered th { border-color: var(--ie-line); }
.table thead th, .table tfoot th {
    background: var(--ie-celeste-pale);
    color: var(--ie-celeste-deep);
    font-size: 12.5px;
    font-weight: 700;
    border-bottom: 2px solid var(--ie-celeste) !important;
    vertical-align: middle;
    white-space: nowrap;
}
.table tfoot th { background: #fbf9f4; color: var(--ie-ink-soft); border-top: 1px solid var(--ie-line); border-bottom-width: 1px !important; border-bottom-color: var(--ie-line) !important; }
.table td { vertical-align: middle; border-color: var(--ie-line); }
.table tbody tr:nth-child(even) { background: #fcfbf8; }
.table-hover tbody tr:hover { background: #f1f8fd; }
.table-condensed td, .table-condensed th { padding: 10px 12px; }

/* DataTables */
.dataTables_wrapper { padding-top: 6px; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info { font-size: 13px; color: var(--ie-ink-soft); }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 0 12px;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    border: 1px solid var(--ie-stone-light);
    border-radius: var(--ie-radius);
    padding: 6px 10px;
    height: 36px;
}
.dataTables_wrapper .dataTables_length select { padding-right: 28px; }
.dataTables_wrapper .dataTables_filter input { min-width: 200px; }
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--ie-celeste); box-shadow: 0 0 0 3px rgba(58,154,217,.18); }
.dataTables_wrapper .dataTables_info { padding-top: 14px !important; }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.page-item .page-link {
    border-color: var(--ie-line);
    color: var(--ie-ink-soft);
    font-weight: 600;
    font-size: 13px;
}
.page-item:first-child .page-link { border-radius: var(--ie-radius) 0 0 var(--ie-radius); }
.page-item:last-child .page-link { border-radius: 0 var(--ie-radius) var(--ie-radius) 0; }
.page-item.active .page-link { background: var(--ie-celeste-dark); border-color: var(--ie-celeste-dark); color: #fff; }
.page-item.disabled .page-link { color: var(--ie-stone-light); border-color: var(--ie-line); }
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child::before {
    background-color: var(--ie-celeste-dark);
    box-shadow: none;
    border: 0;
    border-radius: 3px;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before { background-color: var(--ie-red); }

/* Tabs */
.nav-tabs { border-bottom: 2px solid var(--ie-line); }
.nav-tabs .nav-link {
    border: 0;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    color: var(--ie-muted);
    font-weight: 600;
    padding: 10px 16px;
}
.nav-tabs .nav-link:hover { color: var(--ie-celeste-dark); }
.nav-tabs .nav-link.active { color: var(--ie-celeste-deep); border-bottom-color: var(--ie-red); background: transparent; }

/* Modales */
.modal-backdrop.show { opacity: .55; background: #1b2a35; }
.modal-content { border: 1px solid var(--ie-line); border-radius: var(--ie-radius); box-shadow: 0 24px 60px rgba(0,0,0,.25); overflow: hidden; }
.modal-header {
    background: var(--ie-surface);
    border-bottom: 1px solid var(--ie-line);
    border-top: 6px solid transparent;
    border-image: linear-gradient(90deg, var(--ie-red) 0 33.3%, #fff 33.3% 66.6%, var(--ie-red) 66.6%) 1;
    border-image-slice: 1 0 0 0;
    padding: 16px 22px;
}
.modal-header .modal-title { font-family: var(--ie-serif); font-weight: 600; font-size: 20px; color: var(--ie-celeste-deep); }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--ie-line); background: #fbf9f4; padding: 14px 22px; }

.dropdown-item:hover, .dropdown-item:focus { background: var(--ie-celeste-pale); color: var(--ie-celeste-deep); }

/* Alertify */
.alertify .ajs-dialog { border-radius: var(--ie-radius); font-family: var(--ie-sans); border-top: 4px solid var(--ie-celeste-dark); }
.alertify .ajs-header { font-family: var(--ie-serif); font-weight: 600; color: var(--ie-celeste-deep); background: #fff; }
.alertify .ajs-footer { background: #fbf9f4; border-top: 1px solid var(--ie-line); }
.alertify .ajs-footer .ajs-buttons .ajs-button { border-radius: var(--ie-radius); font-weight: 600; text-transform: none; min-height: 36px; }
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok { background: var(--ie-celeste-dark); color: #fff; }
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel { background: #fff; color: var(--ie-ink-soft); border: 1px solid var(--ie-stone-light); }
.alertify-notifier .ajs-message { font-family: var(--ie-sans); font-weight: 600; border-radius: var(--ie-radius); text-shadow: none; border: 0; }
.alertify-notifier .ajs-message.ajs-success { background: var(--ie-green); color: #fff; }
.alertify-notifier .ajs-message.ajs-error   { background: var(--ie-red); color: #fff; }
.alertify-notifier .ajs-message.ajs-warning { background: var(--ie-gold); color: #fff; }

/* ==========================================================================
   Inicio
   ========================================================================== */
.ie-welcome {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 34px 40px;
    margin-bottom: 26px;
    background: var(--ie-surface);
    border: 1px solid var(--ie-line);
    border-radius: var(--ie-radius);
    position: relative;
    overflow: hidden;
}
.ie-welcome::before {   /* filo celeste a la izquierda */
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--ie-celeste);
}
.ie-welcome-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ie-gold);
    margin-bottom: 10px;
}
.ie-welcome h2 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; }
.ie-welcome h2 em { font-style: italic; color: var(--ie-celeste-dark); }
.ie-welcome p { color: var(--ie-ink-soft); font-size: 15px; max-width: 640px; margin: 0; line-height: 1.6; }
.ie-welcome-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ie-ink-soft);
}
.ie-welcome-role i { color: var(--ie-red); }
.ie-halo {
    width: 180px; height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, #fff 0 46%, transparent 47%),
        repeating-conic-gradient(var(--ie-celeste-pale) 0 6deg, #fff 6deg 12deg);
    border: 1px solid var(--ie-line);
}
.ie-halo img { width: 104px; height: 104px; object-fit: contain; }

/* Registro de cifras */
.ie-ledger {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    background: var(--ie-surface);
    border: 1px solid var(--ie-line);
    border-radius: var(--ie-radius);
    margin-bottom: 36px;
}
.ie-ledger > div { padding: 20px 24px; border-left: 1px solid var(--ie-line); }
.ie-ledger > div:first-child { border-left: 0; }
.ie-ledger-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ie-muted);
}
.ie-ledger-label i { color: var(--ie-celeste-dark); font-size: 15px; }
.ie-ledger-value {
    font-variant-numeric: lining-nums;
    font-family: var(--ie-serif);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    margin-top: 10px;
    color: var(--ie-ink);
}

.ie-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.ie-heading h3 { font-size: 22px; margin: 0; white-space: nowrap; }
.ie-heading::after { content: ""; flex: 1; height: 1px; background: var(--ie-line); }

/* Índice de módulos */
.ie-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 40px;
}
.ie-entry {
    display: grid;
    grid-template-columns: 44px 46px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 8px;
    border-bottom: 1px solid var(--ie-line);
    color: var(--ie-ink);
    transition: background .15s;
}
.ie-entry:hover { background: var(--ie-surface); color: var(--ie-ink); }
.ie-entry-num {
    font-family: var(--ie-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--ie-stone-light);
    text-align: right;
}
.ie-entry:hover .ie-entry-num { color: var(--ie-red); }
.ie-entry-icon {
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ie-celeste-dark);
    background: var(--ie-celeste-pale);
    border-radius: 6px 6px 50% 50% / 6px 6px 36% 36%;
}
.ie-entry h4 { font-size: 18px; margin: 0 0 2px; color: var(--ie-ink); }
.ie-entry p { font-size: 13px; color: var(--ie-muted); margin: 0; }
.ie-entry-go { color: var(--ie-stone-light); font-size: 18px; transition: transform .15s, color .15s; }
.ie-entry:hover .ie-entry-go { color: var(--ie-celeste-dark); transform: translateX(4px); }
.ie-entry[hidden] { display: none !important; }

/* ==========================================================================
   Login: formulario dentro del escudo
   ========================================================================== */
.ie-login-page {
    min-height: 100vh;
    background:
        repeating-conic-gradient(from -90deg at 50% -10%, rgba(255,255,255,.07) 0 3deg, transparent 3deg 9deg),
        radial-gradient(ellipse at 50% -10%, #6cc0ef 0%, var(--ie-celeste) 35%, var(--ie-celeste-deep) 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.ie-login-top {
    color: #fff;
    text-align: center;
    margin-bottom: 26px;
}
.ie-login-top small {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 6px;
}
.ie-login-top h1 {
    color: #fff;
    font-size: 34px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 16px rgba(0,0,0,.18);
}

.ie-shield {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 10px solid var(--ie-stone);
    border-radius: 14px 14px 50% 50% / 14px 14px 24% 24%;
    box-shadow:
        0 0 0 2px var(--ie-stone-light),
        0 30px 60px rgba(9,40,64,.45);
    overflow: hidden;
}
.ie-shield-band {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 86px;
    border-bottom: 6px solid var(--ie-stone);
}
.ie-shield-band span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ie-serif);
    font-size: 46px;
    font-weight: 700;
}
.ie-shield-band span:nth-child(odd) { background: var(--ie-red); color: #e9e6dc; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.ie-shield-band span:nth-child(2)   { background: #fff; color: var(--ie-stone); text-shadow: 0 2px 0 rgba(0,0,0,.08); }
.ie-shield-body { padding: 30px 40px 96px; }
.ie-shield-body h2 { font-size: 24px; text-align: center; margin: 0 0 4px; }
.ie-shield-body > p { text-align: center; color: var(--ie-muted); font-size: 13.5px; margin: 0 0 24px; }
.ie-field { margin-bottom: 16px; }
.ie-field label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ie-stone); }
.ie-field-box { position: relative; }
.ie-field-box .form-control {
    min-height: 46px;
    background: #fbf9f4;
    border-color: var(--ie-line);
    padding-right: 44px;
}
.ie-field-box .form-control:focus { background: #fff; }
.ie-toggle-pass {
    position: absolute;
    right: 6px; top: 6px;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ie-muted);
}
.ie-toggle-pass:hover, .ie-toggle-pass.on { color: var(--ie-celeste-dark); background: var(--ie-celeste-pale); }
.ie-error { display: block; min-height: 18px; color: var(--ie-red); font-weight: 600; font-size: 12.5px; margin-top: -6px; }
.ie-login-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    font-size: 15px;
    letter-spacing: .02em;
}
.ie-motto {
    text-align: center;
    margin-top: 22px;
    font-family: var(--ie-serif);
    font-style: italic;
    color: var(--ie-gold);
    font-size: 14px;
}
.ie-login-foot {
    margin-top: 26px;
    color: rgba(255,255,255,.7);
    font-size: 12.5px;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
    .ie-menu > li > a { padding: 0 13px; font-size: 13.5px; }
    .ie-today { display: none; }
}
@media (max-width: 991.98px) {
    .ie-wrap { padding: 0 16px; }
    .ie-burger { display: inline-flex; }
    .ie-nav { display: none; }
    body.ie-nav-open .ie-nav { display: block; }
    .ie-menu { flex-direction: column; padding: 8px 0; }
    .ie-menu > li > a, .ie-menu > li:first-child > a { border: 0; height: 46px; }
    .ie-menu > li > a.active::before, .ie-menu > li.ie-current > a::before { top: 0; bottom: 0; right: auto; width: 4px; height: auto; }
    .ie-drop.dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,.96);
    }
    .main-content { padding: 22px 16px 32px !important; }
    .ie-index { grid-template-columns: 1fr; }
    .ie-ledger { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ie-ledger > div:nth-child(3) { border-left: 0; }
    .ie-ledger > div:nth-child(n+3) { border-top: 1px solid var(--ie-line); }
}
@media (max-width: 575.98px) {
    .ie-crest img { width: 42px; height: 42px; }
    .ie-crest-text { padding-left: 10px; }
    .ie-crest-text strong { font-size: 15px; }
    .ie-crest-text small { display: none; }
    .ie-user-info, .ie-user .icon-chevron-small-down { display: none; }
    .ie-welcome { grid-template-columns: 1fr; padding: 24px 22px; gap: 18px; }
    .ie-halo { display: none; }
    .ie-welcome h2 { font-size: 28px; }
    .ie-ledger > div { padding: 16px; }
    .ie-ledger-value { font-size: 32px; }
    .ie-entry { grid-template-columns: 30px 42px 1fr auto; gap: 10px; }
    .ie-entry-num { font-size: 18px; }
    .main-content > .row:first-child h1 { font-size: 24px; }
    .card-header .header-btn-block { float: none; margin-top: 10px; }
    .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 160px !important; }
    .ie-login-top h1 { font-size: 26px; }
    .ie-shield { border-width: 7px; }
    .ie-shield-band { height: 70px; }
    .ie-shield-band span { font-size: 36px; }
    .ie-shield-body { padding: 24px 22px 80px; }
}
