/* ============================================================
   pH App — Estilos personalizados
   Bootstrap 5.3 base + customizaciones
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --ph-brand:        #03a38f;
    --ph-brand-dark:   #027a6b;
    --ph-brand-light:  #e6f7f5;
    --ph-navy:         #1a2e35;
    --ph-navy-light:   #243c45;
    --ph-surface:      #f0f5f7;
    --ph-border:       #c8d8dc;
    --ph-text:         #1a2a30;
    --ph-text-mid:     #4a6570;
    --ph-text-dim:     #7a9199;
    --ph-sidebar-w:    260px;
    --ph-topbar-h:     60px;
    --bs-primary-rgb:  3, 163, 143;
    --bs-border-radius: .375rem;
}

/* ── Reset / Base ───────────────────────────────────────────── */
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ph-surface);
    color: var(--ph-text);
    font-size: .9rem;
}

a {
    color: var(--ph-brand);
    text-decoration: none;
}

a:hover {
    color: var(--ph-brand-dark);
    text-decoration: underline;
}

/* ── Bootstrap overrides ───────────────────────────────────── */
.btn-primary {
    background-color: var(--ph-brand);
    border-color: var(--ph-brand);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--ph-brand-dark);
    border-color: var(--ph-brand-dark);
}
.btn-outline-primary {
    color: var(--ph-brand);
    border-color: var(--ph-brand);
}
.btn-outline-primary:hover {
    background-color: var(--ph-brand);
    border-color: var(--ph-brand);
    color: #fff;
}
.text-primary { color: var(--ph-brand) !important; }
.bg-primary    { background-color: var(--ph-brand) !important; }
.border-primary{ border-color: var(--ph-brand) !important; }
.form-control:focus,
.form-select:focus {
    border-color: var(--ph-brand);
    box-shadow: 0 0 0 .2rem rgba(3,163,143,.2);
}
.badge.bg-primary { background-color: var(--ph-brand) !important; }

/* ── Layout con sidebar ─────────────────────────────────────── */
.ph-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.ph-sidebar {
    width: var(--ph-sidebar-w);
    flex-shrink: 0;
    background-color: var(--ph-navy);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}

.ph-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}
/* El logo ya trae su propio disco blanco con el anillo turquesa,
   así que no lleva fondo ni borde por CSS. */
.ph-sidebar-brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ph-sidebar-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ph-sidebar-brand-text {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.ph-sidebar-brand-sub {
    font-size: .7rem;
    color: rgba(255,255,255,.45);
    font-weight: 400;
}

.ph-sidebar-nav {
    flex: 1;
    padding: .75rem 0;
    overflow-y: auto;
}

.ph-nav-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    padding: .75rem 1.25rem .25rem;
}

.ph-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1.25rem;
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    font-weight: 500;
    border-radius: 0;
    transition: background .15s, color .15s;
    text-decoration: none;
    position: relative;
}
.ph-nav-link i { font-size: 1rem; flex-shrink: 0; }
.ph-nav-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
}
.ph-nav-link.active {
    background: rgba(3,163,143,.2);
    color: #fff;
}
.ph-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ph-brand);
    border-radius: 0 2px 2px 0;
}

.ph-sidebar-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .78rem;
    color: rgba(255,255,255,.4);
}
.ph-sidebar-footer a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
    transition: color .15s;
}
.ph-sidebar-footer a:hover { color: #fff; }

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

/* Topbar */
.ph-topbar {
    height: var(--ph-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--ph-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.ph-topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-navy);
    flex: 1;
}
.ph-topbar-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--ph-text-mid);
}
.ph-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ph-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Contenido interior */
.ph-content {
    flex: 1;
    padding: 1.75rem 1.5rem;
}

