:root {
  --notta-surface: #ffffff;
  --notta-bg: #f7f5f2;
  --notta-border: #e9e4df;
  --notta-text: #2c3537;
  --notta-muted: #6d7575;
  --notta-accent: var(--primary-color);
  --notta-accent-soft: rgba(58, 135, 92, 0.12);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(248, 250, 252, 0.72);
    opacity: 1;
    backdrop-filter: blur(5px);
}

.loading-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
}

.loading-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 8px 0 0 8px;
    background: var(--primary--color, var(--primary-color, #2563eb));
}

.spinner {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 3px solid rgba(15, 23, 42, 0.08);
    border-top-color: var(--primary--color, var(--primary-color, #2563eb));
    border-right-color: var(--primary--color, var(--primary-color, #2563eb));
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.loading-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.loading-copy strong {
    color: #15213a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.loading-copy span {
    margin-top: 3px;
    color: #77839a;
    font-size: 12px;
    line-height: 1.25;
}

:root {
    --ibx-color-success: #057a05;
    --ibx-color-success-dark: #045c04;
    --ibx-color-success-muted: rgba(5, 122, 5, 0.08);
    --ibx-color-success-soft: rgba(5, 122, 5, 0.12);
    --ibx-color-success-soft-strong: rgba(5, 122, 5, 0.2);
    --ibx-color-success-border: rgba(5, 122, 5, 0.3);
    --ibx-color-success-ring: rgba(5, 122, 5, 0.16);
    --ibx-color-success-flag: rgba(5, 122, 5, 0.15);
    --ibx-color-success-ghost: rgba(5, 122, 5, 0.05);

    --ibx-color-info: #266ebd;
    --ibx-color-info-dark: #1f5c9d;
    --ibx-color-info-muted: rgba(38, 110, 189, 0.08);
    --ibx-color-info-soft: rgba(38, 110, 189, 0.12);
    --ibx-color-info-soft-strong: rgba(38, 110, 189, 0.2);
    --ibx-color-info-border: rgba(38, 110, 189, 0.3);
    --ibx-color-info-ring: rgba(38, 110, 189, 0.16);
    --ibx-color-info-flag: rgba(38, 110, 189, 0.15);
    --ibx-color-info-ghost: rgba(38, 110, 189, 0.05);

    --ibx-color-danger: #b8123a;
    --ibx-color-danger-dark: #99102f;
    --ibx-color-danger-muted: rgba(184, 18, 58, 0.08);
    --ibx-color-danger-soft: rgba(184, 18, 58, 0.12);
    --ibx-color-danger-soft-strong: rgba(184, 18, 58, 0.2);
    --ibx-color-danger-border: rgba(184, 18, 58, 0.3);
    --ibx-color-danger-ring: rgba(184, 18, 58, 0.16);
    --ibx-color-danger-flag: rgba(184, 18, 58, 0.15);
    --ibx-color-danger-ghost: rgba(184, 18, 58, 0.05);

    --ibx-color-warning: #fab758;
    --ibx-color-warning-dark: #c68f42;
    --ibx-color-warning-soft: rgba(250, 183, 88, 0.2);
    --ibx-color-warning-muted: rgba(250, 183, 88, 0.1);
    --ibx-color-warning-border: rgba(250, 183, 88, 0.35);
    --ibx-color-warning-ring: rgba(250, 183, 88, 0.22);
    --ibx-color-warning-flag: rgba(250, 183, 88, 0.18);

    --ibx-color-primary: #2563eb;
    --ibx-color-primary-soft: rgba(37, 99, 235, 0.16);
    --ibx-color-primary-soft-strong: rgba(37, 99, 235, 0.24);
    --ibx-color-focus-ring: rgba(37, 99, 235, 0.55);

    --ibx-color-neutral-900: #0f172a;
    --ibx-color-neutral-800: #111827;
    --ibx-color-neutral-700: #222222;
    --ibx-color-neutral-600: rgba(15, 23, 42, 0.6);
    --ibx-color-neutral-500: rgba(15, 23, 42, 0.55);
    --ibx-color-neutral-soft: rgba(17, 24, 39, 0.12);
    --ibx-color-neutral-tint: rgba(248, 250, 252, 0.6);
    --ibx-color-neutral-background: rgba(15, 23, 42, 0.05);
    --ibx-color-neutral-border: rgba(15, 23, 42, 0.06);
    --ibx-color-neutral-border-strong: rgba(15, 23, 42, 0.12);
    --ibx-color-neutral-surface: rgba(15, 23, 42, 0.08);
    --ibx-color-neutral-soft-strong: rgba(15, 23, 42, 0.14);

    --ibx-shadow-card: 0 20px 45px -25px rgba(31, 35, 53, 0.35);
    --ibx-shadow-card-hover: 0 25px 55px -25px rgba(31, 35, 53, 0.45);
}

.notta-shell {
  min-height: 100vh;
  background: var(--notta-bg);
  color: var(--notta-text);
  display: flex;
  position: relative;
}

.notta-sidebar {
  width: 260px;
  background: var(--primary-color);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
}

.notta-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notta-brand img {
  height: 55px;
  width: auto;
}

.notta-brand span {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.notta-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.notta-nav::-webkit-scrollbar {
  width: 6px;
}

.notta-nav::-webkit-scrollbar-track {
  background: transparent;
}

.notta-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.notta-nav-section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  margin: 12px 0 4px;
}

.notta-nav-group-toggle {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #ffffff;
}

.notta-nav-group-toggle .notta-nav-chevron {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.notta-nav-chevron {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.notta-nav-chevron.is-open {
  transform: rotate(90deg);
}

.notta-nav-submenu {
  margin: 2px 0 6px 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notta-nav-sub-link {
  padding: 8px 10px;
  font-size: 14px;
}

.notta-nav-sub-link .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.notta-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 15px;
  font-weight: 500;
}

.notta-nav-link span:not(.icon),
.notta-nav-sub-link span:not(.icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notta-nav-link .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.notta-nav-link.is-active,
.notta-nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
}

.notta-nav-link.is-active .icon,
.notta-nav-link.active .icon {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.notta-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.notta-nav-link:hover .icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.notta-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notta-company {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.68);
}

.notta-company strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notta-company span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notta-footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.notta-logout {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.notta-logout svg {
  flex: 0 0 18px;
}

.notta-logout span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notta-footer-shortcut {
  justify-content: center;
  gap: 8px;
  padding-inline: 8px;
}

.notta-footer-logout {
  width: 100%;
}

.notta-footer-actions .notta-footer-logout {
  grid-column: 1 / -1;
}

.notta-logout:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.notta-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.notta-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--notta-surface);
  border-bottom: 1px solid var(--notta-border);
}

.notta-mobile-bar img {
  height: 32px;
}

.notta-toggle {
  border: none;
  background: #f4f2f0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notta-content {
  padding: 20px 40px 48px;
}

.notta-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notta-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;;
}

.notta-page-head h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.notta-page-head p {
  color: var(--notta-muted);
  font-size: 14px;
}

.notta-period-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--notta-border);
  background: var(--notta-surface);
  font-size: 14px;
  color: var(--notta-text);
}

.notta-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.notta-dashboard {
  gap: 24px;
}

.notta-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--notta-border);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.05);
  padding: 20px 22px;
}

.notta-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.notta-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--notta-text);
}

.notta-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.notta-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notta-metric-card--primary {
  background: #ffffff;
  border-color: rgba(76, 154, 106, 0.18);
}

.notta-metric-card--success {
  background: #ffffff;
  border-color: rgba(74, 182, 139, 0.18);
}

.notta-metric-card--warning {
  background: #ffffff;
  border-color: rgba(242, 153, 74, 0.18);
}

.notta-metric-card--danger {
  background: #ffffff;
  border-color: rgba(235, 87, 87, 0.18);
}

.notta-metric-card--primary .notta-metric-icon {
  background: var(--primary-color);
  color: #ffffff;
}

.notta-metric-card--success .notta-metric-icon {
  background: var(--primary-color);
  color: #ffffff;
}

.notta-metric-card--warning .notta-metric-icon {
  background: rgba(242, 153, 74, 0.16);
  color: #b86b1c;
}

.notta-metric-card--danger .notta-metric-icon {
  background: rgba(235, 87, 87, 0.16);
  color: #c0392b;
}

.notta-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(120, 120, 120, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.notta-metric-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: 600;
}

.notta-metric-card p {
  color: var(--notta-muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.notta-metric-meta {
  font-size: 12px;
  color: var(--notta-muted);
}

.notta-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.notta-chart-card {
  min-height: 320px;
}

.notta-chart-canvas {
  width: 100%;
  height: 260px;
  background: #faf8f7;
  border-radius: 16px;
  border: 1px solid var(--notta-border);
}

.notta-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--notta-border);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--notta-muted);
  background: #fff;
}

.notta-select-input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--notta-muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
}

.notta-select-input:focus {
  outline: none;
}

.notta-chart-placeholder {
  background: #faf8f7;
  border-radius: 16px;
  border: 1px solid var(--notta-border);
  padding: 18px;
  min-height: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notta-chart-grid {
  display: flex;
  flex-direction: column;
  gap: 42px;
  font-size: 12px;
  color: var(--notta-muted);
}

.notta-chart-line {
  position: absolute;
  left: 70px;
  right: 24px;
  top: 36px;
  bottom: 50px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.notta-chart-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #a0a0a0;
  border-radius: 999px;
  transform: translate(-50%, 50%);
}

.notta-chart-months {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--notta-muted);
  margin-left: 60px;
}

.notta-quick-actions .notta-action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notta-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--notta-border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: none;
}

.notta-action-item:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.notta-action-item--manual {
  border-color: var(--secondary-color);
  font-weight: 700;
}

.notta-action-item--manual:hover {
  border-color: rgba(47, 123, 82, 0.55);
  box-shadow: 0 8px 18px rgba(47, 123, 82, 0.2);
}

.notta-action-icon {
  font-size: 18px;
  color: var(--primary-color);
}

.notta-dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.app-dashboard-2 {
  display: grid;
  gap: 18px;
}

.app-dashboard-2 .admin-dashboard-v2__header {
  margin-bottom: 0;
}

.app-dashboard-2 .admin-dashboard-v2__header h1 {
  font-size: 25px;
}

.app-dashboard-2 .admin-dashboard-v2__header p {
  font-size: 12px;
}

.app-dashboard-2 .admin-metric-strip {
  gap: 14px;
}

.app-dashboard-2 .admin-metric-card {
  min-height: 108px;
  gap: 14px;
  padding: 18px 20px;
}

.app-dashboard-2 .admin-metric-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.app-dashboard-2 .admin-metric-icon svg {
  width: 26px;
  height: 26px;
}

.app-dashboard-2 .admin-metric-copy {
  gap: 5px;
}

.app-dashboard-2 .admin-metric-copy small {
  font-size: 12px;
  font-weight: 800;
}

.app-dashboard-2 .admin-metric-copy strong {
  font-size: 26px;
  line-height: 1.05;
}

.app-dashboard-2 .admin-metric-copy em {
  font-size: 12px;
}

.app-dashboard-2 .admin-panel {
  padding: 18px;
}

.app-dashboard-2 .admin-panel__title {
  margin-bottom: 14px;
}

.app-dashboard-2 .admin-panel__title h2 {
  font-size: 16px;
}

