:root {
  --bg: #eef4f8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #14263d;
  --muted: #60738a;
  --line: rgba(20, 38, 61, 0.12);
  --navy: #163456;
  --teal: #009b9f;
  --amber: #f3a11a;
  --rose: #c04a5a;
  --green: #0b8d5f;
  --shadow: 0 28px 80px rgba(8, 24, 40, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 155, 159, 0.16), transparent 36%),
    radial-gradient(circle at top right, rgba(243, 161, 26, 0.14), transparent 28%),
    linear-gradient(180deg, #f4f8fb 0%, #edf4f7 44%, #e8eef4 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

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

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

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

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(15, 35, 59, 0.97), rgba(12, 27, 46, 0.97)),
    linear-gradient(160deg, rgba(0, 155, 159, 0.12), transparent 55%);
  color: #f4f7fa;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(120deg, rgba(0, 155, 159, 0.24), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--teal), #26c3b8);
  color: #ffffff;
  margin-bottom: 18px;
}

.brand-eyebrow,
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
}

.brand-panel .brand-eyebrow {
  color: #9fd9d8;
}

.brand-panel h1,
.hero-banner h2,
.panel-card h3,
.panel-card h4,
.invoice-card h3,
.empty-state h2 {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  line-height: 1.05;
}

.brand-panel h1 {
  font-size: 1.55rem;
}

.brand-copy,
.sidebar-foot p,
.hero-copy,
.panel-card p,
.timeline-list span,
.timeline-list small,
.invoice-card p,
.empty-state p {
  margin: 0;
  color: rgba(244, 247, 250, 0.75);
  line-height: 1.5;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  color: rgba(244, 247, 250, 0.84);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(4px);
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-submenu {
  display: grid;
  gap: 6px;
  margin: -2px 0 4px 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-sublink {
  display: block;
  padding: 10px 13px;
  border-radius: 13px;
  color: rgba(244, 247, 250, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-sublink:hover,
.nav-sublink.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.session-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 8px;
}

.session-card span,
.session-card small,
.session-card p {
  margin: 0;
  color: rgba(244, 247, 250, 0.72);
}

.session-card strong {
  font-size: 1rem;
}

.main-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  overflow-x: hidden;
}

.flash {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(0, 155, 159, 0.12);
  border: 1px solid rgba(0, 155, 159, 0.2);
  color: #0f4f62;
  font-weight: 600;
}

.hero-banner,
.panel-card,
.invoice-card,
.empty-state,
.kpi-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-banner {
  border-radius: 34px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 252, 0.92)),
    linear-gradient(120deg, rgba(0, 155, 159, 0.12), transparent 55%);
}

.hero-banner.compact {
  align-items: flex-start;
}

.hero-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.hero-copy {
  max-width: 820px;
  color: var(--muted);
}

.month-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.month-filter label,
.form-grid label,
.upload-form,
.status-stack div,
.queue-progress,
.toggle-chip,
.file-drop,
.linked-summary div,
.breakdown-stats div {
  display: flex;
  flex-direction: column;
}

.month-filter label,
.form-grid label {
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 38, 61, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 155, 159, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 155, 159, 0.12);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.button-primary {
  background: linear-gradient(135deg, var(--navy), #235280);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(22, 52, 86, 0.22);
}

.button-secondary {
  background: linear-gradient(135deg, var(--teal), #17bbb2);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(0, 155, 159, 0.2);
}

.button-ghost {
  background: rgba(22, 52, 86, 0.08);
  color: var(--navy);
}

.button-small {
  padding: 10px 14px;
  border-radius: 14px;
}

.button-danger {
  background: linear-gradient(135deg, #b63d4f, #d35f5b);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(176, 52, 70, 0.22);
}

.kpi-grid,
.split-grid {
  display: grid;
  gap: 18px;
}

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

.split-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.month-summary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.month-summary-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.month-summary-card div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(244, 248, 251, 0.82);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.month-summary-card span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.month-summary-card strong {
  font-size: 1.2rem;
}

.kpi-card {
  border-radius: 24px;
  padding: 22px;
}

.kpi-card span,
.queue-progress span,
.status-stack span,
.linked-summary span,
.breakdown-stats span,
.invoice-meta dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.kpi-card strong,
.queue-progress strong,
.status-stack strong,
.linked-summary strong,
.breakdown-stats strong {
  margin-top: 10px;
  font-size: 1.62rem;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
}

.kpi-card small {
  margin-top: 14px;
  color: var(--muted);
}

.panel-card {
  border-radius: 28px;
  padding: 24px;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

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

.panel-head h3 {
  font-size: 1.5rem;
  margin-top: 4px;
}

.panel-head h4 {
  font-size: 1.22rem;
  margin-top: 4px;
}

.upload-form {
  gap: 18px;
}

.file-drop {
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 155, 159, 0.08), rgba(243, 161, 26, 0.08)),
    #ffffff;
  border: 1px dashed rgba(20, 38, 61, 0.18);
  position: relative;
  overflow: hidden;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-title {
  font-weight: 700;
  color: var(--text);
}

.file-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.status-stack {
  display: grid;
  gap: 12px;
}

.status-stack div,
.linked-summary div,
.breakdown-stats div {
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.82);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.table-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
  background: rgba(0, 155, 159, 0.04);
}

.epi-general-table thead th,
.epi-general-table tbody td {
  text-align: left !important;
}

.table-shell-matrix {
  border-radius: 22px;
  border: 1px solid rgba(20, 38, 61, 0.08);
  background: rgba(244, 248, 251, 0.52);
}

.matrix-table {
  width: max-content;
  min-width: 100%;
  background: rgba(255, 255, 255, 0.94);
}

.matrix-table th,
.matrix-table td {
  white-space: nowrap;
  border-right: 1px solid rgba(20, 38, 61, 0.1);
  border-bottom: 1px solid rgba(20, 38, 61, 0.1);
}

.matrix-table th:first-child,
.matrix-table td:first-child {
  border-left: 1px solid rgba(20, 38, 61, 0.1);
}

.matrix-table thead tr:first-child th {
  border-top: 1px solid rgba(20, 38, 61, 0.1);
}

.matrix-table thead th {
  text-align: center;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  vertical-align: middle;
}

.matrix-table thead tr:first-child th {
  background:
    linear-gradient(180deg, rgba(22, 52, 86, 0.96), rgba(15, 35, 59, 0.96));
  color: #f4f7fa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-table thead tr:nth-child(2) th {
  background: rgba(0, 155, 159, 0.12);
  color: #0f4f62;
  border-bottom: 1px solid rgba(20, 38, 61, 0.14);
}

.matrix-table tbody td {
  background: rgba(255, 255, 255, 0.96);
}

.matrix-group-header {
  text-align: center;
}

.matrix-sub-header {
  font-weight: 700;
}

.matrix-table tbody tr:nth-child(even) td {
  background: rgba(244, 248, 251, 0.9);
}

.month-metric-cell {
  text-align: center !important;
  font-weight: 700;
}

.month-check-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.month-check {
  width: 100%;
}

.month-check span {
  width: 100%;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.timeline-list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.82);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.timeline-list strong {
  font-size: 0.98rem;
}

.timeline-list span,
.timeline-list small,
.panel-copy,
.empty-note p {
  color: var(--muted);
}

.panel-copy {
  margin: 0 0 18px;
}

.danger-zone {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(192, 74, 90, 0.08);
  border: 1px solid rgba(192, 74, 90, 0.18);
  display: grid;
  gap: 14px;
}

.empty-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.82);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.empty-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
}

.metric-value {
  margin: 10px 0 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.positive {
  color: var(--green);
  font-weight: 700;
}

.negative {
  color: var(--rose);
  font-weight: 700;
}

.period-badge {
  min-width: 210px;
}

.period-badge strong {
  font-size: 1.02rem;
}

.cash-kpi-grid .kpi-card strong {
  color: var(--navy);
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type-badge-in {
  background: rgba(11, 141, 95, 0.12);
  color: var(--green);
}

.type-badge-out {
  background: rgba(192, 74, 90, 0.12);
  color: var(--rose);
}

.invoice-card {
  border-radius: 28px;
  padding: 24px;
}

.invoice-card-head {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
}

.invoice-card-head img {
  width: 124px;
  max-width: 100%;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 61, 0.08);
  box-shadow: 0 18px 38px rgba(10, 30, 48, 0.12);
}

.invoice-meta {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.invoice-meta div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.82);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.invoice-meta dd {
  margin: 10px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.queue-grid {
  align-items: start;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.toggle-chip {
  position: relative;
}

.toggle-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-chip span,
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(22, 52, 86, 0.08);
  color: var(--navy);
  font-weight: 700;
  border: 1px solid transparent;
}

.toggle-chip input:checked + span,
.filter-pill.is-active {
  background: rgba(0, 155, 159, 0.12);
  border-color: rgba(0, 155, 159, 0.26);
  color: #086c72;
}

.mode-panel.is-hidden {
  display: none;
}

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

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

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

.full-width {
  grid-column: 1 / -1;
}

.breakdown-shell {
  margin-top: 24px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(0, 155, 159, 0.06), rgba(243, 161, 26, 0.06)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.breakdown-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 320px;
}

.linked-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.linked-invoice-list {
  display: grid;
  gap: 14px;
}

.linked-invoice-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(244, 248, 251, 0.88);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

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

.linked-invoice-head h4 {
  margin: 0;
}

.mini-allocation {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.mini-allocation li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.filters-row,
.empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 48px;
  border-radius: 32px;
  text-align: center;
}

.empty-state h2 {
  margin: 10px 0 12px;
  font-size: 2.3rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 0.75fr);
  background:
    radial-gradient(circle at top left, rgba(0, 155, 159, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(243, 161, 26, 0.12), transparent 26%),
    linear-gradient(180deg, #f4f8fb 0%, #edf4f7 44%, #e8eef4 100%);
}

.auth-visual {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(15, 35, 59, 0.98), rgba(12, 27, 46, 0.96)),
    linear-gradient(160deg, rgba(0, 155, 159, 0.16), transparent 55%);
  color: #f4f7fa;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.auth-brand {
  max-width: 560px;
}

.auth-story {
  max-width: 620px;
  display: grid;
  gap: 18px;
}

.auth-story h2 {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.auth-story p:not(.eyebrow) {
  margin: 0;
  color: rgba(244, 247, 250, 0.8);
  line-height: 1.65;
}

.auth-highlights {
  display: grid;
  gap: 14px;
}

.auth-highlights div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-highlights span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal), #26c3b8);
  color: #ffffff;
  font-weight: 700;
}

.auth-highlights small {
  color: rgba(244, 247, 250, 0.72);
}

.auth-main {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}

.auth-card-head {
  display: grid;
  gap: 10px;
}

.auth-card-head h2 {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.auth-card-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-actions-stack {
  flex-direction: column;
}

.auth-actions a {
  color: var(--navy);
  font-weight: 700;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.modal-shell.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 46, 0.58);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 36px 80px rgba(8, 24, 40, 0.24);
}

.modal-panel-wide {
  width: min(100%, 980px);
}

.modal-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: rgba(22, 52, 86, 0.08);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

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

.cost-study-form {
  display: grid;
  gap: 18px;
}

.cost-inline-form {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(20, 57, 96, 0.04);
  border: 1px solid rgba(20, 57, 96, 0.08);
}

.cost-inline-form h4 {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1.02rem;
  color: var(--navy);
}

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

.cost-section-card {
  display: grid;
  gap: 12px;
}

.cost-section-value {
  font-size: 1.7rem;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  color: var(--navy);
}

.cost-modal-table input,
.cost-study-form input,
.cost-study-form select,
.cost-study-form textarea {
  width: 100%;
}

.cost-modal-table th,
.cost-modal-table td {
  vertical-align: middle;
}

.warning-card {
  border: 1px solid rgba(194, 132, 24, 0.25);
  background: linear-gradient(145deg, rgba(255, 247, 230, 0.92), rgba(255, 255, 255, 0.96));
}

.material-application-card {
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.92)),
    radial-gradient(circle at top right, rgba(0, 155, 159, 0.12), transparent 34%);
  border: 1px solid rgba(20, 57, 96, 0.12);
  box-shadow: 0 24px 62px rgba(12, 27, 46, 0.1);
}

.material-application-form {
  display: grid;
  gap: 18px;
}

.material-application-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.material-application-meta h3 {
  margin: 2px 0 5px;
  color: var(--navy);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
}

.material-application-meta p:last-child {
  margin: 0;
  color: var(--muted);
}

.material-application-shell {
  max-height: 680px;
  overflow: auto;
  border: 1px solid rgba(20, 57, 96, 0.22);
  border-radius: 16px;
  background: #ffffff;
  padding-bottom: 0;
}

.material-application-table {
  min-width: 1040px;
  table-layout: fixed;
  background: #ffffff;
}

.material-application-table th,
.material-application-table td {
  padding: 0;
  border: 1px solid rgba(20, 57, 96, 0.2);
}

.material-application-table .material-application-title {
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(0, 155, 159, 0.18), rgba(22, 52, 86, 0.08));
  color: var(--navy);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.material-application-table thead tr:nth-child(2) th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 12px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
}

.material-application-table th:nth-child(1),
.material-application-table td:nth-child(1) {
  width: 115px;
}

.material-application-table th:nth-child(2),
.material-application-table td:nth-child(2) {
  width: 100px;
}

.material-application-table th:nth-child(4),
.material-application-table td:nth-child(4),
.material-application-table th:nth-child(5),
.material-application-table td:nth-child(5) {
  width: 165px;
}

.material-application-table tbody tr:nth-child(even) {
  background: rgba(22, 52, 86, 0.055);
}

.material-application-table tbody tr:hover {
  background: rgba(0, 155, 159, 0.08);
}

.material-application-table input {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 7px 10px;
  outline: none;
}

.material-application-table input:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--teal);
}

.material-application-table td:nth-child(1) input,
.material-application-table td:nth-child(4) input,
.material-application-table td:nth-child(5) output,
.material-application-table tfoot output {
  text-align: right;
}

.material-application-table output {
  display: block;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--navy);
  font-weight: 800;
}

.material-spacer-row td {
  height: 26px;
  background: #ffffff;
}

.material-total-row td,
.material-omissos-row td,
.material-icms-row td,
.material-gross-row td,
.material-consumption-row td {
  padding: 8px 12px;
  background: rgba(244, 248, 251, 0.96);
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}

.material-icms-row td,
.material-consumption-row td {
  background: rgba(0, 155, 159, 0.1);
}

.material-gross-row td {
  background: rgba(22, 52, 86, 0.08);
}

.material-total-row td:first-child,
.material-gross-row td:first-child,
.material-omissos-row td:nth-child(2),
.material-icms-row td:nth-child(2),
.material-consumption-row td:nth-child(2) {
  text-align: right;
}

.material-omissos-row label,
.material-icms-row label,
.material-consumption-row label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 10px;
}

.material-omissos-row input,
.material-icms-row input,
.material-consumption-row input {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #ffffff;
  text-align: right;
}

.cost-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 4px;
}

.cost-sheet-meta {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.cost-sheet-meta span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-sheet-meta strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.cost-sheet {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(20, 57, 96, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 42px rgba(12, 27, 46, 0.08);
}

.cost-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 8px 4px 14px;
  border-bottom: 2px solid rgba(20, 57, 96, 0.18);
}

.cost-sheet-head span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.cost-sheet-head h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1.55rem;
}

.cost-sheet-head strong {
  color: var(--navy);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
  white-space: nowrap;
}

.cost-sheet-section {
  display: grid;
  gap: 0;
  border: 1px solid rgba(20, 57, 96, 0.16);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.cost-sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(13, 180, 166, 0.12), rgba(20, 57, 96, 0.06));
  border-bottom: 1px solid rgba(20, 57, 96, 0.14);
}

.cost-sheet-title h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.cost-sheet-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.cost-sheet-table-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  overflow-x: auto;
}

.cost-sheet-table {
  min-width: 760px;
}

.cost-sheet-table th,
.cost-sheet-table td,
.cost-sheet-totals td {
  border: 1px solid rgba(20, 57, 96, 0.18);
  white-space: nowrap;
}

.cost-sheet-table thead th {
  background: rgba(20, 57, 96, 0.08);
  color: var(--navy);
  text-align: center;
}

.cost-sheet-table td:nth-child(3),
.cost-sheet-table td:nth-child(4) {
  white-space: normal;
}

