/* Sevk İrsaliyeleri Modülü Stilleri */
.irs-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--bg, #f4f6f9);
  color: var(--ink, #1e293b);
  overflow: hidden;
}
.irs-screen.hidden { display: none; }

.irs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #20262e;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.irs-head .brand { color: #fff; text-decoration: none; }
.irs-head .brand small { display: block; font-size: 11px; color: #94a3b8; font-weight: 400; }
.irs-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.irs-stats-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}
.irs-stat-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #e2e8f0;
}
.irs-stat-pill small { color: #94a3b8; margin-right: 4px; }
.irs-primary-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.irs-primary-btn:hover { background: #0369a1; }
.irs-primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.irs-excel-btn {
  background: #15803d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
.irs-excel-btn:hover { background: #166534; }
.irs-home-icon { display: none; }

.irs-main {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.irs-toolbar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}
.irs-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.irs-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.irs-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}
.irs-search-wrap .irs-input { padding-right: 30px; }
.irs-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 5px;
}
.irs-date-lbl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.irs-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
}
.irs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.irs-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.irs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.irs-table tr:hover td { background: #f8fafc; }
.irs-empty {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
}
.irs-sub {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.irs-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 600;
  margin: 0 4px 3px 0;
}
.irs-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.irs-act-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.irs-act-btn:hover { background: #f1f5f9; }
.irs-act-btn.word { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }
.irs-act-btn.word:hover { background: #dbeafe; }
.irs-act-btn.pdf { border-color: #dc2626; color: #b91c1c; background: #fef2f2; }
.irs-act-btn.pdf:hover { background: #fee2e2; }
.irs-act-btn.wa {
  border-color: #16a34a;
  color: #15803d;
  background: #f0fdf4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.irs-act-btn.wa:hover { background: #dcfce7; }
.irs-act-btn.wa svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.irs-act-btn.del { border-color: #fca5a5; color: #b91c1c; }
.irs-act-btn.del:hover { background: #fef2f2; }

/* Modal Form — Tam ekrana sığan, malzeme listesi kendi içinde kayan düzen */
.irs-modal-box {
  max-width: 980px !important;
  width: 96vw !important;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px !important;
}
.irs-modal-box .modal-head {
  flex-shrink: 0;
  margin-bottom: 8px;
}
.irs-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.irs-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.irs-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 11px;
  background: #f8fafc;
}
.irs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.irs-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.irs-section-head .irs-section-title { margin-bottom: 0; }
.irs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.irs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.irs-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.irs-field input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}
.irs-combo-field {
  position: relative;
}
.irs-combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  max-height: 180px;
  overflow-y: auto;
}
.irs-combo-list.hidden { display: none; }
.irs-combo-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 7px 10px;
  cursor: pointer;
}
.irs-combo-opt:last-child { border-bottom: none; }
.irs-combo-opt:hover { background: #eff6ff; }
.irs-combo-opt b { display: block; font-size: 12.5px; color: #0f172a; }
.irs-combo-opt small { display: block; font-size: 11px; color: #64748b; margin-top: 1px; }
.irs-items-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 155px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}
.irs-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.irs-items-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.irs-items-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.irs-items-table input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
}
.irs-sm-btn { padding: 4px 9px; font-size: 12px; }
.irs-row-del {
  border: 1px solid #fca5a5;
  background: #fff;
  color: #dc2626;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 700;
}
.irs-row-del:hover { background: #fef2f2; }
.irs-form-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
.irs-foot-note {
  font-size: 11.5px;
  color: #64748b;
}

.irs-sig-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.irs-sig-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.irs-sig-canvas {
  width: 100%;
  max-width: 100%;
  height: 104px;
  background: #fff;
  border: 1.5px dashed #94a3b8;
  border-radius: 7px;
  cursor: crosshair;
  touch-action: none;
  display: block;
}
.irs-bottom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.irs-receiver-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.irs-excel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.irs-excel-desc {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}
.irs-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  cursor: pointer;
}
.irs-radio-card:hover { background: #f1f5f9; }
.irs-radio-card input { margin-top: 3px; }
.irs-radio-card b { display: block; font-size: 13px; color: #0f172a; margin-bottom: 2px; }
.irs-radio-card small { display: block; font-size: 11.5px; color: #64748b; line-height: 1.4; }
.irs-excel-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.irs-sig-hint {
  font-size: 11.5px;
  color: #64748b;
}
.irs-sig-hint.warn {
  color: #b45309;
  font-weight: 600;
}
.irs-sig-hint.err {
  color: #b91c1c;
  font-weight: 600;
}

@media (max-width: 720px) {
  .irs-head { padding: 8px 10px; }
  .irs-stats-pills { display: none; }
  .irs-home-label { display: none; }
  .irs-home-icon { display: inline; font-size: 16px; }
  .irs-main { padding: 10px; }
  .irs-grid-3, .irs-grid-2, .irs-bottom-split { grid-template-columns: 1fr; }
}