.app-dashboard-2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.app-dashboard-2-grid--secondary {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.app-dashboard-2-side {
  display: grid;
  gap: 18px;
}

.app-dashboard-2 .admin-panel__title a {
  color: #0077ff;
  font-size: 13px;
  font-weight: 800;
}

.app-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.app-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.app-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.app-chart-legend .is-success,
.app-progress-track span {
  background: #16a34a;
}

.app-chart-legend .is-danger {
  background: #ff1744;
}

.app-chart-legend .is-info {
  background: #0077ff;
}

.app-cashflow-line-chart {
  display: grid;
  gap: 6px;
  min-height: 286px;
  padding: 0;
}

.app-cashflow-line-chart svg {
  width: 100%;
  height: 266px;
  overflow: visible;
}

.app-cashflow-line-chart .app-cashflow-grid {
  stroke: #edf2f8;
  stroke-width: 1;
}

.app-cashflow-line-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.app-cashflow-line-chart rect.is-success {
  fill: url(#cashflowRevenueGradient);
}

.app-cashflow-line-chart rect.is-danger {
  fill: url(#cashflowExpenseGradient);
}

.app-cashflow-line-chart circle.is-success {
  stroke: #16a34a;
  fill: #16a34a;
}

.app-cashflow-line-chart circle.is-danger {
  stroke: #ff1744;
  fill: #ff1744;
}

.app-cashflow-line-chart polyline.is-info {
  stroke: #0077ff;
  fill: none;
  filter: drop-shadow(0 8px 14px rgba(47, 118, 255, 0.18));
}

.app-cashflow-line-chart circle.is-info {
  stroke: #0077ff;
  fill: #0077ff;
  filter: drop-shadow(0 6px 10px rgba(47, 118, 255, 0.28));
}

.app-cashflow-line-chart circle {
  stroke-width: 2;
}

.app-cashflow-balance-area {
  fill: url(#cashflowBalanceAreaGradient);
}

.app-cashflow-point-group {
  outline: none;
}

.app-cashflow-hover-zone {
  fill: transparent;
  pointer-events: all;
}

.app-cashflow-hover-line {
  opacity: 0;
  stroke: #dbe7fb;
  stroke-dasharray: 4 6;
  stroke-width: 1.5;
  transition: opacity 0.18s ease;
}

.app-cashflow-point-group rect.is-success,
.app-cashflow-point-group rect.is-danger,
.app-cashflow-point-group circle.is-info {
  transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.app-cashflow-point-group:hover rect.is-success,
.app-cashflow-point-group:focus rect.is-success,
.app-cashflow-point-group:hover rect.is-danger,
.app-cashflow-point-group:focus rect.is-danger {
  filter: drop-shadow(0 12px 18px rgba(16, 24, 40, 0.16));
}

.app-cashflow-point-group:hover circle.is-info,
.app-cashflow-point-group:focus circle.is-info {
  stroke: #ffffff;
  stroke-width: 3;
}

.app-cashflow-point-group:hover .app-cashflow-hover-line,
.app-cashflow-point-group:focus .app-cashflow-hover-line,
.app-cashflow-point-group:hover .app-cashflow-tooltip,
.app-cashflow-point-group:focus .app-cashflow-tooltip {
  opacity: 1;
}

.app-cashflow-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.app-cashflow-tooltip rect {
  fill: #111827;
  filter: drop-shadow(0 16px 24px rgba(17, 24, 39, 0.22));
}

.app-cashflow-tooltip text {
  fill: #d9e2f3;
  font-size: 10.5px;
  font-weight: 700;
}

.app-cashflow-tooltip-title {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.app-cashflow-line-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.app-cashflow-line-labels span {
  overflow: hidden;
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-certificate-panel {
  gap: 20px;
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), #ffffff 42%);
}

.app-certificate-panel.is-danger {
  border-color: rgba(255, 23, 68, 0.28);
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.08), #ffffff 42%);
}

.app-certificate-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;;
}

.app-certificate-head .admin-section-icon {
  width: 54px;
  height: 54px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.14);
}

.app-certificate-panel.is-danger .admin-section-icon {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
  box-shadow: 0 12px 28px rgba(255, 23, 68, 0.14);
}

.app-certificate-head h2 {
  margin: 0 0 4px;
  color: #25324b;
  font-size: 18px;
  font-weight: 800;
}

.app-certificate-panel.is-danger .app-certificate-head h2,
.app-certificate-panel.is-danger .app-certificate-days strong,
.app-certificate-panel.is-danger .app-certificate-days span:last-child {
  color: #ff1744;
}

.app-certificate-head p {
  margin: 0;
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.app-certificate-panel.is-danger .app-certificate-head p {
  color: #b42318;
}

.app-certificate-panel > strong {
  color: #25324b;
  font-size: 20px;
  font-weight: 800;
}

.app-certificate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.app-certificate-panel.is-danger .app-certificate-actions {
  border-top-color: rgba(255, 23, 68, 0.18);
}

.app-certificate-days {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-certificate-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.app-certificate-panel.is-danger .app-certificate-date-icon {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.app-certificate-date-icon svg,
.app-certificate-renew svg {
  width: 18px;
  height: 18px;
}

.app-certificate-days strong {
  color: #25324b;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.app-certificate-days span:last-child {
  color: #68738d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.app-certificate-actions .button {
  min-width: 104px;
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.app-certificate-actions .app-certificate-renew {
  gap: 8px;
  min-width: 116px;
  height: 44px;
  border: 0;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.22);
  color: #ffffff;
}

.app-certificate-actions .app-certificate-renew:hover {
  color: #ffffff;
  filter: brightness(0.98);
}

.app-certificate-actions--loading {
  align-items: center;
}

.app-certificate-actions--loading > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.app-certificate-actions--loading .app-certificate-date-icon {
  width: 36px;
  height: 36px;
}

.app-skeleton-button {
  display: block;
  width: 104px;
  height: 38px;
  border-radius: 8px;
  flex: 0 0 104px;
}

.app-result-panel {
  gap: 12px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), #ffffff 46%);
}

.app-result-panel.is-negative {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.06), #ffffff 46%);
}

.app-result-panel > strong {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

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

.app-result-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.app-result-icon svg {
  width: 20px;
  height: 20px;
}

.app-result-panel.is-negative .app-result-icon {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.app-result-head .admin-section-label {
  min-height: 0;
  color: #25324b;
  font-size: 15px;
  font-weight: 800;
}

.app-result-head > small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
}

.app-result-head > small.is-loading {
  background: transparent;
  padding: 0;
}

.app-result-head > small.is-loading .admin-skeleton {
  width: 42px;
  height: 26px;
  border-radius: 999px;
}

.app-result-panel.is-negative .app-result-head > small {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.app-skeleton-result-value {
  display: block;
  width: min(210px, 72%);
  height: 36px;
  border-radius: 8px;
}

.app-skeleton-result-line {
  width: min(250px, 86%);
}

.app-result-panel .is-positive {
  color: #16a34a;
}

.app-result-panel .is-negative {
  color: #ff1744;
}

.app-result-panel p,
.app-result-panel small {
  margin: 0;
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.app-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e7ecf4;
}

.app-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.app-card-skeleton {
  display: grid;
  gap: 12px;
}

.app-card-skeleton--chart {
  min-height: 310px;
  align-content: center;
}

.app-card-skeleton--chart .admin-skeleton-line {
  width: 100%;
  height: 18px;
}

.app-skeleton-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.app-skeleton-row:last-child {
  border-bottom: 0;
}

.app-skeleton-row > .admin-skeleton:first-child {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.app-skeleton-row > div {
  display: grid;
  gap: 8px;
}

.app-dashboard-2 .admin-skeleton > svg {
  opacity: 0;
}

.app-bank-list {
  display: grid;
}

.app-bank-row,
.app-tax-row,
.app-support-panel {
  display: grid;
  align-items: center;
  gap: 14px;
}

.app-bank-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.app-bank-row > span,
.app-tax-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 119, 255, 0.1);
  color: #0077ff;
  font-size: 12px;
  font-weight: 900;
}

.app-bank-row strong,
.app-tax-row strong,
.app-support-panel strong {
  display: block;
  color: #25324b;
  font-size: 13px;
  font-weight: 800;
}

.app-bank-row small,
.app-tax-row small,
.app-support-panel small {
  color: #68738d;
  font-size: 11px;
  font-weight: 700;
}

.app-bank-row b,
.app-tax-row b,
.app-panel-footer strong {
  color: #101b36;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.app-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.app-nfs-panel {
  gap: 18px;
}

.app-nfs-header {
  margin-bottom: 18px;
}

.app-nfs-summary {
  gap: 14px;
}

.app-nfs-summary .admin-metric-card {
  min-height: 108px;
  gap: 14px;
  padding: 18px 20px;
}

.app-nfs-summary .admin-metric-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.app-nfs-summary .admin-metric-icon svg {
  width: 26px;
  height: 26px;
}

.app-nfs-summary .admin-metric-copy {
  gap: 5px;
}

.app-nfs-summary .admin-metric-copy small {
  font-size: 12px;
  font-weight: 800;
}

.app-nfs-summary .admin-metric-copy strong {
  font-size: 26px;
  line-height: 1.05;
}

.app-nfs-summary .admin-metric-copy em {
  font-size: 12px;
}

.app-nfs-title {
  padding-bottom: 14px;
  border-bottom: 1px solid #dde5f1;
}

.app-nfs-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-nfs-title-icon,
.app-nfs-total-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 119, 255, 0.1);
  color: #0077ff;
}

.app-nfs-title-icon svg,
.app-nfs-total-icon svg,
.app-nfs-status-icon svg,
.app-nfs-title a svg,
.app-nfs-action svg {
  width: 20px;
  height: 20px;
}

.app-nfs-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-nfs-title a svg {
  width: 18px;
  height: 18px;
}

.app-nfs-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.app-nfs-status-grid div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 18px 16px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.app-nfs-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.app-nfs-status-grid strong {
  color: #101b36;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.app-nfs-status-grid span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-nfs-status-grid .is-success {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.04);
  border-color: rgba(22, 163, 74, 0.22);
}

.app-nfs-status-grid .is-warning {
  color: #c56f00;
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.24);
}

.app-nfs-status-grid .is-danger {
  color: #ff1744;
  background: rgba(255, 23, 68, 0.04);
  border-color: rgba(255, 23, 68, 0.22);
}

.app-nfs-status-grid .is-success .app-nfs-status-icon {
  background: rgba(22, 163, 74, 0.12);
}

.app-nfs-status-grid .is-warning .app-nfs-status-icon {
  background: rgba(245, 158, 11, 0.14);
}

.app-nfs-status-grid .is-danger .app-nfs-status-icon {
  background: rgba(255, 23, 68, 0.12);
}

.app-nfs-total {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid #dde5f1;
  color: #25324b;
  font-size: 13px;
  font-weight: 700;
}

.app-nfs-total--loading .admin-skeleton-line {
  width: min(260px, 72%);
}

.app-nfs-action {
  gap: 10px;
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.app-skeleton-full-button {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 8px;
}

.app-tax-panel {
  gap: 0;
}

.app-tax-panel .app-empty-state {
  display: grid;
  gap: 4px;
  padding: 18px 0 4px;
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.app-tax-panel .app-empty-state strong {
  color: #25324b;
  font-size: 14px;
  font-weight: 800;
}

.app-tax-panel .app-skeleton-row {
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
}

.app-tax-row {
  grid-template-columns: 48px minmax(0, 1fr) auto 90px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.app-tax-row:last-child,
.app-bank-row:last-child {
  border-bottom: 0;
}

.app-tax-row > span.is-danger,
.app-tax-row em.is-danger {
  color: #ff1744;
  background: rgba(255, 23, 68, 0.08);
}

.app-tax-row > span.is-warning,
.app-tax-row em.is-warning {
  color: #c56f00;
  background: rgba(245, 158, 11, 0.12);
}

.app-tax-row > span.is-success,
.app-tax-row em.is-success {
  color: #15803d;
  background: rgba(22, 163, 74, 0.1);
}

.app-tax-row em {
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.app-support-panel {
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
}

.notta-table {
  display: grid;
  gap: 10px;
}

.notta-table-head,
.notta-table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.7fr;
  align-items: center;
  gap: 12px;
}

.notta-table-head > :last-child,
.notta-table-row > :last-child {
  justify-self: end;
}

.notta-table-head {
  font-size: 12px;
  color: var(--notta-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notta-table-row {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--notta-border);
  padding: 10px 12px;
}

.notta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.notta-pill.success {
  background: rgba(76, 154, 106, 0.15);
  color: var(--primary-color);
}

.notta-pill.warning {
  background: rgba(242, 153, 74, 0.2);
  color: #b86b1c;
}

.notta-pill.danger {
  background: rgba(235, 87, 87, 0.2);
  color: #c0392b;
}

.notta-pill.neutral {
  background: rgba(120, 120, 120, 0.15);
  color: #5f6368;
}

.flex-table .flex-table-item .flex-table-cell.nfs-client-cell {
  flex: 3 1 0;
  min-width: 0;
}

.flex-table .flex-table-item.is-row .flex-table-cell.nfs-client-cell {
  flex: 3 1 0;
}

.flex-table .flex-table-header .nfs-client-header {
  flex: 3 1 0;
}

.nfs-client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nfs-client-doc {
  font-size: 12px;
  color: var(--notta-muted);
}

.notta-table-link {
  border: 1px solid var(--notta-border);
  background: #fff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3a3a3a;
  text-decoration: none;
}

.notta-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--notta-muted);
  font-size: 12px;
}

.notta-pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.notta-pagination button {
  border: 1px solid var(--notta-border);
  background: #fff;
  border-radius: 8px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.notta-outline-button {
  border: 1px solid var(--notta-border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.notta-outline-button--success {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.notta-outline-button--success:hover {
  border-color: #2fae92;
  color: #2fae92;
  background: rgba(62, 187, 158, 0.08);
}

.notta-alert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notta-alert-item {
  display: flex;
  gap: 12px;
  border: 1px solid var(--notta-border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.notta-alert-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.notta-alert-item span {
  font-size: 12px;
  color: var(--notta-muted);
}

.notta-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(120, 120, 120, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .notta-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notta-dashboard-main,
  .notta-dashboard-bottom {
    grid-template-columns: 1fr;
  }

  .app-dashboard-2-grid,
  .app-dashboard-2-grid--secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .notta-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .app-cashflow-line-chart {
    min-height: 240px;
    overflow-x: auto;
  }

  .app-cashflow-line-chart svg {
    min-width: 620px;
    height: 240px;
  }

  .app-cashflow-line-labels {
    min-width: 620px;
  }

  .app-bank-row,
  .app-skeleton-row,
  .app-tax-panel .app-skeleton-row,
  .app-tax-row,
  .app-support-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .app-tax-row em {
    justify-self: start;
  }

  .app-nfs-status-grid {
    grid-template-columns: 1fr;
  }

  .notta-table-head,
  .notta-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .notta-table-head {
    display: none;
  }
}

.notta-col-6 {
  grid-column: span 6;
}

.notta-col-12 {
  grid-column: span 12;
}

.notta-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 16px;
  color: var(--notta-text);
}

.notta-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.notta-form {
  gap: 20px;
}

.notta-form-section {
  background: #f4f4f4;
  border-radius: 16px;
  padding: 20px;
}

.notta-form-section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.notta-form-section-head p {
  margin: 0;
  color: var(--notta-muted);
  font-size: 12px;
}

.notta-form-section .notta-section-title {
  margin: 0;
  font-size: 16px;
}

.notta-form .columns {
  margin-top: 0;
  margin-bottom: 0;
}

.notta-form .column {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.notta-form .field {
  margin-bottom: 0;
}

.notta-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--notta-muted);
  margin-bottom: 6px;
}

.notta-form .validation-message {
  display: block;
  margin: 6px 0 4px;
  font-size: 12px;
  line-height: 1.2;
  margin-left: 10px;
}

.notta-form .input,
.notta-form .select select,
.notta-form .textarea {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--notta-border);
  background: #ffffff;
  box-shadow: none;
}

.notta-form .textarea {
  min-height: 96px;
  height: auto;
}

.notta-form .select {
  width: 100%;
}

.notta-inline-action {
  display: flex;
  align-items: flex-end;
}

.notta-input-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notta-input-action .input {
  flex: 1;
}

.notta-input-action .button {
  height: 42px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.transaction-person-action .select {
  flex: 1 1 auto;
  min-width: 0;
}

.transaction-person-action .button .icon,
.transaction-person-action .button .icon svg {
  width: 18px;
  height: 18px;
  margin: 0 !important;
}

.account-bank-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-bank-field .select-field {
  position: relative;
  margin-bottom: 0;
}

.account-bank-field .select-field > label {
  display: inline-block;
  margin-bottom: 7px;
  color: #25324b;
  font-size: 13px;
  font-weight: 800;
}

.account-bank-field .select-control {
  position: relative;
}

.account-bank-field .select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  outline: 0;
  background: #ffffff;
  color: #25324b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -18px rgba(18, 34, 66, 0.4);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.account-bank-field .select-trigger:hover,
.account-bank-field .select-trigger:focus,
.account-bank-field .select-trigger.is-open {
  border-color: rgba(0, 119, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.account-bank-field .select-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-bank-field .select-trigger-icon {
  margin-left: 12px;
  color: #68738d;
  font-size: 13px;
}

.account-bank-field .select-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  max-height: 280px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 50px -24px rgba(18, 34, 66, 0.48);
}

.account-bank-field .select-search {
  padding: 9px;
  border-bottom: 1px solid #edf2f8;
  background: #f8fafc;
}

.account-bank-field .select-search .input {
  width: 100%;
  height: 38px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
}

.account-bank-field .select-search .input:focus {
  border-color: rgba(0, 119, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.08);
}

.account-bank-field .select-options {
  overflow-y: auto;
}

.account-bank-field .select-option {
  padding: 9px 11px;
  border-bottom: 1px solid #f1f4f8;
  cursor: pointer;
}

.account-bank-field .select-option:last-child {
  border-bottom: 0;
}

.account-bank-field .select-option:hover {
  background: rgba(0, 119, 255, 0.05);
}

.account-bank-field .select-option.is-selected {
  background: rgba(0, 119, 255, 0.09);
}

.account-bank-field .select-status {
  padding: 14px;
  color: #68738d;
  font-size: 12px;
  text-align: center;
}

.account-bank-code {
  min-width: 38px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 119, 255, 0.09);
  color: #0077ff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.account-bank-name {
  overflow: hidden;
  color: #25324b;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-modal-body {
  padding-bottom: 76px;
}

.form-modal-body.notta-form {
  display: grid;
  align-content: start;
  gap: 16px;
}

.form-modal-body .select,
.form-modal-body .select select {
  width: 100%;
}

.form-modal-title {
  margin: 0 0 16px;
  color: var(--notta-text);
  font-size: 19px;
  font-weight: 700;
}

.form-modal-footer {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 8px;
}

.form-modal-footer__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.form-modal-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.transaction-modal-form {
  gap: 14px;
}

.transaction-modal-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.transaction-modal-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.transaction-modal-summary strong {
  color: #25324b;
  font-size: 15px;
  font-weight: 900;
}

.transaction-modal-summary small {
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.transaction-operation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.transaction-modal-summary.is-income .transaction-operation-pill {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.transaction-modal-summary.is-expense .transaction-operation-pill {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.transaction-modal-summary.is-transfer .transaction-operation-pill {
  background: rgba(59, 130, 246, 0.1);
  color: #2f73ff;
}

.transfer-account-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #f8fafc;
}

.transfer-account-route > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.transfer-account-route small {
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.transfer-account-route strong {
  overflow: hidden;
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-route-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: #2f73ff;
}

.transfer-route-icon svg {
  width: 18px;
  height: 18px;
}

.transaction-value-input {
  color: #25324b;
  font-size: 18px;
  font-weight: 900;
}

.transaction-paid-toggle {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #dde5f1;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.transaction-paid-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.transaction-paid-toggle span {
  display: grid;
  gap: 1px;
}

.transaction-paid-toggle strong {
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
}

.transaction-paid-toggle small {
  color: #68738d;
  font-size: 11px;
  font-weight: 700;
}

.transaction-modal-footer .button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.transaction-modal-footer .button .icon svg {
  width: 17px;
  height: 17px;
}

.reconciliation-modal {
  display: grid;
  gap: 12px;
}

.reconciliation-context,
.reconciliation-summary-panel,
.reconciliation-filter-bar,
.reconciliation-card,
.reconciliation-empty-state,
.reconciliation-loading {
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.reconciliation-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.reconciliation-context > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.reconciliation-context strong {
  color: #25324b;
  font-size: 14px;
  font-weight: 900;
}

.reconciliation-context span {
  overflow: hidden;
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconciliation-summary-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(220px, 1.9fr);
  align-items: stretch;
  overflow: hidden;
}

.reconciliation-summary-item,
.reconciliation-progress-box {
  min-width: 0;
  padding: 14px;
}

.reconciliation-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #edf2f7;
}

.reconciliation-summary-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  border: 2px solid var(--primary-color);
  background: #f5f7ff;
}

.reconciliation-summary-item.is-suggestion .reconciliation-summary-icon {
  border-color: #f59e0b;
  background: #fff7ed;
}

.reconciliation-summary-item.is-done .reconciliation-summary-icon {
  border-color: #16a34a;
  background: #ecfdf5;
}

.reconciliation-summary-item strong {
  display: block;
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.reconciliation-summary-item.is-suggestion strong {
  color: #f59e0b;
}

.reconciliation-summary-item.is-done strong {
  color: #16a34a;
}

.reconciliation-summary-item small {
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
}

.reconciliation-progress-box {
  display: grid;
  align-content: center;
  gap: 8px;
}

.reconciliation-progress-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reconciliation-progress-title strong,
.reconciliation-progress-title span {
  color: #25324b;
  font-size: 12px;
  font-weight: 900;
}

.reconciliation-progress-title span {
  color: #68738d;
}

.reconciliation-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.reconciliation-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-color);
  transition: width 0.2s ease;
}

.reconciliation-action-message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.reconciliation-action-message.is-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.reconciliation-action-message.is-danger {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.reconciliation-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(110px, 1fr));
  gap: 10px;
  padding: 12px;
}

.reconciliation-filter-bar .field {
  margin-bottom: 0;
}

.reconciliation-filter-bar label {
  color: #68738d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reconciliation-filter-bar .select,
.reconciliation-filter-bar .select select {
  width: 100%;
}

.reconciliation-empty-filter,
.reconciliation-empty-state {
  padding: 18px;
  color: #68738d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.reconciliation-empty-state {
  display: grid;
  gap: 5px;
}

.reconciliation-empty-state strong {
  color: #25324b;
  font-size: 15px;
  font-weight: 900;
}

.reconciliation-list {
  display: grid;
  gap: 10px;
}

.reconciliation-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}

.reconciliation-card.is-processing {
  border-color: var(--primary-color);
  opacity: 0.78;
}

.reconciliation-card-main {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.reconciliation-card-check {
  width: 16px;
  height: 16px;
  border: 1px solid #b8c4d6;
  border-radius: 4px;
  background: #ffffff;
}

.reconciliation-bank-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ff6b00;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.reconciliation-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reconciliation-card-copy small,
.reconciliation-card-copy span {
  overflow: hidden;
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconciliation-card-copy strong {
  overflow: hidden;
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconciliation-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reconciliation-type-pill.is-success {
  background: #dcfce7;
  color: #16a34a;
}

.reconciliation-type-pill.is-danger {
  background: #ffe8ee;
  color: #ff1744;
}

.reconciliation-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.reconciliation-match-row.is-high {
  background: #f0fdf4;
}

.reconciliation-match-row.is-medium {
  background: #fff7ed;
}

.reconciliation-match-row.is-low,
.reconciliation-match-row.is-empty {
  background: #f8fafc;
}

.reconciliation-match-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reconciliation-match-copy strong {
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.reconciliation-match-row.is-medium .reconciliation-match-copy strong {
  color: #c56f00;
}

.reconciliation-match-row.is-low .reconciliation-match-copy strong,
.reconciliation-match-row.is-empty .reconciliation-match-copy strong {
  color: #25324b;
}

.reconciliation-match-copy span {
  overflow: hidden;
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconciliation-card-actions,
.reconciliation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reconciliation-card-actions .button,
.reconciliation-actions .button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.reconciliation-create-form,
.reconciliation-link-form,
.reconciliation-ignore-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.reconciliation-ignore-form {
  border: 1px solid #ffe1e8;
  background: #fff8fa;
}

.reconciliation-link-form {
  border: 1px solid #dbeafe;
  background: #f8fbff;
}

.reconciliation-link-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.reconciliation-link-search .field {
  margin-bottom: 0;
}

.reconciliation-link-list,
.reconciliation-link-select,
.reconciliation-link-loading {
  display: grid;
  gap: 8px;
}

.reconciliation-link-select .field {
  margin-bottom: 0;
}

.reconciliation-link-select .select,
.reconciliation-link-select .select select {
  width: 100%;
}

.reconciliation-link-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.reconciliation-link-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.reconciliation-link-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reconciliation-link-copy strong,
.reconciliation-link-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconciliation-link-copy strong {
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
}

.reconciliation-link-copy span,
.reconciliation-link-empty {
  color: #68738d;
  font-size: 12px;
  font-weight: 800;
}

.reconciliation-link-copy em {
  color: #3046d3;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: normal;
}

.reconciliation-link-empty,
.reconciliation-link-skeleton {
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
}

.reconciliation-link-skeleton {
  display: grid;
  gap: 8px;
}

.reconciliation-form-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #68738d;
  font-size: 12px;
  font-weight: 800;
}

.reconciliation-form-context strong {
  color: #25324b;
  font-weight: 900;
}

.reconciliation-loading {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.reconciliation-loading-summary,
.reconciliation-loading-filter {
  display: grid;
  gap: 10px;
}

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

.reconciliation-loading-filter {
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, 1fr));
}

.reconciliation-loading-stat,
.reconciliation-loading-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.reconciliation-loading-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ofx-import-body {
  display: grid;
  gap: 16px;
}

.ofx-import-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.ofx-import-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.ofx-import-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ofx-import-head strong {
  color: #25324b;
  font-size: 14px;
  font-weight: 900;
}

.ofx-import-head span {
  color: #68738d;
  font-size: 12px;
  line-height: 1.35;
}

.ofx-import-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary-color) !important;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: .04em;
}

.ofx-upload-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.ofx-upload-card {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #b8c4d6;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ofx-upload-card:hover,
.ofx-upload-card.has-file {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 50, 75, 0.06);
}

.ofx-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ofx-upload-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef2f7;
  color: #68738d;
}

.ofx-upload-card.has-file .ofx-upload-icon {
  background: #eef6ff;
  color: var(--primary-color);
}

.ofx-upload-icon svg {
  width: 22px;
  height: 22px;
}

.ofx-upload-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ofx-upload-copy strong {
  overflow: hidden;
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofx-upload-copy small,
.ofx-upload-hint {
  color: #68738d;
  font-size: 12px;
  line-height: 1.3;
}

.ofx-upload-clear {
  min-width: 86px;
  height: auto;
  min-height: 42px;
  align-self: center;
  border-radius: 8px;
}

.ofx-upload-hint {
  display: block;
  margin-top: 8px;
}

.ofx-preview-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ofx-import-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.ofx-import-result-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #dcfce7;
  color: #16a34a;
}

.ofx-import-result-icon svg {
  width: 22px;
  height: 22px;
}

.ofx-import-result strong {
  display: block;
  color: #166534;
  font-size: 14px;
  font-weight: 900;
}

.ofx-import-result p {
  margin: 4px 0 0;
  color: #3f4f46;
  font-size: 13px;
  line-height: 1.4;
}

.ofx-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ofx-preview-summary > div,
.ofx-preview-counters,
.ofx-preview-values,
.ofx-preview-message,
.ofx-preview-table {
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.ofx-preview-summary > div {
  display: grid;
  gap: 2px;
  padding: 12px;
}

.ofx-preview-summary small {
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ofx-preview-summary strong {
  overflow: hidden;
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofx-preview-counters,
.ofx-preview-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.ofx-preview-counters span,
.ofx-preview-values span {
  color: #68738d;
  font-size: 13px;
  font-weight: 800;
}

.ofx-preview-counters strong,
.ofx-preview-values strong {
  color: #25324b;
  font-weight: 900;
}

.ofx-preview-message {
  display: grid;
  gap: 4px;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
}

.ofx-preview-message p {
  margin: 0;
}

.ofx-preview-table {
  overflow: hidden;
}

.ofx-preview-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
}

.ofx-preview-row:last-child {
  border-bottom: 0;
}

.ofx-preview-row span,
.ofx-preview-row strong,
.ofx-preview-row em {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofx-preview-row strong {
  color: #25324b;
  font-weight: 900;
}

.ofx-preview-row em {
  justify-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #68738d;
  font-style: normal;
  font-weight: 900;
}

.ofx-preview-panel .is-success {
  color: #16a34a;
}

.ofx-preview-panel .is-warning {
  color: #c56f00;
}

.ofx-preview-panel .is-danger {
  color: #ff1744;
}

@media (max-width: 640px) {
  .reconciliation-summary-panel,
  .reconciliation-filter-bar,
  .reconciliation-loading-summary,
  .reconciliation-loading-filter,
  .reconciliation-card-main,
  .reconciliation-match-row,
  .reconciliation-link-search,
  .reconciliation-link-item,
  .reconciliation-link-preview,
  .reconciliation-loading-card {
    grid-template-columns: 1fr;
  }

  .reconciliation-context,
  .reconciliation-progress-title,
  .reconciliation-form-context,
  .reconciliation-card-actions,
  .reconciliation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reconciliation-summary-item {
    border-right: 0;
    border-bottom: 1px solid #edf2f7;
  }

  .reconciliation-summary-item:last-of-type {
    border-bottom: 0;
  }

  .reconciliation-card-actions .button,
  .reconciliation-actions .button,
  .reconciliation-context .button,
  .reconciliation-link-search .button,
  .reconciliation-link-item .button {
    width: 100%;
  }

  .reconciliation-card-copy small,
  .reconciliation-card-copy span,
  .reconciliation-card-copy strong,
  .reconciliation-match-copy span,
  .reconciliation-link-copy strong,
  .reconciliation-link-copy span {
    white-space: normal;
  }

  .ofx-upload-wrap {
    grid-template-columns: 1fr;
  }

  .ofx-upload-clear {
    width: 100%;
  }

  .ofx-preview-summary {
    grid-template-columns: 1fr;
  }
}

.launch-panel {
  display: grid;
  gap: 16px;
}

.launch-panel-toolbar,
.launch-matrix-card,
.launch-summary-card {
  border: 1px solid var(--notta-border);
  border-radius: 8px;
  background: #ffffff;
}

.launch-panel-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.launch-panel-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.launch-panel-filter .field {
  margin-bottom: 0;
  width: 190px;
}

.launch-panel-filter label {
  color: var(--notta-muted);
  font-size: 12px;
  font-weight: 600;
}

.launch-filter-button {
  width: 46px;
  height: 42px;
  padding: 0;
}

.launch-status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.launch-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--notta-border);
  border-radius: 999px;
  color: var(--notta-text);
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
}

.launch-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.launch-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.launch-summary-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px 16px 14px 18px;
  overflow: hidden;
}

.launch-summary-card::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--notta-muted);
}

.launch-summary-card span {
  color: var(--notta-muted);
  font-size: 12px;
  font-weight: 700;
}

.launch-summary-card strong {
  color: var(--notta-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.launch-matrix-card {
  overflow: hidden;
}

.launch-matrix-scroll {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.launch-matrix {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--notta-text);
}

.launch-matrix th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 10px;
  border-bottom: 1px solid var(--notta-border);
  background: #ffffff;
  color: var(--notta-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.launch-matrix th.is-company {
  left: 0;
  z-index: 4;
  min-width: 320px;
  text-align: left;
}

.launch-matrix th.is-action {
  width: 70px;
}

.launch-matrix td {
  height: 56px;
  padding: 8px 7px;
  border-bottom: 1px solid var(--notta-border);
  background: #ffffff;
  text-align: center;
  vertical-align: middle;
}

.launch-matrix tbody tr:hover td {
  background: #fafafa;
}

.launch-company-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 320px;
  max-width: 360px;
  text-align: left !important;
}

.launch-company-cell span {
  display: block;
  overflow: hidden;
  color: var(--notta-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-month-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.launch-legend-item.is-info i,
.launch-summary-card.is-info::before,
.launch-month-cell.is-info span {
  background: #4b89b9;
}

.launch-legend-item.is-success i,
.launch-summary-card.is-success::before,
.launch-month-cell.is-success span {
  background: #147a08;
}

.launch-legend-item.is-alert i,
.launch-summary-card.is-alert::before,
.launch-month-cell.is-alert span {
  background: #f0ae45;
}

.launch-legend-item.is-danger i,
.launch-summary-card.is-danger::before,
.launch-month-cell.is-danger span {
  background: #d81948;
}

.launch-month-cell.is-info span,
.launch-month-cell.is-success span,
.launch-month-cell.is-alert span,
.launch-month-cell.is-danger span {
  color: #ffffff;
}

.launch-summary-card.is-info strong {
  color: #4b89b9;
}

.launch-summary-card.is-success strong {
  color: #147a08;
}

.launch-summary-card.is-alert strong {
  color: #b97310;
}

.launch-summary-card.is-danger strong {
  color: #d81948;
}

.launch-action-cell {
  width: 70px;
}

.launch-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--notta-border);
  border-radius: 8px;
  color: var(--notta-text);
  background: #ffffff;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.launch-row-action:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(58, 135, 92, 0.06);
}

.launch-detail-page {
  display: grid;
  gap: 16px;
}

.launch-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.launch-insight-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.42);
}

.launch-insight-card__header,
.launch-progress-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launch-insight-card__header h3 {
  margin: 0;
  color: #25324b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launch-insight-card__header span {
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.launch-mini-filter {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #dde5f1;
  border-radius: 999px;
  background: #ffffff;
  color: #68738d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.launch-mini-filter.is-active {
  border-color: rgba(0, 119, 255, 0.25);
  background: rgba(0, 119, 255, 0.08);
  color: #0077ff;
}

.launch-category-breakdown {
  display: grid;
  gap: 10px;
}

.launch-breakdown-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(90px, 1fr) 90px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #25324b;
  text-align: left;
}

.launch-breakdown-row__label {
  overflow: hidden;
  color: #25324b;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-breakdown-row__track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f8;
}

.launch-breakdown-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0077ff;
}

.launch-breakdown-row:nth-child(2) .launch-breakdown-row__track i {
  background: #f59e0b;
}

.launch-breakdown-row:nth-child(3) .launch-breakdown-row__track i {
  background: #ff1744;
}

.launch-breakdown-row:nth-child(4) .launch-breakdown-row__track i {
  background: #8b9bb5;
}

.launch-breakdown-row strong {
  color: #25324b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.launch-status-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.launch-status-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 86px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.launch-status-card strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.launch-status-card span {
  font-size: 12px;
  font-weight: 800;
}

.launch-status-card.is-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b77906;
}

.launch-status-card.is-validated {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.launch-status-card.is-active {
  border-color: currentColor;
  box-shadow: 0 16px 35px -28px currentColor;
}

.launch-progress-summary {
  display: grid;
  gap: 6px;
}

.launch-progress-summary span,
.launch-progress-summary small {
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.launch-progress-summary strong {
  color: #25324b;
  font-size: 12px;
  font-weight: 800;
}

.launch-progress-summary .progress {
  height: 8px;
  margin: 0;
  border-radius: 999px;
}

.launch-insight-empty {
  display: flex;
  align-items: center;
  min-height: 86px;
  color: #68738d;
  font-size: 13px;
  font-weight: 700;
}

.admin-launch-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-launch-summary-grid .summary-card:nth-child(1)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16v4H4V4Zm0 6h16v4H4v-4Zm0 6h16v4H4v-4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16v4H4V4Zm0 6h16v4H4v-4Zm0 6h16v4H4v-4Z'/%3E%3C/svg%3E");
}

.admin-launch-summary-grid .summary-card:nth-child(2)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 1 21h22L12 2Zm1 16h-2v-2h2v2Zm0-4h-2V8h2v6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 1 21h22L12 2Zm1 16h-2v-2h2v2Zm0-4h-2V8h2v6Z'/%3E%3C/svg%3E");
}

.admin-launch-summary-grid .summary-card:nth-child(3)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9.5 16.2-3.7-3.7-1.4 1.4 5.1 5.1L20 8.5l-1.4-1.4-9.1 9.1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9.5 16.2-3.7-3.7-1.4 1.4 5.1 5.1L20 8.5l-1.4-1.4-9.1 9.1Z'/%3E%3C/svg%3E");
}

.admin-launch-list .flex-table-header,
.admin-launch-list .flex-table-item {
  display: grid;
  grid-template-columns: 72px 112px minmax(240px, 1.7fr) 140px minmax(300px, 1.1fr) 110px;
  align-items: center;
  gap: 12px;
}

.admin-launch-list .flex-table-header span,
.admin-launch-list .flex-table-item .flex-table-cell {
  width: auto !important;
  min-width: 0;
}

.admin-launch-list .flex-table-item.admin-launch-row {
  border-left: 4px solid #c8d4e6;
  background: #ffffff !important;
}

.admin-launch-list .flex-table-item.admin-launch-row.is-pending {
  border-left-color: #f59e0b;
}

.admin-launch-list .flex-table-item.admin-launch-row.is-validated {
  border-left-color: #16a34a;
}

.admin-launch-title .dark-text {
  font-size: 13px;
  line-height: 1.25;
}

.launch-operation-badge,
.launch-value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.launch-operation-badge {
  min-width: 32px;
  padding: 5px 9px;
  color: #ffffff;
}

.launch-operation-badge.is-income {
  background: #16a34a;
}

.launch-operation-badge.is-expense {
  background: #ff1744;
}

.launch-operation-badge.is-transfer {
  background: #0077ff;
}

.launch-value-badge {
  padding: 5px 10px;
}

.launch-value-badge.is-income {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.launch-value-badge.is-expense {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.launch-category-select,
.launch-category-select select {
  width: 100%;
}

.launch-category-select select {
  height: 40px;
  border-color: var(--notta-border);
  border-radius: 8px;
  color: var(--notta-text);
  box-shadow: none;
}

.launch-category-empty {
  color: var(--notta-muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .launch-panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-status-legend {
    justify-content: flex-start;
  }

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

  .launch-insights-grid {
    grid-template-columns: 1fr;
  }

  .launch-matrix-scroll {
    max-height: calc(100vh - 360px);
  }

  .admin-launch-list .flex-table-header,
  .admin-launch-list .flex-table-item {
    grid-template-columns: 64px 104px minmax(200px, 1.5fr) 128px minmax(240px, 1fr) 96px;
  }
}

@media (max-width: 560px) {
  .launch-panel-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-panel-filter .field,
  .launch-filter-button {
    width: 100%;
  }

  .launch-summary-grid {
    grid-template-columns: 1fr;
  }

  .launch-breakdown-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .launch-breakdown-row strong {
    text-align: left;
  }

  .launch-status-overview {
    grid-template-columns: 1fr;
  }

  .admin-launch-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-launch-list .flex-table-header {
    display: none;
  }

  .admin-launch-list .flex-table-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .admin-launch-list .cell-end {
    justify-content: flex-start;
  }
}

.notta-combo {
  position: relative;
}

.notta-combo-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--notta-border);
  border-radius: 12px;
  padding: 4px 6px 4px 10px;
}

.notta-combo-input .input {
  flex: 1;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 8px 2px;
  height: auto;
}

.notta-combo-toggle {
  height: 34px;
  width: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #f4f2f0;
  color: var(--notta-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notta-combo-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--notta-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.12);
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  z-index: 40;
}

.notta-combo-option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  text-align: left;
}

.notta-combo-option-title {
  font-weight: 600;
  color: var(--notta-text);
}

.notta-combo-option:hover {
  background: #f4f2f0;
}

.notta-combo-desc {
  font-size: 12px;
  color: var(--notta-muted);
}

.notta-combo-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--notta-muted);
}

.notta-inline-action .button {
  height: 42px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
}

.notta-search-wide {
  width: 320px;
  max-width: 100%;
}

.notta-nfs-filter {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.notta-segmented-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 3px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #f8fafc;
}

.notta-segmented-filter button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #68738d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.notta-segmented-filter button:hover {
  color: #17213a;
}

