:root {
  --bg: #071726;
  --panel: rgba(255, 255, 255, .085);
  --stroke: rgba(255, 255, 255, .16);
  --text: #f7fbff;
  --muted: #a8bfd2;
  --cyan: #00beff;
  --blue: #134888;
  --green: #35e29d;
  --yellow: #ffd166;
  --purple: #b79cff;
  --red: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --r: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  text-transform: none !important;
  letter-spacing: normal;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 190, 255, .18), transparent 30%),
    linear-gradient(135deg, #071726, #0a294d 50%, #071726);
}

.bg span {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: .6;
}

.bg span:nth-child(1) {
  width: 320px;
  height: 320px;
  background: var(--cyan);
  left: -130px;
  top: 70px;
}

.bg span:nth-child(2) {
  width: 260px;
  height: 260px;
  background: var(--blue);
  right: -90px;
  top: 140px;
}

.bg span:nth-child(3) {
  width: 210px;
  height: 210px;
  background: #35e29d;
  right: 18%;
  bottom: -110px;
}

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

.auth-card {
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--r);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.08em;
}

.brand-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.brand strong {
  display: block;
  font-size: 20px;
}

.brand span,
.muted {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

/* Logo no login */
.auth-card .brand {
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-bottom: 34px;
  overflow: hidden;
}

.auth-card .brand-img {
  max-width: 240px;
  max-height: 70px;
}

.auth-card .brand strong,
.auth-card .brand span {
  display: none !important;
}

/* Logo no menu lateral */
.side .brand {
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  margin-bottom: 42px;
  overflow: hidden;
}

.side .brand-img {
  max-width: 180px;
  max-height: 54px;
}

.side .brand strong,
.side .brand span {
  display: none !important;
}

.side .logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
}

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

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

label {
  display: grid;
  gap: 8px;
  color: #d4e7f5;
  font-size: 13px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: 0;
  font: inherit;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

input[type="color"] {
  height: 48px;
  padding: 5px;
}

input[type="file"] {
  padding: 10px;
}

textarea {
  min-height: 125px;
}

select option {
  background: #071726;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #071726;
  background: linear-gradient(135deg, var(--cyan), #8ee5ff);
  box-shadow: 0 14px 30px rgba(0, 190, 255, .2);
  transition: .2s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

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

.btn.ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn.danger {
  background: rgba(255, 107, 107, .2);
  color: #fff;
  border: 1px solid rgba(255, 107, 107, .5);
  box-shadow: none;
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.side {
  padding: 24px;
  border-right: 1px solid var(--stroke);
  background: rgba(7, 23, 38, .6);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.side nav {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.side a {
  padding: 13px 14px;
  text-decoration: none;
  color: #e4f1fb;
  border: 1px solid transparent;
  border-radius: 16px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.side a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--stroke);
}

.main {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.top h1 {
  margin: .1em 0 0;
}

.top small,
.card small {
  color: var(--cyan);
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.pill {
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 16px;
  text-align: right;
}

.pill span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  margin: 5px 0;
}

.overlay {
  display: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(18px);
}

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

.stats h2 {
  font-size: 34px;
  margin: 8px 0 0;
}

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

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, .1);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.badge.blue {
  background: rgba(0, 190, 255, .16);
  color: #8ee5ff;
}

.badge.yellow {
  background: rgba(255, 209, 102, .16);
  color: #ffe29a;
}

.badge.green {
  background: rgba(53, 226, 157, .16);
  color: #9dffd4;
}

.badge.purple {
  background: rgba(183, 156, 255, .16);
  color: #d8caff;
}

.badge.muted,
.badge.neutral {
  background: rgba(255, 255, 255, .1);
  color: #d9e8f5;
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .1);
  margin-bottom: 14px;
}

.alert.success {
  border-color: rgba(53, 226, 157, .45);
}

.alert.error {
  border-color: rgba(255, 107, 107, .5);
}

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

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

.tablewrap {
  overflow: auto;
}

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

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
}

th {
  color: #b9d8ef;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.table-logo {
  width: 54px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  padding: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.upload-panel {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, .055);
  display: grid;
  gap: 14px;
}

.upload-panel h3 {
  margin: 0;
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 14px;
}

.item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.linkbox {
  word-break: break-all;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 190, 255, .08);
  border: 1px solid rgba(0, 190, 255, .2);
  color: #bff1ff;
}

.check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check input {
  width: auto;
}

/* Cards de arquivos compactos */
body .main section.card .file-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
}

body .main section.card .file-grid > .file-card,
body .main section.card .file-grid > article.file-card {
  flex: 0 0 160px !important;
  width: 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
  border-radius: 14px !important;
  border: 1px solid var(--stroke) !important;
  background: rgba(255, 255, 255, .06) !important;
  overflow: hidden !important;
}

body .main section.card .file-grid > .file-card img,
body .main section.card .file-grid > .file-card .file-ext,
body .main section.card .file-grid > article.file-card img,
body .main section.card .file-grid > article.file-card .file-ext {
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
}

body .main section.card .file-grid img {
  display: block !important;
  object-fit: cover !important;
  background: rgba(255, 255, 255, .05) !important;
}

body .main section.card .file-grid .file-ext {
  display: grid !important;
  place-items: center !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #bff1ff !important;
  background: linear-gradient(
    135deg,
    rgba(0, 190, 255, .14),
    rgba(19, 72, 136, .2)
  ) !important;
}

body .main section.card .file-grid .file-body {
  padding: 8px !important;
  display: grid !important;
  gap: 4px !important;
}

body .main section.card .file-grid .file-body b {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

body .main section.card .file-grid .file-body span,
body .main section.card .file-grid .file-body small {
  font-size: 10px !important;
  line-height: 1.3 !important;
  color: var(--muted) !important;
}

body .main section.card .file-grid .btn {
  min-height: 28px !important;
  padding: 7px 8px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .06);
}

.logo-preview img {
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 8px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .08);
}

