﻿:root {
  --brand-primary: #0064a9;
  --brand-secondary: #00b0e9;
  --brand-white: #ffffff;
  --brand-gray: #a2a2a2;
  --ink: #173d57;
  --line: rgba(0, 100, 169, 0.14);
  --glass: rgba(255, 255, 255, 0.38);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.68);
  --shadow-soft: 0 10px 28px rgba(7, 73, 118, 0.12);
  --shadow-card: 0 8px 20px rgba(5, 66, 107, 0.08);
}

#system360-app {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#system360-app * {
  box-sizing: border-box;
  font-family: "Segoe UI", "Poppins", Tahoma, Geneva, Verdana, sans-serif;
}

.s360-app {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(75% 120% at 8% 0%, rgba(0, 176, 233, 0.58), transparent 62%),
    radial-gradient(68% 100% at 100% 10%, rgba(0, 100, 169, 0.55), transparent 60%),
    linear-gradient(145deg, #edf7fd 0%, #e3f0f9 45%, #eef7fc 100%);
}

.s360-login {
  max-width: 440px;
  margin: 84px auto;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 44px rgba(0, 67, 111, 0.18);
  animation: fadeUp .35s ease;
}
.s360-login h2 { margin: 0 0 8px; font-size: 30px; color: var(--brand-primary); }
.s360-login p { margin: 0 0 20px; color: #3f6a87; }

.s360-login-shell {
  width: min(1120px, calc(100vw - 80px));
  min-height: min(640px, calc(100dvh - 120px));
  margin: 56px auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 28px 50px rgba(0,67,111,.18);
  background: rgba(240,248,254,.7);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 1fr 0.88fr;
}

.s360-login-hero {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 28px 28px 24px;
  color: #fff;
  background:
    radial-gradient(45% 40% at 80% 10%, rgba(255,255,255,.2), transparent 70%),
    radial-gradient(28% 26% at 18% 82%, rgba(255,255,255,.16), transparent 80%),
    linear-gradient(155deg, #02a0db 0%, #007fc0 46%, #005898 100%);
}

.s360-login-brand h2 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}
.s360-login-brand p {
  margin: 0;
  font-size: 16px;
  opacity: .94;
  color: #dff4ff;
}

.s360-login-hero-art {
  display: grid;
  place-items: center;
  padding: 10px 0;
}
.s360-login-hero-art img {
  width: min(96%, 540px);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,22,44,.28));
}

.s360-login-foot {
  font-size: 15px;
  color: #e9f9ff;
  opacity: .95;
}

.s360-login-form-wrap {
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(244,248,252,.9);
}

.s360-login-form-card {
  width: min(420px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(0,100,169,.12);
  background: rgba(255,255,255,.84);
  box-shadow: 0 14px 32px rgba(0,67,111,.08);
  padding: 30px 26px 24px;
}
.s360-login-form-card h3 {
  margin: 0 0 8px;
  font-size: 56px;
  line-height: 1;
  color: #0f2f4b;
}
.s360-login-form-card p {
  margin: 0 0 18px;
  color: #5a7790;
  font-size: 14px;
}
.s360-login-form-card label {
  display: block;
  font-size: 13px;
  color: #1f4460;
  font-weight: 700;
  margin: 0 0 8px;
}

.s360-login-form-card #s360-u,
.s360-login-form-card #s360-p {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,100,169,.2);
  background: rgba(245,250,254,.96);
}

.s360-login-form-card #s360-login-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
}
.s360-login-form-card #s360-login-btn:disabled {
  cursor: wait;
  opacity: .9;
  filter: saturate(.88);
}
.s360-login-form-card #s360-login-btn.is-loading {
  box-shadow: 0 10px 18px rgba(0, 100, 169, .22);
}
.s360-login-loading {
  margin-top: 8px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.s360-login-loader {
  width: 34px;
  height: 34px;
  border-width: 3px;
}
.s360-login-loading-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f537f;
  text-align: center;
}

.s360-login-status {
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.16);
  min-height: 40px;
  padding: 10px 12px;
  font-size: 13px;
  color: #4e6f8a;
  background: rgba(238,246,253,.9);
}

.s360-login input,
.s360-select,
.s360-input,
.s360-textarea {
  width: 100%;
  border: 1px solid rgba(0, 100, 169, 0.2);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #18374f;
}

.s360-shell {
  width: calc(100vw - 32px);
  height: calc(100dvh - 32px);
  margin: 16px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.16));
  backdrop-filter: blur(7px);
  box-shadow: 0 16px 36px rgba(0, 88, 146, 0.12);
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  position: relative;
  transition: gap .34s cubic-bezier(.22,.61,.36,1);
}
.s360-workarea {
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  transition: grid-template-columns .34s cubic-bezier(.22,.61,.36,1), gap .34s cubic-bezier(.22,.61,.36,1);
}
.s360-shell.collapsed .s360-workarea { grid-template-columns: 92px minmax(0, 1fr); }

.s360-sidebar {
  border-radius: 16px;
  color: var(--brand-white);
  background: linear-gradient(180deg, #045792 0%, #0064a9 42%, #008fca 100%);
  border: 1px solid rgba(255,255,255,.24);
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 67, 111, 0.3);
  transform: translateX(0);
  transition: border-radius .34s cubic-bezier(.22,.61,.36,1), box-shadow .34s cubic-bezier(.22,.61,.36,1), transform .34s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.s360-sidebar-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 10px 4px;
  min-height: 76px;
}

.s360-brand {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 12px 8px 8px;
  text-shadow: 0 5px 12px rgba(0,0,0,.25);
  flex: 0 0 auto;
  width: 100%;
  height: 38px;
  position: relative;
  overflow: hidden;
}
.s360-brand-full,
.s360-brand-short {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .26s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}
.s360-brand-full {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.s360-brand-short {
  opacity: 0;
  transform: translateY(6px) scale(.9);
}

.s360-side-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.18);
  color: #eaf7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), background .2s ease, box-shadow .2s ease;
}
.s360-side-toggle .s360-svg-icon {
  width: 13px;
  height: 13px;
}
.s360-side-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.28);
  box-shadow: 0 8px 16px rgba(0,0,0,.16);
}

