﻿:root {
  --muh-primary: #4338CA;
  --muh-primary-dark: #3730a3;
  --muh-primary-soft: #e0e7ff;
  --muh-ink: #0f172a;
  --muh-muted: #64748b;
  --muh-bg: #f1f5f9;
  --muh-surface: #ffffff;
  --muh-border: #e2e8f0;
  --muh-sidebar: #312e81;
  --muh-sidebar-mid: #3730a3;
  --muh-sidebar-text: #eef2ff;
  --muh-sidebar-w: 15.5rem;
  --muh-control-h: 2.4rem;
}

html, body {
  margin: 0;
  font-family: "Segoe UI", Manrope, system-ui, sans-serif;
  color: var(--muh-ink);
  background: var(--muh-bg);
  min-height: 100%;
}

.muh-shell {
  min-height: 100vh;
  display: flex;
  position: relative;
}

.muh-sidebar-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.muh-sidebar {
  width: var(--muh-sidebar-w);
  min-width: var(--muh-sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--muh-sidebar) 0%, var(--muh-sidebar-mid) 55%, #4338CA 100%);
  color: var(--muh-sidebar-text);
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease, min-width 0.2s ease, opacity 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 2px 0 12px rgba(49, 46, 129, 0.12);
}

/* Kapalı (checkbox unchecked) — Blazor render mode’dan bağımsız */
.muh-sidebar-toggle:not(:checked) ~ .muh-sidebar {
  width: 0;
  min-width: 0;
  opacity: 0;
  box-shadow: none;
  pointer-events: none;
}

.muh-sidebar-backdrop {
  display: none;
}

