:root {
  --bg: #e8edf4;
  --surface: #edf2f8;
  --input: #ffffff;
  --text: #384f5e;
  --muted: #6f7f8d;
  --border: #c2ccd6;
  --nav: #1f2b38;
  --nav-active: #00294c;
  --accent-blue: #00294c;
  --success: #3b82f6;
  --error: #b42318;
  --warning: #ff8a00;
  --info: #00294c;
  --done: #2563eb;
  --cancelled: #aa2e25;
  --font-ui: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body[data-theme='dark'] {
  --bg: #141b22;
  --surface: #1d2731;
  --input: #273544;
  --text: #d7e2ec;
  --muted: #9eb2c4;
  --border: #3b4d60;
  --nav: #0f151c;
  --nav-active: #00294c;
  --success: #3b82f6;
  --error: #df4d4d;
  --warning: #ffa726;
  --info: #42a5f5;
  --done: #60a5fa;
  --cancelled: #e57373;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

body.page-loading .main-content {
  visibility: hidden;
}

body.modal-open {
  overflow: hidden;
}

.page-loader-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 2000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.16s ease;
}

.page-loader-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.page-loader-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #415a6c;
}

.page-loader-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #c7d5e4;
  border-top-color: #00294c;
  animation: pageSpin 0.75s linear infinite;
}

.page-loader-text {
  font-size: 14px;
  font-weight: 600;
}

@keyframes pageSpin {
  to {
    transform: rotate(360deg);
  }
}

.container {
  width: min(1460px, 96vw);
  margin: 0 auto;
}

.top-nav-wrap {
  background: var(--nav);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}

.top-nav-left {
  display: grid;
  grid-template-columns: minmax(210px, 240px) repeat(4, minmax(160px, 1fr));
}

.top-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  width: 100%;
  padding: 10px 12px;
  background: var(--nav);
  text-decoration: none;
}

.top-brand-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  width: 100%;
  padding: 0 24px;
  background: var(--nav);
  color: #fff;
  text-decoration: none;
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 600;
}

.nav-item + .nav-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background: var(--nav-active);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  background: var(--nav);
}

.auth-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-controls-loading {
  pointer-events: none;
}

.profile-toggle-skeleton {
  opacity: 0.95;
}

.auth-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f7387;
  margin-left: auto;
  animation: auth-loading-pulse 1.2s ease-in-out infinite;
}

@keyframes auth-loading-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.nav-icon-btn {
  min-height: 42px;
  min-width: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #243444;
  color: #f1f6fc;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.language-switch {
  min-height: 42px;
  min-width: 86px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #243444;
  color: #f1f6fc;
  font-weight: 600;
  padding: 0 10px;
}

.lang-chip-btn,
.profile-toggle-btn {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #243444;
  color: #f1f6fc;
  font-weight: 700;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe8f6;
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-chevron {
  width: 16px;
  height: 16px;
}

.profile-menu {
  position: relative;
}

.profile-toggle-btn {
  min-width: 0;
  justify-content: flex-start;
  max-width: 460px;
}

.profile-toggle-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-arrow {
  margin-left: 8px;
  color: #dbe8f6;
  display: inline-flex;
  align-items: center;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: max-content;
  min-width: 300px;
  max-width: min(420px, 92vw);
  background: #243444;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(25, 38, 55, 0.16);
  overflow: hidden;
  display: none;
  z-index: 25;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-dropdown-user {
  display: grid;
  gap: 2px;
}

.profile-dropdown-user strong {
  font-size: 16px;
  line-height: 1.2;
  color: #eef5fd;
}

.profile-dropdown-user span {
  font-size: 11px;
  color: #d4e2f1;
}

.profile-dropdown-link,
.profile-dropdown-logout {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #243444;
  color: #e6f0fb;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  cursor: pointer;
}

.profile-dropdown-logout {
  background: #1f2e3e;
  font-weight: 600;
}

.user-chip {
  min-height: 42px;
  border: 1px solid #b7c3d0;
  border-radius: 10px;
  background: #f9fbff;
  color: #334a5c;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.user-chip strong {
  font-size: 13px;
}

.user-link {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #b7c3d0;
  background: #f9fbff;
  color: #334a5c;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.logout-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #7b2230;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 600;
}

.notification-wrap {
  position: relative;
}

.notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 88vw);
  background: #243444;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: none;
}