.s360-nav { padding: 10px; display: grid; gap: 8px; }
.s360-nav-item {
  border: 0;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  color: #eaf7ff;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease, width .28s cubic-bezier(.22,.61,.36,1), padding .28s cubic-bezier(.22,.61,.36,1);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  min-height: 42px;
}
.s360-nav-item > span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 170px;
  opacity: 1;
  transform: translateX(0);
  transition: max-width .24s ease, opacity .2s ease, transform .24s cubic-bezier(.22,.61,.36,1);
}
.s360-nav-item .s360-svg-icon {
  flex: 0 0 auto;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.s360-nav-item .material-symbols-outlined { display: none; }
.s360-nav-item:hover {
  background: rgba(255,255,255,.16);
  transform: translateX(2px);
}
.s360-nav-item.active {
  background: linear-gradient(90deg, rgba(255,255,255,.33), rgba(255,255,255,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 10px 20px rgba(0, 32, 52, 0.16);
}
.s360-sub-item { margin-left: 8px; font-size: 13px; opacity: .96; }

.s360-submenu-wrap {
  display: grid;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .34s cubic-bezier(.22,.61,.36,1), opacity .24s ease, transform .28s ease;
}
.s360-submenu-wrap.open {
  max-height: 340px;
  opacity: 1;
  transform: translateY(0);
}
.s360-chevron {
  display: inline-block;
  margin-left: 4px;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.s360-chevron.open {
  transform: rotate(90deg);
}

.s360-shell.collapsed .s360-nav-item > span {
  max-width: 0;
  opacity: 0;
  transform: translateX(6px);
}
.s360-shell.collapsed .s360-nav-item i { margin: 0 auto; }
.s360-shell.collapsed .s360-brand-full {
  opacity: 0;
  transform: translateY(-6px) scale(.94);
}
.s360-shell.collapsed .s360-brand-short {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.s360-shell.collapsed .s360-sidebar-head {
  justify-content: flex-start;
  padding: 10px 10px 4px;
}
.s360-shell.collapsed .s360-nav {
  justify-items: center;
}
.s360-shell.collapsed .s360-submenu-wrap {
  max-height: 0 !important;
  opacity: 0;
  transform: translateY(-8px);
}
.s360-shell.collapsed .s360-nav-item {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 11px;
  justify-content: center;
  margin: 0 auto;
}
.s360-shell.collapsed .s360-nav-item .s360-svg-icon {
  transform: scale(1.03);
}
.s360-shell.collapsed .s360-sub-item {
  display: none;
}

.s360-shell.collapsed .s360-sidebar {
  transform: translateX(-1px);
}

.s360-shell:not(.collapsed) .s360-sidebar {
  animation: s360SidebarSlideIn .34s cubic-bezier(.22,.61,.36,1);
}

.s360-shell:not(.collapsed) .s360-sidebar .s360-brand,
.s360-shell:not(.collapsed) .s360-sidebar .s360-side-toggle,
.s360-shell:not(.collapsed) .s360-sidebar .s360-nav-item,
.s360-shell:not(.collapsed) .s360-sidebar .s360-submenu-wrap.open .s360-sub-item {
  animation: s360RiseSoft .28s ease both;
}

.s360-shell:not(.collapsed) .s360-sidebar .s360-brand { animation-delay: .03s; }
.s360-shell:not(.collapsed) .s360-sidebar .s360-side-toggle { animation-delay: .06s; }
.s360-shell:not(.collapsed) .s360-sidebar .s360-nav-item:nth-child(1) { animation-delay: .08s; }
.s360-shell:not(.collapsed) .s360-sidebar .s360-nav-item:nth-child(2) { animation-delay: .11s; }
.s360-shell:not(.collapsed) .s360-sidebar .s360-nav-item:nth-child(4) { animation-delay: .14s; }
.s360-shell:not(.collapsed) .s360-sidebar .s360-nav-item:nth-child(5) { animation-delay: .17s; }

.s360-toggle-icon-stack {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
}
.s360-toggle-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .24s ease;
}
.s360-toggle-icon.menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.s360-toggle-icon.close {
  opacity: 0;
  transform: rotate(-90deg) scale(.8);
}
.s360-toggle-icon-stack.is-expanded .s360-toggle-icon.menu {
  opacity: 0;
  transform: rotate(90deg) scale(.8);
}
.s360-toggle-icon-stack.is-expanded .s360-toggle-icon.close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.s360-main {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-right: 0;
}

.s360-content-scroll {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: auto;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-top: 2px;
  scrollbar-gutter: stable both-edges;
}

.s360-topbar {
  background: var(--panel);
  border: 1px solid rgba(0, 100, 169, 0.14);
  border-radius: 14px;
  padding: 6px 12px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 20;
}
.s360-topbar-global {
  width: 100%;
}
.s360-right { display: flex; align-items: center; gap: 10px; }
.s360-icon-wrap { position: relative; }

.s360-top-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.s360-title-text {
  font-size: 24px;
  font-weight: 700;
  color: #0c3f67;
  line-height: 1;
  letter-spacing: .1px;
}

.s360-badge {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  color: var(--brand-primary);
  border: 1px solid rgba(0,100,169,.22);
  background: rgba(255,255,255,.65);
}

.s360-icon-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(0, 100, 169, 0.2);
  background: rgba(255,255,255,.9);
  color: #0a4d7d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.s360-icon-btn .material-symbols-outlined { display: none; }
.s360-svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s360-fallback { display: none !important; }
.s360-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0,100,169,.16);
  background: #fff;
}
.s360-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.s360-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2200;
  width: min(390px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  border-radius: 14px;
  border: 1px solid rgba(0, 100, 169, 0.2);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  overflow: hidden;
}

.s360-dropdown h4 {
  margin: 0 0 8px;
  color: #0d486f;
  font-size: 13px;
}

.s360-drop-list {
  display: grid;
  gap: 6px;
}

.s360-drop-item {
  border: 1px solid rgba(0, 100, 169, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  color: #1f4f6c;
}

.s360-notif-panel {
  width: 100%;
  max-width: 100%;
  max-height: min(520px, calc(100dvh - 140px));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  box-sizing: border-box;
}

.s360-notif-card {
  border: 1px solid rgba(0, 100, 169, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.s360-notif-title {
  font-weight: 700;
  color: #0f3f61;
  font-size: 17px;
  margin-bottom: 4px;
}

.s360-notif-desc {
  color: #355f79;
  font-size: 14px;
  margin-bottom: 8px;
}

.s360-notif-footer {
  display: flex;
  justify-content: flex-end;
}

.s360-notif-read {
  border: 1px solid rgba(0, 100, 169, 0.24);
  background: #eaf6ff;
  color: #005c96;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.s360-notif-card.is-read {
  opacity: .6;
}

@media (max-width: 680px) {
  .s360-dropdown {
    right: 0;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  .s360-notif-panel {
    max-height: calc(100dvh - 120px);
  }
}

.s360-drop-actions {
  display: grid;
  gap: 6px;
}

.s360-drop-btn {
  text-align: left;
  border: 1px solid rgba(0, 100, 169, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #0b4f7f;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.s360-drop-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0, 100, 169, 0.14);
  background: #f2fbff;
}
.s360-drop-btn.danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.24);
  background: #fff7f7;
}

.s360-live-time {
  border: 1px solid rgba(0,100,169,.2);
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 10px;
  font-size: 11px;
  color: #0b5b92;
  min-width: 98px;
  text-align: center;
}
.s360-live-time .s360-svg-icon {
  width: 14px;
  height: 14px;
}
.s360-live-time.is-normal {
  color: #0b5b92;
  border-color: rgba(0,100,169,.2);
  background: rgba(255,255,255,.88);
}
.s360-live-time.is-break-green {
  color: #0f7a3d;
  border-color: rgba(34,197,94,.45);
  background: rgba(220,252,231,.95);
}
.s360-live-time.is-break-red {
  color: #b91c1c;
  border-color: rgba(239,68,68,.45);
  background: rgba(254,226,226,.95);
  animation: pulseRed 1s ease-in-out infinite;
}
.s360-call-top-pill {
  --s360-call-progress: 0deg;
  --s360-call-color: hsl(120 82% 46%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 100, 169, 0.2);
  background: rgba(255,255,255,.9);
  color: #0b5b92;
  padding: 3px 10px 3px 5px;
  min-width: 106px;
}
.s360-call-top-ring {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: conic-gradient(var(--s360-call-color) var(--s360-call-progress), rgba(12, 70, 111, 0.18) 0);
  position: relative;
}
.s360-call-top-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
}
.s360-call-top-pill strong {
  font-size: 11px;
  letter-spacing: .2px;
  color: #0d4f79;
}
.s360-live-datetime {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 100, 169, 0.24);
  background: rgba(255, 255, 255, 0.74);
  color: #165178;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.2); }
  100% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.s360-clock-grid {
  display: grid;
  gap: 8px;
}
.s360-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(0, 100, 169, 0.18);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  padding: 8px 10px;
  cursor: pointer;
  transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.s360-clock-row:hover {
  transform: translateY(-1px);
  border-color: rgba(0,176,233,.42);
  box-shadow: 0 8px 14px rgba(0,100,169,.14);
}
.s360-clock-row:active {
  transform: translateY(0) scale(.99);
}
.s360-clock-row:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.s360-clock-row.is-on {
  background: linear-gradient(90deg, rgba(0,176,233,.14), rgba(255,255,255,.92));
  border-color: rgba(0,176,233,.44);
}
.s360-clock-row.just-changed {
  animation: s360ClockPulse .6s ease;
}
.s360-clock-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d4f6b;
  font-size: 13px;
  font-weight: 600;
}
.s360-clock-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}
.s360-clock-icon.green { background: #16a34a; }
.s360-clock-icon.orange { background: #f59e0b; }
.s360-clock-icon.yellow { background: #fbbf24; color: #3f3f46; }
.s360-clock-icon.red { background: #ef4444; }
@keyframes s360ClockPulse {
  0% { box-shadow: 0 0 0 0 rgba(0,176,233,.28); }
  100% { box-shadow: 0 0 0 10px rgba(0,176,233,0); }
}

.s360-clock-dropdown {
  width: min(320px, calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  padding: 8px !important;
}
.s360-clock-dropdown h4 {
  margin: 0 0 6px;
  font-size: 12px;
}
.s360-clock-dropdown .s360-clock-grid {
  gap: 6px;
}
.s360-clock-dropdown .s360-clock-row {
  padding: 7px 9px;
  border-radius: 11px;
  min-height: 38px;
}
.s360-clock-dropdown .s360-clock-left {
  gap: 7px;
  font-size: 12px;
}
.s360-clock-dropdown .s360-clock-icon {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.s360-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 16px;
}
.s360-home-kpis {
  gap: 18px;
  margin-bottom: 18px;
}
.s360-home-kpis .s360-card {
  min-height: 90px;
}
.s360-card-clickable,
.s360-panel-clickable {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.s360-card-clickable:hover,
.s360-panel-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(0,176,233,.42);
  box-shadow: 0 14px 26px rgba(0,100,169,.16);
}
.s360-card-clickable:focus-visible,
.s360-panel-clickable:focus-visible {
  outline: 2px solid rgba(0,176,233,.55);
  outline-offset: 2px;
}
.s360-panel-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.s360-panel-headline h3 {
  margin: 0;
}
.s360-link-btn {
  border: 1px solid rgba(0,100,169,.2);
  background: rgba(255,255,255,.78);
  color: #0f4f7b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.s360-link-btn:hover {
  border-color: rgba(0,176,233,.5);
  background: rgba(0,176,233,.1);
}
.s360-home-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 16px;
  align-items: start;
}
.s360-home-left,
.s360-home-center,
.s360-home-right {
  display: grid;
  gap: 14px;
  align-content: start;
}
.s360-profile-card { text-align: center; }
.s360-avatar {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0064a9, #00b0e9);
  box-shadow: 0 14px 24px rgba(0,100,169,.24);
}
.s360-profile-card h4 {
  margin: 0;
  font-size: 22px;
  color: #123f5d;
}
.s360-profile-card p {
  margin: 2px 0 10px;
  color: #5a7a92;
  font-size: 13px;
}
.s360-profile-meta { display: grid; gap: 8px; }
.s360-profile-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.14);
  background: rgba(255,255,255,.66);
}
.s360-profile-meta span { font-size: 12px; color: #50718a; }
.s360-profile-meta strong { font-size: 13px; color: #0f4d77; }
.s360-upcoming { display: grid; gap: 8px; }
.s360-up-item {
  border: 1px solid rgba(0,100,169,.15);
  background: rgba(255,255,255,.76);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}
.s360-up-item strong { font-size: 13px; color: #0f4a73; }
.s360-up-item span { font-size: 12px; color: #5b7990; }
.s360-hcal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.s360-hcal-head strong {
  font-size: 16px;
  color: #0e4a73;
  text-transform: capitalize;
}
.s360-hcal-weekdays,
.s360-hcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.s360-hcal-weekdays span {
  text-align: center;
  font-size: 11px;
  color: #5b7890;
  font-weight: 700;
  padding: 6px 0;
}
.s360-hcal-cell {
  min-height: 40px;
  border: 1px solid rgba(0,100,169,.12);
  border-right: 0;
  border-bottom: 0;
  padding: 4px;
  display: grid;
  align-content: space-between;
  justify-items: end;
}
.s360-hcal-grid .s360-hcal-cell:nth-child(7n) { border-right: 1px solid rgba(0,100,169,.12); }
.s360-hcal-grid .s360-hcal-cell:nth-last-child(-n+7) { border-bottom: 1px solid rgba(0,100,169,.12); }
.s360-hcal-cell span { font-size: 12px; color: #365f7c; }
.s360-hcal-cell i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0064a9, #00b0e9);
  border-radius: 999px;
  padding: 1px 6px;
}
.s360-hcal-cell.today { background: rgba(0,176,233,.12); }
.s360-hcal-cell.busy { background: rgba(0,100,169,.08); }
.s360-hcal-cell.muted { background: rgba(0,100,169,.04); }

.s360-shortcuts {
  display: grid;
  gap: 10px;
}
.s360-shortcut {
  border: 1px solid rgba(0,100,169,.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.78);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.s360-shortcut strong {
  display: block;
  font-size: 14px;
  color: #0f4c77;
  margin-bottom: 2px;
}
.s360-shortcut span {
  font-size: 12px;
  color: #5b7b91;
}
.s360-shortcut:hover {
  transform: translateY(-1px);
  border-color: rgba(0,176,233,.45);
  box-shadow: 0 10px 18px rgba(0,100,169,.12);
}

.s360-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1e4f6d;
}

.s360-predictivo-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.s360-predictivo-cred {
  padding: 0;
  overflow: hidden;
}
.s360-predictivo-hero {
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px;
  margin: 14px 14px 0;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(140deg, #0064a9 0%, #00b0e9 100%);
  box-shadow: 0 12px 22px rgba(0,100,169,.18);
}
.s360-predictivo-hero.female {
  background: linear-gradient(140deg, #0090c9 0%, #00b0e9 45%, #5bb3ff 100%);
}
.s360-predictivo-hero.male {
  background: linear-gradient(140deg, #005d9c 0%, #007fc2 45%, #00a8e2 100%);
}
.s360-predictivo-hero.is-calling {
  overflow: visible;
  --s360-call-progress: 0deg;
  --s360-call-color: hsl(120 82% 46%);
}
.s360-predictivo-call-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  background: conic-gradient(var(--s360-call-color) var(--s360-call-progress), rgba(255,255,255,.24) 0);
  z-index: -1;
  pointer-events: none;
}
.s360-predictivo-call-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(2, 24, 40, 0.34);
  color: #fff;
  z-index: 3;
}
.s360-predictivo-call-badge .s360-svg-icon {
  width: 12px;
  height: 12px;
}
.s360-predictivo-call-badge strong {
  font-size: 11px;
  letter-spacing: .2px;
}
.s360-predictivo-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.22);
  display: grid;
  place-items: center;
  font-size: 62px;
  font-weight: 700;
  text-shadow: 0 8px 18px rgba(0,0,0,.24);
}
.s360-predictivo-hero-photo {
  width: min(94%, 320px);
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}
.s360-predictivo-hero-name {
  font-size: 24px;
  font-weight: 800;
}
.s360-predictivo-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.s360-predictivo-body h3 {
  margin: 0;
  font-size: 24px;
  color: #0f4870;
}
.s360-predictivo-lines {
  display: grid;
  gap: 7px;
}
.s360-predictivo-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.13);
  background: rgba(255,255,255,.75);
}
.s360-predictivo-lines span {
  font-size: 12px;
  color: #5a7a91;
}
.s360-predictivo-lines strong {
  font-size: 13px;
  color: #114c76;
  text-align: right;
}
.s360-predictivo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s360-predictivo-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.s360-predictivo-mini > div {
  border: 1px solid rgba(0,100,169,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  padding: 8px 10px;
}
.s360-predictivo-mini span {
  display: block;
  font-size: 11px;
  color: #5a7a91;
}
.s360-predictivo-mini strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #0f4f7a;
}
.s360-predictivo-form {
  display: grid;
  gap: 8px;
}
.s360-pred-call-btn {
  min-width: 130px;
}
.s360-btn.s360-pred-call-btn {
  background: linear-gradient(135deg, #1f9d4d, #22c55e) !important;
  border-color: rgba(22, 126, 61, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(20, 132, 62, 0.28) !important;
}
.s360-btn.s360-pred-call-btn:disabled {
  opacity: 0.9;
  cursor: wait;
  filter: saturate(.86);
}

.s360-agenda-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.s360-agenda-toolbar h3 {
  margin: 0;
}
.s360-agenda-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.s360-agenda-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 14px;
}
.s360-agenda-layout.is-detail {
  grid-template-columns: minmax(0, 1fr);
}
.s360-agenda-calendar-panel {
  padding: 12px;
}
.s360-agenda-cal-head {
  margin-bottom: 8px;
}
.s360-agenda-cal-head strong {
  font-size: 17px;
  color: #0f4e79;
  text-transform: capitalize;
}
.s360-agenda-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 6px;
}
.s360-agenda-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #5b7890;
}
.s360-agenda-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.s360-agenda-day {
  min-height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.14);
  background: rgba(255,255,255,.78);
  display: grid;
  justify-items: end;
  align-content: space-between;
  padding: 6px;
  cursor: pointer;
  transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease;
}
.s360-agenda-day:hover {
  transform: translateY(-1px);
  border-color: rgba(0,176,233,.45);
  box-shadow: 0 8px 14px rgba(0,100,169,.12);
}
.s360-agenda-day.empty {
  cursor: default;
  opacity: .5;
}
.s360-agenda-day.today {
  background: rgba(0,176,233,.14);
}
.s360-agenda-day span {
  font-size: 12px;
  color: #355f7d;
}
.s360-agenda-day i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0064a9, #00b0e9);
  border-radius: 999px;
  padding: 1px 6px;
}
.s360-agenda-day-view {
  border: 1px solid rgba(0, 100, 169, 0.14);
  border-radius: 12px;
  overflow: hidden;
}
.s360-agenda-hour-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  border-top: 1px solid rgba(0, 100, 169, 0.08);
  min-height: 40px;
}
.s360-agenda-hour-row:first-child {
  border-top: 0;
}
.s360-agenda-hour-row.has-items {
  background: linear-gradient(90deg, rgba(0, 176, 233, 0.09), rgba(255, 255, 255, 0.92));
}
.s360-agenda-hour-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #3f6782;
  border-right: 1px solid rgba(0, 100, 169, 0.1);
  background: rgba(240, 247, 253, 0.78);
}
.s360-agenda-hour-items {
  padding: 6px 8px;
  display: grid;
  gap: 4px;
  align-content: center;
}
.s360-agenda-hour-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 100, 169, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 4px 8px;
  font-size: 12px;
  color: #144763;
}
.s360-agenda-hour-item strong {
  color: #0d4f78;
  font-size: 11px;
  min-width: 44px;
}
.s360-agenda-hour-empty {
  font-size: 11px;
  color: #6b8397;
}
.s360-agenda-week-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 8px;
}
.s360-agenda-week-col {
  border: 1px solid rgba(0, 100, 169, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.s360-agenda-week-day-btn {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 100, 169, 0.12);
  background: rgba(234, 245, 252, 0.92);
  color: #0d507a;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  padding: 8px 6px;
  cursor: pointer;
}
.s360-agenda-week-items {
  padding: 8px;
  display: grid;
  gap: 6px;
  min-height: 72px;
}
.s360-agenda-week-item {
  border: 1px solid rgba(0, 100, 169, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 7px;
  font-size: 12px;
  color: #174b68;
  display: grid;
  gap: 1px;
}
.s360-agenda-week-item strong {
  font-size: 11px;
  color: #0f5581;
}
@media (max-width: 1200px) {
  .s360-agenda-week-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .s360-agenda-week-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .s360-agenda-hour-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}
.s360-grid-admin {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}
.s360-card,
.s360-panel {
  background: var(--panel-soft);
  border: 1px solid rgba(0, 100, 169, 0.13);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.s360-card { padding: 14px; animation: fadeUp .28s ease; }
.s360-card .k { color: #5a809a; font-size: 12px; }
.s360-card .v { margin-top: 6px; font-size: 28px; font-weight: 700; color: #0b578d; }
.s360-panel { padding: 18px; animation: fadeUp .28s ease; margin-bottom: 12px; }
.s360-panel h3 {
  margin: 0 0 14px;
}

.s360-flex { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.s360-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }

.s360-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s360-table th, .s360-table td {
  border-bottom: 1px solid rgba(0, 100, 169, 0.12);
  padding: 10px 10px;
  text-align: left;
}
.s360-table th { color: #21536f; background: rgba(0, 176, 233, 0.08); }

.s360-muted { color: #5f8096; font-size: 12px; }
.s360-error { color: #b91c1c; font-size: 13px; margin: 8px 0; }
.s360-ok { color: #0f766e; font-size: 13px; margin: 8px 0; }

.s360-timeline {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.s360-time-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0,100,169,.18);
  padding-left: 4px;
}

.s360-time-tab {
  position: relative;
  border: 1px solid rgba(0,100,169,.2);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(223,239,250,.85));
  color: #2a5270;
  padding: 10px 16px 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-right: -1px;
  transform: translateY(1px);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.s360-time-tab:hover {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0,100,169,.12);
}
.s360-time-tab.active {
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  color: #0b4f7c;
  border-color: rgba(0,100,169,.26);
  z-index: 2;
  transform: translateY(1px);
  box-shadow: 0 8px 14px rgba(0,100,169,.1);
}
.s360-time-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #f5fbff;
}

.s360-cal-head {
  justify-content: space-between;
  align-items: center;
}
.s360-cal-switch {
  display: flex;
  gap: 8px;
  background: rgba(0,100,169,.08);
  border: 1px solid rgba(0,100,169,.14);
  border-radius: 12px;
  padding: 4px;
}
.s360-cal-switch .s360-btn {
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: none;
}
.s360-cal-switch .s360-btn.is-active {
  background: linear-gradient(135deg, #0064a9, #00b0e9);
  color: #fff;
}

.s360-cal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.s360-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  border: 1px solid rgba(0,100,169,.14);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.s360-cal-weekdays > div {
  text-align: center;
  padding: 10px 6px;
  background: rgba(0,100,169,.08);
  color: #0f527f;
  font-weight: 700;
  font-size: 12px;
}

.s360-cal-grid {
  display: grid;
  gap: 0;
}
.s360-cal-grid.is-week {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
}
.s360-cal-grid.is-month {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  border: 1px solid rgba(0,100,169,.14);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.s360-cal-grid.is-day {
  grid-template-columns: minmax(240px, 360px);
}
.s360-cal-day {
  border: 1px solid rgba(0,100,169,.18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.76);
  min-height: 112px;
  cursor: pointer;
  transition: background .18s ease, transform .16s ease, box-shadow .2s ease;
}
.s360-cal-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0,100,169,.12);
}
.s360-cal-day.selected {
  background: linear-gradient(180deg, rgba(0,176,233,.2), rgba(255,255,255,.92));
  border-color: rgba(0,100,169,.36);
}
.s360-cal-day.empty {
  min-height: 96px;
  border: 1px solid rgba(0,100,169,.08);
  border-radius: 0;
  background: rgba(255,255,255,.4);
  cursor: default;
}
.s360-cal-grid.is-month .s360-cal-day {
  min-height: 92px;
  border-radius: 0;
  border-width: 0 1px 1px 0;
}
.s360-cal-date {
  font-weight: 700;
  color: #0f4d79;
  margin-bottom: 6px;
}
.s360-cal-mini {
  font-size: 12px;
  color: #2f5f7f;
  font-weight: 600;
}
.s360-cal-status {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}
.s360-cal-status.ok { color: #0f766e; }
.s360-cal-status.warn { color: #b45309; }
.s360-timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}
.s360-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0064a9, #00b0e9);
  margin-top: 5px;
  box-shadow: 0 0 0 4px rgba(0, 176, 233, 0.15);
}

.s360-chart-list {
  display: grid;
  gap: 10px;
}
.s360-chart-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 10px;
  align-items: center;
}
.s360-chart-row span {
  font-size: 12px;
  color: #214f6d;
  font-weight: 600;
}
.s360-chart-row b {
  font-size: 12px;
  color: #0f4f7b;
  font-weight: 700;
}
.s360-chart-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(0,100,169,.12);
  overflow: hidden;
}
.s360-chart-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width .4s ease;
}

.s360-week-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, minmax(50px, 1fr));
  gap: 10px;
  align-items: end;
}
.s360-week-col {
  display: grid;
  gap: 6px;
  justify-items: center;
}
.s360-week-bar {
  width: 26px;
  min-height: 8px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #00b0e9 0%, #0064a9 100%);
  box-shadow: 0 8px 14px rgba(0,100,169,.22);
}
.s360-week-col small {
  font-size: 11px;
  color: #335f7c;
  font-weight: 600;
}

.s360-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.s360-score-ring {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 6px solid rgba(0,100,169,.2);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.72);
}
.s360-score-ring strong { font-size: 24px; line-height: 1; color: #0b4f7a; }
.s360-score-ring span { font-size: 11px; color: #567d99; }
.s360-score-ring.ok { border-color: rgba(22,163,74,.45); }
.s360-score-ring.warn { border-color: rgba(245,158,11,.45); }
.s360-score-ring.danger { border-color: rgba(239,68,68,.45); }

.s360-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.s360-pill.ok { background: #dcfce7; color: #166534; }
.s360-pill.warn { background: #fef3c7; color: #92400e; }
.s360-pill.danger { background: #fee2e2; color: #991b1b; }

.s360-alert-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.s360-alert {
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.2);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}
.s360-alert.ok { background: #ecfeff; color: #0f766e; border-color: rgba(20,184,166,.3); }
.s360-alert.warn { background: #fffbeb; color: #92400e; border-color: rgba(245,158,11,.3); }
.s360-alert.danger { background: #fef2f2; color: #991b1b; border-color: rgba(239,68,68,.35); }

.s360-btn {
  border: 0;
  border-radius: 11px;
  padding: 8px 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  transition: transform .15s ease, box-shadow .22s ease, filter .2s ease;
  box-shadow: 0 8px 14px rgba(0, 100, 169, .2);
  font-size: 14px;
  font-weight: 600;
}
.s360-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.s360-btn:active { transform: translateY(1px) scale(.99); }

.s360-btn.sec {
  background: linear-gradient(135deg, #7a8a95, var(--brand-gray));
  box-shadow: 0 8px 16px rgba(74, 86, 96, .2);
}
.s360-btn.warn {
  background: linear-gradient(135deg, #00b0e9, #49c8ef);
  box-shadow: 0 8px 16px rgba(0, 176, 233, .25);
}
.s360-btn.danger {
  background: linear-gradient(135deg, #d34d4d, #ef6a6a);
  box-shadow: 0 8px 16px rgba(173, 57, 57, .22);
}
.s360-btn.ok {
  background: linear-gradient(135deg, #0064a9, #00b0e9);
}

.s360-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 36, 58, 0.46);
  display: none;
  align-items: center;
  justify-content: center;
}
.s360-modal-bg.show { display: flex; }
.s360-modal {
  width: min(980px, 95vw);
  max-height: min(88dvh, 900px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  animation: fadeUp .2s ease;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.s360-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(0,100,169,.12);
}
.s360-modal-head h3 {
  margin: 0;
  font-size: 20px;
  color: #0d4f7a;
}
.s360-modal-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #5f8096;
}
.s360-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.18);
  background: #fff;
  color: #0f4f7b;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.s360-modal-close:hover {
  background: rgba(0,176,233,.12);
  border-color: rgba(0,176,233,.45);
}
.s360-modal-body {
  overflow: auto;
  padding: 12px 2px 4px;
}
.s360-modal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.s360-week-chart-modal {
  min-height: 220px;
}
.s360-week-chart-modal .s360-week-col b {
  font-size: 11px;
  color: #1d4f6b;
}
.s360-modal-note {
  border: 1px solid rgba(0,100,169,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  padding: 10px 12px;
  font-size: 13px;
  color: #1e4e6b;
  margin-top: 8px;
}
.s360-stars {
  display: flex;
  gap: 8px;
  margin: 4px 0 10px;
}
.s360-star-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,100,169,.2);
  background: rgba(255,255,255,.8);
  color: #94a3b8;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: transform .14s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.s360-star-btn:hover {
  transform: translateY(-1px);
  color: #f59e0b;
}
.s360-star-btn.active {
  color: #f59e0b;
  border-color: rgba(245,158,11,.45);
  background: #fffbeb;
}
.s360-seguimientos-wrap {
  overflow: auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0,100,169,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  padding-bottom: 4px;
}
.s360-table-follow {
  min-width: 2280px;
  width: max-content;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.s360-table-follow th {
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #2c5977;
  background: linear-gradient(180deg, rgba(226,243,252,.95), rgba(213,236,249,.95));
  border-bottom: 1px solid rgba(0,100,169,.16);
}
.s360-table-follow td {
  vertical-align: middle;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,100,169,.12);
  border-right: 1px solid rgba(0,100,169,.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s360-table-follow td:last-child,
.s360-table-follow th:last-child {
  border-right: 0;
}
.s360-table-follow th:nth-child(1), .s360-table-follow td:nth-child(1) { width: 120px; } /* ID */
.s360-table-follow th:nth-child(2), .s360-table-follow td:nth-child(2) { width: 150px; } /* Tipificación */
.s360-table-follow th:nth-child(3), .s360-table-follow td:nth-child(3) { width: 190px; } /* Nombre */
.s360-table-follow th:nth-child(4), .s360-table-follow td:nth-child(4) { width: 180px; } /* Correo */
.s360-table-follow th:nth-child(5), .s360-table-follow td:nth-child(5) { width: 130px; } /* Teléfono */
.s360-table-follow th:nth-child(6), .s360-table-follow td:nth-child(6) { width: 170px; } /* Fecha tipificación */
.s360-table-follow th:nth-child(7), .s360-table-follow td:nth-child(7) { width: 170px; } /* Fecha mensaje */
.s360-table-follow th:nth-child(8), .s360-table-follow td:nth-child(8) { width: 180px; } /* Sin seguimiento */
.s360-table-follow th:nth-child(9), .s360-table-follow td:nth-child(9) { width: 230px; } /* Tipificación seguimiento */
.s360-table-follow th:nth-child(10), .s360-table-follow td:nth-child(10) { width: 180px; } /* Status sistema */
.s360-table-follow th:nth-child(11), .s360-table-follow td:nth-child(11) { width: 400px; } /* Decisión cliente */
.s360-table-follow td:nth-child(9),
.s360-table-follow td:nth-child(11) {
  overflow: visible;
  text-overflow: clip;
}
.s360-table-sales {
  min-width: 2640px;
  width: max-content;
  table-layout: fixed;
}
.s360-table-sales th:nth-child(1), .s360-table-sales td:nth-child(1) { width: 130px; }
.s360-table-sales th:nth-child(2), .s360-table-sales td:nth-child(2) { width: 170px; }
.s360-table-sales th:nth-child(3), .s360-table-sales td:nth-child(3) { width: 210px; }
.s360-table-sales th:nth-child(4), .s360-table-sales td:nth-child(4) { width: 145px; }
.s360-table-sales th:nth-child(5), .s360-table-sales td:nth-child(5) { width: 210px; }
.s360-table-sales th:nth-child(6), .s360-table-sales td:nth-child(6) { width: 170px; }
.s360-table-sales th:nth-child(7), .s360-table-sales td:nth-child(7) { width: 140px; }
.s360-table-sales th:nth-child(8), .s360-table-sales td:nth-child(8) { width: 130px; }
.s360-table-sales th:nth-child(9), .s360-table-sales td:nth-child(9) { width: 260px; }
.s360-table-sales th:nth-child(10), .s360-table-sales td:nth-child(10) { width: 180px; }
.s360-table-sales th:nth-child(11), .s360-table-sales td:nth-child(11) { width: 170px; }
.s360-table-sales th:nth-child(12), .s360-table-sales td:nth-child(12) { width: 160px; }
.s360-table-sales th:nth-child(13), .s360-table-sales td:nth-child(13) { width: 160px; }
.s360-row-clickable {
  cursor: pointer;
}
.s360-row-clickable:hover td {
  background: rgba(236, 247, 255, 0.96);
}
.s360-linklike {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #0b4f7c;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.s360-sale-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.s360-portal-link-box {
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid #b8d7ee;
  border-radius: 12px;
  background: #f3faff;
}
.s360-portal-link-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.s360-sale-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #b8d7ee;
  background: #ffffff;
  color: #0b4f7c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.s360-sale-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 100, 169, 0.16);
}
.s360-sale-icon-btn.edit:hover {
  border-color: #00b0e9;
  background: #eef9ff;
}
.s360-sale-icon-btn.delete {
  color: #d82323;
  border-color: #efb4b4;
  background: #fff5f5;
}
.s360-sale-icon-btn.delete:hover {
  border-color: #d82323;
  background: #ffe7e7;
}
.s360-table-follow tbody tr:hover td {
  background: rgba(242,249,255,.98);
}
.s360-follow-customer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
}
.s360-follow-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0064a9, #00b0e9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,100,169,.25);
}
.s360-follow-select {
  min-width: 190px;
  margin-bottom: 0;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 10px;
  background: #fff;
}
.s360-follow-save {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 10px;
  min-width: 92px;
  white-space: nowrap;
}
.s360-follow-decision-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 292px;
}
.s360-pill-nowrap {
  white-space: nowrap;
}
.s360-followup-dashboard {
  margin-bottom: 12px;
}
.s360-folder-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,100,169,.18);
  margin-bottom: 12px;
  padding-left: 4px;
}
.s360-folder-tab {
  border: 1px solid rgba(0,100,169,.2);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(223,239,250,.85));
  color: #2a5270;
  padding: 9px 14px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  margin-right: -1px;
  transform: translateY(1px);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.s360-folder-tab:hover {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0,100,169,.12);
}
.s360-folder-tab.active {
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  color: #0b4f7c;
  border-color: rgba(0,100,169,.26);
  z-index: 2;
  box-shadow: 0 8px 14px rgba(0,100,169,.1);
}
.s360-folder-tabs-inline {
  margin-bottom: 0;
  border-bottom: 0;
  padding-left: 0;
}
.s360-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.s360-stars-view {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.s360-stars-view i {
  font-style: normal;
  color: #cbd5e1;
  font-size: 18px;
}
.s360-stars-view i.on {
  color: #f59e0b;
}
.s360-stars-view b {
  margin-left: 6px;
  color: #0e4f79;
  font-size: 14px;
}
.s360-follow-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.s360-row-highlight td {
  background: rgba(0, 176, 233, 0.14) !important;
  transition: background .25s ease;
}
.s360-sale-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 10px;
}
.s360-sale-summary-item {
  border: 1px solid rgba(0,100,169,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  padding: 10px 12px;
}
.s360-sale-summary-item span {
  display: block;
  color: #5f7d93;
  font-size: 12px;
}
.s360-sale-summary-item strong {
  display: block;
  margin-top: 6px;
  color: #0e4f79;
  font-size: 24px;
  line-height: 1;
}
.s360-sale-commission-box {
  border-color: rgba(34,197,94,.32);
  background: linear-gradient(180deg, rgba(236,253,245,.95), rgba(220,252,231,.92));
}
.s360-sale-commission-box strong {
  color: #15803d;
  font-size: 34px;
}
.s360-btn.ok.sale {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
}
.s360-btn.ok.sale:hover {
  filter: brightness(1.03);
}
.s360-sale-wizard {
  max-height: min(74vh, 760px);
  overflow: auto;
  padding-right: 4px;
}
.s360-sale-wizard .s360-grid-admin > div {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(242,249,255,.9));
  border: 1px solid rgba(0,100,169,.14);
  border-radius: 14px;
  padding: 10px 11px;
  box-shadow: 0 4px 10px rgba(0,100,169,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.s360-sale-wizard .s360-grid-admin > div:focus-within {
  border-color: rgba(0,176,233,.6);
  box-shadow: 0 8px 18px rgba(0,176,233,.18);
  transform: translateY(-1px);
}
.s360-sale-wizard .s360-label { margin-bottom: 7px; }
.s360-dot-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.s360-dot-option {
  border: 1px solid rgba(0,100,169,.24);
  border-radius: 999px;
  background: #fff;
  color: #0b3f69;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.s360-dot-option:hover {
  border-color: rgba(0,176,233,.7);
  box-shadow: 0 4px 10px rgba(0,176,233,.15);
}
.s360-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #a2a2a2;
  position: relative;
  background: #fff;
}
.s360-dot-option.active {
  border-color: #00b0e9;
  background: rgba(0,176,233,.1);
  color: #0064a9;
}
.s360-dot-option.active .s360-dot {
  border-color: #0064a9;
}
.s360-dot-option.active .s360-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #f59e0b;
}
.s360-wizard-tabs {
  margin-bottom: 14px;
}
.s360-wz-step {
  display: none;
}
.s360-wz-step.active {
  display: block;
}
.s360-step1-subtab {
  display: none;
}
.s360-step1-subtab.active {
  display: block;
}
.s360-step1-tabs {
  margin-bottom: 10px;
}
.s360-tab-actions {
  margin: 8px 0 6px;
}
.s360-subtitle {
  margin: 14px 0 10px;
  font-size: 16px;
  color: #0d4f7b;
}
.s360-wz-medical {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.s360-wz-med-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 110px minmax(160px, 1.2fr) 140px minmax(160px, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(0,100,169,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.s360-wz-med-q {
  font-size: 13px;
  color: #164d73;
}
.s360-wz-med-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.s360-wz-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.s360-wz-item-row .s360-wz-item-dose:only-child {
  display: none;
}
.s360-btn.small {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
}
.s360-mini {
  padding: 5px 8px;
  font-size: 12px;
  min-height: 30px;
}
@media (max-width: 980px) {
  .s360-wz-med-row {
    grid-template-columns: 1fr;
  }
  .s360-wz-item-row {
    grid-template-columns: 1fr;
  }
}

.s360-loading-layer {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  z-index: 60;
  background: rgba(231, 245, 252, 0.42);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  gap: 10px;
}
.s360-lock-screen {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(8, 43, 68, 0.36);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  pointer-events: auto;
}
.s360-lock-card {
  width: min(460px, calc(100% - 30px));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.95);
  box-shadow: 0 20px 36px rgba(0,58,96,.22);
  padding: 18px;
  text-align: center;
}
.s360-lock-card h3 {
  margin: 0 0 8px;
  color: #0e4f7c;
}
.s360-lock-card p {
  margin: 0 0 14px;
  color: #466c86;
  font-size: 14px;
}
.s360-work-locked .s360-sidebar,
.s360-work-locked .s360-main {
  pointer-events: none;
}
.s360-work-locked .s360-topbar .s360-icon-wrap,
.s360-work-locked .s360-topbar #s360-logout {
  pointer-events: auto;
}

.s360-loader {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(0, 100, 169, 0.2);
  border-top-color: #00b0e9;
  border-right-color: #0064a9;
  animation: s360Spin .9s linear infinite;
}

.s360-loading-text {
  font-size: 13px;
  font-weight: 700;
  color: #0f537f;
}

.s360-skeleton-card,
.s360-skeleton-panel {
  position: relative;
  overflow: hidden;
}

.s360-skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,100,169,.08) 25%, rgba(0,176,233,.24) 50%, rgba(0,100,169,.08) 75%);
  background-size: 220% 100%;
  animation: s360Shimmer 1.1s linear infinite;
  margin-bottom: 12px;
}

