:root {
  --background: #f7f9fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: #f2f4f6;
  --text: #1c2233;
  --text-soft: #667085;
  --text-faint: #a2a8b8;
  --primary: #131b2e;
  --primary-strong: #0d1426;
  --accent: #a2c9f6;
  --accent-deep: #2f6faf;
  --line: rgba(118, 119, 125, 0.28);
  --line-strong: rgba(47, 111, 175, 0.7);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 1.25rem;
  --radius-soft: 1rem;
  --font-display: "Segoe UI Variable Display", "Manrope", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI Variable Text", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(162, 201, 246, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(19, 27, 46, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

.background-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.background-orb--left {
  left: -7rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(19, 27, 46, 0.18);
}

.background-orb--right {
  top: -5rem;
  right: -7rem;
  width: 19rem;
  height: 19rem;
  background: rgba(162, 201, 246, 0.34);
}

.login-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 1.75rem;
  width: min(100%, 27rem);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.brand-block {
  text-align: center;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #1c2539 0%, #10182d 100%);
  box-shadow: 0 12px 28px rgba(19, 27, 46, 0.16);
}

.brand-mark__icon {
  width: 1.9rem;
  height: 1.9rem;
}

.brand-mark__icon rect {
  fill: transparent;
}

.brand-mark__icon path {
  fill: var(--accent);
}

.brand-block h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand-block p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.login-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.login-card__accent {
  height: 0.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--primary));
}

.login-card__content {
  padding: 1.5rem 1.3rem 1.35rem;
}