.cost-sheet-totals {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cost-sheet-totals td {
  padding: 9px 12px;
}

.cost-sheet-totals td:first-child {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.cost-sheet-totals td:last-child {
  width: 230px;
  text-align: right;
  color: var(--navy);
  font-weight: 900;
}

.cost-sheet-final-row td {
  background: rgba(13, 180, 166, 0.14);
  color: var(--navy);
  font-weight: 900;
}

.muted-cell {
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual,
  .auth-main {
    padding: 24px;
  }

  .sidebar {
    position: relative;
    min-height: auto;
  }

  .kpi-grid,
  .split-grid,
  .form-grid.three-cols,
  .form-grid.four-cols,
  .cost-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main-content,
  .sidebar {
    padding: 18px;
  }

  .hero-banner,
  .panel-card,
  .invoice-card,
  .empty-state,
  .kpi-card {
    border-radius: 24px;
    padding: 20px;
  }

  .hero-banner,
  .panel-head,
  .breakdown-head,
  .invoice-card-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .invoice-card-head {
    display: grid;
  }

  .invoice-meta,
  .kpi-grid,
  .split-grid,
  .form-grid.two-cols,
  .form-grid.three-cols,
  .form-grid.four-cols,
  .cost-section-grid,
  .breakdown-stats {
    grid-template-columns: 1fr;
  }

  .queue-progress,
  .month-filter {
    width: 100%;
  }

  .month-filter .button,
  .button {
    width: 100%;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-actions {
    flex-direction: column;
  }
}

/* Premium tax detail modal
   Kept in the external stylesheet because production CSP blocks inline <style>
   and style="" attributes. */
.modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-panel-wide {
  background:
    radial-gradient(circle at 14% 0%, rgba(17, 170, 164, .10), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(47, 114, 214, .10), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 52%, #f4f8fc 100%) !important;
  border: 1px solid rgba(20, 38, 61, .14) !important;
  border-radius: 32px !important;
  box-shadow: 0 34px 90px rgba(9, 24, 43, .32) !important;
  max-height: min(92vh, 980px) !important;
  overflow: auto !important;
  padding: 34px 36px 38px !important;
  width: min(100%, 1180px) !important;
}

.modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-head {
  border-bottom: 1px solid rgba(113, 139, 170, .20) !important;
  margin-bottom: 24px !important;
  padding-bottom: 22px !important;
  padding-right: 64px !important;
}

.modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-head .eyebrow {
  color: #12243d !important;
  font-size: .78rem !important;
  letter-spacing: .22em !important;
  opacity: 1 !important;
}

.modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-head h3 {
  color: #10233d !important;
  font-size: clamp(2.15rem, 4vw, 3.25rem) !important;
  font-weight: 950 !important;
  letter-spacing: -.055em !important;
  line-height: .96 !important;
  margin: 12px 0 0 !important;
}

.modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-close {
  align-items: center !important;
  background: #eef3fb !important;
  border: 1px solid rgba(113, 139, 170, .18) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 24px rgba(16, 35, 61, .08) !important;
  color: #10233d !important;
  display: inline-flex !important;
  font-size: 0 !important;
  height: 52px !important;
  justify-content: center !important;
  right: 18px !important;
  top: 18px !important;
  width: 52px !important;
}

.modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-close::before {
  content: "X" !important;
  font-size: 1.35rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.tax-premium-modal {
  color: #10233d !important;
  display: grid !important;
  gap: 18px !important;
}

.tax-card {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(113, 139, 170, .24) !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 54px rgba(16, 35, 61, .09) !important;
  padding: 24px !important;
}

.tax-card-title {
  align-items: center !important;
  display: flex !important;
  gap: 14px !important;
  margin: 0 0 20px !important;
}

.tax-card-title h4 {
  color: #10233d !important;
  font-size: 1.22rem !important;
  font-weight: 950 !important;
  letter-spacing: -.025em !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.tax-card-title p {
  color: #60748d !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 6px 0 0 !important;
}

.tax-section-icon {
  align-items: center !important;
  background: linear-gradient(135deg, #edf6ff, #f8fbff) !important;
  border: 1px solid #d4e2f4 !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  height: 48px !important;
  justify-content: center !important;
  overflow: hidden !important;
  width: 48px !important;
}

.tax-section-icon-green {
  background: linear-gradient(135deg, rgba(17, 170, 164, .15), rgba(255, 255, 255, .95)) !important;
  border-color: rgba(17, 170, 164, .34) !important;
}

.tax-mark-dot {
  background: linear-gradient(135deg, #11aaa4, #2f72d6) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 6px rgba(47, 114, 214, .08) !important;
  display: block !important;
  height: 13px !important;
  width: 13px !important;
}

.tax-guide-grid,
.tax-validation-layout {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tax-validation-layout {
  gap: 28px !important;
}

.tax-validation-column {
  display: grid !important;
  gap: 16px !important;
}

.tax-field-item {
  background: linear-gradient(180deg, #fbfdff, #f7fbff) !important;
  border: 1px solid rgba(113, 139, 170, .22) !important;
  border-radius: 16px !important;
  min-height: 76px !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
}

.tax-field-item > span:not(.tax-pill) {
  color: #60748d !important;
  display: block !important;
  font-size: .72rem !important;
  font-weight: 950 !important;
  letter-spacing: .075em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.tax-field-item > strong {
  color: #10233d !important;
  display: block !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.28 !important;
  margin-top: 8px !important;
  overflow-wrap: anywhere !important;
}

.tax-note-chip,
.tax-pill {
  align-items: center !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  padding: 8px 14px !important;
  width: fit-content !important;
}

.tax-note-chip {
  background: #eaf2ff !important;
  border: 1px solid #ccdcef !important;
  color: #164177 !important;
  margin-top: 18px !important;
}

.tax-pill.tax-status-open {
  background: rgba(96, 116, 141, .12) !important;
  border: 1px solid rgba(96, 116, 141, .18) !important;
  color: #4c6078 !important;
}

.tax-pill.tax-status-received,
.tax-pill.tax-status-paid,
.tax-score-good {
  background: rgba(0, 154, 111, .12) !important;
  border: 1px solid rgba(0, 154, 111, .28) !important;
  color: #008b6f !important;
}

.tax-pill.tax-status-bad,
.tax-score-bad {
  background: rgba(216, 75, 99, .14) !important;
  border: 1px solid rgba(216, 75, 99, .24) !important;
  color: #c34156 !important;
}

.tax-pill.tax-status-warn,
.tax-score-warn {
  background: rgba(241, 163, 61, .16) !important;
  border: 1px solid rgba(241, 163, 61, .25) !important;
  color: #9b650e !important;
}

.tax-pill-blue {
  background: #eaf2ff !important;
  border: 1px solid #cdddf2 !important;
  color: #164177 !important;
}

.tax-upload-form {
  display: grid !important;
  gap: 14px !important;
}

.tax-upload-grid {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.2fr) !important;
}

.tax-upload-step {
  background: #fbfdff !important;
  border: 1px solid rgba(113, 139, 170, .22) !important;
  border-radius: 16px !important;
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 16px !important;
}

.tax-upload-step > span {
  color: #10233d !important;
  font-weight: 950 !important;
}

.tax-upload-step > span b {
  align-items: center !important;
  background: #eaf3ff !important;
  border-radius: 999px !important;
  color: #164177 !important;
  display: inline-flex !important;
  font-size: .76rem !important;
  height: 24px !important;
  justify-content: center !important;
  margin-right: 8px !important;
  width: 24px !important;
}

.tax-open-file,
.tax-file-input input[type="file"] {
  background: #fff !important;
  border: 1px solid rgba(113, 139, 170, .32) !important;
  border-radius: 12px !important;
  color: #123e77 !important;
  font-weight: 950 !important;
  min-height: 58px !important;
  padding: 18px 20px !important;
  text-decoration: none !important;
}

.tax-open-file {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  width: fit-content !important;
}

.tax-open-file-disabled {
  color: #71839b !important;
  pointer-events: none !important;
}

.tax-file-input input[type="file"] {
  cursor: pointer !important;
  width: 100% !important;
}

.tax-ai-button {
  align-items: center !important;
  background: linear-gradient(135deg, #235fd6, #2e86f4) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 30px rgba(46, 134, 244, .25) !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  font-family: inherit !important;
  font-size: 1.18rem !important;
  font-weight: 950 !important;
  justify-content: center !important;
  min-height: 68px !important;
  padding: 14px 18px !important;
  text-align: center !important;
  width: 100% !important;
}

.tax-ai-button:hover {
  filter: brightness(1.03) !important;
  transform: translateY(-1px) !important;
}

.tax-ai-button small {
  display: block !important;
  font-size: .72rem !important;
  letter-spacing: .18em !important;
  margin-top: 5px !important;
  opacity: .88 !important;
  text-transform: uppercase !important;
}

.tax-validation-card {
  border-top: 3px solid rgba(17, 170, 164, .9) !important;
}

.tax-result-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.tax-validation-badges {
  margin: -4px 0 18px !important;
}

.tax-analysis-empty {
  align-items: center !important;
  background: linear-gradient(135deg, rgba(244, 248, 251, .9), rgba(255, 255, 255, .94)) !important;
  border: 1px dashed rgba(113, 139, 170, .4) !important;
  border-radius: 16px !important;
  display: flex !important;
  gap: 14px !important;
  padding: 18px !important;
}

.tax-analysis-empty strong {
  color: #10233d !important;
  display: block !important;
  font-weight: 950 !important;
}

.tax-analysis-empty p {
  color: #60748d !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 4px 0 0 !important;
}

.tax-message-box {
  background: rgba(244, 248, 251, .84) !important;
  border: 1px solid rgba(20, 38, 61, .08) !important;
  border-radius: 14px !important;
  color: #10233d !important;
  font-weight: 850 !important;
  line-height: 1.5 !important;
  margin-top: 18px !important;
  padding: 13px 14px !important;
}

.tax-message-box-soft {
  background: #f8fbff !important;
}

.tax-history-list {
  display: grid !important;
  gap: 10px !important;
}

.tax-history-item {
  background: #fbfdff !important;
  border: 1px solid rgba(113, 139, 170, .2) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
}

.tax-history-item span {
  color: #60748d !important;
  display: block !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

.tax-history-item strong {
  color: #10233d !important;
  display: block !important;
  margin-top: 3px !important;
}

.tax-history-item p {
  color: #10233d !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 5px 0 0 !important;
}

.tax-muted {
  color: #60748d !important;
  font-weight: 800 !important;
}

.tax-confirm-form .button:disabled {
  cursor: not-allowed !important;
  filter: grayscale(.2) !important;
  opacity: .48 !important;
}

.tax-ai-wait-overlay {
  align-items: center;
  background: rgba(9, 24, 43, .56);
  backdrop-filter: blur(14px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 9999;
}

.tax-ai-wait-overlay.is-visible {
  display: flex;
}

.tax-ai-wait-card {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f6fbff);
  border: 1px solid rgba(113, 139, 170, .24);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(9, 24, 43, .32);
  color: #10233d;
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 460px;
  padding: 34px 32px;
  text-align: center;
}

.tax-ai-wait-card strong {
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: -.02em;
}

.tax-ai-wait-card p {
  color: #60748d;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.tax-ai-spinner {
  animation: taxSpin 1s linear infinite;
  background: conic-gradient(from 0deg, #11aaa4, #2f72d6, transparent 72%);
  border-radius: 999px;
  display: block;
  height: 58px;
  position: relative;
  width: 58px;
}

.tax-ai-spinner::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  inset: 8px;
  position: absolute;
}

@keyframes taxSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .modal-shell[id^="modal-tax-"]:not(#modal-tax-filter) .modal-panel-wide {
    padding: 22px 18px 26px !important;
  }

  .tax-guide-grid,
  .tax-upload-grid,
  .tax-validation-layout {
    grid-template-columns: 1fr !important;
  }

  .tax-card-title {
    align-items: flex-start !important;
  }
}

/* Premium commitment detail modal
   External CSS is required because production CSP blocks inline styles. */
.modal-shell[id^="modal-commitment-view-"] .modal-panel-wide {
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 114, 214, .10), transparent 31%),
    radial-gradient(circle at 92% 12%, rgba(17, 170, 164, .10), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 54%, #f5f8fc 100%) !important;
  border: 1px solid rgba(20, 38, 61, .14) !important;
  border-radius: 32px !important;
  box-shadow: 0 34px 90px rgba(9, 24, 43, .32) !important;
  max-height: min(92vh, 980px) !important;
  overflow: auto !important;
  padding: 34px 36px 38px !important;
  width: min(100%, 1220px) !important;
}

.modal-shell[id^="modal-commitment-view-"] .modal-head {
  border-bottom: 1px solid rgba(113, 139, 170, .18) !important;
  margin-bottom: 24px !important;
  padding-bottom: 20px !important;
  padding-right: 64px !important;
}

.modal-shell[id^="modal-commitment-view-"] .modal-head .eyebrow {
  color: #205fdb !important;
  font-size: .78rem !important;
  letter-spacing: .16em !important;
  opacity: 1 !important;
  position: relative !important;
}

.modal-shell[id^="modal-commitment-view-"] .modal-head h3 {
  color: #10233d !important;
  font-size: clamp(2rem, 3.8vw, 3.05rem) !important;
  font-weight: 950 !important;
  letter-spacing: -.055em !important;
  line-height: 1 !important;
  margin: 12px 0 0 !important;
}

.modal-shell[id^="modal-commitment-view-"] .modal-close {
  align-items: center !important;
  background: #eef3fb !important;
  border: 1px solid rgba(113, 139, 170, .18) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 24px rgba(16, 35, 61, .08) !important;
  color: #10233d !important;
  display: inline-flex !important;
  font-size: 0 !important;
  height: 52px !important;
  justify-content: center !important;
  right: 18px !important;
  top: 18px !important;
  width: 52px !important;
}

.modal-shell[id^="modal-commitment-view-"] .modal-close::before {
  content: "X" !important;
  font-size: 1.35rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.commitment-view-premium {
  color: #10233d !important;
  display: grid !important;
  gap: 18px !important;
}

.commitment-person-card,
.commitment-premium-card {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(113, 139, 170, .22) !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 54px rgba(16, 35, 61, .08) !important;
}

.commitment-person-card {
  align-items: center !important;
  display: flex !important;
  gap: 16px !important;
  min-height: 86px !important;
  padding: 18px 20px !important;
}

.commitment-avatar {
  align-items: center !important;
  background: linear-gradient(135deg, #eef2ff, #e9f2ff) !important;
  border: 1px solid rgba(47, 114, 214, .16) !important;
  border-radius: 999px !important;
  color: #235fd6 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  height: 58px !important;
  justify-content: center !important;
  letter-spacing: .02em !important;
  width: 58px !important;
}

.commitment-person-copy {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.commitment-person-title {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.commitment-person-title strong {
  color: #10233d !important;
  font-size: 1.15rem !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
}

.commitment-person-copy p {
  align-items: center !important;
  color: #60748d !important;
  display: flex !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  gap: 8px !important;
  margin: 0 !important;
}

.commitment-status-dot {
  background: #d35f5b !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 5px rgba(211, 95, 91, .12) !important;
  display: inline-flex !important;
  height: 9px !important;
  width: 9px !important;
}

.commitment-status-dot.commitment-status-read {
  background: #2f72d6 !important;
  box-shadow: 0 0 0 5px rgba(47, 114, 214, .12) !important;
}

.commitment-status-dot.commitment-status-completed {
  background: #11aaa4 !important;
  box-shadow: 0 0 0 5px rgba(17, 170, 164, .12) !important;
}

.commitment-status-chip {
  align-items: center !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  min-width: 0 !important;
  padding: 7px 12px !important;
  white-space: nowrap !important;
}

.commitment-status-chip.commitment-status-pending {
  background: rgba(211, 95, 91, .13) !important;
  color: #b63d4f !important;
}

.commitment-status-chip.commitment-status-read {
  background: rgba(47, 114, 214, .12) !important;
  color: #205fdb !important;
}

.commitment-status-chip.commitment-status-completed {
  background: rgba(17, 170, 164, .13) !important;
  color: #087f78 !important;
}

.commitment-premium-grid {
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .98fr) !important;
}

.commitment-side-stack {
  display: grid !important;
  gap: 18px !important;
}

.commitment-premium-card {
  padding: 22px !important;
}

.commitment-data-card {
  min-height: 430px !important;
}

.commitment-card-title {
  align-items: center !important;
  display: flex !important;
  gap: 14px !important;
  margin: 0 0 20px !important;
}

.commitment-card-title p {
  color: #10233d !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  letter-spacing: .075em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
}

.commitment-card-title h4 {
  color: #10233d !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  letter-spacing: -.025em !important;
  line-height: 1.15 !important;
  margin: 5px 0 0 !important;
}

.commitment-card-title span:not(.commitment-card-icon) {
  color: #60748d !important;
  display: block !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin-top: 5px !important;
}

.commitment-card-icon,
.commitment-field-icon {
  align-items: center !important;
  border-radius: 13px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
}

.commitment-card-icon {
  height: 44px !important;
  width: 44px !important;
}

.commitment-card-icon svg,
.commitment-field-icon svg {
  display: block !important;
  flex: 0 0 auto !important;
  height: 1em !important;
  width: 1em !important;
}

.commitment-card-icon svg {
  font-size: 21px !important;
}

.commitment-card-icon-blue {
  background: #edf5ff !important;
  color: #2f72d6 !important;
}

.commitment-card-icon-green {
  background: rgba(17, 170, 164, .13) !important;
  color: #087f78 !important;
}

.commitment-card-icon-purple {
  background: #f2eaff !important;
  color: #7c3aed !important;
}

.commitment-card-icon-amber {
  background: rgba(241, 163, 61, .14) !important;
  color: #d48310 !important;
}

.commitment-field-list {
  display: grid !important;
  gap: 0 !important;
}

.commitment-field-list-compact {
  gap: 0 !important;
}

.commitment-field-row,
.commitment-text-item {
  align-items: flex-start !important;
  border-top: 1px solid rgba(113, 139, 170, .18) !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  padding: 18px 0 !important;
}

.commitment-field-list > .commitment-field-row:first-child,
.commitment-field-list > .commitment-text-item:first-child {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.commitment-field-icon {
  color: #60748d !important;
  height: 22px !important;
  margin-top: 2px !important;
  width: 22px !important;
}

.commitment-field-icon svg {
  font-size: 18px !important;
  opacity: .78 !important;
}

.commitment-field-copy {
  min-width: 0 !important;
}

.commitment-field-copy > span,
.commitment-upload-kicker {
  color: #60748d !important;
  display: block !important;
  font-size: .82rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.commitment-field-copy > strong {
  color: #10233d !important;
  display: block !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  margin-top: 7px !important;
  overflow-wrap: anywhere !important;
}

.commitment-rich-text {
  color: #10233d !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.55 !important;
  margin-top: 8px !important;
  overflow-wrap: anywhere !important;
}

.commitment-muted,
.commitment-file-placeholder {
  color: #60748d !important;
  font-weight: 800 !important;
}

.commitment-file-line {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.commitment-file-line > span {
  color: #60748d !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.commitment-file-button {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid rgba(113, 139, 170, .26) !important;
  border-radius: 13px !important;
  box-shadow: 0 10px 20px rgba(16, 35, 61, .05) !important;
  color: #164177 !important;
  display: inline-flex !important;
  font-weight: 950 !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  text-decoration: none !important;
}

.commitment-file-button:hover {
  border-color: rgba(47, 114, 214, .36) !important;
  color: #205fdb !important;
  transform: translateY(-1px) !important;
}

.commitment-complete-card {
  border-color: rgba(241, 163, 61, .20) !important;
}

.commitment-complete-form {
  display: grid !important;
  gap: 18px !important;
  margin: 0 !important;
}

.commitment-complete-grid {
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr) !important;
}

.commitment-complete-grid-done {
  align-items: stretch !important;
}

.commitment-completion-note {
  background: #fbfdff !important;
  border: 1px solid rgba(113, 139, 170, .18) !important;
  border-radius: 18px !important;
  padding: 18px !important;
}

.commitment-form-field,
.commitment-upload-card {
  background: #fbfdff !important;
  border: 1px solid rgba(113, 139, 170, .22) !important;
  border-radius: 18px !important;
  color: #10233d !important;
  display: grid !important;
  gap: 12px !important;
  padding: 18px !important;
}

.commitment-form-field > span {
  color: #10233d !important;
  font-size: .84rem !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.commitment-form-field textarea {
  background: #fff !important;
  border: 1px solid rgba(113, 139, 170, .28) !important;
  border-radius: 14px !important;
  color: #10233d !important;
  font-family: inherit !important;
  font-size: .96rem !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  min-height: 140px !important;
  padding: 14px 16px !important;
  resize: vertical !important;
  width: 100% !important;
}

.commitment-form-field textarea:focus,
.commitment-upload-card input[type="file"]:focus {
  border-color: rgba(47, 114, 214, .65) !important;
  box-shadow: 0 0 0 4px rgba(47, 114, 214, .10) !important;
  outline: 0 !important;
}

.commitment-form-field small,
.commitment-upload-card small {
  color: #71839b !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
}

.commitment-upload-card {
  align-content: start !important;
  min-height: 170px !important;
}

.commitment-upload-card input[type="file"] {
  background: #fff !important;
  border: 1px dashed rgba(113, 139, 170, .42) !important;
  border-radius: 14px !important;
  color: #10233d !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-weight: 850 !important;
  min-height: 58px !important;
  padding: 15px !important;
  width: 100% !important;
}

.commitment-upload-card input[type="file"]::file-selector-button {
  background: #eef3fb !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #10233d !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-weight: 950 !important;
  margin-right: 12px !important;
  padding: 10px 14px !important;
}

.commitment-action-bar {
  align-items: center !important;
  border: 1px solid rgba(113, 139, 170, .16) !important;
  border-radius: 18px !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: flex-end !important;
  padding: 14px !important;
}

.commitment-action-bar .button {
  min-height: 48px !important;
  padding: 0 22px !important;
  width: auto !important;
}

.commitment-primary-action {
  background: linear-gradient(135deg, #235fd6, #2f72d6) !important;
  box-shadow: 0 16px 30px rgba(47, 114, 214, .22) !important;
}

@media (max-width: 920px) {
  .modal-shell[id^="modal-commitment-view-"] .modal-panel-wide {
    padding: 24px 18px 28px !important;
  }

  .commitment-premium-grid,
  .commitment-complete-grid {
    grid-template-columns: 1fr !important;
  }

  .commitment-data-card {
    min-height: 0 !important;
  }
}

@media (max-width: 640px) {
  .commitment-person-card,
  .commitment-card-title,
  .commitment-action-bar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .commitment-action-bar .button {
    width: 100% !important;
  }
}

/* Cost center pointing modal: keep these styles in the static stylesheet because
   inline modal styles can be blocked by the production security policy. */
.modal-shell[id^="modal-cost-center-point-"] .modal-panel {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 154, 163, .10), transparent 32%),
    radial-gradient(circle at 94% 5%, rgba(28, 89, 152, .10), transparent 30%),
    #fbfdff !important;
  border: 1px solid rgba(124, 142, 166, .22) !important;
  border-radius: 30px !important;
  box-shadow: 0 30px 90px rgba(8, 25, 48, .28) !important;
  max-width: 1080px !important;
  padding: 30px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .modal-head {
  border-bottom: 1px solid rgba(107, 124, 147, .14) !important;
  margin: 0 0 22px !important;
  padding: 0 54px 22px 0 !important;
}

.modal-shell[id^="modal-cost-center-point-"] .modal-head h3 {
  font-size: clamp(2rem, 3vw, 3rem) !important;
  letter-spacing: -.04em !important;
  margin-top: 8px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-premium {
  display: grid !important;
  gap: 18px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-summary-card,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-assignment-card {
  background: rgba(255, 255, 255, .86) !important;
  border: 1px solid rgba(108, 128, 151, .18) !important;
  border-radius: 26px !important;
  box-shadow: 0 22px 56px rgba(15, 35, 60, .08) !important;
  padding: 22px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-summary-top {
  align-items: center !important;
  display: flex !important;
  gap: 16px !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-title-wrap,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-card-head {
  display: flex !important;
  gap: 14px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-title-wrap {
  align-items: center !important;
  min-width: 0 !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-card-head {
  align-items: flex-start !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-icon {
  align-items: center !important;
  background: linear-gradient(135deg, rgba(0, 154, 163, .14), rgba(30, 101, 183, .10)) !important;
  border: 1px solid rgba(0, 154, 163, .18) !important;
  border-radius: 18px !important;
  color: #008b93 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  height: 48px !important;
  justify-content: center !important;
  width: 48px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-title-wrap h4,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-card-head h4 {
  color: #10233d !important;
  font-size: 1.22rem !important;
  font-weight: 950 !important;
  letter-spacing: -.02em !important;
  margin: 0 !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-title-wrap p,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-card-head p {
  color: #667891 !important;
  font-size: .94rem !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
  margin: 6px 0 0 !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-status-badge {
  align-items: center !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
  justify-content: center !important;
  min-width: 132px !important;
  padding: 10px 14px !important;
  white-space: nowrap !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-status-badge.cc-status-pending {
  background: rgba(211, 95, 91, .12) !important;
  color: #b63d4f !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-status-badge.cc-status-pointed {
  background: rgba(0, 154, 163, .13) !important;
  color: #007b6f !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-field-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-field {
  background: rgba(245, 248, 252, .72) !important;
  border: 1px solid rgba(103, 123, 145, .14) !important;
  border-radius: 18px !important;
  min-height: 96px !important;
  padding: 15px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-field span,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid label > span {
  color: #61748e !important;
  display: block !important;
  font-size: .74rem !important;
  font-weight: 950 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-field strong {
  color: #10233d !important;
  display: block !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.32 !important;
  margin-top: 8px !important;
  overflow-wrap: anywhere !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-assignment-card {
  display: grid !important;
  gap: 18px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid label {
  display: grid !important;
  gap: 8px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid input,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid select {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(103, 123, 145, .22) !important;
  border-radius: 18px !important;
  color: #10233d !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
  width: 100% !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid input:focus,
.modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid select:focus {
  border-color: rgba(0, 154, 163, .64) !important;
  box-shadow: 0 0 0 4px rgba(0, 154, 163, .12) !important;
  outline: 0 !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-actions {
  align-items: center !important;
  background: rgba(248, 251, 253, .82) !important;
  border: 1px solid rgba(103, 123, 145, .14) !important;
  border-radius: 22px !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  margin-top: 2px !important;
  padding: 14px !important;
}

.modal-shell[id^="modal-cost-center-point-"] .cc-point-actions .button {
  min-height: 48px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

@media (max-width: 860px) {
  .modal-shell[id^="modal-cost-center-point-"] .modal-panel {
    padding: 22px !important;
  }

  .modal-shell[id^="modal-cost-center-point-"] .cc-point-summary-top,
  .modal-shell[id^="modal-cost-center-point-"] .cc-point-card-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .modal-shell[id^="modal-cost-center-point-"] .cc-point-field-grid,
  .modal-shell[id^="modal-cost-center-point-"] .cc-point-form-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-shell[id^="modal-cost-center-point-"] .cc-point-actions {
    flex-direction: column-reverse !important;
  }

  .modal-shell[id^="modal-cost-center-point-"] .cc-point-actions .button {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* Cost center create modal with XML import. */
#modal-cost-center-create .modal-panel {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 154, 163, .10), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(30, 101, 183, .10), transparent 34%),
    #fbfdff !important;
  border: 1px solid rgba(124, 142, 166, .22) !important;
  border-radius: 30px !important;
  box-shadow: 0 30px 90px rgba(8, 25, 48, .28) !important;
  max-width: 1080px !important;
  padding: 30px !important;
}

#modal-cost-center-create .modal-head {
  border-bottom: 1px solid rgba(107, 124, 147, .14) !important;
  margin: 0 0 22px !important;
  padding: 0 54px 22px 0 !important;
}

#modal-cost-center-create .modal-head h3 {
  font-size: clamp(2rem, 3vw, 3rem) !important;
  letter-spacing: -.04em !important;
  margin-top: 8px !important;
}

#modal-cost-center-create .cc-create-form {
  display: grid !important;
  gap: 18px !important;
}

#modal-cost-center-create .cc-create-card {
  background: rgba(255, 255, 255, .88) !important;
  border: 1px solid rgba(108, 128, 151, .18) !important;
  border-radius: 26px !important;
  box-shadow: 0 22px 56px rgba(15, 35, 60, .08) !important;
  padding: 22px !important;
}

#modal-cost-center-create .cc-create-xml-card {
  border-color: rgba(0, 154, 163, .22) !important;
}

#modal-cost-center-create .cc-create-card-head {
  align-items: flex-start !important;
  display: flex !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#modal-cost-center-create .cc-create-icon,
#modal-cost-center-create .cc-upload-icon {
  align-items: center !important;
  background: linear-gradient(135deg, rgba(0, 154, 163, .14), rgba(30, 101, 183, .10)) !important;
  border: 1px solid rgba(0, 154, 163, .18) !important;
  border-radius: 18px !important;
  color: #008b93 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  height: 48px !important;
  justify-content: center !important;
  width: 48px !important;
}

#modal-cost-center-create .cc-create-card-head h4 {
  color: #10233d !important;
  font-size: 1.24rem !important;
  font-weight: 950 !important;
  letter-spacing: -.02em !important;
  margin: 0 !important;
}

#modal-cost-center-create .cc-create-card-head p {
  color: #667891 !important;
  font-size: .94rem !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
  margin: 6px 0 0 !important;
}

#modal-cost-center-create .cc-upload-box {
  align-items: center !important;
  background: rgba(245, 248, 252, .72) !important;
  border: 1px dashed rgba(0, 154, 163, .34) !important;
  border-radius: 22px !important;
  cursor: pointer !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto) !important;
  padding: 16px !important;
}

#modal-cost-center-create .cc-upload-box strong {
  color: #10233d !important;
  display: block !important;
  font-weight: 950 !important;
}

#modal-cost-center-create .cc-upload-box small {
  color: #667891 !important;
  display: block !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  margin-top: 4px !important;
}

#modal-cost-center-create .cc-upload-box input[type="file"] {
  background: rgba(255, 255, 255, .95) !important;
  border: 1px solid rgba(103, 123, 145, .18) !important;
  border-radius: 16px !important;
  color: #10233d !important;
  font-weight: 850 !important;
  min-height: 46px !important;
  padding: 9px !important;
  width: 100% !important;
}

#modal-cost-center-create .cc-xml-status {
  color: #667891 !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  margin: 12px 0 0 !important;
}

#modal-cost-center-create .cc-xml-preview {
  background: linear-gradient(135deg, rgba(0, 154, 163, .08), rgba(255, 255, 255, .86)) !important;
  border: 1px solid rgba(0, 154, 163, .16) !important;
  border-radius: 22px !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: 14px !important;
  padding: 16px !important;
}

#modal-cost-center-create .cc-xml-preview[hidden] {
  display: none !important;
}

#modal-cost-center-create .cc-xml-preview div {
  min-width: 0 !important;
}

#modal-cost-center-create .cc-xml-preview span,
#modal-cost-center-create .cc-create-grid label > span {
  color: #61748e !important;
  display: block !important;
  font-size: .74rem !important;
  font-weight: 950 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

#modal-cost-center-create .cc-xml-preview strong {
  color: #10233d !important;
  display: block !important;
  font-size: .98rem !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  margin-top: 6px !important;
  overflow-wrap: anywhere !important;
}

#modal-cost-center-create .cc-create-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#modal-cost-center-create .cc-create-grid label {
  display: grid !important;
  gap: 8px !important;
}

#modal-cost-center-create .cc-create-grid input {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(103, 123, 145, .22) !important;
  border-radius: 18px !important;
  color: #10233d !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
  width: 100% !important;
}

#modal-cost-center-create .cc-create-grid input[type="file"] {
  padding: 12px !important;
}

#modal-cost-center-create .cc-create-grid input:focus {
  border-color: rgba(0, 154, 163, .64) !important;
  box-shadow: 0 0 0 4px rgba(0, 154, 163, .12) !important;
  outline: 0 !important;
}

#modal-cost-center-create .cc-create-actions {
  align-items: center !important;
  background: rgba(248, 251, 253, .82) !important;
  border: 1px solid rgba(103, 123, 145, .14) !important;
  border-radius: 22px !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  margin-top: 0 !important;
  padding: 14px !important;
}

#modal-cost-center-create .cc-create-actions .button {
  min-height: 48px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

@media (max-width: 860px) {
  #modal-cost-center-create .modal-panel {
    padding: 22px !important;
  }

  #modal-cost-center-create .cc-upload-box,
  #modal-cost-center-create .cc-xml-preview,
  #modal-cost-center-create .cc-create-grid {
    grid-template-columns: 1fr !important;
  }

  #modal-cost-center-create .cc-create-actions {
    flex-direction: column-reverse !important;
  }

  #modal-cost-center-create .cc-create-actions .button {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* Premium EPI document detail modal.
   External CSS keeps the popup polished under the production CSP. */
.modal-shell[id^="modal-epi-document-"] .modal-panel-wide {
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, .10), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(0, 155, 159, .10), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 54%, #f5f8fc 100%) !important;
  border: 1px solid rgba(103, 123, 145, .18) !important;
  border-radius: 30px !important;
  box-shadow: 0 34px 90px rgba(9, 24, 43, .30) !important;
  max-height: min(92vh, 980px) !important;
  min-width: 0 !important;
  overflow: auto !important;
  padding: 34px 36px 38px !important;
  width: min(100%, 1220px) !important;
}

.modal-shell[id^="modal-epi-document-"] .modal-head {
  display: none !important;
}

.modal-shell[id^="modal-epi-document-"] .modal-close {
  align-items: center !important;
  background: #eef3fb !important;
  border: 1px solid rgba(113, 139, 170, .20) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 24px rgba(16, 35, 61, .08) !important;
  color: #10233d !important;
  display: inline-flex !important;
  font-size: 0 !important;
  height: 52px !important;
  justify-content: center !important;
  right: 18px !important;
  top: 18px !important;
  width: 52px !important;
}

.modal-shell[id^="modal-epi-document-"] .modal-close::before {
  content: "X" !important;
  font-size: 1.25rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.epi-document-premium {
  color: #10233d;
  display: grid;
  gap: 28px;
}

.epi-doc-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-right: 74px;
}

.epi-doc-header h2 {
  color: #10233d;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 2.15rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 18px 0 8px;
}

.epi-doc-header p {
  color: #61748e;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.epi-doc-badge,
.epi-doc-count,
.epi-doc-pill,
.epi-status-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0;
  line-height: 1;
  width: fit-content;
}

.epi-doc-badge {
  background: #edf1ff;
  border: 1px solid rgba(37, 99, 235, .14);
  color: #255ee8;
  padding: 8px 12px;
  text-transform: uppercase;
}

.epi-doc-count {
  background: rgba(0, 155, 159, .10);
  border: 1px solid rgba(0, 155, 159, .18);
  color: #0d7280;
  padding: 9px 13px;
}

.epi-status-badge {
  padding: 8px 12px;
}

.epi-status-badge.status-ok {
  background: rgba(11, 141, 95, .12);
  border: 1px solid rgba(11, 141, 95, .20);
  color: #087650;
}

.epi-status-badge.status-warning {
  background: rgba(243, 161, 26, .13);
  border: 1px solid rgba(243, 161, 26, .22);
  color: #a76404;
}

.epi-status-badge.status-danger {
  background: rgba(192, 74, 90, .12);
  border: 1px solid rgba(192, 74, 90, .20);
  color: #a93f50;
}

.epi-status-badge.status-muted {
  background: rgba(96, 116, 141, .12);
  border: 1px solid rgba(96, 116, 141, .18);
  color: #52667f;
}

.epi-doc-hero {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.epi-doc-illustration {
  align-items: center;
  background:
    radial-gradient(circle at 56% 34%, rgba(37, 99, 235, .13), transparent 36%),
    linear-gradient(145deg, #edf2ff, #f7fbff);
  border: 1px solid rgba(113, 139, 170, .22);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 22px 44px rgba(16, 35, 61, .08);
  display: flex;
  height: 184px;
  justify-content: center;
}

.epi-doc-paper {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #edf4ff);
  border: 1px solid rgba(113, 139, 170, .14);
  border-radius: 14px;
  box-shadow: 0 22px 42px rgba(16, 35, 61, .16);
  display: flex;
  height: 118px;
  justify-content: center;
  position: relative;
  width: 92px;
}

.epi-doc-paper span {
  background: linear-gradient(135deg, rgba(222, 231, 245, .8), rgba(255, 255, 255, .92));
  border-bottom: 1px solid rgba(113, 139, 170, .10);
  border-left: 1px solid rgba(113, 139, 170, .10);
  border-radius: 0 12px 0 12px;
  height: 34px;
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
}

.epi-doc-paper .epi-doc-icon {
  background: linear-gradient(135deg, #2f72f0, #1d56da);
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(37, 99, 235, .28);
  color: #ffffff;
  height: 48px;
  width: 48px;
}

.epi-doc-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.epi-doc-title-row {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
}

.epi-doc-title-row > div {
  min-width: 0;
}

.epi-doc-title-row h3 {
  color: #255ee8;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.epi-doc-title-row p {
  color: #10233d;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.epi-doc-info-card,
.epi-doc-section {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(113, 139, 170, .22);
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(16, 35, 61, .08);
}

.epi-doc-info-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 238px;
  min-width: 0;
}

.epi-doc-info-column,
.epi-doc-action-column {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
}

.epi-doc-info-column {
  border-right: 1px solid rgba(113, 139, 170, .20);
}

.epi-doc-card-head,
.epi-doc-section-head > div {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.epi-doc-card-head strong,
.epi-doc-section-head strong {
  color: #255ee8;
  display: block;
  font-size: .88rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.epi-doc-card-head span,
.epi-doc-section-head p {
  color: #61748e;
  display: block;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.55;
  margin: 6px 0 0;
}

.epi-doc-field-grid {
  display: grid;
  gap: 12px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.epi-doc-field {
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-width: 0;
}

.epi-doc-field .epi-doc-icon {
  grid-row: 1 / span 2;
  margin-top: 1px;
}

.epi-doc-field > span:not(.epi-doc-icon) {
  color: #74849a;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
}

.epi-doc-field strong {
  color: #10233d;
  font-size: .92rem;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.epi-doc-action-column {
  align-content: start;
}

.epi-doc-download,
.epi-doc-sign-button {
  background: linear-gradient(135deg, #2563eb, #0f78dd) !important;
  border: 1px solid rgba(37, 99, 235, .22) !important;
  box-shadow: 0 18px 34px rgba(37, 99, 235, .24) !important;
  color: #ffffff !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 0 22px !important;
  width: 100%;
}

.epi-doc-download:hover,
.epi-doc-sign-button:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.epi-doc-sign-button:disabled,
.epi-doc-sign-button[aria-disabled="true"] {
  background: #dbe4f0 !important;
  border-color: rgba(113, 139, 170, .24) !important;
  box-shadow: none !important;
  color: #6d8097 !important;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.epi-doc-sign-actions {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.epi-doc-cancel-sign {
  justify-content: center !important;
  min-height: 54px !important;
}

.epi-doc-sign-lock {
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, .26);
  border-radius: 16px;
  color: #8a4b00;
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.45;
  margin: 0;
  padding: 13px 15px;
}

.epi-doc-signed-state {
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
  border: 1px solid rgba(113, 139, 170, .20);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.epi-doc-signed-state > span {
  color: #74849a;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.epi-doc-signed-state > strong {
  color: #10233d;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.epi-doc-pill {
  padding: 8px 12px;
}

.epi-doc-pill-received {
  background: rgba(11, 141, 95, .12);
  border: 1px solid rgba(11, 141, 95, .18);
  color: #087650;
}

.epi-doc-pill-muted {
  background: rgba(96, 116, 141, .10);
  border: 1px solid rgba(96, 116, 141, .16);
  color: #52667f;
}

.epi-doc-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px 24px 24px;
}

.epi-doc-section-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-width: 0;
}

.epi-doc-section-icon {
  color: #255ee8;
  display: inline-flex;
  flex: 0 0 auto;
}

.epi-doc-upload-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 270px;
}

.epi-doc-upload-box {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(113, 139, 170, .24);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 35, 61, .06);
  display: flex;
  gap: 12px;
  min-height: 62px;
  min-width: 0;
  padding: 12px 14px;
}

.epi-doc-upload-box input[type="file"] {
  color: #74849a;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 750;
  min-width: 0;
  width: 100%;
}

.epi-doc-upload-box input[type="file"]::file-selector-button {
  background: #ffffff;
  border: 1px solid rgba(22, 52, 86, .28);
  border-radius: 10px;
  color: #163456;
  cursor: pointer;
  font-weight: 900;
  margin-right: 12px;
  min-height: 40px;
  padding: 0 16px;
}

.epi-doc-save-upload {
  background: linear-gradient(135deg, #f4f7ff, #eef2ff) !important;
  border: 1px solid rgba(37, 99, 235, .12) !important;
  color: #255ee8 !important;
  justify-content: center !important;
  min-height: 62px !important;
  width: 100%;
}

.epi-doc-table-shell {
  border: 1px solid rgba(113, 139, 170, .20);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(16, 35, 61, .05);
  padding: 0;
}

.epi-doc-table {
  background: #ffffff;
  min-width: 840px;
}

.epi-doc-table thead th {
  background: linear-gradient(180deg, #fbfdff, #f3f7fb);
  color: #74849a;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: 0;
}

.epi-doc-table td {
  color: #10233d;
  font-weight: 750;
  vertical-align: middle;
}

.epi-doc-epi-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.epi-doc-epi-cell strong {
  overflow-wrap: anywhere;
}

.epi-doc-excel {
  min-height: 46px !important;
  min-width: 96px !important;
  justify-content: center !important;
}

.epi-doc-sign-form {
  display: grid;
  gap: 14px;
}

.epi-doc-validation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.epi-doc-validation-item {
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
  border: 1px solid rgba(113, 139, 170, .20);
  border-radius: 16px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
}

.epi-doc-validation-item span {
  color: #74849a;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.epi-doc-validation-item strong {
  color: #10233d;
  font-size: .92rem;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.epi-doc-validation-result {
  align-items: flex-start;
  border-radius: 18px;
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.epi-doc-validation-result.is-ok {
  background: rgba(11, 141, 95, .10);
  border: 1px solid rgba(11, 141, 95, .18);
  color: #087650;
}

.epi-doc-validation-result.is-danger {
  background: rgba(192, 74, 90, .10);
  border: 1px solid rgba(192, 74, 90, .18);
  color: #a93f50;
}

.epi-doc-validation-result.is-muted {
  background: rgba(96, 116, 141, .10);
  border: 1px solid rgba(96, 116, 141, .16);
  color: #52667f;
}

.epi-doc-validation-result strong {
  display: block;
  font-size: .95rem;
  font-weight: 950;
  margin-bottom: 5px;
}

.epi-doc-validation-result p {
  color: #61748e;
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.45;
  margin: 0;
}

.epi-doc-date-field {
  display: grid;
  gap: 8px;
}

.epi-doc-date-field span {
  color: #74849a;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.epi-doc-date-field input {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(113, 139, 170, .30);
  border-radius: 14px;
  color: #10233d;
  font-size: 1rem;
  font-weight: 800;
  height: 54px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.epi-doc-date-field input:focus,
.epi-doc-upload-box:focus-within {
  border-color: rgba(37, 99, 235, .52);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.epi-doc-icon {
  align-items: center;
  color: currentColor;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.epi-doc-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.epi-doc-card-head > .epi-doc-icon,
.epi-doc-section-icon > .epi-doc-icon {
  background: #edf3ff;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 12px;
  color: #255ee8;
  height: 34px;
  padding: 8px;
  width: 34px;
}

.epi-doc-field > .epi-doc-icon,
.epi-doc-epi-cell > .epi-doc-icon,
.epi-doc-upload-box > .epi-doc-icon,
.epi-doc-badge > .epi-doc-icon,
.epi-doc-pill > .epi-doc-icon,
.epi-doc-download > .epi-doc-icon,
.epi-doc-save-upload > .epi-doc-icon,
.epi-doc-sign-button > .epi-doc-icon {
  height: 18px;
  width: 18px;
}

.epi-doc-epi-cell > .epi-doc-icon {
  background: #eef3ff;
  border: 1px solid rgba(37, 99, 235, .10);
  border-radius: 10px;
  color: #255ee8;
  height: 36px;
  padding: 8px;
  width: 36px;
}

.epi-ai-wait-overlay {
  align-items: center;
  background: rgba(9, 24, 43, .58);
  backdrop-filter: blur(14px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 9999;
}

.epi-ai-wait-overlay.is-visible {
  display: flex;
}

.epi-ai-wait-card {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid rgba(113, 139, 170, .22);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(9, 24, 43, .34);
  color: #10233d;
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 560px;
  padding: 46px 46px 40px;
  text-align: center;
  width: min(100%, 560px);
}

.epi-ai-wait-orb {
  align-items: center;
  background:
    conic-gradient(from 0deg, #235ff0, #5f7cff, rgba(95, 124, 255, .08), #235ff0);
  border-radius: 999px;
  display: flex;
  height: 104px;
  justify-content: center;
  position: relative;
  width: 104px;
}

.epi-ai-wait-orb::before {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  inset: 8px;
  position: absolute;
}

.epi-ai-wait-orb .epi-doc-icon {
  background: #edf3ff;
  border: 1px solid rgba(37, 99, 235, .20);
  border-radius: 20px;
  color: #255ee8;
  height: 52px;
  padding: 12px;
  position: relative;
  width: 52px;
}

.epi-ai-wait-card h3 {
  color: #10233d;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.epi-ai-wait-card > p {
  color: #60748d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  margin: -8px 0 4px;
  max-width: 430px;
}

.epi-ai-wait-card ol {
  display: grid;
  gap: 15px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  text-align: left;
  width: min(100%, 420px);
}

.epi-ai-wait-card li {
  align-items: flex-start;
  color: #647895;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr);
}

.epi-ai-wait-card li > span {
  background: #dfe6f0;
  border-radius: 999px;
  display: inline-flex;
  height: 22px;
  margin-top: 1px;
  position: relative;
  width: 22px;
}

.epi-ai-wait-card li.checked > span {
  background: #69c99b;
}

.epi-ai-wait-card li.checked > span::before {
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  content: "";
  height: 9px;
  left: 8px;
  position: absolute;
  top: 4px;
  transform: rotate(45deg);
  width: 5px;
}

.epi-ai-wait-card li.active > span {
  animation: epiWaitPulse 1s linear infinite;
  background: #ffffff;
  border: 4px solid #2f72f0;
}

.epi-ai-wait-card li strong {
  color: #10233d;
  display: block;
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.25;
}

.epi-ai-wait-card li small {
  color: #2f72f0;
  display: block;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.3;
  margin-top: 4px;
}

.epi-ai-wait-note {
  align-items: flex-start;
  background: linear-gradient(135deg, #f2f6ff, #edf3ff);
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 20px;
  text-align: left;
  width: min(100%, 460px);
}

.epi-ai-wait-note .epi-doc-icon {
  color: #255ee8;
  height: 22px;
  margin-top: 2px;
  width: 22px;
}

.epi-ai-wait-note strong,
.epi-ai-wait-note span {
  color: #193b79;
  display: block;
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.45;
}

.epi-ai-wait-note span {
  color: #102f6b;
  font-weight: 950;
  margin-top: 10px;
}

@keyframes epiWaitPulse {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .modal-shell[id^="modal-epi-document-"] {
    padding: 12px !important;
  }

  .modal-shell[id^="modal-epi-document-"] .modal-panel-wide {
    border-radius: 24px !important;
    max-width: calc(100vw - 24px) !important;
    overflow-x: hidden !important;
    padding: 26px 20px 28px !important;
    width: calc(100vw - 24px) !important;
  }

  .modal-shell[id^="modal-epi-document-"] .modal-close {
    position: fixed !important;
    right: 22px !important;
    top: 22px !important;
  }

  .epi-doc-header {
    display: grid;
    padding-right: 58px;
  }

  .epi-doc-header h2 {
    font-size: 1.7rem;
  }

  .epi-doc-hero,
  .epi-doc-info-card,
  .epi-doc-upload-form,
  .epi-doc-sign-actions {
    grid-template-columns: 1fr;
  }

  .epi-document-premium,
  .epi-doc-hero,
  .epi-doc-illustration,
  .epi-doc-main,
  .epi-doc-info-card,
  .epi-doc-section {
    max-width: 100%;
    width: 100%;
  }

  .epi-doc-illustration {
    height: 160px;
  }

  .epi-doc-info-column {
    border-bottom: 1px solid rgba(113, 139, 170, .20);
    border-right: 0;
  }

  .epi-doc-field-grid {
    grid-template-columns: 1fr;
  }

  .epi-doc-validation-grid {
    grid-template-columns: 1fr;
  }

  .epi-doc-title-row,
  .epi-doc-section-head {
    align-items: flex-start;
    display: grid;
  }

  .epi-doc-title-row p,
  .epi-doc-card-head span,
  .epi-doc-section-head p {
    max-width: 300px;
    overflow-wrap: anywhere;
  }

  .epi-doc-info-column,
  .epi-doc-action-column,
  .epi-doc-section {
    padding: 20px 16px;
  }

  .epi-doc-upload-box {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .epi-doc-excel,
  .epi-doc-save-upload,
  .epi-doc-sign-button {
    width: 100% !important;
  }

  .epi-ai-wait-card {
    padding: 34px 24px 30px;
  }
}

/* Listagem premium de EPI. */
.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) {
  padding: 18px;
}

.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-backdrop {
  background: rgba(14, 28, 48, .66);
  backdrop-filter: blur(14px);
}

.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-panel-wide {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, .08), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(14, 165, 233, .07), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(248, 251, 255, .98));
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 28px;
  box-shadow: 0 36px 96px rgba(9, 24, 43, .28);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  padding: 0;
  width: min(96vw, 1320px);
}

.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-head {
  display: none;
}

.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-close {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 16px;
  color: #10233f;
  display: inline-flex;
  font-size: 0;
  height: 58px;
  justify-content: center;
  right: 28px;
  top: 28px;
  width: 58px;
  z-index: 4;
}

.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-close::before {
  content: "x";
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-close:hover,
.modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-close:focus-visible {
  background: #e8eef7;
  outline: none;
}

.epi-editor-form,
.epi-editor-form * {
  box-sizing: border-box;
}

.epi-editor-form {
  color: #10233f;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.epi-editor-head {
  align-items: center;
  display: flex;
  gap: 28px;
  padding: 42px 52px 26px;
}

.epi-editor-hero-icon,
.epi-editor-function-icon,
.epi-editor-tip-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.epi-editor-hero-icon {
  background: linear-gradient(145deg, #eaf2ff, #f8fbff);
  border-radius: 20px;
  color: #1263df;
  height: 112px;
  width: 112px;
}

.epi-editor-hero-icon .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 62px;
  width: 62px;
}

.epi-editor-head p {
  color: #075eea;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .12em;
  line-height: 1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.epi-editor-head h2 {
  color: #10233f;
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.epi-editor-head span:not(.epi-editor-hero-icon) {
  color: #526682;
  display: block;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.45;
  margin-top: 12px;
}

.epi-editor-content {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  overflow: auto;
  padding: 0 52px 30px;
}

.epi-editor-main {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.epi-editor-field {
  display: grid;
  gap: 10px;
}

.epi-editor-label {
  color: #10233f;
  font-size: 1rem;
  font-weight: 950;
}

.epi-editor-label b {
  color: #ef233c;
  font-weight: 950;
}

.epi-editor-input {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 35, 65, .035);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 66px;
  padding: 0 16px 0 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.epi-editor-input:focus-within {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1), 0 12px 26px rgba(15, 35, 65, .045);
}

.epi-editor-input .epi-doc-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #435a75;
  height: 24px;
  width: 24px;
}

.epi-editor-input input {
  background: transparent;
  border: 0;
  color: #10233f;
  font-size: 1.18rem;
  font-weight: 820;
  min-height: 62px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.epi-editor-input input::placeholder {
  color: #8a99ad;
}

.epi-editor-input.has-suffix {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.epi-editor-input em {
  background: #eef3fa;
  border-radius: 12px;
  color: #223855;
  font-style: normal;
  font-weight: 950;
  padding: 12px 18px;
}

.epi-editor-functions {
  display: grid;
  gap: 16px;
}

.epi-editor-functions h4 {
  color: #10233f;
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1.15;
  margin: 0 0 6px;
}

.epi-editor-functions p {
  color: #526682;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.42;
  margin: 0;
}

.epi-editor-function-grid {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  padding: 12px;
}

.epi-editor-function-card {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 12px 20px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.epi-editor-function-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.epi-editor-function-card:nth-child(odd) {
  border-right: 1px solid rgba(148, 163, 184, .2);
}

.epi-editor-function-card:last-child {
  border-right: 0;
}

.epi-editor-function-card:hover,
.epi-editor-function-card:has(input:checked) {
  background: #eff6ff;
}

.epi-editor-function-icon {
  border-radius: 14px;
  height: 54px;
  width: 54px;
}

.epi-editor-function-icon .epi-doc-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: currentColor;
  height: 27px;
  width: 27px;
}

.epi-editor-function-card.tone-blue .epi-editor-function-icon { background: #eaf2ff; color: #1263df; }
.epi-editor-function-card.tone-green .epi-editor-function-icon { background: #e7f8ef; color: #0ca86b; }
.epi-editor-function-card.tone-orange .epi-editor-function-icon { background: #fff0df; color: #f08a00; }
.epi-editor-function-card.tone-purple .epi-editor-function-icon { background: #f2eaff; color: #7c3aed; }
.epi-editor-function-card.tone-cyan .epi-editor-function-icon { background: #e8fbff; color: #0ea5c7; }
.epi-editor-function-card.tone-sky .epi-editor-function-icon { background: #e5f4ff; color: #0284c7; }

.epi-editor-function-name {
  color: #10233f;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
  min-width: 0;
}

.epi-editor-function-card input[type="checkbox"] {
  accent-color: #1263df;
  cursor: pointer;
  height: 22px;
  margin: 0;
  width: 22px;
}

.epi-editor-empty {
  color: #667790;
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
}

.epi-editor-aside {
  align-self: start;
  background: linear-gradient(145deg, rgba(248, 251, 255, .96), rgba(255, 255, 255, .9));
  border: 1px solid rgba(191, 207, 232, .9);
  border-radius: 18px;
  display: grid;
  gap: 0;
  padding: 28px 24px;
}

.epi-editor-tip {
  align-items: flex-start;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 18px 0 28px;
}

.epi-editor-tip + .epi-editor-tip {
  border-top: 1px solid rgba(148, 163, 184, .32);
  padding-top: 28px;
}

.epi-editor-tip:last-child {
  padding-bottom: 0;
}

.epi-editor-tip-icon {
  border-radius: 999px;
  height: 56px;
  width: 56px;
}

.epi-editor-tip-icon.tone-blue { background: #e7f0ff; color: #1263df; }
.epi-editor-tip-icon.tone-green { background: #e7f8ef; color: #0ca86b; }

.epi-editor-tip-icon .epi-doc-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: currentColor;
  height: 28px;
  width: 28px;
}

.epi-editor-tip h4 {
  color: #10233f;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.25;
  margin: 4px 0 12px;
}

.epi-editor-tip p {
  color: #536782;
  font-size: .98rem;
  font-weight: 760;
  line-height: 1.7;
  margin: 0;
}

.epi-editor-footer {
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border-top: 1px solid rgba(203, 213, 225, .7);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 28px 52px;
}

.epi-editor-cancel,
.epi-editor-submit {
  align-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  gap: 12px;
  justify-content: center;
  min-height: 62px;
  min-width: 158px;
  padding: 0 28px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.epi-editor-cancel {
  background: #eef2f7;
  color: #263a55;
}

.epi-editor-submit {
  background: linear-gradient(135deg, #1263df, #0752c7);
  box-shadow: 0 18px 36px rgba(7, 82, 199, .28);
  color: #ffffff;
  min-width: 216px;
}

.epi-editor-submit .epi-doc-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: currentColor;
  height: 24px;
  width: 24px;
}

.epi-editor-cancel:hover,
.epi-editor-submit:hover {
  transform: translateY(-1px);
}

.epi-editor-cancel:focus-visible,
.epi-editor-submit:focus-visible,
.epi-editor-function-card:focus-within,
.epi-editor-input:focus-within {
  outline: 3px solid rgba(37, 99, 235, .18);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) {
    align-items: stretch;
    padding: 10px;
  }

  .modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-panel-wide,
  .epi-editor-form {
    max-height: calc(100vh - 20px);
  }

  .modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-panel-wide {
    border-radius: 22px;
    width: 100%;
  }

  .modal-shell[id^="modal-epi-"]:not([id^="modal-epi-document-"]) .modal-close {
    height: 50px;
    right: 18px;
    top: 18px;
    width: 50px;
  }

  .epi-editor-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 28px 22px 18px;
  }

  .epi-editor-hero-icon {
    height: 74px;
    width: 74px;
  }

  .epi-editor-hero-icon .epi-doc-icon {
    height: 40px;
    width: 40px;
  }

  .epi-editor-head h2 {
    font-size: 2.2rem;
  }

  .epi-editor-content {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 0 22px 22px;
  }

  .epi-editor-function-grid {
    grid-template-columns: 1fr;
  }

  .epi-editor-function-card,
  .epi-editor-function-card:nth-child(odd),
  .epi-editor-function-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    border-right: 0;
  }

  .epi-editor-function-card:last-child {
    border-bottom: 0;
  }

  .epi-editor-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 12px;
    padding: 18px 22px;
  }

  .epi-editor-cancel,
  .epi-editor-submit {
    width: 100%;
  }
}

.main-content:has(.epi-list-premium),
.main-content:has(.epi-general-premium),
.main-content:has(.epi-validity-premium),
.main-content:has(.commitments-premium) {
  background: #f5f8fc;
  gap: 24px;
  padding: 30px 34px;
}

.main-content:has(.epi-list-premium) > .top-session-bar,
.main-content:has(.epi-general-premium) > .top-session-bar,
.main-content:has(.epi-validity-premium) > .top-session-bar,
.main-content:has(.commitments-premium) > .top-session-bar {
  display: none;
}

.epi-list-premium,
.epi-general-premium,
.epi-validity-premium,
.commitments-premium {
  color: #10233f;
  display: grid;
  gap: 24px;
  width: 100%;
}

.epi-list-topbar {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.epi-list-heading,
.epi-list-session-actions,
.epi-list-session,
.epi-list-button,
.epi-list-card-head,
.epi-list-name-cell,
.epi-list-row-actions,
.epi-list-footer,
.epi-list-pagination,
.epi-list-page-size {
  align-items: center;
  display: flex;
}

.epi-list-heading {
  gap: 18px;
}

.epi-list-heading-icon,
.epi-stat-icon,
.epi-list-row-icon,
.epi-list-session > .epi-doc-icon {
  align-items: center;
  border-radius: 22px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.epi-list-heading-icon {
  background: linear-gradient(145deg, #eaf2ff, #f8fbff);
  box-shadow: inset 0 0 0 1px rgba(42, 103, 239, .08);
  color: #1d63f0;
  height: 58px;
  width: 58px;
}

.epi-list-heading .epi-doc-icon,
.epi-stat-icon .epi-doc-icon,
.epi-list-session .epi-doc-icon,
.epi-list-button .epi-doc-icon,
.epi-list-action-button .epi-doc-icon,
.epi-list-search .epi-doc-icon,
.epi-list-row-icon .epi-doc-icon,
.epi-row-menu summary .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 20px;
  min-height: 20px;
  min-width: 20px;
  width: 20px;
}

.epi-list-heading-icon .epi-doc-icon {
  height: 28px;
  width: 28px;
}

.epi-list-heading h1 {
  color: #101f3b;
  font-size: clamp(1.75rem, 2.1vw, 2.45rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 6px;
}

.epi-list-heading p,
.epi-list-card-head p,
.epi-stat-card p,
.epi-list-footer p,
.epi-list-page-size span {
  color: #5f708a;
  line-height: 1.45;
  margin: 0;
}

.epi-list-heading p {
  font-size: 1.01rem;
  font-weight: 650;
}

.epi-list-session-actions {
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.epi-list-session-actions form {
  margin: 0;
}

.epi-list-button {
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 850;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.epi-list-button:hover,
.epi-list-button:focus-visible,
.epi-list-action-button:hover,
.epi-list-action-button:focus-visible,
.epi-row-menu summary:hover,
.epi-row-menu summary:focus-visible,
.epi-list-pagination button:hover,
.epi-list-pagination button:focus-visible {
  transform: translateY(-1px);
}

.epi-list-button:focus-visible,
.epi-list-action-button:focus-visible,
.epi-row-menu summary:focus-visible,
.epi-list-filters input:focus,
.epi-list-filters select:focus,
.epi-list-pagination button:focus-visible,
.epi-list-page-size select:focus {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.epi-list-button-primary {
  background: linear-gradient(135deg, #0b66f6, #0757d5);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
  color: #ffffff;
}

.epi-list-button-primary:hover {
  box-shadow: 0 18px 42px rgba(37, 99, 235, .32);
}

.epi-list-button-ghost {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(37, 99, 235, .16);
  box-shadow: 0 10px 26px rgba(20, 38, 61, .05);
  color: #175ee8;
}

.epi-list-session {
  gap: 12px;
  min-height: 48px;
}

.epi-list-session > .epi-doc-icon {
  background: rgba(255, 255, 255, .84);
  box-shadow: inset 0 0 0 1px rgba(20, 38, 61, .08), 0 12px 24px rgba(20, 38, 61, .05);
  color: #10233f;
  height: 48px;
  width: 48px;
}

.epi-list-session div {
  display: grid;
  gap: 2px;
}

.epi-list-session span {
  color: #4c5f79;
  font-size: .82rem;
  font-weight: 900;
}

.epi-list-session strong {
  color: #10233f;
  font-size: .96rem;
  line-height: 1.15;
}

.epi-stat-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.epi-stat-card {
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(20, 38, 61, .07);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 126px;
  padding: 24px 26px;
}

.epi-stat-icon {
  height: 56px;
  width: 56px;
}

.epi-stat-icon .epi-doc-icon {
  height: 26px;
  width: 26px;
}

.epi-stat-card span {
  color: #1c2f4c;
  display: block;
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.epi-stat-card strong {
  color: #0e1f3a;
  display: block;
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  line-height: 1;
  margin-bottom: 14px;
}

.epi-stat-card p {
  font-size: .82rem;
  font-weight: 750;
}

.epi-stat-blue .epi-stat-icon {
  background: #eaf2ff;
  color: #1d63f0;
}

.epi-stat-green .epi-stat-icon {
  background: #e8f8ef;
  color: #18a764;
}

.epi-stat-orange .epi-stat-icon {
  background: #fff1e5;
  color: #f97316;
}

.epi-stat-red .epi-stat-icon {
  background: #ffe8ec;
  color: #ef233c;
}

.epi-stat-purple .epi-stat-icon {
  background: #f0eaff;
  color: #7c3aed;
}

.epi-stat-cyan .epi-stat-icon {
  background: #e7f8fb;
  color: #0891b2;
}

.epi-list-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(20, 38, 61, .08);
  overflow: visible;
}

.epi-list-card-head {
  gap: 18px;
  justify-content: space-between;
  padding: 28px 28px 18px;
}

.epi-list-card-head h2 {
  color: #101f3b;
  font-size: clamp(1.35rem, 1.55vw, 1.75rem);
  letter-spacing: 0;
  margin: 0 0 6px;
}

.epi-list-card-head p {
  font-size: .95rem;
  font-weight: 650;
}

.epi-list-filters {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(185px, 240px));
  padding: 0 28px 24px;
}

.epi-list-filters label,
.epi-list-page-size {
  display: grid;
  gap: 8px;
}

.epi-list-filters label > span,
.epi-list-page-size span {
  color: #223855;
  font-size: .78rem;
  font-weight: 900;
}

.epi-list-search {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
  grid-template-columns: none !important;
  position: relative;
}

.epi-list-search .epi-doc-icon {
  color: #61728b;
  left: 17px;
  position: absolute;
  z-index: 1;
}

.epi-list-filters input,
.epi-list-filters select,
.epi-list-page-size select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  color: #172943;
  font-size: .92rem;
  font-weight: 750;
  min-height: 48px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.epi-list-filters input {
  padding-left: 48px;
}

.epi-list-filters select,
.epi-list-page-size select {
  background-image: linear-gradient(45deg, transparent 50%, #566a84 50%), linear-gradient(135deg, #566a84 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 40px;
}

.epi-list-filters input::placeholder {
  color: #73839b;
}

.epi-list-table-scroll {
  border-top: 1px solid rgba(20, 38, 61, .06);
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

.epi-list-table {
  border-collapse: collapse;
  min-width: 1260px;
  table-layout: fixed;
  width: 100%;
}

.epi-list-table th,
.epi-list-table td {
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  padding: 18px 28px;
  text-align: left;
  vertical-align: middle;
}

.epi-list-table thead th {
  background: #f7f9fc;
  color: #62718a;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.epi-list-table tbody tr {
  transition: background 150ms ease;
}

.epi-list-table tbody tr:hover {
  background: rgba(37, 99, 235, .025);
}

.epi-list-table th:nth-child(1),
.epi-list-table td:nth-child(1) {
  width: 82px;
}

.epi-list-table th:nth-child(2),
.epi-list-table td:nth-child(2) {
  width: 250px;
}

.epi-list-table th:nth-child(3),
.epi-list-table td:nth-child(3) {
  width: 300px;
}

.epi-list-table th:nth-child(4),
.epi-list-table td:nth-child(4) {
  width: 130px;
}

.epi-list-table th:nth-child(5),
.epi-list-table td:nth-child(5) {
  width: 165px;
}

.epi-list-table th:nth-child(6),
.epi-list-table td:nth-child(6) {
  width: 250px;
}

.epi-list-table th:nth-child(7),
.epi-list-table td:nth-child(7) {
  width: 180px;
}

.epi-list-table th:nth-child(8),
.epi-list-table td:nth-child(8) {
  width: 190px;
}

.epi-list-table td {
  color: #132844;
  font-size: .94rem;
  font-weight: 720;
  line-height: 1.45;
}

.epi-list-id {
  color: #24405f !important;
  font-weight: 850 !important;
}

.epi-list-name-cell {
  gap: 14px;
}

.epi-list-name-cell strong {
  color: #10233f;
  font-weight: 900;
}

.epi-list-row-icon {
  background: #edf4ff;
  color: #0b5fb7;
  height: 48px;
  width: 48px;
}

.epi-list-row-icon .epi-doc-icon {
  height: 24px;
  width: 24px;
}

.epi-list-description,
.epi-list-functions {
  color: #2c405e !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
}

.epi-list-ca {
  color: #0f5f56 !important;
  font-weight: 950 !important;
  letter-spacing: .02em;
}

.epi-list-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}

.epi-list-status::before {
  border-radius: 999px;
  content: "";
  height: 10px;
  width: 10px;
}

.epi-list-status-ok {
  background: #def7ec;
  color: #087443;
}

.epi-list-status-ok::before {
  background: #12b76a;
}

.epi-list-status-warning {
  background: #fff2dc;
  color: #d86800;
}

.epi-list-status-warning::before {
  background: #fb8c00;
}

.epi-list-status-danger {
  background: #ffe4e6;
  color: #e11d48;
}

.epi-list-status-danger::before {
  background: #f43f5e;
}

.epi-list-status-muted {
  background: #edf2f7;
  color: #52667f;
}

.epi-list-status-muted::before {
  background: #94a3b8;
}

.epi-list-row-actions {
  gap: 10px;
}

.epi-list-action-button,
.epi-row-menu summary,
.epi-list-pagination button {
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.epi-list-action-button {
  background: #eef5ff;
  color: #1262ea;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.epi-list-action-button:hover {
  background: #e5f0ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .13);
}

.epi-list-master-note,
.epi-list-readonly-badge {
  align-items: center;
  background: #f3f6fa;
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 999px;
  color: #60738a;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 850;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}

.epi-row-menu {
  position: relative;
}

.epi-row-menu summary {
  background: #ffffff;
  color: #214161;
  height: 42px;
  list-style: none;
  width: 42px;
}

.epi-row-menu summary::-webkit-details-marker {
  display: none;
}

.epi-row-menu-panel {
  background: #ffffff;
  border: 1px solid rgba(20, 38, 61, .1);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(20, 38, 61, .15);
  display: none;
  min-width: 148px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

.epi-row-menu[open] .epi-row-menu-panel {
  display: block;
}

.epi-row-menu-panel form {
  margin: 0;
}

.epi-row-menu-panel button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #d92d20;
  cursor: pointer;
  font-weight: 850;
  min-height: 38px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.epi-row-menu-panel button:hover {
  background: #fff0ee;
}

.epi-list-empty {
  color: #61728b;
  font-weight: 800;
  padding: 28px;
  text-align: center;
}

.epi-list-footer {
  gap: 18px;
  justify-content: space-between;
  padding: 20px 28px 26px;
}

.epi-list-footer p {
  font-size: .88rem;
  font-weight: 750;
}

.epi-list-pagination {
  gap: 10px;
  justify-content: center;
}

.epi-list-pagination button {
  background: #ffffff;
  color: #1c3453;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
}

.epi-list-pagination button.is-active {
  background: #0b66f6;
  border-color: #0b66f6;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
  color: #ffffff;
}

.epi-list-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.epi-list-page-size {
  gap: 10px;
  grid-template-columns: auto 82px;
}

.epi-list-page-size select {
  min-height: 40px;
}

.commitment-kicker {
  color: #0b66f6 !important;
  font-size: .8rem !important;
  font-weight: 950 !important;
  letter-spacing: .14em !important;
  line-height: 1 !important;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}

.commitment-stat-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.commitment-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.commitment-action-row .epi-list-button {
  min-width: 158px;
}

.commitment-filter-card {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(185px, .72fr)) minmax(310px, 1fr);
  padding: 28px;
}

.commitment-filter-card label {
  display: grid;
  gap: 8px;
}

.commitment-filter-card label > span {
  color: #223855;
  font-size: .78rem;
  font-weight: 900;
}

.commitment-filter-card input,
.commitment-filter-card select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  color: #172943;
  font-size: .92rem;
  font-weight: 750;
  min-height: 48px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.commitment-filter-card select {
  background-image: linear-gradient(45deg, transparent 50%, #566a84 50%), linear-gradient(135deg, #566a84 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 40px;
}

.commitment-filter-card input:focus,
.commitment-filter-card select:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
  outline: none;
}

.commitment-search-field {
  display: flex !important;
  position: relative;
}

.commitment-search-field .epi-doc-icon {
  color: #61728b;
  left: 17px;
  position: absolute;
  z-index: 1;
}

.commitment-search-field input {
  padding-left: 48px;
}

.commitment-period-field > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.commitment-period-field em {
  color: #8a9ab1;
  font-style: normal;
  font-weight: 950;
}

.commitment-table-card {
  overflow: visible;
}

.commitment-table {
  min-width: 1430px;
  table-layout: fixed;
}

.commitment-table th,
.commitment-table td {
  padding: 17px 20px;
}

.commitment-table th:nth-child(1),
.commitment-table td:nth-child(1) {
  width: 190px;
}

.commitment-table th:nth-child(2),
.commitment-table td:nth-child(2),
.commitment-table th:nth-child(3),
.commitment-table td:nth-child(3) {
  width: 250px;
}

.commitment-table th:nth-child(4),
.commitment-table td:nth-child(4) {
  width: 245px;
}

.commitment-table th:nth-child(5),
.commitment-table td:nth-child(5) {
  width: 190px;
}

.commitment-table th:nth-child(6),
.commitment-table td:nth-child(6) {
  width: 220px;
}

.commitment-table th:nth-child(7),
.commitment-table td:nth-child(7) {
  width: 180px;
}

.commitment-creation-cell {
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.commitment-row-index {
  align-items: center;
  color: #214161;
  display: inline-flex;
  font-weight: 950;
  min-height: 34px;
}

.commitment-date-cell,
.commitment-user-cell,
.commitment-row-actions,
.commitment-delivery-cell {
  align-items: center;
  display: flex;
}

.commitment-date-cell {
  color: #10233f;
  gap: 10px;
}

.commitment-date-cell > .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #24405f;
  height: 17px;
  min-height: 17px;
  min-width: 17px;
  width: 17px;
}

.commitment-date-cell strong,
.commitment-user-cell strong {
  color: #10233f;
  display: block;
  font-size: .93rem;
  font-weight: 900;
  line-height: 1.25;
}

.commitment-date-cell span,
.commitment-delivery-cell > span,
.commitment-table-muted {
  color: #667891;
  display: block;
  font-size: .82rem;
  font-weight: 800;
  margin-top: 3px;
}

.commitment-user-cell {
  gap: 13px;
  min-width: 0;
}

.commitment-user-cell strong {
  overflow-wrap: anywhere;
}

.commitment-avatar {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .84rem;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.commitment-avatar-blue {
  background: #e2f4ff;
  color: #0b66f6;
}

.commitment-avatar-purple {
  background: #efe5ff;
  color: #7c3aed;
}

.commitment-due-cell {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.commitment-premium-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 950;
  gap: 7px;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  white-space: nowrap;
}

.commitment-premium-badge .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 15px;
  min-height: 15px;
  min-width: 15px;
  width: 15px;
}

.commitment-premium-badge-success {
  background: #def7ec;
  color: #087443;
}

.commitment-premium-badge-warning {
  background: #fff2dc;
  color: #d86800;
}

.commitment-premium-badge-danger {
  background: #ffe4e6;
  color: #e11d48;
}

.commitment-premium-badge-info {
  background: #eaf2ff;
  color: #0b66f6;
}

.commitment-premium-badge-muted {
  background: #edf2f7;
  color: #52667f;
}

.commitment-delivery-cell {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.commitment-row-actions {
  gap: 8px;
}

.commitment-icon-button,
.commitment-row-menu summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 61, .12);
  border-radius: 9px;
  color: #12305a;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  width: 40px;
}

.commitment-icon-button:hover,
.commitment-icon-button:focus-visible,
.commitment-row-menu summary:hover,
.commitment-row-menu summary:focus-visible {
  background: #f4f8ff;
  box-shadow: 0 12px 24px rgba(20, 38, 61, .08);
  transform: translateY(-1px);
}

.commitment-icon-button:focus-visible,
.commitment-row-menu summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.commitment-icon-button .epi-doc-icon,
.commitment-row-menu summary .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 18px;
  min-height: 18px;
  min-width: 18px;
  width: 18px;
}

.commitment-row-menu .epi-row-menu-panel button {
  align-items: center;
  color: #12305a;
  display: flex;
  gap: 8px;
}

.commitment-row-menu .epi-row-menu-panel button:hover {
  background: #f4f8ff;
}

.commitment-menu-form button {
  color: #d92d20 !important;
}

.commitment-menu-form button:hover {
  background: #fff0ee !important;
}

.commitment-menu-muted {
  color: #6b7c92;
  display: block;
  font-size: .82rem;
  font-weight: 850;
  padding: 8px 12px;
}

.commitment-empty {
  color: #61728b !important;
  font-weight: 800;
  padding: 28px !important;
  text-align: center !important;
}

.commitment-view-shell {
  display: grid;
  gap: 18px;
}

.commitment-modal-hero {
  align-items: center;
  background: radial-gradient(circle at top left, rgba(0, 154, 163, .22), transparent 46%), linear-gradient(135deg, rgba(244, 248, 251, .96), rgba(255, 255, 255, .86));
  border: 1px solid rgba(0, 154, 163, .22);
  border-radius: 28px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 22px;
}

.commitment-modal-label,
.commitment-detail-grid p {
  color: #60748d;
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.commitment-modal-hero strong {
  color: #10233d;
  display: block;
  font-size: 1.34rem;
  line-height: 1.2;
  margin-top: 6px;
}

.commitment-section-title {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 15px;
}

.commitment-section-title strong,
.commitment-file-card strong {
  color: #10233d;
  display: block;
  font-size: 1.06rem;
  line-height: 1.25;
}

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

.commitment-detail-grid article {
  background: linear-gradient(180deg, rgba(244, 248, 251, .92), rgba(255, 255, 255, .78));
  border: 1px solid rgba(20, 38, 61, .10);
  border-radius: 18px;
  min-height: 82px;
  padding: 15px 16px;
}

.commitment-detail-grid strong {
  color: #10233d;
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  margin-top: 9px;
  word-break: break-word;
}

.commitment-message-box {
  background: linear-gradient(180deg, rgba(244, 248, 251, .90), rgba(255, 255, 255, .94));
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 18px;
  color: #10233d;
  font-weight: 750;
  line-height: 1.7;
  min-height: 86px;
  padding: 17px 18px;
  white-space: normal;
}

.commitment-section-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .10);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(16, 35, 61, .08);
  color: #10233d;
  padding: 20px;
}

.commitment-completion-card {
  background: linear-gradient(135deg, rgba(244, 248, 251, .98), rgba(255, 255, 255, .96));
  border-color: rgba(0, 154, 163, .16);
}

.commitment-helper-text {
  color: #60748d;
  font-weight: 800;
  line-height: 1.45;
  margin: -4px 0 16px;
}

.commitment-completion-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.commitment-completion-form label {
  color: #10233d;
  display: grid;
  font-weight: 900;
  gap: 8px;
}

.commitment-file-card {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.commitment-file-actions {
  align-items: center;
  display: flex;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 0;
}

.commitment-file-chip {
  align-items: center;
  background: rgba(244, 248, 251, .88);
  border: 1px solid rgba(20, 38, 61, .10);
  border-radius: 999px;
  display: inline-flex;
  gap: 12px;
  max-width: 100%;
  padding: 8px 8px 8px 14px;
}

.commitment-file-chip span {
  color: #10233d;
  display: inline-block;
  font-weight: 900;
  max-width: min(520px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commitment-muted {
  color: #60748d;
  font-weight: 800;
}

@media (max-width: 1450px) {
  .commitment-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commitment-search-field,
  .commitment-period-field {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .commitment-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .commitment-stat-grid,
  .commitment-filter-card,
  .commitment-detail-grid {
    grid-template-columns: 1fr;
  }

  .commitment-search-field,
  .commitment-period-field {
    grid-column: auto;
  }

  .commitment-action-row,
  .commitment-modal-hero,
  .commitment-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .commitment-file-actions {
    justify-content: flex-start;
  }
}

/* Gerador de proposta premium. */
.main-content:has(.proposal-premium) {
  background: #f5f8fc;
  gap: 24px;
  padding: 30px 34px;
}

.main-content:has(.proposal-premium) > .top-session-bar {
  display: none;
}

.proposal-premium {
  color: #10233f;
  display: grid;
  gap: 24px;
  width: 100%;
}

.proposal-premium-topbar,
.proposal-premium-heading,
.proposal-premium-session,
.proposal-premium-user,
.proposal-premium-table-head,
.proposal-premium-table-head > div,
.proposal-premium-footer,
.proposal-premium-pagination,
.proposal-premium-client,
.proposal-premium-creator,
.proposal-premium-actions,
.proposal-premium-date,
.proposal-premium-doc,
.proposal-premium-detail-head,
.proposal-premium-detail-file,
.proposal-premium-detail-button {
  align-items: center;
  display: flex;
}

.proposal-premium-topbar {
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
}

.proposal-premium-heading {
  gap: 18px;
}

.proposal-premium-heading > span {
  align-items: center;
  background: linear-gradient(145deg, #e7fbf7, #f8fffd);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(10, 168, 142, .1);
  color: #0aa88e;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.proposal-premium-heading small {
  color: #0f766e;
  display: block;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.proposal-premium-heading h1 {
  color: #101f3b;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 6px;
}

.proposal-premium-heading p,
.proposal-premium-stats p,
.proposal-premium-footer p,
.proposal-premium-detail-list p {
  color: #5f708a;
  line-height: 1.45;
  margin: 0;
}

.proposal-premium-session {
  gap: 18px;
}

.proposal-premium-refresh,
.proposal-premium-session form button,
.proposal-premium-detail-file a,
.proposal-premium-detail-button {
  border: 1px solid rgba(20, 38, 61, .1);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.proposal-premium-refresh {
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 38, 61, .08);
  color: #0aa88e;
  gap: 10px;
  padding: 0 22px;
}

.proposal-premium-session form button {
  background: #ffffff;
  color: #ef233c;
  gap: 10px;
  padding: 0 20px;
}

.proposal-premium-refresh:hover,
.proposal-premium-session form button:hover,
.proposal-premium-new:hover,
.proposal-premium-detail-button:hover,
.proposal-premium-actions button:hover,
.proposal-premium-actions a:hover,
.proposal-premium-detail-file a:hover {
  transform: translateY(-1px);
}

.proposal-premium-actions button.is-copied {
  background: #e8f8ef;
  color: #18a764;
}

.proposal-premium-user {
  border-left: 1px solid rgba(20, 38, 61, .08);
  gap: 12px;
  padding-left: 18px;
}

.proposal-premium-user > span {
  align-items: center;
  background: #eef6f5;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.proposal-premium-user span:not(.proposal-premium-icon) {
  color: #6c7d94;
  display: block;
  font-size: .76rem;
  font-weight: 850;
}

.proposal-premium-user strong {
  color: #10233f;
  display: block;
  font-weight: 950;
}

.proposal-premium-icon svg {
  display: block;
  height: 18px;
  width: 18px;
}

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

.proposal-premium-stats article {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(20, 38, 61, .07);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  min-height: 130px;
  padding: 28px;
}

.proposal-premium-stats article > span {
  align-items: center;
  border-radius: 18px;
  display: inline-flex;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.proposal-premium-stats small,
.proposal-premium-table th {
  color: #213652;
  display: block;
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proposal-premium-stats strong {
  color: #0e1f3a;
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 8px 0 12px;
}

.proposal-premium-stats p {
  font-size: .82rem;
  font-weight: 750;
}

.proposal-premium-stats .is-cyan { background: #e4fbf7; color: #0aa88e; }
.proposal-premium-stats .is-green { background: #e8f8ef; color: #18a764; }
.proposal-premium-stats .is-purple { background: #f0eaff; color: #7c3aed; }
.proposal-premium-stats .is-orange { background: #fff3df; color: #f59e0b; }

.proposal-premium-filter-card,
.proposal-premium-table-card,
.proposal-premium-detail {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(20, 38, 61, .07);
}

.proposal-premium-filter-card {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(260px, 1.4fr) minmax(120px, .55fr) minmax(120px, .55fr) minmax(210px, .8fr) minmax(120px, .5fr);
  padding: 26px 28px;
}

.proposal-premium-new {
  align-items: center;
  background: linear-gradient(135deg, #16c79a, #079b83);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(7, 155, 131, .22);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.proposal-premium-filter-card label {
  display: grid;
  gap: 8px;
}

.proposal-premium-filter-card label > span {
  color: #223855;
  font-size: .78rem;
  font-weight: 900;
}

.proposal-premium-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  display: flex !important;
  gap: 10px !important;
  min-height: 48px;
  padding: 0 16px;
}

.proposal-premium-search input {
  border: 0;
  color: #172943;
  flex: 1;
  font-weight: 800;
  outline: none;
}

.proposal-premium-filter-card input,
.proposal-premium-filter-card select,
.proposal-form input,
.proposal-form select,
.proposal-form textarea {
  background-color: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  color: #172943;
  font-size: .92rem;
  font-weight: 800;
  min-height: 48px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.proposal-premium-filter-card select,
.proposal-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #566a84 50%), linear-gradient(135deg, #566a84 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 40px;
}

.proposal-premium-filter-card input:focus,
.proposal-premium-filter-card select:focus,
.proposal-form input:focus,
.proposal-form select:focus,
.proposal-form textarea:focus {
  border-color: rgba(10, 168, 142, .45);
  box-shadow: 0 0 0 4px rgba(10, 168, 142, .1);
  outline: none;
}

.proposal-premium-period > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.proposal-premium-period em {
  color: #8a9ab1;
  font-style: normal;
  font-weight: 950;
}

.proposal-premium-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

.proposal-premium-table-card {
  overflow: hidden;
}

.proposal-premium-table-head {
  gap: 18px;
  justify-content: space-between;
  padding: 26px 28px 18px;
}

.proposal-premium-table-head > div {
  gap: 12px;
}

.proposal-premium-table-head h2 {
  color: #101f3b;
  font-size: 1.45rem;
  letter-spacing: 0;
  margin: 0;
}

.proposal-premium-table-head span {
  background: #e4fbf7;
  border-radius: 999px;
  color: #079b83;
  font-size: .78rem;
  font-weight: 900;
  padding: 7px 12px;
}

.proposal-premium-table-scroll {
  overflow: auto;
}

.proposal-premium-table {
  border-collapse: collapse;
  display: table;
  min-width: 1060px;
  table-layout: fixed;
  width: 100%;
}

.proposal-premium-table thead {
  display: table-header-group;
}

.proposal-premium-table tbody {
  display: table-row-group;
}

.proposal-premium-table tr {
  display: table-row;
}

.proposal-premium-table th {
  background: #f6f9fc;
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  color: #62738a;
  display: table-cell !important;
  padding: 16px 26px;
  text-align: left;
  vertical-align: middle;
}

.proposal-premium-table td {
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  color: #10233f;
  display: table-cell;
  font-weight: 800;
  padding: 18px 26px;
  text-align: left;
  vertical-align: middle;
}

.proposal-premium-table th:nth-child(1),
.proposal-premium-table td:nth-child(1) {
  width: 120px;
}

.proposal-premium-table th:nth-child(2),
.proposal-premium-table td:nth-child(2) {
  width: 250px;
}

.proposal-premium-table th:nth-child(3),
.proposal-premium-table td:nth-child(3) {
  width: 360px;
}

.proposal-premium-table th:nth-child(4),
.proposal-premium-table td:nth-child(4) {
  width: 190px;
}

.proposal-premium-table th:nth-child(5),
.proposal-premium-table td:nth-child(5) {
  width: 190px;
}

.proposal-premium-table th:nth-child(6),
.proposal-premium-table td:nth-child(6) {
  width: 120px;
}

.proposal-premium-table th:nth-child(7),
.proposal-premium-table td:nth-child(7) {
  width: 92px;
}

.proposal-premium-table th:nth-child(8),
.proposal-premium-table td:nth-child(8) {
  width: 170px;
}

.proposal-premium-row {
  cursor: pointer;
  transition: background 160ms ease;
}

.proposal-premium-row:hover,
.proposal-premium-row.is-selected {
  background: linear-gradient(90deg, rgba(16, 199, 154, .1), rgba(234, 251, 247, .2));
}

.proposal-premium-client,
.proposal-premium-creator {
  gap: 12px;
}

.proposal-premium-client span,
.proposal-premium-creator span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.proposal-premium-client span {
  background: #e4f0ff;
  color: #0969da;
}

.proposal-premium-creator span {
  background: #eef2f7;
  color: #29405d;
}

.proposal-premium-client strong,
.proposal-premium-creator strong {
  color: #10233f;
  font-weight: 900;
}

.proposal-premium-date {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.proposal-premium-date .proposal-premium-icon {
  color: #688198;
  left: -24px;
  position: absolute;
  top: 0;
}

.proposal-premium-date small {
  color: #5f708a;
  display: block;
  font-size: .75rem;
}

.proposal-premium-doc {
  background: #e8f3ff;
  border-radius: 8px;
  color: #075fce;
  height: 46px;
  justify-content: center;
  text-decoration: none;
  width: 52px;
}

.proposal-premium-pdf {
  background: #fff1f2;
  color: #dc2626;
}

.proposal-premium-pdf:hover,
.proposal-premium-pdf:focus-visible {
  background: #ffe4e6;
  box-shadow: 0 12px 24px rgba(220, 38, 38, .12);
  outline: none;
}

.proposal-premium-doc span:not(.proposal-premium-icon) {
  display: none;
}

.proposal-premium-actions {
  gap: 10px;
}

.proposal-premium-delete-form {
  display: inline-flex;
  margin: 0;
}

.proposal-premium-actions button,
.proposal-premium-actions a {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(98, 116, 142, .18);
  border-radius: 8px;
  color: #10233f;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  width: 40px;
}

.proposal-premium-actions button.proposal-premium-delete {
  background: #fff7f7;
  border-color: rgba(220, 38, 38, .22);
  color: #dc2626;
}

.proposal-premium-actions button.proposal-premium-delete:hover,
.proposal-premium-actions button.proposal-premium-delete:focus-visible {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, .42);
  box-shadow: 0 12px 24px rgba(220, 38, 38, .12);
  outline: none;
}

.proposal-premium-empty {
  color: #687991 !important;
  font-weight: 850 !important;
  padding: 32px !important;
  text-align: center !important;
}

.proposal-premium-footer {
  justify-content: space-between;
  padding: 22px 28px 26px;
}

.proposal-premium-pagination {
  gap: 10px;
}

.proposal-premium-pagination button,
.proposal-premium-pagination span {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(98, 116, 142, .18);
  border-radius: 8px;
  color: #10233f;
  display: inline-flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
}

.proposal-premium-pagination button.is-active {
  background: linear-gradient(135deg, #16c79a, #079b83);
  border-color: transparent;
  color: #ffffff;
}

.proposal-premium-pagination button:disabled {
  color: #a7b4c4;
  cursor: not-allowed;
}

.proposal-premium-footer label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 82px;
}

.proposal-premium-footer label span {
  color: #5f708a;
  font-weight: 800;
}

.proposal-premium-footer select {
  background: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 8px;
  color: #10233f;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
}

.proposal-premium-detail {
  display: grid;
  gap: 20px;
  padding: 28px;
  position: sticky;
  top: 22px;
}

.proposal-premium-detail-head {
  justify-content: space-between;
}

.proposal-premium-detail-head h2 {
  color: #10233f;
  font-size: 1.35rem;
  margin: 0;
}

.proposal-premium-detail-head button {
  background: #f3f7fb;
  border: 0;
  border-radius: 8px;
  color: #10233f;
  cursor: pointer;
  height: 38px;
  width: 38px;
}

.proposal-premium-detail-list {
  display: grid;
  gap: 18px;
}

.proposal-premium-detail-list > div {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto 1fr;
}

.proposal-premium-detail-list > div > .proposal-premium-icon {
  align-items: center;
  background: #f0f6fb;
  border-radius: 8px;
  color: #516983;
  display: inline-flex;
  grid-row: span 2;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.proposal-premium-detail-list span:not(.proposal-premium-icon) {
  color: #6c7d94;
  font-size: .78rem;
  font-weight: 850;
}

.proposal-premium-detail-list strong,
.proposal-premium-detail-list b {
  color: #10233f;
  font-size: .92rem;
  font-weight: 950;
}

.proposal-premium-detail-list p {
  color: #10233f;
  font-weight: 800;
}

.proposal-premium-detail-file {
  background: #eef6ff;
  border-radius: 8px;
  gap: 12px;
  padding: 14px;
}

.proposal-premium-detail-file > span {
  align-items: center;
  background: #0969da;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.proposal-premium-detail-file div {
  flex: 1;
}

.proposal-premium-detail-file strong {
  color: #10233f;
  display: block;
  font-weight: 950;
}

.proposal-premium-detail-file small {
  color: #60748d;
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.proposal-premium-detail-file a {
  background: #ffffff;
  color: #0969da;
  min-height: 38px;
  padding: 0 14px;
}

.proposal-premium-detail-button {
  background: linear-gradient(135deg, #16c79a, #079b83);
  box-shadow: 0 20px 42px rgba(7, 155, 131, .22);
  color: #ffffff;
  gap: 10px;
  justify-content: center;
  padding: 0 18px;
}

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

#modal-proposal-create .modal-panel-wide {
  border-radius: 8px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  width: min(96vw, 1320px);
}

#modal-proposal-create .modal-head {
  display: none;
}

#modal-proposal-create .modal-close {
  background: #f3f6fb;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  color: #081a34;
  font-size: 0;
  height: 48px;
  right: 26px;
  top: 26px;
  width: 48px;
  z-index: 4;
}

#modal-proposal-create .modal-close::before,
#modal-proposal-create .modal-close::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 14px;
  position: absolute;
  top: 23px;
  width: 20px;
}

#modal-proposal-create .modal-close::before {
  transform: rotate(45deg);
}

#modal-proposal-create .modal-close::after {
  transform: rotate(-45deg);
}

.proposal-premium-modal-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proposal-premium-create-form {
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  gap: 0;
  padding: 0;
}

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

.proposal-form label {
  color: #223855;
  display: grid;
  font-size: .84rem;
  font-weight: 900;
  gap: 8px;
}

.proposal-form label span {
  color: #64748b;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proposal-form input,
.proposal-form textarea {
  background: rgba(255, 255, 255, .92);
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #10233f;
  font-weight: 850;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.proposal-form input {
  min-height: 46px;
  padding: 0 14px;
}

.proposal-form input:focus,
.proposal-form textarea:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.proposal-form textarea {
  min-height: 230px;
  padding: 14px 16px;
  resize: vertical;
}

.proposal-premium-modal-scope textarea {
  min-height: 250px;
}

.proposal-speech-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proposal-speech-status {
  color: #60748d;
  font-weight: 850;
}

.proposal-create-hero {
  align-items: center;
  display: flex;
  gap: 22px;
  padding: 34px 58px 24px;
}

.proposal-create-hero-icon {
  align-items: center;
  background: linear-gradient(135deg, #e7f8f1, #eef7f5);
  border-radius: 8px;
  color: #0b8f70;
  display: inline-flex;
  flex: 0 0 auto;
  height: 84px;
  justify-content: center;
  width: 84px;
}

.proposal-create-hero-icon .proposal-premium-icon svg {
  height: 40px;
  width: 40px;
}

.proposal-create-hero p {
  color: #0b8f70;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.proposal-create-hero h2 {
  color: #071a34;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  letter-spacing: 0;
  line-height: .98;
  margin: 0 0 12px;
}

.proposal-create-hero span:not(.proposal-create-hero-icon) {
  color: #516581;
  font-size: 1.05rem;
  font-weight: 650;
}

.proposal-create-body {
  display: grid;
  gap: 28px;
  padding: 10px 58px 30px;
}

.proposal-create-tabs {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
}

.proposal-create-tab {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  color: #071a34;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 82px;
  padding: 16px 18px;
  position: relative;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.proposal-create-tab::after {
  background: transparent;
  border-radius: 999px;
  bottom: -17px;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: background .16s ease, width .16s ease;
  width: 38px;
}

.proposal-create-tab:hover,
.proposal-create-tab:focus-visible {
  border-color: #99d6c3;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
  outline: none;
  transform: translateY(-1px);
}

.proposal-create-tab.is-active {
  background: linear-gradient(135deg, #0b8f70, #057861);
  border-color: #0b8f70;
  box-shadow: 0 18px 38px rgba(11, 143, 112, .24);
  color: #ffffff;
}

.proposal-create-tab.is-active::after {
  background: #0b8f70;
  width: 48px;
}

.proposal-create-tab > .proposal-premium-icon {
  height: 28px;
  width: 28px;
}

.proposal-create-tab .proposal-premium-icon svg {
  height: 28px;
  width: 28px;
}

.proposal-create-tab strong,
.proposal-create-tab small {
  display: block;
  letter-spacing: 0;
}

.proposal-create-tab strong {
  font-size: .96rem;
  font-weight: 950;
  line-height: 1.2;
}

.proposal-create-tab small {
  color: #516581;
  font-size: .88rem;
  font-weight: 720;
  margin-top: 5px;
}

.proposal-create-tab.is-active small {
  color: rgba(255, 255, 255, .82);
}

.proposal-create-panels {
  margin-top: 16px;
}

.proposal-create-panel[hidden] {
  display: none;
}

.proposal-create-panel-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, .07);
  display: grid;
  gap: 24px;
  min-height: 430px;
  padding: 30px;
}

.proposal-create-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.proposal-create-panel-head h3 {
  color: #071a34;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.proposal-create-panel-head p {
  color: #516581;
  font-size: .98rem;
  font-weight: 720;
  line-height: 1.45;
  margin: 8px 0 0;
}

.proposal-create-panel-head > span {
  align-items: center;
  background: #eef8f4;
  border-radius: 8px;
  color: #0b8f70;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.proposal-create-field-narrow {
  max-width: 560px;
  width: 100%;
}

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

.proposal-create-review-grid > div {
  background: #ffffff;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 16px;
}

.proposal-create-review-grid span {
  color: #64748b;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proposal-create-review-grid strong {
  color: #071a34;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.proposal-create-review-wide {
  grid-column: 1 / -1;
}

.proposal-create-panel[data-proposal-panel="included"] .proposal-create-inclusions {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.proposal-billing-lines {
  border-top: 1px solid #e6edf4;
  display: grid;
  gap: 14px;
  padding-top: 22px;
}

.proposal-billing-head h4 {
  color: #071a34;
  font-size: 1.12rem;
  letter-spacing: 0;
  margin: 0;
}

.proposal-billing-head p {
  color: #516581;
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.45;
  margin: 6px 0 0;
}

.proposal-billing-total-field {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.proposal-billing-total-field > span {
  color: #667792;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proposal-billing-total-field > span b {
  color: #ff3b30;
}

.proposal-billing-total-field input {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 0 8px 8px 0;
  color: #071a34;
  font-size: 1rem;
  font-weight: 950;
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
}

.proposal-billing-total-field input:focus {
  border-color: #0b8f70;
  box-shadow: 0 0 0 4px rgba(11, 143, 112, .11);
  outline: none;
}

.proposal-billing-total-field .proposal-billing-money span {
  min-height: 46px;
}

.proposal-billing-table-wrap {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  overflow: auto;
}

.proposal-billing-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  width: 100%;
}

.proposal-billing-table th,
.proposal-billing-table td {
  border-bottom: 1px solid #e6edf4;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.proposal-billing-table th {
  background: #f8fbfd;
  color: #516581;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proposal-billing-table tbody tr:hover td {
  background: #fbfdff;
}

.proposal-billing-table tfoot td {
  background: #f8fbfd;
  border-bottom: 0;
  color: #071a34;
  font-size: .9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proposal-billing-index {
  color: #071a34;
  font-weight: 950;
  text-align: center;
  width: 72px;
}

.proposal-billing-table input {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #071a34;
  font-size: .92rem;
  font-weight: 850;
  min-height: 40px;
  padding: 0 12px;
  width: 100%;
}

.proposal-billing-table input:focus {
  border-color: #0b8f70;
  box-shadow: 0 0 0 4px rgba(11, 143, 112, .11);
  outline: none;
}

.proposal-billing-table input[readonly] {
  background: #f8fbfd;
  color: #516581;
  cursor: default;
}

.proposal-billing-input-group {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.proposal-billing-input-group span {
  align-items: center;
  align-self: stretch;
  background: #f8fbfd;
  border: 1px solid #d7e0ea;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #516581;
  display: inline-flex;
  font-weight: 900;
  padding: 0 12px;
}

.proposal-billing-input-group input {
  border-radius: 8px 0 0 8px;
}

.proposal-billing-money {
  grid-template-columns: auto minmax(0, 1fr);
}

.proposal-billing-money span {
  border-left: 1px solid #d7e0ea;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.proposal-billing-money input {
  border-radius: 0 8px 8px 0;
}

.proposal-billing-remove {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #516581;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.proposal-billing-remove:hover,
.proposal-billing-remove:focus-visible {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
  outline: none;
}

.proposal-billing-remove:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.proposal-create-main {
  display: grid;
  gap: 18px;
}

.proposal-create-field {
  display: grid;
  gap: 10px;
}

.proposal-create-field-full {
  grid-column: 1 / -1;
}

.proposal-create-field > span {
  color: #071a34;
  font-size: .92rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.proposal-create-field > span b {
  color: #ef4444;
}

.proposal-create-control,
.proposal-create-stepper,
.proposal-create-upload,
.proposal-create-textarea {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #071a34;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.proposal-create-control,
.proposal-create-stepper {
  align-items: center;
  display: flex;
  min-height: 56px;
}

.proposal-create-control:focus-within,
.proposal-create-stepper:focus-within,
.proposal-create-upload:focus-within,
.proposal-create-textarea:focus-within {
  border-color: #0b8f70;
  box-shadow: 0 0 0 4px rgba(11, 143, 112, .11);
}

.proposal-create-control > .proposal-premium-icon,
.proposal-create-stepper > .proposal-premium-icon,
.proposal-create-textarea > .proposal-premium-icon {
  color: #0b8f70;
  flex: 0 0 auto;
  margin-left: 18px;
}

.proposal-create-control input,
.proposal-create-control select,
.proposal-create-stepper input {
  appearance: none;
  border: 0;
  box-shadow: none;
  flex: 1;
  font-size: 1rem;
  min-height: 54px;
  padding: 0 16px;
  width: 100%;
}

.proposal-create-control input:focus,
.proposal-create-control select:focus,
.proposal-create-stepper input:focus {
  box-shadow: none;
}

.proposal-create-stepper input {
  font-size: 1.05rem;
  font-weight: 950;
  min-width: 64px;
}

.proposal-create-stepper button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #071a34;
  cursor: pointer;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 48px;
}

.proposal-create-stepper button:hover,
.proposal-create-stepper button:focus-visible {
  background: #f3f7fb;
  outline: none;
}

.proposal-create-add {
  align-items: center;
  align-self: stretch;
  background: #f8fbfd;
  border: 0;
  border-left: 1px solid #e6edf4;
  color: #0b8f70;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 52px;
  justify-content: center;
  transition: background .16s ease, color .16s ease;
}

.proposal-create-add:hover,
.proposal-create-add:focus-visible {
  background: #e9f8f2;
  color: #047857;
  outline: none;
}

.proposal-create-add .proposal-premium-icon {
  height: 19px;
  margin: 0;
  width: 19px;
}

.proposal-create-stepper button + button {
  border-left: 1px solid #e6edf4;
}

.proposal-quick-create {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.proposal-quick-create[hidden] {
  display: none;
}

.proposal-quick-modal {
  display: grid;
  gap: 18px;
}

.proposal-quick-create-head,
.proposal-quick-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.proposal-quick-create-head strong {
  color: #071a34;
  font-size: .95rem;
  font-weight: 950;
}

.proposal-quick-create-head button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #60748d;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

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

.proposal-quick-grid-single {
  grid-template-columns: 1fr;
}

.proposal-quick-grid input {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #071a34;
  font-size: .95rem;
  min-height: 44px;
  padding: 0 13px;
}

.proposal-quick-grid input:focus {
  border-color: #0b8f70;
  box-shadow: 0 0 0 4px rgba(11, 143, 112, .11);
  outline: none;
}

.proposal-quick-grid input[data-proposal-quick-manager-email],
.proposal-quick-grid input[data-proposal-quick-client-address],
.proposal-quick-grid input[data-proposal-quick-client-payment-term] {
  grid-column: 1 / -1;
}

.proposal-quick-actions small {
  color: #60748d;
  font-size: .82rem;
  font-weight: 800;
  margin-right: auto;
}

.proposal-quick-actions small.is-error {
  color: #dc2626;
}

.proposal-quick-actions button {
  align-items: center;
  background: #071a34;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
}

.proposal-quick-actions button:hover,
.proposal-quick-actions button:focus-visible {
  background: #10284a;
  outline: none;
}

.proposal-quick-actions button[data-proposal-quick-cancel] {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  color: #60748d;
}

.proposal-quick-actions button[data-proposal-quick-cancel]:hover,
.proposal-quick-actions button[data-proposal-quick-cancel]:focus-visible {
  background: #f4f7fb;
  color: #071a34;
}

.proposal-quick-actions button:disabled {
  cursor: wait;
  opacity: .62;
}

.proposal-create-inclusions {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.proposal-create-inclusions-head {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.proposal-create-inclusions-head > span {
  align-items: center;
  background: #eef8f4;
  border-radius: 8px;
  color: #0b8f70;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.proposal-create-inclusions-head strong {
  color: #071a34;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 4px;
}

.proposal-create-inclusions-head small {
  color: #60748d;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.45;
}

.proposal-create-inclusions-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proposal-create-inclusions-grid-compact {
  margin-top: -4px;
}

.proposal-create-inclusions-subhead {
  border-top: 1px solid #e6edf4;
  display: grid;
  gap: 3px;
  padding-top: 16px;
}

.proposal-create-inclusions-subhead strong {
  color: #071a34;
  font-size: .92rem;
  font-weight: 950;
}

.proposal-create-inclusions-subhead small {
  color: #60748d;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.45;
}

.proposal-create-check {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 54px;
  padding: 12px 14px;
  position: relative;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.proposal-create-check:has(input:checked) {
  background: linear-gradient(180deg, #f0fbf7, #ffffff);
  border-color: rgba(11, 143, 112, .42);
  box-shadow: inset 0 0 0 1px rgba(11, 143, 112, .08);
}

.proposal-create-check:has(input:not(:checked)) {
  background: #ffffff;
  border-color: #d7e1ec;
}

.proposal-create-check:hover,
.proposal-create-check:focus-within {
  border-color: #9fd9c4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.proposal-create-check input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.proposal-create-check-box {
  align-items: center;
  background: #f3f7fb;
  border: 1px solid #cfdbe8;
  border-radius: 8px;
  color: transparent;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.proposal-create-check input:not(:checked) + .proposal-create-check-box {
  background: #ffffff;
  border-color: #b8c7d8;
  color: transparent;
}

.proposal-create-check input:checked + .proposal-create-check-box {
  background: #0b8f70;
  border-color: #0b8f70;
  color: #ffffff;
}

.proposal-create-check input:focus-visible + .proposal-create-check-box {
  box-shadow: 0 0 0 4px rgba(11, 143, 112, .15);
}

.proposal-create-check-box .proposal-premium-icon {
  height: 16px;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .14s ease, transform .14s ease;
  width: 16px;
}

.proposal-create-check input:not(:checked) + .proposal-create-check-box .proposal-premium-icon {
  opacity: 0;
  transform: scale(.82);
  visibility: hidden;
}

.proposal-create-check input:checked + .proposal-create-check-box .proposal-premium-icon {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.proposal-create-check-content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.proposal-create-check-content > span {
  color: #071a34;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.proposal-create-check-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  min-height: 24px;
  padding: 0 10px;
  text-transform: uppercase;
}

.proposal-create-check input:checked ~ .proposal-create-check-content .proposal-create-check-status {
  background: #dff8ed;
  color: #08735b;
}

.proposal-create-check input:checked ~ .proposal-create-check-content .proposal-create-check-status::before {
  content: "Incluido";
}

.proposal-create-check input:not(:checked) ~ .proposal-create-check-content .proposal-create-check-status {
  background: #eef2f6;
  color: #64748b;
}

.proposal-create-check input:not(:checked) ~ .proposal-create-check-content .proposal-create-check-status::before {
  content: "Nao incluido";
}

.proposal-create-upload {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px 18px 16px;
}

.proposal-premium-file-input {
  border: 0;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.proposal-create-upload button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bfcef0;
  border-radius: 8px;
  color: #155bdc;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
}

.proposal-create-upload button:hover,
.proposal-create-upload button:focus-visible {
  background: #f3f7ff;
  border-color: #155bdc;
  outline: none;
}

.proposal-create-upload strong {
  align-self: center;
  color: #66748c;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-create-upload small {
  color: #516581;
  font-size: .86rem;
  font-weight: 760;
  grid-column: 1 / -1;
}

.proposal-create-textarea {
  min-height: 166px;
  position: relative;
}

.proposal-create-textarea .proposal-premium-icon {
  left: 0;
  position: absolute;
  top: 22px;
}

.proposal-create-textarea textarea {
  border: 0;
  box-shadow: none;
  color: #071a34;
  font-size: 1rem;
  line-height: 1.55;
  min-height: 164px;
  padding: 22px 22px 34px 58px;
  width: 100%;
}

.proposal-create-textarea textarea:focus {
  box-shadow: none;
}

.proposal-create-textarea small {
  bottom: 14px;
  color: #697a92;
  font-size: .82rem;
  font-weight: 850;
  position: absolute;
  right: 18px;
}

.proposal-scope-ai-help {
  align-items: center;
  background: linear-gradient(180deg, #f5f9ff, #fbfdff);
  border: 1px solid #d5e2f3;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px 18px;
}

.proposal-scope-ai-help > span {
  align-items: center;
  background: #eaf2ff;
  border-radius: 8px;
  color: #1d63f0;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.proposal-scope-ai-help strong {
  color: #071a34;
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

.proposal-scope-ai-help p {
  color: #516581;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.proposal-scope-ai-help a {
  color: #155bdc;
  font-weight: 950;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.proposal-scope-ai-help a:hover,
.proposal-scope-ai-help a:focus-visible {
  outline: none;
  text-decoration: underline;
}

.proposal-create-tips {
  align-self: start;
  background: linear-gradient(180deg, #f4f7fc, #f8fbff);
  border-radius: 8px;
  display: grid;
  gap: 28px;
  padding: 34px 30px;
}

.proposal-create-tips-head,
.proposal-create-tip,
.proposal-create-safe {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.proposal-create-tips-head > span {
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 24, 40, .08);
  color: #155bdc;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.proposal-create-tips-head strong,
.proposal-create-tip strong,
.proposal-create-safe strong {
  color: #071a34;
  font-weight: 950;
}

.proposal-create-tip > span {
  color: #0b8f70;
  margin-top: 2px;
}

.proposal-create-tip p,
.proposal-create-safe p {
  color: #516581;
  font-weight: 720;
  line-height: 1.65;
  margin: 6px 0 0;
}

.proposal-create-safe {
  border: 1px solid #d5e2f3;
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}

.proposal-create-safe > span {
  color: #1d63f0;
}

.proposal-create-footer {
  align-items: center;
  border-top: 1px solid #e6edf4;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 22px 58px;
}

.proposal-create-cancel,
.proposal-create-submit {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
}

.proposal-create-cancel {
  background: #f1f4f8;
  color: #071a34;
}

.proposal-create-submit {
  background: linear-gradient(135deg, #09294d, #062247);
  box-shadow: 0 18px 34px rgba(6, 34, 71, .24);
  color: #ffffff;
  min-width: 220px;
}

.proposal-create-submit[hidden] {
  display: none;
}

.proposal-create-cancel:hover,
.proposal-create-cancel:focus-visible {
  background: #e7edf5;
  outline: none;
}

.proposal-create-submit:hover,
.proposal-create-submit:focus-visible {
  box-shadow: 0 20px 38px rgba(6, 34, 71, .32);
  filter: brightness(1.05);
  outline: none;
}

.proposal-premium-generating-overlay {
  align-items: center;
  background: rgba(14, 27, 43, .72);
  backdrop-filter: blur(10px);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 99999;
}

body.is-proposal-premium-generating .proposal-premium-generating-overlay {
  display: flex;
}

.proposal-premium-generating-card {
  background: linear-gradient(145deg, #ffffff, #f2fbfa);
  border: 1px solid rgba(10, 168, 142, .18);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(7, 24, 39, .34);
  color: #10233f;
  padding: 34px;
  text-align: center;
  width: min(460px, calc(100vw - 32px));
}

.proposal-premium-loader {
  animation: proposalPremiumSpin 1.2s linear infinite;
  background: conic-gradient(from 0deg, #16c79a, #1d63f0, #16c79a);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(7, 155, 131, .26);
  display: grid;
  height: 92px;
  margin: 0 auto 18px;
  place-items: center;
  position: relative;
  width: 92px;
}

.proposal-premium-loader::before {
  background: #ffffff;
  border-radius: inherit;
  content: "";
  height: 72px;
  position: absolute;
  width: 72px;
}

.proposal-premium-loader span {
  animation: proposalPremiumSpinReverse 1.2s linear infinite;
  color: #0f766e;
  font-weight: 950;
  position: relative;
}

.proposal-premium-generating-card h3 {
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.proposal-premium-generating-card p {
  color: #60748d;
  font-weight: 850;
  line-height: 1.45;
  margin: 0;
}

.proposal-premium-progress {
  background: #dce8ee;
  border-radius: 999px;
  height: 9px;
  margin-top: 22px;
  overflow: hidden;
}

.proposal-premium-progress span {
  animation: proposalPremiumBar 1.35s ease-in-out infinite;
  background: linear-gradient(90deg, #16c79a, #1d63f0);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 45%;
}

@keyframes proposalPremiumSpin {
  to { transform: rotate(360deg); }
}

@keyframes proposalPremiumSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes proposalPremiumBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(240%); }
}

@media (max-width: 1460px) {
  .proposal-premium-filter-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proposal-premium-period {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .proposal-premium-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proposal-premium-workspace {
    grid-template-columns: 1fr;
  }

  .proposal-premium-detail {
    position: static;
  }

  .proposal-create-body {
    grid-template-columns: 1fr;
  }

  .proposal-create-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .proposal-create-tips-head,
  .proposal-create-safe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .main-content:has(.proposal-premium) {
    padding: 20px;
  }

  .proposal-premium-topbar,
  .proposal-premium-session,
  .proposal-premium-table-head,
  .proposal-premium-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .proposal-premium-stats,
  .proposal-premium-filter-card,
  .proposal-form-grid,
  .proposal-premium-modal-grid,
  .proposal-quick-grid,
  .proposal-create-inclusions-grid,
  .proposal-create-review-grid {
    grid-template-columns: 1fr;
  }

  .proposal-premium-period {
    grid-column: auto;
  }

  #modal-proposal-create .modal-panel-wide {
    max-height: calc(100vh - 20px);
    width: min(100%, calc(100vw - 18px));
  }

  #modal-proposal-create .modal-close {
    right: 18px;
    top: 18px;
  }

  .proposal-create-hero,
  .proposal-create-body,
  .proposal-create-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .proposal-create-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
  }

  .proposal-create-hero-icon {
    height: 64px;
    width: 64px;
  }

  .proposal-create-hero-icon .proposal-premium-icon svg {
    height: 32px;
    width: 32px;
  }

  .proposal-create-body {
    gap: 22px;
  }

  .proposal-create-tabs {
    grid-template-columns: 1fr;
  }

  .proposal-create-tab {
    min-height: 68px;
  }

  .proposal-create-tab::after {
    display: none;
  }

  .proposal-create-panel-card {
    min-height: 0;
    padding: 22px;
  }

  .proposal-create-panel-head {
    flex-direction: column-reverse;
  }

  .proposal-create-tips {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .proposal-scope-ai-help {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .proposal-create-upload {
    grid-template-columns: 1fr;
  }

  .proposal-create-upload button,
  .proposal-create-submit,
  .proposal-create-cancel {
    width: 100%;
  }

  .proposal-create-footer {
    flex-direction: column-reverse;
  }

  .proposal-quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .proposal-quick-actions small {
    margin-right: 0;
  }
}

/* Apontamento de CC premium. */
.main-content:has(.cc-premium) {
  background: #f5f8fc;
  gap: 24px;
  padding: 30px 34px;
}

.main-content:has(.cc-premium) > .top-session-bar {
  display: none;
}

.cc-premium {
  color: #10233f;
  display: grid;
  gap: 24px;
  width: 100%;
}

.cc-premium-topbar,
.cc-premium-heading,
.cc-premium-session,
.cc-premium-user,
.cc-premium-table-head,
.cc-premium-table-head > div,
.cc-premium-footer,
.cc-premium-pagination,
.cc-premium-supplier,
.cc-premium-buyer,
.cc-premium-detail-head,
.cc-premium-detail-doc {
  align-items: center;
  display: flex;
}

.cc-premium-topbar {
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
}

.cc-premium-heading {
  gap: 18px;
}

.cc-premium-heading > span {
  align-items: center;
  background: linear-gradient(145deg, #eaf2ff, #f8fbff);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(42, 103, 239, .08);
  color: #1d63f0;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.cc-premium-heading h1 {
  color: #101f3b;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 6px;
}

.cc-premium-heading p,
.cc-premium-stats p,
.cc-premium-footer p,
.cc-premium-detail-head p {
  color: #5f708a;
  line-height: 1.45;
  margin: 0;
}

.cc-premium-heading p {
  font-size: 1.01rem;
  font-weight: 650;
}

.cc-premium-session {
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.cc-premium-session form {
  margin: 0;
}

.cc-premium-refresh,
.cc-premium-session form button,
.cc-premium-export,
.cc-premium-filters button,
.cc-premium-save {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 850;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.cc-premium-refresh,
.cc-premium-export.is-soft,
.cc-premium-filters button {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(37, 99, 235, .16);
  box-shadow: 0 10px 26px rgba(20, 38, 61, .05);
  color: #175ee8;
}

.cc-premium-session form button {
  background: #ffffff;
  border-color: rgba(239, 35, 60, .18);
  box-shadow: 0 12px 28px rgba(239, 35, 60, .08);
  color: #ef233c;
}

.cc-premium-export,
.cc-premium-save {
  background: linear-gradient(135deg, #0b66f6, #0757d5);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
  color: #ffffff;
}

.cc-premium-refresh:hover,
.cc-premium-session form button:hover,
.cc-premium-export:hover,
.cc-premium-filters button:hover,
.cc-premium-save:hover,
.cc-premium-action:hover,
.cc-premium-pagination button:hover {
  transform: translateY(-1px);
}

.cc-premium-user {
  gap: 12px;
  min-height: 48px;
}

.cc-premium-user > .cc-premium-icon {
  background: rgba(255, 255, 255, .84);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(20, 38, 61, .08), 0 12px 24px rgba(20, 38, 61, .05);
  color: #10233f;
  height: 48px;
  width: 48px;
}

.cc-premium-user span {
  color: #4c5f79;
  font-size: .82rem;
  font-weight: 900;
}

.cc-premium-user strong {
  color: #10233f;
  display: block;
  font-size: .96rem;
}

.cc-premium-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.cc-premium-icon svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.cc-premium-heading .cc-premium-icon svg {
  height: 28px;
  width: 28px;
}

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

.cc-premium-stats article {
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(20, 38, 61, .07);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 126px;
  padding: 24px 26px;
}

.cc-premium-stats article > span {
  align-items: center;
  border-radius: 18px;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.cc-premium-stats small {
  color: #1c2f4c;
  display: block;
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.cc-premium-stats strong {
  color: #0e1f3a;
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

.cc-premium-stats p {
  font-size: .82rem;
  font-weight: 750;
}

.cc-premium-stats .is-purple { background: #f0eaff; color: #7c3aed; }
.cc-premium-stats .is-green { background: #e8f8ef; color: #18a764; }
.cc-premium-stats .is-orange { background: #fff1e5; color: #f97316; }
.cc-premium-stats .is-blue { background: #eaf2ff; color: #1d63f0; }

.cc-premium-filters,
.cc-premium-table-card,
.cc-premium-detail {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(20, 38, 61, .07);
}

.cc-premium-filters {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(160px, 1fr)) minmax(150px, auto);
  padding: 28px;
}

.cc-premium-filters label,
.cc-premium-form label {
  display: grid;
  gap: 8px;
}

.cc-premium-filters label > span,
.cc-premium-form label > span,
.cc-premium-footer label > span {
  color: #223855;
  font-size: .78rem;
  font-weight: 900;
}

.cc-premium-filters input,
.cc-premium-filters select,
.cc-premium-form input,
.cc-premium-form select,
.cc-premium-form textarea,
.cc-premium-footer select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  color: #172943;
  font-size: .92rem;
  font-weight: 750;
  min-height: 48px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.cc-premium-filters select,
.cc-premium-form select,
.cc-premium-footer select {
  background-image: linear-gradient(45deg, transparent 50%, #566a84 50%), linear-gradient(135deg, #566a84 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 40px;
}

.cc-premium-filters input:focus,
.cc-premium-filters select:focus,
.cc-premium-form input:focus,
.cc-premium-form select:focus,
.cc-premium-form textarea:focus,
.cc-premium-footer select:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
  outline: none;
}

.cc-premium-period > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.cc-premium-period em {
  color: #8a9ab1;
  font-style: normal;
  font-weight: 950;
}

.cc-premium-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.cc-premium-table-card {
  overflow: hidden;
}

.cc-premium-table-head {
  gap: 18px;
  justify-content: space-between;
  padding: 26px 28px 18px;
}

.cc-premium-table-head > div {
  gap: 12px;
}

.cc-premium-table-head h2 {
  color: #101f3b;
  font-size: 1.45rem;
  letter-spacing: 0;
  margin: 0;
}

.cc-premium-table-head span {
  background: #eaf2ff;
  border-radius: 999px;
  color: #0b66f6;
  font-size: .82rem;
  font-weight: 950;
  min-height: 30px;
  padding: 7px 12px;
}

.cc-premium-table-scroll {
  border-top: 1px solid rgba(20, 38, 61, .06);
  overflow: auto;
  width: 100%;
}

.cc-premium-table {
  border-collapse: collapse;
  min-width: 1120px;
  table-layout: fixed;
  width: 100%;
}

.cc-premium-table th,
.cc-premium-table td {
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  color: #132844;
  font-size: .88rem;
  font-weight: 760;
  padding: 18px 20px;
  text-align: left;
  vertical-align: middle;
}

.cc-premium-table thead th {
  background: #f7f9fc;
  color: #62718a;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cc-premium-table tbody tr {
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.cc-premium-table tbody tr:hover,
.cc-premium-table tbody tr.is-selected {
  background: #eef6ff;
}

.cc-premium-supplier {
  gap: 13px;
}

.cc-premium-supplier > span {
  align-items: center;
  background: #eef4fb;
  border-radius: 9px;
  color: #1d63f0;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.cc-premium-supplier strong,
.cc-premium-buyer strong {
  color: #10233f;
  display: block;
  font-weight: 950;
  line-height: 1.25;
}

.cc-premium-supplier small {
  color: #60748d;
  display: block;
  font-weight: 750;
  margin-top: 4px;
}

.cc-premium-buyer {
  gap: 10px;
}

.cc-premium-buyer > span {
  align-items: center;
  background: #efe5ff;
  border-radius: 999px;
  color: #7c3aed;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.cc-premium-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 950;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  white-space: nowrap;
}

.cc-premium-status-pending {
  background: #fff2dc;
  color: #d86800;
}

.cc-premium-status-done {
  background: #def7ec;
  color: #087443;
}

.cc-premium-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 61, .12);
  border-radius: 9px;
  color: #12305a;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 40px;
}

.cc-premium-detail {
  display: grid;
  gap: 20px;
  padding: 26px;
  position: sticky;
  top: 24px;
}

.cc-premium-detail-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  justify-content: space-between;
  padding-bottom: 16px;
}

.cc-premium-detail-head h2 {
  color: #101f3b;
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.cc-premium-detail-head button {
  background: transparent;
  border: 0;
  color: #536782;
  cursor: pointer;
  padding: 4px;
}

.cc-premium-detail-doc {
  gap: 14px;
}

.cc-premium-detail-doc > span {
  align-items: center;
  background: #eaf2ff;
  border-radius: 16px;
  color: #1d63f0;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.cc-premium-detail-doc strong {
  color: #10233f;
  display: block;
  font-weight: 950;
}

.cc-premium-detail-doc small {
  color: #d86800;
  display: block;
  font-weight: 900;
  margin-top: 4px;
}

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

.cc-premium-detail-grid > div,
.cc-premium-items {
  background: #f8fafc;
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  padding: 14px;
}

.cc-premium-detail-grid span,
.cc-premium-items h3 {
  color: #52667f;
  display: block;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.cc-premium-detail-grid strong,
.cc-premium-detail-grid a {
  color: #10233f;
  display: block;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cc-premium-items {
  display: grid;
  gap: 10px;
}

.cc-premium-items > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cc-premium-items > div span {
  color: #3d506a;
  font-weight: 800;
}

.cc-premium-items > div strong {
  color: #10233f;
}

.cc-premium-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.cc-premium-form b {
  color: #ef233c;
}

.cc-premium-form textarea {
  min-height: 106px;
  padding-block: 14px;
  resize: vertical;
}

.cc-premium-form label small {
  color: #7b8da4;
  font-weight: 800;
  justify-self: end;
}

.cc-premium-save {
  border: 0;
  min-height: 54px;
  width: 100%;
}

.cc-premium-save:disabled {
  cursor: not-allowed;
  filter: grayscale(.25);
  opacity: .55;
  transform: none;
}

.cc-premium-empty {
  color: #61728b !important;
  font-weight: 800;
  padding: 28px !important;
  text-align: center !important;
}

.cc-premium-footer {
  gap: 18px;
  justify-content: space-between;
  padding: 20px 28px 26px;
}

.cc-premium-footer p {
  font-size: .88rem;
  font-weight: 750;
}

.cc-premium-pagination {
  gap: 10px;
  justify-content: center;
}

.cc-premium-pagination button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 9px;
  color: #1c3453;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
}

.cc-premium-pagination button.is-active {
  background: #0b66f6;
  border-color: #0b66f6;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
  color: #ffffff;
}

.cc-premium-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.cc-premium-footer label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 82px;
}

.cc-premium-footer select {
  min-height: 40px;
}

@media (max-width: 1450px) {
  .cc-premium-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cc-premium-period {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .cc-premium-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-premium-workspace {
    grid-template-columns: 1fr;
  }

  .cc-premium-detail {
    position: static;
  }
}

@media (max-width: 760px) {
  .main-content:has(.cc-premium) {
    padding: 20px;
  }

  .cc-premium-topbar,
  .cc-premium-table-head,
  .cc-premium-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cc-premium-stats,
  .cc-premium-filters,
  .cc-premium-detail-grid {
    grid-template-columns: 1fr;
  }

  .cc-premium-period {
    grid-column: auto;
  }
}

.epi-general-logout {
  background: #ffffff;
  border-color: rgba(239, 35, 60, .18);
  box-shadow: 0 12px 28px rgba(239, 35, 60, .08);
  color: #ef233c;
}

.epi-general-logout:hover {
  background: #fff5f6;
  box-shadow: 0 16px 36px rgba(239, 35, 60, .14);
}

.epi-general-filter-card,
.epi-general-table-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(20, 38, 61, .07);
}

.epi-general-filter-card {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
  padding: 28px;
}

.epi-general-filter-grid {
  display: grid;
  gap: 22px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.epi-general-filter-grid label {
  display: grid;
  gap: 9px;
}

.epi-general-filter-grid label > span {
  color: #223855;
  font-size: .82rem;
  font-weight: 950;
}

.epi-general-filter-grid input,
.epi-general-filter-grid select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  color: #172943;
  font-size: .95rem;
  font-weight: 760;
  min-height: 52px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.epi-general-filter-grid select {
  background-image: linear-gradient(45deg, transparent 50%, #566a84 50%), linear-gradient(135deg, #566a84 50%, transparent 50%);
  background-position: calc(100% - 18px) 23px, calc(100% - 13px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 42px;
}

.epi-general-filter-grid input:focus,
.epi-general-filter-grid select:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
  outline: none;
}

.epi-general-filter-actions {
  align-content: center;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: end;
  width: min(100%, 520px);
}

.epi-general-filter-actions form {
  margin: 0;
}

.epi-general-action-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  width: 100%;
}

.epi-general-action-button:hover,
.epi-general-action-button:focus-visible,
.epi-general-icon-button:hover,
.epi-general-icon-button:focus-visible {
  transform: translateY(-1px);
}

.epi-general-action-button:focus-visible,
.epi-general-icon-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.epi-general-action-button .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 20px;
  min-height: 20px;
  min-width: 20px;
  width: 20px;
}

.epi-general-action-primary {
  background: linear-gradient(135deg, #123b75, #06285a);
  box-shadow: 0 16px 34px rgba(6, 40, 90, .18);
  color: #ffffff;
}

.epi-general-action-soft {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .16);
  box-shadow: 0 12px 26px rgba(20, 38, 61, .045);
  color: #0f55d7;
}

.epi-general-action-muted {
  background: #eef1f5;
  border-color: rgba(98, 116, 142, .12);
  color: #12305a;
}

.epi-general-action-danger {
  background: #fff7f7;
  border-color: rgba(220, 38, 38, .22);
  box-shadow: 0 12px 26px rgba(127, 29, 29, .06);
  color: #c91d1d;
}

.epi-general-action-danger:hover,
.epi-general-action-danger:focus-visible {
  background: #fff1f1;
  border-color: rgba(220, 38, 38, .34);
  box-shadow: 0 16px 32px rgba(127, 29, 29, .1);
}

.epi-general-table-card {
  overflow: visible;
}

.epi-general-table-head {
  padding: 28px 28px 24px;
}

.epi-general-table-head h2 {
  color: #101f3b;
  font-size: clamp(1.35rem, 1.55vw, 1.75rem);
  letter-spacing: 0;
  margin: 0;
}

.epi-general-table-premium {
  border-collapse: collapse;
  min-width: 1120px;
  table-layout: fixed;
  width: 100%;
}

.epi-general-table-premium th,
.epi-general-table-premium td {
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  padding: 18px 28px;
  text-align: left;
  vertical-align: middle;
}

.epi-general-table-premium thead th {
  background: #f7f9fc;
  color: #62718a;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.epi-general-table-premium tbody tr {
  transition: background 150ms ease;
}

.epi-general-table-premium tbody tr:hover {
  background: rgba(37, 99, 235, .025);
}

.epi-general-table-premium td {
  color: #132844;
  font-size: .94rem;
  font-weight: 780;
  line-height: 1.45;
}

.epi-general-table-premium th:nth-child(1),
.epi-general-table-premium td:nth-child(1) {
  width: 150px;
}

.epi-general-table-premium th:nth-child(2),
.epi-general-table-premium td:nth-child(2) {
  width: 170px;
}

.epi-general-table-premium th:nth-child(3),
.epi-general-table-premium td:nth-child(3) {
  width: 310px;
}

.epi-general-table-premium th:nth-child(4),
.epi-general-table-premium td:nth-child(4) {
  width: 190px;
}

.epi-general-table-premium th:nth-child(5),
.epi-general-table-premium td:nth-child(5) {
  width: 230px;
}

.epi-general-table-premium th:nth-child(6),
.epi-general-table-premium td:nth-child(6) {
  width: 170px;
}

.epi-general-table-premium th:nth-child(7),
.epi-general-table-premium td:nth-child(7) {
  width: 160px;
}

.epi-general-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.epi-general-status .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 16px;
  min-height: 16px;
  min-width: 16px;
  width: 16px;
}

.epi-general-status-ok {
  background: #def7ec;
  color: #087443;
}

.epi-general-status-warning {
  background: #fff2dc;
  color: #d86800;
}

.epi-general-status-danger {
  background: #ffe4e6;
  color: #e11d48;
}

.epi-general-status-muted {
  background: #edf2f7;
  color: #52667f;
}

.epi-general-expiration {
  color: #18365f !important;
  font-weight: 900 !important;
}

.epi-general-expiration.is-expired {
  color: #ef233c !important;
}

.epi-general-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 61, .12);
  border-radius: 9px;
  color: #12305a;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  width: 42px;
}

.epi-general-icon-button:hover {
  background: #f4f8ff;
  box-shadow: 0 12px 24px rgba(20, 38, 61, .08);
}

.epi-general-icon-button .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 19px;
  min-height: 19px;
  min-width: 19px;
  width: 19px;
}

.epi-row-menu-panel a,
.epi-row-menu-panel button {
  align-items: center;
  display: flex;
  text-decoration: none;
}

.epi-row-menu-panel a {
  border-radius: 8px;
  color: #12305a;
  font-weight: 850;
  min-height: 38px;
  padding: 0 12px;
  width: 100%;
}

.epi-row-menu-panel a:hover {
  background: #f4f8ff;
}

.epi-general-menu .epi-row-menu-panel button {
  color: #12305a;
}

.epi-general-menu .epi-row-menu-panel button:hover {
  background: #f4f8ff;
}

.epi-validity-filter-card,
.epi-validity-table-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(20, 38, 61, .07);
}

.epi-validity-filter-card {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.epi-validity-filter-grid {
  display: grid;
  gap: 22px 26px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.epi-validity-filter-grid label {
  display: grid;
  gap: 9px;
}

.epi-validity-filter-grid label > span {
  color: #223855;
  font-size: .82rem;
  font-weight: 950;
}

.epi-validity-filter-grid input,
.epi-validity-filter-grid select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid rgba(98, 116, 142, .22);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(20, 38, 61, .035);
  color: #172943;
  font-size: .95rem;
  font-weight: 760;
  min-height: 52px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.epi-validity-filter-grid select {
  background-image: linear-gradient(45deg, transparent 50%, #566a84 50%), linear-gradient(135deg, #566a84 50%, transparent 50%);
  background-position: calc(100% - 18px) 23px, calc(100% - 13px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 42px;
}

.epi-validity-filter-grid input:focus,
.epi-validity-filter-grid select:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
  outline: none;
}

.epi-validity-period {
  grid-column: span 2;
}

.epi-validity-period > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.epi-validity-period em {
  color: #8a9ab1;
  font-style: normal;
  font-weight: 900;
}

.epi-validity-filter-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.epi-validity-filter-actions .epi-general-action-button {
  min-width: 176px;
  width: auto;
}

.epi-validity-table-card {
  overflow: visible;
}

.epi-validity-table-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px 28px 22px;
}

.epi-validity-table-head > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.epi-validity-table-head h2 {
  color: #101f3b;
  font-size: clamp(1.35rem, 1.55vw, 1.75rem);
  letter-spacing: 0;
  margin: 0;
}

.epi-validity-table-head > div > span {
  background: #eaf2ff;
  border-radius: 999px;
  color: #0b66f6;
  font-size: .82rem;
  font-weight: 950;
  min-height: 30px;
  padding: 7px 12px;
}

.epi-validity-export-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.epi-validity-export {
  align-items: center;
  background: #eef6f0;
  border: 1px solid rgba(22, 163, 74, .16);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .09);
  color: #12305a;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 900;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.epi-validity-export-zip {
  background: #eef4ff;
  border-color: rgba(37, 99, 235, .16);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .09);
}

.epi-validity-export:hover,
.epi-validity-export:focus-visible {
  box-shadow: 0 16px 34px rgba(22, 163, 74, .14);
  transform: translateY(-1px);
}

.epi-validity-export-zip:hover,
.epi-validity-export-zip:focus-visible {
  box-shadow: 0 16px 34px rgba(37, 99, 235, .14);
}

.epi-validity-export .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #16a34a;
  height: 18px;
  min-height: 18px;
  min-width: 18px;
  width: 18px;
}

.epi-validity-export-zip .epi-doc-icon {
  color: #2563eb;
}

.epi-validity-table-premium {
  border-collapse: collapse;
  min-width: 1430px;
  table-layout: fixed;
  width: 100%;
}

.epi-validity-table-premium th,
.epi-validity-table-premium td {
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
}

.epi-validity-table-premium thead th {
  background: #f7f9fc;
  color: #62718a;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1.12;
  text-transform: uppercase;
}

.epi-validity-table-premium tbody tr {
  transition: background 150ms ease;
}

.epi-validity-table-premium tbody tr:hover {
  background: rgba(37, 99, 235, .025);
}

.epi-validity-table-premium td {
  color: #132844;
  font-size: .91rem;
  font-weight: 780;
  line-height: 1.35;
}

.epi-validity-table-premium th:nth-child(1),
.epi-validity-table-premium td:nth-child(1) {
  width: 74px;
}

.epi-validity-table-premium th:nth-child(2),
.epi-validity-table-premium td:nth-child(2) {
  width: 190px;
}

.epi-validity-table-premium th:nth-child(3),
.epi-validity-table-premium td:nth-child(3) {
  width: 150px;
}

.epi-validity-table-premium th:nth-child(4),
.epi-validity-table-premium td:nth-child(4) {
  width: 230px;
}

.epi-validity-table-premium th:nth-child(5),
.epi-validity-table-premium td:nth-child(5) {
  width: 145px;
}

.epi-validity-table-premium th:nth-child(6),
.epi-validity-table-premium td:nth-child(6) {
  width: 160px;
}

.epi-validity-table-premium th:nth-child(7),
.epi-validity-table-premium td:nth-child(7) {
  width: 120px;
}

.epi-validity-table-premium th:nth-child(8),
.epi-validity-table-premium td:nth-child(8) {
  width: 180px;
}

.epi-validity-table-premium th:nth-child(9),
.epi-validity-table-premium td:nth-child(9) {
  width: 190px;
}

.epi-validity-table-premium th:nth-child(10),
.epi-validity-table-premium td:nth-child(10) {
  width: 130px;
}

.epi-validity-doc-link {
  background: transparent;
  border: 0;
  color: #0b66f6;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 0;
}

.epi-validity-doc-link:hover,
.epi-validity-doc-link:focus-visible {
  text-decoration: underline;
}

.epi-validity-expiration {
  color: #18365f !important;
  font-weight: 950 !important;
}

.epi-validity-expiration.is-current {
  color: #16a34a !important;
}

.epi-validity-expiration.is-expired {
  color: #ef233c !important;
}

.epi-validity-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 950;
  gap: 7px;
  justify-content: center;
  line-height: 1.12;
  min-height: 34px;
  padding: 7px 12px;
}

.epi-validity-status .epi-doc-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  height: 15px;
  min-height: 15px;
  min-width: 15px;
  width: 15px;
}

.epi-validity-status-ok {
  background: #def7ec;
  color: #087443;
}

.epi-validity-status-warning {
  background: #fff2dc;
  color: #d86800;
}

.epi-validity-status-danger {
  background: #ffe4e6;
  color: #e11d48;
}

.epi-validity-status-muted {
  background: #edf2f7;
  color: #52667f;
}

@media (max-width: 1280px) {
  .epi-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .epi-list-filters,
  .epi-validity-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epi-validity-period {
    grid-column: span 2;
  }

  .epi-general-filter-card {
    grid-template-columns: 1fr;
  }

  .epi-general-filter-actions {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 900px) {
.main-content:has(.epi-list-premium),
.main-content:has(.epi-general-premium),
.main-content:has(.epi-validity-premium) {
    padding: 20px;
  }

  .epi-list-topbar,
  .epi-list-card-head,
  .epi-list-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .epi-list-session-actions {
    justify-content: flex-start;
  }

  .epi-stat-grid,
  .epi-list-filters,
  .epi-general-filter-grid,
  .epi-general-filter-actions,
  .epi-validity-filter-grid,
  .epi-validity-filter-actions {
    grid-template-columns: 1fr;
  }

  .epi-list-card-head,
  .epi-list-filters,
  .epi-list-footer,
  .epi-general-filter-card,
  .epi-general-table-head,
  .epi-validity-filter-card,
  .epi-validity-table-head {
    padding-left: 20px;
    padding-right: 20px;
  }

  .epi-validity-filter-actions,
  .epi-validity-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .epi-validity-export-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .epi-validity-period {
    grid-column: auto;
  }

  .epi-validity-period > div {
    grid-template-columns: 1fr;
  }

  .epi-validity-period em {
    display: none;
  }

  .epi-validity-filter-actions .epi-general-action-button,
  .epi-validity-export {
    width: 100%;
  }

  .epi-list-button {
    width: 100%;
  }

  .epi-list-session-actions form {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .epi-list-heading {
    align-items: flex-start;
  }

  .epi-list-heading h1 {
    font-size: 1.65rem;
  }

  .epi-stat-card {
    grid-template-columns: 1fr;
  }

  .epi-list-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .epi-list-page-size {
    grid-template-columns: 1fr;
  }
}

/* Prestacao de contas e reembolso de despesas. */
.reimb-hero {
  align-items: flex-end;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 154, 163, .16), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(30, 101, 183, .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(247, 251, 253, .86));
  border: 1px solid rgba(107, 124, 147, .15);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(15, 35, 60, .09);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 32px;
}

.reimb-hero h2 {
  color: #10233d;
  font-size: clamp(2.2rem, 4.2vw, 4.7rem);
  letter-spacing: -.06em;
  line-height: .94;
  margin: 8px 0 16px;
}

.reimb-hero p:not(.eyebrow) {
  color: #60738e;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.reimb-hero-actions,
.reimb-toolbar-actions,
.reimb-action-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.reimb-metric-card,
.reimb-employee-strip,
.reimb-card,
.reimb-mobile-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(103, 123, 145, .17);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(15, 35, 60, .08);
}

.reimb-metric-card {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 22px;
}

.reimb-metric-icon,
.reimb-card-head > span,
.reimb-field-icon,
.reimb-mobile-user > svg {
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 154, 163, .13), rgba(35, 111, 220, .08));
  border: 1px solid rgba(0, 154, 163, .18);
  border-radius: 18px;
  color: #008f98;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.reimb-metric-icon svg,
.reimb-card-head svg,
.reimb-field-icon svg,
.reimb-mobile-user svg,
.reimb-camera-button svg,
.reimb-send-button svg,
.reimb-alert-card svg,
.reimb-reanalyze-form svg,
.reimb-action-buttons svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.reimb-metric-card span,
.reimb-employee-strip span {
  color: #647790;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reimb-metric-card strong {
  color: #10233d;
  font-size: clamp(1.42rem, 2.1vw, 2.05rem);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.reimb-metric-card small,
.reimb-employee-strip strong {
  color: #61738b;
  font-weight: 780;
  line-height: 1.45;
}

.reimb-employee-strip {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px 22px;
}

.reimb-panel {
  padding: 28px !important;
}

.reimb-panel-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reimb-panel-toolbar h3 {
  color: #10233d;
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  letter-spacing: -.04em;
  margin: 6px 0 0;
}

.reimb-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.reimb-filter-pill {
  align-items: center;
  background: #edf1f5;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #10233d;
  display: inline-flex;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.reimb-filter-pill:hover,
.reimb-filter-pill.is-active {
  background: rgba(0, 154, 163, .12);
  border-color: rgba(0, 154, 163, .28);
  box-shadow: 0 14px 32px rgba(0, 154, 163, .12);
  color: #006f78;
  transform: translateY(-1px);
}

.reimb-inbox-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.42fr);
  min-height: 680px;
}

.reimb-inbox-list {
  background: rgba(247, 250, 252, .82);
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 26px;
  overflow: hidden;
}

.reimb-list-search {
  border-bottom: 1px solid rgba(103, 123, 145, .13);
  padding: 14px;
}

.reimb-list-search form {
  display: grid;
  gap: 10px;
}

.reimb-list-search input,
.reimb-action-form textarea {
  background: #fff;
  border: 1px solid rgba(103, 123, 145, .2);
  border-radius: 18px;
  color: #10233d;
  font-weight: 800;
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
}

.reimb-action-form textarea {
  line-height: 1.5;
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

.reimb-inbox-scroll {
  display: grid;
  max-height: 690px;
  overflow: auto;
  padding: 10px;
}

.reimb-inbox-item {
  border: 1px solid transparent;
  border-radius: 20px;
  color: #10233d;
  display: grid;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.reimb-inbox-item + .reimb-inbox-item {
  margin-top: 6px;
}

.reimb-inbox-item:hover,
.reimb-inbox-item.is-selected {
  background: #fff;
  border-color: rgba(0, 154, 163, .2);
  box-shadow: 0 16px 36px rgba(15, 35, 60, .08);
}

.reimb-inbox-item strong {
  display: block;
  font-size: .98rem;
  line-height: 1.3;
}

.reimb-inbox-item span {
  color: #61748e;
  display: block;
  font-size: .86rem;
  font-weight: 750;
  margin-top: 4px;
}

.reimb-inbox-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.reimb-inbox-meta b {
  font-size: .95rem;
}

.reimb-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.reimb-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 950;
  min-height: 30px;
  padding: 0 12px;
}

.reimb-badge-neutral {
  background: rgba(103, 123, 145, .12);
  color: #495d76;
}

.reimb-badge-success {
  background: rgba(0, 154, 115, .12);
  color: #008767;
}

.reimb-badge-warning {
  background: rgba(226, 152, 24, .14);
  color: #a96300;
}

.reimb-badge-danger {
  background: rgba(204, 71, 86, .13);
  color: #c94354;
}

.reimb-detail-panel {
  min-width: 0;
}

.reimb-detail-empty {
  align-items: center;
  display: flex;
  justify-content: center;
}

.reimb-empty-state {
  color: #61748e;
  display: grid;
  gap: 8px;
  padding: 28px;
  text-align: center;
}

.reimb-empty-state strong {
  color: #10233d;
  font-size: 1.2rem;
}

.reimb-detail-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.reimb-detail-head h3 {
  color: #10233d;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  letter-spacing: -.045em;
  line-height: 1;
  margin: 6px 0 0;
}

.reimb-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
}

.reimb-card {
  padding: 20px;
}

.reimb-card-wide {
  grid-column: 1 / -1;
}

.reimb-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.reimb-card-head small {
  color: #657892;
  display: block;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reimb-card-head strong {
  color: #10233d;
  display: block;
  font-size: 1.22rem;
  font-weight: 950;
  margin-top: 3px;
}

.reimb-photo-card img {
  background: #f0f4f8;
  border: 1px solid rgba(103, 123, 145, .18);
  border-radius: 22px;
  display: block;
  max-height: 520px;
  object-fit: contain;
  width: 100%;
}

.reimb-file-preview-card {
  align-items: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(11, 181, 173, .10), transparent 30%),
    rgba(246, 249, 252, .88);
  border: 1px dashed rgba(103, 123, 145, .24);
  border-radius: 24px;
  color: #10233d;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 260px;
  padding: 28px;
  text-align: center;
}

.reimb-file-preview-card svg {
  color: #0e8f9b;
  height: 42px;
  width: 42px;
}

.reimb-file-preview-card strong {
  font-size: 1.05rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.reimb-file-preview-card small {
  color: #647790;
  font-weight: 750;
  max-width: 360px;
}

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

.reimb-field-item {
  align-items: center;
  background: rgba(246, 249, 252, .86);
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 20px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.reimb-field-icon {
  border-radius: 15px;
  height: 38px;
  width: 38px;
}

.reimb-field-icon svg {
  height: 18px;
  width: 18px;
}

.reimb-field-item small,
.reimb-ai-summary small,
.reimb-action-form label > span {
  color: #647790;
  display: block;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.reimb-field-item strong,
.reimb-ai-summary strong {
  color: #10233d;
  display: block;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.reimb-ai-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reimb-ai-summary > div,
.reimb-alert-card {
  background: rgba(246, 249, 252, .86);
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 20px;
  padding: 14px;
}

.reimb-alert-card {
  align-items: center;
  border-color: rgba(204, 71, 86, .24);
  color: #c94354;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.reimb-alert-card strong {
  color: #9e2638;
  display: block;
}

.reimb-alert-card span {
  color: #6b4050;
  display: block;
  font-weight: 750;
  margin-top: 3px;
}

.reimb-duplicate-card {
  align-items: flex-start;
}

.reimb-duplicate-card > div {
  min-width: 0;
  width: 100%;
}

.reimb-duplicate-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.reimb-duplicate-grid > div {
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(204, 71, 86, .16);
  border-radius: 14px;
  padding: 10px 12px;
}

.reimb-duplicate-grid small {
  color: #7a6470;
  display: block;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reimb-duplicate-grid b {
  color: #10233d;
  display: block;
  font-size: .9rem;
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.reimb-duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .reimb-duplicate-grid {
    grid-template-columns: 1fr;
  }
}

.reimb-ocr-text {
  border-top: 1px solid rgba(103, 123, 145, .14);
  margin-top: 16px;
  padding-top: 14px;
}

.reimb-ocr-text summary {
  color: #173e67;
  cursor: pointer;
  font-weight: 900;
}

.reimb-ocr-text pre {
  background: #f6f9fc;
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 16px;
  color: #10233d;
  max-height: 240px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.reimb-items-card {
  overflow: hidden;
}

.reimb-items-table-wrap {
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 22px;
  margin-top: 12px;
  overflow: auto;
}

.reimb-items-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.reimb-items-table th,
.reimb-items-table td {
  border-bottom: 1px solid rgba(103, 123, 145, .12);
  color: #10233d;
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.reimb-items-table th:first-child,
.reimb-items-table td:first-child {
  min-width: 320px;
  white-space: normal;
}

.reimb-items-table th {
  background: rgba(246, 249, 252, .86);
  color: #60748e;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reimb-items-table tbody tr:last-child td {
  border-bottom: 0;
}

.reimb-items-table td strong {
  color: #10233d;
  font-weight: 950;
}

.reimb-items-empty {
  background: linear-gradient(135deg, rgba(11, 181, 173, .08), rgba(35, 111, 220, .06));
  border: 1px dashed rgba(11, 181, 173, .28);
  border-radius: 18px;
  padding: 18px;
  white-space: normal;
}

.reimb-items-empty strong {
  display: block;
  font-weight: 950;
}

.reimb-items-empty span {
  color: #647790;
  display: block;
  font-weight: 750;
  margin-top: 4px;
}

.reimb-action-form {
  display: grid;
  gap: 14px;
}

.reimb-reanalyze-form {
  border-top: 1px solid rgba(103, 123, 145, .13);
  margin-top: 14px;
  padding-top: 14px;
}

.reimb-mobile-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

.reimb-employee-portal {
  display: grid;
  gap: 22px;
}

.reimb-employee-hero {
  align-items: flex-end;
  background:
    radial-gradient(circle at 14% 2%, rgba(0, 154, 163, .16), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(35, 111, 220, .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 251, 253, .9));
  border: 1px solid rgba(103, 123, 145, .16);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(15, 35, 60, .09);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 38px);
}

.reimb-employee-hero h2 {
  color: #10233d;
  font-size: clamp(2.35rem, 5vw, 5rem);
  letter-spacing: -.065em;
  line-height: .92;
  margin: 8px 0 14px;
}

.reimb-employee-hero p:not(.eyebrow) {
  color: #60738e;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.reimb-employee-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reimb-employee-metric {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(103, 123, 145, .16);
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(15, 35, 60, .075);
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.reimb-employee-metric > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 154, 163, .13), rgba(35, 111, 220, .08));
  border: 1px solid rgba(0, 154, 163, .17);
  border-radius: 18px;
  color: #008f98;
  display: inline-flex;
  flex: none;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.reimb-employee-metric svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.reimb-employee-metric small {
  color: #647790;
  display: block;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reimb-employee-metric strong {
  color: #10233d;
  display: block;
  font-size: clamp(1.32rem, 2vw, 1.88rem);
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-top: 4px;
}

.reimb-employee-metric em {
  color: #667993;
  display: block;
  font-size: .82rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.35;
  margin-top: 4px;
}

.reimb-employee-submit,
.reimb-employee-history {
  padding: clamp(22px, 3vw, 30px) !important;
}

.reimb-employee-section-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.reimb-employee-section-head h3 {
  color: #10233d;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 6px 0 8px;
}

.reimb-employee-section-head p:not(.eyebrow) {
  color: #61748e;
  font-weight: 760;
  line-height: 1.55;
  margin: 0;
}

.reimb-employee-table-wrap {
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 24px;
  overflow: auto;
}

.reimb-employee-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.reimb-employee-table th,
.reimb-employee-table td {
  border-bottom: 1px solid rgba(103, 123, 145, .12);
  color: #10233d;
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.reimb-employee-table th {
  background: rgba(246, 249, 252, .88);
  color: #60748e;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reimb-employee-table tbody tr:last-child td {
  border-bottom: 0;
}

.reimb-employee-table td:first-child span {
  color: #6a7c94;
  display: block;
  font-size: .8rem;
  font-weight: 760;
  margin-top: 3px;
}

.reimb-employee-table tbody tr:hover {
  background: rgba(0, 154, 163, .045);
}

.reimb-file-link {
  align-items: center;
  background: #edf1f5;
  border-radius: 999px;
  color: #10233d;
  display: inline-flex;
  font-weight: 900;
  min-height: 38px;
  padding: 0 16px;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.reimb-file-link:hover {
  background: rgba(0, 154, 163, .12);
  color: #00737b;
  transform: translateY(-1px);
}

.reimb-mobile-card {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 154, 163, .16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(35, 111, 220, .13), transparent 34%),
    rgba(255, 255, 255, .94);
  max-width: 620px;
  padding: clamp(24px, 4vw, 44px);
  width: min(100%, 620px);
}

.reimb-mobile-card h2 {
  color: #10233d;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  letter-spacing: -.065em;
  line-height: .95;
  margin: 8px 0 14px;
}

.reimb-mobile-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.reimb-upload-options[hidden],
.reimb-upload-confirmation[hidden] {
  display: none !important;
}

.reimb-camera-button,
.reimb-file-button {
  align-items: center;
  border: 0;
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 132px;
  padding: 20px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.reimb-camera-button {
  background: linear-gradient(135deg, #0bb5ad, #0e8f9b);
  box-shadow: 0 22px 46px rgba(0, 154, 163, .24);
  color: #fff;
}

.reimb-file-button {
  background: rgba(246, 249, 252, .92);
  border: 1px solid rgba(103, 123, 145, .18);
  box-shadow: 0 18px 36px rgba(15, 35, 55, .08);
  color: #10233d;
}

.reimb-camera-button:hover,
.reimb-file-button:hover {
  box-shadow: 0 26px 54px rgba(0, 154, 163, .32);
  transform: translateY(-2px);
}

.reimb-camera-button span,
.reimb-file-button span {
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 950;
}

.reimb-camera-button small,
.reimb-file-button small {
  color: currentColor;
  font-weight: 800;
  opacity: .82;
}

.reimb-camera-button svg,
.reimb-file-button svg {
  flex: none;
  height: 28px;
  width: 28px;
}

.reimb-camera-button input,
.reimb-file-button input {
  display: none;
}

.reimb-upload-confirmation {
  display: grid;
  gap: 14px;
}

.reimb-attached-button,
.reimb-remove-file-button {
  align-items: center;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr);
  justify-content: stretch;
  min-height: 76px;
  padding: 16px 18px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reimb-attached-button {
  background: linear-gradient(135deg, #0bb5ad, #0e8f9b);
  box-shadow: 0 18px 40px rgba(0, 154, 163, .24);
  color: #fff;
}

.reimb-remove-file-button {
  background: rgba(255, 247, 247, .96);
  border: 1px solid rgba(207, 72, 85, .20);
  box-shadow: 0 14px 32px rgba(207, 72, 85, .10);
  color: #bd3445;
}

.reimb-attached-button:hover,
.reimb-remove-file-button:hover {
  transform: translateY(-2px);
}

.reimb-attached-button .reimb-action-icon {
  background: rgba(255, 255, 255, .94);
  color: #07918f;
}

.reimb-remove-file-button .reimb-action-icon {
  background: rgba(207, 72, 85, .10);
  color: #bd3445;
}

.reimb-photo-preview {
  align-items: center;
  background: rgba(246, 249, 252, .9);
  border: 1px solid rgba(103, 123, 145, .18);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 14px;
}

.reimb-photo-preview[hidden] {
  display: none;
}

.reimb-photo-preview.is-file-only {
  grid-template-columns: 1fr;
}

.reimb-photo-preview img {
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  width: 96px;
}

.reimb-photo-preview img[hidden] {
  display: none;
}

.reimb-photo-preview strong,
.reimb-mobile-user strong {
  color: #10233d;
  display: block;
  font-weight: 950;
}

.reimb-photo-preview small,
.reimb-mobile-user span {
  color: #647790;
  display: block;
  font-weight: 750;
}

.reimb-send-button {
  justify-content: center;
  min-height: 62px;
}

.reimb-mobile-user {
  align-items: center;
  background: rgba(246, 249, 252, .76);
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 22px;
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
}

@media (max-width: 1180px) {
  .reimb-metrics-grid,
  .reimb-employee-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reimb-inbox-layout,
  .reimb-detail-grid {
    grid-template-columns: 1fr;
  }

  .reimb-inbox-scroll {
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  .reimb-hero,
  .reimb-employee-hero,
  .reimb-panel-toolbar,
  .reimb-detail-head,
  .reimb-employee-section-head,
  .reimb-employee-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .reimb-metrics-grid,
  .reimb-employee-metrics,
  .reimb-field-grid,
  .reimb-ai-summary,
  .reimb-upload-options {
    grid-template-columns: 1fr;
  }

  .reimb-panel {
    padding: 20px !important;
  }

  .reimb-hero {
    padding: 24px;
  }

  .reimb-toolbar-actions,
  .reimb-action-buttons,
  .reimb-hero-actions {
    width: 100%;
  }

  .reimb-toolbar-actions .button,
  .reimb-action-buttons .button,
  .reimb-hero-actions .button {
    justify-content: center;
    width: 100%;
  }
}

/* Mobile-first collaborator expense portal */
.reimb-field-worker-mode .page-shell {
  grid-template-columns: 1fr;
}

.page-shell:has(.reimb-mobile-app) {
  grid-template-columns: 1fr;
  max-width: 100vw;
  overflow-x: hidden;
}

.reimb-field-worker-mode .sidebar {
  display: none;
}

.page-shell:has(.reimb-mobile-app) .sidebar {
  display: none;
}

.reimb-field-worker-mode .main-content {
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: clamp(14px, 3vw, 30px);
}

.page-shell:has(.reimb-mobile-app) .main-content {
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: clamp(14px, 3vw, 30px);
}

.reimb-field-worker-mode .flash {
  width: min(100%, 520px);
}

.field-app-standalone {
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 155, 159, .20), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(35, 111, 220, .16), transparent 28%),
    linear-gradient(135deg, #071423 0%, #0d2540 44%, #eef6fb 44%, #f7fbff 100%);
  color: #10233d;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.field-app-root {
  align-items: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.field-app-root .flash {
  width: min(100%, 520px);
}

.reimb-field-app {
  min-height: min(940px, calc(100vh - 32px));
  width: min(100%, 520px);
}

.reimb-mobile-app {
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 155, 159, .16), transparent 32%),
    radial-gradient(circle at 96% 12%, rgba(39, 109, 226, .13), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fb 48%, #eef4f8 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 36px;
  box-shadow: 0 34px 90px rgba(8, 24, 40, .16);
  color: #10233d;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 520px;
  min-height: min(920px, calc(100vh - 36px));
  overflow: hidden;
  padding: 24px 22px 104px;
  position: relative;
  width: min(100%, 520px);
}

.reimb-mobile-app,
.reimb-mobile-app * {
  box-sizing: border-box;
}

.reimb-mobile-app svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.reimb-mobile-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.reimb-mobile-top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.reimb-mobile-logo {
  color: #0e2f55;
  display: inline-flex;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: 1;
}

.reimb-mobile-logo::first-letter {
  color: #163456;
}

.reimb-mobile-profile {
  align-items: center;
  display: flex;
  gap: 10px;
  text-align: right;
}

.reimb-mobile-profile strong {
  color: #10233d;
  display: block;
  font-size: .95rem;
  font-weight: 950;
}

.reimb-mobile-profile div span {
  color: #677b93;
  display: block;
  font-size: .78rem;
  font-weight: 800;
}

.reimb-mobile-profile > span {
  align-items: center;
  background: linear-gradient(135deg, #eaf6ff, #dff1ff);
  border: 1px solid rgba(35, 111, 220, .10);
  border-radius: 999px;
  color: #1d6bd6;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.reimb-field-logout-form {
  margin: 0;
}

.reimb-field-logout-form button {
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 35, 55, .08);
  color: #163456;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 950;
  min-height: 38px;
  padding: 0 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reimb-field-logout-form button:hover,
.reimb-field-logout-form button:focus-visible {
  border-color: rgba(0, 155, 159, .26);
  box-shadow: 0 16px 30px rgba(0, 155, 159, .14);
  outline: none;
  transform: translateY(-1px);
}

.reimb-mobile-hero {
  align-items: center;
  background:
    radial-gradient(circle at 84% 35%, rgba(35, 111, 220, .13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 247, 255, .95));
  border: 1px solid rgba(103, 123, 145, .11);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(15, 35, 55, .07);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 132px;
  min-height: 188px;
  overflow: hidden;
  padding: 24px;
}

.reimb-mobile-hero p {
  background: rgba(0, 155, 159, .10);
  border-radius: 999px;
  color: #00959a;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .16em;
  margin: 0 0 14px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.reimb-mobile-hero h2 {
  color: #10233d;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  letter-spacing: -.055em;
  line-height: 1.04;
  margin: 0 0 12px;
}

.reimb-mobile-hero span {
  color: #60748e;
  display: block;
  font-weight: 780;
  line-height: 1.48;
}

.reimb-mobile-hero-art {
  min-height: 138px;
  position: relative;
}

.reimb-mobile-phone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(234, 242, 249, .92)),
    linear-gradient(135deg, rgba(35, 111, 220, .12), transparent);
  border: 8px solid #1b2f4a;
  border-radius: 30px;
  box-shadow: 0 18px 36px rgba(16, 35, 61, .14);
  display: block;
  height: 126px;
  margin-left: auto;
  transform: rotate(8deg);
  width: 78px;
}

.reimb-mobile-phone::before,
.reimb-mobile-phone::after {
  background: rgba(35, 111, 220, .12);
  border-radius: 999px;
  content: "";
  display: block;
  height: 12px;
  margin: 24px auto 0;
  width: 42px;
}

.reimb-mobile-phone::after {
  margin-top: 10px;
  width: 30px;
}

.reimb-mobile-camera-bubble {
  align-items: center;
  background: linear-gradient(135deg, #20d2c5, #009b9f);
  border: 6px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  bottom: 2px;
  box-shadow: 0 18px 36px rgba(0, 155, 159, .28);
  color: #fff;
  display: inline-flex !important;
  height: 66px;
  justify-content: center;
  position: absolute;
  right: 48px;
  width: 66px;
}

.reimb-mobile-camera-bubble svg {
  height: 26px;
  width: 26px;
}

.reimb-mobile-action-card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(103, 123, 145, .10);
  border-radius: 26px;
  box-shadow: 0 20px 54px rgba(15, 35, 55, .08);
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 14px;
}

.rdo-analytics-page svg,
.rdo-analytics-page .rdo-svg-icon {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  max-width: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 0 !important;
}

.reimb-mobile-tab-panel {
  display: grid;
  gap: 18px;
}

.reimb-mobile-tab-panel[hidden] {
  display: none !important;
}

.reimb-mobile-rdo-card {
  align-items: center;
  background:
    radial-gradient(circle at 90% 18%, rgba(31, 107, 216, .16), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef5ff);
  border: 1px solid rgba(31, 107, 216, .14);
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(31, 107, 216, .10);
  color: #10233d;
  display: grid;
  gap: 14px;
  grid-template-columns: 62px minmax(0, 1fr) 26px;
  min-height: 92px;
  padding: 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reimb-mobile-rdo-card:hover,
.reimb-mobile-rdo-card:focus-visible {
  border-color: rgba(31, 107, 216, .26);
  box-shadow: 0 22px 54px rgba(31, 107, 216, .14);
  outline: none;
  transform: translateY(-2px);
}

.reimb-mobile-rdo-card .reimb-action-icon {
  background: #fff;
  color: #1f6bd8;
}

.reimb-mobile-rdo-card i {
  align-items: center;
  color: #1f6bd8;
  display: inline-flex;
  justify-content: flex-end;
}

.reimb-mobile-rdo-screen {
  gap: 22px;
}

.reimb-mobile-rdo-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 0;
}

.reimb-mobile-rdo-head p {
  color: #10233d;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 9vw, 2.7rem);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1;
  margin: 0 0 6px;
}

.reimb-mobile-rdo-head h2 {
  color: #60748e;
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.reimb-mobile-rdo-head > span {
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(103, 123, 145, .10);
  border-radius: 16px;
  color: #10233d;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 950;
  gap: 7px;
  min-height: 46px;
  padding: 0 13px;
}

.reimb-mobile-rdo-head svg {
  height: 17px;
  width: 17px;
}

.reimb-mobile-rdo-new {
  align-items: center;
  background:
    radial-gradient(circle at 16% 42%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(135deg, #13c4bc, #008f95);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(0, 155, 159, .25);
  color: #fff;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 18px;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  min-height: 156px;
  padding: 24px;
  text-align: left;
  width: 100%;
}

.reimb-mobile-rdo-new > span:first-child {
  align-items: center;
  background: rgba(255, 255, 255, .95);
  border-radius: 999px;
  color: #009b9f;
  display: inline-flex;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.reimb-mobile-rdo-new svg {
  height: 30px;
  width: 30px;
}

.reimb-mobile-rdo-new strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -.035em;
}

.reimb-mobile-rdo-new small {
  display: block;
  font-size: .95rem;
  font-weight: 850;
  line-height: 1.45;
  margin-top: 8px;
  opacity: .92;
}

.reimb-mobile-rdo-new i {
  display: inline-flex;
  justify-content: flex-end;
}

.reimb-mobile-rdo-list,
.reimb-mobile-rdo-items {
  display: grid;
  gap: 14px;
}

.reimb-mobile-rdo-item {
  align-items: stretch;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(103, 123, 145, .11);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(15, 35, 55, .065);
  color: #10233d;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr) 22px;
  min-height: 132px;
  padding: 16px;
}

.reimb-mobile-rdo-date {
  align-items: center;
  background: #fbfdff;
  border: 1px solid rgba(103, 123, 145, .13);
  border-radius: 18px;
  display: grid;
  justify-items: center;
  min-height: 100px;
  padding: 10px 8px;
}

.reimb-mobile-rdo-date span {
  color: #71839d;
  font-size: .7rem;
  font-weight: 950;
}

.reimb-mobile-rdo-date strong {
  color: #10233d;
  font-size: 2.1rem;
  font-weight: 950;
  line-height: 1;
}

.reimb-mobile-rdo-date em {
  color: #009b9f;
  font-size: .74rem;
  font-style: normal;
  font-weight: 950;
}

.reimb-mobile-rdo-body {
  align-content: start;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.reimb-mobile-rdo-body > strong {
  color: #10233d;
  font-size: .98rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimb-mobile-rdo-body small {
  align-items: center;
  color: #60748e;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 830;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimb-mobile-rdo-body small svg {
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.reimb-mobile-rdo-body > em {
  align-self: flex-end;
  color: #71839d;
  font-size: .78rem;
  font-style: normal;
  font-weight: 820;
  margin-top: auto;
  padding-top: 6px;
}

.reimb-mobile-rdo-chevron {
  align-self: center;
  color: #8aa0b8;
  display: inline-flex;
}

.reimb-rdo-lock {
  overflow: hidden;
}

.reimb-rdo-modal[hidden],
.reimb-rdo-sending[hidden] {
  display: none !important;
}

.reimb-rdo-modal {
  align-items: flex-end;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9998;
}

.reimb-rdo-backdrop {
  background: rgba(7, 20, 35, .58);
  inset: 0;
  position: absolute;
}

.reimb-rdo-sheet {
  background: #f7fbff;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -22px 60px rgba(7, 20, 35, .24);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(94vh, 920px);
  max-width: 520px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: min(100%, 520px);
}

.reimb-rdo-sheet-head,
.reimb-rdo-sheet-footer {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid rgba(103, 123, 145, .12);
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  padding: 14px 16px;
}

.reimb-rdo-sheet-head strong {
  color: #10233d;
  font-size: 1.02rem;
  font-weight: 950;
  text-align: center;
}

.reimb-rdo-sheet-head button {
  align-items: center;
  background: #f4f7fb;
  border: 1px solid rgba(103, 123, 145, .13);
  border-radius: 999px;
  color: #10233d;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.reimb-rdo-sheet-head button:first-child svg {
  transform: rotate(180deg);
}

.reimb-rdo-modal-content {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.reimb-rdo-input-card,
.reimb-rdo-question-card {
  background: #fff;
  border: 1px solid rgba(103, 123, 145, .12);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15, 35, 55, .045);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.reimb-rdo-input-card span,
.reimb-rdo-question-head strong {
  color: #10233d;
  display: block;
  font-size: 1.02rem;
  font-weight: 950;
}

.reimb-rdo-question-head small {
  color: #60748e;
  font-size: .82rem;
  font-weight: 780;
  line-height: 1.45;
  margin-top: 4px;
}

.reimb-rdo-question-head {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) 42px;
}

.reimb-rdo-question-head > span {
  align-items: center;
  background: linear-gradient(135deg, #1762ec, #2d83ff);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(23, 98, 236, .20);
  color: #fff;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.reimb-rdo-question-head i {
  align-items: center;
  background: #f4f7fb;
  border-radius: 999px;
  color: #10233d;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.reimb-rdo-question-head i svg {
  height: 20px;
  width: 20px;
}

.reimb-rdo-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.reimb-rdo-choice {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 16px;
  color: #10233d;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .86rem;
  font-weight: 920;
  gap: 9px;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.reimb-rdo-choice svg {
  border-radius: 999px;
  height: 22px;
  width: 22px;
}

.reimb-rdo-choice:hover,
.reimb-rdo-choice:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.reimb-rdo-choice.is-green.is-selected {
  background: #effcf6;
  border-color: #27bd79;
  box-shadow: 0 12px 24px rgba(39, 189, 121, .12);
  color: #0e9f68;
}

.reimb-rdo-choice.is-red.is-selected {
  background: #fff4f4;
  border-color: #ff5a5f;
  box-shadow: 0 12px 24px rgba(255, 90, 95, .12);
  color: #dc2626;
}

.reimb-rdo-note-field {
  background: #fbfdff;
  border: 1px solid #d8e3ef;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.reimb-rdo-note-field[hidden] {
  display: none !important;
}

.reimb-rdo-note-field span {
  color: #60748e;
  font-size: .78rem;
  font-weight: 900;
}

.reimb-rdo-input-card input,
.reimb-rdo-question-card textarea,
.reimb-rdo-note-field textarea {
  background: #fbfdff;
  border: 1px solid #d8e3ef;
  border-radius: 15px;
  color: #10233d;
  font: inherit;
  font-size: .9rem;
  font-weight: 820;
  min-height: 48px;
  padding: 12px;
  width: 100%;
}

.reimb-rdo-question-card textarea,
.reimb-rdo-note-field textarea {
  min-height: 104px;
  resize: vertical;
}

.reimb-rdo-input-card input:focus,
.reimb-rdo-question-card textarea:focus,
.reimb-rdo-note-field textarea:focus {
  border-color: rgba(0, 155, 159, .44);
  box-shadow: 0 0 0 4px rgba(0, 155, 159, .10);
  outline: none;
}

.reimb-rdo-sheet-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(103, 123, 145, .12);
  display: block;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.reimb-rdo-submit {
  border-radius: 18px;
  justify-content: center;
  min-height: 56px;
  width: 100%;
}

.reimb-rdo-sending {
  align-items: center;
  background: rgba(7, 20, 35, .66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: absolute;
  z-index: 2;
}

.reimb-rdo-sending section {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(202, 215, 232, .9);
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(7, 20, 35, .26);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.reimb-rdo-sending span {
  align-items: center;
  animation: reimb-spin 1.2s linear infinite;
  border: 6px solid rgba(31, 102, 231, .12);
  border-right-color: #3c8bff;
  border-top-color: #245df3;
  border-radius: 999px;
  color: #1762ec;
  display: inline-flex;
  height: 90px;
  justify-content: center;
  width: 90px;
}

.reimb-rdo-sending span svg {
  height: 30px;
  width: 30px;
}

.reimb-rdo-sending h3 {
  color: #10233d;
  font-size: 1.7rem;
  font-weight: 950;
  margin: 0;
}

.reimb-rdo-sending p {
  color: #536789;
  font-weight: 780;
  line-height: 1.45;
  margin: 0;
}

.reimb-rdo-sending strong {
  background: #eef5ff;
  border: 1px solid rgba(184, 205, 240, .72);
  border-radius: 16px;
  color: #10233d;
  display: block;
  font-size: .9rem;
  padding: 14px;
  width: 100%;
}

@keyframes reimb-spin {
  to {
    transform: rotate(360deg);
  }
}

.reimb-mobile-app .reimb-upload-options {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.reimb-mobile-app .reimb-camera-button,
.reimb-mobile-app .reimb-file-button {
  align-items: center;
  border-radius: 20px;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 62px minmax(0, 1fr) 26px;
  justify-content: stretch;
  min-height: auto;
  padding: 18px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reimb-mobile-app .reimb-camera-button {
  background: linear-gradient(135deg, #14bdb8, #078f98);
  box-shadow: 0 18px 40px rgba(0, 155, 159, .26);
  color: #fff;
}

.reimb-mobile-app .reimb-file-button {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(103, 123, 145, .13);
  box-shadow: 0 14px 32px rgba(15, 35, 55, .06);
  color: #10233d;
}

.reimb-mobile-app .reimb-camera-button:hover,
.reimb-mobile-app .reimb-file-button:hover {
  transform: translateY(-2px);
}

.reimb-action-icon {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-radius: 999px;
  color: #009b9f;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.reimb-file-button .reimb-action-icon {
  background: rgba(0, 155, 159, .08);
}

.reimb-action-icon svg {
  height: 26px;
  width: 26px;
}

.reimb-action-copy strong {
  color: currentColor;
  display: block;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -.02em;
}

.reimb-action-copy small {
  color: currentColor;
  display: block;
  font-size: .82rem;
  font-weight: 790;
  margin-top: 4px;
  opacity: .78;
}

.reimb-mobile-app .reimb-camera-button i,
.reimb-mobile-app .reimb-file-button i {
  align-items: center;
  display: inline-flex;
  justify-content: flex-end;
}

.reimb-mobile-app .reimb-camera-button input,
.reimb-mobile-app .reimb-file-button input {
  display: none;
}

.reimb-mobile-app .reimb-photo-preview {
  background: #f6f9fc;
  border: 1px solid rgba(103, 123, 145, .14);
  border-radius: 20px;
  box-shadow: none;
}

.reimb-mobile-app .reimb-send-button {
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(22, 52, 86, .20);
  font-size: 1rem;
  gap: 8px;
  justify-content: center;
  min-height: 56px;
  width: 100%;
}

.reimb-mobile-app .reimb-send-button.is-loading {
  opacity: .72;
}

.reimb-mobile-app .reimb-send-button svg {
  height: 20px;
  width: 20px;
}

.reimb-upload-lock {
  overflow: hidden;
}

.reimb-upload-progress-modal[hidden] {
  display: none !important;
}

.reimb-upload-progress-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 9999;
}

.reimb-upload-progress-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(7, 20, 35, .72);
  inset: 0;
  position: absolute;
}

.reimb-upload-progress-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(50, 120, 245, .10), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
  border: 1px solid rgba(202, 215, 232, .86);
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(4, 13, 24, .32);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 34px;
  position: relative;
  text-align: center;
  width: min(92vw, 560px);
}

.reimb-upload-orbit {
  align-items: center;
  display: inline-flex;
  height: 126px;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  width: 126px;
}

.reimb-upload-orbit-ring {
  animation: reimbUploadSpin 1.4s linear infinite;
  border: 7px solid rgba(31, 102, 231, .11);
  border-right-color: #3c8bff;
  border-top-color: #245df3;
  border-radius: 999px;
  inset: 0;
  position: absolute;
}

.reimb-upload-doc-icon {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  border: 1px solid rgba(173, 195, 230, .72);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(30, 82, 180, .20);
  color: #2467f2;
  display: inline-flex;
  height: 68px;
  justify-content: center;
  position: relative;
  width: 68px;
}

.reimb-upload-doc-icon svg {
  height: 30px;
  width: 30px;
}

.reimb-upload-progress-card h3 {
  color: #0d2446;
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -.02em;
  margin: 0;
}

.reimb-upload-progress-card > p {
  color: #536789;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.45;
  margin: 12px auto 24px;
  max-width: 390px;
}

.reimb-upload-progress-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 48px;
  margin: 0 auto 22px;
  max-width: 430px;
  text-align: left;
}

.reimb-upload-progress-track {
  background: #dfe6f0;
  border-radius: 999px;
  display: block;
  height: 9px;
  overflow: hidden;
}

.reimb-upload-progress-track span {
  background: linear-gradient(90deg, #1f65f2, #6f55ff);
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(36, 103, 242, .32);
  display: block;
  height: 100%;
  transition: width .45s ease;
  width: 15%;
}

.reimb-upload-progress-row strong {
  color: #2368f2;
  font-size: 1.08rem;
  font-weight: 900;
}

.reimb-upload-step-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 auto;
  max-width: 430px;
  padding: 0;
  text-align: left;
}

.reimb-upload-step-list li {
  align-items: center;
  border-radius: 14px;
  color: #5b6f92;
  display: grid;
  font-size: 1rem;
  font-weight: 790;
  gap: 14px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 38px;
  padding: 7px 10px;
  position: relative;
  transition: background .25s ease, color .25s ease;
}

.reimb-upload-step-list li::before {
  align-items: center;
  background: #d9e2ee;
  border: 4px solid #f7fbff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(197, 210, 227, .7);
  content: "";
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.reimb-upload-step-list li::after {
  background: repeating-linear-gradient(to bottom, rgba(158, 176, 202, .45), rgba(158, 176, 202, .45) 5px, transparent 5px, transparent 10px);
  content: "";
  height: 18px;
  left: 23px;
  position: absolute;
  top: 31px;
  width: 2px;
}

.reimb-upload-step-list li:last-child::after {
  display: none;
}

.reimb-upload-step-list li.is-done {
  color: #132846;
}

.reimb-upload-step-list li.is-done::before {
  background: #28b46b;
  border-color: #e9fbf1;
  box-shadow: 0 0 0 1px rgba(40, 180, 107, .25);
  color: #fff;
  content: "✓";
  font-size: .92rem;
  font-weight: 950;
}

.reimb-upload-step-list li.is-active {
  background: rgba(36, 103, 242, .08);
  color: #1762ec;
  font-weight: 900;
}

.reimb-upload-step-list li.is-active::before {
  animation: reimbUploadSpin .9s linear infinite;
  background: transparent;
  border-color: rgba(36, 103, 242, .18);
  border-right-color: #2467f2;
  border-top-color: #2467f2;
  box-shadow: none;
}

.reimb-upload-ai-note {
  align-items: center;
  background: linear-gradient(135deg, #eef5ff, #f6f9ff);
  border: 1px solid rgba(184, 205, 240, .62);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr);
  margin: 28px auto 0;
  max-width: 430px;
  padding: 18px;
  text-align: left;
}

.reimb-upload-ai-note > span {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(36, 103, 242, .18);
  border-radius: 999px;
  color: #2467f2;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.reimb-upload-ai-note svg {
  height: 26px;
  width: 26px;
}

.reimb-upload-ai-note strong {
  color: #0d2446;
  display: block;
  font-size: .98rem;
  font-weight: 950;
}

.reimb-upload-ai-note small {
  color: #506789;
  display: block;
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.45;
  margin-top: 5px;
}

@keyframes reimbUploadSpin {
  to {
    transform: rotate(360deg);
  }
}

.reimb-mobile-app .reimb-employee-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reimb-mobile-app .reimb-employee-metric {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(103, 123, 145, .11);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 35, 55, .06);
  gap: 12px;
  padding: 14px;
}

.reimb-mobile-app .reimb-employee-metric > span {
  border-radius: 999px;
  height: 52px;
  width: 52px;
}

.reimb-mobile-app .reimb-employee-metric:nth-child(1) > span {
  background: rgba(0, 155, 159, .09);
  color: #009b9f;
}

.reimb-mobile-app .reimb-employee-metric:nth-child(2) > span {
  background: rgba(35, 111, 220, .09);
  color: #236fdc;
}

.reimb-mobile-app .reimb-employee-metric:nth-child(3) > span {
  background: rgba(11, 141, 95, .10);
  color: #0b8d5f;
}

.reimb-mobile-app .reimb-employee-metric:nth-child(4) > span {
  background: rgba(125, 78, 230, .10);
  color: #7d4ee6;
}

.reimb-mobile-app .reimb-employee-metric small {
  font-size: .64rem;
  letter-spacing: .13em;
}

.reimb-mobile-app .reimb-employee-metric strong {
  font-size: clamp(1.16rem, 5vw, 1.48rem);
}

.reimb-mobile-app .reimb-employee-metric em {
  font-size: .78rem;
}

.reimb-mobile-history {
  display: grid;
  gap: 12px;
}

.reimb-mobile-history-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 0;
}

.reimb-mobile-history-head h3 {
  color: #10233d;
  font-size: 1.14rem;
  font-weight: 950;
  margin: 0;
}

.reimb-mobile-history-head span {
  color: #009b9f;
  font-size: .82rem;
  font-weight: 900;
}

.reimb-expense-list {
  display: grid;
  gap: 10px;
}

.reimb-expense-card {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(103, 123, 145, .11);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 35, 55, .055);
  color: #10233d;
  display: grid;
  gap: 12px;
  grid-template-columns: 62px minmax(0, 1fr) auto 18px;
  padding: 12px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.reimb-expense-card:hover {
  border-color: rgba(0, 155, 159, .24);
  box-shadow: 0 16px 34px rgba(0, 155, 159, .10);
  transform: translateY(-1px);
}

.reimb-expense-thumb {
  align-items: center;
  background: linear-gradient(135deg, #edf6fb, #f7fafc);
  border: 1px solid rgba(103, 123, 145, .11);
  border-radius: 16px;
  display: inline-flex;
  height: 62px;
  justify-content: center;
  overflow: hidden;
  width: 62px;
}

.reimb-expense-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.reimb-expense-thumb-icon {
  color: #60748e;
  display: inline-flex;
}

.reimb-expense-thumb-icon svg {
  height: 28px;
  width: 28px;
}

.reimb-expense-main,
.reimb-expense-side {
  display: grid;
  min-width: 0;
}

.reimb-expense-main strong {
  color: #10233d;
  font-size: .92rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimb-expense-main em {
  color: #0b8d5f;
  font-size: .76rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimb-expense-main small {
  align-items: center;
  color: #60748e;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 820;
  gap: 5px;
  margin-top: 7px;
}

.reimb-expense-main small svg {
  height: 14px;
  width: 14px;
}

.reimb-expense-side {
  align-items: end;
  gap: 8px;
  justify-items: end;
}

.reimb-expense-side > strong {
  color: #10233d;
  font-size: .9rem;
  font-weight: 950;
  white-space: nowrap;
}

.reimb-mobile-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.reimb-mobile-status-neutral {
  background: rgba(35, 111, 220, .10);
  color: #236fdc;
}

.reimb-mobile-status-success {
  background: rgba(11, 141, 95, .11);
  color: #0b8d5f;
}

.reimb-mobile-status-warning {
  background: rgba(243, 161, 26, .15);
  color: #a36300;
}

.reimb-mobile-status-danger {
  background: rgba(192, 74, 90, .12);
  color: #c04a5a;
}

.reimb-expense-chevron {
  align-items: center;
  color: #8aa0b8;
  display: inline-flex;
}

.reimb-expense-chevron svg {
  height: 18px;
  width: 18px;
}

.reimb-mobile-empty {
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1px dashed rgba(103, 123, 145, .25);
  border-radius: 22px;
  color: #10233d;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.reimb-mobile-empty > span {
  align-items: center;
  background: rgba(0, 155, 159, .08);
  border-radius: 999px;
  color: #009b9f;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.reimb-mobile-empty svg {
  height: 26px;
  width: 26px;
}

.reimb-mobile-empty strong {
  font-weight: 950;
}

.reimb-mobile-empty p {
  color: #60748e;
  font-weight: 780;
  margin: 0;
}

.reimb-mobile-dock {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(103, 123, 145, .12);
  border-radius: 28px;
  bottom: 18px;
  box-shadow: 0 18px 44px rgba(15, 35, 55, .12);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  left: 16px;
  padding: 10px 12px;
  position: absolute;
  right: 16px;
  z-index: 3;
}

.reimb-mobile-dock a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 22px;
  color: #60748e;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  font-size: .68rem;
  font-weight: 900;
  gap: 5px;
  justify-content: center;
  min-height: 66px;
  padding: 0;
  text-decoration: none;
}

.reimb-mobile-dock a.is-active {
  color: #009b9f;
}

.reimb-mobile-dock a.is-active {
  background: #e8fbfb;
}

.reimb-mobile-dock a.is-disabled {
  cursor: default;
  opacity: .42;
}

.reimb-mobile-dock a svg {
  height: 21px;
  width: 21px;
}

@media (min-width: 761px) {
  .reimb-mobile-app {
    margin-block: 18px;
  }
}

@media (max-width: 520px) {
  .field-app-root {
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
  }

  .field-app-root .flash {
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  .reimb-field-worker-mode .main-content {
    padding: 0;
  }

  .page-shell:has(.reimb-mobile-app) .main-content {
    padding: 0;
  }

  .reimb-mobile-app {
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(8, 24, 40, .14);
    margin: 12px auto;
    max-width: calc(100vw - 24px);
    min-height: calc(100vh - 24px);
    padding: 18px 16px 102px;
    width: calc(100vw - 24px);
  }

  .field-app-standalone .reimb-mobile-app {
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
    min-height: 100dvh;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
    width: 100vw;
  }

  .reimb-mobile-profile {
    display: none;
  }

  .reimb-mobile-hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding: 20px;
  }

  .reimb-mobile-hero-art {
    min-height: 120px;
  }

  .reimb-mobile-phone {
    height: 110px;
    width: 68px;
  }

  .reimb-mobile-camera-bubble {
    height: 56px;
    right: 36px;
    width: 56px;
  }

  .reimb-mobile-history-head span {
    display: none;
  }

  .reimb-expense-card {
    grid-template-columns: 56px minmax(0, 1fr) 18px;
  }

  .reimb-expense-side {
    align-items: start;
    grid-column: 2 / 3;
    justify-items: start;
  }

  .reimb-expense-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
