:root {
  --brand-navy: #112051;
  --brand-blue: #006fc4;
  --ink: #172033;
  --muted: #667085;
  --line: #dde5ef;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --success: #1f9d55;
  --warning: #f59e0b;
  --danger: #e5484d;
  --shadow: 0 18px 44px rgba(17, 32, 81, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
}

.dashboard-page {
  display: grid;
  grid-template-rows: auto 1fr;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.login-page {
  background:
    linear-gradient(135deg, rgba(0, 111, 196, 0.12) 0 18%, transparent 18% 48%, rgba(17, 32, 81, 0.08) 48% 68%, transparent 68%),
    #f4f7fb;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  min-height: 100vh;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(17, 32, 81, 0.96), rgba(0, 111, 196, 0.9)),
    var(--brand-navy);
}

.login-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.11) 38% 39%, transparent 39% 62%, rgba(255, 255, 255, 0.08) 62% 63%, transparent 63%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent 38%);
}

.login-logo {
  display: block;
  width: min(180px, 52vw);
  height: auto;
}

.login-logo-contrast {
  position: relative;
  z-index: 1;
  width: min(230px, 52vw);
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.login-visual-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.login-visual-copy strong {
  max-width: 520px;
  font-size: 46px;
  line-height: 1.02;
  font-weight: 750;
}

.login-panel {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 32px;
}

.login-card {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 430px;
  padding: 34px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login-card-head {
  display: grid;
  gap: 22px;
}

.login-card h1,
.dashboard-head h1,
.module-stage-panel h1 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 30px;
  line-height: 1.16;
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.field:has([data-cep-feedback]) {
  position: relative;
  padding-bottom: 22px;
}

.field span,
.check-row {
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.field.is-disabled {
  opacity: 0.58;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  cursor: not-allowed;
  background: #f5f7fb;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.topbar-search input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.14);
}

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

.field input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}

.field input.is-loading {
  border-color: var(--brand-blue);
}

.field-feedback {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.field-feedback.is-error {
  color: var(--danger);
}

.field-feedback.is-loading {
  color: var(--brand-blue);
}

.field-feedback.is-success {
  color: var(--success);
}

.password-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.password-wrap input {
  padding-right: 52px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 750;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 111, 196, 0.22);
}

.primary-button.compact,
.secondary-button {
  min-height: 42px;
  padding: 0 14px;
}

.secondary-button.compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.primary-button.full,
.secondary-button.full {
  width: 100%;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-button svg {
  width: 19px;
  height: 19px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--brand-navy);
  font-weight: 760;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.secondary-button.danger-action {
  color: var(--danger);
  border-color: rgba(229, 72, 77, 0.26);
  background: rgba(229, 72, 77, 0.07);
}

.secondary-button svg {
  width: 18px;
  height: 18px;
}

.form-alert {
  padding: 12px 14px;
  color: #9f1d25;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid rgba(229, 72, 77, 0.24);
  border-radius: 8px;
  background: rgba(229, 72, 77, 0.09);
}

.workspace-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(0, 111, 196, 0.08) 0 22%, transparent 22% 46%, rgba(17, 32, 81, 0.07) 46% 64%, transparent 64%),
    linear-gradient(180deg, #f6f8fc, #eef3fa);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(240px, 440px) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-lockup img {
  width: 126px;
  height: auto;
}

.brand-lockup span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.topbar-search {
  position: relative;
}

.topbar-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #667085;
  transform: translateY(-50%);
}

.topbar-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 42px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
}

.project-board-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-board-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.project-board-search-control {
  display: flex;
  align-items: center;
  min-height: 42px;
  overflow: visible;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.project-board-search-control:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.14);
}

.project-board-search-control > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 14px;
  color: #667085;
}

.project-board-search-control input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  color: #172033;
  font-size: 14px;
  font-weight: 650;
  border: 0;
  outline: 0;
  background: transparent;
}

.project-filter-toggle {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 7px;
  padding: 0 12px;
  color: #43506a;
  font-size: 13px;
  font-weight: 820;
  border: 0;
  border-left: 1px solid #d9e2ef;
  border-radius: 0 8px 8px 0;
  background: #f7faff;
  cursor: pointer;
}

.project-filter-toggle svg {
  width: 16px;
  height: 16px;
}

.project-filter-toggle[aria-expanded="true"] {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
}

.project-filter-menu {
  top: calc(100% + 8px);
  right: 0;
}

.project-view-toggle {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 13px;
}

.project-view-toggle.is-active {
  color: #ffffff;
  border-color: rgba(0, 111, 196, 0.75);
  background: var(--brand-blue);
  box-shadow: 0 10px 20px rgba(0, 111, 196, 0.18);
}

.project-view-toggle.is-active svg {
  color: #ffffff;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button,
.user-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #344054;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.icon-button.ghost {
  width: 36px;
  height: 36px;
  border-color: transparent;
  background: transparent;
}

.icon-button.password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.task-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 8px 18px rgba(229, 72, 77, 0.24);
}

.user-chip {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.user-menu {
  position: relative;
}

.user-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 6px;
  width: 260px;
  padding: 10px;
  border: 1px solid rgba(203, 215, 232, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 32, 81, 0.18);
}

.user-menu-popover[hidden] {
  display: none;
}

.user-menu-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.86);
}

.user-menu-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.user-menu-profile div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-menu-profile strong,
.user-menu-profile small,
.user-menu-profile em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-profile strong {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 850;
}

.user-menu-profile small {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.user-menu-profile em {
  color: var(--brand-blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.user-menu form {
  margin: 0;
}

.user-menu-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  color: #253044;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.user-menu-action svg {
  width: 17px;
  height: 17px;
}

.user-menu-action:hover,
.user-menu-action:focus-visible {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
  outline: none;
}

.user-menu-action.danger {
  color: #b42318;
}

.user-menu-action.danger:hover,
.user-menu-action.danger:focus-visible {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.09);
}

.profile-flash {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 120;
  width: min(360px, calc(100vw - 32px));
  box-shadow: 0 16px 34px rgba(17, 32, 81, 0.16);
}

.profile-password-modal {
  z-index: 110;
}

.profile-password-modal .modal-card {
  width: min(100%, 460px);
}

.app-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.dashboard-main {
  display: grid;
  align-self: stretch;
  place-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  min-width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.summary-strip div {
  display: grid;
  gap: 2px;
  padding: 13px 18px;
  border-right: 1px solid rgba(221, 229, 239, 0.9);
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip span {
  color: var(--brand-navy);
  font-size: 20px;
  font-weight: 800;
}

.summary-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 162px);
  justify-content: start;
  width: min(100%, 898px);
  gap: 22px;
}

.module-card {
  display: grid;
  grid-template-rows: 86px auto;
  justify-items: center;
  gap: 14px;
  width: 162px;
  min-height: 148px;
  padding: 18px 12px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(221, 229, 239, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(17, 32, 81, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: color-mix(in srgb, var(--module-color), #ffffff 58%);
  box-shadow: 0 18px 38px rgba(17, 32, 81, 0.14);
  transform: translateY(-3px);
  outline: none;
}

.module-icon {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  color: var(--module-color);
  border: 1px solid color-mix(in srgb, var(--module-color), #ffffff 70%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--module-color), #ffffff 86%), #ffffff);
}

.module-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.9;
}

.module-icon.large {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
}

.module-name {
  color: #202b3c;
  font-size: 16px;
  font-weight: 760;
}

.module-stage {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
}

.module-stage-panel {
  width: min(100%, 520px);
  padding: 36px;
  text-align: center;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.muted {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.sales-main {
  width: min(1280px, calc(100% - 40px));
}

.sales-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sales-head h1,
.panel-head h2 {
  margin: 0;
  color: var(--brand-navy);
}

.sales-head h1 {
  font-size: 32px;
  line-height: 1.12;
}

.sales-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 720;
  border-radius: 8px;
}

.flash.success {
  color: #146339;
  border: 1px solid rgba(31, 157, 85, 0.22);
  background: rgba(31, 157, 85, 0.09);
}

.flash.danger {
  color: #9f1d25;
  border: 1px solid rgba(229, 72, 77, 0.24);
  background: rgba(229, 72, 77, 0.09);
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(17, 32, 81, 0.07);
}

.sales-summary div {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border-right: 1px solid rgba(221, 229, 239, 0.9);
}

.sales-summary div:last-child {
  border-right: 0;
}

.sales-summary span {
  color: var(--brand-navy);
  font-size: 22px;
  font-weight: 850;
}

.sales-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.seller-goal-card {
  display: grid;
  gap: 13px;
  margin: -2px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 111, 196, 0.08), rgba(17, 32, 81, 0.04)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(17, 32, 81, 0.07);
}

.seller-goal-head,
.seller-goal-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.seller-goal-head h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 20px;
}

.seller-goal-head > span {
  color: var(--brand-blue);
  font-size: 24px;
  font-weight: 900;
}

.seller-goal-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(203, 215, 232, 0.72);
}

.seller-goal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), #1f9d55);
}

.seller-goal-metrics div {
  display: grid;
  gap: 2px;
}

.seller-goal-metrics small {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.seller-goal-metrics strong {
  color: var(--brand-navy);
  font-size: 16px;
}

.sales-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.sales-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: #475467;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  border-radius: 7px;
}

.sales-tabs a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.sales-tabs svg {
  width: 17px;
  height: 17px;
}

.sales-tabs .tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 850;
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.1);
}

.sales-tabs a.is-active .tab-count {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.92);
}

.client-type-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 20px 0;
  padding: 4px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.82);
}

.client-type-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 7px;
}

.client-type-filter a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.client-type-filter a strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  color: var(--brand-blue);
  font-size: 12px;
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.1);
}

.client-type-filter a.is-active strong {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.9);
}

.sales-workspace,
.products-layout,
.users-layout {
  display: grid;
  align-items: start;
  gap: 18px;
}

.sales-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
}

.products-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.product-inline-form {
  margin: 0;
}

.product-inline-input,
.product-inline-select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--brand-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  border: 1px solid rgba(197, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
}

.product-inline-input.money {
  max-width: 128px;
}

.product-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-actions form {
  margin: 0;
}

.product-inline-input:focus,
.product-inline-select:focus {
  border-color: rgba(0, 111, 196, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.1);
  outline: none;
}

tr[data-product-row].is-saving .product-inline-input,
tr[data-product-row].is-saving .product-inline-select {
  border-color: rgba(0, 111, 196, 0.52);
  background: rgba(0, 111, 196, 0.04);
}

tr[data-product-row].is-error .product-inline-input,
tr[data-product-row].is-error .product-inline-select {
  border-color: rgba(184, 28, 28, 0.5);
  background: rgba(184, 28, 28, 0.04);
}

.users-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.users-content {
  display: grid;
  gap: 18px;
}

.users-table {
  min-width: 940px;
}

.panel {
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(17, 32, 81, 0.08);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.panel-head h2 {
  font-size: 19px;
  line-height: 1.2;
}

.panel-head > svg {
  width: 24px;
  height: 24px;
  color: var(--brand-blue);
}

.panel-head-qr-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 1px solid rgba(0, 111, 196, 0.14);
  border-radius: 8px;
  background: #f6f9fd;
}

.panel-head-qr-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 820;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.list-search {
  position: relative;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.list-search-box {
  position: relative;
  width: min(760px, 100%);
}

.list-search-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  overflow: visible;
  border: 1px solid #cbd7e8;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.list-search-control:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.12);
}

.list-search-control > svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-left: 14px;
  color: #667085;
}

.list-search-control input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: #172033;
  font-size: 15px;
  font-weight: 650;
  border: 0;
  outline: 0;
  background: transparent;
}

.list-search-control input::placeholder {
  color: #8a94a6;
  font-weight: 620;
}

.list-filter-toggle {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  padding: 0 14px;
  color: #43506a;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  border-left: 1px solid #d9e2ef;
  border-radius: 0 8px 8px 0;
  background: #f7faff;
  cursor: pointer;
}

.list-filter-toggle svg {
  width: 17px;
  height: 17px;
}

.list-filter-toggle[aria-expanded="true"] {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
}

.list-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(203, 215, 232, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 32, 81, 0.16);
}

.list-filter-menu[hidden] {
  display: none;
}

.list-filter-menu p {
  margin: 0;
  padding: 4px 8px 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.list-filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  color: #253044;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.list-filter-option svg {
  width: 16px;
  height: 16px;
}

.list-filter-option:hover,
.list-filter-option.is-active {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
}

.form-panel,
.detail-form,
.add-item-form {
  display: grid;
  gap: 14px;
}

.form-panel {
  padding-bottom: 18px;
}

.form-panel > .field,
.form-panel > .form-grid,
.form-panel > .primary-button {
  margin-right: 18px;
  margin-left: 18px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.data-table th {
  color: #667085;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.data-table td {
  color: #253044;
  font-size: 14px;
  font-weight: 620;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr.is-selected td {
  background: rgba(0, 111, 196, 0.06);
}

.table-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.07);
  cursor: pointer;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  border-radius: 999px;
}

.status-badge.venda {
  color: #146339;
  background: rgba(31, 157, 85, 0.12);
}

.status-badge.cotacao {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.14);
}

.status-badge.rascunho {
  color: #475467;
  background: rgba(102, 112, 133, 0.13);
}

.status-badge.aberta,
.status-badge.confirmada {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
}

.status-badge.perdida {
  color: #b42318;
  background: rgba(229, 72, 77, 0.13);
}

.status-badge.cancelada {
  color: #667085;
  background: rgba(102, 112, 133, 0.12);
}

.status-badge.user-level.admin {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.status-badge.user-level.comercial {
  color: #7a4f00;
  background: rgba(245, 158, 11, 0.14);
}

.status-badge.user-level.producao {
  color: #0f6c3c;
  background: rgba(31, 157, 85, 0.12);
}

.status-badge.user-level.revendedor {
  color: #8a3b0c;
  background: rgba(249, 115, 22, 0.14);
}

.status-badge.user-status.ativo {
  color: #146339;
  background: rgba(31, 157, 85, 0.12);
}

.status-badge.user-status.inativo {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.1);
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.table-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.user-table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.user-table-actions form {
  margin: 0;
}

.sale-detail-panel {
  position: sticky;
  top: 90px;
}

.detail-form,
.add-item-form,
.items-list {
  padding: 18px;
}

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

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

.form-grid.three {
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr) minmax(0, 1.15fr);
}

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

.form-grid.item {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.seller-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 660;
}

.seller-line svg {
  width: 17px;
  height: 17px;
  color: var(--brand-blue);
}

.section-divider {
  height: 1px;
  background: rgba(221, 229, 239, 0.9);
}

.items-list {
  display: grid;
  gap: 10px;
  padding-top: 0;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(221, 229, 239, 0.85);
  border-radius: 8px;
  background: #ffffff;
}

.item-row > div {
  display: grid;
  gap: 4px;
}

.item-row > div:last-child {
  grid-template-columns: auto auto;
  align-items: center;
}

.item-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.icon-button.danger {
  color: var(--danger);
}

.icon-button.success {
  color: var(--success);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  color: #8aa1bd;
}

.empty-state p {
  max-width: 260px;
  margin: 0;
}

.empty-state.compact {
  padding: 22px 14px;
}

.detail-empty {
  min-height: 360px;
  align-content: center;
}

.topbar-context {
  display: grid;
  justify-self: center;
  text-align: center;
}

.topbar-context span {
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 850;
}

.topbar-context small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.sales-detail-main {
  width: min(1480px, calc(100% - 32px));
}

.sales-detail-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  margin-bottom: 18px;
}

.sales-detail-context {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 48px;
}

.sales-detail-context .project-breadcrumb {
  justify-content: flex-start;
  text-align: left;
}

.sales-detail-toolbar .sales-actions {
  flex: none;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
}

.sales-detail-toolbar .sale-confirm-form {
  order: 50;
}

.sales-detail-toolbar .sale-production-start-form {
  order: 50;
}

.sales-detail-toolbar .sale-production-link {
  order: 50;
}

.sale-confirm-button {
  position: relative;
  overflow: visible;
}

.sale-confirm-button.is-celebrating {
  animation: sale-confirm-pop 520ms cubic-bezier(0.18, 0.88, 0.32, 1.2);
}

.sales-detail-toolbar h1 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 34px;
  line-height: 1.1;
}

.sales-detail-context .project-breadcrumb {
  margin-bottom: 0;
}

.sale-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}

.sale-document {
  overflow: hidden;
}

.sale-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.sale-document-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.document-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.sale-document-head h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 42px;
  line-height: 1;
}

.document-total {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.document-total small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.document-total strong {
  color: var(--brand-navy);
  font-size: 24px;
}

.sale-info-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(180px, 240px));
  gap: 14px;
}

.panel-actions,
.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sale-notes {
  max-width: 760px;
}

.sale-notes-bottom {
  max-width: none;
  margin: 0 24px 24px;
}

.client-field {
  position: relative;
}

.sale-info-grid .client-field {
  z-index: 70;
}

.sale-info-grid .client-field:focus-within {
  z-index: 120;
}

.client-input-wrap {
  position: relative;
}

.client-input-wrap:has(.client-detail-link:not([hidden])) > input {
  padding-right: 52px;
}

.client-input-wrap:has(.inline-create-button:not([hidden])) > input {
  padding-right: 152px;
}

.client-results {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  overflow: hidden;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(17, 32, 81, 0.14);
}

.client-option {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(221, 229, 239, 0.78);
  background: #ffffff;
  cursor: pointer;
}

.client-option:last-child {
  border-bottom: 0;
}

.client-option:hover {
  background: #f4f8fd;
}

.client-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.inline-create-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 820;
  border: 1px solid rgba(0, 111, 196, 0.2);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.07);
  cursor: pointer;
}

.inline-create-button svg {
  width: 15px;
  height: 15px;
}

.client-detail-link {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--brand-navy);
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.07);
  text-decoration: none;
}

.client-detail-link:hover,
.client-detail-link:focus-visible {
  color: var(--brand-blue);
  border-color: rgba(0, 111, 196, 0.34);
  background: rgba(0, 111, 196, 0.12);
  outline: none;
}

.client-detail-link svg {
  width: 17px;
  height: 17px;
}

.client-input-wrap .inline-create-button {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 5;
  max-width: calc(100% - 16px);
  white-space: nowrap;
}

.client-input-wrap .inline-create-button span {
  overflow: hidden;
  max-width: 104px;
  text-overflow: ellipsis;
}

.order-lines {
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.order-lines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.order-lines-head h3,
.client-address h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 17px;
}

.section-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.order-lines-head a {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.order-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.order-add-actions form {
  margin: 0;
}

.order-table select,
.order-table input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
}