.login-form {
  display: grid;
  gap: 1.35rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  color: rgba(69, 70, 77, 0.72);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field__control {
  position: relative;
  display: block;
}

.native-date-picker-proxy {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.native-date-picker-proxy--touch-target {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
}

.field__control input,
.field__control select,
.field__control textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 2rem 0.68rem 0;
  background: transparent;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field__control textarea {
  resize: vertical;
  line-height: 1.45;
}

.field__control input::placeholder,
.field__control textarea::placeholder {
  color: var(--text-faint);
}

.field__control input:focus,
.field__control select:focus,
.field__control textarea:focus {
  outline: none;
  border-bottom-color: var(--line-strong);
  box-shadow: inset 0 -1px 0 var(--line-strong);
}

.field__control svg {
  position: absolute;
  right: 0;
  bottom: 0.7rem;
  width: 1rem;
  height: 1rem;
  fill: #c0c5d2;
  transition: fill 160ms ease;
}

.field__control:focus-within svg {
  fill: var(--accent-deep);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: var(--text-soft);
  font-size: 0.88rem;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__track {
  position: relative;
  width: 2.45rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e4e7ec;
  transition: background-color 160ms ease;
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.16rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease;
}

.toggle input:checked + .toggle__track {
  background: rgba(47, 111, 175, 0.34);
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(1.08rem);
}

.toggle input:focus-visible + .toggle__track {
  outline: 2px solid rgba(47, 111, 175, 0.3);
  outline-offset: 2px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.005em;
  box-shadow: 0 14px 32px rgba(19, 27, 46, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(19, 27, 46, 0.2);
  filter: brightness(1.04);
}

.primary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
}

.primary-button:disabled:hover {
  transform: none;
  box-shadow: none;
  filter: grayscale(0.35);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:focus-visible {
  outline: 2px solid rgba(47, 111, 175, 0.4);
  outline-offset: 3px;
}

.primary-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.form-message {
  min-height: 1rem;
  margin: -0.35rem 0 0;
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.form-message[data-state="success"] {
  color: var(--accent-deep);
}

.form-message[data-state="loading"] {
  color: var(--text-soft);
}

.login-footer {
  text-align: center;
}

.login-footer__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.login-footer__dots span {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: rgba(47, 111, 175, 0.35);
}

.login-footer__version {
  margin: 0;
  color: rgba(102, 112, 133, 0.6);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.login-footer__copy {
  margin: 1rem 0 0;
  color: rgba(102, 112, 133, 0.42);
  font-size: 0.62rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}

.menu-shell {
  width: min(100%, 24rem);
  display: grid;
  gap: 1.6rem;
}

.menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.menu-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.menu-icon-button svg,
.menu-avatar svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.menu-topbar__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.menu-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #7becc1 0%, #79d9eb 100%);
  color: var(--primary);
}

.menu-heading {
  text-align: center;
  padding-top: 0.2rem;
}

.menu-heading__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.menu-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.menu-heading__subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.menu-card {
  padding: 0.65rem;
  border-radius: 1.9rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 72px rgba(19, 27, 46, 0.08);
}

.menu-list {
  display: grid;
  gap: 0.52rem;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1rem;
  border: 0;
  border-radius: 1.2rem;
  background: rgba(242, 244, 246, 0.92);
  color: var(--primary);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 160ms ease, background-color 160ms ease;
}

.menu-item:hover {
  transform: translateY(-1px);
  background: rgba(236, 238, 240, 0.96);
}

.menu-item__lead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.menu-item__icon {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.85rem;
  background: var(--primary);
  color: #ffffff;
  flex: 0 0 auto;
}

.menu-item__icon svg,
.menu-item__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.menu-item__text {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.menu-item__arrow {
  color: #7c8598;
}

.menu-list .menu-item {
  padding: 0.82rem 0.9rem;
}

.menu-list .menu-item__lead {
  gap: 0.75rem;
}

.menu-list .menu-item__icon {
  width: 2.45rem;
  height: 2.45rem;
}

.menu-list .menu-item__text {
  font-size: 0.98rem;
}

.menu-item--accent {
  background: linear-gradient(135deg, #a2c9f6 0%, #b8d8fb 100%);
  color: #062516;
}

.menu-item--accent:hover {
  background: linear-gradient(135deg, #8fbdf2 0%, #a2c9f6 100%);
}

.menu-item__icon--accent {
  background: rgba(6, 37, 22, 0.86);
  color: #a2c9f6;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: rgba(242, 244, 246, 0.96);
  color: var(--primary);
  font-weight: 500;
}

.secondary-button:disabled {
  opacity: 0.45;
}

.clients-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1rem 0.9rem 1.25rem;
}

.clients-shell {
  width: min(100%, 56rem);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding-top: 6.5rem;
}

.clients-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100vw, 56rem);
  transform: translateX(-50%);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0 0 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.clients-topbar__copy {
  min-width: 0;
}

.clients-topbar__copy--with-action {
  position: relative;
  width: 100%;
}

.clients-topbar__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 8rem;
}

.clients-topbar__menu {
  position: absolute;
  top: 50%;
  right: 0;
  flex: 0 0 auto;
  transform: translateY(-50%);
}

.clients-header__broker {
  margin: 0 0 0.4rem;
  color: rgba(102, 112, 133, 0.86);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clients-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.clients-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.clients-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 72px rgba(19, 27, 46, 0.08);
}

.clients-card--flat {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.clients-search {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 54px rgba(19, 27, 46, 0.07);
}

.clients-grid-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 54px rgba(19, 27, 46, 0.07);
}

.clients-grid-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.clients-grid-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.clients-grid-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.clients-grid-table {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.clients-grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  padding: 0.92rem 1rem;
}

.clients-grid-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clients-grid-row__content {
  display: grid;
  gap: 0.18rem;
}

.clients-grid-row__title {
  font-size: 0.94rem;
  font-weight: 600;
}

.clients-grid-row__subtitle {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.clients-grid-row--head {
  color: rgba(69, 70, 77, 0.84);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(236, 238, 240, 0.85);
}

.clients-grid-row--body {
  border: 0;
  border-top: 1px solid rgba(198, 198, 205, 0.24);
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.94rem;
  transition: background-color 160ms ease, transform 160ms ease;
}

.clients-grid-row--body:hover {
  background: rgba(162, 201, 246, 0.16);
}

.clients-grid-row--body.is-selected {
  background: rgba(162, 201, 246, 0.26);
}

.renewals-search {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.renewals-search__button {
  min-height: 2.8rem;
}

.renewals-search .form-message {
  grid-column: 1 / -1;
}

.plate-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.plate-search__button {
  min-height: 2.8rem;
}

.plate-search .form-message {
  grid-column: 1 / -1;
}

.insurers-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.insurers-search__button {
  min-height: 2.8rem;
}

.insurers-search .form-message {
  grid-column: 1 / -1;
}

.insurers-grid-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(8rem, 0.7fr);
}

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

.call-form__description,
.call-form__message,
.call-form__actions {
  grid-column: 1 / -1;
}

.call-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.renewals-grid-row {
  grid-template-columns: minmax(6.5rem, 3fr) minmax(0, 7fr);
}

.renewals-grid-row .renewals-grid-row__insurance {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.clients-grid-empty {
  padding: 1.2rem 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.clients-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.clients-pagination span {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

.clients-actions {
  display: grid;
  gap: 0.9rem;
}

.clients-actions__toggle {
  min-width: 8rem;
  justify-content: space-between;
}

.clients-actions__toggle--icon {
  min-width: 0;
  width: auto;
  height: 2.75rem;
  padding: 0 0.85rem 0 1rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-color: rgba(47, 111, 175, 0.28);
  background: var(--accent-deep);
  color: #ffffff;
}

.clients-actions__toggle--icon:hover {
  background: var(--accent-deep);
}

.clients-actions__toggle-text {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clients-actions__toggle svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transition: transform 160ms ease;
}

.clients-actions__toggle--icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.clients-actions__toggle.is-open svg {
  transform: rotate(180deg);
}

.clients-actions__panel {
  padding: 0.35rem;
  border-radius: 1.25rem;
  background: rgba(242, 244, 246, 0.66);
}

.clients-actions__panel--top {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(88vw, 21rem);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.clients-actions__label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  text-align: center;
}

.clients-actions__grid {
  display: grid;
  gap: 0.7rem;
}

.clients-action-button {
  text-align: left;
}

.clients-action-button.is-disabled,
.clients-action-button:disabled {
  opacity: 0.5;
}

.details-shell {
  width: min(100%, 62rem);
}

.details-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.details-stack {
  gap: 1rem;
}

.details-summary-card {
  gap: 1rem;
}

.details-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 1.2rem;
}

.details-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(198, 198, 205, 0.22);
}

.details-field__label {
  color: rgba(69, 70, 77, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details-field__value {
  min-height: 1.3rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.details-table {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.details-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1rem;
  align-items: start;
}

.details-table--single .details-table__row {
  grid-template-columns: minmax(0, 1fr);
}

.details-table--digital-files .details-table__row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.digital-files__file-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.digital-files__file-name {
  min-width: 0;
  flex: 1 1 auto;
}

.digital-files__copy-button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(118, 119, 125, 0.24);
  border-radius: 0.65rem;
  background: rgba(242, 244, 246, 0.9);
  color: var(--text-soft);
  flex: 0 0 auto;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.digital-files__copy-button:hover {
  background: rgba(162, 201, 246, 0.22);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.digital-files__copy-button:focus-visible {
  outline: 2px solid rgba(47, 111, 175, 0.35);
  outline-offset: 2px;
}

.digital-files__copy-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.details-table--open-commissions .details-table__row,
.details-table__row--open-commissions {
  grid-template-columns: minmax(0, 1.35fr) minmax(9rem, 0.65fr);
}

.details-table--open-commissions .details-table__row > span:nth-child(2),
.details-table__row--open-commissions > span:nth-child(2) {
  justify-self: end;
  text-align: right;
}

.details-table--grouped-production {
  background: transparent;
}

.details-table--grouped-production .details-table__row--head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
  padding: 0.95rem 0.95rem 0.85rem;
  border-radius: 1rem;
  background: rgba(236, 238, 240, 0.85);
  font-size: 0.66rem;
}

.details-table--grouped-production .details-table__row--head > span:first-child {
  display: none;
}

.details-table--grouped-production .details-table__row--head > span:nth-child(2),
.details-table--grouped-production .details-table__row--head > span:nth-child(3),
.details-table--grouped-production .details-table__row--head > span:nth-child(4) {
  display: block;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.details-table__row--grouped-production {
  display: block;
  padding: 0.95rem 0.95rem 1rem;
  border-top: 1px solid rgba(198, 198, 205, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.details-table__row--grouped-production + .details-table__row--grouped-production {
  margin-top: 0.75rem;
}

.details-table--grouped-production #production-grid-body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.details-table__row--total {
  background: rgba(162, 201, 246, 0.22);
  color: var(--primary);
  font-weight: 800;
}

.production-search {
  align-items: end;
}

.production-filter-group {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
}

.production-filter-group .field__label {
  margin: 0;
}

.production-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
  width: 100%;
  padding: 0.15rem 0;
}

.production-filter-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(69, 70, 77, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease;
}

.production-filter-option:hover {
  color: var(--text);
}

.production-filter-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.production-filter-option span {
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.production-filter-option::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
  border-radius: 50%;
  border: 2px solid rgba(92, 99, 112, 0.75);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.production-filter-option::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #1f78cf;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 150ms ease, transform 150ms ease;
}

.production-filter-option:has(input:checked) {
  color: var(--text);
}

.production-filter-option:has(input:checked)::before {
  border-color: #1f78cf;
}

.production-filter-option:has(input:checked)::after {
  opacity: 1;
  transform: scale(1);
}

.production-mobile-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
  width: 100%;
}

.production-mobile-values > span {
  min-width: 0;
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.production-description-cell {
  display: block;
  margin-bottom: 0.7rem;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.production-desktop-value {
  display: none;
}

.details-table--triple .details-table__row,
.details-table__row--triple {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
}

.details-table--triple .details-table__row--head,
.details-table__row--insurance.details-table__row--head {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr);
}

.details-table__row--insurance {
  grid-template-columns: minmax(0, 1fr);
}

.details-table__row--insurance > span:first-child {
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
}

.details-table__row--insurance > span:nth-child(2),
.details-table__row--insurance > span:nth-child(3) {
  display: inline-block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.details-table__row--insurance.details-table__row--body {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr);
}

.details-table__note--title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.details-table__note.details-table__note--subtitle {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.details-table--quad .details-table__row,
.details-table__row--quad {
  grid-template-columns: minmax(2ch, 4ch) minmax(10ch, 12ch) minmax(0, 0.9fr) minmax(0, 1.35fr);
}

.details-table--quad .details-table__row--head {
  grid-template-columns: minmax(3rem, 0.45fr) minmax(8.5rem, 1.25fr) minmax(7rem, 1fr);
}

.details-table--quad .details-table__row--installments,
.details-table__row--installments {
  grid-template-columns: minmax(3rem, 0.45fr) minmax(8.5rem, 1.25fr) minmax(7rem, 1fr);
}

.details-table--commissions .details-table__row,
.details-table__row--commissions {
  grid-template-columns: minmax(3.5rem, 0.5fr) minmax(7.5rem, 1fr) minmax(7rem, 1fr);
}

.details-table--claims {
  background: transparent;
}

.details-table--claims .details-table__row--head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
  padding: 0.95rem 0.95rem 0.85rem;
  border-radius: 1rem;
  background: rgba(236, 238, 240, 0.85);
}

.details-table--claims .details-table__row--head > span:first-child {
  display: none;
}

.details-table--claims .details-table__row--head > span:nth-child(2),
.details-table--claims .details-table__row--head > span:nth-child(3) {
  display: block;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.details-table__row--claims {
  display: block;
  padding: 0.95rem 0.95rem 1rem;
  border-top: 1px solid rgba(198, 198, 205, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.details-table__row--claims + .details-table__row--claims {
  margin-top: 0.75rem;
}

.details-table--claims #customer-claims-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.claims-item-cell {
  display: block;
  margin-bottom: 0.35rem;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.claims-status-line {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.claims-mobile-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
  width: 100%;
}

.claims-mobile-values > span {
  min-width: 0;
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.claims-desktop-value {
  display: none;
}

.details-table--claim-history .details-table__row,
.details-table__row--claim-history {
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1.65fr);
}

.details-table__row--commissions {
  box-shadow: none;
}

.details-table__group--installment {
  box-shadow: inset 0 -1px 0 rgba(128, 128, 128, 0.3);
}

.details-table__group--commission {
  box-shadow: inset 0 -1px 0 rgba(128, 128, 128, 0.3);
}

.details-table--quad-coverages .details-table__row,
.details-table__row--quad-coverages {
  grid-template-columns: minmax(0, 1fr);
}

.details-table--quad-coverages .details-table__row--coverages,
.details-table__row--coverages {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: start;
}

.details-table--quad-coverages .details-table__row--head {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
}

.details-table__row--coverages > span:nth-child(2),
.details-table--quad-coverages .details-table__row--head > span:nth-child(2) {
  white-space: nowrap;
  justify-self: start;
}

.details-table__group--coverage {
  box-shadow: inset 0 -1px 0 rgba(128, 128, 128, 0.3);
}

.details-table__row--notes {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0.45rem;
  padding-bottom: 0.95rem;
  border-top: 0;
  background: transparent;
}

.details-table__row--notes > span {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
}

.details-table__note {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.details-table__note strong {
  color: var(--text);
}

.details-table__row span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.details-table__row .details-table__cell--prewrap {
  white-space: pre-wrap;
}

.details-table__row--head {
  color: rgba(69, 70, 77, 0.84);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(236, 238, 240, 0.85);
}

.details-table__header--titlecase {
  text-transform: none;
}

.details-table--quad .details-table__row > span:nth-child(2),
.details-table__row--quad > span:nth-child(2) {
  white-space: nowrap;
}

.details-table__row--body {
  border-top: 1px solid rgba(198, 198, 205, 0.24);
  font-size: 0.94rem;
}

.details-table__row--selectable {
  border: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 -1px 0 rgba(128, 128, 128, 0.3);
  transition: background-color 160ms ease, transform 160ms ease;
}

.details-table__row--selectable:hover {
  background: rgba(162, 201, 246, 0.16);
}

.details-table__row--selectable.is-selected {
  background: rgba(162, 201, 246, 0.26);
}

.details-table__empty {
  padding: 1.2rem 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.details-notes {
  min-height: 4.5rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(198, 198, 205, 0.22);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.insurance-title-block {
  min-width: 0;
}

.insurance-title-block__subtitle {
  margin: 0.28rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

@media (min-width: 640px) {
  .login-layout {
    width: min(100%, 31rem);
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .brand-mark {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.15rem;
  }

  .login-card__content {
    padding: 1.85rem 1.65rem 1.55rem;
  }

  .menu-shell {
    width: min(100%, 25rem);
  }

  .clients-shell {
    width: min(100%, 34rem);
    padding-top: 6.5rem;
  }

  .details-shell {
    width: min(100%, 42rem);
  }

  .clients-card {
    padding: 1.2rem;
  }
}

@media (min-width: 920px) {
  .login-layout {
    width: min(100%, 64rem);
    grid-template-columns: minmax(19rem, 23rem);
    justify-content: center;
    gap: 1.8rem;
    padding-inline: clamp(2rem, 9vw, 5rem);
  }

  .brand-block {
    text-align: center;
    margin-top: 0.5rem;
  }

  .login-card {
    max-width: 23rem;
  }

  .login-footer {
    max-width: 23rem;
  }

  .menu-shell {
    width: min(100%, 26rem);
  }

  .clients-shell {
    width: min(100%, 60rem);
    padding-top: 6.5rem;
  }

  .details-shell {
    width: min(100%, 64rem);
  }

  .clients-search,
  .clients-grid-card {
    padding: 1.15rem;
  }
}

@media (max-width: 639px) {
  .clients-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .clients-topbar__title-row {
    align-items: center;
    padding-right: 7.25rem;
  }

  .clients-actions__toggle--icon {
    height: 2.5rem;
    padding: 0 0.75rem 0 0.85rem;
  }

  .clients-actions__toggle-text {
    font-size: 0.76rem;
  }

  .clients-actions__toggle--icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .clients-actions__panel--top {
    left: auto;
    right: 0;
    width: min(88vw, 21rem);
  }

  .clients-grid-header {
    align-items: start;
    flex-direction: column;
  }

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

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

  .renewals-search.production-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .renewals-search__button {
    grid-column: 1 / -1;
  }

  .production-filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.8rem;
  }

  .production-filter-option {
    min-height: 2.5rem;
    gap: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.15;
  }

  .details-table--grouped-production {
    background: transparent;
  }

  .details-table--grouped-production .details-table__row--head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem 0.85rem;
    padding: 0.95rem 0.95rem 0.85rem;
    border-radius: 1rem;
    background: rgba(236, 238, 240, 0.85);
    font-size: 0.66rem;
  }

  .details-table--grouped-production .details-table__row--head > span:first-child {
    display: none;
  }

  .details-table--grouped-production .details-table__row--head > span:nth-child(2),
  .details-table--grouped-production .details-table__row--head > span:nth-child(3),
  .details-table--grouped-production .details-table__row--head > span:nth-child(4) {
    display: block;
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .details-table__row--grouped-production {
    display: block;
    padding: 0.95rem 0.95rem 1rem;
    border-top: 1px solid rgba(198, 198, 205, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  }

  .details-table__row--grouped-production + .details-table__row--grouped-production {
    margin-top: 0.75rem;
  }

  .details-table--grouped-production #production-grid-body {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .details-table--claims {
    background: transparent;
  }

  .details-table--claims .details-table__row--head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.85rem;
    padding: 0.95rem 0.95rem 0.85rem;
    border-radius: 1rem;
    background: rgba(236, 238, 240, 0.85);
  }

  .details-table--claims .details-table__row--head > span:first-child {
    display: none;
  }

  .details-table--claims .details-table__row--head > span:nth-child(2),
  .details-table--claims .details-table__row--head > span:nth-child(3) {
    display: block;
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .details-table__row--claims {
    display: block;
    padding: 0.95rem 0.95rem 1rem;
    border-top: 1px solid rgba(198, 198, 205, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  }

  .details-table__row--claims + .details-table__row--claims {
    margin-top: 0.75rem;
  }

  .details-table--claims #customer-claims-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .production-description-cell {
    display: block;
    margin-bottom: 0.7rem;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .production-mobile-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem 0.85rem;
    width: 100%;
  }

  .production-mobile-values > span {
    min-width: 0;
    width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .production-desktop-value {
    display: none;
  }

  .claims-item-cell {
    display: block;
    margin-bottom: 0.35rem;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .claims-status-line {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .claims-mobile-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.85rem;
    width: 100%;
  }

  .claims-mobile-values > span {
    min-width: 0;
    width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .claims-desktop-value {
    display: none;
  }

  .details-table__row--grouped-production.details-table__row--total {
    background: rgba(162, 201, 246, 0.22);
  }

  .details-table__row--grouped-production.details-table__row--total > span:first-child {
    color: var(--primary);
  }

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

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

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

  .clients-pagination {
    flex-wrap: wrap;
  }
}
