@charset "UTF-8";
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #23364b;
  background: #f4f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 16px;
  --navy: #142e47;
  --teal: #087f8c;
  --teal-dark: #066774;
  --line: #e0e7ee;
  --muted: #647589;
  --canvas: #f4f7fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #152e47;
}
h2 {
  font-size: 1.125rem;
  letter-spacing: -0.25px;
  margin-bottom: 8px;
  line-height: 1.4;
}
h3 {
  font-size: 1rem;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
small {
  font-size: 0.75rem;
}
strong {
  font-weight: 650;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #55c9d3;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #0a8997 !important;
  box-shadow: 0 0 0 3px #0a899718;
}
input,
select,
textarea {
  color: #263d53;
  background: #fff;
  border: 1px solid #ccd7e1;
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 44px;
  max-width: 100%;
  font-size: 0.9375rem;
}
input::placeholder,
textarea::placeholder {
  color: #8392a2;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23647589' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 36px;
}
input:disabled {
  background: #f3f6f9;
  color: #66788a;
}
code {
  font-size: 0.8125rem;
  word-break: break-word;
}
.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.875rem;
}
.right {
  text-align: right !important;
}
.full {
  width: 100%;
}
.eyebrow {
  display: block;
  color: #087f8c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin-bottom: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 17px;
  background: var(--teal);
  color: white;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover:not(:disabled) {
  background: var(--teal-dark);
  box-shadow: 0 2px 6px #142e4712;
}
.button.secondary {
  background: white;
  border-color: #d5dfe8;
  color: #35506a;
}
.button.secondary:hover:not(:disabled) {
  background: #f3f7fa;
  border-color: #acbfce;
}
.button.text {
  background: transparent;
  border-color: transparent;
  color: #087f8c;
  min-height: 40px;
  padding: 8px 10px;
}
.button.text:hover:not(:disabled) {
  background: #e8f5f5;
  box-shadow: none;
}
.button.large {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 1rem;
}
.button.danger {
  background: #b34647;
}
.button.danger:hover:not(:disabled) {
  background: #923839;
}
.danger-text {
  color: #ac4244 !important;
}
.button.back {
  margin: -12px 0 18px -9px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  min-height: 40px;
  min-width: 40px;
  padding: 8px;
  color: #66788b;
}
.icon-button:hover {
  background: #eaf0f5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eef3f7;
  color: #50677d;
  white-space: nowrap;
}
.badge.success {
  background: #e5f5ed;
  color: #227451;
}
.badge.warning {
  background: #fff2d9;
  color: #976818;
}
.badge.info {
  background: #e9f1ff;
  color: #426caa;
}
.badge.muted {
  background: #eff2f5;
  color: #738193;
}
.badge-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  z-index: 50;
  background: #142e47;
  color: #d2deea;
  display: flex;
  flex-direction: column;
  padding: 31px 18px 19px;
  transition: width 0.2s ease, padding 0.2s ease;
}
.sidebar-close { display: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #0b8c98;
  color: white;
  box-shadow: 0 5px 15px #0000000a;
}
.brand strong {
  display: block;
  color: #fff;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: 1px;
  font-weight: 750;
}
.brand small {
  display: block;
  color: #a5bacd;
  font-size: 9px;
  letter-spacing: 1.1px;
  margin-top: 5px;
}
.sidebar > .brand {
  padding: 0 9px;
  margin-bottom: 42px;
}
.nav-caption {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #829bb0;
  padding: 0 13px 14px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 13px;
  text-decoration: none;
  font-size: 0.875rem;
  color: #c2d2e2;
  font-weight: 500;
  border: 1px solid transparent;
}
.sidebar nav a svg {
  opacity: 0.85;
}
.sidebar nav a:hover {
  background: #ffffff09;
  color: white;
}
.sidebar nav a.active {
  background: #087f8c;
  color: #fff;
  border-color: #24949f;
  box-shadow: 0 3px 8px #001b2710;
}
.sidebar nav a.active svg {
  opacity: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-timezone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  color: #8ea8be;
  padding: 10px 13px 20px;
}
.sidebar-person {
  border-top: 1px solid #ffffff13;
  padding: 21px 9px 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar,
.topbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2a455d;
  color: #e9f2fa;
  font-size: 0.75rem;
  font-weight: 700;
}
.sidebar-person > div {
  min-width: 0;
}
.sidebar-person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: #eef4fa;
}
.sidebar-person small {
  display: block;
  font-size: 10px;
  color: #9db3c6;
  line-height: 1.6;
  margin-top: 3px;
}
.button.nav-logout {
  color: #aec3d4;
  background: transparent;
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
}
.button.nav-logout:hover {
  background: #ffffff0b;
}
.main-shell {
  margin-left: 244px;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: margin-left 0.2s ease;
}
.topbar {
  height: 77px;
  min-height: 77px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 38px;
}
.topbar > div {
  flex: 1;
  min-width: 0;
}
.topbar strong {
  font-size: 0.875rem;
  color: #233c54;
  letter-spacing: 0.05px;
}
.topbar strong span {
  font-weight: 450;
  color: #60748a;
}
.topbar small {
  display: block;
  color: #8a98a7;
  font-size: 10px;
  letter-spacing: 0.2px;
  margin-top: 5px;
}
.topbar-avatar {
  background: #e8f3f4;
  color: #087f8c;
  border: 1px solid #cbe7e9;
}
.menu-toggle {
  display: flex;
  flex-shrink: 0;
}
.main-content {
  flex: 1;
  padding: 36px 38px 28px;
  max-width: 1630px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.footer {
  font-size: 10px;
  color: #5f7284;
  text-align: center;
  line-height: 1.6;
  padding: 6px 10px 13px;
  border: 0;
  background: transparent;
  font-weight: 400;
  flex-shrink: 0;
}
.app-shell .toast {
  bottom: 48px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 0.875rem;
  color: #718195;
  margin-bottom: 0;
  max-width: 750px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
  flex-shrink: 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 7px #23364b03;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid #e9eef3;
  gap: 16px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading p {
  font-size: 0.8125rem;
  color: #7b8999;
  margin: 5px 0 0;
}
.panel-heading .step-label {
  margin-bottom: 12px;
}
.loading {
  padding: 50px 24px;
  text-align: center;
  color: #7a8c9e;
  font-size: 0.9375rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
}
thead {
  background: #f8fafc;
}
th {
  padding: 14px 22px;
  color: #728397;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  border-bottom: 1px solid #e9eef3;
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
  line-height: 1.5;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfdfe;
}
td strong {
  color: #2c435a;
}
.cell-secondary {
  display: block;
  color: #8190a0;
  margin-top: 4px;
  font-size: 0.75rem;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid #e8eef4;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  max-width: 440px;
  flex: 1;
  border: 1px solid #ccd7e1;
  border-radius: 8px;
  padding-left: 12px;
  color: #8696a8;
  background: white;
}
.search:focus-within {
  border-color: #0a8997;
  box-shadow: 0 0 0 3px #0a899718;
}
.search input {
  width: 100%;
  border: 0;
  box-shadow: none !important;
  min-width: 0;
  background: transparent;
}
.toolbar > select {
  max-width: 280px;
}
.filters .field {
  margin: 0;
  min-width: 155px;
  max-width: 260px;
}
.filters > .field:first-child {
  flex: 1;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e9eef3;
  padding: 15px 22px;
  color: #8090a1;
  font-size: 0.75rem;
}
.pager > div {
  display: flex;
  gap: 7px;
}
.pager .button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.75rem;
}
.empty {
  text-align: center;
  padding: 66px 26px 70px;
}
.empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff5f8;
  color: #7b9aaa;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.empty h3 {
  font-size: 1.0625rem;
  color: #2f485e;
  margin-bottom: 8px;
}
.empty p {
  color: #7f8d9d;
  max-width: 470px;
  font-size: 0.875rem;
  margin: 0 auto 21px;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #d1e6e9;
  border-radius: 9px;
  background: #eff8f8;
  color: #357481;
  padding: 13px 15px;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 16px 0;
}
.notice svg {
  margin-top: 2px;
}
.notice.error {
  background: #fff4f2;
  border-color: #f4d8d4;
  color: #a34e46;
}
.error[role="alert"] {
  margin: 0 0 18px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px 24px;
}
.stat > span {
  display: block;
  color: #6e8193;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}
.stat > strong {
  display: block;
  color: #1e3e55;
  font-size: 1.875rem;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.stat > small {
  display: block;
  color: #8d9ba8;
  font-size: 0.75rem;
  margin-top: 11px;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.campaign-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  box-shadow: 0 2px 7px #23364b03;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 8px;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #edf6f7;
  color: #0b8b98;
}
.campaign-card h2 {
  font-size: 1.1875rem;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.campaign-dates {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: #7a8c9d;
  margin-bottom: 25px;
}
.campaign-limit {
  margin-top: auto;
  padding: 15px 0 20px;
  border-top: 1px solid #edf1f5;
}
.campaign-limit > span {
  display: block;
  font-size: 0.75rem;
  color: #7f8d9c;
  margin-bottom: 7px;
}
.campaign-limit strong {
  font-size: 1.5rem;
  color: #23445b;
}
.campaign-limit small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #81919f;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #dce5ed;
  margin-bottom: 20px;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 13px 2px;
  font-size: 0.875rem;
  color: #798a9b;
  font-weight: 600;
}
.tabs button[aria-selected="true"] {
  color: #087f8c;
  border-bottom-color: #087f8c;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
  font-size: 0.875rem;
}
.field > span {
  color: #445d73;
  font-weight: 550;
  font-size: 0.875rem;
}
.field b {
  color: #a94848;
  font-weight: 500;
}
.field small {
  font-size: 0.75rem;
  color: #8a98a6;
  font-weight: 400;
  line-height: 1.5;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-note {
  font-size: 0.8125rem;
  color: #7c8d9f;
  line-height: 1.65;
  margin-bottom: 0;
}
.modal {
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #e1e8ef;
  border-radius: 15px;
  color: #23364b;
  box-shadow: 0 24px 100px #102b3e30;
  overflow: auto;
  background: white;
}
.modal.wide {
  max-width: 770px;
}
.modal::backdrop {
  background: #112c4488;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid #e8eef3;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-heading h2 {
  margin: 0;
  font-size: 1.1875rem;
}
.modal-body {
  padding: 24px;
}
.modal-body > .field:last-child {
  margin-bottom: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 24px;
  border-top: 1px solid #e6edf3;
  background: #fcfdfe;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.summary-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f4f8fb;
  border: 1px solid #e5edf3;
  border-radius: 9px;
  padding: 16px 19px;
  margin-bottom: 22px;
}
.summary-block small {
  color: #8295a7;
  letter-spacing: 1px;
  font-size: 10px;
  font-weight: 600;
}
.summary-block strong {
  font-size: 1.125rem;
}
.summary-block > span {
  font-size: 0.8125rem;
  color: #71859a;
}
.file-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  border: 1px dashed #abcbd0;
  background: #f5fbfb;
  border-radius: 10px;
  min-height: 180px;
  padding: 22px;
  margin: 23px 0;
  color: #428492;
  cursor: pointer;
}
.file-picker strong {
  font-size: 0.9375rem;
}
.file-picker span {
  font-size: 0.75rem;
  color: #88a0ad;
  max-width: 320px;
  line-height: 1.6;
}
.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-picker:focus-within {
  outline: 3px solid #55c9d3;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #445d73;
  margin: 15px 0;
}
.checkbox input,
.profile-selector input {
  accent-color: #087f8c;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
}
.profile-selector {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #dce5ed;
  border-radius: 9px;
}
.profile-selector legend {
  font-size: 0.875rem;
  font-weight: 550;
  color: #445d73;
  padding: 0 5px;
}
.profile-selector label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 39px;
  font-size: 0.875rem;
  cursor: pointer;
}
.permission-details {
  margin-top: 22px;
  border: 1px solid #dce5ed;
  border-radius: 9px;
  padding: 15px;
}
.permission-details summary {
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
  color: #456379;
}
.permission-details p {
  margin: 13px 0;
}
.permission-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf1f5;
  padding: 10px 0;
  font-size: 0.8125rem;
}
.permission-row select {
  font-size: 0.75rem;
  min-width: 170px;
  max-width: 205px;
}
.you {
  font-size: 10px;
  margin-left: 9px;
  padding: 3px 6px;
  background: #edf6f7;
  color: #087f8c;
  border-radius: 4px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}
