.sm-shell {
  padding: clamp(12px, 2vw, 20px);
  background: linear-gradient(165deg, #f6faff 0%, #ffffff 60%, #f9fcff 100%);
  border: 1px solid #e4edf8;
  border-radius: 16px;
}

.sm-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.sm-hero h2 { margin: 0 0 6px; color: #0f3557; letter-spacing: -0.01em; }
.sm-hero p { margin: 0; color: #5e738b; font-size: 13px; line-height: 1.45; }

.sm-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sm-btn {
  border: 1px solid #cadaef;
  background: linear-gradient(135deg, #dff1ff 0%, #cde7ff 100%);
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 42px;
  min-width: 132px;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.sm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 64, 114, 0.14);
  border-color: #a8c6e6;
}
.sm-btn:active { transform: translateY(0); }
.sm-btn-primary {
  background: linear-gradient(135deg, #b9e3ff 0%, #9fd4ff 100%);
  border-color: #7eb9e8;
  color: #111111;
}

.sm-filters {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(210px, 360px) 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.sm-filters input {
  border: 1px solid #c9d9ea;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 14px;
}

.sm-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-chip {
  border: 1px solid #d7e4f2;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #edf6ff 0%, #dceeff 100%);
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sm-chip.is-active {
  background: linear-gradient(135deg, #ffe8fd 0%, #eedfff 100%);
  color: #111111;
  border-color: #c1a8ea;
}

#soyuducuMallarPage .anbar-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#soyuducuMallarPage .anbar-open-picker-btn {
  border: 1px solid #c7d8ea;
  background: linear-gradient(135deg, #ffe6b8 0%, #ffd89a 100%);
  color: #111111;
  border-radius: 999px;
  min-height: 30px;
  height: 30px;
  min-width: 56px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15, 76, 135, 0.14);
  transition: all 0.16s ease;
}

#soyuducuMallarPage .anbar-open-picker-btn:hover {
  border-color: #e7b96d;
  background: linear-gradient(135deg, #ffe0a5 0%, #ffc971 100%);
  box-shadow: 0 6px 14px rgba(15, 76, 135, 0.18);
  transform: translateY(-1px);
}

#soyuducuMallarPage .anbar-open-picker-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 76, 135, 0.12);
}

.sm-status {
  font-size: 13px;
  color: #3b4e63;
  margin-bottom: 8px;
}

.sm-table-wrap {
  overflow: auto;
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  max-height: 70vh;
  background: #fff;
}

#smTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

#smTable thead th {
  position: sticky;
  top: 0;
  background: #0f4d86;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 9px;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

#smTable td {
  border-bottom: 1px solid #edf2f8;
  padding: 8px 9px;
  font-size: 13px;
}

#smTable tbody tr:nth-child(even) { background: #f9fcff; }
#smTable tbody tr:hover { background: #eef6ff; }

#smTable td:nth-child(1),
#smTable td:nth-child(2),
#smTable td:nth-child(5),
#smTable td:nth-child(6) { text-align: center; }

#smTable td:nth-child(7) { font-weight: 600; color: #0b5aa8; }

.sm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.sm-modal-card {
  width: min(540px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d9e6f5;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.sm-modal-head, .sm-modal-foot {
  padding: 12px 14px;
  border-bottom: 1px solid #ecf1f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-modal-foot { border-bottom: none; border-top: 1px solid #ecf1f7; }
.sm-modal-body { padding: 12px 14px; }
.sm-icon-btn { border: 1px solid #d8e2ef; background: #fff; border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.sm-icon-btn { color: #111111; }
.sm-input { width: 100%; border: 1px solid #c9d9ea; border-radius: 12px; padding: 10px 12px; box-sizing: border-box; min-height: 42px; font-size: 14px; }
.sm-label { display: block; margin-bottom: 6px; font-weight: 600; }
.sm-help { font-size: 12px; color: #61758e; }

.sm-modal-actions { margin: 10px 0; display: flex; gap: 8px; }
.sm-filter-values { border: 1px solid #e5edf7; border-radius: 10px; max-height: 300px; overflow: auto; }
.sm-filter-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #f2f6fb; }

.sm-context-menu {
  display: none;
  position: fixed;
  z-index: 10000;
  min-width: 140px;
  background: #fff;
  border: 1px solid #dae6f5;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.sm-context-menu button {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  text-align: left;
  padding: 9px 11px;
  color: #111111;
  font-weight: 600;
  cursor: pointer;
}
.sm-context-menu button:hover { background: #eef6ff; }

@media (max-width: 900px) {
  .sm-shell {
    padding: 12px;
    border-radius: 14px;
  }
  .sm-filters { grid-template-columns: 1fr; gap: 10px; }
  .sm-filters label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
  }
  .sm-chip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sm-chip {
    width: 100%;
    text-align: center;
  }
  #soyuducuMallarPage .anbar-label-row {
    width: 100%;
    justify-content: space-between;
  }
  .sm-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .sm-hero {
    flex-direction: column;
    gap: 10px;
  }
  .sm-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sm-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .sm-modal {
    padding: 10px;
    align-items: flex-end;
  }
  .sm-modal-card {
    width: 100%;
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
  }
  .sm-modal-head, .sm-modal-foot {
    padding: 10px 12px;
  }
  .sm-modal-body {
    padding: 10px 12px;
  }
  .sm-modal-foot .sm-btn {
    min-width: 0;
    width: 100%;
  }
  .sm-filter-values {
    max-height: 42vh;
  }
  .sm-context-menu {
    min-width: 128px;
  }
  #soyuducuMallarPage .anbar-open-picker-btn {
    min-height: 28px;
    height: 28px;
    min-width: 52px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .sm-hero-actions,
  .sm-chip-row {
    grid-template-columns: 1fr;
  }
  .sm-status {
    font-size: 12px;
  }
}