@keyframes s360Spin {
  to { transform: rotate(360deg); }
}

@keyframes s360Shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes fadeUp {
  from { opacity: .25; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes s360SidebarSlideIn {
  from { transform: translateX(-10px); }
  to { transform: translateX(0); }
}

@keyframes s360RiseSoft {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .s360-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .s360-grid-admin { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .s360-grid-2 { grid-template-columns: 1fr; }
  .s360-cal-grid.is-week,
  .s360-cal-grid.is-month { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .s360-cal-weekdays { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .s360-home-layout { grid-template-columns: 1fr; }
  .s360-home-left,
  .s360-home-right { grid-template-columns: 1fr 1fr; }
  .s360-modal-kpis { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .s360-predictivo-layout { grid-template-columns: 1fr; }
  .s360-agenda-layout { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .s360-shell { width: calc(100vw - 20px); height: calc(100dvh - 20px); margin: 10px; padding: 6px; }
  .s360-workarea { grid-template-columns: 92px minmax(0, 1fr); }
  .s360-two { grid-template-columns: 1fr; }
  .s360-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .s360-grid-admin { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .s360-grid-2 { grid-template-columns: 1fr; }
  .s360-title-text { font-size: 20px; }
  .s360-cal-grid.is-week,
  .s360-cal-grid.is-month { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .s360-cal-weekdays { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .s360-home-left,
  .s360-home-right { grid-template-columns: 1fr; }
  .s360-modal { width: min(94vw, 920px); }
  .s360-login-shell {
    width: min(980px, calc(100vw - 30px));
    margin: 16px auto;
    min-height: calc(100dvh - 36px);
    grid-template-columns: 1fr;
  }
  .s360-login-hero {
    min-height: 320px;
    padding: 18px;
  }
  .s360-login-brand h2 { font-size: 28px; }
  .s360-login-form-card h3 { font-size: 34px; }
}
@media (max-width: 640px) {
  .s360-grid { grid-template-columns: 1fr; }
  .s360-grid-admin { grid-template-columns: 1fr; }
  .s360-grid-2 { grid-template-columns: 1fr; }
  .s360-cal-grid.is-week,
  .s360-cal-grid.is-month { grid-template-columns: 1fr; }
  .s360-cal-weekdays { grid-template-columns: 1fr; }
  .s360-chart-row { grid-template-columns: 1fr; }
  .s360-week-chart { grid-template-columns: repeat(4, minmax(44px, 1fr)); height: auto; }
  .s360-home-layout { grid-template-columns: 1fr; }
  .s360-modal-kpis { grid-template-columns: 1fr; }
  .s360-predictivo-mini { grid-template-columns: 1fr; }
  .s360-login-shell {
    width: calc(100vw - 18px);
    margin: 9px auto;
    border-radius: 18px;
  }
  .s360-login-hero {
    min-height: 230px;
  }
  .s360-login-brand h2 { font-size: 24px; }
  .s360-login-brand p,
  .s360-login-foot { font-size: 12px; }
  .s360-login-form-wrap { padding: 12px; }
  .s360-login-form-card { padding: 16px; border-radius: 14px; }
  .s360-login-form-card h3 { font-size: 46px; }
}

/* Theme overrides for shortcode containers */
.entry-content #system360-app,
.site-main #system360-app,
.content-area #system360-app {
  max-width: 100vw !important;
}

body.system360-fullscreen-page .site,
body.system360-fullscreen-page .site-main,
body.system360-fullscreen-page .content-area,
body.system360-fullscreen-page .site-content,
body.system360-fullscreen-page .entry-content,
body.system360-fullscreen-page main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Full canvas mode for CRM page: removes white strips from theme chrome */
html body.system360-fullscreen-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background:
    radial-gradient(75% 120% at 8% 0%, rgba(0, 176, 233, 0.58), transparent 62%),
    radial-gradient(68% 100% at 100% 10%, rgba(0, 100, 169, 0.55), transparent 60%),
    linear-gradient(145deg, #e8f5fb 0%, #d9eaf6 45%, #eaf3f9 100%) !important;
}

/* Hard fullscreen lock to avoid top gap from theme/admin bar wrappers */
html body.system360-fullscreen-page,
html body.system360-fullscreen-page.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.system360-fullscreen-page #system360-app {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  z-index: 9999;
}

body.system360-fullscreen-page.admin-bar #system360-app {
  min-height: 100dvh !important;
}

/* =========================================================
   Micro-Interaction Premium Pass
   ========================================================= */

:root {
  --ios-ease-out: cubic-bezier(.16, 1, .3, 1);
  --ios-ease-soft: cubic-bezier(.22, .61, .36, 1);
  --ios-focus-ring: 0 0 0 4px rgba(10, 132, 255, 0.14);
}

.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article {
  animation: s360ModuleFade .28s var(--ios-ease-out);
}

.s360-topbar,
.s360-panel,
.s360-card,
.s360-modal,
.s360-dropdown {
  transition: border-color .28s var(--ios-ease-soft), box-shadow .28s var(--ios-ease-soft), background .28s var(--ios-ease-soft), transform .28s var(--ios-ease-soft);
}

.s360-panel:hover,
.s360-card:hover {
  transform: translateY(-2px) scale(1.002);
}

.s360-nav-item,
.s360-sub-item,
.s360-folder-tab,
.s360-time-tab,
.s360-shortcut,
.s360-btn,
.s360-icon-btn,
.s360-side-toggle {
  transition: transform .22s var(--ios-ease-out), box-shadow .22s var(--ios-ease-out), border-color .22s var(--ios-ease-out), background .22s var(--ios-ease-out), color .22s var(--ios-ease-out), opacity .22s var(--ios-ease-out);
}

.s360-nav-item:hover,
.s360-sub-item:hover {
  transform: translateX(4px);
}

.s360-shortcut:hover,
.s360-folder-tab:hover,
.s360-time-tab:hover {
  transform: translateY(-1px);
}

.s360-btn:hover,
.s360-icon-btn:hover,
.s360-side-toggle:hover {
  transform: translateY(-1px);
}

.s360-btn:active,
.s360-icon-btn:active,
.s360-side-toggle:active,
.s360-shortcut:active {
  transform: translateY(0) scale(.985);
}

.s360-input:focus,
.s360-select:focus,
.s360-textarea:focus,
.s360-btn:focus-visible,
.s360-icon-btn:focus-visible,
.s360-nav-item:focus-visible,
.s360-folder-tab:focus-visible,
.s360-time-tab:focus-visible {
  box-shadow: var(--ios-focus-ring) !important;
}

.s360-table tbody tr,
.s360-table-follow tbody tr,
.s360-table-sales tbody tr {
  transition: background .2s var(--ios-ease-soft), transform .2s var(--ios-ease-soft);
}

.s360-table tbody tr:hover td,
.s360-table-follow tbody tr:hover td,
.s360-table-sales tbody tr:hover td {
  background: rgba(250, 252, 255, 0.98) !important;
}

.s360-modal-bg.show .s360-modal {
  animation: s360ModalIn .24s var(--ios-ease-out);
}

.s360-login-shell,
.s360-shell,
.s360-sidebar {
  animation: s360ElevateIn .42s var(--ios-ease-out);
}

@keyframes s360ModuleFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes s360ModalIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes s360ElevateIn {
  from { opacity: .82; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Apple Minimal V3 (Full Visual Reset + No Jump)
   ========================================================= */

:root {
  --apple-bg: #f5f7fb;
  --apple-surface: #ffffff;
  --apple-surface-2: #f9fbff;
  --apple-text: #0f172a;
  --apple-text-2: #475569;
  --apple-text-3: #64748b;
  --apple-line: rgba(15, 23, 42, 0.08);
  --apple-accent: #0a84ff;
  --apple-accent-2: #2563eb;
  --apple-success: #34c759;
  --apple-warning: #ff9f0a;
  --apple-danger: #ff453a;
  --apple-radius-xs: 10px;
  --apple-radius-sm: 14px;
  --apple-radius-md: 18px;
  --apple-radius-lg: 24px;
  --apple-shadow-1: 0 8px 20px rgba(15, 23, 42, 0.06);
  --apple-shadow-2: 0 16px 40px rgba(15, 23, 42, 0.10);
  --apple-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Remove jumpy global animations on rerender */
.s360-shell,
.s360-sidebar,
.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article,
.s360-login-shell {
  animation: none !important;
}

.s360-app {
  background:
    radial-gradient(900px 620px at -12% -18%, rgba(10, 132, 255, 0.12), transparent 55%),
    radial-gradient(820px 620px at 112% 0%, rgba(37, 99, 235, 0.10), transparent 56%),
    linear-gradient(180deg, var(--apple-bg) 0%, #eef2f8 100%) !important;
  color: var(--apple-text) !important;
}

.s360-shell {
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  box-shadow: var(--apple-shadow-2) !important;
}

.s360-topbar {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  border-radius: var(--apple-radius-md) !important;
  border: 1px solid var(--apple-line) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.s360-title-text {
  font-size: 23px;
  color: var(--apple-text) !important;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.s360-sidebar {
  border-radius: 22px !important;
  background: linear-gradient(180deg, #0b1220 0%, #111827 56%, #172033 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.34) !important;
}

.s360-brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.s360-nav-item {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 560;
  color: rgba(239, 246, 255, 0.95);
  transition: transform .2s var(--apple-ease), background .2s var(--apple-ease), box-shadow .2s var(--apple-ease);
}

.s360-nav-item:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.10);
}

.s360-nav-item.active {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.30), rgba(37, 99, 235, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 10px 24px rgba(2, 6, 23, 0.28);
}

.s360-main {
  border-radius: 22px;
}

.s360-content-scroll {
  padding: 2px 10px 10px 4px;
}

.s360-panel,
.s360-card {
  border-radius: var(--apple-radius-md) !important;
  border: 1px solid var(--apple-line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--apple-shadow-1) !important;
}

.s360-panel:hover,
.s360-card:hover {
  border-color: rgba(10, 132, 255, 0.18) !important;
  box-shadow: var(--apple-shadow-2) !important;
}

.s360-card .k,
.s360-panel h3,
.s360-label {
  color: var(--apple-text-2) !important;
}

.s360-card .v {
  color: var(--apple-text) !important;
  letter-spacing: -0.02em;
}

.s360-muted,
.s360-panel p {
  color: var(--apple-text-3) !important;
}

.s360-input,
.s360-select,
.s360-textarea {
  border-radius: var(--apple-radius-sm) !important;
  border: 1px solid rgba(148, 163, 184, 0.30) !important;
  background: #fff !important;
  color: var(--apple-text) !important;
  box-shadow: none !important;
}

.s360-input:focus,
.s360-select:focus,
.s360-textarea:focus {
  border-color: rgba(10, 132, 255, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14) !important;
  transform: none !important;
}

.s360-btn,
.s360-link-btn,
.s360-icon-btn,
.s360-side-toggle,
.s360-live-time,
.s360-drop-btn {
  border-radius: 12px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .18s var(--apple-ease), box-shadow .18s var(--apple-ease), background .18s var(--apple-ease), border-color .18s var(--apple-ease);
}

.s360-btn:hover,
.s360-link-btn:hover,
.s360-icon-btn:hover,
.s360-side-toggle:hover,
.s360-drop-btn:hover,
.s360-live-time:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.s360-btn.ok,
.s360-btn:not(.danger):not(.warn):not(.ghost):not(.sec) {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--apple-accent), var(--apple-accent-2)) !important;
}

.s360-btn.sec,
.s360-link-btn,
.s360-drop-btn {
  color: var(--apple-text-2) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.s360-btn.warn {
  color: #5b3a00 !important;
  border-color: rgba(255, 159, 10, 0.34) !important;
  background: rgba(255, 234, 204, 0.96) !important;
}

.s360-btn.danger,
.s360-drop-btn.danger {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--apple-danger), #ff6b63) !important;
}

.s360-badge,
.s360-live-time,
.s360-icon-btn,
.s360-side-toggle {
  border-color: rgba(148, 163, 184, 0.32) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--apple-text-2) !important;
}

.s360-badge {
  font-size: 11px;
}

.s360-dropdown,
.s360-modal {
  border-radius: var(--apple-radius-md) !important;
  border: 1px solid var(--apple-line) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--apple-shadow-2) !important;
}

.s360-modal-bg {
  background: rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.s360-modal-bg.show .s360-modal {
  animation: s360AppleModal .22s var(--apple-ease);
}

.s360-table th,
.s360-table-follow th,
.s360-table-sales th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.s360-table td,
.s360-table-follow td,
.s360-table-sales td {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.s360-table tbody tr:hover td,
.s360-table-follow tbody tr:hover td,
.s360-table-sales tbody tr:hover td {
  background: #fbfdff !important;
}

.s360-folder-tab {
  border-radius: 12px 12px 0 0;
  background: #f3f6fb;
  border-color: rgba(148, 163, 184, 0.26);
  color: #475569;
}

.s360-folder-tab.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.s360-time-tab.active {
  border-color: rgba(10, 132, 255, 0.36) !important;
  background: rgba(229, 242, 255, 0.96) !important;
  color: #0f4c9e !important;
}

.s360-ok {
  border: 1px solid rgba(52, 199, 89, 0.3);
  background: rgba(233, 252, 239, 0.92);
  color: #14532d;
}

.s360-error {
  border: 1px solid rgba(255, 69, 58, 0.28);
  background: rgba(255, 239, 238, 0.92);
  color: #7f1d1d;
}

.s360-lock-screen {
  background: rgba(15, 23, 42, 0.30) !important;
}

.s360-lock-card {
  border-radius: var(--apple-radius-md) !important;
  background: rgba(255, 255, 255, 0.93) !important;
}

.s360-live-time.is-break-red,
.s360-clock-row.just-changed {
  animation: none !important;
}

/* Add soft motion only where it feels intentional */
.s360-shortcut,
.s360-card-clickable,
.s360-panel-clickable,
.s360-agenda-day,
.s360-cal-day {
  transition: transform .2s var(--apple-ease), box-shadow .2s var(--apple-ease), border-color .2s var(--apple-ease), background .2s var(--apple-ease);
}

.s360-shortcut:hover,
.s360-card-clickable:hover,
.s360-panel-clickable:hover,
.s360-agenda-day:hover,
.s360-cal-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

@keyframes s360AppleModal {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Apple Recomposition V4 (Layout + Sidebar + Tables + Popups)
   ========================================================= */

.s360-shell {
  padding: 12px !important;
  gap: 12px !important;
}

.s360-workarea {
  display: flex !important;
  gap: 12px !important;
  align-items: stretch;
}

.s360-sidebar {
  width: 248px !important;
  min-width: 248px !important;
  flex: 0 0 248px !important;
  transition: width .26s var(--apple-ease), min-width .26s var(--apple-ease), flex-basis .26s var(--apple-ease), box-shadow .26s var(--apple-ease), border-radius .26s var(--apple-ease) !important;
}

.s360-shell.collapsed .s360-sidebar {
  width: 78px !important;
  min-width: 78px !important;
  flex: 0 0 78px !important;
}

.s360-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.s360-shell.collapsed .s360-workarea,
.s360-shell:not(.collapsed) .s360-workarea {
  grid-template-columns: none !important;
}

.s360-sidebar-head {
  min-height: 84px !important;
  padding: 10px 10px 8px !important;
  gap: 8px !important;
}

.s360-nav {
  padding: 10px 8px 12px !important;
  gap: 6px !important;
}

.s360-nav-item {
  min-height: 42px !important;
  padding: 9px 11px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  justify-content: flex-start;
}

.s360-nav-item > span {
  max-width: 170px !important;
  transition: opacity .2s var(--apple-ease), transform .2s var(--apple-ease), max-width .2s var(--apple-ease) !important;
}

.s360-shell.collapsed .s360-nav {
  justify-items: center !important;
}

.s360-shell.collapsed .s360-nav-item {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  justify-content: center !important;
  border-radius: 12px !important;
  transform: none !important;
}

.s360-shell.collapsed .s360-nav-item > span {
  max-width: 0 !important;
  opacity: 0 !important;
  transform: translateX(6px) !important;
  pointer-events: none !important;
}

.s360-shell.collapsed .s360-nav-item .s360-svg-icon {
  transform: scale(1.03) !important;
}

.s360-submenu-wrap {
  margin: 0 2px 0 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 8px;
  transition: max-height .24s var(--apple-ease), opacity .2s var(--apple-ease), transform .2s var(--apple-ease) !important;
}

.s360-submenu-wrap.open {
  max-height: 320px !important;
}

.s360-shell.collapsed .s360-submenu-wrap {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  border-left: 0 !important;
}

.s360-shell.collapsed .s360-brand-full {
  opacity: 0 !important;
  transform: translateY(-6px) scale(.95) !important;
}

.s360-shell.collapsed .s360-brand-short {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.s360-content-scroll {
  padding: 2px 8px 16px 2px !important;
}

.s360-panel {
  padding: 20px 20px 18px !important;
  margin-bottom: 14px !important;
}

.s360-grid,
.s360-grid-admin,
.s360-grid-2 {
  gap: 14px !important;
}

.s360-card {
  min-height: 96px;
  padding: 16px !important;
}

.s360-home-layout {
  gap: 14px !important;
}

.s360-shortcuts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

.s360-shortcut {
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  padding: 14px 14px 12px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.s360-shortcut strong {
  font-size: 15px !important;
  color: var(--apple-text) !important;
}

.s360-shortcut span {
  margin-top: 6px;
  color: var(--apple-text-3) !important;
  line-height: 1.35;
}

.s360-seguimientos-wrap {
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  padding: 0 !important;
  overflow: auto !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.s360-table,
.s360-table-follow,
.s360-table-sales {
  min-width: 100% !important;
}

.s360-table th,
.s360-table td,
.s360-table-follow th,
.s360-table-follow td,
.s360-table-sales th,
.s360-table-sales td {
  padding: 11px 10px !important;
  vertical-align: middle !important;
}

.s360-table th,
.s360-table-follow th,
.s360-table-sales th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 11.5px !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.s360-table td,
.s360-table-follow td,
.s360-table-sales td {
  font-size: 13px;
}

.s360-follow-select,
.s360-follow-save,
.s360-mini {
  margin-bottom: 0 !important;
}

.s360-folder-tabs {
  margin-bottom: 14px !important;
  padding-left: 0 !important;
  gap: 6px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.s360-folder-tab {
  margin-right: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 10px 14px 8px !important;
}

.s360-time-tabs {
  margin-bottom: 12px;
}

.s360-time-tab {
  border-radius: 12px !important;
}

.s360-modal {
  width: min(1120px, 94vw) !important;
  max-height: min(84vh, 900px) !important;
  border-radius: 20px !important;
}

.s360-modal-head {
  padding: 16px 18px 14px !important;
}

.s360-modal-body {
  padding: 14px 18px 18px !important;
}

.s360-sale-wizard {
  max-height: min(70vh, 760px) !important;
  padding-right: 2px !important;
}

.s360-sale-wizard .s360-grid-admin > div {
  border-radius: 12px !important;
  padding: 10px !important;
}

.s360-portal-link-box {
  border-radius: 14px !important;
  padding: 12px !important;
}

.s360-login-shell {
  border-radius: 26px !important;
}

.s360-login-form-card {
  border-radius: 18px !important;
}

.s360-login-form-card #s360-login-btn {
  min-height: 50px !important;
}

.s360-ok,
.s360-error {
  padding: 10px 12px !important;
  margin-bottom: 10px !important;
}

/* Better spatial rhythm for large content sections */
.s360-agenda-layout,
.s360-predictivo-layout,
.s360-two {
  gap: 14px !important;
}

/* Responsive recomposition */
@media (max-width: 980px) {
  .s360-shell {
    padding: 8px !important;
  }
  .s360-sidebar {
    width: 84px !important;
    min-width: 84px !important;
    flex: 0 0 84px !important;
  }
  .s360-nav-item > span {
    max-width: 0 !important;
    opacity: 0 !important;
    transform: translateX(6px) !important;
  }
  .s360-modal {
    width: min(96vw, 980px) !important;
    max-height: 88vh !important;
  }
  .s360-panel {
    padding: 16px !important;
  }
}

/* =========================================================
   iOS-Inspired Visual Overhaul (Clean / Modern / Professional)
   ========================================================= */

:root {
  --ios-bg-0: #f4f6fb;
  --ios-bg-1: #eef2f8;
  --ios-bg-2: #ffffff;
  --ios-ink-1: #0f172a;
  --ios-ink-2: #334155;
  --ios-ink-3: #64748b;
  --ios-accent: #0a84ff;
  --ios-accent-2: #4f46e5;
  --ios-success: #30d158;
  --ios-warning: #ff9f0a;
  --ios-danger: #ff453a;
  --ios-line: rgba(15, 23, 42, 0.08);
  --ios-glass: rgba(255, 255, 255, 0.66);
  --ios-glass-strong: rgba(255, 255, 255, 0.84);
  --ios-shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --ios-shadow-md: 0 16px 44px rgba(15, 23, 42, 0.12);
  --ios-shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.16);
  --ios-radius-xs: 10px;
  --ios-radius-sm: 14px;
  --ios-radius-md: 18px;
  --ios-radius-lg: 24px;
  --ios-radius-xl: 30px;
  --ios-ease: cubic-bezier(.22, .61, .36, 1);
}

#system360-app,
#system360-app * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.s360-app {
  background:
    radial-gradient(1300px 720px at -8% -12%, rgba(10, 132, 255, 0.16), transparent 58%),
    radial-gradient(1200px 680px at 112% 8%, rgba(79, 70, 229, 0.12), transparent 56%),
    linear-gradient(180deg, var(--ios-bg-0) 0%, var(--ios-bg-1) 54%, #e9edf5 100%) !important;
  color: var(--ios-ink-1);
}

.s360-shell {
  border-radius: var(--ios-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.4));
  box-shadow: var(--ios-shadow-md);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.s360-topbar {
  border-radius: var(--ios-radius-md);
  border: 1px solid var(--ios-line);
  background: var(--ios-glass);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.s360-title-text {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ios-ink-1);
}

.s360-sidebar {
  border-radius: var(--ios-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 34%, #111827 100%);
  box-shadow: var(--ios-shadow-lg);
}

.s360-brand {
  letter-spacing: -0.02em;
  font-weight: 700;
  text-shadow: none;
}

.s360-nav-item {
  border-radius: var(--ios-radius-sm);
  font-weight: 600;
  transition: transform .3s var(--ios-ease), background .28s var(--ios-ease), box-shadow .28s var(--ios-ease), border-color .28s var(--ios-ease);
}

.s360-nav-item:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.s360-nav-item.active {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.3), rgba(79, 70, 229, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px rgba(2, 6, 23, 0.28);
}

.s360-submenu-wrap.open {
  animation: s360IosFloatIn .35s var(--ios-ease);
}

.s360-main {
  border-radius: var(--ios-radius-lg);
}

.s360-content-scroll {
  padding-right: 8px;
}

.s360-panel,
.s360-card,
.s360-login-form-card,
.s360-modal,
.s360-dropdown,
.s360-seguimientos-wrap,
.s360-portal-link-box,
.s360-lock-card {
  border-radius: var(--ios-radius-md) !important;
  border: 1px solid var(--ios-line) !important;
  background: var(--ios-glass-strong) !important;
  box-shadow: var(--ios-shadow-sm) !important;
  backdrop-filter: blur(10px) saturate(132%);
  -webkit-backdrop-filter: blur(10px) saturate(132%);
}

.s360-card,
.s360-panel {
  transition: transform .28s var(--ios-ease), box-shadow .28s var(--ios-ease), border-color .28s var(--ios-ease);
}

.s360-card:hover,
.s360-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--ios-shadow-md) !important;
  border-color: rgba(10, 132, 255, 0.24) !important;
}

.s360-card .k,
.s360-panel h3 {
  color: var(--ios-ink-2);
  letter-spacing: -0.01em;
}

.s360-card .v {
  color: var(--ios-ink-1);
  letter-spacing: -0.02em;
}

.s360-muted,
.s360-panel p,
.s360-login-form-card p {
  color: var(--ios-ink-3) !important;
}

.s360-input,
.s360-select,
.s360-textarea,
.s360-login-form-card #s360-u,
.s360-login-form-card #s360-p {
  border-radius: var(--ios-radius-sm) !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--ios-ink-1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: border-color .22s var(--ios-ease), box-shadow .22s var(--ios-ease), transform .22s var(--ios-ease);
}

.s360-input:focus,
.s360-select:focus,
.s360-textarea:focus,
.s360-login-form-card #s360-u:focus,
.s360-login-form-card #s360-p:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.64) !important;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.14), 0 10px 24px rgba(10, 132, 255, 0.16);
  transform: translateY(-1px);
}

.s360-btn,
.s360-link-btn,
.s360-drop-btn,
.s360-icon-btn,
.s360-side-toggle,
.s360-live-time {
  border-radius: 12px !important;
  transition: transform .24s var(--ios-ease), box-shadow .24s var(--ios-ease), filter .24s var(--ios-ease), background .24s var(--ios-ease), border-color .24s var(--ios-ease);
}

.s360-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.s360-btn:hover,
.s360-link-btn:hover,
.s360-drop-btn:hover,
.s360-icon-btn:hover,
.s360-live-time:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.s360-btn:active,
.s360-link-btn:active,
.s360-drop-btn:active,
.s360-icon-btn:active {
  transform: translateY(0) scale(.985);
}

.s360-btn.ok,
.s360-btn:not(.danger):not(.warn):not(.ghost):not(.sec) {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--ios-accent), #3b82f6) !important;
}

.s360-btn.sec,
.s360-link-btn,
.s360-drop-btn {
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--ios-ink-2) !important;
}

.s360-btn.warn {
  color: #3d2a00 !important;
  border-color: rgba(255, 159, 10, 0.36) !important;
  background: linear-gradient(135deg, rgba(255, 224, 179, 0.92), rgba(255, 196, 107, 0.92)) !important;
}

.s360-btn.danger,
.s360-drop-btn.danger {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--ios-danger), #ff6b63) !important;
}

.s360-icon-btn,
.s360-side-toggle,
.s360-live-time,
.s360-badge {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--ios-ink-2) !important;
}

.s360-badge {
  font-weight: 600;
}

.s360-ok,
.s360-error,
.s360-alert,
.s360-modal-note {
  border-radius: 12px !important;
}

.s360-ok {
  border: 1px solid rgba(48, 209, 88, 0.28);
  background: rgba(229, 255, 237, 0.88);
  color: #14532d;
}

.s360-error {
  border: 1px solid rgba(255, 69, 58, 0.28);
  background: rgba(255, 236, 235, 0.92);
  color: #7f1d1d;
}

.s360-alert.ok {
  border-color: rgba(48, 209, 88, 0.26);
  background: rgba(236, 253, 245, 0.88);
}

.s360-alert.warn {
  border-color: rgba(255, 159, 10, 0.28);
  background: rgba(255, 247, 230, 0.9);
}

.s360-alert.danger {
  border-color: rgba(255, 69, 58, 0.28);
  background: rgba(255, 237, 235, 0.92);
}

.s360-table,
.s360-table-follow,
.s360-table-sales {
  border-collapse: separate;
  border-spacing: 0;
}

.s360-table th,
.s360-table-follow th,
.s360-table-sales th {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.96)) !important;
  color: #475569;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.s360-table td,
.s360-table-follow td,
.s360-table-sales td {
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.s360-table tbody tr:hover td,
.s360-table-follow tbody tr:hover td,
.s360-table-sales tbody tr:hover td {
  background: rgba(248, 250, 252, 0.96) !important;
}

.s360-modal-bg {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(15, 23, 42, 0.28);
}

.s360-modal {
  border-radius: var(--ios-radius-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--ios-shadow-lg) !important;
  animation: s360IosPop .28s var(--ios-ease);
}

.s360-modal-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.s360-modal-close {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.s360-dropdown {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  animation: s360IosFloatIn .2s ease-out;
}

.s360-loading-layer {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(4px);
}

.s360-loader {
  border-color: rgba(148, 163, 184, 0.32);
  border-top-color: var(--ios-accent);
  border-right-color: var(--ios-accent-2);
}

.s360-lock-screen {
  background: rgba(2, 6, 23, 0.32);
}

.s360-lock-card {
  background: rgba(255, 255, 255, 0.92) !important;
}

@keyframes s360IosPop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes s360IosFloatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .s360-shell {
    border-radius: 20px;
  }
  .s360-topbar {
    border-radius: 14px;
  }
  .s360-sidebar {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s360-app *,
  .s360-app *::before,
  .s360-app *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body.system360-fullscreen-page .site-header,
body.system360-fullscreen-page header,
body.system360-fullscreen-page .site-footer,
body.system360-fullscreen-page footer,
body.system360-fullscreen-page .ast-above-header-wrap,
body.system360-fullscreen-page .ast-below-header-wrap,
body.system360-fullscreen-page .ast-mobile-header-wrap {
  display: none !important;
}

body.system360-fullscreen-page .site-content,
body.system360-fullscreen-page .content-area,
body.system360-fullscreen-page .ast-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

/* Custom internal scrollbars */
.s360-content-scroll::-webkit-scrollbar,
.s360-notif-panel::-webkit-scrollbar,
.s360-timeline::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.s360-content-scroll::-webkit-scrollbar-track,
.s360-notif-panel::-webkit-scrollbar-track,
.s360-timeline::-webkit-scrollbar-track {
  background: rgba(0, 100, 169, 0.08);
  border-radius: 999px;
}
.s360-content-scroll::-webkit-scrollbar-thumb,
.s360-notif-panel::-webkit-scrollbar-thumb,
.s360-timeline::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00b0e9, #0064a9);
  border-radius: 999px;
}

body.system360-fullscreen-page.admin-bar #system360-app {
  min-height: 100dvh !important;
}


/* ===== FINAL APPLE OVERRIDE (authoritative end-of-file) ===== */
.s360-shell,.s360-sidebar,.s360-content-scroll>section,.s360-content-scroll>div,.s360-content-scroll>article,.s360-login-shell{animation:none !important}
.s360-shell{padding:12px !important;gap:12px !important}
.s360-workarea{display:flex !important;gap:12px !important;align-items:stretch !important}
.s360-sidebar{width:248px !important;min-width:248px !important;flex:0 0 248px !important;transition:width .26s cubic-bezier(.2,.8,.2,1),min-width .26s cubic-bezier(.2,.8,.2,1),flex-basis .26s cubic-bezier(.2,.8,.2,1) !important}
.s360-shell.collapsed .s360-sidebar{width:78px !important;min-width:78px !important;flex:0 0 78px !important}
.s360-shell.collapsed .s360-workarea,.s360-shell:not(.collapsed) .s360-workarea{grid-template-columns:none !important}
.s360-main{flex:1 1 auto !important;min-width:0 !important}
.s360-nav{padding:10px 8px 12px !important;gap:6px !important}
.s360-nav-item{min-height:44px !important;padding:9px 11px !important;gap:10px !important;border-radius:12px !important}
.s360-nav-item>span{transition:opacity .2s cubic-bezier(.2,.8,.2,1),transform .2s cubic-bezier(.2,.8,.2,1),max-width .2s cubic-bezier(.2,.8,.2,1) !important}
.s360-shell.collapsed .s360-nav-item{width:44px !important;min-width:44px !important;height:44px !important;min-height:44px !important;padding:0 !important;justify-content:center !important}
.s360-shell.collapsed .s360-nav-item>span{max-width:0 !important;opacity:0 !important;transform:translateX(6px) !important;pointer-events:none !important}
.s360-submenu-wrap{margin:0 2px 0 6px !important;border-left:1px solid rgba(255,255,255,.16) !important;padding-left:8px !important;transition:max-height .24s cubic-bezier(.2,.8,.2,1),opacity .2s cubic-bezier(.2,.8,.2,1),transform .2s cubic-bezier(.2,.8,.2,1) !important}
.s360-shell.collapsed .s360-submenu-wrap{max-height:0 !important;opacity:0 !important;transform:translateY(-6px) !important;padding-left:0 !important;border-left:0 !important}
.s360-content-scroll{padding:2px 8px 16px 2px !important}
.s360-panel{padding:20px 20px 18px !important;margin-bottom:14px !important}
.s360-grid,.s360-grid-admin,.s360-grid-2{gap:14px !important}
.s360-shortcuts{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;gap:12px !important}
.s360-seguimientos-wrap{border-radius:16px !important;padding:0 !important;overflow:auto !important;background:rgba(255,255,255,.9) !important}
.s360-table,.s360-table-follow,.s360-table-sales{min-width:100% !important}
.s360-table th,.s360-table td,.s360-table-follow th,.s360-table-follow td,.s360-table-sales th,.s360-table-sales td{padding:11px 10px !important;vertical-align:middle !important}
.s360-table th,.s360-table-follow th,.s360-table-sales th{position:sticky;top:0;z-index:2}
.s360-modal{width:min(1120px,94vw) !important;max-height:min(84vh,900px) !important;border-radius:20px !important}
.s360-modal-head{padding:16px 18px 14px !important}
.s360-modal-body{padding:14px 18px 18px !important}
.s360-live-time.is-break-red,.s360-clock-row.just-changed{animation:none !important}
.s360-shortcut,.s360-card-clickable,.s360-panel-clickable,.s360-agenda-day,.s360-cal-day,.s360-btn,.s360-nav-item,.s360-folder-tab,.s360-time-tab{transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s cubic-bezier(.2,.8,.2,1),border-color .2s cubic-bezier(.2,.8,.2,1),background .2s cubic-bezier(.2,.8,.2,1) !important}
.s360-shortcut:hover,.s360-card-clickable:hover,.s360-panel-clickable:hover,.s360-agenda-day:hover,.s360-cal-day:hover,.s360-btn:hover{transform:translateY(-2px) !important;box-shadow:0 10px 22px rgba(15,23,42,.12) !important}
@media (max-width:980px){.s360-sidebar{width:84px !important;min-width:84px !important;flex:0 0 84px !important}.s360-nav-item>span{max-width:0 !important;opacity:0 !important;transform:translateX(6px) !important}.s360-modal{width:min(96vw,980px) !important;max-height:88vh !important}.s360-panel{padding:16px !important}}

/* ===== SIDEBAR MAC STYLE OVERRIDE (final) ===== */
.s360-sidebar{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:24px !important;
  border:1px solid rgba(255,255,255,.58) !important;
  background:
    radial-gradient(160% 90% at 0% 0%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.22) 48%, rgba(255,255,255,.12) 100%),
    linear-gradient(180deg, rgba(244,247,252,.92) 0%, rgba(236,241,248,.78) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 20px 48px rgba(15,23,42,.14),
    0 1px 0 rgba(255,255,255,.6) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
}
.s360-sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg, rgba(255,255,255,.25) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.18) 100%);
}
.s360-sidebar-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:14px 12px 10px !important;
}
.s360-brand{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  padding:8px 10px !important;
  border-radius:14px !important;
  border:1px solid rgba(148,163,184,.2) !important;
  background:rgba(255,255,255,.6) !important;
}
.s360-brand-full{
  letter-spacing:.02em !important;
  font-weight:700 !important;
}
.s360-side-toggle{
  width:36px !important;
  height:36px !important;
  min-height:36px !important;
  border-radius:11px !important;
}
.s360-toggle-icon-stack{
  position:relative !important;
  width:18px !important;
  height:18px !important;
  display:inline-block !important;
}
.s360-toggle-icon{
  position:absolute !important;
  inset:0 !important;
  display:grid !important;
  place-items:center !important;
  transition:opacity .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1) !important;
}
.s360-toggle-icon-stack.is-collapsed .s360-toggle-icon.menu{
  opacity:1 !important;
  transform:rotate(0) scale(1) !important;
}
.s360-toggle-icon-stack.is-collapsed .s360-toggle-icon.close{
  opacity:0 !important;
  transform:rotate(-12deg) scale(.86) !important;
}
.s360-toggle-icon-stack.is-expanded .s360-toggle-icon.menu{
  opacity:0 !important;
  transform:rotate(12deg) scale(.86) !important;
}
.s360-toggle-icon-stack.is-expanded .s360-toggle-icon.close{
  opacity:1 !important;
  transform:rotate(0) scale(1) !important;
}
.s360-nav{
  flex:1 1 auto !important;
  overflow:auto !important;
  padding:10px 10px 14px !important;
  gap:7px !important;
}
.s360-nav-section-label{
  margin:10px 6px 4px !important;
  font-size:10px !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  color:rgba(71,85,105,.72) !important;
  font-weight:700 !important;
  transition:opacity .2s ease, transform .2s ease !important;
}
.s360-nav-item{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  min-height:42px !important;
  padding:9px 11px !important;
  border-radius:14px !important;
  border:1px solid transparent !important;
  background:rgba(255,255,255,.45) !important;
  color:#2b3444 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4) !important;
}
.s360-nav-item::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  width:3px;
  height:20px;
  border-radius:999px;
  background:linear-gradient(180deg,#0a84ff,#5ac8fa);
  opacity:0;
  transform:translateY(-50%) scaleY(.2);
  transition:opacity .24s ease, transform .24s ease;
}
.s360-nav-item .s360-svg-icon{
  width:19px !important;
  height:19px !important;
  stroke-width:1.9 !important;
}
.s360-nav-item>span{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  gap:8px !important;
  font-weight:600 !important;
}
.s360-nav-item:hover{
  border-color:rgba(148,163,184,.28) !important;
  background:rgba(255,255,255,.68) !important;
  transform:translateX(2px) !important;
  box-shadow:0 8px 16px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.6) !important;
}
.s360-nav-item.active{
  border-color:rgba(10,132,255,.32) !important;
  background:linear-gradient(135deg, rgba(10,132,255,.16), rgba(90,200,250,.14)) !important;
  color:#0b3a65 !important;
  box-shadow:0 12px 20px rgba(10,132,255,.16), inset 0 1px 0 rgba(255,255,255,.78) !important;
}
.s360-nav-item.active::before{
  opacity:1;
  transform:translateY(-50%) scaleY(1);
}
.s360-chevron{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:18px !important;
  height:18px !important;
  color:#64748b !important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1), color .2s ease !important;
}
.s360-chevron .s360-svg-icon{
  width:14px !important;
  height:14px !important;
  stroke-width:2.2 !important;
}
.s360-chevron.open{
  transform:rotate(90deg) !important;
  color:#0a84ff !important;
}
.s360-submenu-wrap{
  margin:0 2px 3px 10px !important;
  padding:3px 0 3px 9px !important;
  border-left:1px solid rgba(148,163,184,.34) !important;
}
.s360-sub-item{
  min-height:37px !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.34) !important;
}
.s360-sub-item .s360-svg-icon{
  width:16px !important;
  height:16px !important;
}
.s360-sidebar-foot{
  padding:10px 10px 12px !important;
}
.s360-side-userchip{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:8px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(255,255,255,.55);
  cursor:pointer;
  text-align:left;
  appearance:none;
  -webkit-appearance:none;
  color:inherit;
}
.s360-side-userchip:hover{
  border-color:rgba(10,132,255,.3);
  background:rgba(255,255,255,.74);
}
.s360-side-userchip:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(10,132,255,.22);
}
.s360-side-user-avatar{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:linear-gradient(135deg,#0a84ff,#5ac8fa);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  flex:0 0 32px;
}
.s360-side-user-meta{
  min-width:0;
  display:grid;
  gap:1px;
}
.s360-side-user-meta strong{
  color:#1e293b;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.s360-side-user-meta small{
  color:#64748b;
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.s360-shell.collapsed .s360-nav-section-label,
.s360-shell.collapsed .s360-side-user-meta,
.s360-shell.collapsed .s360-brand-full{
  opacity:0 !important;
  transform:translateX(4px) !important;
  pointer-events:none !important;
}
.s360-shell.collapsed .s360-brand{
  justify-content:center !important;
  padding:7px 6px !important;
}
.s360-shell.collapsed .s360-brand-short{
  opacity:1 !important;
}
.s360-shell.collapsed .s360-nav-item{
  position:relative !important;
}
.s360-shell.collapsed .s360-nav-item:hover::after{
  content:attr(data-label);
  position:absolute;
  left:calc(100% + 10px);
  top:50%;
  transform:translateY(-50%);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 28px rgba(15,23,42,.16);
  color:#1f2937;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  z-index:30;
  pointer-events:none;
}
.s360-shell.collapsed .s360-sidebar-foot{
  padding:8px 8px 12px !important;
}
.s360-shell.collapsed .s360-side-userchip{
  justify-content:center;
  padding:8px 6px;
}
@media (max-width:980px){
  .s360-sidebar{border-radius:20px !important}
  .s360-sidebar-head{padding:11px 8px 8px !important}
  .s360-nav{padding:8px 8px 10px !important}
}

/* ===== SIDEBAR SPACING + SOFT MOTION TUNING ===== */
.s360-sidebar{
  width:260px !important;
  min-width:260px !important;
  flex-basis:260px !important;
}
.s360-shell.collapsed .s360-sidebar{
  width:86px !important;
  min-width:86px !important;
  flex-basis:86px !important;
}
.s360-sidebar-head{
  padding:16px 14px 12px !important;
  gap:10px !important;
}
.s360-brand{
  min-height:42px !important;
  width:100% !important;
  justify-content:center !important;
}
.s360-brand-full,
.s360-brand-short{
  color:#314155 !important;
  text-shadow:none !important;
}
.s360-nav{
  padding:12px 12px 16px !important;
  gap:9px !important;
}
.s360-nav-section-label{
  margin:14px 8px 6px !important;
}
.s360-nav-item{
  min-height:46px !important;
  padding:10px 12px !important;
}
.s360-submenu-wrap{
  margin:2px 4px 6px 12px !important;
  padding:6px 0 6px 10px !important;
  display:grid !important;
  gap:7px !important;
}
.s360-sub-item{
  min-height:40px !important;
}
.s360-sidebar-foot{
  padding:12px !important;
}

/* Remove jumpy re-render animations and keep slow/smooth transitions */
.s360-content-scroll,
.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article,
.s360-submenu-wrap.open{
  animation:none !important;
}
.s360-shell,
.s360-sidebar,
.s360-main,
.s360-content-scroll,
.s360-nav-item,
.s360-submenu-wrap,
.s360-chevron,
.s360-side-toggle,
.s360-btn{
  transition-timing-function:cubic-bezier(.22,.61,.36,1) !important;
  transition-duration:.34s !important;
}
.s360-nav-item:hover,
.s360-shortcut:hover,
.s360-card-clickable:hover,
.s360-panel-clickable:hover,
.s360-btn:hover{
  transform:none !important;
}
.s360-nav-item{
  transform:none !important;
}

@media (max-width:980px){
  .s360-sidebar{
    width:90px !important;
    min-width:90px !important;
    flex-basis:90px !important;
  }
  .s360-nav{
    padding:10px 10px 14px !important;
    gap:8px !important;
  }
}

/* ===== SUBMENU VISIBILITY FIX ===== */
.s360-sidebar{
  min-height:0 !important;
}
.s360-nav{
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-bottom:22px !important;
}
.s360-submenu-wrap{
  overflow:hidden !important;
}
.s360-submenu-wrap.open{
  max-height:640px !important;
  opacity:1 !important;
  transform:translateY(0) !important;
  overflow:visible !important;
}

/* ===== COLLAPSED ICON ALIGNMENT FIX ===== */
.s360-shell.collapsed .s360-nav-item{
  width:48px !important;
  min-width:48px !important;
  height:48px !important;
  min-height:48px !important;
  padding:0 !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  position:relative !important;
  line-height:0 !important;
}
.s360-shell.collapsed .s360-nav-item > span{
  display:none !important;
}
.s360-shell.collapsed .s360-nav-item .s360-svg-icon{
  display:block !important;
  margin:0 !important;
}
.s360-shell.collapsed .s360-nav-item > .s360-svg-icon{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%, -50%) !important;
}
.s360-shell.collapsed .s360-nav-item::before{
  display:none !important;
}

/* Keep scroll behavior but hide sidebar scrollbar for cleaner UI */
.s360-nav{
  -ms-overflow-style:none !important;
  scrollbar-width:none !important;
}
.s360-nav::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}

