/* V6.0.1.41.18 — visual-only theme. Original business logic unchanged. */
@media screen {
 body {
  --lg-wall:url('fondo-claro.webp');--lg-base:#f5f7f5;--lg-wash:rgba(248,250,249,.18);
  --lg-green:#ccefd8;--lg-green-ink:#164b2b;--lg-green-border:#a8d9b9;
  --lg-green-dark:#215c39;--lg-green-dark-ink:#f3fff7;--lg-green-dark-border:#1a4a2f;
  --lg-yellow:#fff0b8;--lg-yellow-ink:#624600;--lg-yellow-border:#e4ce83;
  --lg-red:#f7b8b8;--lg-red-ink:#851c25;--lg-red-border:#e39797;
  --lg-blue:#d9ebff;--lg-blue-ink:#1d4d8f;--lg-blue-border:#aecaef;
  --lg-purple:#ead8ff;--lg-purple-ink:#5f2f97;--lg-purple-border:#cdb1ef;
  --lg-whatsapp:#25d366;--lg-whatsapp-ink:#08351a;--lg-whatsapp-border:#1fb55a;
  --lg-negative:#d95c6a;
  --lg-focus:#23744a;
 }
 body.dark,html:not(.light) body.lg-team {
  --lg-wall:url('fondo-oscuro.webp');--lg-base:#101419;--lg-wash:rgba(12,17,21,.14);--lg-focus:#9be6b4;
  --lg-green-dark:#2a7347;--lg-green-dark-ink:#f3fff7;--lg-green-dark-border:#3b9860;
  --lg-negative:#ff9aa6;
 }
 body:not(.locked),body.dark:not(.locked),body.lg-team,body #gate:not([hidden]),body.dark #gate:not([hidden]) {background:linear-gradient(var(--lg-wash),var(--lg-wash)),var(--lg-wall) center / cover no-repeat,var(--lg-base)!important;}
 body:not(.locked),body.dark:not(.locked),body.lg-team {background-attachment:fixed!important;}
 body #gate .gate-brand,body.dark #gate .gate-brand {background:linear-gradient(130deg,#10191be8,#12291dde),url('fondo-oscuro.webp') center/cover!important;}
 body #gate .gate-right {background:transparent!important;}
 body:not(.locked) main section,body:not(.locked) main .card,body:not(.locked) main .em-panel,body:not(.locked) main .em-metric {border-radius:12px!important;}
 /* Give every ordinary action a stable semantic palette in both themes. */
 body button[data-lg-action],body.dark button[data-lg-action],body:not(.locked) main button[data-lg-action],body:not(.locked) main .header-actions button[data-lg-action],body:not(.locked) aside button[data-lg-action],body #gate button[data-lg-action],body.dark #gate button[data-lg-action],body #gate #loginButton[data-lg-action],body.dark #gate #loginButton[data-lg-action],body #gate #v6PasskeyLogin[data-lg-action],body.dark #gate #v6PasskeyLogin[data-lg-action],body.lg-team button[data-lg-action] {
  --lg-action-bg:var(--lg-green);--lg-action-ink:var(--lg-green-ink);--lg-action-border:var(--lg-green-border);
  background:var(--lg-action-bg)!important;color:var(--lg-action-ink)!important;border:1px solid var(--lg-action-border)!important;box-shadow:none!important;border-radius:9px!important;text-shadow:none!important;
 }
 body button[data-lg-action="edit"]{--lg-action-bg:var(--lg-yellow)!important;--lg-action-ink:var(--lg-yellow-ink)!important;--lg-action-border:var(--lg-yellow-border)!important;}
 body button[data-lg-action="delete"]{--lg-action-bg:var(--lg-red)!important;--lg-action-ink:var(--lg-red-ink)!important;--lg-action-border:var(--lg-red-border)!important;}
 body button[data-lg-action="whatsapp"]{--lg-action-bg:var(--lg-whatsapp)!important;--lg-action-ink:var(--lg-whatsapp-ink)!important;--lg-action-border:var(--lg-whatsapp-border)!important;}
 body button[data-lg-action="share"]{--lg-action-bg:var(--lg-blue)!important;--lg-action-ink:var(--lg-blue-ink)!important;--lg-action-border:var(--lg-blue-border)!important;}
 body button[data-lg-action="theme"]{--lg-action-bg:var(--lg-purple)!important;--lg-action-ink:var(--lg-purple-ink)!important;--lg-action-border:var(--lg-purple-border)!important;}
 body button[data-lg-action="notify"]{--lg-action-bg:var(--lg-yellow)!important;--lg-action-ink:var(--lg-yellow-ink)!important;--lg-action-border:var(--lg-yellow-border)!important;}
 body button[data-lg-action] .ui-icon,body button[data-lg-action] svg{color:inherit!important;}
 @media (hover:hover) and (pointer:fine){body button[data-lg-action]:not(:disabled):hover{filter:brightness(.95);}}
 body button[data-lg-action]:disabled{opacity:.5!important;cursor:not-allowed;}
 body button[data-lg-action]:focus-visible{outline:2px solid var(--lg-focus)!important;outline-offset:2px;}
 body button[data-lg-action]:not(:disabled):active{filter:brightness(.91);}
 /* Selected states should read as active/confirmed. */
 body button.active,body button[aria-selected=true],body button[aria-pressed=true],body button[aria-current=true],body .tabs button[aria-selected=true],body #mobileDock button.active,body #mobileDock button[aria-expanded=true],body:not(.locked) aside .nav-group button.active {
  background:var(--lg-green-dark)!important;color:var(--lg-green-dark-ink)!important;border-color:var(--lg-green-dark-border)!important;
 }
 body button.active .ui-icon,body button[aria-selected=true] .ui-icon,body button[aria-pressed=true] .ui-icon,body button[aria-current=true] .ui-icon,body .tabs button[aria-selected=true] .ui-icon,body #mobileDock button.active .ui-icon,body:not(.locked) aside .nav-group button.active .ui-icon{color:inherit!important;}
 /* Keep navigation readable and distinct from transactional actions. */
 body:not(.locked) aside .nav-group button,body:not(.locked) #mobileDock button{border-radius:9px!important;}
 /* Negative amounts and statuses */
 body .red,body .negative,body .fin-negative,body .fin-loss strong,body .rose-fill.negative,body .chart-kpi-content strong.red,body .value.red{color:var(--lg-negative)!important;}
 body .rose-fill.negative{background:var(--lg-negative)!important;}
 body .fin-chart-series .fin-expense{background:linear-gradient(90deg,var(--lg-red),#e78a94)!important;}
 body .fin-legend span:last-child{color:var(--lg-negative)!important;}
 /* Date inputs aligned with the rest */
 body:not(.locked) main input[type=date],body:not(.locked) dialog input[type=date],body #gate input[type=date],body.lg-team input[type=date]{
  min-height:46px;line-height:1.25;padding:10px 14px;border-radius:10px;box-sizing:border-box;width:100%;max-width:100%;min-width:0;
 }
 body:not(.locked) main input[type=date]::-webkit-calendar-picker-indicator,body:not(.locked) dialog input[type=date]::-webkit-calendar-picker-indicator,body #gate input[type=date]::-webkit-calendar-picker-indicator,body.lg-team input[type=date]::-webkit-calendar-picker-indicator{
  opacity:.8;cursor:pointer;padding:4px;margin-left:8px;border-radius:8px;
 }
 /* Team keeps its existing Rose Studio identity inside its panels. */
 body.lg-team .surface{border-radius:12px!important;box-shadow:none!important;}
}
@media screen and (max-width:800px){
 body:not(.locked),body.dark:not(.locked),body.lg-team{background-attachment:scroll!important;background-size:100% 100vh,auto 100vh!important;background-position:center top,right top!important;}
 body:not(.locked) main button[data-lg-action]{min-height:44px;}
}
@media (prefers-reduced-motion:reduce){body button[data-lg-action]{transition:none!important;}}

