/* ============================================================
   Extranet del proveedor/operario — estilos propios.
   Tokens del handoff (§10): móvil hi-fi con identidad Assista;
   el escritorio usa el tema Radzen con la marca (sidebar rojo).
   ============================================================ */

:root {
    /* Marca */
    --x-red: #B81E26;
    --x-red-vivid: #C8102E;
    --x-red-deep: #8B1620;
    --x-pink: #F2D7DA;
    --x-pink-soft: #FBE9EA;
    /* Neutros */
    --x-ink: #1A2332;
    --x-body: #3F4A5C;
    --x-soft: #6B7280;
    --x-line: #E6E8EC;
    --x-bg: #F4F6F8;
    /* Estados */
    --x-green: #1D8A5B;
    --x-green-bg: #DDF3E8;
    --x-amber: #C77A11;
    --x-amber-bg: #FBF0DC;
    --x-info: #2F5D7D;
    --x-info-bg: #E7EFF5;
    --x-whatsapp: #25D366;
}

/* ------------------------------------------------------------
   Rojo Assista CANÓNICO (alineado con AssetsManagement) y mapeo
   del tema Radzen. Aplica al shell DESKTOP (tema Radzen + marca):
   botones Primary, links y header pasan a rojo Assista en vez del
   color por defecto del tema "software". La paleta --x-red* del
   shell móvil (handoff hi-fi) se mantiene aparte a propósito.
   ------------------------------------------------------------ */
:root {
    --assista-primary-color: rgb(177, 4, 14);
    --assista-primary-selected-color: #795252;
    --assista-primary-2nd-level-color: #910000;

    /* Mapeo de variables del tema Radzen al rojo de marca */
    --rz-primary: var(--assista-primary-color) !important;
    --rz-link-color: var(--assista-primary-color) !important;
    --rz-menu-top-item-color: var(--assista-primary-color) !important;
    --rz-datepicker-trigger-icon-color: var(--assista-primary-color) !important;
    --rz-sidebar-background-color: var(--assista-primary-color) !important;
    --rz-panel-menu-item-background-color: var(--assista-primary-color) !important;
    --rz-panel-menu-item-active-background-color: var(--assista-primary-selected-color) !important;
    --rz-panel-menu-item-2nd-level-background-color: var(--assista-primary-2nd-level-color) !important;
}

/* Spinner de arranque del WASM */
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 35vh auto;
}

/* El spinner es contenido estático, hermano de <Routes> dentro de #ApplicationContainer:
   Blazor no lo sustituye, renderiza la app a su lado. Lo ocultamos en cuanto el spinner
   tiene un hermano-elemento posterior (= la app ya montada por el WASM). Mientras carga el
   runtime, tras el spinner solo hay un marcador-comentario de Blazor (no es elemento), así
   que permanece visible justo durante el arranque. */
.spinner:has(~ *) {
    display: none;
}

.spinner .double-bounce1,
.spinner .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--x-red-vivid);
    opacity: .6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2s infinite ease-in-out;
}

.spinner .double-bounce2 {
    animation-delay: -1s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0); }
    50% { transform: scale(1); }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    user-select: none;
}

/* ============================================================
   SHELL MÓVIL (campo, <768px) — alta fidelidad
   ============================================================ */

.x-mobile {
    font-family: 'Montserrat', sans-serif;
    background: var(--x-bg);
    color: var(--x-body);
    min-height: 100vh;
    font-size: 13.5px;
}

.x-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 56px;
    background: var(--x-red);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.x-appbar-logo {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .2px;
}

.x-appbar-logo b {
    font-weight: 800;
}

.x-appbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 17px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.x-appbar-title small {
    font-size: 11.5px;
    font-weight: 500;
    opacity: .85;
}

.x-appbar-icon {
    color: #fff;
    display: inline-flex;
    text-decoration: none;
}

.x-appbar-action {
    margin-left: auto;
}

.x-mobile-body {
    padding: 70px 14px 86px;
}

.x-mobile-body:has(+ .x-bottomnav) {
    padding-bottom: 86px;
}

