/* src/styles.css */
:root {
  --color-navy: #152A50;
  --color-navy-dark: #0E1E3A;
  --color-navy-text: #152A50;
  --color-navy-soft: #E7ECF4;
  --color-sky: #8DD8F8;
  --color-sky-dark: #3AA9D9;
  --color-sky-soft: #EAF8FE;
  --color-text: #2B2B2B;
  --color-text-muted: #6B7686;
  --color-border: #E1E8ED;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F2F5F7;
  --color-bg: #FAFBFC;
  --color-danger: #C0392B;
  --color-danger-soft: #FBEAE8;
  --color-success: #1E8E5A;
  --color-success-soft: #E6F6EE;
  --color-amber: #C97A16;
  --color-amber-soft: #FBEEDD;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(21, 42, 80, .06), 0 8px 24px rgba(21, 42, 80, .07);
  --shadow-bar: 0 1px 0 rgba(21, 42, 80, .07), 0 6px 16px rgba(21, 42, 80, .04);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --app-topnav-height: 60px;
  --app-bottomnav-height: 62px;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --color-navy-text: #86B6EE;
    --color-navy-soft: #1C283C;
    --color-sky-dark: #55C2EF;
    --color-sky-soft: #17303D;
    --color-text: #E7ECF3;
    --color-text-muted: #93A1B7;
    --color-border: #2A374B;
    --color-surface: #16202F;
    --color-surface-alt: #202C40;
    --color-bg: #0C121C;
    --color-danger: #E4584A;
    --color-danger-soft: #3A1E1D;
    --color-success: #35CB85;
    --color-success-soft: #16302A;
    --color-amber: #E8A33D;
    --color-amber-soft: #3A2C14;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-bar: 0 1px 0 rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --color-navy-text: #86B6EE;
  --color-navy-soft: #1C283C;
  --color-sky-dark: #55C2EF;
  --color-sky-soft: #17303D;
  --color-text: #E7ECF3;
  --color-text-muted: #93A1B7;
  --color-border: #2A374B;
  --color-surface: #16202F;
  --color-surface-alt: #202C40;
  --color-bg: #0C121C;
  --color-danger: #E4584A;
  --color-danger-soft: #3A1E1D;
  --color-success: #35CB85;
  --color-success-soft: #16302A;
  --color-amber: #E8A33D;
  --color-amber-soft: #3A2C14;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-bar: 0 1px 0 rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overscroll-behavior-y: none;
  line-height: 1.45;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background-color .15s, color .15s;
}
a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
.list-row:not(.static),
.module-card {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-user-select: auto;
  user-select: auto;
  font-size: max(1rem, 16px);
}
h1,
h2,
h3 {
  font-family: inherit;
  letter-spacing: -.01em;
}
:focus-visible {
  outline: 2px solid var(--color-sky-dark);
  outline-offset: 2px;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .18s;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .001s;
  }
  html {
    scroll-behavior: auto;
  }
}
.auth-shell {
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  padding: max(24px, var(--safe-top)) max(20px, var(--safe-right)) max(24px, var(--safe-bottom)) max(20px, var(--safe-left));
  background:
    radial-gradient(
      120% 100% at 50% 0%,
      #1D3A6B 0%,
      var(--color-navy) 45%,
      var(--color-navy-dark) 100%);
}
.auth-card {
  width: min(400px, 100%);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: 0 24px 60px rgba(6, 14, 32, .35);
}
.brand {
  display: block;
  max-width: 200px;
  max-height: 76px;
  object-fit: contain;
  margin: 0 auto 26px;
}
.auth-card h1 {
  text-align: center;
  margin: 0 0 26px;
  font-size: 1.4rem;
  color: var(--color-navy-text);
}
.auth-card form {
  display: grid;
  gap: 16px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--color-text-muted);
}
.auth-card input {
  padding: 13px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--color-surface-alt);
  transition: border-color .15s, background .15s;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--color-navy-text);
  background: var(--color-surface);
}
.auth-card button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 4px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  min-height: 50px;
  transition: background .15s, transform .1s;
}
.auth-card button:active {
  transform: scale(.98);
}
.auth-card button:disabled {
  opacity: .55;
}
.auth-eu-banner {
  width: min(400px, 100%);
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(6, 14, 32, .25);
}
.auth-eu-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.auth-toolbar {
  position: absolute;
  top: max(20px, var(--safe-top));
  right: max(20px, var(--safe-right));
  display: flex;
  gap: 10px;
}
.auth-toolbar .lang-switch,
.auth-toolbar .theme-switch {
  border-color: rgba(255, 255, 255, .3);
}
.auth-toolbar button {
  color: rgba(255, 255, 255, .75);
}
.auth-toolbar button.active {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.error {
  color: var(--color-danger);
}
.success {
  color: var(--color-success);
}
.notice {
  padding: 20px;
  color: var(--color-text-muted);
  text-align: center;
}
.notice.error,
p.error.notice {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  padding: 14px 16px;
  text-align: left;
}
.validation-errors strong {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.validation-errors ul {
  margin: 0;
  padding-left: 1.1em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.validation-errors li {
  line-height: 1.4;
}
.notice.success,
p.success.notice {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  padding: 14px 16px;
  text-align: left;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--color-text-muted);
  text-align: center;
}
.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--color-border);
}
.empty-state span {
  font-size: .9rem;
  font-weight: 600;
}
.skeleton-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.skeleton-row {
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.skeleton-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(21, 42, 80, .055),
      transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-row::after {
    animation: none;
  }
}
.skeleton-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-top: 12px;
}
.skeleton-detail .skeleton-heading {
  height: 22px;
  width: 55%;
  border-radius: 6px;
  background: var(--color-surface-alt);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: var(--color-surface-alt);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.skeleton-line:last-child {
  margin-bottom: 0;
}
.skeleton-line.w-70 {
  width: 70%;
}
.skeleton-line.w-55 {
  width: 55%;
}
.skeleton-line.w-40 {
  width: 40%;
}
.skeleton-line.w-85 {
  width: 85%;
}
.skeleton-detail .skeleton-heading::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(21, 42, 80, .055),
      transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-detail .skeleton-heading::after,
  .skeleton-line::after {
    animation: none;
  }
}
.page-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 max(16px, var(--safe-right)) calc(28px + var(--app-bottomnav-height) + var(--safe-bottom)) max(16px, var(--safe-left));
  min-height: 100dvh;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: max(10px, var(--safe-top)) 0 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-navy);
  margin: 0 -16px 10px;
  padding-left: max(16px, var(--safe-right));
  padding-right: max(16px, var(--safe-right));
  box-shadow: var(--shadow-bar);
}
.topbar img {
  width: 96px;
  max-height: 42px;
  object-fit: contain;
}
.topbar h1 {
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}
.topbar > a:not(.icon-action),
.topbar > button:not(.icon-action) {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}
.topbar > a:not(.icon-action):active,
.topbar > button:not(.icon-action):active {
  background: rgba(255, 255, 255, .14);
}
.topbar > a:first-child,
.topbar > button:first-child {
  margin-left: -6px;
}
.topbar svg {
  width: 22px;
  height: 22px;
}
.back-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -6px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}
.back-btn:active {
  background: rgba(255, 255, 255, .14);
}
.back-btn svg {
  width: 22px;
  height: 22px;
}
.icon-action {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  transition: background .15s;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-action:active {
  background: rgba(255, 255, 255, .14);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy);
  margin: -10px -16px 10px;
  padding: 0 max(16px, var(--safe-right)) 12px;
}
.search-bar input {
  flex: 1;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .68rem .85rem;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.search-bar input::placeholder {
  color: rgba(255, 255, 255, .65);
}
.search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, .22);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.module-card {
  min-height: 128px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform .12s, box-shadow .12s;
}
.module-card:active {
  transform: scale(.97);
}
.module-icon {
  width: 20px;
  height: 20px;
  padding: 9px;
  box-sizing: content-box;
  color: var(--color-navy-text);
  background: var(--color-navy-soft);
  border-radius: 11px;
}
.module-card strong {
  font-size: .98rem;
  color: var(--color-navy-text);
  line-height: 1.25;
}
.module-card span {
  margin-top: auto;
  color: var(--color-sky-dark);
  font-size: .82rem;
  font-weight: 700;
}
.module-card.disabled {
  opacity: .5;
}
@media (min-width: 460px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: .7rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-navy-text);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background .12s;
}
.view-toggle:active {
  background: var(--color-surface-alt);
}
.view-toggle svg {
  width: 17px;
  height: 17px;
}
.time-card {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-border);
  transition: transform .1s, background .12s;
}
.time-card:active {
  transform: scale(.99);
  background: var(--color-surface-alt);
}
.time-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.time-card-top .row-id {
  color: var(--color-navy-text);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.time-card-top .status-pill {
  flex-shrink: 0;
}
.time-card-top .row-edit {
  margin-left: auto;
  flex-shrink: 0;
}
.time-card-ref {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--color-text);
  overflow-wrap: break-word;
}
.time-card-cargo {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}
.time-card-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.time-card-times .time-block {
  min-width: 0;
  overflow: hidden;
}
.time-card-times .time-block:last-child {
  text-align: right;
}
.time-card-times .time-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  overflow-wrap: break-word;
}
.time-card-times .time-date {
  display: block;
  font-size: .74rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.time-card-sep {
  display: grid;
  place-items: center;
  color: var(--color-border);
  flex-shrink: 0;
}
.time-card-sep svg {
  width: 18px;
  height: 18px;
}
.time-card-more {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-surface-alt);
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--color-sky-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 60px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform .1s, background .12s;
}
.list-row:not(.static):active {
  transform: scale(.99);
  background: var(--color-surface-alt);
}
.list-row > div:first-child,
.list-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.row-edit {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--color-surface-alt);
  color: var(--color-navy-text);
  flex-shrink: 0;
  font-size: .95rem;
}
.row-edit:active {
  background: var(--color-navy-soft);
}
.list-row strong {
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-row span {
  font-size: .82rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-dates {
  font-size: .76rem;
  color: var(--color-sky-dark);
  font-weight: 600;
}
.row-dates-loading {
  height: 11px;
  width: 44%;
  border-radius: 4px;
  background: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
  display: block;
}
.row-dates-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(21, 42, 80, .06),
      transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .row-dates-loading::after {
    animation: none;
  }
}
.row-meta {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.row-meta b {
  color: var(--color-border);
  font-weight: 400;
  font-size: 1.2rem;
}
.list-row .row-id {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-navy-text);
  letter-spacing: .02em;
}
.list-row.tone-success {
  border-left-color: var(--color-success);
}
.list-row.tone-info {
  border-left-color: var(--color-sky-dark);
}
.list-row.tone-danger {
  border-left-color: var(--color-danger);
}
.list-row.tone-neutral {
  border-left-color: var(--color-text-muted);
}
.list-row.tone-amber {
  border-left-color: var(--color-amber);
}
.id-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--color-amber-soft);
  color: var(--color-amber);
  border-radius: 6px;
  padding: .2rem .55rem;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.id-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.list-row.card-style {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.card-style-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-style-header strong {
  font-size: 1rem;
}
.card-fields.card-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}
.card-fields.card-fields .field-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
}
.card-fields.card-fields dt {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  color: var(--color-text-muted);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
}
.card-fields.card-fields dd {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: .88rem;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  margin-top: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.data-table th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr {
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s;
}
.data-table tbody tr:active {
  background: var(--color-surface-alt);
}
.data-table tbody tr.tone-success {
  border-left-color: var(--color-success);
}
.data-table tbody tr.tone-info {
  border-left-color: var(--color-sky-dark);
}
.data-table tbody tr.tone-danger {
  border-left-color: var(--color-danger);
}
.data-table tbody tr.tone-neutral {
  border-left-color: var(--color-text-muted);
}
.data-table tbody tr.tone-amber {
  border-left-color: var(--color-amber);
}
.data-table .cell-id {
  font-weight: 700;
  color: var(--color-navy-text);
  white-space: nowrap;
}
.data-table .cell-muted {
  color: var(--color-text-muted);
}
.data-table .cell-actions {
  text-align: right;
  white-space: nowrap;
}
.data-table .row-edit {
  display: inline-grid;
  width: 30px;
  height: 30px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: .3rem .6rem .3rem .5rem;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.list-row .status-pill {
  color: var(--color-text-muted);
}
.status-pill.success,
.list-row .status-pill.success {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.status-pill.info,
.list-row .status-pill.info {
  background: var(--color-sky-soft);
  color: var(--color-sky-dark);
}
.status-pill.danger,
.list-row .status-pill.danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}
.detail-card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-navy-text);
}
.detail-card dl {
  display: grid;
  grid-template-columns: minmax(110px, 45%) 1fr;
  gap: 0;
  margin: 0;
}
.detail-card dt,
.detail-card dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-surface-alt);
}
.detail-card dt {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: .86rem;
}
.detail-card dd {
  font-size: .92rem;
  text-align: right;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.eyebrow {
  margin: 0 0 3px;
  color: var(--color-sky-dark);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.section-title {
  margin: 1.5rem 0 0;
  font-size: .95rem;
  color: var(--color-navy-text);
  font-weight: 700;
}
.detail-actions {
  border-top: 1px solid var(--color-surface-alt);
  padding-top: 1rem;
}
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .78rem .85rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s, background .15s;
  min-height: 46px;
}
.form-card input[type=date],
.form-card input[type=datetime-local],
.form-card input[type=time] {
  color-scheme: light;
}
.form-card input[type=date]::-webkit-calendar-picker-indicator,
.form-card input[type=datetime-local]::-webkit-calendar-picker-indicator,
.form-card input[type=time]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .65;
}
:root[data-theme=dark] .form-card input[type=date],
:root[data-theme=dark] .form-card input[type=datetime-local],
:root[data-theme=dark] .form-card input[type=time] {
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .form-card input[type=date],
  :root:not([data-theme=light]) .form-card input[type=datetime-local],
  :root:not([data-theme=light]) .form-card input[type=time] {
    color-scheme: dark;
  }
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--color-navy-text);
  background: var(--color-surface);
}
.wide-label {
  margin-top: .25rem;
}
.required,
.field-error {
  color: var(--color-danger);
}
.field-error {
  font-size: .85rem;
  margin: .6rem 0 0;
}
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: .6rem !important;
}
.checkbox-label input {
  width: auto;
  accent-color: var(--color-navy-text);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .7rem;
  margin-top: 1.3rem;
}
.button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: .78rem 1.1rem;
  min-height: 46px;
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s, opacity .15s;
}
.button:active {
  transform: scale(.97);
}
.button:disabled {
  opacity: .5;
  cursor: default;
}
.button.secondary {
  background: var(--color-surface-alt);
  color: var(--color-navy-text);
}
.fab {
  position: fixed;
  right: max(1.1rem, var(--safe-right));
  bottom: calc(var(--app-bottomnav-height) + .7rem + var(--safe-bottom));
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-navy);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px 28px rgba(21, 42, 80, .4);
  transition: transform .12s, bottom .2s;
  z-index: 15;
}
.fab:active {
  transform: scale(.94);
}
.lang-switch,
.theme-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}
.lang-switch button,
.theme-switch button {
  border: 0;
  background: transparent;
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: inherit;
}
.theme-switch button {
  display: grid;
  place-items: center;
  padding: .32rem;
}
.theme-switch svg {
  width: 15px;
  height: 15px;
}
.lang-switch button.active,
.theme-switch button.active {
  background: var(--color-navy);
  color: #fff;
}
.app-topnav {
  display: none;
}
.app-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: stretch;
  height: calc(var(--app-bottomnav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(21, 42, 80, .08);
}
.app-bottomnav a,
.app-bottomnav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: inherit;
  padding: 6px 2px 0;
}
.app-bottomnav svg {
  width: 21px;
  height: 21px;
}
.app-bottomnav span {
  font-size: .64rem;
  font-weight: 600;
  line-height: 1.1;
}
.app-bottomnav a.active,
.app-bottomnav button.active {
  color: var(--color-navy-text);
}
.app-bottomnav a.active svg,
.app-bottomnav button.active svg {
  transform: translateY(-1px);
}
.more-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 30, 58, .45);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.more-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  background: var(--color-surface);
  border-radius: 18px 18px 0 0;
  padding: 6px 8px calc(14px + var(--safe-bottom));
  max-height: 75dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.32, .72, 0, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