.order-table {
  table-layout: fixed;
  min-width: 860px;
}

.order-col-handle {
  width: 42px;
}

.order-col-product {
  width: auto;
}

.order-col-qty {
  width: 148px;
}

.order-col-unit {
  width: 160px;
}

.order-col-total {
  width: 150px;
}

.order-col-actions {
  width: 96px;
}

.order-table th:nth-child(3),
.order-table th:nth-child(4),
.order-table th:nth-child(5),
.order-table td:nth-child(3),
.order-table td:nth-child(4),
.order-table .item-total-cell {
  text-align: left;
}

.order-table tbody[data-order-items-body] > tr[data-item-row] > td {
  transition: background-color 160ms ease;
}

.order-table tbody[data-order-items-body] > tr[data-item-row]:nth-of-type(even) > td {
  background: rgba(0, 111, 196, 0.028);
}

.order-table tbody[data-order-items-body] > tr[data-item-row]:nth-of-type(even) input,
.order-table tbody[data-order-items-body] > tr[data-item-row]:nth-of-type(even) select {
  background: rgba(255, 255, 255, 0.88);
}

.order-table tbody[data-order-items-body] > tr[data-item-row]:hover > td {
  background: rgba(0, 111, 196, 0.045);
}

.order-table tbody[data-order-items-body] > tr.section-line-row > td,
.order-table tbody[data-order-items-body] > tr.section-line-row:nth-of-type(even) > td,
.order-table tbody[data-order-items-body] > tr.section-line-row:hover > td {
  background: rgba(0, 111, 196, 0.075);
  vertical-align: middle;
}

.order-table .section-cell {
  padding-top: 12px;
  padding-bottom: 12px;
}

.order-table .section-title-input {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 900;
  box-shadow: none;
}

.order-table .section-title-input::placeholder {
  color: var(--brand-navy);
  opacity: 0.62;
}

.order-table tbody[data-order-items-body] > tr.section-line-row:nth-of-type(even) .section-title-input {
  background: transparent !important;
}

.order-table .section-title-input:focus {
  color: var(--brand-blue);
  background: transparent !important;
  outline: none;
}

.order-table tbody[data-order-items-body] > tr.add-line-row > td {
  background: rgba(246, 248, 252, 0.72);
}

.order-table tbody[data-order-items-body] > tr.add-line-row {
  position: relative;
  z-index: 30;
}

.drag-cell {
  width: 42px;
  padding-right: 0;
}

.item-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 32px;
  color: #98a2b3;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.item-drag-handle:hover,
.item-drag-handle:focus-visible {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
  outline: none;
}

.item-drag-handle:active {
  cursor: grabbing;
}

.item-drag-handle svg {
  width: 18px;
  height: 18px;
}

.order-table tr.is-drag-source {
  display: none;
}

.item-drag-placeholder td {
  height: var(--drag-placeholder-height, 64px);
  padding: 0 18px;
  background: rgba(0, 111, 196, 0.055);
  border-top: 1px solid rgba(0, 111, 196, 0.16);
  border-bottom: 1px solid rgba(0, 111, 196, 0.16);
  vertical-align: middle;
}

.item-drag-placeholder td::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-navy));
  box-shadow: 0 10px 24px rgba(0, 111, 196, 0.2);
}

.item-drag-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0.98;
  filter: drop-shadow(0 22px 34px rgba(17, 32, 81, 0.2));
}

.item-drag-preview-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 10px;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

.item-drag-preview-table td {
  background: #fff;
  border-bottom: 0;
}

.dragging-item,
.dragging-item * {
  cursor: grabbing !important;
  user-select: none;
}

.item-product-cell {
  min-width: 280px;
}

.item-product-cell > strong {
  display: block;
  margin-bottom: 8px;
}

.line-product-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.line-product-title {
  justify-self: start;
  max-width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  border: 0;
  background: transparent;
  cursor: text;
}

.line-product-title strong {
  display: block;
  margin: 0;
}

.line-product-title:hover strong,
.line-product-title:focus-visible strong {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.line-product-title:focus-visible {
  outline: none;
}

.line-product-picker[hidden],
.line-product-editor.is-editing .line-product-title {
  display: none;
}

.line-product-editor.is-saving {
  opacity: 0.72;
}

.item-line-description {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.order-table .item-description-input {
  width: 100%;
  min-height: 28px;
  margin-top: 2px;
  padding: 0;
  color: #667085;
  font-size: 14px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.35;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-table tbody[data-order-items-body] > tr[data-item-row]:nth-of-type(even) .item-description-input {
  background: transparent;
}

.order-table .item-description-input::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.order-table .item-description-input:hover,
.order-table .item-description-input:focus {
  color: var(--ink);
  border-bottom-color: rgba(0, 111, 196, 0.34);
  background: transparent;
  outline: none;
}

.product-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.product-picker .client-results {
  position: fixed;
  top: 0;
  right: auto;
  left: 0;
  z-index: 45;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.order-table .product-picker .client-input-wrap > input[data-product-input] {
  width: 100%;
  min-height: 34px;
  padding: 0;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.3;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-table .product-picker .client-input-wrap > input[data-product-input]::placeholder {
  color: #6f7680;
  opacity: 1;
}

.order-table .product-picker .client-input-wrap > input[data-product-input]:hover,
.order-table .product-picker .client-input-wrap > input[data-product-input]:focus {
  border-bottom-color: rgba(0, 111, 196, 0.34);
  background: transparent;
  outline: none;
}

.order-table tbody[data-order-items-body] > tr[data-item-row]:nth-of-type(even) .product-picker .client-input-wrap > input[data-product-input] {
  background: transparent;
}

.sale-info-grid .client-field .client-results {
  z-index: 140;
}

.sale-confirm-confetti {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2600;
  width: 9px;
  height: 13px;
  pointer-events: none;
  border-radius: 2px;
  background: var(--confetti-color, var(--brand-blue));
  transform: translate(-50%, -50%);
  animation: sale-confetti-burst var(--confetti-duration, 780ms) ease-out forwards;
}

@keyframes sale-confirm-pop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sale-confetti-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  74% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y))) rotate(var(--confetti-rotation)) scale(0.82);
  }
}

.product-picker .client-input-wrap:has(.inline-create-button:not([hidden])) > input {
  padding-right: 146px;
}

.order-table .client-input-wrap .inline-create-button {
  top: 4px;
  min-height: 30px;
}

.item-total-cell,
.line-preview-total {
  color: var(--muted);
  font-weight: 760;
  white-space: nowrap;
}

.item-total-cell strong {
  display: inline;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
}

.line-actions {
  width: 96px;
  padding-right: 18px;
  padding-left: 0;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.line-actions form {
  display: inline-grid;
  place-items: center;
  margin: 0;
  vertical-align: middle;
}

.client-detail-grid {
  display: grid;
  gap: 18px;
}

.client-profile-panel {
  align-self: start;
}

.client-profile-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.86);
}

.client-profile-list div {
  display: grid;
  gap: 5px;
}

.client-profile-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.client-profile-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.positive-balance {
  color: var(--success) !important;
}

.negative-balance {
  color: var(--danger) !important;
}

.client-balance-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 116px;
}

.client-balance-chip strong {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 860;
  line-height: 1.2;
}

.client-balance-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.client-balance-chip.positive strong {
  color: var(--success);
}

.client-balance-chip.negative strong {
  color: var(--danger);
}

.payment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 132px;
}

.payment-actions form {
  margin: 0;
}

.receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 0;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.receipt-link:hover,
.receipt-link:focus-visible {
  color: var(--brand-navy);
  outline: none;
}

.receipt-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-link svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.muted-inline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.add-line-row td {
  background: rgba(246, 248, 252, 0.72);
}

.payments-section {
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 24px 18px;
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.payment-summary-grid div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid rgba(221, 229, 239, 0.9);
}

.payment-summary-grid div:last-child {
  border-right: 0;
}

.payment-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.payment-summary-grid strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.payments-table {
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 820;
  border-radius: 999px;
}

.payment-status.pago {
  color: #146339;
  background: rgba(31, 157, 85, 0.12);
}

.payment-status.pendente {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.14);
}

.payment-status.parcial {
  color: #8a4b00;
  background: rgba(245, 158, 11, 0.16);
}

.payment-status.a_pagar {
  color: #475467;
  background: rgba(102, 112, 133, 0.13);
}

.payment-status.cancelado {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.1);
}

.payment-status.vencido {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.12);
}

.finance-main {
  width: min(1380px, calc(100% - 40px));
}

.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.finance-kpi-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(17, 32, 81, 0.08);
}

.finance-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--brand-blue);
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.08);
}

.finance-kpi-icon.success {
  color: var(--success);
  border-color: rgba(31, 157, 85, 0.18);
  background: rgba(31, 157, 85, 0.1);
}

.finance-kpi-icon.warning {
  color: #9a5b00;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.13);
}

.finance-kpi-icon.danger {
  color: var(--danger);
  border-color: rgba(229, 72, 77, 0.22);
  background: rgba(229, 72, 77, 0.1);
}

.finance-kpi-icon svg {
  width: 23px;
  height: 23px;
}

.finance-kpi-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.finance-kpi-card span:not(.finance-kpi-icon) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.finance-kpi-card strong {
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 21px;
  line-height: 1.1;
}

.finance-kpi-card small {
  color: #667085;
  font-size: 12px;
  font-weight: 680;
}

.finance-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.finance-insight-panel {
  overflow: hidden;
}

.finance-method-list,
.finance-due-list {
  display: grid;
  gap: 0;
}

.finance-method-row {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.86);
}

.finance-method-row:last-child,
.finance-due-item:last-child {
  border-bottom: 0;
}

.finance-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.finance-method-head div {
  display: grid;
  gap: 3px;
}

.finance-method-head strong,
.finance-due-item strong {
  color: var(--ink);
  font-size: 14px;
}

.finance-method-head span,
.finance-due-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.finance-method-head em,
.finance-due-item em {
  color: var(--brand-navy);
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.finance-meter {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e8eef7;
}

.finance-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-navy));
}

.finance-due-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(221, 229, 239, 0.86);
}

.finance-due-item:hover {
  background: rgba(0, 111, 196, 0.05);
}

.finance-due-item.is-overdue {
  background: rgba(229, 72, 77, 0.05);
}

.finance-due-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 830;
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.07);
}

.finance-filters {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(160px, 210px) repeat(2, minmax(140px, 170px)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
}

.finance-tabs {
  display: flex;
  flex-wrap: wrap;
}

.finance-section-tabs {
  margin-bottom: 18px;
}

.finance-commission-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-monthly-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-monthly-panel {
  overflow: hidden;
}

.finance-monthly-table {
  min-width: 820px;
}

.finance-monthly-table th:nth-child(2),
.finance-monthly-table th:nth-child(3),
.finance-monthly-table th:nth-child(4),
.finance-monthly-table tfoot td:nth-child(2),
.finance-monthly-table tfoot td:nth-child(3),
.finance-monthly-table tfoot td:nth-child(4) {
  text-align: right;
}

.finance-monthly-table tbody td {
  padding: 0;
}

.finance-monthly-table tfoot td {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 900;
  background: #f7f9fc;
}

.finance-month-details {
  display: block;
}

.finance-month-details summary {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 160px 180px 160px;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}

.finance-month-details summary::-webkit-details-marker {
  display: none;
}

.finance-month-details summary:hover {
  background: rgba(0, 111, 196, 0.04);
}

.finance-month-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 780;
  text-align: right;
}

.finance-month-cell::before {
  display: none;
  content: attr(data-label);
}

.finance-month-cell.month {
  justify-content: flex-start;
  gap: 8px;
  color: var(--brand-navy);
  font-size: 14px;
  text-align: left;
}

.finance-month-cell.month svg {
  width: 15px;
  height: 15px;
  color: #667085;
  transition: transform 160ms ease;
}

.finance-month-details[open] .finance-month-cell.month svg {
  transform: rotate(90deg);
}

.finance-month-cell.amount {
  color: var(--brand-navy);
  font-weight: 900;
}

.finance-month-payment-list {
  display: grid;
  border-top: 1px solid rgba(221, 229, 239, 0.86);
  background: rgba(246, 248, 252, 0.72);
}

.finance-month-payment {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 150px 160px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 39px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(221, 229, 239, 0.72);
}

.finance-month-payment:last-child {
  border-bottom: 0;
}

.finance-month-payment:hover {
  background: rgba(0, 111, 196, 0.05);
}

.finance-month-payment.is-static {
  cursor: default;
}

.finance-month-payment.is-static:hover {
  background: transparent;
}

.finance-month-payment time,
.finance-month-payment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.finance-month-payment strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.finance-month-payment small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.finance-month-payment em {
  color: var(--brand-navy);
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

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

.finance-commercial-card {
  overflow: hidden;
}

.finance-commercial-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
}

.finance-commercial-avatar {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.finance-commercial-head strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 18px;
  line-height: 1.15;
}

.finance-commercial-head small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.finance-commission-rate {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(31, 157, 85, 0.2);
  border-radius: 8px;
  background: rgba(31, 157, 85, 0.1);
}

.finance-commercial-progress {
  display: grid;
  gap: 10px;
  padding: 18px 20px 0;
}

.finance-commercial-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.finance-commercial-progress span:not(.finance-meter),
.finance-commercial-metrics dt,
.finance-commission-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.finance-commercial-progress strong {
  color: var(--brand-navy);
  font-size: 16px;
}

.finance-commercial-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid rgba(221, 229, 239, 0.9);
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
}

.finance-commercial-metrics div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(221, 229, 239, 0.9);
}

.finance-commercial-metrics div:last-child {
  border-right: 0;
}

.finance-commercial-metrics dt,
.finance-commercial-metrics dd {
  margin: 0;
}

.finance-commercial-metrics dd {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 900;
}

.finance-commission-list {
  padding: 16px 20px 20px;
}

.finance-commission-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.finance-commission-list-head strong {
  color: var(--ink);
  font-size: 14px;
}

.finance-commission-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(221, 229, 239, 0.78);
}

.finance-commission-payment:hover {
  color: var(--brand-blue);
}

.finance-commission-payment strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.finance-commission-payment small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.finance-commission-payment em {
  color: var(--brand-navy);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.finance-statement-panel {
  overflow: hidden;
}

.finance-table {
  min-width: 980px;
}

.finance-table tr.is-overdue td {
  background: rgba(229, 72, 77, 0.035);
}

.sale-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  min-height: 210px;
  padding: 24px;
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.sale-bottom-info {
  display: grid;
  gap: 18px;
  align-content: start;
}

.client-address {
  display: grid;
  align-content: start;
  gap: 6px;
  color: #344054;
  font-size: 14px;
}

.client-address span,
.delivery-info span,
.delivery-info p {
  color: #475467;
  line-height: 1.45;
}

.delivery-info {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 18px;
  color: #344054;
  font-size: 14px;
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.delivery-info.is-saving,
form[data-sales-ajax-form].is-saving {
  opacity: 0.78;
  transition: opacity 160ms ease, background-color 160ms ease;
}

form[data-sales-ajax-form].is-saving button[type="submit"] {
  cursor: wait;
}

form[data-sales-ajax-form].is-error input,
form[data-sales-ajax-form].is-error select,
form[data-sales-ajax-form].is-error textarea {
  border-color: rgba(184, 28, 28, 0.5);
}

.delivery-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delivery-info-head h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 17px;
}

.delivery-info p {
  margin: 0;
}

.delivery-summary-text {
  max-width: 760px;
  color: #344054 !important;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.45;
}

.delivery-copy-list {
  display: grid;
  gap: 2px;
  margin-top: 0;
}

.delivery-copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 21px;
  padding: 0;
}

.delivery-copy-row > span {
  flex: 0 0 112px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.delivery-copy-row > strong {
  flex: 0 1 auto;
  max-width: min(560px, calc(100% - 150px));
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-copy-row.no-copy > strong {
  flex-basis: auto;
}

.delivery-copy-button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-height: 24px;
  color: #667085;
  opacity: 0.72;
}

.delivery-copy-button svg {
  width: 14px;
  height: 14px;
}

.delivery-copy-button:hover,
.delivery-copy-button:focus-visible {
  color: var(--brand-blue);
  opacity: 1;
}

.delivery-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--brand-blue) !important;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.1);
  white-space: nowrap;
}

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

.delivery-actions form {
  margin: 0;
}

.delivery-choice.is-active {
  color: #ffffff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.delivery-choice.is-active span {
  color: #ffffff;
}

.delivery-choice.is-active svg {
  color: #ffffff;
}

.sale-totals {
  align-self: start;
  display: grid;
  gap: 10px;
}

.sale-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  color: #344054;
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
}

.sale-totals span {
  color: var(--muted);
  font-weight: 720;
}

.sale-totals strong {
  color: var(--brand-navy);
}

.sale-totals [data-sale-discount-label] {
  white-space: nowrap;
}

.sale-totals .grand-total {
  border-bottom: 0;
}

.sale-totals .grand-total strong {
  font-size: 22px;
}

.total-action {
  margin-top: 4px;
}

.detail-side-stack {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.project-detail-layout > .detail-side-stack {
  position: static;
  top: auto;
}

.detail-side-stack > .activity-sidebar,
.detail-side-stack > .project-detail-sidebar {
  position: static;
  top: auto;
}

.detail-side-stack .activity-list {
  max-height: calc(100vh - 430px);
}

.client-balance-panel {
  overflow: hidden;
}

.client-sidebar-panel {
  overflow: hidden;
}

.client-sidebar-panel .panel-head svg {
  color: var(--brand-blue);
}

.client-sidebar-body {
  display: grid;
  gap: 7px;
  padding: 16px 18px 18px;
  color: #475467;
  font-size: 14px;
  line-height: 1.45;
}

.client-sidebar-body strong {
  color: var(--brand-navy);
  font-size: 16px;
  font-weight: 900;
}

.client-sidebar-body span {
  color: #475467;
}

.client-balance-panel .panel-head svg {
  color: var(--brand-blue);
}

.client-balance-body {
  display: grid;
  gap: 5px;
  padding: 16px 18px 12px;
}

.client-balance-body strong {
  color: var(--brand-navy);
  font-size: 28px;
  line-height: 1;
}

.client-balance-body span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.client-balance-panel.positive .client-balance-body strong {
  color: #087443;
}

.client-balance-panel.negative .client-balance-body strong {
  color: #b42318;
}

.client-balance-lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 18px 18px;
}

.client-balance-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.client-balance-lines dt,
.client-balance-lines dd {
  margin: 0;
}

.client-balance-lines dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.client-balance-lines dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.origin-task-panel {
  overflow: hidden;
}

