:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687385;
  --line: #d4dce7;
  --surface: #ffffff;
  --app-bg: #edf2f7;
  --green: #237b2e;
  --dark-green: #126326;
  --blue: #1f6fa8;
  --red: #c52f32;
  --focus: rgba(31, 111, 168, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--app-bg);
}

body.login-locked .app-shell {
  display: none;
}

body.login-locked {
  overflow: hidden;
}

.login-screen[hidden] {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(5, 40, 68, 0.84), rgba(5, 40, 68, 0.48) 43%, rgba(35, 123, 46, 0.58)),
    url("../assets/onahorro-local.png") center / cover no-repeat;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(121, 193, 67, 0.34), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(31, 111, 168, 0.32), transparent 28%),
    rgba(239, 247, 250, 0.1);
  backdrop-filter: blur(3px);
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 90px rgba(4, 24, 44, 0.34);
  backdrop-filter: blur(16px);
}

.login-card img {
  width: 100%;
  height: 175px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.02);
}

.login-brand {
  margin: 18px 0 16px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(10, 74, 120, 0.98), rgba(35, 123, 46, 0.94));
  color: #ffffff;
  text-align: center;
  box-shadow: 0 16px 32px rgba(10, 74, 120, 0.22);
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.login-brand span {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.94;
}

.login-card label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #435169;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: left;
}

.login-card input {
  min-height: 48px;
  border: 1px solid #bfd0e1;
  border-radius: 13px;
  padding: 10px 13px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-card button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a4a78, #1f7db8 52%, #237b2e);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(31, 111, 168, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(31, 111, 168, 0.34);
}

#login-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #9f1d24;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.login-legal {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #f8fbff;
  color: #435169;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-height: 100vh;
}

