/* =========================
   Provider Network Solutions – Portal UI
   File: /Pns.css
   ========================= */

:root {
    --aquamarine: #00adba;
    --aquamarine-600: #1e8f97;
    --ink: #1f2937;
    --ink-2: #374151;
    --bg: #fafafa;
    --card: #ffffff;
    --line: #e5e7eb;
    --muted: #6b7280;
}

/* ===== Base ===== */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.45 "Segoe UI",system-ui,-apple-system,Arial,sans-serif;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px
}

.sr-only {
    position: absolute;
    left: -9999px
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(#fff,#fffdf7);
    border-bottom: 4px solid var(--aquamarine);
    box-shadow: 0 4px 14px rgba(0,0,0,.06)
}

.head-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 190px
}

    .brand img {
        height: 56px;
        display: block
    }

    .brand .tag {
        font-weight: 700;
        color: var(--muted)
    }

.main-nav {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 10px
}

.nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    color: var(--ink-2)
}

    .nav-link:hover {
        border-color: var(--aquamarine);
        background: #9bf0f7
    }

    .nav-link.active {
        background: var(--aquamarine);
        color: #1a1a1a
    }

/* User menu */
.user {
    position: relative;
    display: flex;
    align-items: center
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-weight: 600
}

.chev {
    border: solid var(--ink-2);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: .15s
}

.user.open .chev {
    transform: rotate(-135deg)
}

.menu {
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    min-width: 200px;
    padding: 6px;
    display: none
}

.user.open .menu {
    display: block
}

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink-2)
}

    .menu a:hover {
        background: #9bf0f7
    }

/* ===== Layout / Cards / Headings ===== */
.wrap {
    padding: 28px 0
}

.grid {
    display: grid;
    gap: 14px
}

.cols-3 {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.cols-2 {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 14px rgba(0,0,0,.04)
}

h1 {
    margin: 0 0 14px;
    font: 700 28px/1.2 Georgia,serif;
    border-bottom: 2px solid var(--aquamarine);
    padding-bottom: 8px
}

h2 {
    margin: 8px 0 10px;
    font: 700 20px/1.2 Georgia,serif
}

.sub {
    color: var(--muted);
    font-size: 14px
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb
}

thead th {
    background: #eef2ff;
    color: #111827;
    padding: 10px 12px;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--line)
}

tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line)
}

tbody tr:nth-child(odd) td {
    background: #ffffff
}

tbody tr:nth-child(even) td {
    background: #fbfbfd
}

/* envoltorio scroll de tablas (antes .mt-table-wrap) */
.pns-table-wrap {
    overflow: auto
}
/* Alias temporal para no romper mientras cambias el template */
.mt-table-wrap {
    overflow: auto
}
/* TODO: eliminar cuando el template use pns-table-wrap */

/* ===== Forms & Buttons ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.field {
    min-width: 230px
}

.label {
    font: 600 13px/1.2 "Segoe UI",sans-serif;
    color: var(--muted);
    margin-bottom: 6px
}

input[type="number"], input[type="text"], input[type="email"], input[type="password"] {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none
}

input:focus {
    border-color: var(--aquamarine);
    box-shadow: 0 0 0 3px rgba(244,197,66,.2)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600
}

    .btn:hover {
        background: #9bf0f7;
        border-color: var(--aquamarine);
    }

    .btn.primary {
        background: var(--aquamarine);
        border-color: var(--aquamarine);
        color: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .btn.second {
        background: #9bf0f7;
        border-color: var(--aquamarine);
        color: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .btn.second:hover {
            background: var(--aquamarine);
            border-color: var(--aquamarine);
        }

.hint {
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
    display: none
}

/* ===== Footer ===== */
.footer {
    background: #f8f8f8;
    border-top: 2px solid #e5e7eb;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    color: #444;
    font-size: .9rem
}

    .footer .tagline {
        display: block;
        margin-top: 4px;
        color: #777;
        font-size: .8rem
    }

/* ===== Utilities (renombradas) ===== */
.pns-hide {
    display: none !important
}

.pns-center {
    text-align: center
}

.pns-right {
    text-align: right
}

.pns-gap-8 {
    gap: 8px
}

.pns-gap-12 {
    gap: 12px
}

.pns-gap-16 {
    gap: 16px
}

.pns-mt-12 {
    margin-top: 12px
}

.pns-mt-18 {
    margin-top: 18px
}

.pns-mb-12 {
    margin-bottom: 12px
}

