/* Mükafat əməkdaş — modul (index-dən ayrılmış) */

.me-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px 20px;
  font-family: "Segoe UI", system-ui, -apple-system, "Inter", sans-serif;
  color: #0f172a;
}

.me-title {
  color: #0f172a;
  font-size: 1.35rem;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.me-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 3px;
}

.me-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.me-card--compact {
  padding: 12px 14px;
}

.me-card:hover {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
}

.me-card-title {
  color: #334155;
  font-size: 0.8125rem;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.me-card-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  flex-shrink: 0;
}

.me-form-group {
  margin-bottom: 10px;
}

.me-form-group--tight {
  margin-bottom: 8px;
}

.me-form-group--month {
  margin-bottom: 0;
  max-width: 160px;
}

.me-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
  align-items: flex-end;
}

.me-form-row--dates {
  gap: 14px;
}

.me-form-row .me-form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.me-form-row--dates .me-form-group {
  min-width: 140px;
}

.me-label-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 5px;
  min-height: 22px;
  width: 100%;
}

.me-label {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.me-input {
  width: 100%;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8125rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  min-height: 34px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.me-input--date {
  padding-right: 6px;
}

.me-input--month {
  max-width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.me-input--text {
  font-variant-numeric: tabular-nums;
}

.me-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
  outline: none;
  background-color: #fff;
}

.me-hint {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.35;
}

.me-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  gap: 7px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.me-button--compact {
  padding: 7px 13px;
  font-size: 0.72rem;
  border-radius: 7px;
  width: 100%;
  max-width: 100%;
}

.me-button--hero {
  padding: 9px 18px;
  font-size: 0.78rem;
  border-radius: 9px;
  min-width: 200px;
}

.me-button i {
  font-size: 0.8rem;
  opacity: 0.95;
  transition: transform 0.2s;
}

.me-button:hover i {
  transform: translateX(2px);
}

.me-button-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  box-shadow:
    0 1px 2px rgba(79, 70, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.me-button-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
}

.me-button-outline {
  background: transparent;
  border: 1px solid rgba(79, 70, 229, 0.55);
  color: #5b21b6;
  font-weight: 600;
}

.me-button-outline:hover {
  background: rgba(79, 70, 229, 0.06);
  transform: translateY(-1px);
}

.me-button-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.me-button-group--inline {
  margin-top: 6px;
}

.me-status {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 2px;
  min-height: 1.1rem;
  padding-left: 2px;
  line-height: 1.35;
}

.me-info {
  font-size: 0.78rem;
  color: #475569;
  margin: 12px 0;
  padding: 11px 12px;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-left: 3px solid #6366f1;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.me-result {
  margin-top: 14px;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.me-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.me-actions--compact {
  margin-top: 12px;
  gap: 8px;
}

/* Hesabatı al — sonrakı kompakt premium düymələr */
.me-scope-row {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin-top: 4px;
  width: 100%;
  max-width: 520px;
}

.me-scope-btn {
  flex: 1 1 200px;
  max-width: 260px;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.me-scope-btn i {
  font-size: 0.85rem;
  opacity: 0.95;
}

.me-scope-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.me-scope-btn--staff {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
}

.me-scope-btn--store {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #2dd4bf 100%);
}

/* Alt səhifələr */
.me-subpage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 28px;
}

.me-subtitle {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.me-subpage-actions {
  margin-bottom: 12px;
}

.me-subpage-meta {
  font-size: 12px;
  color: #64748b;
  margin: 8px 0 12px;
  line-height: 1.45;
}

.me-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, transform 0.15s ease;
}

.me-back-pill:hover {
  background: linear-gradient(180deg, #fff, #e2e8f0);
  transform: translateY(-1px);
}

/* Hesabat toolbar — incə premium düymələr */
.me-report-toolbar.kv-toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.me-rpt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.me-rpt-btn .me-rpt-ico {
  font-size: 0.95rem;
  line-height: 1;
}

.me-rpt-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

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

.me-rpt-btn--violet {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.me-rpt-btn--teal {
  background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.me-rpt-btn--indigo {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

.me-rpt-btn--rose {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

/* Satış şərtləri modalı */
.me-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.me-modal-box {
  background: #fff;
  max-width: 720px;
  width: 100%;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  border: 1px solid #e2e8f0;
}

.me-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.me-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.me-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.me-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.me-modal-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.me-satsert-list {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  background: #fafafa;
}

.me-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.me-modal-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.me-modal-btn--muted {
  background: #e2e8f0;
  color: #334155;
}

.me-modal-btn--primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.me-modal-btn:hover {
  filter: brightness(1.04);
}

/* Anbar: label sətri + "Seç" — kompakt premium */
#mukafatEmekdas .me-label-strip.anbar-label-row {
  justify-content: flex-start;
}

#mukafatEmekdas .anbar-open-picker-btn {
  margin-left: auto;
  padding: 3px 11px;
  min-height: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(165deg, #fef3c7 0%, #fcd34d 100%);
  color: #78350f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(180, 83, 9, 0.12);
  flex-shrink: 0;
}

#mukafatEmekdas .anbar-open-picker-btn:hover {
  filter: brightness(1.03);
  border-color: rgba(217, 119, 6, 0.55);
}

#mukafatEmekdas .anbar-picked-label {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  margin-left: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475569;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hesabat cədvəli — sütun filtri (incə premium) */
#mukafatEmekdasReport .me-report-table thead th.me-th-filter,
#mukafatEmekdasPharmReport .me-report-table thead th.me-th-filter {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#mukafatEmekdasReport .me-report-table thead th.me-th-filter:hover,
#mukafatEmekdasPharmReport .me-report-table thead th.me-th-filter:hover {
  background-color: rgba(99, 102, 241, 0.08);
  color: #4338ca;
}

#mukafatEmekdasReport .me-report-table thead th.me-th-nofilter,
#mukafatEmekdasPharmReport .me-report-table thead th.me-th-nofilter {
  cursor: default;
  opacity: 0.92;
}

.me-filter-overlay.me-col-filter {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.me-filter-panel {
  width: 100%;
  max-width: 400px;
  max-height: min(86vh, 520px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 22px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.me-filter-panel__head {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  flex-shrink: 0;
}

.me-filter-panel__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  padding-top: 6px;
  padding-left: 2px;
}

.me-filter-panel__close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.95);
  color: #64748b;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.me-filter-panel__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.me-filter-panel__body {
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 0.8125rem;
  color: #0f172a;
}

/* Qlobal style.css input{width:100%} və label{display:block} filtr siyahısını pozur */
.me-filter-panel label.me-filter-row {
  display: flex !important;
  align-items: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-weight: 600;
  color: #111827;
}

.me-filter-panel .me-filter-row input[type="checkbox"] {
  width: auto !important;
  min-width: 14px;
  max-width: 20px;
  height: auto !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  vertical-align: middle;
}

.me-filter-row__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.35;
}

.me-filter-panel__foot .me-filter-foot-btn {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.me-filter-panel__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  flex-shrink: 0;
}

.me-filter-foot-btn {
  padding: 6px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.me-filter-foot-btn--ghost {
  background: #f1f5f9;
  color: #475569;
}

.me-filter-foot-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
}

.me-filter-foot-btn:hover {
  filter: brightness(1.04);
}

.me-filter-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.me-filter-grid2 label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.me-filter-grid2 input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.me-filter-grid2 input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.me-filter-search {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.me-filter-search:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.me-filter-chip-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.me-filter-chip {
  padding: 4px 10px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.12s ease;
  width: auto !important;
  flex: 1 1 0;
  min-width: 0;
}

.me-filter-chip--sky {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #075985;
}

.me-filter-chip--rose {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
  color: #9f1239;
}

.me-filter-chip:hover {
  filter: brightness(1.03);
}

.me-filter-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.85);
}

.me-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.12s ease;
  color: #0f172a;
}

.me-filter-row:hover {
  background: rgba(99, 102, 241, 0.06);
}

.me-filter-row input[type="checkbox"] {
  flex-shrink: 0;
  accent-color: #6366f1;
}

.me-filter-row .me-filter-row__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ripple + loading */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: me-ripple 0.6s linear;
  pointer-events: none;
}

@keyframes me-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.me-button.loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.me-button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: me-spin 0.8s ease-in-out infinite;
}

.me-button-outline.loading::after {
  border-top-color: #4f46e5;
}

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

@media (max-width: 768px) {
  .me-container {
    padding: 12px 12px 16px;
  }

  .me-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .me-card,
  .me-card--compact {
    padding: 12px;
    margin-bottom: 10px;
  }

  .me-form-row,
  .me-form-row--dates {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .me-form-row .me-form-group {
    min-width: 100%;
  }

  .me-form-group--month {
    max-width: none;
  }

  .me-input--month {
    max-width: 100%;
  }

  .me-button-group {
    width: 100%;
  }

  .me-button,
  .me-button-outline,
  .me-button--compact,
  .me-button--hero {
    width: 100%;
    max-width: none;
  }

  .me-scope-row {
    flex-direction: column;
    max-width: none;
  }

  .me-scope-btn {
    max-width: none;
  }

  .me-report-toolbar.kv-toolbar {
    justify-content: stretch;
  }

  .me-rpt-btn {
    flex: 1;
  }
}