.notta-segmented-filter button.is-active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 8px 20px -16px rgba(18, 34, 66, 0.5);
}

.notta-date-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.notta-date-filter span {
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.notta-date-filter .input {
  width: 150px;
}

.notta-filter-submit {
  width: 44px;
  min-width: 44px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
}

.notta-filter-submit .icon {
  width: 18px;
  height: 18px;
  margin: 0 !important;
}

.notta-filter-submit .icon svg {
  width: 17px;
  height: 17px;
}

.app-transaction-balance {
  margin-bottom: 0;
}

.app-transaction-summary {
  gap: 14px;
}

.app-transaction-summary .admin-metric-card {
  min-height: 108px;
  gap: 14px;
  padding: 18px 20px;
}

.app-transaction-summary .admin-metric-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.app-transaction-summary .admin-metric-icon svg {
  width: 26px;
  height: 26px;
}

.app-transaction-summary .admin-metric-copy {
  gap: 5px;
}

.app-transaction-summary .admin-metric-copy small {
  font-size: 12px;
  font-weight: 800;
}

.app-transaction-summary .admin-metric-copy strong {
  font-size: 26px;
  line-height: 1.05;
}

.app-transaction-summary .admin-metric-copy em {
  font-size: 12px;
}

.app-transaction-page {
  display: grid;
  gap: 16px;
}

.app-transaction-insights {
  gap: 14px;
}

.app-transaction-insights > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  color: #25324b;
  font-size: 12px;
  font-weight: 800;
}

