.c-btn,
.c-pill,
.c-tag {
  display: inline-flex;
  align-items: center;
}

.c-btn {
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.c-btn:hover,
.c-toggle:hover {
  transform: translateY(-1px);
}

.c-btn:active {
  transform: translateY(0);
}

.c-btn-primary,
.c-btn-warn,
.c-btn-success {
  color: #fff;
  border-color: transparent;
}

.c-btn-primary {
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(28, 123, 255, 0.22);
}

.c-btn-secondary {
  background: #eef2ff;
  color: var(--primary);
  border-color: rgba(28, 123, 255, 0.18);
}

.c-btn-warn {
  background: var(--warning);
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.28);
}

.c-btn-warn-lite {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.25);
}

.c-btn-success {
  background: var(--green);
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.22);
}

.c-btn-success-lite {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.c-btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
}

.c-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.c-btn-lite {
  background: #f2f5ff;
  color: #3b4a60;
  border-color: var(--border);
}

.c-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.c-btn-lg {
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 14px;
}

.c-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.c-btn-block {
  width: 100%;
}

.c-btn-strong {
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.c-toggle {
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.12s ease;
}

.c-toggle.is-active {
  background: rgba(30, 64, 175, 0.16);
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.12);
}

.c-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.c-table thead {
  background: #f2f5ff;
  color: #5b6b86;
}

.c-table th,
.c-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #eef2fa;
}

.c-card-pad {
  padding: 20px 22px;
}

.c-card-compact {
  padding: 14px 16px;
}

.c-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.c-card-header-gradient {
  background: radial-gradient(circle at top, rgba(28, 123, 255, 0.08), transparent 70%);
}

.c-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  min-width: 0;
}

.c-card-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(28, 123, 255, 0.12);
}

.c-card-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.c-table-center th,
.c-table-center td {
  text-align: center;
}

.c-table-compact th,
.c-table-compact td {
  padding: 10px 10px;
}

.c-table-striped tbody tr:nth-child(even) {
  background: #f7f9ff;
}

.c-table-hover tbody tr:hover {
  background: rgba(47, 111, 236, 0.06);
}

/* Shared components */
.finance-ledger-table th,
.finance-ledger-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.finance-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
}

.finance-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.finance-ledger-table .finance-name-cell {
  white-space: normal;
  min-width: 180px;
}

.finance-expand-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.finance-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.finance-source-manual {
  background: #f1f5f9;
  color: #475569;
}

.finance-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.finance-status-open {
  background: #eef2ff;
  color: #3730a3;
}

.finance-status-partial,
.finance-status-pending {
  background: #fffbeb;
  color: #92400e;
}

.finance-status-paid {
  background: #ecfdf5;
  color: #047857;
}

.finance-status-overdue,
.finance-status-exception {
  background: #fef2f2;
  color: #b91c1c;
}

.finance-status-writeoff {
  background: #f8fafc;
  color: #64748b;
}

.finance-detail-row td {
  padding: 0;
  background: #f8fafc;
}

.finance-detail-panel {
  padding: 14px 18px 18px 56px;
  border-bottom: 1px solid #e2e8f0;
}

.finance-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.finance-detail-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.finance-detail-table .c-table th,
.finance-detail-table .c-table td {
  padding: 10px 12px;
}

.finance-dialog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.finance-dialog-summary-item {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.finance-dialog-summary-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.finance-dialog-summary-value {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.finance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.finance-form-grid .c-inline-field-full {
  grid-column: 1 / -1;
}

.finance-form-grid .c-inline-field {
  margin: 0;
}

.finance-payment-topline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

.finance-month-picker {
  flex: 0 0 430px;
  width: 430px;
}

.finance-month-picker-panel {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 82px;
  gap: 6px 10px;
  align-items: stretch;
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.finance-month-picker-year {
  width: 100%;
  height: 28px;
  margin: 0;
  border: none;
  background: #eef2f7;
  color: #0f172a;
  font-weight: 800;
  padding: 4px 8px;
}

.finance-month-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  align-self: center;
}

.finance-month-picker-grid button,
.finance-month-picker-actions button {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
}

.finance-month-picker-grid button:hover,
.finance-month-picker-actions button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.finance-month-picker-grid button.is-active {
  border-color: #2563eb;
  background: #bfdbfe;
  color: #0f172a;
}

.finance-month-picker-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
}

.finance-month-picker-actions button {
  color: #2563eb;
  font-weight: 700;
}

.finance-payment-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  flex: 1 1 auto;
  margin: 0;
}

.finance-payment-summary-button {
  width: 100%;
  min-height: 72px;
  text-align: left;
  cursor: pointer;
}

.finance-payment-summary-button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.finance-payment-summary-button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.finance-payment-summary-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.finance-subpage-content.is-payment-loading .finance-month-picker-panel,
.finance-subpage-content.is-payment-loading .finance-payment-summary-button {
  opacity: 0.72;
}