/* Menú inferior de 5 pestañas */
.x-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--x-line);
    display: flex;
}

.x-bottomnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--x-soft);
    text-decoration: none;
    transition: transform .12s ease;
}

.x-bottomnav-item:active {
    transform: scale(.96);
}

.x-bottomnav-item.active {
    color: var(--x-red-vivid);
}

.x-bottomnav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Cards */
.x-card {
    background: #fff;
    border: 1px solid var(--x-line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.x-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--x-ink);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--x-soft);
    margin-bottom: 6px;
    display: block;
}

/* Tags de estado */
.x-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.x-tag-green { background: var(--x-green-bg); color: var(--x-green); }
.x-tag-amber { background: var(--x-amber-bg); color: var(--x-amber); }
.x-tag-info  { background: var(--x-info-bg);  color: var(--x-info); }
.x-tag-red   { background: var(--x-pink-soft); color: var(--x-red-vivid); }
.x-tag-gray  { background: var(--x-bg); color: var(--x-soft); }

/* Chip SLA */
.x-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 700;
    background: var(--x-bg);
    color: var(--x-soft);
    border: 1px solid var(--x-line);
    white-space: nowrap;
}

.x-chip-danger {
    background: var(--x-pink-soft);
    color: var(--x-red-vivid);
    border-color: var(--x-pink);
}

/* Hero del inicio */
.x-hero {
    background: linear-gradient(135deg, var(--x-red-vivid), var(--x-red-deep));
    border-radius: 16px;
    color: #fff;
    padding: 18px 16px;
    margin-bottom: 14px;
}

.x-hero h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
}

.x-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Acciones rápidas (grid 2×2 de tiles) */
.x-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.x-tile {
    background: #fff;
    border: 1px solid var(--x-line);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: var(--x-body);
    transition: transform .12s ease;
}

.x-tile:active {
    transform: scale(.97);
}

.x-tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--x-pink-soft);
    color: var(--x-red-vivid);
    margin-bottom: 8px;
}

.x-tile-icon.amber { background: var(--x-amber-bg); color: var(--x-amber); }
.x-tile-icon.green { background: var(--x-green-bg); color: var(--x-green); }

.x-tile-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--x-ink);
}

.x-tile-sub {
    font-size: 11.5px;
    color: var(--x-soft);
}

/* Botones */
.x-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    transition: transform .12s ease;
}

.x-btn:active {
    transform: scale(.98);
}

.x-btn-primary { background: var(--x-red); color: #fff; }
.x-btn-ghost { background: #fff; color: var(--x-red); border: 1.5px solid var(--x-pink); }
.x-btn-green { background: var(--x-green); color: #fff; }
.x-btn-sm { height: 38px; font-size: 12.5px; border-radius: 11px; }
.x-btn:disabled { opacity: .45; cursor: default; }

/* Footer fijo de acciones (sobre el bottom-nav) */
.x-footer {
    position: fixed;
    bottom: 62px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--x-line);
    padding: 10px 14px;
    display: flex;
    gap: 10px;
}

.x-has-footer {
    padding-bottom: 160px;
}

/* Formularios */
.x-field {
    margin-bottom: 14px;
}

.x-input,
.x-select,
.x-textarea {
    width: 100%;
    border: 1.5px solid var(--x-line);
    border-radius: 12px;
    min-height: 46px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--x-ink);
    background: #fff;
    box-sizing: border-box;
}

.x-input:focus,
.x-select:focus,
.x-textarea:focus {
    outline: none;
    border-color: var(--x-red-vivid);
}

/* Segmented control (Pendientes / En proceso) */
.x-segmented {
    display: flex;
    background: #fff;
    border: 1px solid var(--x-line);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
}

.x-segmented button {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 9px;
    height: 38px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--x-soft);
    cursor: pointer;
}

.x-segmented button.active {
    background: var(--x-red);
    color: #fff;
}

