:root {
  --courier-brand-blue: #1492f4;
  --courier-brand-blue-strong: #0b76cf;
  --courier-brand-navy: #082342;
  --courier-brand-gold: #f6c347;
  --courier-brand-gold-soft: #ffe08a;
  --courier-ink: #102031;
  --courier-muted: #66758a;
  --courier-surface: rgba(255, 255, 255, 0.96);
  --courier-border: rgba(8, 35, 66, 0.1);
  --courier-shadow: 0 24px 60px rgba(8, 35, 66, 0.18);
  --courier-shadow-soft: 0 18px 40px rgba(8, 35, 66, 0.12);
}

body.courier-login-page,
body.courier-shell {
  font-family: "Barlow", sans-serif;
  color: var(--courier-ink);
}

body.courier-login-page .theme-loader {
  display: none;
}

body.courier-login-page .login-block {
  position: relative;
  padding: 48px 0;
  background:
    linear-gradient(115deg, rgba(8, 35, 66, 0.46) 0%, rgba(8, 35, 66, 0.28) 38%, rgba(11, 118, 207, 0.08) 100%),
    url("/img/sky_back.png") no-repeat center center;
  background-size: cover;
}

body.courier-login-page .login-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(246, 195, 71, 0.12), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(20, 146, 244, 0.1), transparent 28%);
  pointer-events: none;
}

body.courier-login-page .courier-login-container {
  position: relative;
  z-index: 1;
}

.courier-login__topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.courier-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(8, 35, 66, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.courier-language-switch__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.courier-language-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.courier-language-switch__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.courier-language-switch__link.is-active {
  background: rgba(246, 195, 71, 0.18);
  color: var(--courier-brand-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(246, 195, 71, 0.18);
}

.courier-login {
  min-height: calc(100vh - 96px);
  align-items: center;
}

.courier-login__story {
  max-width: 560px;
  padding: 24px 24px 24px 0;
  color: #fff;
}

.courier-login__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--courier-brand-gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.courier-login__story h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.15rem, 3.2vw, 3.45rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.courier-login__story p {
  max-width: 470px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.courier-login__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.courier-login__highlight {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(12px);
}

.courier-login__form {
  width: 100%;
}

.courier-login__card {
  border-radius: 28px;
  padding: 32px;
  background: rgba(10, 24, 47, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  color: #fff;
}

.courier-login__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(246, 195, 71, 0.16);
  border: 1px solid rgba(246, 195, 71, 0.26);
  color: var(--courier-brand-gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.courier-login__brand {
  margin-bottom: 1.75rem;
}

.courier-login__logo {
  display: block;
  width: min(240px, 100%);
  margin: 1rem 0 1rem;
}

.courier-login__brand h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.courier-login__brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.courier-login__field {
  margin-bottom: 1rem;
}

.courier-login__field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.55rem;
}

.courier-login__field label {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.courier-login__field-head label {
  margin-bottom: 0;
}

.courier-login__field-head span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 500;
}

.courier-login__input {
  display: block;
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.courier-login__input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.courier-login__input:focus {
  border-color: var(--courier-brand-gold);
  box-shadow: 0 0 0 4px rgba(246, 195, 71, 0.16);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.courier-login__submit {
  width: 100%;
  height: 58px;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--courier-brand-blue) 0%, #2ab0ff 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(20, 146, 244, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.courier-login__submit:hover,
.courier-login__submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(20, 146, 244, 0.32);
}

.courier-login__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.courier-login__switch a {
  color: var(--courier-brand-gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.courier-login__switch a:hover {
  color: var(--courier-brand-gold-soft);
}

body.courier-login-page .message {
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 35, 66, 0.55);
  color: #fff;
  box-shadow: var(--courier-shadow-soft);
}

body.courier-shell {
  background: linear-gradient(180deg, #f4f8fc 0%, #eef4fb 100%);
}

body.courier-shell #sidebar,
body.courier-shell .showChat_inner,
body.courier-shell .theme-loader {
  display: none !important;
}

body.courier-shell .pcoded,
body.courier-shell .pcoded .pcoded-container {
  background: transparent;
}

body.courier-shell .header-navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--courier-border);
  box-shadow: 0 10px 30px rgba(8, 35, 66, 0.08);
  backdrop-filter: blur(14px);
}

body.courier-shell .navbar-logo {
  width: 220px;
  padding: 0 22px;
  background: transparent;
}

body.courier-shell .navbar-logo__brand {
  display: flex;
  align-items: center;
}

body.courier-shell .navbar-logo__brand img {
  width: 148px;
  max-width: none;
}

body.courier-shell .header-navbar .navbar-wrapper .navbar-container {
  height: 72px;
  padding: 0 28px;
}

body.courier-shell .nav-left .header-search {
  display: none;
}

body.courier-shell .nav-left li > a,
body.courier-shell .nav-right li > a {
  display: inline-flex;
  align-items: center;
}

.courier-header-icon {
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--courier-brand-navy);
  background: rgba(20, 146, 244, 0.08);
  border: 1px solid rgba(20, 146, 244, 0.1);
}

.courier-header-icon i {
  font-size: 1.25rem;
}

.courier-header-icon:hover {
  color: var(--courier-brand-blue);
  background: rgba(20, 146, 244, 0.14);
}

.courier-occurrence-scanner {
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  background: #0b2545;
}

.courier-occurrence-scanner video,
.courier-occurrence-scanner canvas {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.courier-hub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(20, 146, 244, 0.08);
  border: 1px solid rgba(20, 146, 244, 0.14);
  color: var(--courier-brand-navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.courier-user-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(20, 146, 244, 0.08);
  border: 1px solid rgba(20, 146, 244, 0.1);
}

.courier-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--courier-brand-blue), var(--courier-brand-blue-strong));
  color: #fff;
}

.courier-user-avatar i {
  font-size: 1.1rem;
}

.courier-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.courier-user-meta small {
  color: var(--courier-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-user-meta strong {
  color: var(--courier-brand-navy);
  font-size: 1rem;
  font-weight: 700;
}

body.courier-shell .pcoded-main-container {
  min-height: calc(100vh - 72px);
  margin-top: 72px;
  background: transparent;
}

body.courier-shell .pcoded-wrapper {
  background: transparent;
}

body.courier-shell .pcoded-navbar {
  top: 72px;
  margin: 16px 0 24px 24px;
  height: calc(100vh - 96px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef9ff 0%, #dff3ff 52%, #c7eaff 100%);
  border: 1px solid rgba(20, 146, 244, 0.12);
  box-shadow: 0 18px 38px rgba(20, 146, 244, 0.14);
}

body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"],
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] {
  background: linear-gradient(180deg, #eef9ff 0%, #dff3ff 52%, #c7eaff 100%) !important;
}

body.courier-shell .pcoded-navbar .main-menu {
  padding: 12px 14px 24px;
  background: transparent !important;
}

body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .main-menu,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .main-menu,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .main-menu .main-menu-header,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .main-menu .main-menu-header,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item li.pcoded-hasmenu .pcoded-submenu,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item li.pcoded-hasmenu .pcoded-submenu {
  background: transparent !important;
}

.courier-side-intro {
  margin: 0 8px 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 146, 244, 0.14);
  color: var(--courier-brand-navy);
}

.courier-side-intro span {
  display: block;
  color: rgba(8, 35, 66, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.courier-side-intro strong {
  display: block;
  margin-top: 0.65rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.courier-side-intro small {
  display: block;
  margin-top: 0.5rem;
  color: rgba(8, 35, 66, 0.72);
  line-height: 1.5;
}

body.courier-shell .pcoded-item > li {
  margin-bottom: 6px;
}

body.courier-shell .pcoded-item > li > a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 16px !important;
  border-radius: 18px;
  color: rgba(8, 35, 66, 0.82) !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item > li > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item li.pcoded-hasmenu .pcoded-submenu li > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item li.pcoded-hasmenu .pcoded-submenu li > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-navigatio-lavel,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-navigatio-lavel {
  color: rgba(8, 35, 66, 0.82) !important;
}

body.courier-shell .pcoded-item > li > a .pcoded-micon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 0;
  border-radius: 14px;
  background: rgba(20, 146, 244, 0.12);
}

body.courier-shell .pcoded-item > li > a .pcoded-micon i {
  color: inherit;
}

body.courier-shell .pcoded-item > li.active > a,
body.courier-shell .pcoded-item > li.pcoded-trigger > a,
body.courier-shell .pcoded-item > li > a:hover {
  background: linear-gradient(135deg, rgba(20, 146, 244, 0.16), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-navy) !important;
}

body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item > li.active > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item > li.pcoded-trigger > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item > li:hover > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li.active > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li.pcoded-trigger > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li:hover > a {
  background: linear-gradient(135deg, rgba(20, 146, 244, 0.16), rgba(255, 255, 255, 0.72)) !important;
  color: var(--courier-brand-navy) !important;
  border-bottom-color: transparent !important;
}

body.courier-shell .pcoded-item > li.active > a .pcoded-micon,
body.courier-shell .pcoded-item > li.pcoded-trigger > a .pcoded-micon,
body.courier-shell .pcoded-item > li > a:hover .pcoded-micon {
  background: rgba(20, 146, 244, 0.2);
}

body.courier-shell .pcoded-submenu {
  padding: 6px 0 8px 16px;
  background: transparent;
}

body.courier-shell .pcoded-submenu li a {
  padding: 10px 12px 10px 18px !important;
  border-radius: 14px;
  color: rgba(8, 35, 66, 0.72) !important;
}

body.courier-shell .pcoded-submenu li a:hover,
body.courier-shell .pcoded-submenu li.active a {
  background: rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-navy) !important;
}

body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item .pcoded-hasmenu .pcoded-submenu li:hover > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item .pcoded-hasmenu .pcoded-submenu li.active > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item .pcoded-hasmenu .pcoded-submenu li:hover > a,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item .pcoded-hasmenu .pcoded-submenu li.active > a {
  background: rgba(20, 146, 244, 0.12) !important;
  color: var(--courier-brand-navy) !important;
}

body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item > li.pcoded-hasmenu > a:after,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="theme1"] .pcoded-item > li.pcoded-hasmenu .pcoded-submenu li.pcoded-hasmenu > a:after,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li.pcoded-hasmenu > a:after,
body.courier-shell .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li.pcoded-hasmenu .pcoded-submenu li.pcoded-hasmenu > a:after {
  color: rgba(8, 35, 66, 0.58) !important;
}

body.courier-shell .pcoded-content {
  margin-left: 300px;
  padding: 24px 28px 36px;
  min-height: calc(100vh - 72px);
}

body.courier-shell .pcoded-inner-content {
  padding: 0;
}

body.courier-shell .card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: var(--courier-surface);
  box-shadow: var(--courier-shadow-soft);
}

body.courier-shell .card-header-right {
  display: none;
}

body.courier-shell .card .card-header {
  padding: 24px 26px 0;
  border-bottom: 1px solid var(--courier-border);
  background: transparent;
}

body.courier-shell .card .card-header h5 {
  margin-bottom: 18px;
  color: var(--courier-brand-navy);
  font-size: 1.05rem;
  font-weight: 700;
}

body.courier-shell .card .card-block {
  padding: 0 26px 26px;
}

body.courier-shell .table {
  margin-bottom: 0;
}

body.courier-shell .table thead th {
  border-top: none;
  border-bottom: 1px solid rgba(8, 35, 66, 0.08);
  padding: 0.95rem 0.75rem;
  color: #7a8798;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.courier-shell .table td {
  padding: 0.95rem 0.75rem;
  border-top: 1px solid rgba(8, 35, 66, 0.06);
  color: var(--courier-ink);
  vertical-align: middle;
}

body.courier-shell .table-hover tbody tr:hover {
  background: rgba(20, 146, 244, 0.04);
}

body.courier-shell .message {
  margin-bottom: 1rem;
  border-radius: 18px;
  box-shadow: var(--courier-shadow-soft);
}

.courier-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.courier-dashboard__hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 30px;
  color: var(--courier-brand-navy);
  background: linear-gradient(135deg, #eef9ff 0%, #dbf2ff 55%, #bfe6ff 100%);
  border: 1px solid rgba(20, 146, 244, 0.12);
  box-shadow: 0 22px 48px rgba(20, 146, 244, 0.12);
}

.courier-dashboard__hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 195, 71, 0.22), transparent 68%);
  pointer-events: none;
}

