:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #132948;
  --muted: #5d7391;
  --line: #d8e2ee;
  --line-strong: #cad6e5;
  --primary: #184f8d;
  --primary-soft: #e8f0fa;
  --success: #1aaa64;
  --success-soft: #e4f7ee;
  --warning: #f59e0b;
  --warning-soft: #fff4e2;
  --danger: #ef4444;
  --danger-soft: #ffeaea;
  --accent: #1d9bf0;
  --accent-soft: #e8f5ff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
}
body { padding: 0; }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.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;
}
.page-shell { width: 100%; margin: 0 auto; }
.topbar, .toolbar-card, .table-card, .card, .modal-panel, .drawer-panel {
  background: var(--surface);
  box-shadow: var(--shadow);
}
.topbar {
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f6;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: var(--primary); color: white; font-size: 14px; font-weight: 700;
}
.brand h1, .modal-header h3, .empty-state h3 { margin: 0; }
.brand h1 { font-size: 15px; letter-spacing: -0.01em; }
.eyebrow {
  margin: 0 0 6px; color: var(--muted); letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 11px; font-weight: 700;
}
.topbar-meta { display: flex; align-items: center; gap: 18px; }
.lang { color: var(--primary); font-size: 13px; }
.avatar {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
  background: #e8f0fa; color: var(--primary); font-size: 13px;
}
.layout {
  display: grid;
  gap: 20px;
  padding: 28px 32px 20px;
}
.toolbar-card {
  display: grid;
  gap: 18px;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.page-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
}
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toolbar-main { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.table-counter {
  padding: 12px 16px 14px;
  color: #0b3b78;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  border-top: 1px solid #d9e4ef;
  background: #ffffff;
}
.btn {
  border: 1px solid #009bde;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 700;
  background: white;
  color: #009bde;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
  background: #009bde;
  color: white;
  border-color: #009bde;
  outline: none;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #95a1b1;
  background: white;
  border-color: #d8e2ee;
  box-shadow: none;
}
.btn-primary { background: white; color: #009bde; border-color: #009bde; }
.btn-secondary { background: white; color: #009bde; border-color: #009bde; }
.btn-icon-trash {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 13a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 13a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-icon-download {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:disabled .btn-icon-trash {
  opacity: 0.7;
}
.btn:disabled .btn-icon-download {
  opacity: 0.7;
}
.filters-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; }
.filters-hidden { display: none; }
label { display: grid; gap: 8px; }
label span {
  font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  border: 1px solid #002b66;
  background: #f5f5f5;
  border-radius: 12px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 2px 3px rgba(0, 0, 0, .05);
}
input:not([type="checkbox"]):focus,
input:not([type="checkbox"]):focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  outline: none;
  border: 1px solid #002b66;
  box-shadow: 0 0 0 1px #002b66;
}
.check-cell input[type="checkbox"],
.inline-icon input[type="checkbox"],
#selectAll {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1.5px solid #184f8d;
  border-radius: 999px;
  background: white;
  box-shadow: none;
  accent-color: #184f8d;
  cursor: pointer;
}
.search-field {
  position: relative;
  width: min(100%, 420px);
  flex: 0 0 420px;
}
.btn-export {
  min-width: 160px;
  justify-content: center;
}
.search-field::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #6c809b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.search-field input {
  min-height: 42px;
  padding-left: 40px;
  padding-right: 16px;
  color: #4e6787;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.table-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1280px; }
thead th {
  background: #0b3b78;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid #d9e4ef;
  font-weight: 600;
}
.sortable-header {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.sortable-header::after {
  content: "↕";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}
.sortable-header:hover {
  background: #124789;
}
.sortable-header.sort-active {
  color: #ffffff;
}
.sortable-header.sort-asc::after {
  content: "↑";
  color: #ffffff;
}
.sortable-header.sort-desc::after {
  content: "↓";
  color: #ffffff;
}
thead th.check-cell {
  text-align: center;
}
thead th:last-child {
  border-right: 0;
}
tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}
tbody td:nth-child(7),
tbody td:nth-child(8),
tbody td:nth-child(9) {
  text-align: center;
}
tbody tr:nth-child(odd) { background: #ffffff; }
tbody tr:nth-child(even) { background: #ebf4fb; }
tbody tr.selected-row { background: #f4f8fc; }
.check-cell { width: 42px; }
.row-number-header,
.row-number-cell {
  width: 48px;
  text-align: center;
}
.row-number-cell {
  color: #5f7694;
  font-size: 12px;
  font-weight: 700;
}
.mono { font-family: Consolas, "Courier New", monospace; font-weight: 400; font-size: 12px; }
.container-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 132px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #1b2f4a;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.container-link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 247, 252, 0.98));
  border-color: #d6e2ef;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
tbody tr:nth-child(even) .container-link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(243, 248, 253, 0.94));
}
.stack { display: grid; gap: 3px; }
.muted { color: var(--muted); }
.mini { font-size: 12px; }
.inline-icon { display: inline-flex; align-items: center; gap: 8px; }
.operation-line,
.timeline-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.timeline-row {
  display: flex;
  gap: 8px;
}
.timeline-stack {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.timeline-stack:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 247, 252, 0.96));
  border-color: #d6e2ef;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
tbody tr:nth-child(even) .timeline-stack:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(243, 248, 253, 0.92));
}
.timeline-label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  color: #173d74;
  text-transform: uppercase;
}
.location {
  color: var(--text);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ui-icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background-color: #5f7898;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.ui-icon-terminal {
  background-color: #5f7898;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 20h18v-2H3v2Zm2-3h3V9H5v8Zm5 0h4V5h-4v12Zm6 0h3v-6h-3v6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 20h18v-2H3v2Zm2-3h3V9H5v8Zm5 0h4V5h-4v12Zm6 0h3v-6h-3v6Z'/%3E%3C/svg%3E");
}
.ui-icon-anchor {
  background-color: #5f7898;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cpath d='M12 7v9'/%3E%3Cpath d='M8 11H5a7 7 0 0 0 14 0h-3'/%3E%3Cpath d='M8 11a4 4 0 0 0 8 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cpath d='M12 7v9'/%3E%3Cpath d='M8 11H5a7 7 0 0 0 14 0h-3'/%3E%3Cpath d='M8 11a4 4 0 0 0 8 0'/%3E%3C/svg%3E");
}
.ui-icon-ship {
  background-color: #5f7898;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17s1.5 2 4 2 4-2 4-2 1.5 2 4 2 4-2 4-2'/%3E%3Cpath d='M6 15V8l6-2 6 2v7'/%3E%3Cpath d='M6 10h12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17s1.5 2 4 2 4-2 4-2 1.5 2 4 2 4-2 4-2'/%3E%3Cpath d='M6 15V8l6-2 6 2v7'/%3E%3Cpath d='M6 10h12'/%3E%3C/svg%3E");
}
.ui-icon-clock {
  background-color: #5f7898;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
}
.ui-icon-pin {
  background-color: #20b15a;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-5-4.35-5-9a5 5 0 0 1 10 0c0 4.65-5 9-5 9Z'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-5-4.35-5-9a5 5 0 0 1 10 0c0 4.65-5 9-5 9Z'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3C/svg%3E");
}
.ui-icon-doc {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
}
.ui-icon-calendar {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}
.ui-icon-user {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z'/%3E%3Cpath d='M6 20a6 6 0 0 1 12 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z'/%3E%3Cpath d='M6 20a6 6 0 0 1 12 0'/%3E%3C/svg%3E");
}
.ui-icon-building {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3.5' width='10' height='17' rx='1.5'/%3E%3Cpath d='M10 7h.01'/%3E%3Cpath d='M14 7h.01'/%3E%3Cpath d='M10 11h.01'/%3E%3Cpath d='M14 11h.01'/%3E%3Cpath d='M10 15h.01'/%3E%3Cpath d='M14 15h.01'/%3E%3Cpath d='M12 20.5v-3.5'/%3E%3Cpath d='M4 20.5h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3.5' width='10' height='17' rx='1.5'/%3E%3Cpath d='M10 7h.01'/%3E%3Cpath d='M14 7h.01'/%3E%3Cpath d='M10 11h.01'/%3E%3Cpath d='M14 11h.01'/%3E%3Cpath d='M10 15h.01'/%3E%3Cpath d='M14 15h.01'/%3E%3Cpath d='M12 20.5v-3.5'/%3E%3Cpath d='M4 20.5h16'/%3E%3C/svg%3E");
}
.ui-icon-idcard {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='2'/%3E%3Ccircle cx='9' cy='12' r='1.6'/%3E%3Cpath d='M12.5 10.5h4'/%3E%3Cpath d='M12.5 13.5h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='2'/%3E%3Ccircle cx='9' cy='12' r='1.6'/%3E%3Cpath d='M12.5 10.5h4'/%3E%3Cpath d='M12.5 13.5h4'/%3E%3C/svg%3E");
}
.ui-icon-hash {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 7 20'/%3E%3Cpath d='M17 4 15 20'/%3E%3Cpath d='M4 9h16'/%3E%3Cpath d='M3 15h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 7 20'/%3E%3Cpath d='M17 4 15 20'/%3E%3Cpath d='M4 9h16'/%3E%3Cpath d='M3 15h16'/%3E%3C/svg%3E");
}
.ui-icon-arrow-in {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h11'/%3E%3Cpath d='m12 7 4 5-4 5'/%3E%3Cpath d='M19 5v14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h11'/%3E%3Cpath d='m12 7 4 5-4 5'/%3E%3Cpath d='M19 5v14'/%3E%3C/svg%3E");
}
.ui-icon-arrow-out {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H8'/%3E%3Cpath d='m12 7-4 5 4 5'/%3E%3Cpath d='M5 5v14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H8'/%3E%3Cpath d='m12 7-4 5 4 5'/%3E%3Cpath d='M5 5v14'/%3E%3C/svg%3E");
}
.ui-icon-box {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 7 4v10l-7 4-7-4V7l7-4Z'/%3E%3Cpath d='m5 7 7 4 7-4'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 7 4v10l-7 4-7-4V7l7-4Z'/%3E%3Cpath d='m5 7 7 4 7-4'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}
.ui-icon-alert {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 20h18L12 4Z'/%3E%3Cpath d='M12 9v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 20h18L12 4Z'/%3E%3Cpath d='M12 9v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.ui-icon-ban {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m8 8 8 8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m8 8 8 8'/%3E%3C/svg%3E");
}
.ui-icon-phone {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.34 1.78.65 2.62a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6.09 6.09l1.46-1.31a2 2 0 0 1 2.11-.45c.84.31 1.72.53 2.62.65A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.34 1.78.65 2.62a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6.09 6.09l1.46-1.31a2 2 0 0 1 2.11-.45c.84.31 1.72.53 2.62.65A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}
.ui-icon-mail {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='1.5'/%3E%3Cpath d='m5 8 7 5 7-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='1.5'/%3E%3Cpath d='m5 8 7 5 7-5'/%3E%3C/svg%3E");
}
.ui-icon-headset {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 1 1 16 0'/%3E%3Crect x='3' y='12' width='4' height='7' rx='1.5'/%3E%3Crect x='17' y='12' width='4' height='7' rx='1.5'/%3E%3Cpath d='M21 18a3 3 0 0 1-3 3h-2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 1 1 16 0'/%3E%3Crect x='3' y='12' width='4' height='7' rx='1.5'/%3E%3Crect x='17' y='12' width='4' height='7' rx='1.5'/%3E%3Cpath d='M21 18a3 3 0 0 1-3 3h-2'/%3E%3C/svg%3E");
}
.ui-icon-truck {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='10' width='10' height='5.5' rx='1'/%3E%3Cpath d='M13 12h3.1l2 2v1.5H13'/%3E%3Ccircle cx='7' cy='17' r='1.5'/%3E%3Ccircle cx='17' cy='17' r='1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='10' width='10' height='5.5' rx='1'/%3E%3Cpath d='M13 12h3.1l2 2v1.5H13'/%3E%3Ccircle cx='7' cy='17' r='1.5'/%3E%3Ccircle cx='17' cy='17' r='1.5'/%3E%3C/svg%3E");
}
.ui-icon-train {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='7' width='11' height='8' rx='1.6'/%3E%3Cpath d='M8.5 10.2h.01'/%3E%3Cpath d='M14.5 10.2h.01'/%3E%3Cpath d='M8.8 18.2 7.2 20'/%3E%3Cpath d='M15.2 18.2 16.8 20'/%3E%3Cpath d='M9 15.5h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='7' width='11' height='8' rx='1.6'/%3E%3Cpath d='M8.5 10.2h.01'/%3E%3Cpath d='M14.5 10.2h.01'/%3E%3Cpath d='M8.8 18.2 7.2 20'/%3E%3Cpath d='M15.2 18.2 16.8 20'/%3E%3Cpath d='M9 15.5h5'/%3E%3C/svg%3E");
}
.ui-icon-chevron {
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}
.chip, .dot-chip, .tag, .soft-panel { border: 1px solid transparent; border-radius: 999px; }
.chip, .dot-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 12px; font-weight: 500;
}
.chip-warning { background: var(--warning-soft); color: #d98400; border-color: #f4cd8a; }
.chip-danger { background: var(--danger-soft); color: #e53935; border-color: #f0b3b1; }
.chip-accent { background: var(--accent-soft); color: #1290ea; border-color: #b9dcfb; }
.chip-primary { background: #edf3fa; color: var(--primary); border-color: #b8cadf; }
.dot-chip { border-radius: 12px; background: white; }
.doc-verde { background: var(--success-soft); color: var(--success); border-color: #bae7cf; }
.doc-amarillo { background: var(--warning-soft); color: #e69500; border-color: #f2d09a; }
.doc-rojo { background: var(--danger-soft); color: var(--danger); border-color: #f1b8b6; }
.doc-dot { width: 10px; height: 10px; border-radius: 999px; background: currentColor; box-shadow: none; }
.doc-action, .link-like { cursor: pointer; }
.doc-action:hover, .link-like:hover { opacity: 0.82; }
.chip-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.chip-icon-end {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-left: 0;
}
.days-badge {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
  line-height: 1;
  justify-items: center;
}
.days-badge.danger { color: var(--danger); }
.days-badge.warning { color: var(--warning); }
.days-badge.success { color: var(--success); }
.days-badge::after {
  content: "días";
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #597091;
  margin-top: 2px;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 12px; font-weight: 500;
  background: #edf3fa; color: var(--primary); border-color: #b8cadf;
}
.tag button { border: 0; background: transparent; cursor: pointer; color: inherit; padding: 0; }
.tag-label {
  font: inherit;
  line-height: 1.1;
}
.tag-color-trigger {
  font-size: 12px;
  line-height: 1;
  opacity: 0.7;
}
.tag-editor-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-add { background: transparent; border-style: dashed; border-color: #d1dae6; color: #7388a2; }
.tag-tone-0 { background: #edf3fa; color: #184f8d; border-color: #b8cadf; }
.tag-tone-1 { background: #eaf7ef; color: #1b8d58; border-color: #b9e0c8; }
.tag-tone-2 { background: #fff4e8; color: #cc7a00; border-color: #f1cfab; }
.tag-tone-3 { background: #f7ecfb; color: #8a3db1; border-color: #ddc1eb; }
.tag-tone-4 { background: #ffeef1; color: #c33a64; border-color: #f0bfd0; }
.tag-tone-5 { background: #eef2ff; color: #4b5fc7; border-color: #c7d0f8; }
.tag-custom {
  background: var(--tag-bg);
  color: var(--tag-color);
  border-color: var(--tag-border);
}
.tag-tone-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag-tone-swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: none !important;
}
.tag-tone-swatch.is-active {
  outline: 1px solid #002e6d;
  outline-offset: 1px;
}
.tag-tone-swatch.tag-tone-0 { background: #184f8d; }
.tag-tone-swatch.tag-tone-1 { background: #1b8d58; }
.tag-tone-swatch.tag-tone-2 { background: #cc7a00; }
.tag-tone-swatch.tag-tone-3 { background: #8a3db1; }
.tag-tone-swatch.tag-tone-4 { background: #c33a64; }
.tag-tone-swatch.tag-tone-5 { background: #4b5fc7; }
.tag-custom-color {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}
.tag-inline-input {
  width: 92px;
  min-width: 92px;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #7f9ac0;
  border-radius: 14px;
  background: #ffffff !important;
  color: #5d7391;
  box-shadow: none !important;
  font-size: 12px;
}
.tag-inline-input:focus,
.tag-inline-input:focus-visible {
  border: 1px solid #002e6d;
  box-shadow: 0 0 0 1px #002e6d !important;
}
.tag-inline-input::placeholder {
  color: #7388a2;
}
.mobile-list { display: grid; gap: 14px; }
.card { border-radius: 22px; padding: 18px; }
.card-header, .card-block, .split, .contact-card, .soft-panel { display: grid; gap: 10px; }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soft-panel {
  border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f5f9fc); padding: 14px;
}
.clickable { cursor: pointer; }
.empty-state { max-width: 480px; margin: 44px auto 0; text-align: center; }
.empty-icon { font-size: 44px; margin-bottom: 12px; }
.drawer, .modal { position: fixed; inset: 0; z-index: 30; display: none; }
.drawer.open, .modal.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(18, 24, 33, 0.74); }
.drawer-panel, .modal-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 460px); padding: 26px; overflow: auto;
}
.modal-panel {
  width: min(100%, 392px);
  height: auto;
  max-height: none;
  top: 0;
  right: 0;
  border-radius: 0;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #002e6d;
  transition: opacity 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.drawer-close:hover {
  background: transparent;
  color: #002e6d;
  opacity: 0.75;
}
.drawer-section { display: grid; gap: 18px; }
.drawer-header { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-header h3 { margin: 6px 0 0; }
.status-banner { border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.modal-header h3 {
  margin-top: 8px;
  font-size: 0;
  line-height: 0;
}
.modal-title-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2b3a4c;
  line-height: 1.2;
}
.modal-plus {
  font-size: 32px;
  line-height: 1;
  color: var(--primary);
  font-weight: 300;
  margin-top: -2px;
}
.form-stack {
  gap: 24px;
}
.form-stack label {
  gap: 10px;
}
.form-stack label span {
  font-size: 12px;
  color: #7387a3;
}
.form-stack input,
.form-stack select,
.form-stack textarea {
  min-height: 40px;
  border-radius: 12px;
  border-color: #d7e0ea;
  color: #2d3d50;
  background-color: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 2px 3px rgba(0, 0, 0, .05) !important;
}
.form-stack textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}
.form-stack input:focus,
.form-stack input:focus-visible,
.form-stack select:focus,
.form-stack select:focus-visible,
.form-stack textarea:focus,
.form-stack textarea:focus-visible {
  outline: none;
  border: 1px solid #002e6d;
  box-shadow: 0 0 0 1px #002e6d;
}
.form-stack textarea[name="contenedores"] {
  text-transform: uppercase;
}
.form-stack input::placeholder,
.form-stack textarea::placeholder {
  color: #8fa0b5;
}
.form-stack input.input-error,
.form-stack textarea.input-error {
  border-color: #ef4444;
  background: #fff7f7;
  color: #b42318;
}
.form-stack input.input-valid,
.form-stack textarea.input-valid {
  border-color: #1aaa64;
  background: #f7fffb;
}
.field-help {
  margin-top: -4px;
  font-size: 11px;
  color: #7488a1;
  line-height: 1.35;
}
.entry-mode-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafcff 0%, #f5f8fd 100%);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.entry-mode-title {
  margin: 0;
  color: #2b3a4c;
  font-size: 14px;
  font-weight: 700;
}
.entry-divider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.entry-divider span {
  flex: 1;
  height: 1px;
  background: #d9e3ef;
}
.entry-divider strong {
  color: #7387a3;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.upload-field {
  gap: 12px;
}
.upload-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.upload-title {
  color: #2b3a4c;
  font-size: 14px;
  line-height: 1.25;
}
.upload-copy {
  margin: 0;
  color: #6f829d;
  font-size: 12px;
  line-height: 1.45;
}
.upload-card input[type="file"] {
  min-height: auto;
  padding: 10px 12px;
  background: #ffffff;
}
.upload-card input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid #009bde;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #009bde;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.upload-card input[type="file"]::file-selector-button:hover {
  background: #009bde;
  color: #ffffff;
  border-color: #009bde;
}
.field-error {
  margin-top: -4px;
  font-size: 11px;
  color: #d92d20;
  line-height: 1.35;
}
.field-error.is-success {
  color: #1a7f4b;
}
.field-error.is-error {
  color: #d92d20;
}
.info-box {
  background: #f8fbff;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  padding: 12px 14px 10px;
  color: var(--muted);
}
.info-box strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 13px;
}
.info-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #80aee5;
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.info-box p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #71859f;
}
.info-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #71859f;
}
.info-list li {
  margin: 2px 0;
}
.metric-list, .detail-list, .contact-list, .form-stack { display: grid; gap: 14px; }
.detail-row, .contact-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: white;
}
.detail-row { display: flex; justify-content: space-between; gap: 14px; }
.contact-card strong, .metric-list strong, .soft-panel strong { display: block; }
.mac-drawer {
  gap: 20px;
}
.mac-header {
  padding-bottom: 16px;
  padding-right: 34px;
}
.mac-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mac-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: #2b3a4c;
  font-weight: 700;
}
.mac-headset {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background-color: #1d4f91;
}
.mac-subtitle {
  margin: 10px 0 0;
  color: #7387a3;
  font-size: 12px;
  line-height: 1.45;
}
.mac-subtitle strong {
  color: #2f3d4e;
  display: inline;
}
.mac-banner {
  border-radius: 14px;
  background: #dff2ff;
  border: 1px solid #9edaff;
  color: #66809d;
  padding: 14px 16px;
}
.mac-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #0b97ed;
}
.mac-banner-title strong {
  font-size: 13px;
}
.mac-section .eyebrow {
  margin-bottom: 10px;
  color: #7387a3;
}
.mac-card {
  gap: 12px;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.mac-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mac-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8eef8;
  color: #2f5f97;
  font-weight: 700;
}
.mac-avatar-eva {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d8e2ee;
}
.mac-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mac-avatar-fallback {
  background: #eef3f8;
}
.mac-card-top strong {
  font-size: 13px;
  color: #2f3d4e;
}
.mac-card-top .muted {
  font-size: 12px;
}
.mac-card-divider {
  height: 1px;
  background: #d8e2ee;
}
.mac-card-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #234e8a;
}
.mac-card-line span:last-child {
  color: #234e8a;
}
.mac-phone-link {
  color: #234e8a;
  text-decoration: none;
  font-weight: 600;
}
.mac-phone-link:hover {
  text-decoration: underline;
}
.mac-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  padding: 14px 16px;
  color: #7387a3;
  font-size: 12px;
  background: #fafcfe;
}
.doc-drawer {
  gap: 22px;
}
.doc-header {
  padding-bottom: 16px;
  padding-right: 34px;
}
.doc-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: #2b3a4c;
  font-weight: 700;
}
.doc-header-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #1d4f91;
}
.doc-subtitle {
  margin: 10px 0 0;
  color: #6d809b;
  font-size: 13px;
  line-height: 1.45;
}
.doc-state-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
}
.doc-state-banner .doc-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}
.doc-state-banner strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.doc-section {
  display: grid;
  gap: 10px;
}
.doc-section-title {
  margin: 0;
  color: #7186a3;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.doc-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.doc-card-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7e99;
  font-size: 14px;
  line-height: 1.4;
}
.doc-card-line strong {
  color: #2b3a4c;
}
.doc-card-line-primary strong {
  font-size: 14px;
  font-weight: 700;
}
.doc-info-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #7186a3;
}
.doc-info-icon-danger {
  color: #f04438;
}
.doc-info-icon-warning {
  color: #f59e0b;
}
.doc-info-icon-primary {
  color: #1d4f91;
}
.doc-update-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b3a4c;
  font-size: 14px;
}
.doc-info-card {
  gap: 14px;
}
.doc-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: #6b7e99;
  font-size: 14px;
}
.doc-info-row strong {
  color: #2b3a4c;
  text-align: right;
}
.transport-drawer {
  gap: 22px;
}
.transport-header {
  padding-bottom: 16px;
  padding-right: 34px;
}
.transport-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.transport-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: #2b3a4c;
  font-weight: 700;
}
.transport-header-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #1d4f91;
}
.transport-subtitle {
  margin: 10px 0 0;
  color: #6d809b;
  font-size: 13px;
  line-height: 1.45;
}
.transport-state-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
}
.transport-banner-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.transport-section {
  display: grid;
  gap: 10px;
}
.transport-section-title {
  margin: 0;
  color: #7186a3;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.transport-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.transport-single-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.transport-single-line strong {
  color: #2b3a4c;
  font-size: 14px;
}
.transport-info-card {
  gap: 14px;
}
.transport-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #6b7e99;
  font-size: 14px;
}
.transport-info-row strong {
  color: #2b3a4c;
  text-align: right;
}
.transport-info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.transport-card-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7e99;
  font-size: 14px;
}
.transport-card-line strong,
.transport-card-line-primary strong {
  color: #2b3a4c;
}
.transport-card-line-primary strong {
  font-size: 14px;
  font-weight: 700;
}
.transport-section-icon,
.transport-info-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #1d4f91;
}
.transport-icon-success {
  color: #1aa65b;
}
.transport-date-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b3a4c;
  font-size: 14px;
}
.buque-drawer {
  gap: 18px;
}
.buque-header {
  padding-bottom: 14px;
  padding-right: 34px;
}
.buque-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.buque-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: #2b3a4c;
  font-weight: 700;
}
.buque-header-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #1d4f91;
}
.buque-subtitle {
  margin: 10px 0 0;
  color: #6d809b;
  font-size: 13px;
  line-height: 1.45;
}
.buque-summary-card,
.buque-section-card,
.buque-trip-card {
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.buque-summary-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
}
.buque-summary-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.buque-summary-badge,
.buque-timeline-badge {
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.buque-summary-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: #dfeaf8;
}
.buque-summary-icon {
  width: 22px;
  height: 22px;
  color: #255897;
}
.buque-summary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.buque-mini-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.09em;
}
.buque-summary-copy strong {
  color: #2b3a4c;
  font-size: 14px;
  line-height: 1.2;
}
.buque-summary-copy span:last-child {
  color: #7286a0;
  font-size: 12px;
}
.buque-summary-divider {
  height: 1px;
  background: #d7e2ef;
}
.buque-summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7488a3;
  font-size: 12px;
}
.buque-summary-meta strong {
  color: #2b3a4c;
}
.buque-meta-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.buque-section {
  display: grid;
  gap: 8px;
}
.buque-section-title {
  margin: 0;
  color: #7186a3;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.buque-section-card {
  padding: 8px 14px;
}
.buque-timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.buque-timeline-item + .buque-timeline-item {
  border-top: 1px solid #e3ebf4;
}
.buque-timeline-badge {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: #eef3f9;
  color: #6680a0;
}
.buque-timeline-badge.is-blue {
  background: #edf4ff;
  color: #1d4f91;
}
.buque-timeline-badge.is-green {
  background: #ecf9f1;
  color: #1aa65b;
}
.buque-timeline-badge.is-amber {
  background: #fff6e9;
  color: #f59e0b;
}
.buque-timeline-badge.is-red {
  background: #fff0f1;
  color: #ef4444;
}
.buque-timeline-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.buque-timeline-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.buque-timeline-copy span {
  color: #7186a3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.buque-timeline-copy strong {
  color: #2b3a4c;
  font-size: 13px;
  line-height: 1.25;
}
.buque-trip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.buque-trip-card {
  padding: 12px;
  display: grid;
  gap: 5px;
}
.buque-trip-card span {
  color: #7186a3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.buque-trip-card strong {
  color: #2b3a4c;
  font-size: 14px;
}
.form-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}
.form-actions .btn {
  flex: 1;
  min-height: 48px;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: white;
  color: #009bde;
  border: 1px solid #009bde;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.form-actions .btn-primary {
  background: white;
  border-color: #009bde;
  color: #009bde;
}
.form-actions .btn-secondary {
  background: white;
  color: #009bde;
  border-color: #009bde;
}
.form-actions .btn:hover {
  background: #009bde;
  color: white;
  border-color: #009bde;
}
.container-drawer {
  gap: 20px;
}
.container-header {
  padding-bottom: 16px;
  padding-right: 34px;
}
.container-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.container-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: #2b3a4c;
  font-weight: 700;
}
.container-header-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #1d4f91;
}
.container-subtitle {
  margin: 10px 0 0;
  color: #6d809b;
  font-size: 13px;
  line-height: 1.45;
}
.container-summary-card,
.container-card {
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.container-summary-card {
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
}
.container-summary-grid,
.container-info-card {
  display: grid;
  gap: 12px;
}
.container-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.container-section {
  display: grid;
  gap: 8px;
}
.container-section-title {
  margin: 0;
  color: #7186a3;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.container-card {
  padding: 14px 16px;
}
.container-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #6b7e99;
  font-size: 14px;
}
.container-info-row-wide {
  grid-column: 1 / -1;
}
.container-info-row strong {
  color: #2b3a4c;
  text-align: right;
}
.container-seals-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.container-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #b8cadf;
  background: #edf3fa;
  color: #184f8d;
  font-size: 12px;
  font-weight: 600;
}
.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 1080px) {
  .toolbar-row { align-items: flex-start; flex-direction: column; }
  .toolbar-side { width: 100%; justify-content: space-between; }
  .table-counter { width: 100%; text-align: left; }
  .search-field { width: 100%; flex: 1 1 auto; }
}
@media (max-width: 820px) {
  .topbar { padding: 14px 16px; }
  .layout { padding: 22px 16px 20px; }
  .page-heading h2 { font-size: 24px; }
  .filters-grid, .split { grid-template-columns: 1fr; }
  .container-summary-grid { grid-template-columns: 1fr; }
  .desktop-only { display: none; }
  .mobile-only { display: grid; }
  .modal-panel { width: min(100%, 392px); }
}
