/*==================================================
    VARIABLES
==================================================*/

:root {
    --azul: #0d6efd;
    --azul-oscuro: #0a58ca;
    --verde: #198754;
    --verde-claro: #eefcf4;
    --rojo: #dc3545;
    --gris: #6c757d;
    --texto: #212529;
    --fondo: #f4f7fb;
    --borde: #dee2e6;
    --radio: 12px;
}


/*==================================================
    GENERAL
==================================================*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}

.container {
    max-width: 1200px;
}


/*==================================================
    CARD PRINCIPAL
==================================================*/

.nomina-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    padding: 18px 25px;
    font-size: 22px;
    font-weight: 600;
}

.card-body {
    padding: 30px;
}


/*==================================================
    SECCIONES
==================================================*/

.seccion {
    padding: 22px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    transition: transform 0.25s, box-shadow 0.25s;
}

.seccion:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.datos-generales {
    border-left: 6px solid var(--azul);
}

.percepciones {
    background: #f8fff9;
    border-left: 6px solid var(--verde);
}

.descuentos {
    background: #fff8f8;
    border-left: 6px solid var(--rojo);
}

.dias-pagados {
    background: #f8fbff;
    border-left: 6px solid var(--azul);
}


/*==================================================
    TÍTULOS
==================================================*/

.titulo-seccion {
    margin-bottom: 20px;
    color: #343a40;
    font-size: 20px;
    font-weight: 700;
}

.titulo-seccion .bi {
    margin-right: 7px;
}

h5 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}


/*==================================================
    LABELS
==================================================*/

.form-label {
    margin-bottom: 7px;
    color: #495057;
    font-weight: 600;
}


/*==================================================
    INPUTS
==================================================*/

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    box-shadow: none;
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        background-color 0.25s;
}

.form-control:hover,
.form-select:hover {
    border-color: #9ec5fe;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control[readonly] {
    cursor: default;
    background-color: #f8f9fa;
}

.resultados-usuarios {
    position: absolute;
    z-index: 20;
    width: calc(100% - 24px);
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.resultado-usuario {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    text-align: left;
}

.resultado-usuario:hover,
.resultado-usuario:focus {
    background: #eef6ff;
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.dias-semana label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}


/*==================================================
    INPUT GROUP
==================================================*/

.input-group-text {
    min-width: 45px;
    justify-content: center;
    background: #f3f5f7;
    font-weight: 700;
    border-radius: 10px 0 0 10px;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}


/*==================================================
    MONTOS
==================================================*/

.monto,
.descuento {
    text-align: right;
    font-size: 17px;
    font-weight: 600;
}


/*==================================================
    DÍAS PAGADOS
==================================================*/

.texto-ayuda {
    margin-top: 12px;
    margin-bottom: 18px;
    color: var(--gris);
    font-size: 14px;
}

.contador-dias {
    padding: 8px 14px;
    color: var(--azul-oscuro);
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 20px;
    font-size: 14px;
}

.dias-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 12px;
}

.dia-item {
    display: block;
    cursor: pointer;
}

.dia-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dia-item span {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #495057;
    background: #ffffff;
    border: 1px solid var(--borde);
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.dia-item span:hover {
    color: var(--azul);
    border-color: #86b7fe;
    transform: translateY(-1px);
}

.dia-item input:checked + span {
    color: #ffffff;
    background: var(--azul);
    border-color: var(--azul);
    box-shadow: 0 5px 12px rgba(13, 110, 253, 0.22);
}


/*==================================================
    RESUMEN
==================================================*/

.resumen {
    padding: 22px;
    background: #ffffff;
    border-top: 4px solid var(--azul);
    border-radius: var(--radio);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.resumen h5 {
    margin-top: 0;
    margin-bottom: 18px;
}

.resumen table {
    margin-bottom: 0;
}

.resumen td {
    font-size: 16px;
}

.resumen th {
    font-size: 19px;
}

.fila-total {
    color: #146c43;
    background: #d1e7dd;
}

.fila-total th:first-child {
    border-radius: 8px 0 0 8px;
}

.fila-total th:last-child {
    border-radius: 0 8px 8px 0;
}

#total {
    height: 60px;
    color: var(--verde);
    background: var(--verde-claro);
    border: 2px solid var(--verde);
    font-size: 28px;
    font-weight: 700;
    text-align: right;
}


/*==================================================
    BOTONES
==================================================*/

.acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
    color: #ffffff;
    background: #25d366;
    border-color: #25d366;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    color: #ffffff;
    background: #1ebe5d;
    border-color: #1ebe5d;
}