.app-transaction-insights > span svg {
  width: 17px;
  height: 17px;
}

.app-transaction-insights > span.is-warning svg {
  color: #f97316;
}

.app-transaction-insights > span.is-alert svg {
  color: #f59e0b;
}

.app-transaction-insights > span.is-info svg {
  color: #6d5dfc;
}

.app-transaction-panel {
  gap: 14px;
  padding: 16px;
}

.app-transaction-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-transaction-tabs {
  overflow-x: auto;
  max-width: 100%;
}

.app-transaction-tabs button {
  white-space: nowrap;
}

.app-transaction-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.app-add-split {
  position: relative;
  display: inline-flex;
}

.app-add-main {
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.app-add-main .icon svg {
  width: 17px;
  height: 17px;
}

.app-add-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.app-add-chevron svg {
  width: 16px;
  height: 16px;
}

.app-add-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px -22px rgba(18, 34, 66, 0.45);
}

.app-add-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #25324b;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.app-add-menu button:hover {
  background: #f8fafc;
}

.app-add-menu span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.app-add-menu .is-success {
  background: #16a34a;
}

.app-add-menu .is-danger {
  background: #ff1744;
}

.app-add-menu .is-info {
  background: #0077ff;
}

.app-add-menu .is-warning {
  background: #f59e0b;
}

.app-transaction-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr)) repeat(2, minmax(150px, 1fr)) auto auto auto;
  gap: 10px;
  align-items: center;
}

.app-search-field {
  position: relative;
  display: block;
}

.app-search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8a97b3;
}

.app-search-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border: 1px solid #d8e1ef;
  border-radius: 8px;
  background: #ffffff;
  color: #25324b;
  font-size: 13px;
  font-weight: 700;
}

.app-transaction-filter-grid .input {
  height: 40px;
  border-color: #d8e1ef;
  border-radius: 8px;
  color: #25324b;
  font-size: 13px;
  font-weight: 700;
}

.app-date-input {
  position: relative;
}

.app-date-input span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #68738d;
  font-size: 11px;
  font-weight: 800;
}

.app-date-input .input {
  padding-left: 36px;
}

.app-filter-button {
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.app-filter-button .icon svg {
  width: 17px;
  height: 17px;
}

.app-transaction-table-wrap {
  overflow-x: auto;
}

.app-transaction-table {
  min-width: 980px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.app-transaction-table .flex-table-header {
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #edf2f8;
  background: #ffffff;
  color: #25324b;
}

.app-transaction-table .flex-table-header span {
  color: #25324b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.app-transaction-table .flex-list-inner {
  padding: 0;
}

.app-transaction-table .flex-table-item {
  min-height: 58px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  border-radius: 0;
  box-shadow: none;
}

.app-transaction-table .flex-table-item:last-child {
  border-bottom: 0;
}

.app-transaction-table .flex-table-cell {
  color: #25324b;
  font-size: 12px;
  font-weight: 700;
}

.app-operation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.app-operation-icon svg {
  width: 16px;
  height: 16px;
}

.app-operation-icon.is-success,
.app-category-chip.is-success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.app-operation-icon.is-danger,
.app-category-chip.is-danger {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.app-operation-icon.is-info,
.app-category-chip.is-info {
  background: rgba(0, 119, 255, 0.1);
  color: #0077ff;
}

.app-category-chip {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-chip.is-empty {
  background: rgba(245, 158, 11, 0.12);
  color: #c56f00;
}

.app-transaction-value {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.app-transaction-value.is-success {
  color: #16a34a;
}

.app-transaction-value.is-danger {
  color: #ff1744;
}

.app-transaction-value.is-info {
  color: #0077ff;
}

.app-transaction-list .tab-content.is-active > .flex-table,
.transaction-loading-table {
  min-width: 1180px;
}

.transaction-loading-search {
  flex: 1 1 280px;
  min-width: 240px;
}

.transaction-loading-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 10px;
  flex: 2 1 520px;
}

.transaction-loading-table {
  overflow: hidden;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
}

.transaction-loading-table .flex-table-header {
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #edf2f8;
  background: #ffffff;
  color: #25324b;
}

.transaction-loading-table .flex-table-header span {
  color: #25324b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.transaction-loading-table .flex-list-inner {
  padding: 0;
}

.transaction-loading-row {
  min-height: 58px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  border-radius: 0;
  box-shadow: none;
}

.transaction-loading-row:last-child {
  border-bottom: 0;
}

.transaction-loading-row .admin-skeleton {
  max-width: 100%;
}

.transaction-recurrence-edit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #f8fafc;
}

.transaction-recurrence-edit > div {
  display: grid;
  gap: 3px;
}

.transaction-recurrence-edit > div strong {
  color: #25324b;
  font-size: 13px;
  font-weight: 900;
}

.transaction-recurrence-edit > div span {
  color: #68738d;
  font-size: 12px;
  font-weight: 700;
}

.transaction-recurrence-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.transaction-recurrence-option input {
  margin-top: 3px;
}

.transaction-recurrence-option span {
  display: grid;
  gap: 2px;
}

.transaction-recurrence-option strong {
  color: #25324b;
  font-size: 12px;
  font-weight: 900;
}

.transaction-recurrence-option small {
  color: #68738d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.app-payment-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.app-payment-status svg {
  width: 13px;
  height: 13px;
}

.app-payment-status.is-paid {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.app-payment-status.is-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #c56f00;
}

@media (max-width: 1280px) {
  .app-transaction-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .app-search-field {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .app-transaction-summary,
  .app-transaction-insights,
  .app-transaction-filter-grid {
    grid-template-columns: 1fr;
  }

  .app-transaction-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .app-transaction-actions,
  .app-add-split,
  .app-add-main {
    width: 100%;
  }

  .app-add-main {
    justify-content: center;
  }

  .app-search-field {
    grid-column: span 1;
  }

  .app-filter-button {
    justify-content: center;
    width: 100%;
  }
}

.notta-file-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notta-file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.notta-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed var(--notta-border);
  color: var(--notta-text);
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notta-file-trigger:hover {
  border-color: var(--notta-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.notta-file-name {
  font-size: 14px;
  color: var(--notta-muted);
  word-break: break-all;
}

.notta-file-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--notta-muted);
}

.notta-file-clear {
  height: 38px;
}

.document-modal-form {
    height: auto;
}

.document-modal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 76px;
}

.document-modal-shell.is-edit {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
}

.document-preview-panel,
.document-form-panel {
    min-height: 0;
    background: #ffffff;
    overflow: hidden;
}

.document-preview-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid var(--notta-border);
    border-radius: 8px;
}

.document-preview-panel__head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--notta-border);
    background: #ffffff;
}

.document-preview-panel__head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.document-preview-panel__head span,
.document-form-section .notta-form-section-head p {
    color: var(--notta-muted);
    font-size: 12px;
}

.document-preview-panel__head strong {
    overflow: hidden;
    color: var(--notta-text);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-preview-panel__link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--notta-border);
    background: #ffffff;
    color: var(--notta-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.document-preview-panel__body {
    min-height: 600px;
    padding: 12px;
}

.document-preview-empty {
    height: 100%;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--notta-border);
    border-radius: 8px;
    color: var(--notta-muted);
    text-align: center;
}

.document-preview-empty__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--notta-muted);
}

.document-preview-empty__icon svg {
    width: 28px;
    height: 28px;
}

.document-preview-empty strong {
    color: var(--notta-text);
    font-size: 15px;
}

.document-preview-empty small {
    color: var(--notta-muted);
}

.document-form-panel {
    display: block;
}

.document-form-content {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 0;
    overflow: visible;
}

.document-form-section {
    border: 0;
    border-radius: 12px;
    background: #f4f4f4;
    padding: 18px;
}

.document-form-section .columns {
    row-gap: 2px;
}

.document-form-section .select,
.document-form-section .select select {
    width: 100%;
}

.document-upload-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.document-upload-card {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px dashed #b8c4d6;
    border-radius: 8px;
    background: #ffffff;
    color: var(--notta-text);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.document-upload-card:hover,
.document-upload-card.has-file {
    border-color: var(--primary-color);
    background: #ffffff;
}

.document-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.document-upload-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--notta-muted);
}

.document-upload-icon svg {
    width: 22px;
    height: 22px;
}

.document-upload-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.document-upload-copy strong {
    overflow: hidden;
    color: var(--notta-text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-upload-copy small {
    color: var(--notta-muted);
    font-size: 12px;
    line-height: 1.25;
}

.document-upload-clear {
    height: auto;
    min-height: 42px;
    align-self: center;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .document-modal-shell.is-edit {
        grid-template-columns: 1fr;
    }

    .document-preview-panel__body {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .document-upload-wrap {
        grid-template-columns: 1fr;
    }

    .form-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .form-modal-footer__actions,
    .form-modal-footer__actions .button {
        width: 100%;
    }
}

.notta-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 18, 18, 0.45);
}

.notta-confirm-modal {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(18, 18, 18, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--notta-text);
}

.notta-confirm-title {
  font-size: 18px;
  font-weight: 700;
}

.notta-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.notta-confirm-actions .button {
  min-width: 120px;
}

.notta-sidebar-overlay {
  display: none;
}

@media (min-width: 1025px) and (max-width: 1360px) {
  .notta-sidebar {
    width: 236px;
    padding: 18px 16px;
    gap: 16px;
  }

  .notta-brand img {
    height: 48px;
    max-width: 132px;
  }

  .notta-nav {
    gap: 4px;
  }

  .notta-nav-section {
    margin: 8px 0 3px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .notta-nav-link {
    gap: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 14px;
  }

  .notta-nav-link .icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
  }

  .notta-sidebar-footer {
    gap: 7px;
    padding-top: 10px;
  }

  .notta-company strong {
    font-size: 12px;
  }

  .notta-company span,
  .notta-logout {
    font-size: 12px;
  }
}

@media (max-height: 820px) and (min-width: 1025px) {
  .notta-sidebar {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }

  .notta-brand img {
    height: 44px;
  }

  .notta-nav-link {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .notta-nav-link .icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .notta-sidebar-footer {
    padding-top: 9px;
  }
}

@media (max-width: 1024px) {
  .notta-shell {
    flex-direction: column;
  }

  .notta-mobile-bar {
    display: flex;
  }

  .notta-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 50;
  }

  .notta-sidebar.is-open {
    transform: translateX(0);
  }

  .notta-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
  }

  .notta-sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .notta-content {
    padding: 20px 20px 32px;
  }
}

@media (max-width: 768px) {
  .notta-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .notta-col-6 {
    grid-column: span 6;
  }

  .notta-col-12 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .notta-page-head {
    flex-direction: column;
  }
}

.status-action-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--ibx-color-neutral-surface);
    color: var(--ibx-color-neutral-900);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-right: 4px;
}

.status-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-action-button svg {
    width: 16px;
    height: 16px;
}

.status-action-button:hover {
    transform: translateY(-1px);
    background: var(--ibx-color-neutral-soft-strong);
}

.status-action-button--edit {
    background: var(--ibx-color-neutral-soft);
    color: var(--ibx-color-neutral-700);
}

