/* Barlas Dijital e-posta paneli. Load after dataTables.dataTables.min.css. */

:root {
  --navy: #071c39;
  --night: #12306e;
  --blue: #415bf7;
  --link: #2b4cc7;
  --ice: #b1c5ff;
  --canvas: #f4f6fc;
  --card: #ffffff;
  --muted: #52607a;
  --hairline: #e4e9f4;
  --hairline-strong: #ccd5e8;
  --row-hover: #f6f8fe;
  --row-open: #eef2ff;
  --ok-ink: #146c43;
  --ok-bg: #e3f4ea;
  --bad-ink: #b42318;
  --bad-bg: #fdecea;
  --wait-ink: #8a5a00;
  --wait-bg: #fff3d6;

  --r-card: 16px;
  --r-control: 10px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(7, 28, 57, 0.05), 0 18px 44px -20px rgba(7, 28, 57, 0.3);
  --focus-ring: 0 0 0 3px rgba(65, 91, 247, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --band-gradient: radial-gradient(900px 380px at 88% -30%, rgba(65, 91, 247, 0.55), transparent 65%),
    linear-gradient(118deg, var(--navy) 0%, #0a2450 52%, var(--night) 100%);

  /* Motion tokens (transitions.dev scale). */
  --duration-stagger: 40ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-slow: 400ms;
  --duration-draw: 900ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-linear: linear;
  --distance-base: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--navy);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Blue is 2.4:1 on the band; white keeps the focus ring visible there. */
.band :focus-visible {
  outline-color: #fff;
}

.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;
}

/* Header band */

.band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--band-gradient);
  padding-bottom: 76px;
}

.band__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.brand__logo {
  display: block;
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__link {
  padding: 8px 12px;
  border-radius: var(--r-control);
  color: var(--ice);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.nav__user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  color: var(--ice);
  font-size: 14px;
}

.nav__user form {
  margin: 0;
}

.btn-ghost-light {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(177, 197, 255, 0.35);
  border-radius: var(--r-control);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(177, 197, 255, 0.6);
}

.band__head {
  padding: 26px 0 22px;
}

.band__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.band__lede {
  max-width: 60ch;
  margin: 8px 0 0;
  color: var(--ice);
}

/* The delivery route: the panel's one decorative element. */

.route {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route__mask {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route-draw var(--duration-draw) var(--ease-smooth-out) 100ms forwards;
}

.route__path {
  fill: none;
  stroke: var(--ice);
  stroke-opacity: 0.5;
  stroke-width: 1.6;
  stroke-dasharray: 1.5 7;
  stroke-linecap: round;
}

.route__stop {
  fill: var(--ice);
  fill-opacity: 0.75;
  opacity: 0;
  animation: fade-in var(--duration-slow) var(--ease-in-out) forwards;
}

.route__stop--1 {
  animation-delay: 150ms;
}

.route__stop--2 {
  animation-delay: 550ms;
}

.route__stop--3 {
  animation-delay: 900ms;
}

/* Filters on the band */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search {
  position: relative;
  flex: 1 1 300px;
  max-width: 440px;
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--ice);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-glass,
.select-glass {
  height: 42px;
  border: 1px solid rgba(177, 197, 255, 0.55); /* >= 3:1 against the band */
  border-radius: var(--r-control);
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    background-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}

.input-glass {
  width: 100%;
  padding: 0 14px 0 40px;
}

.input-glass::placeholder {
  color: rgba(177, 197, 255, 0.9);
}

.input-glass::-webkit-search-cancel-button {
  filter: invert(1);
}

.select-glass {
  appearance: none;
  padding: 0 38px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B1C5FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.select-glass option {
  color: var(--navy);
}

.input-glass:hover,
.select-glass:hover {
  border-color: rgba(177, 197, 255, 0.8);
}

.input-glass:focus-visible,
.select-glass:focus-visible {
  outline: none;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--focus-ring);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(177, 197, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.seg__btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ice);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-smooth-out),
    color var(--duration-fast) var(--ease-smooth-out);
}

.seg__btn:hover {
  color: #fff;
}

.seg__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
}