.muh-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.muh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.35rem;
  background: var(--muh-surface);
  border-bottom: 1px solid var(--muh-border);
  box-shadow: 0 1px 0 rgba(67, 56, 202, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.muh-topbar-left, .muh-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.muh-topbar-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.muh-topbar-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.muh-topbar-product {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--muh-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.muh-topbar-context {
  color: var(--muh-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: min(28rem, 52vw);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muh-icon-btn {
  background: #fff;
  border: 1px solid var(--muh-border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  color: var(--muh-ink);
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.muh-icon-btn:hover {
  border-color: #c7d2fe;
  background: var(--muh-primary-soft);
}

.muh-role-badge {
  background: var(--muh-primary-soft);
  color: var(--muh-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.muh-user-menu { position: relative; display: inline-block; }
.muh-user-menu > summary { list-style: none; }
.muh-user-menu > summary::-webkit-details-marker { display: none; }
.muh-user-menu > summary::marker { content: ""; }
.muh-user-menu:not([open]) > .muh-user-dropdown { display: none; }
.muh-user-btn {
  display: list-item;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--muh-primary);
  color: var(--muh-primary);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.muh-user-btn:hover { background: var(--muh-primary-soft); }
.muh-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 12rem;
  background: #fff;
  border: 1px solid var(--muh-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.35rem 0;
  z-index: 30;
}
.muh-user-dropdown a,
.muh-user-role {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--muh-ink) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 600;
}
.muh-user-dropdown a:hover { background: var(--muh-primary-soft); color: var(--muh-primary-dark); }
.muh-user-role {
  color: var(--muh-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.muh-user {
  font-size: 0.86rem;
  font-weight: 600;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muh-ink);
}

.muh-link-btn {
  color: var(--muh-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.86rem;
  white-space: nowrap;
}

.muh-link-btn:hover { text-decoration: underline; }

.muh-content {
  padding: 1.35rem 1.5rem 2.75rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.muh-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.muh-panel {
  background: var(--muh-surface);
  border: 1px solid var(--muh-border);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.muh-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.muh-panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muh-primary-dark);
}

.muh-panel-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muh-muted);
}

.muh-panel .muh-table {
  margin: 0;
  box-shadow: none;
  border: 0;
}

.muh-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.muh-quick-actions .muh-btn {
  margin-right: 0;
}

.muh-period-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #eef2ff, #fff);
  border: 1px solid var(--muh-primary-soft);
  border-radius: 10px;
  font-size: 0.9rem;
}

.muh-period-banner strong { color: var(--muh-primary-dark); }

.muh-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.muh-status-open {
  background: var(--muh-primary-soft);
  color: var(--muh-primary-dark);
}

.muh-status-closed {
  background: #f1f5f9;
  color: #475569;
}

.muh-form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}

.muh-form-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

@media (max-width: 960px) {
  .muh-form-row,
  .muh-form-row.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .muh-form-row .muh-field-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .muh-form-row,
  .muh-form-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

.muh-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.muh-field label,
.muh-field .muh-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muh-muted);
  margin-bottom: 0.3rem;
  line-height: 1.2;
  min-height: 1rem;
}

.muh-field-label.is-spacer {
  visibility: hidden;
  user-select: none;
}

.muh-field-action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 7.5rem;
}

.muh-field-action .muh-btn {
  width: 100%;
  height: var(--muh-control-h);
  margin-right: 0;
  box-sizing: border-box;
}


.muh-nav-menu {
  padding: 1rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.1rem;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

.muh-nav-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0 0.15rem 1rem;
  text-decoration: none;
}
.muh-nav-brand img {
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
}

.muh-hex {
  width: 28px;
  height: 28px;
  background: var(--muh-primary);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

.muh-nav-section {
  font-size: .68rem;
  text-transform: none;
  letter-spacing: .02em;
  opacity: .65;
  margin: .65rem .35rem .25rem;
}

.muh-menu-search { margin: 0 .15rem .75rem; }
.muh-menu-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
}
.muh-menu-search-input::placeholder { color: rgba(238,242,255,.55); }
.muh-menu-group { margin-bottom: .2rem; }
.muh-menu-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 0;
  color: rgba(238,242,255,.78);
  font-size: .72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .02em;
  padding: .42rem .45rem;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
}
.muh-menu-group-header:hover { background: rgba(255,255,255,.08); color: #fff; }
.muh-menu-caret { width: .8rem; flex: 0 0 auto; opacity: .85; }
.muh-menu-tree {
  margin: 0 0 .35rem 0;
  padding: .1rem 0 .15rem .35rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.view-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.view-tab { padding: .35rem .75rem; border-radius: 8px; border: 1px solid var(--muh-border); color: var(--muh-muted); text-decoration: none; background: var(--muh-primary-soft, #f8fafc); font-weight: 600; }
.view-tab.active, .view-tab:hover { background: var(--muh-primary); color: #fff; border-color: var(--muh-primary); }
.muh-tabs { display: flex; gap: .35rem; margin-top: 1rem; border-bottom: 1px solid var(--muh-border); padding-bottom: .35rem; }
.muh-tab {
  background: transparent; border: 0; padding: .4rem .75rem;
  font-weight: 700; color: var(--muh-muted); cursor: pointer; border-radius: 8px 8px 0 0;
}
.muh-tab.is-active { color: var(--muh-primary); background: var(--muh-primary-soft); }
.muh-section-title { margin: 0 0 .75rem; font-size: 1rem; color: var(--muh-primary-dark); }
.muh-account-picker { position: relative; min-width: 200px; }
.muh-account-picker-row { display: flex; gap: .35rem; align-items: center; }
.muh-account-picker-dropdown {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--muh-border); border-radius: 8px;
  max-height: 220px; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.muh-account-picker-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: .45rem .65rem; cursor: pointer; font-size: .88rem;
}
.muh-account-picker-item:hover { background: var(--muh-primary-soft); }

.muh-sidebar a { color: rgba(238,242,255,.9); text-decoration: none; }
.muh-sidebar button { appearance: none; font-family: inherit; }
.muh-nav-link {
  display: flex;
  align-items: center;
  color: rgba(238,242,255,.88);
  text-decoration: none;
  padding: .45rem .65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
}

.muh-nav-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.muh-nav-link.active {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.muh-page-title {
  color: var(--muh-primary-dark);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 .3rem;
  letter-spacing: -0.02em;
}

.muh-page-sub {
  color: var(--muh-muted);
  margin: 0 0 1.15rem;
  font-size: .92rem;
}

.muh-filter-card {
  background: var(--muh-surface);
  border: 1px solid var(--muh-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: end;
}

.muh-filter-card label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muh-muted);
  margin-bottom: .3rem;
}

.muh-input, .muh-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .92rem;
  min-width: 160px;
  height: var(--muh-control-h);
  box-sizing: border-box;
  background: #fff;
}

.muh-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
}
.muh-filter-row > .muh-field {
  flex: 1 1 16rem;
  min-width: 12rem;
}
.muh-filter-row .muh-field input,
.muh-filter-row .muh-field select {
  width: 100%;
  box-sizing: border-box;
  height: var(--muh-control-h);
}
.muh-filter-card > div:first-child {
  flex: 1 1 16rem;
  min-width: 14rem;
}
.muh-filter-card > div:has(select):not(:first-child) {
  flex: 0 1 12rem;
  min-width: 9rem;
  max-width: 12rem;
}
.muh-filter-actions {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.45rem;
  height: var(--muh-control-h);
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-end;
}
.muh-filter-actions .muh-btn {
  height: var(--muh-control-h);
  min-height: var(--muh-control-h);
  width: auto;
  flex: 0 0 auto;
  padding: 0 0.9rem;
  margin: 0;
  box-sizing: border-box;
}
.muh-filter-card .muh-input,
.muh-filter-card .muh-select {
  width: 100%;
  min-width: 0;
}
.muh-filter-card .muh-btn {
  height: var(--muh-control-h);
  margin-right: 0;
}

.muh-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 0.85rem;
  width: 100%;
}

.muh-kpi {
  background: var(--muh-surface);
  border: 1px solid var(--muh-border);
  border-radius: 12px;
  padding: .9rem .85rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.muh-kpi-value {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--muh-primary-dark);
  line-height: 1.15;
}

.muh-kpi-label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muh-muted);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.muh-stat-total { background: #1d4ed8; border-color: #1d4ed8; }
.muh-stat-on { background: #047857; border-color: #047857; }
.muh-stat-off { background: #4b5563; border-color: #4b5563; }
.muh-stat-total .muh-kpi-value, .muh-stat-on .muh-kpi-value, .muh-stat-off .muh-kpi-value,
.muh-stat-total .muh-kpi-label, .muh-stat-on .muh-kpi-label, .muh-stat-off .muh-kpi-label { color: #fff; }

.muh-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--muh-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  margin: .75rem 0 1.25rem;
}

.muh-table th, .muh-table td {
  border-bottom: 1px solid var(--muh-border);
  padding: .55rem .7rem;
  text-align: left;
  font-size: .9rem;
}

.muh-table th {
  background: #eef2ff;
  color: var(--muh-primary-dark);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.muh-table tr:last-child td { border-bottom: 0; }

.muh-table-actions {
  text-align: right;
  white-space: nowrap;
}

.muh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muh-primary);
  color: #fff;
  border: 1px solid transparent;
  padding: .45rem .9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  font-size: .88rem;
  margin-right: .35rem;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}

.muh-btn:hover { filter: brightness(0.96); }

.muh-btn-outline {
  background: #fff;
  color: var(--muh-primary-dark);
  border: 1px solid #c7d2fe;
}

.muh-btn-outline:hover {
  background: var(--muh-primary-soft);
}

.muh-btn-sm {
  padding: .3rem .65rem;
  font-size: .82rem;
}
.muh-btn-outline-success {
  background: #fff;
  color: #047857;
  border-color: #047857;
}
.muh-btn-outline-danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fca5a5;
}
.muh-catalog-kpis { margin: 0 0 .75rem; }
.muh-catalog-kpis .muh-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.muh-catalog-kpis .muh-kpi-label { text-transform: none; letter-spacing: 0; }
.muh-list-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
}
.muh-list-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.muh-list-count { color: var(--muh-muted); font-size: .82rem; }
@media (max-width: 720px) {
  .muh-kpi-strip,
  .muh-catalog-kpis .muh-kpi-strip { grid-template-columns: 1fr; }
}

.muh-btn:disabled { opacity: .5; cursor: default; }

.muh-alert {
  padding: .65rem .85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.muh-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.muh-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.muh-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muh-muted);
}

.muh-empty-title { font-weight: 700; color: var(--muh-ink); margin-bottom: .35rem; }

.muh-edoc-box {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
}

.muh-edoc-sent { background: #d1fae5; color: #065f46; }
.muh-edoc-pending { background: #fef3c7; color: #92400e; }
.muh-edoc-rejected { background: #fee2e2; color: #991b1b; }

.muh-forbidden {
  padding: 2rem;
  color: #991b1b;
}

.muh-pager {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-top: .5rem;
  font-size: .88rem;
  color: var(--muh-muted);
}

.suite-login-page {
  --suite-accent: #4338CA;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
}
.suite-login-top {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
}
.suite-login-top a {
  color: var(--suite-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.suite-login-top a:hover { text-decoration: underline; }
.suite-login-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.muh-nav-muted { opacity: .85; }
.muh-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 0 0 1rem;
}
.muh-toolbar .muh-btn { margin-right: 0; }
.muh-table tr.is-clickable { cursor: pointer; }
.muh-table tr.is-clickable:hover { background: var(--muh-primary-soft); }
.muh-detail-card {
  background: #fff;
  border: 1px solid var(--muh-border);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 720px;
  margin-bottom: 1rem;
}
.muh-detail-wide {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.muh-detail-wide .muh-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.muh-voucher-lines-wrap {
  overflow: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--muh-line, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}
.muh-voucher-lines { width: 100%; table-layout: fixed; margin: 0; }
.muh-voucher-lines thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  box-shadow: 0 1px 0 #e2e8f0;
}
@media (max-width: 720px) {
  .muh-voucher-lines td:last-child,
  .muh-voucher-lines th:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -4px 0 8px -4px rgba(15, 23, 42, .12);
  }
  .muh-voucher-lines thead th:last-child { z-index: 4; background: #f8fafc; }
}
.muh-voucher-lines th:nth-child(1),
.muh-voucher-lines td:nth-child(1) { width: 42%; }
.muh-voucher-lines th:nth-child(2),
.muh-voucher-lines td:nth-child(2),
.muh-voucher-lines th:nth-child(3),
.muh-voucher-lines td:nth-child(3) { width: 8.5rem; }
.muh-voucher-lines th:nth-child(5),
.muh-voucher-lines td:nth-child(5) { width: 5.5rem; }
.muh-voucher-lines .muh-input,
.muh-voucher-lines .muh-account-picker { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 800px) {
  .muh-detail-wide .muh-detail-grid { grid-template-columns: 1fr; }
}
.muh-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .85rem 1rem;
  margin: 1rem 0;
}
.muh-detail-grid label { display: block; font-size: .78rem; font-weight: 700; color: var(--muh-muted); margin-bottom: .25rem; }
.muh-detail-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.muh-detail-grid select,
.muh-detail-grid textarea,
.muh-table input:not([type="checkbox"]):not([type="radio"]),
.muh-table select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: .45rem .65rem;
  font: inherit;
  font-size: .92rem;
  width: 100%;
  min-width: 0;
  height: var(--muh-control-h);
  box-sizing: border-box;
  background: #fff;
  color: inherit;
}
.muh-detail-grid textarea {
  height: auto;
  min-height: 4.5rem;
  resize: vertical;
}
.muh-detail-grid input[type="checkbox"],
.muh-detail-grid input[type="radio"],
.muh-table input[type="checkbox"],
.muh-table input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  max-width: 1.1rem;
  padding: 0;
  margin: 0;
  border: 0;
  flex-shrink: 0;
  align-self: center;
  vertical-align: middle;
  accent-color: var(--muh-primary, #4338ca);
}
.muh-detail-grid label.muh-check,
.muh-detail-grid .muh-check,
.muh-detail-grid label:has(> input[type="checkbox"]),
.muh-detail-grid label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: .2rem 0;
  font-size: .9rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.25;
  cursor: pointer;
}

@media (max-width: 768px) {
  .muh-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 20;
  }

  .muh-sidebar-toggle:not(:checked) ~ .muh-sidebar {
    width: var(--muh-sidebar-w);
    min-width: var(--muh-sidebar-w);
    opacity: 1;
    transform: translateX(-100%);
    pointer-events: none;
  }

  .muh-sidebar-toggle:checked ~ .muh-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  .muh-sidebar-toggle:checked ~ .muh-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 15;
    cursor: pointer;
    margin: 0;
  }

  .muh-content { padding: 1rem 1rem 2rem; }
  .muh-topbar { padding: 0.65rem 1rem; }
}