@media screen {
body button[data-lg-action]:is(.active,[aria-selected=true],[aria-pressed=true],[aria-current=true]){--lg-action-bg:var(--lg-green-dark)!important;--lg-action-ink:var(--lg-green-dark-ink)!important;--lg-action-border:var(--lg-green-dark-border)!important;}
body [data-lg-negative=true]{color:var(--lg-negative)!important;}
body:not(.locked) main input[type=date],body:not(.locked) dialog input[type=date],body.lg-team input[type=date]{height:48px;min-height:48px;}
body:not(.locked) main input[type=date]::-webkit-date-and-time-value,body.lg-team input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.25em;}
}

/* V6.0.1.41.22 — keep native date controls inside their form on iOS/WebKit. */
@media screen {
 body :is(main,dialog,#gate,.shell) label:has(> input[type="date"]) {
  min-width:0!important;max-width:100%!important;box-sizing:border-box;
 }
 body :is(main,dialog,#gate,.shell) input[type="date"] {
  -webkit-appearance:none!important;appearance:none!important;
  display:block!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  inline-size:100%!important;max-inline-size:100%!important;min-inline-size:0!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;
  flex:0 0 auto!important;align-self:stretch!important;
  padding:10px 11px!important;line-height:1.25!important;
  margin-inline:0!important;border-radius:10px!important;
 }
 body :is(main,dialog,#gate,.shell) input[type="date"]::-webkit-date-and-time-value {
  text-align:left;min-width:0;min-height:0;margin:0;padding:0;
 }
 body :is(main,dialog,#gate,.shell) input[type="date"]::-webkit-datetime-edit {
  min-width:0;padding:0;
 }
 body :is(main,dialog,#gate,.shell) input[type="date"]::-webkit-calendar-picker-indicator {
  margin:0;padding:0;flex-shrink:0;
 }
}
@media screen and (max-width:800px) {
 body #saleForm,body #orderForm {min-width:0;max-width:100%;box-sizing:border-box;}
 body :is(#saleForm,#orderForm) > label:has(> input[type="date"]) {width:100%!important;min-width:0!important;max-width:100%!important;}
 body :is(main,dialog,.shell) input[type="date"] {font-size:16px!important;padding:12px!important;border-radius:12px!important;}
}


/* V6.0.1.41.24 — owner theme uses body.dark, not html.light. */
@media screen {
 body:not(.dark):not(.locked) main section.profile-hero {
  background:linear-gradient(135deg,#f4fbf6,#e6f5ea 58%,#d7eedf)!important;
  color:#173927!important;border:1px solid #63a57d!important;
 }
 body:not(.dark):not(.locked) main .profile-hero::after{border-color:#3a8d5b33;box-shadow:0 0 0 20px #3a8d5b10,0 0 0 45px #3a8d5b0c}
 body:not(.dark):not(.locked) main .profile-hero .profile-heading h2{color:#163122!important}
 body:not(.dark):not(.locked) main .profile-hero .profile-heading p{color:#335846!important}
 body:not(.dark):not(.locked) main .profile-hero .profile-kicker{color:#286442!important}
 body:not(.dark):not(.locked) main .profile-hero .profile-private{background:#fff!important;color:#29553b!important;border-color:#9fd0b0!important}
 body:not(.dark):not(.locked) main .profile-hero .profile-avatar{background:#fff!important;color:#1d5b38!important;border-color:#8ac4a0!important}
 body.dark:not(.locked) main section.profile-hero{background:var(--surface)!important;color:var(--ink)!important;border:1px solid #408960!important}
 body.dark:not(.locked) main .profile-hero .profile-heading h2{color:#fff!important}
 body.dark:not(.locked) main .profile-hero .profile-heading p{color:#d4e9da!important}
 body.dark:not(.locked) main .profile-hero .profile-kicker{color:#b7edc8!important}
 body.dark:not(.locked) main .profile-hero .profile-private{background:#ffffff18!important;color:#ecfff1!important;border-color:#ffffff20!important}
}

@media (hover:none), (pointer:coarse){body button[data-lg-action]:not(:disabled):not(:active){filter:none;opacity:1;} }