/* Page body */

.page {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: -52px auto 72px;
  padding: 0 24px;
}

.card {
  border: 1px solid rgba(7, 28, 57, 0.05);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.page > .card,
.page > .split {
  animation: rise var(--duration-slow) var(--ease-smooth-out) 120ms both;
}

.card--table {
  overflow: hidden;
}

.notice {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  color: var(--bad-ink);
  background: var(--bad-bg);
  font-size: 14px;
}

.notice[hidden] {
  display: none;
}

/* Table (DataTables) */

div.dt-container {
  position: relative;
}

div.dt-container .dt-layout-row {
  margin: 0;
}

div.dt-container .dt-layout-table {
  margin: 0;
}

div.dt-container .dt-layout-table > .dt-layout-cell {
  overflow-x: auto;
}

table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

table.dataTable > thead > tr > th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  background: #fbfcff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

table.dataTable > thead > tr > th.dt-orderable-asc:hover,
table.dataTable > thead > tr > th.dt-orderable-desc:hover {
  outline: none;
  color: var(--navy);
}

table.dataTable > tbody > tr {
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
}

table.dataTable > tbody > tr > * {
  box-shadow: none !important;
}

table.dataTable > tbody > tr > td {
  padding: 13px 16px;
  border-top: 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

table.dataTable > tbody > tr:hover > td {
  background: var(--row-hover);
}

table.dataTable > tbody > tr:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

table.dataTable > tbody > tr:focus-visible > td {
  background: var(--row-hover);
}

table.dataTable > tbody > tr.is-open > td {
  background: var(--row-open);
  border-bottom-color: transparent;
}

table.dataTable > tbody > tr > td.dt-empty {
  padding: 56px 16px;
  color: var(--muted);
  text-align: center;
  cursor: default;
}

table.dataTable > tbody > tr:has(> td.dt-empty) {
  cursor: default;
}

table.dataTable > tbody > tr:has(> td.dt-empty):hover > td {
  background: transparent;
}

.cell-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cell-time__date {
  font-weight: 600;
}

.cell-time__clock {
  margin-left: 6px;
  color: var(--muted);
}

.cell-rcpt {
  font-weight: 560;
  white-space: nowrap;
}

/* The subject column takes the space left over and truncates. */
table.dataTable > thead > tr > th.col-subject,
table.dataTable > tbody > tr > td.col-subject {
  width: 100%;
  max-width: 0;
}

.cell-subject {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-empty {
  color: var(--muted);
}

.cell-customer {
  color: var(--muted);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.pill::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill--ok {
  color: var(--ok-ink);
  background: var(--ok-bg);
}

.pill--bad {
  color: var(--bad-ink);
  background: var(--bad-bg);
}

.pill--bad::before {
  border-radius: 1px;
  transform: rotate(45deg) scale(0.9);
}

.pill--wait {
  color: var(--wait-ink);
  background: var(--wait-bg);
}

.pill--wait::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.6px currentColor;
}

.flag {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #c3ccde;
}

.flag svg {
  width: 16px;
  height: 16px;
}

.flag--on {
  color: var(--blue);
  background: #eef1ff;
}

/* Paging, info, page length */

div.dt-container .dt-layout-row:last-child {
  padding: 12px 16px;
}

div.dt-container .dt-info {
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

div.dt-container .dt-paging .dt-paging-button {
  min-width: 34px;
  height: 34px;
  margin: 0 1px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--navy) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
}

div.dt-container .dt-paging .dt-paging-button:hover {
  border-color: var(--hairline);
  background: var(--row-hover);
  color: var(--navy) !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  border-color: transparent;
  background: transparent;
  color: #a9b4ca !important;
}

div.dt-container .dt-length {
  color: var(--muted);
  font-size: 13px;
}

div.dt-container .dt-length select {
  height: 34px;
  margin-right: 6px;
  padding: 0 8px;
  border: 1px solid #8592ab;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

/* Thin progress line while the server answers; replaces the default box. */
div.dt-container div.dt-processing {
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: progress 1.1s var(--ease-linear) infinite;
}

div.dt-container div.dt-processing > div {
  display: none;
}

/* Row detail: the delivery route as a timeline */

table.dataTable > tbody > tr > td.detail-cell {
  padding: 0;
  background: var(--row-open);
  cursor: default;
}

table.dataTable > tbody > tr:hover > td.detail-cell {
  background: var(--row-open);
}

.detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-fast) var(--ease-smooth-out);
}

.detail.is-open {
  grid-template-rows: 1fr;
}

.detail__inner {
  overflow: hidden;
  min-height: 0;
}

.detail__body {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 32px;
  padding: 18px 24px 24px;
}

.detail__meta {
  margin: 0;
  font-size: 14px;
}

.detail__meta dt {
  color: var(--muted);
  font-size: 12.5px;
}

.detail__meta dd {
  margin: 2px 0 12px;
  overflow-wrap: anywhere;
}

.timeline {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 24px 18px 0 0;
}

.timeline__step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  right: 2px;
  border-top: 2px dotted var(--hairline-strong);
}

.timeline__step:last-child::before {
  display: none;
}

.timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.timeline__step--ok .timeline__dot {
  border-color: var(--ok-ink);
  background: var(--ok-ink);
}

.timeline__step--bad .timeline__dot {
  border-color: var(--bad-ink);
  background: var(--bad-ink);
  border-radius: 3px;
  transform: rotate(45deg) scale(0.85);
}

.timeline__label {
  display: block;
  font-weight: 650;
}

.timeline__time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.timeline__detail {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.timeline__step--bad .timeline__detail {
  color: var(--bad-ink);
}

.detail.is-open .timeline__step {
  animation: rise var(--duration-slow) var(--ease-smooth-out) both;
}

.detail.is-open .timeline__step:nth-child(2) {
  animation-delay: calc(1 * var(--duration-stagger));
}

.detail.is-open .timeline__step:nth-child(3) {
  animation-delay: calc(2 * var(--duration-stagger));
}

.detail.is-open .timeline__step:nth-child(4) {
  animation-delay: calc(3 * var(--duration-stagger));
}

.detail.is-open .timeline__step:nth-child(n + 5) {
  animation-delay: calc(4 * var(--duration-stagger));
}

/* Loading skeleton (shown until the first table draw) */

.skeleton {
  padding: 8px 16px 16px;
}

.card--table.is-loading div.dt-container {
  display: none;
}

.card--table:not(.is-loading) .skeleton {
  display: none;
}

.skeleton__row {
  display: grid;
  grid-template-columns: 120px 1.2fr 1.6fr 110px 28px 28px;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.skeleton__bar {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #edf1f9 0%, #e1e7f3 50%, #edf1f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s var(--ease-linear) infinite;
}

.skeleton__bar--pill {
  height: 22px;
  border-radius: var(--r-pill);
}

/* Forms and buttons */

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #8592ab; /* 3.1:1 on white (WCAG 1.4.11) */
  border-radius: var(--r-control);
  background: #fff;
  color: var(--navy);
  font: inherit;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}

.input::placeholder {
  color: #8692a8;
}

.input:hover {
  border-color: #66748f;
}

.input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}

.input--code {
  height: 58px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0.4em;
  text-align: center;
  text-indent: 0.4em;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out),
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #4a63f9 0%, var(--blue) 45%, var(--link) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px -12px rgba(65, 91, 247, 0.85);
}