.origin-task-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.origin-task-list {
  display: grid;
  gap: 8px;
}

.origin-task-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
}

.origin-task-check-form {
  margin: 0;
}

.origin-task-check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: transparent;
  border: 2px solid #98a2b3;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.origin-task-check:hover,
.origin-task-check:focus-visible {
  color: #ffffff;
  border-color: var(--success);
  background: var(--success);
  outline: none;
}

.origin-task-check svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.origin-task-link {
  display: grid;
  gap: 5px;
  min-width: 0;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.origin-task-link strong {
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
}

.origin-task-link:hover strong,
.origin-task-link:focus-visible strong {
  color: var(--brand-blue);
}

.origin-task-link:focus-visible {
  outline: 2px solid rgba(0, 111, 196, 0.32);
  outline-offset: 4px;
  border-radius: 8px;
}

.origin-task-link small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
}

.origin-task-link small span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.origin-task-link svg {
  width: 13px;
  height: 13px;
}

.origin-task-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.origin-task-detail-modal {
  display: grid;
  gap: 18px;
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
}

.origin-task-detail-form,
.origin-task-modal-attachments {
  display: grid;
  gap: 14px;
}

.origin-task-modal-attachments {
  padding-top: 16px;
  border-top: 1px solid rgba(221, 229, 239, 0.92);
}

.origin-task-create-attachments {
  gap: 8px;
}

.activity-sidebar {
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.sale-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.85);
  background: rgba(246, 249, 253, 0.78);
}

.sale-side-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: #475467;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.sale-side-tabs button.is-active {
  color: var(--brand-navy);
  border-color: rgba(0, 111, 196, 0.16);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 32, 81, 0.06);
}

.sale-side-tabs strong {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  color: var(--brand-blue);
  font-size: 11px;
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.1);
}

.sale-side-tab-panel {
  display: grid;
  min-height: 0;
}

.internal-note-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.85);
}

.internal-note-form .field {
  margin: 0;
}

.internal-note-form textarea {
  min-height: 86px;
  resize: vertical;
}

.internal-note-list {
  display: grid;
  max-height: calc(100vh - 525px);
  min-height: 140px;
  overflow: auto;
}

.internal-note-item {
  display: grid;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.85);
  background: #ffffff;
}

.internal-note-item.is-lost-note {
  background: rgba(229, 72, 77, 0.055);
}

.internal-note-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.internal-note-item strong {
  color: var(--ink);
  font-size: 14px;
}

.internal-note-item span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #b42318;
  font-size: 11px;
  font-weight: 850;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.12);
}

.internal-note-item p {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.internal-note-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.activity-list {
  display: grid;
  gap: 0;
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.85);
}

.activity-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.activity-item strong {
  color: var(--ink);
  font-size: 14px;
}

.activity-item p {
  margin: 4px 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.35;
}

.activity-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.user-activity-panel {
  overflow: hidden;
}

.user-activity-list {
  max-height: 520px;
}

.activity-context {
  color: var(--muted);
  font-weight: 700;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 32, 81, 0.34);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(100%, 560px);
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 32, 81, 0.26);
}

.modal-card form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.wholesale-confirm-card {
  width: min(100%, 520px);
}

.credit-confirm-card {
  width: min(100%, 500px);
}

.wholesale-confirm-content {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.credit-confirm-content {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.wholesale-confirm-message {
  margin: 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.55;
}

.credit-confirm-message {
  margin: 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.55;
}

.credit-confirm-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 157, 85, 0.24);
  border-radius: 8px;
  background: rgba(31, 157, 85, 0.07);
}

.credit-confirm-summary span {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.credit-confirm-summary strong {
  color: #146339;
  font-size: 20px;
}

.wholesale-confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wholesale-confirm-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(197, 211, 230, 0.76);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.045);
}

.wholesale-confirm-summary span {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.wholesale-confirm-summary strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.wholesale-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.credit-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 520px) {
  .wholesale-confirm-summary {
    grid-template-columns: 1fr;
  }

  .credit-confirm-actions,
  .wholesale-confirm-actions {
    flex-direction: column-reverse;
  }

  .credit-confirm-actions .primary-button,
  .credit-confirm-actions .secondary-button,
  .wholesale-confirm-actions .primary-button,
  .wholesale-confirm-actions .secondary-button {
    width: 100%;
  }
}

.discount-preview {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  color: #475467;
  font-size: 13px;
  font-weight: 680;
  border: 1px solid rgba(197, 211, 230, 0.76);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.045);
}

.discount-preview strong {
  color: var(--brand-navy);
  font-size: 14px;
}

.discount-remove-button,
.freight-remove-button {
  color: #b42318;
}

.discount-remove-button svg,
.freight-remove-button svg {
  color: #b42318;
}

.modal-user-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: #f7fafd;
}

.modal-user-line span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.modal-user-line strong {
  color: var(--brand-navy);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-head h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 22px;
}

.projects-main {
  width: calc(100% - 32px);
  max-width: none;
  padding-top: 24px;
}

.projects-board-shell {
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 14px;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(0, 111, 196, 0.5) rgba(221, 229, 239, 0.72);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.projects-board-shell::-webkit-scrollbar {
  height: 12px;
}

.projects-board-shell::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(221, 229, 239, 0.72);
}

.projects-board-shell::-webkit-scrollbar-thumb {
  border: 3px solid rgba(221, 229, 239, 0.72);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.58);
}

.projects-board-shell::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 111, 196, 0.75);
}

.projects-board-scrollbar {
  display: none;
}

.projects-board-scrollbar-track {
  position: relative;
  height: 8px;
  border: 1px solid rgba(197, 211, 230, 0.9);
  border-radius: 999px;
  background: rgba(221, 229, 239, 0.72);
  box-shadow: inset 0 1px 2px rgba(17, 32, 81, 0.08);
}

.projects-board-scrollbar-thumb {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 8px;
  border: 1px solid rgba(0, 111, 196, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 111, 196, 0.82), rgba(17, 32, 81, 0.78));
  box-shadow: 0 4px 10px rgba(17, 32, 81, 0.16);
}

.projects-board-scrollbar:hover .projects-board-scrollbar-thumb,
.projects-board-scrollbar:focus-visible .projects-board-scrollbar-thumb,
.projects-board-scrollbar.is-dragging .projects-board-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(0, 111, 196, 0.98), rgba(17, 32, 81, 0.9));
}

.projects-board {
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

@media (min-width: 821px) {
  .project-board-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .project-board-page .app-topbar {
    position: relative;
  }

  .project-board-page .projects-main {
    align-self: stretch;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0;
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 2px;
  }

  .project-board-page .projects-board-shell {
    height: 100%;
    min-height: 0;
    margin-bottom: 10px;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .project-board-page .projects-board-shell::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .project-board-page .projects-board {
    width: auto;
    min-width: max-content;
    height: 100%;
    min-height: 0;
  }

  .project-board-page .project-column {
    flex: 0 0 300px;
    height: 100%;
    max-width: 320px;
    min-height: 0;
  }

  .project-board-page .project-column.is-collapsed {
    flex: 0 0 60px;
    max-width: 60px;
  }

  .project-board-page .projects-board-shell.is-list-view {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .project-board-page .projects-board-scrollbar {
    display: block;
    min-height: 8px;
    padding: 0;
    cursor: pointer;
    touch-action: none;
  }

  .project-board-page .projects-board-scrollbar[hidden],
  .project-board-page .projects-board-shell.is-list-view + .projects-board-scrollbar {
    display: none;
  }

  .project-board-page .projects-board-shell.is-list-view .projects-board {
    height: auto;
    min-height: 0;
  }

  .project-board-page .projects-save-status {
    margin: 0;
    min-height: 0;
  }

  .project-board-page .projects-save-status:empty {
    display: none;
  }

  .project-board-page .projects-save-status:not(:empty) {
    min-height: 22px;
  }
}

.project-column {
  flex: 0 0 300px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 154px);
  height: calc(100dvh - 154px);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(17, 32, 81, 0.07);
  transition: flex-basis 240ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.project-column.is-collapsed {
  flex-basis: 60px;
  grid-template-rows: 1fr;
}

.project-column.is-drag-over {
  border-color: rgba(0, 111, 196, 0.32);
  background: rgba(246, 250, 255, 0.92);
  box-shadow: 0 18px 34px rgba(17, 32, 81, 0.12);
}

.project-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding: 12px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.82);
  transition: min-height 240ms ease, padding 240ms ease, border-color 160ms ease;
}

.project-column.is-collapsed .project-column-head {
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
  padding: 10px 6px;
  border-bottom-color: transparent;
}

.project-column-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.project-column.is-collapsed .project-column-head > div:first-child {
  flex-direction: column;
}

.project-column-head h2 {
  overflow: hidden;
  margin: 0;
  color: var(--brand-navy);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-column.is-collapsed .project-column-head h2 {
  max-height: 190px;
  text-overflow: clip;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.project-column-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--brand-blue);
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.07);
}

.project-column-icon svg {
  width: 18px;
  height: 18px;
}

.project-column-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-column.is-collapsed .project-column-actions {
  flex-direction: column;
}

.project-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transition: opacity 180ms ease, padding 240ms ease, min-height 240ms ease;
}

.project-card-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.project-column.is-collapsed .project-card-list {
  min-height: 0;
  height: 0;
  padding-block: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.project-column-more {
  border-top: 1px solid rgba(221, 229, 239, 0.72);
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.74);
}

.project-column.is-collapsed .project-column-more {
  display: none;
}

.project-load-more {
  min-height: 38px;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.86);
}

.project-load-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

.project-empty {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 90px;
  color: #8a98aa;
  font-size: 13px;
  font-weight: 740;
  text-align: center;
  border: 1px dashed rgba(138, 161, 189, 0.48);
  border-radius: 8px;
  background: rgba(246, 248, 252, 0.72);
}

.project-card {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  color: #253044;
  border: 1px solid rgba(221, 229, 239, 0.96);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 32, 81, 0.08);
  cursor: grab;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(0, 111, 196, 0.24);
  box-shadow: 0 14px 28px rgba(17, 32, 81, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.project-card:active {
  cursor: grabbing;
}

.project-card.is-dragging {
  opacity: 0.38;
}

.project-card.is-hidden-by-search {
  display: none;
}

.project-card.is-live-new {
  animation: project-card-enter 260ms ease-out both;
}

.project-card.has-deadline-warning,
.project-card.has-deadline-today {
  border-left-color: #d97706;
}

.project-card.has-deadline-overdue {
  border-left-color: #e5484d;
  box-shadow: 0 12px 26px rgba(229, 72, 77, 0.14);
}

.projects-board-shell.is-list-view {
  overflow-x: visible;
}

.projects-board-shell.is-list-view .projects-board {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.projects-board-shell.is-list-view .project-column,
.projects-board-shell.is-list-view .project-column.is-collapsed {
  display: contents;
}

.projects-board-shell.is-list-view .project-column-head,
.projects-board-shell.is-list-view .project-empty,
.projects-board-shell.is-list-view .project-column-more {
  display: none;
}

.projects-board-shell.is-list-view .project-card-list,
.projects-board-shell.is-list-view .project-column.is-collapsed .project-card-list {
  display: contents;
  min-height: 0;
  height: auto;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

.projects-board-shell.is-list-view .project-card {
  grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 8px 14px;
  min-height: 76px;
  padding: 13px 16px;
  cursor: pointer;
}

.projects-board-shell.is-list-view .project-card::before {
  grid-row: 1 / span 8;
  align-self: start;
  content: attr(data-card-stage-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 880;
  line-height: 1;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.projects-board-shell.is-list-view .project-card > * {
  grid-column: 2;
}

.projects-board-shell.is-list-view .project-card h3 {
  font-size: 16px;
}

.projects-board-shell.is-list-view .project-subcards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.projects-board-shell.is-list-view .project-subcard-cover {
  display: none;
}

.projects-board-shell.is-list-view .project-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-reseller-badge,
.project-marketplace-badge {
  --badge-text: #9a3412;
  --badge-border: rgba(251, 146, 60, 0.45);
  --badge-bg: #fff7ed;
  --badge-dot: #f97316;
  --badge-pulse: rgba(249, 115, 22, 0.62);
  --badge-shadow: rgba(234, 88, 12, 0.12);
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--badge-text);
  font-size: 12px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  background: var(--badge-bg);
  box-shadow: 0 8px 18px var(--badge-shadow);
}

.project-reseller-badge span,
.project-marketplace-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--badge-dot);
  box-shadow: 0 0 0 0 var(--badge-pulse);
  animation: badge-pulse 1.35s ease-out infinite;
}

.project-marketplace-badge.is-mercado-livre {
  --badge-text: #2d3277;
  --badge-border: rgba(45, 50, 119, 0.24);
  --badge-bg: #fff8c5;
  --badge-dot: #2d3277;
  --badge-pulse: rgba(45, 50, 119, 0.38);
  --badge-shadow: rgba(45, 50, 119, 0.12);
}

.project-marketplace-badge.is-shopee {
  --badge-text: #9a3412;
  --badge-border: rgba(238, 77, 45, 0.34);
  --badge-bg: #fff1ed;
  --badge-dot: #ee4d2d;
  --badge-pulse: rgba(238, 77, 45, 0.54);
  --badge-shadow: rgba(238, 77, 45, 0.12);
}

.project-detail-order-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-reseller-badge.is-detail,
.project-marketplace-badge.is-detail {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.project-reseller-badge.is-detail {
  border-color: rgba(249, 115, 22, 0.52);
  background: #fff3e6;
}

.project-card-badge-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 30px;
}

.project-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.project-card-badge-row .project-reseller-badge,
.project-card-badge-row .project-marketplace-badge {
  max-width: 100%;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}

.project-card-top.is-inline {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
  min-height: 28px;
}

.project-card h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--brand-navy);
  font-size: 15px;
  line-height: 1.28;
}

.project-client,
.project-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
}

.project-client {
  color: #344054;
  font-weight: 760;
}

.project-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-weight: 620;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card-meta {
  display: grid;
  gap: 7px;
}

.project-subcards,
.project-detail-items {
  display: grid;
  gap: 8px;
}

.project-subcard {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 32, 81, 0.08);
  overflow: hidden;
}

.project-card .project-subcard {
  background: #f9fbfe;
  box-shadow: 0 6px 14px rgba(17, 32, 81, 0.06);
}

.project-card .project-subcard[data-project-card-item] {
  cursor: pointer;
}

.project-card .project-subcard[data-project-card-item]:hover,
.project-card .project-subcard[data-project-card-item]:focus-visible {
  border-color: rgba(0, 111, 196, 0.34);
  box-shadow: 0 10px 20px rgba(17, 32, 81, 0.1);
  outline: none;
}

.project-card .project-subcard.is-approved {
  border-color: rgba(22, 163, 74, 0.36);
  background: #f0fdf4;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.11);
}

.project-card .project-subcard.has-change {
  border-color: rgba(217, 119, 6, 0.36);
  background: #fffbeb;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.12);
}

.project-subcard-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-subcard strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 13px;
  line-height: 1.25;
}

.project-subcard-description {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.32;
}

.project-subcard-quantity {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 8px;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(0, 111, 196, 0.2);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.09);
}

.project-subcard.is-approved .project-subcard-quantity {
  color: #047857;
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(22, 163, 74, 0.12);
}

.project-subcard.has-change .project-subcard-quantity {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(217, 119, 6, 0.13);
}

.project-subcard small {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 820;
}

.project-subcard-cover {
  position: relative;
  margin: -10px -11px 7px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef4fb;
}

.project-subcard-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.project-subcard-cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: #112051;
  box-shadow: 0 9px 18px rgba(17, 32, 81, 0.28);
}

.project-subcard-cover-badge.is-approved {
  color: #ffffff !important;
  background: #047857;
  box-shadow: 0 9px 18px rgba(4, 120, 87, 0.32);
}

.project-subcard-cover-badge.is-version {
  color: #ffffff !important;
  background: #112051;
}

.project-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.project-card-meta .project-deadline-badge {
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.project-card-meta .project-deadline-badge.is-normal {
  color: var(--brand-blue);
}

.project-card-meta .project-deadline-badge.is-warning,
.project-card-meta .project-deadline-badge.is-today {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.34);
  background: #fff7ed;
}

.project-card-meta .project-deadline-badge.is-overdue {
  color: #b42318;
  border-color: rgba(229, 72, 77, 0.34);
  background: #fef3f2;
}

.project-card-meta .project-deadline-badge.is-today svg {
  animation: project-deadline-alert 900ms ease-in-out infinite;
}

.project-card-meta svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--brand-blue);
}

.project-card-meta .project-deadline-badge.is-warning svg,
.project-card-meta .project-deadline-badge.is-today svg {
  color: #d97706;
}

.project-card-meta .project-deadline-badge.is-overdue svg {
  color: #e5484d;
}

.project-priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
  border-radius: 999px;
}

.project-priority.baixa {
  color: #175c72;
  background: rgba(14, 165, 233, 0.12);
}

.project-priority.normal {
  color: #31527a;
  background: rgba(100, 116, 139, 0.12);
}

.project-priority.alta {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.14);
}

.project-priority.urgente {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.11);
}

.dragging-project-card,
.dragging-project-card * {
  cursor: grabbing !important;
  user-select: none;
}

.projects-save-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.projects-save-status[data-tone="saved"] {
  color: var(--success);
}

.projects-save-status[data-tone="error"] {
  color: var(--danger);
}

.project-modal {
  width: min(100%, 620px);
}

.project-type-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #f6f9fd;
}

.project-type-toggle button {
  min-height: 40px;
  padding: 0 10px;
  color: #475467;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.15;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.project-type-toggle button:hover,
.project-type-toggle button:focus-visible {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
  outline: none;
}

.project-type-toggle button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  box-shadow: 0 7px 16px rgba(17, 32, 81, 0.18);
}

@keyframes project-card-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes project-deadline-alert {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.28;
    transform: scale(1.16);
  }
}

@keyframes badge-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--badge-pulse);
  }

  70% {
    box-shadow: 0 0 0 7px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.project-detail-main {
  width: min(1280px, calc(100% - 40px));
}

.project-detail-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 780;
}

.project-breadcrumb a {
  color: var(--brand-blue);
  text-decoration: none;
}

.project-breadcrumb a:hover,
.project-breadcrumb a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.project-breadcrumb strong {
  color: #087f8f;
}

.project-detail-toolbar h1 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--brand-navy);
  font-size: 34px;
  line-height: 1.1;
}

.project-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-title-edit-button {
  flex: 0 0 auto;
}

.project-detail-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-sale-button {
  min-height: 48px;
  padding: 0 16px;
}

.project-detail-actions .project-related-sale-button {
  order: 50;
}