.status-action-button--edit:hover {
    background: var(--ibx-color-neutral-soft-strong);
}

.status-action-button--info {
    background: var(--ibx-color-primary-soft);
    color: var(--ibx-color-primary);
}

.status-action-button--info:hover {
    background: var(--ibx-color-primary-soft-strong);
}

.status-action-button--progress {
    background: var(--ibx-color-info-soft);
    color: var(--ibx-color-info-dark);
}

.status-action-button--progress:hover {
    background: var(--ibx-color-info-soft-strong);
}

.status-action-button--done {
    background: var(--ibx-color-success-soft);
    color: var(--ibx-color-success-dark);
}

.status-action-button--done:hover {
    background: var(--ibx-color-success-soft-strong);
}

.status-action-button--pending {
    background: var(--ibx-color-danger-soft);
    color: var(--ibx-color-danger);
}

.status-action-button--pending:hover {
    background: var(--ibx-color-danger-soft-strong);
}

.status-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

/* Admin listing pattern */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.summary-grid--certified {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    align-content: center;
    column-gap: 14px;
    row-gap: 3px;
    padding: 14px 16px;
    border: 1px solid #dde5f1;
    border-left: 4px solid #0077ff;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
    color: #0077ff;
    position: relative;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.summary-card::before {
    content: "";
    grid-row: 1 / 4;
    grid-column: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.12;
}

.summary-card::after {
    content: "";
    grid-row: 1 / 4;
    grid-column: 1;
    justify-self: center;
    align-self: center;
    width: 22px;
    height: 22px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19V5h16v14H4Zm2-2h3V9H6v8Zm5 0h3V7h-3v10Zm5 0h2v-5h-2v5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19V5h16v14H4Zm2-2h3V9H6v8Zm5 0h3V7h-3v10Zm5 0h2v-5h-2v5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.summary-card > * {
    grid-column: 2;
    min-width: 0;
}

button.summary-card {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.summary-card--action:hover,
.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px -35px rgba(18, 34, 66, 0.55);
}

.summary-card.is-active {
    border-color: currentColor;
    box-shadow: 0 24px 55px -35px rgba(18, 34, 66, 0.62);
}

.summary-card--success {
    border-left-color: #16a34a;
    color: #16a34a;
}

.summary-card--primary {
    border-left-color: #ff1744;
    color: #ff1744;
}

.summary-card--warning {
    border-left-color: #0077ff;
    color: #0077ff;
}

.summary-card--accent {
    border-left-color: #f59e0b;
    color: #f59e0b;
}

.summary-card--danger {
    border-left-color: #dc2626;
    color: #dc2626;
}

.summary-card--neutral {
    border-left-color: #6b7280;
    color: #6b7280;
}

.summary-card--success::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.55 17.6 4.9 12.95l1.4-1.4 3.25 3.25 8.15-8.15 1.4 1.4-9.55 9.55Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.55 17.6 4.9 12.95l1.4-1.4 3.25 3.25 8.15-8.15 1.4 1.4-9.55 9.55Z'/%3E%3C/svg%3E");
}

.summary-card--primary::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 1 21h22L12 2Zm1 16h-2v-2h2v2Zm0-4h-2V8h2v6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 1 21h22L12 2Zm1 16h-2v-2h2v2Zm0-4h-2V8h2v6Z'/%3E%3C/svg%3E");
}

.summary-card--warning::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 21v-8H5l8-10v8h6l-8 10Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 21v-8H5l8-10v8h6l-8 10Z'/%3E%3C/svg%3E");
}

.summary-card--accent::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7h11l-3-3 1.4-1.4L22.2 8l-5.8 5.4L15 12l3-3H7V7Zm10 10H6l3 3-1.4 1.4L1.8 16l5.8-5.4L9 12l-3 3h11v2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7h11l-3-3 1.4-1.4L22.2 8l-5.8 5.4L15 12l3-3H7V7Zm10 10H6l3 3-1.4 1.4L1.8 16l5.8-5.4L9 12l-3 3h11v2Z'/%3E%3C/svg%3E");
}

.summary-card__label {
    color: #25324b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.summary-card__value {
    color: #101b36;
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.summary-card__hint {
    color: #68738d;
    font-size: 11px;
}

.summary-card--success .summary-card__value {
    color: #16a34a;
}

.summary-card--primary .summary-card__value {
    color: #ff1744;
}

.summary-card--warning .summary-card__value {
    color: #0077ff;
}

.summary-card--accent .summary-card__value {
    color: #f59e0b;
}

.summary-card--danger .summary-card__value {
    color: #dc2626;
}

.summary-card--neutral .summary-card__value {
    color: #6b7280;
}

.list-flex-toolbar {
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.42);
}

.list-flex-toolbar > .control {
    min-width: 0;
}

.list-flex-toolbar > .admin-list-search {
    flex: 0 1 280px;
    min-width: 220px;
}

.admin-list-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.admin-list-filter-group .admin-list-search {
    flex: 0 1 280px;
    min-width: 220px;
}

.list-flex-toolbar .buttons {
    margin-left: auto;
}

.admin-list-search,
.list-flex-toolbar > .control {
    position: relative;
}

.admin-list-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 17px;
    height: 17px;
    display: inline-flex;
    color: #8390a8;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.admin-list-search__icon svg {
    width: 17px;
    height: 17px;
}

.admin-list-search .input {
    padding-left: 40px;
}

.list-flex-toolbar .input {
    height: 40px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    box-shadow: none;
    color: #17213a;
}

.list-flex-toolbar .input:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.12);
}

.list-flex-toolbar .tabs-inner,
.list-flex-toolbar .tabs,
.list-flex-toolbar .tabs ul {
    max-width: 100%;
    overflow: visible;
}

.list-flex-toolbar .tabs.is-toggle ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.list-flex-toolbar .tabs.is-toggle li {
    margin: 0;
}

.list-flex-toolbar .tabs.is-toggle a,
.list-flex-toolbar .button.is-static {
    min-height: 38px;
    border-radius: 8px;
    font-size: 13px;
}

.list-flex-toolbar .field.has-addons {
    margin-bottom: 0;
}

.list-flex-toolbar .field.has-addons .control {
    min-width: 0;
}

.list-flex-toolbar .field.has-addons .input {
    width: 170px;
}

.list-flex-toolbar .button.h-button .icon,
.list-flex-toolbar .button.h-button .icon-22,
.flex-table .cell-end .button.h-button .icon,
.flex-table .cell-end .button.h-button .icon-22 {
    width: 18px;
    height: 18px;
    margin-right: 0 !important;
}

.list-flex-toolbar .button.h-button .icon svg,
.list-flex-toolbar .button.h-button .icon-22 svg,
.flex-table .cell-end .button.h-button .icon svg,
.flex-table .cell-end .button.h-button .icon-22 svg,
.flex-table .cell-end .button.h-button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.flex-table .button .icon svg,
.flex-table .button .icon-22 svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.flex-table .cell-end .button.h-button {
    min-height: 38px;
    border-radius: 10px;
}

.flex-table .cell-end .button.h-button:not(.is-primary):not(.is-danger):not(.is-success) {
    border-color: transparent;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
    box-shadow: none;
}

.flex-table .cell-end .button.h-button:not(.is-primary):not(.is-danger):not(.is-success):hover {
    background: rgba(0, 119, 255, 0.16);
    color: #0077ff;
}

.tab-content.is-active > .flex-table,
.flex-list-wrapper > .tab-content.is-active > .flex-table,
.flex-list-wrapper.flex-list-v2 {
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
    overflow: hidden;
}

.flex-table {
    margin: 0;
}

.flex-table .flex-table-header {
    min-height: 44px;
    margin: 0;
    border-radius: 0;
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: none;
}

.flex-table .flex-table-header span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flex-table .flex-list-inner {
    display: grid;
    gap: 8px;
    padding: 10px;
    background: #f6f8fb;
}

.flex-table .flex-table-item {
    min-height: 58px;
    margin: 0;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    color: #25324b;
}

.flex-table .flex-table-item:hover {
    border-color: #c8d4e6;
    box-shadow: 0 14px 34px -30px rgba(18, 34, 66, 0.55);
}

.flex-table .flex-table-cell {
    color: #25324b;
    font-size: 13px;
}

.flex-table .flex-table-cell.is-bold,
.flex-table .flex-table-cell .dark-text {
    color: #17213a;
    font-weight: 800;
}

.flex-table .cell-end {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.tab-content.is-active > .pagination,
.flex-list-wrapper .pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dde5f1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    color: #68738d;
    font-size: 13px;
}

.tab-content.is-active > .flex-table + .pagination,
.flex-list-wrapper .flex-table + .pagination {
    margin-top: -1px;
}

.pagination .button,
.pagination .h-button {
    min-width: 96px;
}

.filter-summary {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.filter-chip {
    min-height: 30px;
    border: 1px solid #dde5f1;
    background: #ffffff;
    color: #25324b;
    box-shadow: 0 12px 28px -26px rgba(18, 34, 66, 0.42);
}

.list-flex-toolbar .filter-summary {
    margin: 0;
}

.admin-obligation-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 20px;
}

/* Label do período no header do painel de obrigações */
.admin-obligation-period-label {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #68738d;
}

/* Toolbar de filtros enxuto (Cliente/Depto/Obrigação em uma linha) */
.admin-obligation-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.admin-obligation-filter-row > select.input {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 260px;
}

.admin-obligation-filter-row .filter-chip {
    margin-left: auto;
}

/* ─────────────── Tela /lancamentos/{guid} ─────────────── */

/* Strip horizontal de insights (compact) */
.launch-insights-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #dde5f1;
    border-radius: 10px;
    font-size: 13px;
}

.launch-insights-strip__section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.launch-insights-strip__divider {
    width: 1px;
    height: 24px;
    background: #dde5f1;
}

.launch-insights-strip__title {
    font-weight: 600;
    color: #25324b;
}

.launch-insights-strip__empty {
    color: #98a3b9;
    font-style: italic;
}

.launch-insights-strip__percent {
    color: #68738d;
}

.launch-breakdown-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f7f9fc;
    border-radius: 6px;
    font-size: 12px;
}

.launch-breakdown-chip__label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #25324b;
}

.launch-breakdown-chip__track {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 5px;
    background: #e5ebf3;
    border-radius: 3px;
    overflow: hidden;
}

.launch-breakdown-chip__track > i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #dc2626, #f59e0b);
    border-radius: 3px;
}

.launch-breakdown-chip > strong {
    color: #dc2626;
    font-weight: 600;
}

.launch-breakdown-more {
    font-size: 12px;
    color: #0077ff;
    cursor: help;
    text-decoration: underline dotted;
}

.launch-progress-fine {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 4px;
    background: #e5ebf3;
    border-radius: 2px;
    overflow: hidden;
}

.launch-progress-fine > i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #16a34a;
    border-radius: 2px;
}

.launch-uncategorized-chip {
    padding: 4px 10px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.launch-uncategorized-chip:hover {
    background: #fde68a;
}

.launch-uncategorized-chip.is-active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}

/* Aviso quando o cap de lançamentos é atingido */
.launch-cap-notice {
    margin-bottom: 12px;
    font-size: 13px;
}

/* Chips de operação no toolbar */
.admin-launch-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.admin-launch-filter-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 280px);
    margin: 0;
}

.admin-launch-filter-field > span {
    color: #68738d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-launch-filter-select {
    width: 100%;
    min-width: 180px;
    height: 34px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #ffffff;
    color: #23324d;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px -20px rgba(24, 39, 75, 0.28);
}

.admin-launch-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.launch-operation-chip {
    min-height: 34px;
    padding: 6px 12px;
    background: #f7f9fc;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: #25324b;
    transition: all 0.15s ease;
}

.launch-operation-chip:hover {
    background: #eef4ff;
}

.launch-operation-chip.is-active {
    background: #0077ff;
    color: #ffffff;
    border-color: #0077ff;
}

.admin-launch-list .list-flex-toolbar {
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dde5f1;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
}

.admin-launch-list .flex-table {
    overflow: hidden;
    border: 1px solid #dde5f1;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
}

.admin-launch-list .flex-table-header,
.admin-launch-list .flex-table-item {
    display: grid;
    grid-template-columns: 72px 108px minmax(240px, 1.7fr) 140px 120px minmax(260px, 1.2fr) 128px;
    align-items: center;
    gap: 12px;
}

.admin-launch-list .flex-table-header span,
.admin-launch-list .flex-table-item .flex-table-cell {
    width: auto !important;
    min-width: 0;
}

.admin-launch-list .flex-table-header {
    background: #2f2f2f;
}

.admin-launch-list .flex-table-item.admin-launch-row {
    min-height: 78px;
    border-left: 4px solid #c8d4e6;
    background: #ffffff !important;
}

/* Destaque visual por tipo na linha (borda esquerda colorida) */
.admin-launch-list .flex-table-item.admin-launch-row.is-row-income {
    border-left-color: #16a34a;
}

.admin-launch-list .flex-table-item.admin-launch-row.is-row-expense {
    border-left-color: #dc2626;
}

.admin-launch-list .flex-table-item.admin-launch-row.is-row-transfer {
    border-left-color: #0077ff;
}

.launch-account-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #e3eaf4;
    border-radius: 999px;
    background: #f8fafc;
    color: #25324b;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Categoria + indicador de save inline */
.launch-category-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.launch-save-indicator {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.launch-save-indicator.is-saving {
    background: #eef4ff;
    color: #0077ff;
}

.launch-save-indicator.is-saved {
    background: #dcfce7;
    color: #16a34a;
}

.launch-save-indicator.is-error {
    background: #fee2e2;
    color: #dc2626;
}

.launch-save-retry {
    background: transparent;
    border: none;
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
}

/* Status badge neutral (para transferências) */
.status-badge.is-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 1280px) {
    .admin-launch-list .flex-table-header,
    .admin-launch-list .flex-table-item {
        grid-template-columns: 64px 100px minmax(210px, 1.5fr) 124px 112px minmax(220px, 1fr) 112px;
    }
}

@media (max-width: 900px) {
    .admin-launch-filter-field {
        flex: 1 1 240px;
    }

    .admin-launch-list .flex-table-header {
        display: none;
    }

    .admin-launch-list .flex-table-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .admin-launch-list .cell-end {
        justify-content: flex-start;
    }
}

.admin-obligation-summary-grid .summary-card:nth-child(1)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10V6h-2v8h7v-2h-5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10V6h-2v8h7v-2h-5Z'/%3E%3C/svg%3E");
}

.admin-obligation-summary-grid .summary-card:nth-child(2)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 8H6v10h12V10Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 8H6v10h12V10Z'/%3E%3C/svg%3E");
}

.admin-obligation-summary-grid .summary-card:nth-child(3)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 1 21h22L12 2Zm1 16h-2v-2h2v2Zm0-4h-2V8h2v6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 1 21h22L12 2Zm1 16h-2v-2h2v2Zm0-4h-2V8h2v6Z'/%3E%3C/svg%3E");
}

.admin-obligation-summary-grid .summary-card:nth-child(4)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9.5 16.2-3.7-3.7-1.4 1.4 5.1 5.1L20 8.5l-1.4-1.4-9.1 9.1ZM12 2a10 10 0 1 0 8.9 5.4l-1.5 1.5A8 8 0 1 1 15.1 4.6l1.5-1.5A10 10 0 0 0 12 2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9.5 16.2-3.7-3.7-1.4 1.4 5.1 5.1L20 8.5l-1.4-1.4-9.1 9.1ZM12 2a10 10 0 1 0 8.9 5.4l-1.5 1.5A8 8 0 1 1 15.1 4.6l1.5-1.5A10 10 0 0 0 12 2Z'/%3E%3C/svg%3E");
}

.admin-obligation-progress-list .flex-table-header,
.admin-obligation-progress-list .flex-table-item {
    display: grid;
    grid-template-columns: 112px minmax(220px, 1.7fr) 120px 108px 120px minmax(190px, 1fr) 64px;
    align-items: center;
    gap: 12px;
}

.admin-obligation-progress-list .flex-table-header span,
.admin-obligation-progress-list .flex-table-item .flex-table-cell {
    width: auto !important;
    min-width: 0;
}