.detail-top small {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #8b9bad;
}
.detail-top h3 {
  margin: 7px 0;
  font-size: 1.125rem;
}
.detail-top .mono {
  color: #8294a6;
  font-size: 0.8125rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 25px;
}
.detail-grid small {
  display: block;
  color: #8999a9;
  font-size: 0.75rem;
  margin-bottom: 7px;
}
.detail-grid strong {
  font-size: 0.875rem;
  font-weight: 550;
}
.quantity-small {
  width: 90px;
}
.review-lines > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #e8eef3;
  font-size: 0.9375rem;
}
.review-lines strong {
  white-space: nowrap;
}
.review-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 20px 0;
  font-size: 0.9375rem;
}
.review-total strong {
  color: #087f8c;
}
.lookup-layout,
.authorize-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.8fr);
  gap: 25px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.lookup-card {
  padding: 35px;
}
.lookup-card h2 {
  font-size: 1.625rem;
  margin: 22px 0 9px;
  letter-spacing: -0.5px;
}
.lookup-card > p {
  color: #8092a2;
  font-size: 0.875rem;
  margin-bottom: 28px;
}
.lookup-card input[inputmode="numeric"] {
  font-size: 1.5rem;
  letter-spacing: 1px;
  height: 62px;
  font-family: Consolas, monospace;
  color: #24465b;
}
.step-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #508591;
}
.step-label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #e4f3f3;
  color: #16828e;
  font-size: 0.75rem;
  letter-spacing: 0;
}
.operation-note {
  padding: 30px 18px;
  color: #8093a3;
}
.operation-note > svg {
  color: #4c95a1;
  margin-bottom: 22px;
}
.operation-note h3 {
  color: #406277;
  font-size: 1rem;
}
.operation-note p {
  font-size: 0.875rem;
}
.operation-note small {
  color: #91a0ae;
  font-size: 0.75rem;
}
.note-divider {
  height: 1px;
  background: #e0e8f0;
  margin: 26px 0;
}
.authorize-card {
  padding: 36px;
}
.large-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 21px;
  color: #0d8b97;
  background: #eaf6f6;
  margin-bottom: 24px;
}
.authorize-card h2 {
  font-size: 1.5rem;
}
.authorize-card > p {
  font-size: 0.875rem;
  color: #7d8e9f;
  margin-bottom: 27px;
}
.attendance-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #16394e;
  color: white;
  border-radius: 13px;
  padding: 25px;
  margin-bottom: 22px;
}
.person-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff13;
  color: #9ddbdc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.person-information {
  flex: 1;
  min-width: 0;
}
.person-information > small {
  color: #91bbc8;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.person-information h2 {
  font-size: 1.3125rem;
  color: white;
  margin: 7px 0;
}
.person-information p {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: #bad0dd;
  font-size: 0.8125rem;
  margin: 0;
}
.person-information .mono {
  font-size: 0.8125rem;
}
.balance {
  border-left: 1px solid #ffffff1b;
  padding-left: 22px;
  min-width: 130px;
}
.balance > small {
  font-size: 0.75rem;
  color: #9bbdce;
  display: block;
  margin-bottom: 6px;
}
.balance strong {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.balance strong span {
  font-size: 1rem;
  font-weight: 400;
  color: #90afc2;
}
.timer {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 3px 9px;
  padding: 11px 14px;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  background: #ffffff08;
  min-width: 121px;
}
.timer > strong {
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  color: #aee2df;
}
.timer > svg {
  color: #aee2df;
}
.timer > small {
  grid-column: 1/3;
  font-size: 9px;
  color: #b4c8d7;
  text-align: center;
}
.timer.urgent {
  background: #fff1cf;
  color: #92702f;
  border-color: #fff1cf;
}
.timer.urgent > strong,
.timer.urgent > svg,
.timer.urgent > small {
  color: #8b641a;
}
.item-selection-grid {
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.selection-item {
  position: relative;
  border: 1px solid #dce5ed;
  border-radius: 11px;
  padding: 20px;
  min-width: 0;
}
.selection-item.chosen {
  border-color: #66b8bc;
  background: #f3fbfa;
  box-shadow: 0 0 0 1px #a0d6d51a;
}
.selection-icon {
  display: inline-flex;
  color: #739eab;
  margin-bottom: 17px;
}
.selection-item.chosen .selection-icon {
  color: #168a92;
}
.selection-item h3 {
  font-size: 1rem;
  margin-bottom: 7px;
}
.selection-item > small {
  display: block;
  color: #8b9aaa;
  font-size: 0.75rem;
}
.selection-item > small.stock-warning {
  color: #a17d36;
}
.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(32px, 1fr) 44px;
  border: 1px solid #cbdbe0;
  border-radius: 8px;
  margin-top: 22px;
  overflow: hidden;
  background: white;
  max-width: 220px;
}
.quantity-control button {
  border: 0;
  background: #f7fafb;
  min-height: 46px;
  color: #087f8c;
  font-size: 1.375rem;
  font-weight: 500;
}
.quantity-control button:hover:not(:disabled) {
  background: #e6f4f3;
}
.quantity-control input {
  border: 0;
  border-left: 1px solid #e5ecef;
  border-right: 1px solid #e5ecef;
  text-align: center;
  min-width: 0;
  border-radius: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  padding: 8px 2px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.stock-notice {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  font-size: 10px;
  color: #a17c34;
  line-height: 1.5;
}
.operation-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 27px;
  border-top: 1px solid #e7edf2;
  background: #fbfdfd;
}
.operation-total small {
  display: block;
  color: #8798a8;
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.operation-total strong {
  font-size: 1.75rem;
  color: #214b60;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.operation-total strong span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #7894a4;
  letter-spacing: 0;
}
.operation-total p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #7d94a4;
}
.panel > .notice {
  margin: 18px 25px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 122px);
  transform: translateX(-50%);
  z-index: 100;
  background: #183f50;
  color: white;
  box-shadow: 0 8px 30px #0a26382b;
  border: 1px solid #315968;
  border-radius: 10px;
  padding: 12px 13px 12px 18px;
  max-width: min(630px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.toast > .icon-button {
  color: #d0e5ed;
  min-height: 30px;
  min-width: 30px;
}
.toast > svg {
  color: #a5e1d3;
}
.login-page {
  min-height: 100dvh;
  display: flex;
  background: white;
}
.login-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #142f49 0%, #16394f 53%, #14525b 100%);
  width: 40%;
  padding: 43px 55px;
  display: flex;
  flex-direction: column;
  color: #cfdee9;
}
.login-story > .brand {
  align-self: flex-start;
}
.login-story-content {
  margin: auto 0;
  padding: 50px 0 80px;
  position: relative;
  z-index: 1;
}
.login-story-content > .eyebrow {
  color: #7cbdc6;
  font-size: 10px;
  letter-spacing: 1.5px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.login-story h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  color: #fff;
  line-height: 1.13;
  letter-spacing: -1.7px;
  margin-bottom: 25px;
  font-weight: 650;
}
.login-story-content > p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #aac4d4;
  max-width: 390px;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 39px;
}
.login-features > div {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.8125rem;
  color: #c4d8e3;
}
.login-features svg {
  color: #73c1c5;
}
.login-story-bottom {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #83a8ba;
  position: relative;
  z-index: 1;
}
.story-decoration {
  position: absolute;
  right: -100px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  transform: rotate(27deg);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.story-decoration > div {
  border: 1px solid #70b7bc32;
  position: absolute;
  inset: 0;
  border-radius: 40px;
}
.story-decoration > div:nth-child(2) {
  inset: 36px;
}
.story-decoration > div:nth-child(3) {
  inset: 72px;
  background: #ffffff02;
}
.login-side {
  width: 60%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 35px 30px 4px;
}
.login-form {
  width: 100%;
  max-width: 370px;
  margin: auto;
  padding: 50px 0;
}
.login-form > .eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  margin-bottom: 13px;
}
.login-form h2 {
  font-size: 2rem;
  letter-spacing: -0.8px;
  color: #1b354b;
  font-weight: 650;
  margin-bottom: 11px;
}
.login-form > p {
  font-size: 0.875rem;
  color: #8a98a8;
  margin-bottom: 34px;
}
.login-form .field {
  margin-bottom: 22px;
}
.login-form .button {
  margin-top: 4px;
}
.login-security {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 29px;
  color: #98a6b3;
  font-size: 0.75rem;
}
.login-security > svg {
  color: #7da2ab;
}
.login-mobile-brand {
  display: none;
}
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
  min-height: 100dvh;
  background: #142e47;
}
.app-loading p {
  color: #b1c7d7;
  font-size: 0.875rem;
}
.nav-backdrop {
  display: none;
}
@media (min-width: 1550px) {
  .main-content {
    padding: 42px 48px;
  }
  .campaign-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .item-selection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main-shell {
    margin-left: 220px;
  }
  .main-content {
    padding: 29px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toast {
    left: calc(50% + 110px);
  }
  .item-selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .attendance-banner {
    gap: 14px;
    padding: 22px;
  }
  .person-avatar {
    display: none;
  }
  .balance {
    padding-left: 15px;
    min-width: 105px;
  }
  .person-information h2 {
    font-size: 1.125rem;
  }
  .lookup-layout,
  .authorize-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.8fr);
    gap: 10px;
  }
  .login-story {
    padding: 38px;
  }
  .login-story h1 {
    font-size: 2.9rem;
  }
}
@media (max-width: 950px) {
  .page-heading {
    flex-direction: column;
    gap: 6px;
  }
  .heading-actions {
    padding-top: 9px;
  }
  .attendance-banner {
    flex-wrap: wrap;
  }
  .person-information {
    flex-basis: 50%;
  }
  .balance {
    margin-left: auto;
  }
  .timer {
    min-width: 115px;
  }
  .operation-note {
    padding: 25px 10px;
  }
  .lookup-card {
    padding: 27px;
  }
  .panel-heading {
    padding: 20px;
  }
  .stat {
    padding: 19px;
  }
  .main-content {
    padding: 27px 22px;
  }
  .login-story {
    width: 40%;
    padding: 34px;
  }
  .login-side {
    width: 60%;
  }
  .login-story h1 {
    font-size: 2.5rem;
  }
  .login-story-content > p {
    font-size: 0.875rem;
  }
  .login-features {
    gap: 18px;
  }
  .login-features > div {
    font-size: 0.75rem;
  }
}
@media (max-width: 760px) {
  .sidebar-close {
    display: flex;
    position: absolute;
    top: 25px;
    right: 12px;
    color: #d2deea;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 260px;
    padding: 25px 17px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #132e4677;
    border: 0;
    padding: 0;
  }
  .main-shell {
    margin-left: 0;
  }
  .menu-toggle {
    display: flex;
    margin-left: -8px;
  }
  .topbar {
    height: 68px;
    min-height: 68px;
    padding: 0 18px;
    gap: 11px;
  }
  .topbar strong {
    font-size: 0.8125rem;
  }
  .topbar strong span {
    font-size: 0.75rem;
  }
  .topbar small {
    font-size: 9px;
  }
  .topbar-avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .main-content {
    padding: 25px 19px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .page-heading p {
    font-size: 0.8125rem;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.35px;
  }
  .heading-actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .stat-grid {
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 16px 13px;
  }
  .stat > span {
    font-size: 0.75rem;
    line-height: 1.45;
    min-height: 34px;
  }
  .stat > strong {
    font-size: 1.625rem;
  }
  .stat > small {
    font-size: 10px;
    line-height: 1.5;
  }
  .campaign-grid {
    gap: 14px;
  }
  .campaign-card {
    padding: 19px;
  }
  .campaign-card h2 {
    font-size: 1.0625rem;
  }
  .campaign-dates {
    font-size: 10px;
    gap: 5px;
  }
  .campaign-card .badge {
    font-size: 10px;
    padding: 4px 7px;
  }
  .toolbar {
    padding: 16px;
    gap: 10px;
  }
  .search {
    flex-basis: 100%;
    max-width: none;
  }
  .toolbar > select {
    flex: 1;
    max-width: none;
  }
  .toolbar.filters {
    align-items: flex-end;
  }
  .filters .field {
    min-width: 130px;
    flex: 1;
  }
  .filters > .field:first-child {
    min-width: 100%;
    max-width: none;
  }
  .table-wrap table {
    min-width: 620px;
  }
  th,
  td {
    padding-left: 17px;
    padding-right: 17px;
  }
  .pager {
    padding: 14px 16px;
  }
  .lookup-layout,
  .authorize-layout {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  .operation-note {
    padding: 17px 10px;
  }
  .operation-note > svg {
    display: none;
  }
  .operation-note p {
    max-width: none;
  }
  .operation-note .note-divider,
  .operation-note > small {
    display: none;
  }
  .operation-note h3 {
    margin-bottom: 8px;
  }
  .lookup-card {
    padding: 27px;
  }
  .attendance-banner {
    padding: 20px;
    gap: 15px;
  }
  .person-information {
    flex-basis: 100%;
  }
  .person-information h2 {
    font-size: 1.25rem;
  }
  .balance {
    margin-left: 0;
    padding-left: 0;
    border: 0;
    flex: 1;
  }
  .balance strong {
    font-size: 1.75rem;
  }
  .timer {
    padding: 8px 13px;
  }
  .item-selection-grid {
    padding: 20px;
    gap: 14px;
  }
  .selection-item {
    padding: 18px;
  }
  .selection-item h3 {
    font-size: 0.9375rem;
  }
  .quantity-control {
    grid-template-columns: 44px minmax(28px, 1fr) 44px;
    max-width: none;
  }
  .quantity-control button {
    min-height: 50px;
  }
  .operation-total {
    padding: 21px;
    align-items: center;
  }
  .operation-total .button.large {
    font-size: 0.875rem;
    padding: 14px 17px;
  }
  .toast {
    left: 50%;
    bottom: 18px;
    width: max-content;
    max-width: calc(100vw - 30px);
    font-size: 0.8125rem;
  }
  .modal-body {
    padding: 21px;
  }
  .modal-heading {
    padding: 15px 18px;
  }
  .modal-actions {
    padding: 15px 20px;
  }
  .login-story {
    display: none;
  }
  .login-side {
    width: 100%;
    padding: 25px 25px 5px;
  }
  .login-mobile-brand {
    display: block;
    margin-bottom: 55px;
  }
  .login-mobile-brand .brand strong {
    color: #183c53;
  }
  .login-mobile-brand .brand small {
    color: #7691a5;
  }
  .login-form {
    padding: 25px 0 50px;
    max-width: 390px;
  }
  .login-form h2 {
    font-size: 1.875rem;
  }
  .login-form > p {
    margin-bottom: 30px;
  }
  .footer {
    font-size: 9px;
    padding-bottom: 10px;
  }
  .permission-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .permission-row select {
    max-width: none;
    width: 100%;
  }
  .detail-grid {
    gap: 17px;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 430px) {
  .main-content {
    padding: 23px 14px;
  }
  .topbar strong span {
    display: none;
  }
  .campaign-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .stat {
    padding: 14px 10px;
  }
  .stat > span {
    font-size: 10px;
    min-height: 30px;
  }
  .stat > small {
    display: none;
  }
  .stat > strong {
    font-size: 1.5rem;
  }
  .item-selection-grid {
    grid-template-columns: 1fr;
    padding: 17px;
  }
  .selection-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    align-items: center;
  }
  .selection-item .selection-icon {
    display: none;
  }
  .selection-item h3 {
    margin: 0;
    grid-column: 1;
  }
  .selection-item > small {
    grid-column: 1;
  }
  .selection-item .quantity-control {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    width: 140px;
    grid-template-columns: 42px 1fr 42px;
  }
  .selection-item .stock-notice {
    grid-column: 1/3;
    margin-top: 5px;
  }
  .operation-total {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .operation-total .button {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-actions {
    gap: 8px;
  }
  .modal-actions .button {
    padding: 11px 14px;
    font-size: 0.8125rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .panel-heading {
    padding: 18px;
  }
  .person-information h2 {
    font-size: 1.125rem;
  }
  .attendance-banner {
    padding: 18px;
  }
  .lookup-card {
    padding: 24px 20px;
  }
  .lookup-card h2 {
    font-size: 1.4375rem;
  }
  .pager {
    flex-wrap: wrap;
    gap: 10px;
  }
  .empty {
    padding: 45px 20px;
  }
  .login-mobile-brand {
    margin-bottom: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 1025px) {
  .nav-collapsed .sidebar { width: 80px; padding-left: 12px; padding-right: 12px; }
  .nav-collapsed .main-shell { margin-left: 80px; }
  .nav-collapsed .sidebar > .brand { padding-left: 0; padding-right: 0; justify-content: center; }
  .nav-collapsed .sidebar .brand > span:last-child,
  .nav-collapsed .nav-caption,
  .nav-collapsed .sidebar nav a > span,
  .nav-collapsed .sidebar-timezone,
  .nav-collapsed .sidebar-person > div,
  .nav-collapsed .nav-logout > span { display: none; }
  .nav-collapsed .sidebar nav a { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
  .nav-collapsed .sidebar nav a svg { flex-shrink: 0; }
  .nav-collapsed .sidebar-person { justify-content: center; padding-left: 0; padding-right: 0; }
  .nav-collapsed .button.nav-logout { justify-content: center; padding-left: 0; padding-right: 0; }
  .nav-collapsed .toast { left: calc(50% + 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .main-shell { transition: none; }
}

/* Página inicial: gráficos baseados exclusivamente nas campanhas vigentes. */
.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-stats .stat { padding: 22px; }
.dashboard-stats .stat > strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 31px 0 20px; }
.dashboard-section-heading h2 { margin: 0 0 7px; font-size: 1.125rem; color: #213e55; }
.dashboard-section-heading p { margin: 0; color: #8091a2; font-size: .8125rem; }
.dashboard-update { display: flex; align-items: center; gap: 7px; color: #65858b; font-size: .75rem; white-space: nowrap; }
.dashboard-update i { width: 6px; height: 6px; background: #118a8e; border-radius: 50%; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dashboard-campaign { min-width: 0; display: flex; flex-direction: column; }
.dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 23px 25px 18px; border-bottom: 1px solid #edf1f4; }
.dashboard-card-heading h2 { color: #203d54; font-size: 1.0625rem; margin: 0 0 8px; overflow-wrap: anywhere; line-height: 1.5; }
.dashboard-card-heading p { font-size: .75rem; color: #8394a4; margin: 0; }
.dashboard-card-heading .badge { flex-shrink: 0; margin-top: 3px; }
.dashboard-coverage { display: flex; align-items: center; gap: 25px; padding: 18px 25px 14px; }
.dashboard-donut { width: 143px; height: 143px; flex-shrink: 0; }
.donut-value { font-size: 25px; font-weight: 700; fill: #213f55; font-variant-numeric: tabular-nums; }
.donut-caption { font-size: 10px; fill: #8093a3; }
.dashboard-legend { flex: 1; min-width: 0; }
.dashboard-legend h3 { font-size: .8125rem; color: #4a6378; font-weight: 600; margin: 0 0 18px; }
.dashboard-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; margin: 0 0 12px; color: #708598; }
.dashboard-legend > div > span { display: flex; align-items: center; gap: 8px; }
.dashboard-legend strong { color: #29485d; font-variant-numeric: tabular-nums; }
.dashboard-legend > small { display: block; font-size: .75rem; color: #8999a8; margin-top: 17px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.delivered { background: #098691; }.legend-dot.pending { background: #dce7ed; }
.dashboard-quantities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 25px 22px; padding: 17px 19px; border-radius: 9px; background: #f4f8fa; }
.dashboard-quantities strong { display: block; font-size: 1.375rem; font-variant-numeric: tabular-nums; color: #254a5f; overflow-wrap: anywhere; }
.dashboard-quantities span { display: block; font-size: .75rem; line-height: 1.6; color: #8295a4; margin-top: 5px; }
.dashboard-items { padding: 0 25px 24px; }
.dashboard-section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dashboard-section-label h3 { font-size: .8125rem; color: #4a6378; margin: 0; }
.dashboard-section-label > span { font-size: .6875rem; color: #8a9bab; }
.dashboard-item-row { margin-bottom: 17px; }
.dashboard-item-row:last-child { margin-bottom: 0; }
.dashboard-item-row > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: .8125rem; line-height: 1.5; margin-bottom: 7px; color: #658093; }
.dashboard-item-row > div:first-child > span { overflow-wrap: anywhere; min-width: 0; }
.dashboard-item-row strong { font-variant-numeric: tabular-nums; color: #34576a; }
.dashboard-bar { height: 7px; background: #eef3f6; border-radius: 8px; overflow: hidden; }
.dashboard-bar > span { display: block; height: 100%; border-radius: inherit; background: #258f9b; }
.dashboard-item-row > small { display: block; color: #9b8b74; font-size: .6875rem; margin-top: 6px; }
.dashboard-no-items { font-size: .8125rem; color: #8b9ca9; }
.dashboard-history-link { display: flex; justify-content: space-between; align-items: center; color: #41808e; font-size: .75rem; padding: 16px 25px; text-decoration: none; border-top: 1px solid #edf1f4; margin-top: auto; }
.dashboard-history-link:hover { background: #f6fafb; }
.dashboard-footnote { color: #8b9ba9; font-size: .75rem; line-height: 1.8; margin: 22px 0 8px; }
.dashboard-updated-at { color: #8b9ba9; font-size: .6875rem; margin: 0; }
.dashboard-stale { color: #977649; font-size: .8125rem; margin: 8px 0 20px; }
@media (max-width: 1200px) {
 .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
 .dashboard-stats { gap: 10px; }.dashboard-stats .stat { padding: 16px; }
 .dashboard-stats .stat > strong { font-size: 1.5rem; }
 .dashboard-section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
 .dashboard-coverage { padding: 15px; gap: 13px; }.dashboard-donut { width: 120px; height: 120px; }
 .dashboard-card-heading { padding: 20px 17px 16px; }.dashboard-quantities { margin-left: 17px; margin-right: 17px; padding: 15px; }
 .dashboard-items { padding-left: 17px; padding-right: 17px; }.dashboard-history-link { padding: 16px 17px; }
 .dashboard-legend h3 { line-height: 1.6; }.dashboard-legend > div { font-size: .75rem; gap: 8px; }
}

/* Identidade visual administrável, com proporções preservadas. */
.login-company-logo { display: block; width: auto; height: auto; max-width: min(100%, 300px); max-height: 110px; object-fit: contain; object-position: center; margin: 0 auto 25px; }
.topbar-identity { display: inline-flex; align-items: center; justify-content: flex-end; gap: 16px; flex-shrink: 0; }
.topbar-company-logo { display: block; width: auto; height: auto; max-width: 160px; max-height: 42px; object-fit: contain; }
.settings-section-title { margin: 0 0 21px; }.settings-section-title h2 { margin-bottom: 7px; }.settings-section-title p { margin: 0; color: #7e91a2; font-size: .8125rem; }
.logo-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.logo-settings-card { min-width: 0; }
.logo-settings-card > header { display: flex; gap: 15px; align-items: flex-start; padding: 24px; }
.logo-settings-card > header h2 { font-size: 1rem; margin: 0 0 8px; }.logo-settings-card > header p { font-size: .8125rem; color: #8093a3; margin: 0; }
.logo-settings-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 43px; height: 43px; background: #eef7f8; color: #20828f; border-radius: 11px; }
.logo-preview { margin: 0 24px; padding: 25px; height: 190px; display: flex; align-items: center; justify-content: center; border: 1px dashed #d6e1e8; border-radius: 10px; background-color: #fafcfd; background-image: linear-gradient(45deg,#f0f4f6 25%,transparent 25%),linear-gradient(-45deg,#f0f4f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0f4f6 75%),linear-gradient(-45deg,transparent 75%,#f0f4f6 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
.logo-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }.logo-preview.cabecalho img { max-width: 240px; max-height: 80px; }
.logo-preview-empty { display: flex; align-items: center; flex-direction: column; gap: 12px; color: #8fa4b4; font-size: .8125rem; }
.logo-settings-body { padding: 23px 24px 25px; }.logo-settings-body input[type=file] { padding: 8px; width: 100%; min-width: 0; font-size: .75rem; }
.logo-settings-body input[type=file]::file-selector-button { border: 0; border-radius: 5px; padding: 8px 10px; margin-right: 10px; background: #eef4f7; color: #47667b; cursor: pointer; }
.logo-settings-body .form-note { margin: 12px 0; }.logo-file-state { display: block; color: #7c92a3; font-size: .75rem; margin-top: 12px; line-height: 1.6; }
.logo-settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 1100px) { .logo-settings-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .topbar-identity { gap: 10px; }.topbar-company-logo { max-width: 90px; max-height: 32px; }.login-company-logo { max-height: 85px; margin-bottom: 22px; } }
@media (max-width: 480px) { .logo-settings-card > header { padding: 20px; }.logo-preview { margin: 0 20px; }.logo-settings-body { padding: 22px 20px; } }

.barcode-workspace { padding: 24px; }
.barcode-entry { display: flex; gap: 14px; align-items: flex-end; }
.barcode-entry .field { flex: 1; min-width: 0; margin-bottom: 0; }
.barcode-entry > .button { margin-bottom: 0; flex-shrink: 0; }
.barcode-workspace > .form-note { margin-top: 14px; }
.barcode-feedback { min-height: 22px; margin: 14px 0; color: #087e73; font-weight: 600; }
.barcode-lines { display: grid; gap: 12px; margin-top: 20px; }
.barcode-line { display: flex; align-items: center; gap: 20px; border: 1px solid #d8e5eb; border-radius: 12px; padding: 18px; }
.barcode-line > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.barcode-line small { display: block; color: #7890a5; margin-top: 5px; }
.barcode-count { white-space: nowrap; color: #058b98; font-size: 1.25rem; }
@media (max-width: 600px) { .barcode-workspace { padding: 18px; }.barcode-entry { align-items: stretch; flex-direction: column; }.barcode-line { flex-wrap: wrap; gap: 12px; }.barcode-line > div { flex-basis: 65%; }.barcode-line .button { margin-left: auto; } }
.camera-scanner { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #e2ebf0; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.camera-preview { position: relative; margin-top: 18px; max-width: 640px; aspect-ratio: 16 / 9; background: #142f49; border-radius: 12px; overflow: hidden; }
.camera-preview video { width: 100%; height: 100%; object-fit: contain; }
.camera-preview > span { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; text-align: center; color: white; background: #142f49df; font-size: 13px; }
.legend-dot.partial { background: #dfaa43; }
.dashboard-progress-note { margin: 0 25px 18px; font-size: .75rem; line-height: 1.7; color: #708598; }
.dashboard-legend > small + small { margin-top: 7px; }
@media (max-width: 600px) { .dashboard-progress-note { margin-left: 17px; margin-right: 17px; } }
.dashboard-units-chart { flex-shrink: 0; text-align: center; }
.dashboard-units-chart h3 { font-size: .75rem; color: #4a6378; margin: 0 0 8px; font-weight: 600; }
.operation-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; max-width: 100%; }
.heading-actions:has(.operation-header-actions) { max-width: 100%; align-self: flex-end; justify-content: flex-end; }
.operation-header-actions > .button { flex-shrink: 0; margin-left: auto; }
.operation-header-actions > .badge { min-width: 0; max-width: 240px; }
.operation-tablet-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barcode-lines { --read-row-height: 76px; --read-row-gap: 8px; display: grid; grid-auto-rows: var(--read-row-height); gap: var(--read-row-gap); max-height: calc(4 * var(--read-row-height) + 3 * var(--read-row-gap)); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding-right: 3px; }
.barcode-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; height: var(--read-row-height); box-sizing: border-box; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; }
.barcode-line > div { min-width: 0; }
.barcode-line > div > strong, .barcode-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 16px; }
.barcode-line small { margin-top: 2px; font-size: .6875rem; }
.barcode-line small.stock-warning { color: #9c661d; }
.barcode-line .button { min-width: 44px; min-height: 44px; padding: 8px; margin-left: 0; }
.barcode-count { font-size: 1.125rem; }
@media (max-width: 600px) { .operation-header-actions { gap: 8px; }.operation-header-actions > .badge { max-width: 150px; }.operation-header-actions > .button { font-size: .8125rem; padding-left: 12px; padding-right: 12px; }.barcode-line { gap: 8px; } }
@media (max-width: 950px) { .heading-actions:has(.operation-header-actions) { width: 100%; } }

.operation-screen .page-heading { margin-bottom: 12px; gap: 8px; }
.operation-screen .heading-actions { padding-top: 0; }
.operation-screen .attendance-banner { padding: 12px 16px; margin-bottom: 12px; gap: 12px; }
.operation-screen .person-avatar { width: 44px; height: 44px; }
.operation-screen .person-information h2 { margin: 3px 0; }
.operation-screen .balance > small { margin-bottom: 2px; }
.operation-screen .timer { padding: 7px 10px; }
.operation-screen .panel-heading { padding: 12px 16px; gap: 10px; }
.operation-screen .panel-heading .step-label { margin-bottom: 5px; }
.operation-screen .panel-heading p { margin-top: 3px; }
.operation-screen .barcode-workspace { padding: 12px 16px; }
.operation-screen .camera-scanner { margin-bottom: 10px; padding-bottom: 10px; }
.operation-screen .camera-actions, .operation-screen .barcode-entry { gap: 8px; }
.operation-screen .camera-preview { margin-top: 8px; }
.operation-screen .camera-scanner > .form-note, .operation-screen .barcode-workspace > .form-note { margin-top: 6px; line-height: 1.5; }
.operation-screen .barcode-feedback { margin: 6px 0; min-height: 0; }
.operation-screen .barcode-feedback:empty { display: none; }
.operation-screen .barcode-lines { --read-row-height: 68px; --read-row-gap: 0px; margin-top: 10px; border-radius: 8px; }
.operation-screen .barcode-line { padding: 6px 10px; border-radius: 0; }
.operation-screen .barcode-line + .barcode-line { border-top: 0; }
.operation-screen .operation-total { padding: 10px 16px; gap: 10px; }
.operation-screen .operation-total > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.operation-screen .operation-total small { margin: 0; }
.operation-screen .operation-total strong { font-size: 1.5rem; }
.operation-screen .operation-total p { margin: 0; }
.operation-screen .notice { margin: 8px 0; padding: 9px 12px; }
.operation-screen .lookup-card { padding: 20px; }
.operation-screen .lookup-card h2 { margin-top: 12px; }
@media (max-width: 600px) { .operation-screen .barcode-workspace, .operation-screen .panel-heading, .operation-screen .attendance-banner { padding-left: 12px; padding-right: 12px; } }
.operation-screen .product-reading-heading { flex-wrap: wrap; }
.product-reading-heading > div:first-child { flex: 1 1 250px; }
.product-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.product-camera-action { min-width: 0; }
.product-header-actions .button { min-height: 44px; }
.operation-screen .camera-closed-external { display: none; }
@media (max-width: 950px) { .product-header-actions { width: 100%; }.product-camera-action { flex: 1; }.product-camera-action .button { width: 100%; } }
@media (max-width: 600px) { .product-header-actions .button { font-size: .8125rem; padding: 9px 10px; white-space: normal; line-height: 1.3; } }
.operation-screen .operation-heading { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.operation-eyebrow-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.operation-eyebrow-row > .eyebrow { flex-shrink: 0; margin: 0; }
.operation-eyebrow-row > .badge { min-width: 0; max-width: min(260px, 50%); }
.operation-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.operation-title-row > h1 { min-width: 0; margin: 0; }
.operation-screen .operation-title-row > .operation-header-actions { width: auto; flex: 0 0 auto; }
@media (max-width: 600px) { .operation-title-row { gap: 8px; }.operation-title-row > h1 { font-size: 1.375rem; }.operation-eyebrow-row { gap: 8px; } }
@media (max-width: 430px) { .operation-title-row > h1 { font-size: 1rem; letter-spacing: -.3px; }.operation-title-row .button { padding: 8px; font-size: .75rem; min-height: 44px; } }
.inactivity-settings { padding: 22px; margin-bottom: 24px; }
.inactivity-settings > .form-note { margin-bottom: 16px; }
.inactivity-settings form { max-width: 640px; }
.inactivity-settings form > .form-note { margin-bottom: 16px; }
.inactivity-settings .field { max-width: 360px; }
.operation-screen .barcode-entry { flex-direction: row; align-items: flex-end; }
.operation-screen .barcode-entry > .barcode-add { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; }
.camera-next-action { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.camera-next-action > .button { flex-shrink: 0; }
.camera-next-action > small { font-size: .6875rem; line-height: 1.5; color: #718195; max-width: 360px; }
@media (max-width: 600px) { .camera-next-action { width: 100%; gap: 8px; }.camera-next-action > .button { padding-left: 10px; padding-right: 10px; font-size: .8125rem; } }
.operation-screen .attendance-total { margin-bottom: 12px; border: 1px solid #dce7ee; border-radius: 9px; }
.operation-screen .attendance-total { flex-direction: row; align-items: center; justify-content: space-between; }
.operation-screen .attendance-total > .product-camera-action { flex: 0 0 auto; }
.operation-screen .attendance-total .camera-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; }
.badge.denied { color: #a3483e; background: #fff0ed; }
.occurrence-note { margin-top: 16px; }
.occurrence-detail > h3 { margin-top: 16px; }
.occurrence-detail dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; font-size: .875rem; }
.occurrence-detail dt { color: #718195; }
.occurrence-detail dd { margin: 0; overflow-wrap: anywhere; }
.beneficiary-row-actions { display: inline-flex; align-items: center; gap: 5px; }
.beneficiary-row-actions .beneficiary-action { min-width: 44px; min-height: 44px; padding: 8px; }
.beneficiary-summary-person { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.beneficiary-summary-person h3 { margin: 0 0 6px; font-size: 1.2rem; overflow-wrap: anywhere; }
.beneficiary-summary-person p { font-size: .875rem; color: #718195; margin-bottom: 0; }
.beneficiary-summary-registration { margin-top: 14px; font-size: .8125rem; overflow-wrap: anywhere; }
.beneficiary-summary-registration p { margin: 10px 0; white-space: pre-wrap; }
.beneficiary-summary-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 18px 0 12px; }
.beneficiary-summary-stats > div { padding: 14px; background: #f2f7fa; border-radius: 9px; }
.beneficiary-summary-stats strong { display: block; font-size: 1.4rem; color: #164558; }
.beneficiary-summary-stats span { font-size: .75rem; color: #718195; }
.beneficiary-summary-tabs { margin-top: 20px; }
.beneficiary-summary-records { display: grid; gap: 12px; }
.beneficiary-summary-record { padding: 16px; border: 1px solid #dce7ee; border-radius: 10px; overflow-wrap: anywhere; }
.beneficiary-summary-record header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.beneficiary-summary-record h3 { font-size: .9375rem; margin: 0; }
.beneficiary-summary-record p, .beneficiary-summary-record small { font-size: .75rem; color: #718195; margin: 8px 0; }
.beneficiary-summary-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; font-size: .8125rem; }
.beneficiary-summary-record ul { list-style: none; padding: 0; margin: 12px 0; }
.beneficiary-summary-record li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: .8125rem; padding: 7px 0; border-bottom: 1px solid #edf2f6; }
.beneficiary-summary-record > strong { font-size: .8125rem; }
@media (max-width: 600px) { .beneficiary-summary-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.beneficiary-summary { padding: 18px; } }
.sidebar-person .sidebar-password-button { min-width: 44px; width: 44px; height: 44px; border: 1px solid #ffffff30; cursor: pointer; font: inherit; font-weight: 600; flex-shrink: 0; }
.sidebar-person .sidebar-password-button:hover { background: #ffffff25; }
.sidebar-person .sidebar-password-button:focus-visible { outline: 2px solid #73d7df; outline-offset: 3px; }

.login-story-signature { position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.login-footer-row { display:flex; align-items:center; justify-content:flex-end; gap:20px; padding:6px 0 13px; flex-shrink:0; }
.login-footer-row > .footer { flex:1; padding:0; min-width:0; }
.login-footer-logo { display:block; max-width:120px; max-height:40px; width:auto; height:auto; object-fit:contain; flex-shrink:0; }
@media (max-width:480px) { .login-footer-row { gap:12px; } .login-footer-logo { max-width:85px; max-height:32px; } }
.management-login-link { align-self:center; font-size:10px; color:#5f7284; margin-bottom:12px; }
.saas-shell { min-height:100dvh; display:flex; flex-direction:column; background:#f3f7fa; }
.saas-header { display:flex; align-items:center; gap:24px; padding:20px 5%; background:#fff; border-bottom:1px solid #e1eaf0; }
.saas-header .brand strong,.saas-login-card .brand strong { color:#183c53; }
.saas-header .brand small,.saas-login-card .brand small { color:#7691a5; }
.saas-header > div:nth-child(2) { margin-right:auto; display:flex; flex-direction:column; gap:4px; }
.saas-header small { color:#7691a5; }
.saas-content { flex:1; width:100%; max-width:1440px; margin:0 auto; padding:24px 5%; }
.saas-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:20px 0; }
.saas-stats > div { background:white; border:1px solid #e1eaf0; border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:8px; }
.saas-stats strong { font-size:28px; color:#183c53; }.saas-stats span { color:#647c90; font-size:13px; }
.saas-company-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:20px; margin-top:20px; }
.saas-company { padding:24px; min-width:0; }.saas-company header { display:flex; justify-content:space-between; align-items:center; color:#008394; margin-bottom:18px; }
.saas-company h2 { font-size:21px; overflow-wrap:anywhere; }.saas-company p { margin:10px 0; color:#647c90; }.saas-company > div:last-child { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.saas-company-address { font-size:12px; display:block; overflow-wrap:anywhere; color:#007f8d; }
.saas-check { display:flex; gap:10px; align-items:center; font-size:14px; min-height:44px; }.saas-check input { width:18px; height:18px; accent-color:#008394; }
.saas-resources { display:grid; grid-template-columns:1fr 1fr; gap:4px 18px; margin-top:12px; }.saas-pagination { display:flex; align-items:center; justify-content:flex-end; gap:16px; margin-top:16px; }
.saas-login { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#f3f7fa; padding:24px; }
.saas-login-card { margin:auto; max-width:440px; width:100%; background:white; border:1px solid #e1eaf0; border-radius:20px; padding:36px; }.saas-login-card > .brand { margin-bottom:36px; }.saas-login-card h1 { font-size:28px; margin:14px 0; }.saas-login-card > p { color:#647c90; margin-bottom:24px; }.saas-login-card > a { display:block; margin-top:24px; text-align:center; font-size:12px; color:#007f8d; }
@media(max-width:600px) { .saas-header { gap:12px; flex-wrap:wrap; }.saas-header > .brand { display:none; }.saas-content { padding:20px 16px; }.saas-stats { gap:8px; }.saas-stats > div { padding:12px; }.saas-stats span { font-size:11px; }.saas-resources { grid-template-columns:1fr; }.saas-login-card { padding:24px; } }

.saas-stats { grid-template-columns:repeat(4,1fr); }
.saas-contract { margin:16px 0; padding:12px 0; border-top:1px solid #e1eaf0; border-bottom:1px solid #e1eaf0; }
.saas-contract small { color:#8c650b; line-height:1.6; }
.saas-block-reason { font-weight:600; color:#8c650b !important; }
@media(max-width:600px) { .saas-stats { grid-template-columns:1fr 1fr; } }

.mail-settings-content { padding:24px; max-width:900px; }
.mail-test { margin-top:30px; padding-top:24px; border-top:1px solid #e1eaf0; }
.account-email { padding:20px 24px; border-top:1px solid #e1eaf0; }
.account-email summary { cursor:pointer; color:#087f8c; font-weight:600; padding:8px 0; }
.account-email form { margin-top:16px; }
.login-forgot { width:100%; justify-content:flex-end; margin-top:8px; }
.mobile-menu-label { display: none; }
.operation-header-actions > .timer { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 70px; height: 44px; padding: 7px 10px; flex-shrink: 0; }
.operation-header-actions > .timer > strong { line-height: 1; }
.operation-header-actions > .timer:not(.urgent) { background: #eaf5f5; border-color: #cbe7e9; }
.operation-header-actions > .timer:not(.urgent) > strong, .operation-header-actions > .timer:not(.urgent) > svg { color: #066774; }
.operation-header-actions > .timer + .button { margin-left: 0; min-height: 44px; }
@media (max-width: 480px) {
  .operation-title-row { flex-wrap: nowrap; gap: 6px; }
  .operation-title-row > h1 { flex: 1 1 auto; white-space: nowrap; font-size: clamp(.75rem, 3.6vw, .95rem); letter-spacing: -.3px; }
  .operation-screen .operation-title-row > .operation-header-actions { width: auto; gap: 4px; }
  .operation-header-actions > .timer { min-width: 42px; padding: 6px; gap: 0; }
  .operation-header-actions > .timer > svg { display: none; }
  .operation-header-actions > .timer > strong { font-size: .875rem; }
  .operation-title-row .operation-header-actions > .button { padding: 8px 6px; font-size: clamp(.6875rem, 3.1vw, .8125rem); white-space: nowrap; gap: 4px; }
  .operation-title-row .operation-header-actions > .button > svg { width: 14px; height: 14px; }
}
/* O menu permanece acessível e as listas cabem no celular, sem ocultar colunas. */
@media (max-width: 1024px) {
  .main-shell { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; position: absolute; top: 20px; right: 12px; color: #d2deea; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 40; background: #132e4677; border: 0; padding: 0; }
  .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); gap: 10px; }
  .topbar .menu-toggle { margin-left: 0; min-height: 44px; gap: 7px; padding: 8px 10px; border: 1px solid #dce5ed; color: #087f8c; background: #f5fafb; }
  .mobile-menu-label { display: inline; font-size: .8125rem; font-weight: 600; }
  .topbar > div { overflow: hidden; }
  .topbar strong { display: block; overflow-wrap: anywhere; }
  .sidebar { width: min(300px, calc(100vw - 32px)); padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .sidebar nav { min-height: 0; overscroll-behavior: contain; }
  .nav-backdrop { display: block; }
  .sidebar-close { min-width: 44px; min-height: 44px; }
  .main-content > *, .panel, .table-wrap, .table-scroll, .saas-content > * { min-width: 0; max-width: 100%; }
  .table-wrap, .table-scroll { overflow: visible; }
  .responsive-table, .table-wrap .responsive-table { display: block; min-width: 0; width: 100%; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .responsive-table tbody { display: block; }
  .responsive-table tbody tr { display: block; padding: 12px 16px; border-bottom: 1px solid #dce5ed; }
  .responsive-table tbody tr:last-child { border-bottom: 0; }
  .responsive-table td { display: block; padding: 6px 0; border: 0; text-align: left; overflow-wrap: anywhere; white-space: normal; min-width: 0; }
  .responsive-table td::before { content: attr(data-label); display: block; color: #647589; font-size: .6875rem; font-weight: 600; margin-bottom: 3px; }
  .responsive-table td .button { min-height: 44px; white-space: normal; }
  .responsive-table td .badge { max-width: 100%; white-space: normal; }
  .toolbar.filters .field, .toolbar.filters > .field:first-child { flex: 1 1 100%; min-width: 0; max-width: none; width: 100%; }
  .toolbar > select, .search { min-width: 0; width: 100%; max-width: none; }
  .tabs { flex-wrap: wrap; gap: 4px 14px; }
  .tabs button { min-height: 44px; max-width: 100%; white-space: normal; }
  .pager { flex-wrap: wrap; }
  .page-heading > div, .heading-actions, .modal-body > *, .form-grid > *, .saas-header > * { min-width: 0; }
  .page-heading h1, .page-heading p, .panel-heading h2, .saas-header strong { overflow-wrap: anywhere; }
  .heading-actions .button { white-space: normal; }
  input, select, textarea { font-size: 16px; min-width: 0; max-width: 100%; }
  .modal { max-height: calc(100dvh - 24px); }
  .modal-actions { flex-wrap: wrap; }
  .saas-pagination { flex-wrap: wrap; gap: 10px; }
}
.company-choices { display:flex; flex-direction:column; gap:12px; margin:24px 0; }
.company-choice { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid #dbe6ed; border-radius:12px; background:white; color:#183c53; text-align:left; cursor:pointer; }
.company-choice span { flex:1; font-weight:600; }.company-choice:hover { border-color:#087f8c; background:#f1f8f9; }
.mail-settings .panel-heading { flex-wrap:wrap; gap:12px; }