/* Aliases temporales para no romper mientras reemplazas en templates */
.mt-hide {
    display: none !important
}
/* -> pns-hide */
.mt-center {
    text-align: center
}
/* -> pns-center */
.mt-right {
    text-align: right
}
/* -> pns-right */
.mt-gap-8 {
    gap: 8px
}
/* -> pns-gap-8 */
.mt-gap-12 {
    gap: 12px
}
/* -> pns-gap-12 */
.mt-gap-16 {
    gap: 16px
}
/* -> pns-gap-16 */
.mt-mt-12 {
    margin-top: 12px
}
/* -> pns-mt-12 */
.mt-mt-18 {
    margin-top: 18px
}
/* -> pns-mt-18 */
.mt-mb-12 {
    margin-bottom: 12px
}
/* -> pns-mb-12 */

/* Badge/pill para estados (antes .mt-pill) */
.pns-pill {
    display: inline-block;
    background: #9bf0f7;
    color: #1f2937;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--line);
}
/* Alias temporal */
.mt-pill {
    display: inline-block;
    background: #9bf0f7;
    color: #1f2937;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--line)
}

/* ===== Responsive ===== */
@media (max-width:900px) {
    .head-bar {
        flex-wrap: wrap
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center
    }

    .user {
        order: 2;
        margin-left: 0
    }

    .kpi {
        grid-template-columns: 1fr
    }

    .cols-3 {
        grid-template-columns: 1fr
    }

    .cols-2 {
        grid-template-columns: 1fr
    }
}

/* ===== Login button polish (se mantiene) ===== */
input[type="submit"][value="Sign in"],
button[type="submit"] {
    background: var(--aquamarine);
    border: 1px solid var(--aquamarine-600);
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

    input[type="submit"][value="Sign in"]:hover,
    button[type="submit"]:hover {
        background: var(--aquamarine-600);
        border-color: var(--aquamarine-600);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
        cursor: pointer;
    }

.page-login .form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-login input[type="submit"][value="Sign in"] {
    order: 1;
}

.page-login .btn-secondary,
.page-login a[href*="PasswordRecovery"] {
    background: transparent;
    border: none;
    color: var(--ink-2);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.page-login form[action*="SignIn"] input[type="submit"],
.page-login .btn.btn-primary,
.account form input[type="submit"].btn-primary,
form[action*="SignIn"] input[type="submit"].btn,
input[type="submit"][value="Sign in"] {
    background: var(--aquamarine) !important;
    border: 1px solid var(--aquamarine-600) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all .2s ease-in-out !important;
    box-shadow: 0 3px 6px rgba(0,0,0,.08) !important;
    line-height: 1.2 !important;
}

    .page-login form[action*="SignIn"] input[type="submit"]:hover,
    .page-login .btn.btn-primary:hover,
    .account form input[type="submit"].btn-primary:hover,
    form[action*="SignIn"] input[type="submit"].btn:hover {
        background: var(--aquamarine-600) !important;
        border-color: var(--aquamarine-600) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,.12) !important;
    }

/* ===== Profile headers & underlines in aquamarine ===== */
.nav-profile .card-header,
.info-card .card-header {
    background: linear-gradient(180deg, var(--aquamarine), var(--aquamarine-600)) !important;
    color: #fff !important;
}

.container .page-header h2::after,
.container h1:first-of-type::after,
.pns-page-divider {
    background: linear-gradient(90deg, var(--aquamarine), var(--aquamarine-600)) !important;
}

/* ===== Shared: Profile / Change Password ===== */
.pp-cp-grid {
    display: grid;
    grid-template-columns: 340px minmax(0,1fr);
    gap: 32px;
    align-items: start;
}

@media (max-width:1100px) {
    .pp-cp-grid {
        grid-template-columns: 1fr;
    }
}

.pp-cp-grid > .col-left,
.pp-cp-grid > .col-right {
    float: none;
    width: auto !important;
    max-width: none !important;
    padding-left: 0;
    padding-right: 0;
}

.pp-card, .nav-profile, .profile-info {
    border: 1px solid rgba(18,35,87,.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20,40,100,.06);
    overflow: hidden;
}

    .nav-profile .card-header,
    .info-card .card-header,
    .pp-card .pp-card__header {
        background: linear-gradient(180deg,var(--aquamarine),var(--aquamarine-600));
        color: #fff;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .nav-profile .card-title,
    .info-card .card-title,
    .pp-card .pp-card__title {
        margin: 0;
        font-weight: 900;
        letter-spacing: .2px;
        color: #fff !important;
    }

    .pp-card .pp-card__body {
        padding: 22px;
    }

    .pp-card .pp-card__footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 16px 20px;
        border-top: 1px solid rgba(0,0,0,.06);
        background: #fff;
    }

    .pp-card form .form-control {
        border-radius: 12px;
        border: 1px solid #dfe3eb;
    }

        .pp-card form .form-control:focus {
            border-color: #7e9bff !important;
            box-shadow: 0 0 0 .25rem rgba(126,155,255,.25);
        }

    .pp-card form label,
    .pp-card form .form-label,
    .pp-card form .control-label {
        text-align: left !important;
        display: block;
        font-weight: 600;
        color: #26324d;
        margin-bottom: 6px;
    }

/* Weblinks separación suave y respirito del H1 */
.weblinks-depth-1.weblinks {
    margin: 14px 0;
}

#header-page-title {
    margin-bottom: 14px;
}

