.nav-item > svg,
.nav-parent > svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  stroke-width: 1.9;
}

.nav-parent > svg:last-child {
  width: 14px;
  height: 14px;
  min-width: 14px;
}

.secure-card {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: center;
  column-gap: 8px;
}

.secure-card > svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.secure-card small {
  grid-column: 1 / -1;
  margin-left: 25px;
}

.search > svg {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 11px;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  stroke-width: 2;
}

.btn > svg,
.icon-btn > svg {
  width: 16px;
  height: 16px;
}

.login-image::after {
  background: linear-gradient(to right, transparent 70%, #00000018);
}

.wizard {
  gap: 12px;
  padding: 13px;
}

.wizard-step {
  position: relative;
  min-width: 0;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: #edf1f4;
}

.wizard-step.active {
  border-color: #ecd5db;
  box-shadow: 0 3px 10px #861f350d;
}

.wizard-circle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
}

.wizard-circle svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.wizard-step b {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-step small {
  color: #94a3b8;
  font-size: 9px;
}

.review-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.review-heading-icon,
.review-icon {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--wine);
  background: var(--wine-soft);
}

.review-heading-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.review-heading-icon svg { width: 20px; height: 20px; }
.review-heading h3 { margin: 0; font-size: 16px; }
.review-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

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

.review-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 106px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fdfafb);
  box-shadow: 0 3px 12px #0f172a08;
}

