/* Portada operativa para las cuentas administradoras de JP Sistema. */
.super-mode .super-main-content:has(.super-start-panel:not(.hidden)) {
  min-height: calc(100dvh / var(--app-scale));
  background:
    radial-gradient(circle at 92% 7%, rgba(0, 221, 236, .16), transparent 24rem),
    linear-gradient(145deg, #031d30, #063d58 55%, #032638);
}

.super-mode .super-start-panel {
  width: min(1120px, 100%);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(61, 208, 229, .42);
  border-radius: 20px;
  color: #f7fdff;
  background: rgba(2, 29, 48, .8);
  box-shadow: 0 24px 54px rgba(0, 10, 23, .35);
}

.super-home-dashboard { display: grid; gap: 18px; padding: 24px; }
.super-home-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.super-home-brand,.super-home-user { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .03em; }
.super-home-brand img { width: 43px; height: 43px; object-fit: contain; border-radius: 11px; background: #e9fdff; }
.super-home-brand span { color: #6cecff; }.super-home-user { font-size: 12px; }.super-home-user-icon { display: grid; width: 33px; height: 33px; place-items: center; border: 2px solid #36dcf4; border-radius: 50%; color: #36dcf4; }

.super-home-welcome { position: relative; display: grid; min-height: 236px; grid-template-columns: minmax(0, .98fr) minmax(320px, 1.02fr); overflow: hidden; border: 1px solid rgba(62, 210, 232, .54); border-radius: 18px; background: linear-gradient(100deg, rgba(2, 22, 40, .98) 0%, rgba(3, 42, 62, .93) 54%, rgba(2, 21, 37, .68) 100%), url("img/jpsistema-login-hero.png") center right / cover no-repeat; }
.super-home-copy { position: relative; z-index: 1; grid-column: 1; grid-row: 1; display: grid; align-content: center; justify-items: start; gap: 9px; padding: 32px 42px; }.super-home-copy p { margin: 0; color: #fff; font-size: 21px; font-weight: 750; }.super-home-copy h2 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 47px); line-height: .98; letter-spacing: -.045em; }.super-home-copy small { color: #d9edf5; font-size: 15px; font-weight: 600; }.super-home-welcome-line { display: block; width: 62px; height: 3px; margin: 5px 0 1px; border-radius: 9px; background: #21e8e2; }.super-home-copy b { display: none; }
.super-home-visual { grid-column: 2; grid-row: 1; display: grid; place-items: center; align-self: center; justify-self: center; width: min(190px, 68%); aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(114, 238, 246, .42); border-radius: 50%; background: rgba(1, 30, 47, .55); box-shadow: 0 0 0 16px rgba(0, 195, 219, .07); }.super-home-visual img { width: 76%; height: 76%; object-fit: contain; border-radius: 22%; background: #eaffff; }

.super-home-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.super-home-time-card,.super-home-role-card,.super-home-phrase-card { position: relative; display: flex; align-items: center; min-width: 0; gap: 22px; overflow: hidden; border: 1px solid rgba(46, 194, 225, .45); border-radius: 18px; background: linear-gradient(125deg, rgba(2, 34, 55, .96), rgba(3, 63, 85, .86)); }.super-home-time-card,.super-home-role-card { min-height: 164px; padding: 24px 28px; }.super-home-card-icon { display: grid; width: 70px; height: 70px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #57dffc; background: linear-gradient(135deg, #07518b, #063259); font-size: 39px; font-weight: 900; }.super-home-role-card .super-home-card-icon { color: #3ff7cb; background: linear-gradient(135deg, #087469, #044a55); }.super-home-info-grid p,.super-home-phrase-card p { margin: 0 0 9px; color: #5ddbf5; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }.super-home-time-card strong { display: block; color: #fff; font-size: clamp(32px, 4vw, 53px); line-height: 1; letter-spacing: -.045em; }.super-home-time-card time { display: block; margin-top: 11px; color: #e9f7fc; font-size: 14px; font-weight: 700; text-transform: capitalize; }.super-home-role-card strong { display: block; color: #43f2cd; font-size: 39px; line-height: 1; letter-spacing: -.035em; }.super-home-role-card small { display: block; margin-top: 10px; color: #e5f5fa; font-size: 14px; font-weight: 600; }

.super-home-phrase-card { min-height: 192px; align-items: flex-start; padding: 29px 36px; background: linear-gradient(90deg, rgba(2, 30, 50, .97) 0%, rgba(3, 42, 61, .8) 50%, rgba(2, 20, 37, .26) 100%), url("img/jpsistema-login-hero.png") right 76% / cover no-repeat; }.super-home-phrase-card .super-home-card-icon { margin-top: 4px; color: #67d9ff; background: linear-gradient(135deg, #09548a, #07345d); }.super-home-phrase-card blockquote { max-width: 650px; margin: 0; color: #fff; font-size: clamp(22px, 2.4vw, 31px); font-style: italic; font-weight: 800; line-height: 1.28; letter-spacing: -.025em; }.super-home-phrase-card small { display: block; margin-top: 21px; color: #b9deed; font-size: 13px; font-weight: 650; }

@media (max-width: 900px) and (min-width: 721px) { .super-home-copy { padding: 28px; }.super-home-visual { width: 155px; }.super-home-time-card,.super-home-role-card { padding: 20px; gap: 15px; }.super-home-card-icon { width: 58px; height: 58px; font-size: 32px; } }

/* En laptops de poca altura, toda la portada entra sin exigir desplazamiento. */
@media (min-width: 721px) and (max-height: 860px) {
  .super-mode .super-main-content:has(.super-start-panel:not(.hidden)) { padding: 15px 24px 18px; }
  .super-mode .super-start-panel { border-radius: 16px; }
  .super-home-dashboard { gap: 12px; padding: 16px 18px; }
  .super-home-topbar { min-height: 33px; }.super-home-brand img { width: 33px; height: 33px; }.super-home-brand { font-size: 12px; }.super-home-user { font-size: 11px; }.super-home-user-icon { width: 27px; height: 27px; }
  .super-home-welcome { min-height: 160px; border-radius: 14px; }.super-home-copy { gap: 5px; padding: 20px 30px; }.super-home-copy p { font-size: 17px; }.super-home-copy h2 { font-size: 35px; }.super-home-copy small { font-size: 12px; }.super-home-welcome-line { width: 46px; height: 2px; margin: 3px 0; }.super-home-visual { width: 120px; box-shadow: 0 0 0 10px rgba(0, 195, 219, .07); }
  .super-home-info-grid { gap: 12px; }.super-home-time-card,.super-home-role-card { min-height: 112px; padding: 16px 20px; gap: 13px; border-radius: 14px; }.super-home-card-icon { width: 48px; height: 48px; font-size: 27px; }.super-home-info-grid p,.super-home-phrase-card p { margin-bottom: 4px; font-size: 10px; }.super-home-time-card strong { font-size: 35px; }.super-home-time-card time { margin-top: 6px; font-size: 11px; }.super-home-role-card strong { font-size: 29px; }.super-home-role-card small { margin-top: 5px; font-size: 11px; }
  .super-home-phrase-card { min-height: 128px; gap: 15px; padding: 18px 24px; border-radius: 14px; }.super-home-phrase-card .super-home-card-icon { margin-top: 0; }.super-home-phrase-card blockquote { font-size: 21px; line-height: 1.2; }.super-home-phrase-card small { margin-top: 9px; font-size: 11px; }
}

@media (max-width: 720px) {
  .super-mode .super-main-content:has(.super-start-panel:not(.hidden)) { min-height: calc(100dvh - 70px); padding: 12px 12px 20px; background: linear-gradient(155deg, #031b2d, #064762 58%, #03263a); }
  .super-mode .super-start-panel { width: 100%; margin: 0; border-radius: 17px; }.super-home-dashboard { gap: 12px; padding: 13px; }.super-home-topbar { display: none; }
  .super-home-welcome { display: flex; min-height: 0; flex-direction: column; padding: 0; border-radius: 14px; background: linear-gradient(165deg, rgba(4, 59, 81, .89), rgba(2, 24, 42, .98)), url("img/jpsistema-login-hero.png") center / cover; }.super-home-visual { order: 1; width: 108px; margin: 23px auto 0; box-shadow: 0 0 0 10px rgba(0, 195, 219, .08); }.super-home-copy { order: 2; display: grid; justify-items: center; gap: 7px; padding: 18px 18px 23px; text-align: center; }.super-home-copy p { font-size: 18px; }.super-home-copy h2 { font-size: 31px; }.super-home-copy small { font-size: 12px; line-height: 1.4; }.super-home-copy b { display: inline-flex; margin-top: 5px; padding: 6px 13px; border-radius: 999px; color: #4ff4d2; background: rgba(11, 157, 134, .22); font-size: 11px; letter-spacing: .09em; }
  .super-home-info-grid { display: block; }.super-home-time-card { min-height: 124px; padding: 18px; gap: 14px; border-radius: 14px; }.super-home-role-card { display: none; }.super-home-card-icon { width: 51px; height: 51px; font-size: 29px; }.super-home-info-grid p,.super-home-phrase-card p { margin-bottom: 5px; font-size: 10px; }.super-home-time-card strong { font-size: 34px; }.super-home-time-card time { margin-top: 7px; font-size: 11px; }
  .super-home-phrase-card { min-height: 185px; gap: 13px; padding: 20px 18px; border-radius: 14px; background: linear-gradient(100deg, rgba(2, 31, 51, .96), rgba(3, 45, 63, .72)), url("img/jpsistema-login-hero.png") 70% center / cover; }.super-home-phrase-card .super-home-card-icon { width: 51px; height: 51px; font-size: 30px; }.super-home-phrase-card blockquote { font-size: 18px; line-height: 1.3; }.super-home-phrase-card small { margin-top: 15px; font-size: 11px; }
}

.super-mobile-menu-button,.super-mobile-menu-backdrop { display: none; }

@media (max-width: 720px) {
  .super-mode .topbar { position: relative; z-index: 52; padding-left: 65px; }
  .super-mode .super-mobile-menu-button { position: absolute; z-index: 2; top: 50%; left: 14px; display: grid; width: 38px; height: 38px; place-content: center; gap: 5px; padding: 0; transform: translateY(-50%); border: 1px solid #cfe4eb; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(14, 48, 72, .1); }
  .super-mode .super-mobile-menu-button span { display: block; width: 18px; height: 2px; border-radius: 99px; background: #087f91; transition: transform .18s ease, opacity .18s ease; }
  .super-mode.super-mobile-menu-open .super-mobile-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .super-mode.super-mobile-menu-open .super-mobile-menu-button span:nth-child(2) { opacity: 0; }
  .super-mode.super-mobile-menu-open .super-mobile-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .super-mode .super-mobile-menu-backdrop { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; background: rgba(1, 18, 32, .2); transition: opacity .18s ease; }
  .super-mode.super-mobile-menu-open .super-mobile-menu-backdrop { opacity: 1; pointer-events: auto; }
  .super-mode .super-sidebar { top: calc(73px + env(safe-area-inset-top)); right: auto; bottom: auto; left: 12px; z-index: 50; display: block; width: min(278px, calc(100dvw - 24px)); min-height: 0; max-height: calc(100dvh - 92px - env(safe-area-inset-top)); padding: 13px 10px; overflow-y: auto; transform: translateX(calc(-100% - 20px)); border: 1px solid rgba(94, 226, 237, .3); border-radius: 15px; color: #eafaff; opacity: 0; pointer-events: none; background: linear-gradient(160deg, #063c55, #032a42); box-shadow: 0 18px 36px rgba(0, 11, 26, .32); transition: transform .2s ease, opacity .2s ease; }
  .super-mode.super-mobile-menu-open .super-sidebar { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .super-mode .super-sidebar-brand { display: flex; padding: 4px 8px 15px; border-bottom: 1px solid rgba(199, 243, 247, .16); }.super-mode .super-sidebar-help { display: none; }
  .super-mode .super-nav { display: grid; grid-template-columns: 1fr; gap: 5px; padding-top: 12px; }.super-mode .super-nav-button { min-height: 47px; justify-content: flex-start; gap: 11px; padding: 0 12px; color: #dcf5fb; border-radius: 10px; font-size: 13px; text-align: left; }.super-mode .super-nav-button span { width: 21px; color: #79deee; font-size: 20px; }.super-mode .super-nav-button.active { color: #fff; background: linear-gradient(115deg, #087f89, #08a6af); }.super-mode .super-nav-button.active span { color: #fff; }
  .super-mode .super-main-content { padding-bottom: 22px; }
}

/* La administración conserva la marca principal en móvil y libera espacio para el catálogo. */
@media (max-width: 720px) {
  .app-shell.administration-workspace .business-identity { display: none; }
  .app-shell.administration-workspace .topbar { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; }
  .app-shell.administration-workspace .pos-layout,
  .app-shell.administration-workspace .inventory-panel,
  .app-shell.administration-workspace #productGrid.product-grid { min-width: 0; }
  .app-shell.administration-workspace #productGrid.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell.administration-workspace #productGrid .product-card { min-width: 0; }
  .app-shell.administration-workspace #productGrid .product-name,
  .app-shell.administration-workspace #productGrid .product-barcode { overflow-wrap: anywhere; }
}

/* En pantallas compactas el catálogo ocupa una columna completa sin recortar acciones ni texto. */
@media (max-width: 430px) {
  .app-shell.administration-workspace .pos-layout,
  .app-shell.administration-workspace .inventory-panel { overflow-x: clip; }
  .app-shell.administration-workspace #productGrid.product-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-shell.administration-workspace #productGrid .product-image { min-height: 138px; max-height: 160px; }
  .app-shell.administration-workspace #productGrid .product-body { min-width: 0; padding: 12px; }
}