/* Chips seleccionables (tipo de cita, respuestas rápidas) */
.x-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.x-chip-select {
    border: 1.5px solid var(--x-line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--x-body);
    cursor: pointer;
}

.x-chip-select.active {
    border-color: var(--x-red-vivid);
    background: var(--x-pink-soft);
    color: var(--x-red-vivid);
}

/* Ítems de lista de partes (móvil) */
.x-wo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--x-line);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--x-body);
    transition: transform .12s ease;
}

.x-wo-item:active {
    transform: scale(.98);
}

.x-wo-main {
    flex: 1;
    min-width: 0;
}

.x-wo-code {
    font-weight: 700;
    color: var(--x-ink);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.x-wo-address {
    font-size: 12.5px;
    color: var(--x-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-wo-side {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Filas (contactos, llaves, cuenta…) */
.x-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--x-line);
}

.x-row:last-child {
    border-bottom: none;
}

.x-row-main {
    flex: 1;
    min-width: 0;
}

.x-row-title {
    font-weight: 600;
    color: var(--x-ink);
    font-size: 13px;
}

.x-row-sub {
    font-size: 11.5px;
    color: var(--x-soft);
}

/* Banners / avisos */
.x-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.x-banner .material-symbols-outlined {
    font-size: 19px;
    flex-shrink: 0;
}

.x-banner-info { background: var(--x-info-bg); color: var(--x-info); }
.x-banner-amber { background: var(--x-amber-bg); color: var(--x-amber); }
.x-banner-green { background: var(--x-green-bg); color: var(--x-green); }

/* Asistente de actuación: puntos de progreso */
.x-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-bottom: 4px;
}

.x-steps span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--x-line);
}

.x-steps span.active {
    background: var(--x-red-vivid);
    width: 22px;
}

.x-step-label {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--x-soft);
    margin-bottom: 12px;
}

/* Fotos */
.x-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.x-photo,
.x-photo-add {
    aspect-ratio: 1;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
}

.x-photo {
    background: var(--x-bg);
    border: 1px solid var(--x-line);
    color: var(--x-soft);
}

.x-photo-add {
    border: 1.5px dashed var(--x-pink);
    color: var(--x-red-vivid);
    background: #fff;
    cursor: pointer;
}

/* Cámara en vivo (getUserMedia) */
.x-cam {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    display: flex;
    flex-direction: column;
}

.x-cam-video {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.x-cam-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

.x-cam-shutter {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
    cursor: pointer;
    flex-shrink: 0;
}

.x-cam-shutter:disabled {
    opacity: .4;
    cursor: default;
}

/* Disparador en modo grabación: rojo (iniciar) y cuadrado rojo (detener) */
.x-cam-shutter.rec {
    background: #ff3b30;
    border-color: rgba(255, 59, 48, .45);
}

.x-cam-shutter.stop {
    background: #ff3b30;
    border-color: rgba(255, 59, 48, .45);
    border-radius: 18px;
}

/* Modo audio: sin vídeo, icono de micro centrado */
.x-cam-audio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .55);
}

.x-cam-audio .material-symbols-outlined {
    font-size: 96px;
}

/* Indicador "grabando" con punto parpadeante + tiempo */
.x-cam-rec {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.x-cam-rec .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    animation: x-blink 1s steps(2, start) infinite;
}

@keyframes x-blink {
    to {
        opacity: 0;
    }
}

/* Lista de adjuntos capturados (foto/vídeo/audio) */
.x-attach-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.x-attach {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--x-line);
    border-radius: 10px;
    background: #fff;
}

.x-attach-thumb {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
}

.x-attach > .material-symbols-outlined {
    color: var(--x-soft);
}

