:root {
  --cmil-blue: #317c75;
  --cmil-blue-dark: #28665f;
  --cmil-green: #317c75;
  --cmil-green-dark: #28665f;
  --cmil-yellow: #aa1114;
  --cmil-red: #aa1114;
  --cmil-secondary: #111827;
  --cmil-bg: #f4f7fb;
}

body {
  background: var(--cmil-bg);
  color: #1e293b;
}

.accessibility-button {
  position: fixed;
  bottom: 22px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--cmil-green);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  z-index: 1080;
  transition: transform .2s ease, background-color .2s ease;
}

.accessibility-button:hover,
.accessibility-button:focus {
  background-color: var(--cmil-red);
  outline: none;
  transform: scale(1.08);
}

.accessibility-menu {
  position: fixed;
  left: 20px;
  bottom: 94px;
  width: 292px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  z-index: 1079;
  overflow: hidden;
  transform: scale(.95) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.accessibility-menu.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.accessibility-menu .menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background-color: var(--cmil-green);
  font-weight: 700;
}

.accessibility-menu .close-btn {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.accessibility-menu .menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accessibility-menu .menu-list li {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color .2s;
}

.accessibility-menu .menu-list li:last-child {
  border-bottom: 0;
}

.accessibility-menu .menu-list li:hover {
  background-color: #f5f5f5;
}

.accessibility-menu .menu-list i {
  color: #555;
  font-size: 1.1rem;
}

body.grayscale {
  filter: grayscale(100%);
}

body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #ff0 !important;
}

body.high-contrast .card,
body.high-contrast .topbar,
body.high-contrast .brandbar,
body.high-contrast .mainmenu,
body.high-contrast .site-footer--itapevi,
body.high-contrast .footer-card,
body.high-contrast .admin-sidebar {
  background: #111 !important;
  border-color: #ff0 !important;
  color: #fff !important;
}

body.high-contrast .text-muted,
body.high-contrast .footer-text-muted {
  color: #ddd !important;
}

body.negative-contrast {
  filter: invert(100%);
}

body.negative-contrast img,
body.negative-contrast video,
body.negative-contrast iframe {
  filter: invert(100%);
}

body.underline-links a {
  text-decoration: underline !important;
}

body.readable-font {
  font-family: Arial, Verdana, sans-serif !important;
}

.login-portal {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 24, 58, .96), rgba(10, 43, 83, .78)),
    url("assets/img/bg_login.webp");
  background-size: cover;
  background-position: center;
}

.login-portal::before {
  content: "CMIL";
  position: absolute;
  left: 5%;
  bottom: 12%;
  color: rgba(255, 255, 255, .07);
  font-size: clamp(90px, 16vw, 220px);
  font-weight: 900;
  transform: rotate(-4deg);
}

.login-portal-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(49, 124, 117, .28), transparent 34%);
}

.login-portal-inner {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 70px;
}

.login-copy {
  max-width: 520px;
  margin-left: auto;
}

.login-eyebrow {
  color: #4ade80;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-copy h1 {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.login-copy h1 span,
.login-copy h1 strong {
  display: block;
}

.login-copy h1 strong {
  color: #3b82f6;
}

.login-copy p {
  max-width: 410px;
  color: rgba(255, 255, 255, .84);
  font-weight: 700;
  font-size: 12px;
}

.login-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.login-pills span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-pills i,
.login-tip strong {
  color: #4ade80;
}

.login-tip {
  max-width: 285px;
  margin-top: 20px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .06);
}

.login-card {
  width: 100%;
  max-width: 360px;
  color: #172033;
  background: #f4f7fb;
  border-radius: 18px;
  padding: 32px 34px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .22);
  text-align: center;
}