/* ===== Case Detail (pns-*) ===== */

/* Página con respiro bajo el header y altura que empuja el footer */
.pns-page {
    --headerH: 88px;
    --footerH: 90px;
    min-height: calc(100vh - var(--headerH) - var(--footerH));
    display: flex;
    flex-direction: column;
}

.container.pns-page {
    margin-top: clamp(32px, 6vw, 72px) !important;
}

    .container.pns-page h1 {
        margin-top: 0 !important;
    }

/* Card base (mismo look que Profile/Change Password) */
.pns-card {
    background: var(--card,#fff);
    border: 1px solid var(--line,#e5e7eb);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(20,40,100,.06);
    overflow: hidden;
}

.pns-card__head {
    background: linear-gradient(180deg,var(--aquamarine),var(--aquamarine-600));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.pns-card__title {
    margin: 0;
    font: 900 20px/1.2 Georgia,serif;
    color: #fff !important;
    letter-spacing: .2px;
    text-shadow: 0 1px 0 rgba(0,0,0,.15); /* mejora contraste */
}

.pns-card__body {
    padding: 22px;
}

/* Herramientas en el header (fecha/acciones) */
.pns-head-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pns-due-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff18;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
}

.pns-head-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

    .pns-head-btn:hover {
        background: rgba(255,255,255,.2);
    }

/* Grid 2 columnas responsive */
.pns-grid-2 {
    display: grid;
    gap: 18px 24px;
    grid-template-columns: repeat(2, minmax(260px,1fr));
}

@media (max-width:820px) {
    .pns-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Pares etiqueta/valor */
.pns-field {
    display: flex;
    flex-direction: column;
}

.pns-label {
    font: 600 13px/1.2 "Segoe UI",system-ui,sans-serif;
    color: var(--muted,#6b7280);
    margin-bottom: 6px;
}

.pns-value {
    font-weight: 600;
    color: var(--ink,#1f2937);
}

/* Pill de estado (compartido con lista) */
.pns-pill {
    display: inline-block;
    background: #9bf0f7;
    color: #111;
    border: 1px solid var(--line,#e5e7eb);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Nota secundaria (NPI/IDs) */
.pns-note {
    background: #f9fafb;
    border: 1px dashed var(--line,#e5e7eb);
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink-2,#374151);
}

/* Centrado utilitario (remplaza mt-center) */
.pns-center {
    text-align: center
}

/* ===== Cases List (pns-*) ===== */

/* Página con respiro bajo el header y altura que empuja el footer */
.pns-page {
    --headerH: 88px;
    --footerH: 90px;
    min-height: calc(100vh - var(--headerH) - var(--footerH));
    display: flex;
    flex-direction: column;
}

.container.pns-page {
    margin-top: clamp(32px, 6vw, 72px) !important;
}

    .container.pns-page h1 {
        margin-top: 0 !important;
    }

/* Card contenedor de la tabla (mismo look que el resto) */
.pns-table-card {
    background: var(--card,#fff);
    border: 1px solid var(--line,#e5e7eb);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,.04);
    overflow: visible; /* deja pasar el dropdown */
    position: relative;
}

.pns-sub {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line,#e5e7eb);
    color: var(--muted,#6b7280);
}

/* Wrapper que permite que el menú flote */
.pns-table-wrap {
    overflow: visible;
}

/* Menú por fila (kebab) a la derecha */
.pns-cell-actions {
    width: 48px;
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

.pns-row-menu {
    display: inline-block;
}

.pns-row-trigger {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line,#e5e7eb);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .pns-row-trigger::after {
        content: "⋮";
        font-weight: 700;
        line-height: 1;
        color: var(--ink-2,#374151);
    }

    .pns-row-trigger:hover {
        background: #9bf0f7;
        border-color: var(--aquamarine,#00adba);
    }

/* Dropdown con posición FIXED (no se recorta bajo ningún contenedor) */
.pns-row-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--line,#e5e7eb);
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    padding: 6px;
    display: none;
    z-index: 99999;
}

    .pns-row-dropdown a {
        display: block;
        padding: 8px 10px;
        border-radius: 8px;
        color: var(--ink-2,#374151);
    }

        .pns-row-dropdown a:hover {
            background: #9bf0f7;
        }

/* Pill de etapa actual (ya usada en otros módulos) */
.pns-pill {
    display: inline-block;
    background: #9bf0f7;
    color: #111;
    border: 1px solid var(--line,#e5e7eb);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Utilitario (reemplaza mt-center) */
.pns-center {
    text-align: center;
}

/* ===== Variación de tabla con encabezado en aquamarine ===== */
.pns-table--accent thead th {
    background: linear-gradient(180deg, var(--aquamarine), var(--aquamarine-600)) !important;
    color: #fff !important;
    border-bottom: 1px solid var(--line);
}

    .pns-table--accent thead th:first-child {
        border-top-left-radius: 12px;
    }

    .pns-table--accent thead th:last-child {
        border-top-right-radius: 12px;
    }

#signPad {
    width: 100%;
}

#signPadCanvas {
    display: block;
    width: 100%;
    height: 240px;
}

/* ===== Mensajes dentro del CRF ===== */
.pns-msg {
    margin: 0 0 12px 0;
}

.pns-alert {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

    .pns-alert.success {
        background: #ecfdf5;
        border-color: #a7f3d0;
    }

    .pns-alert.error {
        background: #fef2f2;
        border-color: #fecaca;
    }

/* ===== Botones consistentes en subgrillas ===== */
.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}

.btn.danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

    .btn.danger:hover {
        background: #fca5a5;
        border-color: #fca5a5;
    }

/* Acciones en tablas (alineación) */
.pns-actions {
    display: inline-flex;
    gap: 8px;
}

/* ===== Alineación de formularios ===== */
.row > .field {
    flex: 1 1 0;
    min-width: 240px;
}

.row select, .row input {
    width: 100%;
}

/* Paso 5 — pequeña ayuda para que la 2ª fila quede alineada */
#step4 .row .field, #step5 .row .field {
    min-width: 260px;
}

/* ===== Paso 3: Financial en Grid ===== */
.pns-grid {
    display: grid;
    gap: 12px;
}

.pns-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .pns-grid-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* ===== Firma: contenedor estable, sin scroll infinito ===== */
.sig-wrap {
    border: 2px dashed var(--line);
    border-radius: 12px;
    background: #fff;
    position: relative;
    padding: 0; /* el alto lo define el canvas */
    overflow: hidden; /* evita crecimiento inesperado */
}

    .sig-wrap canvas {
        display: block;
        width: 100%; /* el JS fija alto y escala */
        height: 220px;
        touch-action: none; /* evita scroll en móviles al firmar */
    }

.sig-tools {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

/* Campos inválidos */
.pns-invalid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,.2);
}

/* Barra de estado del CRF alineada con el formulario */
#crfStatusBar,
.pns-msg {
    max-width: 1100px;
    margin: 0 auto 12px; /* centrado y mismo ancho visual del card */
}

/* Firma: contenedor estable, sin scroll y canvas alto 240 */
#signPad {
    width: 100%;
    overflow: visible;
}

#sigCanvas {
    display: block;
    width: 100%;
    height: 240px;
    background: #fff;
    border: 1px dashed #bbb;
    border-radius: 6px;
    touch-action: none;
}

.sig-tools {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

#crfStatusAnchor,
.pns-msg {
    max-width: 1100px;
    margin: 16px auto 0;
    display: block;
}


#signPad {
    width: 100%;
    overflow: visible !important;
}

#sigCanvas {
    display: block;
    width: 100%;
    height: 300px; 
    background: #fff;
    border: 1px dashed #bbb;
    border-radius: 8px;
    touch-action: none;
}

/* Botón en loading */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}
.btn.is-loading::after{
  content:"";
  width:16px; height:16px;
  border:2px solid #fff;
  border-top-color: transparent;
  border-radius:50%;
  position:absolute; right:12px; top:50%;
  transform: translateY(-50%);
  animation: crfspin .8s linear infinite;
}
@keyframes crfspin { to { transform: translateY(-50%) rotate(360deg); } }

/* Overlay de “busy” sobre el pad */
#signPad { position: relative; }
#sigBusy {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,.55);
  border-radius: 8px;
}
#sigBusy.show { display: flex; }
#sigBusy .pns-spinner {
  width: 28px; height: 28px;
  border: 3px solid #2aa6a1;
  border-top-color: transparent;
  border-radius: 50%;
  animation: crfspin 1s linear infinite;
}

/* Botón en loading */
.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: .85;
}

    .btn.is-loading::after {
        content: "";
        width: 16px;
        height: 16px;
        border: 2px solid #fff;
        border-top-color: transparent;
        border-radius: 50%;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        animation: crfspin .8s linear infinite;
    }

@keyframes crfspin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
#signPad {
    position: relative;
}

#sigBusy {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.55);
    border-radius: 8px;
}

#sigBusy.show {
    display: flex;
}

#sigBusy .pns-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #2aa6a1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: crfspin 1s linear infinite;
}