#blazor-error-ui {
  background: #fee2e2;
  bottom: 0;
  display: none;
  left: 0;
  padding: .6rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.suite-login-card {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  background: #fff;
}
.suite-login-card h1 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #111;
}
.suite-login-card label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.suite-login-card input[type="email"],
.suite-login-card input[type="password"],
.suite-login-card input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
}
.suite-login-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
}
.suite-login-check input { width: auto; margin: 0; }
.suite-login-actions { display: grid; gap: 0.5rem; }
.suite-login-primary {
  width: 100%;
  background: var(--suite-accent);
  border: 1px solid var(--suite-accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.suite-login-outline {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.suite-login-create {
  text-align: center;
  color: var(--suite-accent);
  font-size: 0.9rem;
  text-decoration: none;
}
.suite-login-alert { padding: 0.6rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; }
.suite-login-alert-error { background: #fee2e2; color: #991b1b; }
.suite-login-alert-info { background: #f3f4f6; color: #111; }

:root { --suite-accent: var(--muh-primary); --suite-border: #e0e7ff; --suite-muted: #64748b; }

/* —— Suite admin chrome (search / page toolbar) —— */
.toolbar input, .toolbar select, .toolbar textarea,
.search-field input, .search-field select {
  box-sizing: border-box;
  border: 1px solid var(--suite-border, #d1d5db);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  min-height: 2.4rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.toolbar input:focus, .toolbar select:focus,
.search-field input:focus, .search-field select:focus {
  border-color: var(--suite-accent, #047857);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--suite-accent, #047857) 18%, transparent);
}
.toolbar label, .search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--suite-muted, #6b7280);
  margin-bottom: 0.25rem;
}
.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--suite-accent, #047857) 8%, #fff) 0%, #fff 70%);
  border: 1px solid var(--suite-border, #d1d5db);
  border-radius: 12px;
}
.search-field { flex: 1 1 14rem; min-width: 12rem; }
.search-field input, .search-field select { width: 100%; }
.search-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--suite-border, #d1d5db);
  border-radius: 12px;
  border-left: 4px solid var(--suite-accent, #047857);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.muh-req { color: #b91c1c; }
.muh-svc { display: flex; flex-direction: column; gap: .85rem; max-width: 64rem; }
.muh-svc label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .25rem; }
.muh-svc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.muh-svc-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem 1rem; }
.muh-svc-actions { display: flex; gap: .5rem; }
.muh-svc .muh-input, .muh-svc textarea { width: 100%; box-sizing: border-box; }
.muh-pick { display: flex; gap: .35rem; align-items: center; }
.muh-pick input { flex: 1; background: #fff; cursor: pointer; }
.muh-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: .2rem 0;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.muh-check input[type="checkbox"],
.muh-check input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  align-self: center;
}
.muh-wp { border: 1px solid #e5e7eb; border-radius: 8px; padding: .75rem; }
.muh-wp p { margin: .2rem 0 .5rem; color: var(--muh-muted); font-weight: 500; }
.muh-picker-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.muh-picker-row { cursor: pointer; }
.muh-picker-row:hover { background: #ecfdf5; }
@media (max-width: 800px) {
  .muh-svc-2, .muh-svc-3 { grid-template-columns: 1fr; }
}

/* Geo (Ülke > İl > İlçe) */
.muh-geo-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .75rem; font-size: .9rem; color: #64748b; }
.muh-geo-crumbs a { font-weight: 600; text-decoration: none; }
.muh-geo-crumbs a:hover { text-decoration: underline; }
/* asya-lang: TR / EN / DE dil seçici */

/* Ortak ticari ekranlar (commerce.css) bu değişkenlerle ürün rengine bağlanır. */
:root { --product-color: var(--muh-primary); --product-color-dark: var(--muh-primary-dark); --product-color-soft: var(--muh-primary-soft); --product-surface: var(--muh-surface); --product-surface-alt: #f8fafc; --product-line: var(--muh-border); --product-muted: var(--muh-muted); --product-ink: var(--muh-ink); }