.project-sale-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.project-archive-form {
  margin: 0;
}

.project-archive-button {
  min-height: 48px;
  padding: 0 16px;
}

.project-archived-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 16px;
  padding: 12px 14px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 760;
  border: 1px solid rgba(251, 146, 60, 0.42);
  border-radius: 8px;
  background: #fff7ed;
}

.project-archived-notice svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #ea580c;
}

.project-stage-pipeline {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 0 0 10px;
}

.project-stage-step-form {
  flex: 0 0 auto;
  margin: 0 0 0 -20px;
}

.project-stage-step-form:first-child {
  margin-left: 0;
}

.project-stage-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 172px;
  min-height: 46px;
  padding: 0 30px 0 34px;
  color: #1f2937;
  font-weight: 850;
  border: 1px solid #d8dee8;
  background: #e9edf3;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
}

.project-stage-step svg {
  width: 16px;
  height: 16px;
  color: #667085;
}

.project-stage-step:hover,
.project-stage-step:focus-visible {
  color: var(--brand-navy);
  background: #f4f8fd;
  outline: none;
}

.project-stage-step.is-current {
  color: #053a40;
  border-color: rgba(0, 111, 196, 0.36);
  background: rgba(0, 111, 196, 0.1);
  box-shadow: inset 0 0 0 2px rgba(0, 111, 196, 0.22);
  cursor: default;
}

.project-stage-step.is-current svg {
  color: var(--brand-blue);
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.project-detail-panel {
  overflow: hidden;
}

.project-detail-content {
  display: grid;
  gap: 0;
}

.project-detail-section {
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.project-detail-section:first-child {
  border-top: 0;
}

.panel-head.compact {
  padding: 16px 18px;
}

.project-info-grid,
.project-sidebar-info-list {
  margin: 0;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-info-grid div {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 16px 18px;
  border-right: 1px solid rgba(221, 229, 239, 0.82);
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.project-info-grid div:nth-child(2n) {
  border-right: 0;
}

.project-info-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.project-info-grid dt,
.project-sidebar-info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.project-info-grid dd,
.project-sidebar-info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.35;
}

.project-sidebar-info-list dd strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.project-sidebar-client-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.project-sidebar-client-phone svg {
  width: 14px;
  height: 14px;
  color: var(--brand-blue);
}

.project-detail-description {
  margin: 0;
  padding: 18px;
  color: #344054;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-detail-items {
  padding: 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-detail-items .project-subcard {
  padding: 14px;
}

.project-detail-items .project-subcard strong {
  font-size: 15px;
}

.project-detail-items .project-subcard-description {
  font-size: 13px;
}

.project-add-item-button {
  justify-self: stretch;
  min-height: 46px;
  border-style: dashed;
}

.project-empty-action {
  display: grid;
  padding: 0 18px 18px;
}

.project-production-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 32, 81, 0.08);
  scroll-margin-top: 110px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.project-production-item:target {
  border-color: rgba(0, 111, 196, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.12), 0 10px 24px rgba(17, 32, 81, 0.1);
}

.project-production-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.project-production-item-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-production-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-production-item-title-row strong {
  min-width: 0;
}

.project-item-edit-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  color: var(--brand-blue);
  border-color: rgba(0, 111, 196, 0.18);
  background: rgba(0, 111, 196, 0.06);
}

.project-item-edit-button svg {
  width: 16px;
  height: 16px;
}

.project-production-item-head strong {
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 17px;
  font-weight: 860;
  line-height: 1.24;
}

.project-production-item-head span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.project-production-item-badges {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 360px;
}

.project-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 860;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
}

.project-item-badge.quantity {
  color: var(--brand-blue);
  border: 1px solid rgba(0, 111, 196, 0.18);
  background: rgba(0, 111, 196, 0.08);
}

.project-item-quantity-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 4px 8px 4px 12px;
  color: var(--brand-blue);
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.project-item-quantity-form > span {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 860;
  line-height: 1;
}

.project-item-quantity-form input {
  width: 72px;
  min-height: 32px;
  padding: 0 8px;
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  border: 1px solid rgba(0, 111, 196, 0.22);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
}

.project-item-quantity-form input:focus {
  border-color: rgba(0, 111, 196, 0.52);
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.14);
}

.project-item-quantity-form input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.project-item-quantity-form small {
  min-width: 42px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.project-item-quantity-form small:empty {
  display: none;
}

.project-item-quantity-form small[data-tone="saving"],
.project-item-quantity-form small[data-tone="pending"] {
  color: #087f8f;
}

.project-item-quantity-form small[data-tone="saved"] {
  color: #157347;
}

.project-item-quantity-form small[data-tone="error"] {
  color: #e5484d;
}

.project-item-badge.approved {
  color: #157347;
  border: 1px solid rgba(35, 165, 85, 0.2);
  background: rgba(35, 165, 85, 0.12);
}

.project-item-badge.standard {
  color: #344054;
  border: 1px solid rgba(102, 112, 133, 0.2);
  background: rgba(102, 112, 133, 0.1);
}

.project-item-badge svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .project-production-item-head {
    flex-direction: column;
  }

  .project-production-item-badges {
    justify-content: flex-start;
    max-width: 100%;
  }
}

.project-briefing-form {
  display: grid;
  gap: 10px;
}

.project-approval-layouts-section {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #f8fbff;
}

.project-briefing-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.project-format-group {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #f6f9fd;
}

.project-format-group .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.project-rich-editor {
  min-height: 150px;
  padding: 14px;
  color: #182230;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #fbfdff;
  outline: none;
}

.project-rich-editor:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.12);
}

.project-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #98a2b3;
  font-weight: 650;
}

.project-rich-editor p {
  margin: 0 0 8px;
}

.project-rich-editor p:last-child {
  margin-bottom: 0;
}

.project-briefing-status {
  justify-self: end;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.project-briefing-status[data-tone="saving"],
.project-briefing-status[data-tone="pending"] {
  color: #087f8f;
}

.project-briefing-status[data-tone="saved"] {
  color: #157347;
}

.project-briefing-status[data-tone="error"] {
  color: #e5484d;
}

.project-item-attachments-section {
  position: relative;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-approval-layouts-section.is-drag-over,
.project-item-attachments-section.is-drag-over {
  border-color: rgba(0, 111, 196, 0.52);
  background: rgba(231, 243, 255, 0.72);
  box-shadow: inset 0 0 0 2px rgba(0, 111, 196, 0.14);
}

.project-approval-layouts-section.is-drag-over::after,
.project-item-attachments-section.is-drag-over::after {
  position: absolute;
  inset: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  border: 2px dashed rgba(0, 111, 196, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  content: "Solte o arquivo para anexar";
  pointer-events: none;
}

.project-item-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-item-section-head h3 {
  margin: 2px 0 0;
  color: var(--brand-navy);
  font-size: 15px;
  line-height: 1.2;
}

.project-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.project-layout-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 32, 81, 0.06);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.project-layout-card.is-approved {
  border-color: rgba(35, 165, 85, 0.54);
  background: linear-gradient(180deg, rgba(35, 165, 85, 0.08), #ffffff 48%);
  box-shadow: 0 12px 24px rgba(35, 165, 85, 0.14);
}

.project-layout-card.is-muted-by-approval {
  opacity: 0.5;
  filter: saturate(0.72);
}

.project-layout-card.is-muted-by-approval:hover,
.project-layout-card.is-muted-by-approval:focus-within {
  opacity: 0.82;
  filter: saturate(0.9);
}

.project-layout-card.is-updating {
  opacity: 0.72;
  transform: translateY(-1px);
}

.project-layout-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--brand-navy);
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.project-layout-thumb:hover,
.project-layout-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.16);
  outline: none;
}

.project-layout-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #eef4fb;
}

.project-layout-version {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 860;
  border-radius: 999px;
  background: rgba(17, 32, 81, 0.86);
}

.project-layout-info {
  min-width: 0;
}

.project-layout-note {
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-layout-note.muted {
  color: #98a2b3;
}

.project-layout-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.project-layout-actions form {
  margin: 0;
}

.project-layout-approve-button,
.project-layout-approved-button,
.project-layout-change-button,
.project-change-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  border-radius: 8px;
}

.project-layout-approve-button,
.project-layout-change-button {
  color: var(--brand-navy);
  border: 1px solid rgba(0, 111, 196, 0.22);
  background: #f7fbff;
  cursor: pointer;
}

.project-layout-approve-button:hover,
.project-layout-approve-button:focus-visible,
.project-layout-change-button:hover,
.project-layout-change-button:focus-visible {
  color: var(--brand-blue);
  border-color: rgba(0, 111, 196, 0.42);
  background: #ffffff;
  outline: none;
}

.project-layout-approved-button,
.project-change-done-badge {
  color: #157347;
  border: 1px solid rgba(35, 165, 85, 0.16);
  background: rgba(35, 165, 85, 0.12);
}

.project-layout-approved-button {
  cursor: pointer;
}

.project-change-done-badge {
  cursor: pointer;
}

.project-layout-approved-button:hover,
.project-layout-approved-button:focus-visible,
.project-change-done-badge:hover,
.project-change-done-badge:focus-visible {
  border-color: rgba(35, 165, 85, 0.36);
  background: rgba(35, 165, 85, 0.18);
  outline: none;
}

.project-layout-approve-button svg,
.project-layout-approved-button svg,
.project-layout-change-button svg,
.project-change-done-badge svg {
  width: 16px;
  height: 16px;
}

.project-layout-change-button {
  color: #31527a;
}

.project-layout-changes-section {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(221, 229, 239, 0.78);
}

.project-change-list {
  display: grid;
  gap: 10px;
}

.project-change-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.project-change-card:not(.is-done) {
  border-color: rgba(217, 119, 6, 0.32);
  background: #fffbeb;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.1);
}

.project-change-card.is-done {
  background: rgba(35, 165, 85, 0.06);
}

.project-change-card.is-updating {
  opacity: 0.72;
  transform: translateY(-1px);
}

.project-change-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #eef4fb;
  cursor: pointer;
  overflow: hidden;
}

.project-change-thumb:hover,
.project-change-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.16);
  outline: none;
}

.project-change-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-change-thumb span {
  position: absolute;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 860;
  border-radius: 999px;
  background: rgba(17, 32, 81, 0.86);
}

.project-change-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-change-status-badge {
  --badge-pulse: rgba(217, 119, 6, 0.58);
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 24px;
  padding: 0 9px;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  background: #fff7ed;
}

.project-change-card.is-done .project-change-status-badge {
  display: none;
}

.project-change-status-badge span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 0 var(--badge-pulse);
  animation: badge-pulse 1.25s ease-out infinite;
}

.project-change-content p {
  overflow-wrap: anywhere;
  margin: 0;
  color: #253044;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.38;
}

.project-change-content small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.project-change-attachments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.project-change-attachment-thumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 146px;
  min-height: 34px;
  padding: 4px 7px;
  color: #087f8f;
  border: 1px solid rgba(8, 127, 143, 0.2);
  border-radius: 8px;
  background: #e8f7fb;
  cursor: pointer;
}

.project-change-attachment-thumb:hover,
.project-change-attachment-thumb:focus-visible {
  border-color: rgba(8, 127, 143, 0.42);
  background: #ffffff;
  outline: none;
}

.project-change-attachment-thumb img,
.project-change-attachment-thumb svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.project-change-attachment-thumb img {
  object-fit: cover;
  border-radius: 5px;
}