/* ===== Mi Perfil Hero ===== */
.s360-profile-hero{
  margin:8px 0 14px;
  padding:18px 14px 16px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.22);
  background:linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.52));
  display:grid;
  justify-items:center;
  text-align:center;
  gap:6px;
}
.s360-profile-hero-avatar-wrap{
  width:94px;
  height:94px;
  border-radius:28px;
  padding:4px;
  background:linear-gradient(135deg, rgba(10,132,255,.28), rgba(90,200,250,.24));
}
.s360-profile-hero-avatar{
  width:100%;
  height:100%;
  border-radius:24px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.85);
  display:block;
}
.s360-profile-hero-avatar.is-fallback{
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:30px;
  color:#fff;
  background:linear-gradient(135deg,#0a84ff,#5ac8fa);
}
.s360-profile-hero h4{
  margin:6px 0 0;
  font-size:21px;
  color:#1f2937;
}
.s360-profile-hero-role{
  font-size:13px;
  color:#3b82f6;
  font-weight:600;
}
.s360-profile-hero-email{
  font-size:13px;
  color:#64748b;
}

/* ===== GLOBAL ADAPTIVE LAYOUT FIX (no content clipping) ===== */
.s360-main,
.s360-content-scroll,
.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-content-scroll{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-right:10px !important;
}

.s360-panel{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-grid,
.s360-grid-admin,
.s360-grid-2{
  min-width:0 !important;
}

.s360-grid-admin{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.s360-two{
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)) !important;
}

.s360-agenda-toolbar{
  flex-wrap:wrap !important;
  align-items:flex-start !important;
}

.s360-agenda-toolbar > h3{
  flex:1 1 220px !important;
  min-width:0 !important;
}

.s360-agenda-actions{
  flex:1 1 640px !important;
  min-width:0 !important;
  width:100% !important;
  justify-content:flex-end !important;
}

.s360-folder-tabs,
.s360-folder-tabs-inline{
  max-width:100% !important;
  min-width:0 !important;
  flex-wrap:wrap !important;
}

.s360-folder-tab,
.s360-time-tab{
  white-space:nowrap !important;
}

#s360-sales-date{
  flex:0 1 200px !important;
  min-width:170px !important;
  margin-bottom:0 !important;
}