.pagination a.active {
  background: var(--cyan);
  color: #071726;
  font-weight: 900;
}

.danger-zone {
  border-color: rgba(255, 107, 107, .45);
}

a {
  color: #8ee5ff;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: .25s ease;
    border-right: 1px solid var(--stroke);
  }

  .menu-open .side {
    transform: translateX(0);
  }

  .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }

  .menu-open .overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }

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

  .top {
    grid-template-columns: auto 1fr;
  }
}

/* Mobile geral */
@media (max-width: 720px) {
  .main {
    padding: 15px;
  }

  .auth-card {
    padding: 24px;
  }

  .stats,
  .cards,
  .twocol,
  .split {
    grid-template-columns: 1fr;
  }

  body .main section.card .file-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body .main section.card .file-grid > .file-card,
  body .main section.card .file-grid > article.file-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  body .main section.card .file-grid > .file-card img,
  body .main section.card .file-grid > .file-card .file-ext,
  body .main section.card .file-grid > article.file-card img,
  body .main section.card .file-grid > article.file-card .file-ext {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
  }

  .top {
    grid-template-columns: auto 1fr;
  }

  .pill {
    display: none;
  }

  .headrow,
  .item {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* Usuário no topo sem box */
.user-mini {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.user-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.user-info {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-info b {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.user-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

/* Remove visual antigo do pill */
.pill {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--stroke);
  background: rgba(7, 23, 38, .45);
  backdrop-filter: blur(14px);
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: rgba(255, 255, 255, .72);
}

/* Mobile */
@media (max-width: 720px) {
  .user-mini {
    display: none;
  }

  .site-footer {
    padding: 18px 15px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }
}

/* Mobile pequeno: 1 card por linha em 320px */
@media (max-width: 380px) {
  body .main section.card .file-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body .main section.card .file-grid > .file-card,
  body .main section.card .file-grid > article.file-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  body .main section.card .file-grid > .file-card img,
  body .main section.card .file-grid > .file-card .file-ext,
  body .main section.card .file-grid > article.file-card img,
  body .main section.card .file-grid > article.file-card .file-ext {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }
}

/* Usuário no topo */
.user-mini {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.user-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.user-info {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-info b {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.user-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

/* Usuário dentro do menu lateral */
.side-user {
  display: none;
}

/* Remove visual antigo caso ainda exista */
.pill {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--stroke);
  background: rgba(7, 23, 38, .45);
  backdrop-filter: blur(14px);
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: rgba(255, 255, 255, .72);
}

/* Mobile */
@media (max-width: 720px) {
  .top .user-mini {
    display: none !important;
  }

  .side-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin: 0 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
  }

  .side-user .user-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .side-user .user-info {
    min-width: 0;
  }

  .side-user .user-info b {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .side-user .user-info span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
  }

  .side nav {
    margin-top: 10px;
  }

  .site-footer {
    padding: 18px 15px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }
}

/* Usuário no topo */
.user-mini {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.user-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.user-info {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-info b {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.user-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

/* Usuário dentro do menu lateral */
.side-user {
  display: none;
}

/* Botão fechar menu lateral */
.side-close {
  display: none;
}

/* Remove visual antigo caso ainda exista */
.pill {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--stroke);
  background: rgba(7, 23, 38, .45);
  backdrop-filter: blur(14px);
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: rgba(255, 255, 255, .72);
}

/* Tablet e mobile */
@media (max-width: 1100px) {
  .side-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 40;
  }

  .side-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
  }

  .side-close span:first-child {
    transform: rotate(45deg);
  }

  .side-close span:last-child {
    transform: rotate(-45deg);
  }

  .side-close:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .22);
  }

  .side .brand {
    padding-right: 52px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .top .user-mini {
    display: none !important;
  }

  .side-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin: 0 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
  }

  .side-user .user-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .side-user .user-info {
    min-width: 0;
  }

  .side-user .user-info b {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .side-user .user-info span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
  }

  .side nav {
    margin-top: 10px;
  }

  .site-footer {
    padding: 18px 15px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }
}


/* Campo de senha com mostrar/ocultar */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 96px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, .16);
}

/* Checkbox lembrar login */
.remember-check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.remember-check input {
  width: auto;
  min-width: 16px;
  height: 16px;
}

.remember-check span {
  display: inline-block;
  color: var(--muted);
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 420px) {
  .password-field input {
    padding-right: 86px;
  }

  .password-toggle {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* Lista de clientes por checkbox - sem Ctrl/Command */
.field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-weight: 700;
  color: var(--text, #172033);
}

.checkbox-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}

.checkbox-row:hover {
  background: rgba(37, 99, 235, 0.06);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary, #2563eb);
}

.checkbox-row span {
  line-height: 1.3;
}

/* Correção: caixa de clientes compacta com scroll interno */
.form .twocol .field-block {
  min-width: 0;
  align-self: start;
}

.form .twocol .field-block .checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 138px;
  min-height: 138px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

.form .twocol .field-block .checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.25;
}

.form .twocol .field-block .checkbox-row:hover {
  background: rgba(34, 211, 238, 0.08);
}

.form .twocol .field-block .checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: #22d3ee;
}

.form .twocol .field-block .checkbox-row span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form .twocol .field-block .checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.form .twocol .field-block .checkbox-list::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.7);
  border-radius: 999px;
}

.form .twocol .field-block .checkbox-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .form .twocol .field-block .checkbox-list {
    max-height: 130px;
    min-height: 130px;
  }
}