.project-change-attachment-thumb span {
  overflow: hidden;
  color: #087f8f;
  font-size: 11px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-change-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.project-change-actions form {
  margin: 0;
}

.project-change-actions input[type="file"]:not(.modern-file-upload-input):not(.project-modern-upload-input) {
  display: none;
}

@media (max-width: 720px) {
  .project-change-card {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .project-change-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.project-version-field input {
  color: var(--brand-blue);
  font-weight: 880;
}

.project-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.project-attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  color: #087f8f;
  border: 1px solid rgba(8, 127, 143, 0.18);
  border-radius: 8px;
  background: #e8f7fb;
}

.project-attachment-summary {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.project-attachment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.project-attachment-actions form {
  display: flex;
  margin: 0;
}

.project-attachment-actions .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.64);
}

.project-attachment-actions .icon-button:hover,
.project-attachment-actions .icon-button:focus-visible {
  background: #ffffff;
}

.project-attachment-actions a {
  color: #087f8f;
  text-decoration: none;
}

.project-attachment-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #087f8f;
  border: 2px solid rgba(8, 127, 143, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.project-attachment-icon svg {
  width: 20px;
  height: 20px;
}

.project-attachment-summary span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-attachment-summary strong,
.project-attachment-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-attachment-summary strong {
  font-size: 13px;
  font-weight: 840;
}

.project-attachment-summary small {
  color: #47656b;
  font-size: 11px;
  font-weight: 720;
}

.project-attachments-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.task-attachments-section {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(221, 229, 239, 0.78);
  border-bottom: 1px solid rgba(221, 229, 239, 0.78);
}

.task-attachment-upload-form {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 0;
}

.task-attachment-upload-form .file-upload-field {
  width: 100%;
}

.task-attachment-upload-form input[type="file"]:not(.modern-file-upload-input):not(.project-modern-upload-input) {
  display: none;
}

.project-attachment-modal {
  width: min(100%, 520px);
}

.project-attachment-modal:has(.modern-file-upload),
.project-attachment-modal:has(.project-modern-upload) {
  width: min(100%, 620px);
}

.file-upload-field,
.project-file-upload-field {
  gap: 10px;
}

.modern-file-upload,
.project-modern-upload {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 176px;
  padding: 26px 20px;
  color: var(--brand-navy);
  text-align: center;
  border: 2px dashed rgba(0, 111, 196, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 111, 196, 0.08), rgba(17, 32, 81, 0.035)),
    #f8fbff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.modern-file-upload:hover,
.modern-file-upload:focus-within,
.modern-file-upload.is-drag-over,
.project-modern-upload:hover,
.project-modern-upload:focus-within,
.project-modern-upload.is-drag-over {
  border-color: rgba(0, 111, 196, 0.58);
  background:
    linear-gradient(135deg, rgba(0, 111, 196, 0.12), rgba(17, 32, 81, 0.055)),
    #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.11);
}

.modern-file-upload.is-drag-over,
.project-modern-upload.is-drag-over {
  transform: translateY(-1px);
}

.modern-file-upload.has-file,
.project-modern-upload.has-file {
  border-style: solid;
  border-color: rgba(31, 157, 85, 0.38);
  background:
    linear-gradient(135deg, rgba(31, 157, 85, 0.1), rgba(0, 111, 196, 0.05)),
    #ffffff;
}

.modern-file-upload-input,
.modern-file-upload .modern-file-upload-input,
.project-modern-upload .project-modern-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

.qr-studio-app .modern-file-upload .modern-file-upload-input {
  position: absolute;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.qr-studio-app label.modern-file-upload {
  display: grid;
  margin-bottom: 0;
}

.modern-file-upload-icon,
.project-modern-upload-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--brand-blue);
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.modern-file-upload-icon svg,
.project-modern-upload-icon svg {
  width: 25px;
  height: 25px;
}

.modern-file-upload strong,
.project-modern-upload strong {
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 900;
}

.modern-file-upload small,
.project-modern-upload small {
  max-width: 360px;
  color: #667085;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.modern-file-upload em,
.project-modern-upload em {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 0 11px;
  overflow: hidden;
  color: #31527a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(0, 111, 196, 0.14);
  border-radius: 999px;
  background: #ffffff;
}

.modern-file-upload.compact {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  gap: 4px 10px;
  min-height: 82px;
  padding: 14px;
  text-align: left;
}

.modern-file-upload.compact .modern-file-upload-icon {
  grid-row: span 3;
  width: 40px;
  height: 40px;
}

.modern-file-upload.compact .modern-file-upload-icon svg {
  width: 20px;
  height: 20px;
}

.modern-file-upload.compact strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-file-upload.compact small {
  max-width: 100%;
  font-size: 12px;
}

.modern-file-upload.compact em {
  max-width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.project-wisid-modal {
  width: min(100%, 780px);
}

.project-wisid-config-modal {
  max-height: min(860px, calc(100vh - 48px));
  overflow: hidden;
}

.project-wisid-config-modal .modal-head {
  align-items: flex-start;
  padding: 20px 20px 0;
}

.project-wisid-config-modal .generator-modal-body {
  max-height: calc(100vh - 138px);
  padding: 16px 20px 20px;
}

.project-wisid-modal form {
  display: grid;
  gap: 16px;
}

.project-wisid-modal .modal-head p {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-wisid-modal .form-grid.two {
  gap: 12px;
}

.project-wisid-modal .field span,
.project-wisid-modal .config-label {
  color: #667085;
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.project-wisid-modal-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-wisid-config-fields {
  max-width: none;
}

.project-wisid-readonly-field {
  display: grid;
  gap: 7px;
}

.project-wisid-readonly-field span {
  color: #667085;
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

.project-wisid-readonly-field strong {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 820;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.88);
}

.project-wisid-config-modal .project-wisid-modal-config {
  align-items: end;
}

.project-wisid-config-modal .generator-toggle.compact button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.project-wisid-modal .project-wisid-modal-qr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-wisid-modal .project-wisid-modal-qr-grid .qr-type-card {
  align-content: center;
  min-height: 132px;
  padding: 12px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.project-wisid-modal .project-wisid-modal-qr-grid .qr-type-preview {
  width: 66px;
  height: 66px;
  padding: 8px;
}

.project-wisid-modal .project-wisid-modal-qr-grid .qr-type-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-wisid-modal .project-wisid-modal-qr-grid .qr-type-color img {
  filter: invert(34%) sepia(98%) saturate(2117%) hue-rotate(183deg) brightness(93%) contrast(101%);
}

.project-wisid-modal .project-wisid-modal-qr-grid .qr-type-card.is-active .qr-type-color {
  background: #e8f7ff;
}

.project-wisid-config-modal .generator-modal-actions {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.project-wisid-config-modal .generator-modal-actions .secondary-button,
.project-wisid-config-modal .generator-modal-actions .primary-button {
  min-height: 50px;
}

.project-wisid-config-submit {
  font-size: 16px;
}

@media (max-width: 720px) {
  .project-wisid-modal-config {
    grid-template-columns: 1fr;
  }

  .project-wisid-config-modal .generator-modal-actions {
    grid-template-columns: 1fr;
  }

  .project-wisid-modal .project-wisid-modal-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-preview-modal {
  overflow: hidden;
  width: min(100%, 980px);
}

.project-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.92);
}

.project-preview-head h2 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--brand-navy);
  font-size: 20px;
}

.project-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-preview-actions form {
  display: flex;
  margin: 0;
}

.project-preview-delete-form[hidden] {
  display: none;
}

.project-preview-actions a {
  text-decoration: none;
}

.project-preview-body {
  display: grid;
  place-items: center;
  min-height: 420px;
  max-height: calc(90vh - 120px);
  padding: 16px;
  overflow: auto;
  background: #0b1220;
}

.project-preview-body img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 160px);
  object-fit: contain;
  border-radius: 8px;
}

.project-preview-body iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

.project-preview-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #ffffff;
  font-weight: 760;
  text-align: center;
}

.project-detail-sidebar {
  position: sticky;
  top: 90px;
  overflow: visible;
}

.project-info-head {
  align-items: center;
}

.project-sidebar-info-list {
  display: grid;
}

.project-sidebar-info-list div {
  display: grid;
  gap: 5px;
  padding: 15px 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-responsible-form {
  display: grid;
  gap: 6px;
  margin: 0;
}

.project-responsible-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 36px 0 12px;
  color: var(--brand-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  border: 1px solid rgba(197, 211, 230, 0.95);
  border-radius: 8px;
  background-color: #ffffff;
}

.project-responsible-form select:focus {
  border-color: rgba(0, 111, 196, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.1);
  outline: none;
}

.project-responsible-form select:disabled {
  cursor: wait;
  opacity: 0.72;
}

.project-responsible-form span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.project-responsible-form span[data-tone="saving"] {
  color: var(--brand-blue);
}

.project-responsible-form span[data-tone="error"] {
  color: #dc2626;
}

.project-priority-stars,
.project-card-priority-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.project-priority-stars button,
.project-card-priority-stars button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #c6ceda;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.project-priority-stars button:hover,
.project-priority-stars button:focus-visible,
.project-card-priority-stars button:hover,
.project-card-priority-stars button:focus-visible {
  color: #e0a800;
  background: rgba(245, 158, 11, 0.1);
  outline: none;
}

.project-priority-stars button.is-active,
.project-card-priority-stars button.is-active {
  color: #f4b400;
}

.project-priority-stars svg,
.project-card-priority-stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 1.8;
}

.project-priority-stars-head {
  justify-self: end;
  padding: 4px;
  border: 1px solid rgba(221, 229, 239, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.project-priority-stars-head button {
  width: 28px;
  height: 28px;
}

.project-priority-stars-head svg {
  width: 18px;
  height: 18px;
}

.project-card-priority-stars {
  gap: 1px;
}

.project-card-priority-stars button {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.project-card-priority-stars svg {
  width: 16px;
  height: 16px;
}

.project-card-priority-stars button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.project-sidebar-items {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.project-sidebar-section-head h3 {
  margin: 2px 0 0;
  color: var(--brand-navy);
  font-size: 15px;
  line-height: 1.2;
}

.project-sidebar-item-list {
  display: grid;
  gap: 8px;
}

.project-sidebar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.project-sidebar-item:hover,
.project-sidebar-item:focus-visible {
  border-color: rgba(0, 111, 196, 0.32);
  box-shadow: 0 8px 18px rgba(17, 32, 81, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.project-sidebar-item-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-sidebar-item-main span {
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.28;
}

.project-sidebar-item-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.project-item-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 860;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.project-item-status-badge.aberto {
  color: #31527a;
  background: rgba(100, 116, 139, 0.12);
}

.project-item-status-badge.aprovacao {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.14);
}

.project-item-status-badge.aprovado {
  color: #157347;
  background: rgba(35, 165, 85, 0.12);
}

.project-item-status-badge.alteracao {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.11);
}

.project-item-status-badge.padrao {
  color: #344054;
  background: rgba(102, 112, 133, 0.1);
}

.project-sidebar-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 860;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
}

.project-sidebar-mini-badge.quantity {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
}

.project-sidebar-mini-badge.approved {
  color: #157347;
  background: rgba(35, 165, 85, 0.12);
}

.project-sidebar-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-sidebar-forms {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.project-form-link-list {
  display: grid;
  gap: 8px;
}

.project-form-link-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
}

.project-form-link-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-form-link-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.project-form-link-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.project-form-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 860;
  border-radius: 999px;
}

.project-form-status.is-answered {
  color: #146339;
  background: rgba(31, 157, 85, 0.13);
}

.project-form-status.is-waiting {
  color: #475467;
  background: rgba(102, 112, 133, 0.13);
}

.project-form-link-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.project-sidebar-wisid {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.project-sidebar-qrcode {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.project-wisid-item-list {
  display: grid;
  gap: 10px;
}

.project-wisid-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
}

.project-wisid-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.project-wisid-item-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-wisid-item-head strong,
.project-wisid-item-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-wisid-item-head strong {
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 860;
}

.project-wisid-item-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.project-wisid-item-head small {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.project-wisid-item-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.project-wisid-item-actions .secondary-button {
  min-width: 0;
}

.project-wisid-code-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(0, 111, 196, 0.12);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.05);
}

.project-wisid-code-summary span {
  color: #58657d;
  font-size: 11px;
  font-weight: 850;
}

.project-wisid-code-summary strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 23px;
  padding: 0 8px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: #ffffff;
}

.project-wisid-qr-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.project-wisid-qr-selector button {
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  color: #31527a;
  font-size: 11px;
  font-weight: 820;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: #f7fbff;
  cursor: pointer;
}

.project-wisid-qr-selector button.is-active,
.project-wisid-qr-selector button:hover,
.project-wisid-qr-selector button:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: var(--brand-navy);
  outline: none;
}

.project-wisid-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-wisid-toolbar .secondary-button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.project-wisid-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.project-wisid-split .split-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.project-wisid-split .split-toggle {
  min-width: 34px;
  padding: 0 7px;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.project-wisid-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(207, 216, 230, 0.98);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 32, 81, 0.18);
}

.project-wisid-dropdown a,
.project-wisid-dropdown button {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: #253044;
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.project-wisid-dropdown a:hover,
.project-wisid-dropdown a:focus-visible,
.project-wisid-dropdown button:hover,
.project-wisid-dropdown button:focus-visible {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
  outline: none;
}

.project-wisid-code-list {
  display: grid;
  gap: 6px;
}

.project-wisid-code-list.is-scrollable {
  max-height: 860px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.project-wisid-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(0, 111, 196, 0.12);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.04);
}

.project-wisid-code-row .wisid-code-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.project-wisid-code-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.project-wisid-format-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.project-wisid-format-label {
  min-width: 26px;
  color: #42526f;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.project-wisid-code-actions .project-wisid-file-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  color: var(--brand-navy);
  border-color: rgba(0, 111, 196, 0.18);
  background: #ffffff;
}

.project-wisid-code-actions .project-wisid-file-button:hover,
.project-wisid-code-actions .project-wisid-file-button:focus-visible {
  color: var(--brand-blue);
  border-color: rgba(0, 111, 196, 0.34);
  background: #f7fbff;
  outline: none;
}

.project-wisid-code-actions .project-wisid-file-button svg {
  width: 15px;
  height: 15px;
}

.project-wisid-more-button {
  min-height: 32px;
  color: var(--brand-blue);
  border-style: dashed;
  background: #ffffff;
}

.project-wisid-config-modal .modal-head p {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.project-wisid-config-form {
  display: grid;
  gap: 16px;
  padding: 0;
}

.project-wisid-size-field {
  max-width: 260px;
}

.project-wisid-config-tools {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-wisid-config-tools .project-wisid-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
}

.project-wisid-config-tools h3 {
  margin: 2px 0 0;
  color: var(--brand-navy);
  font-size: 18px;
  line-height: 1.15;
}

.project-sidebar-shipping {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.project-sidebar-marketplace {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.project-marketplace-panel {
  overflow: hidden;
}

.project-marketplace-panel .project-sidebar-marketplace {
  border-top: 0;
}

.project-marketplace-link-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.project-marketplace-link-actions .icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.project-sidebar-shipping-status {
  display: grid;
  gap: 7px;
}

.project-sidebar-shipping-status p,
.project-sidebar-shipping-summary,
.project-shipping-modal-status {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.38;
}

.project-sidebar-shipping .delivery-mode-badge {
  width: fit-content;
}

.project-sidebar-shipping-summary {
  line-height: 1.45;
}

.project-sidebar-tracking span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-sidebar-tracking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 10px;
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.06);
}

.project-sidebar-tracking span {
  grid-column: 1 / -1;
}

.project-sidebar-tracking strong {
  overflow-wrap: anywhere;
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 860;
}

.project-shipping-modal {
  width: min(100%, 620px);
}

.project-shipping-modal-content {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 72px);
  overflow: auto;
  padding: 20px;
}

.project-shipping-modal .modal-head {
  align-items: flex-start;
}

.project-shipping-modal .modal-head > div {
  display: grid;
  gap: 9px;
}

.project-shipping-modal-copy {
  gap: 9px;
  margin-top: 2px;
}

.project-shipping-modal-copy .delivery-copy-row {
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid rgba(221, 229, 239, 0.72);
}

.project-shipping-modal-copy .delivery-copy-row:first-child {
  border-top: 0;
}

.project-shipping-modal-copy .delivery-copy-row > span {
  flex-basis: 126px;
}

.project-shipping-modal-copy .delivery-copy-row > strong {
  flex: 1 1 auto;
  max-width: none;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.wisid-main {
  width: min(1480px, calc(100% - 32px));
}

.wisid-search-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.wisid-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.wisid-search-input {
  position: relative;
  display: block;
}

.wisid-search-input svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.wisid-search-input input {
  padding-left: 42px;
}

.wisid-generated-panel {
  margin-bottom: 18px;
}

.wisid-history-main {
  display: grid;
  gap: 18px;
}

.wisid-history-panel {
  overflow: hidden;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.wisid-history-table {
  min-width: 980px;
}

.wisid-history-table td strong {
  color: var(--brand-navy);
  font-weight: 860;
}

.history-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 9px;
  color: #344054;
  font-size: 12px;
  font-weight: 780;
  border: 1px solid rgba(207, 216, 230, 0.9);
  border-radius: 999px;
  background: #ffffff;
}

.history-color-chip span {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(17, 32, 81, 0.12);
  border-radius: 999px;
  background: var(--history-color, var(--brand-blue));
}

.wisid-history-pagination {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.wisid-generated-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px;
}

.wisid-table {
  min-width: 1180px;
}

.wisid-table th:nth-child(1),
.wisid-table td:nth-child(1) {
  width: 72px;
}

.wisid-table th:nth-child(2),
.wisid-table td:nth-child(2) {
  width: 110px;
}

.wisid-table th:nth-child(6),
.wisid-table td:nth-child(6) {
  width: 116px;
}

.wisid-table th:nth-child(7),
.wisid-table td:nth-child(7) {
  width: 150px;
}

.wisid-table th:nth-child(8),
.wisid-table td:nth-child(8) {
  width: 270px;
}

.wisid-line-input,
.wisid-select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  outline: none;
}

.wisid-select {
  min-width: 96px;
}

.wisid-line-input:focus,
.wisid-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.12);
}

.wisid-line-input.compact {
  min-width: 130px;
}

.wisid-code-pill,
.wisid-code-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.08);
  cursor: pointer;
}

.wisid-code-chip {
  min-height: 38px;
  font-size: 14px;
}

.wisid-type-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #f6f9fd;
}

.wisid-type-toggle button {
  min-height: 30px;
  padding: 0 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 820;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.wisid-type-toggle button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.wisid-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.wisid-actions form {
  margin: 0;
}

.wisid-actions .icon-button {
  min-width: 36px;
  width: 36px;
  height: 36px;
}

.wisid-actions .table-action {
  min-height: 36px;
}

[data-wisid-row].is-dirty [data-wisid-save] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.wisid-pagination {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.wisid-generator-main {
  display: grid;
  gap: 18px;
}

.generator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
}

.generator-hero h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.generator-hero p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.generator-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.generator-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 820;
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.generator-hero-badges svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
}

.generator-panel {
  overflow: hidden;
}

.generator-form {
  display: grid;
  gap: 18px;
  padding: 20px;
}

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

.generator-stack {
  display: grid;
  gap: 9px;
}

.config-label {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

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

.generator-toggle.compact {
  display: inline-flex;
  flex-wrap: wrap;
}

.generator-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--brand-navy);
  font-weight: 820;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.generator-toggle.compact button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 13px;
}

.generator-toggle button svg {
  width: 17px;
  height: 17px;
}

.generator-toggle button.is-active,
.qr-type-card.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  box-shadow: 0 12px 22px rgba(0, 111, 196, 0.18);
}

.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 12px;
}

.qr-type-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 146px;
  padding: 14px 10px;
  color: var(--brand-navy);
  font-weight: 840;
  text-align: center;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.qr-type-preview {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 10px;
  border: 1px solid rgba(0, 111, 196, 0.12);
  border-radius: 8px;
  background: #f6f9fd;
}

.qr-card-dark {
  background: var(--brand-navy);
}

.qr-type-color {
  color: var(--qr-swatch, var(--brand-blue));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--qr-swatch, var(--brand-blue)), transparent 78%), rgba(31, 157, 85, 0.14)),
    #ffffff;
}

.qr-type-color img {
  filter: invert(34%) sepia(98%) saturate(2117%) hue-rotate(183deg) brightness(93%) contrast(101%);
}

.qr-type-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-type-preview svg {
  width: 44px;
  height: 44px;
}

.qr-type-card.is-active .qr-type-preview {
  border-color: rgba(255, 255, 255, 0.4);
}

.qr-type-card.is-active .qr-type-color {
  background: #e8f7ff;
}

.generator-new-color.is-muted,
.generator-color-control.is-muted {
  opacity: 0.45;
}

.generator-size-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.field .generator-size-control input {
  min-height: 48px;
}

.field .generator-size-control .secondary-button {
  min-height: 48px;
  white-space: nowrap;
}

.generator-color-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--brand-navy);
  font-weight: 820;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.generator-color-button span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 32, 81, 0.12);
  border-radius: 7px;
  background: var(--qr-swatch, #0074d9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.generator-color-button strong {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 850;
}

.generator-result {
  overflow: hidden;
}

.generator-result-body {
  display: grid;
  gap: 18px;
  padding: 18px 20px 20px;
}

.result-config-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.74);
}

.result-config-panel .field {
  margin: 0;
}

.generator-result-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qrcodes-main {
  display: grid;
  gap: 18px;
}

.qrcodes-tabs {
  margin-bottom: 0;
}

.qrcodes-preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.qrcodes-wifi-pix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.project-qrcode-modal {
  width: min(1120px, calc(100% - 32px));
  max-height: min(860px, calc(100vh - 48px));
  overflow: hidden;
}

.project-qrcode-modal > .modal-head {
  padding: 22px 24px 0;
}

.project-qrcode-modal > .modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.project-qrcode-modal-alert {
  margin: 18px 24px 0;
}

.project-qrcode-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-height: calc(100vh - 156px);
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.qrcode-form-panel {
  overflow: hidden;
}

.qrcode-form {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.qrcode-form .form-alert {
  margin: 0;
}

.qrcode-output {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(221, 229, 239, 0.9);
  background: rgba(246, 249, 253, 0.72);
}

.qrcode-output-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(0, 111, 196, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    #ffffff;
  background-size: 22px 22px;
}

.qrcode-output-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.qrcode-output-preview.is-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.qrcode-output-meta {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.qrcode-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qrcode-payload-field textarea {
  min-height: 106px;
  padding-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.qrcode-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.qrcode-history-panel {
  overflow: hidden;
}

.qrcode-history-list {
  display: grid;
  gap: 0;
}

.qrcode-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  text-decoration: none;
  border-top: 1px solid rgba(221, 229, 239, 0.75);
}

.qrcode-history-item:first-child {
  border-top: 0;
}

.qrcode-history-item:hover,
.qrcode-history-item:focus-visible {
  background: rgba(0, 111, 196, 0.055);
}

.qrcode-history-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.qrcode-history-item strong,
.qrcode-history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qrcode-history-item strong {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 820;
}

.qrcode-history-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.qrcode-history-item em {
  flex: 0 0 auto;
  color: var(--brand-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.tv-main {
  width: min(1220px, calc(100% - 40px));
}

.tv-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.tv-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(17, 32, 81, 0.08);
}

.tv-status-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--brand-blue);
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.08);
}

.tv-status-icon.is-active {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.1);
}

.tv-status-icon svg {
  width: 24px;
  height: 24px;
}

.tv-status-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tv-status-card span:not(.tv-status-icon) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.tv-status-card strong {
  overflow: hidden;
  color: var(--brand-navy);
  font-size: 22px;
  font-weight: 820;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-status-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.tv-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.tv-ml-panel,
.tv-tests-panel {
  min-height: 100%;
}

.tv-main .panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.tv-panel-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.tv-week-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.tv-week-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.tv-week-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-week-item strong {
  color: var(--brand-navy);
  font-size: 20px;
  font-weight: 840;
}

.tv-ml-note {
  padding: 12px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
}

.tv-ml-note strong {
  color: var(--brand-navy);
}

.tv-config-form {
  display: grid;
  gap: 14px;
}

.tv-week-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tv-config-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.46fr) minmax(220px, 1fr);
  gap: 12px;
}

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

.tv-control-button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 15px;
  color: var(--brand-navy);
  text-align: left;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tv-control-button:hover,
.tv-control-button:focus-visible {
  border-color: rgba(0, 111, 196, 0.28);
  box-shadow: 0 12px 28px rgba(17, 32, 81, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.tv-control-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.tv-control-button > svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.tv-control-button span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tv-control-button strong {
  font-size: 15px;
  font-weight: 820;
  line-height: 1.15;
}

.tv-control-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.tv-control-button.is-success {
  color: #0f6f3b;
  border-color: rgba(31, 157, 85, 0.22);
  background: rgba(31, 157, 85, 0.08);
}

.tv-control-button.is-warning {
  color: #9a6700;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.tv-control-button.is-info {
  color: #0f5f76;
  border-color: rgba(8, 127, 140, 0.24);
  background: rgba(8, 127, 140, 0.08);
}

.tv-control-button.is-dark {
  color: #2e1065;
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.08);
}

.tv-control-button.is-outline-warning {
  color: #9a6700;
}

.tv-control-button.is-outline-danger {
  color: var(--danger);
}

.tv-history-list {
  display: grid;
}

.tv-history-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 116px;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.tv-history-item:first-child {
  border-top: 0;
}

.tv-history-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.08);
}

.tv-history-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tv-history-item strong,
.tv-history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-history-item strong {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 780;
}

.tv-history-item small,
.tv-history-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.tv-history-item time {
  text-align: right;
}