.notification-panel.open {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notification-header strong,
.notif-empty {
  color: #d6e5f4;
}

.mini-link {
  border: none;
  background: transparent;
  color: #cde1f5;
  cursor: pointer;
  padding: 0;
}

.notification-list {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.notif-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1f2e3e;
  border-radius: 8px;
  padding: 8px;
}

.notif-time {
  font-size: 12px;
  color: #bdd1e5;
  margin-bottom: 2px;
}

.notif-text {
  font-size: 13px;
  color: #edf5ff;
}

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

.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  background: #d93025;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.main-content {
  padding: 18px 0 36px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(480px, 96vw);
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  background: #f7faff;
  padding: 18px;
}

.auth-card h1 {
  margin: 0;
  color: #1b2f42;
  font-size: 30px;
}

.auth-subtitle {
  margin: 6px 0 14px;
  color: #5b7386;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-btn {
  border: none;
  background: transparent;
  color: #00294c;
  font-weight: 600;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.profile-card {
  margin-bottom: 14px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.profile-form .full {
  grid-column: 1 / -1;
}

.profile-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.requests-view {
  font-family: var(--font-ui);
}

.requests-view .card {
  border-radius: 14px;
  border: 1px solid #cfd9e6;
  box-shadow: 0 8px 20px rgba(31, 43, 56, 0.06);
}

.requests-view h2 {
  font-size: clamp(26px, 1.55vw, 32px);
  letter-spacing: -0.02em;
}

.requests-view h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f7388;
}

.card {
  background: var(--surface);
  border: 1px solid #d5dde7;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  color: #3f5a6d;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(16px, 1vw, 20px);
  color: #3f5a6d;
  font-weight: 600;
}

h1 {
  font-size: clamp(24px, 1.7vw, 32px);
}

h2 {
  font-size: clamp(20px, 1.25vw, 24px);
}

.icon-close {
  border: none;
  background: transparent;
  color: #0e1720;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.request-form {
  display: grid;
  gap: 22px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.block {
  border: none;
  margin: 0;
  padding: 0;
}

.block legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: clamp(18px, 1.05vw, 26px);
  font-weight: 600;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-bottom: 8px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(14px, 0.9vw, 17px);
  color: #70818f;
}

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

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  padding: 10px 12px;
  min-height: 48px;
  color: #2f4252;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7a7a7a 50%), linear-gradient(135deg, #7a7a7a 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.cargo-top {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.7fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 10px;
}

.cargo-kind-switch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 48px;
  align-items: center;
}

.cargo-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 10px;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  align-self: end;
  gap: 10px;
  min-height: 48px;
  color: #222;
}

.checkbox-row input {
  width: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
}

.checkbox-row.small {
  min-height: 30px;
  align-self: auto;
  color: #304452;
  gap: 8px;
}

.checkbox-row.small input {
  width: 18px;
  min-height: 18px;
}