/*==================================================
    TICKET
==================================================*/

#ticket{
    display:none;
}

.ticket-nomina{
    width:72mm;              /* área útil del papel */
    margin:0 auto;
    padding:3mm;
    background:#fff;
    color:#000;
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    line-height:1.4;
    box-sizing:border-box;
}

.ticket-nomina h2{
    text-align:center;
    font-size:20px;
    margin:0;
    font-weight:bold;
}

.ticket-subtitulo{
    text-align:center;
    margin-bottom:8px;
    font-size:13px;
}

.ticket-linea{
    border-top:1px dashed #000;
    margin:8px 0;
}

.ticket-fila{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:8px;
    margin:3px 0;
}

.ticket-total{
    font-size:16px;
    font-weight:bold;
}

.firma{
    margin-top:35px;
    padding-top:6px;
    border-top:1px solid #000;
    text-align:center;
}


/*==================================================
    RESPONSIVE
==================================================*/

@media (max-width: 992px) {

    .dias-grid {
        grid-template-columns: repeat(4, minmax(110px, 1fr));
    }

}

@media (max-width: 768px) {

    .card-body {
        padding: 18px;
    }

    .seccion {
        padding: 17px;
    }

    .dias-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .acciones {
        flex-direction: column;
    }

    .acciones .btn {
        width: 100%;
    }

}

@media (max-width: 480px) {

    .dias-grid {
        grid-template-columns: 1fr;
    }

    #total {
        font-size: 24px;
    }

}




/*----------------------------------*/

/*==================================================
    LISTA DE FECHAS PAGADAS
==================================================*/

.lista-fechas {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.mensaje-sin-fechas {
    padding: 16px;
    color: #6c757d;
    background: #ffffff;
    border: 1px dashed #adb5bd;
    border-radius: 10px;
    text-align: center;
}

.fecha-seleccionada {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    color: #084298;
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 10px;
    font-weight: 600;
}

.fecha-seleccionada > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fecha-seleccionada span {
    text-transform: capitalize;
}

.btn-eliminar-fecha {
    width: 34px;
    height: 34px;
    padding: 0;
    color: #dc3545;
    background: #ffffff;
    border: 1px solid #f1aeb5;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-eliminar-fecha:hover {
    color: #ffffff;
    background: #dc3545;
    border-color: #dc3545;
}


/*==================================================
    IMPRESIÓN
==================================================*/

@media print {

    @page {
        size: 80mm auto;
        margin: 0;
    }

    body {
        margin: 0;
        background: #ffffff;
    }

    body > .container {
        display: none !important;
    }

    #ticket {
        display: block !important;
    }

    .ticket-nomina {
        width: 80mm;
        box-shadow: none;
    }

}

#ticket {
    display: none;
}

.ticket-nomina {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 25px;
    font-family: Arial, sans-serif;
    color: #000;
    background: #fff;
}

.ticket-encabezado {
    text-align: center;
}

.ticket-encabezado h2,
.ticket-encabezado h3 {
    margin: 4px 0;
}

.ticket-tabla {
    width: 100%;
    border-collapse: collapse;
}

.ticket-tabla td,
.ticket-tabla th {
    padding: 6px;
    border-bottom: 1px solid #ccc;
}

.ticket-tabla td:last-child,
.ticket-tabla th:last-child {
    text-align: right;
}

.ticket-total {
    font-size: 18px;
}

.ticket-firmas {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 70px;
    text-align: center;
}

@media print {

    body * {
        visibility: hidden;
    }

    #ticket,
    #ticket * {
        visibility: visible;
    }

    #ticket {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .ticket-nomina {
        max-width: none;
        padding: 10mm;
    }

    @page {
        size: auto;
        margin: 8mm;
    }
}