.finance-subpage-content.is-payment-loading .finance-month-picker-grid button,
.finance-subpage-content.is-payment-loading .finance-month-picker-actions button,
.finance-subpage-content.is-payment-loading .finance-payment-summary-button {
  cursor: progress;
}

.finance-loading-row {
  height: 92px;
  color: #64748b;
  text-align: center;
}

.finance-loading-row span {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.finance-loading-spinner {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: finance-loading-spin 0.8s linear infinite;
}

@keyframes finance-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.finance-payment-table .finance-remark-cell {
  white-space: normal;
  min-width: 150px;
  max-width: 260px;
  color: #475569;
}

.finance-source-salary {
  background: #ecfdf5;
  color: #047857;
}

.finance-source-reimbursement {
  background: #fff7ed;
  color: #c2410c;
}

.finance-payment-dialog {
  width: min(960px, 96%);
  max-width: 960px;
}

.finance-payment-readonly-section {
  margin-top: 16px;
}

.finance-payment-note {
  min-height: 42px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .finance-payment-topline {
    flex-direction: column;
  }

  .finance-month-picker,
  .finance-month-picker-panel {
    width: 100%;
  }

  .finance-month-picker {
    flex-basis: auto;
  }

  .finance-month-picker-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .finance-month-picker-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .finance-filter-grid,
  .finance-form-grid,
  .finance-dialog-summary,
  .finance-payment-summary {
    grid-template-columns: 1fr;
  }

  .finance-filter-actions {
    justify-content: stretch;
  }

  .finance-filter-actions .c-btn {
    flex: 1 1 0;
  }

}

.c-filter-actions-left:empty {
  display: none;
}
.c-filter-actions-left:empty + .c-filter-actions-right {
  justify-content: flex-end;
  width: 100%;
}
.c-filter-actions-left,
.c-filter-actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.c-table-compact-last tbody tr:last-child td {
  border-bottom: none;
}
.c-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  gap: 4px;
  background: #eef2ff;
  color: var(--primary);
}
.c-pill-success {
  background: rgba(16, 185, 129, 0.18);
  color: var(--success);
}
.c-pill-warn {
  background: rgba(245, 158, 11, 0.18);
  color: var(--warning);
}
.c-pill-info {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}
.c-pill-primary {
  background: rgba(28, 123, 255, 0.18);
  color: var(--primary);
}
.c-pill-danger {
  background: rgba(255, 95, 95, 0.18);
  color: var(--danger);
}
.c-file-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.c-file-link:hover {
  text-decoration: underline;
}
.c-actions-col {
  width: 160px;
}
.c-row-actions-nowrap {
  flex-wrap: nowrap;
  justify-content: center;
}
.c-row-actions-nowrap .c-btn {
  white-space: nowrap;
}
.c-dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.25);
  width: min(820px, 95%);
  max-width: 820px;
  animation: fadeIn 0.3s ease forwards;
  display: none;
}
.c-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.c-dialog[open] {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}
.c-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 0;
}
.c-dialog-header h3 {
  margin: 0;
  font-size: 18px;
}
.c-dialog-close {
  background: transparent;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--muted);
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 22px;
}
.c-dialog-body {
  padding: 0 24px 10px;
}
.c-dialog-actions {
  padding: 12px 24px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.c-dialog-actions button {
  min-width: 120px;
}
.c-bulk-dialog {
  width: min(980px, 96%);
  max-width: 980px;
}
.c-bulk-dialog .modal {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  background: #fff;
  border-radius: 20px;
}
.c-bulk-dialog .modal-header,
.c-bulk-dialog .modal-footer {
  padding: 18px 24px;
}
.c-bulk-dialog .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.c-bulk-dialog .modal-title {
  font-size: 18px;
  font-weight: 700;
}
.c-bulk-dialog .modal-close {
  background: transparent;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--muted);
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.c-bulk-dialog .modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 0.9fr);
  gap: 20px;
  padding: 6px 24px 20px;
  align-items: start;
}
.c-bulk-dialog .modal-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}
.c-bulk-dialog .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.c-bulk-dialog .btn {
  min-width: 120px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}
