:root {
  --bg: #020816;
  --panel: rgba(9, 28, 53, 0.88);
  --panel-soft: rgba(13, 39, 72, 0.72);
  --line: rgba(86, 166, 255, 0.34);
  --line-strong: rgba(91, 184, 255, 0.68);
  --text: #f5f9ff;
  --muted: #b7c5d8;
  --blue: #00a9ff;
  --green: #42f38b;
  --purple: #a262ff;
  --amber: #ffad25;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 142, 255, 0.24), transparent 30%),
    radial-gradient(circle at 26% 55%, rgba(32, 120, 255, 0.12), transparent 34%),
    linear-gradient(145deg, #01050f 0%, #031329 48%, #010612 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 155, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 155, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 24%, black, transparent 58%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 86% 48%, rgba(0, 132, 255, 0.22), transparent 26%),
    radial-gradient(circle at 18% 38%, rgba(0, 149, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #020712 0%, #041731 52%, #020816 100%);
  overflow: auto;
}

.login-page::before {
  background-image:
    linear-gradient(rgba(42, 155, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 155, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 35% 45%, rgba(0, 170, 255, 0.2) 0 2px, transparent 3px);
  background-size: 52px 52px, 52px 52px, 120px 120px;
  mask-image: radial-gradient(circle at 55% 52%, black, transparent 78%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100vw - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: clamp(16px, 2.6vw, 34px);
  border: 1px solid rgba(91, 184, 255, 0.42);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 4%, rgba(0, 174, 255, 0.2), transparent 19%),
    radial-gradient(circle at 15% 74%, rgba(0, 120, 255, 0.22), transparent 28%),
    rgba(3, 12, 28, 0.68);
  box-shadow: 0 0 0 1px rgba(111, 187, 255, 0.06) inset, 0 28px 90px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(440px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.login-showcase {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-logo {
  width: 118px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.login-brand-block strong {
  display: block;
  color: #ff353d;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 4px 0 #851217, 0 0 24px rgba(255, 50, 61, 0.52);
}

.login-brand-block span {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.18;
}

.login-divider {
  width: min(430px, 80%);
  height: 1px;
  margin: 22px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(0, 187, 255, 0.88), transparent);
  box-shadow: 0 0 12px rgba(0, 174, 255, 0.48);
}

.login-showcase h1 {
  margin: 0 0 24px 12px;
  color: #f8fbff;
  font-size: clamp(21px, 1.72vw, 26px);
  line-height: 1.28;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 18px rgba(0, 149, 255, 0.25);
}

.login-features {
  width: min(390px, 100%);
  margin-left: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.login-features div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.login-features img {
  width: 58px;
  height: 58px;
  padding: 7px;
  border: 1px solid rgba(0, 187, 255, 0.54);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(0, 116, 255, 0.38), rgba(5, 28, 58, 0.82));
  box-shadow: 0 0 26px rgba(0, 149, 255, 0.35), 0 0 18px rgba(0, 149, 255, 0.22) inset;
}

.login-features span {
  color: #fff;
  font-size: 14px;
  line-height: 1.28;
}

.login-map-scene {
  position: relative;
  width: min(500px, 100%);
  height: 230px;
  margin-top: 16px;
  display: grid;
  place-items: center;
}

.login-orbit {
  position: absolute;
  width: 360px;
  height: 104px;
  bottom: 24px;
  border: 2px solid rgba(0, 196, 255, 0.55);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 169, 255, 0.28), rgba(0, 35, 80, 0.3) 46%, transparent 68%);
  box-shadow: 0 0 30px rgba(0, 169, 255, 0.8), 0 0 70px rgba(0, 87, 255, 0.38) inset;
}

.login-map-scene > img {
  position: relative;
  z-index: 2;
  width: 138px;
  filter: drop-shadow(0 0 22px rgba(0, 205, 255, 0.9));
}

.login-data-card {
  position: absolute;
  z-index: 3;
  width: 70px;
  height: 58px;
  border: 1px solid rgba(0, 174, 255, 0.48);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 107, 200, 0.32), rgba(3, 21, 48, 0.72));
  box-shadow: 0 0 22px rgba(0, 149, 255, 0.28);
  display: grid;
  place-items: center;
}

.login-data-card img {
  width: 38px;
  height: 38px;
}

.card-one {
  left: 58px;
  bottom: 92px;
}

.card-two {
  right: 36px;
  bottom: 78px;
}

.card-three {
  left: 214px;
  top: 62px;
}

.login-panel {
  width: min(600px, 100%);
  justify-self: center;
  padding: 24px 44px 26px;
  border: 1px solid rgba(135, 180, 236, 0.68);
  border-radius: 30px;
  background:
    radial-gradient(circle at 52% 0%, rgba(76, 134, 205, 0.24), transparent 28%),
    linear-gradient(155deg, rgba(25, 49, 84, 0.94), rgba(5, 18, 38, 0.96) 55%, rgba(3, 14, 30, 0.98));
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 34px rgba(0, 149, 255, 0.14);
}

.login-avatar {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border: 1px solid rgba(0, 174, 255, 0.62);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(47, 98, 160, 0.72), rgba(5, 21, 47, 0.94));
  box-shadow: 0 0 0 9px rgba(0, 102, 255, 0.08), 0 0 24px rgba(0, 149, 255, 0.62), 0 14px 28px rgba(0, 0, 0, 0.38);
  display: grid;
  place-items: center;
}

.login-avatar img {
  width: 62px;
  height: 62px;
}

.login-panel h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(27px, 2.4vw, 34px);
  line-height: 1.08;
}

.login-panel > p {
  margin: 8px 0 20px;
  color: #d7e3f5;
  text-align: center;
  font-size: 17px;
}

.login-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 112, 126, 0.52);
  border-radius: 10px;
  background: rgba(123, 22, 40, 0.5);
  color: #ffd7dc;
  font-weight: 800;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.login-input {
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid rgba(116, 171, 234, 0.42);
  border-radius: 12px;
  background: rgba(4, 18, 39, 0.68);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 0 1px rgba(0, 149, 255, 0.04) inset;
}

.login-input:focus-within {
  border-color: rgba(0, 196, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.14), 0 0 20px rgba(0, 149, 255, 0.18);
}

.login-input > img {
  width: 25px;
  height: 25px;
  opacity: 0.86;
}

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

.login-input input::placeholder {
  color: rgba(217, 227, 243, 0.68);
}

.password-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.password-toggle img {
  width: 23px;
  height: 23px;
  opacity: 0.78;
}

