@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Noto+Sans+Mono:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

:root {
  --white: #ffffff;
  --gray: #777777;
  --black: #000000;
  --black1: #222222;
  --black2: #4b4b4b;
  --blue: #0062ff;
  --blue-shadow: rgba(0, 98, 255, 0.3);
  --blue-light: rgba(159, 198, 248, 0.719);
  --green: #3c7000;
  --green-shadow: rgba(136, 255, 0, 0.3);
  --yellow: #caaf00;
  --yellow-shadow: rgba(255, 191, 0, 0.3);
  --yellow-light: rgba(255, 229, 176, 0.404);
  --red: #ff2e2e;
  --red-shadow: rgba(255, 46, 46, 0.3);
  --sky: #00aeff;
  --sky-shadow: rgba(0, 174, 255, 0.3);
  --purple: #5900ff;
  --purple-shadow: rgba(89, 0, 255, 0.3);
  --orange: #ff7300;
  --orange-shadow: rgba(255, 115, 0, 0.3);
  --pink: #ff0080;
  --pink-shadow: rgba(255, 0, 128, 0.3);
  --brown: #5f2a12;
  --brown-shadow: rgba(95, 42, 18, 0.3);
  --shadow: rgba(0, 0, 0, 0.5);
  --border-weak: rgba(0, 0, 0, 0.1);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  position: relative;
  width: 100%;
}

.navigation {
  position: fixed;
  width: 300px;
  height: 100%;
  background: var(--blue);
  border-left: 10px solid var(--blue);
  transition: 0.5s;
}

.navigation.normal {
  width: 300px;
}

.navigation.reduced {
  width: 80px;
}

.navigation.hidden {
  width: 0px;
  overflow: hidden;
}

.navigation.active {
  width: 80px;
}

.navigation ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.navigation ul li:hover,
.navigation ul li.hovered {
  background: var(--white);
}

.navigation ul li:nth-child(1) {
  margin-bottom: 40px;
  pointer-events: none;
}

.navigation ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
}

.navigation ul li:hover a,
.navigation ul li.hovered a {
  color: var(--blue);
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 70px;
  text-align: center;
}

.navigation ul li a .icon ion-icon {
  font-size: 1.75em;
}

.navigation ul li a .title {
  position: relative;
  display: block;
  padding: 0 10px;
  height: 60px;
  line-height: 60px;
  text-align: start;
  white-space: nowrap;
  transition: 0.3s;
}

.navigation.reduced ul li a .title,
.navigation.hidden ul li a .title {
  opacity: 0;
  visibility: hidden;
}

.navigation ul li:hover a::before,
.navigation ul li.hovered a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -50px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 35px 35px 0 10px var(--white);
  pointer-events: none;
}

.navigation ul li:hover a::after,
.navigation ul li.hovered a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 35px -35px 0 10px var(--white);
  pointer-events: none;
}

.main {
  position: absolute;
  width: calc(100% - 300px);
  left: 300px;
  min-height: 100vh;
  background: var(--white);
  transition: 0.5s;
}

.main.menu-normal {
  width: calc(100% - 300px);
  left: 300px;
}

.main.menu-reduced {
  width: calc(100% - 80px);
  left: 80px;
}

.main.menu-hidden {
  width: 100%;
  left: 0px;
}

.main.active {
  width: calc(100% - 80px);
  left: 80px;
}

.topbar {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.toggle {
  position: relative;
  top: 0;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  cursor: pointer;
}

.search {
  position: relative;
  width: 400px;
  margin: 0 10px;
}

.search label {
  position: relative;
  width: 100%;
}

.search label input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  padding: 5px 20px;
  padding-left: 35px;
  font-size: 18px;
  outline: none;
  border: 1px solid var(--black2);
}

.search label input:focus {
  border: 2px solid var(--blue);
  background-color: var(--yellow-light);
}

.search label ion-icon {
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 1.2em;
  color: var(--black2);
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
}
.user-info strong {
  font-size: 0.95em;
  color: var(--black1);
}
.user-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: 0.65em;
  text-transform: uppercase;
}