/*==================================================
    IMPRESIÓN 80 mm
==================================================*/

@media print{

    @page{
        size:80mm auto;
        margin:0;
    }

    html,
    body{
        width:80mm;
        margin:0;
        padding:0;
    }

    body *{
        visibility:hidden;
    }

    #ticket,
    #ticket *{
        visibility:visible;
    }

    #ticket{
        display:block;
        position:absolute;
        left:0;
        top:0;
        width:80mm;
    }

    .ticket-nomina{
        width:72mm;
        margin:0 auto;
        padding:3mm;
    }

}

/*==================================================
    COMPROBANTE PROFESIONAL
==================================================*/

.ticket-encabezado {
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
}

.ticket-encabezado h3 {
    font-size: 15px;
    letter-spacing: 0.4px;
}

.ticket-datos p,
.ticket-dato-destacado {
    margin: 6px 0;
}

.ticket-dato-destacado {
    padding: 7px 0;
    border-bottom: 1px dashed #aaa;
}

.ticket-dato-destacado strong,
.ticket-dato-destacado span {
    display: block;
}

.ticket-tabla tr:not(.ticket-total) > th[colspan="2"] {
    padding-top: 14px;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #222;
}

.ticket-subtotal {
    font-weight: 700;
}

.ticket-total th {
    padding: 18px 8px;
    text-align: center !important;
    border-top: 3px double #111;
    border-bottom: 3px double #111;
}

.ticket-total span,
.ticket-total strong {
    display: block;
}

.ticket-total span {
    margin-bottom: 6px;
    font-size: 14px;
    letter-spacing: 0.7px;
}

.ticket-total strong {
    font-size: 24px;
}

.ticket-pie {
    margin-top: 24px;
    padding-top: 10px;
    border-top: 1px solid #222;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.8px;
}

@media print {
    .ticket-nomina {
        font-size: 11px;
        line-height: 1.3;
    }

    .ticket-tabla td,
    .ticket-tabla th {
        padding: 4px 2px;
    }

    .ticket-firmas {
        gap: 8px;
        margin-top: 36px;
        font-size: 10px;
    }

    .ticket-total strong {
        font-size: 20px;
    }
}

/* ==================================================
   IDENTIDAD VISUAL IDEE - INTERFAZ DE NÓMINA
================================================== */

:root {
    --idee-primary: #32b5f4;
    --idee-primary-dark: #168fce;
    --idee-bg: #eaf6fc;
    --idee-bg-soft: #f4f8fc;
    --idee-card: #ffffff;
    --idee-card-soft: #f8fcff;
    --idee-border: #b8c7d9;
    --idee-text: #16263d;
    --idee-muted: #52657a;
    --idee-success: #258c69;
    --idee-danger: #cf4656;
    --idee-shadow: 0 14px 36px rgba(30,73,108,.11);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--idee-muted);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    background:
        radial-gradient(circle at 8% 5%, rgba(50,181,244,.15), transparent 28rem),
        linear-gradient(135deg, var(--idee-bg) 0%, var(--idee-bg-soft) 56%, #edf5fb 100%);
}

body > .container {
    width: min(1240px, 100%);
    max-width: 1240px;
    padding-top: 28px !important;
    padding-bottom: 48px !important;
}

.nomina-card {
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 22px;
    box-shadow: none !important;
}

.nomina-card > .card-header {
    position: relative;
    display: flex;
    min-height: 145px;
    align-items: center;
    padding: 28px 34px 28px 126px;
    color: var(--idee-text) !important;
    background: linear-gradient(145deg, var(--idee-card), var(--idee-card-soft)) !important;
    border: 1px solid rgba(184,199,217,.72);
    border-radius: 22px;
    box-shadow: var(--idee-shadow);
}

