    /* ---------------- Modales del POS centrados en tableta ---------------- */

    html[data-tablet] pos-cobros[opened],
    html[data-tablet] pos-ticket[opened],
    html[data-tablet] pos-clientes[opened] {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      background: rgba(15, 23, 42, 0.42) !important;
      padding: 32px 24px !important;
      box-sizing: border-box !important;
      overflow-y: auto !important;
      position: fixed !important;
      top: 0 !important; left: 0 !important;
      right: 0 !important; bottom: 0 !important;
    }
    html[data-tablet] pos-cobros[opened]   { z-index: 300 !important; }
    html[data-tablet] pos-ticket[opened]   { z-index: 400 !important; }
    html[data-tablet] pos-clientes[opened] { z-index: 500 !important; }

    /* Card central: el primer contenedor del modal. Se asume un único
       hijo directo con class .layout.vertical.height100vh (o variantes).
       Polymer shim prefija children del shadow con .style-scope X — el
       selector descendant los matchea igual. */
    html[data-tablet] pos-cobros[opened]   > div.layout.vertical.height100vh:not([hidden]),
    html[data-tablet] pos-cobros[opened]   div#formCobros:not([hidden]),
    html[data-tablet] pos-ticket[opened]   > div.layout.vertical.height100vh:not([hidden]),
    html[data-tablet] pos-clientes[opened] > div.layout.vertical:not([hidden]) {
      background: #FFFFFF !important;
      border-radius: 22px !important;
      max-width: 680px !important;
      width: 100% !important;
      height: min(720px, calc(100vh - 64px)) !important;
      max-height: min(720px, calc(100vh - 64px)) !important;
      min-height: 540px !important;
      box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.10),
        0 20px 48px rgba(15, 23, 42, 0.14) !important;
      overflow: hidden !important;
      margin: 0 auto !important;
      position: relative !important;
      inset: auto !important;
      display: flex !important;
      flex-direction: column !important;
      animation: pos-modal-pop 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    html[data-tablet] pos-ticket[opened] > div.layout.vertical.height100vh {
      max-width: 560px !important;
      padding: 16px 20px !important;
    }
    html[data-tablet] pos-clientes[opened] > div.layout.vertical {
      max-width: 520px !important;
    }

    /* ---------------- pos-clientes — buscador y lista Square ---------------- */
    html[data-tablet] pos-clientes[opened] .body-container > .input-container {
      background: linear-gradient(to bottom, #FAFAFA, #FFFFFF) !important;
      border: 2px solid #E5E7EB !important;
      border-radius: 12px !important;
      padding: 0 14px !important;
      height: 48px !important;
      margin: 14px 22px !important;
      transition: border-color 0.15s, box-shadow 0.15s !important;
    }
    html[data-tablet] pos-clientes[opened] .body-container > .input-container:focus-within {
      border-color: #3B82F6 !important;
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
    }
    html[data-tablet] pos-clientes[opened] .body-container > .input-container input {
      font-size: 15px !important;
      font-weight: 500 !important;
      color: #0F172A !important;
    }
    html[data-tablet] pos-clientes[opened] .body-container > .input-container iron-icon {
      color: #94A3B8 !important;
    }
    html[data-tablet] pos-clientes[opened] .body-container > .input-container input::placeholder {
      color: #94A3B8 !important;
      font-weight: 500 !important;
    }

    /* Sticky button container (Crear/Cancelar) — Square style */
    html[data-tablet] pos-clientes[opened] .button-container {
      flex: 0 0 auto !important;
      padding: 14px 22px 18px !important;
      background: #FFFFFF !important;
      border-top: 1px solid #F1F5F9 !important;
    }
    html[data-tablet] pos-clientes[opened] .button-container paper-button.blue-button,
    html[data-tablet] pos-clientes[opened] .button-container button.blue-button {
      background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
      color: #FFFFFF !important;
      border-radius: 12px !important;
      font-size: 15px !important;
      font-weight: 700 !important;
      padding: 14px 22px !important;
      box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32) !important;
      transition: transform 0.14s, box-shadow 0.18s !important;
    }
    html[data-tablet] pos-clientes[opened] .button-container paper-button.blue-button:hover,
    html[data-tablet] pos-clientes[opened] .button-container button.blue-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(59, 130, 246, 0.42) !important;
    }

    /* ---------------- Modal "Editar Producto" SACS3-style (tableta) ---------------- */
    /* Default oculto en móvil. En tableta cuando [opened] aparece centrado. */
    .edit-item-modal { display: none; }
    html[data-tablet] pos-carrito .edit-item-modal[opened] {
      display: flex !important;
      position: fixed !important;
      inset: 0 !important;
      z-index: 700 !important;
      background: rgba(15, 23, 42, 0.42) !important;
      backdrop-filter: blur(2px);
      padding: 32px 24px !important;
      box-sizing: border-box !important;
      align-items: center !important;
      justify-content: center !important;
      overflow-y: auto !important;
      animation: pos-modal-pop 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    html[data-tablet] pos-carrito .edit-item-card {
      background: #FFFFFF;
      border-radius: 22px;
      max-width: 540px;
      width: 100%;
      max-height: calc(100vh - 64px);
      box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.10),
        0 20px 48px rgba(15, 23, 42, 0.14);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    html[data-tablet] pos-carrito .edit-item-header {
      padding: 22px 28px;
      border-bottom: 1px solid #F1F5F9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }
    html[data-tablet] pos-carrito .edit-item-header b {
      font-size: 19px;
      font-weight: 700;
      color: #0F172A;
      letter-spacing: -0.3px;
    }
    html[data-tablet] pos-carrito .edit-item-close {
      width: 36px; height: 36px;
      background: #F1F5F9;
      border: none;
      border-radius: 10px;
      color: #64748B;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      transition: background 0.14s;
    }
    html[data-tablet] pos-carrito .edit-item-close iron-icon { width: 18px; height: 18px; --iron-icon-fill-color: currentColor; }
    html[data-tablet] pos-carrito .edit-item-close:hover { background: #E2E8F0; }

    html[data-tablet] pos-carrito .edit-item-sub {
      padding: 16px 28px;
      background: #F8FAFC;
      border-bottom: 1px solid #F1F5F9;
      display: flex;
      align-items: center;
      gap: 14px;
      flex-shrink: 0;
    }
    html[data-tablet] pos-carrito .edit-item-thumb {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      background: #FFFFFF;
      border: 1px solid #E5E7EB;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    html[data-tablet] pos-carrito .edit-item-thumb product-imagen,
    html[data-tablet] pos-carrito .edit-item-thumb product-imagen img {
      width: 100%; height: 100%; object-fit: cover;
    }
    html[data-tablet] pos-carrito .edit-item-info { flex: 1; min-width: 0; }
    html[data-tablet] pos-carrito .edit-item-name {
      font-size: 15px;
      font-weight: 700;
      color: #0F172A;
      letter-spacing: -0.1px;
      line-height: 1.3;
      margin-bottom: 2px;
    }
    html[data-tablet] pos-carrito .edit-item-sku {
      font-size: 12px;
      color: #94A3B8;
      font-weight: 500;
    }

    /* Tabs Precio / Descuento / Nota */
    html[data-tablet] pos-carrito .edit-item-tabs {
      display: flex;
      border-bottom: 1px solid #F1F5F9;
      padding: 0 28px;
      flex-shrink: 0;
    }
    html[data-tablet] pos-carrito .edit-item-tab {
      flex: 1;
      padding: 16px 12px;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      font-size: 14px;
      font-weight: 600;
      color: #94A3B8;
      cursor: pointer;
      transition: color 0.14s, border-color 0.14s;
      font-family: 'Inter', system-ui, sans-serif;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    html[data-tablet] pos-carrito .edit-item-tab iron-icon {
      width: 16px; height: 16px; --iron-icon-fill-color: currentColor;
    }
    html[data-tablet] pos-carrito .edit-item-tab:hover { color: #475569; }
    html[data-tablet] pos-carrito .edit-item-tab.is-active {
      color: #3B82F6;
      border-bottom-color: #3B82F6;
    }

    /* Body — secciones por tab */
    html[data-tablet] pos-carrito .edit-item-body {
      padding: 24px 28px;
      overflow-y: auto;
      flex: 1 1 auto;
      min-height: 0;
    }
    html[data-tablet] pos-carrito .edit-item-section { display: flex; flex-direction: column; gap: 12px; }
    html[data-tablet] pos-carrito .edit-item-label {
      font-size: 13px;
      color: #64748B;
      font-weight: 500;
    }
    html[data-tablet] pos-carrito .edit-item-sublabel {
      font-size: 12px;
      color: #94A3B8;
      font-weight: 500;
      letter-spacing: 0.01em;
    }
    html[data-tablet] pos-carrito .edit-item-price-display {
      font-size: 32px;
      font-weight: 800;
      color: #0F172A;
      letter-spacing: -0.6px;
      font-variant-numeric: tabular-nums;
    }
    html[data-tablet] pos-carrito .edit-item-field-block {
      background: #F8FAFC;
      border: 1px solid #F1F5F9;
      border-radius: 12px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    html[data-tablet] pos-carrito .edit-item-input {
      width: 100%;
      border: none;
      border-bottom: 1px solid #CBD5E1;
      background: transparent;
      font-size: 17px;
      font-weight: 600;
      color: #0F172A;
      padding: 6px 0;
      outline: none;
      font-family: 'Inter', system-ui, sans-serif;
      transition: border-color 0.14s;
    }
    html[data-tablet] pos-carrito .edit-item-input:focus { border-bottom-color: #3B82F6; }
    html[data-tablet] pos-carrito .edit-item-textarea {
      width: 100%;
      min-height: 110px;
      border: 1px solid #E5E7EB;
      background: #F8FAFC;
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 14px;
      color: #0F172A;
      resize: vertical;
      outline: none;
      font-family: 'Inter', system-ui, sans-serif;
      transition: border-color 0.14s, box-shadow 0.14s;
    }
    html[data-tablet] pos-carrito .edit-item-textarea:focus {
      border-color: #3B82F6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }
    html[data-tablet] pos-carrito .edit-item-warning {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px 14px;
      background: #FFFBEB;
      border-left: 3px solid #F59E0B;
      border-radius: 8px;
      font-size: 13px;
      color: #92400E;
      line-height: 1.5;
    }
    html[data-tablet] pos-carrito .edit-item-warning iron-icon {
      width: 18px; height: 18px;
      color: #F59E0B;
      flex-shrink: 0;
      margin-top: 1px;
      --iron-icon-fill-color: currentColor;
    }

    /* Toggle Porcentaje/Importe en tab Descuento */
    html[data-tablet] pos-carrito .edit-item-toggle {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    html[data-tablet] pos-carrito .edit-item-toggle-btn {
      padding: 14px 12px;
      background: #FFFFFF;
      border: 1px solid #E5E7EB;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      color: #64748B;
      cursor: pointer;
      transition: all 0.14s;
      font-family: 'Inter', system-ui, sans-serif;
    }
    html[data-tablet] pos-carrito .edit-item-toggle-btn:hover { background: #F8FAFC; border-color: #CBD5E1; }
    html[data-tablet] pos-carrito .edit-item-toggle-btn.is-active {
      background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
      border: 2px solid #3B82F6;
      color: #1E40AF;
      padding: 13px 11px;
    }
    html[data-tablet] pos-carrito .edit-item-preview {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      background: linear-gradient(to right, #EFF6FF, #DBEAFE);
      border-left: 3px solid #3B82F6;
      border-radius: 10px;
    }
    html[data-tablet] pos-carrito .edit-item-preview-label {
      font-size: 13px;
      font-weight: 600;
      color: #1E40AF;
    }
    html[data-tablet] pos-carrito .edit-item-preview-val {
      font-size: 19px;
      font-weight: 800;
      color: #0F172A;
      font-variant-numeric: tabular-nums;
    }

    /* Footer Cancelar / Guardar Cambios */
    html[data-tablet] pos-carrito .edit-item-footer {
      padding: 16px 28px;
      border-top: 1px solid #F1F5F9;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      flex-shrink: 0;
    }
    html[data-tablet] pos-carrito .edit-item-btn-cancel {
      padding: 12px 20px;
      background: #FFFFFF;
      border: 1px solid #D1D5DB;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      color: #374151;
      cursor: pointer;
      transition: background 0.14s, border-color 0.14s;
      font-family: 'Inter', system-ui, sans-serif;
    }
    html[data-tablet] pos-carrito .edit-item-btn-cancel:hover { background: #F8FAFC; border-color: #94A3B8; }
    html[data-tablet] pos-carrito .edit-item-btn-save {
      padding: 12px 22px;
      background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
      color: #FFFFFF;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(59, 130, 246, 0.30);
      transition: transform 0.12s, box-shadow 0.18s;
      font-family: 'Inter', system-ui, sans-serif;
    }
    html[data-tablet] pos-carrito .edit-item-btn-save:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(59, 130, 246, 0.42);
    }

    /* ---------------- Action sheet "Más acciones" — modal pop-in en tableta ---------------- */
    html[data-tablet] action-sheet[opened] .as-sheet {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;
      transform: translate(-50%, -50%) !important;
      width: 100% !important;
      max-width: 420px !important;
      max-height: min(640px, calc(100vh - 64px)) !important;
      border-radius: 22px !important;
      padding: 16px !important;
      box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.10),
        0 20px 48px rgba(15, 23, 42, 0.16) !important;
      animation: action-sheet-pop 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    }
    @keyframes action-sheet-pop {
      from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
      to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
    /* Ocultar el grabber bottom-sheet en tableta (no aplica) */
    html[data-tablet] action-sheet[opened] .as-grabber {
      display: none !important;
    }
    html[data-tablet] action-sheet[opened] .as-title {
      font-size: 11px !important;
      font-weight: 700 !important;
      color: #94A3B8 !important;
      letter-spacing: 0.12em !important;
      padding: 8px 8px 12px !important;
    }
    /* Items con hover Square */
    html[data-tablet] action-sheet[opened] .as-btn {
      padding: 12px 14px !important;
      border-radius: 10px !important;
      font-size: 14px !important;
      transition: background 0.14s, transform 0.1s !important;
    }
    html[data-tablet] action-sheet[opened] .as-btn:hover {
      background: #F8FAFC !important;
    }
    html[data-tablet] action-sheet[opened] .as-btn:active {
      background: #F1F5F9 !important;
      transform: scale(0.98) !important;
    }
    /* Backdrop más sutil */
    html[data-tablet] action-sheet[opened] .as-backdrop {
      background: rgba(15, 23, 42, 0.42) !important;
      backdrop-filter: blur(2px) !important;
    }
    @keyframes pos-modal-pop {
      from { opacity: 0; transform: translateY(12px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0)   scale(1); }
    }

    /* ---------------- pos-cobros — layout interno tableta ---------------- */

    html[data-tablet] pos-cobros[opened] #formCobros:not([hidden]) > div.layout.vertical.height100vh {
      display: flex !important;
      flex-direction: column !important;
      height: 100% !important;
      max-height: 100% !important;
      overflow: hidden !important;
      min-height: 0 !important;
    }
    html[data-tablet] pos-cobros[opened] .cobros-scroll {
      flex: 1 1 0 !important;
      overflow-y: auto !important;
      padding: 0 !important;
      min-height: 0 !important;
    }
    html[data-tablet] pos-cobros[opened] .full-screen-button-container {
      flex: 0 0 auto !important;
      padding: 14px 24px 18px !important;
      background: #FFFFFF !important;
      border-top: 1px solid #F1F5F9 !important;
      margin: 0 !important;
    }
    html[data-tablet] pos-cobros[opened] .full-screen-button-container paper-button.blue-button {
      background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
      color: #FFFFFF !important;
      border-radius: 14px !important;
      font-size: 15px !important;
      font-weight: 700 !important;
      padding: 16px 24px !important;
      margin: 0 !important;
      box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32) !important;
      width: 100% !important;
      transition: transform 0.12s, box-shadow 0.18s !important;
    }
    html[data-tablet] pos-cobros[opened] .full-screen-button-container paper-button.blue-button:hover {
      transform: translateY(-1px) !important;
      box-shadow: 0 10px 24px rgba(59, 130, 246, 0.42) !important;
    }

    /* Vista principal "Cobros" del pos-cobros — body con lista cobros */
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .body {
      flex: 1 1 auto !important;
      padding: 16px 24px !important;
      overflow-y: auto !important;
      min-height: 120px !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .body .text-align-right {
      margin-bottom: 14px !important;
    }
    html[data-tablet] pos-cobros[opened] .white-button-central {
      background: linear-gradient(to bottom, #FAFAFA, #FFFFFF) !important;
      color: #3B82F6 !important;
      border: 1px dashed #93C5FD !important;
      padding: 12px 18px !important;
      border-radius: 12px !important;
      font-size: 14px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      transition: background 0.14s, border-color 0.14s !important;
    }
    html[data-tablet] pos-cobros[opened] .white-button-central:hover {
      background: #EFF6FF !important;
      border-color: #3B82F6 !important;
      border-style: solid !important;
    }
    html[data-tablet] pos-cobros[opened] .white-button-central iron-icon {
      color: #3B82F6 !important;
      width: 18px !important;
      height: 18px !important;
    }
    /* Cobros agregados — cada uno como card pill horizontal */
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) .body > .layout.vertical > .layout.horizontal.row {
      padding: 14px 16px !important;
      background: #F8FAFC !important;
      border: 1px solid #F1F5F9 !important;
      border-radius: 10px !important;
      margin-bottom: 8px !important;
      font-size: 14px !important;
      color: #0F172A !important;
      font-weight: 500 !important;
      gap: 12px !important;
      align-items: center !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) .body > .layout.vertical > .layout.horizontal.row > div {
      font-variant-numeric: tabular-nums !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) .body > .layout.vertical > .layout.horizontal.row iron-icon {
      color: #DC2626 !important;
      cursor: pointer !important;
      padding: 4px !important;
      border-radius: 8px !important;
      transition: background 0.14s !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) .body > .layout.vertical > .layout.horizontal.row iron-icon:hover {
      background: #FEE2E2 !important;
    }

    /* Totals section — Total cobrado / Total venta / Cambio */
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .layout.vertical {
      padding: 8px 24px 12px !important;
      gap: 4px !important;
      border-top: 1px solid #F1F5F9 !important;
      background: #F8FAFC !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .layout.vertical > .layout.horizontal.row {
      padding: 8px 0 !important;
      font-size: 14px !important;
      color: #64748B !important;
      font-weight: 500 !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .layout.vertical > .layout.horizontal.row > div:not(.flex) {
      font-size: 15px !important;
      font-weight: 700 !important;
      color: #0F172A !important;
      font-variant-numeric: tabular-nums !important;
    }
    /* TOTAL COBRADO row más prominente */
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .layout.vertical > .layout.horizontal.row:first-of-type {
      padding: 10px 0 !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .layout.vertical > .layout.horizontal.row:first-of-type > .flex {
      color: #94A3B8 !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.12em !important;
      text-transform: uppercase !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .layout.vertical > .layout.horizontal.row:first-of-type > div:not(.flex) {
      font-size: 18px !important;
      font-weight: 800 !important;
    }

    /* Footer Finalizar / Pendiente button */
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .footer {
      padding: 14px 24px 18px !important;
      background: #FFFFFF !important;
      border-top: 1px solid #F1F5F9 !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .footer button.blue-button {
      background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
      color: #FFFFFF !important;
      border: none !important;
      width: 100% !important;
      height: 56px !important;
      border-radius: 14px !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: -0.2px !important;
      box-shadow: 0 8px 22px rgba(59, 130, 246, 0.32), 0 2px 6px rgba(37, 99, 235, 0.14) !important;
      cursor: pointer !important;
      transition: transform 0.14s, box-shadow 0.18s !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .footer button.blue-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(59, 130, 246, 0.42) !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .footer button.white-button {
      background: #FFFFFF !important;
      color: #DC2626 !important;
      border: 1px solid #FCA5A5 !important;
      width: 100% !important;
      height: 56px !important;
      border-radius: 14px !important;
      font-size: 15px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
    }
    html[data-tablet] pos-cobros[opened] > div.layout.vertical.height100vh:not([hidden]) > .footer button.white-button:hover {
      background: #FEE2E2 !important;
    }

    /* Header del modal — Square Up style */
    html[data-tablet] pos-cobros[opened] .header-title,
    html[data-tablet] pos-clientes[opened] .header-title {
      padding: 22px 28px !important;
      border-bottom: 1px solid #F1F5F9 !important;
      background: #FFFFFF !important;
      flex-shrink: 0 !important;
    }
    html[data-tablet] pos-cobros[opened] .header-title b,
    html[data-tablet] pos-clientes[opened] .header-title b {
      font-size: 19px !important;
      font-weight: 700 !important;
      color: #0F172A !important;
      letter-spacing: -0.3px !important;
    }
    /* Close button como X salmón pastel (estilo SACS3) */
    html[data-tablet] pos-cobros[opened] .header-title .blue-icon,
    html[data-tablet] pos-clientes[opened] .header-title .blue-icon {
      width: 18px !important;
      height: 18px !important;
      padding: 9px !important;
      background: #FEE2E2 !important;
      color: #DC2626 !important;
      border-radius: 10px !important;
      transition: background 0.15s !important;
    }
    html[data-tablet] pos-cobros[opened] .header-title .blue-icon:hover,
    html[data-tablet] pos-clientes[opened] .header-title .blue-icon:hover {
      background: #FECACA !important;
    }

    /* "POR COBRAR" + total grande — más Square-style */
    html[data-tablet] pos-cobros[opened] #formCobros h2 {
      font-size: 11px !important;
      color: #94A3B8 !important;
      font-weight: 600 !important;
      margin: 24px 0 6px !important;
      text-align: center !important;
      letter-spacing: 0.12em !important;
      text-transform: uppercase !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .blue-color.font-size-50 {
      font-size: 48px !important;
      font-weight: 800 !important;
      color: #0F172A !important;
      letter-spacing: -1px !important;
      line-height: 1 !important;
      margin: 0 0 4px !important;
      font-variant-numeric: tabular-nums !important;
    }
    /* Espacio entre total y label "RECIBIDO" */
    html[data-tablet] pos-cobros[opened] #formCobros h2:nth-of-type(2) {
      margin-top: 22px !important;
    }

    /* Input "Recibido" */
    html[data-tablet] pos-cobros[opened] #formCobros .width-200px {
      width: 280px !important;
      margin: 0 auto 14px !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .input-container {
      background: linear-gradient(to bottom, #FAFAFA, #FFFFFF) !important;
      border: 2px solid #E5E7EB !important;
      border-radius: 12px !important;
      padding: 0 14px !important;
      height: 52px !important;
      display: flex !important;
      align-items: center !important;
      transition: border-color 0.15s, box-shadow 0.15s !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .input-container:focus-within {
      border-color: #3B82F6 !important;
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .input-container input {
      font-size: 19px !important;
      font-weight: 600 !important;
      color: #111827 !important;
      border: none !important;
      background: transparent !important;
      outline: none !important;
      flex: 1 !important;
      width: 100% !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .input-container .blue-color {
      font-size: 19px !important;
      color: #6B7280 !important;
      margin-right: 6px !important;
    }

    /* Métodos de pago — filas horizontales estilo SACS3 */
    html[data-tablet] pos-cobros[opened] #formCobros .layout.horizontal.wrap {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      padding: 8px 24px 20px !important;
      margin: 0 !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon {
      position: relative !important;
      margin: 0 !important;
      padding: 14px 18px 14px 16px !important;
      background: #FFFFFF !important;
      border: 1px solid #E5E7EB !important;
      border-radius: 12px !important;
      font-size: 15px !important;
      font-weight: 500 !important;
      color: #1C1C1E !important;
      cursor: pointer !important;
      transition: all 0.14s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
      text-align: left !important;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
      min-height: 56px !important;
      display: flex !important;
      align-items: center !important;
      gap: 14px !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon::before {
      content: "💰";
      font-size: 18px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      background: #F3F4F6;
      border-radius: 10px;
      flex-shrink: 0;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo="Efectivo"]::before {
      content: "💵"; background: #DCFCE7;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo="Credito"]::before,
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo="Crédito"]::before {
      content: "📝"; background: #FEF3C7;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="debito"]::before,
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="débito"]::before {
      content: "💳"; background: #DBEAFE;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="credito"]::before,
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="crédito"]::before {
      content: "💳"; background: #E0E7FF;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="lealtad"]::before {
      content: "⭐"; background: #FEF3C7;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="ransferencia"]::before {
      content: "🏦"; background: #F3E8FF;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="ales"]::before {
      content: "🎟️"; background: #FCE7F3;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon[data-metodo*="heque"]::before {
      content: "🧾"; background: #F3F4F6;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon > div {
      flex: 1 !important;
      font-size: 15px !important;
      font-weight: 500 !important;
      color: #1C1C1E !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon::after {
      content: "›";
      font-size: 22px;
      color: #9CA3AF;
      font-weight: 300;
      line-height: 1;
      margin-left: 4px;
      flex-shrink: 0;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon:hover {
      background: #F8FAFC !important;
      border-color: #94A3B8 !important;
      transform: translateX(2px) !important;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon:active {
      transform: translateX(0) !important;
      background: #F1F5F9 !important;
    }

    /* Estado SELECCIONADO — muy visible, no solo un dot pequeño */
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon.selected {
      background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
      border: 2px solid #3B82F6 !important;
      padding: 13px 17px 13px 15px !important;
      box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.10),
        0 8px 22px rgba(59, 130, 246, 0.18) !important;
      transform: translateX(2px) !important;
    }
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon.selected > div {
      color: #1E40AF !important;
      font-weight: 700 !important;
    }
    /* Checkmark verde reemplaza el chevron cuando seleccionado */
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon.selected::after {
      content: "" !important;
      width: 28px !important;
      height: 28px !important;
      background-color: #10B981 !important;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      background-size: 16px 16px !important;
      border-radius: 50% !important;
      display: block !important;
      box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
      flex-shrink: 0 !important;
      font-size: 0 !important;
      line-height: 0 !important;
      padding: 0 !important;
    }
    /* Icon emoji con border azul más prominente cuando seleccionado */
    html[data-tablet] pos-cobros[opened] #formCobros .rect-icon.selected::before {
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.30) !important;
    }

    /* ---------------- pos-ticket — hero ¡Listo! tableta ---------------- */

    html[data-tablet] pos-ticket[opened] .tablet-listo-hero {
      margin-top: 8px !important;
      margin-bottom: 24px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 14px !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-check {
      width: 72px !important;
      height: 72px !important;
      border-radius: 50% !important;
      background: #10B981 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32) !important;
      animation: tablet-listo-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-check iron-icon {
      color: #FFFFFF !important;
      width: 36px !important;
      height: 36px !important;
      --iron-icon-fill-color: #FFFFFF !important;
    }
    @keyframes tablet-listo-pop {
      0%   { opacity: 0; transform: scale(0.4); }
      60%  { opacity: 1; transform: scale(1.08); }
      100% { transform: scale(1); }
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-title {
      font-size: 28px !important;
      font-weight: 700 !important;
      color: #1C1C1E !important;
      letter-spacing: -0.4px !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-sub {
      font-size: 14px !important;
      color: #6B7280 !important;
      text-align: center !important;
      line-height: 1.4 !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-wa-banner {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      margin-top: 4px !important;
      padding: 12px 14px !important;
      background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%) !important;
      border: 1px dashed #86EFAC !important;
      border-radius: 12px !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-wa-banner__icon {
      width: 32px !important;
      height: 32px !important;
      background: #25D366 !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-shrink: 0 !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-wa-banner__icon iron-icon {
      color: #FFFFFF !important;
      width: 18px !important;
      height: 18px !important;
      --iron-icon-fill-color: #FFFFFF !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-wa-banner__body {
      flex: 1 !important;
      font-size: 11px !important;
      line-height: 1.3 !important;
      color: #166534 !important;
      text-align: left !important;
    }
    html[data-tablet] pos-ticket[opened] .tablet-listo-wa-banner__title {
      font-size: 12px !important;
      font-weight: 700 !important;
      margin-bottom: 1px !important;
    }

    /* Botones del ticket modal */
    html[data-tablet] pos-ticket[opened] .footer {
      gap: 12px !important;
      padding-top: 8px !important;
      background: transparent !important;
      border-top: none !important;
    }
    html[data-tablet] pos-ticket[opened] .footer button.blue-button {
      background: linear-gradient(135deg, #25D366 0%, #1FB155 100%) !important;
      border-radius: 16px !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      height: 60px !important;
      box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38), 0 2px 6px rgba(31, 177, 85, 0.18) !important;
      color: #FFFFFF !important;
      letter-spacing: -0.2px !important;
      transition: transform 0.16s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.18s !important;
      order: 1;
    }
    html[data-tablet] pos-ticket[opened] .footer button.blue-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(37, 211, 102, 0.46), 0 4px 10px rgba(31, 177, 85, 0.24) !important;
    }
    html[data-tablet] pos-ticket[opened] .footer button.blue-button:first-of-type {
      background: #FFFFFF !important;
      color: #374151 !important;
      border: 1px solid #D1D5DB !important;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
      font-weight: 600 !important;
      font-size: 15px !important;
      height: 54px !important;
      order: 2;
    }
    html[data-tablet] pos-ticket[opened] .footer button.blue-button:first-of-type:hover {
      background: #F8FAFC !important;
      border-color: #94A3B8 !important;
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
      transform: translateY(-1px);
    }
    html[data-tablet] pos-ticket[opened] .footer button.white-button {
      background: transparent !important;
      color: #6B7280 !important;
      border: none !important;
      box-shadow: none !important;
      font-weight: 500 !important;
      font-size: 13px !important;
      height: 38px !important;
      order: 4;
    }
    html[data-tablet] pos-ticket[opened] #ticketcontent {
      max-height: 220px !important;
      overflow-y: auto !important;
      margin: 4px 0 18px !important;
      padding: 14px 16px !important;
      background: #F8FAFC !important;
      border: 1px dashed #E2E8F0 !important;
      border-radius: 12px !important;
      font-size: 12px !important;
      color: #6B7280 !important;
    }