.c-bulk-dialog .btn-secondary {
  background: #eef4ff;
  color: #3163e6;
  border-color: #cfe0ff;
}
.c-bulk-dialog .btn-primary {
  background: #2d6ff6;
  color: #fff;
}
.c-bulk-dialog .mail-editor {
  display: grid;
  gap: 18px;
}
.c-bulk-dialog .form-item {
  display: grid;
  gap: 8px;
}
.c-bulk-dialog .form-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.c-bulk-dialog .input,
.c-bulk-dialog .textarea {
  border: 1px solid #d8dfec;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}
.c-bulk-dialog .textarea {
  min-height: 220px;
  resize: vertical;
}
.c-bulk-dialog .input:focus,
.c-bulk-dialog .textarea:focus {
  border-color: rgba(28, 123, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(28, 123, 255, 0.12);
}
.c-bulk-dialog .recipients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.c-bulk-dialog .recipients-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.c-bulk-dialog .recipients-title-bar {
  width: 6px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
}
.c-bulk-dialog .recipients-meta {
  color: var(--muted);
  font-weight: 600;
}
.c-bulk-dialog .recipients-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 14px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.c-bulk-dialog .group-card {
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.c-bulk-dialog .group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6ebf4;
  font-weight: 700;
}
.c-bulk-dialog .group-toggle {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #1d6ff2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: none;
}
.c-bulk-dialog .group-more {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
}
.c-bulk-dialog .group-body {
  display: grid;
}
.c-bulk-dialog .group-card.is-collapsed .group-body {
  display: none;
}
.c-bulk-dialog .group-card.is-collapsed .group-header {
  border-bottom: none;
}
.c-bulk-dialog .contact-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  cursor: pointer;
}
.c-bulk-dialog .contact-row + .contact-row {
  border-top: 1px solid #eef2f8;
}
.c-bulk-dialog .contact-check {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.c-bulk-dialog .contact-info {
  display: grid;
  gap: 4px;
}
.c-bulk-dialog .contact-name {
  font-weight: 600;
  color: #1f2a44;
}
.c-bulk-dialog .contact-email {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 920px) {
  .c-bulk-dialog .modal-body {
    grid-template-columns: 1fr;
  }
  .c-bulk-dialog .modal-divider {
    width: 100%;
    height: 1px;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* Shared inline layout */
.c-page-head-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.c-title-reset {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.c-switch-wrap {
  justify-self: center;
  display: flex;
  align-items: center;
}
.c-switcher-group {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 8px 16px rgba(30, 41, 59, 0.08);
}
.c-switcher-group .c-toggle {
  border: 0;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  min-height: 36px;
}
.c-inline-filters {
  padding: 0;
  border-bottom: 0;
  background: transparent;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.c-inline-filters-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.c-inline-filters-extra {
  display: flex;
  justify-content: flex-end;
}
.c-inline-filters-extra .c-inline-field {
  width: auto;
}
.c-inline-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.c-inline-filter-check input {
  margin: 0;
}
.c-inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #2c3d55;
  min-height: 44px;
}
.c-inline-field input,
.c-inline-field select {
  border: 0;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: transparent;
  min-width: 120px;
  flex: 1 1 auto;
}
.c-inline-field textarea {
  border: 0;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: transparent;
  min-width: 120px;
  flex: 1 1 auto;
  resize: vertical;
  min-height: 72px;
}
.c-inline-field > span {
  white-space: nowrap;
  flex: 0 0 auto;
}
.c-inline-field-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-inline-field-full {
  grid-column: 1 / -1;
}
.c-inline-field-textarea {
  align-items: flex-start;
}
.c-inline-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #2c3d55;
}
.c-table-info {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 12px;
}
.c-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}
.c-pager select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #475569;
  font-weight: 600;
}
.c-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.c-tag-success {
  color: #0f7a3a;
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.22);
}
.c-tag-warn {
  color: #a16207;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.25);
}
.c-tag-danger {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.25);
}
.c-tag-info {
  color: #1d4ed8;
  background: rgba(28, 123, 255, 0.12);
  border-color: rgba(28, 123, 255, 0.22);
}
.c-tag-neutral {
  color: #4b5563;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.3);
}
.c-modal {
  border: 0;
  border-radius: 16px;
  padding: 20px;
  width: min(420px, 92vw);
  box-shadow: 0 24px 60px rgba(31, 53, 90, 0.25);
  font-family: inherit;
}
.c-modal-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.c-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.c-modal .c-inline-field {
  padding: 10px 12px;
  min-height: unset;
}
.c-modal .c-inline-field input,
.c-modal .c-inline-field select {
  min-width: 0;
}
.c-modal .c-inline-field textarea {
  min-width: 0;
}
.c-modal input[readonly],
.c-modal input:disabled,
.c-modal select:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}
.c-modal::backdrop {
  background: rgba(15, 23, 42, 0.4);
}
.c-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.c-modal p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.c-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 900px) {
  .c-page-head-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .c-switch-wrap {
    justify-self: flex-start;
  }
  .c-inline-filters-grid-3 {
    grid-template-columns: 1fr;
  }
  .c-inline-filters-extra {
    justify-content: flex-start;
  }
  .c-inline-filters-extra .c-inline-field {
    width: 100%;
  }
  .c-inline-field {
    min-height: 44px;
  }
  .c-modal-grid {
    grid-template-columns: 1fr;
  }
}
