
:root {
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1a2a44;
  --muted: #5a6a8a;
  --border: rgba(0, 48, 135, .12);
  --accent: #003087;
  --accent2: #0066cc;
  --danger: #d93025;
  --shadow: 0 4px 24px rgba(0, 48, 135, .10);
  --radius: 18px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, Roboto, Arial;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf5 50%, #f5f8fc 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* Login splash: the original CosmoPower and COSMOTE logo assets stay untouched. */
.cp-intro {
  --cp-band: clamp(92px, 15vw, 210px);
  position: fixed;
  inset: 0;
  z-index: 20000;
  overflow: hidden;
  background: #fff;
  pointer-events: auto;
  animation: cpIntroExit 2.8s ease forwards;
}

.cp-intro-lockup {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(82vw, 520px);
  min-height: 104px;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid rgba(0, 48, 135, .08);
  border-radius: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 48px rgba(0, 31, 94, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  transform: translate(-50%, -50%);
  animation: cpLockupReveal 2.8s cubic-bezier(.22, .8, .3, 1) forwards;
}

.cp-intro-cosmopower {
  width: clamp(76px, 14vw, 118px);
  height: auto;
  flex: 0 0 auto;
}

.cp-intro-divider {
  width: 1px;
  height: clamp(58px, 10vw, 82px);
  flex: 0 0 auto;
  background: linear-gradient(180deg, transparent, rgba(0, 48, 135, .26), transparent);
}

.cp-intro-cosmote {
  width: min(54vw, 300px);
  height: auto;
  flex: 0 1 auto;
}

.cp-intro-band {
  position: absolute;
  z-index: 2;
  display: block;
  will-change: transform;
}

.cp-intro-band.vertical {
  left: calc(50% - var(--cp-band) / 2);
  width: var(--cp-band);
  height: 72vh;
}

.cp-intro-band.horizontal {
  top: calc(50% - var(--cp-band) / 2);
  width: 72vw;
  height: var(--cp-band);
}

.cp-intro-band.from-top {
  top: -72vh;
  background: #d79a24;
  border-radius: 0 0 calc(var(--cp-band) / 2) calc(var(--cp-band) / 2);
  animation: cpBandFromTop 2.35s cubic-bezier(.65, 0, .25, 1) .18s forwards;
}

.cp-intro-band.from-bottom {
  bottom: -72vh;
  background: #f2b64a;
  border-radius: calc(var(--cp-band) / 2) calc(var(--cp-band) / 2) 0 0;
  animation: cpBandFromBottom 2.35s cubic-bezier(.65, 0, .25, 1) .18s forwards;
}

.cp-intro-band.from-left {
  left: -72vw;
  background: #003087;
  border-radius: 0 calc(var(--cp-band) / 2) calc(var(--cp-band) / 2) 0;
  animation: cpBandFromLeft 2.35s cubic-bezier(.65, 0, .25, 1) .18s forwards;
}

.cp-intro-band.from-right {
  right: -72vw;
  background: #1769aa;
  border-radius: calc(var(--cp-band) / 2) 0 0 calc(var(--cp-band) / 2);
  animation: cpBandFromRight 2.35s cubic-bezier(.65, 0, .25, 1) .18s forwards;
}

.login-card {
  animation: cpLoginReveal .45s ease 2.48s both;
}

@keyframes cpBandFromTop {
  0% {
    transform: translateY(0);
  }

  42%,
  58% {
    transform: translateY(108vh);
  }

  100% {
    transform: translateY(185vh);
  }
}

@keyframes cpBandFromBottom {
  0% {
    transform: translateY(0);
  }

  42%,
  58% {
    transform: translateY(-108vh);
  }

  100% {
    transform: translateY(-185vh);
  }
}

@keyframes cpBandFromLeft {
  0% {
    transform: translateX(0);
  }

  42%,
  58% {
    transform: translateX(108vw);
  }

  100% {
    transform: translateX(185vw);
  }
}

@keyframes cpBandFromRight {
  0% {
    transform: translateX(0);
  }

  42%,
  58% {
    transform: translateX(-108vw);
  }

  100% {
    transform: translateX(-185vw);
  }
}

@keyframes cpLockupReveal {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.78);
  }

  13% {
    opacity: .18;
    transform: translate(-50%, -50%) scale(.68);
  }

  24%,
  48% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.08);
  }

  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.1);
  }

  86% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes cpIntroExit {
  0%,
  88% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes cpLoginReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-intro {
    display: none;
  }

  .login-card {
    animation: none;
  }
}

@media (max-width: 520px) {
  .cp-intro-lockup {
    width: min(88vw, 390px);
    min-height: 92px;
    gap: 12px;
  }

  .cp-intro-cosmopower {
    width: 72px;
  }

  .cp-intro-cosmote {
    width: min(58vw, 230px);
  }
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #003087 0%, #001f5e 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 16px 10px;
}

.brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand .title {
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
}

.nav {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav a {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.nav a.active {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.main {
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.h1 {
  font-size: 22px;
  font-weight: 800;
  color: #003087;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,48,135,.06);
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,48,135,.06);
}

.btn:hover {
  background: #f0f4ff;
  border-color: #003087;
}

.btn.primary {
  background: #003087;
  border-color: #003087;
  color: #fff;
}

.btn.primary:hover {
  background: #001f5e;
  border-color: #001f5e;
}

.btn.danger {
  background: rgba(217, 48, 37, .08);
  border-color: rgba(217, 48, 37, .3);
  color: #d93025;
}

.btn.danger:hover {
  background: #d93025;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #003087;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);
  padding: 12px;
}

.kpi .num {
  font-size: 26px;
  font-weight: 900;
  color: #003087;
}

.kpi .lbl {
  color: var(--muted);
  font-size: 12px
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 48, 135, .08);
  vertical-align: top;
}

.table th {
  color: #003087;
  font-weight: 700;
  font-size: 12px;
  background: rgba(0,48,135,.04);
}

.muted {
  color: var(--muted)
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form .full {
  grid-column: 1/-1
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 48, 135, .15);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #003087;
  box-shadow: 0 0 0 3px rgba(0,48,135,.08);
}

label {
  font-size: 12px;
  color: var(--muted)
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.alert {
  border: 1px solid rgba(217, 48, 37, .35);
  background: rgba(217, 48, 37, .08);
  padding: 10px 12px;
  border-radius: 12px;
}

.ok {
  border: 1px solid rgba(0, 128, 0, .35);
  background: rgba(0, 128, 0, .08);
  padding: 10px 12px;
  border-radius: 12px;
  color: #065f46;
}


@media (max-width: 980px) {
  .wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    z-index: 1000;
    background: linear-gradient(180deg, #003087 0%, #001f5e 100%);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .main {
    padding: 16px;
    margin-top: 50px;
  }

  .mobile-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 48, 135, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.15);
    z-index: 900;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex !important;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 950;
    display: none;
  }

  .sidebar-overlay.open {
    display: block;
  }

  #closeMenu {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
  }

  .sidebar.open~#closeMenu,
  .sidebar.open+#closeMenu {
    display: block;
  }
}