.courier-dashboard__intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.courier-dashboard__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 146, 244, 0.1);
  color: var(--courier-brand-blue-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.courier-dashboard__title {
  max-width: 700px;
  margin: 1.2rem 0 0.75rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.courier-dashboard__copy {
  max-width: 640px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(8, 35, 66, 0.76);
}

.courier-dashboard__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.courier-dashboard__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.courier-metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.courier-metric-card {
  min-height: 148px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(20, 146, 244, 0.12);
}

.courier-metric-card span {
  display: block;
  color: rgba(8, 35, 66, 0.6);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-metric-card strong {
  display: block;
  margin: 12px 0 10px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--courier-brand-navy);
}

.courier-metric-card p {
  margin: 0;
  color: rgba(8, 35, 66, 0.72);
  line-height: 1.5;
}

.courier-panel {
  height: 100%;
}

.courier-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.courier-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.courier-panel__description {
  margin: 0.65rem 0 0;
  color: var(--courier-muted);
  line-height: 1.6;
}

.courier-panel__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.courier-panel__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: #f4f8fd;
  border: 1px solid rgba(8, 35, 66, 0.08);
  color: var(--courier-brand-navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.courier-chart-stage {
  position: relative;
  height: 320px;
}

.courier-chart-stage canvas {
  width: 100% !important;
  height: 100% !important;
}

.courier-map-stage {
  min-height: 540px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 35, 66, 0.04), rgba(20, 146, 244, 0.02));
}

.courier-empty {
  padding: 28px;
  border-radius: 18px;
  background: rgba(8, 35, 66, 0.03);
  color: var(--courier-muted);
  text-align: center;
}

.courier-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.courier-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(8, 35, 66, 0.06);
}

.courier-ranking-row__driver {
  color: var(--courier-brand-navy);
  font-weight: 700;
}

.courier-ranking-row__label {
  display: block;
  margin-top: 2px;
  color: var(--courier-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.courier-ranking-row__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 146, 244, 0.14), rgba(246, 195, 71, 0.24));
  color: var(--courier-brand-navy);
  font-weight: 800;
}

.courier-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.courier-action-link:hover {
  background: rgba(20, 146, 244, 0.14);
  color: var(--courier-brand-blue-strong);
}

.courier-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(246, 195, 71, 0.16);
  color: #8b6312;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.courier-kpi-note {
  color: var(--courier-muted);
  font-size: 0.9rem;
}