/* ── Cards y estadísticas ───────────────────────────────────── */
.stat-card {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: .5rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-card-icon.brand  { background: var(--ph-brand-light); color: var(--ph-brand); }
.stat-card-icon.navy   { background: rgba(26,46,53,.1);     color: var(--ph-navy);  }
.stat-card-icon.warn   { background: #fff8e0;               color: #8a6a00;          }
.stat-card-icon.danger { background: #fef2f2;               color: #991b1b;          }
.stat-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ph-navy);
    line-height: 1;
}
.stat-card-label {
    font-size: .78rem;
    color: var(--ph-text-mid);
    margin-top: .15rem;
}

/* ── Tablas ─────────────────────────────────────────────────── */
.ph-table {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: .5rem;
    overflow: hidden;
}
.ph-table .table {
    margin: 0;
    font-size: .875rem;
}
.ph-table .table thead th {
    background: #f8fafc;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ph-text-mid);
    border-bottom: 2px solid var(--ph-border);
    white-space: nowrap;
    padding: .75rem 1rem;
}
.ph-table .table tbody td {
    padding: .75rem 1rem;
    vertical-align: middle;
    color: var(--ph-text);
    border-bottom: 1px solid #f0f3f5;
}
.ph-table .table tbody tr:last-child td { border-bottom: none; }
.ph-table .table tbody tr:hover { background: #fafcfd; }

/* ── Estado vacío ───────────────────────────────────────────── */
.ph-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}
.ph-empty-state i {
    font-size: 2.25rem;
    color: var(--ph-border);
    margin-bottom: .75rem;
}
.ph-empty-state-title {
    font-weight: 600;
    color: var(--ph-text-mid);
    font-size: .95rem;
}
.ph-empty-state-subtitle {
    color: var(--ph-text-dim);
    font-size: .82rem;
    margin-top: .2rem;
    max-width: 360px;
}

/* ── Botón con estado de carga ──────────────────────────────── */
.btn.is-loading {
    pointer-events: none;
    opacity: .75;
}
.btn.is-loading .btn-spinner {
    display: inline-block;
    width: .85em;
    height: .85em;
    border: .15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ph-spin .65s linear infinite;
    margin-right: .4em;
}
@keyframes ph-spin { to { transform: rotate(360deg); } }

/* ── Page header ────────────────────────────────────────────── */
.ph-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.ph-page-header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ph-navy);
    margin: 0;
}
.ph-page-header p {
    font-size: .83rem;
    color: var(--ph-text-mid);
    margin: .2rem 0 0;
}

/* ── Wizard de subida ───────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
}
.wizard-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e9f0;
    color: var(--ph-text-mid);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.wizard-step.active .wizard-step-num {
    background: var(--ph-brand);
    color: #fff;
}
.wizard-step.done .wizard-step-num {
    background: var(--ph-navy);
    color: #fff;
}
.wizard-step-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ph-text-dim);
    white-space: nowrap;
}
.wizard-step.active .wizard-step-label,
.wizard-step.done .wizard-step-label {
    color: var(--ph-navy);
}
.wizard-connector {
    flex: 1;
    height: 2px;
    background: #e5e9f0;
    margin: 0 .5rem;
    min-width: 20px;
}
.wizard-connector.done { background: var(--ph-navy); }

.wizard-panel {
    display: none;
}
.wizard-panel.active {
    display: block;
}

/* ── Upload zone ────────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--ph-border);
    border-radius: .5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fafcfd;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--ph-brand);
    background: var(--ph-brand-light);
}
.upload-zone i {
    font-size: 2.5rem;
    color: var(--ph-text-dim);
    display: block;
    margin-bottom: .75rem;
}
.upload-zone.has-file {
    border-color: #198754;
    background: #f0fdf4;
}
.upload-zone.has-file i { color: #198754; }

/* ── Login page ─────────────────────────────────────────────── */
.ph-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ph-navy) 0%, var(--ph-navy-light) 100%);
    padding: 1rem;
}
.ph-login-card {
    background: #fff;
    border-radius: .75rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.ph-login-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}
/* Logo horizontal completo en el login */
.ph-login-logo-full {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 1.1rem;
}

/* Ícono circular suelto (por si se necesita en otra pantalla) */
.ph-login-logo-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}
.ph-login-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ph-login-logo h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ph-navy);
    margin: 0;
}
.ph-login-logo p {
    font-size: .8rem;
    color: var(--ph-text-mid);
    margin: .2rem 0 0;
}

/* ── Portal cliente ─────────────────────────────────────────── */
.informe-row-actions {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
}

/* ── Empresa selected banner (wizard step 2) ────────────────── */
.empresa-banner {
    background: var(--ph-brand-light);
    border: 1px solid rgba(3,163,143,.25);
    border-radius: .5rem;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .875rem;
}
.empresa-banner strong { color: var(--ph-brand-dark); }

/* ── Contactos checklist ────────────────────────────────────── */
.contacto-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .875rem;
    border: 1px solid var(--ph-border);
    border-radius: .375rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: .5rem;
}
.contacto-item:hover { border-color: var(--ph-brand); background: var(--ph-brand-light); }
.contacto-item.selected { border-color: var(--ph-brand); background: var(--ph-brand-light); }
.contacto-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ph-brand); }
.contacto-info { flex: 1; }
.contacto-name { font-size: .875rem; font-weight: 600; color: var(--ph-navy); }
.contacto-email { font-size: .78rem; color: var(--ph-text-mid); }

