:root {
  --prasgo-navy: #071642;
  --prasgo-blue: #0868e8;
  --prasgo-blue-dark: #07479f;
  --prasgo-sky: #eaf4ff;
  --prasgo-cyan: #20bfd2;
  --prasgo-green: #16b987;
  --prasgo-red: #df3855;
  --prasgo-muted: #6680ad;
  --prasgo-line: #dbe7f6;
  --prasgo-shadow: 0 22px 58px rgba(33, 91, 170, .15);
  --prasgo-soft-shadow: 0 8px 28px rgba(42, 88, 148, .08);
}

html { background: #eef6ff; }
body { min-width: 320px; background: #eef6ff; color: var(--prasgo-navy); }
button, input, select { font-family: inherit; }

/* Acceso inspirado en la referencia entregada. */
.login-shell {
  min-height: 100svh;
  padding: 72px 24px;
  overflow: hidden;
  background-color: #f6faff;
  background-image: linear-gradient(rgba(249, 252, 255, .18), rgba(249, 252, 255, .18)), url("assets/login-background-v2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.login-shell::before,
.login-shell::after { display: none; }
.login-card {
  width: min(100%, 654px);
  min-height: 735px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border: 1px solid rgba(211, 224, 244, .92);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 26px 68px rgba(35, 79, 145, .16);
}
.login-brand-panel {
  min-height: 202px;
  padding: 38px 70px 0;
  background: transparent;
}
.login-brand-panel::before { display: none; }
.logo-stage { min-height: 158px; }
.login-logo { width: min(390px, 94%); }
.login-form-panel { padding: 0 68px 42px; }
.login-heading {
  display: grid;
  place-items: center;
  margin: 0 0 30px;
  padding: 0;
  text-align: center;
}
.login-heading::after { display: none; }
.login-heading h1 {
  margin: 0;
  color: var(--prasgo-navy);
  font-size: clamp(2rem, 3vw, 2.42rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.login-heading h1 strong {
  color: #0870e8;
  font-weight: 900;
  letter-spacing: -.055em;
}
.login-form { gap: 10px; }
.login-form > label {
  margin-top: 3px;
  color: #142957;
  font-size: .96rem;
}
.input-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 57px;
  margin-bottom: 5px;
  overflow: hidden;
  border: 1px solid #cfdcf0;
  border-radius: 11px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-control:focus-within {
  border-color: #6da4f8;
  box-shadow: 0 0 0 4px rgba(29, 111, 238, .10);
}
.input-control > svg {
  width: 23px;
  height: 23px;
  margin-left: 18px;
  fill: none;
  stroke: #6b86ba;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.input-control input {
  min-height: 55px;
  padding: 0 52px 0 16px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  box-shadow: none;
  color: #11295a;
  font-size: 1rem;
}
.input-control input::placeholder { color: #a8b9d7; }
.input-control input:-webkit-autofill,
.input-control input:-webkit-autofill:hover,
.input-control input:-webkit-autofill:focus,
.input-control input:-webkit-autofill:active {
  -webkit-text-fill-color: #11295a !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  caret-color: #11295a;
  transition: background-color 9999s ease-out 0s;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.password-toggle:hover { background: #f1f6ff; }
.password-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #5279bd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .eye-closed { display: none; }
.password-toggle.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed { display: block; }
.login-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin: 2px 0 17px;
}
.login-link {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #0068e8;
  font-size: .94rem;
}
.login-link:hover { text-decoration: underline; }
.login-submit {
  min-height: 62px;
  border-radius: 13px;
  background: linear-gradient(110deg, #318cf1 0%, #086de8 46%, #1b70e2 100%);
  box-shadow: 0 15px 28px rgba(11, 101, 225, .24);
  font-size: 1.16rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.login-submit b { position: absolute; right: 25px; font-size: 1.9rem; font-weight: 400; }
.form-message { font-size: .88rem; }
.secure-access {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: #768bb4;
}
.secure-access > span { height: 1px; background: #d6e2f4; }
.secure-access p { margin: 0; font-size: .8rem; white-space: nowrap; }
.login-context,
.login-version,
.login-control {
  position: absolute;
  z-index: 1;
  color: #7799dc;
  letter-spacing: .12em;
  line-height: 1.45;
}
.login-context { font-size: 1.3rem; }
.login-context i,
.login-control i {
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: #81a8ef;
}
.login-context-left { left: 8.7%; top: 28%; }
.login-context-right { right: 5%; top: 5%; font-size: .92rem; }
.login-version { left: 2.5%; bottom: 5%; display: grid; gap: 4px; font-size: .7rem; }
.login-version strong { color: #536faa; }
.login-control { right: 2.5%; bottom: 5%; font-size: .72rem; }

/* Los logos se muestran limpios, sin líneas decorativas superpuestas. */
.animated-logo { animation: none; transform: none; will-change: auto; }

/* Panel principal. */
.app-shell {
  min-height: 100svh;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #f5f9ff;
}
.sidebar {
  min-height: 100svh;
  padding: 24px 18px 20px;
  gap: 20px;
  background: linear-gradient(165deg, #1465bd 0%, #0655ae 47%, #053b80 100%);
  box-shadow: 8px 0 34px rgba(8, 68, 146, .10);
}
.sidebar::before {
  width: 390px;
  height: 410px;
  left: -205px;
  top: 110px;
  background: linear-gradient(145deg, rgba(47, 135, 236, .34), rgba(23, 178, 212, .07));
  clip-path: polygon(0 24%, 100% 0, 80% 100%, 5% 82%);
}
.sidebar::after {
  width: 360px;
  height: 430px;
  right: -235px;
  bottom: 80px;
  background: linear-gradient(145deg, rgba(52, 132, 229, .26), rgba(7, 55, 120, .04));
}
.side-brand { min-height: 82px; padding: 0 4px 4px; }
.logo-stage.compact { min-height: 76px; }
.sidebar-logo { width: 174px; }
.sidebar nav { gap: 10px; }
.nav-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: #e7f1ff;
  font-size: .9rem;
  font-weight: 550;
  line-height: 1.25;
}
.nav-item.active,
.nav-item:hover {
  border-left: 0;
  background: linear-gradient(100deg, rgba(91, 164, 255, .42), rgba(63, 142, 241, .25));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.nav-icon {
  width: 28px;
  display: inline-grid;
  place-items: center;
  color: #d9eaff;
  font-size: 1.45rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-footer { display: grid; gap: 14px; }
.text-button { width: max-content; color: #d8e9ff; font-size: .77rem; text-align: left; }
.workspace { min-width: 0; transition: padding-right .28s cubic-bezier(.22, 1, .36, 1); }
.client-sheet-open .workspace { padding-right: 405px; }
.workspace-bar {
  position: relative;
  z-index: 70;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 30px;
  border-bottom: 1px solid #e6eef9;
  background: rgba(247, 251, 255, .86);
  overflow: visible;
  isolation: isolate;
  backdrop-filter: blur(12px);
}
.top-search {
  position: relative;
  width: min(486px, 48vw);
  min-width: 280px;
}
.top-search .search-icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 50%;
  color: #5d79ab;
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-54%);
}
.top-search input {
  min-height: 50px;
  padding: 0 18px 0 51px;
  border: 1px solid #d7e4f4;
  border-radius: 11px;
  background: #fff;
  color: #142957;
  box-shadow: 0 5px 18px rgba(40, 87, 150, .05);
}
.workspace-actions { display: flex; align-items: center; align-self: center; gap: 16px; }
.notification-center { position: relative; z-index: 2; display: grid; place-items: center; }
.notification-button {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #0870ea;
  font-size: 1.2rem;
  line-height: 0;
  box-shadow: 0 5px 18px rgba(40, 87, 150, .06);
}
.notification-button:hover,
.notification-button[aria-expanded="true"] {
  background: #eef6ff;
  color: #075ed3;
}
.notification-button:focus { outline: none; }
.notification-button:focus-visible {
  outline: 3px solid rgba(8, 104, 232, .24);
  outline-offset: 2px;
}
.notification-badge {
  position: absolute;
  min-width: 19px;
  height: 19px;
  right: 4px;
  top: 3px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ef4253;
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
  font-size: .62rem;
  font-style: normal;
  font-weight: 850;
  line-height: 19px;
  text-align: center;
}
.notification-button svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-panel {
  position: fixed;
  z-index: 2147483000;
  width: min(390px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100svh - 24px);
  inset: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 55, 108, .20);
}
.notification-panel::backdrop { background: transparent; }
.notification-panel:popover-open { display: block; }
.notification-panel[hidden] { display: none !important; }
.notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 1px solid #e5edf8;
}
.notification-heading > div { display: grid; gap: 3px; }
.notification-heading strong { color: #102650; font-size: .95rem; }
.notification-heading small { color: #7489ac; font-size: .7rem; }
.notification-heading button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #0766dd;
  font-size: .7rem;
  font-weight: 750;
}
.notification-list { max-height: min(480px, var(--notification-list-height, calc(100svh - 210px))); overflow-y: auto; }
.notification-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 13px 17px;
  border-bottom: 1px solid #edf2f8;
  background: #fff;
}
.notification-item.unread { background: #f4f9ff; }
.notification-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e7f1ff;
  color: #076be6;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
}
.notification-icon.created,
.notification-icon.activate { background: #e1f8ef; color: #07956d; }
.notification-icon.delete,
.notification-icon.suspend,
.notification-icon.blocked { background: #ffeaed; color: #d83450; }
.notification-copy { min-width: 0; display: grid; gap: 3px; }
.notification-copy strong { color: #152951; font-size: .77rem; }
.notification-copy span { overflow-wrap: anywhere; color: #657da5; font-size: .7rem; line-height: 1.35; }
.notification-item time { color: #8a9bb7; font-size: .62rem; white-space: nowrap; }
.notification-empty { margin: 0; padding: 34px 20px; color: #7287aa; font-size: .78rem; text-align: center; }
.notification-footer {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid #e5edf8;
  background: #fff;
  color: #0764d7;
  font-size: .73rem;
  font-weight: 800;
}
.notification-footer:hover { background: #f4f8fe; }
.admin-chip {
  min-width: 202px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 8px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(40, 87, 150, .06);
}
.admin-chip p { display: grid; gap: 2px; margin: 0; }
.admin-chip strong { font-size: .9rem; color: #122952; }
.admin-chip p span { font-size: .72rem; color: #7388ab; }
.avatar.header-avatar { width: 42px; height: 42px; }
.content {
  min-width: 0;
  min-height: calc(100svh - 94px);
  padding: 30px;
  background:
    linear-gradient(130deg, rgba(216, 236, 255, .58), transparent 33%),
    linear-gradient(315deg, rgba(231, 247, 255, .68), transparent 40%),
    #f7fbff;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-header h2 {
  margin: 0;
  color: var(--prasgo-navy);
  font-size: clamp(2rem, 3.25vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.page-header p { margin: 8px 0 0; color: #647da8; font-size: 1rem; }
.page-header .button { min-height: 53px; padding: 0 25px; border-radius: 11px; font-size: .97rem; }
.button {
  border-radius: 10px;
  min-height: 44px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.button.primary { background: linear-gradient(105deg, #0870eb, #075bd1); box-shadow: 0 10px 22px rgba(8, 101, 221, .18); }
.button.secondary { border-color: #d8e5f7; border-radius: 9px; background: #f8fbff; }
.button.warning { border-radius: 9px; }
.button.danger { border-radius: 9px; }
.global-message { position: fixed; z-index: 40; top: 108px; right: 26px; max-width: 380px; border-radius: 11px; box-shadow: var(--prasgo-soft-shadow); }

.metrics {
  margin: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.metrics article {
  min-height: 175px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 21px;
  border: 1px solid #e0eaf7;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--prasgo-soft-shadow);
}
.metrics article[data-tone] { border-top: 1px solid #e0eaf7; }
.metrics .metric-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 11px;
  font-size: 1.4rem;
  font-weight: 800;
}
.metrics .metric-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metrics article[data-tone="blue"] .metric-icon { color: #0670eb; background: #e6f1ff; }
.metrics article[data-tone="green"] .metric-icon { color: #0eb985; background: #e2f9f1; }
.metrics article[data-tone="red"] .metric-icon { color: #e43250; background: #fff0f2; }
.metrics article[data-tone="gray"] .metric-icon { color: #667fae; background: #edf2f8; }
.metrics article[data-tone="aqua"] .metric-icon { color: #0870eb; background: #e8f4ff; }
.metrics article > div { width: 100%; }
.metrics span:not(.metric-icon), .metrics small { color: #5f77a2; }
.metrics strong { margin: 5px 0 0; color: var(--prasgo-navy); font-size: 2rem; line-height: 1; }
.metrics small { margin-top: 6px; font-size: .72rem; text-transform: none; }
.client-list-panel { margin-top: 18px; padding: 16px 20px 14px; border-radius: 17px; border-color: #e0eaf7; background: rgba(255,255,255,.96); }
.panel { border-radius: 17px; border-color: #e0eaf7; background: rgba(255,255,255,.96); }
.panel-heading { margin-bottom: 13px; }
.panel-heading h3 { color: #0a1947; font-size: 1.35rem; letter-spacing: -.02em; }
.panel-heading p { color: #7084a7; }
.list-filters { display: flex; align-items: center; gap: 9px; }
.list-filters select {
  width: 180px;
  min-height: 44px;
  padding: 0 34px 0 13px;
  border: 1px solid #d8e5f5;
  border-radius: 9px;
  background: #fff;
  color: #324970;
  font-size: .8rem;
}
.filter-button {
  width: 45px;
  height: 44px;
  border: 1px solid #d8e5f5;
  border-radius: 9px;
  background: #fff;
  color: #6179a6;
  font-size: 1.2rem;
}
.table-wrap { border-radius: 11px; }
.table-wrap table { min-width: 900px; }
.table-wrap th {
  padding: 11px 12px;
  border: 0;
  background: #f1f6fc;
  color: #6179a3;
  font-size: .7rem;
  text-transform: uppercase;
}
.table-wrap th:first-child { border-radius: 9px 0 0 9px; }
.table-wrap th:last-child { border-radius: 0 9px 9px 0; }
.table-wrap td { padding: 10px 12px; color: #20375e; font-size: .8rem; }
.user-cell { gap: 10px; min-width: 220px; }
.user-cell .meta { gap: 2px; }
.user-cell strong { color: #0c214c; font-size: .82rem; }
.user-cell span { color: #657da8; font-size: .75rem; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e6f0ff;
  color: #0967da;
  border-color: #d7e6fc;
}
.avatar.large { width: 82px; height: 82px; }
.avatar.xlarge { width: 64px; height: 64px; font-size: 1.2rem; }
.plan, .status { padding: 5px 10px; border-radius: 999px; font-size: .7rem; }
.plan.normal { background: #def7fb; color: #087f91; }
.plan.premium { background: #e4efff; color: #0865df; }
.status.active { background: #ddf8ee; color: #07956d; }
.status.expired { background: #ffe8ec; color: #d9304e; }
.status.suspended { background: #e9eef6; color: #586c91; }
.row-action {
  min-height: 35px;
  padding: 0 15px;
  border: 1px solid #d7e5f7;
  border-radius: 8px;
  background: #fff;
  color: #075dd0;
  font-size: .74rem;
}
.usage-cell { min-width: 105px; }
.usage-track { width: 68px; height: 7px; overflow: hidden; border-radius: 999px; background: #dfe7f2; display: inline-block; vertical-align: middle; }
.usage-track i { display: block; height: 100%; border-radius: inherit; background: #18b88a; }
.usage-cell small { margin-left: 6px; color: #7185a9; font-size: .68rem; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 0; color: #7489ad; font-size: .72rem; }
.table-footer > div { display: flex; align-items: center; gap: 8px; }
.table-footer button, .table-footer strong { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #dce7f5; border-radius: 8px; background: #fff; color: #7c91b3; }
.table-footer strong { border-color: #0868e7; background: #0868e7; color: #fff; }

.welcome-panel { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 0; padding: 34px; }
.welcome-panel h3 { margin: 6px 0 10px; font-size: 1.8rem; }
.welcome-panel p { max-width: 640px; margin: 0; color: #6d82a6; }
.section-kicker { color: #0870e8; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.overview-grid, .report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.overview-grid article, .report-grid article { min-height: 150px; display: grid; align-content: center; gap: 9px; padding: 24px; border: 1px solid #e0eaf7; border-radius: 16px; background: #fff; box-shadow: var(--prasgo-soft-shadow); }
.overview-grid small, .report-grid span, .report-grid small { color: #6d82a6; }
.overview-grid strong, .report-grid strong { color: #071642; font-size: 2.3rem; }
.report-panel { padding: 26px; }
.report-panel h3 { margin-top: 0; }
.report-bars { display: grid; gap: 16px; }
.report-row { display: grid; grid-template-columns: 150px 1fr 50px; align-items: center; gap: 12px; color: #536b94; }
.report-row .bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e6edf7; }
.report-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0870eb, #19bcb8); }
.audit-item { border-radius: 10px; background: #fff; }
.security-grid { gap: 18px; }
.security-card { margin-top: 0; padding: 26px; }
.security-card input, #userForm input, #userForm select {
  min-height: 49px;
  border-radius: 9px;
  border-color: #d8e5f5;
}
.profile-preview-block { display: flex; justify-content: center; margin: 16px 0 22px; }

/* Formulario de cliente y panel lateral. */
#userDialog {
  border-radius: 18px;
  border-color: #dbe6f4;
  box-shadow: 0 30px 80px rgba(8, 42, 93, .24);
}
.icon-button { border-radius: 9px; }
.photo-editor { padding: 14px; border-radius: 12px; background: #f6f9fd; }
.client-sheet {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto auto;
  width: min(100%, 405px);
  height: 100svh;
  max-height: 100svh;
  margin: 0 0 0 auto;
  padding: 23px 25px 26px;
  border: 0;
  border-left: 1px solid #dce7f4;
  border-radius: 20px 0 0 20px;
  background: #fff;
  box-shadow: -24px 0 60px rgba(20, 58, 111, .12);
  color: #0a1d49;
}
.client-sheet[open] { animation: sheetIn .28s cubic-bezier(.22, 1, .36, 1); }
.client-sheet::backdrop { background: rgba(20, 48, 88, .13); backdrop-filter: blur(1px); }
@keyframes sheetIn { from { opacity: .35; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
.sheet-heading { display: flex; justify-content: flex-end; min-height: 31px; }
.sheet-close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #6c82aa; font-size: 1.65rem; line-height: 1; }
.sheet-close:hover { background: #f2f6fb; }
.sheet-profile { display: grid; justify-items: start; gap: 5px; padding: 0 0 20px; }
.sheet-profile h3 { margin: 7px 0 0; color: #091943; font-size: 1.22rem; }
.manage-description { color: #6179a3; font-size: .82rem; }
.sheet-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dce7f4; }
.sheet-tab { min-height: 45px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #637aa4; font-size: .8rem; }
.sheet-tab.active { border-bottom-color: #0870eb; color: #075ed3; font-weight: 800; }
.sheet-panel { padding-top: 15px; }
.sheet-action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 9px;
  padding: 12px 10px;
  border: 1px solid #dfe8f4;
  border-bottom-width: 0;
  background: #fff;
}
.sheet-action-card:first-child { border-radius: 10px 10px 0 0; }
.sheet-action-card:nth-child(4) { border-bottom-width: 1px; border-radius: 0 0 10px 10px; }
.sheet-action-card > div:not(.inline-form) { display: grid; gap: 3px; }
.sheet-action-card strong { color: #142750; font-size: .78rem; }
.sheet-action-card small { color: #7489ab; font-size: .67rem; line-height: 1.3; }
.sheet-action-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #e8f2ff; color: #0870e8; font-size: 1.05rem; }
.sheet-action-card .inline-form { grid-column: 1 / -1; margin: 0; gap: 7px; }
.sheet-action-card .inline-form input { min-width: 0; min-height: 39px; padding: 0 10px; border-radius: 7px; font-size: .75rem; }
.sheet-action-card .inline-form .button { min-height: 39px; padding: 0 10px; font-size: .71rem; }
.compact-action { grid-template-columns: 42px minmax(0, 1fr) auto; }
.compact-action > .button { min-height: 36px; padding: 0 9px; font-size: .7rem; }
.danger-action { background: #fff5f6; border-color: #f6d9de; }
.danger-action .sheet-action-icon { background: #ffe4e8; color: #da3450; }
.client-data { margin-top: 17px; padding-top: 15px; border-top: 1px solid #dfe8f3; }
.client-data h4 { margin: 0 0 13px; color: #17274d; font-size: .88rem; }
.client-data dl { display: grid; gap: 10px; margin: 0 0 17px; }
.client-data dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.client-data dt { color: #7589aa; font-size: .72rem; }
.client-data dd { margin: 0; color: #162950; font-size: .74rem; overflow-wrap: anywhere; }
.subscription-card { display: grid; gap: 7px; padding: 20px; border-radius: 12px; background: linear-gradient(135deg, #e9f3ff, #f2fbff); }
.subscription-card span, .subscription-card p { color: #6a81a7; }
.subscription-card strong { color: #0865df; font-size: 1.4rem; }
.subscription-card p { margin: 0; font-size: .8rem; }
.manage-section { padding: 18px 0; }
.manage-section p { color: #6b81a4; }
.button-row .button { padding: 0 13px; font-size: .74rem; }
.sheet-finish { margin-top: 14px; }

@media (max-width: 1260px) {
  .client-sheet-open .workspace { padding-right: 0; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics article { min-height: 155px; }
  .login-context { opacity: .78; }
}

@media (max-width: 960px) {
  .login-context, .login-version, .login-control { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: 12px 16px; gap: 8px; }
  .side-brand { min-height: 58px; }
  .logo-stage.compact { min-height: 52px; }
  .sidebar-logo { width: 150px; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 3px; }
  .nav-item { min-width: max-content; min-height: 46px; padding: 8px 12px; }
  .nav-icon { width: 22px; font-size: 1.15rem; }
  .side-footer { display: none; }
  .workspace-bar { height: 78px; padding: 0 18px; }
  .content { min-height: calc(100svh - 78px); padding: 22px 18px; }
}

@media (max-width: 720px) {
  .login-shell { padding: 18px 12px; background-position: 55% center; }
  .login-card { min-height: 0; border-radius: 22px; }
  .login-brand-panel { min-height: 160px; padding: 24px 32px 0; }
  .logo-stage { min-height: 130px; }
  .login-logo { width: min(340px, 94%); }
  .login-form-panel { padding: 0 24px 28px; }
  .login-heading { margin-bottom: 25px; }
  .login-heading h1 { font-size: 1.8rem; }
  .login-options { align-items: flex-start; }
  .login-link { font-size: .8rem; }
  .secure-access { gap: 8px; }
  .secure-access p { font-size: .68rem; }
  .workspace-bar { align-items: center; }
  .top-search { width: 100%; min-width: 0; }
  .workspace-actions { gap: 8px; }
  .admin-chip { min-width: 0; grid-template-columns: 36px auto; padding: 6px; }
  .admin-chip p, .admin-chip > span { display: none; }
  .avatar.header-avatar { width: 36px; height: 36px; }
  .notification-button { width: 43px; height: 43px; }
  .notification-panel { width: min(390px, calc(100vw - 20px)); }
  .page-header { align-items: stretch; flex-direction: column; }
  .page-header .button { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics article { min-height: 145px; padding: 16px; }
  .list-filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; }
  .list-filters select { width: 100%; }
  .overview-grid, .report-grid, .security-grid { grid-template-columns: 1fr; }
  .welcome-panel { align-items: stretch; flex-direction: column; }
  .client-sheet { width: 100%; border-radius: 0; padding: 18px; }
}

@media (max-width: 480px) {
  .login-card { border-radius: 18px; }
  .login-brand-panel { min-height: 132px; padding: 18px 22px 0; }
  .logo-stage { min-height: 108px; }
  .login-form-panel { padding: 0 18px 22px; }
  .login-heading h1 { font-size: 1.55rem; }
  .input-control { min-height: 53px; }
  .input-control input { min-height: 51px; font-size: .9rem; }
  .login-submit { min-height: 55px; }
  .secure-access p { white-space: normal; text-align: center; }
  .content { padding: 18px 12px; }
  .page-header h2 { font-size: 1.8rem; }
  .metrics { grid-template-columns: 1fr; }
  .list-filters { grid-template-columns: 1fr; }
  .filter-button { width: 100%; }
  .client-list-panel { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .client-sheet[open] { animation: none; }
}