.review-icon { width: 38px; height: 38px; border-radius: 11px; }
.review-icon svg { width: 18px; height: 18px; }
.review-card span { display: block; color: var(--wine); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.review-card strong { display: block; margin-top: 4px; font-size: 13px; }
.review-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.review-check { position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; color: var(--success); }

@media (max-width: 850px) {
  .review-grid { grid-template-columns: 1fr; }
  .wizard-step:not(:last-child)::after { display: none; }
}

.wizard-step { border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; }
.wizard-step.completed { color: #526173; }
.wizard-step.completed .wizard-circle { border-color: #dbc2c8; color: var(--wine); background: #fff8fa; }
.upload-button { margin-top: 12px; cursor: pointer; }
.wizard-body { padding: 28px; }
.form-section { margin-top: 28px; padding: 22px; border: 1px solid #e7ebef; border-radius: 16px; background: #fff; }
.form-section:first-of-type { margin-top: 0; }
.profile-card { max-width: 920px; padding: 24px; }
.profile-upload { display:flex; align-items:center; gap:18px; padding:18px; margin:20px 0 24px; border:1px solid #edf1f4; border-radius:16px; background:#f8fafb; }
.profile-preview { width:92px; height:92px; flex:none; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:#f8e9ed; color:#861f35; font-size:32px; font-weight:800; border:4px solid #fff; box-shadow:0 5px 16px #0f172a18; }
.profile-preview img { width:100%; height:100%; object-fit:cover; }
.profile-upload-copy { display:flex; flex-direction:column; gap:5px; }
.profile-upload-copy strong { font-size:14px; color:#1e293b; }
.profile-upload-copy small { color:#64748b; font-size:11px; }
.profile-upload-button { width:max-content; margin-top:6px; }
.profile-actions { display:flex; justify-content:flex-end; margin-top:22px; padding-top:18px; border-top:1px solid #edf1f4; }
.avatar { overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
@media(max-width:640px){.profile-card{padding:17px}.profile-upload{align-items:flex-start;flex-direction:column}.profile-upload-button{width:100%}.profile-actions .btn{width:100%}}
.section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.section-heading > svg { width: 18px; height: 18px; color: var(--wine); }
.section-heading h3 { margin: 0; color: #253242; font-size: 14px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.field > span em { margin-left: 4px; color: #94a3b8; font-size: 8px; font-style: normal; font-weight: 700; text-transform: none; }
.field textarea { width: 100%; min-height: 96px; padding: 11px 12px; resize: vertical; border: 1px solid #dfe5ea; border-radius: 11px; background: #f8fafb; color: var(--text); font-size: 12px; outline: none; }
.field textarea:focus { border-color: #9f2942; background: #fff; box-shadow: 0 0 0 4px #861f3516; }
.select-field { position: relative; }
.select-field > svg { position: absolute; z-index: 1; bottom: 11px; left: 12px; width: 16px; height: 16px; color: #8794a5; pointer-events: none; }
.select-field select { appearance: none; padding: 0 36px; background-image: linear-gradient(45deg,transparent 50%,#8794a5 50%),linear-gradient(135deg,#8794a5 50%,transparent 50%); background-position: calc(100% - 17px) 17px,calc(100% - 12px) 17px; background-repeat: no-repeat; background-size: 5px 5px,5px 5px; }
.age-result { align-self: end; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border: 1px solid #eadde0; border-radius: 11px; background: #fff8fa; color: var(--wine); font-size: 11px; font-weight: 750; }
.age-result > svg { width: 16px; height: 16px; }
.age-result.minor { border-color: #f2d49d; background: #fff9ed; color: #946200; }

/* Alinhamento visual comum: os ícones Lucide são inseridos como SVG após o carregamento. */
:where(.btn, .icon-btn, .nav-item, .nav-parent, .student-open, .macro-note-button, .macro-adjust-button, .cash-action, .payment-method-options label > span) {
  line-height: 1;
}

:where(.btn, .icon-btn, .nav-item, .nav-parent, .student-open, .macro-note-button, .macro-adjust-button, .cash-action, .payment-method-options label > span) > svg {
  display: block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 0;
}

.btn > svg { margin-block: 0; }
.filters > strong { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }
.filters > strong > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.filters-label { color: #64748b; font-size: 12px; font-weight: 750; }
.filters-label > span { line-height: 1; }
.filters > strong[style] { font-size: 12px !important; color: #64748b !important; display: inline-flex; align-items: center; gap: 7px; }
.filters > strong[style] > i { display: inline-flex; align-items: center; }
.filters > strong[style] > i svg { width: 16px; height: 16px; }
.nav-parent > .nav-chevron { margin-left: auto; }
.user-meta strong { display: block; font-size: 13px; }
.user-meta small { display: block; color: #64748b; }
.permissions-submit { margin-top: 16px; }
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.export-option { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 3px; padding: 15px; border: 1px solid #e3e8ec; border-radius: 12px; color: #253242; text-decoration: none; background: #fff; transition: border-color .18s, transform .18s; }
.export-option:hover, .export-option:focus-visible { border-color: var(--wine); transform: translateY(-1px); }
.export-option > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--wine); background: var(--wine-soft); }
.export-option svg { width: 16px; height: 16px; }
.export-option strong { font-size: 12px; }
.export-option small { color: var(--muted); font-size: 10px; }
@media (max-width: 760px) { .export-grid { grid-template-columns: 1fr; padding: 14px; } }

.metric-bar { flex: 0 0 4px; }
.student-stat__icon,
.review-heading-icon,
.review-icon,
.product-card__icon,
.choice-icon,
.item-icon {
  line-height: 0;
}

.course-dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.course-dialog[open] { animation: dialog-in .16s ease-out; }
.course-dialog::backdrop { backdrop-filter: blur(2px); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-toggle {
  width: 40px;
  min-width: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle > svg { width: 18px; height: 18px; }
.sidebar-close { display: none; margin-left: auto; }

.search > svg,
.macro-search > svg,
.pos-product-search > svg,
.student-directory__search > svg {
  top: 50%;
  transform: translateY(-50%);
}

.select-field > svg { top: auto; bottom: 12px; transform: none; }

@media (max-width: 640px) {
  .sidebar-close { display: inline-grid; }
  .table-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .table-head > .btn { flex: 0 0 auto; }
  .filters > strong { width: 100%; min-height: 28px; }
  .filters .btn { width: 100%; }
  .course-dialog__panel { width: min(100% - 24px, 560px); max-height: calc(100dvh - 24px); overflow: auto; }
}
.searchable-select { position: relative; }
.searchable-control { position: relative; }
.searchable-control input { padding: 0 38px; }
.searchable-control > svg { position: absolute; z-index: 2; top: 12px; width: 16px; height: 16px; color: #8794a5; pointer-events: none; }
.searchable-control > svg:first-child { left: 12px; }
.searchable-control > svg:last-child { right: 12px; }
.searchable-options { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; display: none; max-height: 220px; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 14px 36px #17202a20; }
.searchable-select.open .searchable-options { display: block; }
.searchable-option { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: #fff; color: #3f4d5e; font-size: 11px; text-align: left; cursor: pointer; }
.searchable-option:hover,.searchable-option.active { background: var(--wine-soft); color: var(--wine); }
.searchable-empty { padding: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.field.invalid input,.field.invalid select,.field.invalid textarea,.searchable-select.invalid input { border-color: #d84b56; background: #fff8f8; }
.field-error { min-height: 10px; color: #bd303c; font-size: 9px; }
.loading-note { align-items: center; gap: 7px; margin: 0; }
.loading-note.show { display: flex; }
.loading-note svg { width: 14px; height: 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.optional-card { margin-top: 28px; overflow: hidden; border: 1px solid #e2e7eb; border-radius: 16px; background: #fbfcfd; }
.optional-card-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 20px; border: 0; background: transparent; color: #253242; text-align: left; cursor: pointer; }
.optional-card-head > span:nth-child(2) { flex: 1; }
.optional-card-head strong,.optional-card-head small { display: block; }
.optional-card-head strong { font-size: 13px; }
.optional-card-head small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.optional-icon,.choice-icon,.item-icon { display: grid; flex: none; place-items: center; background: var(--wine-soft); color: var(--wine); }
.optional-icon { width: 36px; height: 36px; border-radius: 11px; }
.optional-icon svg,.choice-icon svg,.item-icon svg { width: 17px; height: 17px; }
.optional-chevron { width: 17px; height: 17px; color: #94a3b8; transition: transform .2s; }
.optional-card.open .optional-chevron { transform: rotate(180deg); }
.optional-card-body { display: none; padding: 0 20px 20px; }
.optional-card.open .optional-card-body { display: block; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } }
.segment-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid #e8ecef; border-radius: 13px; background: #fff; }
.segment-question strong,.segment-question small { display: block; }
.segment-question strong { font-size: 11px; }
.segment-question small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.segmented { display: flex; padding: 3px; border: 1px solid #e0e5e9; border-radius: 10px; background: #f4f6f8; }
.segmented button { min-width: 58px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #657386; font-size: 10px; font-weight: 800; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--wine); box-shadow: 0 2px 7px #17202a15; }
.employment-fields { margin-top: 17px; padding-top: 17px; border-top: 1px solid #e5e9ed; animation: reveal .22s ease; }
.address-subgrid { margin-top: 13px; }
.responsible-choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 19px; border: 1px solid #e1e6ea; border-radius: 16px; background: linear-gradient(135deg,#fff,#fdfafb); }
.responsible-choice > div:nth-child(2) strong { font-size: 13px; }
.responsible-choice p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.choice-icon { width: 40px; height: 40px; border-radius: 12px; }
.switch-row { display: flex; align-items: center; gap: 9px; color: #445264; font-size: 10px; font-weight: 750; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control { position: relative; width: 38px; height: 22px; flex: none; border-radius: 99px; background: #d9e0e6; transition: .2s; }
.switch-control::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #17202a26; transition: .2s; }
.switch-row input:checked + .switch-control { background: var(--wine); }
.switch-row input:checked + .switch-control::after { transform: translateX(16px); }
.alert-warning { display: flex; gap: 12px; margin-top: 16px; padding: 15px; border: 1px solid #efd59e; border-radius: 13px; background: #fffaed; color: #7f5800; }
.alert-warning > svg { width: 19px; height: 19px; flex: none; }
.alert-warning strong { font-size: 11px; }
.alert-warning p { margin: 4px 0 9px; font-size: 10px; line-height: 1.45; }
.alert-warning label { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 750; }
.contract-items { display: grid; gap: 10px; }
.contract-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #e6eaee; border-radius: 13px; background: #fbfcfd; }
.item-icon { width: 34px; height: 34px; border-radius: 10px; }
.contract-item strong,.contract-item small { display: block; }
.contract-item strong { font-size: 11px; }
.contract-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.money-field { display: flex; align-items: center; gap: 5px; color: var(--wine); font-size: 10px; font-weight: 800; }
.money-field input { width: 104px; height: 36px; padding: 0 10px; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; color: #253242; font-size: 11px; font-weight: 750; text-align: right; outline: none; }
.money-field input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px #861f3512; }
.review-summary { display: grid; gap: 13px; }
.review-section { overflow: hidden; border: 1px solid #e3e8ec; border-radius: 15px; background: #fff; }
.review-section-head { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid #edf1f4; background: #fbfcfd; }
.review-section-head > svg { width: 17px; height: 17px; color: var(--wine); }
.review-section-head strong { flex: 1; font-size: 12px; }
.review-edit { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 0; border-radius: 8px; background: var(--wine-soft); color: var(--wine); font-size: 9px; font-weight: 800; cursor: pointer; }
.review-edit svg { width: 12px; height: 12px; }
.review-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; padding: 16px 17px; }
.review-detail span,.review-detail strong { display: block; }
.review-detail span { color: #8995a4; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.review-detail strong { margin-top: 4px; overflow-wrap: anywhere; color: #3e4b5b; font-size: 10px; }
.followup-initial { margin-top: 22px; background: #fdfcfc; }
.optional-badge { display: inline-flex; margin-left: 5px; padding: 3px 6px; border-radius: 99px; background: #eef2f5; color: #6c7989; font-size: 7px; vertical-align: middle; }
.character-count { color: #94a3b8; font-size: 8px; text-align: right; }

@media (max-width: 760px) {
  .wizard-body { padding: 18px; }
  .form-section { padding: 17px; }
  .responsible-choice { grid-template-columns: auto 1fr; }
  .responsible-choice .switch-row { grid-column: 1/-1; padding-top: 10px; border-top: 1px solid #edf1f4; }
  .segment-question { align-items: flex-start; flex-direction: column; }
  .review-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .review-details { grid-template-columns: 1fr; }
  .contract-item { grid-template-columns: auto 1fr; }
  .contract-item .money-field { grid-column: 1/-1; justify-content: flex-end; }
}