/* ── Confirm summary (wizard step 4) ────────────────────────── */
.confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1.5rem;
}
.confirm-full {
    grid-column: 1 / -1;
}

/* ── Empresa dropdown (wizard step 1) ───────────────────── */
.empresa-dropdown {
    z-index: 10;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}
.confirm-row {
    border-bottom: 1px solid #f0f3f5;
    padding: .5rem 0;
}
.confirm-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ph-text-dim);
}
.confirm-val {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ph-navy);
}

/* ── 403 / error pages ──────────────────────────────────────── */
.ph-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.ph-error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--ph-brand);
    line-height: 1;
    margin-bottom: .5rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ph-sidebar {
        transform: translateX(-100%);
    }
    .ph-sidebar.show {
        transform: translateX(0);
    }
    .ph-main {
        margin-left: 0;
    }
    .confirm-grid {
        grid-template-columns: 1fr;
    }
    .wizard-step-label {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ph-content { padding: 1.25rem 1rem; }
    .ph-topbar  { padding: 0 1rem; }
    .ph-login-card { padding: 1.75rem 1.25rem; }
    .stat-card-value { font-size: 1.3rem; }
}

/* ── Utilities ──────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.text-navy      { color: var(--ph-navy) !important; }
.bg-surface     { background-color: var(--ph-surface) !important; }
.fw-600         { font-weight: 600 !important; }
.fw-700         { font-weight: 700 !important; }
.fw-800         { font-weight: 800 !important; }
.fs-xs          { font-size: .75rem !important; }
.fs-sm          { font-size: .85rem !important; }

/* ============================================================
   SweetAlert2 — tema pH
   ============================================================ */
.swal2-popup.ph-swal,
.swal2-popup.ph-toast {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    border-radius: .625rem;
}
.swal2-popup.ph-swal .swal2-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ph-navy);
}
.swal2-popup.ph-swal .swal2-html-container {
    font-size: .9rem;
    color: var(--ph-text-mid);
}
.swal2-popup.ph-swal .swal2-actions {
    gap: .5rem;
}
.swal2-popup.ph-swal .swal2-confirm,
.swal2-popup.ph-swal .swal2-cancel {
    font-size: .875rem;
    font-weight: 600;
    border-radius: .375rem;
    padding: .5rem 1.1rem;
    box-shadow: none !important;
}

/* Toasts */
.swal2-popup.ph-toast {
    padding: .85rem 1rem;
    box-shadow: 0 6px 24px rgba(26, 46, 53, .16);
    border: 1px solid var(--ph-border);
}
.swal2-popup.ph-toast .swal2-title {
    font-size: .875rem !important;
    font-weight: 600;
    color: var(--ph-text);
    margin: 0;
    padding: 0;
    line-height: 1.4;
}
.swal2-popup.ph-toast .swal2-timer-progress-bar {
    background: var(--ph-brand);
}

/* Barra de progreso de subida */
.ph-progress-wrap { padding: .5rem 0 .25rem; }
.ph-progress {
    height: 10px;
    background: var(--ph-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ph-border);
}
.ph-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ph-brand), var(--ph-brand-dark));
    border-radius: 20px;
    transition: width .2s ease;
}
.ph-progress-label {
    margin-top: .5rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ph-text-mid);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   Chips de filtros activos
   ============================================================ */
.ph-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.ph-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--ph-brand-light);
    color: var(--ph-brand-dark);
    border: 1px solid rgba(3, 163, 143, .25);
    border-radius: 20px;
    padding: .2rem .6rem .2rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.ph-chip a {
    color: inherit;
    opacity: .6;
    line-height: 1;
    display: inline-flex;
}
.ph-chip a:hover { opacity: 1; text-decoration: none; }
.ph-chip-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ph-text-dim);
    margin-right: .15rem;
}

/* ============================================================
   Buscador del portal
   ============================================================ */
.ph-search {
    position: relative;
}
.ph-search .bi-search {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ph-text-dim);
    pointer-events: none;
    font-size: .9rem;
}
.ph-search input {
    padding-left: 2.15rem;
}
.ph-search-clear {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--ph-text-dim);
    line-height: 1;
    padding: .25rem;
    display: none;
}
.ph-search-clear:hover { color: var(--ph-text); }
.ph-search.has-value .ph-search-clear { display: block; }