.profile-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.profile-card h3,
.profile-card p {
  display: block;
  max-width: 150px;
  margin: 0;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
.profile-card h3 {
  margin-top: 10px;
  font-size: 0.95rem;
}

.required-asterisk {
  color: var(--red);
  font-weight: 700;
  font-size: 0.95em;
}

.profile-form .profile-field label {
  font-size: 0.8em;
}

.muted-note {
  color: var(--gray);
  font-size: 0.8em;
  display: inline-block;
  margin-top: 4px;
  opacity: 0.95;
}

.cardBox {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
}

.chartsRow {
  padding: 20px 10px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .chartsRow {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 600px) {
  .chartsRow {
    padding: 16px 16px 8px;
    gap: 16px;
    grid-template-columns: 1fr;
  }
}

.cardBox .card {
  position: relative;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 7px 25px var(--shadow);
}

.card-details-slot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .card-details-slot {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .card-details-slot {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card-details-slot {
    grid-template-columns: repeat(1, 1fr);
  }
}

.cardBox,
.card-details-slot,
html,
body,
.main {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main::-webkit-scrollbar,
.cardBox::-webkit-scrollbar,
.card-details-slot::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.cardBox::-webkit-scrollbar-thumb,
.card-details-slot::-webkit-scrollbar-thumb {
  background: transparent;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.main::-webkit-scrollbar-thumb:hover,
.cardBox::-webkit-scrollbar-thumb:hover,
.card-details-slot::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

html.reserve-scrollbar,
html.reserve-scrollbar body,
html.reserve-scrollbar .main {
  scrollbar-gutter: stable;
}

html.reserve-scrollbar .cardBox,
html.reserve-scrollbar .card-details-slot {
  scrollbar-gutter: stable;
}

html.reserve-scrollbar .main {
  padding-right: 10px;
  box-sizing: border-box;
}
html.reserve-scrollbar .cardBox {
  padding-right: 10px;
  box-sizing: border-box;
}

.card:active,
.card.pressed {
  transform: translateY(2px);
  box-shadow: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.chartCard {
  background: var(--white);
  padding: 18px 18px 14px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
}

.chartCard .chartBody {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 0;
}

.chartCard .chartBody .echart {
  width: 100%;
  height: 100%;
  max-height: 220px;
}

.chartCard canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 220px;
  padding: 4px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .chartCard {
    min-height: 200px;
    padding: 16px 16px 12px;
  }
  .chartCard canvas {
    max-height: 180px;
  }
}

.cardBox .card .numbers {
  position: relative;
  font-weight: 500;
  font-size: 2em;
  color: var(--blue);
}

.cardBox .card .cardName {
  position: relative;
  font-size: 1.1em;
  color: var(--black1);
  margin-top: 5px;
}

.cardBox .card .iconBx {
  position: relative;
  font-size: 3.5em;
  color: var(--black1);
}

.cardBox .card:hover {
  background: var(--blue);
}

.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
  color: var(--white);
}

.details {
  position: relative;
  width: 100%;
  padding: 20px 10px 20px 30px;
  display: grid;
  grid-gap: 30px;
}

.details .recentOrders {
  position: relative;
  display: grid;
  min-height: 500px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 7px 25px var(--shadow);
  border-radius: 20px;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 10px;
}

.cardHeader h2 {
  font-weight: 600;
  color: var(--blue);
}

.details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.details table thead td {
  font-weight: 600;
}

.details table thead td,
.details table thead th {
  vertical-align: middle;
  box-sizing: border-box;
}

.details .recentOrders table tbody tr {
  height: 43px;
}

.details .recentOrders table tr {
  color: var(--black1);
  border-bottom: 1px solid var(--border-weak);
}

.details .recentOrders table tr:last-child {
  border-bottom: none;
}

.details .recentOrders table tbody tr:hover {
  background: var(--sky-shadow);
  color: var(--black1);
}

.details .recentOrders table tr td {
  padding: 10px;
}

.details .recentOrders table tbody td,
.details .recentOrders table tbody td * {
  font-family: "Noto Sans Mono", monospace;
  font-weight: 400;
}

.details .recentOrders table tr td:last-child {
  text-align: end;
}

.details .recentOrders table tr td:nth-child(3) {
  text-align: end;
}

.recentCustomers table tr td {
  padding: 12px 10px;
}

.recentCustomers table tr td h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2em;
}

.recentCustomers table tr td h4 span {
  font-size: 14px;
  color: var(--black2);
}

.recentCustomers table tr:hover {
  background: var(--blue);
  color: var(--white);
}

.recentCustomers table tr:hover td h4 span {
  color: var(--white);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  gap: 8px;
  background: var(--blue);
  text-decoration: none;
  color: var(--white);
  border-radius: 6px;
  border: none;
  cursor: pointer;
  line-height: 1;
  font-size: 0.95em;
  transition: transform 160ms cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 160ms ease, background-color 160ms ease, filter 160ms ease;
  will-change: transform;
}

.btn ion-icon,
.btn i {
  font-size: 1.05em;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 98, 255, 0.12);
  outline: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.12);
}

.btn-small {
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.9em;
  min-width: 36px;
  background: white;
  color: var(--black1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-small.current,
.btn-small[disabled],
.btn-small.disabled {
  background: rgba(0, 0, 0, 0.04);
  color: var(--black2);
  cursor: default;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.per-page-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 64px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--border-weak);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--black1);
  font-size: 0.95em;
  line-height: 1.2;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1 1l5 5 5-5" stroke="%234b4b4b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.per-page-select:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

input:focus,
textarea:focus,
select:focus,
.profile-input:focus,
.form-input:focus,
.per-page-select:focus {
  background-color: var(--yellow-light);
  outline-color: var(--blue);
}

.per-page-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.per-page-select-wrapper {
  position: relative;
  display: inline-block;
}

.per-page-select-wrapper .select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--black2);
  font-size: 1rem;
  opacity: 0.9;
}