.tv-history-empty {
  padding: 24px 20px;
  color: var(--muted);
  font-weight: 650;
  text-align: center;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.tv-file-list,
.tv-error-body {
  display: grid;
  gap: 13px;
  padding: 20px;
}

.tv-file-list > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tv-file-list span {
  color: #344054;
  font-size: 13px;
  font-weight: 780;
}

.tv-file-list code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  color: #334155;
  font-size: 12px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #f8fafc;
}

.tv-file-state {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-file-state span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
}

.tv-file-state .is-ok {
  color: #146339;
  background: rgba(31, 157, 85, 0.09);
}

.tv-file-state .is-error {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.09);
}

.tv-error-panel {
  max-width: 760px;
}

.tv-error-body p {
  margin: 0;
  color: #9f1d25;
  font-weight: 650;
  line-height: 1.5;
}

.split-action {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.split-action .secondary-button {
  border-radius: 0;
}

.split-action .split-main {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.split-action .split-toggle {
  min-width: 44px;
  padding: 0 10px;
  border-left: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.split-action .split-toggle.dark {
  color: #ffffff;
  border-color: #1f2937;
  background: #1f2937;
}

.split-action .split-toggle svg {
  width: 17px;
  height: 17px;
}

.action-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: min(560px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid rgba(207, 216, 230, 0.98);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 32, 81, 0.18);
}

.split-action:last-child .action-dropdown {
  right: 0;
  left: auto;
}

.action-dropdown.compact {
  min-width: 250px;
}

.action-dropdown a,
.action-dropdown button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: #253044;
  font-size: 15px;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.action-dropdown a:hover,
.action-dropdown button:hover {
  background: rgba(0, 111, 196, 0.08);
}

.generator-results-table {
  border: 1px solid rgba(221, 229, 239, 0.88);
  border-radius: 8px;
}

.generator-results-table table {
  min-width: 940px;
}

.generator-results-table th:nth-child(1),
.generator-results-table td:nth-child(1) {
  width: 110px;
}

.generator-results-table th:nth-child(2),
.generator-results-table td:nth-child(2) {
  width: 130px;
}

.generator-results-table th:nth-child(5),
.generator-results-table td:nth-child(5) {
  width: 360px;
}

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

.check-row.compact {
  gap: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 750;
}

.generator-results-table tr.is-used td {
  background: rgba(31, 157, 85, 0.06);
}

.generator-results-table tr.is-used .wisid-code-pill {
  color: #157347;
  border-color: rgba(31, 157, 85, 0.24);
  background: rgba(31, 157, 85, 0.11);
}

.generator-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
}

.generator-color-modal {
  width: min(560px, calc(100% - 32px));
  border-radius: 16px;
  overflow: hidden;
}

.generator-preset-modal {
  width: min(760px, calc(100% - 32px));
  border-radius: 16px;
  overflow: hidden;
}

.generator-csv-modal {
  width: min(620px, calc(100% - 32px));
}

.generator-modal-body {
  display: grid;
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
}

.qr-size-preset-list {
  display: grid;
  gap: 10px;
}

.generator-preset-modal .modal-head {
  padding: 22px 24px 0;
}

.generator-preset-modal .modal-head h2 {
  font-size: 26px;
  line-height: 1.08;
}

.generator-preset-modal .modal-head .icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.generator-preset-modal .generator-modal-body {
  gap: 16px;
  padding: 20px 24px 24px;
}

.generator-preset-modal .qr-size-preset-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}

.qr-size-preset-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(0, 111, 196, 0.16);
  border-radius: 12px;
  background: rgba(246, 249, 253, 0.9);
}

.generator-preset-modal .qr-size-preset-item {
  gap: 10px;
  padding: 8px;
  border-color: rgba(213, 224, 239, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #ffffff;
}

.qr-size-preset-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  color: var(--brand-navy);
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.generator-preset-modal .qr-size-preset-choice {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(221, 229, 239, 0.82);
  background: rgba(255, 255, 255, 0.86);
}

.qr-size-preset-choice strong {
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 880;
}

.generator-preset-modal .qr-size-preset-choice strong {
  font-size: 17px;
}

.qr-size-preset-choice span {
  color: #667085;
  font-size: 16px;
  font-weight: 760;
}

.generator-preset-modal .qr-size-preset-choice span {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.qr-size-preset-actions,
.qr-size-preset-editor-actions,
.generator-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.generator-preset-modal .qr-size-preset-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.generator-preset-modal .qr-size-preset-actions .secondary-button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 11px;
}

.modal-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.modal-hint code {
  color: var(--brand-navy);
  font-weight: 820;
}

.qr-size-preset-empty {
  padding: 16px;
  color: var(--muted);
  font-weight: 740;
  text-align: center;
  border: 1px dashed rgba(0, 111, 196, 0.22);
  border-radius: 8px;
}

.qr-size-preset-editor {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 16px;
  border-top: 1px solid rgba(221, 229, 239, 0.9);
}

.generator-preset-modal .qr-size-preset-editor {
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 14px;
  background: rgba(246, 249, 253, 0.82);
}

.generator-preset-modal .qr-size-preset-editor .field {
  gap: 8px;
}

.generator-preset-modal .qr-size-preset-editor .field > span:first-child {
  color: #344054;
  font-size: 13px;
  font-weight: 820;
}

.generator-preset-modal .qr-size-preset-editor input {
  min-height: 46px;
  border-radius: 11px;
}

.generator-preset-modal .qr-size-preset-editor-actions {
  align-items: end;
  flex-wrap: nowrap;
}

.generator-preset-modal .qr-size-preset-editor-actions .primary-button,
.generator-preset-modal .qr-size-preset-editor-actions .secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
}

.qr-size-preset-px-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.qr-size-preset-px-field strong {
  color: #667085;
  font-size: 15px;
  font-weight: 820;
}

.generator-modal-status {
  position: static;
  min-height: 18px;
  color: var(--success);
}

.generator-modal-status.is-error {
  color: var(--danger);
}

.qr-color-control {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.qr-color-control > input[type="color"] {
  width: 120px;
  height: 96px;
  padding: 8px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.generator-color-modal .modal-head {
  padding: 22px 24px 0;
}

.generator-color-modal .modal-head h2 {
  font-size: 26px;
  line-height: 1.08;
}

.generator-color-modal .modal-head .icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.generator-color-modal .generator-modal-body {
  gap: 18px;
  padding: 20px 24px 24px;
}

.generator-color-modal .qr-color-control {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(246, 249, 253, 0.96), #ffffff);
}

.generator-color-modal .qr-color-control > input[type="color"] {
  width: 150px;
  height: 118px;
  padding: 0;
  border: 1px solid rgba(199, 216, 234, 0.95);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: inset 0 0 0 10px #ffffff;
}

.generator-color-modal .qr-color-control .field {
  display: grid;
  gap: 8px;
  align-self: stretch;
  align-content: center;
}

.generator-color-modal .qr-color-control .field span {
  color: #667085;
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.generator-color-modal .qr-color-control input[type="text"] {
  min-height: 52px;
  font-size: 18px;
  font-weight: 760;
}

.generator-color-modal .generator-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 10px;
  justify-content: stretch;
}

.generator-color-modal .generator-modal-actions .primary-button,
.generator-color-modal .generator-modal-actions .secondary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

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

.sales-list-panel .pagination-nav,
.products-layout .pagination-nav {
  margin-top: 18px;
}

.pagination-link,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(207, 216, 230, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.pagination-link.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.pagination-link.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.pagination-ellipsis {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.app-toast-container {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 3000;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 36px));
}

.app-toast {
  padding: 12px 14px;
  color: #146339;
  font-size: 13px;
  font-weight: 760;
  border: 1px solid rgba(31, 157, 85, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 32, 81, 0.16);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.error {
  color: #9f1d25;
  border-color: rgba(229, 72, 77, 0.24);
}

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}

.task-panel-popover {
  position: fixed;
  z-index: 1200;
  width: min(520px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 96px));
  overflow: auto;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(17, 32, 81, 0.24);
}

.task-panel-loading {
  padding: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 740;
}

.task-panel-loading.is-error {
  color: var(--danger);
}

.task-panel-card {
  display: grid;
  background: #ffffff;
}

.task-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.95);
}

.task-panel-head h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 21px;
  line-height: 1.1;
}

.task-panel-head a {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.task-panel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(221, 229, 239, 0.95);
}

.task-panel-summary div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 14px;
  border-right: 1px solid rgba(221, 229, 239, 0.95);
}

.task-panel-summary div:last-child {
  border-right: 0;
}

.task-panel-summary strong {
  color: #007c89;
  font-size: 24px;
  font-weight: 880;
}

.task-panel-summary span {
  color: #667085;
  font-size: 15px;
  font-weight: 760;
}

.task-panel-section {
  display: grid;
  border-bottom: 1px solid rgba(221, 229, 239, 0.95);
}

.task-panel-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: rgba(246, 248, 252, 0.86);
}

.task-panel-section h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 850;
}

.task-panel-section > header span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  color: #007c89;
  font-size: 13px;
  font-weight: 850;
  border-radius: 999px;
  background: rgba(0, 124, 137, 0.1);
}

.task-panel-list {
  display: grid;
}

.task-panel-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid rgba(221, 229, 239, 0.72);
}

.task-panel-item:first-child {
  border-top: 0;
}

.task-panel-check {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: transparent;
  border: 2px solid #98a2b3;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.task-panel-check:hover,
.task-panel-check:focus-visible {
  color: #ffffff;
  border-color: var(--success);
  background: var(--success);
  outline: none;
}

.task-panel-check svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.task-panel-link {
  display: grid;
  gap: 5px;
  min-width: 0;
  text-decoration: none;
}

.task-panel-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #202b3c;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
}

.task-panel-link small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

.task-panel-link small span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-panel-link svg {
  width: 14px;
  height: 14px;
}

.task-panel-empty {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 690;
}

.tasks-main {
  width: min(1320px, calc(100% - 40px));
}

.tasks-head-status {
  display: inline-grid;
  gap: 2px;
  min-width: 104px;
  padding: 12px 16px;
  text-align: right;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(17, 32, 81, 0.07);
}

.tasks-head-status span {
  color: var(--brand-navy);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.tasks-head-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.tasks-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tasks-scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.tasks-scope-toggle a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 7px;
}

.tasks-scope-toggle a.is-active {
  color: #ffffff;
  background: var(--brand-blue);
  box-shadow: 0 8px 18px rgba(0, 111, 196, 0.18);
}

.tasks-scope-toggle svg {
  width: 15px;
  height: 15px;
}

.tasks-filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: #475467;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.tasks-filters a.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}

.tasks-filters svg {
  width: 17px;
  height: 17px;
}

.tasks-filters small {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: currentColor;
  border-radius: 999px;
  background: rgba(17, 32, 81, 0.07);
}

.tasks-filters a.is-active small {
  background: rgba(255, 255, 255, 0.18);
}

.tasks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: start;
  gap: 18px;
}

.tasks-list-panel {
  overflow: hidden;
}

.tasks-list {
  display: grid;
}

.tasks-list.is-drag-over {
  background: rgba(0, 111, 196, 0.035);
}

.knowledge-main {
  width: min(1480px, calc(100% - 40px));
  padding-top: 24px;
}

.knowledge-head {
  margin-bottom: 18px;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.knowledge-sidebar {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.knowledge-sidebar-actions {
  padding: 14px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.knowledge-tree {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 218px);
  overflow-y: auto;
  padding: 12px 10px 16px;
}

.knowledge-tree-section {
  display: grid;
  gap: 3px;
}

.knowledge-tree-section.private {
  padding-top: 12px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
}

.knowledge-tree-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px 0 calc(9px + (var(--level, 0) * 16px));
  color: #475467;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}

.knowledge-tree-row:hover,
.knowledge-tree-row:focus-visible {
  color: var(--brand-navy);
  background: rgba(0, 111, 196, 0.06);
  outline: none;
}

.knowledge-tree-row.is-active {
  color: var(--brand-navy);
  background: rgba(0, 111, 196, 0.1);
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.knowledge-tree-row.root {
  min-height: 38px;
  color: #1d2939;
  font-weight: 850;
}

.knowledge-tree-row.category {
  color: #344054;
}

.knowledge-tree-row.article {
  color: #667085;
  font-weight: 680;
}

.knowledge-tree-row svg {
  width: 16px;
  height: 16px;
}

.knowledge-tree-row.root svg {
  color: var(--brand-blue);
}

.knowledge-tree-section.private .knowledge-tree-row.root svg {
  color: #0f766e;
}

.knowledge-tree-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-tree-row small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 7px;
  color: #475467;
  font-size: 11px;
  font-weight: 850;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.1);
}

.knowledge-content-panel {
  overflow: hidden;
  min-height: 620px;
}

.knowledge-article-head,
.knowledge-context-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.knowledge-article-head h2,
.knowledge-context-head h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 28px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.knowledge-article-head span,
.knowledge-context-head span {
  display: inline-block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.knowledge-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  border-radius: 999px;
}

.knowledge-scope-badge.publico {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
}

.knowledge-scope-badge.privado {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
}

.knowledge-scope-badge svg {
  width: 14px;
  height: 14px;
}

.knowledge-meta-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px) auto;
  align-items: end;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  background: rgba(246, 248, 252, 0.62);
}

.knowledge-editor-form {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
}

.knowledge-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-rich-editor {
  min-height: 500px;
  padding: 28px;
  color: #182230;
  font-size: 16px;
  font-weight: 520;
  line-height: 1.72;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
}

.knowledge-rich-editor:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 111, 196, 0.12);
}

.knowledge-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #98a2b3;
  font-weight: 650;
}

.knowledge-rich-editor h1,
.knowledge-rich-editor h2,
.knowledge-rich-editor h3 {
  margin: 22px 0 10px;
  color: var(--brand-navy);
  line-height: 1.2;
}

.knowledge-rich-editor h1:first-child,
.knowledge-rich-editor h2:first-child,
.knowledge-rich-editor h3:first-child,
.knowledge-rich-editor p:first-child,
.knowledge-rich-editor ul:first-child,
.knowledge-rich-editor ol:first-child,
.knowledge-rich-editor blockquote:first-child {
  margin-top: 0;
}

.knowledge-rich-editor h1 {
  font-size: 30px;
}

.knowledge-rich-editor h2 {
  font-size: 24px;
}

.knowledge-rich-editor h3 {
  font-size: 19px;
}

.knowledge-rich-editor p {
  margin: 0 0 12px;
}

.knowledge-rich-editor ul,
.knowledge-rich-editor ol {
  margin: 0 0 14px 22px;
  padding: 0;
}

.knowledge-rich-editor li {
  margin: 4px 0;
}

.knowledge-rich-editor blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  color: #344054;
  border-left: 3px solid var(--brand-blue);
  background: rgba(0, 111, 196, 0.06);
}

.knowledge-rich-editor a {
  color: var(--brand-blue);
  font-weight: 750;
}

.knowledge-save-status {
  justify-self: end;
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.knowledge-save-status[data-tone="saving"],
.knowledge-save-status[data-tone="pending"] {
  color: #7a4f00;
}

.knowledge-save-status[data-tone="saved"] {
  color: #146339;
}

.knowledge-save-status[data-tone="error"] {
  color: var(--danger);
}

.knowledge-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
  background: rgba(246, 248, 252, 0.7);
}

.knowledge-article-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.knowledge-article-footer form {
  margin: 0;
}

.knowledge-inline-create {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  background: rgba(246, 248, 252, 0.7);
}

.knowledge-inline-create input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
}

.knowledge-inline-create input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.14);
}

.knowledge-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding: 20px 24px 24px;
}

.knowledge-article-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.knowledge-article-card:hover,
.knowledge-article-card:focus-visible {
  border-color: rgba(0, 111, 196, 0.34);
  box-shadow: 0 14px 30px rgba(17, 32, 81, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.knowledge-card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--brand-blue);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.1);
}

.knowledge-card-icon svg {
  width: 20px;
  height: 20px;
}

.knowledge-article-card strong {
  color: var(--brand-navy);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.knowledge-article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.knowledge-article-card small {
  align-self: end;
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.knowledge-empty {
  grid-column: 1 / -1;
  min-height: 260px;
}

.task-row {
  display: grid;
  grid-template-columns: 24px 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.task-row:hover,
.task-row:focus-within {
  background: rgba(0, 111, 196, 0.04);
}

.task-row.is-selected {
  background: rgba(0, 111, 196, 0.07);
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.task-row.is-done {
  background: rgba(31, 157, 85, 0.04);
}

.task-row.is-drag-source {
  display: none;
}

.task-drag-placeholder {
  display: grid;
  align-items: center;
  min-height: var(--task-placeholder-height, 78px);
  padding: 0 18px;
  border-top: 1px solid rgba(0, 111, 196, 0.16);
  border-bottom: 1px solid rgba(0, 111, 196, 0.16);
  background: rgba(0, 111, 196, 0.055);
}

.task-drag-placeholder span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-navy));
  box-shadow: 0 10px 24px rgba(0, 111, 196, 0.2);
}

.task-drag-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid rgba(0, 111, 196, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(17, 32, 81, 0.22);
}

.task-drag-preview .task-row {
  border-bottom: 0;
  background: #ffffff;
}

.task-drag-handle {
  display: inline-grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 24px;
  height: 28px;
  color: #98a2b3;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.task-drag-handle:hover,
.task-drag-handle:focus-visible {
  color: var(--brand-blue);
  background: rgba(0, 111, 196, 0.08);
  outline: none;
}

.task-drag-handle:active {
  cursor: grabbing;
}

.task-drag-handle svg {
  width: 18px;
  height: 18px;
}

.dragging-task-row,
.dragging-task-row * {
  cursor: grabbing !important;
}

.task-check-form {
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
}

.task-check {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #ffffff;
  border: 2px solid #9aa4b2;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.task-check:hover,
.task-check:focus-visible {
  border-color: var(--brand-blue);
  transform: scale(1.04);
  outline: none;
}

.task-check.is-checked {
  border-color: var(--success);
  background: var(--success);
}

.task-check svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.task-row-link {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.task-row-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #202b3c;
  font-size: 16px;
  font-weight: 730;
  line-height: 1.25;
}

.task-row.is-done .task-row-link strong {
  color: #667085;
  text-decoration: line-through;
}

.task-row-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.task-row-link > .task-origin-line,
.task-origin-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  color: #0f5f6b;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  border-radius: 999px;
  background: rgba(0, 124, 137, 0.11);
}

.task-row-link > .task-origin-line svg,
.task-origin-badge svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.task-row-link > .task-origin-line b {
  font-weight: 860;
}

.task-row-link > .task-origin-line em {
  min-width: 0;
  overflow: hidden;
  color: #4d5b70;
  font-style: normal;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row-link > .task-origin-line.vendas,
.task-origin-badge.vendas {
  color: #064e8a;
  background: rgba(0, 111, 196, 0.11);
}

.task-row-link > .task-origin-line.projetos,
.task-origin-badge.projetos {
  color: #146339;
  background: rgba(31, 157, 85, 0.12);
}

.task-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

.task-meta-line span,
.task-due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}

.task-meta-line svg {
  width: 14px;
  height: 14px;
}

.task-due {
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.1);
}

.task-due.today {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
}

.task-due.overdue {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.12);
}