.x-attach-name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--x-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-attach-del {
    border: none;
    background: none;
    color: var(--x-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}

.x-cam-btn {
    min-width: 64px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.x-cam-error {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 12px;
    text-align: center;
}

/* Comparador antes → ahora (cierre) */
.x-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Firma */
.x-signature {
    height: 150px;
    border: 1.5px dashed var(--x-line);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--x-soft);
    font-size: 12px;
}

/* Chat de seguimiento */
.x-bubble {
    max-width: 82%;
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 8px;
}

.x-bubble-in {
    background: #fff;
    border: 1px solid var(--x-line);
    color: var(--x-body);
}

.x-bubble-out {
    background: var(--x-pink-soft);
    color: var(--x-ink);
    margin-left: auto;
}

.x-bubble-meta {
    font-size: 10px;
    color: var(--x-soft);
    margin-top: 3px;
}

.x-sendbar {
    position: fixed;
    bottom: 62px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--x-line);
    padding: 10px 14px;
    display: flex;
    gap: 8px;
}

.x-sendbar input {
    flex: 1;
}

.x-sendbar .x-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Escáner QR: el marco aloja la cámara en vivo (o el icono cuando está parada) */
.x-qr-frame {
    aspect-ratio: 1;
    max-width: 260px;
    margin: 18px auto;
    border-radius: 16px;
    border: 3px solid var(--x-red-vivid);
    background: var(--x-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: .9;
    overflow: hidden;
}

/* Vista previa de la cámara dentro del marco del escáner */
.x-qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

/* Mapa esquemático (navegación) */
.x-map {
    height: 320px;
    border-radius: 14px;
    background: linear-gradient(160deg, #E7EFF5, #DDE7EE);
    border: 1px solid var(--x-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--x-info);
    margin-bottom: 12px;
}

/* Éxitos */
.x-success {
    text-align: center;
    padding: 32px 16px;
}

.x-success .material-symbols-outlined {
    font-size: 56px;
    color: var(--x-green);
    background: var(--x-green-bg);
    border-radius: 999px;
    padding: 16px;
}

.x-success h3 {
    color: var(--x-ink);
    font-size: 17px;
    margin: 16px 0 6px;
}

/* Aviso de superficie fuera de rango */
.x-surface-notice {
    max-width: 420px;
    margin: 12vh auto;
    text-align: center;
    color: var(--x-soft);
    font-family: 'Montserrat', sans-serif;
}

.x-surface-notice .material-symbols-outlined {
    font-size: 48px;
}

.x-surface-notice a {
    color: var(--x-red-vivid);
    font-weight: 700;
}

/* ============================================================
   SHELL ESCRITORIO (gestión, ≥768px) — tema Radzen + marca
   ============================================================ */

.x-sidebar {
    /* Rojo Assista canónico (igual que el sidebar de AssetsManagement) */
    background: var(--assista-primary-color);
}

/* Logo de marca en la barra superior (sustituye al texto de marca del sidebar) */
.x-topbar-logo {
    height: 26px;
    width: auto;
    display: block;
}

.x-sidebar-nav {
    padding: 14px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.x-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 9px;
}

.x-sidebar-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.x-sidebar-item.active {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.x-topbar {
    width: 100%;
    padding-right: 12px;
}

.x-topbar-user {
    font-size: 13.5px;
}

.x-desktop-body {
    padding: 8px 4px;
}

/* KPIs del dashboard / cobros */
.x-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.x-kpi {
    background: #fff;
    border: 1px solid var(--x-line);
    border-radius: 12px;
    padding: 14px 16px;
}

.x-kpi-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--x-soft);
}

.x-kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--x-ink);
    margin-top: 4px;
}

.x-kpi-accent .x-kpi-value {
    color: var(--x-green);
}

.x-kpi-sub {
    font-size: 11.5px;
    color: var(--x-soft);
}

/* Filtro rápido por estado (chips de escritorio) */
.x-quickfilters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

/* Rejilla del detalle de gestión */
.x-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 1100px) {
    .x-detail-grid {
        grid-template-columns: 1fr;
    }
}

.x-detail-grid .x-card {
    margin-bottom: 14px;
}

/* Totales de autofactura */
.x-totals {
    margin-left: auto;
    max-width: 340px;
}

.x-totals .x-row {
    padding: 7px 0;
}

.x-totals .x-total-final {
    font-size: 16px;
    font-weight: 700;
    color: var(--x-ink);
}