.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 28px -12px rgba(65, 91, 247, 0.95);
}

.btn--block {
  width: 100%;
}

.btn--secondary {
  border-color: var(--hairline-strong);
  background: #fff;
  color: var(--navy);
}

.btn--secondary:hover {
  border-color: #b5c1da;
  background: var(--row-hover);
}

.btn--danger {
  border-color: #f1c2bc;
  background: #fff;
  color: var(--bad-ink);
}

.btn--danger:hover {
  border-color: var(--bad-ink);
  background: var(--bad-bg);
}

.btn--sm {
  height: 36px;
  padding: 0 13px;
  font-size: 13.5px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--r-control);
  background: var(--bad-bg);
  color: var(--bad-ink);
  font-size: 14px;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Login */

.auth {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 16px;
  overflow: hidden;
  color: #fff;
  background: var(--band-gradient);
}

.auth__wrap {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}

.auth__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth__card {
  padding: 32px 32px 28px;
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.55);
  animation: rise var(--duration-slow) var(--ease-smooth-out) 120ms both;
}

.auth__title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.auth__text {
  margin: 0 0 22px;
  color: var(--muted);
}

.auth__field {
  margin-bottom: 16px;
}

.auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.auth__actions form {
  margin: 0;
}

/* Customers */

.split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
}