.login-options {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #d7e3f5;
  font-size: 14px;
}

.remember-check {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.remember-check input {
  position: absolute;
  opacity: 0;
}

.remember-check span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(116, 171, 234, 0.58);
  border-radius: 5px;
  background: rgba(4, 18, 39, 0.68);
  box-shadow: 0 0 8px rgba(0, 149, 255, 0.1) inset;
}

.remember-check input:checked + span {
  background: linear-gradient(135deg, #008dff, #00cfff);
  box-shadow: 0 0 18px rgba(0, 149, 255, 0.56);
}

.login-options a,
.login-contact a {
  color: #00b7ff;
}

.login-submit {
  min-height: 56px;
  margin-top: 4px;
  padding: 0 20px;
  border: 1px solid rgba(0, 204, 255, 0.72);
  border-radius: 14px;
  background: linear-gradient(135deg, #008eff, #034eb8 58%, #003d99);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 149, 255, 0.42) inset, 0 18px 34px rgba(0, 0, 0, 0.28);
}

.login-submit img {
  width: 26px;
  height: 26px;
}

.login-separator {
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #aebcd3;
}

.login-separator::before,
.login-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(117, 177, 235, 0.22);
}

.google-login {
  width: 82%;
  min-height: 52px;
  margin: 0 auto 16px;
  border: 1px solid rgba(116, 171, 234, 0.32);
  border-radius: 12px;
  background: rgba(4, 18, 39, 0.48);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
  opacity: 0.9;
}

.google-login img {
  width: 26px;
  height: 26px;
}

.login-contact {
  padding-top: 16px;
  border-top: 1px solid rgba(117, 177, 235, 0.16);
  color: #c0cbe0;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.password-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.password-card {
  width: min(560px, 100%);
  padding: 30px;
  border: 1px solid rgba(135, 180, 236, 0.68);
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 0%, rgba(76, 134, 205, 0.24), transparent 28%),
    linear-gradient(155deg, rgba(25, 49, 84, 0.94), rgba(5, 18, 38, 0.96) 55%, rgba(3, 14, 30, 0.98));
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.5), 0 0 34px rgba(0, 149, 255, 0.14);
}

.password-card h1 {
  margin: 0;
  text-align: center;
  font-size: 32px;
}

.password-card > p {
  margin: 10px 0 24px;
  color: var(--muted);
  text-align: center;
}

.password-back {
  width: max-content;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(75, 178, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 104, 212, 0.82), rgba(5, 44, 91, 0.9));
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.password-back img {
  width: 24px;
  height: 24px;
}

.app-shell {
  width: min(1552px, calc(100vw - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  display: grid;
  grid-template-columns: 266px 1fr;
  gap: 18px;
  transition: grid-template-columns 0.22s ease;
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: 92px 1fr;
}

.sidebar,
.dashboard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.96), rgba(4, 17, 33, 0.96));
  box-shadow: 0 0 0 1px rgba(122, 195, 255, 0.07) inset, 0 20px 55px rgba(0, 0, 0, 0.45);
}

.sidebar {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  min-height: 840px;
  padding: 28px 16px 32px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  transition: padding 0.22s ease;
}

.brand {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 8px 38px;
  transition: margin 0.22s ease;
}

.brand-logo {
  width: 88px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.42));
}

.brand strong {
  display: block;
  color: #ff353d;
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #701820, 0 0 16px rgba(255, 49, 61, 0.55);
}

.brand span {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

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

.nav-item {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.app-shell.is-sidebar-collapsed .sidebar {
  padding: 18px 10px 24px;
}

.app-shell.is-sidebar-collapsed .brand {
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 0 0 28px;
}

.app-shell.is-sidebar-collapsed .brand div,
.app-shell.is-sidebar-collapsed .nav-item span,
.app-shell.is-sidebar-collapsed .subnav,
.app-shell.is-sidebar-collapsed .country-card div,
.app-shell.is-sidebar-collapsed .nav-parent .chevron {
  display: none;
}

.app-shell.is-sidebar-collapsed .brand-logo {
  width: 62px;
  height: 78px;
}

.app-shell.is-sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.app-shell.is-sidebar-collapsed .country-card {
  justify-content: center;
  padding: 12px;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(42, 123, 255, 0.94), rgba(0, 202, 255, 0.22));
  border: 1px solid rgba(94, 197, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(0, 76, 255, 0.52) inset, 0 0 24px rgba(0, 149, 255, 0.5);
  transform: translateX(1px);
}

.nav-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(61, 168, 255, 0.75));
}

.nav-parent .chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  transform: rotate(180deg);
}

.subnav {
  margin: -2px 0 18px 54px;
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 15px;
}

.subnav a {
  position: relative;
  min-height: 40px;
  padding: 0 14px 0 32px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subnav a::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #78adff;
  box-shadow: 0 0 9px rgba(120, 173, 255, 0.8);
}

.country-card {
  margin-top: auto;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(93, 168, 239, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 42, 78, 0.9), rgba(4, 23, 44, 0.92));
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.country-card img {
  width: 46px;
  height: 46px;
}

.country-card strong,
.country-card span {
  display: block;
}

.country-card strong {
  font-size: 17px;
}