.more-sheet.open {
  transform: translateY(0);
}
.more-sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  margin: 6px auto 10px;
}
.more-sheet a,
.more-sheet button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: .95rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.more-sheet a:active,
.more-sheet button:active {
  background: var(--color-surface-alt);
}
.more-sheet .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-navy-text);
}
.more-sheet-toggles {
  display: flex;
  gap: 10px;
  padding: 6px 12px 4px;
}
.drawer-section-label {
  padding: 14px 12px 4px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.drawer-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 4px;
}
@media (min-width: 600px) {
  .page-shell {
    padding-left: max(28px, var(--safe-left));
    padding-right: max(28px, var(--safe-right));
  }
  .topbar {
    padding-left: max(28px, var(--safe-left));
    padding-right: max(28px, var(--safe-right));
    margin-left: -28px;
    margin-right: -28px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 320px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 960px) {
  .app-bottomnav {
    display: none;
  }
  .page-shell {
    max-width: 900px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 28px;
  }
  .topbar {
    padding-left: 32px;
    padding-right: 32px;
    margin-left: -32px;
    margin-right: -32px;
    top: var(--app-topnav-height);
  }
  .fab {
    right: max(2rem, var(--safe-right));
    bottom: 2rem;
  }
  .app-topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--app-topnav-height);
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  .app-topnav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .app-topnav-brand img {
    height: 30px;
    width: auto;
    object-fit: contain;
  }
  .app-topnav-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex: 1;
    height: 100%;
  }
  .app-topnav-tabs a,
  .app-topnav-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: inherit;
    padding: 0 14px;
    min-width: 64px;
    border-bottom: 2.5px solid transparent;
  }
  .app-topnav-tabs svg {
    width: 20px;
    height: 20px;
  }
  .app-topnav-tabs span {
    font-size: .68rem;
    font-weight: 600;
  }
  .app-topnav-tabs a.active,
  .app-topnav-tabs button.active {
    color: var(--color-navy-text);
    border-bottom-color: var(--color-navy-text);
  }
  .app-topnav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .more-backdrop.open {
    display: block;
  }
  .more-sheet {
    left: auto;
    right: 28px;
    bottom: auto;
    top: calc(var(--app-topnav-height) + 8px);
    width: 280px;
    border-radius: var(--radius-lg);
    max-height: calc(100dvh - var(--app-topnav-height) - 24px);
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .16s, opacity .16s;
    box-shadow: 0 16px 44px rgba(21, 42, 80, .22);
  }
  .more-sheet.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .more-sheet-grab,
  .more-sheet-mobile-only {
    display: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 42, 80, .08), 0 14px 32px rgba(21, 42, 80, .1);
  }
  .list-row:not(.static):hover {
    background: var(--color-surface-alt);
    box-shadow: 0 2px 6px rgba(21, 42, 80, .08), 0 10px 26px rgba(21, 42, 80, .09);
  }
  .button:not(:disabled):hover {
    filter: brightness(1.08);
  }
  .button.secondary:not(:disabled):hover {
    background: var(--color-navy-soft);
  }
  .row-edit:hover {
    background: var(--color-navy-soft);
  }
  .icon-action:hover,
  .topbar > a:not(.icon-action):hover,
  .topbar > button:not(.icon-action):hover,
  .back-btn:hover {
    background: rgba(255, 255, 255, .14);
  }
  .more-sheet a:hover,
  .more-sheet button:hover {
    background: var(--color-surface-alt);
  }
  .app-topnav-tabs a:hover,
  .app-topnav-tabs button:hover {
    color: var(--color-navy-text);
  }
  .app-bottomnav a:hover,
  .app-bottomnav button:hover {
    color: var(--color-navy-text);
  }
  .fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(21, 42, 80, .48);
  }
  .data-table tbody tr:hover {
    background: var(--color-surface-alt);
  }
  .view-toggle:hover {
    background: var(--color-surface-alt);
  }
  .time-card:hover {
    background: var(--color-surface-alt);
    box-shadow: 0 2px 6px rgba(21, 42, 80, .08), 0 10px 26px rgba(21, 42, 80, .09);
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
