/* Depoya qaytarma — modul stilləri */

.dq-wrap {
  max-width: 100%;
}

.dq-wrap h2 {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.dq-hint {
  margin: 0 0 14px 0;
  font-size: 0.88rem;
  color: #64748b;
}

.dq-anbar-block {
  margin-bottom: 14px;
}

.dq-anbar-block > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.dq-anbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dq-anbar-row input[type="text"] {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}

.dq-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.dq-dates .col {
  flex: 1 1 180px;
}

.dq-dates label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.dq-dates input[type="date"] {
  width: 100%;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.dq-submit {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.35);
}

.dq-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.dq-loading {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #64748b;
}

.dq-result {
  margin-top: 18px;
}

.dq-summary {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.dq-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.dq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dq-table thead {
  background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
}

.dq-table th,
.dq-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
  color: #000;
}

.dq-table th.col-left,
.dq-table td.col-left {
  text-align: left;
  white-space: normal;
  min-width: 140px;
}

.dq-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.dq-table tbody tr:hover {
  background: #ecfeff;
}

.dq-table tfoot td {
  font-weight: 700;
  background: #e0f2fe;
}

.dq-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.dq-table-hint {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #64748b;
}

.dq-table tbody tr.dq-invoice-row {
  cursor: context-menu;
}

.dq-ctx-menu {
  position: fixed;
  z-index: 10060;
  display: none;
  min-width: 190px;
  max-width: min(320px, 92vw);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 6px;
}

.dq-ctx-menu--raised {
  z-index: 10200;
}

.dq-ctx-menu-title {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dq-ctx-menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dq-ctx-menu-item:hover {
  background: #ecfeff;
  color: #0f766e;
}

.dq-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.dq-detail-card {
  width: min(960px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.dq-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.dq-detail-title {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.dq-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dq-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
}

.dq-detail-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dq-detail-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dq-detail-body {
  padding: 12px 16px 18px;
  overflow: auto;
}

.dq-table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.dq-btn-shot {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  cursor: pointer;
}

.dq-btn-shot:hover {
  background: #dbeafe;
}

.dq-btn-xitali {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  cursor: pointer;
}

.dq-btn-xitali:hover {
  background: #fef3c7;
}

.dq-btn-back {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.dq-xitali-wrap {
  max-width: 100%;
}

.dq-xitali-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.dq-xitali-title {
  margin: 0;
  font-size: 1.2rem;
  color: #000;
}

.dq-error-cell {
  color: #b45309;
  font-weight: 600;
  white-space: normal;
  min-width: 200px;
  max-width: 520px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  text-align: left;
}

.dq-xitali-table-wrap {
  overflow-x: auto;
}

.dq-xitali-table th,
.dq-xitali-table td {
  white-space: normal;
  vertical-align: top;
}

.dq-xitali-table .dq-error-cell {
  min-width: 240px;
  max-width: min(520px, 48vw);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dq-th-filter {
  cursor: pointer;
  user-select: none;
}

.dq-th-filter:hover {
  background: #99f6e4;
}

.dq-detail-line-row,
.dq-archive-sale-row {
  cursor: context-menu;
}

.dq-detail-line-row:hover,
.dq-archive-sale-row:hover {
  background: #f0fdfa;
}

.dq-archive-overlay {
  z-index: 10080;
}

.dq-archive-card {
  max-width: 920px;
}

.dq-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.dq-archive-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.dq-archive-toolbar input[type="date"] {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.dq-archive-fetch {
  padding: 8px 16px;
  font-size: 13px;
}

.dq-empty-cell {
  padding: 14px;
  text-align: center;
  color: #64748b;
}

.dq-same-invoice-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.dq-same-invoice-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: #000;
}

.dq-same-invoice-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.dq-same-inv-highlight {
  background: #ecfeff;
}

.dq-same-inv-note {
  font-size: 11px;
  color: #0f766e;
}

/* Filtr modal */
.dq-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  padding: 16px;
}

.dq-filter-box {
  width: min(420px, 96vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.dq-filter-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.dq-filter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dq-filter-sort {
  display: flex;
  gap: 6px;
}

.dq-filter-sort button {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  color: #000;
}

.dq-filter-sort button:hover {
  background: #e2e8f0;
}

.dq-filter-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

#dqExcelFilterSearch {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #000;
}

.dq-excel-filter-range {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.dq-excel-range-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dq-excel-range-cell span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.dq-excel-range-cell input {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #000;
}

.dq-filter-list {
  overflow: auto;
  max-height: 46vh;
  padding: 8px 10px;
}

.dq-filter-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #000;
}

.dq-filter-grid-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #f1f5f9;
}

.dq-filter-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
}

.dq-filter-footer button {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  color: #000;
}

.dq-filter-footer button:first-child {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}