.admin-obligation-progress-list .flex-table-item.admin-obligation-row {
    border-left: 4px solid #c8d4e6;
    background: #ffffff !important;
}

.admin-obligation-progress-list .flex-table-item.admin-obligation-row.is-overdue {
    border-left-color: #ff1744;
}

.admin-obligation-progress-list .flex-table-item.admin-obligation-row.is-today {
    border-left-color: #f59e0b;
}

.admin-obligation-progress-list .flex-table-item.admin-obligation-row.is-on-track {
    border-left-color: #0077ff;
}

.admin-obligation-progress-list .flex-table-item.admin-obligation-row.is-completed {
    border-left-color: #16a34a;
}

.admin-obligation-progress-list .flex-table-item.admin-obligation-row.is-not-started {
    border-left-color: #8aa0bf;
}

.admin-obligation-title .dark-text {
    font-size: 13px;
    line-height: 1.25;
}

.item-title-group {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.item-title-group__subtitle {
    color: #8390a8;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-chip,
.date-text {
    color: #25324b;
    font-size: 12px;
    font-weight: 700;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #dde5f1;
    border-radius: 999px;
    background: #ffffff;
}

.date-chip.is-late {
    border-color: rgba(255, 23, 68, 0.24);
    background: rgba(255, 23, 68, 0.08);
    color: #ff1744;
}

.date-chip.is-today {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.1);
    color: #b56b00;
}

.status-cell {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #25324b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.is-done {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.status-badge.is-pending {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
}

.status-badge.is-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b56b00;
}

.status-badge.is-progress {
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.status-badge.is-neutral {
    background: #eef3f8;
    color: #5d6f89;
}

.obligation-progress-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.obligation-progress-cell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.obligation-progress-cell__head strong {
    color: #17213a;
    font-size: 13px;
    font-weight: 800;
}

.obligation-progress-cell__head span,
.obligation-progress-cell small {
    color: #68738d;
    font-size: 11px;
    white-space: nowrap;
}

.obligation-progress-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.obligation-progress-bar span {
    display: block;
    height: 100%;
    min-width: 4px;
    max-width: 100%;
    border-radius: inherit;
    background: #0077ff;
}

.obligation-progress-bar.is-success span {
    background: #16a34a;
}

.obligation-progress-bar.is-danger span {
    background: #ff1744;
}

.obligation-progress-bar.is-warning span {
    background: #f59e0b;
}

.obligation-progress-bar.is-neutral span {
    background: #8aa0bf;
}

@media (max-width: 1280px) {
    .admin-obligation-progress-list .flex-table-header,
    .admin-obligation-progress-list .flex-table-item {
        grid-template-columns: 104px minmax(190px, 1.5fr) 112px 100px minmax(170px, 1fr) 64px;
    }

    .admin-obligation-progress-list .flex-table-header span:nth-child(5),
    .admin-obligation-progress-list .flex-table-item .flex-table-cell:nth-child(5) {
        display: none;
    }
}

@media (max-width: 760px) {
    .admin-obligation-progress-list .flex-table-header {
        display: none;
    }

    .admin-obligation-progress-list .flex-table-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .admin-obligation-progress-list .flex-table-item .flex-table-cell:nth-child(5) {
        display: flex;
    }

    .admin-obligation-progress-list .cell-end {
        justify-content: flex-start;
    }
}

.admin-client-list {
    display: grid;
    gap: 16px;
}

.admin-client-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-client-metric-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
    color: #101b36;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

button.admin-client-metric-card {
    width: 100%;
    border: 1px solid #dde5f1;
    cursor: pointer;
    font: inherit;
}

.admin-client-metric-card:hover {
    color: #101b36;
    transform: translateY(-2px);
    box-shadow: 0 24px 55px -35px rgba(18, 34, 66, 0.55);
}

.admin-client-metric-card.is-active {
    border-color: currentColor;
    box-shadow: 0 24px 55px -35px rgba(18, 34, 66, 0.62);
}

.admin-client-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
}

.admin-client-metric-icon svg {
    width: 24px;
    height: 24px;
}

.admin-client-metric-card.is-neutral .admin-client-metric-icon {
    background: #eef3f8;
    color: #25324b;
}

.admin-client-metric-card.is-success .admin-client-metric-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.admin-client-metric-card.is-danger .admin-client-metric-icon {
    background: rgba(244, 63, 94, 0.1);
    color: #ff1744;
}

.admin-client-metric-card.is-info .admin-client-metric-icon {
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.admin-client-metric-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-client-metric-copy small {
    color: #25324b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-client-metric-copy strong {
    color: #101b36;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.admin-client-metric-card.is-success .admin-client-metric-copy strong {
    color: #16a34a;
}

.admin-client-metric-card.is-danger .admin-client-metric-copy strong {
    color: #ff1744;
}

.admin-client-metric-card.is-info .admin-client-metric-copy strong {
    color: #0077ff;
}

.admin-client-metric-copy em {
    color: #68738d;
    font-size: 11px;
    font-style: normal;
}

.admin-client-table-section {
    padding: 0;
}

.admin-client-table-card {
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
    overflow: hidden;
}

.admin-client-table-card .flex-table {
    padding: 0;
}

.admin-client-table-card .flex-table-header {
    min-height: 44px;
    margin: 0;
    border-radius: 0;
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: none;
}

.admin-client-table-card .flex-table-header span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-client-table-card .flex-list-inner {
    display: grid;
    gap: 8px;
    padding: 15px;
}

.admin-client-table-card .flex-table-item {
    min-height: 58px;
    margin: 0;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    color: #25324b;
}

.admin-client-table-card .flex-table-item:hover {
    border-color: #c8d4e6;
    box-shadow: 0 14px 34px -30px rgba(18, 34, 66, 0.55);
}

.admin-client-table-card .flex-table-item.is-overdue {
    border-left: 4px solid #ff1744 !important;
    background: #fff7f8 !important;
}

.admin-client-table-card .flex-table-cell {
    color: #25324b;
    font-size: 13px;
}

.admin-client-name-cell {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
    font-size: 12px;
    font-weight: 800;
}

.admin-client-name-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-client-name-copy strong,
.admin-client-name-copy small,
.admin-client-email-cell {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-client-name-copy strong {
    color: #17213a;
    font-size: 13px;
    font-weight: 800;
    white-space: normal;
}

.admin-client-name-copy small {
    color: #8390a8;
    font-size: 11px;
    white-space: nowrap;
}

.admin-client-email-cell {
    white-space: nowrap;
}

.admin-client-table-card .status-badge {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
}

.admin-client-table-card .cell-end {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.admin-client-table-card .status-action-button {
    width: 38px;
    height: 38px;
    margin-right: 0;
    border-radius: 10px;
}

.admin-client-table-card .pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border-top: 1px solid #dde5f1;
    background: #ffffff;
    color: #68738d;
    font-size: 13px;
}

.admin-client-table-card .pagination .button {
    min-width: 96px;
}

.admin-command-dashboard {
    display: grid;
    gap: 20px;
}

.admin-dashboard-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--notta-border);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: var(--ibx-shadow-card);
}

.admin-dashboard-toolbar h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ibx-color-neutral-900);
}

.admin-dashboard-toolbar p {
    margin: 0;
    color: var(--notta-muted);
    font-size: 13px;
}

.admin-dashboard-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-dashboard-period {
    width: 130px;
    min-width: 130px;
}

.admin-dashboard-loading {
    display: grid;
    gap: 16px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.admin-kpi-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--ibx-color-neutral-border-strong);
    background: #ffffff;
    color: var(--ibx-color-neutral-900);
    box-shadow: var(--ibx-shadow-card);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-kpi-card:hover {
    color: var(--ibx-color-neutral-900);
    transform: translateY(-2px);
    box-shadow: var(--ibx-shadow-card-hover);
}

.admin-kpi-card strong {
    font-size: 30px;
    line-height: 1;
}

.admin-kpi-card span {
    color: var(--ibx-color-neutral-500);
    font-size: 13px;
}

.admin-kpi-label {
    color: var(--ibx-color-neutral-900) !important;
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-kpi-card--danger {
    border-color: var(--ibx-color-danger-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--ibx-color-danger-ghost) 100%);
}

.admin-kpi-card--danger strong {
    color: var(--ibx-color-danger);
}

.admin-kpi-card--warning {
    border-color: var(--ibx-color-warning-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--ibx-color-warning-muted) 100%);
}

.admin-kpi-card--warning strong {
    color: var(--ibx-color-warning-dark);
}

.admin-kpi-card--primary {
    border-color: var(--ibx-color-success-border);
}

.admin-kpi-card--primary strong {
    color: var(--ibx-color-success-dark);
}

.admin-kpi-card--info {
    border-color: var(--ibx-color-info-border);
}

.admin-kpi-card--info strong {
    color: var(--ibx-color-info-dark);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 20px;
}

.admin-dashboard-grid--bottom {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
}

.admin-priority-list,
.admin-health-list,
.admin-client-stack {
    display: grid;
    gap: 10px;
}

.admin-priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid var(--ibx-color-neutral-border-strong);
    background: #ffffff;
    color: var(--ibx-color-neutral-900);
}

.admin-priority-item:hover {
    color: var(--ibx-color-neutral-900);
    border-color: var(--ibx-color-primary-soft-strong);
}

.admin-priority-item strong {
    display: block;
    font-size: 14px;
}

.admin-priority-item span {
    display: block;
    color: var(--ibx-color-neutral-500);
    font-size: 12px;
    margin-top: 2px;
}

.admin-priority-item b {
    min-width: 42px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ibx-color-neutral-background);
    color: var(--ibx-color-neutral-900);
}

.admin-priority-item.is-danger b {
    background: var(--ibx-color-danger-soft);
    color: var(--ibx-color-danger);
}

.admin-priority-item.is-warning b {
    background: var(--ibx-color-warning-soft);
    color: var(--ibx-color-warning-dark);
}

.admin-priority-item.is-ok b {
    background: var(--ibx-color-success-soft);
    color: var(--ibx-color-success-dark);
}

.admin-health-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 48px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ibx-color-neutral-border);
}

.admin-health-row:last-child {
    border-bottom: none;
}

.admin-health-row strong {
    display: block;
    font-size: 14px;
    color: var(--ibx-color-neutral-900);
}

.admin-health-row span {
    font-size: 12px;
    color: var(--ibx-color-neutral-500);
}

.admin-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--ibx-color-neutral-background);
    overflow: hidden;
}

.admin-progress span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: var(--ibx-color-success);
}

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

.admin-breakdown-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--ibx-color-neutral-border-strong);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.admin-breakdown-card > strong {
    color: var(--ibx-color-neutral-900);
    font-size: 15px;
}

.admin-breakdown-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--ibx-color-neutral-600);
}

.admin-breakdown-line b {
    color: var(--ibx-color-neutral-900);
}

.admin-breakdown-line.is-danger b {
    color: var(--ibx-color-danger);
}

.admin-breakdown-line.is-warning b {
    color: var(--ibx-color-warning-dark);
}

.admin-client-number {
    padding: 14px;
    border-radius: 8px;
    background: var(--ibx-color-neutral-background);
    display: grid;
    gap: 2px;
}

.admin-client-number span,
.admin-client-number small {
    color: var(--ibx-color-neutral-500);
}

.admin-client-number strong {
    color: var(--ibx-color-neutral-900);
    font-size: 30px;
    line-height: 1;
}

/* ── KPI card icon ─────────────────────────────────────────────────────── */

.admin-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.admin-kpi-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-kpi-icon svg {
    width: 18px;
    height: 18px;
}

.admin-kpi-icon--danger {
    background: var(--ibx-color-danger-soft);
    color: var(--ibx-color-danger);
}

.admin-kpi-icon--success {
    background: var(--ibx-color-success-soft);
    color: var(--ibx-color-success);
}

.admin-kpi-icon--warning {
    background: var(--ibx-color-warning-soft);
    color: var(--ibx-color-warning-dark);
}

.admin-kpi-icon--info {
    background: var(--ibx-color-info-soft);
    color: var(--ibx-color-info-dark);
}

/* ── Donut charts grid ─────────────────────────────────────────────────── */

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

.admin-chart-card-section .notta-card-header {
    margin-bottom: 4px;
}

.admin-chart-canvas-sm {
    width: 100%;
    height: 160px;
}

.admin-chart-subtitle {
    display: block;
    font-size: 12px;
    color: var(--ibx-color-neutral-500);
    font-weight: 500;
    margin-top: 1px;
}

.admin-chart-total {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ibx-color-neutral-600);
    background: var(--ibx-color-neutral-background);
    border: 1px solid var(--ibx-color-neutral-border-strong);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    align-self: flex-start;
}

.admin-chart-legend {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ibx-color-neutral-border);
}

.admin-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ibx-color-neutral-600);
}

.admin-chart-legend-item b {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--ibx-color-neutral-900);
}

.admin-chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-dashboard-grid,
    .admin-dashboard-grid--bottom {
        grid-template-columns: 1fr;
    }

    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-dashboard-filters {
        justify-content: flex-start;
    }

    .admin-kpi-grid,
    .admin-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .admin-health-row {
        grid-template-columns: 1fr;
    }

    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
}

.admin-dashboard-v2 {
    display: grid;
    gap: 22px;
    color: #101b36;
}

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

.admin-dashboard-v2__header h1 {
    margin: 0;
    color: #101b36;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-dashboard-v2__header p {
    margin: 8px 0 0;
    color: #68738d;
    font-size: 13px;
}

.admin-dashboard-v2__filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-period-button,
.admin-period-select {
    height: 42px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #ffffff;
    color: #23324d;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 24px -18px rgba(24, 39, 75, 0.28);
}

.admin-period-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    cursor: pointer;
}

.admin-period-button.is-active {
    border-color: rgba(0, 119, 255, 0.18);
    background: rgba(0, 119, 255, 0.06);
    color: #0077ff;
}

.admin-period-button__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 16px;
}

.admin-period-button__icon svg {
    width: 16px;
    height: 16px;
}

.admin-period-select {
    min-width: 128px;
    padding: 0 14px;
}

.admin-period-range {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    height: 42px;
    overflow: hidden;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px -18px rgba(24, 39, 75, 0.28);
}

.admin-period-date {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px 0 11px;
    background: transparent;
}

.admin-period-date > span {
    color: #68738d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-period-date__input {
    width: 108px;
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #23324d;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.admin-period-range__divider {
    width: 1px;
    height: 22px;
    flex: 0 0 1px;
    background: #dfe6f2;
}

.admin-period-apply {
    width: 42px;
    min-width: 42px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border: 0;
    border-left: 1px solid #dfe6f2;
    border-radius: 0;
    box-shadow: none;
}

.admin-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-metric-card,
.admin-panel {
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
}

.admin-metric-card {
    min-height: 138px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 22px;
    color: #101b36;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-metric-card:hover {
    color: #101b36;
    transform: translateY(-2px);
    box-shadow: 0 24px 55px -35px rgba(18, 34, 66, 0.55);
}

.admin-metric-card--loading {
    pointer-events: none;
}

.admin-metric-card--loading:hover {
    transform: none;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
}

.admin-skeleton {
    position: relative;
    overflow: hidden;
    background: #eef3f8;
}

.admin-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: admin-skeleton-loading 1.25s infinite;
}

.admin-skeleton-line {
    display: block;
    width: 150px;
    height: 12px;
    border-radius: 999px;
}

.admin-skeleton-title {
    display: block;
    width: 180px;
    height: 18px;
    border-radius: 999px;
}

.admin-skeleton-line.is-short {
    width: 116px;
}

.admin-skeleton-line.is-tiny {
    width: 72px;
}

.admin-skeleton-number {
    display: block;
    width: 70px;
    height: 34px;
    border-radius: 8px;
}

.admin-skeleton-number.is-small {
    width: 48px;
    height: 28px;
}

.admin-skeleton-value {
    display: block;
    width: 34px;
    height: 14px;
    border-radius: 999px;
}

.admin-skeleton-donut {
    width: 126px;
    height: 126px;
    min-width: 126px;
    border-radius: 50%;
}