.cargo-dimensions {
  display: grid;
  grid-template-columns: 1.3fr repeat(7, minmax(95px, 1fr));
  gap: 10px 14px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.upload-box {
  position: relative;
}

.upload-box input[type='file'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-box-drop {
  min-height: 170px;
  border: 3px dashed #d0d8e2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #2d3944;
  background: #f8fbff;
  padding: 24px;
}

.upload-files-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.upload-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #8db0d3;
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px 14px;
}

.upload-file-name {
  font-size: 18px;
  font-weight: 600;
  color: #1b2a36;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.upload-file-size {
  font-size: 14px;
  color: #6e7e8d;
}

.upload-file-status {
  text-align: right;
}

.upload-file-status strong {
  display: block;
  font-size: 16px;
  color: #1f2b38;
}

.upload-file-status span {
  display: block;
  font-size: 12px;
  color: #7b8793;
}

.upload-file-remove {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #b8c7d8;
  border-radius: 8px;
  background: #fff;
  color: #4b5e6f;
  font-size: 20px;
  cursor: pointer;
}

.upload-file-remove:hover {
  border-color: #7f9dbb;
  color: #22384e;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.save-btn,
.secondary-btn,
.action-btn {
  min-height: 44px;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.save-btn {
  min-width: 180px;
  background: var(--success);
}

.secondary-btn {
  background: var(--accent-blue);
}

.action-btn {
  background: #475f73;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
}

.action-btn-danger {
  background: #cc3d3d;
}

.requests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tab-btn {
  border: 1px solid #b7c3d0;
  background: #f9fbff;
  color: #415a6c;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.requests-view .filters {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.requests-view .filters label {
  font-size: 13px;
  font-weight: 600;
  color: #567084;
  gap: 8px;
}

.requests-view .filters input,
.requests-view .filters select {
  min-height: 44px;
  border-width: 1px;
  border-color: #b8c9dc;
  border-radius: 10px;
  background: #fbfdff;
  font-size: 14px;
  color: #233646;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.requests-view .filters select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #4a6177 50%),
    linear-gradient(135deg, #4a6177 50%, transparent 50%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.requests-view .filters input[type='date'] {
  padding-right: 44px;
  background-image:
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.requests-view .filters input:hover,
.requests-view .filters select:hover {
  border-color: #9db3ca;
  background-color: #ffffff;
}

.requests-view .filters input:focus,
.requests-view .filters select:focus {
  border-color: #6f90b2;
  box-shadow: 0 0 0 3px rgba(0, 41, 76, 0.12);
  outline: none;
}

.requests-view .filters input[type='date']::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  cursor: pointer;
}

.filters-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.requests-view .filters-actions {
  justify-content: flex-start;
  padding-top: 2px;
}

.requests-view .filters-actions .secondary-btn,
.requests-view .filters-actions .action-btn {
  min-height: 40px;
  min-width: 132px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.requests-filters-card .action-btn {
  min-height: 40px;
  font-size: 13px;
}

.requests-stats-card {
  background: linear-gradient(180deg, #edf3fa 0%, #e7eef7 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

.requests-view .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  border: 1px solid #d0d8e4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px 14px;
}

.requests-view .stat-item {
  background: linear-gradient(180deg, #fafdff 0%, #eef5ff 100%);
  border-color: #cfe0f3;
}

.finance-summary-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
}

.finance-summary-grid .stat-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 88px;
}

.finance-stat-item {
  display: grid;
  align-content: center;
}

.finance-money-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.finance-money-due {
  color: #c0392b;
}

.stat-label {
  font-size: 13px;
  color: #60798d;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-blue);
}

.requests-view .requests-head {
  margin-bottom: 16px;
}

.requests-view .save-btn {
  min-width: 196px;
  min-height: 46px;
  font-size: 14px;
}

.requests-view .tabs {
  margin-bottom: 12px;
}

.requests-view .tab-btn {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 10px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  background: #f9fbff;
}

.requests-table th,
.requests-table td {
  border: 1px solid #d5dde7;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.requests-table-modern {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #f7f9fd;
  border: 1px solid #d6dfeb;
  border-radius: 12px;
  overflow: hidden;
}

.requests-view .requests-table-modern {
  border-color: #cbd8e8;
  background: #f8fbff;
}

.requests-table-modern th {
  background: #eef3fb;
  color: #1f2b38;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 12px;
  position: relative;
  border-bottom: 1px solid #d6dfeb;
}

.requests-view .requests-table-modern th {
  font-size: 14px;
  color: #2a3e52;
}

.requests-table-modern td {
  padding: 14px 12px;
  border-top: 1px solid #e1e7f0;
  background: #fbfcff;
  vertical-align: top;
  font-size: 14px;
}

.requests-view .requests-table-modern td {
  font-size: 13px;
  color: #2f4252;
}

.requests-table-modern tbody tr[data-request-id]:hover td {
  background: #f0f4ff;
}

.requests-table-modern th .resize-handle {
  position: absolute;
  top: 10px;
  right: -3px;
  width: 8px;
  height: calc(100% - 20px);
  border-radius: 5px;
  background: #c0cada;
  cursor: col-resize;
  opacity: 0.9;
}

.requests-table-modern th .resize-handle:hover {
  background: #8ea4c8;
}

.requests-table tbody tr[data-request-id] {
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.requests-table tbody tr[data-request-id]:hover {
  background: #eef5ff;
  cursor: pointer;
}

.requests-table th {
  background: #edf3fa;
  color: #4a6274;
}

.status-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.requests-view .status-badge {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.status-received {
  background: #607d8b;
}

.status-calculating {
  background: var(--warning);
}

.status-calculated {
  background: #4aa3df;
}

.status-sent {
  background: var(--info);
}

.status-dispatch {
  background: #6e57c9;
}

.status-confirmed {
  background: var(--done);
}

.status-not-confirmed,
.status-cancelled {
  background: var(--cancelled);
}

.status-controls {
  display: grid;
  gap: 6px;
}

.requests-view .status-controls {
  gap: 8px;
}

.requests-view .status-controls .action-btn {
  border: 1px solid #d1ddeb;
  background: #fff;
  color: #3b536a;
  font-weight: 700;
  min-height: 34px;
}

.requests-view .status-controls .action-btn.action-btn-danger {
  border-color: #f3c3bf;
  color: #ba3f34;
  background: #fff7f7;
}

.save-btn:hover,
.secondary-btn:hover,
.action-btn:hover,
.tab-btn:hover,
.nav-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 43, 56, 0.14);
}

.save-btn:hover {
  filter: brightness(1.06);
}

.secondary-btn:hover {
  filter: brightness(1.06);
}

.action-btn:hover {
  filter: brightness(1.03);
}

.requests-view .status-controls .action-btn:hover {
  background: #f3f8ff;
  border-color: #bfd1e5;
  color: #2f4b65;
}

.requests-view .status-controls .action-btn.action-btn-danger:hover {
  background: #ffeceb;
  border-color: #edb2ab;
  color: #9d2f24;
}

.tab-btn:hover {
  background: #eaf2ff;
  border-color: #9ab8e5;
}

.tab-btn.active:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  filter: none;
}

.nav-icon-btn:hover {
  background: #2d4257;
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-chip-btn:hover,
.profile-toggle-btn:hover {
  background: #2d4257;
  border-color: rgba(255, 255, 255, 0.28);
}

.profile-dropdown-link:hover,
.profile-dropdown-logout:hover {
  background: #2d4257;
}

.status-controls select {
  min-height: 34px;
  font-size: 12px;
}

.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.requests-view .table-actions {
  margin-top: 12px;
}

.request-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.request-modal.open {
  display: block;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 35, 0.56);
}

.request-modal-card {
  position: relative;
  z-index: 1;
  width: min(1095px, 96vw);
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid #d5dde7;
}

.details-modal-card {
  width: min(1100px, 94vw);
}

.request-details-content {
  display: grid;
  gap: 18px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.details-item {
  border: 1px solid #d5dde7;
  border-radius: 8px;
  background: #f9fbff;
  padding: 10px 12px;
}

.details-label {
  color: #6e7f8d;
  font-size: 12px;
  margin-bottom: 4px;
}

.details-value {
  color: #2f4252;
  font-size: 14px;
  word-break: break-word;
}

.details-files {
  margin: 0;
  padding-left: 18px;
}

.details-files li {
  margin-bottom: 4px;
}

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

.message.success {
  color: #1c7f4c;
}

.message.error {
  color: var(--error);
}

.hidden {
  display: none !important;
}

.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid #aebfd2;
  background: #00294c;
  color: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.feedback-fab:hover {
  background: #003965;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1300;
}

.feedback-modal.open {
  display: block;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 26, 0.58);
}

.feedback-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 96vw);
  margin: 24px auto;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid #cfd9e6;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.feedback-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.feedback-title-row h3 {
  margin: 0;
  color: var(--text-strong);
}

.feedback-close-btn {
  border: 1px solid #b8c4d2;
  background: #f8fbff;
  color: #2f465a;
  border-radius: 8px;
  min-width: 36px;
  min-height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #3f576b;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  border: 1px solid #b9cbe0;
  border-radius: 10px;
  background: #f9fcff;
  color: var(--text);
  min-height: 42px;
  padding: 8px 12px;
  font-size: 15px;
}

.feedback-form textarea {
  min-height: 110px;
  resize: vertical;
}

.feedback-screenshot-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.feedback-screenshot-box {
  border: 1px dashed #b7c8db;
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px;
}

.feedback-canvas-wrap {
  max-height: 360px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #d1dce9;
  background: #ffffff;
}

.feedback-canvas {
  display: none;
  max-width: 100%;
  cursor: crosshair;
}

.feedback-canvas.active {
  display: block;
}

.feedback-note {
  margin: 0;
  color: #60788e;
  font-size: 12px;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1260px) {
  .location-grid,
  .bottom-grid,
  .cargo-top {
    grid-template-columns: 1fr;
  }

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

  .cargo-extra-grid {
    grid-template-columns: 1fr;
  }

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

  .requests-head,
  .table-actions,
  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .save-btn,
  .secondary-btn {
    width: 100%;
  }

  .top-nav {
    flex-direction: column;
    gap: 8px;
  }

  .top-nav-left {
    overflow-x: auto;
    grid-template-columns: minmax(180px, 220px) repeat(4, minmax(150px, 1fr));
  }

  .top-nav-right {
    justify-content: flex-end;
    padding: 0 6px 6px;
    flex-wrap: wrap;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 68px;
    padding: 0 12px;
  }

  .profile-toggle-btn {
    min-width: 220px;
  }

  .profile-dropdown {
    width: min(420px, 92vw);
  }

  .profile-dropdown-user strong {
    font-size: 16px;
  }

  .top-brand-link {
    min-height: 68px;
    padding: 8px 10px;
  }
}