.task-due.upcoming {
  color: #7a4f00;
  background: rgba(245, 158, 11, 0.14);
}

.task-due.done {
  color: #146339;
  background: rgba(31, 157, 85, 0.12);
}

.task-priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
}

.task-priority.baixa {
  color: #475467;
  background: rgba(102, 112, 133, 0.1);
}

.task-priority.normal {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
}

.task-priority.alta {
  color: #7a4f00;
  background: rgba(245, 158, 11, 0.14);
}

.task-priority.urgente {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.12);
}

.task-quick-form {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) 160px minmax(170px, 220px) auto;
  align-items: center;
  gap: 10px;
  padding: 15px 18px 18px;
  background: rgba(246, 248, 252, 0.86);
}

.task-quick-form input,
.task-quick-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
}

.task-quick-form input:focus,
.task-quick-form select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.14);
}

.task-quick-plus {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--danger);
}

.task-quick-plus svg {
  width: 22px;
  height: 22px;
}

.task-detail-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.task-detail-head {
  align-items: start;
}

.task-detail-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  border-radius: 999px;
}

.task-detail-state.done {
  color: #146339;
  background: rgba(31, 157, 85, 0.12);
}

.task-detail-state.overdue {
  color: #9f1d25;
  background: rgba(229, 72, 77, 0.12);
}

.task-detail-state.today {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
}

.task-detail-state.upcoming,
.task-detail-state.no-date {
  color: #475467;
  background: rgba(102, 112, 133, 0.1);
}

.task-detail-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.task-title-field input {
  min-height: 50px;
  color: var(--brand-navy);
  font-size: 21px;
  font-weight: 760;
}

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

.task-detail-grid .field:last-child {
  grid-column: 1 / -1;
}

.task-autosave-status {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.task-autosave-status[data-tone="saving"],
.task-autosave-status[data-tone="pending"] {
  color: #7a4f00;
}

.task-autosave-status[data-tone="saved"] {
  color: #146339;
}

.task-autosave-status[data-tone="error"] {
  color: var(--danger);
}

.task-detail-meta {
  padding: 0 18px 18px;
}

.task-detail-meta dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(221, 229, 239, 0.82);
  border-radius: 8px;
}

.task-detail-meta div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid rgba(221, 229, 239, 0.82);
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.task-detail-meta .task-detail-origin {
  grid-column: 1 / -1;
  border-right: 0;
}

.task-detail-meta div:nth-child(2n) {
  border-right: 0;
}

.task-detail-meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.task-detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.task-detail-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #253044;
  font-size: 14px;
  font-weight: 680;
}

.task-detail-origin dd {
  display: grid;
  gap: 5px;
}

.task-detail-origin a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--brand-blue);
  font-weight: 860;
  text-decoration: none;
}

.task-detail-origin a:hover,
.task-detail-origin a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.task-detail-origin svg {
  width: 15px;
  height: 15px;
}

.task-detail-origin span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.task-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(221, 229, 239, 0.82);
  background: rgba(246, 248, 252, 0.7);
}

.task-danger-zone form {
  margin: 0;
}

.task-detail-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 360px;
  padding: 34px;
  text-align: center;
}

.task-detail-empty svg {
  width: 48px;
  height: 48px;
  color: var(--brand-blue);
}

.task-detail-empty h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 22px;
}

.task-detail-empty p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .modal-backdrop {
    align-items: end;
    overflow-y: auto;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .modal-card form {
    padding: 16px;
  }

  .responsive-table {
    overflow-x: visible;
  }

  .responsive-table .data-table:not(.order-table) {
    display: block;
    border-collapse: separate;
  }

  .responsive-table .data-table:not(.order-table) thead {
    display: none;
  }

  .responsive-table .data-table:not(.order-table) tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .responsive-table .data-table:not(.order-table) tr {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(221, 229, 239, 0.92);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(17, 32, 81, 0.07);
  }

  .responsive-table .data-table:not(.order-table) td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  }

  .responsive-table .data-table:not(.order-table) tr:last-child td {
    border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  }

  .responsive-table .data-table:not(.order-table) td:last-child,
  .responsive-table .data-table:not(.order-table) tr:last-child td:last-child {
    border-bottom: 0;
  }

  .responsive-table .data-table:not(.order-table) td::before {
    content: attr(data-label);
    flex: 0 0 96px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 840;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .responsive-table .data-table:not(.order-table) td:not([data-label])::before,
  .responsive-table .data-table:not(.order-table) td[data-label=""]::before {
    display: none;
  }

  .responsive-table .data-table:not(.order-table) td > * {
    min-width: 0;
  }

  .responsive-table .data-table:not(.order-table) td > strong,
  .responsive-table .data-table:not(.order-table) td > span:not(.payment-status):not(.status-badge):not(.client-balance-chip),
  .responsive-table .data-table:not(.order-table) td > a:not(.table-action) {
    text-align: right;
  }

  .responsive-table .data-table:not(.order-table) .table-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .responsive-table .data-table:not(.order-table) .table-actions::before {
    flex-basis: auto;
  }

  .responsive-table .data-table:not(.order-table) .table-action {
    justify-content: center;
    width: 100%;
  }

  .responsive-table .finance-monthly-table tbody {
    gap: 0;
    padding: 0;
  }

  .responsive-table .finance-monthly-table tr {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .responsive-table .finance-monthly-table tbody td {
    display: block;
    padding: 0;
  }

  .responsive-table .finance-monthly-table tbody td::before {
    display: none;
  }

  .responsive-table .finance-monthly-table tfoot {
    display: block;
    padding: 12px;
    background: #f7f9fc;
  }

  .responsive-table .finance-monthly-table tfoot tr {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(221, 229, 239, 0.92);
    border-radius: 8px;
    background: #ffffff;
  }

  .responsive-table .finance-monthly-table tfoot td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  }

  .responsive-table .finance-monthly-table tfoot td:last-child {
    border-bottom: 0;
  }

  .responsive-table .finance-monthly-table tfoot td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 840;
    text-transform: uppercase;
  }

  .responsive-table .finance-monthly-table tfoot td[data-label=""]::before {
    display: none;
  }

  .order-lines .responsive-table {
    overflow: visible;
  }

  .order-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }

  .order-table colgroup,
  .order-table thead {
    display: none;
  }

  .order-table tbody[data-order-items-body] {
    display: grid;
    gap: 12px;
    padding: 0 16px 8px;
  }

  .order-add-actions {
    padding: 8px 16px 16px;
  }

  .order-table tbody[data-order-items-body] > tr[data-item-row],
  .order-table tbody[data-order-items-body] > tr.add-line-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(92px, 112px);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(221, 229, 239, 0.92);
    border-left: 4px solid rgba(0, 111, 196, 0.72);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(17, 32, 81, 0.07);
  }

  .order-table tbody[data-order-items-body] > tr.section-line-row {
    grid-template-columns: 34px minmax(0, 1fr) 90px;
    border-left-color: rgba(17, 32, 81, 0.75);
    background: rgba(0, 111, 196, 0.075);
  }

  .order-table tbody[data-order-items-body] > tr[data-item-row] > td,
  .order-table tbody[data-order-items-body] > tr.add-line-row > td {
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .order-table .drag-cell {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: center;
    width: auto;
  }

  .order-table .item-product-cell {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
  }

  .order-table .section-line-row .section-cell {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-content: center;
  }

  .order-table .section-line-row .section-title-input {
    min-height: 36px;
    font-size: 16px;
  }

  .order-table tbody[data-order-items-body] > tr > td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .order-table tbody[data-order-items-body] > tr > td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .order-table tbody[data-order-items-body] > tr > td:nth-child(3)::before,
  .order-table tbody[data-order-items-body] > tr > td:nth-child(4)::before,
  .order-table .item-total-cell::before {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 840;
    line-height: 1;
    text-transform: uppercase;
  }

  .order-table tbody[data-order-items-body] > tr > td:nth-child(3)::before {
    content: "Qtd.";
  }

  .order-table tbody[data-order-items-body] > tr > td:nth-child(4)::before {
    content: "Unitário";
  }

  .order-table .item-total-cell {
    grid-column: 2;
    grid-row: 3;
    align-content: start;
    color: var(--ink);
    white-space: normal;
  }

  .order-table .item-total-cell::before {
    content: "Total";
  }

  .order-table .item-total-cell strong {
    display: block;
    white-space: normal;
  }

  .order-table .line-actions {
    grid-column: 3;
    grid-row: 3;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    padding: 0;
    white-space: normal;
  }

  .order-table .section-line-row .line-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .order-table tbody[data-order-items-body] > tr.section-line-row > td:nth-child(3)::before {
    content: none;
  }

  .order-table .line-actions:empty {
    display: none;
  }

  .order-table .line-actions form {
    display: inline-grid;
  }

  .order-table select,
  .order-table input {
    min-height: 44px;
  }

  .item-drag-handle {
    width: 32px;
    height: 44px;
  }

  .item-product-cell > strong,
  .line-product-title strong {
    line-height: 1.25;
  }

  .item-line-description {
    line-height: 1.4;
  }

  .projects-board-shell.is-list-view {
    overflow-x: visible;
  }

  .projects-board-shell.is-list-view .project-card {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px;
  }

  .projects-board-shell.is-list-view .project-card::before {
    grid-row: auto;
    justify-self: start;
    min-height: 26px;
  }

  .projects-board-shell.is-list-view .project-card > * {
    grid-column: 1;
  }

  .projects-board-shell.is-list-view .project-subcards {
    grid-template-columns: 1fr;
  }

  .wisid-main {
    width: min(100% - 24px, 720px);
  }

  .wisid-search-panel {
    padding: 14px;
  }

  .wisid-history-main .sales-head > .sales-actions .primary-button {
    grid-column: 1 / -1;
  }

  .responsive-table .data-table.wisid-table,
  .responsive-table .data-table.wisid-history-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  .responsive-table .data-table.wisid-table tbody,
  .responsive-table .data-table.wisid-history-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .responsive-table .data-table.wisid-table tr,
  .responsive-table .data-table.wisid-history-table tr {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(213, 224, 239, 0.95);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
      #ffffff;
    box-shadow: 0 10px 24px rgba(17, 32, 81, 0.05);
  }

  .responsive-table .data-table.wisid-table td,
  .responsive-table .data-table.wisid-history-table td {
    display: grid;
    align-items: start;
    justify-content: stretch;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .responsive-table .data-table.wisid-table tr:last-child td,
  .responsive-table .data-table.wisid-history-table tr:last-child td {
    border-bottom: 0;
  }

  .responsive-table .data-table.wisid-table td::before,
  .responsive-table .data-table.wisid-history-table td::before {
    flex: none;
    width: auto;
    margin: 0;
    color: #758197;
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: left;
  }

  .responsive-table .data-table.wisid-table td > *,
  .responsive-table .data-table.wisid-history-table td > * {
    min-width: 0;
  }

  .responsive-table .data-table.wisid-table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsive-table .data-table.wisid-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    align-content: center;
    color: #667085;
    font-size: 13px;
    font-weight: 820;
  }

  .responsive-table .data-table.wisid-table td:nth-child(1)::before {
    color: #8b95a8;
    font-size: 9px;
  }

  .responsive-table .data-table.wisid-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
  }

  .responsive-table .data-table.wisid-table td:nth-child(2)::before,
  .responsive-table .data-table.wisid-table td:nth-child(8)::before {
    display: none;
  }

  .responsive-table .data-table.wisid-table td:nth-child(3),
  .responsive-table .data-table.wisid-table td:nth-child(4),
  .responsive-table .data-table.wisid-table td:nth-child(5),
  .responsive-table .data-table.wisid-table td:nth-child(8),
  .responsive-table .data-table.wisid-history-table td[colspan] {
    grid-column: 1 / -1;
  }

  .responsive-table .data-table.wisid-table td:nth-child(6),
  .responsive-table .data-table.wisid-table td:nth-child(7) {
    grid-column: span 1;
  }

  .wisid-line-input,
  .wisid-select {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    border-color: rgba(199, 214, 234, 0.95);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
  }

  .wisid-line-input.compact {
    min-width: 0;
  }

  .wisid-code-pill {
    justify-self: end;
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 111, 196, 0.04);
  }

  .wisid-select {
    min-width: 0;
  }

  .wisid-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 4px;
    border-radius: 12px;
  }

  .wisid-type-toggle button {
    min-height: 38px;
    border-radius: 9px;
  }

  .wisid-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 8px;
    width: 100%;
    padding-top: 2px;
  }

  .wisid-actions form {
    display: grid;
  }

  .wisid-actions .icon-button {
    width: 42px;
    height: 40px;
    border-radius: 11px;
  }

  .wisid-actions .table-action {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border-radius: 11px;
  }

  .responsive-table .data-table.wisid-history-table tr {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    align-content: start;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(1)::before,
  .responsive-table .data-table.wisid-history-table td:nth-child(4)::before,
  .responsive-table .data-table.wisid-history-table td:last-child::before {
    display: none;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(1) strong {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    color: var(--brand-navy);
    font-size: 14px;
    border: 1px solid rgba(0, 111, 196, 0.18);
    border-radius: 999px;
    background: rgba(0, 111, 196, 0.08);
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(1) strong::before {
    content: "Lote ";
    margin-right: 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 780;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
    max-width: 132px;
    color: #253044;
    font-size: 13px;
    font-weight: 780;
    text-align: right;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(2)::before {
    justify-self: end;
    color: #8b95a8;
    font-size: 9px;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(4) {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 2px 0 0;
    color: #1f2a44;
    font-size: 15px;
    font-weight: 860;
    line-height: 1.25;
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(3),
  .responsive-table .data-table.wisid-history-table td:nth-child(5),
  .responsive-table .data-table.wisid-history-table td:nth-child(6),
  .responsive-table .data-table.wisid-history-table td:nth-child(7),
  .responsive-table .data-table.wisid-history-table td:nth-child(8) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    color: #253044;
    font-size: 13px;
    font-weight: 780;
    border: 1px solid rgba(221, 229, 239, 0.88);
    border-radius: 12px;
    background: rgba(246, 249, 253, 0.92);
  }

  .responsive-table .data-table.wisid-history-table td:nth-child(3)::before,
  .responsive-table .data-table.wisid-history-table td:nth-child(5)::before,
  .responsive-table .data-table.wisid-history-table td:nth-child(6)::before,
  .responsive-table .data-table.wisid-history-table td:nth-child(7)::before,
  .responsive-table .data-table.wisid-history-table td:nth-child(8)::before {
    color: #7b879a;
    font-size: 9px;
  }

  .responsive-table .data-table.wisid-history-table td:last-child {
    grid-column: 1 / -1;
    display: block;
    min-height: 0;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .wisid-history-table .table-action {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }

  .history-color-chip {
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .wisid-pagination,
  .wisid-history-pagination {
    padding: 12px;
  }

  .task-detail-panel:has(.task-detail-empty) {
    display: none;
  }
}

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

  .login-visual {
    min-height: 230px;
    padding: 28px;
  }

  .login-visual-copy strong {
    font-size: 34px;
  }

  .login-panel {
    align-items: start;
    padding: 24px;
    justify-items: center;
  }

  .app-topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .topbar-context {
    display: none;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .project-board-toolbar {
    grid-column: 1 / -1;
    order: 3;
  }

  .project-board-search-control {
    min-height: 46px;
  }

  .brand-lockup img {
    width: 110px;
  }

  .app-main {
    width: min(100% - 24px, 720px);
    padding-top: 28px;
  }

  .dashboard-main {
    padding-top: 20px;
  }

  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .sales-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-actions {
    justify-content: stretch;
  }

  .sales-actions form,
  .sales-actions button {
    width: 100%;
  }

  .sales-head > .sales-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sales-head > .sales-actions form {
    width: auto;
    min-width: 0;
  }

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

  .seller-goal-head,
  .seller-goal-metrics {
    align-items: flex-start;
    flex-direction: column;
  }

  .finance-kpi-grid,
  .finance-dashboard-grid,
  .finance-filters,
  .finance-commercial-grid {
    grid-template-columns: 1fr;
  }

  .finance-monthly-table {
    min-width: 0;
  }

  .finance-month-details summary {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 12px;
  }

  .finance-month-cell {
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .finance-month-cell:not(.month)::before {
    display: inline;
    color: var(--muted);
    font-size: 11px;
    font-weight: 840;
    text-transform: uppercase;
  }

  .finance-month-payment {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

  .finance-month-payment span,
  .finance-month-payment em {
    text-align: left;
  }

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

  .finance-commission-summary .finance-kpi-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 118px;
    padding: 14px;
  }

  .finance-commission-summary .finance-kpi-icon {
    width: 42px;
    height: 42px;
  }

  .finance-commission-summary .finance-kpi-card strong {
    font-size: 19px;
  }

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

  .finance-commercial-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .finance-commercial-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  }

  .finance-due-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .finance-due-item em {
    grid-column: 2;
  }

  .sales-summary div:nth-child(2n) {
    border-right: 0;
  }

  .sales-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  }

  .sales-workspace,
  .products-layout,
  .users-layout {
    grid-template-columns: 1fr;
  }

  .tasks-main {
    width: min(100% - 24px, 720px);
  }

  .knowledge-main {
    width: min(100% - 24px, 720px);
  }

  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-sidebar {
    position: static;
  }

  .knowledge-tree {
    max-height: 420px;
  }

  .knowledge-meta-form {
    grid-template-columns: 1fr;
  }

  .knowledge-article-head,
  .knowledge-context-head,
  .knowledge-article-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-inline-create {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .knowledge-inline-create .primary-button {
    grid-column: 2;
  }

  .tasks-head-status {
    text-align: left;
  }

  .tasks-layout {
    grid-template-columns: 1fr;
  }

  .task-detail-panel {
    position: static;
  }

  .task-quick-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-quick-form input[type="date"],
  .task-quick-form select,
  .task-quick-form .primary-button {
    grid-column: 2;
  }

  .projects-main {
    width: min(100% - 24px, 720px);
  }

  .projects-board {
    min-width: 100%;
  }

  .project-column {
    flex-basis: 300px;
    min-height: 320px;
  }

  .project-column.is-collapsed {
    flex-basis: 68px;
  }

  .project-column.is-collapsed .project-column-head {
    min-height: 320px;
  }

  .project-detail-main {
    width: min(100% - 24px, 720px);
  }

  .project-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .project-detail-actions {
    justify-content: flex-start;
  }

  .project-stage-step {
    min-width: 152px;
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .wisid-search-form {
    grid-template-columns: 1fr;
  }

  .wisid-search-form .secondary-button {
    width: 100%;
  }

  .generator-hero,
  .generator-form-grid,
  .result-config-panel {
    grid-template-columns: 1fr;
  }

  .generator-hero-badges {
    justify-content: flex-start;
  }

  .generator-size-control,
  .qr-size-preset-item,
  .qr-size-preset-editor,
  .qr-color-control {
    grid-template-columns: 1fr;
  }

  .qr-size-preset-actions,
  .qr-size-preset-editor-actions,
  .generator-modal-actions {
    justify-content: stretch;
  }

  .qr-size-preset-actions .secondary-button,
  .qr-size-preset-editor-actions .primary-button,
  .qr-size-preset-editor-actions .secondary-button,
  .generator-modal-actions .primary-button,
  .generator-modal-actions .secondary-button {
    width: 100%;
  }

  .qr-color-control > input[type="color"] {
    width: 100%;
  }

  .generator-color-modal .modal-head {
    padding: 18px 18px 0;
  }

  .generator-color-modal .modal-head h2 {
    font-size: 24px;
  }

  .generator-color-modal .generator-modal-body {
    padding: 16px 18px 18px;
  }

  .generator-color-modal .qr-color-control {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .generator-color-modal .qr-color-control > input[type="color"] {
    width: 100%;
    height: 96px;
  }

  .generator-color-modal .generator-modal-actions {
    grid-template-columns: 1fr;
  }

  .generator-preset-modal .modal-head {
    padding: 18px 18px 0;
  }

  .generator-preset-modal .modal-head h2 {
    font-size: 24px;
  }

  .generator-preset-modal .generator-modal-body {
    padding: 16px 18px 18px;
  }

  .generator-preset-modal .qr-size-preset-list {
    max-height: none;
    overflow: visible;
  }

  .generator-preset-modal .qr-size-preset-item,
  .generator-preset-modal .qr-size-preset-editor {
    grid-template-columns: 1fr;
  }

  .generator-preset-modal .qr-size-preset-choice {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .generator-preset-modal .qr-size-preset-actions,
  .generator-preset-modal .qr-size-preset-editor-actions {
    display: grid;
    width: 100%;
  }

  .generator-preset-modal .qr-size-preset-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generator-preset-modal .qr-size-preset-editor-actions {
    grid-template-columns: 1fr;
  }

  .generator-preset-modal .qr-size-preset-actions .secondary-button,
  .generator-preset-modal .qr-size-preset-editor-actions .primary-button,
  .generator-preset-modal .qr-size-preset-editor-actions .secondary-button {
    justify-content: center;
    width: 100%;
  }

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

  .generator-result-toolbar .secondary-button {
    width: 100%;
  }

  .qrcodes-wifi-pix-grid,
  .project-qrcode-modal-grid,
  .qrcode-output,
  .tv-status-grid,
  .tv-layout,
  .tv-bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .qrcodes-preview-actions {
    justify-content: flex-start;
  }

  .split-action {
    width: 100%;
  }

  .split-action .split-main {
    flex: 1;
  }

  .split-action .split-toggle {
    width: 48px;
  }

  .action-dropdown,
  .action-dropdown.compact {
    right: 0;
    left: 0;
    min-width: 100%;
  }

  .project-detail-sidebar {
    position: static;
  }

  .detail-side-stack {
    position: static;
  }

  .sales-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .sales-detail-context {
    grid-row: 1;
    justify-content: flex-start;
    min-height: 0;
  }

  .sales-detail-context .project-breadcrumb {
    justify-content: flex-start;
    text-align: left;
  }

  .sales-detail-toolbar .sales-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .sale-detail-layout {
    grid-template-columns: 1fr;
  }

  .sale-info-grid,
  .sale-bottom,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

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

  .client-profile-list {
    grid-template-columns: 1fr;
  }

  .payment-summary-grid div:nth-child(2n) {
    border-right: 0;
  }

  .payment-summary-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  }

  .activity-sidebar {
    position: static;
  }

  .sale-detail-panel {
    position: static;
  }

  .summary-strip {
    min-width: 0;
  }

  .module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 14px;
  }

  .module-card {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-card {
    max-width: none;
    padding: 24px;
  }

  .login-panel {
    padding: 24px 18px 32px;
    justify-items: stretch;
  }

  .field input,
  .primary-button {
    min-width: 0;
  }

  .client-input-wrap:has(.inline-create-button:not([hidden])) > input,
  .product-picker .client-input-wrap:has(.inline-create-button:not([hidden])) > input {
    padding-right: 48px;
  }

  .client-input-wrap .inline-create-button {
    justify-content: center;
    width: 34px;
    padding: 0;
  }

  .order-table .client-input-wrap .inline-create-button {
    width: 30px;
  }

  .client-input-wrap .inline-create-button span {
    display: none;
  }

  .login-card h1,
  .dashboard-head h1,
  .module-stage-panel h1 {
    font-size: 25px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  }

  .summary-strip div:last-child {
    border-bottom: 0;
  }

  .sales-summary {
    grid-template-columns: 1fr;
  }

  .sales-head > .sales-actions {
    gap: 8px;
  }

  .sales-head > .sales-actions .primary-button,
  .sales-head > .sales-actions .secondary-button {
    gap: 7px;
    min-height: 48px;
    padding: 0 10px;
    font-size: 14px;
  }

  .sales-summary div {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  }

  .sales-summary div:last-child {
    border-bottom: 0;
  }

  .wisid-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wisid-summary div,
  .wisid-summary div:nth-child(2n),
  .wisid-summary div:nth-child(-n + 2) {
    padding: 14px 10px;
    border-right: 1px solid rgba(221, 229, 239, 0.9);
    border-bottom: 0;
  }

  .wisid-summary div:last-child {
    border-right: 0;
  }

  .wisid-summary span {
    font-size: 20px;
  }

  .wisid-summary small {
    font-size: 11px;
    line-height: 1.2;
  }

  .payment-summary-grid {
    grid-template-columns: 1fr;
  }

  .finance-commission-summary {
    gap: 10px;
  }

  .finance-commission-summary .finance-kpi-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 156px;
    padding: 12px;
  }

  .finance-commission-summary .finance-kpi-icon {
    width: 38px;
    height: 38px;
  }

  .finance-commission-summary .finance-kpi-card span:not(.finance-kpi-icon) {
    font-size: 11px;
  }

  .finance-commission-summary .finance-kpi-card strong {
    font-size: 24px;
  }

  .finance-commission-summary .finance-kpi-card small {
    line-height: 1.25;
  }

  .tv-week-summary,
  .tv-week-form-grid,
  .tv-config-row,
  .tv-control-grid,
  .tv-history-item {
    grid-template-columns: 1fr;
  }

  .tv-history-item {
    gap: 8px;
  }

  .tv-history-item time {
    text-align: left;
  }

  .project-info-grid {
    grid-template-columns: 1fr;
  }

  .project-info-grid div,
  .project-info-grid div:nth-child(2n),
  .project-info-grid div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  }

  .project-info-grid div:last-child {
    border-bottom: 0;
  }

  .task-detail-grid,
  .task-detail-meta dl {
    grid-template-columns: 1fr;
  }

  .knowledge-article-head h2,
  .knowledge-context-head h2 {
    font-size: 23px;
  }

  .knowledge-rich-editor {
    min-height: 360px;
    padding: 18px;
  }

  .knowledge-editor-form,
  .knowledge-article-grid,
  .knowledge-meta-form,
  .knowledge-inline-create,
  .knowledge-article-head,
  .knowledge-context-head,
  .knowledge-article-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .knowledge-editor-toolbar {
    gap: 7px;
  }

  .task-detail-meta div,
  .task-detail-meta div:nth-child(2n),
  .task-detail-meta div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 229, 239, 0.82);
  }

  .task-detail-meta div:last-child {
    border-bottom: 0;
  }

  .task-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .task-danger-zone .secondary-button {
    width: 100%;
  }

  .payment-summary-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  }

  .payment-summary-grid div:last-child {
    border-bottom: 0;
  }

  .sales-tabs {
    display: grid;
  }

  .sale-document-head {
    flex-direction: column;
  }

  .delivery-info-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .delivery-actions {
    display: grid;
  }

  .delivery-copy-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 7px;
  }

  .delivery-copy-row > span {
    flex-basis: 100%;
  }

  .delivery-copy-row > strong {
    max-width: calc(100% - 31px);
    white-space: normal;
  }

  .delivery-copy-row.no-copy > strong {
    max-width: 100%;
  }

  .delivery-actions form,
  .delivery-actions .delivery-choice {
    width: 100%;
  }

  .document-total {
    justify-items: start;
  }

  .form-grid.two,
  .form-grid.three,
  .form-grid.three.equal,
  .form-grid.item {
    grid-template-columns: 1fr;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
  }

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

@media (max-width: 360px) {
  .app-topbar {
    gap: 9px;
    padding: 10px 12px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-lockup img {
    width: 96px;
  }

  .brand-lockup span {
    display: none;
  }

  .topbar-actions {
    gap: 7px;
  }

  .icon-button,
  .user-chip {
    width: 40px;
    height: 40px;
  }

  .task-count-badge {
    top: -7px;
    right: -7px;
  }

  .project-board-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .project-board-search-control {
    min-width: 0;
  }

  .project-view-toggle {
    min-width: 76px;
    padding: 0 10px;
  }

  .project-filter-toggle {
    padding: 0 10px;
  }

  .project-filter-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.forms-main {
  width: min(1320px, calc(100% - 40px));
}

.forms-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.forms-summary article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 32, 81, 0.07);
}

.forms-summary span {
  color: var(--brand-navy);
  font-size: 28px;
  font-weight: 880;
  line-height: 1;
}

.forms-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.forms-link-card strong {
  overflow: hidden;
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forms-workspace {
  display: block;
}

.forms-list-panel .panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.forms-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 210px) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.forms-response-table td strong {
  display: block;
  color: var(--brand-navy);
  font-weight: 820;
}

.forms-table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.forms-response-detail-row td {
  padding: 0;
  background: #f6f9fd;
}

.forms-detail-row-panel {
  margin: 0;
  border-top: 1px solid rgba(221, 229, 239, 0.92);
  background: #f6f9fd;
}

.forms-detail-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.92);
}

.forms-detail-row-head h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 18px;
}