.admin-skeleton-progress {
    width: 100%;
    height: 7px;
    border-radius: 999px;
}

.admin-panel--loading,
.admin-period-card--loading {
    pointer-events: none;
}

.admin-period-card--loading .admin-due-box {
    background: #ffffff;
}

.admin-panel--loading .admin-health-metric > div:first-child {
    display: grid;
    gap: 8px;
}

.admin-panel--loading .admin-health-certificates > span {
    display: block;
}

.admin-panel--loading .admin-execution-block ul li {
    justify-content: flex-start;
}

@keyframes admin-skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

.admin-metric-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
}

.admin-metric-icon svg {
    width: 34px;
    height: 34px;
}

.admin-metric-card.is-danger .admin-metric-icon {
    background: rgba(244, 63, 94, 0.1);
    color: #ff1744;
}

.admin-metric-card.is-warning .admin-metric-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.admin-metric-card.is-info .admin-metric-icon {
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.admin-metric-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-metric-copy small {
    color: #25324b;
    font-size: 13px;
    font-weight: 700;
}

.admin-metric-copy strong {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.admin-metric-card.is-danger .admin-metric-copy strong {
    color: #ff1744;
}

.admin-metric-card.is-warning .admin-metric-copy strong {
    color: #f59e0b;
}

.admin-metric-card.is-info .admin-metric-copy strong {
    color: #0077ff;
}

.admin-metric-copy em {
    color: #68738d;
    font-size: 12px;
    font-style: normal;
}

.admin-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
    gap: 16px;
}

.admin-panel {
    padding: 22px;
}

.admin-panel__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-panel__title h2 {
    margin: 0;
    color: #17213a;
    font-size: 18px;
    font-weight: 800;
}

.admin-panel__title--icon {
    justify-content: flex-start;
}

.admin-panel__title--icon > span {
    color: #0077ff;
}

.admin-title-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.admin-title-icon svg {
    width: 20px;
    height: 20px;
}

.admin-period-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
    gap: 16px;
}

.admin-period-card {
    min-height: 274px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.admin-section-label {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #17213a;
}

.admin-section-label strong {
    font-size: 14px;
    font-weight: 800;
}

.admin-section-label small {
    margin-left: auto;
    color: #8390a8;
    font-size: 10px;
    font-weight: 700;
}

.admin-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    font-weight: 800;
}

.admin-section-icon svg {
    width: 18px;
    height: 18px;
}

.admin-section-icon.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.admin-section-icon.is-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.admin-section-icon.is-info {
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.admin-donut-wrap {
    min-height: 190px;
    display: grid;
    grid-template-columns: 126px minmax(120px, 1fr);
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.admin-donut {
    width: 126px;
    height: 126px;
    min-width: 126px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(16, 27, 54, 0.04);
}

.admin-donut::after {
    content: "";
    position: absolute;
    inset: 31px;
    border-radius: 50%;
    background: #ffffff;
}

.admin-donut-legend {
    display: grid;
    gap: 16px;
    color: #68738d;
    font-size: 12px;
}

.admin-donut-legend div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    white-space: nowrap;
}

.admin-donut-legend span,
.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.admin-donut-legend b {
    margin-left: auto;
    color: #101b36;
    font-size: 14px;
}

.admin-donut-legend .is-success,
.dot.is-success {
    background: #22c55e;
}

.admin-donut-legend .is-warning,
.dot.is-warning {
    background: #f59e0b;
}

.admin-donut-legend .is-danger,
.dot.is-danger {
    background: #ff1744;
}

.admin-due-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.admin-due-box {
    min-height: 94px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    padding: 14px 16px;
    background: #ffffff;
}

.admin-due-box small {
    font-size: 12px;
    font-weight: 800;
    color: #68738d;
}

.admin-due-box strong {
    color: #101b36;
    font-size: 28px;
    line-height: 1;
}

.admin-due-box span {
    color: #68738d;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-due-box.is-danger small,
.admin-due-box.is-danger strong {
    color: #ff1744;
}

.admin-due-box.is-warning small,
.admin-due-box.is-warning strong {
    color: #f59e0b;
}

.admin-due-box.is-info small,
.admin-due-box.is-info strong {
    color: #0077ff;
}

.admin-obligation-type-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-obligation-type-row {
    display: grid;
    gap: 7px;
}

.admin-obligation-type-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.admin-obligation-type-row strong {
    color: #17213a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-obligation-type-row span {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-obligation-type-row span.is-danger {
    color: #ff1744;
}

.admin-obligation-type-row span.is-success {
    color: #16a34a;
}

.admin-stacked-progress {
    height: 7px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.admin-stacked-progress span {
    height: 100%;
    min-width: 0;
}

.admin-stacked-progress .is-success {
    background: #22c55e;
}

.admin-stacked-progress .is-danger {
    background: #ff1744;
}

.admin-empty-state {
    min-height: 170px;
    display: grid;
    place-items: center;
    color: #8390a8;
    font-size: 13px;
}

.admin-health-v2 {
    display: grid;
    gap: 20px;
}

.admin-health-metric {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.2fr auto;
    align-items: end;
    gap: 12px;
}

.admin-health-metric strong,
.admin-health-certificates strong {
    display: block;
    color: #17213a;
    font-size: 13px;
    font-weight: 800;
}

.admin-health-metric small,
.admin-health-certificates small {
    display: block;
    color: #68738d;
    font-size: 11px;
    margin-top: 4px;
}

.admin-health-metric b {
    color: #101b36;
    font-size: 19px;
}

.admin-health-progress {
    height: 7px;
    border-radius: 999px;
    background: #edf1f7;
    overflow: hidden;
}

.admin-health-progress span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
}

.admin-health-progress .is-info {
    background: #0077ff;
}

.admin-health-progress .is-success {
    background: #22c55e;
}

.admin-health-certificates {
    display: grid;
    gap: 9px;
    border-top: 1px solid #edf1f7;
    padding-top: 16px;
}

.admin-health-certificates div {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    color: #68738d;
    font-size: 12px;
}

.admin-health-certificates b {
    color: #101b36;
}

.admin-details-link {
    display: inline-flex;
    margin-top: 20px;
    color: #0077ff;
    font-size: 12px;
    font-weight: 800;
}

.admin-execution-panel {
    padding-bottom: 18px;
}

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

.admin-execution-block {
    display: grid;
    grid-template-columns: 48px minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-right: 1px solid #dde5f1;
    padding-right: 20px;
}

.admin-execution-block:last-child {
    border-right: none;
}

.admin-execution-block > div {
    display: grid;
    gap: 4px;
}

.admin-execution-block strong {
    color: #17213a;
    font-size: 13px;
    font-weight: 800;
}

.admin-execution-block div b {
    color: #101b36;
    font-size: 26px;
    line-height: 1;
}

.admin-execution-block small {
    color: #68738d;
    font-size: 11px;
}

.admin-execution-block ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #68738d;
    font-size: 12px;
}

.admin-execution-block li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.admin-execution-block li b {
    color: #101b36;
}

.admin-execution-block li.is-danger b {
    color: #ff1744;
}

.admin-execution-block li.is-warning b {
    color: #f59e0b;
}

/* Ticket modal */
.ticket-create-form {
    gap: 14px;
}

.ticket-create-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
}

.ticket-create-summary__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.ticket-create-summary__icon svg {
    width: 20px;
    height: 20px;
}

.ticket-create-summary > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ticket-create-summary strong {
    color: #25324b;
    font-size: 15px;
    font-weight: 900;
}

.ticket-create-summary small {
    color: #68738d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ticket-create-description {
    min-height: 220px;
    resize: vertical;
    border-color: #dde5f1;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: none;
}

.ticket-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px dashed #cbd6e6;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.ticket-upload:hover {
    border-color: rgba(0, 119, 255, 0.45);
    background: rgba(0, 119, 255, 0.05);
}

.ticket-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ticket-upload__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0077ff;
}

.ticket-upload__icon svg {
    width: 20px;
    height: 20px;
}

.ticket-upload span:not(.ticket-upload__icon) {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ticket-upload strong {
    color: #25324b;
    font-size: 13px;
    font-weight: 900;
}

.ticket-upload small {
    color: #68738d;
    font-size: 12px;
    font-weight: 700;
}

.ticket-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ticket-selected-files span {
    max-width: 100%;
    overflow: hidden;
    padding: 7px 10px;
    border: 1px solid #dde5f1;
    border-radius: 999px;
    background: #ffffff;
    color: #25324b;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-clear-files {
    margin-top: 12px;
    min-height: 38px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

/* Reports */
.reports-page {
    display: grid;
    gap: 16px;
}

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

.reports-tabs button {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    color: #25324b;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.45);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.reports-tabs button:hover {
    border-color: rgba(0, 119, 255, 0.28);
    transform: translateY(-1px);
}

.reports-tabs button.is-active {
    border-color: rgba(0, 119, 255, 0.45);
    box-shadow: 0 18px 45px -32px rgba(0, 119, 255, 0.45);
}

.reports-tabs__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.reports-tabs__icon svg {
    width: 20px;
    height: 20px;
}

.reports-tabs button > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.reports-tabs strong {
    color: #25324b;
    font-size: 14px;
    font-weight: 900;
}

.reports-tabs small {
    color: #68738d;
    font-size: 12px;
    font-weight: 700;
}

.reports-panel {
    min-width: 0;
}

/* DRE */
.dre-page {
    display: grid;
    gap: 16px;
}

.dre-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.45);
}

.dre-toolbar > div:first-child {
    display: grid;
    gap: 2px;
}

.dre-toolbar span {
    color: #68738d;
    font-size: 12px;
    font-weight: 800;
}

.dre-toolbar strong {
    color: #17213a;
    font-size: 18px;
    font-weight: 900;
}

.dre-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dre-toolbar__actions .select,
.dre-toolbar__actions .select select {
    min-width: 110px;
}

.dre-toolbar__actions .button {
    min-height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

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

.dre-summary-card {
    display: grid;
    gap: 8px;
    min-height: 98px;
    padding: 16px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.45);
}

.dre-summary-card span {
    color: #68738d;
    font-size: 12px;
    font-weight: 800;
}

.dre-summary-card strong {
    color: #17213a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.dre-summary-card.is-income strong,
.dre-summary-card.is-positive strong {
    color: #16a34a;
}

.dre-summary-card.is-negative strong {
    color: #ff1744;
}

.dre-table-card {
    min-width: 0;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.45);
}

.dre-table-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f7;
}

.dre-table-card__head > div {
    display: grid;
    gap: 2px;
}

.dre-table-card__head strong {
    color: #17213a;
    font-size: 16px;
    font-weight: 900;
}

.dre-table-card__head span,
.dre-table-card__head small {
    color: #68738d;
    font-size: 12px;
    font-weight: 800;
}

.dre-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.dre-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
}

.dre-table th,
.dre-table td {
    min-width: 92px;
    padding: 11px 14px;
    border-bottom: 1px solid #edf1f7;
    color: #25324b;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.dre-table th:first-child,
.dre-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 290px;
    max-width: 290px;
    text-align: left;
}

.dre-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    color: #68738d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dre-table th:first-child {
    z-index: 4;
}

.dre-table td:first-child {
    background: #ffffff;
}

.dre-table tbody tr:hover td {
    background: #f8fafc;
}

.dre-table tbody tr.is-total td {
    background: rgba(0, 119, 255, 0.06);
    color: #17213a;
    font-weight: 900;
}

.dre-table tbody tr.is-income td {
    background: rgba(22, 163, 74, 0.08);
}

.dre-table tbody tr.is-final td {
    background: #17213a;
    color: #ffffff;
}

.dre-table tbody tr.is-final td.is-positive,
.dre-table tbody tr.is-final td.is-negative {
    color: #ffffff;
}

.dre-table td:first-child span {
    display: inline-flex;
    min-width: 42px;
    color: #8390a8;
    font-size: 11px;
    font-weight: 900;
}

.dre-table td:first-child strong {
    color: inherit;
    font-size: 12px;
    font-weight: 900;
}

.dre-table td.is-positive {
    color: #16a34a;
}

.dre-table td.is-negative {
    color: #ff1744;
}

/* App configuration */
.app-config-page {
    display: grid;
    gap: 18px;
}

.app-config-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.45);
}

.app-config-logo {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf1f7;
    border-radius: 50%;
    background: #f8fafc;
}

.app-config-logo img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.app-config-header h1 {
    margin: 0;
    color: #17213a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.app-config-header p {
    margin: 4px 0 0;
    color: #68738d;
    font-size: 13px;
    font-weight: 700;
}

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

.app-config-card {
    min-height: 170px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    color: #25324b;
    box-shadow: 0 18px 45px -38px rgba(18, 34, 66, 0.45);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-config-card:hover {
    border-color: rgba(0, 119, 255, 0.32);
    box-shadow: 0 18px 45px -32px rgba(0, 119, 255, 0.35);
    transform: translateY(-1px);
}

.app-config-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.app-config-card__icon.is-success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.app-config-card__icon.is-warning {
    background: rgba(245, 158, 11, 0.13);
    color: #f59e0b;
}

.app-config-card__icon svg {
    width: 21px;
    height: 21px;
}

.app-config-card__content {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.app-config-card__content small {
    color: #8390a8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-config-card__content strong {
    color: #17213a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.app-config-card__content em {
    color: #68738d;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
}

.app-config-card__arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border-radius: 50%;
    background: #f8fafc;
    color: #8390a8;
}

.app-config-card:hover .app-config-card__arrow {
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.app-config-card__arrow svg {
    width: 17px;
    height: 17px;
}

.ticket-modal-form {
    height: 100%;
}

.ticket-modal {
    min-height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
    background: #f7f9fc;
}

.ticket-modal__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-right: 1px solid #dde5f1;
    background: #ffffff;
    overflow-y: auto;
}

.ticket-modal__status {
    display: flex;
    justify-content: flex-start;
}

.ticket-modal__actions {
    display: grid;
    gap: 10px;
}

.ticket-modal__actions .button {
    width: 100%;
    justify-content: center;
    min-height: 40px;
}

.ticket-modal__actions .button:not(.is-primary) {
    border-color: #d9e2f0;
    background: #f8fafc;
    color: #17213a;
    box-shadow: none;
}

.ticket-modal__summary,
.ticket-modal__meta,
.ticket-modal__files {
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

.ticket-modal__summary small,
.ticket-modal__meta span,
.ticket-modal__section-title span {
    display: block;
    color: #8390a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ticket-modal__summary h3 {
    margin: 8px 0 0;
    color: #17213a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.ticket-modal__summary p {
    margin: 10px 0 0;
    color: #68738d;
    font-size: 13px;
    line-height: 1.45;
}

.ticket-modal__meta {
    display: grid;
    gap: 14px;
}

.ticket-modal__meta div {
    display: grid;
    gap: 4px;
}

.ticket-modal__meta strong {
    color: #25324b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.ticket-modal__section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ticket-modal__section-title b {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
    font-size: 12px;
}

.ticket-file {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #f8fafc;
    color: #25324b;
    cursor: pointer;
    text-align: left;
}

.ticket-file:hover {
    border-color: rgba(0, 119, 255, 0.28);
    background: rgba(0, 119, 255, 0.06);
    color: #0077ff;
}

.ticket-file__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0077ff;
}

.ticket-file svg {
    width: 16px;
    height: 16px;
}

.ticket-file span:not(.ticket-file__icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.ticket-file__download {
    color: #8390a8;
}

.ticket-modal__conversation {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #f7f9fc;
}

.ticket-chat-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #dde5f1;
    background: #ffffff;
}

.ticket-chat-header small {
    display: block;
    color: #8390a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ticket-chat-header strong {
    display: block;
    margin-top: 3px;
    color: #17213a;
    font-size: 16px;
    font-weight: 800;
}

.ticket-chat-header__type {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
    font-size: 12px;
    font-weight: 800;
}

.ticket-chat-body {
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.ticket-chat-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticket-chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ticket-chat-message.is-admin {
    flex-direction: row-reverse;
}

.ticket-chat-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8eef8;
    color: #25324b;
    font-size: 12px;
    font-weight: 800;
}

.ticket-chat-message.is-admin .ticket-chat-avatar {
    background: var(--primary--color, var(--primary-color, #2563eb));
    color: #ffffff;
}

.ticket-chat-bubble {
    max-width: min(620px, 78%);
    padding: 12px 14px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    color: #25324b;
    box-shadow: 0 18px 45px -36px rgba(18, 34, 66, 0.45);
}

.ticket-chat-message.is-admin .ticket-chat-bubble {
    border-color: rgba(0, 119, 255, 0.18);
    background: rgba(0, 119, 255, 0.08);
}

.ticket-chat-bubble__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}

.ticket-chat-bubble__meta strong {
    color: #17213a;
    font-size: 12px;
    font-weight: 800;
}

.ticket-chat-bubble__meta time {
    color: #8390a8;
    font-size: 11px;
    white-space: nowrap;
}

.ticket-chat-bubble p {
    margin: 0;
    color: #25324b;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.ticket-empty-state {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #8390a8;
    text-align: center;
}

.ticket-empty-state > span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 119, 255, 0.1);
    color: #0077ff;
}