.courier-atendimento {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.courier-atendimento__metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.courier-filter-card .card-block,
.courier-table-card .card-block {
  padding-top: 22px;
}

.courier-filter-card,
.courier-filter-card .card-block {
  position: relative;
  overflow: visible !important;
}

.courier-filter-card {
  z-index: 30;
}

.courier-filter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.courier-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.courier-filter-field {
  margin: 0;
}

.courier-filter-field label,
.courier-filter-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--courier-brand-navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.courier-filter-field .form-control,
body.courier-shell .courier-filter-field .form-control {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: none;
  color: var(--courier-ink);
}

.courier-filter-field textarea.form-control,
body.courier-shell .courier-filter-field textarea.form-control {
  height: auto;
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.courier-filter-field .form-control:focus,
body.courier-shell .courier-filter-field .form-control:focus {
  border-color: rgba(20, 146, 244, 0.42);
  box-shadow: 0 0 0 4px rgba(20, 146, 244, 0.12);
}

.courier-hub-filter {
  grid-column: span 2;
}

.courier-hub-picker {
  position: relative;
}

.courier-hub-picker__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.courier-hub-picker__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 8px 12px;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 18px;
  background: #f8fbff;
  color: var(--courier-brand-navy);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.courier-hub-picker__toggle:hover,
.courier-hub-picker.is-open .courier-hub-picker__toggle {
  border-color: rgba(20, 146, 244, 0.42);
  box-shadow: 0 0 0 4px rgba(20, 146, 244, 0.1);
}

.courier-hub-picker__toggle > span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(20, 146, 244, 0.1);
  color: var(--courier-brand-navy);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.courier-hub-picker__toggle strong {
  min-width: 0;
  overflow: hidden;
  color: var(--courier-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.courier-hub-picker__toggle i {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--courier-brand-blue);
  transition: transform 0.2s ease;
}

.courier-hub-picker.is-open .courier-hub-picker__toggle i {
  transform: rotate(180deg);
}

.courier-hub-picker__clear {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--courier-brand-blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.courier-hub-picker__clear:disabled {
  display: none;
}

.courier-hub-picker__panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 300px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 35, 66, 0.16);
}

.courier-hub-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.courier-hub-picker__done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: none;
  border-radius: 14px;
  background: var(--courier-brand-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.courier-hub-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--courier-ink);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.courier-hub-choice:hover {
  border-color: rgba(20, 146, 244, 0.35);
  box-shadow: 0 8px 22px rgba(8, 35, 66, 0.08);
  transform: translateY(-1px);
}

.courier-hub-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.courier-hub-choice__icon,
.courier-hub-choice__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.courier-hub-choice__icon {
  background: rgba(20, 146, 244, 0.1);
  color: var(--courier-brand-blue);
}

.courier-hub-choice__text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.courier-hub-choice__check {
  display: none;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.courier-hub-choice.is-selected {
  border-color: var(--courier-brand-navy);
  background: var(--courier-brand-navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 35, 66, 0.18);
}

.courier-hub-choice.is-selected .courier-hub-choice__icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.courier-hub-choice.is-selected .courier-hub-choice__check {
  display: inline-flex;
}

.courier-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.courier-btn-primary,
.courier-btn-secondary,
.courier-ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.courier-btn-primary {
  background: linear-gradient(135deg, var(--courier-brand-blue), #39b3ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 146, 244, 0.22);
}

.courier-btn-primary:hover,
.courier-btn-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(20, 146, 244, 0.28);
}

.courier-btn-secondary {
  background: rgba(20, 146, 244, 0.08);
  border: 1px solid rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-blue-strong);
}

.courier-btn-secondary:hover,
.courier-btn-secondary:focus {
  color: var(--courier-brand-blue-strong);
  background: rgba(20, 146, 244, 0.14);
}

.courier-atendimento__map {
  min-height: 460px;
}

.courier-chart-stage--compact {
  height: 260px;
}

.courier-atendimento__toplist {
  margin-top: 22px;
}

.courier-driver-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.courier-driver-cell__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 146, 244, 0.18), rgba(246, 195, 71, 0.34));
  color: var(--courier-brand-navy);
  font-weight: 800;
}

.courier-driver-cell__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.courier-driver-cell__meta strong {
  color: var(--courier-brand-navy);
  font-size: 0.96rem;
  font-weight: 700;
}

.courier-driver-cell__meta small {
  color: var(--courier-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.courier-table-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-weight: 800;
}

.courier-table-metric--muted {
  background: rgba(8, 35, 66, 0.06);
  color: var(--courier-brand-navy);
}

.courier-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.courier-action-link {
  gap: 8px;
}

.courier-action-link--ghost {
  background: rgba(246, 195, 71, 0.18);
  color: #8b6312;
}

.courier-action-link--ghost:hover {
  background: rgba(246, 195, 71, 0.3);
  color: #8b6312;
}

.courier-action-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.courier-table-empty {
  margin: 6px 0;
}

.courier-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.courier-ticket-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 20px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid rgba(8, 35, 66, 0.08);
}

.courier-ticket-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.courier-ticket-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-ticket-card h6 {
  margin: 0.9rem 0 0;
  color: var(--courier-brand-navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.courier-ticket-card__meta {
  display: grid;
  gap: 12px;
}

.courier-ticket-card__item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 35, 66, 0.06);
}

.courier-ticket-card__item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--courier-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-ticket-card__item strong,
.courier-ticket-card__item p {
  display: block;
  margin: 0;
  color: var(--courier-brand-navy);
  line-height: 1.55;
}

.courier-ticket-card__item a {
  color: var(--courier-brand-blue-strong);
}

.courier-ticket-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.courier-ticket-btn {
  flex: 1;
  min-height: 46px;
}

.courier-ticket-btn--primary {
  background: linear-gradient(135deg, var(--courier-brand-blue), #39b3ff);
  color: #fff;
}

.courier-ticket-btn--secondary {
  background: rgba(246, 195, 71, 0.2);
  color: #8b6312;
}

.courier-ticket-btn--primary:hover,
.courier-ticket-btn--primary:focus {
  color: #fff;
}

.courier-ticket-btn--secondary:hover,
.courier-ticket-btn--secondary:focus {
  color: #8b6312;
  background: rgba(246, 195, 71, 0.3);
}

body.courier-shell .modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: var(--courier-shadow);
}

body.courier-shell .modal-header,
body.courier-shell .modal-footer {
  padding: 22px 24px;
  border-color: rgba(8, 35, 66, 0.08);
}

body.courier-shell .modal-body {
  padding: 8px 24px 24px;
}

body.courier-shell .modal-title {
  color: var(--courier-brand-navy);
  font-weight: 700;
}

.courier-modal-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.courier-modal-info-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(8, 35, 66, 0.06);
}

.courier-modal-info-item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--courier-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-modal-info-item strong,
.courier-modal-info-item p {
  display: block;
  margin: 0;
  color: var(--courier-brand-navy);
  line-height: 1.55;
}

body.courier-shell #awbsModalList .list-group-item {
  padding: 14px 16px;
  border-color: rgba(8, 35, 66, 0.08);
  color: var(--courier-brand-navy);
}

body.courier-shell .table-responsive {
  overflow-x: auto;
}