.country-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard {
  min-height: calc(100vh - 24px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 74px;
  padding: 12px 12px 12px 24px;
  border-bottom: 1px solid rgba(56, 131, 203, 0.45);
  background: linear-gradient(180deg, rgba(12, 35, 68, 0.96), rgba(5, 18, 37, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button,
.bell-button {
  border: 1px solid rgba(84, 164, 255, 0.35);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(27, 66, 115, 0.72), rgba(8, 29, 59, 0.94));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 18px rgba(57, 155, 255, 0.17) inset;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-button {
  width: 48px;
  height: 48px;
}

.menu-button img {
  width: 26px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bell-button {
  position: relative;
  width: 50px;
  height: 50px;
}

.bell-button img {
  width: 30px;
}

.bell-button span {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f44752;
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.account {
  min-width: 218px;
  height: 58px;
  padding: 8px 14px;
  border: 1px solid rgba(84, 164, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(19, 49, 87, 0.82), rgba(8, 29, 59, 0.72));
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu {
  position: relative;
}

.account-trigger {
  width: 100%;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.account-trigger[aria-expanded="true"] .account-arrow {
  transform: rotate(180deg);
}

.account > img:first-child {
  width: 42px;
  height: 42px;
}

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

.account strong {
  font-size: 15px;
}

.account span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  transition: transform 0.18s ease;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 236px;
  padding: 8px;
  border: 1px solid rgba(84, 164, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12, 35, 68, 0.98), rgba(4, 17, 33, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), 0 0 22px rgba(0, 149, 255, 0.16) inset;
  display: none;
}

.account-menu.is-open .account-dropdown {
  display: grid;
  gap: 6px;
}

.account-dropdown a {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.account-dropdown a:hover {
  border-color: rgba(94, 197, 255, 0.58);
  background: rgba(0, 149, 255, 0.16);
}

.account-dropdown img {
  width: 24px;
  height: 24px;
}

.hero {
  min-height: 118px;
  padding: 28px 32px 8px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 490px;
  align-items: start;
}

.hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.hero p span {
  color: #00c8ff;
}

.hero-visual {
  position: relative;
  height: 128px;
  overflow: hidden;
  opacity: 0.92;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 5%, rgba(0, 187, 255, 0.16) 6%, transparent 7%),
    linear-gradient(150deg, transparent 15%, rgba(0, 187, 255, 0.12) 16%, transparent 17%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(0, 154, 255, 0.17) 43px, transparent 44px),
    radial-gradient(circle at 46% 45%, rgba(0, 171, 255, 0.38), transparent 38%);
  clip-path: polygon(11% 40%, 51% 3%, 98% 28%, 86% 84%, 34% 97%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 6px 10px;
  background: url("https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=900&q=80") center / cover;
  opacity: 0.16;
  clip-path: polygon(11% 40%, 51% 3%, 98% 28%, 86% 84%, 34% 97%);
}

.map-card {
  position: absolute;
  top: 28px;
  left: 168px;
  width: 120px;
  height: 88px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 20px rgba(0, 174, 255, 0.95));
}

.map-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

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

.stat-card,
.register-panel,
.widget,
.banner {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 44, 79, 0.9), rgba(5, 18, 34, 0.9));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.stat-card {
  min-height: 190px;
  border-radius: 15px;
  padding: 28px 24px 18px;
}

.stat-card::before,
.member-card::before,
.widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 36%, rgba(255, 255, 255, 0.18) 68%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.blue {
  --accent: var(--blue);
}

.green {
  --accent: var(--green);
}

.purple {
  --accent: var(--purple);
}

.amber {
  --accent: var(--amber);
}

.stat-content {
  min-height: 100px;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 47%),
    radial-gradient(circle, color-mix(in srgb, var(--accent) 36%, transparent), transparent 63%);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 62%, transparent);
}

.stat-icon img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 70%, transparent));
}

.stat-card strong {
  display: block;
  font-size: clamp(26px, 2.05vw, 31px);
  line-height: 1;
}

.stat-card h2,
.stat-card p {
  margin: 0;
  font-size: 17px;
}

.stat-card h2 {
  margin-top: 12px;
  line-height: 1.18;
}

.stat-card p {
  margin-top: 2px;
  color: #fff;
}

.stat-card a {
  margin: 16px -24px -18px;
  min-height: 50px;
  padding: 0 24px;
  border-top: 1px solid rgba(110, 174, 237, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.stat-card a span,
.member-card button span,
.all-records span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 23%, #06182d);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  line-height: 0;
}

.content-grid {
  padding: 0 18px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.register-panel {
  min-height: 454px;
  border-radius: 15px;
  padding: 18px 20px;
}

.register-panel h2,
.widget h2 {
  margin: 0 0 18px;
  font-size: 19px;
}

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

.member-card {
  position: relative;
  min-height: 364px;
  padding: 10px 18px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 56%, rgba(255, 255, 255, 0.15));
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 33%),
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 13%, #07182f), rgba(4, 16, 31, 0.94));
  text-align: center;
  overflow: hidden;
}

.member-card::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 178px;
  height: 178px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent);
  box-shadow:
    0 0 0 17px color-mix(in srgb, var(--accent) 9%, transparent),
    0 0 0 36px color-mix(in srgb, var(--accent) 5%, transparent),
    0 0 34px color-mix(in srgb, var(--accent) 44%, transparent);
  pointer-events: none;
}

.member-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 188px;
  margin-bottom: 12px;
  border-radius: 11px;
  overflow: hidden;
  background: #07182e;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) contrast(1.03);
}

.member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(3, 13, 28, 0.08), rgba(3, 13, 28, 0.56));
}

.member-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.1;
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 48%, transparent);
}

.member-card p {
  position: relative;
  z-index: 1;
  min-height: 58px;
  margin: 12px auto 14px;
  color: #fff;
  font-size: 15px;
  line-height: 1.43;
}

.member-card button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 48%, #093160), rgba(13, 42, 84, 0.76));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent) inset;
}

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

.widget {
  border-radius: 13px;
  padding: 16px 20px;
}

.quick-actions {
  min-height: 244px;
}

.quick-actions h2 {
  border-bottom: 1px solid rgba(117, 177, 235, 0.2);
  padding-bottom: 10px;
  margin-bottom: 0;
}

.quick-actions a {
  min-height: 47px;
  border-bottom: 1px solid rgba(117, 177, 235, 0.11);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 15px;
}

.quick-actions img {
  width: 35px;
  height: 35px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(26, 97, 170, 0.82), rgba(6, 31, 65, 0.95));
  box-shadow: 0 0 14px rgba(0, 157, 255, 0.36);
}

.recent {
  min-height: 322px;
}

.recent-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid rgba(117, 177, 235, 0.11);
}

.recent-item > img {
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 76%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 44%, transparent);
}

.recent-item strong,
.recent-item span,
.recent-item time {
  display: block;
}

.recent-item strong {
  font-size: 14px;
  font-weight: 600;
}

.recent-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.recent-item time {
  color: #b7c5d8;
  font-size: 12px;
  white-space: nowrap;
}