.ticket-empty-state svg {
    width: 30px;
    height: 30px;
}

.ticket-empty-state strong {
    color: #17213a;
    font-size: 18px;
    font-weight: 800;
}

.ticket-empty-state small {
    max-width: 330px;
    color: #68738d;
    font-size: 13px;
    line-height: 1.4;
}

.ticket-reply {
    padding: 14px 18px;
    border-top: 1px solid #dde5f1;
    background: #ffffff;
}

.ticket-reply__input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.ticket-reply__input .textarea {
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
    border-color: #dde5f1;
    border-radius: 8px;
    padding: 12px 14px;
    color: #25324b;
    box-shadow: none;
}

.ticket-reply__input .textarea:focus {
    border-color: rgba(0, 119, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.12);
}

.ticket-reply__input .button {
    min-height: 48px;
    border-radius: 8px;
}

.ticket-reply__closed {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: #68738d;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1500px) {
    .admin-period-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-period-card {
        min-height: 240px;
    }

    .admin-period-card--donut .admin-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
    }

    .admin-donut-legend {
        width: min(100%, 260px);
    }

    .admin-section-label {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .admin-section-label small {
        margin-left: 0;
    }

    .admin-obligation-type-row > div:first-child {
        align-items: flex-start;
    }
}

@media (max-width: 1280px) {
    .summary-grid,
    .admin-obligation-summary-grid,
    .admin-client-metric-strip,
    .admin-metric-strip,
    .admin-period-grid,
    .admin-execution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 20px;
    }

    .admin-dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .dre-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dre-toolbar__actions {
        width: 100%;
    }

    .dre-toolbar__actions .select,
    .dre-toolbar__actions .select select,
    .dre-toolbar__actions .button {
        width: 100%;
    }

    .dre-summary-grid {
        grid-template-columns: 1fr;
    }

    .dre-table-card__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-config-grid {
        grid-template-columns: 1fr;
    }

    .app-config-header {
        align-items: flex-start;
    }

    .reports-tabs {
        grid-template-columns: 1fr;
    }

    .ticket-modal {
        grid-template-columns: 1fr;
    }

    .ticket-modal__sidebar {
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #dde5f1;
    }

    .ticket-reply__input {
        grid-template-columns: 1fr;
    }

    .ticket-reply__input .button {
        width: 100%;
    }

    .ticket-chat-bubble {
        max-width: calc(100% - 44px);
    }

    .list-flex-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .list-flex-toolbar .control,
    .admin-list-filter-group,
    .notta-nfs-filter,
    .list-flex-toolbar .buttons {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .admin-list-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-list-filter-group .admin-list-search {
        width: 100%;
        min-width: 0;
    }

    .notta-nfs-filter {
        align-items: stretch;
    }

    .notta-segmented-filter,
    .notta-date-filter,
    .notta-date-filter .input {
        width: 100%;
    }

    .notta-filter-submit {
        width: 100%;
    }

    .list-flex-toolbar .buttons {
        justify-content: flex-start;
    }

    .tab-content.is-active > .flex-table,
    .flex-list-wrapper > .tab-content.is-active > .flex-table,
    .flex-list-wrapper.flex-list-v2 {
        overflow: visible;
    }

    .flex-table .flex-table-header {
        display: none;
    }

    .flex-table .flex-list-inner {
        padding: 8px;
    }

    .flex-table .flex-table-item {
        display: grid;
        gap: 10px;
        padding: 14px;
    }

    .flex-table .flex-table-cell {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .flex-table .flex-table-cell::before {
        content: attr(data-th);
        color: #8390a8;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .flex-table .cell-end {
        justify-content: flex-start;
    }

    .flex-table .cell-end::before {
        display: none;
    }

    .tab-content.is-active > .pagination,
    .flex-list-wrapper .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-client-table-card {
        overflow: visible;
    }

    .admin-client-table-card .flex-table-header {
        display: none;
    }

    .admin-client-table-card .flex-list-inner {
        padding: 8px;
    }

    .admin-client-table-card .flex-table-item {
        display: grid;
        gap: 10px;
        padding: 14px;
    }

    .admin-client-table-card .flex-table-cell {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .admin-client-table-card .flex-table-cell::before {
        content: attr(data-th);
        color: #8390a8;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .admin-client-table-card .admin-client-name-cell {
        justify-content: flex-start;
    }

    .admin-client-table-card .admin-client-name-cell::before {
        display: none;
    }

    .admin-client-table-card .cell-end {
        justify-content: flex-start;
    }

    .admin-client-table-card .cell-end::before {
        display: none;
    }

    .admin-client-table-card .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-dashboard-v2__header {
        flex-direction: column;
    }

    .admin-dashboard-v2__filters {
        justify-content: flex-start;
    }

    .admin-metric-strip,
    .admin-period-grid,
    .admin-execution-grid {
        grid-template-columns: 1fr;
    }

    .admin-execution-block {
        grid-template-columns: 48px minmax(0, 1fr);
        border-right: none;
        border-bottom: 1px solid #dde5f1;
        padding: 0 0 16px;
    }

    .admin-execution-block ul {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .summary-grid,
    .admin-obligation-summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 88px;
        padding: 14px 16px;
    }

    .summary-card__value {
        font-size: 26px;
    }

    .admin-client-metric-strip {
        grid-template-columns: 1fr;
    }

    .admin-client-metric-card {
        min-height: 92px;
        padding: 16px;
    }

    .admin-client-metric-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .admin-client-metric-icon svg {
        width: 23px;
        height: 23px;
    }

    .admin-client-metric-copy strong {
        font-size: 27px;
    }

    .admin-metric-card {
        align-items: flex-start;
        padding: 18px;
    }

    .admin-metric-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .admin-metric-icon svg {
        width: 26px;
        height: 26px;
    }

    .admin-donut-wrap,
    .admin-health-metric {
        grid-template-columns: 1fr;
    }

    .admin-due-grid {
        grid-template-columns: 1fr;
    }
}

/* Transaction page overrides must stay after the shared flex-table rules. */
.app-transaction-panel {
    overflow: visible;
}

.app-transaction-panel .tab-content.is-active {
    overflow: visible;
}

.app-transaction-panel .tab-content.is-active > .flex-table,
.app-transaction-panel .app-transaction-table {
    overflow: hidden;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.app-transaction-panel-head {
    flex-wrap: wrap;
}

.app-transaction-tabs {
    flex: 1 1 520px;
    min-width: 0;
}

.app-transaction-tabs.notta-segmented-filter {
    width: max-content;
    max-width: 100%;
}

.app-transaction-actions {
    margin-left: auto;
}

.app-transaction-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-transaction-panel .app-search-field {
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 360px;
}

.app-transaction-filter-grid > .input {
    flex: 0 1 130px;
    min-width: 120px;
}

.app-transaction-panel .app-date-input {
    flex: 0 1 154px;
    min-width: 148px;
}

.app-transaction-panel .app-filter-button {
    flex: 0 0 auto;
    min-width: 106px;
}

.app-transaction-insights {
    overflow: hidden;
}

.app-transaction-insights span {
    min-width: 0;
    white-space: nowrap;
}

.app-transaction-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.app-transaction-panel .app-transaction-table {
    min-width: 1040px;
}

.app-transaction-panel .app-transaction-table .flex-table-header {
    display: flex;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border-bottom: 1px solid #edf2f8;
    border-radius: 0;
    background: #ffffff;
    color: #25324b;
    box-shadow: none;
}

.app-transaction-panel .app-transaction-table .flex-table-header span {
    color: #25324b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-transaction-panel .app-transaction-table .flex-list-inner {
    display: grid;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
}

.app-transaction-panel .app-transaction-table .flex-table-item {
    display: flex;
    min-height: 58px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.app-transaction-panel .app-transaction-table .flex-table-item:hover {
    border-color: #c8d4e6;
    box-shadow: none;
}

.app-transaction-panel .app-transaction-table .flex-table-cell {
    display: flex;
    min-width: 0;
    color: #25324b;
    font-size: 12px;
    font-weight: 700;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(1),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(1) {
    flex: 0 0 56px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(2),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(2) {
    flex: 0 0 100px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(3),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(3) {
    flex: 1 1 250px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(4),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(4) {
    flex: 0 0 150px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(5),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(5) {
    flex: 0 0 150px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(6),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(6) {
    flex: 0 0 120px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(7),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(7) {
    flex: 0 0 115px;
}

.app-transaction-panel .app-transaction-table .flex-table-header span:nth-child(8),
.app-transaction-panel .app-transaction-table .flex-table-item .flex-table-cell:nth-child(8) {
    flex: 0 0 86px;
}

.app-transaction-panel .app-transaction-table .dark-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.app-transaction-panel .app-transaction-table .cell-end {
    justify-content: flex-end;
}

.app-transaction-panel .app-category-chip {
    max-width: 132px;
}

.app-transaction-header {
    margin-bottom: 0;
}

.app-transaction-header > div:first-child {
    flex: 1 1 300px;
    min-width: 260px;
}

.app-transaction-header .admin-dashboard-v2__filters {
    flex: 0 1 auto;
    align-self: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
}

.app-transaction-header .admin-period-button {
    padding-inline: 12px;
    white-space: nowrap;
}

.app-transaction-header .admin-period-select {
    min-width: 124px;
    padding-inline: 11px;
}

.app-transaction-metrics-row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(190px, 1fr);
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.app-transaction-balance {
    min-width: 0;
}

.app-transaction-summary.admin-metric-strip {
    height: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.app-transaction-summary .admin-metric-card {
    min-height: 92px;
    gap: 11px;
    padding: 13px 15px;
}

.app-transaction-summary .admin-metric-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.app-transaction-summary .admin-metric-icon svg {
    width: 21px;
    height: 21px;
}

.app-transaction-summary .admin-metric-copy {
    gap: 3px;
}

.app-transaction-summary .admin-metric-copy small {
    font-size: 11px;
}

.app-transaction-summary .admin-metric-copy strong {
    font-size: clamp(18px, 1.2vw, 23px);
    white-space: nowrap;
}

.app-transaction-summary .admin-metric-copy em {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-transaction-insights.admin-metric-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    gap: 0;
    min-width: 0;
    padding: 4px;
    border: 1px solid #dde5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px -35px rgba(18, 34, 66, 0.45);
    margin-top: 0;
}

.app-transaction-insights .admin-metric-card {
    appearance: none;
    width: 100%;
    min-height: 0;
    gap: 6px;
    padding: 3px 7px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.app-transaction-insights .admin-metric-card:hover,
.app-transaction-insights .admin-metric-card.is-active {
    background: rgba(0, 119, 255, 0.05);
    box-shadow: none;
    transform: none;
}

.app-transaction-insights .admin-metric-card.is-active {
    background: rgba(0, 119, 255, 0.04);
}

.app-transaction-insights .admin-metric-card:disabled {
    cursor: wait;
}

.app-transaction-insights .admin-metric-card:disabled:hover {
    background: transparent;
}

.app-transaction-insights .app-insight-skeleton {
    width: 24px;
    height: 14px;
    flex: 0 0 24px;
}

.app-transaction-insights .admin-metric-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    border-radius: 999px;
}

.app-transaction-insights .admin-metric-icon svg {
    width: 12px;
    height: 12px;
}

.app-transaction-insights .admin-metric-copy {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.app-transaction-insights .admin-metric-copy small {
    overflow: hidden;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-transaction-insights .admin-metric-copy strong {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.05;
}

.app-transaction-insights .admin-metric-copy em {
    font-size: 11px;
}

.app-transaction-insights .admin-metric-card.is-alert .admin-metric-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.app-transaction-insights .admin-metric-card.is-alert .admin-metric-copy strong {
    color: #f59e0b;
}

.app-transaction-panel-title {
    display: grid;
    gap: 2px;
}

.app-transaction-panel-title h2 {
    margin: 0;
    color: #111a31;
    font-size: 18px;
    font-weight: 900;
}

.app-transaction-panel-title p {
    margin: 0;
    color: #68738d;
    font-size: 12px;
    font-weight: 700;
}

.app-transaction-list {
    display: grid;
    gap: 0;
}

.app-transaction-list .list-flex-toolbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
}

.app-transaction-list .list-flex-toolbar > .admin-list-search {
    min-width: 220px;
    flex: 1 1 280px;
}

.app-transaction-list .buttons {
    position: relative;
    flex: 0 0 auto;
    margin-left: 0;
}

.app-transaction-list .notta-nfs-filter {
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
}

.app-transaction-list .app-transaction-filter-grid {
    min-width: 0;
}

.app-transaction-list .app-transaction-filter-grid > .input {
    width: 140px;
    min-width: 110px;
    flex: 0 1 140px;
}

.app-transaction-list .app-transaction-filter-grid > .input:nth-child(3) {
    width: 110px;
    flex-basis: 110px;
}

.app-transaction-list .app-filter-button {
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    padding-inline: 12px;
    white-space: nowrap;
}

.app-transaction-list .app-add-main {
    padding-inline: 14px;
    white-space: nowrap;
}

.app-transaction-list .app-filter-button .icon svg,
.app-transaction-list .notta-filter-submit .icon svg {
    width: 17px;
    height: 17px;
}

.flex-table .flex-table-header .transaction-description-header,
.flex-table .flex-table-item .flex-table-cell.transaction-description-cell {
    flex: 2.2 1 0;
    min-width: 0;
}

.app-transaction-list .flex-table .flex-table-cell {
    min-width: 0;
}

.app-transaction-list .flex-table .dark-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-transaction-list .app-category-chip {
    max-width: 180px;
}

@media (max-width: 1180px) {
    .app-transaction-metrics-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-transaction-header {
        align-items: stretch;
    }

    .app-transaction-header .admin-dashboard-v2__filters {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .app-transaction-header .admin-period-range {
        flex: 1 1 100%;
    }

    .app-transaction-header .admin-period-date {
        flex: 1 1 140px;
    }

    .app-transaction-header .admin-period-date__input {
        width: 100%;
        min-width: 0;
    }

    .app-transaction-summary.admin-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-transaction-insights.admin-metric-strip {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .app-transaction-insights .admin-metric-card {
        min-height: 36px;
    }

    .app-transaction-list .list-flex-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .app-transaction-list .list-flex-toolbar > .admin-list-search,
    .app-transaction-list .notta-nfs-filter,
    .app-transaction-list .buttons {
        width: 100%;
        min-width: 0;
    }

    .app-transaction-list .notta-nfs-filter {
        flex-wrap: wrap;
    }

    .app-transaction-list .app-transaction-filter-grid > .input,
    .app-transaction-list .app-transaction-filter-grid > .input:nth-child(3) {
        width: 100%;
        flex: 1 1 100%;
    }

    .app-transaction-list .notta-filter-submit,
    .app-transaction-list .app-filter-button,
    .app-transaction-list .app-add-main {
        width: 100%;
    }

    .app-transaction-panel .app-search-field,
    .app-transaction-filter-grid > .input,
    .app-transaction-panel .app-date-input,
    .app-transaction-panel .app-filter-button {
        flex: 1 1 100%;
        max-width: none;
    }

    .app-transaction-panel .app-transaction-table {
        min-width: 920px;
    }
}
