﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* =========================================================
   Base
========================================================= */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.content {
    padding-top: 1.1rem;
}

/* =========================================================
   Botones
========================================================= */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn.rounded-circle {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    border: none;
    color: #333;
}

/* =========================================================
   Validaciones Blazor
========================================================= */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* =========================================================
   Error UI Blazor
========================================================= */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* =========================================================
   Tablas
========================================================= */
.table.checklist tbody td,
.table.checklist td {
    font-weight: 400;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.95rem;
}

/* =========================================================
   Historial (cards bonitas)
========================================================= */
.historial-box {
    background: linear-gradient(to bottom right, #e0f0ff, #b2d8ff);
    border-left: 6px solid #0d6efd;
    border-radius: 12px;
    padding: 1.75rem;
    font-family: "Segoe UI", sans-serif;
    color: #1e3a8a;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

    .historial-box:hover {
        box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25);
    }

    .historial-box h5 {
        font-weight: bold;
        margin-bottom: 1rem;
        color: #0d6efd;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

/* =========================================================
   OFFCANVAS (🔥 CLAVE PARA QUE NO SE QUEDE GRIS)
========================================================= */
.offcanvas {
    position: fixed !important;
    z-index: 1055 !important;
}

.offcanvas-backdrop {
    z-index: 1050 !important;
}

/* posición inicial */
.offcanvas.offcanvas-end {
    transform: translateX(100%) !important;
}

    /* cuando Bootstrap agrega .show */
    .offcanvas.offcanvas-end.show {
        transform: translateX(0) !important;
    }

/* =========================================================
   Sticky filtros / headers
========================================================= */
:root {
    --header-h: 56px;
}

.filters-sticky {
    position: sticky;
    top: var(--header-h);
    z-index: 1030;
    background: var(--bs-body-bg);
}

/* =========================================================
   Seguridad extra (evita que el canvas quede "encerrado")
========================================================= */
body {
    overflow: auto;
}