#s360-sales-search{
  flex:1 1 320px !important;
  min-width:240px !important;
  margin-bottom:0 !important;
}

#s360-sales-refresh{
  flex:0 0 auto !important;
}

.s360-seguimientos-wrap{
  max-width:100% !important;
  overflow:auto !important;
}

.s360-table,
.s360-table-follow,
.s360-table-sales{
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
}

@media (max-width:1280px){
  .s360-agenda-actions{
    justify-content:flex-start !important;
  }
}

@media (max-width:860px){
  .s360-grid-admin{
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
  #s360-sales-date,
  #s360-sales-search,
  #s360-sales-refresh{
    flex:1 1 100% !important;
    min-width:0 !important;
  }
}

/* ===== UNIFIED APPLE SYSTEM REORGANIZATION (authoritative final layer) ===== */
*,
*::before,
*::after{
  box-sizing:border-box !important;
}

.s360-app{
  background:
    radial-gradient(1200px 620px at 0% 0%, rgba(255,255,255,.72), rgba(255,255,255,0) 56%),
    linear-gradient(180deg, #eef2f7 0%, #e9eef5 100%) !important;
}

.s360-shell{
  width:calc(100vw - 22px) !important;
  height:calc(100dvh - 22px) !important;
  margin:11px !important;
  padding:10px !important;
  gap:10px !important;
  border-radius:28px !important;
  overflow:hidden !important;
}

.s360-workarea{
  display:flex !important;
  gap:12px !important;
  align-items:stretch !important;
  min-height:0 !important;
}

.s360-main{
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
}

.s360-content-scroll{
  min-width:0 !important;
  max-width:100% !important;
  height:100% !important;
  overflow:auto !important;
  overscroll-behavior:contain !important;
  padding:2px 10px 18px 2px !important;
}

.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-panel,
.s360-card,
.s360-seguimientos-wrap,
.s360-modal,
.s360-dropdown{
  border-radius:18px !important;
}

.s360-panel{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:clamp(14px, 1.4vw, 20px) !important;
  margin-bottom:14px !important;
  overflow:visible !important;
}

.s360-grid,
.s360-grid-admin,
.s360-grid-2{
  width:100% !important;
  min-width:0 !important;
  gap:12px !important;
}

.s360-grid{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.s360-grid-admin{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.s360-grid-2{
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)) !important;
}

.s360-agenda-toolbar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:10px 12px !important;
  margin-bottom:12px !important;
}

