/* Helios Stock V29
   Visual system aligned with Helios Documents.
   This stylesheet is intentionally loaded last so it can normalize legacy visual layers
   without changing inventory behavior, routes, forms or permissions. */

:root{
  --helios:#4f46e5;
  --helios-dark:#4338ca;
  --helios-soft:#efefff;
  --helios-soft-2:#f8f7ff;
  --bg:#f7f8fa;
  --panel:#fff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --soft:#f3f4f6;
  --success:#15803d;
  --danger:#dc2626;
  --warning:#b45309;
  --radius:12px;
  --sidebar:232px;
  --topbar:72px;
}

body.helios-documents-theme-v29{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
}
body.helios-documents-theme-v29 a{color:inherit}

/* ===== Shell / Sidebar ===== */
body.helios-documents-theme-v29 .sidebar{
  width:var(--sidebar)!important;
  inset:0 auto 0 0;
  padding:18px 12px 14px!important;
  background:#fff!important;
  border-right:1px solid var(--border)!important;
  box-shadow:none!important;
  color:var(--text)!important;
}
body.helios-documents-theme-v29 .main{margin-left:var(--sidebar)!important;min-height:100vh}
body.helios-documents-theme-v29 .sidebar .brand{
  min-height:48px!important;
  height:48px;
  margin:0 0 18px!important;
  padding:0 9px!important;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:10px!important;
  color:var(--text)!important;
  text-decoration:none;
}
body.helios-documents-theme-v29 .sidebar .brand:hover{background:#fafaff!important}
body.helios-documents-theme-v29 .sidebar .brand-mark,
body.helios-documents-theme-v29 .brand-mark{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:11px!important;
  background:var(--helios)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
body.helios-documents-theme-v29 .brand-copy-v29{display:grid;gap:1px;line-height:1.05;min-width:0}
body.helios-documents-theme-v29 .brand-copy-v29 strong{font-size:16px;font-weight:700;color:#171827}
body.helios-documents-theme-v29 .sidebar .brand small,
body.helios-documents-theme-v29 .brand-copy-v29 small{
  display:block!important;
  margin:0!important;
  color:#8b90a0!important;
  font-size:9px!important;
  font-weight:600!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}
body.helios-documents-theme-v29 .sidebar nav{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  padding:0!important;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#e2e4ea transparent;
}
body.helios-documents-theme-v29 .sidebar nav::-webkit-scrollbar{width:4px}
body.helios-documents-theme-v29 .sidebar nav::-webkit-scrollbar-thumb{background:#e2e4ea;border-radius:999px}
body.helios-documents-theme-v29 .sidebar nav>a,
body.helios-documents-theme-v29 .sidebar .nav-group>summary,
body.helios-documents-theme-v29 .sidebar .logout{
  min-height:42px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:9px 12px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#5f6775!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.2!important;
  box-shadow:none!important;
  transition:background .16s ease,color .16s ease!important;
}
body.helios-documents-theme-v29 .sidebar nav>a>i,
body.helios-documents-theme-v29 .sidebar .nav-group>summary>span>i,
body.helios-documents-theme-v29 .sidebar .logout>i{
  width:20px!important;
  flex:0 0 20px!important;
  color:#7d8491!important;
  font-size:17px!important;
  text-align:center;
}
body.helios-documents-theme-v29 .sidebar nav>a:hover,
body.helios-documents-theme-v29 .sidebar nav>a:focus-visible,
body.helios-documents-theme-v29 .sidebar .nav-group>summary:hover,
body.helios-documents-theme-v29 .sidebar .nav-group>summary:focus-visible,
body.helios-documents-theme-v29 .sidebar .logout:hover{
  background:#f5f5ff!important;
  color:var(--helios)!important;
}
body.helios-documents-theme-v29 .sidebar nav>a:hover>i,
body.helios-documents-theme-v29 .sidebar .nav-group>summary:hover>span>i,
body.helios-documents-theme-v29 .sidebar .logout:hover>i{color:var(--helios)!important}
body.helios-documents-theme-v29 .sidebar nav>a.active,
body.helios-documents-theme-v29 .sidebar .nav-group.active>summary,
body.helios-documents-theme-v29 .sidebar .nav-group[open]>summary{
  background:var(--helios-soft)!important;
  color:var(--helios)!important;
  font-weight:600!important;
  box-shadow:none!important;
}
body.helios-documents-theme-v29 .sidebar nav>a.active>i,
body.helios-documents-theme-v29 .sidebar .nav-group.active>summary>span>i,
body.helios-documents-theme-v29 .sidebar .nav-group[open]>summary>span>i{color:var(--helios)!important}
body.helios-documents-theme-v29 .sidebar .nav-caption{
  display:block!important;
  margin:16px 12px 5px!important;
  padding:0!important;
  color:#a0a4ae!important;
  font-size:8.5px!important;
  font-weight:650!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.helios-documents-theme-v29 .sidebar .nav-caption::after{display:none!important}
body.helios-documents-theme-v29 .sidebar .nav-group{margin:0!important;border:0!important}
body.helios-documents-theme-v29 .sidebar .nav-group>summary{justify-content:space-between;cursor:pointer}
body.helios-documents-theme-v29 .sidebar .nav-group>summary>span{display:flex;align-items:center;gap:12px;min-width:0}
body.helios-documents-theme-v29 .sidebar .nav-group .nav-group-chevron{color:#a0a4ae!important;font-size:11px!important}
body.helios-documents-theme-v29 .sidebar .nav-submenu{
  margin:3px 0 5px 19px!important;
  padding:3px 0 3px 12px!important;
  border-left:1px solid #ececf2!important;
  display:grid!important;
  gap:2px!important;
}
body.helios-documents-theme-v29 .sidebar .nav-submenu a{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:7px 9px!important;
  border-radius:8px!important;
  color:#747b88!important;
  font-size:11px!important;
  font-weight:500!important;
  background:transparent!important;
}
body.helios-documents-theme-v29 .sidebar .nav-submenu a i{width:16px;color:#9a9fab!important}
body.helios-documents-theme-v29 .sidebar .nav-submenu a:hover{background:#f7f7ff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .sidebar .nav-submenu a.active{background:#f0efff!important;color:var(--helios)!important;font-weight:600!important}
body.helios-documents-theme-v29 .sidebar form[action="/logout"]{
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid #eef0f3!important;
}
body.helios-documents-theme-v29 .sidebar .logout{width:100%!important}

/* ===== Topbar ===== */
body.helios-documents-theme-v29 .topbar{
  height:var(--topbar)!important;
  position:sticky!important;
  top:0;
  z-index:1030;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px;
  padding:0 28px!important;
  background:rgba(247,248,250,.92)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(229,231,235,.82)!important;
  box-shadow:none!important;
}
body.helios-documents-theme-v29 .topbar-context{display:flex!important;align-items:center!important;gap:10px!important;min-width:0;color:#626978!important}
body.helios-documents-theme-v29 .topbar-context>span{
  width:34px!important;height:34px!important;display:grid!important;place-items:center!important;
  border-radius:10px!important;background:#efefff!important;color:var(--helios)!important;font-size:15px!important;
}
body.helios-documents-theme-v29 .topbar-context>div{display:grid!important;gap:1px!important;min-width:0}
body.helios-documents-theme-v29 .topbar-context small{color:#969ba7!important;font-size:9px!important;font-weight:650!important;letter-spacing:.09em!important;text-transform:uppercase!important}
body.helios-documents-theme-v29 .topbar-context strong{color:#272938!important;font-size:13px!important;font-weight:650!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.helios-documents-theme-v29 .topbar-actions{display:flex!important;align-items:center!important;gap:10px!important}
body.helios-documents-theme-v29 .language-switch{
  min-height:38px!important;height:38px!important;display:inline-flex;align-items:center;gap:7px;
  padding:0 11px!important;border:1px solid var(--border)!important;border-radius:10px!important;
  background:#fff!important;color:#666d7a!important;font-size:10px!important;font-weight:650!important;box-shadow:0 1px 2px rgba(15,23,42,.02)!important;
}
body.helios-documents-theme-v29 .language-switch:hover{background:#f9fafb!important;color:var(--helios)!important;border-color:#d9d7ff!important}
body.helios-documents-theme-v29 .user-summary{
  display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:5px 7px!important;
  border-radius:10px!important;background:transparent!important;
}
body.helios-documents-theme-v29 .user-summary:hover{background:#eef0f4!important}
body.helios-documents-theme-v29 .user-avatar{
  width:34px!important;height:34px!important;border-radius:50%!important;background:#e8e8fb!important;color:var(--helios)!important;
  display:grid!important;place-items:center!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .user-summary>div{display:grid;gap:0}
body.helios-documents-theme-v29 .user-summary strong{font-size:12px!important;font-weight:650!important;color:#292b38!important}
body.helios-documents-theme-v29 .role{
  display:block!important;padding:0!important;border:0!important;background:transparent!important;color:#8f95a2!important;
  font-size:9.5px!important;font-weight:500!important;line-height:1.25!important;text-transform:none!important;letter-spacing:0!important;
}
body.helios-documents-theme-v29 .menu{border:0!important;background:transparent!important;color:#5f6775!important;border-radius:9px!important;width:38px;height:38px;place-items:center}
body.helios-documents-theme-v29 .menu:hover{background:#f0efff!important;color:var(--helios)!important}

/* ===== Content rhythm ===== */
body.helios-documents-theme-v29 .content{
  width:100%;max-width:1600px;margin:0 auto!important;padding:30px!important;
}
body.helios-documents-theme-v29 .page-head{margin-bottom:24px!important;gap:16px!important}
body.helios-documents-theme-v29 .page-head h1{margin:0 0 6px!important;color:#181927!important;font-size:26px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:-.03em!important}
body.helios-documents-theme-v29 .page-subtitle,
body.helios-documents-theme-v29 .page-head p{color:var(--muted)!important;font-size:13px!important}
body.helios-documents-theme-v29 .eyebrow{color:var(--helios)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.11em!important}
body.helios-documents-theme-v29 .date{color:#8f95a1!important;font-size:11px!important}

/* ===== Generic surfaces ===== */
body.helios-documents-theme-v29 .card-panel,
body.helios-documents-theme-v29 .kpi,
body.helios-documents-theme-v29 .directory-shell,
body.helios-documents-theme-v29 .report-card,
body.helios-documents-theme-v29 .metric-mini,
body.helios-documents-theme-v29 .document-section,
body.helios-documents-theme-v29 .quick-lookup,
body.helios-documents-theme-v29 .work-shortcuts,
body.helios-documents-theme-v29 .tutorial-section,
body.helios-documents-theme-v29 .tutorial-step,
body.helios-documents-theme-v29 .tutorial-flow-card,
body.helios-documents-theme-v29 .tutorial-role-grid article,
body.helios-documents-theme-v29 .permission-item{
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:var(--radius)!important;
  box-shadow:none!important;
}
body.helios-documents-theme-v29 .card-panel{padding:20px}
body.helios-documents-theme-v29 .card-panel.directory-shell{padding:0!important;overflow:hidden}
body.helios-documents-theme-v29 .grid-2{gap:18px!important}
body.helios-documents-theme-v29 .section-heading{margin-bottom:16px!important}
body.helios-documents-theme-v29 .section-heading>div{gap:11px!important}
body.helios-documents-theme-v29 .section-heading i,
body.helios-documents-theme-v29 .directory-title>i{
  width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border-radius:10px!important;
  background:#f0efff!important;color:var(--helios)!important;font-size:16px!important;
}
body.helios-documents-theme-v29 .section-heading h2,
body.helios-documents-theme-v29 .directory-title h2{color:#252634!important;font-size:15px!important;font-weight:650!important}
body.helios-documents-theme-v29 .section-heading p,
body.helios-documents-theme-v29 .directory-title span{color:#8b909c!important;font-size:10.5px!important}
body.helios-documents-theme-v29 .directory-toolbar{
  padding:18px 20px!important;border-bottom:1px solid var(--border)!important;background:#fff!important;
}
body.helios-documents-theme-v29 .directory-title{gap:12px!important}
body.helios-documents-theme-v29 .directory-table-wrap{padding:0!important}

/* ===== Hero panels: same visual family as Helios Documents ===== */
body.helios-documents-theme-v29 .hero-panel,
body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero,
body.helios-documents-theme-v29 .work-hero,
body.helios-documents-theme-v29 .tutorial-hero,
body.helios-documents-theme-v29 .exception-hero{
  position:relative!important;
  overflow:hidden!important;
  margin-bottom:18px!important;
  padding:28px 32px!important;
  border:1px solid #d9d6ff!important;
  border-radius:20px!important;
  background:linear-gradient(112deg,#f2f1ff 0%,#fff 58%,#eceaff 100%)!important;
  color:#18182a!important;
  box-shadow:0 16px 38px rgba(50,45,110,.06)!important;
}
body.helios-documents-theme-v29 .hero-panel:after,
body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero:after,
body.helios-documents-theme-v29 .tutorial-hero:after{
  content:""!important;position:absolute!important;right:-55px!important;top:-90px!important;width:260px!important;height:260px!important;border-radius:50%!important;background:rgba(79,70,229,.07)!important;opacity:1!important;
}
body.helios-documents-theme-v29 .hero-panel:before{display:none!important}
body.helios-documents-theme-v29 .hero-panel h1,
body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero h1,
body.helios-documents-theme-v29 .work-hero h1,
body.helios-documents-theme-v29 .tutorial-hero h1{
  position:relative;z-index:1;margin:7px 0 4px!important;color:#18182a!important;font-size:29px!important;font-weight:700!important;letter-spacing:-.035em!important;
}
body.helios-documents-theme-v29 .hero-panel p,
body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero p,
body.helios-documents-theme-v29 .work-hero p,
body.helios-documents-theme-v29 .tutorial-hero p{position:relative;z-index:1;color:#6f7482!important;font-size:13px!important;line-height:1.55!important}
body.helios-documents-theme-v29 .hero-kicker,
body.helios-documents-theme-v29 .tutorial-hero .hero-kicker{position:relative;z-index:1;color:var(--helios)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.12em!important}
body.helios-documents-theme-v29 .hero-icon{
  position:relative;z-index:1;width:44px!important;height:44px!important;border-radius:12px!important;background:#e9e7ff!important;color:var(--helios)!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .hero-date{
  position:relative;z-index:1;border:1px solid #d7d3ff!important;background:rgba(255,255,255,.78)!important;color:#424254!important;border-radius:14px!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .hero-date span{color:#8a89a3!important}
body.helios-documents-theme-v29 .hero-date strong{color:#353544!important}

/* ===== Buttons ===== */
body.helios-documents-theme-v29 .btn{border-radius:10px!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;transition:.15s ease}
body.helios-documents-theme-v29 .btn-primary{
  background:var(--helios)!important;border-color:var(--helios)!important;color:#fff!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .btn-primary:hover,
body.helios-documents-theme-v29 .btn-primary:focus{background:var(--helios-dark)!important;border-color:var(--helios-dark)!important;color:#fff!important;transform:none!important}
body.helios-documents-theme-v29 .btn-light-primary,
body.helios-documents-theme-v29 .btn-outline-primary{
  background:#f0efff!important;border:1px solid #dfddff!important;color:var(--helios)!important;
}
body.helios-documents-theme-v29 .btn-light-primary:hover,
body.helios-documents-theme-v29 .btn-outline-primary:hover{background:#e8e6ff!important;color:var(--helios-dark)!important;border-color:#d3cfff!important}
body.helios-documents-theme-v29 .btn-light{background:#fff!important;border:1px solid var(--border)!important;color:#565d6a!important}
body.helios-documents-theme-v29 .btn-light:hover{background:#f9fafb!important;color:#252936!important}
body.helios-documents-theme-v29 .btn-icon{
  width:34px!important;height:34px!important;border-radius:9px!important;border:1px solid transparent!important;background:transparent!important;color:#7b8391!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .btn-icon:hover{background:#f3f4f6!important;color:#111827!important;border-color:transparent!important}
body.helios-documents-theme-v29 .btn-soft-danger{background:#fef2f2!important;color:#dc2626!important}

/* ===== Forms / Select2 ===== */
body.helios-documents-theme-v29 .form-label{margin-bottom:6px!important;color:#434856!important;font-size:12px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
body.helios-documents-theme-v29 .form-control,
body.helios-documents-theme-v29 .form-select{
  min-height:42px!important;padding:9px 12px!important;border:1px solid var(--border)!important;border-radius:10px!important;background:#fff!important;color:#20222c!important;font-size:13px!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 textarea.form-control{min-height:92px!important}
body.helios-documents-theme-v29 .form-control:focus,
body.helios-documents-theme-v29 .form-select:focus{border-color:#aaa6ff!important;box-shadow:0 0 0 3px rgba(79,70,229,.07)!important}
body.helios-documents-theme-v29 .form-control::placeholder{color:#a1a6b0!important}
body.helios-documents-theme-v29 .field-help{color:#8b909c!important;font-size:10px!important}
body.helios-documents-theme-v29 .select2-container{width:100%!important}
body.helios-documents-theme-v29 .select2-container .select2-selection--single{
  height:42px!important;border:1px solid var(--border)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .select2-container .select2-selection--single .select2-selection__rendered{line-height:40px!important;padding-left:12px!important;color:#20222c!important;font-size:13px!important}
body.helios-documents-theme-v29 .select2-container .select2-selection--single .select2-selection__arrow{height:40px!important}
body.helios-documents-theme-v29 .select2-container--open .select2-selection--single{border-color:#aaa6ff!important}
body.helios-documents-theme-v29 .select2-dropdown{border-color:var(--border)!important;border-radius:10px!important;overflow:hidden!important;box-shadow:0 12px 28px rgba(15,23,42,.08)!important}
body.helios-documents-theme-v29 .select2-search__field{border-radius:8px!important;border-color:var(--border)!important;outline:0!important}
body.helios-documents-theme-v29 .select2-results__option--highlighted{background:var(--helios)!important;color:#fff!important}
body.helios-documents-theme-v29 .form-check-input:checked{background-color:var(--helios)!important;border-color:var(--helios)!important}

/* ===== Tables ===== */
body.helios-documents-theme-v29 .table,
body.helios-documents-theme-v29 .native-table{margin-bottom:0!important;font-size:12px!important;background:#fff!important}
body.helios-documents-theme-v29 .table>:not(caption)>*>*,
body.helios-documents-theme-v29 .native-table>:not(caption)>*>*{padding:13px 16px!important;border-bottom-color:#eff1f3!important}
body.helios-documents-theme-v29 .table thead th,
body.helios-documents-theme-v29 .native-table thead th{
  padding:12px 16px!important;background:#fafafa!important;color:#8a919e!important;border-bottom:1px solid var(--border)!important;
  font-size:10.5px!important;font-weight:650!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important;
}
body.helios-documents-theme-v29 .table tbody tr,
body.helios-documents-theme-v29 .native-table tbody tr{transition:background .12s ease!important}
body.helios-documents-theme-v29 .table tbody tr:hover,
body.helios-documents-theme-v29 .native-table tbody tr:hover,
body.helios-documents-theme-v29 .native-table tbody tr:not(.native-table-empty-row):hover td{background:#fafaff!important}
body.helios-documents-theme-v29 .table td,
body.helios-documents-theme-v29 .native-table tbody td{vertical-align:middle!important;color:#3d414d!important}
body.helios-documents-theme-v29 .entity-icon{
  width:36px!important;height:36px!important;border-radius:9px!important;background:#f0efff!important;color:var(--helios)!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .entity-cell strong{color:#2c2e39!important;font-size:12px!important}
body.helios-documents-theme-v29 .entity-cell small{color:#8e939e!important}
body.helios-documents-theme-v29 .native-table-tools{padding:14px 16px!important;border-bottom:1px solid var(--border)!important;background:#fff!important}
body.helios-documents-theme-v29 .native-table-search input,
body.helios-documents-theme-v29 .native-table-length select{border-color:var(--border)!important;border-radius:9px!important;background:#fff!important}
body.helios-documents-theme-v29 .native-table-footer{padding:14px 16px!important;border-top:1px solid var(--border)!important;background:#fff!important;color:#8a909d!important}
body.helios-documents-theme-v29 .native-page-button{border-color:var(--border)!important;border-radius:8px!important;background:#fff!important;color:#5f6673!important}
body.helios-documents-theme-v29 .native-page-button:hover:not(:disabled){background:#f5f5ff!important;color:var(--helios)!important;border-color:#d9d6ff!important}
body.helios-documents-theme-v29 .native-page-button.active{background:var(--helios)!important;border-color:var(--helios)!important;color:#fff!important}

/* ===== Status / badges ===== */
body.helios-documents-theme-v29 .status,
body.helios-documents-theme-v29 .status-chip,
body.helios-documents-theme-v29 .pending-badge{
  display:inline-flex!important;align-items:center!important;border-radius:999px!important;padding:5px 9px!important;
  font-size:9.5px!important;font-weight:650!important;letter-spacing:.025em!important;text-transform:none!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .status{background:#f3f4f6!important;color:#5f6775!important}
body.helios-documents-theme-v29 .status.ACTIVE,
body.helios-documents-theme-v29 .status.APROBADA,
body.helios-documents-theme-v29 .status.RECIBIDA,
body.helios-documents-theme-v29 .status.APLICADO,
body.helios-documents-theme-v29 .status.ENTRADA,
body.helios-documents-theme-v29 .status.MANUAL_IN{background:#ecfdf3!important;color:#15803d!important}
body.helios-documents-theme-v29 .status.INACTIVE,
body.helios-documents-theme-v29 .status.RECHAZADA,
body.helios-documents-theme-v29 .status.SALIDA,
body.helios-documents-theme-v29 .status.MANUAL_OUT{background:#fef2f2!important;color:#dc2626!important}
body.helios-documents-theme-v29 .status.ENVIADA,
body.helios-documents-theme-v29 .status.EMITIDA,
body.helios-documents-theme-v29 .status.EN_TRANSITO,
body.helios-documents-theme-v29 .status.PARCIALMENTE_DESPACHADA,
body.helios-documents-theme-v29 .status.RECIBIDA_CON_RECHAZO,
body.helios-documents-theme-v29 .status.RECIBIDA_CON_DIFERENCIA{background:#fff7ed!important;color:#b45309!important}
body.helios-documents-theme-v29 .positive{color:#15803d!important}
body.helios-documents-theme-v29 .negative{color:#dc2626!important}

/* ===== Dashboard ===== */
body.helios-documents-theme-v29 .dashboard-v25{gap:16px!important}
body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero{margin:0!important;min-height:150px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
body.helios-documents-theme-v29 .v25-quick-shell{padding:18px 20px!important}
body.helios-documents-theme-v29 .v25-quick-header{margin-bottom:12px!important}
body.helios-documents-theme-v29 .v25-quick-header i{width:36px!important;height:36px!important;border-radius:10px!important;background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .v25-quick-header h2{font-size:15px!important;color:#282a36!important}
body.helios-documents-theme-v29 .v25-quick-header small{font-size:10px!important;color:#8b909c!important}
body.helios-documents-theme-v29 .v25-quick-actions{gap:10px!important}
body.helios-documents-theme-v29 .v25-quick-action{
  min-height:62px!important;padding:11px 12px!important;border:1px solid #e5e7eb!important;border-radius:12px!important;background:#fff!important;color:#424855!important;box-shadow:none!important;transform:none!important;
}
body.helios-documents-theme-v29 .v25-quick-action:hover{background:#fafaff!important;border-color:#d9d6ff!important;color:var(--helios)!important;transform:none!important}
body.helios-documents-theme-v29 .v25-quick-action>i{width:36px!important;height:36px!important;border-radius:10px!important;background:#f0efff!important;color:var(--helios)!important;font-size:16px!important}
body.helios-documents-theme-v29 .v25-quick-action strong{font-size:11.5px!important;color:#30323d!important}
body.helios-documents-theme-v29 .v25-quick-action small{font-size:9.5px!important;color:#9297a2!important}
body.helios-documents-theme-v29 .v25-purchase-flow{
  padding:13px 16px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .v25-flow-title i{color:var(--helios)!important}
body.helios-documents-theme-v29 .v25-flow-title strong{font-size:11px!important}.helios-documents-theme-v29 .v25-flow-title small{font-size:9px!important;color:#9297a2!important}
body.helios-documents-theme-v29 .v25-flow-step{padding:8px 10px!important;border-radius:9px!important;background:#f7f7fa!important;color:#656c79!important;font-size:10px!important}
body.helios-documents-theme-v29 .v25-flow-step:hover{background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-filters{padding:15px 16px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-filters label{color:#606775!important;font-size:10px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpis{gap:12px!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi{
  min-height:112px!important;padding:16px!important;border:1px solid #e2e3e9!important;border-radius:15px!important;background:#fff!important;box-shadow:0 8px 24px rgba(17,24,39,.035)!important;transform:none!important;
}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi:hover{border-color:#d8d6ff!important;box-shadow:0 9px 26px rgba(17,24,39,.045)!important;transform:none!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi>i{
  width:38px!important;height:38px!important;border-radius:11px!important;background:#efefff!important;color:var(--helios)!important;font-size:17px!important;
}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi>i.tone-success{background:#edf9f2!important;color:#15803d!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi>i.tone-danger{background:#fff0f3!important;color:#dc2626!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi small{font-size:9.5px!important;color:#868b99!important;text-transform:uppercase!important;letter-spacing:.045em!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi strong{font-size:23px!important;color:#202133!important;letter-spacing:-.03em!important}
body.helios-documents-theme-v29 .dashboard-v25 .control-kpi em{font-size:9.5px!important;color:#969aa6!important;font-style:normal!important}
body.helios-documents-theme-v29 .v25-attention-strip{gap:16px!important}
body.helios-documents-theme-v29 .dashboard-v25 .flow-panel,
body.helios-documents-theme-v29 .dashboard-v25 .task-panel{padding:18px 20px!important}
body.helios-documents-theme-v29 .task-item{border:1px solid #eff0f3!important;background:#fff!important;border-radius:10px!important}
body.helios-documents-theme-v29 .task-item:hover{background:#fafaff!important}
body.helios-documents-theme-v29 .task-item>i:first-child{background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .flow-bar.entry{background:#8f89ef!important}
body.helios-documents-theme-v29 .flow-bar.exit{background:#c4c1f7!important}
body.helios-documents-theme-v29 .flow-legend .entry{background:#8f89ef!important}
body.helios-documents-theme-v29 .flow-legend .exit{background:#c4c1f7!important}
body.helios-documents-theme-v29 .mover-rank{background:#f0efff!important;color:var(--helios)!important}

/* ===== Procurement / document forms ===== */
body.helios-documents-theme-v29 .procurement-flow-v26,
body.helios-documents-theme-v29 .procurement-form-section-v26,
body.helios-documents-theme-v29 .procurement-document-banner-v26,
body.helios-documents-theme-v29 .document-banner,
body.helios-documents-theme-v29 .document-form,
body.helios-documents-theme-v29 .document-detail-hero{
  border-color:var(--border)!important;background:#fff!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .procurement-flow-v26{border-radius:12px!important}
body.helios-documents-theme-v29 .procurement-flow-step-v26{background:#fafafa!important;border-color:#ececf1!important;color:#656c79!important;box-shadow:none!important}
body.helios-documents-theme-v29 .procurement-flow-step-v26.active{background:#f0efff!important;border-color:#d9d6ff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .procurement-flow-number-v26{background:#fff!important;border-color:#dfe1e6!important;color:#7a808b!important}
body.helios-documents-theme-v29 .procurement-flow-step-v26.active .procurement-flow-number-v26{background:var(--helios)!important;border-color:var(--helios)!important;color:#fff!important}
body.helios-documents-theme-v29 .procurement-form-section-v26{border-radius:12px!important}
body.helios-documents-theme-v29 .procurement-form-section-v26[data-procurement-step]::before{background:var(--helios)!important}
body.helios-documents-theme-v29 .procurement-form-section-v26 .section-heading>div>i{background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .document-line,
body.helios-documents-theme-v29 .procurement-products-section-v26 .document-line,
body.helios-documents-theme-v29 .operation-card{
  background:#fff!important;border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .document-line:hover,
body.helios-documents-theme-v29 .procurement-products-section-v26 .document-line:hover,
body.helios-documents-theme-v29 .operation-card:hover{background:#fafaff!important;border-color:#d9d6ff!important;box-shadow:none!important;transform:none!important}
body.helios-documents-theme-v29 .order-summary-card-v15{background:#fafaff!important;border-color:#e5e3ff!important}
body.helios-documents-theme-v29 .order-summary-grand-v15{background:#f0efff!important;color:#312e81!important}
body.helios-documents-theme-v29 .procurement-scan-v26{background:#f8f7ff!important;border-color:#d9d6ff!important}
body.helios-documents-theme-v29 .procurement-scan-v26>i{color:var(--helios)!important}

/* ===== Work / warehouse ===== */
body.helios-documents-theme-v29 .work-score,
body.helios-documents-theme-v29 .work-summary>a,
body.helios-documents-theme-v29 .work-task,
body.helios-documents-theme-v29 .work-shortcuts>a,
body.helios-documents-theme-v29 .compact-alert-list>a,
body.helios-documents-theme-v29 .exception-summary a,
body.helios-documents-theme-v29 .cycle-card{
  background:#fff!important;border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:none!important;transform:none!important;
}
body.helios-documents-theme-v29 .work-summary>a:hover,
body.helios-documents-theme-v29 .work-task:hover,
body.helios-documents-theme-v29 .work-shortcuts>a:hover,
body.helios-documents-theme-v29 .compact-alert-list>a:hover{background:#fafaff!important;border-color:#d9d6ff!important;transform:none!important}
body.helios-documents-theme-v29 .work-score>i,
body.helios-documents-theme-v29 .work-summary>a>i,
body.helios-documents-theme-v29 .work-task-icon,
body.helios-documents-theme-v29 .work-shortcuts>a>i:first-child,
body.helios-documents-theme-v29 .alert-icon{background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .scan-input{border-color:#d9d6ff!important;background:#f8f7ff!important;border-radius:12px!important}
body.helios-documents-theme-v29 .scan-input>i{color:var(--helios)!important}
body.helios-documents-theme-v29 .lookup-stocks>div{background:#fafafa!important;border:1px solid #eef0f3!important;border-radius:10px!important}
body.helios-documents-theme-v29 .location-badge{background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .cycle-guide span{background:#f8f7ff!important;border-color:#e2dfff!important}
body.helios-documents-theme-v29 .cycle-guide span i{color:var(--helios)!important}

/* ===== Admin ===== */
body.helios-documents-theme-v29 .admin-tabs{
  display:flex!important;gap:5px!important;padding:6px!important;background:#f0f1f4!important;border:1px solid #e9eaee!important;border-radius:12px!important;
}
body.helios-documents-theme-v29 .admin-tabs button{
  padding:9px 12px!important;border-radius:9px!important;color:#747b88!important;font-size:11px!important;font-weight:550!important;background:transparent!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .admin-tabs button.active{background:#fff!important;color:var(--helios)!important;font-weight:650!important;box-shadow:0 1px 3px rgba(15,23,42,.05)!important}
body.helios-documents-theme-v29 .metric-mini{padding:16px!important}
body.helios-documents-theme-v29 .metric-mini span{color:#8a909d!important;font-size:9.5px!important;font-weight:650!important}
body.helios-documents-theme-v29 .metric-mini strong{color:#222431!important;font-size:23px!important}
body.helios-documents-theme-v29 .permission-item{background:#fbfbfd!important;padding:11px!important}
body.helios-documents-theme-v29 .settings-note{background:#f8f7ff!important;color:#676b78!important;border:1px solid #e7e5ff!important}
body.helios-documents-theme-v29 .master-list>div{background:#fafafa!important;border:1px solid #f0f1f3!important}

/* ===== Modals / alerts ===== */
body.helios-documents-theme-v29 .modal-content{
  border:1px solid var(--border)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 24px 60px rgba(15,23,42,.14)!important;overflow:hidden;
}
body.helios-documents-theme-v29 .modal-header,
body.helios-documents-theme-v29 .modal-footer{padding:16px 20px!important;border-color:var(--border)!important}
body.helios-documents-theme-v29 .modal-body{padding:20px!important}
body.helios-documents-theme-v29 .modal-title{color:#252733!important;font-size:16px!important;font-weight:650!important}
body.helios-documents-theme-v29 .alert{border-radius:10px!important;font-size:12px!important}
body.helios-documents-theme-v29 .empty{color:#8d939f!important}

/* ===== Tutorial ===== */
body.helios-documents-theme-v29 .tutorial-toc,
body.helios-documents-theme-v29 .tutorial-release,
body.helios-documents-theme-v29 .tutorial-purpose,
body.helios-documents-theme-v29 .tutorial-callout,
body.helios-documents-theme-v29 .tutorial-routine,
body.helios-documents-theme-v29 .tutorial-rule-list,
body.helios-documents-theme-v29 .tutorial-faq,
body.helios-documents-theme-v29 .tutorial-finish{
  background:#fff!important;border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:none!important;
}
body.helios-documents-theme-v29 .tutorial-section-number,
body.helios-documents-theme-v29 .tutorial-step-number,
body.helios-documents-theme-v29 .tutorial-purpose-icon,
body.helios-documents-theme-v29 .tutorial-flow-card header>span,
body.helios-documents-theme-v29 .tutorial-role-grid i{background:#f0efff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .tutorial-toc a:hover{background:#f8f7ff!important;color:var(--helios)!important}
body.helios-documents-theme-v29 .tutorial-video-frame{border-radius:14px!important;border:1px solid var(--border)!important;box-shadow:none!important}

/* ===== Login copied from Helios Documents visual language ===== */
body.helios-documents-theme-v29:has(.login-page-v29){background:#f4f5f9!important}
.login-page-v29{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.login-brand-pane-v29{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:center;padding:50px;background:linear-gradient(145deg,#1f1d4d 0%,#29245f 58%,#312b77 100%);color:#fff}
.login-brand-pane-v29:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.035),transparent 46%);pointer-events:none}
.login-brand-pane-v29:after{content:"";position:absolute;right:-125px;bottom:-125px;width:360px;height:360px;border:1px solid rgba(255,255,255,.07);border-radius:50%;pointer-events:none}
.login-brand-inner-v29{position:relative;z-index:1;width:100%;max-width:610px}
.login-logo-v29{display:flex;align-items:center;gap:12px;color:#fff;font-size:18px;font-weight:700}
.login-logo-v29 .brand-mark{width:42px!important;height:42px!important;border-radius:13px!important;background:#fff!important;color:var(--helios)!important;font-size:18px!important}
.login-brand-copy-v29{margin-top:78px;max-width:540px}
.login-overline-v29,.login-form-kicker-v29{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.login-overline-v29{color:#aaa7ff}
.login-brand-copy-v29 h1{margin:14px 0 18px;color:#fff;font-size:44px;line-height:1.08;font-weight:700;letter-spacing:-.035em}
.login-brand-copy-v29 p{max-width:510px;margin:0;color:#c7c9da;font-size:16px;line-height:1.7}
.login-capabilities-v29{display:grid;gap:14px;margin-top:42px}
.login-capabilities-v29>div{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-top:1px solid rgba(255,255,255,.09)}
.login-capabilities-v29>div>span{width:36px;height:36px;border-radius:9px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;color:#c9c7ff;flex:0 0 auto}
.login-capabilities-v29 strong{display:block;color:#fff;font-size:14px}
.login-capabilities-v29 small{display:block;margin-top:3px;color:#aeb1c5;font-size:12.5px;line-height:1.5}
.login-brand-footer-v29{margin-top:42px;color:#8f93aa;font-size:12px;letter-spacing:.04em}
.login-form-pane-v29{position:relative;display:flex;align-items:center;justify-content:center;padding:40px;background:radial-gradient(circle at 50% 15%,rgba(79,70,229,.055),transparent 34%),#f7f8fb}
.login-language-v29{position:absolute;top:24px;right:26px;z-index:2}
.login-card-v29{position:relative;width:min(470px,100%);padding:34px 34px 24px;border:1px solid #e3e5ec;border-radius:22px;background:rgba(255,255,255,.98);box-shadow:0 24px 60px rgba(28,31,52,.10);overflow:hidden}
.login-card-accent-v29{position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#4f46e5,#7267f0)}
.login-card-head-v29{display:grid;grid-template-columns:48px minmax(0,1fr);gap:15px;align-items:start;margin-bottom:27px}
.login-secure-icon-v29{width:48px;height:48px;border-radius:14px;background:#efefff;color:#4f46e5;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #dfddff;font-size:19px}
.login-form-kicker-v29{margin:1px 0 5px;color:var(--helios)}
.login-card-v29 h2{margin:0;color:#161827;font-size:29px;line-height:1.15;font-weight:700;letter-spacing:-.035em}
.login-card-head-v29 p{margin:8px 0 0;color:#777f90;font-size:13px;line-height:1.55}
.login-form-v29 .form-label{margin-bottom:7px!important;color:#303443!important;font-size:12px!important;font-weight:650!important}
.login-input-v29{position:relative}
.login-input-v29>i{position:absolute;z-index:2;left:14px;top:50%;color:#9aa0ad;transform:translateY(-50%);pointer-events:none;font-size:16px}
.login-input-v29 .form-control{height:48px!important;padding:0 14px 0 43px!important;border:1px solid #dfe2e9!important;border-radius:12px!important;background:#fbfcfe!important;color:#191b28!important;font-size:13.5px!important}
.login-input-v29 .form-control:focus{border-color:#aaa5ff!important;background:#fff!important;box-shadow:0 0 0 4px rgba(79,70,229,.075)!important}
.login-input-v29:focus-within>i{color:var(--helios)}
.login-submit-v29{height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;border-radius:12px!important;box-shadow:0 10px 22px rgba(79,70,229,.20)!important}
.login-submit-v29:hover{box-shadow:0 13px 26px rgba(79,70,229,.24)!important;transform:translateY(-1px)!important}
.login-alert-v29{display:flex;align-items:flex-start;gap:9px;border-radius:12px!important;font-size:12.5px!important}
.login-card-footer-v29{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;padding-top:17px;border-top:1px solid #eef0f4;color:#9aa0ac;font-size:10.5px}
.login-card-footer-v29 span:first-child{display:flex;align-items:center;gap:6px;color:#7c8290}
.login-card-footer-v29 i{color:var(--helios)}

/* ===== Mobile inventory palette harmonization ===== */
body.mi-body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;background:#f7f8fa!important;color:#111827!important}
body.mi-body .mi-primary{background:#4f46e5!important;border-color:#4f46e5!important}
body.mi-body .mi-primary:hover{background:#4338ca!important;border-color:#4338ca!important}
body.mi-body .mi-card,body.mi-body .mi-panel{border-color:#e5e7eb!important;box-shadow:none!important}

/* ===== Responsive ===== */
@media(max-width:1200px){
  body.helios-documents-theme-v29 .content{padding:24px!important}
}
@media(max-width:760px){
  body.helios-documents-theme-v29 .sidebar{width:230px!important;transform:translateX(-100%);box-shadow:10px 0 30px rgba(15,23,42,.08)!important}
  body.helios-documents-theme-v29.nav-open .sidebar{transform:none}
  body.helios-documents-theme-v29 .main{margin-left:0!important}
  body.helios-documents-theme-v29 .topbar{height:64px!important;padding:0 14px!important}
  body.helios-documents-theme-v29 .menu{display:grid!important}
  body.helios-documents-theme-v29 .topbar-context>span{display:none!important}
  body.helios-documents-theme-v29 .topbar-context small{display:none!important}
  body.helios-documents-theme-v29 .topbar-context strong{max-width:190px!important;font-size:12px!important}
  body.helios-documents-theme-v29 .content{padding:20px 14px!important}
  body.helios-documents-theme-v29 .hero-panel,
  body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero,
  body.helios-documents-theme-v29 .work-hero,
  body.helios-documents-theme-v29 .tutorial-hero{padding:23px!important}
  body.helios-documents-theme-v29 .hero-panel h1,
  body.helios-documents-theme-v29 .dashboard-v25 .dashboard-hero h1,
  body.helios-documents-theme-v29 .work-hero h1,
  body.helios-documents-theme-v29 .tutorial-hero h1{font-size:24px!important}
  body.helios-documents-theme-v29 .directory-toolbar{align-items:flex-start!important;flex-direction:column!important}
  body.helios-documents-theme-v29 .directory-tools{width:100%!important;flex-wrap:wrap!important}
  body.helios-documents-theme-v29 .user-summary>div{display:none!important}
  body.helios-documents-theme-v29 .table-responsive{border-radius:0!important}
  body.helios-documents-theme-v29 .table,
  body.helios-documents-theme-v29 .native-table{min-width:760px}
  .login-page-v29{display:block;background:#f4f5f9}
  .login-brand-pane-v29{min-height:230px;padding:30px 34px 84px;align-items:flex-start;justify-content:center}
  .login-brand-inner-v29{max-width:720px}
  .login-brand-copy-v29{margin-top:28px;max-width:620px}
  .login-brand-copy-v29 h1{font-size:31px;margin:10px 0 9px;max-width:600px}
  .login-brand-copy-v29 p{font-size:14px;line-height:1.55;max-width:570px}
  .login-capabilities-v29,.login-brand-footer-v29{display:none}
  .login-form-pane-v29{min-height:calc(100vh - 230px);padding:0 22px 34px;align-items:flex-start;background:#f4f5f9}
  .login-language-v29{top:18px;right:18px}
  .login-card-v29{margin:-48px auto 0;z-index:2}
}
@media(max-width:430px){
  body.helios-documents-theme-v29 .content{padding:14px!important}
  body.helios-documents-theme-v29 .page-head h1{font-size:23px!important}
  body.helios-documents-theme-v29 .language-switch{padding:0 9px!important}
  .login-brand-pane-v29{min-height:195px;padding:24px 20px 67px}
  .login-logo-v29 .brand-mark{width:38px!important;height:38px!important;border-radius:11px!important}
  .login-brand-copy-v29{margin-top:21px}
  .login-brand-copy-v29 h1{font-size:25px;line-height:1.1;margin-top:8px}
  .login-brand-copy-v29 p{display:none}
  .login-form-pane-v29{min-height:calc(100vh - 195px);padding:0 14px 24px}
  .login-card-v29{margin:-38px auto 0;padding:27px 22px 20px;border-radius:18px}
  .login-card-head-v29{grid-template-columns:42px minmax(0,1fr);gap:12px;margin-bottom:23px}
  .login-secure-icon-v29{width:42px;height:42px;border-radius:12px}
  .login-card-v29 h2{font-size:25px}
  .login-card-head-v29 p{font-size:12px}
  .login-card-footer-v29{font-size:9.5px}
  .login-language-v29{top:16px;right:14px}
}