.login-card-logo {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.login-card-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.login-card h2 {
  max-width: 260px;
  margin: 0 auto 4px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card-subtitle {
  margin-bottom: 22px;
  color: #8794aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-form {
  text-align: left;
}

.login-form label {
  display: block;
  margin: 14px 0 7px;
  color: #73819a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 13px;
  color: #3478f6;
  background: #eaf2ff;
  border: 1px solid transparent;
  border-radius: 10px;
}

.login-input:focus-within {
  border-color: #77a6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

.login-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 12px;
}

.login-back {
  display: block;
  margin: 12px 0 18px;
  color: #3478f6;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.login-submit {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #3478f6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(52, 120, 246, .26);
}

.login-submit:disabled {
  opacity: .7;
}

.login-card-copy {
  margin-top: 26px;
  color: #9aa8bd;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 168px 1fr;
  background:
    linear-gradient(rgba(235, 241, 252, .92), rgba(235, 241, 252, .92)),
    url("assets/img/bg_header.png");
  background-size: cover;
  color: #07152f;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px 10px 14px;
  background: rgba(247, 251, 255, .94);
  border-radius: 0 22px 22px 0;
  box-shadow: 10px 0 30px rgba(26, 44, 82, .08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #0b2a63;
  text-decoration: none;
}

.admin-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.admin-brand span {
  display: grid;
  line-height: .95;
  font-size: 11px;
  font-weight: 900;
}

.admin-brand b {
  color: #2f73f6;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a,
.admin-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  color: #8796ac;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}

.admin-menu a.active,
.admin-menu a:hover,
.admin-menu button:hover {
  color: #2f73f6;
  background: #dce9ff;
}

.admin-menu i {
  font-size: 15px;
}

.admin-user {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid #d8e2f2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0b2a63;
  border-radius: 50%;
}

.admin-user strong,
.admin-user span {
  display: block;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.admin-user span {
  color: #8da0b8;
}

.admin-main {
  min-width: 0;
  padding: 18px;
}

.admin-dashboard {
  max-width: 1160px;
  margin: 0 auto;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-topbar p {
  margin: 0 0 2px;
  color: #526483;
  font-size: 12px;
}

.admin-topbar p strong {
  color: #2f73f6;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.admin-search {
  min-width: 255px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #7f8da8;
  background: rgba(255, 255, 255, .75);
  border-radius: 8px;
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 274px;
  gap: 16px;
}

.metric-card,
.dashboard-panel,
.side-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(207, 219, 239, .72);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .07);
}

.metric-card {
  min-height: 114px;
  padding: 18px;
}

.metric-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 14px;
}

.metric-icon.blue { color: #2f73f6; background: #e8f0ff; }
.metric-icon.green { color: #19b978; background: #e4fbf1; }
.metric-icon.purple { color: #8a4cf6; background: #f0e7ff; }
.metric-icon.red { color: #ff5a5f; background: #ffe9eb; }

.metric-card span {
  display: block;
  color: #7788a5;
  font-size: 10px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
}

.uploads-panel {
  grid-column: 1 / span 4;
  padding: 16px;
}

.dashboard-side {
  grid-column: 5;
  grid-row: 1 / span 2;
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-header h2,
.side-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.panel-header a {
  padding: 6px 10px;
  color: #fff;
  background: #073166;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.panel-header.compact a {
  color: #07152f;
  background: #f4f7fb;
}

.panel-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}

.chart-card {
  min-height: 210px;
  padding: 14px;
  border: 1px solid #d5e1f2;
  border-radius: 10px;
}

.panel-kicker {
  color: #2f73f6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.chart-card h3 {
  margin: 4px 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.mini-bars {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 14px;
}

.mini-bars div {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.bar-track {
  width: 16px;
  height: 94px;
  display: flex;
  align-items: end;
  background: #eaf1ff;
  border-radius: 999px;
  overflow: hidden;
}

.bar-track span {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, #17b978, #2f73f6);
  border-radius: 999px;
}

.mini-bars strong {
  font-size: 11px;
}

.mini-bars small {
  color: #60728f;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.status-progress {
  margin-bottom: 11px;
}

.status-progress div,
.rank-row,
.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-progress div {
  font-size: 11px;
}

.status-progress em {
  display: block;
  height: 6px;
  margin-top: 4px;
  background: #eaf1ff;
  border-radius: 999px;
  overflow: hidden;
}

.status-progress b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f73f6, #19b978);
}

.rank-row {
  padding: 10px 6px;
  border-bottom: 1px solid #edf2fb;
  font-size: 12px;
  font-weight: 800;
}

.rank-row strong {
  min-width: 28px;
  color: #19b978;
  background: #e4fbf1;
  border-radius: 999px;
  text-align: center;
}

.side-card {
  padding: 16px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.quick-actions a {
  min-height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.quick-actions a:nth-child(1) { background: #3d7cf6; }
.quick-actions a:nth-child(2) { background: #18bd74; }
.quick-actions a:nth-child(3) { background: #f59e0b; }
.quick-actions a:nth-child(4) { background: #854fe8; }

.quick-actions i {
  font-size: 20px;
}

.pending-row {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #d9e4f4;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.pending-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pending-row strong {
  min-width: 24px;
  padding: 2px 6px;
  background: #f5f9ff;
  border-radius: 999px;
  text-align: center;
}

.notice {
  padding: 8px 0;
  border-bottom: 1px solid #edf2fb;
  font-size: 11px;
}

.notice strong,
.notice span {
  display: block;
}

.notice span {
  color: #6c7e9b;
}

.list-page {
  max-width: 1180px;
  margin: 0 auto;
}

.list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.list-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.list-header span {
  color: #2f73f6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.list-header h1 {
  margin: 2px 0 0;
  color: #07152f;
  font-size: 24px;
  font-weight: 900;
}

.list-header p {
  margin: 4px 0 0;
  color: #667895;
  font-size: 12px;
  font-weight: 700;
}

.list-filter-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .9fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .08);
}

.list-filter-card label {
  display: grid;
  gap: 6px;
  color: #5f708c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.list-filter-card input,
.list-filter-card select {
  width: 100%;
  height: 40px;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  outline: none;
  padding: 0 12px;
  color: #172033;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 700;
}

.list-filter-card input:focus,
.list-filter-card select:focus {
  border-color: #8db5ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 115, 246, .12);
}

.list-filter-actions {
  display: flex;
  gap: 8px;
}

.modern-btn.ghost {
  color: #667895;
  background: #f5f8fd;
  border: 1px solid #d9e4f4;
}

.list-table-card {
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .08);
}

.list-table-head,
.list-row {
  display: grid;
  grid-template-columns: 1.25fr 1.55fr 1fr .9fr 1fr 48px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.list-table-head {
  color: #8292aa;
  background: #f7faff;
  border-bottom: 1px solid #e6eef9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.list-row {
  color: #172033;
  text-decoration: none;
  border-bottom: 1px solid #edf2fb;
  transition: background-color .15s ease, transform .15s ease;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row:hover {
  color: #172033;
  background: #f8fbff;
}

.list-row strong {
  font-size: 12px;
  font-weight: 900;
}

.list-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.list-person span:last-child {
  min-width: 0;
}

.list-person strong,
.list-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-person small {
  color: #6f819d;
  font-size: 11px;
}

.avatar-mini {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2f73f6, #19b978);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.list-actions {
  display: flex;
  justify-content: flex-end;
}

.mobile-label {
  display: none;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #8292aa;
  text-align: center;
}

.empty-state i {
  color: #2f73f6;
  font-size: 34px;
}

.empty-state strong {
  color: #172033;
}

.pagination-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.pagination-bar span {
  color: #5f708c;
  font-size: 13px;
  font-weight: 800;
}

.tracking-shell {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(23, 32, 51, .08);
  padding: 22px;
}

.tracking-head {
  margin-bottom: 18px;
}

.tracking-head span {
  color: #317c75;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tracking-head h1 {
  color: #07152f;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin: 4px 0 6px;
}

.tracking-head p {
  color: #667895;
  margin: 0;
}

.tracking-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr .8fr;
}

.tracking-card,
.tracking-result {
  background: #fff;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, .06);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.tracking-card.muted {
  background: #f8fbff;
}

.tracking-card h2 {
  color: #07152f;
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.tracking-card p {
  color: #667895;
  font-size: 13px;
  margin: 0;
}

.tracking-card label {
  color: #5f708c;
  display: grid;
  font-size: 10px;
  font-weight: 900;
  gap: 6px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tracking-card input {
  background: #f8fbff;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
}

.tracking-result {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.tracking-result div {
  display: grid;
  gap: 5px;
}

.tracking-result span {
  color: #667895;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tracking-result strong {
  color: #07152f;
  font-size: 15px;
}

.tracking-result p {
  border-top: 1px solid #edf3fa;
  color: #26364f;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
}

.settings-page {
  max-width: 1180px;
  margin: 0 auto;
}

.settings-grid,
.settings-form-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

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

.settings-card {
  padding: 16px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .08);
}

.settings-title {
  margin-bottom: 14px;
}

.settings-title span {
  color: #2f73f6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.settings-title h2 {
  margin: 2px 0 0;
  color: #07152f;
  font-size: 18px;
  font-weight: 900;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  color: #5f708c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  outline: none;
  color: #172033;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 700;
}

.settings-form input,
.settings-form select {
  height: 40px;
  padding: 0 12px;
}

.settings-form textarea {
  padding: 10px 12px;
  resize: vertical;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
  border-color: #8db5ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 115, 246, .12);
}

.switch-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
}

.switch-line input {
  width: 18px;
  height: 18px;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
  text-align: left;
}

.user-row:hover {
  background: #f3f8ff;
}

.user-row strong,
.user-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row strong {
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}

.user-row small {
  color: #6f819d;
  font-size: 11px;
}

.user-row em {
  color: #2f73f6;
  background: #e8f0ff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.user-row i.active {
  color: #19b978;
}

.user-row i.inactive {
  color: #ef4444;
}

.info-hero,
.wizard-shell {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .08);
}

.info-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
}

.info-hero span,
.wizard-intro span {
  color: #2f73f6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.info-hero h1,
.wizard-intro h1 {
  margin: 4px 0 6px;
  color: #07152f;
  font-weight: 900;
}

.info-hero p,
.wizard-intro p,
.wizard-help {
  margin: 0;
  color: #667895;
  font-size: 13px;
  font-weight: 700;
}

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

.info-card,
.info-steps {
  padding: 18px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .08);
}

.info-card i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f73f6;
  background: #e8f0ff;
  border-radius: 11px;
  font-size: 20px;
  margin-bottom: 12px;
}

.info-card h2,
.info-steps h2 {
  color: #07152f;
  font-size: 17px;
  font-weight: 900;
}

.info-card p,
.info-card li,
.info-steps li {
  color: #526483;
  font-size: 13px;
  line-height: 1.55;
}

.info-steps {
  margin-top: 14px;
}

.info-steps ol {
  margin-bottom: 0;
  padding-left: 18px;
}

.wizard-shell {
  padding: 20px;
}

.wizard-intro {
  margin-bottom: 18px;
}

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

.wizard-steps button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  border: 1px solid #d9e4f4;
  border-radius: 12px;
  padding: 8px 10px;
  color: #667895;
  background: #f8fbff;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.wizard-steps strong {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667895;
  background: #eaf1ff;
  border-radius: 9px;
  flex: 0 0 auto;
}

.wizard-steps button.active,
.wizard-steps button.done {
  color: #07152f;
  border-color: #b8cffb;
  background: #eef5ff;
}

.wizard-steps button.active strong,
.wizard-steps button.done strong {
  color: #fff;
  background: #2f73f6;
}

.wizard-card {
  background: #fff;
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  overflow: hidden;
}

.wizard-panel {
  padding: 18px;
}

.wizard-panel h2 {
  margin: 0 0 14px;
  color: #07152f;
  font-size: 18px;
  font-weight: 900;
}

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

.wizard-grid label,
.wizard-docs label {
  display: grid;
  gap: 6px;
  color: #5f708c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.wizard-grid label small {
  color: #317c75;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.availability-field {
  display: grid;
  gap: 10px;
}

.availability-title {
  color: #5f708c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.availability-options label {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d9e4f4;
  border-radius: 12px;
  color: #172033;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0;
  min-height: 42px;
  padding: 10px 12px;
  text-transform: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.availability-options label:has(input:checked) {
  background: #eef7f6;
  border-color: #317c75;
  box-shadow: 0 0 0 3px rgba(49, 124, 117, .12);
}

.availability-options input {
  accent-color: #317c75;
  height: 16px;
  width: 16px;
}

.availability-extra {
  width: 100%;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  outline: none;
  color: #172033;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 12px;
}

.wizard-grid .span-2 {
  grid-column: span 2;
}

.wizard-grid input,
.wizard-grid select,
.wizard-grid textarea,
.wizard-docs input {
  width: 100%;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  outline: none;
  color: #172033;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 700;
}

.wizard-grid input,
.wizard-grid select,
.wizard-docs input {
  height: 40px;
  padding: 0 12px;
}

.wizard-grid textarea {
  padding: 10px 12px;
  resize: vertical;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: #f8fbff;
  border-top: 1px solid #e6eef9;
}

.finish-card {
  align-items: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.finish-icon {
  align-items: center;
  background: #e8f7ef;
  border: 1px solid #bfe7d0;
  border-radius: 999px;
  color: #17844b;
  display: inline-flex;
  font-size: 38px;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.finish-card > span {
  color: #317c75;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finish-card h1 {
  color: #07152f;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.finish-card > p {
  color: #5f708c;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.finish-protocol {
  background: #f8fbff;
  border: 1px solid #d9e4f4;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  min-width: min(100%, 380px);
  padding: 16px 20px;
}

.finish-protocol small {
  color: #667895;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finish-protocol strong {
  color: #07152f;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;
}

.finish-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  width: 100%;
}

.finish-grid div {
  background: #fff;
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, .06);
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px;
}

.finish-grid i {
  color: #317c75;
  font-size: 24px;
}

.finish-grid strong {
  color: #07152f;
  font-size: 14px;
}

.finish-grid p {
  color: #667895;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 8px;
}

.review-page {
  max-width: 1180px;
  margin: 0 auto;
}

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

.review-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.review-header span,
.review-kicker {
  color: #2f73f6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.review-header h1,
.review-profile-head h2,
.review-section-title h2 {
  margin: 0;
  color: #07152f;
  font-weight: 900;
}

.review-header h1 {
  font-size: 22px;
}

.review-back,
.modern-btn,
.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.review-back {
  height: 36px;
  padding: 0 13px;
  color: #5e718f;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #dbe5f4;
  border-radius: 9px;
  font-size: 12px;
}

.review-back:hover,
.modern-btn:hover,
.icon-action:hover {
  transform: translateY(-1px);
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 398px;
  gap: 14px;
  align-items: start;
}

.review-main {
  display: grid;
  gap: 14px;
}

.review-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(207, 219, 239, .85);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(33, 55, 98, .08);
  padding: 16px;
}

.review-profile-head,
.review-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.review-profile-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #e7eef9;
}

.review-profile-head h2 {
  margin-top: 4px;
  font-size: 20px;
}

.review-profile-head p {
  margin: 4px 0 0;
  color: #667895;
  font-size: 12px;
  font-weight: 800;
}

.review-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  padding-top: 14px;
}

.review-info-grid div {
  min-width: 0;
}

.review-info-grid .wide {
  grid-column: 1 / -1;
}

.review-info-grid span {
  display: block;
  color: #8292aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-info-grid strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.review-side {
  display: grid;
  gap: 14px;
}

.review-decision,
.review-history {
  padding: 14px;
}

.review-decision {
  display: grid;
  gap: 12px;
}

.review-decision label,
.document-form label {
  display: grid;
  gap: 6px;
  color: #5f708c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.review-decision select,
.review-decision textarea,
.document-form select,
.document-form input {
  width: 100%;
  border: 1px solid #d9e4f4;
  border-radius: 9px;
  outline: none;
  color: #172033;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 600;
}

.review-decision select,
.document-form select,
.document-form input {
  height: 38px;
  padding: 0 11px;
}

.review-decision textarea {
  min-height: 88px;
  padding: 10px 11px;
  resize: vertical;
}

.review-decision select:focus,
.review-decision textarea:focus,
.document-form select:focus,
.document-form input:focus {
  border-color: #8db5ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 115, 246, .12);
}

.modern-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
}

.modern-btn.primary {
  color: #fff;
  background: #2f73f6;
  box-shadow: 0 12px 22px rgba(47, 115, 246, .22);
}

.wide-btn {
  width: 100%;
}

.history-item {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid #edf2fb;
}

.history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f73f6;
}

.document-review-list {
  display: grid;
  gap: 12px;
}

.document-review-item {
  padding: 14px;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
}

.document-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.document-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.document-title strong {
  color: #172033;
  font-size: 13px;
}

.document-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f73f6;
  background: #e8f0ff;
  border-radius: 10px;
  flex: 0 0 auto;
}

.document-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-action {
  width: 36px;
  height: 36px;
  color: #5f708c;
  background: #fff;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  font-size: 17px;
}

.icon-action:hover {
  color: #fff;
  background: #2f73f6;
  border-color: #2f73f6;
}

.document-form {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
  align-items: end;
}

.document-form .wide {
  grid-column: 1 / -1;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.doc-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.doc-em_analise {
  color: #1d4ed8;
  background: #dbeafe;
}

.doc-aprovado {
  color: #166534;
  background: #dcfce7;
}

.doc-pendente_reenvio {
  color: #92400e;
  background: #fef3c7;
}

.doc-reprovado {
  color: #991b1b;
  background: #fee2e2;
}

.candidate-doc-item {
  border-bottom: 1px solid #edf2fb;
}

.doc-note {
  padding: 8px;
  border-left: 3px solid var(--cmil-red);
  background: #fff7ed;
}

.doc-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 21, 47, .72);
}

.doc-preview-modal {
  width: min(1040px, 96vw);
  height: min(760px, 92vh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.doc-preview-header,
.doc-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5edf8;
}

.doc-preview-footer {
  justify-content: flex-end;
  border-top: 1px solid #e5edf8;
  border-bottom: 0;
}

.doc-preview-header strong,
.doc-preview-header span {
  display: block;
}

.doc-preview-header span {
  color: #667895;
  font-size: 12px;
}

.doc-preview-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #6b7280;
  font-size: 24px;
  line-height: 1;
}

.doc-preview-body {
  min-height: 0;
  background: #eef3f9;
}

.doc-preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.hero {
  background-color: var(--cmil-blue);
  color: #fff;
  min-height: 420px;
}

.hero-pattern {
  background-image:
    linear-gradient(135deg, rgba(11, 79, 138, .98), rgba(22, 116, 184, .94)),
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%);
  background-size: 28px 28px;
}

.hero .btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.85);
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus {
  color: var(--cmil-blue-dark);
  background: #fff;
  border-color: #fff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  letter-spacing: .02em;
}

.status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-em_analise { background: #dbeafe; color: #1d4ed8; }
.status-aprovado { background: #dcfce7; color: #166534; }
.status-reprovado { background: #fee2e2; color: #991b1b; }
.status-pendente { background: #fef3c7; color: #92400e; }
.status-cancelado { background: #e5e7eb; color: #374151; }

.card {
  border-radius: 8px;
}

.form-label {
  font-weight: 600;
}

.table td,
.table th {
  vertical-align: middle;
}

.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-main {
  flex: 1 0 auto;
}

.topbar {
  background: #ededf7;
  border-top: 4px solid var(--cmil-green);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar a {
  color: #4b5563;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
}

.topbar strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  color: #fff;
  background: #5b5f66;
  border-radius: 0;
}

.topbar a:hover {
  background: rgba(0, 0, 0, .06);
}

.topbar .sep {
  opacity: .5;
  user-select: none;
}

.brandbar {
  background-color: #fff;
  background-image: linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,.82)), url("assets/img/bg_header.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 171px;
}

.brandbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 170px;
  padding: 20px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-title,
.brand-subtitle,
.brand-city {
  display: block;
  color: #555;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-title {
  font-size: 40px;
  line-height: .92;
}

.brand-subtitle {
  font-size: 18px;
  line-height: 1;
}

.brand-city {
  font-size: 34px;
  line-height: .95;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}

.site-search .form-control {
  border-radius: 0;
  padding-left: 16px;
  padding-right: 12px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, .10);
}

.site-search .btn {
  height: 34px;
  border-radius: 0;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: #f7f7f7;
}

.site-search .btn:hover {
  background: rgba(0, 0, 0, .05);
}

.mainmenu {
  background: var(--cmil-green);
  border-bottom: 6px solid var(--cmil-red);
}

.mainmenu .container {
  padding: 0 12px;
}

.mainmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.mainmenu li {
  position: relative;
}

.mainmenu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 17px 13px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  border-radius: 0;
  line-height: 1;
  white-space: nowrap;
}

.mainmenu a:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.mainmenu li.has-dropdown > a::after {
  content: "v";
  font-size: 12px;
  opacity: .9;
  transform: translateY(-1px);
}

.mainmenu .dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .12);
  border-radius: 10px;
  padding: 8px;
  display: none;
  z-index: 999;
}

.mainmenu .dropdown li a {
  color: #111;
  background: transparent;
  display: flex;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
}

.mainmenu .dropdown li a:hover {
  background: rgba(0, 0, 0, .06);
  color: #111;
}

.mainmenu li.has-dropdown:hover > .dropdown {
  display: block;
}

.site-footer--itapevi {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #666;
  min-height: 500px;
}

.site-footer--itapevi::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background-image: url("assets/img/bg_footer.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 150px;
  opacity: .55;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .03);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  padding-bottom: 95px;
}

.footer-brand {
  min-height: 260px;
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}

.footer-card {
  display: flex;
  min-height: 148px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.footer-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  background: var(--cmil-green);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 10px 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.footer-card-body {
  padding: 34px 30px;
}

.footer-text-strong {
  font-weight: 800;
}

.footer-text-muted {
  color: rgba(255, 255, 255, .78);
}

.footer-card .footer-text-muted {
  color: #fff;
}

.footer-subtitle {
  font-weight: 800;
  font-size: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  background: transparent;
  border: 0;
  font-size: 38px;
}

.footer-social-btn:hover {
  color: #f2f2f2;
  background: transparent;
}

.footer-apps {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer-app-btn {
  max-width: 145px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

.footer-app-btn i {
  font-size: 25px;
  color: #fff;
}

.footer-app-btn small,
.footer-app-btn b {
  display: block;
  line-height: 1.1;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, .18);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

@media (max-width: 992px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    border-radius: 0 0 18px 18px;
  }

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

  .admin-user {
    display: none;
  }

  .admin-topbar,
  .panel-split {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-search {
    width: 100%;
    min-width: 0;
  }

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

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

  .settings-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

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

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

  .list-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .list-table-head {
    display: none;
  }

  .list-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
  }

  .list-row > div {
    grid-column: 1 / -1;
  }

  .list-row .list-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-label {
    display: block;
    color: #8292aa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

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

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

  .uploads-panel,
  .dashboard-side {
    grid-column: 1 / -1;
  }

  .login-portal {
    padding: 40px 0;
  }

  .login-portal-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-copy {
    margin-left: 0;
  }

  .login-card {
    max-width: 100%;
  }

  .brandbar .container {
    flex-wrap: wrap;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-city {
    font-size: 24px;
  }

  .site-search {
    max-width: 100%;
    margin-left: 0;
  }

  .mainmenu a {
    padding: 12px 10px;
  }

  .mainmenu .dropdown {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    min-width: auto;
  }

  .mainmenu .dropdown li a {
    color: #fff;
    opacity: .95;
    padding: 10px 14px;
  }

  .mainmenu .dropdown li a:hover {
    background: rgba(255, 255, 255, .10);
    color: #fff;
  }

  .mainmenu li.has-dropdown > a::after {
    display: none;
  }

  .topbar .container,
  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .dashboard-grid,
  .admin-menu,
  .quick-actions,
  .list-filter-card,
  .settings-form-grid,
  .tracking-grid,
  .tracking-result {
    grid-template-columns: 1fr;
  }

  .list-header,
  .list-header-actions,
  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .info-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid,
  .finish-grid,
  .wizard-steps,
  .wizard-grid,
  .wizard-docs {
    grid-template-columns: 1fr;
  }

  .availability-options {
    grid-template-columns: 1fr;
  }

  .wizard-grid .span-2 {
    grid-column: auto;
  }

  .list-filter-actions {
    justify-content: stretch;
  }

  .list-filter-actions .modern-btn {
    flex: 1;
  }

  .metric-card {
    min-height: auto;
  }

  .review-info-grid {
    grid-template-columns: 1fr;
  }

  .document-top,
  .review-header {
    flex-direction: column;
  }

  .document-actions {
    justify-content: flex-start;
  }
}