@media (max-width: 600px) {
  .kpis {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .h1 {
    font-size: 20px;
  }

  .modal-card {
    width: calc(100% - 16px);
    margin: 8px;
    padding: 12px;
  }

  .cust-name span {
    max-width: 200px;
  }
}

.mobile-header,
.menu-toggle,
#closeMenu {
  display: none;
}



.nav i.fa {
  min-width: 18px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  opacity: .95
}


.table-wrap {
  max-height: 340px;
  overflow: auto;
  border-radius: 14px;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 48, 135, .18);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 48, 135, .06);
  border-radius: 999px;
}


.fc .fc-col-header-cell-cushion {
  color: #003087 !important;
}


.fc .fc-daygrid-day-number {
  color: var(--text) !important;
}



.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.modal-card {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 48, 135, .15);
  padding: 14px;
}

.btn-edit {
  white-space: nowrap;
}

.field {
  min-width: 0;
}

.card {
  min-width: 0;
}

.table td {
  word-break: break-word;
}

.cust-cell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cust-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.cust-name span {
  display: inline-block;
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cust-check {
  width: auto;
  transform: scale(1.05);
}

.btn-edit i.fa {
  margin-right: 6px;
}

.table-responsive {
  overflow: auto;
  border-radius: 14px;
}

.table-responsive .table {
  min-width: 900px;
}

.modal-card {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

/* Sidebar pill and logout */
.sidebar .pill {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  color: #fff;
}

.sidebar .btn.danger {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.sidebar .btn.danger:hover {
  background: #d93025;
  border-color: #d93025;
  color: #fff;
}

/* Full-screen partner login */
body.login-page {
  overflow: hidden;
  background: #07101b;
}

.login-page .login-main {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 29vw, 470px);
  background: #fff;
}

.login-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 76% 48%, rgba(239, 175, 65, .26), transparent 34%),
    radial-gradient(circle at 18% 14%, rgba(0, 48, 135, .28), transparent 30%),
    linear-gradient(135deg, #080b11 0%, #17110f 48%, #211006 100%);
}

.login-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 46% -18% -42%;
  opacity: .32;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: top center;
  background:
    linear-gradient(rgba(237, 173, 64, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 173, 64, .18) 1px, transparent 1px);
  background-size: 88px 72px;
  animation: loginGridTravel 8s linear infinite;
}

.login-visual::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42), transparent 38%, transparent 76%, rgba(0, 0, 0, .18)),
    linear-gradient(180deg, rgba(0, 0, 0, .16), transparent 25%, transparent 72%, rgba(0, 0, 0, .32));
}

.login-brand-lockup {
  position: absolute;
  z-index: 8;
  top: clamp(24px, 4vw, 58px);
  left: clamp(28px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

.login-brand-cosmopower {
  width: 78px;
  height: auto;
}

.login-brand-divider {
  width: 1px;
  height: 44px;
  background: rgba(0, 48, 135, .18);
}

.login-brand-cosmote {
  width: min(230px, 20vw);
  height: auto;
}

.login-ambient-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .42;
  animation: loginGlowFloat 7s ease-in-out infinite alternate;
}

.login-ambient-glow.glow-one {
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: 12vh;
  background: rgba(235, 158, 39, .44);
}

.login-ambient-glow.glow-two {
  width: 30vw;
  height: 30vw;
  left: 20vw;
  bottom: -16vw;
  background: rgba(0, 72, 170, .32);
  animation-delay: -3s;
}

.login-energy-tunnel {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(-90px, -4vw, -20px);
  width: min(66vw, 930px);
  height: min(72vh, 680px);
  transform: translateY(-47%) perspective(1100px) rotateY(-9deg);
  transform-style: preserve-3d;
  animation: loginTunnelBreathe 5.5s ease-in-out infinite;
}

.login-energy-frame {
  position: absolute;
  display: block;
  border: clamp(6px, .62vw, 11px) solid #f2b64a;
  border-radius: clamp(34px, 5vw, 76px);
  box-shadow:
    0 0 9px #fff2a6,
    0 0 24px rgba(255, 179, 54, .95),
    0 0 70px rgba(236, 116, 20, .46),
    inset 0 0 18px rgba(255, 198, 85, .62);
  animation: loginFramePulse 3.2s ease-in-out infinite;
}

.login-energy-frame.frame-one {
  inset: 4% 1% 2% 4%;
}

.login-energy-frame.frame-two {
  inset: 19% 15% 16% 20%;
  animation-delay: -.65s;
}

.login-energy-frame.frame-three {
  inset: 34% 30% 30% 37%;
  animation-delay: -1.3s;
}

.login-energy-frame.frame-four {
  inset: 45% 42% 42% 49%;
  animation-delay: -1.95s;
}

.login-energy-core {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff7ce;
  box-shadow: 0 0 26px 10px #f2b64a, 0 0 90px 40px rgba(236, 116, 20, .42);
  animation: loginCorePulse 2.2s ease-in-out infinite;
}

.login-hero-copy {
  position: absolute;
  z-index: 7;
  left: clamp(42px, 7vw, 118px);
  top: 50%;
  display: flex;
  flex-direction: column;
  transform: translateY(-14%);
  text-shadow: 0 8px 34px rgba(0, 0, 0, .55);
}

.login-hero-copy span {
  font-size: clamp(25px, 2.4vw, 42px);
  font-weight: 300;
  letter-spacing: -.03em;
}

.login-hero-copy strong {
  font-size: clamp(52px, 6.7vw, 112px);
  line-height: .94;
  font-weight: 300;
  letter-spacing: -.065em;
}

.login-hero-copy small {
  margin-top: 22px;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-visual-caption {
  position: absolute;
  z-index: 8;
  left: clamp(28px, 4vw, 64px);
  bottom: clamp(22px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2b64a;
  box-shadow: 0 0 14px #f2b64a;
  animation: loginCorePulse 1.5s ease-in-out infinite;
}

.login-panel {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 48, 135, .07), transparent 34%),
    #fff;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .18);
}

.login-panel-inner {
  width: 100%;
  padding: clamp(40px, 5vw, 72px);
}

.login-panel-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(42px, 8vh, 84px);
}

.login-panel-logos span {
  width: 1px;
  height: 38px;
  background: rgba(0, 48, 135, .16);
}

.login-panel-cosmopower {
  width: 66px;
  height: auto;
}