.s360-agenda-toolbar > h3{
  flex:1 1 220px !important;
  min-width:0 !important;
  margin:0 !important;
}

.s360-agenda-actions{
  flex:1 1 680px !important;
  min-width:0 !important;
  width:100% !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}

.s360-folder-tabs,
.s360-time-tabs{
  width:100% !important;
  min-width:0 !important;
}

.s360-folder-tabs{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-end !important;
  gap:6px !important;
}

.s360-folder-tabs-inline{
  display:flex !important;
  flex-wrap:wrap !important;
  min-width:0 !important;
}

.s360-folder-tab,
.s360-time-tab{
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

.s360-input,
.s360-select,
.s360-textarea{
  width:100% !important;
  min-width:0 !important;
}

#s360-sales-date{
  flex:0 1 190px !important;
  min-width:170px !important;
}

#s360-sales-search{
  flex:1 1 320px !important;
  min-width:240px !important;
}

#s360-sales-refresh{
  flex:0 0 auto !important;
}

.s360-seguimientos-wrap{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch !important;
}

.s360-table,
.s360-table-follow,
.s360-table-sales{
  border-collapse:separate !important;
  border-spacing:0 !important;
}

.s360-table{
  width:100% !important;
  min-width:100% !important;
}

.s360-table-follow,
.s360-table-sales{
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
}

.s360-table th,
.s360-table td,
.s360-table-follow th,
.s360-table-follow td,
.s360-table-sales th,
.s360-table-sales td{
  white-space:nowrap !important;
}

.s360-table th,
.s360-table-follow th,
.s360-table-sales th{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
}

.s360-btn,
.s360-nav-item,
.s360-folder-tab,
.s360-time-tab,
.s360-card,
.s360-panel{
  transition:
    background-color .32s cubic-bezier(.22,.61,.36,1),
    border-color .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s cubic-bezier(.22,.61,.36,1),
    transform .32s cubic-bezier(.22,.61,.36,1) !important;
}

.s360-card:hover,
.s360-panel:hover,
.s360-btn:hover,
.s360-folder-tab:hover,
.s360-time-tab:hover{
  transform:none !important;
}

.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article,
.s360-panel,
.s360-card,
.s360-submenu-wrap.open{
  animation:none !important;
}

@media (max-width:1366px){
  .s360-shell{
    width:calc(100vw - 16px) !important;
    height:calc(100dvh - 16px) !important;
    margin:8px !important;
    border-radius:24px !important;
  }
  .s360-agenda-actions{
    justify-content:flex-start !important;
  }
}

@media (max-width:980px){
  .s360-shell{
    padding:8px !important;
    gap:8px !important;
  }
  .s360-content-scroll{
    padding-right:4px !important;
  }
  .s360-grid,
  .s360-grid-admin{
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
  .s360-grid-2{
    grid-template-columns:1fr !important;
  }
  #s360-sales-date,
  #s360-sales-search,
  #s360-sales-refresh{
    flex:1 1 100% !important;
    min-width:0 !important;
  }
}

