@font-face {
    font-family: "Inter";
    src: local("Inter"), local("Inter Regular");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html {
    margin: 0;
    min-height: 100%;
    background: #334155;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* Base PWA and iOS interaction tweaks */
body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: #334155;
}

.contract-signature-canvas {
    min-height: 160px;
    height: 160px;
    cursor: crosshair;
    touch-action: none;
}

.ios-status-bar-fill {
    position: sticky;
    top: 0;
    z-index: 50;
    height: env(safe-area-inset-top, 0px);
    background: #334155;
    pointer-events: none;
}

.ios-safe-header {
    top: env(safe-area-inset-top, 0px);
}

/* Loading screen */
body.loading-screen {
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #164e63 60%, #d97706);
    font-family: "Inter", sans-serif;
}

.loader {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 999px;
    animation: spin 1s linear infinite;
}

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

.pwa-bottom-search {
    animation: pwaBottomSearchIn 180ms ease-out;
}

@keyframes pwaBottomSearchIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon {
    display: inline-block;
    vertical-align: middle;
}

.icon .icon-main {
    fill: var(--icon-primary, currentColor);
}

.icon .icon-secondary {
    fill: var(--icon-secondary, currentColor);
}

.icon .icon-detail {
    fill: var(--icon-detail, currentColor);
}

/* Dashboard notices need a lighter supporting tone over their dark gradients. */
.dark .dashboard-alert-description {
    color: #b7e4c7;
}

.dark .dashboard-welcome-text {
    color: #dbeafe;
}

/* Mantiene el desplazamiento táctil/rueda sin mostrar la barra en compositores PWA. */
.messages-scroll-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.messages-scroll-hidden::-webkit-scrollbar {
    display: none;
}