.login-panel-cosmote {
  width: min(190px, 15vw);
  height: auto;
}

.login-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.login-eyebrow {
  margin-bottom: 7px;
  color: #d79a24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.login-panel-heading h1 {
  margin: 0;
  color: #15233b;
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.login-panel-heading p {
  margin: 8px 0 0;
  color: #758198;
  font-size: 14px;
}

.login-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 48, 135, .1);
  border-radius: 999px;
  color: #61708b;
  background: #f7f9fc;
  font-size: 11px;
  white-space: nowrap;
}

.login-alert {
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  gap: 8px;
}

.login-field > label {
  color: #657189;
  font-size: 12px;
  font-weight: 650;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  color: #8995a9;
  transform: translateY(-50%);
}

.login-form .login-input-wrap input {
  min-height: 52px;
  padding: 13px 16px 13px 44px;
  border: 1px solid #dce2eb;
  border-radius: 10px;
  color: #17243a;
  background: #f5f7fa;
  box-shadow: none;
  font-size: 14px;
}

.login-form .login-input-wrap input:focus {
  border-color: #d79a24;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(215, 154, 36, .12);
}

.login-remember {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: #4f5e76;
  cursor: pointer;
  font-size: 13px;
}

.login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #003087;
}

.login-form .login-submit.btn.primary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(100deg, #003087 0%, #1458a5 58%, #d79a24 145%);
  box-shadow: 0 14px 30px rgba(0, 48, 135, .22);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-form .login-submit.btn.primary:hover {
  background: linear-gradient(100deg, #001f5e 0%, #0d478c 58%, #c08419 145%);
  box-shadow: 0 18px 36px rgba(0, 48, 135, .28);
  transform: translateY(-1px);
}

.login-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(45px, 8vh, 82px);
  padding-top: 20px;
  border-top: 1px solid #e8ecf2;
  color: #9aa4b5;
  font-size: 11px;
}

@keyframes loginGridTravel {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 72px, 88px 0;
  }
}

@keyframes loginGlowFloat {
  from {
    transform: translate3d(-3%, -2%, 0) scale(.94);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes loginTunnelBreathe {
  0%,
  100% {
    transform: translateY(-47%) perspective(1100px) rotateY(-9deg) scale(.985);
  }

  50% {
    transform: translateY(-47%) perspective(1100px) rotateY(-7deg) scale(1.025);
  }
}

@keyframes loginFramePulse {
  0%,
  100% {
    filter: brightness(.9);
    opacity: .84;
  }

  50% {
    filter: brightness(1.28);
    opacity: 1;
  }
}

@keyframes loginCorePulse {
  0%,
  100% {
    opacity: .65;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@media (max-width: 980px) {
  body.login-page {
    overflow: auto;
  }

  .login-page .login-main {
    margin-top: 0;
    padding: 0;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 42vw);
  }

  .login-brand-lockup {
    gap: 12px;
    padding: 10px 14px;
  }

  .login-brand-cosmopower {
    width: 62px;
  }

  .login-brand-cosmote {
    width: 160px;
  }

  .login-hero-copy strong {
    font-size: clamp(48px, 7vw, 72px);
  }

  .login-panel-inner {
    padding: 34px;
  }

  .login-panel-cosmote {
    width: 160px;
  }
}

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 39vh;
  }

  .login-brand-lockup {
    top: 18px;
    left: 18px;
  }

  .login-energy-tunnel {
    right: -28vw;
    width: 104vw;
    height: 48vh;
    transform: translateY(-38%) perspective(900px) rotateY(-8deg);
  }

  .login-hero-copy {
    left: 28px;
    top: auto;
    bottom: 34px;
    transform: none;
  }

  .login-hero-copy span {
    font-size: 20px;
  }

  .login-hero-copy strong {
    font-size: clamp(44px, 12vw, 66px);
  }

  .login-hero-copy small,
  .login-visual-caption {
    display: none;
  }

  .login-panel {
    min-height: 61vh;
    align-items: flex-start;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .16);
  }

  .login-panel-inner {
    padding: 32px 24px 26px;
  }

  .login-panel-logos {
    margin-bottom: 30px;
  }

  .login-panel-cosmote {
    width: min(190px, 55vw);
  }

  .login-panel-footer {
    margin-top: 38px;
  }
}

@media (max-width: 480px) {
  .login-visual {
    min-height: 34vh;
  }

  .login-brand-lockup {
    max-width: calc(100% - 32px);
    gap: 9px;
    padding: 8px 11px;
    border-radius: 13px;
  }

  .login-brand-cosmopower {
    width: 48px;
  }

  .login-brand-divider {
    height: 32px;
  }

  .login-brand-cosmote {
    width: min(160px, 49vw);
  }

  .login-hero-copy {
    bottom: 22px;
  }

  .login-hero-copy span {
    font-size: 17px;
  }

  .login-hero-copy strong {
    font-size: 42px;
  }

  .login-panel-inner {
    padding: 27px 20px 24px;
  }

  .login-panel-heading {
    margin-bottom: 26px;
  }

  .login-secure {
    display: none;
  }

  .login-panel-logos {
    margin-bottom: 26px;
  }

  .login-panel-cosmopower {
    width: 54px;
  }

  .login-panel-cosmote {
    width: min(170px, 52vw);
  }

  .login-panel-footer {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-visual::before,
  .login-ambient-glow,
  .login-energy-tunnel,
  .login-energy-frame,
  .login-energy-core,
  .login-live-dot {
    animation: none;
  }
}

/* Branded application shell */
body.app-page {
  background:
    radial-gradient(circle at 92% 0, rgba(0, 102, 204, .08), transparent 28%),
    linear-gradient(145deg, #f4f7fb 0%, #edf2f8 100%);
}

.app-page .wrap {
  grid-template-columns: 282px minmax(0, 1fr);
}

.app-page .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  overflow: hidden auto;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 105, 170, .36), transparent 34%),
    radial-gradient(circle at 96% 92%, rgba(215, 154, 36, .18), transparent 31%),
    linear-gradient(180deg, #061b3d 0%, #003087 54%, #001f5e 100%);
  box-shadow: 18px 0 50px rgba(0, 31, 94, .13);
}

.app-page .sidebar::before,
.app-page .sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(242, 182, 74, .22);
  border-radius: 52px;
  transform: rotate(-13deg);
}

.app-page .sidebar::before {
  width: 220px;
  height: 360px;
  right: -150px;
  top: 14%;
}

.app-page .sidebar::after {
  width: 150px;
  height: 260px;
  left: -112px;
  bottom: 8%;
}