.per-page-select-wrapper .per-page-select {
  background-image: none;
  padding-right: 34px;
}

.per-page-select-wrapper .select-icon.fallback-svg {
  width: 12px;
  height: 12px;
  display: block;
  color: var(--black2);
  opacity: 0.9;
}

.per-page-select-wrapper ion-icon.select-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--black2);
}

.status-inativo {
  padding: 2px 4px;
  background: var(--red-shadow);
  color: var(--red);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.status-pendente {
  padding: 2px 4px;
  background: var(--yellow-shadow);
  color: var(--yellow);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.status-ativo {
  padding: 2px 4px;
  background: var(--green-shadow);
  color: var(--green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.status-sim,
.status-regular {
  padding: 2px 4px;
  background: var(--blue-shadow);
  color: var(--blue);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.status-demitido {
  padding: 2px 4px;
  background: var(--gray);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.status-falecido {
  padding: 2px 4px;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.level-badge {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.level-default {
  background: var(--gray-shadow);
  color: var(--black1);
}
.level-admin {
  background: var(--purple-shadow);
  color: var(--purple);
}

.level-super {
  background: var(--yellow-shadow);
  color: var(--yellow);
}

.level-user {
  background: var(--sky-shadow);
  color: var(--sky);
}
.level-guest {
  background: var(--black);
  color: var(--white);
}
.level-1 {
  background: var(--yellow-shadow);
  color: var(--yellow);
}
.level-2 {
  background: var(--blue-shadow);
  color: var(--blue);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.95rem;
}
.mini-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #e6e6e6);
  vertical-align: middle;
}
.mini-table thead td {
  font-weight: 700;
  padding-bottom: 8px;
  text-transform: none;
}
.mini-table tbody tr:hover {
  background: var(--row-hover, #fbfbfb);
}
.mini-table .status-ativo,
.mini-table .status-inativo,
.mini-table .status-pendente {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.region-centro {
  padding: 2px 4px;
  background: var(--red-shadow);
  color: var(--red);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.region-leste {
  padding: 2px 4px;
  background: var(--yellow-shadow);
  color: var(--yellow);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.attach-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.95em;
  vertical-align: middle;
  opacity: 0.95;
}
.attach-active {
  color: #000;
  opacity: 1;
  font-weight: bold;
}
.attach-inactive {
  color: #000;
  opacity: 0.3;
}

.region-norte {
  padding: 2px 4px;
  background: var(--green-shadow);
  color: var(--green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.region-oeste {
  padding: 2px 4px;
  background: var(--brown-shadow);
  color: var(--brown);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.region-sede {
  padding: 2px 4px;
  background: var(--gray);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.region-sudeste {
  padding: 2px 4px;
  background: var(--pink-shadow);
  color: var(--pink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.login-page .form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.login-page .form-actions .btn,
.login-page .form-actions .btn-small {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}
.login-page .form-actions .btn {
  padding-left: 18px;
  padding-right: 18px;
}
.login-page .form-actions .btn-small {
  padding-left: 12px;
  padding-right: 12px;
}

.login-page a,
.card-panel a,
.muted-note a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 140ms ease, transform 120ms ease;
}

.login-page a:hover,
.card-panel a:hover,
.muted-note a:hover {
  color: var(--purple);
  text-decoration: underline;
  transform: translateY(-1px);
}

.muted-note a {
  color: var(--blue);
  font-weight: 600;
}

.card-panel a.btn {
  display: inline-flex;
  align-items: center;
}

.login-page .form-actions .btn-small {
  background: rgba(255, 255, 255, 0.96);
  color: var(--black1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.login-page .form-actions .btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}
.region-sul {
  padding: 2px 4px;
  background: var(--sky-shadow);
  color: var(--sky);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.region-uram {
  padding: 2px 4px;
  background: var(--purple-shadow);
  color: var(--purple);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.region-nao-possui {
  padding: 2px 4px;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.regions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.details .recentOrders table tr td .regions-group {
  margin-top: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  vertical-align: middle;
}

.details .recentOrders.users-list table tr td .regions-group {
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
  margin-top: 0;
  align-items: center;
}

.details .recentOrders.users-list table tr td .regions-group .region {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
  vertical-align: middle;
  padding: 2px 6px;
  font-size: 12px;
  line-height: normal;
  height: 20px;
  box-sizing: border-box;
}

.details .recentOrders.users-list table tr td .region,
.details .recentOrders.users-list table tr td .level-badge,
.details .recentOrders.users-list table tr td .status-ativo,
.details .recentOrders.users-list table tr td .status-inativo,
.details .recentOrders.users-list table tr td .status-pendente {
  padding: 2px 6px;
  font-size: 12px;
  line-height: normal;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.details .recentOrders.users-list table tr td .level-badge,
.details .recentOrders.users-list table tr td .status,
.details .recentOrders.users-list table tr td .status-ativo,
.details .recentOrders.users-list table tr td .status-inativo,
.details .recentOrders.users-list table tr td .status-pendente {
  text-transform: uppercase;
}

.details .recentOrders.users-list table tr td .regions-group {
  gap: 4px;
}

.details .recentOrders.users-list table thead td {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  margin: 2px 4px;
}
.region-badge input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.region-badge .region {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.region-badge .region:hover {
  transform: translateY(-2px);
}

.region-badge input[type="checkbox"]:checked + .region {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  background-color: currentColor;
  color: #fff;
  border-color: transparent;
}

.region-badge input[type="checkbox"]:focus + .region {
  outline: 3px solid rgba(0, 98, 255, 0.12);
  outline-offset: 2px;
}

.regions-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
}

.regions-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.regions-group .region {
  margin-left: 4px;
}

.profile-form {
  margin-top: 6px;
  display: grid;
  gap: 22px;
  align-items: start;
  grid-template-columns: repeat(12, 1fr);
}

.profile-field {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px 12px;
  align-items: start;
}

.profile-form .profile-field.no-inner {
  display: block;
}

.profile-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: start;
}

.profile-row:first-of-type {
  grid-template-columns: repeat(12, 1fr);
}

.profile-col {
  flex: 1;
}

.profile-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-weak);
  border-radius: 8px;
  font-size: 0.95em;
  color: var(--black1);
  background: var(--white);
}

.input-group {
  position: relative;
  display: block;
}

.input-group .profile-input {
  padding-right: 42px;
  box-sizing: border-box;
}

.input-group button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  z-index: 3;
}

.input-group button:focus {
  outline: none;
}

.input-group button ion-icon {
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1;
}

.profile-input[readonly] {
  background: #f5f7fb;
}

.profile-field label {
  display: block;
  margin-top: 0;
  font-weight: 600;
}

.profile-field label + div {
  grid-column: span 4;
}

.profile-field label + input {
  grid-column: span 8;
}

.profile-field #regions-container {
  grid-column: 1 / -1;
}

.profile-row:first-of-type .profile-col:first-child {
  grid-column: span 4;
}

.profile-row:first-of-type .profile-col:last-child {
  grid-column: span 8;
}

.profile-form .col-1 {
  grid-column: span 1;
}
.profile-form .col-2 {
  grid-column: span 2;
}
.profile-form .col-3 {
  grid-column: span 3;
}
.profile-form .col-4 {
  grid-column: span 4;
}
.profile-form .col-5 {
  grid-column: span 5;
}
.profile-form .col-6 {
  grid-column: span 6;
}
.profile-form .col-7 {
  grid-column: span 7;
}

.grid-row-span-3 {
  grid-row: span 3;
}
.mt-0 {
  margin-top: 0;
}
.mt-2 {
  margin-top: 2px;
}
.mt-6 {
  margin-top: 6px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-14 {
  margin-top: 14px;
}
.flex-row-gap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chart-canvas {
  width: 100%;
  height: 260px;
}
.charts--flex {
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.view-hidden {
  display: none;
  margin-top: 18px;
}
.pager-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hidden {
  display: none;
}
.clickable {
  cursor: pointer;
}
.icon-rotated {
  transform: rotate(135deg);
}
.chartCard--flex {
  flex: 1;
  min-width: 320px;
}

.card.hidden,
.cardBox .card.hidden {
  display: none;
}

.card-zooming {
  transform: scale(0.98);
  opacity: 0;
  transform-origin: top center;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 160ms ease;
  will-change: transform, opacity;
}
.card-zooming.show {
  transform: scale(1);
  opacity: 1;
}

.centered-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 400% 400%;
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--sky),
    var(--purple),
    var(--pink)
  );
  filter: blur(28px) saturate(1.05);
  opacity: 0.95;
  transition: opacity 300ms ease;
  animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--sky),
    var(--purple),
    var(--pink)
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

.card-panel {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.form-row {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-weak);
  border-radius: 8px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.checkbox-input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.link-ghost {
  background: #fff;
  color: var(--black2);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.panel-wrap {
  width: 420px;
  max-width: 96%;
}
.error-box {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 46, 46, 0.06);
  color: var(--red);
  border: 1px solid rgba(255, 46, 46, 0.08);
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--black2);
  font-size: 0.9rem;
}
.page-heading {
  color: var(--blue);
  margin-bottom: 6px;
}
.lead {
  margin: 0 0 18px;
  color: var(--black2);
}
.inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.95;
}
.section-wrap {
  padding: 36px 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-text {
  color: var(--black2);
  line-height: 1.5;
}
.footer-panel {
  padding: 18px;
}
.profile-form .col-8 {
  grid-column: span 8;
}
.profile-form .col-9 {
  grid-column: span 9;
}
.profile-form .col-10 {
  grid-column: span 10;
}
.profile-form .col-11 {
  grid-column: span 11;
}
.profile-form .col-12 {
  grid-column: 1 / -1;
}

.regions-container {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.save-msg {
  margin-left: 12px;
  color: var(--green);
  display: none;
}

.profile-form .field-help {
  display: block;
  margin-top: 6px;
  font-size: 0.8em;
  color: var(--gray);
}

@media (max-width: 1500px) {
  .navigation {
    left: -300px;
  }

  .navigation.normal {
    left: 0;
    width: 300px;
  }

  .navigation.reduced,
  .navigation.active {
    left: 0;
    width: 80px;
  }

  .navigation.hidden {
    left: -300px;
  }

  .main {
    width: 100%;
    left: 0;
  }

  .main.menu-normal {
    left: 300px;
    width: calc(100% - 300px);
  }

  .main.menu-reduced,
  .main.active {
    left: 80px;
    width: calc(100% - 80px);
  }

  .main.menu-hidden {
    left: 0;
    width: 100%;
  }

  .cardBox {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Screens - Tablets */

@media (max-width: 1200px) {
  .navigation {
    left: -300px;
  }

  .navigation.normal {
    left: 0;
    width: 300px;
  }

  .navigation.reduced,
  .navigation.active {
    left: 0;
    width: 80px;
  }

  .navigation.hidden {
    left: -300px;
  }

  .main {
    width: 100%;
    left: 0;
  }

  .main.menu-normal {
    left: 300px;
    width: calc(100% - 300px);
  }

  .main.menu-reduced,
  .main.active {
    left: 80px;
    width: calc(100% - 80px);
  }

  .main.menu-hidden {
    left: 0;
    width: 100%;
  }

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

@media (max-width: 900px) {
  .navigation {
    left: -300px;
  }

  .navigation.normal {
    left: 0;
    width: 300px;
  }

  .navigation.reduced,
  .navigation.active {
    left: 0;
    width: 80px;
  }

  .navigation.hidden {
    left: -300px;
  }

  .main {
    width: 100%;
    left: 0;
  }

  .main.menu-normal {
    left: 300px;
    width: calc(100% - 300px);
  }

  .main.menu-reduced,
  .main.active {
    left: 80px;
    width: calc(100% - 80px);
  }

  .main.menu-hidden {
    left: 0;
    width: 100%;
  }

  .cardBox {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: repeat(1, 1fr);
  }

  .recentOrders {
    overflow-x: auto;
  }

  .status.inprogress {
    white-space: nowrap;
  }

  .profile-form {
    grid-template-columns: repeat(1, 1fr);
  }

  .profile-field {
    grid-template-columns: repeat(1, 1fr);
  }

  .profile-row:first-of-type {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .profile-field label + div,
  .profile-field label + input,
  .profile-row:first-of-type .profile-col {
    grid-column: auto;
  }

  .profile-form .col-1,
  .profile-form .col-2,
  .profile-form .col-3,
  .profile-form .col-4,
  .profile-form .col-5,
  .profile-form .col-6,
  .profile-form .col-7,
  .profile-form .col-8,
  .profile-form .col-9,
  .profile-form .col-10,
  .profile-form .col-11,
  .profile-form .col-12 {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .cardBox {
    grid-template-columns: repeat(1, 1fr);
  }

  .cardHeader h2 {
    font-size: 20px;
  }

  .user {
    min-width: 40px;
  }

  .navigation {
    left: -100%;
    z-index: 1000;
  }

  .navigation.normal,
  .navigation.reduced,
  .navigation.active {
    width: 100%;
    left: 0;
  }

  .navigation.hidden {
    left: -100%;
  }

  .toggle {
    z-index: 10001;
    right: 0;
  }

  .main.active.toggle {
    position: fixed;
    right: 0;
    left: initial;
    color: var(--white);
  }
}

.document-preview-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.pdf-thumbnail-wrapper {
  position: relative;
  display: inline-block;
  align-self: center;
}

.pdf-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  min-width: 120px;
  background: rgba(211, 47, 47, 0.04);
  border-radius: 6px;
  padding: 8px;
}

.pdf-thumbnail img {
  max-width: 120px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0.9;
}

.download-circle-btn {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 98, 255, 0.3);
  transition: transform 140ms ease, box-shadow 140ms ease,
    background-color 140ms ease;
  z-index: 10;
}

.download-circle-btn ion-icon {
  font-size: 1.2em;
  line-height: 1;
}

.download-circle-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 98, 255, 0.4);
  background-color: #0055e0;
}

.download-circle-btn:active {
  transform: scale(0.95);
}

.document-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-info .filename {
  margin: 0;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--black1);
  word-break: break-word;
  line-height: 1.3;
}

.document-info .btn-small {
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  padding: 6px 10px;
  font-size: 0.85em;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.document-info .btn-small:hover {
  filter: brightness(1.1);
}

.profile-form .document-field {
  grid-column: span 2;
  grid-row: span 3;
  align-self: start;
}

.profile-form .document-field .document-preview-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}