/* ===== TABLE HORIZONTAL SCROLL RESTORE + CLIPPING FIX ===== */
.s360-content-scroll{
  overflow-x:hidden !important;
}

.s360-seguimientos-wrap{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  display:block !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:auto !important;
  -ms-overflow-style:auto !important;
  padding-bottom:6px !important;
}

.s360-seguimientos-wrap::-webkit-scrollbar{
  height:11px !important;
  width:11px !important;
  display:block !important;
}
.s360-seguimientos-wrap::-webkit-scrollbar-track{
  background:rgba(148,163,184,.18) !important;
  border-radius:999px !important;
}
.s360-seguimientos-wrap::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#94a3b8,#64748b) !important;
  border-radius:999px !important;
}

.s360-table-follow,
.s360-table-sales{
  table-layout:auto !important;
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
}

.s360-table-follow th,
.s360-table-follow td,
.s360-table-sales th,
.s360-table-sales td{
  overflow:visible !important;
  text-overflow:clip !important;
}

/* ===== SYSTEM-WIDE ORGANIZATION RESTRUCTURE (final authoritative layer) ===== */
.s360-shell{
  width:calc(100vw - 12px) !important;
  height:calc(100dvh - 12px) !important;
  max-width:calc(100vw - 12px) !important;
  max-height:calc(100dvh - 12px) !important;
  margin:6px !important;
  padding:10px !important;
  border-radius:24px !important;
  gap:10px !important;
  overflow:hidden !important;
}

.s360-topbar{
  min-height:52px !important;
  height:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  padding:8px 12px !important;
}

.s360-top-left,
.s360-right{
  min-width:0 !important;
}

.s360-right{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  flex:1 1 460px !important;
}

.s360-title-text{
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.s360-workarea{
  min-height:0 !important;
  height:100% !important;
  display:flex !important;
  gap:12px !important;
  align-items:stretch !important;
}

.s360-main{
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
}

.s360-content-scroll{
  height:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:auto !important;
  overflow-x:hidden !important;
  padding:4px 8px 16px 2px !important;
}

.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}

.s360-panel{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:clamp(14px, 1.3vw, 20px) !important;
  margin-bottom:12px !important;
}

.s360-card{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-grid{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap:12px !important;
}

.s360-grid-admin{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap:12px !important;
}

.s360-grid-2{
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap:12px !important;
}

.s360-two{
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap:12px !important;
}

.s360-agenda-toolbar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin-bottom:12px !important;
}

.s360-agenda-toolbar > h3{
  flex:1 1 220px !important;
  min-width:0 !important;
  margin:0 !important;
}

.s360-agenda-actions{
  flex:1 1 680px !important;
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}

.s360-folder-tabs,
.s360-time-tabs{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding-bottom:4px !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:thin !important;
}

.s360-folder-tabs-inline{
  flex:1 1 340px !important;
  min-width:260px !important;
}

.s360-folder-tab,
.s360-time-tab{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

.s360-input,
.s360-select,
.s360-textarea{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}

#s360-sales-date{
  flex:0 1 190px !important;
  min-width:170px !important;
  margin-bottom:0 !important;
}

#s360-sales-search{
  flex:1 1 340px !important;
  min-width:240px !important;
  margin-bottom:0 !important;
}

#s360-sales-refresh{
  flex:0 0 auto !important;
}

/* Bases + tables: always allow horizontal navigation with visible scrollbar */
.s360-seguimientos-wrap{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:auto !important;
  -ms-overflow-style:auto !important;
  padding-bottom:8px !important;
}

.s360-seguimientos-wrap::-webkit-scrollbar,
.s360-folder-tabs::-webkit-scrollbar,
.s360-time-tabs::-webkit-scrollbar{
  height:11px !important;
  width:11px !important;
  display:block !important;
}

.s360-seguimientos-wrap::-webkit-scrollbar-track,
.s360-folder-tabs::-webkit-scrollbar-track,
.s360-time-tabs::-webkit-scrollbar-track{
  background:rgba(148,163,184,.18) !important;
  border-radius:999px !important;
}

.s360-seguimientos-wrap::-webkit-scrollbar-thumb,
.s360-folder-tabs::-webkit-scrollbar-thumb,
.s360-time-tabs::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#94a3b8,#64748b) !important;
  border-radius:999px !important;
}

.s360-table,
.s360-table-follow,
.s360-table-sales{
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}

.s360-table th,
.s360-table td,
.s360-table-follow th,
.s360-table-follow td,
.s360-table-sales th,
.s360-table-sales td{
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

.s360-table th,
.s360-table-follow th,
.s360-table-sales th{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
}

/* Soft, non-jumpy animation language */
.s360-panel,
.s360-card,
.s360-btn,
.s360-nav-item,
.s360-folder-tab,
.s360-time-tab{
  transition:
    background-color .3s cubic-bezier(.22,.61,.36,1),
    border-color .3s cubic-bezier(.22,.61,.36,1),
    box-shadow .3s cubic-bezier(.22,.61,.36,1) !important;
}

.s360-card:hover,
.s360-panel:hover,
.s360-btn:hover,
.s360-folder-tab:hover,
.s360-time-tab:hover{
  transform:none !important;
}

.s360-content-scroll > section,
.s360-content-scroll > div,
.s360-content-scroll > article,
.s360-submenu-wrap.open{
  animation:none !important;
}

@media (max-width:1366px){
  .s360-shell{
    width:calc(100vw - 8px) !important;
    height:calc(100dvh - 8px) !important;
    margin:4px !important;
    border-radius:20px !important;
  }
  .s360-agenda-actions{
    justify-content:flex-start !important;
  }
}

@media (max-width:980px){
  .s360-shell{
    padding:8px !important;
    gap:8px !important;
  }
  .s360-grid,
  .s360-grid-admin{
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
  .s360-grid-2,
  .s360-two{
    grid-template-columns:1fr !important;
  }
  .s360-agenda-actions{
    justify-content:flex-start !important;
  }
  #s360-sales-date,
  #s360-sales-search,
  #s360-sales-refresh{
    flex:1 1 100% !important;
    min-width:0 !important;
  }
}

/* ===== Responsive width + DB horizontal scroll (authoritative final override) ===== */
#system360-app,
.s360-app{
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
}

.s360-shell{
  width:auto !important;
  max-width:calc(100vw - 8px) !important;
}

.s360-main,
.s360-content-scroll,
.s360-panel{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-content-scroll{
  overflow-x:hidden !important;
}

.s360-seguimientos-wrap{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:auto !important;
  -ms-overflow-style:auto !important;
}

.s360-table{
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  table-layout:auto !important;
}

.s360-table th,
.s360-table td{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

.s360-seguimientos-wrap > .s360-table,
.s360-seguimientos-wrap > .s360-table-follow,
.s360-seguimientos-wrap > .s360-table-sales{
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
}

.s360-seguimientos-wrap > .s360-table th,
.s360-seguimientos-wrap > .s360-table td,
.s360-seguimientos-wrap > .s360-table-follow th,
.s360-seguimientos-wrap > .s360-table-follow td,
.s360-seguimientos-wrap > .s360-table-sales th,
.s360-seguimientos-wrap > .s360-table-sales td{
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* ===== Hard fix: prevent right clipping in sales/base tables ===== */
.s360-agenda-toolbar,
.s360-agenda-actions{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-agenda-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:flex-start !important;
  align-items:center !important;
  gap:8px !important;
}

.s360-agenda-actions > *{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-sales-panel{
  overflow:visible !important;
}

.s360-sales-panel .s360-agenda-toolbar{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
}

.s360-sales-panel .s360-agenda-actions{
  width:100% !important;
  justify-content:flex-start !important;
}

.s360-sales-panel .s360-folder-tabs-inline{
  flex:1 1 100% !important;
  width:100% !important;
  min-width:0 !important;
}

.s360-sales-panel #s360-sales-date{
  flex:0 1 220px !important;
  min-width:160px !important;
  max-width:220px !important;
}

.s360-sales-panel #s360-sales-search{
  flex:1 1 320px !important;
  min-width:220px !important;
}

.s360-sales-panel #s360-sales-refresh{
  flex:0 0 auto !important;
}

.s360-sales-panel .s360-seguimientos-wrap,
.s360-panel .s360-seguimientos-wrap{
  overflow-x:scroll !important;
  overflow-y:hidden !important;
  scrollbar-gutter:stable both-edges !important;
  padding-bottom:10px !important;
}

@media (max-width:1100px){
  .s360-sales-panel #s360-sales-date,
  .s360-sales-panel #s360-sales-search,
  .s360-sales-panel #s360-sales-refresh{
    flex:1 1 100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
}



/* ===== Absolute fix: data tables never expand app width; always horizontal scroll inside panel ===== */
.s360-follow-panel,
.s360-sales-panel,
.s360-bases-panel{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:visible !important;
}

.s360-follow-panel .s360-followup-dashboard,
.s360-follow-panel .s360-folder-tabs,
.s360-sales-panel .s360-folder-tabs,
.s360-sales-panel .s360-agenda-actions{
  min-width:0 !important;
  max-width:100% !important;
}

.s360-follow-panel .s360-folder-tabs,
.s360-sales-panel .s360-folder-tabs,
.s360-sales-panel .s360-time-tabs{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
}

.s360-follow-panel .s360-seguimientos-wrap,
.s360-sales-panel .s360-seguimientos-wrap,
.s360-bases-panel .s360-seguimientos-wrap{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-x:scroll !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-gutter:stable both-edges !important;
  padding-bottom:10px !important;
}

.s360-follow-panel .s360-seguimientos-wrap > table,
.s360-sales-panel .s360-seguimientos-wrap > table,
.s360-bases-panel .s360-seguimientos-wrap > table{
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
  table-layout:auto !important;
}

.s360-follow-panel .s360-seguimientos-wrap th,
.s360-follow-panel .s360-seguimientos-wrap td,
.s360-sales-panel .s360-seguimientos-wrap th,
.s360-sales-panel .s360-seguimientos-wrap td,
.s360-bases-panel .s360-seguimientos-wrap th,
.s360-bases-panel .s360-seguimientos-wrap td{
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* Keep the application itself constrained to viewport width */
#system360-app,
.s360-app,
.s360-shell,
.s360-workarea,
.s360-main,
.s360-content-scroll{
  max-width:100% !important;
  min-width:0 !important;
}

.s360-main,
.s360-content-scroll{
  overflow-x:hidden !important;
}

/* ===== APPLE DESIGN SYSTEM V6 (authoritative final layer) ===== */
#system360-app{
  --apple-font: "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --apple-bg: #f5f6f8;
  --apple-bg-soft: #eef1f5;
  --apple-surface: rgba(255, 255, 255, 0.82);
  --apple-surface-strong: rgba(255, 255, 255, 0.94);
  --apple-border: rgba(15, 23, 42, 0.1);
  --apple-border-strong: rgba(15, 23, 42, 0.18);
  --apple-text: #111827;
  --apple-text-soft: #6b7280;
  --apple-accent: #0a84ff;
  --apple-accent-soft: rgba(10, 132, 255, 0.14);
  --apple-ok: #34c759;
  --apple-warn: #ff9f0a;
  --apple-danger: #ff453a;
  --apple-radius: 14px;
  --apple-radius-sm: 10px;
  --apple-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --apple-shadow-md: 0 10px 24px rgba(15, 23, 42, 0.12);
  --apple-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  #system360-app{
    --apple-bg: #0f1115;
    --apple-bg-soft: #141922;
    --apple-surface: rgba(28, 32, 40, 0.82);
    --apple-surface-strong: rgba(31, 36, 46, 0.94);
    --apple-border: rgba(255, 255, 255, 0.1);
    --apple-border-strong: rgba(255, 255, 255, 0.2);
    --apple-text: #f2f4f8;
    --apple-text-soft: #a8b0bf;
    --apple-accent: #4aa3ff;
    --apple-accent-soft: rgba(74, 163, 255, 0.18);
    --apple-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.35);
    --apple-shadow-md: 0 16px 34px rgba(0, 0, 0, 0.42);
  }
}

#system360-app,
#system360-app *{
  font-family: var(--apple-font) !important;
}

.s360-app{
  color: var(--apple-text) !important;
  background:
    radial-gradient(1100px 700px at -15% -20%, rgba(10,132,255,.16), transparent 60%),
    radial-gradient(950px 680px at 120% -10%, rgba(52,199,89,.1), transparent 62%),
    linear-gradient(180deg, var(--apple-bg) 0%, var(--apple-bg-soft) 100%) !important;
}

.s360-shell{
  width: calc(100vw - 14px) !important;
  max-width: calc(100vw - 14px) !important;
  height: calc(100dvh - 14px) !important;
  margin: 7px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  border: 1px solid var(--apple-border) !important;
  background: color-mix(in srgb, var(--apple-surface) 92%, transparent) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  box-shadow: var(--apple-shadow-md) !important;
  overflow: hidden !important;
}

.s360-topbar{
  min-height: 62px !important;
  border-radius: var(--apple-radius) !important;
  border: 1px solid var(--apple-border) !important;
  background: var(--apple-surface) !important;
  box-shadow: var(--apple-shadow-sm) !important;
  padding: 10px 12px !important;
}

.s360-top-left{
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.s360-breadcrumbs{
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.s360-crumb{
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--apple-text-soft) !important;
}

.s360-crumb.current{
  color: var(--apple-accent) !important;
}

.s360-crumb-sep{
  font-size: 11px !important;
  color: color-mix(in srgb, var(--apple-text-soft) 70%, transparent) !important;
}

.s360-title-text{
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 700 !important;
  color: var(--apple-text) !important;
  letter-spacing: -0.02em !important;
}

.s360-sidebar{
  border-radius: 16px !important;
  border: 1px solid var(--apple-border) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--apple-surface-strong) 94%, transparent), color-mix(in srgb, var(--apple-surface) 88%, transparent)) !important;
  box-shadow: var(--apple-shadow-sm) !important;
}

.s360-brand{
  color: var(--apple-text) !important;
  text-shadow: none !important;
  letter-spacing: -0.02em !important;
}

.s360-nav{
  padding: 10px !important;
  gap: 7px !important;
}

.s360-nav-section-label{
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--apple-text-soft) !important;
  opacity: .9 !important;
}

.s360-nav-item{
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: var(--apple-text) !important;
  background: transparent !important;
  font-weight: 600 !important;
  transition: background-color .22s var(--apple-ease), border-color .22s var(--apple-ease), color .22s var(--apple-ease), box-shadow .22s var(--apple-ease) !important;
}

.s360-nav-item:hover{
  background: color-mix(in srgb, var(--apple-accent-soft) 55%, var(--apple-surface)) !important;
  border-color: var(--apple-border) !important;
  box-shadow: none !important;
}

.s360-nav-item.active{
  background: color-mix(in srgb, var(--apple-accent-soft) 85%, var(--apple-surface-strong)) !important;
  border-color: color-mix(in srgb, var(--apple-accent) 45%, var(--apple-border)) !important;
  color: color-mix(in srgb, var(--apple-accent) 72%, var(--apple-text)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--apple-accent) 22%, transparent) !important;
}

.s360-main,
.s360-content-scroll{
  min-width: 0 !important;
  max-width: 100% !important;
}

.s360-content-scroll{
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px 10px 16px 4px !important;
}

.s360-panel,
.s360-card,
.s360-modal,
.s360-dropdown,
.s360-notif-card,
.s360-seguimientos-wrap{
  border-radius: var(--apple-radius) !important;
  border: 1px solid var(--apple-border) !important;
  background: var(--apple-surface) !important;
  box-shadow: var(--apple-shadow-sm) !important;
}

.s360-panel{
  padding: 16px !important;
  margin-bottom: 12px !important;
  overflow: visible !important;
}

.s360-card{
  padding: 14px !important;
}

.s360-card .k{
  font-size: 12px !important;
  color: var(--apple-text-soft) !important;
}

.s360-card .v{
  font-size: clamp(28px, 2.3vw, 34px) !important;
  line-height: 1.05 !important;
  color: var(--apple-text) !important;
  letter-spacing: -0.02em !important;
}

.s360-btn{
  min-height: 40px !important;
  border-radius: 11px !important;
  border: 1px solid var(--apple-border) !important;
  background: var(--apple-surface-strong) !important;
  color: var(--apple-text) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transition: transform .16s var(--apple-ease), box-shadow .22s var(--apple-ease), background-color .22s var(--apple-ease), border-color .22s var(--apple-ease) !important;
}