.forms-detail-row-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-badge.form-status.nova {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
}

.status-badge.form-status.em_andamento {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.16);
}

.status-badge.form-status.finalizada {
  color: #146339;
  background: rgba(31, 157, 85, 0.13);
}

.status-badge.form-status.aguardando {
  color: #475467;
  background: rgba(102, 112, 133, 0.13);
}

.forms-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.82);
}

.forms-detail-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.forms-detail-body h3,
.forms-note-block h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 17px;
}

.forms-item-list {
  display: grid;
  gap: 12px;
}

.forms-item-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.forms-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forms-item-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--brand-blue);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.09);
}

.forms-item-head svg,
.forms-item-head i {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.forms-item-head strong {
  display: block;
  color: var(--brand-navy);
  font-size: 16px;
  font-weight: 840;
}

.forms-item-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.forms-item-data {
  display: grid;
  gap: 9px;
  margin: 0;
}

.forms-item-data div {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f6f9fd;
}

.forms-item-data dt {
  color: #667085;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.forms-item-data dd {
  min-width: 0;
  margin: 0;
  color: #253044;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.forms-item-data dd a {
  color: var(--brand-blue);
  font-weight: 800;
}

.forms-item-data dd small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.forms-note-block {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.forms-note-block p {
  margin: 0;
  padding: 14px;
  color: #253044;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.public-form-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 111, 196, 0.09), rgba(246, 248, 252, 0) 320px),
    #f6f8fc;
}

.public-form-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.public-form-card {
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(17, 32, 81, 0.13);
}

.public-form-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
  border-top: 6px solid var(--brand-blue);
  border-bottom: 1px solid rgba(221, 229, 239, 0.92);
  background: #ffffff;
}

.public-form-header img {
  width: 150px;
  height: auto;
  align-self: start;
}

.public-form-header h1 {
  margin: 4px 0 10px;
  color: var(--brand-navy);
  font-size: 34px;
  line-height: 1.08;
}

.public-form-title {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 830;
  border-radius: 999px;
  background: rgba(0, 111, 196, 0.09);
}

.public-form-intro {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0;
}

.public-form-intro p {
  margin: 0;
  color: #344054;
  font-size: 18px;
  font-weight: 640;
  line-height: 1.5;
}

.public-form-intro strong {
  color: var(--brand-navy);
  font-weight: 850;
}

.public-link-form {
  display: grid;
  gap: 24px;
  padding: 28px 30px 30px;
}

.public-field {
  display: grid;
  gap: 9px;
}

.public-field > span {
  color: var(--brand-navy);
  font-size: 17px;
  font-weight: 820;
}

.public-field input,
.public-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: #172033;
  font-size: 17px;
  font-weight: 610;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
}

.public-field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
}

.public-field input:focus,
.public-field textarea:focus {
  border-color: rgba(0, 111, 196, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 111, 196, 0.11);
  outline: none;
}

.public-field small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.public-option-section,
.public-selected-section {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(221, 229, 239, 0.96);
  border-radius: 8px;
  background: #fbfcff;
}

.public-section-head h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 24px;
  line-height: 1.2;
}

.public-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 670;
}

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

.public-option-button {
  display: grid;
  place-items: center;
  gap: 11px;
  min-height: 132px;
  padding: 18px 12px;
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 860;
  text-align: center;
  border: 2px solid rgba(0, 111, 196, 0.45);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.public-option-button:hover,
.public-option-button:focus-visible {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 30px rgba(0, 111, 196, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.public-option-button svg,
.public-option-button i {
  width: 34px;
  height: 34px;
  font-size: 34px;
  stroke-width: 2.4;
}

.public-selected-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
}

.public-selected-empty svg,
.public-selected-empty i {
  width: 30px;
  height: 30px;
  color: var(--brand-blue);
  font-size: 30px;
}

.public-selected-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 720;
}

.public-selected-list {
  display: grid;
  gap: 10px;
}

.public-selected-item {
  display: grid;
  grid-template-columns: 24px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 111, 196, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.public-selected-item.is-dragging {
  opacity: 0.56;
}

.public-drag-handle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 48px;
  color: #98a2b3;
  cursor: grab;
}

.public-drag-handle i {
  font-size: 18px;
}

.public-selected-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--brand-blue);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.09);
}

.public-selected-icon svg,
.public-selected-icon i {
  width: 25px;
  height: 25px;
  font-size: 25px;
}

.public-selected-copy {
  min-width: 0;
}

.public-selected-copy strong {
  display: block;
  overflow: hidden;
  color: var(--brand-navy);
  font-size: 17px;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-selected-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-selected-actions {
  display: inline-flex;
  gap: 7px;
}

.public-selected-actions button,
.public-modal-card .icon-button.ghost {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--brand-navy);
  border: 1px solid rgba(203, 215, 232, 0.92);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.public-selected-actions button:hover,
.public-selected-actions button:focus-visible,
.public-modal-card .icon-button.ghost:hover,
.public-modal-card .icon-button.ghost:focus-visible {
  color: var(--brand-blue);
  border-color: rgba(0, 111, 196, 0.36);
  outline: none;
}

.public-selected-actions svg,
.public-selected-actions i,
.public-modal-card .icon-button.ghost svg,
.public-modal-card .icon-button.ghost i {
  width: 19px;
  height: 19px;
  font-size: 19px;
}

.public-future-note {
  display: grid;
  gap: 5px;
  margin: -6px 0 0;
  padding: 14px 16px;
  color: #344054;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid rgba(0, 111, 196, 0.14);
  border-radius: 8px;
  background: rgba(0, 111, 196, 0.06);
}

.public-future-note strong {
  color: var(--brand-navy);
  font-weight: 850;
}

.public-future-note span {
  display: block;
}

.public-future-note a {
  color: var(--brand-blue);
  font-weight: 850;
}

.public-form-error {
  padding: 13px 14px;
  color: #9f1d25;
  font-size: 15px;
  font-weight: 760;
  border: 1px solid rgba(229, 72, 77, 0.24);
  border-radius: 8px;
  background: rgba(229, 72, 77, 0.08);
}

.public-submit-button {
  min-height: 58px;
  font-size: 17px;
}

.public-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 32, 81, 0.38);
  backdrop-filter: blur(6px);
}

.public-modal-card {
  width: min(100%, 580px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid rgba(221, 229, 239, 0.98);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 32, 81, 0.28);
}

.public-modal-card form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.public-modal-card .modal-head {
  align-items: flex-start;
}

.public-modal-card .modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.public-modal-fields {
  display: grid;
  gap: 14px;
}

.public-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.public-form-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 30px;
  color: #146339;
  text-align: center;
}

.public-form-success.is-final {
  min-height: 360px;
  align-content: center;
}

.public-form-success svg,
.public-form-success i {
  width: 54px;
  height: 54px;
  font-size: 54px;
}

.public-form-success h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 30px;
}

.public-form-success p {
  max-width: 560px;
  margin: 0;
  color: #344054;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .forms-summary,
  .forms-workspace {
    grid-template-columns: 1fr;
  }

  .forms-filter,
  .forms-status-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .forms-main {
    width: calc(100% - 24px);
  }

  .forms-summary {
    grid-template-columns: 1fr;
  }

  .public-form-shell {
    width: min(100% - 18px, 980px);
    padding: 10px 0 26px;
  }

  .public-form-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

  .public-form-header img {
    width: 132px;
  }

  .public-form-header h1 {
    font-size: 28px;
  }

  .public-form-intro p {
    font-size: 16px;
  }

  .public-link-form {
    gap: 20px;
    padding: 20px 16px 22px;
  }

  .public-option-section,
  .public-selected-section {
    padding: 16px;
  }

  .public-section-head h2 {
    font-size: 21px;
  }

  .public-option-button {
    min-height: 112px;
    font-size: 15px;
  }

  .public-selected-item {
    grid-template-columns: 24px 44px minmax(0, 1fr);
  }

  .public-selected-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .public-modal-actions {
    display: grid;
  }

  .public-modal-actions .secondary-button,
  .public-modal-actions .primary-button {
    width: 100%;
  }
}