.card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.list {
  margin: 0;
  padding: 6px;
  list-style: none;
}

.list__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-control);
  color: var(--navy);
  text-decoration: none;
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
}

.list__link:hover {
  background: var(--row-hover);
}

.list__link[aria-current="page"] {
  background: var(--row-open);
}

.list__name {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.list__meta {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

.list-add {
  display: flex;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--hairline);
}

.section {
  padding: 20px;
  border-bottom: 1px solid var(--hairline);
}

.section:last-child {
  border-bottom: 0;
}

.section__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.section__text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.rows {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.rows__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}

.rows__item:last-child {
  border-bottom: 0;
}

.rows__main {
  flex: 1 1 220px;
  min-width: 0;
}

.rows__primary {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.rows__secondary {
  color: var(--muted);
  font-size: 13px;
}

.rows__item form {
  margin: 0;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin: 0;
}

.inline-form .input {
  height: 40px;
}

.inline-form .btn {
  height: 40px;
}

.label-form .input {
  width: 160px;
  height: 36px;
  font-size: 14px;
}

.danger-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.danger-zone .section__text {
  margin: 0 0 10px;
}

.confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.confirm input {
  width: 16px;
  height: 16px;
  accent-color: var(--bad-ink);
}

/* Error page */

.error-card {
  max-width: 520px;
  padding: 28px;
}

.error-card .card__title {
  margin-bottom: 8px;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--distance-base));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@keyframes progress {
  from {
    background-position: -50% 0;
  }

  to {
    background-position: 150% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .route__mask {
    stroke-dashoffset: 0;
  }

  .route__stop {
    opacity: 1;
  }
}

/* Small screens */

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .band__inner,
  .page {
    padding: 0 16px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 0 6px;
  }

  .nav__links {
    order: 3;
    width: 100%;
  }

  .nav__email {
    display: none;
  }

  .band__title {
    font-size: 28px;
  }

  .search {
    flex-basis: 100%;
    max-width: none;
  }

  .select-glass {
    flex: 1 1 140px;
  }

  .seg {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .page {
    margin-top: -44px;
  }

  table.dataTable {
    min-width: 760px;
  }

  div.dt-container .dt-layout-row:last-child {
    flex-wrap: wrap;
    gap: 10px;
  }

  .detail__body {
    position: sticky;
    left: 0;
    width: min(100%, calc(100vw - 34px));
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .timeline {
    flex-direction: column;
    gap: 16px;
  }

  .timeline__step {
    padding: 0 0 0 26px;
  }

  .timeline__step::before {
    top: 16px;
    bottom: -18px;
    left: 6px;
    right: auto;
    border-top: 0;
    border-left: 2px dotted var(--hairline-strong);
  }

  .auth__card {
    padding: 26px 22px 22px;
  }

  .label-form .input {
    width: 100%;
  }
}
