.stv-app{max-width:1180px;margin:0 auto;padding:24px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#111;background:#fff}
.stv-login-panel,.stv-card,.stv-project-card{border:1px solid #e5e7eb;border-radius:9px;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.10)}
.stv-login-panel{padding:24px}
.stv-brand{display:flex;align-items:center;gap:14px}
.stv-brand-top{justify-content:center;flex-direction:column;margin-bottom:10px;text-align:center}
.stv-brand h1,.stv-brand h2,.stv-card h3{margin:0}
.stv-brand-top h2{font-size:23px}
.stv-brand p,.stv-card p{margin:4px 0 0;color:#6b7280}
.stv-logo-small{width:74px;height:74px;object-fit:contain;display:block;margin:0 auto 1px}
.stv-login-box{max-width:420px;margin:0 auto;padding:16px 24px 14px;border:1px solid #e5e7eb;border-radius:9px;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.10)}
.stv-label{font-size:13px;font-weight:600;color:#111;margin:0}
.stv-form{display:grid;gap:8px}
.stv-form input{padding:8px 12px;border:1px solid #d1d5db;border-radius:9px;font-size:15px;outline:none;color:#111}
.stv-form input::placeholder{color:#b8bec6;opacity:1}
.stv-form input:focus{border-color:#111;box-shadow:0 0 0 3px rgba(17,24,39,.08)}
.stv-password-wrap{position:relative;display:flex;align-items:center}
.stv-password-wrap input{padding-right:44px;width:100%}
.stv-pass-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#9ca3af;padding:4px}
.stv-btn-primary,.stv-btn-ghost,.stv-btn-soft,
.wrap .button,.wrap .button-primary,.wrap .button-secondary,
.wrap table.widefat .button,.wrap table.widefat .button-primary{border-radius:9px;padding:9px !important;min-height:0 !important;line-height:1 !important;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:.2s ease;border:1px solid #111;box-shadow:0 4px 10px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25)}
.stv-btn-primary{background:#111;color:#fff}
.stv-btn-ghost{background:#fff;color:#111;border-color:#d1d5db}
.stv-btn-soft{background:#f9fafb;color:#111;border-color:#d1d5db;font-size:13px}
.stv-btn-primary:hover,.stv-btn-ghost:hover,.stv-btn-soft:hover{box-shadow:0 6px 14px rgba(0,0,0,.42),0 2px 5px rgba(0,0,0,.30)}
.wrap .button,.wrap .button-primary,.wrap .button-secondary{box-shadow:0 4px 10px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25) !important;border-radius:9px !important}
.wrap .button:hover,.wrap .button-primary:hover,.wrap .button-secondary:hover{box-shadow:0 6px 14px rgba(0,0,0,.42),0 2px 5px rgba(0,0,0,.30) !important}
.wrap .stv-btn-clear.button{background:#fff !important;color:#111 !important;border:1px solid #111 !important}
.wrap .stv-btn-danger.button{background:#b91c1c !important;color:#fff !important;border:1px solid #7f1414 !important}
.wrap .stv-btn-danger.button:hover{background:#991515 !important}
.stv-login-footer,.stv-app-footer{margin-top:8px;font-size:10px;line-height:1.3;color:#6b7280;text-align:center}
.stv-login-footer a,.stv-app-footer a{color:#111;text-decoration:none}
.stv-login-footer a:hover,.stv-app-footer a:hover{text-decoration:underline}
.stv-footer-spacer{height:40px}
.stv-dashboard{margin-top:24px}
.stv-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.stv-login-error{margin-top:10px;color:#b91c1c;font-size:13px;font-weight:600}
.stv-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px}
.stv-project-card{padding:12px 13px 17px 13px}
.stv-project-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 8px}
.stv-project-title{margin:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.stv-project-logo{width:36px;height:36px;object-fit:cover;border-radius:9px;border:1px solid #e5e7eb;flex-shrink:0}
.stv-project-card p{margin:4px 0;color:#4b5563;font-size:13px;line-height:1.4}
.stv-project-card .stv-actions{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
#stv-welcome{font-size:20px;line-height:1.15;margin:0 0 2px 0}
.stv-welcome-name{color:#7a1f2b;font-weight:700}
#stv-company{margin:0;font-size:16px;line-height:1.15;color:#6b7280}
@media(max-width:1024px){.stv-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.stv-topbar{flex-direction:column;align-items:flex-start}.stv-login-panel{padding:18px}.stv-project-grid{grid-template-columns:1fr}}
.stv-modal-overlay{position:fixed;inset:0;background:rgba(17,24,39,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:9999}
.stv-modal{background:#fff;border-radius:9px;max-width:480px;width:100%;padding:20px;position:relative;box-shadow:0 20px 50px rgba(0,0,0,.25);max-height:85vh;overflow-y:auto}
.stv-admin-preview-modal{max-width:320px;padding:20px}
.stv-modal-close{position:absolute;top:10px;right:12px;background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer;color:#6b7280;padding:9px}
.stv-modal h3{margin:0 0 10px;font-size:17px}
.stv-modal h4{margin:14px 0 6px;font-size:13px;color:#374151;text-transform:uppercase;letter-spacing:.03em}
.stv-modal-body p{margin:4px 0;font-size:13px;color:#374151}
.stv-block-subtitle{margin:14px 0 8px;font-size:12px;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.03em}
.stv-modal-items-list{list-style:none;margin:0 auto;padding:0;display:flex;flex-direction:column;gap:6px;max-width:420px;width:100%}
.stv-modal-items-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;padding:9px 12px;background:#f9fafb;border-radius:9px;border:1px solid #e5e7eb;flex-wrap:nowrap;white-space:nowrap}
.stv-item-main{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto;overflow:hidden}
.stv-item-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}
.stv-item-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;min-width:0}
.stv-item-detail{color:#6b7280;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stv-item-cost{font-weight:600;color:#111;min-width:40px;text-align:right;white-space:nowrap}
.stv-modal-item-empty{color:#6b7280;font-style:italic;background:transparent;border:none;padding:9px 0;text-align:center}
.stv-modal-total{margin-top:12px;font-weight:700;font-size:14px;text-align:right}
.stv-modal-renew{margin-top:4px;font-weight:600;font-size:13px;text-align:right;color:#7a1f2b}
.stv-client-heading{margin:6px 0 16px}
.stv-client-heading-company{color:#6b7280;font-weight:400;font-size:14px}

.stv-items-block{max-width:560px;margin:0;display:flex;flex-direction:column;gap:8px}
#stv-items-unico-wrap,#stv-items-anual-wrap{max-width:560px;margin:0 0 14px 0}
.stv-block-subtitle{text-align:left}
.stv-item-row{display:grid;grid-template-columns:2fr 2fr 1fr 1fr auto;gap:8px;margin-bottom:0;align-items:center;max-width:100%}
.stv-item-row input,.stv-item-row select{padding:9px;border:1px solid #d1d5db;border-radius:9px;width:100%;box-sizing:border-box}
.stv-item-cost-input{text-align:right}
@media(max-width:900px){.stv-item-row{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.stv-item-row{grid-template-columns:1fr}}

.stv-item-row-locked{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:9px;padding:9px 12px;max-width:100%;white-space:nowrap}
.stv-locked-main{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto;overflow:hidden}
.stv-locked-name{font-weight:600;color:#111;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;min-width:0}
.stv-locked-detail{color:#6b7280;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stv-locked-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}
.stv-item-cost-locked{font-weight:700;color:#111;font-size:14px;white-space:nowrap;min-width:40px;text-align:right}

#stv-investment-total{background:#f3f4f6;font-weight:700;padding:9px !important;width:100%;box-sizing:border-box;max-width:25em}
.stv-logo-picker{display:flex;flex-direction:column;align-items:flex-start}
.stv-logo-picker img{border-radius:9px !important}
.stv-logo-picker-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.stv-section-title{margin:16px 0 12px;font-size:20px}

.stv-compact-form-table th{padding:8px 10px 4px 0 !important;line-height:1.2}
.stv-compact-form-table td{padding:2px 10px 8px 0 !important}
.stv-compact-form-table th,.stv-compact-form-table td{border-bottom:0 !important}
@media(max-width:782px){
  .stv-compact-form-table th{padding:6px 0 2px 0 !important;display:block;width:100%}
  .stv-compact-form-table td{padding:0 0 10px 0 !important;display:block;width:100%}
}

.stv-project-form-table th{padding:6px 10px 2px 0 !important;line-height:1.15}
.stv-project-form-table td{padding:0 10px 6px 0 !important}
.stv-project-form-table th,.stv-project-form-table td{border-bottom:0 !important}

.stv-icon-button{font-size:18px;line-height:1;padding:6px 8px !important}
.stv-freq-badge{font-size:11px;font-weight:600;padding:3px 8px;border-radius:999px;white-space:nowrap;display:inline-block}
.stv-freq-unico{background:#e5e7eb;color:#111}
.stv-freq-recurrente{background:#fbe7ea;color:#7a1f2b}
#stv-optional-checkboxes{display:flex;flex-direction:column;gap:6px;max-width:560px;margin:0}
.stv-optional-checkbox-label{font-size:13px;color:#374151;display:flex;align-items:center;gap:6px}
.stv-optional-checkbox-label input{width:auto !important;padding:0 !important}

@media(max-width:900px){
  .stv-responsive-table{border:0}
  .stv-responsive-table thead{display:none}
  .stv-responsive-table tbody tr{display:block;margin-bottom:14px;border:1px solid #e5e7eb;border-radius:9px;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.10);padding:6px 0}
  .stv-responsive-table tbody tr:nth-child(odd){background:#fff}
  .stv-responsive-table tbody td{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 12px !important;border:0;border-bottom:1px solid #f1f1f1;text-align:right;white-space:normal}
  .stv-responsive-table tbody td:last-child{border-bottom:0}
  .stv-responsive-table tbody td::before{content:attr(data-label);font-weight:600;color:#111;text-align:left;flex-shrink:0;margin-right:10px}
  .stv-responsive-table tbody td[data-label="Acciones"]{flex-direction:column;align-items:stretch;text-align:left}
  .stv-responsive-table tbody td[data-label="Acciones"]::before{margin-bottom:6px}
  .stv-responsive-table tbody td[data-label="Acciones"] > *{margin:3px 0}
  .stv-responsive-table tbody td[colspan]{display:block;text-align:center;padding:14px !important}
  .stv-responsive-table tbody td[colspan]::before{content:none}

  td.stv-actions-cell{display:grid !important;grid-template-columns:1fr 1fr;gap:6px;text-align:left !important}
  td.stv-actions-cell::before{display:block;margin-bottom:6px;grid-column:1 / -1}
  td.stv-actions-cell .stv-act-projects{grid-column:1;grid-row:2}
  td.stv-actions-cell .stv-act-edit{grid-column:2;grid-row:2}
  td.stv-actions-cell .stv-act-toggle{grid-column:1;grid-row:3}
  td.stv-actions-cell .stv-act-delete{grid-column:2;grid-row:3}
  td.stv-actions-cell > *{margin:0 !important;width:100%}
}

.stv-validator-masked{font-weight:600;letter-spacing:2px;color:#6b7280;user-select:none}
.stv-validator-reveal-trigger{font-size:13px;font-weight:600;text-decoration:underline;margin-left:6px}
.stv-validator-revealed{font-weight:700;color:#111;letter-spacing:normal}

/* Top View | Botones 3D, esquinas de 9px y tablas compactas */
.wrap .button,.wrap .button-primary,.wrap .button-secondary,
.wrap table.widefat .button,.wrap table.widefat .button-primary,
.stv-btn-primary,.stv-btn-ghost,.stv-btn-soft{
  border-radius:9px !important;
  border-bottom-width:3px !important;
  background-image:linear-gradient(to bottom,rgba(255,255,255,.22),rgba(0,0,0,.08)) !important;
  box-shadow:0 3px 0 rgba(0,0,0,.45),0 7px 12px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.38) !important;
  position:relative;
  top:0;
  transition:top .08s ease,box-shadow .08s ease,filter .15s ease;
}
.wrap .button:hover,.wrap .button-primary:hover,.wrap .button-secondary:hover,
.stv-btn-primary:hover,.stv-btn-ghost:hover,.stv-btn-soft:hover{
  filter:brightness(1.06);
  box-shadow:0 4px 0 rgba(0,0,0,.45),0 9px 15px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.42) !important;
}
.wrap .button:active,.wrap .button-primary:active,.wrap .button-secondary:active,
.stv-btn-primary:active,.stv-btn-ghost:active,.stv-btn-soft:active{
  top:3px;
  box-shadow:0 0 0 rgba(0,0,0,.45),0 2px 4px rgba(0,0,0,.30),inset 0 2px 3px rgba(0,0,0,.22) !important;
}

.wrap table.widefat,.wrap .notice,.stv-admin-wrap .stv-overview-card,
.stv-overview-card,.stv-overview-empty,.stv-overview-sale,.stv-overview-tab,
.stv-admin-wrap input[type=text],.stv-admin-wrap input[type=search],.stv-admin-wrap input[type=email],
.stv-admin-wrap input[type=url],.stv-admin-wrap input[type=number],.stv-admin-wrap input[type=date],
.stv-admin-wrap input[type=password],.stv-admin-wrap select,.stv-admin-wrap textarea{
  border-radius:9px !important;
}
.wrap table.widefat{border-collapse:separate !important;border-spacing:0 !important;overflow:hidden}
.stv-overview-card,.stv-overview-empty{box-shadow:0 3px 8px rgba(0,0,0,.10)}

@media(min-width:901px){
  .stv-admin-wrap table.widefat thead th,
  .stv-admin-wrap table.widefat tbody td{
    padding:6px 8px !important;
    font-size:13px;
    line-height:1.2;
    vertical-align:middle !important;
    white-space:nowrap !important;
  }
  .stv-admin-wrap table.widefat td.stv-actions-cell{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
  .stv-admin-wrap table.widefat .button{padding:6px 10px !important;font-size:12px}
  .stv-admin-wrap table.widefat td.stv-actions-cell .button{margin:0 0 3px 0}
}

/* Top View v1.93 | Estilos de Proyectos y Catálogo (antes en línea dentro de PHP) */
.stv-overview-search{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0 18px}
.stv-overview-search input[type=search]{min-width:320px}
.stv-overview-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.stv-overview-tab{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:7px 14px;cursor:pointer;font-weight:600}
.stv-overview-tab.is-active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.stv-overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px}
.stv-overview-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px}
.stv-overview-card strong{display:block;font-size:20px}
.stv-overview-card span{color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.stv-overview-table th{white-space:nowrap}
.stv-overview-empty{padding:22px;text-align:center;color:#6b7280;background:#fff;border:1px dashed #d1d5db;border-radius:12px}
.stv-overview-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700}
.stv-overview-badge.active{background:#dcfce7;color:#166534}
.stv-overview-badge.inactive{background:#fee2e2;color:#991b1b}
.stv-overview-modal-body h4{margin:14px 0 6px}
.stv-overview-items{margin:0;padding-left:18px}
.stv-overview-items li{margin-bottom:4px}
.stv-overview-sale{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 12px;margin-top:12px}
.stv-modal.stv-overview-modal-dialog{max-width:760px;width:92%}
.stv-catalog-table input[type=text]{width:100%}
.stv-catalog-table input[type=number]{width:110px}
.stv-catalog-note{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:10px 14px;margin:12px 0}
.stv-overview-card.stv-catalog-card{margin-bottom:18px}
.stv-catalog-card h3{margin:18px 0 6px}

/* Top View v1.95 | Modal de detalle compacto */
#stv-modal-overlay .stv-modal-title-wrap{display:flex;align-items:center;gap:10px;margin:0 0 8px}
#stv-modal-overlay .stv-modal-project-logo{width:34px;height:34px;object-fit:cover;border-radius:9px;border:1px solid #e5e7eb;box-shadow:0 2px 5px rgba(0,0,0,.28);flex-shrink:0;display:none}
#stv-modal-overlay .stv-modal h3{margin:0;font-size:16px;line-height:1.2}
#stv-modal-overlay .stv-modal-body p{margin:2px 0;font-size:12.5px;line-height:1.35;color:#374151}
#stv-modal-overlay .stv-modal-intro{margin:0 0 6px !important;line-height:1.35}
#stv-modal-overlay .stv-modal h4,
#stv-modal-overlay .stv-block-subtitle{margin:8px 0 4px;font-size:11.5px;line-height:1.2}
#stv-modal-overlay .stv-modal-items-list{gap:4px;max-width:100%}
#stv-modal-overlay .stv-modal-items-list li{padding:4px 8px;font-size:12.5px;line-height:1.25;border-radius:9px;border:1px solid #d1d5db;box-shadow:0 2px 4px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.35);background:#f9fafb}
#stv-modal-overlay .stv-modal-item-empty{padding:4px 0}
#stv-modal-overlay .stv-origin-summary p{margin:2px 0;line-height:1.3}
#stv-modal-overlay .stv-origin-note{font-size:11.5px}
#stv-modal-overlay .stv-modal-total{margin-top:6px;font-size:13px;line-height:1.2}
#stv-modal-overlay .stv-modal-renew{margin-top:2px;font-size:12px;line-height:1.2}
#stv-modal-overlay .stv-btn-soft,
#stv-modal-overlay .stv-btn-primary,
#stv-modal-overlay .stv-btn-ghost,
#stv-modal-overlay .stv-origin-badge,
#stv-modal-overlay .stv-freq-badge{padding:3px 7px !important;border-radius:9px !important;line-height:1.15 !important;min-height:0 !important}
#stv-modal-overlay .stv-btn-soft,
#stv-modal-overlay .stv-btn-primary,
#stv-modal-overlay .stv-btn-ghost{border:1px solid #111 !important;border-bottom-width:3px !important;box-shadow:0 2px 0 rgba(0,0,0,.45),0 4px 8px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.38) !important;font-size:12px}
#stv-modal-overlay .stv-btn-soft:active,
#stv-modal-overlay .stv-btn-primary:active,
#stv-modal-overlay .stv-btn-ghost:active{transform:translateY(2px);box-shadow:0 0 0 rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.25),inset 0 2px 3px rgba(0,0,0,.22) !important}
#stv-modal-overlay .stv-origin-badge,
#stv-modal-overlay .stv-freq-badge{border:1px solid rgba(0,0,0,.18);box-shadow:0 1px 3px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.35);font-size:10.5px}

/* Top View v1.96 | Modal de detalle: bloques de servicios y etiquetas */
#stv-modal-overlay .stv-origin-badge,
#stv-modal-overlay .stv-freq-badge{border-radius:7px !important}
#stv-modal-overlay .stv-modal-items-list li{border-radius:7px !important}
#stv-modal-overlay .stv-service-block{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:9px;padding:10px;margin:0 0 10px}
#stv-modal-overlay .stv-service-block:last-child{margin-bottom:0}
#stv-modal-overlay .stv-service-block .stv-block-subtitle{margin:0 0 6px;font-size:12.5px;line-height:1.2}
#stv-modal-overlay .stv-service-block .stv-modal-items-list{margin:0}
#stv-modal-overlay .stv-service-block .stv-modal-items-list li{background:#fff;border-color:#d1d5db}
#stv-modal-overlay .stv-service-summary{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:9px;padding:10px;margin-top:10px}
#stv-modal-overlay .stv-service-summary .stv-origin-summary{margin:0;padding:0;border:0}
#stv-modal-overlay .stv-service-summary .stv-origin-summary p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0;font-size:12.5px;line-height:1.25}
#stv-modal-overlay .stv-service-summary .stv-origin-note{display:block;font-size:11px;line-height:1.3;color:#6b7280;margin-top:6px}

/* Top View v1.97 | Servicios en dos líneas dentro del modal */
#stv-modal-overlay .stv-modal-items-list li.stv-service-item{display:block;padding:7px 9px 9px 9px;line-height:1.25}
#stv-modal-overlay .stv-service-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#stv-modal-overlay .stv-service-item-top .stv-item-name{flex:1 1 auto;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25;font-size:13.5px}
#stv-modal-overlay .stv-service-item-top .stv-item-cost{flex-shrink:0;text-align:right;white-space:nowrap;font-size:12.5px}
#stv-modal-overlay .stv-service-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;flex-wrap:wrap}
#stv-modal-overlay .stv-service-item-bottom .stv-item-detail{flex:1 1 auto;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;font-size:11.5px;line-height:1.25}
#stv-modal-overlay .stv-service-item-bottom .stv-item-meta{flex-shrink:0;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
#stv-modal-overlay .stv-service-item-bottom .stv-origin-badge,
#stv-modal-overlay .stv-service-item-bottom .stv-freq-badge{padding:2px 6px !important;font-size:10px;line-height:1.15}

/* Top View v2.00 | Alineacion de Caduca, boton en Periodicidad y textos +1px */
#stv-modal-overlay .stv-modal h3{font-size:19px;line-height:1.25}
#stv-modal-overlay .stv-modal-body p{font-size:14.5px;line-height:1.4}
#stv-modal-overlay .stv-modal-intro{font-size:14.5px;line-height:1.4}
#stv-modal-overlay .stv-modal-line-with-button{display:flex;align-items:center;justify-content:space-between;gap:10px}
#stv-modal-overlay .stv-modal-line-caduca{display:block !important}
#stv-modal-overlay .stv-modal-line-caduca #stv-modal-expiration{margin-left:6px}
#stv-modal-overlay .stv-view-project-btn{flex-shrink:0;padding:5px 10px !important;border-radius:7px !important;font-size:12px;line-height:1.2;text-decoration:none;background:#fff !important;color:#111 !important;border:1px solid #111 !important;border-bottom-width:3px !important;box-shadow:0 2px 0 rgba(0,0,0,.45),0 4px 8px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.38) !important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
#stv-modal-overlay .stv-view-project-btn:hover{filter:brightness(1.06);box-shadow:0 3px 0 rgba(0,0,0,.45),0 6px 11px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.42) !important}
#stv-modal-overlay .stv-view-project-btn:active{transform:translateY(2px);box-shadow:0 0 0 rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.25),inset 0 2px 3px rgba(0,0,0,.22) !important}
#stv-modal-overlay #stv-modal-link-wrap{display:none !important}
@media(max-width:480px){
  #stv-modal-overlay .stv-modal h3{font-size:19.5px}
  #stv-modal-overlay .stv-modal-body p,
  #stv-modal-overlay .stv-modal-intro{font-size:14px}
}

/* Top View v2.01 | Scroll del modal con mouse y ancho +10% solo en escritorio */
#stv-modal-overlay{overscroll-behavior:contain}
#stv-modal-overlay .stv-modal{overflow-y:scroll;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#stv-modal-overlay .stv-modal *{overscroll-behavior:contain}
@media(min-width:782px){
  #stv-modal-overlay .stv-modal{width:calc(100% + 10%);max-width:calc(480px * 1.10)}
}
@media(max-width:781px){
  #stv-modal-overlay .stv-modal{width:100%;max-width:480px}
}

/* Top View v2.02 | Texto introductorio ajustado al ancho del modal */
#stv-modal-overlay .stv-modal{overflow-x:hidden}
#stv-modal-overlay #stv-modal-notes{width:100%}
#stv-modal-overlay .stv-intro-message{width:100%;box-sizing:border-box;text-align:justify;text-justify:inter-word;margin:0 0 8px !important}

/* Top View v2.03 | Subtotales, resumen bajo el total y bloque de renovacion */
#stv-modal-overlay .stv-service-block{margin:0 0 4px}
#stv-modal-overlay .stv-modal-body .stv-block-subtotal{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 12px;font-size:12.5px;font-weight:400;line-height:1.25;color:#374151;text-align:right}
#stv-modal-overlay #stv-modal-renew-wrap{display:none !important}
#stv-modal-overlay .stv-after-total{margin-top:8px}
#stv-modal-overlay .stv-after-total .stv-service-summary{margin-top:0}
#stv-modal-overlay .stv-modal-body .stv-renew-message{margin:12px 0 6px;font-size:14.5px;line-height:1.4;text-align:left}
#stv-modal-overlay .stv-renew-box{background:#fff;border:1px solid #d1d5db;border-radius:9px;padding:12px 14px;box-shadow:0 4px 12px rgba(0,0,0,.20),0 1px 3px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.9)}
#stv-modal-overlay .stv-renew-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
#stv-modal-overlay .stv-renew-amount{font-size:20px;font-weight:700;color:#111;line-height:1.2}
#stv-modal-overlay .stv-renew-limit{margin-top:6px;font-size:14px;color:#374151;line-height:1.3}

/* Top View v2.04 | Nota de terceros justificada y pie del modal */
#stv-modal-overlay .stv-after-total .stv-service-summary .stv-origin-summary p.stv-origin-note{display:block;width:100%;box-sizing:border-box;text-align:justify;text-justify:inter-word;margin:6px 0 0}
#stv-modal-overlay .stv-modal-footer{margin:16px 0 0;padding:0 0 8px;text-align:center;font-size:10px;line-height:1.3;color:#6b7280}

/* Top View v2.05 | Margenes laterales de 4px en textos del modal */
#stv-modal-overlay .stv-modal-title-wrap{padding:0 4px}
#stv-modal-overlay .stv-modal-body > p:not(.stv-modal-total):not(.stv-modal-renew){padding-left:4px;padding-right:4px}
#stv-modal-overlay .stv-intro-message{padding-left:4px;padding-right:4px}
#stv-modal-overlay .stv-modal-body .stv-block-subtotal{padding-right:4px}
#stv-modal-overlay .stv-modal-body .stv-modal-total{padding-right:4px}
#stv-modal-overlay .stv-modal-body .stv-renew-message{padding-left:4px;font-size:13.5px}

/* Top View v2.06 | Renovacion: monto, etiqueta y boton Pagar por WhatsApp */
#stv-modal-overlay .stv-renew-top{flex-wrap:wrap}
#stv-modal-overlay .stv-renew-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#stv-modal-overlay .stv-renew-amount{font-size:18px}
#stv-modal-overlay .stv-pay-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 10px !important;border-radius:7px !important;font-size:12px;font-weight:600;line-height:1.2;text-decoration:none;background:#fff !important;color:#111 !important;border:1px solid #111 !important;border-bottom-width:3px !important;box-shadow:0 2px 0 rgba(0,0,0,.45),0 4px 8px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.38) !important;white-space:nowrap;cursor:pointer}
#stv-modal-overlay .stv-pay-btn:hover{filter:brightness(1.06);box-shadow:0 3px 0 rgba(0,0,0,.45),0 6px 11px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.42) !important}
#stv-modal-overlay .stv-pay-btn:active{transform:translateY(2px);box-shadow:0 0 0 rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.25),inset 0 2px 3px rgba(0,0,0,.22) !important}
#stv-modal-overlay .stv-pay-btn svg{width:14px;height:14px;fill:#25d366;flex-shrink:0}

/* Top View v2.07 | Periodicidad con etiqueta y tamaños de renovacion */
#stv-modal-overlay .stv-modal-line-with-button{justify-content:flex-start;gap:8px}
#stv-modal-overlay .stv-modal-line-with-button .stv-view-project-btn{margin-left:auto}
#stv-modal-overlay .stv-modal-body .stv-renew-message{font-size:13.5px}
#stv-modal-overlay .stv-renew-amount{font-size:16px}

/* Top View v2.11 | Paneles de Pago y Chat dentro del modal */
#stv-modal-overlay .stv-renew-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#stv-modal-overlay .stv-pay-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;flex-shrink:0}
#stv-modal-overlay .stv-pay-btn[data-panel="stv-panel-chat"] svg{stroke:#25d366}
#stv-modal-overlay .stv-action-panel{margin-top:10px;background:#f6f7f9;border:1px solid #d1d5db;border-radius:9px;padding:10px}
#stv-modal-overlay .stv-panel-title{margin:0 0 8px;font-size:12.5px;font-weight:600;color:#111;line-height:1.3}
#stv-modal-overlay .stv-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#stv-modal-overlay .stv-pay-option{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 6px !important;border-radius:7px !important;font-size:11px;font-weight:600;line-height:1.15;text-decoration:none;background:#fff !important;color:#111 !important;border:1px solid #111 !important;border-bottom-width:3px !important;box-shadow:0 2px 0 rgba(0,0,0,.45),0 4px 8px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.38) !important;white-space:nowrap;cursor:pointer;min-width:0}
#stv-modal-overlay .stv-pay-option:hover{filter:brightness(1.06);box-shadow:0 3px 0 rgba(0,0,0,.45),0 6px 11px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.42) !important}
#stv-modal-overlay .stv-pay-option:active{transform:translateY(2px);box-shadow:0 0 0 rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.25),inset 0 2px 3px rgba(0,0,0,.22) !important}
#stv-modal-overlay .stv-pay-option svg{width:13px;height:13px;flex-shrink:0}
#stv-modal-overlay .stv-pay-option[data-pay-option="whatsapp"] svg{fill:#25d366;stroke:none}
#stv-modal-overlay .stv-pay-option[data-pay-option="credito"] svg{stroke:#1d4ed8}
#stv-modal-overlay .stv-pay-option[data-pay-option="debito"] svg{stroke:#7a1f2b}
#stv-modal-overlay .stv-pay-option:disabled{opacity:.5;cursor:not-allowed}
#stv-modal-overlay .stv-pay-instructions{margin-top:8px;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:8px}
#stv-modal-overlay .stv-pay-instructions p{margin:0;font-size:12px;color:#374151;line-height:1.3}

/* Top View v2.12 | Titulos centrados, renovacion en una sola linea y margen de la fecha limite */
#stv-modal-overlay .stv-panel-title{text-align:center;font-size:11.5px;margin:0 0 14px}
#stv-modal-overlay .stv-renew-top{flex-wrap:nowrap;gap:6px}
#stv-modal-overlay .stv-renew-left{flex-wrap:nowrap;gap:6px;min-width:0}
#stv-modal-overlay .stv-renew-amount{white-space:nowrap}
#stv-modal-overlay .stv-renew-left .stv-freq-badge{flex-shrink:0}
#stv-modal-overlay .stv-renew-actions{flex-wrap:nowrap;gap:5px;flex-shrink:0}
#stv-modal-overlay .stv-renew-actions .stv-pay-btn{gap:3px;padding:5px 8px !important}
#stv-modal-overlay .stv-renew-limit{margin-left:5px}
@media(max-width:480px){
  #stv-modal-overlay .stv-renew-box{padding:10px}
  #stv-modal-overlay .stv-renew-top{gap:4px}
  #stv-modal-overlay .stv-renew-left{gap:4px}
  #stv-modal-overlay .stv-renew-amount{font-size:15px}
  #stv-modal-overlay .stv-renew-left .stv-freq-badge{font-size:10px;padding:2px 5px !important}
  #stv-modal-overlay .stv-renew-actions{gap:4px}
  #stv-modal-overlay .stv-renew-actions .stv-pay-btn{padding:4px 6px !important;font-size:11px}
  #stv-modal-overlay .stv-renew-actions .stv-pay-btn svg{width:12px;height:12px}
}
@media(max-width:360px){
  #stv-modal-overlay .stv-modal{padding:14px}
  #stv-modal-overlay .stv-renew-box{padding:8px}
  #stv-modal-overlay .stv-renew-amount{font-size:14px}
  #stv-modal-overlay .stv-renew-left .stv-freq-badge{font-size:9.5px;padding:2px 4px !important}
  #stv-modal-overlay .stv-renew-actions .stv-pay-btn{padding:4px 5px !important;font-size:10.5px}
}

/* Top View v2.13 | Tarjetas de proyecto: producto en negritas, etiqueta de periodicidad y texto introductorio */
.stv-project-card .stv-card-product{font-weight:700;color:#374151}
.stv-project-card .stv-freq-badge{border-radius:7px;padding:3px 7px;font-size:10.5px;line-height:1.15;border:1px solid rgba(0,0,0,.18);box-shadow:0 1px 3px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.35);vertical-align:middle}
.stv-dashboard-intro{margin:0 0 4px;font-size:15px;line-height:1.4;color:#4b5563}

/* Top View v2.16 | Botones de la tarjeta: mismo tamaño de texto y 1px menos de relleno vertical */
.stv-project-card .stv-actions .stv-btn-soft{box-sizing:border-box;margin:0;font-family:inherit;font-size:13px !important;font-weight:600;line-height:1 !important;padding:8px 9px !important}

/* Top View v2.17 | Modal de detalle del administrador: seccion desplegable de oportunidad de venta */
#stv-modal-overlay .stv-sales-box{margin-top:10px;background:#f6f7f9;border:1px solid #d1d5db;border-radius:9px;padding:10px}
#stv-modal-overlay .stv-sales-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:5px 10px !important;border-radius:7px !important;font-size:12px;font-weight:600;line-height:1.2;text-align:left;background:#fff !important;color:#111 !important;border:1px solid #111 !important;border-bottom-width:3px !important;box-shadow:0 2px 0 rgba(0,0,0,.45),0 4px 8px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.38) !important;cursor:pointer}
#stv-modal-overlay .stv-sales-toggle:active{transform:translateY(2px);box-shadow:0 0 0 rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.25),inset 0 2px 3px rgba(0,0,0,.22) !important}
#stv-modal-overlay .stv-sales-toggle svg{width:14px;height:14px;flex-shrink:0;transition:transform .15s ease}
#stv-modal-overlay .stv-sales-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
#stv-modal-overlay .stv-sales-content{margin-top:8px}
#stv-modal-overlay .stv-modal-body .stv-sales-note{margin:0 0 6px;font-size:11.5px;line-height:1.3;color:#6b7280;text-align:left}
#stv-modal-overlay .stv-sales-content .stv-modal-items-list li{background:#fff;border-color:#d1d5db}

/* Top View v2.19 | Servicios: etiqueta de origen bajo el nombre (izquierda) y periodicidad bajo el monto (derecha) */
#stv-modal-overlay .stv-service-item-bottom .stv-item-tags{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;flex:1 1 auto;min-width:0;text-align:left}
#stv-modal-overlay .stv-service-item-bottom .stv-item-tags .stv-origin-badge{margin-right:0}
#stv-modal-overlay .stv-service-item-bottom .stv-item-tags .stv-item-detail{flex:0 1 auto}
#stv-modal-overlay .stv-service-item-bottom .stv-item-meta{margin-left:auto;justify-content:flex-end}

/* Top View v2.41 - Message spacing outside the PayPal iframe. */
.stv-card-form .stv-card-message:not([hidden]) {
  display: block;
  box-sizing: border-box;
  height: auto;
  min-height: 24px;
  margin: 4px 0;
  padding: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.stv-card-form .stv-card-message[data-state="error"] {
  color: #b91c1c;
}
.stv-card-form .stv-card-message[data-state="success"] {
  color: #166534;
}
.stv-card-form .stv-card-message[data-state="pending"] {
  color: #92400e;
}
.stv-card-form .stv-card-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Top View v2.65 | Panel de inicio de sesion simetrico (solo escritorio y tablet) */
@media(min-width:641px){
  .stv-login-panel{box-sizing:border-box;width:100%;max-width:470px;margin-left:auto;margin-right:auto;padding:24px}
  .stv-login-panel .stv-login-box{box-sizing:border-box;width:100%;max-width:420px}
}

/* Top View v2.66 | Tarjetas de proyecto: textos de datos +2px (la etiqueta de periodicidad conserva su tamano) */
.stv-project-card p:not(:only-child){font-size:15px}

/* Top View v2.77 | Ajustes de tamano, nombre del proyecto en tarjeta y etiquetas de color para la fecha de vencimiento */
.stv-app .stv-project-card .stv-project-card-head h3.stv-project-title,
.stv-app .stv-project-card h3.stv-project-title{text-transform:uppercase !important;font-weight:800 !important;font-style:italic !important}
@media(min-width:641px){
  .stv-app .stv-project-card .stv-project-card-head h3.stv-project-title,
  .stv-app .stv-project-card h3.stv-project-title{font-size:19px !important;line-height:1.3 !important}
}
@media(max-width:640px){
  #stv-modal-overlay .stv-modal-body > p:not(.stv-modal-total):not(.stv-modal-renew){font-size:15.5px}
  #stv-modal-overlay .stv-modal-body .stv-intro-message,
  #stv-modal-overlay .stv-modal-body .stv-modal-intro{font-size:15.5px}
  #stv-modal-overlay .stv-modal h3{font-size:21px}
}
@media(max-width:480px){
  #stv-modal-overlay .stv-modal-body > p:not(.stv-modal-total):not(.stv-modal-renew){font-size:15px}
  #stv-modal-overlay .stv-modal-body .stv-intro-message,
  #stv-modal-overlay .stv-modal-body .stv-modal-intro{font-size:15px}
  #stv-modal-overlay .stv-modal h3{font-size:20.5px}
}
#stv-modal-overlay .stv-modal-body .stv-modal-total{font-size:15.5px}
@media(max-width:480px){
  #stv-modal-overlay .stv-modal-body .stv-modal-total{font-size:15px}
}
#stv-modal-overlay .stv-acct-pay-card .stv-acct-nums{font-size:15px;line-height:22px}
#stv-modal-overlay .stv-acct-pay-card .stv-acct-metric{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}
#stv-modal-overlay .stv-acct-pay-card .stv-acct-metric svg{width:14px;height:14px;flex-shrink:0}
#stv-modal-overlay .stv-acct-pay-card .stv-acct-sub{font-size:13.5px;line-height:16px}
.stv-due-badge{display:inline-block;padding:1px 8px;border-radius:7px;font-size:calc(1em - 2px);font-weight:700;line-height:1.2;white-space:nowrap;vertical-align:baseline;border:1px solid rgba(0,0,0,.22);box-shadow:0 1px 3px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.25)}
.stv-due-ok{background:#15803d;color:#fff}
.stv-due-soon{background:#f59e0b;color:#3b2300}
.stv-due-expired{background:#dc2626;color:#fff}

/* Top View v2.78 | Titulo del panel de Chat: -1px solo en movil */
@media(max-width:640px){
  #stv-modal-overlay #stv-panel-chat .stv-panel-title{font-size:10.5px}
}

/* Top View v2.79 | Estado de cuenta: +1px a los textos desde el titulo hasta Mis proyectos (las etiquetas conservan su tamano) */
#stv-acct-overlay .stv-acct-modal h3{font-size:18px}
#stv-acct-overlay .stv-acct-who{font-size:14px}
#stv-acct-overlay .stv-acct-card span{font-size:13.5px;font-weight:800}
#stv-acct-overlay .stv-acct-card strong{font-size:16px}
#stv-acct-overlay .stv-acct-card small{font-size:11.5px}
@media(max-width:600px){
  #stv-acct-overlay .stv-acct-card strong{font-size:15px !important}
}
#stv-acct-overlay .stv-acct-section.stv-acct-section-projects{font-size:13px}
#stv-acct-overlay .stv-acct-proj{font-size:calc(1em + 1px)}
#stv-acct-overlay .stv-acct-proj .stv-acct-sub{font-size:13.5px}
#stv-acct-overlay .stv-acct-proj .stv-acct-nums{font-size:14px}
#stv-acct-overlay .stv-acct-proj details{font-size:14px}
#stv-acct-overlay .stv-acct-proj .stv-acct-charge-date{font-size:12.5px}
#stv-acct-overlay .stv-acct-proj .stv-due-badge{font-size:9.5px}

/* Top View v2.80 | Estado de cuenta: sangria izquierda discreta en titulos y "Mis pagos" +1px */
#stv-acct-overlay .stv-acct-modal h3,
#stv-acct-overlay .stv-acct-who,
#stv-acct-overlay .stv-acct-section{padding-left:4px}
#stv-acct-overlay .stv-acct-section:not(.stv-acct-section-projects){font-size:13px}

/* Top View v2.82 | Titulo del modal del proyecto: mayusculas, negrita y cursiva (igual que en la tarjeta) */
#stv-modal-overlay #stv-modal-title{text-transform:uppercase !important;font-weight:800 !important;font-style:italic !important}

/* Top View v2.84 | Fecha de vencimiento en la tarjeta del proyecto: -1px solo en tablet y escritorio */
@media(min-width:641px){
  .stv-project-card .stv-due-badge{font-size:calc(1em - 3px)}
}

/* Top View v2.85 | Estado de cuenta: menos separacion entre el titulo y el monto en las 6 tarjetas de resumen */
#stv-acct-overlay .stv-acct-card span{line-height:1.15}
#stv-acct-overlay .stv-acct-card strong{line-height:1.15;margin:0 0 2px}

/* Top View v2.86 | Estado de cuenta: monto de las 6 tarjetas de resumen como etiqueta de fondo blanco */
#stv-acct-overlay .stv-acct-card strong{display:flex;width:fit-content;max-width:100%;box-sizing:border-box;background:#fff;padding:2px 8px;border-radius:7px;margin:3px 0 2px}