.nomina-card > .card-header h4 {
    position: relative;
    margin: 0 0 27px !important;
    color: var(--idee-text);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.nomina-card > .card-header h4::after {
    content: "Elaboración, cálculo y seguimiento de pagos a colaboradores.";
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    max-width: 58vw;
    color: var(--idee-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
}

.nomina-card > .card-header h4 > i {
    position: absolute;
    top: 50%;
    left: -92px;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    color: #087fb9;
    font-size: 31px;
    background: linear-gradient(145deg, #dff4ff, #c9ecff);
    border: 1px solid #abe0fa;
    border-radius: 18px;
    box-shadow: 0 9px 20px rgba(50,181,244,.18);
    transform: translateY(-50%);
}

.nomina-card > .card-header > a {
    min-height: 42px;
    padding: 9px 14px;
    color: #31536a !important;
    font-weight: 600;
    background: #fff !important;
    border: 1px solid var(--idee-border) !important;
    border-radius: 10px;
    box-shadow: none;
}

.nomina-card > .card-header > a:hover {
    color: #087fb9 !important;
    background: #eaf8ff !important;
    border-color: #76ccef !important;
}

.nomina-card > .card-body {
    margin-top: 24px;
    padding: 27px;
    background: linear-gradient(145deg, var(--idee-card), var(--idee-card-soft));
    border: 1px solid rgba(184,199,217,.72);
    border-radius: 21px;
    box-shadow: var(--idee-shadow);
}

.seccion {
    margin-bottom: 20px;
    padding: 22px;
    color: var(--idee-muted);
    background: #f8fcff;
    border: 1px solid #d6e3ec;
    border-left: 4px solid var(--idee-primary);
    border-radius: 15px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.seccion:hover {
    border-color: #9fcfe7;
    box-shadow: 0 12px 25px rgba(30,73,108,.1);
    transform: translateY(-1px);
}

.percepciones {
    background: #f7fcfa;
    border-left-color: var(--idee-success);
}

.descuentos {
    background: #fff9fa;
    border-left-color: var(--idee-danger);
}

.titulo-seccion {
    margin-bottom: 19px;
    padding-bottom: 13px;
    color: var(--idee-text);
    font-size: 1.06rem;
    font-weight: 600;
    border-bottom: 1px solid #dce7ef;
}

.titulo-seccion .bi {
    color: #168fce;
}

.percepciones .titulo-seccion .bi { color: var(--idee-success); }
.descuentos .titulo-seccion .bi { color: var(--idee-danger); }

.form-label,
.dias-semana label {
    color: var(--idee-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
}

.form-control,
.form-select {
    min-height: 47px;
    padding: 10px 13px;
    color: var(--idee-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    background: #fbfdff;
    border: 1px solid var(--idee-border);
    border-radius: 10px;
    box-shadow: none;
}

.form-control:hover,
.form-select:hover { border-color: #8db4d0; }

.form-control:focus,
.form-select:focus {
    color: var(--idee-text);
    background: #fff;
    border-color: var(--idee-primary);
    box-shadow: 0 0 0 4px rgba(50,181,244,.14);
}

.form-control[readonly] {
    color: #536c7e;
    background: #edf6fb;
    border-color: #c2d9e6;
}

.input-group-text {
    color: #315d75;
    font-weight: 600;
    background: #eaf7fd;
    border-color: var(--idee-border);
}

.resultados-usuarios {
    top: calc(100% - 15px);
    max-height: 260px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--idee-border);
    border-radius: 11px;
    box-shadow: 0 12px 28px rgba(30,73,108,.16);
}

.resultado-usuario {
    padding: 10px 12px;
    color: var(--idee-text);
    border-bottom: 1px solid #e3ebf1;
    border-radius: 7px;
}

.resultado-usuario:hover,
.resultado-usuario:focus {
    color: #087fb9;
    background: #edf9ff;
}

#panelAsistenciasNomina {
    overflow: hidden;
    background: #f8fcff;
    border: 1px solid #cde4ef !important;
    border-radius: 14px;
    box-shadow: none;
}

#panelAsistenciasNomina > .card-header {
    padding: 14px 17px;
    color: var(--idee-text);
    background: #eaf7fd !important;
    border-bottom: 1px solid #cde4ef;
}

#panelAsistenciasNomina > .card-body {
    padding: 17px;
}

#panelAsistenciasNomina .border.rounded {
    background: #fff;
    border-color: #d6e3ec !important;
    border-radius: 10px !important;
}

.selector-semana {
    padding: 16px;
    background: #f2f9fd;
    border: 1px solid #d5e4ee;
    border-radius: 12px;
}

.dias-semana label {
    min-height: 44px;
    padding: 9px 11px;
    background: #fff;
    border-color: #cddce7;
    border-radius: 9px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.dias-semana label:has(input:checked) {
    color: #087fb9;
    background: #eaf8ff;
    border-color: #76ccef;
}

.dias-semana input {
    width: 17px;
    height: 17px;
    accent-color: var(--idee-primary-dark);
}

.contador-dias {
    color: #176384;
    font-weight: 500;
    background: #e7f5fc;
    border-color: #b9deef;
}

.texto-ayuda { color: var(--idee-muted); }

.mensaje-sin-fechas {
    color: var(--idee-muted);
    background: #fff;
    border-color: #bdcdda;
}

.fecha-seleccionada {
    color: #176384;
    background: #eaf8ff;
    border-color: #b9deef;
    font-weight: 600;
}

.btn-eliminar-fecha {
    color: #bd3545;
    border-color: #edadb5;
    border-radius: 8px;
}

.table-responsive {
    overflow: hidden auto;
    border: 1px solid #d3dfe9;
    border-radius: 11px;
}

.table {
    margin: 0;
    color: var(--idee-text);
    font-size: 13.5px;
}

.table thead th {
    padding: 11px 9px;
    color: #fff;
    font-weight: 600;
    background: #29465e;
    border-color: #3b5b73;
}

.table tbody td {
    padding: 10px 9px;
    color: var(--idee-text);
    border-color: #dce5ed;
}

.table tbody tr:nth-child(even) td { background: #f5faff; }
.table tbody tr:hover td { background: #eaf7fd; }

.resumen {
    padding: 22px;
    background: linear-gradient(145deg, #fff, #f7fcff);
    border: 1px solid #d3e1eb;
    border-top: 4px solid var(--idee-primary);
    border-radius: 15px;
    box-shadow: 0 10px 23px rgba(30,73,108,.1);
}

.resumen h5 {
    color: var(--idee-text);
    font-weight: 600;
}

.resumen .fila-total {
    color: #176248;
    background: #e2f4eb;
}

#total {
    min-height: 60px;
    color: #176248;
    font-size: 1.65rem;
    font-weight: 650;
    background: #eef9f4;
    border: 1px solid #9ed2bd;
}

.btn {
    min-height: 43px;
    padding: 9px 17px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease,
        box-shadow .2s ease, transform .2s ease;
}

.btn:hover {
    box-shadow: 0 8px 18px rgba(30,73,108,.14);
    transform: translateY(-2px);
}

.btn-primary,
.btn-info {
    color: #fff;
    background: linear-gradient(135deg, var(--idee-primary), var(--idee-primary-dark));
    border-color: var(--idee-primary-dark);
}

.btn-success {
    background: var(--idee-success);
    border-color: #1e7658;
}

.btn-whatsapp {
    background: #2d9c68;
    border-color: #238458;
}

.acciones {
    padding-top: 19px;
    border-top: 1px solid #dce6ee;
}

@media (max-width: 768px) {
    body > .container {
        padding: 14px 11px 30px !important;
    }

    .nomina-card > .card-header {
        min-height: 230px;
        align-items: flex-start;
        padding: 23px 17px 91px 82px;
        border-radius: 17px;
    }

    .nomina-card > .card-header h4 > i {
        left: -65px;
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 14px;
    }

    .nomina-card > .card-header h4::after {
        max-width: calc(100vw - 120px);
        font-size: .84rem;
    }

    .nomina-card > .card-header > a {
        position: absolute;
        right: 17px;
        left: 17px;
        width: auto;
    }

    .nomina-card > .card-header > a:nth-of-type(1) { bottom: 56px; }
    .nomina-card > .card-header > a:nth-of-type(2) { bottom: 10px; }
    .nomina-card > .card-body { padding: 17px; border-radius: 17px; }
}

/* La impresión conserva exclusivamente el comprobante generado. */
@media print {
    body {
        width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body > .container { display: none !important; }
    body * { visibility: hidden !important; }
    #ticket, #ticket * { visibility: visible !important; }
    #ticket {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 80mm !important;
    }
}