/* Resaltado de coincidencias */
mark.ph-hl {
    background: #fff3b8;
    color: inherit;
    padding: 0 .1em;
    border-radius: 2px;
}

/* ============================================================
   Estados vacíos
   ============================================================ */
.ph-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ph-text-mid);
}
.ph-empty-icon {
    font-size: 2.75rem;
    color: var(--ph-border);
    line-height: 1;
    margin-bottom: .85rem;
    display: block;
}
.ph-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-navy);
    margin-bottom: .35rem;
}
.ph-empty-sub {
    font-size: .85rem;
    color: var(--ph-text-dim);
    max-width: 380px;
    margin: 0 auto 1rem;
}

/* ============================================================
   Wizard — feedback adicional
   ============================================================ */
.wizard-panel .form-control.is-valid,
.wizard-panel .form-select.is-valid {
    border-color: var(--ph-brand);
    background-image: none;
}
.empresa-option.active-kbd {
    background: var(--ph-brand-light) !important;
}
.ph-inline-spinner {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--ph-text-dim);
}

/* Contador de destinatarios */
.ph-count-badge {
    background: var(--ph-brand);
    color: #fff;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    padding: .1rem .5rem;
    min-width: 1.4rem;
    display: inline-block;
    text-align: center;
}

/* ============================================================
   Tarjetas de informe (portal)
   ============================================================ */
.informe-card {
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.informe-card:hover {
    border-color: var(--ph-brand) !important;
    box-shadow: 0 4px 16px rgba(3, 163, 143, .12);
}
.informe-card.is-hidden { display: none !important; }

@media (max-width: 575.98px) {
    .informe-card .informe-actions {
        width: 100%;
        margin-top: .75rem;
    }
    .informe-card .informe-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   Wizard — opciones de empresa y zona de subida
   ============================================================ */
.empresa-option {
    cursor: pointer;
    padding: .5rem .75rem !important;
    transition: background .12s ease;
}
.empresa-option:hover,
.empresa-option.active-kbd {
    background: var(--ph-brand-light);
}
.empresa-option + .empresa-option {
    border-top: 1px solid #f0f3f5;
}

/* Zona de subida: foco accesible y estado de error */
.upload-zone {
    cursor: pointer;
}
.upload-zone:focus-visible {
    outline: 2px solid var(--ph-brand);
    outline-offset: 2px;
}
.upload-zone.is-invalid-zone {
    border-color: #dc3545 !important;
    background: #fff5f5;
}
.upload-zone.is-invalid-zone .upload-icon {
    color: #dc3545 !important;
}

/* Indicadores de paso clickeables */
.wizard-step {
    cursor: pointer;
    user-select: none;
}
.wizard-step:hover .wizard-step-num {
    box-shadow: 0 0 0 4px rgba(3, 163, 143, .12);
}

/* ============================================================
   Portal del cliente
   ============================================================ */
.min-width-0 { min-width: 0; }

.portal-company-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--ph-brand-light);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-company-icon i {
    font-size: 1.4rem;
    color: var(--ph-brand);
}

.informe-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--ph-brand-light);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.informe-icon i {
    font-size: 1.3rem;
    color: var(--ph-brand);
}

/* Evita que títulos largos rompan el layout */
.informe-card .fw-700,
.informe-card .fs-sm {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .informe-card {
        flex-wrap: wrap;
    }
    .informe-card .informe-icon {
        width: 36px;
        height: 36px;
    }
    .informe-card .informe-icon i { font-size: 1.05rem; }
}

/* Logo chico para la barra del portal */
.ph-brand-icon-sm {
    width: 32px !important;
    height: 32px !important;
}

/* ============================================================
   Bloque de contraseña provisoria
   ============================================================ */
.ph-credencial {
    background: #fffdf5;
    border: 1px solid #f5d98a;
    border-left: 4px solid #e8a91d;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    color: var(--ph-text);
}
.ph-credencial-titulo {
    font-size: .95rem;
    font-weight: 700;
    color: #7a5a00;
    margin-bottom: .65rem;
}
.ph-credencial-box {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.ph-credencial-pass {
    font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ph-navy);
    background: #fff;
    border: 1px dashed #d8c48a;
    border-radius: .375rem;
    padding: .45rem .85rem;
    user-select: all;
}
.ph-credencial-pie {
    font-size: .82rem;
    margin-bottom: .3rem;
}
.ph-credencial-nota {
    font-size: .78rem;
    color: var(--ph-text-mid);
}
