:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #16181d;
  background: #f7f6fb;
  font-size: 14px;
  --brand: #7c3aed;
  --muted: #69707d;
  --line: #ece8f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 34rem), #f7f6fb;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 2px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
}
.logo {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -1.7px;
  color: var(--brand);
}
.logo small {
  font-size: 11px;
  letter-spacing: 1.5px;
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
nav {
  margin-top: 40px;
  display: grid;
  gap: 7px;
}
nav button {
  border: 0;
  background: none;
  text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  color: #535866;
}
nav button.active {
  background: #f3efff;
  color: #6d28d9;
  font-weight: 700;
}
.nav-index {
  display: inline-block;
  width: 27px;
  font-size: 11px;
  opacity: 0.6;
}
.profile {
  margin-top: auto;
  padding: 16px 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
main {
  margin-left: 240px;
  padding: 28px 40px;
  max-width: 1600px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.pill {
  font-size: 12px;
  padding: 7px 12px;
  background: #f3efff;
  color: #6d28d9;
  border-radius: 100px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 8px 0;
}
h2 {
  font-size: 17px;
  margin: 0 0 20px;
}
p {
  line-height: 1.6;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--brand);
  text-transform: uppercase;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px;
  box-shadow: 0 18px 45px rgba(34, 24, 78, 0.035);
}
.metric {
  font-size: 32px;
  font-weight: 750;
  margin: 14px 0 3px;
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row strong {
  display: block;
  margin-bottom: 5px;
}
.badge {
  font-size: 11px;
  border-radius: 7px;
  background: #f3efff;
  color: #6d28d9;
  padding: 5px 8px;
  white-space: nowrap;
}
.warn {
  background: #fff5df;
  color: #956100;
}
.primary,
.secondary {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 650;
}
.primary {
  background: #7c3aed;
  color: white;
}
.secondary {
  background: #f3efff;
  color: #6d28d9;
}
.notice {
  padding: 13px 18px;
  border-radius: 12px;
  background: #eee9fa;
  color: #64547f;
  margin-top: 24px;
  font-size: 12px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  color: #535866;
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ddd7e8;
  border-radius: 9px;
  padding: 11px;
  background: white;
  color: #16181d;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
form .primary {
  margin-top: 20px;
}
.result {
  font-size: 32px;
  font-weight: 750;
  color: #6d28d9;
  margin: 15px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  font-weight: 600;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 580px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #19132670;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.error {
  color: #b42318;
}
.empty {
  padding: 35px 10px;
  text-align: center;
}
.history {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.history p {
  margin: 7px 0;
}
.footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  main {
    padding: 24px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  .logo small,
  .profile {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-index {
    display: none;
  }
  main {
    margin: 0;
    padding: 20px 16px;
  }
  header {
    margin-bottom: 22px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .card {
    padding: 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 10px;
  }
  .metric {
    font-size: 26px;
  }
  .row {
    align-items: flex-start;
  }
  .pill {
    font-size: 10px;
  }
}

.logo img {
  display: block;
  width: 200px;
  height: 110px;
  object-fit: cover;
  max-width: 100%;
}
.logo small {
  letter-spacing: 1.2px;
  font-size: 10px;
  text-align: center;
}
@media (max-width: 650px) {
  .logo img {
    width: 150px;
    height: 75px;
  }
}

/* Reglas visuales tomadas de Mega24: mismos colores, controles y tarjetas. */
:root {
  font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}
aside {
  padding: 24px 16px;
  width: 288px;
}
aside nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  margin-top: 14px;
  display: block;
}
nav button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 16px;
  min-height: 44px;
}
nav button.active {
  background: #f3efff;
  color: #6d28d9;
}
.nav-group {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #69707d;
  font-weight: 600;
  margin: 24px 16px 10px;
}
.profile {
  padding: 16px 8px;
  margin-top: 12px;
}
.profile p {
  margin: 5px 0 9px;
}
.profile button {
  padding: 8px 12px;
}
.logo img {
  height: 95px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.actions {
  margin: 0;
  gap: 8px;
}
.actions.wrap {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 20px 0;
}
.heading .actions {
  flex-shrink: 0;
}
main {
  margin-left: 288px;
  padding: 32px;
}
.card {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(34, 24, 78, 0.08);
  border: 1px solid #e2e8f0;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 16px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}
.primary {
  background: #6d28d9;
  box-shadow: 0 18px 45px rgba(34, 24, 78, 0.08);
}
.primary:hover {
  background: #5b21b6;
}
.secondary {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #16181d;
}
.secondary:hover {
  background: #f8fafc;
}
input,
select,
textarea {
  min-height: 48px;
  border-radius: 16px;
  border-color: #e2e8f0;
  padding: 12px 16px;
  font-size: 16px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px #e8ddff;
  outline: none;
}
label {
  font-size: 14px;
  color: #16181d;
  font-weight: 500;
}
.table-wrap {
  padding: 8px 12px;
}
td .secondary {
  padding: 8px 12px;
  margin: 3px;
}
td small,
small {
  color: var(--muted);
}
.searchbar {
  margin: -8px 0 20px;
  max-width: 400px;
}
.searchbar label {
  font-size: 12px;
}
dialog {
  max-width: 950px;
  width: calc(100% - 28px);
  max-height: 92vh;
}
dialog .card {
  box-shadow: none;
}
.modal-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.modal-title h2 {
  margin: 0;
}
.wide {
  grid-column: 1/-1;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}
.check-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #6d28d9;
  flex: none;
}
.check-field span {
  flex: 1;
}
select[multiple] {
  min-height: 120px;
}
label small {
  font-size: 11px;
  font-weight: 400;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.preserve {
  white-space: pre-wrap;
}
.message {
  background: #f3efff;
  padding: 14px;
  border-radius: 16px;
  margin: 12px 0;
}
.message p {
  margin: 6px 0;
}
h3 {
  font-size: 15px;
  margin-top: 24px;
}
.signature-proof {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 16px;
}
.signature-proof img {
  width: 300px;
  max-width: 100%;
  display: block;
}
.signature-proof small {
  overflow-wrap: anywhere;
}
#signature {
  border: 1px solid #c4b5fd;
  border-radius: 16px;
  width: 100%;
  height: 190px;
  touch-action: none;
  background: #fff;
}
#sign-form,
#upload {
  display: grid;
  gap: 18px;
}
footer {
  font-size: 11px;
  color: #69707d;
  line-height: 1.6;
  margin-top: 30px;
}
.metric {
  font-size: clamp(22px, 2.25vw, 32px);
  overflow-wrap: anywhere;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 450px;
  min-width: 0;
  padding: 30px;
}
.auth-logo {
  display: block;
  width: 220px;
  height: 110px;
  object-fit: cover;
  margin: 0 auto 18px;
}
.auth-card h1 {
  font-size: 25px;
}
.auth-card form {
  display: grid;
  gap: 18px;
}
.auth-recovery-link {
  display: block;
  margin: 20px auto 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-recovery-link:hover {
  color: #4c1d95;
}
#pwa-install-help {
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  line-height: 1.6;
}
#pwa-install-help::backdrop {
  background: #16181d66;
}
#pwa-install-help li {
  margin-bottom: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #16181d;
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 40px #16181d30;
  max-width: 90vw;
}
.error-toast {
  background: #9b2c2c;
}
.fields p {
  margin: 5px 0;
}
.history small {
  font-size: 11px;
}
.row {
  overflow-wrap: anywhere;
}
.empty {
  font-size: 14px;
  white-space: normal;
}
td {
  vertical-align: top;
}
table .badge {
  white-space: normal;
}
.heading p {
  max-width: 700px;
}
@media (max-width: 1000px) {
  aside {
    width: 240px;
  }
  main {
    margin-left: 240px;
    padding: 24px;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 10px 14px;
  }
  aside nav {
    display: flex;
    overflow-x: auto;
    margin-top: 4px;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    flex: none;
  }
  .nav-group {
    display: none;
  }
  .profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    border: 0;
    padding: 4px;
    font-size: 11px;
  }
  .profile p {
    margin: 0;
  }
  .profile button {
    font-size: 10px;
  }
  .logo img {
    height: 60px;
    width: 145px;
  }
  main {
    margin: 0;
    padding: 20px 16px;
  }
  .heading {
    display: block;
  }
  .heading .actions {
    justify-content: flex-start;
    margin: 15px 0;
  }
  .toolbar .pill {
    display: none;
  }
  header {
    padding-bottom: 12px;
  }
  dialog {
    padding: 18px;
  }
  .modal-title {
    gap: 12px;
  }
  .split {
    gap: 14px;
  }
  .wide {
    grid-column: auto;
  }
  .signature-proof small {
    font-size: 9px;
  }
  .actions {
    flex-wrap: wrap;
  }
}
@media print {
  body > *:not(#app),
  aside,
  header,
  footer,
  .actions,
  .notice {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
  }
  body:has(dialog[open]) main {
    display: none;
  }
  dialog[open] {
    position: static;
    display: block !important;
    max-width: none;
    width: 100%;
    max-height: none;
    border: 0;
    padding: 0;
  }
  dialog::backdrop {
    display: none;
  }
  .modal-title button {
    display: none;
  }
  dialog .card {
    border: 0;
  }
  body {
    background: white;
  }
}
/* Shell de Mega24: barra lateral de 240 px, selección violeta y ficha del usuario. */
aside {
  width: 240px;
  border-color: #f1f5f9;
  padding: 24px 16px;
}
main {
  margin-left: 240px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: normal;
  color: #16181d;
  font-size: 20px;
}
.logo strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  display: block;
}
.logo small {
  font-size: 12px;
  letter-spacing: normal;
  text-align: left;
  font-weight: 600;
  margin-top: 3px;
  display: block;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(34, 24, 78, 0.08);
  flex: none;
}
.logo .brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.profile {
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 1px 2px #0000000d;
}
.profile strong {
  font-weight: 900;
}
.profile button {
  color: #e11d48;
  border: 0;
  font-weight: 700;
  box-shadow: none;
}
.profile button:hover {
  background: #fff1f2;
}
.nav-group {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin: 12px 0 4px;
  font-size: 11px;
  padding-left: 12px;
}
nav button {
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  color: #334155;
}
nav button.active {
  background: #6d28d9;
  color: white;
  box-shadow: 0 18px 45px rgba(34, 24, 78, 0.08);
}
nav button:hover:not(.active) {
  background: #f3efff;
  color: #5b21b6;
}
@media (max-width: 650px) {
  aside {
    width: auto;
    padding: 12px 16px;
  }
  .logo .brand-symbol {
    width: 40px;
    height: 40px;
  }
  .logo .brand-symbol img {
    width: 100%;
    height: 100%;
    padding: 3px;
  }
  .logo strong {
    font-size: 18px;
  }
  .logo small {
    font-size: 11px;
  }
  main {
    margin-left: 0;
  }
  .profile {
    margin-top: 8px;
  }
  .nav-group {
    display: none;
  }
}
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav button svg {
  flex: none;
}
.mobilebar,
.mobile-bottom,
.drawer-shade {
  display: none;
}
@media (max-width: 1023px) {
  .mobilebar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 25;
    align-items: center;
    gap: 14px;
    background: #ffffffee;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 16px;
  }
  .mobilebar .secondary {
    min-height: 40px;
    padding: 8px 14px;
  }
  aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 320px);
    height: 100dvh;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.15s;
    background: #fff;
    display: flex;
    padding: 20px 16px;
  }
  aside nav {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    margin-top: 16px;
  }
  aside nav button {
    width: 100%;
    white-space: normal;
    text-align: left;
  }
  .nav-group {
    display: block;
  }
  .profile {
    display: block;
    margin-top: 16px;
  }
  .profile p {
    margin: 5px 0 9px;
  }
  .logo small {
    display: block;
  }
  .logo .brand-symbol {
    width: 48px;
    height: 48px;
  }
  .menu-open aside {
    transform: translateX(0);
  }
  .menu-open .drawer-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #0f172a55;
    z-index: 35;
  }
  main {
    margin-left: 0;
    padding: 20px 16px 95px;
  }
  .mobile-bottom {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    inset: auto 0 0;
    z-index: 25;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    padding: 8px 4px 12px;
    box-shadow: 0 -14px 35px rgba(34, 24, 78, 0.08);
    margin: 0;
  }
  .mobile-bottom button {
    display: grid;
    justify-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 2px;
    margin: 0;
    min-height: 56px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    background: white;
    color: #475569;
  }
  .mobile-bottom button svg {
    box-sizing: content-box;
    padding: 5px;
    background: #f1f5f9;
    border-radius: 12px;
  }
  .mobile-bottom button.active {
    background: #fff;
    color: #5b21b6;
    box-shadow: none;
  }
  .mobile-bottom button.active svg {
    color: #fff;
    background: #6d28d9;
  }
  .toolbar .pill {
    display: none;
  }
  .toast {
    bottom: 90px;
  }
  header {
    margin-bottom: 24px;
  }
  .logo strong {
    font-size: 20px;
  }
}
@media print {
  .mobilebar,
  .mobile-bottom,
  .drawer-shade {
    display: none !important;
  }
}
.mobile-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}
.license-bands {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.license-bands table {
  table-layout: fixed;
  width: 100%;
}
.license-bands caption {
  text-align: left;
  padding: 14px 16px;
  color: #69707d;
  font-size: 13px;
  background: #fff;
}
.license-bands th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3efff;
  color: #5b21b6;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  padding: 13px 16px;
}
.license-bands td {
  padding: 8px 16px;
  vertical-align: middle;
}
.license-bands tbody tr:nth-child(even) {
  background: #faf9fd;
}
.license-bands input {
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.license-bands tbody tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 650px) {
  .license-bands th,
  .license-bands td {
    padding: 8px;
  }
  .license-bands th {
    font-size: 12px;
  }
  .license-bands input {
    padding: 10px 7px;
    border-radius: 12px;
  }
  .license-bands caption {
    padding: 12px;
    font-size: 12px;
  }
}
.customer-editor .fields {
  align-items: start;
}
.customer-editor label {
  align-content: start;
}
.customer-editor input:not([type='checkbox']),
.customer-editor select {
  height: 48px;
  min-height: 48px;
}
.customer-editor .form-section {
  grid-column: 1/-1;
  margin: 8px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #5b21b6;
}
.customer-editor .check-field {
  grid-column: 1/-1;
}
.customer-editor textarea {
  min-height: 90px;
}
.client-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.client-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  color: #69707d;
  font-weight: 600;
}
.client-tabs button[aria-selected='true'] {
  color: #6d28d9;
  border-bottom-color: #6d28d9;
  background: #f3efff;
  border-radius: 12px 12px 0 0;
}
.client-tabs-container [data-client-panel][hidden] {
  display: none !important;
}
.client-tabs-container [data-client-panel] {
  min-height: 110px;
}
@media (max-width: 650px) {
  .client-tabs button {
    padding: 12px 10px;
    font-size: 13px;
  }
}
.client-tabs {
  overflow-x: auto;
}
.client-tabs button {
  white-space: nowrap;
  flex: none;
}
.client-module-checks {
  max-height: 40vh;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  margin: 16px 0;
}
.module-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.module-choice:last-child {
  border-bottom: 0;
}
.module-choice input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: none;
  margin-top: 3px;
  accent-color: #6d28d9;
}
.module-choice span {
  min-width: 0;
}
.module-choice strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.module-choice small {
  display: block;
  margin-top: 5px;
}
.contract-feedback {
  min-height: 22px;
}
#client-active-licenses {
  max-width: 260px;
}
/* Los importes y cantidades se modifican escribiendo, sin controles de incremento. */
input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
dialog.quote-editor-dialog {
  width: 1200px;
  max-width: calc(100vw - 32px);
}
.quote-editor-dialog .module-choice > span {
  flex: 1;
}
.quote-module-price {
  flex: none;
  min-width: 150px;
  text-align: right;
  color: #5b21b6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quote-totals {
  margin: 22px 0;
  padding: 20px;
  background: #faf8ff;
  border: 1px solid #e9e0fa;
  border-radius: 16px;
}
.quote-totals .row:last-of-type {
  font-size: 17px;
  color: #5b21b6;
  border-top: 2px solid #ddd0f7;
}
@media (max-width: 650px) {
  .quote-editor-dialog .module-choice {
    flex-wrap: wrap;
  }
  .quote-editor-dialog .module-choice > span {
    flex-basis: calc(100% - 34px);
  }
  .quote-module-price {
    width: 100%;
    padding-left: 30px;
    text-align: left;
  }
  .quote-totals {
    padding: 12px;
  }
  .quote-totals .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
#editor > .actions > .cancel-button,
#editor > .actions > button[type='submit'] {
  width: 112px;
  height: 48px;
  min-height: 48px;
  padding: 12px 18px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 16px;
}
#editor > .actions > .cancel-button {
  background: #ede5fb;
  color: #5b21b6;
  border-color: #e0d2f5;
}
#editor > .actions > .cancel-button:hover {
  background: #e4d7f8;
  border-color: #d2bdf0;
}