@media only screen and (max-width: 1400px) {
  .courier-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .courier-atendimento__metric-grid,
  .courier-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media only screen and (max-width: 1199px) {
  .courier-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media only screen and (min-width: 992px) {
  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar {
    width: 300px;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .main-menu,
  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar .main-menu {
    width: auto;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .main-menu-content,
  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .main-menu-header {
    display: block;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-content {
    margin-left: 300px;
    margin-right: 0;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .header-navbar .navbar-logo {
    width: 220px;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .header-navbar .navbar-logo a img {
    display: block;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar .pcoded-item > li > a {
    padding: 12px 16px !important;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar .pcoded-item > li > a .pcoded-mtext,
  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar .pcoded-item > li.pcoded-trigger > a .pcoded-mtext {
    opacity: 1;
    visibility: visible;
    position: static;
    padding-left: 0;
  }

  body.courier-shell .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar .pcoded-item li.pcoded-hasmenu > a:after {
    opacity: 1;
    visibility: visible;
  }
}

@media only screen and (max-width: 991px) {
  body.courier-shell .navbar-logo {
    width: auto !important;
    padding: 0 16px;
  }

  .courier-side-intro {
    display: none;
  }

  body.courier-shell .pcoded-navbar {
    top: 72px;
    margin: 0;
    height: calc(100vh - 72px);
    border-radius: 0 24px 24px 0;
  }

  body.courier-shell .pcoded-content {
    margin-left: 0;
    padding: 20px 18px 28px;
  }

  .courier-login {
    min-height: auto;
    padding: 28px 0;
  }

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

  .courier-filter-grid,
  .courier-ticket-grid,
  .courier-modal-info {
    grid-template-columns: 1fr;
  }

  .courier-atendimento__map {
    min-height: 360px;
  }
}

@media only screen and (max-width: 767px) {
  body.courier-login-page .login-block {
    padding: 18px 0;
  }

  .courier-login__topbar {
    justify-content: center;
    margin-bottom: 14px;
  }

  .courier-language-switch {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .courier-login__story {
    display: none;
  }

  .courier-login__card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .courier-login__switch {
    flex-direction: column;
    align-items: flex-start;
  }

  body.courier-shell .header-navbar .navbar-wrapper .navbar-container {
    height: 68px;
    padding: 0 16px;
  }

  body.courier-shell .nav-left li:not(:last-child) {
    display: none;
  }

  .courier-user-meta {
    display: none;
  }

  .courier-dashboard__hero {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .courier-metric-grid {
    grid-template-columns: 1fr;
  }

  .courier-atendimento__metric-grid,
  .courier-filter-grid,
  .courier-ticket-grid,
  .courier-modal-info {
    grid-template-columns: 1fr;
  }

  .courier-hub-filter {
    grid-column: 1 / -1;
  }

  .courier-hub-picker__summary {
    align-items: center;
  }

  .courier-hub-picker__chips {
    display: grid;
    grid-template-columns: 1fr;
  }

  .courier-hub-picker__panel {
    max-height: 340px;
  }

  .courier-hub-choice {
    width: 100%;
    border-radius: 16px;
  }

  .courier-hub-choice__text {
    flex: 1 1 auto;
  }

  .courier-chart-stage {
    height: 280px;
  }

  .courier-map-stage {
    min-height: 280px;
  }

  .courier-filter-actions,
  .courier-ticket-card__actions {
    flex-direction: column;
  }

  .courier-btn-primary,
  .courier-btn-secondary,
  .courier-ticket-btn {
    width: 100%;
  }

  .courier-driver-cell {
    min-width: 220px;
  }

  body.courier-shell .card .card-header,
  body.courier-shell .card .card-block {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.courier-crud-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}

.courier-crud-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 35, 66, 0.98) 0%, rgba(11, 118, 207, 0.95) 58%, rgba(32, 171, 255, 0.9) 100%);
  box-shadow: 0 28px 70px rgba(8, 35, 66, 0.28);
  color: #fff;
}

.courier-crud-hero::before,
.courier-crud-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.courier-crud-hero::before {
  width: 320px;
  height: 320px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(246, 195, 71, 0.34) 0%, rgba(246, 195, 71, 0) 68%);
}

.courier-crud-hero::after {
  width: 280px;
  height: 280px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 72%);
}

.courier-crud-hero__main,
.courier-crud-hero__actions {
  position: relative;
  z-index: 1;
}

.courier-crud-hero__main {
  max-width: 780px;
}

.courier-crud-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.courier-crud-hero h1 {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.courier-crud-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.courier-crud-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 240px;
}

.courier-crud-hero .courier-btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.courier-crud-hero .courier-btn-secondary:hover,
.courier-crud-hero .courier-btn-secondary:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.courier-crud-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.courier-crud-metrics .courier-metric-card {
  min-height: 132px;
}

.courier-crud-card {
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--courier-shadow-soft);
}

.courier-crud-card .card-header,
.courier-crud-card .card-block {
  padding: 28px 30px;
}

.courier-crud-card .card-header {
  border-bottom: 1px solid rgba(8, 35, 66, 0.06);
  background: transparent;
}

.courier-crud-card .card-block + .card-block {
  border-top: 1px solid rgba(8, 35, 66, 0.06);
}

.courier-panel__header h2 {
  margin: 0.6rem 0 0;
  color: var(--courier-brand-navy);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.courier-panel__header--compact h2 {
  font-size: 1.24rem;
}

.courier-crud-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.courier-crud-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.courier-crud-table thead th {
  padding: 0 16px 10px;
  border: 0;
  color: rgba(8, 35, 66, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.courier-crud-table thead th a {
  color: inherit;
}

body.courier-shell .courier-crud-table tbody tr {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(8, 35, 66, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.courier-shell .courier-crud-table tbody tr:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(20, 146, 244, 0.18),
    0 16px 26px rgba(8, 35, 66, 0.08);
}

body.courier-shell .courier-crud-table tbody td {
  padding: 16px;
  border-top: 0;
  border-bottom: 0;
  vertical-align: middle;
}

body.courier-shell .courier-crud-table tbody td:first-child {
  border-radius: 18px 0 0 18px;
}

body.courier-shell .courier-crud-table tbody td:last-child {
  border-radius: 0 18px 18px 0;
}

.courier-crud-table__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.courier-crud-table__title strong {
  color: var(--courier-brand-navy);
  font-weight: 700;
}

.courier-crud-table__title small {
  color: var(--courier-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.courier-crud-table__code {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(8, 35, 66, 0.06);
  color: var(--courier-brand-navy);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.courier-crud-table__muted {
  color: var(--courier-muted);
}

.courier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.courier-badge--blue {
  background: rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-blue-strong);
}

.courier-badge--gold {
  background: rgba(246, 195, 71, 0.18);
  color: #8b6312;
}

.courier-badge--green {
  background: rgba(46, 179, 99, 0.14);
  color: #15713c;
}

.courier-badge--gray {
  background: rgba(8, 35, 66, 0.08);
  color: var(--courier-brand-navy);
}

.courier-badge--red {
  background: rgba(217, 61, 86, 0.12);
  color: #b21e3f;
}

.courier-distance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 35, 66, 0.12);
}

.courier-distance-badge--green {
  background: linear-gradient(135deg, #1b9c5a, #0f7b46);
}

.courier-distance-badge--orange {
  background: linear-gradient(135deg, #f08a24, #d66b0c);
}

.courier-distance-badge--pink {
  background: linear-gradient(135deg, #df5c96, #bf3f74);
}

.courier-distance-badge--red {
  background: linear-gradient(135deg, #d93d56, #a81d34);
}

.courier-color-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--courier-brand-navy);
}

.courier-color-dot__swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(8, 35, 66, 0.1);
}

.courier-table-actions form {
  display: inline-flex;
}

.courier-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.courier-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.courier-pagination .page-item {
  list-style: none;
}

.courier-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
}

.courier-pagination .page-link:hover,
.courier-pagination .page-link:focus,
.courier-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--courier-brand-blue), #39b3ff);
  color: #fff;
}

.courier-pagination .page-item.disabled .page-link {
  background: rgba(8, 35, 66, 0.06);
  color: rgba(8, 35, 66, 0.34);
}

.courier-pagination__summary {
  margin: 0;
  color: var(--courier-muted);
  font-size: 0.9rem;
}

.courier-form-layout {
  row-gap: 24px;
}

.courier-form {
  margin-top: 24px;
}

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

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

.courier-form-grid--full {
  grid-template-columns: 1fr;
}

.courier-form-field {
  min-width: 0;
}

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

.courier-form-section-title {
  margin: 8px 0 0;
  color: var(--courier-brand-navy);
  font-size: 1rem;
  font-weight: 800;
}

.courier-form-field > .input,
.courier-form-field > .form-group,
.courier-form-field > .select,
.courier-form-field > .text,
.courier-form-field > .email,
.courier-form-field > .password,
.courier-form-field > .number,
.courier-form-field > .textarea {
  margin: 0;
}

.courier-form-field label,
.courier-driver-form .j-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--courier-brand-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-form-field .form-control,
body.courier-shell .courier-form-field .form-control,
.courier-driver-form .j-input input,
.courier-driver-form .j-input textarea,
.courier-driver-form .j-select select,
.courier-driver-form .j-input input[readonly] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: none;
  color: var(--courier-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.courier-form-field textarea.form-control,
body.courier-shell .courier-form-field textarea.form-control,
.courier-driver-form .j-input textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.courier-form-field .form-control:focus,
body.courier-shell .courier-form-field .form-control:focus,
.courier-driver-form .j-input input:focus,
.courier-driver-form .j-input textarea:focus,
.courier-driver-form .j-select select:focus {
  border-color: rgba(20, 146, 244, 0.42);
  box-shadow: 0 0 0 4px rgba(20, 146, 244, 0.12);
  background: #fff;
}

.courier-form-field .error-message {
  margin-top: 8px;
  color: #c83457;
  font-size: 0.84rem;
  font-weight: 600;
}

.courier-form-help {
  display: block;
  margin-top: 8px;
  color: var(--courier-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.courier-form-field .courier-color-input,
body.courier-shell .courier-form-field .courier-color-input {
  padding: 8px;
  cursor: pointer;
}

.route-area-editor {
  overflow: hidden;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 20px;
  background: #f8fbff;
}

.route-area-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.route-area-editor__header h3 {
  margin: 8px 0 6px;
  color: var(--courier-brand-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.route-area-editor__header p {
  margin: 0;
  color: var(--courier-muted);
  line-height: 1.5;
}

.route-area-editor__clear {
  flex: 0 0 auto;
}

.route-area-editor__map {
  height: 420px;
  min-height: 320px;
  border-top: 1px solid rgba(8, 35, 66, 0.08);
  background: #e9f2f8;
}

.route-area-editor__status {
  padding: 12px 18px;
  border-top: 1px solid rgba(8, 35, 66, 0.08);
  border-bottom: 1px solid rgba(8, 35, 66, 0.08);
  background: rgba(246, 195, 71, 0.12);
  color: #8b6312;
  font-size: 0.86rem;
  font-weight: 700;
}

.route-area-editor__status.has-area {
  background: rgba(24, 136, 93, 0.1);
  color: #18885d;
}

.route-area-editor .courier-form-help {
  padding: 12px 18px 16px;
}

@media only screen and (max-width: 767px) {
  .route-area-editor__header {
    flex-direction: column;
  }

  .route-area-editor__clear {
    width: 100%;
  }

  .route-area-editor__map {
    height: 340px;
  }
}

.finance-page {
  padding-bottom: 32px;
}

.finance-page .page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.finance-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #082342, #1492f4);
  color: #fff;
  box-shadow: 0 18px 44px rgba(8, 35, 66, 0.18);
}

.finance-hero h4 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.finance-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.finance-eyebrow {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px;
  min-width: 320px;
}

.finance-hero__metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.finance-hero__metrics span,
.finance-summary-card span,
.finance-selection-bar span,
.finance-document-summary span {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-hero__metrics span {
  color: rgba(255, 255, 255, 0.72);
}

.finance-hero__metrics strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(8, 35, 66, 0.08);
  border-radius: 18px;
  background: #fff;
  color: var(--courier-ink);
  box-shadow: 0 10px 28px rgba(8, 35, 66, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.finance-summary-card:hover,
.finance-summary-card.is-active {
  border-color: rgba(20, 146, 244, 0.46);
  box-shadow: 0 16px 34px rgba(20, 146, 244, 0.14);
  color: var(--courier-ink);
  transform: translateY(-2px);
}

.finance-summary-card span {
  color: var(--courier-brand-blue);
}

.finance-summary-card strong {
  color: var(--courier-brand-navy);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.25;
}

.finance-summary-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finance-summary-card__meta small,
.finance-summary-card em {
  color: var(--courier-muted);
  font-style: normal;
}

.finance-summary-card__meta b {
  color: #18885d;
  font-size: 1rem;
}

.finance-filter-card,
.finance-table-card,
.finance-document-card {
  border: 1px solid rgba(8, 35, 66, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(8, 35, 66, 0.07);
}

.finance-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.finance-filter-form--wide {
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
}

.finance-filter-field label,
.finance-document-field label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--courier-brand-navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-filter-field .form-control,
.finance-document-field .form-control,
body.courier-shell .finance-filter-field .form-control,
body.courier-shell .finance-document-field .form-control {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(8, 35, 66, 0.1);
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: none;
}

.finance-filter-actions,
.finance-document-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.05rem;
  border: none;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.finance-btn:hover {
  transform: translateY(-1px);
}

.finance-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.finance-btn--primary {
  background: var(--courier-brand-blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(20, 146, 244, 0.2);
}

.finance-btn--secondary {
  background: rgba(8, 35, 66, 0.08);
  color: var(--courier-brand-navy);
}

.finance-btn--success {
  background: #18885d;
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 136, 93, 0.22);
}

.finance-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.finance-section-header h5 {
  margin: 4px 0 0;
  color: var(--courier-brand-navy);
  font-weight: 800;
}

.finance-section-header > strong {
  color: #18885d;
  font-size: 1.25rem;
}

.finance-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--courier-brand-navy);
  font-weight: 800;
  cursor: pointer;
}

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

.finance-check span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(8, 35, 66, 0.18);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.finance-check input:checked + span {
  border-color: var(--courier-brand-blue);
  background: var(--courier-brand-blue);
  box-shadow: 0 6px 14px rgba(20, 146, 244, 0.22);
}

.finance-check input:checked + span::after {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.finance-check--all {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
}

.finance-table {
  min-width: 880px;
}

.finance-table thead th {
  border-top: none;
  color: var(--courier-brand-navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-table tbody td {
  vertical-align: middle;
}

.finance-table td strong {
  display: block;
  color: var(--courier-brand-navy);
}

.finance-table td small {
  display: block;
  margin-top: 3px;
  color: var(--courier-muted);
}

.finance-selection-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(8, 35, 66, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(8, 35, 66, 0.12);
}

.finance-selection-bar span {
  color: var(--courier-muted);
}

.finance-selection-bar strong {
  color: var(--courier-brand-navy);
}

.finance-empty {
  padding: 20px;
  border: 1px dashed rgba(8, 35, 66, 0.18);
  border-radius: 18px;
  background: #f8fbff;
  color: var(--courier-muted);
  font-weight: 700;
}

.finance-document-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.finance-document-form {
  display: grid;
  gap: 14px;
}

.finance-document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finance-document-field--full {
  grid-column: 1 / -1;
}

.finance-document-summary {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
}

.finance-document-summary div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(8, 35, 66, 0.08);
}

.finance-document-summary div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.finance-document-summary span {
  color: var(--courier-muted);
}

.finance-document-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--courier-brand-navy);
}

.finance-document-summary .finance-document-total {
  color: #18885d;
  font-size: 1.45rem;
}

@media only screen and (max-width: 1400px) {
  .finance-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 991px) {
  .finance-hero,
  .finance-selection-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-hero__metrics,
  .finance-summary-grid,
  .finance-filter-form,
  .finance-document-grid,
  .finance-document-fields {
    grid-template-columns: 1fr;
  }

  .finance-hero__metrics {
    min-width: 0;
  }

  .finance-filter-actions,
  .finance-document-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

.courier-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.courier-form-actions .btn,
.courier-form-actions button,
.courier-driver-form .j-footer .btn {
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  border: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.courier-form-actions .btn-primary,
.courier-driver-form .j-footer .btn-primary {
  background: linear-gradient(135deg, var(--courier-brand-blue), #39b3ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 146, 244, 0.22);
}

.courier-form-actions .btn-primary:hover,
.courier-form-actions .btn-primary:focus,
.courier-driver-form .j-footer .btn-primary:hover,
.courier-driver-form .j-footer .btn-primary:focus {
  color: #fff;
}

.courier-form-actions .btn-outline,
.courier-form-actions .btn-default,
.courier-driver-form .j-footer .btn-default {
  background: rgba(8, 35, 66, 0.06);
  color: var(--courier-brand-navy);
}

.courier-form-note {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.courier-form-note--inline {
  margin: 22px 0 28px;
}

.courier-form-note__item {
  padding: 16px 18px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(8, 35, 66, 0.06);
}

.courier-form-note__item strong {
  display: block;
  color: var(--courier-brand-navy);
  font-weight: 700;
}

.courier-form-note__item p {
  margin: 8px 0 0;
  color: var(--courier-muted);
  line-height: 1.6;
}

.courier-checkbox-field {
  padding: 18px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid rgba(8, 35, 66, 0.06);
}

.courier-checkbox-field .checkbox {
  margin: 0;
}

.courier-checkbox-field .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--courier-brand-navy);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.courier-checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.courier-driver-form .j-wrapper {
  max-width: none;
  width: 100%;
}

.courier-driver-form .j-pro {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.courier-driver-form .j-content {
  padding: 0;
  background: transparent;
}

.courier-driver-form .j-row {
  margin-bottom: 16px;
}

.courier-driver-form .j-unit {
  margin-bottom: 0;
}

.courier-driver-form .j-input {
  position: relative;
}

.courier-driver-form .j-icon-right {
  color: rgba(8, 35, 66, 0.4);
}

.courier-driver-form .j-file-button {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--courier-brand-blue), #39b3ff);
  color: #fff;
  font-weight: 700;
}

.courier-driver-form .j-input.j-append-small-btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.courier-driver-form .j-input.j-append-small-btn .j-file-button {
  position: static;
  width: fit-content;
  min-width: 120px;
  margin: 0;
}

.courier-driver-form .j-input.j-append-small-btn input[readonly] {
  padding: 0 16px;
}

.courier-driver-form .j-hint,
.courier-driver-form .j-tooltip {
  color: var(--courier-muted);
}

.courier-driver-form .divider {
  width: 100%;
  height: 1px;
  background: rgba(8, 35, 66, 0.08);
}

.courier-driver-form h5 {
  margin: 0 0 6px;
  color: var(--courier-brand-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.courier-driver-form p {
  color: var(--courier-muted);
}

.courier-driver-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.courier-driver-toolbar .btn,
.courier-driver-toolbar form {
  display: inline-flex;
}

.courier-driver-toolbar .btn {
  min-height: 46px;
  border-radius: 15px;
  font-weight: 700;
}

.courier-driver-avatar {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(8, 35, 66, 0.16);
}

.courier-driver-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(20, 146, 244, 0.18), rgba(246, 195, 71, 0.24));
  color: var(--courier-brand-navy);
  font-size: 2.7rem;
}

.courier-driver-status-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(46, 179, 99, 0.14);
  color: #15713c;
  font-size: 0.84rem;
  font-weight: 700;
}

.courier-driver-form .j-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(8, 35, 66, 0.08);
  background: transparent;
}

.courier-inline-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.courier-inline-stack strong {
  color: var(--courier-brand-navy);
  font-weight: 700;
}

.courier-inline-stack small {
  color: var(--courier-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

@media only screen and (max-width: 1200px) {
  .courier-crud-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 991px) {
  .courier-crud-hero {
    flex-direction: column;
    padding: 24px;
  }

  .courier-crud-hero__actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .courier-crud-metrics,
  .courier-form-grid,
  .courier-form-grid--3 {
    grid-template-columns: 1fr;
  }

  .courier-crud-card .card-header,
  .courier-crud-card .card-block {
    padding: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .courier-crud-hero {
    border-radius: 24px;
    padding: 22px 20px;
  }

  .courier-crud-hero h1 {
    font-size: 1.85rem;
  }

  .courier-crud-card {
    border-radius: 24px;
  }

  .courier-crud-card .card-header,
  .courier-crud-card .card-block {
    padding: 22px 20px;
  }

  .courier-crud-table {
    min-width: 640px;
  }

  .courier-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .courier-form-actions,
  .courier-driver-toolbar,
  .courier-driver-form .j-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .courier-btn-primary,
  .courier-btn-secondary,
  .courier-form-actions .btn,
  .courier-driver-toolbar .btn,
  .courier-driver-toolbar form,
  .courier-driver-form .j-footer .btn {
    width: 100%;
  }
}

body.courier-shell .courier-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

body.courier-shell .profile-notification {
  min-width: 220px;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(8, 35, 66, 0.18);
}

body.courier-shell .profile-notification li a {
  border-radius: 14px;
  color: var(--courier-brand-navy);
  font-weight: 600;
}

body.courier-shell .profile-notification li a:hover {
  background: rgba(20, 146, 244, 0.08);
}

.courier-login__quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 1.4rem 0 1.5rem;
}

.courier-login__quick-item {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.courier-login__quick-item i {
  color: var(--courier-brand-gold-soft);
  font-size: 1.1rem;
}

.courier-login__install {
  display: none;
  width: 100%;
  min-height: 54px;
  margin-top: 0.9rem;
  border: 1px solid rgba(246, 195, 71, 0.26);
  border-radius: 18px;
  background: rgba(246, 195, 71, 0.12);
  color: var(--courier-brand-gold-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.courier-login__install:hover,
.courier-login__install:focus {
  background: rgba(246, 195, 71, 0.18);
  color: #fff;
}

.courier-login__helper {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.courier-delivery-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.courier-delivery-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0b2242 0%, #123768 55%, #1492f4 100%);
  box-shadow: 0 26px 56px rgba(8, 35, 66, 0.2);
}

.courier-delivery-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.courier-delivery-hero__inner {
  position: relative;
  z-index: 1;
}

.courier-delivery-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.courier-delivery-hero h1 {
  margin: 1rem 0 0.6rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.courier-delivery-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.courier-delivery-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.courier-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.courier-delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}

.courier-delivery-stack {
  display: grid;
  gap: 20px;
}

.courier-delivery-panel {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 35, 66, 0.08);
  box-shadow: 0 18px 42px rgba(8, 35, 66, 0.08);
}

.courier-delivery-panel__title {
  margin: 0;
  color: var(--courier-brand-navy);
  font-size: 1.18rem;
  font-weight: 800;
}

.courier-delivery-panel__subtitle {
  margin: 0.45rem 0 0;
  color: var(--courier-muted);
  line-height: 1.6;
}

.courier-delivery-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.courier-delivery-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.courier-delivery-stat span {
  display: block;
  color: #708298;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-delivery-stat strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--courier-brand-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.courier-delivery-address {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f7fbff;
  color: var(--courier-ink);
  line-height: 1.7;
  word-break: break-word;
}

.courier-delivery-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.courier-delivery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.courier-delivery-link:hover {
  color: var(--courier-brand-blue-strong);
  text-decoration: none;
  background: rgba(20, 146, 244, 0.14);
}

.courier-delivery-form {
  display: grid;
  gap: 20px;
}

.courier-delivery-field {
  display: grid;
  gap: 8px;
}

.courier-delivery-field label {
  margin: 0;
  color: var(--courier-brand-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.courier-delivery-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.courier-delivery-field__hint {
  color: var(--courier-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.courier-delivery-input,
.courier-delivery-select,
.courier-delivery-textarea {
  width: 100%;
  border: 1px solid rgba(8, 35, 66, 0.12);
  border-radius: 18px;
  background: #fff;
  color: var(--courier-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.courier-delivery-input,
.courier-delivery-select {
  min-height: 58px;
  padding: 0 16px;
}

.courier-delivery-textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.courier-delivery-input:focus,
.courier-delivery-select:focus,
.courier-delivery-textarea:focus {
  border-color: var(--courier-brand-blue);
  box-shadow: 0 0 0 4px rgba(20, 146, 244, 0.12);
  outline: none;
}

.courier-delivery-upload {
  display: block;
}

.courier-delivery-file {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.courier-delivery-upload__surface {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 2px dashed rgba(20, 146, 244, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  cursor: pointer;
}

.courier-delivery-upload__empty {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.courier-delivery-upload__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-blue-strong);
  font-size: 1.2rem;
}

.courier-delivery-upload__title {
  color: var(--courier-brand-navy);
  font-size: 1rem;
  font-weight: 800;
}

.courier-delivery-upload__copy {
  color: var(--courier-muted);
  line-height: 1.6;
}

.courier-delivery-upload__preview {
  display: none;
  width: 100%;
  max-height: 280px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(8, 35, 66, 0.16);
}

.courier-delivery-upload.has-preview .courier-delivery-upload__preview {
  display: block;
}

.courier-delivery-upload.has-preview .courier-delivery-upload__empty {
  display: none;
}

.courier-delivery-scanner-stage {
  width: 100%;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1e36 0%, #123768 100%);
}

.courier-delivery-scanner-stage video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.courier-delivery-scanner-stage:empty::before {
  content: "Camera pronta para leitura";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courier-delivery-scanner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.courier-delivery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 18px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.courier-delivery-btn:hover,
.courier-delivery-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.courier-delivery-btn--primary {
  background: linear-gradient(135deg, var(--courier-brand-blue) 0%, #2ab0ff 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(20, 146, 244, 0.22);
}

.courier-delivery-btn--secondary {
  background: rgba(8, 35, 66, 0.06);
  color: var(--courier-brand-navy);
}

.courier-delivery-btn--ghost {
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
}

.courier-delivery-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(217, 61, 86, 0.08);
  color: #a91f35;
  font-size: 0.9rem;
  font-weight: 700;
}

.courier-delivery-note {
  color: var(--courier-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.courier-delivery-actions {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(8, 35, 66, 0.08);
  box-shadow: 0 18px 44px rgba(8, 35, 66, 0.14);
  backdrop-filter: blur(18px);
}

body.courier-customer-body {
  min-height: 100vh;
  margin: 0;
  background: #f3f7fb;
  color: var(--courier-ink);
  font-family: "Barlow", sans-serif;
}

.customer-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--courier-border);
  box-shadow: 0 12px 32px rgba(8, 35, 66, 0.08);
  backdrop-filter: blur(16px);
}

.customer-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--courier-brand-navy);
  font-weight: 800;
}

.customer-portal-brand:hover {
  color: var(--courier-brand-blue-strong);
  text-decoration: none;
}

.customer-portal-brand img {
  width: 138px;
  max-width: 42vw;
}

.customer-portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.customer-portal-nav a,
.customer-portal-logout,
.customer-portal-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.customer-portal-nav a {
  padding: 0 14px;
  color: rgba(8, 35, 66, 0.72);
}

.customer-portal-nav a:hover {
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
}

.customer-portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-portal-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(8, 35, 66, 0.06);
}

.customer-portal-lang a {
  min-width: 40px;
  padding: 0 8px;
  color: var(--courier-muted);
}

.customer-portal-lang a.is-active {
  background: #fff;
  color: var(--courier-brand-blue-strong);
  box-shadow: 0 4px 14px rgba(8, 35, 66, 0.08);
}

.customer-portal-logout {
  gap: 8px;
  padding: 0 14px;
  background: rgba(8, 35, 66, 0.06);
  color: var(--courier-brand-navy);
}

.customer-portal-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.customer-dashboard {
  display: grid;
  gap: 20px;
}

.customer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 35, 66, 0.9), rgba(20, 94, 168, 0.76)),
    url("/img/bg_login.png") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 24px 52px rgba(8, 35, 66, 0.18);
}

.customer-hero--compact {
  align-items: center;
}

.customer-hero span,
.customer-panel__head span,
.customer-metrics article span {
  display: block;
  color: rgba(20, 94, 168, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-hero span {
  color: var(--courier-brand-gold-soft);
}

.customer-hero h1 {
  margin: 0.55rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.customer-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.customer-hero__actions {
  flex: 0 0 auto;
}

.customer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.customer-btn:hover {
  text-decoration: none;
}

.customer-btn--primary {
  background: var(--courier-brand-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 146, 244, 0.24);
}

.customer-btn--secondary {
  background: #fff;
  color: var(--courier-brand-navy);
}

.customer-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.customer-metrics article,
.customer-panel {
  border: 1px solid var(--courier-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8, 35, 66, 0.08);
}

.customer-metrics article {
  padding: 18px;
}

.customer-metrics article strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--courier-brand-navy);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
}

.customer-metrics article p {
  margin: 0.65rem 0 0;
  color: var(--courier-muted);
  line-height: 1.4;
}

.customer-dashboard-grid,
.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.customer-panel {
  padding: 20px;
}

.customer-panel--wide {
  grid-column: 1 / -1;
}

.customer-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.customer-panel__head h2 {
  margin: 0.3rem 0 0;
  color: var(--courier-brand-navy);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
}

.customer-panel__head a {
  color: var(--courier-brand-blue-strong);
  font-weight: 800;
}

.customer-status-list,
.customer-package-stack,
.customer-detail-list,
.customer-timeline {
  display: grid;
  gap: 10px;
}

.customer-status-row,
.customer-package-mini,
.customer-detail-list div,
.customer-timeline li,
.customer-empty {
  border-radius: 8px;
  background: #f7fafc;
}

.customer-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.customer-status-row span {
  color: var(--courier-ink);
  font-weight: 700;
}

.customer-status-row span small {
  display: block;
  margin-top: 3px;
  color: var(--courier-muted);
  font-weight: 600;
}

.customer-status-row strong {
  color: var(--courier-brand-blue-strong);
  font-size: 1.25rem;
  font-weight: 800;
}

.customer-package-mini {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  color: var(--courier-ink);
  text-decoration: none;
}

.customer-package-mini:hover {
  color: var(--courier-brand-blue-strong);
  text-decoration: none;
}

.customer-package-mini strong,
.customer-table a {
  color: var(--courier-brand-navy);
  font-weight: 800;
}

.customer-package-mini span,
.customer-table small {
  color: var(--courier-muted);
}

.customer-empty {
  padding: 14px;
  color: var(--courier-muted);
  font-weight: 700;
}

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

.customer-table {
  width: 100%;
  border-collapse: collapse;
}

.customer-table th {
  padding: 12px;
  border-bottom: 1px solid var(--courier-border);
  color: var(--courier-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.customer-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(8, 35, 66, 0.06);
  color: var(--courier-ink);
  vertical-align: top;
}

.customer-table td small {
  display: block;
  margin-top: 3px;
}

.customer-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 220px)) auto;
  gap: 10px;
  align-items: end;
}

.customer-search__input,
.customer-search__select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--courier-border);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--courier-ink);
}

.customer-search__input {
  padding: 0 14px;
}

.customer-search__select {
  padding: 0 10px;
}

.customer-detail-list {
  margin: 0;
}

.customer-detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
}

.customer-detail-list dt {
  color: var(--courier-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-detail-list dd {
  margin: 0;
  color: var(--courier-ink);
  font-weight: 700;
  word-break: break-word;
}

.customer-delivery-photo {
  display: block;
  max-width: min(520px, 100%);
  border-radius: 8px;
  border: 1px solid var(--courier-border);
}

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

.customer-timeline li {
  position: relative;
  padding: 14px 14px 14px 40px;
}

.customer-timeline li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--courier-brand-blue);
  box-shadow: 0 0 0 4px rgba(20, 146, 244, 0.12);
}

.customer-timeline strong,
.customer-timeline span,
.customer-timeline p {
  display: block;
}

.customer-timeline strong {
  color: var(--courier-brand-navy);
  font-weight: 800;
}

.customer-timeline span,
.customer-timeline p {
  margin-top: 4px;
  color: var(--courier-muted);
}

.customer-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(20, 146, 244, 0.08);
  color: var(--courier-brand-blue-strong);
  font-weight: 800;
}

.customer-api-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-api-form__grid label {
  display: block;
  margin-bottom: 6px;
  color: var(--courier-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-api-form__full {
  grid-column: 1 / -1;
}

.customer-api-form__textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--courier-border);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--courier-ink);
  resize: vertical;
}

.customer-api-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.customer-api-token {
  display: block;
  max-width: 360px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--courier-brand-navy);
  font-size: 0.8rem;
  white-space: normal;
  word-break: break-all;
}

.customer-api-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 800;
}

.customer-api-status--active {
  background: rgba(20, 146, 244, 0.12);
  color: var(--courier-brand-blue-strong);
}

.customer-api-status--inactive {
  background: rgba(245, 158, 11, 0.14);
  color: #9a5b00;
}

.customer-api-status--removed {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.customer-api-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-link-action {
  color: var(--courier-brand-blue-strong);
  font-weight: 800;
}

.customer-link-action--danger {
  color: #b42318;
}

.customer-api-manual {
  display: grid;
  gap: 18px;
}

.customer-api-manual article {
  display: grid;
  gap: 10px;
}

.customer-api-manual h3 {
  margin: 0;
  color: var(--courier-brand-navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.customer-api-manual p {
  margin: 0;
  color: var(--courier-muted);
  line-height: 1.55;
}

.customer-api-manual pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf7;
}

.customer-api-manual code {
  color: inherit;
  white-space: pre;
}

body.courier-shell .card-header h1,
body.courier-shell .card-header h2,
body.courier-shell .card-header h3,
body.courier-shell .card-header h4,
body.courier-shell .card-header h5,
body.courier-shell .card-header h6,
body.courier-shell .courier-dashboard__eyebrow,
body.courier-shell .courier-dashboard__chip,
body.courier-shell .courier-metric-card > span,
body.courier-shell .courier-panel__eyebrow,
body.courier-shell .courier-panel__pill,
body.courier-shell .courier-ranking-row__label,
body.courier-shell .courier-crud-table thead th,
body.courier-shell .customer-table th,
body.courier-shell .finance-table thead th,
body.courier-shell .table thead th {
  text-transform: capitalize !important;
}

@media only screen and (max-width: 991px) {
  .courier-login__quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courier-delivery-grid {
    grid-template-columns: 1fr;
  }

  .courier-delivery-actions {
    bottom: 10px;
  }

  .customer-portal-topbar,
  .customer-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-portal-nav {
    margin-left: 0;
  }

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

  .customer-dashboard-grid,
  .customer-detail-grid,
  .customer-search,
  .customer-api-form__grid {
    grid-template-columns: 1fr;
  }
}

.courier-support-help-button {
  border: 0;
  cursor: pointer;
}

body.courier-support-readonly form[data-support-readonly-form="1"] button:disabled,
body.courier-support-readonly form[data-support-readonly-form="1"] input[type="submit"]:disabled,
body.courier-support-readonly form[data-support-readonly-form="1"] input[type="button"]:disabled,
.courier-support-readonly-disabled {
  cursor: not-allowed !important;
  filter: grayscale(0.35);
  opacity: 0.48 !important;
  pointer-events: none;
}

.courier-support-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.courier-support-modal .modal-dialog {
  max-width: min(96vw, 1320px);
}

.courier-support-modal__header {
  align-items: flex-start;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding: 20px 24px;
}

.courier-support-modal__header h5 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2px 0 4px;
}

.courier-support-modal__header small {
  color: #64748b;
}

.courier-support-modal__body {
  background: #f8fafc;
  padding: 22px;
}

.courier-support-content,
.courier-support-editor,
.courier-support-question,
.courier-support-answers {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 20px;
}

.courier-support-editor,
.courier-support-question,
.courier-support-answers {
  margin-top: 18px;
}

.courier-support-content {
  color: #1f2937;
  font-size: 0.96rem;
  line-height: 1.65;
  min-height: 140px;
}

.courier-support-content img,
.courier-support-content video {
  border-radius: 6px;
  display: block;
  height: auto;
  margin: 14px 0;
  max-width: 100%;
}

.courier-support-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  min-height: 100px;
}

.courier-support-answer-item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 0;
}

.courier-support-answer-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.courier-support-answer-item strong {
  color: #0f172a;
  display: block;
  margin-bottom: 6px;
}

.courier-support-answer-item p {
  color: #334155;
  line-height: 1.6;
  margin-bottom: 6px;
}

.courier-support-answer-item small {
  color: #64748b;
}

.courier-support-dropzone {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  min-height: 130px;
  padding: 18px;
  position: relative;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.courier-support-dropzone i {
  color: #0f766e;
  font-size: 2rem;
}

.courier-support-dropzone strong {
  color: #0f172a;
}

.courier-support-dropzone input[type="file"] {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.courier-support-dropzone.is-dragging {
  background: #ecfeff;
  border-color: #0891b2;
}

.courier-support-editor-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.courier-support-editor-toolbar button,
.courier-support-editor-toolbar select,
.courier-support-color {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
}

.courier-support-editor-toolbar select {
  font-weight: 600;
  min-width: 150px;
}

.courier-support-editor-toolbar button:hover,
.courier-support-color:hover {
  background: #eef6ff;
  border-color: #1492f4;
}

.courier-support-color {
  gap: 6px;
  margin: 0;
}

.courier-support-color input[type="color"] {
  border: 0;
  cursor: pointer;
  height: 22px;
  padding: 0;
  width: 28px;
}

.courier-support-rich-editor {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0 0 8px 8px;
  color: #1f2937;
  line-height: 1.65;
  min-height: 360px;
  outline: none;
  padding: 18px;
}

.courier-support-rich-editor:focus {
  border-color: #1492f4;
  box-shadow: 0 0 0 3px rgba(20, 146, 244, 0.14);
}

.courier-support-rich-editor:empty::before {
  color: #94a3b8;
  content: "Digite o conteúdo do manual desta página...";
}

.courier-training-rich-editor:empty::before {
  content: "Digite o conteúdo da aula com textos, listas, links, imagens por URL e tabelas...";
}

.courier-support-rich-editor img,
.courier-support-rich-editor video,
.courier-support-content img,
.courier-support-content video {
  border-radius: 6px;
  display: block;
  height: auto;
  margin: 14px 0;
  max-width: 100%;
}

.courier-support-source-editor {
  border-radius: 0 0 8px 8px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  min-height: 360px;
}

.courier-training-source-editor {
  border-radius: 0 0 8px 8px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  min-height: 320px;
}

.courier-support-rich-editor table,
.courier-support-content table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
}

.courier-support-rich-editor th,
.courier-support-rich-editor td,
.courier-support-content th,
.courier-support-content td {
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 8px 10px;
  vertical-align: top;
}

.courier-support-rich-editor th,
.courier-support-content th {
  background: #f1f5f9;
  color: #0f172a;
}

.courier-support-rich-editor blockquote,
.courier-support-content blockquote {
  border-left: 4px solid #1492f4;
  color: #475569;
  margin: 16px 0;
  padding: 8px 0 8px 14px;
}

.courier-support-rich-editor pre,
.courier-support-content pre {
  background: #0f172a;
  border-radius: 6px;
  color: #e2e8f0;
  overflow-x: auto;
  padding: 12px;
}

.courier-training-section {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 22px;
  padding-top: 22px;
}

.courier-training-builder-item,
.courier-training-lesson,
.courier-training-question {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 18px;
}

.courier-training-builder-item__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.courier-training-lesson h3 {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.courier-training-content {
  color: #334155;
  line-height: 1.7;
}

.courier-training-content img {
  border-radius: 6px;
  height: auto;
  max-width: 100%;
}

.courier-training-video {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border: 0;
  border-radius: 8px;
  display: block;
  margin: 12px 0 16px;
  max-height: 520px;
  width: 100%;
}

.courier-training-option {
  align-items: flex-start;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 10px 0 0;
  padding: 12px;
}

.courier-training-option:hover {
  background: #f8fafc;
}

.courier-training-result-detail {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
}

.courier-training-result-detail summary {
  color: #0f172a;
  cursor: pointer;
  font-weight: 700;
}

.courier-training-result-detail div {
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

@media only screen and (max-width: 767px) {
  body.courier-shell .header-navbar .navbar-wrapper .navbar-container {
    padding: 0 12px;
  }

  body.courier-shell .courier-user-toggle {
    padding: 8px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  body.courier-shell .courier-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .courier-login__quick-grid {
    grid-template-columns: 1fr;
  }

  .courier-login__quick-item {
    padding: 13px 14px;
  }

  .courier-delivery-page {
    gap: 18px;
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
  }

  .courier-delivery-hero {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .courier-delivery-hero h1 {
    font-size: 1.85rem;
  }

  .courier-delivery-panel {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .courier-delivery-meta-grid {
    grid-template-columns: 1fr;
  }

  .courier-delivery-scanner-stage,
  .courier-delivery-scanner-stage:empty::before {
    min-height: 220px;
  }

  .courier-delivery-link-row,
  .courier-delivery-scanner-actions,
  .courier-delivery-actions {
    flex-direction: column;
  }

  .courier-delivery-link,
  .courier-delivery-btn {
    width: 100%;
  }

  .customer-portal-main {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .customer-portal-topbar {
    gap: 12px;
    padding: 14px;
  }

  .customer-portal-actions,
  .customer-portal-nav {
    flex-wrap: wrap;
  }

  .customer-portal-brand span,
  .customer-portal-logout span {
    display: none;
  }

  .customer-hero {
    padding: 22px;
  }

  .customer-metrics {
    grid-template-columns: 1fr;
  }

  .customer-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
