

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color, #e7e9ee);
  background: #f8fafc;
}

.admin-filter-bar .search-wrap,
.admin-filter-bar .toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.btn-admin-refresh,
.btn-admin-reset,
.btn-admin-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e7e9ee);
  background: #fff;
  color: var(--text-secondary, #4b5563);
  font-size: 0.84rem;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-admin-export {
  border-color: rgba(22, 163, 74, 0.28);
  color: #15803d;
  background: #f0fdf4;
}

.btn-admin-refresh:hover:not(:disabled),
.btn-admin-reset:hover:not(:disabled) {
  border-color: rgba(217, 20, 30, 0.35);
  color: var(--primary, #d9141e);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.btn-admin-export:hover:not(:disabled) {
  border-color: rgba(22, 163, 74, 0.5);
  color: #166534;
  background: #dcfce7;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.12);
}

.btn-admin-refresh:disabled,
.btn-admin-reset:disabled,
.btn-admin-export:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  background: linear-gradient(180deg, #ed1c24 0%, #d9141c 55%, #b81017 100%);
  box-shadow: 0 10px 22px rgba(217, 20, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-admin-primary i {
  display: block;
  line-height: 1;
}

.btn-admin-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 20, 30, 0.3);
  color: #fff;
}

.admin-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: #fef2f2;
  color: #991b1b;
}

.admin-error-banner i {
  margin-top: 2px;
  font-size: 1.1rem;
}

.admin-error-banner .admin-error-actions {
  margin-inline-start: auto;
  display: inline-flex;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color, #e7e9ee);
  background: #fff;
  color: var(--text-secondary, #4b5563);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-chip:hover {
  border-color: rgba(217, 20, 30, 0.35);
  color: var(--primary, #d9141e);
}

.filter-chip.active {
  background: rgba(217, 20, 30, 0.12);
  border-color: rgba(217, 20, 30, 0.3);
  color: #8f0c13;
}

.admin-empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--text-muted, #6b7280);
}

.admin-empty-state i {
  font-size: 2rem;
  color: var(--primary, #d9141e);
  opacity: 0.7;
}

.admin-empty-state h2,
.admin-empty-state h3 {
  margin: 12px 0 6px;
  color: var(--text-primary, #202124);
  font-size: 1.15rem;
  font-weight: 800;
}

.admin-empty-state p {
  margin: 0;
  font-size: 0.92rem;
}

.admin-modal-header,
.modal-header.tm-header,
.modal-header.sf-header,
.modal-header.mf-header,
.modal-header.sf2-header,
.modal-header.mi-header,
.modal-header.qr-header,
.modal-header.del-header,
.modal-header.confirm-header {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
}

.admin-modal-header > .admin-modal-title-wrap,
.modal-header.tm-header > .tm-header-info,
.modal-header.sf-header > .sf-header-info,
.modal-header.mf-header > .mf-header-info,
.modal-header.sf2-header > .sf2-header-info,
.modal-header.mi-header > .mi-header-info,
.modal-header.qr-header > .qr-header-info,
.modal-header.del-header > .del-title,
.modal-header.confirm-header > .confirm-title {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-modal-header > .btn-close,
.admin-modal-header > .admin-modal-close,
.modal-header.tm-header > .btn-close,
.modal-header.sf-header > .btn-close,
.modal-header.mf-header > .btn-close,
.modal-header.sf2-header > .btn-close,
.modal-header.mi-header > .btn-close,
.modal-header.qr-header > .btn-close,
.modal-header.del-header > .btn-close,
.modal-header.confirm-header > .btn-close {
  flex-shrink: 0;
  margin-block: 2px 0 !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  padding: 0.5rem;
  opacity: 0.55;
}

.admin-modal-header > .btn-close:hover,
.modal-header.tm-header > .btn-close:hover,
.modal-header.sf-header > .btn-close:hover,
.modal-header.mf-header > .btn-close:hover,
.modal-header.sf2-header > .btn-close:hover,
.modal-header.mi-header > .btn-close:hover,
.modal-header.qr-header > .btn-close:hover,
.modal-header.del-header > .btn-close:hover,
.modal-header.confirm-header > .btn-close:hover {
  opacity: 0.9;
}

.admin-form-shell {
  max-width: 440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-form-shell.wide {
  max-width: 520px;
}

.admin-form-card {
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.admin-form-steps::-webkit-scrollbar {
  display: none;
}

.admin-form-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e8ecf1;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
}

button.admin-form-step {
  cursor: pointer;
  appearance: none;
  font: inherit;
  line-height: inherit;
}

.admin-form-step.active {
  background: #d9141c;
  border-color: #d9141c;
  color: #fff;
  box-shadow: 0 8px 16px rgba(217, 20, 28, 0.22);
}

.admin-form-step.done:not(.active) {
  background: #fdecee;
  border-color: rgba(217, 20, 30, 0.22);
  color: #b80f18;
}

.admin-form-step-rail {
  flex: 0 0 20px;
  width: 20px;
  height: 2px;
  margin: 0 6px;
  border-radius: 999px;
  background: #e8ecf1;
}

.admin-load-panel {
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 22px 28px;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(217, 20, 30, 0.08), transparent 55%),
    #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.admin-load-orb {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
}

.admin-load-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(217, 20, 30, 0.12);
  animation: admin-load-pulse 1.4s ease-in-out infinite;
}

.admin-load-spinner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid #f3f3f1;
  border-top-color: #d9141e;
  border-right-color: rgba(217, 20, 30, 0.35);
  animation: admin-load-spin 0.75s linear infinite;
}

.admin-load-panel strong {
  color: #202124;
  font-size: 1rem;
  font-weight: 800;
}

.admin-load-panel p {
  margin: 0;
  max-width: 36ch;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-load-bars {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-load-row {
  display: grid;
  gap: 8px;
}

.admin-load-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1f5f9 0%, #fdecee 45%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: admin-load-shimmer 1.35s ease-in-out infinite;
}

.admin-load-bar.sm {
  width: 38%;
  height: 10px;
}

.admin-load-bar.lg {
  width: 100%;
  height: 38px;
  border-radius: 12px;
}

.admin-load-bar.mid {
  width: 72%;
}

.admin-load-row:nth-child(2) .admin-load-bar {
  animation-delay: 0.12s;
}

.admin-load-row:nth-child(3) .admin-load-bar {
  animation-delay: 0.24s;
}

@keyframes admin-load-spin {
  to { transform: rotate(360deg); }
}

@keyframes admin-load-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes admin-load-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.logout-confirm-window .modal-dialog {
  max-width: 340px;
}

.logout-confirm-window .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.financial-summary-window .modal-dialog {
  max-height: 90vh;
  margin: 1.25rem auto;
}

.financial-summary-window .modal-content {
  max-height: 90vh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

.financial-summary-window .modal-body {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