.app-page .brand {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 9px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.app-page .brand-logos {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

.app-page .brand-logos span {
  width: 1px;
  height: 31px;
  flex: 0 0 auto;
  background: rgba(0, 48, 135, .16);
}

.app-page .brand img {
  width: auto;
  filter: none;
}

.app-page .brand img.brand-cosmopower {
  height: 35px;
}

.app-page .brand img.brand-cosmote {
  width: min(146px, calc(100% - 57px));
  height: auto;
}

.app-page .brand-product {
  margin-top: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.025em;
}

.app-page .brand-role {
  margin-top: 4px;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.app-page .nav {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: 18px;
  gap: 5px;
}

.app-page .nav a {
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 560;
}

.app-page .nav a i.fa {
  width: 20px;
  color: rgba(255, 255, 255, .56);
  font-size: 15px;
  transition: color .2s ease;
}

.app-page .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  transform: translateX(2px);
}

.app-page .nav a:hover i.fa {
  color: #f2b64a;
}

.app-page .nav a.active {
  border-color: rgba(255, 255, 255, .18);
  color: #003087;
  background: linear-gradient(100deg, #fff 0%, #f3f7fc 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.app-page .nav a.active i.fa {
  color: #d79a24;
}

.app-page .nav > div a.btn.primary {
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(255, 255, 255, .09);
  box-shadow: none;
}

.app-page .nav > div a.btn.primary:hover {
  border-color: rgba(242, 182, 74, .5);
  background: rgba(242, 182, 74, .14);
}

.app-page .sidebar-user {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  justify-content: flex-start;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .12);
  box-shadow: none;
  font-size: 11px;
}

.app-page .sidebar-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .sidebar-user i {
  color: #f2b64a;
}

.app-page .sidebar-logout {
  position: relative;
  z-index: 1;
  margin-top: 9px;
}

.app-page .sidebar-logout .btn {
  width: 100%;
  display: block;
  padding: 9px 12px;
  text-align: center;
  font-size: 12px;
}

.app-page main.main {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.mobile-brand img {
  width: auto;
  height: 28px;
  filter: none;
}

/* Dashboard */
.page-dashboard .dashboard-hero {
  position: relative;
  min-height: 196px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 22%, rgba(23, 105, 170, .55), transparent 28%),
    radial-gradient(circle at 64% 120%, rgba(215, 154, 36, .26), transparent 34%),
    linear-gradient(115deg, #061b3d 0%, #003087 58%, #0053a6 100%);
  box-shadow: 0 24px 55px rgba(0, 48, 135, .19);
}

.page-dashboard .dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.page-dashboard .dashboard-hero-copy,
.page-dashboard .dashboard-hero-actions {
  position: relative;
  z-index: 2;
}

.page-dashboard .dashboard-eyebrow {
  margin-bottom: 10px;
  color: #f2b64a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2em;
}

.page-dashboard .dashboard-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 720;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.page-dashboard .dashboard-hero p {
  max-width: 610px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.page-dashboard .dashboard-hero-actions {
  min-width: 176px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.page-dashboard .dashboard-month-form {
  margin: 0;
}

.page-dashboard .dashboard-month-form input[type="month"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  color: #fff;
  color-scheme: dark;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

.page-dashboard .dashboard-summary-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  background: rgba(0, 0, 0, .14);
  font-size: 11px;
}

.page-dashboard .dashboard-summary-pill span {
  color: rgba(255, 255, 255, .58);
}

.page-dashboard .dashboard-summary-pill strong {
  color: #fff;
}

.page-dashboard .dashboard-hero-orbit {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 2px solid rgba(242, 182, 74, .28);
  border-radius: 50%;
}

.page-dashboard .orbit-one {
  width: 230px;
  height: 230px;
  right: 22%;
  top: -154px;
}

.page-dashboard .orbit-two {
  width: 160px;
  height: 160px;
  right: 31%;
  bottom: -128px;
}

.page-dashboard .dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.page-dashboard .dashboard-kpi {
  position: relative;
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(0, 48, 135, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(0, 48, 135, .08);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-dashboard .dashboard-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 48, 135, .12);
}

.page-dashboard .dashboard-kpi-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #003087;
  background: #edf4ff;
  font-size: 19px;
}

.page-dashboard .kpi-sales .dashboard-kpi-icon {
  color: #a86d08;
  background: #fff5df;
}

.page-dashboard .kpi-balance .dashboard-kpi-icon {
  color: #087a6b;
  background: #e8f8f4;
}

.page-dashboard .kpi-appointments .dashboard-kpi-icon {
  color: #7352a8;
  background: #f2ecfb;
}

.page-dashboard .dashboard-kpi-content {
  min-width: 0;
}

.page-dashboard .dashboard-kpi .lbl {
  margin-bottom: 8px;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-dashboard .dashboard-kpi .num {
  overflow: hidden;
  color: #12213a;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-dashboard .dashboard-kpi-accent {
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 85px;
  height: 85px;
  border: 14px solid rgba(0, 48, 135, .035);
  border-radius: 50%;
}

.page-dashboard .dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr);
  gap: 16px;
}

.page-dashboard .dashboard-card {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(0, 48, 135, .09);
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(0, 48, 135, .075);
}

.page-dashboard .dashboard-card-heading {
  margin-bottom: 14px;
}

.page-dashboard .dashboard-card-heading h2 {
  margin: 3px 0 0;
  color: #14243d;
  font-size: 17px;
}

.page-dashboard .dashboard-card-eyebrow {
  color: #d79a24;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .18em;
}

.page-dashboard .dashboard-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(0, 48, 135, .1);
  color: #003087;
  background: #f3f7fd;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
}

.page-dashboard .dashboard-card .table-wrap {
  max-height: 380px;
  border: 1px solid rgba(0, 48, 135, .06);
  background: #fff;
}

.page-dashboard .dashboard-card .table-wrap .table-wrap {
  border: 0;
}

.page-dashboard .dashboard-card .table th {
  padding: 11px 10px;
  color: #68768e;
  background: #f5f8fc;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-dashboard .dashboard-card .table td {
  padding: 12px 10px;
  border-bottom-color: rgba(0, 48, 135, .06);
  color: #2b3a52;
  font-size: 12px;
}

.page-dashboard .dashboard-card .table tbody tr {
  transition: background .16s ease;
}

.page-dashboard .dashboard-card .table tbody tr:hover {
  background: #f8faff;
}

.page-dashboard .dashboard-helpdesk .accordion-item {
  border: 1px solid rgba(0, 48, 135, .08);
  background: #f7f9fc;
}

.page-dashboard .dashboard-helpdesk .accordion-header {
  color: #263750;
}

.page-dashboard .dashboard-appointments {
  align-self: start;
}

@media (max-width: 1180px) {
  .page-dashboard .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-page .wrap {
    grid-template-columns: 1fr;
  }

  .app-page .sidebar {
    position: fixed;
    height: 100vh;
  }

  .app-page main.main {
    margin-top: 50px;
    padding: 20px;
  }

  .app-page .mobile-header {
    background: linear-gradient(90deg, #061b3d, #003087);
  }
}

@media (max-width: 650px) {
  .page-dashboard .dashboard-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 22px;
    border-radius: 20px;
  }

  .page-dashboard .dashboard-hero h1 {
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.12;
  }

  .page-dashboard .dashboard-hero p {
    font-size: 13px;
  }

  .page-dashboard .dashboard-hero-actions {
    width: 100%;
    flex-direction: row;
  }

  .page-dashboard .dashboard-month-form,
  .page-dashboard .dashboard-summary-pill {
    flex: 1;
  }

  .page-dashboard .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .page-dashboard .dashboard-kpi {
    min-height: 104px;
  }
}

/* Shared myCOSMO action colors */
.app-page .btn:not(.danger),
.app-page .ai-btn,
.app-page .chat-btn,
.app-page .fc .fc-button-primary {
  border-color: #003087;
  color: #fff;
  background: linear-gradient(100deg, #003087 0%, #1458a5 58%, #d79a24 145%);
  box-shadow: 0 10px 24px rgba(0, 48, 135, .18);
}

.app-page .btn:not(.danger):hover,
.app-page .ai-btn:hover,
.app-page .chat-btn:hover,
.app-page .fc .fc-button-primary:hover {
  border-color: #001f5e;
  color: #fff;
  background: linear-gradient(100deg, #001f5e 0%, #0d478c 58%, #c08419 145%);
  box-shadow: 0 14px 30px rgba(0, 48, 135, .24);
}

.sale-confetti {
  position: fixed;
  z-index: 99999;
  width: 9px;
  height: 9px;
  pointer-events: none;
  opacity: 1;
  transition: transform 1.25s cubic-bezier(.18, .72, .2, 1), opacity 1.25s ease;
}

.sale-toast {
  border: 1px solid rgba(242, 182, 74, .42);
  background: linear-gradient(100deg, #003087, #1458a5);
  box-shadow: 0 16px 38px rgba(0, 48, 135, .28);
}

/* My COSMOTE-inspired dashboard composition */
body.page-dashboard {
  background: #f3f3f5;
}

@media (min-width: 981px) {
  .page-dashboard .wrap {
    display: block;
    min-height: 100vh;
  }

  .page-dashboard .sidebar {
    position: sticky;
    top: 0;
    z-index: 850;
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto auto;
    grid-template-areas:
      "brand user logout"
      "nav nav nav";
    align-items: center;
    gap: 8px 18px;
    padding: 14px max(28px, calc((100vw - 1220px) / 2)) 0;
    overflow: visible;
    border: 0;
    border-bottom: 2px solid #e6007e;
    color: #202124;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
  }

  .page-dashboard .sidebar::before,
  .page-dashboard .sidebar::after {
    display: none;
  }

  .page-dashboard .brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0;
    border: 0;
  }

  .page-dashboard .brand-logos {
    width: auto;
    padding: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-dashboard .brand img.brand-cosmopower {
    height: 39px;
  }

  .page-dashboard .brand img.brand-cosmote {
    width: 142px;
  }

  .page-dashboard .brand-logos span {
    height: 32px;
  }

  .page-dashboard .brand-product {
    margin: 0;
    color: #202124;
    font-size: 17px;
    white-space: nowrap;
  }

  .page-dashboard .brand-role {
    margin: 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #667085;
    background: #f1f2f4;
    font-size: 8px;
    white-space: nowrap;
  }

  .page-dashboard .nav {
    grid-area: nav;
    min-width: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .page-dashboard .nav::-webkit-scrollbar {
    display: none;
  }

  .page-dashboard .nav > div {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page-dashboard .nav a,
  .page-dashboard .nav > div a.btn.primary {
    position: relative;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 13px 14px;
    border: 0;
    border-radius: 0;
    color: #24262a;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 620;
    white-space: nowrap;
    transform: none;
  }

  .page-dashboard .nav a i.fa {
    width: auto;
    min-width: 17px;
    color: #53667a;
    font-size: 14px;
  }

  .page-dashboard .nav a:hover,
  .page-dashboard .nav > div a.btn.primary:hover {
    border-color: transparent;
    color: #003087;
    background: #f7f8fa;
    box-shadow: none;
    transform: none;
  }

  .page-dashboard .nav a.active {
    border: 0;
    color: #202124;
    background: transparent;
    box-shadow: none;
  }

  .page-dashboard .nav a.active::before {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -2px;
    left: 14px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: #e6007e;
  }

  .page-dashboard .nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 11px;
    height: 11px;
    background: #e6007e;
    transform: translate(-50%, 55%) rotate(45deg);
  }

  .page-dashboard .sidebar-user {
    grid-area: user;
    max-width: 280px;
    margin: 0;
    padding: 8px 11px;
    border: 0;
    color: #202124;
    background: #f5f6f8;
    box-shadow: none;
    font-size: 10px;
  }

  .page-dashboard .sidebar-user i {
    color: #e6007e;
  }

  .page-dashboard .sidebar-logout {
    grid-area: logout;
    margin: 0;
  }

  .page-dashboard .sidebar-logout .btn {
    min-height: 34px;
    padding: 8px 12px;
    border-color: #e0e2e7;
    color: #344054;
    background: #fff;
    box-shadow: none;
  }

  .page-dashboard .sidebar-logout .btn:hover {
    border-color: #e6007e;
    color: #e6007e;
    background: #fff;
  }
}

.page-dashboard main.main {
  width: min(100%, 1270px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 18px 24px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.page-dashboard main.main > .alert,
.page-dashboard main.main > .ok {
  grid-column: 1 / -1;
  margin: 0 !important;
}

.page-dashboard .dashboard-hero {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0 0 4px;
  padding: 2px 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #202124;
  background: transparent;
  box-shadow: none;
}

.page-dashboard .dashboard-hero::before,
.page-dashboard .dashboard-hero-orbit {
  display: none;
}

.page-dashboard .dashboard-eyebrow {
  margin-bottom: 14px;
  color: #4a4d52;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.page-dashboard .dashboard-hero h1 {
  color: #202124;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.03em;
}

.page-dashboard .dashboard-hero p {
  margin-top: 7px;
  color: #6b6f76;
  font-size: 13px;
}

.page-dashboard .dashboard-hero-actions {
  min-width: 190px;
  flex-direction: row;
  align-items: center;
}

.page-dashboard .dashboard-month-form input[type="month"] {
  min-height: 42px;
  border: 1px solid #d5d7db;
  color: #202124;
  color-scheme: light;
  background: #fff;
  backdrop-filter: none;
}

.page-dashboard .dashboard-summary-pill {
  min-height: 42px;
  border-color: #d5d7db;
  color: #202124;
  background: #fff;
}

.page-dashboard .dashboard-summary-pill span {
  color: #74777d;
}

.page-dashboard .dashboard-summary-pill strong {
  color: #202124;
}

.page-dashboard .dashboard-kpis {
  grid-column: 1;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.page-dashboard .dashboard-section-title {
  padding: 14px 16px;
  border: 1px solid #dddfe3;
  border-radius: 15px;
  color: #25262a;
  background: #fff;
  font-size: 18px;
  font-weight: 760;
}

.page-dashboard .dashboard-kpi {
  min-height: 92px;
  gap: 13px;
  padding: 16px;
  border-color: #dddfe3;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.page-dashboard .dashboard-kpi:hover {
  border-color: #c9cbd0;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
  transform: translateY(-1px);
}

.page-dashboard .dashboard-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.page-dashboard .dashboard-kpi .lbl {
  margin-bottom: 6px;
  color: #4f5359;
  font-size: 10px;
}

.page-dashboard .dashboard-kpi .num {
  font-size: 23px;
}

.page-dashboard .dashboard-kpi-accent {
  right: -25px;
  bottom: -36px;
  border-color: rgba(230, 0, 126, .04);
}

.page-dashboard .dashboard-grid {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}

.page-dashboard .dashboard-grid > div:first-child,
.page-dashboard .dashboard-side-stack {
  min-width: 0;
}

.page-dashboard .dashboard-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-dashboard .dashboard-card {
  padding: 16px;
  border-color: #dddfe3;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}

.page-dashboard .dashboard-card-heading {
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e3e4e7;
}

.page-dashboard .dashboard-card-heading h2 {
  color: #25262a;
  font-size: 17px;
}

.page-dashboard .dashboard-card-eyebrow {
  color: #e6007e;
}

.page-dashboard .dashboard-card .table-wrap {
  border-color: #ececef;
  border-radius: 11px;
}

.page-dashboard .dashboard-card .table th {
  color: #565a61;
  background: #f7f7f8;
}

.page-dashboard .dashboard-view-btn {
  padding: 7px 10px;
  border: 1px solid #d8dae0;
  color: #202124;
  background: #fff;
  box-shadow: none;
}

.page-dashboard .dashboard-view-btn:hover {
  border-color: #e6007e;
  color: #e6007e;
  background: #fff;
  box-shadow: none;
}

.page-dashboard .dashboard-helpdesk {
  margin-top: 16px !important;
}

.page-dashboard .dashboard-helpdesk .accordion-item {
  border-color: #e0e1e4;
  background: #fafafa;
}

.page-dashboard .dashboard-quick-links {
  order: 1;
}

.page-dashboard .dashboard-appointments {
  order: 2;
}

.page-dashboard .dashboard-quick-nav {
  display: flex;
  flex-direction: column;
}

.page-dashboard .dashboard-quick-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 3px;
  border-bottom: 1px solid #ececef;
  color: #292b30;
  font-size: 13px;
  font-weight: 650;
}

.page-dashboard .dashboard-quick-nav a:last-child {
  border-bottom: 0;
}

.page-dashboard .dashboard-quick-nav a:hover {
  color: #e6007e;
}

.page-dashboard .dashboard-quick-nav a span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-dashboard .dashboard-quick-nav a span i {
  width: 20px;
  color: #53667a;
  text-align: center;
}

.page-dashboard .dashboard-quick-nav a:hover span i {
  color: #e6007e;
}

@media (max-width: 1180px) {
  .page-dashboard main.main {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .page-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .page-dashboard .dashboard-side-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-dashboard main.main {
    width: 100%;
    display: block;
    margin-top: 50px;
    padding: 20px;
  }

  .page-dashboard .dashboard-hero,
  .page-dashboard .dashboard-kpis,
  .page-dashboard .dashboard-grid {
    margin-bottom: 18px;
  }

  .page-dashboard .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-dashboard .dashboard-section-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .page-dashboard main.main {
    padding: 16px;
  }

  .page-dashboard .dashboard-hero {
    padding: 4px 0 17px;
  }

  .page-dashboard .dashboard-hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .page-dashboard .dashboard-kpis,
  .page-dashboard .dashboard-side-stack {
    grid-template-columns: 1fr;
  }
}

/* Unified My COSMO shell for every authenticated CRM section */
body.app-page {
  background: #f3f3f5;
}

@media (min-width: 981px) {
  .app-page .wrap {
    display: block;
    min-height: 100vh;
  }

  .app-page .sidebar {
    position: sticky;
    top: 0;
    z-index: 850;
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto auto;
    grid-template-areas:
      "brand user logout"
      "nav nav nav";
    align-items: center;
    gap: 8px 18px;
    padding: 14px max(28px, calc((100vw - 1220px) / 2)) 0;
    overflow: visible;
    border: 0;
    border-bottom: 2px solid #e6007e;
    color: #202124;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
  }

  .app-page .sidebar::before,
  .app-page .sidebar::after {
    display: none;
  }

  .app-page .brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0;
    border: 0;
  }

  .app-page .brand-logos {
    width: auto;
    padding: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-page .brand img.brand-cosmopower {
    height: 39px;
  }

  .app-page .brand img.brand-cosmote {
    width: 142px;
  }

  .app-page .brand-logos span {
    height: 32px;
  }

  .app-page .brand-role {
    margin: 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #667085;
    background: #f1f2f4;
    font-size: 8px;
    white-space: nowrap;
  }

  .app-page .nav {
    grid-area: nav;
    min-width: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .app-page .nav::-webkit-scrollbar {
    display: none;
  }

  .app-page .nav > div {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-page .nav a,
  .app-page .nav > div a.btn.primary {
    position: relative;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 13px 14px;
    border: 0;
    border-radius: 0;
    color: #24262a;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 620;
    white-space: nowrap;
    transform: none;
  }

  .app-page .nav a i.fa {
    width: auto;
    min-width: 17px;
    color: #53667a;
    font-size: 14px;
  }

  .app-page .nav a:hover,
  .app-page .nav > div a.btn.primary:hover {
    border-color: transparent;
    color: #003087;
    background: #f7f8fa;
    box-shadow: none;
    transform: none;
  }

  .app-page .nav a.active {
    border: 0;
    color: #202124;
    background: transparent;
    box-shadow: none;
  }

  .app-page .nav a.active::before {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -2px;
    left: 14px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: #e6007e;
  }

  .app-page .nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 11px;
    height: 11px;
    background: #e6007e;
    transform: translate(-50%, 55%) rotate(45deg);
  }

  .app-page .sidebar-user {
    grid-area: user;
    max-width: 280px;
    margin: 0;
    padding: 8px 11px;
    border: 0;
    color: #202124;
    background: #f5f6f8;
    box-shadow: none;
    font-size: 10px;
  }

  .app-page .sidebar-user i {
    color: #e6007e;
  }

  .app-page .sidebar-logout {
    grid-area: logout;
    margin: 0;
  }

  .app-page .sidebar-logout .btn {
    min-height: 34px;
    padding: 8px 12px;
    border-color: #e0e2e7;
    color: #344054;
    background: #fff;
    box-shadow: none;
  }

  .app-page .sidebar-logout .btn:hover {
    border-color: #e6007e;
    color: #e6007e;
    background: #fff;
  }
}

.app-page:not(.page-dashboard) main.main {
  width: min(100%, 1220px);
  min-width: 0;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.app-page:not(.page-dashboard) .topbar {
  min-height: 90px;
  align-items: flex-end;
  margin: 0 0 18px;
  padding: 2px 0 18px;
  border-bottom: 1px solid #dddfe3;
}

.app-page:not(.page-dashboard) .topbar .h1 {
  color: #202124;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -.035em;
}

.app-page:not(.page-dashboard) .topbar .pill {
  border-color: #d8dae0;
  color: #555a62;
  background: #fff;
  box-shadow: none;
}

.app-page:not(.page-dashboard) .grid {
  gap: 18px;
}

.app-page:not(.page-dashboard) .card {
  border-color: #dddfe3;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}

.app-page:not(.page-dashboard) .card h2 {
  color: #25262a;
  font-size: 17px;
}

.app-page:not(.page-dashboard) .card .card {
  border-color: #e3e4e7;
  background: #f7f7f8 !important;
  box-shadow: none;
}

.app-page:not(.page-dashboard) .table-wrap,
.app-page:not(.page-dashboard) .table-responsive {
  border: 1px solid #ececef;
  border-radius: 11px;
  background: #fff;
}

.app-page:not(.page-dashboard) .table th {
  color: #565a61;
  background: #f7f7f8;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.app-page:not(.page-dashboard) .table td {
  color: #30343a;
  border-bottom-color: #ececef;
}

.app-page:not(.page-dashboard) .table tbody tr:hover {
  background: #fafafa;
}

.app-page:not(.page-dashboard) input,
.app-page:not(.page-dashboard) select,
.app-page:not(.page-dashboard) textarea {
  border-color: #d5d7db;
  color: #202124;
  background: #fff;
}

.app-page:not(.page-dashboard) input:focus,
.app-page:not(.page-dashboard) select:focus,
.app-page:not(.page-dashboard) textarea:focus {
  border-color: #e6007e;
  box-shadow: 0 0 0 3px rgba(230, 0, 126, .08);
}

.app-page:not(.page-dashboard) label,
.app-page:not(.page-dashboard) .muted {
  color: #6a6e75;
}

.app-page:not(.page-dashboard) .accordion-item {
  border: 1px solid #e0e1e4;
  background: #fafafa;
}

.app-page:not(.page-dashboard) .accordion-header {
  color: #292c31;
}

.page-catalog #catalogSearch,
.page-catalog #statusFilter {
  border-color: #d5d7db !important;
  color: #202124 !important;
  background: #fff !important;
}

.page-catalog #statusFilter option {
  color: #202124 !important;
  background: #fff !important;
}

.page-catalog .catalog-row [style*="color:#fff"] {
  color: #202124 !important;
}

.page-catalog .catalog-row [style*="color:#94a3b8"] {
  color: #6a6e75 !important;
}

.page-catalog .catalog-row [style*="border-top:1px solid rgba(255,255,255"] {
  border-top-color: #ececef !important;
}

.page-appointments #calendar {
  border: 1px solid #ececef;
  background: #fff !important;
}

.app-page:not(.page-dashboard) .fc {
  color: #202124;
}

@media (max-width: 980px) {
  .app-page:not(.page-dashboard) main.main {
    width: 100%;
    margin-top: 50px;
    padding: 20px;
  }

  .app-page:not(.page-dashboard) .topbar {
    min-height: 0;
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .app-page:not(.page-dashboard) main.main {
    padding: 16px;
  }

  .app-page:not(.page-dashboard) .topbar .h1 {
    font-size: 24px;
  }
}

/* My COSMOTE-inspired mobile application shell */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 980px) {
  body.app-page {
    min-height: 100%;
    overflow-x: hidden;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    color: #191a1d;
    background: #f3f3f4;
  }

  body.app-page.mobile-menu-open {
    overflow: hidden;
  }

  .app-page .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 900;
    height: 76px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid #eeeeef;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 18px rgba(20, 22, 28, .045);
    backdrop-filter: blur(18px);
  }

  .app-page .menu-toggle.mobile-profile-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e1e4;
    border-radius: 50%;
    color: #707384;
    background: #f2f3f5;
    font-size: 18px;
    box-shadow: none;
  }

  .app-page .mobile-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 190px);
    color: #202124;
    transform: translate(-50%, -50%);
  }

  .app-page .mobile-brand img {
    width: auto;
    height: 28px;
    object-fit: contain;
  }

  .app-page .mobile-brand img.mobile-brand-cosmote {
    width: 84px;
    height: auto;
  }

  .app-page .mobile-brand > span {
    width: 1px;
    height: 26px;
    flex: 0 0 auto;
    background: #dbdde1;
  }

  .app-page .mobile-header-action {
    min-width: 76px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 1.5px solid #202124;
    border-radius: 999px;
    color: #202124;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
  }

  .app-page .mobile-header-action i {
    color: #e6007e;
  }

  .app-page .wrap {
    display: block;
    min-height: 100vh;
  }

  .app-page main.main,
  .page-dashboard main.main,
  .app-page:not(.page-dashboard) main.main {
    width: 100%;
    margin: 76px 0 0;
    padding: 20px 14px calc(104px + env(safe-area-inset-bottom));
  }

  .app-page .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: min(88vw, 360px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    overflow: hidden auto;
    border: 0;
    border-radius: 0 28px 28px 0;
    color: #202124;
    background: #fff;
    box-shadow: 20px 0 55px rgba(24, 28, 38, .18);
    transform: translateX(-105%);
  }

  .app-page .sidebar::before,
  .app-page .sidebar::after {
    display: none;
  }

  .app-page .sidebar.open {
    transform: translateX(0);
  }

  .app-page .brand {
    padding: 8px 8px 18px;
    border: 0;
  }

  .app-page .brand-logos {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-page .brand img.brand-cosmopower {
    height: 34px;
  }

  .app-page .brand img.brand-cosmote {
    width: min(150px, calc(100% - 58px));
  }

  .app-page .brand-role {
    width: fit-content;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #5f6368;
    background: #f1f2f4;
    font-size: 9px;
  }

  .app-page .nav {
    flex: 0 0 auto;
    gap: 0;
    margin: 2px 0 12px;
    padding: 7px 16px;
    border-radius: 23px;
    background: #f2f2f3;
  }

  .app-page .nav a,
  .app-page .nav > div a.btn.primary {
    min-height: 55px;
    display: flex;
    align-items: center;
    padding: 12px 2px;
    border: 0;
    border-bottom: 1px solid #cfd0d3;
    border-radius: 0;
    color: #18191c;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 650;
    transform: none;
  }

  .app-page .nav > a:last-of-type,
  .app-page .nav > div:last-child a {
    border-bottom-color: transparent;
  }

  .app-page .nav a i.fa,
  .app-page .nav a:hover i.fa,
  .app-page .nav a.active i.fa {
    width: 27px;
    margin-right: 8px;
    color: #111214;
    font-size: 18px;
  }

  .app-page .nav a::after {
    content: "\f105";
    margin-left: auto;
    color: #111214;
    font: normal normal normal 21px/1 FontAwesome;
  }

  .app-page .nav a.active,
  .app-page .nav a:hover,
  .app-page .nav > div a.btn.primary:hover {
    color: #18191c;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .app-page .nav a.active {
    color: #e6007e;
  }

  .app-page .nav a.active i.fa {
    color: #e6007e;
  }

  .app-page .nav > div {
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-page .sidebar-user {
    order: 3;
    min-height: 48px;
    justify-content: flex-start;
    margin: 2px 0 8px;
    padding: 12px 15px;
    border: 0;
    border-radius: 18px;
    color: #292b30;
    background: #f2f2f3;
    box-shadow: none;
    font-size: 11px;
  }

  .app-page .sidebar-user i {
    color: #e6007e;
    font-size: 18px;
  }

  .app-page .sidebar-logout {
    order: 4;
    margin: 0;
  }

  .app-page .sidebar-logout .btn {
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    color: #202124;
    background: #f2f2f3;
    box-shadow: none;
    font-size: 13px;
  }

  .app-page .sidebar-overlay {
    z-index: 950;
    background: rgba(14, 16, 20, .32);
    backdrop-filter: blur(3px);
  }

  .app-page #closeMenu {
    top: 17px;
    right: auto;
    left: min(calc(88vw - 53px), 307px);
    z-index: 1050;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dfe1e4;
    border-radius: 50%;
    color: #202124;
    background: #fff;
    font-size: 27px;
    line-height: 36px;
    box-shadow: 0 6px 20px rgba(20, 24, 32, .12);
  }

  body.mobile-menu-open #closeMenu {
    display: block;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 920;
    height: calc(76px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    padding: 8px 4px env(safe-area-inset-bottom);
    border-top: 1px solid #d8d9dc;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -6px 24px rgba(24, 28, 38, .055);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 2px;
    border: 0;
    color: #202124;
    background: transparent;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-bottom-nav i {
    font-size: 21px;
    line-height: 1;
  }

  .mobile-bottom-nav .active {
    color: #e6007e;
  }

  .mobile-bottom-nav .active i {
    transform: translateY(-1px);
  }

  .app-page .topbar,
  .app-page:not(.page-dashboard) .topbar {
    min-height: 0;
    align-items: flex-start;
    gap: 10px;
    margin: 0 2px 16px;
    padding: 5px 2px 16px;
    border-bottom: 0;
  }

  .app-page .topbar .h1,
  .app-page:not(.page-dashboard) .topbar .h1 {
    color: #202124;
    font-size: 27px;
    font-weight: 780;
    letter-spacing: -.035em;
  }

  .app-page .topbar .pill,
  .app-page:not(.page-dashboard) .topbar .pill {
    padding: 8px 12px;
    border: 1px solid #dfe0e3;
    border-radius: 999px;
    color: #555a62;
    background: #fff;
    font-size: 10px;
  }

  .app-page .card,
  .app-page:not(.page-dashboard) .card,
  .page-dashboard .dashboard-card,
  .page-dashboard .dashboard-kpi {
    border: 0;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(28, 31, 38, .07);
  }

  .app-page:not(.page-dashboard) .grid {
    gap: 15px;
  }

  .app-page:not(.page-dashboard) .card {
    padding: 18px;
  }

  .app-page:not(.page-dashboard) .card h2 {
    font-size: 19px;
  }

  .app-page .form,
  .app-page .form[style] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  .app-page .field,
  .app-page .field.full {
    min-width: 0;
    grid-column: auto !important;
  }

  .app-page .form > * {
    min-width: 0;
    grid-column: 1 / -1 !important;
  }

  .app-page input:not([type="checkbox"]):not([type="radio"]),
  .app-page select,
  .app-page textarea {
    min-height: 50px;
    border-color: #d9dade;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
  }

  .app-page textarea {
    min-height: 100px;
  }

  .app-page label {
    color: #656970;
    font-size: 11px;
  }

  .app-page .btn {
    min-height: 48px;
    border-radius: 999px;
  }

  .app-page .table-wrap,
  .app-page .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    border: 0;
    border-radius: 17px;
    -webkit-overflow-scrolling: touch;
  }

  .app-page .table {
    width: 100%;
    min-width: 0;
  }

  .app-page .table-wrap .table,
  .app-page .table-responsive .table {
    min-width: 680px;
  }

  .page-dashboard .dashboard-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .page-dashboard .dashboard-kpis,
  .page-dashboard .dashboard-grid,
  .page-dashboard .dashboard-side-stack {
    gap: 14px;
  }

  .page-dashboard .dashboard-kpi {
    min-height: 112px;
  }

  .app-page .ikarus-widget-btn {
    right: 16px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
  }

  .app-page .ikarus-widget-tooltip {
    right: 16px !important;
    bottom: calc(156px + env(safe-area-inset-bottom)) !important;
  }

  .app-page .ikarus-chat-window {
    right: 10px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - 180px) !important;
  }
}

@media (max-width: 430px) {
  .app-page .mobile-header {
    padding: 0 12px;
  }

  .app-page .mobile-profile-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .app-page .mobile-brand {
    gap: 5px;
    max-width: calc(100% - 176px);
  }

  .app-page .mobile-brand img {
    height: 25px;
  }

  .app-page .mobile-brand img.mobile-brand-cosmote {
    width: 70px;
  }

  .app-page .mobile-brand > span {
    height: 23px;
  }

  .app-page .mobile-header-action {
    min-width: 68px;
    padding: 0 10px;
  }

  .app-page main.main,
  .page-dashboard main.main,
  .app-page:not(.page-dashboard) main.main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    font-size: 8.5px;
  }
}
