:root {
  color-scheme: light;
  --ink: #172b25;
  --muted: #485d54;
  --brand: #244b45;
  --strong: #123a32;
  --paper: #fff;
  --ground: #f2f5f1;
  --line: #cbd5ce;
  --ok: #156348;
  --warn: #785300;
  --bad: #9e302a;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --radius: 14px;
  --shadow: 0 3px 14px #203b280a;
  --caption: 0.875rem;
  --body: 1rem;
  --title: clamp(1.8rem, 3.6vw, 2.7rem);
  font:
    400 var(--body) / 1.5 system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--ground);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p,
dl {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: var(--title);
  letter-spacing: -0.045em;
  font-weight: 680;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.05rem;
}
a {
  color: var(--strong);
  text-underline-offset: 3px;
}
p,
li,
dd,
output,
label,
td,
th,
button {
  overflow-wrap: anywhere;
}
small,
.muted,
.meta {
  color: var(--muted);
  font-size: var(--caption);
}
main,
section,
article,
form {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button,
summary,
.tabs a,
.nav-link {
  min-height: 44px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper);
  color: var(--strong);
  border: 1px solid #8ba398;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  max-width: 100%;
}
button:hover,
.button:hover {
  background: #edf3ee;
}
button:disabled {
  cursor: default;
  color: #55645a;
  background: #e8ede9;
  border-color: #cbd4cd;
}
button.primary,
form button[type="submit"]:first-of-type {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
button.danger,
.danger button[type="submit"],
form button.danger[type="submit"] {
  background: #94372e;
  color: #fff;
  border-color: #852f28;
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ad6221;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-block: 10px;
}
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #859b90;
  padding: 9px 11px;
  border-radius: 7px;
  background: white;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
}
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
label input,
label select,
label textarea {
  font-weight: 400;
}
form {
  max-width: 36rem;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  padding: 16px;
}
legend,
summary {
  font-weight: 650;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
ul,
ol {
  padding-inline-start: 1.25rem;
}
output {
  display: block;
  max-width: 100%;
}
.card,
.auth-card,
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: var(--s5);
}
.auth-card {
  max-width: 28rem;
  margin: clamp(32px, 9vh, 88px) auto;
}
.auth-card > img {
  margin-bottom: 16px;
}
.auth-card form {
  margin-block: 20px 8px;
}
.auth-card form button[type="submit"] {
  width: 100%;
  margin-top: 12px;
}
.auth-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth-card p:not(:empty) {
  margin-block: 12px;
}
.auth-card #forgot {
  font-weight: 600;
}
.tabs,
.actions,
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tabs {
  border-bottom: 1px solid var(--line);
  margin-block: 16px;
}
.tabs a,
.tabs button {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.tabs [aria-current="page"],
.tabs [aria-selected="true"] {
  color: var(--strong);
  box-shadow: inset 0 -3px var(--brand);
  font-weight: 700;
}
.toolbar {
  justify-content: space-between;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 650;
  padding: 3px 10px;
  background: #edf0ed;
  color: #44574d;
  justify-self: start;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 100%;
  background: currentColor;
}
.badge.ok {
  background: #e2f2e8;
  color: var(--ok);
}
.badge.warn {
  background: #fff1d4;
  color: var(--warn);
}
.badge.bad {
  background: #fae8e6;
  color: var(--bad);
}
.banner:not(:empty) {
  background: #edf1df;
  border-left: 3px solid #6f8056;
  padding: 10px 14px;
  border-radius: 6px;
  margin-block: 12px;
}
.empty {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.skeleton {
  height: 64px;
  border-radius: 10px;
  background: #e0e8df;
  animation: pulse 1s alternate infinite;
}
@keyframes pulse {
  to {
    opacity: 0.55;
  }
}
dialog {
  color: var(--ink);
  width: min(30rem, calc(100% - 32px));
  max-height: 85dvh;
}
dialog::backdrop {
  background: #0c221db3;
}
dialog > p {
  margin-block: 12px;
}
dialog .actions {
  margin-top: 16px;
}
.ui-icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.staff-shell .rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--strong);
  color: #f3f8f4;
  padding: 28px 15px;
  overflow: auto;
  z-index: 5;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.brand-mark > svg {
  width: 35px;
  height: 35px;
}
.rail .brand-mark {
  padding: 0 10px 26px;
}
.rail nav {
  display: grid;
  gap: 4px;
}
.rail a {
  color: #eef7f1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.94rem;
}
.nav-link:hover,
.rail [aria-current="page"] {
  background: #315c50;
}
.rail [aria-current="page"] {
  box-shadow: inset 3px 0 #afcf9d;
  font-weight: 650;
}
.nav-link:last-child {
  margin-top: 12px;
  border-top: 1px solid #507264;
  border-radius: 0;
}
.staff-shell {
  padding-inline-start: 236px;
}
.staff-shell > .toolbar {
  min-height: 66px;
  padding: 8px clamp(18px, 4vw, 52px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-menu {
  display: none;
}
.workspace {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: clamp(20px, 3.3vw, 46px);
}
.workspace h1 {
  margin-bottom: 24px;
}
.workspace h2 + .meta {
  margin-top: 4px;
}
.workspace section + .card,
.workspace .card + .card {
  margin-top: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.panel-head h1 {
  margin: 0;
}
.cell-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cell-list > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cell-list > li:last-child {
  border: 0;
}
.cell-list button {
  margin: 4px;
}
.grid-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.grid-table th,
.grid-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.grid-table th {
  font-size: 0.8rem;
  color: var(--muted);
}
.row-link {
  font-weight: 650;
}
.kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin: 0 0 20px;
}
.kpis div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 16px;
}
.kpis dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.kpis dd {
  margin: 2px 0 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.stack {
  display: grid;
  gap: 16px;
}
.stack > * {
  min-width: 0;
}
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.staff-shell .top-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}
.auth-page main {
  padding-inline: 16px;
}
.auth-page:has(#account:not([hidden])) .auth-card {
  max-width: 48rem;
}
.auth-page #account,
.auth-page #password-reset {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
@media (max-width: 767px) {
  .mobile-menu {
    display: inline-flex;
  }
  .staff-shell {
    padding-inline-start: 0;
  }
  .staff-shell .rail {
    display: none;
    inset: 64px 0 auto;
    width: 100%;
    max-height: calc(100dvh - 64px);
    padding: 12px;
  }
  .staff-shell .rail.open {
    display: block;
  }
  .staff-shell .rail .brand-mark {
    display: none;
  }
  .staff-shell > .toolbar {
    min-height: 64px;
  }
  .workspace {
    padding: 20px 14px 40px;
  }
  .two-up {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .grid-table,
  .grid-table tbody,
  .grid-table tr,
  .grid-table td {
    display: block;
  }
  .grid-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .grid-table tbody tr {
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 9px;
    margin-block: 10px;
  }
  .grid-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 3px;
  }
  .grid-table td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--muted);
  }
  .grid-table td:first-child {
    font-size: 1.06rem;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .rail,
  .mobile-menu,
  body > .toolbar,
  .customer-tabs {
    display: none !important;
  }
  .staff-shell {
    padding: 0;
  }
  .workspace {
    padding: 0;
  }
}

.workspace .two-up > .card + .card {
  margin-top: 0;
}
.auth-page[data-authenticated="true"] .auth-card {
  margin: 0;
  max-width: 58rem;
}
.auth-page[data-authenticated="true"] .auth-card > img {
  display: none;
}
.auth-page #reset-begin button + button {
  margin-left: 4px;
}
.auth-page[data-authenticated="true"] .workspace {
  padding: clamp(20px, 3vw, 44px);
}
.auth-page[data-authenticated="true"] .auth-card > a {
  display: inline-flex;
}

.legal-document {
  box-sizing: border-box;
  width: min(100%, 52rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3rem);
}
.legal-document article {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-document form {
  margin-block: 1.5rem;
}
nav[aria-label="Yasal metinler"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
}
nav[aria-label="Yasal metinler"] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