.all-records {
  --accent: var(--blue);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.banner {
  min-height: 110px;
  margin: 0 358px 8px 18px;
  padding: 18px 34px;
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(11, 52, 96, 0.94), rgba(8, 33, 64, 0.94)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1200&q=80") center / cover;
  display: grid;
  grid-template-columns: 116px 1fr 220px;
  align-items: center;
  gap: 26px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 148, 255, 0.08), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.banner img {
  position: relative;
  z-index: 1;
  width: 88px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.banner div {
  position: relative;
  z-index: 1;
  border-left: 2px solid #ff3349;
  padding-left: 24px;
}

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

.banner strong {
  font-size: 20px;
  line-height: 1.2;
}

.banner span {
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
}

.banner b {
  position: relative;
  z-index: 1;
  justify-self: end;
  color: #ff3c33;
  font-size: 42px;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 4px 0 #861815, 0 0 18px rgba(255, 67, 52, 0.48);
  transform: rotate(-7deg);
}

footer {
  margin-top: auto;
  padding: 0 18px 9px;
  text-align: center;
  color: rgba(183, 197, 216, 0.55);
  font-size: 13px;
}

.crud-dashboard {
  overflow: auto;
}

.top-action-link,
.primary-action,
.ghost-action,
.search-form button,
.row-actions a,
.row-actions button,
.pagination a {
  border: 1px solid rgba(75, 178, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 104, 212, 0.82), rgba(5, 44, 91, 0.9));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 149, 255, 0.18) inset;
}

.top-action-link {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.home-top-link {
  width: 48px;
  min-height: 48px;
  padding: 0;
  justify-content: center;
}

.home-top-link img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(61, 168, 255, 0.75));
}

.crud-hero {
  padding: 30px 32px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.crud-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1;
}

.crud-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.primary-action {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-align: center;
}

.primary-action img {
  width: 26px;
  height: 26px;
}

.crud-panel {
  margin: 0 18px 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(17, 44, 79, 0.92), rgba(5, 18, 34, 0.94));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.alert.is-hiding {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
}

.alert.success {
  border: 1px solid rgba(66, 243, 139, 0.36);
  background: rgba(16, 104, 57, 0.32);
  color: #9cffc4;
}

.alert.error {
  border: 1px solid rgba(255, 82, 96, 0.45);
  background: rgba(133, 19, 37, 0.34);
  color: #ffd0d5;
}

.detail-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(93, 168, 239, 0.32);
  border-radius: 12px;
  background: rgba(4, 20, 39, 0.7);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 20px;
}

.detail-card span,
.detail-card dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.detail-card h2 {
  margin: 6px 0;
  font-size: 22px;
}

.detail-card p,
.detail-card dl {
  margin: 0;
}

.detail-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-card dd {
  margin: 4px 0 0;
  color: #fff;
}

.docente-form {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(93, 168, 239, 0.32);
  border-radius: 12px;
  background: rgba(6, 26, 50, 0.74);
}

.form-title,
.table-toolbar,
.form-actions,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-title {
  margin-bottom: 16px;
}

.form-title h2,
.table-toolbar h2 {
  margin: 0;
  font-size: 21px;
}

.form-title a,
.table-toolbar p {
  color: var(--muted);
}

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

.docente-form label {
  display: grid;
  gap: 7px;
  color: #dfeaff;
  font-size: 13px;
  font-weight: 700;
}

.docente-form input,
.docente-form select,
.search-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(91, 184, 255, 0.32);
  border-radius: 8px;
  background: rgba(3, 14, 28, 0.78);
  color: #fff;
  outline: none;
}

.docente-form input,
.docente-form select {
  padding: 0 11px;
}

.docente-form input[type="file"] {
  min-height: auto;
  padding: 9px;
}

.photo-field {
  grid-column: span 2;
}

.photo-current {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.docente-photo-preview {
  width: 148px;
  height: 148px;
  margin-bottom: 14px;
  border: 1px solid rgba(91, 184, 255, 0.42);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(3, 14, 28, 0.78);
  box-shadow: 0 0 22px rgba(0, 149, 255, 0.18);
}

.docente-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docente-form input:focus,
.docente-form select:focus,
.search-form input:focus {
  border-color: rgba(0, 196, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.14);
}

.form-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.ghost-action {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  background: rgba(8, 31, 59, 0.72);
}

.table-toolbar {
  align-items: flex-end;
  margin-bottom: 16px;
}

.table-toolbar p {
  margin: 6px 0 0;
}

.search-form {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.search-form input {
  padding: 0 12px;
}

.search-form button,
.search-form a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-form a {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(93, 168, 239, 0.24);
  border-radius: 12px;
}

.data-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(117, 177, 235, 0.12);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #9ed4ff;
  background: rgba(9, 36, 69, 0.92);
  font-size: 12px;
  text-transform: uppercase;
}

.data-table td {
  color: #f7fbff;
  font-size: 14px;
}

.data-table td strong,
.data-table td span {
  display: block;
}

.data-table td > span {
  color: var(--muted);
  margin-top: 3px;
}

.dt-container {
  color: var(--text);
}

.dt-container .dt-layout-row {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dt-container .dt-layout-row.dt-layout-table {
  margin-bottom: 0;
}

.dt-container .dt-layout-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-container label,
.dt-container .dt-info {
  color: var(--muted);
  font-size: 14px;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  min-height: 40px;
  border: 1px solid rgba(91, 184, 255, 0.32);
  border-radius: 8px;
  background: rgba(3, 14, 28, 0.78);
  color: #fff;
  outline: none;
}

.dt-container .dt-search input {
  width: min(340px, 58vw);
  margin-left: 10px;
  padding: 0 12px;
}

.dt-container .dt-length select {
  margin: 0 8px;
  padding: 0 28px 0 10px;
}

.dt-container .dt-search input:focus,
.dt-container .dt-length select:focus {
  border-color: rgba(0, 196, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.14);
}

.dt-container .dt-paging {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dt-container .dt-paging .dt-paging-button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px !important;
  border: 1px solid rgba(75, 178, 255, 0.36) !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 104, 212, 0.45), rgba(5, 44, 91, 0.72)) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 149, 255, 0.12) inset;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button:hover {
  border-color: rgba(0, 200, 255, 0.72) !important;
  background: linear-gradient(135deg, rgba(42, 123, 255, 0.92), rgba(0, 202, 255, 0.25)) !important;
}

.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.42;
  cursor: default;
}

.fallback-datatable {
  display: grid;
  gap: 14px;
}

.fallback-controls,
.fallback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.fallback-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fallback-controls input,
.fallback-controls select {
  min-height: 40px;
  border: 1px solid rgba(91, 184, 255, 0.32);
  border-radius: 8px;
  background: rgba(3, 14, 28, 0.78);
  color: #fff;
  outline: none;
}

.fallback-controls input {
  width: min(340px, 58vw);
  padding: 0 12px;
}

.fallback-controls select {
  padding: 0 28px 0 10px;
}

.fallback-paging {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fallback-paging button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(75, 178, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 104, 212, 0.45), rgba(5, 44, 91, 0.72));
  color: #fff;
  cursor: pointer;
}

