/*
 * Ultra Ventas V5 - interfaz clara, accesible y orientada a operacion.
 * Se monta sobre AdminLTE/Bootstrap 3 sin cambiar la logica del sistema.
 */
:root {
  --uv-navy: #163447;
  --uv-navy-deep: #0d2635;
  --uv-teal: #147d73;
  --uv-teal-dark: #0f675f;
  --uv-blue: #2f6f9f;
  --uv-green: #2f855a;
  --uv-amber: #c9891a;
  --uv-red: #c94848;
  --uv-surface: #ffffff;
  --uv-bg: #f4f7f9;
  --uv-line: #dbe3e8;
  --uv-text: #22313b;
  --uv-muted: #6c7a84;
  --uv-shadow: 0 8px 24px rgba(18, 52, 71, .08);
  --uv-radius: 12px;
}

html, body { background: var(--uv-bg); }
body { color: var(--uv-text); }
a { transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease; }

/* ===== Portada publica ===== */
.uv-welcome-page {
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(77, 184, 165, .24), transparent 28%),
    radial-gradient(circle at 88% 80%, rgba(87, 145, 185, .24), transparent 30%),
    linear-gradient(135deg, #0d2635 0%, #173b4e 48%, #0f655f 100%);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.uv-welcome-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 5vw;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 29, 40, .28);
  backdrop-filter: blur(8px);
}
.uv-public-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.uv-public-brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--uv-teal); box-shadow: 0 8px 22px rgba(0,0,0,.16); font-size: 22px;
}
.uv-public-brand strong { display:block; font-size: 20px; line-height: 1.05; letter-spacing: .2px; }
.uv-public-brand small { display:block; margin-top: 4px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 500; }
.uv-welcome-login-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  background: #fff; color: var(--uv-navy-deep) !important; font-weight: 700; text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.uv-welcome-main {
  min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: center; gap: 5vw; padding: 7vh 7vw 8vh;
}
.uv-welcome-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; letter-spacing: .35px; }
.uv-welcome-copy h1 { max-width: 820px; margin: 18px 0 16px; font-size: clamp(36px, 4.4vw, 60px); line-height: .98; font-weight: 800; letter-spacing: -2.5px; }
.uv-welcome-copy h1 span { color: #75d2c1; }
.uv-welcome-copy > p { max-width: 760px; margin: 0 0 25px; color: rgba(255,255,255,.83); font-size: 17px; line-height: 1.55; }
.uv-welcome-features { display: flex; flex-wrap: wrap; gap: 9px; }
.uv-welcome-feature { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; }
.uv-welcome-panel { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--uv-text); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.uv-welcome-panel-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: #e7f5f2; color: var(--uv-teal); font-size: 24px; }
.uv-welcome-panel h2 { margin: 18px 0 7px; font-size: 22px; font-weight: 800; }
.uv-welcome-panel p { color: var(--uv-muted); line-height: 1.55; }
.uv-welcome-primary { display:flex; justify-content:center; align-items:center; gap:9px; width:100%; min-height:46px; margin-top:18px; border-radius:11px; background:var(--uv-teal); color:#fff !important; text-decoration:none !important; font-size:15px; font-weight:800; }
.uv-welcome-primary:hover { background:var(--uv-teal-dark); transform:translateY(-1px); }
.uv-welcome-help { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--uv-line); color: var(--uv-muted); font-size: 12px; line-height: 1.5; }

/* ===== Login / autenticacion ===== */
body.uv-auth-page { min-height: 100vh; background: #edf3f6; }
body.uv-auth-page .wrapper, body.uv-auth-page .content-wrapper { background: transparent; }
.uv-auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(430px, 1.1fr); }
.uv-auth-side {
  position: relative; overflow: hidden; padding: 7vh 6vw; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(100,207,187,.28), transparent 28%),
    radial-gradient(circle at 80% 85%, rgba(69,129,171,.3), transparent 30%),
    linear-gradient(150deg, #0d2635, #184358 58%, #116f67);
}
.uv-auth-side:after { content:""; position:absolute; width:360px; height:360px; border:1px solid rgba(255,255,255,.10); border-radius:50%; right:-170px; top:15%; box-shadow:0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.uv-auth-side > * { position: relative; z-index: 2; }
.uv-auth-brand { display:flex; align-items:center; gap:13px; }
.uv-auth-brand .uv-public-brand-mark { width:50px; height:50px; font-size:24px; }
.uv-auth-brand strong { display:block; font-size:23px; }
.uv-auth-brand small { display:block; color:rgba(255,255,255,.75); margin-top:3px; }
.uv-auth-message h2 { margin: 0 0 13px; max-width: 580px; font-size: 30px; line-height: 1.15; font-weight: 800; }
.uv-auth-message p { max-width: 620px; margin:0; color:rgba(255,255,255,.82); font-size:15px; line-height:1.55; }
.uv-auth-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.uv-auth-pill { padding:8px 11px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.07); font-size:12px; font-weight:700; }
.uv-auth-main { padding: 40px 5vw; display:flex; align-items:center; justify-content:center; }
.uv-login-card { width:100%; max-width:500px; padding:28px; border-radius:15px; background:#fff; border:1px solid #e3eaee; box-shadow:0 18px 50px rgba(31,62,80,.11); }
.uv-login-card .uv-login-icon { width:50px; height:50px; display:flex; align-items:center; justify-content:center; border-radius:16px; background:#e7f5f2; color:var(--uv-teal); font-size:22px; }
.uv-login-card h1 { margin:17px 0 5px; font-size:25px; font-weight:800; color:var(--uv-navy-deep); }
.uv-login-card .uv-login-subtitle { color:var(--uv-muted); margin-bottom:25px; line-height:1.5; }
.uv-login-card label { color:#334854; font-size:14px; font-weight:700; }
.uv-login-card .form-control { min-height:42px; border:1px solid #ccd8df; border-radius:9px; box-shadow:none; font-size:15px; }
.uv-login-card .form-control:focus { border-color:var(--uv-teal); box-shadow:0 0 0 3px rgba(20,125,115,.12); }
.uv-login-input { position:relative; }
.uv-login-input > i { position:absolute; z-index:3; left:15px; top:15px; color:#82919a; font-size:17px; }
.uv-login-input .form-control { padding-left:44px; }
.uv-login-submit { width:100%; min-height:44px; border:0; border-radius:10px; background:var(--uv-teal); color:#fff; font-size:15px; font-weight:800; }
.uv-login-submit:hover, .uv-login-submit:focus { background:var(--uv-teal-dark); color:#fff; }
.uv-login-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; font-size:13px; }
.uv-login-meta a { color:var(--uv-teal-dark); font-weight:700; }
.uv-login-note { margin-top:22px; padding:12px 14px; border-radius:10px; background:#f3f7f8; color:#60717b; font-size:12px; line-height:1.5; }
body.uv-auth-page .header-left-div, body.uv-auth-page .header-right-div, body.uv-auth-page .page-header { display:none !important; }

/* ===== Marco interno ===== */
.content-wrapper { background: var(--uv-bg) !important; }
.content-header { padding: 22px 22px 10px; }
.content-header > h1 { color: var(--uv-navy-deep); font-weight: 800; letter-spacing: -.25px; }
.content { padding: 15px 22px 24px; }
.main-header { box-shadow: 0 2px 12px rgba(19, 45, 60, .16); }
.main-header .logo { background: var(--uv-navy-deep) !important; color:#fff !important; font-weight:700; letter-spacing:.2px; }
.main-header .logo:hover { background: #0a202c !important; }
.main-header .navbar { background: var(--uv-navy) !important; }
.main-header .navbar .sidebar-toggle:hover { background: rgba(255,255,255,.08) !important; }
.main-header .navbar .sidebar-toggle { color:#fff; }
.main-header .navbar-custom-menu > .navbar-nav > li > a { color:#fff; }
.main-header .navbar-custom-menu > .navbar-nav > li > a:hover,
.main-header .navbar-custom-menu > .navbar-nav > li > a:focus { background:rgba(255,255,255,.08); }
.uv-logo-business { display:none; }

.main-sidebar { background: var(--uv-navy-deep) !important; }
.sidebar { padding-top: 8px; }
.sidebar-menu > li.header.uv-sidebar-help-header { padding: 12px 15px 9px; color: #91a7b4 !important; background: transparent !important; font-size: 11px; letter-spacing: .35px; text-transform: uppercase; }
.sidebar-menu > li > a { min-height:47px; display:flex; align-items:center; border-left:4px solid transparent !important; color:#c8d6dd !important; font-size:14px; font-weight:600; }
.sidebar-menu > li > a > .fa { width:25px; font-size:17px; color:#8fb0bf; }
.sidebar-menu > li:hover > a, .sidebar-menu > li.active > a { color:#fff !important; background:rgba(255,255,255,.075) !important; border-left-color:#5fc3b1 !important; }
.sidebar-menu > li.active > a > .fa, .sidebar-menu > li:hover > a > .fa { color:#71d2c0; }
.sidebar-menu .treeview-menu { background: rgba(0,0,0,.13) !important; padding:5px 0 7px 12px; }
.sidebar-menu .treeview-menu > li > a { min-height:38px; display:flex; align-items:center; color:#b9c9d1 !important; border-radius:6px 0 0 6px; margin:2px 0; padding-right:12px; font-size:13px; }
.sidebar-menu .treeview-menu > li > a > .fa { width:23px; color:#7895a4; }
.sidebar-menu .treeview-menu > li.active > a, .sidebar-menu .treeview-menu > li > a:hover { color:#fff !important; background:rgba(95,195,177,.13) !important; }
.sidebar-menu .treeview-menu > li.active > a > .fa, .sidebar-menu .treeview-menu > li > a:hover > .fa { color:#71d2c0; }
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu { border-color:rgba(255,255,255,.09); }

/* Barra superior: acciones mas faciles de reconocer */
.navbar-custom-menu .uv-nav-action, .navbar-custom-menu .uv-assist-btn,
.navbar-custom-menu #btnCalculator, .navbar-custom-menu #view_todays_profit,
.navbar-custom-menu #start_tour, .navbar-custom-menu #register_details,
.navbar-custom-menu #close_register {
  min-width:40px; min-height:34px; border:0 !important; border-radius:8px !important; margin-top:8px !important;
  box-shadow:none !important;
}
.navbar-custom-menu .btn-success { background:#1d8a78 !important; }
.navbar-custom-menu .btn-success:hover { background:#167265 !important; }
.navbar-custom-menu .btn-default { background:#eaf0f3 !important; color:#213744 !important; }
.navbar-custom-menu .btn-danger { background:#c94848 !important; }

/* Cajas, formularios y tablas */
.box { border-radius: var(--uv-radius) !important; border-top:0 !important; box-shadow: var(--uv-shadow) !important; overflow: hidden; }
.box.box-primary, .box.box-info, .box.box-success, .box.box-warning, .box.box-danger { border-top:0 !important; }
.box-header { padding:14px 16px; border-bottom:1px solid #edf1f3; }
.box-header .box-title { color:#203641; font-weight:750; }
.box-body { padding:16px; }
.info-box { border-radius:var(--uv-radius); overflow:hidden; box-shadow:var(--uv-shadow); }
.info-box-icon { width:78px; }
.info-box-content { margin-left:78px; padding:12px 13px; }
.info-box-text { color:#687985; font-weight:700; }
.info-box-number { color:#1f3440; font-size:21px; }
.form-control { border-color:#cdd8df; border-radius:7px; box-shadow:none; }
.form-control:focus { border-color:var(--uv-teal); box-shadow:0 0 0 3px rgba(20,125,115,.11); }
.input-group-addon { border-color:#cdd8df; background:#f7f9fa; color:#607681; }
.btn { border-radius:7px; font-weight:650; }
.btn-primary { background:var(--uv-blue); border-color:var(--uv-blue); }
.btn-success { background:var(--uv-green); border-color:var(--uv-green); }
.btn-warning { background:var(--uv-amber); border-color:var(--uv-amber); }
.btn-danger { background:var(--uv-red); border-color:var(--uv-red); }
.table > thead > tr > th { background:#f3f6f8; color:#334955; border-bottom:1px solid #dce5ea; font-weight:800; }
.table-striped > tbody > tr:nth-of-type(odd) { background:#fbfcfd; }
.table > tbody > tr:hover { background:#f0f7f6; }
.alert { border-radius:9px; }

/* Dashboard accesible */
.uv-home-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:3px 0 18px; padding:19px 21px; border-radius:14px; background:linear-gradient(120deg, #15384b, #176a65); color:#fff; box-shadow:0 12px 30px rgba(22,76,88,.18); }
.uv-home-hero h2 { margin:0 0 5px; font-size:22px; font-weight:800; }
.uv-home-hero p { margin:0; color:rgba(255,255,255,.8); }
.uv-home-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.uv-home-action { display:inline-flex; align-items:center; gap:7px; min-height:42px; padding:9px 12px; border-radius:9px; background:#fff; color:#15384b !important; text-decoration:none !important; font-weight:800; white-space:nowrap; }
.uv-home-action:hover { transform:translateY(-1px); box-shadow:0 7px 15px rgba(0,0,0,.13); }

/* Perfil / cambio de clave */
.uv-security-note { border-left:5px solid var(--uv-amber); background:#fff9e9; color:#664e1d; }
#edit_password_form .box { max-width:900px; margin-left:auto; margin-right:auto; }

/* Tooltip de ayuda: grande, legible y consistente */
.tooltip { z-index: 12000 !important; }
.tooltip-inner { max-width: 280px !important; padding:8px 10px !important; border-radius:7px !important; background:#102d3d !important; color:#fff !important; font-size:12px !important; line-height:1.35 !important; text-align:left !important; box-shadow:0 8px 20px rgba(0,0,0,.2); }
.tooltip.right .tooltip-arrow { border-right-color:#102d3d !important; }
.tooltip.left .tooltip-arrow { border-left-color:#102d3d !important; }
.tooltip.top .tooltip-arrow { border-top-color:#102d3d !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color:#102d3d !important; }
.uv-has-help { cursor:help; }

/* Footer */
.main-footer { border-top:1px solid #dde5e9; background:#fff; color:#71808a; }

/* Conserva y refuerza la vista comoda de V4 */
body.uv-comfort-mode .sidebar-menu > li > a { min-height:47px; font-size:14px; }
body.uv-comfort-mode .sidebar-menu .treeview-menu > li > a { min-height:39px; font-size:13px; }
body.uv-comfort-mode .content-header > h1 { font-size:24px; }
body.uv-comfort-mode .box-title { font-size:16px !important; }
body.uv-comfort-mode .btn { min-height:35px; }
body.uv-comfort-mode .form-control { min-height:39px; font-size:14px; }

@media (max-width: 991px) {
  .uv-welcome-main { grid-template-columns:1fr; padding-top:5vh; }
  .uv-welcome-panel { max-width:640px; }
  .uv-auth-shell { grid-template-columns:1fr; }
  .uv-auth-side { min-height:310px; padding:35px 7vw; }
  .uv-auth-message h2 { font-size:29px; }
  .uv-auth-main { padding:30px 20px 50px; }
  .uv-home-hero { align-items:flex-start; flex-direction:column; }
  .uv-home-actions { justify-content:flex-start; }
}
@media (max-width: 640px) {
  .uv-welcome-nav { padding:12px 18px; }
  .uv-public-brand small { display:none; }
  .uv-welcome-main { padding:45px 20px; }
  .uv-welcome-copy h1 { font-size:43px; letter-spacing:-1.4px; }
  .uv-welcome-copy > p { font-size:15px; }
  .uv-welcome-panel { padding:22px; }
  .uv-login-card { padding:25px 20px; }
  .uv-login-meta { align-items:flex-start; flex-direction:column; }
  .content { padding-left:12px; padding-right:12px; }
  .content-header { padding-left:14px; padding-right:14px; }
}

/* V5.2 - POS compacto: la informacion de credito no debe ocupar media pantalla. */
.uv-pos-cash-note { margin:3px 0 0; color:#667780; font-size:11px; line-height:1.2; }
.uv-credit-status { margin:4px 0 0; min-height:28px; padding:4px 7px; border-radius:6px; border-left:3px solid #9aa8af; background:#f7f9fa; color:#3d4e57; display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:11px; line-height:1.2; }
.uv-credit-status.is-warning { border-left-color:#e49a19; background:#fff8e8; color:#6b5119; }
.uv-credit-status.is-danger { border-left-color:#c84646; background:#fff0f0; color:#8b2929; }
.uv-credit-status.is-success { border-left-color:#2f9b72; background:#eef9f4; color:#246c53; }
.uv-credit-status-main { display:flex; align-items:center; min-width:0; gap:5px; }
.uv-credit-status-summary { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:400; }
.uv-credit-info { flex:0 0 auto; width:24px; height:22px; padding:0; border:0; border-radius:5px; background:transparent; color:inherit; }
.uv-credit-info:hover, .uv-credit-info:focus { background:rgba(0,0,0,.06); outline:0; }
.uv-compact-callout { padding:7px 10px !important; margin-bottom:10px !important; font-size:12px !important; line-height:1.3 !important; }

/* V5.2 - densidad normal mas eficiente. Vista ampliada sigue disponible con el boton del ojo. */
body:not(.uv-comfort-mode) .content-wrapper .box-body { padding:12px; }
body:not(.uv-comfort-mode) .content-wrapper .box-header { padding:10px 12px; }
body:not(.uv-comfort-mode) .content-wrapper .form-group { margin-bottom:10px; }
body:not(.uv-comfort-mode) .content-wrapper .form-control { min-height:32px; height:32px; font-size:13px; }
body:not(.uv-comfort-mode) .content-wrapper textarea.form-control { height:auto; min-height:70px; }
body:not(.uv-comfort-mode) .content-wrapper .btn:not(.btn-lg) { min-height:30px; padding-top:5px; padding-bottom:5px; }
body:not(.uv-comfort-mode) .content-header { padding-top:10px; padding-bottom:6px; }
body:not(.uv-comfort-mode) .content-header > h1 { font-size:20px; }

/* V5.3 - densidad compacta y formularios estables */
.uv-v53-form-page { padding-top:8px !important; }
.uv-compact-header { padding-bottom:4px !important; }
.uv-compact-header h1 { font-size:21px !important; margin:0 !important; }
.uv-compact-header h1 small { font-size:12px !important; }
.uv-simple-card { background:#fff; border:1px solid #dfe6ea; border-radius:8px; padding:14px 16px 10px; box-shadow:0 1px 3px rgba(0,0,0,.05); max-width:1250px; }
.uv-simple-card .form-group { margin-bottom:10px !important; }
.uv-simple-card label { font-size:12px; margin-bottom:4px; color:#34444d; }
.uv-simple-card .form-control, .uv-simple-card .select2-container .select2-selection--single { min-height:32px !important; height:32px !important; font-size:13px !important; padding-top:5px; padding-bottom:5px; }
.uv-simple-card textarea.form-control { height:auto !important; min-height:54px !important; }
.uv-form-title { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #edf1f3; padding-bottom:8px; margin-bottom:10px; }
.uv-form-title strong { display:block; font-size:15px; color:#173d4b; }
.uv-form-title small { display:block; color:#74838a; font-size:11px; margin-top:2px; }
.uv-tip { color:#2e7895; margin-left:3px; cursor:help; }
.uv-check-line { display:inline-flex; gap:6px; align-items:center; min-height:32px; font-weight:600 !important; }
.uv-stock-row { padding-top:3px; padding-bottom:2px; }
.uv-inline-info, .uv-inline-warning { padding:7px 9px; border-radius:5px; margin:2px 0 10px; font-size:12px; }
.uv-inline-info { background:#eef7fb; color:#285b70; border-left:3px solid #3b8aaa; }
.uv-inline-warning { background:#fff8e9; color:#765a1b; border-left:3px solid #e5a42e; }
.uv-form-actions { border-top:1px solid #edf1f3; padding-top:10px; text-align:right; }
.uv-form-actions .btn { min-height:32px; padding:5px 11px; }
.uv-permission-toolbar { display:flex; gap:10px; align-items:center; padding:6px 0 9px; color:#68777e; font-size:11px; }
.uv-permission-grid > div { margin-bottom:9px; }
.uv-permission-card { border:1px solid #e1e7ea; border-radius:6px; background:#fafcfc; min-height:105px; }
.uv-permission-card h4 { margin:0; padding:7px 9px; font-size:13px; background:#f1f5f6; border-bottom:1px solid #e1e7ea; color:#274a59; }
.uv-permission-card h4 .btn { padding:0 3px; font-size:10px; float:right; }
.uv-permission-items { padding:6px 9px; display:grid; grid-template-columns:1fr 1fr; gap:4px 8px; }
.uv-permission-item { font-size:11px !important; font-weight:400 !important; margin:0 !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }

/* El estado de credito del POS nunca debe ocupar un bloque grande. */
#customer_credit_status_box.uv-credit-status-v53,
#customer_credit_status_box.uv-credit-status { display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:space-between !important; width:100% !important; max-width:100% !important; min-height:24px !important; height:24px !important; max-height:24px !important; padding:2px 6px !important; margin:3px 0 0 !important; border-radius:4px !important; border:0 !important; border-left:3px solid #8d9da4 !important; font-size:10px !important; line-height:1 !important; overflow:hidden !important; box-shadow:none !important; }
#customer_credit_status_box.is-warning { background:#fff7e4 !important; color:#6f5519 !important; border-left-color:#e2a12d !important; }
#customer_credit_status_box.is-danger { background:#fff0f0 !important; color:#8d2d2d !important; border-left-color:#c94e4e !important; }
#customer_credit_status_box.is-success { background:#edf8f3 !important; color:#286c54 !important; border-left-color:#35a176 !important; }
#customer_credit_status_box .uv-credit-status-main { display:flex !important; min-width:0 !important; align-items:center !important; gap:4px !important; white-space:nowrap !important; overflow:hidden !important; }
#customer_credit_status_box .uv-credit-status-summary { display:inline !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
#customer_credit_status_box .uv-credit-info { flex:0 0 20px !important; width:20px !important; height:20px !important; min-height:20px !important; padding:0 !important; border:0 !important; background:transparent !important; }
.uv-pos-cash-note { margin:2px 0 0 !important; font-size:9px !important; line-height:1.1 !important; color:#77858b !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* V5.4 - Puesta en marcha y entrega */
.uv-golive-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; margin:0 0 14px; border-radius:10px; background:linear-gradient(120deg,#123b4d,#16766d); color:#fff; box-shadow:0 7px 18px rgba(21,72,83,.16); }
.uv-golive-hero h2 { margin:3px 0 3px; font-size:19px; font-weight:800; }
.uv-golive-hero p { margin:0; font-size:12px; color:rgba(255,255,255,.84); }
.uv-golive-kicker { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.35px; color:#d8f4ee; }
.uv-golive-progress-wrap { flex:0 0 155px; text-align:center; }
.uv-golive-progress-number { font-size:25px; line-height:1; font-weight:800; }
.uv-golive-progress { height:7px; margin:8px 0 0; background:rgba(255,255,255,.22); border-radius:10px; overflow:hidden; }
.uv-golive-progress .progress-bar { background:#fff; }
.uv-checklist-box, .uv-golive-summary, .uv-role-preset-box, .uv-final-test-box { border:1px solid #dfe7e9; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.uv-checklist-box .box-header, .uv-golive-summary .box-header, .uv-role-preset-box .box-header, .uv-final-test-box .box-header { padding:9px 11px; border-bottom:1px solid #edf1f2; }
.uv-checklist-box .box-title, .uv-golive-summary .box-title, .uv-role-preset-box .box-title, .uv-final-test-box .box-title { font-size:14px; font-weight:700; }
.uv-checklist-box .box-body, .uv-golive-summary .box-body, .uv-role-preset-box .box-body, .uv-final-test-box .box-body { padding:10px 11px; }
.uv-check-item { display:flex; align-items:flex-start; gap:8px; padding:6px 4px; border-bottom:1px solid #f0f3f4; color:#596b73; }
.uv-check-item:last-child { border-bottom:0; }
.uv-check-item > i { margin-top:2px; font-size:15px; }
.uv-check-item strong { display:block; font-size:11px; color:#334750; }
.uv-check-item small { display:block; margin-top:1px; font-size:10px; line-height:1.25; color:#849197; }
.uv-check-item.is-ok > i { color:#268b68; }
.uv-check-item.is-pending > i { color:#cf9226; }
.uv-mini-stat { display:flex; justify-content:space-between; align-items:center; padding:5px 2px; border-bottom:1px solid #f0f3f4; font-size:11px; }
.uv-mini-stat:last-child { border-bottom:0; }
.uv-mini-stat b { min-width:32px; text-align:right; color:#173e4b; font-size:13px; }
.uv-golive-form { max-width:none; margin-bottom:14px; }
.uv-section-gap { margin-top:10px; }
.uv-golive-form input[type=file].form-control { height:auto !important; min-height:32px !important; padding:4px !important; }
.uv-role-preset-box p, .uv-final-test-box p { font-size:11px; line-height:1.35; }
.uv-role-chips { display:flex; flex-wrap:wrap; gap:5px; }
.uv-role-chips span { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:12px; background:#edf6f5; color:#236258; font-size:10px; font-weight:700; }
.uv-test-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.uv-test-flow a { display:flex; align-items:center; gap:7px; padding:7px; border:1px solid #dde7e9; border-radius:6px; background:#fbfcfc; color:#354c56; text-decoration:none; min-height:42px; }
.uv-test-flow a:hover { border-color:#63aaa3; background:#f0f9f7; }
.uv-test-flow b { display:flex; align-items:center; justify-content:center; width:22px; height:22px; flex:0 0 22px; border-radius:50%; background:#16766d; color:#fff; font-size:10px; }
.uv-test-flow span { font-size:10px; font-weight:700; line-height:1.15; }

/* Cabecera: mantener controles legibles sin robar espacio */
.main-header .navbar-custom-menu > .btn, .main-header .navbar-custom-menu > a.btn { min-width:38px; height:34px; padding:6px 9px; margin-top:8px !important; margin-bottom:0 !important; border-radius:5px !important; }
.main-header .uv-nav-action { min-width:auto !important; }
.main-header .navbar-nav > .user-menu > a { padding-top:14px; padding-bottom:14px; }

/* Ticket Ultra Ventas */
.uv-receipt-whatsapp { white-space:nowrap; }

@media (max-width:1199px) {
  .uv-test-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .uv-golive-hero { align-items:flex-start; flex-direction:column; }
  .uv-golive-progress-wrap { width:100%; flex-basis:auto; text-align:left; }
  .uv-test-flow { grid-template-columns:1fr; }
}