.s360-btn:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14) !important;
}

.s360-btn:active{
  transform: translateY(0) scale(.99) !important;
}

.s360-btn.sec{ background: color-mix(in srgb, var(--apple-surface-strong) 76%, transparent) !important; }
.s360-btn.ok{ background: color-mix(in srgb, var(--apple-ok) 22%, var(--apple-surface-strong)) !important; border-color: color-mix(in srgb, var(--apple-ok) 38%, var(--apple-border)) !important; color: color-mix(in srgb, var(--apple-ok) 68%, var(--apple-text)) !important; }
.s360-btn.warn{ background: color-mix(in srgb, var(--apple-warn) 18%, var(--apple-surface-strong)) !important; border-color: color-mix(in srgb, var(--apple-warn) 40%, var(--apple-border)) !important; color: color-mix(in srgb, var(--apple-warn) 70%, var(--apple-text)) !important; }
.s360-btn.danger{ background: color-mix(in srgb, var(--apple-danger) 16%, var(--apple-surface-strong)) !important; border-color: color-mix(in srgb, var(--apple-danger) 45%, var(--apple-border)) !important; color: color-mix(in srgb, var(--apple-danger) 70%, var(--apple-text)) !important; }

.s360-input,
.s360-select,
.s360-textarea{
  border-radius: 11px !important;
  border: 1px solid var(--apple-border) !important;
  background: color-mix(in srgb, var(--apple-surface-strong) 92%, transparent) !important;
  color: var(--apple-text) !important;
  min-height: 40px !important;
  padding: 9px 12px !important;
  transition: border-color .2s var(--apple-ease), box-shadow .2s var(--apple-ease), background-color .2s var(--apple-ease) !important;
}

.s360-textarea{ min-height: 96px !important; }

.s360-input:focus,
.s360-select:focus,
.s360-textarea:focus,
.s360-btn:focus,
.s360-nav-item:focus,
.s360-folder-tab:focus,
.s360-time-tab:focus{
  outline: none !important;
  border-color: color-mix(in srgb, var(--apple-accent) 75%, var(--apple-border)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--apple-accent) 24%, transparent) !important;
}

.s360-label{
  color: var(--apple-text-soft) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.s360-ok,
.s360-error,
.s360-alert{
  border-radius: 11px !important;
  border: 1px solid var(--apple-border) !important;
  padding: 10px 12px !important;
}

.s360-ok{
  color: color-mix(in srgb, var(--apple-ok) 75%, var(--apple-text)) !important;
  background: color-mix(in srgb, var(--apple-ok) 16%, var(--apple-surface-strong)) !important;
}

.s360-error,
.s360-alert.danger{
  color: color-mix(in srgb, var(--apple-danger) 76%, var(--apple-text)) !important;
  background: color-mix(in srgb, var(--apple-danger) 13%, var(--apple-surface-strong)) !important;
}

.s360-alert.warn{
  color: color-mix(in srgb, var(--apple-warn) 75%, var(--apple-text)) !important;
  background: color-mix(in srgb, var(--apple-warn) 14%, var(--apple-surface-strong)) !important;
}

.s360-alert.ok{
  color: color-mix(in srgb, var(--apple-ok) 75%, var(--apple-text)) !important;
  background: color-mix(in srgb, var(--apple-ok) 14%, var(--apple-surface-strong)) !important;
}

.s360-seguimientos-wrap{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable both-edges !important;
}

.s360-seguimientos-wrap > .s360-table,
.s360-seguimientos-wrap > .s360-table-follow,
.s360-seguimientos-wrap > .s360-table-sales{
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.s360-table{
  width: 100% !important;
  min-width: 100% !important;
}

.s360-table th,
.s360-table td,
.s360-table-follow th,
.s360-table-follow td,
.s360-table-sales th,
.s360-table-sales td{
  border-bottom: 1px solid color-mix(in srgb, var(--apple-border) 75%, transparent) !important;
  padding: 11px 12px !important;
  color: var(--apple-text) !important;
  background: transparent !important;
}

.s360-seguimientos-wrap > .s360-table th,
.s360-seguimientos-wrap > .s360-table td,
.s360-seguimientos-wrap > .s360-table-follow th,
.s360-seguimientos-wrap > .s360-table-follow td,
.s360-seguimientos-wrap > .s360-table-sales th,
.s360-seguimientos-wrap > .s360-table-sales td{
  white-space: nowrap !important;
}

.s360-table th,
.s360-table-follow th,
.s360-table-sales th{
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  color: var(--apple-text-soft) !important;
  background: color-mix(in srgb, var(--apple-surface-strong) 94%, transparent) !important;
  backdrop-filter: blur(8px) !important;
}

.s360-table tbody tr:hover td,
.s360-table-follow tbody tr:hover td,
.s360-table-sales tbody tr:hover td{
  background: color-mix(in srgb, var(--apple-accent-soft) 42%, transparent) !important;
}

.s360-folder-tab,
.s360-time-tab{
  border-radius: 10px !important;
  border: 1px solid var(--apple-border) !important;
  background: color-mix(in srgb, var(--apple-surface-strong) 86%, transparent) !important;
  color: var(--apple-text-soft) !important;
  font-weight: 600 !important;
}

.s360-folder-tab.active,
.s360-time-tab.active{
  border-color: color-mix(in srgb, var(--apple-accent) 48%, var(--apple-border)) !important;
  background: color-mix(in srgb, var(--apple-accent-soft) 85%, var(--apple-surface-strong)) !important;
  color: color-mix(in srgb, var(--apple-accent) 74%, var(--apple-text)) !important;
}

.s360-modal-bg{
  backdrop-filter: blur(8px) saturate(135%) !important;
  background: rgba(3, 7, 18, .35) !important;
}

.s360-modal{
  width: min(1020px, 95vw) !important;
  max-height: 90vh !important;
  border-radius: 16px !important;
  border: 1px solid var(--apple-border-strong) !important;
  background: var(--apple-surface-strong) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.3) !important;
}

.s360-dropdown{
  border-radius: 12px !important;
  border: 1px solid var(--apple-border) !important;
  background: var(--apple-surface-strong) !important;
  box-shadow: var(--apple-shadow-md) !important;
}

.s360-skeleton-line{
  border-radius: 999px !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--apple-text-soft) 16%, transparent), color-mix(in srgb, var(--apple-text-soft) 28%, transparent), color-mix(in srgb, var(--apple-text-soft) 16%, transparent)) !important;
  background-size: 200% 100% !important;
  animation: s360AppleShimmer 1.2s linear infinite !important;
}

@keyframes s360AppleShimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -20% 0; }
}

[data-tip]{
  position: relative;
}

[data-tip]:hover::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--apple-border);
  background: var(--apple-surface-strong);
  color: var(--apple-text);
  font-size: 11px;
  white-space: nowrap;
  box-shadow: var(--apple-shadow-sm);
  z-index: 50;
}

.s360-svg-icon{
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

@media (max-width: 1180px){
  .s360-shell{
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    height: calc(100dvh - 8px) !important;
    margin: 4px !important;
    border-radius: 14px !important;
  }
  .s360-agenda-actions{
    justify-content: flex-start !important;
  }
}

@media (max-width: 980px){
  .s360-topbar{
    gap: 8px !important;
    padding: 8px 10px !important;
  }
  .s360-title-text{
    font-size: 18px !important;
  }
  .s360-grid,
  .s360-grid-admin{
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  }
  .s360-grid-2,
  .s360-two{
    grid-template-columns: 1fr !important;
  }
  #s360-sales-date,
  #s360-sales-search,
  #s360-sales-refresh{
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ===== UI RESTRUCTURE V7: spacing, proportion, hierarchy, alignment ===== */
#system360-app{
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
}

#system360-app .s360-shell{
  width: calc(100vw - var(--space-3)) !important;
  max-width: calc(100vw - var(--space-3)) !important;
  height: calc(100dvh - var(--space-3)) !important;
  margin: calc(var(--space-3) / 2) !important;
  padding: var(--space-2) !important;
  gap: var(--space-2) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  border-radius: var(--radius-lg) !important;
}

#system360-app .s360-workarea{
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: 256px minmax(0, 1fr) !important;
  gap: var(--space-2) !important;
}

#system360-app .s360-shell.collapsed .s360-workarea{
  grid-template-columns: 92px minmax(0, 1fr) !important;
}

#system360-app .s360-sidebar{
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-2) !important;
  overflow: hidden !important;
}

#system360-app .s360-sidebar-head{
  gap: var(--space-1) !important;
  padding: var(--space-1) !important;
  min-height: 72px !important;
}

#system360-app .s360-nav{
  gap: 6px !important;
  padding: var(--space-1) !important;
}

#system360-app .s360-nav-section-label{
  margin: var(--space-2) 0 4px !important;
  padding: 0 var(--space-1) !important;
}

#system360-app .s360-nav-item{
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  gap: 10px !important;
}

#system360-app .s360-main{
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

#system360-app .s360-content-scroll{
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 4px var(--space-2) var(--space-3) 2px !important;
}

#system360-app .s360-content-scroll > section,
#system360-app .s360-content-scroll > div,
#system360-app .s360-content-scroll > article{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#system360-app .s360-topbar{
  min-height: 60px !important;
  padding: 10px var(--space-3) !important;
  gap: var(--space-2) !important;
  border-radius: var(--radius-md) !important;
}

#system360-app .s360-top-left{
  min-width: 0 !important;
  gap: 2px !important;
}

#system360-app .s360-right{
  min-width: 0 !important;
  flex: 1 1 520px !important;
  gap: var(--space-1) !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}

#system360-app .s360-panel{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: var(--space-3) !important;
  margin-bottom: var(--space-2) !important;
  border-radius: var(--radius-md) !important;
  overflow: visible !important;
}

#system360-app .s360-panel h3{
  margin: 0 0 var(--space-2) !important;
  line-height: 1.2 !important;
}

#system360-app .s360-card{
  min-width: 0 !important;
  padding: var(--space-3) !important;
  border-radius: var(--radius-md) !important;
}

#system360-app .s360-grid,
#system360-app .s360-grid-admin{
  gap: var(--space-3) !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

#system360-app .s360-grid-2,
#system360-app .s360-two{
  gap: var(--space-3) !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}

#system360-app .s360-flex{
  gap: var(--space-2) !important;
}

#system360-app .s360-agenda-toolbar{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--space-2) !important;
  margin-bottom: var(--space-2) !important;
}

#system360-app .s360-agenda-actions{
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: var(--space-1) !important;
}

#system360-app .s360-folder-tabs,
#system360-app .s360-time-tabs,
#system360-app .s360-folder-tabs-inline{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#system360-app .s360-folder-tabs,
#system360-app .s360-time-tabs{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 4px !important;
}

#system360-app .s360-folder-tab,
#system360-app .s360-time-tab{
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
}

#system360-app .s360-input,
#system360-app .s360-select,
#system360-app .s360-textarea{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  margin-bottom: 0 !important;
}

#system360-app .s360-textarea{
  min-height: 96px !important;
}

#system360-app #s360-sales-date{
  flex: 0 1 190px !important;
  min-width: 170px !important;
}

#system360-app #s360-sales-search{
  flex: 1 1 320px !important;
  min-width: 220px !important;
}

#system360-app #s360-sales-refresh{
  flex: 0 0 auto !important;
}

#system360-app .s360-seguimientos-wrap{
  margin-top: var(--space-2) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-bottom: var(--space-1) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable both-edges !important;
  border-radius: 12px !important;
}

#system360-app .s360-seguimientos-wrap > .s360-table,
#system360-app .s360-seguimientos-wrap > .s360-table-follow,
#system360-app .s360-seguimientos-wrap > .s360-table-sales{
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
}

#system360-app .s360-seguimientos-wrap > table th,
#system360-app .s360-seguimientos-wrap > table td{
  white-space: nowrap !important;
}

#system360-app .s360-table th,
#system360-app .s360-table td,
#system360-app .s360-table-follow th,
#system360-app .s360-table-follow td,
#system360-app .s360-table-sales th,
#system360-app .s360-table-sales td{
  padding: 11px 12px !important;
  vertical-align: middle !important;
}

#system360-app .s360-follow-pager{
  margin-top: var(--space-2) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: var(--space-1) !important;
  align-items: center !important;
}

#system360-app .s360-modal{
  width: min(1040px, 95vw) !important;
  max-height: 90vh !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
}

#system360-app .s360-modal-head{
  padding: var(--space-3) !important;
}

#system360-app .s360-modal-body{
  padding: var(--space-3) !important;
  max-height: calc(90vh - 72px) !important;
  overflow: auto !important;
}

@media (max-width: 1200px){
  #system360-app .s360-workarea{
    grid-template-columns: 230px minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px){
  #system360-app .s360-shell{
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    height: calc(100dvh - 8px) !important;
    margin: 4px !important;
    padding: 8px !important;
  }
  #system360-app .s360-workarea{
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  #system360-app .s360-panel{
    padding: 14px !important;
  }
  #system360-app .s360-grid,
  #system360-app .s360-grid-admin{
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 12px !important;
  }
  #system360-app .s360-grid-2,
  #system360-app .s360-two{
    grid-template-columns: 1fr !important;
  }
  #system360-app #s360-sales-date,
  #system360-app #s360-sales-search,
  #system360-app #s360-sales-refresh{
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Keep the predictive "Llamada inicial requerida" CTA explicitly green. */
#system360-app .s360-btn.ok.s360-pred-call-btn{
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  border-color: rgba(18, 126, 58, 0.58) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(18, 126, 58, 0.30) !important;
}
#system360-app .s360-btn.ok.s360-pred-call-btn:hover{
  background: linear-gradient(135deg, #15803d, #16a34a) !important;
  border-color: rgba(17, 107, 50, 0.62) !important;
  color: #ffffff !important;
}
#system360-app .s360-btn.ok.s360-pred-call-btn:disabled{
  background: linear-gradient(135deg, #19984a, #20ad56) !important;
  border-color: rgba(17, 107, 50, 0.44) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  opacity: 0.92 !important;
  cursor: wait !important;
}

/* iOS-like floating notification cards (bottom-right) */
#system360-app .s360-toast-stack{
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 11050 !important;
  width: min(380px, calc(100vw - 16px)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0 !important;
  pointer-events: none !important;
}
#system360-app .s360-toast{
  pointer-events: auto !important;
  position: relative !important;
  width: 100% !important;
  margin-top: -34px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  background: linear-gradient(145deg, rgba(0, 54, 142, 0.90), rgba(0, 116, 214, 0.86)) !important;
  color: #f4f9ff !important;
  box-shadow: 0 22px 44px rgba(0, 36, 96, 0.38) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  padding: 14px 38px 14px 14px !important;
  transform: translateY(calc(var(--s360-toast-index, 0) * -4px)) scale(calc(1 - (var(--s360-toast-index, 0) * 0.02))) !important;
  opacity: calc(1 - (var(--s360-toast-index, 0) * 0.09)) !important;
  transition: opacity .28s ease, transform .28s ease, filter .28s ease !important;
}
#system360-app .s360-toast:first-child{
  margin-top: 0 !important;
}
#system360-app .s360-toast.is-hiding{
  opacity: 0 !important;
  transform: translateY(18px) scale(.96) !important;
  filter: saturate(.84) !important;
}
#system360-app .s360-toast > header{
  margin: 0 0 4px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: .1px !important;
  color: #ffffff !important;
}
#system360-app .s360-toast > p{
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: rgba(240, 248, 255, 0.96) !important;
  cursor: pointer !important;
}
#system360-app .s360-toast-close{
  position: absolute !important;
  right: 10px !important;
  top: 10px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
#system360-app .s360-toast-close:hover{
  background: rgba(255, 255, 255, 0.24) !important;
}
#system360-app .s360-toast.s360-toast-late{
  background: linear-gradient(145deg, rgba(118, 36, 0, 0.91), rgba(206, 74, 19, 0.88)) !important;
}
#system360-app .s360-toast.s360-toast-success{
  background: linear-gradient(145deg, rgba(5, 108, 65, 0.90), rgba(22, 163, 74, 0.86)) !important;
}
#system360-app .s360-toast.s360-toast-suggestion{
  background: linear-gradient(145deg, rgba(0, 76, 122, 0.90), rgba(0, 132, 201, 0.86)) !important;
}

@media (max-width: 760px){
  #system360-app .s360-toast-stack{
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    bottom: 10px !important;
  }
  #system360-app .s360-toast{
    margin-top: -26px !important;
    border-radius: 16px !important;
  }
}