.fallback-paging button:disabled {
  opacity: 0.42;
  cursor: default;
}

.dt-container table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
}

.dt-container table.dataTable > thead > tr > th,
.dt-container table.dataTable > tbody > tr > td {
  border-bottom: 1px solid rgba(117, 177, 235, 0.12);
}

.dt-container table.dataTable > tbody > tr {
  background: transparent;
}

.dt-container table.dataTable > tbody > tr:hover {
  background: rgba(12, 55, 101, 0.34);
}

.status-pill {
  width: max-content;
  padding: 5px 9px;
  border: 1px solid rgba(117, 177, 235, 0.28);
  border-radius: 999px;
  background: rgba(44, 96, 151, 0.23);
  color: #dcefff;
  font-size: 12px;
}

.status-pill.ok {
  border-color: rgba(66, 243, 139, 0.4);
  background: rgba(20, 117, 69, 0.28);
  color: #9cffc4;
}

.status-pill.off {
  border-color: rgba(255, 173, 37, 0.4);
  background: rgba(132, 86, 18, 0.28);
  color: #ffd690;
}

.toggle-switch {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid rgba(255, 173, 37, 0.45);
  border-radius: 999px;
  background: rgba(132, 86, 18, 0.34);
  box-shadow: 0 0 14px rgba(255, 173, 37, 0.14) inset;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd690;
  box-shadow: 0 0 12px rgba(255, 173, 37, 0.58);
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  border-color: rgba(66, 243, 139, 0.5);
  background: rgba(20, 117, 69, 0.36);
  box-shadow: 0 0 14px rgba(66, 243, 139, 0.16) inset;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #9cffc4;
  box-shadow: 0 0 12px rgba(66, 243, 139, 0.7);
}

.toggle-switch b {
  min-width: 18px;
  color: #fff;
  font-size: 13px;
}

.toggle-switch.is-saving {
  opacity: 0.62;
  cursor: wait;
}

.size-select {
  min-height: 36px;
  min-width: 82px;
  border: 1px solid rgba(91, 184, 255, 0.32);
  border-radius: 8px;
  background: rgba(3, 14, 28, 0.78);
  color: #fff;
  padding: 0 10px;
  outline: none;
}

.size-select:focus {
  border-color: rgba(0, 196, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.14);
}

.size-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.print-action {
  flex-shrink: 0;
}

.print-filter-form {
  padding: 20px;
}

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

.filter-note {
  margin: 16px 0 0;
  color: #9ed4ff;
  font-size: 13px;
  font-weight: 700;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.row-actions a,
.row-actions button {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.row-actions .icon-action {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.icon-action img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 7px rgba(65, 174, 255, 0.7));
}

.row-actions form {
  margin: 0;
}

.row-actions button {
  background: linear-gradient(135deg, rgba(179, 36, 55, 0.9), rgba(82, 13, 26, 0.92));
  border-color: rgba(255, 112, 126, 0.45);
}

.row-actions .danger-action {
  background: linear-gradient(135deg, rgba(179, 36, 55, 0.9), rgba(82, 13, 26, 0.92));
  border-color: rgba(255, 112, 126, 0.45);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 7, 17, 0.78);
  backdrop-filter: blur(10px);
}

.modal-overlay:target {
  display: flex;
}