.editor {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto 24px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: auto;
  overflow: visible;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.editor-header {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 0.62fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.editor h1 {
  color: #111827;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.1;
  margin: 0;
}

.page-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
  padding: 6px;
  border: 1px solid #d5e0eb;
  border-radius: 10px;
  background: #eef4fa;
}

.page-tab {
  min-height: 38px;
  border: 1px solid #c4d1de;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: #102846;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.page-tab:hover {
  transform: translateY(-1px);
  border-color: #8fb2d1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.page-tab.is-active {
  border-color: var(--blue);
  background: linear-gradient(135deg, #0b5f96, #1f7db8);
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(31, 111, 168, 0.24);
}

.editor-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.action-group {
  display: grid;
  gap: 7px;
  padding: 6px;
  border: 1px solid #d5e0eb;
  border-radius: 10px;
  background: #f4f8fc;
}

.action-group-primary {
  grid-template-columns: 1.15fr 1fr 0.78fr;
}

.action-group-secondary {
  grid-template-columns: 1fr 1fr 1fr 0.72fr 1.05fr;
}

.module-mode .editor {
  width: min(980px, calc(100% - 48px));
  margin-top: 24px;
}

.module-mode .editor-header {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.module-mode .editor-actions,
.module-mode #data-form,
.module-mode .sips-panel,
.module-mode .tariff-summary {
  display: none;
}

#data-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

#data-form.luz30-compact-form,
#data-form.luz20-compact-form {
  grid-template-columns: minmax(330px, 1.35fr) minmax(280px, 1fr) minmax(220px, 0.72fr) minmax(280px, 1fr);
  align-items: start;
}

.editor-actions button,
.action-button {
  border: 1px solid #c7d1dd;
  background: #ffffff;
  color: #1c2737;
  min-height: 42px;
  border-radius: 9px;
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.editor-actions button:hover,
.action-button:hover {
  background: #f2f6fa;
  border-color: #aebccd;
  transform: translateY(-1px);
}

.editor-actions button:active,
.action-button:active {
  transform: translateY(1px);
}

.action-accept {
  border-color: #bd7800;
  background: linear-gradient(135deg, #f6b62e, #d68a00);
  color: #1d1605;
}

.action-save {
  border-color: #126326;
  background: linear-gradient(135deg, #237b2e, #63a92f);
  color: #ffffff;
}

.action-print {
  border-color: #0f5f95;
  background: linear-gradient(135deg, #0f66a8, #1f7db8);
  color: #ffffff;
}

.action-privacy {
  border-color: #8fb2d1;
  background: #ffffff;
  color: #123762;
}

.action-import {
  border-color: #b7c7d8;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: #123762;
}

.action-reset {
  border-color: #d8b7b7;
  background: #fff8f8;
  color: #8c1617;
}

#privacy-mode.is-active {
  border-color: #126326;
  background: #e8f6e7;
  color: #126326;
}

body.privacy-mode .privacy-sensitive input,
body.privacy-mode .privacy-sensitive select {
  color: transparent;
  text-shadow: 0 0 8px rgba(17, 24, 39, 0.62);
  caret-color: #111827;
}

body.privacy-mode .privacy-value {
  color: #6b7280;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 42px;
  border: 1px solid #bed0e0;
  border-radius: 9px;
  padding: 3px;
  background: #f7fbff;
}

.language-toggle button {
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  background: transparent;
  color: #123257;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.language-toggle button.is-active {
  background: #1f6fa8;
  color: #fff;
}

.field-group {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  margin: 0;
  padding: 13px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.field-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}

.field-group legend {
  color: #1c2737;
  font-size: 13px;
  font-weight: 700;
  padding: 0 6px;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-row label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field-row input,
.field-row select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c5cfdb;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fcfdff;
  color: #111827;
  font-size: 14px;
}

.field-row input:focus,
.field-row select:focus {
  outline: 3px solid var(--focus);
  border-color: var(--blue);
  background: #fff;
}

.luz30-compact-form .tariff-field-group,
.luz20-compact-form .tariff-field-group {
  grid-column: 1 / -1;
  min-height: 0;
}

.luz30-compact-form .tariff-selector-layout,
.luz20-compact-form .tariff-selector-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.6fr);
  align-items: start;
  gap: 12px;
}

.luz30-compact-form .summary-vertical,
.luz20-compact-form .summary-vertical {
  min-height: 0;
  max-height: 218px;
  overflow: auto;
  padding: 10px;
}

.luz30-compact-form .summary-vertical-title,
.luz20-compact-form .summary-vertical-title {
  margin-bottom: 8px;
}

.luz30-compact-card {
  min-width: 0;
  padding: 10px;
}

.luz30-client-card {
  grid-column: 1 / 2;
}

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

.luz30-compact-field {
  min-width: 0;
  margin-bottom: 0;
}

.luz30-compact-field.wide {
  grid-column: 1 / -1;
}

.luz30-compact-form .field-row label,
.luz30-table-field span {
  font-size: 10px;
}

.luz30-compact-form .field-row input,
.luz30-compact-form .field-row select,
.luz30-table-field input {
  min-height: 31px;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 750;
}

.luz30-period-table {
  display: grid;
  gap: 6px;
}

.luz30-option-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 1px solid #d6e2ee;
  border-radius: 7px;
  background: #f8fbff;
  color: #123762;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.luz30-option-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.luz30-power-change-card.is-collapsed .luz30-period-table {
  display: none;
}

.luz30-period-head,
.luz30-period-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  align-items: end;
}

.luz30-period-head-change,
.luz30-period-row-change {
  grid-template-columns: 42px minmax(0, 1fr);
}

.luz30-period-head {
  color: #536070;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.luz30-period-row strong {
  display: grid;
  place-items: center;
  min-height: 31px;
  border-radius: 6px;
  background: #eef5fb;
  color: #123762;
  font-size: 12px;
  font-weight: 900;
}

.luz30-period-row strong small {
  display: block;
  margin-top: -3px;
  font-size: 8px;
  font-weight: 800;
  color: #536070;
}

.luz30-table-field {
  display: grid;
  gap: 3px;
  margin: 0;
}

.luz30-table-field input {
  width: 100%;
  border: 1px solid #c5cfdb;
  border-radius: 6px;
  background: #fcfdff;
  color: #111827;
}

.field-row-manual label {
  color: #b4232b;
}

.field-row-manual input,
.field-row-manual select {
  border-color: #d33b3f;
  background: #fff7f7;
  box-shadow: inset 3px 0 0 #d33b3f;
}

.field-row-extracted label {
  color: #126326;
}

.field-row-extracted input,
.field-row-extracted select {
  border-color: #2fb344;
  background: #f4fff5;
  box-shadow: inset 3px 0 0 #2fb344;
}

.sips-panel {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  margin: 12px 0 0;
  padding: 13px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.sips-title {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.sips-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid #1f6fa8;
  border-radius: 6px;
  background: #1f6fa8;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.sips-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.sips-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sips-status-success {
  color: #126326;
}

.sips-status-error {
  color: #9f1d24;
}

.tariff-summary {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  margin-top: 12px;
  padding: 13px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.summary-title {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.tariff-field-group {
  min-height: 535px;
}

.tariff-selector-layout {
  display: grid;
  gap: 26px;
}

.tariff-selector-layout .field-row {
  margin-bottom: 0;
}

.summary-vertical {
  display: grid;
  align-content: start;
  min-height: 285px;
  border: 1px solid #dbe7d6;
  border-radius: 8px;
  padding: 13px 12px;
  background: linear-gradient(180deg, #fbfffb, #f3f9f1);
}

.summary-vertical-title {
  margin-bottom: 14px;
  color: #123257;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.summary-bars {
  display: grid;
  gap: 10px;
}

.summary-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 76px 88px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #123257;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.05);
}

.summary-bar:hover,
.summary-bar.is-selected {
  border-color: var(--blue);
  outline: 2px solid rgba(31, 111, 168, 0.2);
  outline-offset: 1px;
}

.summary-bar-value {
  display: grid;
  gap: 2px;
  justify-self: end;
  font-weight: 900;
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}

.summary-bar-saving {
  color: #061b34;
  font-size: 11.5px;
}

.summary-bar-commission {
  color: #237b2e;
  font-size: 10.5px;
}

.summary-bar-track {
  display: flex;
  align-items: center;
  height: 13px;
  border-radius: 999px;
  background: #e9eef4;
  overflow: hidden;
}

.summary-bar-fill {
  width: var(--bar-width, 12%);
  height: 100%;
  min-width: 8px;
  border-radius: 999px;
}

.summary-bar-best .summary-bar-fill {
  background: #62be77;
}

.summary-bar-middle .summary-bar-fill {
  background: #ffd85a;
}

.summary-bar-worst .summary-bar-fill {
  background: #ff6969;
}

.summary-bar-info {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.05;
}

.summary-bar-company {
  overflow: hidden;
  color: #126326;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.summary-bar-label {
  overflow: hidden;
  color: #1c2737;
  font-size: 10.8px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-table {
  display: grid;
  gap: 3px;
}

.summary-row {
  display: grid;
  grid-template-columns: 76px 1fr 116px;
  align-items: stretch;
  width: 100%;
  min-height: 29px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.summary-row:hover {
  outline: 2px solid rgba(31, 111, 168, 0.22);
  outline-offset: 1px;
}

.summary-row.is-selected {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.summary-name,
.summary-saving,
.summary-company {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 4px 6px;
}

.summary-saving {
  justify-content: flex-end;
}

.summary-company {
  background: #ffffff;
  white-space: nowrap;
}

.summary-saving-best {
  background: #62be77;
}

.summary-saving-middle {
  background: #ffd85a;
}

.summary-saving-worst {
  background: #ff6969;
}

.crm-panel {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  margin: 0;
  padding: 13px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.crm-title {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

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

.wide-field {
  grid-column: 1 / -1;
}

.tariff-editor-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 12px;
}

.tariff-editor-grid-single,
.tariff-editor-grid-30 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.tariff-editor-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.tariff-editor-tab {
  min-height: 34px;
  border: 1px solid #c7d1dd;
  border-radius: 6px;
  padding: 7px 12px;
  background: #ffffff;
  color: #1c2737;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.tariff-editor-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.tariff-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 12px;
  align-items: end;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #d6e1ec;
  border-radius: 8px;
  background: #f7fbff;
}

.tariff-filter-panel strong {
  display: block;
  color: #0b2545;
  font-size: 14px;
  text-transform: uppercase;
}

.tariff-filter-panel span {
  color: #5f6f82;
  font-size: 12px;
  font-weight: 700;
}

.tariff-filter-controls {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(130px, .6fr) minmax(220px, 1.4fr);
  gap: 8px;
}

.tariff-filter-controls-compact {
  grid-template-columns: minmax(160px, 240px);
  justify-content: start;
}

.tariff-filter-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #4a5a6d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tariff-filter-controls input,
.tariff-filter-controls select {
  min-height: 36px;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 7px 9px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.tariff-company-switches {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 12px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #dbe8d6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fbf3, #ffffff);
}

.tariff-company-switches strong {
  display: block;
  color: #0b2545;
  font-size: 14px;
  text-transform: uppercase;
}

.tariff-company-switches span {
  color: #5f6f82;
  font-size: 12px;
  font-weight: 700;
}

.tariff-bulk-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.tariff-bulk-actions button {
  min-height: 30px;
  border: 1px solid #bfd0e1;
  border-radius: 6px;
  padding: 5px 8px;
  background: #ffffff;
  color: #123762;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.tariff-bulk-actions button:hover {
  border-color: var(--blue);
  background: #eef5fb;
}

.tariff-company-switch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tariff-company-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #d6e1ec;
  border-radius: 999px;
  background: #fff;
  color: #304257;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.tariff-company-switch.is-active {
  border-color: #5dad38;
  background: #eef8e9;
  color: #126326;
}

.tariff-company-switch input {
  accent-color: #2f8f2f;
}

.clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tariff-card,
.client-card,
.client-form-card {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.tariff-card.is-disabled {
  opacity: .55;
  background: #f7f8fa;
}

.tariff-card h3,
.client-form-card h3 {
  margin: 0 0 10px;
  color: #123762;
  font-size: 14px;
  text-transform: uppercase;
}

.tariff-company {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 10px;
}

.tariff-company .company-preview {
  display: inline-flex;
  margin-top: 0;
  padding: 5px 8px;
  border: 1px solid #d9e6d5;
  border-radius: 7px;
  background: #f3faef;
}

.tariff-state-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid #d2dce7;
  background: #fff;
  color: #526070;
}

.tariff-state-pill.is-on {
  border-color: #9ed190;
  background: #eef9ea;
  color: #177327;
}

.tariff-state-pill.is-off {
  border-color: #e2c5c5;
  background: #fff4f4;
  color: #a53b3b;
}

.tariff-field-grid,
.client-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tariff-card-30 h3 {
  min-height: 34px;
  line-height: 1.2;
}

.tariff-field-grid-30 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.tariff-field-grid-30 .field-row {
  gap: 4px;
}

.tariff-field-grid-30 .field-row label {
  font-size: 10px;
  text-align: center;
}

.tariff-field-grid-30 .field-row input {
  min-height: 32px;
  padding: 5px 4px;
  font-size: 11px;
  text-align: center;
}

.tariff-subtitle {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #123762;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clients-grid .client-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.company-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #d9e6d5;
  border-radius: 7px;
  background: #ffffff;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}

.company-logo-img {
  width: 76px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.company-mark {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  background: #eef8ea;
  color: #126326;
  border: 1px solid #b7d8bd;
  font-size: 10px;
  font-weight: 900;
}

.gana-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 34, 0.58);
}

.gana-dialog {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.gana-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #063d67, #1f6fa8);
  color: #fff;
}

.gana-head strong,
.gana-head span {
  display: block;
}

.gana-head span {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.9;
}

.gana-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.gana-status {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef4fb;
  color: #123762;
  font-size: 13px;
  font-weight: 800;
}

.gana-status-error {
  background: #fff0f0;
  color: #9f1d24;
}

.gana-status-success {
  background: #eef8ea;
  color: #126326;
}

.gana-status-loading {
  background: #fff8e5;
  color: #7a4b00;
}

.gana-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.gana-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background: #fff;
}

.gana-form legend {
  padding: 0 7px;
  color: #123762;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gana-form label {
  display: grid;
  gap: 4px;
  color: #435169;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gana-form input,
.gana-form select,
.gana-form textarea {
  min-height: 34px;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 13px;
}

.gana-form textarea {
  min-height: 84px;
  resize: vertical;
}

.gana-preview {
  margin: 0 18px 18px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #435169;
  font-size: 12px;
}

.gana-preview pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
}

.gana-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 18px;
}

.gana-actions button,
.gana-sign-link {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #1f6fa8;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.gana-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.send-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 34, 0.58);
}

.send-dialog {
  width: min(560px, 96vw);
  overflow: hidden;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.send-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  background: linear-gradient(90deg, #063d67, #1f6fa8);
  color: #ffffff;
}

.send-head strong,
.send-head span {
  display: block;
}

.send-head strong {
  font-size: 17px;
  font-weight: 900;
}

.send-head span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.send-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
}

.send-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.send-body label {
  display: grid;
  gap: 5px;
  color: #435169;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.send-body input,
.send-body select,
.send-body textarea {
  min-height: 36px;
  border: 1px solid #bfd0e1;
  border-radius: 8px;
  padding: 8px 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.send-body textarea {
  min-height: 122px;
  resize: vertical;
  text-transform: none;
  font-weight: 600;
}

.send-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
}

.send-check input {
  min-height: auto;
}

.send-status {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef4fb;
  color: #123762;
  font-size: 12px;
  font-weight: 800;
}

.send-status-success {
  background: #eef8ea;
  color: #126326;
}

.send-status-error {
  background: #fff0f0;
  color: #9f1d24;
}

.send-actions {
  padding: 0 18px 18px;
}

.send-submit {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: #237b2e;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.gana-submit-btn {
  background: #237b2e !important;
}

.history-sign {
  color: #126326;
  font-size: 12px;
  font-weight: 900;
}

.client-list {
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: auto;
}

.client-table {
  min-width: 1260px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.client-table-row {
  display: grid;
  grid-template-columns: 1.25fr 95px 105px 1.05fr 1.8fr 120px 1.05fr 78px 210px;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid #e3e9f0;
}

.client-table-row:last-child {
  border-bottom: 0;
}

.client-table-row > span {
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.client-table-head {
  min-height: 34px;
  background: #536070;
  color: #fff;
  text-transform: uppercase;
}

.client-table-row.is-active {
  background: #eef8ea;
}

.client-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border: 1px solid #c8d9ee;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef5fb;
  color: #0b4f85;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-status-aceptado {
  border-color: #bfe2bf;
  background: #eef8ea;
  color: #126326;
}

.client-status-descartado {
  border-color: #f3c7c7;
  background: #fff2f2;
  color: #a71f1f;
}

.client-row-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.client-row-actions button,
.client-doc-link {
  min-height: 24px;
  border: 1px solid #c7d1dd;
  border-radius: 5px;
  background: #fff;
  color: #1c2737;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.client-doc-link {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.client-card strong,
.client-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-actions {
  display: flex;
  gap: 6px;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.client-actions button,
.tariff-actions button,
.client-doc-button {
  min-height: 32px;
  border: 1px solid #c7d1dd;
  border-radius: 6px;
  background: #fff;
  color: #1c2737;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.client-actions button.primary,
.tariff-actions button.primary,
.client-doc-button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.client-docs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-controls .field-row {
  margin-bottom: 0;
}

.crm-controls button {
  min-height: 36px;
  border: 1px solid #c7d1dd;
  border-radius: 6px;
  background: #ffffff;
  color: #1c2737;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.crm-controls button:hover {
  background: #f2f6fa;
  border-color: #aebccd;
}

.crm-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 8px;
  border-radius: 6px;
  background: #eef8ea;
  color: #126326;
  font-size: 12px;
  font-weight: 800;
}

.crm-current span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-commission {
  color: #0f4e80;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow: auto;
  padding-right: 2px;
}

.history-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 64px 70px 92px 82px;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fbfdff;
}

.history-record.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--focus);
}

.history-open {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.history-name,
.history-saving {
  font-size: 13px;
  font-weight: 800;
}

.history-meta,
.history-cups,
.history-commission {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.history-name,
.history-meta,
.history-cups,
.history-commission {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-status {
  width: 100%;
  min-height: 31px;
  border: 1px solid #c5cfdb;
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.history-commercial {
  display: grid;
  grid-template-columns: 76px minmax(0, 190px);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.history-commercial-select {
  width: 100%;
  min-height: 31px;
  border: 1px solid #c5cfdb;
  border-radius: 6px;
  background: #ffffff;
  color: #0b2d50;
  font-size: 12px;
  font-weight: 800;
}

.history-pdf {
  min-height: 31px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.history-pdf:hover {
  background: #165f93;
}

.history-accept {
  min-height: 31px;
  border: 1px solid #237b2e;
  border-radius: 6px;
  background: #237b2e;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.history-email,
.history-whatsapp {
  min-height: 31px;
  border: 1px solid #c7d1dd;
  border-radius: 6px;
  background: #ffffff;
  color: #123762;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.history-whatsapp {
  border-color: #27b45b;
  color: #126326;
}

.history-cups,
.history-commission {
  grid-column: 1 / -1;
}

.history-commercial {
  grid-column: 1 / -1;
}

.history-delete {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #9f1d24;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-delete:hover {
  text-decoration: underline;
}

.history-empty {
  padding: 10px;
  border: 1px dashed #c5cfdb;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.contracts-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #063d67, #1f6fa8);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 61, 103, 0.18);
}

.contracts-hero .crm-title {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 22px;
  text-align: left;
}

.contracts-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.contracts-hero button,
.contract-actions button,
.contract-actions a {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  background: #ffffff;
  color: #0f4e80;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.contracts-hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contracts-hero button:disabled {
  opacity: 0.7;
  cursor: wait;
}

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

.contract-kpi {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.contract-kpi span {
  display: block;
  color: #536070;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-kpi strong {
  display: block;
  margin-top: 7px;
  color: #123762;
  font-size: 24px;
  font-weight: 900;
}

.contracts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 14px;
}

.contracts-list-card,
.contract-detail-card {
  min-width: 0;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.contracts-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.contracts-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.contract-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 115px 110px 92px 116px 94px 140px 120px;
  min-width: 980px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fbfdff;
}

.contract-row.is-active {
  border-color: #1f6fa8;
  box-shadow: 0 0 0 2px rgba(31, 111, 168, 0.14);
}

.contract-open {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.contract-client,
.contract-saving {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.contract-meta,
.contract-cups,
.contract-commercial-tag,
.contract-commission,
.contract-status-mini,
.contract-date-mini {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #536070;
  font-size: 11px;
  font-weight: 800;
}

.contract-status-mini,
.contract-date-mini,
.contract-saving,
.contract-commission,
.contract-assigned-commercial {
  display: grid;
  gap: 2px;
}

.contract-status-mini b,
.contract-date-mini b,
.contract-saving b,
.contract-commission b,
.contract-assigned-commercial b {
  overflow: hidden;
  color: #123762;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.contract-status-mini small,
.contract-date-mini small,
.contract-saving small,
.contract-commission small,
.contract-assigned-commercial small {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.contract-status-select,
.contract-commercial-select,
.contract-commission-select,
.contracts-filters select,
.contracts-filters input {
  min-height: 32px;
  width: 100%;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 8px;
  color: #1c2737;
  font-size: 12px;
  font-weight: 800;
}

.renewals-hero {
  background: linear-gradient(135deg, #0d5f4c, #1f7a68);
}

.renewal-kpis {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.renewal-card {
  overflow: visible;
}

.renewal-filters {
  grid-template-columns: minmax(250px, 1.35fr) repeat(7, minmax(118px, 0.72fr)) minmax(130px, 0.55fr);
  align-items: end;
}

.renewal-status-field {
  position: relative;
}

.multi-filter {
  position: relative;
}

.multi-filter summary {
  display: grid;
  min-height: 32px;
  align-items: center;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 30px 6px 8px;
  color: #1c2737;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.multi-filter summary::-webkit-details-marker {
  display: none;
}

.multi-filter summary::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #60758c;
  border-bottom: 2px solid #60758c;
  transform: rotate(45deg);
}

.multi-filter[open] summary::after {
  top: 17px;
  transform: rotate(225deg);
}

.multi-filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: min(280px, 78vw);
  max-height: 310px;
  overflow: auto;
  border: 1px solid #bfd0e1;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  gap: 6px;
}

.multi-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 2px;
}

.multi-filter-actions button {
  min-height: 30px;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #eef4fa;
  color: #123762;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.multi-filter-actions button:last-child {
  border-color: #1f7a68;
  background: #1f7a68;
  color: #ffffff;
}

.multi-filter-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  border-radius: 7px;
  padding: 7px 8px;
  color: #1c2737;
  font-size: 12px;
  font-weight: 900;
}

.multi-filter-option:hover {
  background: #f1fbf6;
}

.multi-filter-option input {
  width: 15px;
  height: 15px;
  accent-color: #1f7a68;
}

.multi-filter-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-filter-option small {
  min-width: 26px;
  border-radius: 999px;
  background: #eef4fa;
  color: #536070;
  padding: 2px 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.renewal-count {
  display: grid;
  min-height: 32px;
  place-items: center;
  border: 1px solid #cde0d9;
  border-radius: 7px;
  background: #f1fbf6;
  color: #126326;
  font-size: 12px;
  font-weight: 900;
}

.renewal-table {
  display: grid;
  gap: 7px;
  overflow-x: auto;
}

.renewal-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) 162px 132px 112px 108px 108px 82px 82px 104px 120px minmax(120px, 0.7fr) minmax(160px, 0.9fr) 120px;
  min-width: 1760px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fbfdff;
  color: #1c2737;
  font-size: 12px;
  font-weight: 800;
}

.renewal-head {
  border-color: #b8cad8;
  background: #eef4fa;
  color: #123762;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.renewal-client,
.renewal-contact,
.renewal-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.renewal-client b,
.renewal-contact b,
.renewal-open-client,
.renewal-date b,
.renewal-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.renewal-open-client {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #123762;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.renewal-open-client:hover {
  color: #0f66a8;
  text-decoration: underline;
}

.renewal-client small,
.renewal-contact small,
.renewal-date small {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.renewal-days {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #eef4fa;
  color: #123762;
  font-weight: 900;
}

.renewal-commission {
  color: #126326;
  font-weight: 950;
}

.renewal-viability {
  display: inline-grid;
  min-height: 25px;
  place-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.renewal-viability.is-renovable {
  background: #e7f7ec;
  color: #126326;
}

.renewal-viability.is-revisar {
  background: #fff3d8;
  color: #8a5600;
}

.renewal-viability.is-no-renovable {
  background: #ffe5e5;
  color: #a32020;
}

.renewal-row.is-expired {
  border-color: #f1a4a4;
  background: #fff4f4;
}

.renewal-row.is-expired .renewal-days {
  background: #c52f32;
  color: #ffffff;
}

.renewal-row.is-urgent {
  border-color: #efb15c;
  background: #fff8ec;
}

.renewal-row.is-urgent .renewal-days {
  background: #d88400;
  color: #1d1605;
}

.renewal-row.is-soon {
  border-color: #8cc7a4;
  background: #f4fbf6;
}

.renewal-row.is-soon .renewal-days {
  background: #237b2e;
  color: #ffffff;
}

.client-contracts-box {
  margin-top: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
}

.client-contracts-box h4 {
  margin: 0 0 8px;
  color: #123762;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-contracts-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
}

.client-contract-item {
  display: grid;
  gap: 2px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.client-contract-item strong {
  color: #123762;
  font-size: 12px;
}

.client-contract-item span,
.client-contract-item small {
  overflow: hidden;
  color: #536070;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.contract-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.contract-detail-head strong,
.contract-detail-head span {
  display: block;
}

.contract-detail-head strong {
  color: #123762;
  font-size: 18px;
  font-weight: 900;
}

.contract-detail-head span {
  margin-top: 3px;
  color: #536070;
  font-size: 12px;
  font-weight: 800;
}

.contract-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef4fb;
  color: #123762;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-status-pendiente_firma,
.contract-status-presupuesto_aceptado,
.contract-status-firmado {
  background: #fff8e5;
  color: #7a4b00;
}

.contract-status-activado {
  background: #eef8ea;
  color: #126326;
}

.contract-status-incidencia,
.contract-status-rechazado,
.contract-status-cancelado {
  background: #fff0f0;
  color: #9f1d24;
}

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

.contract-detail-grid div {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #fbfdff;
}

.contract-detail-grid span,
.contract-detail-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-detail-grid span {
  color: #536070;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-detail-grid strong {
  margin-top: 4px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.contract-detail-commercial {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.contract-detail-commercial span {
  color: #536070;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-detail-commercial select {
  min-height: 34px;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 8px;
  color: #1c2737;
  font-size: 12px;
  font-weight: 900;
}

.contract-actions button,
.contract-actions a {
  border-color: #c7d1dd;
}

.contract-actions .contract-delete {
  color: #9f1d24;
}

.contract-timeline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.contract-timeline > strong {
  color: #123762;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-event {
  display: grid;
  gap: 2px;
  border-left: 3px solid #79c143;
  padding: 6px 8px;
  background: #f7fbf4;
  border-radius: 0 8px 8px 0;
}

.contract-event span,
.contract-event small {
  color: #536070;
  font-size: 11px;
  font-weight: 700;
}

.contract-event b {
  color: #111827;
  font-size: 12px;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.commercial-card {
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.commercial-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.commercial-card-head strong {
  color: #123762;
  font-size: 17px;
  font-weight: 900;
}

.commercial-card-head span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef8ea;
  color: #126326;
  font-size: 11px;
  font-weight: 900;
}

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

.commercial-stats div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #fbfdff;
}

.commercial-stats span,
.commercial-stats strong {
  display: block;
}

.commercial-delete,
.user-delete {
  min-height: 32px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.commercial-delete {
  width: 100%;
  margin-top: 12px;
}

.commercial-stats span {
  color: #536070;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.commercial-stats strong {
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.commission-table {
  display: grid;
  gap: 8px;
}

.commission-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 140px 120px 150px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fbfdff;
}

.commission-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1c2737;
  font-size: 12px;
  font-weight: 800;
}

.commission-row strong,
.commission-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commission-row small {
  color: #536070;
  font-size: 11px;
}

.training-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #0b4f85, #1f6fa8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.training-hero p {
  margin: 5px 0 0;
  max-width: 780px;
  font-size: 13px;
  font-weight: 700;
}

.training-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.training-actions button,
.training-upload-button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  padding: 0 14px;
  background: #fff;
  color: #123257;
  font-weight: 900;
  cursor: pointer;
}

.training-actions .primary {
  background: #56a832;
  color: #fff;
}

.training-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.training-kpi,
.training-card {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.training-kpi {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.training-kpi span {
  color: #536070;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.training-kpi strong {
  color: #0b4f85;
  font-size: 26px;
  font-weight: 900;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.training-card {
  padding: 16px;
}

.training-card h3 {
  margin: 0 0 12px;
  color: #123257;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.training-company-list,
.training-results {
  display: grid;
  gap: 10px;
}

.training-company,
.training-result,
.training-problem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8fbfd;
}

.training-company strong,
.training-result strong {
  display: block;
  color: #061b34;
  font-size: 13px;
  font-weight: 900;
}

.training-company span,
.training-result span {
  display: block;
  margin-top: 2px;
  color: #536070;
  font-size: 11px;
  font-weight: 700;
}

.training-company b,
.training-result b,
.training-problem strong {
  color: #0b4f85;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.training-confidence-high {
  border-color: #bfe2bf;
  background: #f2fbef;
}

.training-confidence-mid {
  border-color: #f2d27a;
  background: #fffaf0;
}

.training-confidence-low {
  border-color: #f0b7b7;
  background: #fff4f4;
}

.training-loading {
  margin-top: 14px;
  border: 1px dashed #c7d1dd;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  color: #536070;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .training-hero,
  .training-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

.commission-status-select {
  min-height: 32px;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.users-hero {
  background: linear-gradient(135deg, #123762, #1f6fa8);
}

.users-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.users-row {
  display: grid;
  grid-template-columns: 120px 170px 170px 120px 180px 80px 90px 90px 150px 110px;
  min-width: 1300px;
  gap: 8px;
  align-items: center;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: #fbfdff;
  padding: 8px;
}

.users-head {
  background: #123762;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.users-row input,
.users-row select,
.users-new-grid input,
.users-new-grid select {
  min-height: 32px;
  width: 100%;
  border: 1px solid #bfd0e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 8px;
  color: #1c2737;
  font-size: 12px;
  font-weight: 800;
}

.users-new-card {
  margin-top: 12px;
}

.users-new-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

.users-new-grid label span {
  display: block;
  margin-bottom: 4px;
  color: #536070;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-page {
  min-width: 0;
  overflow: auto;
  padding: 24px;
}

.crm-page .crm-panel {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.crm-page .crm-title {
  font-size: 18px;
  text-align: left;
}

.crm-page .history-list {
  max-height: none;
}

.crm-mode .editor {
  margin-top: 24px;
}

.preview {
  min-width: 0;
  overflow: auto;
  padding: 24px 24px 14px;
}

.dashboard-frame {
  position: relative;
  width: min(1260px, 100%);
  min-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #c6d0dc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(34, 45, 63, 0.18);
}

.print-fab {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 77, 125, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, #0a4a78, #1f7db8);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(15, 77, 125, 0.24);
}

.print-fab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.print-fab:hover {
  background: linear-gradient(135deg, #073d6b, #166da5);
}

.crm-fab {
  top: 62px;
  background: linear-gradient(135deg, #237b2e, #63a92f);
}

.crm-fab:hover {
  background: linear-gradient(135deg, #176827, #4f9826);
}

.accept-fab {
  top: 112px;
  background: linear-gradient(135deg, #d68a00, #f6b62e);
}

.accept-fab:hover {
  background: linear-gradient(135deg, #bd7800, #e5a71e);
}

#dashboard-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: #e9eef4;
}

@media (max-width: 980px) {
  .editor {
    width: calc(100% - 24px);
    margin-bottom: 12px;
  }

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

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

  .action-group-primary,
  .action-group-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-mode .editor-header {
    grid-template-columns: 1fr;
  }

  .preview {
    padding: 12px;
  }

  .tariff-selector-layout {
    grid-template-columns: 1fr;
  }

  #data-form.luz30-compact-form,
  #data-form.luz20-compact-form {
    grid-template-columns: 1fr;
  }

  .luz30-compact-form .tariff-selector-layout,
  .luz20-compact-form .tariff-selector-layout,
  .luz30-compact-grid {
    grid-template-columns: 1fr;
  }

  .luz30-client-card,
  .luz30-compact-field.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body {
    background: #f4f7fb;
  }

  .login-screen {
    padding: 14px;
    align-items: start;
    overflow: auto;
  }

  .login-screen::after {
    inset: 8px;
    border-radius: 18px;
  }

  .login-card {
    width: 100%;
    margin-top: 10px;
    border-radius: 18px;
    padding: 14px;
  }

  .login-card img {
    height: 118px;
    border-radius: 12px;
  }

  .login-brand {
    margin: 12px 0;
    padding: 13px;
    border-radius: 13px;
  }

  .login-brand strong {
    font-size: 22px;
  }

  .preview {
    display: block;
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-frame {
    width: 760px;
    min-width: 760px;
    border-radius: 8px;
  }

  .print-fab {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11px;
  }

  .print-fab svg {
    width: 16px;
    height: 16px;
  }

  .crm-fab {
    top: 52px;
  }

  .accept-fab {
    top: 92px;
  }

  .editor {
    width: 100%;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
  }

  .editor-header {
    gap: 10px;
  }

  .page-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .page-tab {
    flex: 0 0 auto;
    min-width: 106px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .editor-actions {
    gap: 7px;
  }

  .action-group-primary,
  .action-group-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .editor-actions button,
  .action-button,
  .language-toggle button {
    min-height: 40px;
    padding: 8px 7px;
    font-size: 11px;
  }

  .language-toggle {
    grid-column: span 2;
    min-height: 40px;
  }

  .crm-page {
    padding: 10px;
    overflow: visible;
  }

  .crm-page .crm-panel {
    width: 100%;
  }

  .crm-title {
    font-size: 17px;
  }

  .contracts-hero {
    display: grid;
    gap: 10px;
    padding: 13px;
  }

  .contracts-hero .crm-title {
    font-size: 18px;
  }

  .contracts-hero p {
    font-size: 12px;
  }

  .contracts-hero-actions {
    justify-content: stretch;
  }

  .contracts-hero button {
    width: 100%;
  }

  .contract-kpis,
  .renewal-kpis,
  .training-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .contract-kpi {
    padding: 10px;
  }

  .contract-kpi strong {
    font-size: 20px;
  }

  .contracts-layout,
  .training-layout,
  .training-hero {
    grid-template-columns: 1fr;
  }

  .contracts-filters,
  .renewal-filters {
    grid-template-columns: 1fr;
  }

  .multi-filter-panel {
    position: static;
    width: 100%;
    margin-top: 6px;
    max-height: 260px;
  }

  .renewal-count {
    min-height: 38px;
  }

  .client-form-card,
  .contracts-list-card,
  .contract-detail-card,
  .tariff-card {
    border-radius: 10px;
    padding: 10px;
  }

  .clients-grid,
  .client-field-grid,
  .clients-grid .client-field-grid,
  .tariff-field-grid,
  .tariff-field-grid-30,
  .gana-form,
  .manual-contract-grid,
  .commission-grid,
  .training-upload-card,
  .training-results {
    grid-template-columns: 1fr;
  }

  .client-actions,
  .gana-actions,
  .contract-actions,
  .training-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .client-actions button,
  .contract-actions button,
  .contract-actions a,
  .training-actions button {
    width: 100%;
    min-height: 40px;
  }

  .client-list,
  .contracts-table,
  .renewal-table {
    overflow: visible;
  }

  .client-table {
    min-width: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 9px;
  }

  .client-table-head {
    display: none;
  }

  .client-table-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: 10px;
    background: #ffffff;
  }

  .client-table-row > span {
    padding: 0;
    white-space: normal;
    font-size: 12px;
  }

  .client-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .client-row-actions button {
    min-height: 34px;
  }

  .contract-row,
  .renewal-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px;
  }

  .contract-row > *,
  .renewal-row > span {
    min-width: 0;
    white-space: normal;
  }

  .contract-row:not(.contract-head) > *,
  .renewal-row:not(.renewal-head) > span {
    display: grid;
    gap: 2px;
  }

  .contract-row:not(.contract-head) > *::before,
  .renewal-row:not(.renewal-head) > span::before {
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .contract-head,
  .renewal-head {
    display: none;
  }

  .renewal-row:not(.renewal-head) > span:nth-child(2)::before { content: "Contacto"; }
  .renewal-row:not(.renewal-head) > span:nth-child(3)::before { content: "Compañía"; }
  .renewal-row:not(.renewal-head) > span:nth-child(4)::before { content: "Oportunidad"; }
  .renewal-row:not(.renewal-head) > span:nth-child(5)::before { content: "Activación"; }
  .renewal-row:not(.renewal-head) > span:nth-child(6)::before { content: "Renovación"; }
  .renewal-row:not(.renewal-head) > span:nth-child(7)::before { content: "Días"; }
  .renewal-row:not(.renewal-head) > span:nth-child(8)::before { content: "Cartera"; }
  .renewal-row:not(.renewal-head) > span:nth-child(9)::before { content: "Comisión"; }
  .renewal-row:not(.renewal-head) > span:nth-child(10)::before { content: "Consumo / Potencia"; }
  .renewal-row:not(.renewal-head) > span:nth-child(11)::before { content: "Tarifa"; }
  .renewal-row:not(.renewal-head) > span:nth-child(12)::before { content: "Estado"; }

  .renewal-open-client,
  .contract-client,
  .contract-saving,
  .renewal-client b,
  .renewal-contact b,
  .renewal-date b,
  .renewal-row span,
  .renewal-client small,
  .renewal-contact small,
  .renewal-date small,
  .client-card strong,
  .client-card span {
    white-space: normal;
  }

  .renewal-days,
  .renewal-viability {
    justify-self: start;
  }

  .gana-modal,
  .send-modal {
    padding: 8px;
    place-items: stretch;
  }

  .gana-dialog,
  .send-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .gana-head,
  .send-head {
    padding: 13px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell {
    display: block;
  }

  .editor {
    display: none;
  }

  .print-fab {
    display: none;
  }

  .preview {
    padding: 0;
    overflow: visible;
  }

  .dashboard-frame {
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
  }
}