.modal-window {
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid rgba(91, 184, 255, 0.46);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 169, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(15, 43, 78, 0.98), rgba(4, 16, 31, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.large-modal {
  width: min(1080px, 100%);
}

.danger-modal {
  width: min(560px, 100%);
  border-color: rgba(255, 112, 126, 0.52);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(117, 177, 235, 0.18);
  background: linear-gradient(180deg, rgba(11, 35, 66, 0.98), rgba(7, 25, 48, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.modal-header span {
  color: #9ed4ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-header h2 {
  margin: 5px 0 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.14;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(91, 184, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 31, 59, 0.86);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

.modal-form {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.modal-detail {
  margin: 18px 20px 0;
  grid-template-columns: 1fr;
}

.modal-detail dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delete-copy {
  margin: 22px 20px 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.delete-copy strong {
  color: #ffd0d5;
}

.delete-form {
  padding: 0 20px 20px;
}

.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 112, 126, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(203, 42, 63, 0.96), rgba(101, 14, 30, 0.96));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 70, 88, 0.18) inset;
}

.empty-row {
  height: 90px;
  text-align: center !important;
  color: var(--muted) !important;
}

.pagination {
  margin-top: 16px;
}

.pagination a,
.pagination span {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}

.pagination span {
  color: var(--muted);
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.subnav-active {
  background: linear-gradient(135deg, rgba(42, 123, 255, 0.94), rgba(0, 202, 255, 0.22));
  border-color: rgba(94, 197, 255, 0.78) !important;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0, 76, 255, 0.52) inset, 0 0 20px rgba(0, 149, 255, 0.42);
  transform: translateX(1px);
}

.subnav-active::before {
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
}

.print-page {
  min-height: 100vh;
  background: #f4f7fb;
  color: #172033;
  font-family: Arial, sans-serif;
}

.print-page::before {
  display: none;
}

.print-report {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #d6dfec;
  box-shadow: 0 18px 45px rgba(21, 42, 77, 0.12);
}

.print-header,
.print-brand,
.print-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.print-header {
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 2px solid #0b65c2;
}

.print-brand {
  flex: 1;
}

.print-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.print-brand span {
  color: #d92027;
  font-size: 16px;
  font-weight: 900;
}

.print-brand h1 {
  margin: 3px 0;
  color: #102849;
  font-size: 28px;
  line-height: 1.08;
}

.print-brand p {
  margin: 0;
  color: #4a5d78;
}

.print-brand > div {
  flex: 1;
}

.print-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.print-meta-row small {
  color: #607089;
  white-space: nowrap;
}

.print-summary {
  align-items: flex-start;
  justify-content: space-between;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #d6dfec;
  background: #f8fbff;
  color: #2b3d59;
}

.print-summary strong {
  min-width: max-content;
  color: #102849;
}

.print-filter-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.print-filter-list span {
  display: block;
  padding: 5px 9px;
  border: 1px solid #b8c9df;
  border-radius: 6px;
  background: #eaf3ff;
  color: #102849;
  font-weight: 700;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.print-summary small {
  color: #607089;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.print-table th,
.print-table td {
  padding: 8px 9px;
  border: 1px solid #cfdae8;
  text-align: left;
  vertical-align: top;
}

.print-table th {
  background: #0b3769;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.print-table tbody tr:nth-child(even) {
  background: #f5f8fc;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  .no-print {
    display: none !important;
  }

  .print-page {
    background: #fff;
  }

  .print-report {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .print-table {
    font-size: 10px;
  }

  .print-table th,
  .print-table td {
    padding: 5px 6px;
  }
}

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .login-showcase {
    min-height: auto;
    align-items: center;
    text-align: center;
  }

  .login-showcase h1,
  .login-features {
    margin-left: 0;
  }

  .login-map-scene {
    height: 240px;
  }
}

@media (max-width: 1250px) {
  .app-shell {
    grid-template-columns: 92px 1fr;
  }

  .sidebar {
    padding: 18px 10px;
  }

  .brand {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-bottom: 28px;
  }

  .brand div,
  .nav-item span,
  .subnav,
  .country-card div {
    display: none;
  }

  .brand-logo {
    width: 62px;
    height: 78px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-parent .chevron {
    display: none;
  }

  .country-card {
    justify-content: center;
    padding: 12px;
  }

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

  .hero-visual {
    display: none;
  }

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

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

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

  .banner {
    margin-right: 18px;
  }

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

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

@media (max-width: 860px) {
  .login-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .login-brand-block {
    flex-direction: column;
    gap: 10px;
  }

  .login-logo {
    width: 110px;
    height: 138px;
  }

  .login-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .login-map-scene {
    display: none;
  }

  .login-panel {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .login-options,
  .login-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .google-login {
    width: 100%;
  }

  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    position: static;
    min-height: auto;
    height: auto;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
  }

  .brand,
  .country-card {
    display: none;
  }

  .nav-list {
    flex-direction: row;
  }

  .nav-item {
    min-width: 62px;
  }

  .dashboard {
    border-radius: 0;
  }

  .topbar {
    padding-left: 14px;
  }

  .account {
    min-width: auto;
  }

  .account div,
  .account-arrow {
    display: none;
  }

  .hero {
    padding: 24px 18px 10px;
  }

  .stats-grid,
  .member-grid,
  .side-widgets {
    grid-template-columns: 1fr;
  }

  .content-grid {
    padding-inline: 12px;
  }

  .stats-grid {
    padding-inline: 12px;
  }

  .banner {
    margin-inline: 12px;
    grid-template-columns: 72px 1fr;
    padding: 16px;
  }

  .banner b {
    display: none;
  }

  .crud-hero,
  .table-toolbar,
  .form-title,
  .form-actions,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .crud-panel {
    margin-inline: 12px;
    padding: 14px;
  }

  .form-grid,
  .detail-card,
  .detail-card dl,
  .search-form {
    grid-template-columns: 1fr;
  }

  .row-actions {
    flex-wrap: wrap;
  }

  .dt-container .dt-layout-row,
  .dt-container .dt-layout-cell {
    align-items: stretch;
    flex-direction: column;
  }

  .dt-container .dt-layout-cell {
    width: 100%;
  }

  .dt-container .dt-search input {
    width: 100%;
    margin-left: 0;
  }

  .dt-container .dt-paging {
    flex-wrap: wrap;
  }

  .fallback-controls,
  .fallback-footer,
  .fallback-controls label {
    align-items: stretch;
    flex-direction: column;
  }

  .fallback-controls input {
    width: 100%;
  }

  .modal-overlay {
    padding: 10px;
    align-items: flex-start;
  }

  .modal-window {
    max-height: calc(100vh - 20px);
  }

  .modal-detail dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar-actions {
    gap: 10px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .stat-content {
    grid-template-columns: 76px 1fr;
  }

  .stat-icon {
    width: 72px;
    height: 72px;
  }

  .stat-icon img {
    width: 46px;
    height: 46px;
  }

  .banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner img {
    justify-self: center;
  }

  .banner div {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100dvh;
  }

  .app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 898;
    pointer-events: none;
    background: rgba(1, 7, 17, 0);
    transition: background 0.22s ease;
  }

  .app-shell.is-mobile-sidebar-open::before {
    pointer-events: auto;
    background: rgba(1, 7, 17, 0.72);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 900;
    width: min(320px, 86vw);
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px 14px;
    border-radius: 0 20px 20px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .app-shell.is-mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .brand {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 10px;
    margin: 0 4px 18px;
  }

  .brand div {
    display: block;
  }

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

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

  .nav-list {
    flex-direction: column;
    gap: 7px;
  }

  .nav-item {
    min-width: 0;
    min-height: 52px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 16px;
  }

  .nav-item span,
  .nav-parent .chevron {
    display: block;
  }

  .nav-parent .chevron {
    margin-left: auto;
  }

  .subnav {
    display: grid;
    margin: -1px 0 12px 46px;
  }

  .country-card {
    display: flex;
    min-height: 76px;
    margin-top: 18px;
  }

  .country-card div {
    display: block;
  }

  .dashboard,
  .crud-dashboard {
    width: 100%;
    min-height: 100dvh;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: auto;
    min-height: 64px;
    padding: 9px 10px;
  }

  .topbar-left {
    min-width: 0;
  }

  .menu-button,
  .home-top-link {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 auto;
  }

  .topbar-actions {
    min-width: 0;
    gap: 8px;
  }

  .bell-button {
    width: 44px;
    height: 44px;
  }

  .bell-button img {
    width: 26px;
  }

  .bell-button span {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }

  .account {
    width: 48px;
    height: 48px;
    padding: 5px;
    justify-content: center;
    border-radius: 12px;
  }

  .account > img:first-child {
    width: 36px;
    height: 36px;
  }

  .account-dropdown {
    position: fixed;
    top: 62px;
    right: 10px;
    width: min(264px, calc(100vw - 20px));
  }

  .hero {
    min-height: auto;
    padding: 20px 14px 10px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(24px, 8vw, 30px);
    line-height: 1.12;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.35;
  }

  .stats-grid,
  .content-grid,
  .crud-panel {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card,
  .register-panel,
  .widget,
  .crud-panel {
    border-radius: 12px;
  }

  .content-grid {
    display: grid;
    gap: 12px;
  }

  .register-panel {
    padding: 16px 12px;
  }

  .member-grid {
    gap: 12px;
  }

  .member-card {
    min-height: auto;
    padding: 14px 12px;
  }

  .member-photo {
    max-height: 210px;
  }

  .side-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recent-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .recent-item time {
    grid-column: 2;
    justify-self: start;
  }

  .banner {
    width: calc(100% - 20px);
    margin: 12px auto;
  }

  .crud-hero {
    padding: 20px 10px 12px;
    align-items: stretch;
  }

  .crud-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .primary-action,
  .print-action {
    width: 100%;
  }

  .table-toolbar {
    gap: 12px;
  }

  .table-toolbar > div,
  .table-toolbar > a {
    width: 100%;
  }

  .dt-container .dt-layout-row {
    width: 100%;
    gap: 10px;
  }

  .dt-container .dt-search,
  .dt-container .dt-length,
  .dt-container label {
    width: 100%;
  }

  .dt-container .dt-length select {
    min-width: 100%;
  }

  .dt-container .dt-paging .dt-paging-button {
    min-width: 42px;
    padding: 0 10px;
  }

  .modal-overlay {
    padding: 8px;
  }

  .modal-window,
  .large-modal,
  .danger-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .modal-header {
    padding: 14px;
  }

  .modal-form,
  .delete-form {
    padding: 14px;
  }

  .modal-detail {
    margin: 14px;
  }

  .delete-copy {
    margin: 16px 14px 0;
  }
}

@media (max-width: 700px) {
  .table-wrap {
    width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .fallback-datatable,
  .dt-container,
  .dt-container .dt-layout-row.dt-layout-table,
  .dt-container .dt-layout-cell,
  .dt-container .dt-layout-cell.dt-layout-full {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block;
  }

  .data-table,
  .dt-container table.dataTable {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .data-table colgroup,
  .dt-container table.dataTable colgroup {
    display: none;
  }

  .data-table thead,
  .dt-container table.dataTable > thead {
    display: none;
  }

  .data-table tbody,
  .dt-container table.dataTable > tbody,
  .dt-container table.dataTable tbody {
    display: grid;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .data-table tr,
  .data-table td,
  .dt-container table.dataTable > tbody > tr,
  .dt-container table.dataTable > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  .data-table tr,
  .dt-container table.dataTable > tbody > tr {
    margin-bottom: 12px;
    border: 1px solid rgba(93, 168, 239, 0.28);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(10, 34, 64, 0.92), rgba(4, 18, 36, 0.96));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    overflow: hidden;
  }

  .data-table td,
  .dt-container table.dataTable > tbody > tr > td {
    min-height: 46px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(117, 177, 235, 0.12);
    text-align: right;
  }

  .data-table td:last-child,
  .dt-container table.dataTable > tbody > tr > td:last-child {
    border-bottom: 0;
  }

  .data-table td::before,
  .dt-container table.dataTable > tbody > tr > td::before {
    content: attr(data-label);
    float: left;
    max-width: 46%;
    padding-right: 10px;
    color: #9ed4ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
  }

  .data-table td.empty-row,
  .dt-container table.dataTable > tbody > tr > td.empty-row {
    text-align: center;
  }

  .data-table td.empty-row::before,
  .dt-container table.dataTable > tbody > tr > td.empty-row::before {
    content: none;
  }

  .data-table td strong,
  .data-table td span,
  .dt-container table.dataTable > tbody > tr > td strong,
  .dt-container table.dataTable > tbody > tr > td span {
    margin-left: auto;
    max-width: 52%;
    text-align: right;
  }

  .row-actions {
    justify-content: flex-end;
  }

  .toggle-switch {
    justify-content: flex-end;
  }

  .size-select {
    max-width: 132px;
    margin-left: auto;
  }

  .form-actions {
    gap: 10px;
  }

  .form-actions > *,
  .ghost-action,
  .danger-button {
    width: 100%;
    justify-content: center;
  }

  .photo-field {
    grid-column: auto;
  }

  .data-table:not([data-server-side]) tbody tr,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr {
    display: grid;
    grid-template-columns: 0.82fr 1fr 1fr 1fr 0.72fr 0.72fr;
    gap: 0;
  }

  .data-table:not([data-server-side]) td:nth-child(1),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(1) {
    grid-column: 1 / 2;
    order: 1;
  }

  .data-table:not([data-server-side]) td:nth-child(2),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(2) {
    grid-column: 2 / 5;
    order: 2;
  }

  .data-table:not([data-server-side]) td:nth-child(8),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(8) {
    grid-column: 5 / 7;
    order: 3;
  }

  .data-table:not([data-server-side]) td:nth-child(3),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(3) {
    grid-column: 1 / 3;
    order: 4;
  }

  .data-table:not([data-server-side]) td:nth-child(5),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(5) {
    grid-column: 3 / 5;
    order: 5;
  }

  .data-table:not([data-server-side]) td:nth-child(7),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(7) {
    grid-column: 5 / 7;
    order: 6;
  }

  .data-table:not([data-server-side]) td:nth-child(4),
  .data-table:not([data-server-side]) td:nth-child(6),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(4),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(6) {
    display: none !important;
  }

  .data-table:not([data-server-side]) td,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td {
    min-height: 58px;
    border-bottom: 0;
    text-align: left;
  }

  .data-table:not([data-server-side]) td::before,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td::before {
    float: none;
    display: block;
    max-width: 100%;
    margin-bottom: 5px;
  }

  .data-table:not([data-server-side]) td strong,
  .data-table:not([data-server-side]) td span,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td strong,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td span {
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }

  .data-table:not([data-server-side]) td.empty-row,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td.empty-row {
    grid-column: 1 / -1;
  }

  .data-table:not([data-server-side]) td:nth-child(8)::before,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(8)::before {
    content: none;
  }

  .data-table:not([data-server-side]) td:nth-child(8),
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(8) {
    align-self: center;
    min-height: 58px;
    padding-left: 4px;
  }

  .data-table:not([data-server-side]) td:nth-child(8) .row-actions,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(8) .row-actions {
    height: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .data-table:not([data-server-side]) td:nth-child(8) .icon-action,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(8) .icon-action {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .data-table:not([data-server-side]) td:nth-child(8) .icon-action img,
  .dt-container table.dataTable:not([data-server-side]) > tbody > tr > td:nth-child(8) .icon-action img {
    width: 18px;
    height: 18px;
  }

  .data-table[data-server-side] tbody tr,
  .dt-container table.dataTable[data-server-side] > tbody > tr {
    display: grid;
    grid-template-columns: 0.85fr repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .data-table[data-server-side] td:nth-child(1),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(1) {
    grid-column: 1 / 2;
    order: 1;
  }

  .data-table[data-server-side] td:nth-child(2),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(2) {
    grid-column: 2 / 7;
    order: 2;
  }

  .data-table[data-server-side] td:nth-child(4),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(4) {
    grid-column: 1 / 3;
    order: 3;
  }

  .data-table[data-server-side] td:nth-child(6),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(6) {
    grid-column: 3 / 4;
    order: 4;
  }

  .data-table[data-server-side] td:nth-child(8),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(8) {
    grid-column: 4 / 5;
    order: 5;
  }

  .data-table[data-server-side] td:nth-child(9),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(9) {
    grid-column: 5 / 7;
    order: 6;
  }

  .data-table[data-server-side] td:nth-child(10),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(10) {
    grid-column: 5 / 7;
    order: 7;
  }

  .data-table[data-ajax*="beneficio=casaca"] td:nth-child(9),
  .dt-container table.dataTable[data-ajax*="beneficio=casaca"] > tbody > tr > td:nth-child(9) {
    grid-column: 5 / 6;
  }

  .data-table[data-ajax*="beneficio=casaca"] td:nth-child(10),
  .dt-container table.dataTable[data-ajax*="beneficio=casaca"] > tbody > tr > td:nth-child(10) {
    grid-column: 6 / 7;
  }

  .data-table[data-server-side] td:nth-child(3),
  .data-table[data-server-side] td:nth-child(5),
  .data-table[data-server-side] td:nth-child(7),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(3),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(5),
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(7) {
    display: none !important;
  }

  .data-table[data-server-side] td,
  .dt-container table.dataTable[data-server-side] > tbody > tr > td {
    min-height: 56px;
    border-bottom: 0;
    text-align: left;
  }

  .data-table[data-server-side] td::before,
  .dt-container table.dataTable[data-server-side] > tbody > tr > td::before {
    float: none;
    display: block;
    max-width: 100%;
    margin-bottom: 5px;
  }

  .data-table[data-server-side] td strong,
  .data-table[data-server-side] td span,
  .dt-container table.dataTable[data-server-side] > tbody > tr > td strong,
  .dt-container table.dataTable[data-server-side] > tbody > tr > td span {
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }

  .data-table[data-server-side] td:nth-child(9) .toggle-switch,
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(9) .toggle-switch {
    justify-content: flex-start;
  }

  .data-table[data-server-side] td:nth-child(10) .size-select,
  .dt-container table.dataTable[data-server-side] > tbody > tr > td:nth-child(10) .size-select {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .login-page {
    background:
      radial-gradient(circle at 50% 0%, rgba(0, 132, 255, 0.2), transparent 34%),
      linear-gradient(145deg, #020712 0%, #041731 52%, #020816 100%);
  }

  .login-shell {
    padding: 12px;
    gap: 14px;
  }

  .login-showcase {
    min-height: auto;
  }

  .login-logo {
    width: 86px;
    height: 108px;
  }

  .login-brand-block strong {
    font-size: 38px;
  }

  .login-brand-block span,
  .login-divider,
  .login-showcase h1,
  .login-features {
    display: none;
  }

  .login-panel,
  .password-card {
    padding: 22px 14px;
    border-radius: 18px;
  }

  .login-avatar {
    width: 82px;
    height: 82px;
  }

  .login-panel h2,
  .password-card h1 {
    font-size: 28px;
  }

  .login-input {
    min-height: 52px;
    padding: 0 12px;
  }

  .login-input > img {
    width: 24px;
    height: 24px;
  }

  .login-submit {
    min-height: 58px;
  }

  .stat-content {
    grid-template-columns: 68px 1fr;
    gap: 12px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .stat-card h2 {
    font-size: 17px;
  }

  .member-photo {
    height: 180px;
  }

  .data-table td,
  .dt-container table.dataTable > tbody > tr > td {
    text-align: left;
  }

  .data-table td::before,
  .dt-container table.dataTable > tbody > tr > td::before {
    float: none;
    display: block;
    max-width: none;
    margin-bottom: 5px;
  }

  .data-table td strong,
  .data-table td span,
  .dt-container table.dataTable > tbody > tr > td strong,
  .dt-container table.dataTable > tbody > tr > td span {
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }

  .row-actions,
  .toggle-switch {
    justify-content: flex-start;
  }

  .size-select {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .stats-grid {
    width: calc(100% - 12px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .stat-card {
    min-height: 112px;
    padding: 10px 6px;
    border-radius: 10px;
  }

  .stat-content {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    text-align: center;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
  }

  .stat-icon img {
    width: 27px;
    height: 27px;
  }

  .stat-card strong {
    font-size: clamp(15px, 4.4vw, 22px);
  }

  .stat-card h2,
  .stat-card p {
    font-size: clamp(8px, 2.6vw, 12px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .stat-card h2 {
    margin-top: 3px;
  }

  .stat-card p {
    margin-top: 1px;
  }

  .stat-card a {
    display: none;
  }
}

@media (max-width: 390px) {
  .stats-grid {
    width: calc(100% - 8px);
    gap: 4px;
  }

  .stat-card {
    min-height: 104px;
    padding: 8px 4px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-icon img {
    width: 23px;
    height: 23px;
  }

  .stat-card strong {
    font-size: clamp(13px, 4.1vw, 16px);
  }

  .stat-card h2,
  .stat-card p {
    font-size: clamp(7px, 2.35vw, 9px);
  }
}

@media (max-width: 860px) {
  .quick-actions {
    display: none;
  }

  .register-panel {
    min-height: auto;
  }

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

  .member-card {
    min-height: 188px;
    padding: 8px 6px;
    border-radius: 10px;
    text-align: center;
  }

  .member-card::after {
    top: 10px;
    width: 76px;
    height: 76px;
  }

  .member-photo {
    height: 76px;
    margin-bottom: 7px;
    border-radius: 9px;
  }

  .member-card h3 {
    min-height: 25px;
    font-size: clamp(8px, 2.55vw, 12px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .member-card p {
    display: none;
  }

  .member-card button {
    min-height: 34px;
    margin-top: 8px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: clamp(8px, 2.45vw, 11px);
    line-height: 1.1;
    justify-content: center;
  }

  .member-card button span {
    display: none;
  }
}

@media (max-width: 390px) {
  .member-grid {
    gap: 4px;
  }

  .member-card {
    min-height: 166px;
    padding: 6px 4px;
  }

  .member-photo {
    height: 62px;
  }

  .member-card h3 {
    min-height: 22px;
    font-size: clamp(7px, 2.25vw, 9px);
  }

  .member-card button {
    min-height: 30px;
    font-size: clamp(7px, 2.2vw, 9px);
  }
}
