:root {
  --bg: #f5f6fa;
  --card: #fff;
  --text: #1c2033;
  --muted: #74798c;
  --line: #e8eaf1;
  --purple: #6842e8;
  --purple2: #8c6cf1;
  --green: #16a36a;
  --orange: #f39a38;
  --red: #ef5261;
  --blue: #3985ed;
  --shadow: 0 8px 28px rgba(38, 31, 70, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
.hidden {
  display: none !important;
}
.app {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #17162a;
  color: #aaa9bd;
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 25px;
  color: #fff;
}
.brand .logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--purple2), var(--purple));
  border-radius: 11px;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 18px #6842e855;
}
.brand b {
  display: block;
  letter-spacing: 1.8px;
  font-size: 14px;
}
.brand small {
  display: block;
  color: #89879c;
  font-size: 10px;
  margin-top: 3px;
}
.brand.big {
  color: var(--text);
  padding: 0;
}
.brand.big small {
  color: var(--muted);
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.nav-section {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #65647a;
  padding: 20px 12px 7px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #aaa9bd;
  text-align: left;
  padding: 11px 13px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.nav-item:hover,
.nav-item.active {
  background: #2a2743;
  color: #fff;
}
.nav-item.active {
  box-shadow: inset 3px 0 var(--purple2);
}
.nav-item .ico {
  width: 18px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #2a2940;
  padding-top: 12px;
}
.side-bottom > button {
  background: transparent;
  border: 0;
  color: #aaa9bd;
  padding: 9px;
  cursor: pointer;
}
.user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
}
.user > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #6842e8;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.user b,
.user small {
  display: block;
  font-size: 11px;
  color: #fff;
}
.user small {
  color: #77758a;
  margin-top: 2px;
}
main {
  min-width: 0;
}
header {
  height: 92px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header h1 {
  margin: 0;
  font-size: 21px;
}
header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.primary {
  border: 0;
  background: var(--purple);
  color: #fff;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px #6842e833;
}
.primary:hover {
  background: #5934d7;
}
.icon,
.date-pill,
.menu,
.ghost {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 9px;
  padding: 10px 13px;
  cursor: pointer;
}
.icon {
  position: relative;
}
.icon i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  right: 8px;
  top: 7px;
}
.menu {
  display: none;
}
.content,
#content {
  padding: 25px 30px;
}
.welcome {
  background: linear-gradient(110deg, #6a43e7, #886aee);
  color: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.welcome:after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 45px solid #ffffff12;
  border-radius: 50%;
  right: -70px;
}
.welcome h2 {
  font-size: 19px;
  margin: 0 0 5px;
}
.welcome p {
  margin: 0;
  color: #e6defe;
  font-size: 12px;
}
.welcome .mini-date {
  background: #ffffff18;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 11px;
  z-index: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
  box-shadow: var(--shadow);
  position: relative;
}
.stat .s-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat .s-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.stat strong {
  display: block;
  font-size: 22px;
  margin: 12px 0 7px;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.up {
  color: var(--green) !important;
}
.down {
  color: var(--red) !important;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 19px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card-head h3 {
  font-size: 14px;
  margin: 0;
}
.card-head button {
  border: 0;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-size: 11px;
}
.chart {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 45px,
    var(--line) 46px
  );
}
.bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.bar {
  width: 100%;
  background: linear-gradient(#886aee, #6842e8);
  border-radius: 5px 5px 1px 1px;
  transition: 0.4s;
}
.bar:hover {
  filter: brightness(1.12);
}
.chart-labels {
  display: flex;
  justify-content: space-around;
  color: var(--muted);
  font-size: 9px;
  margin-top: 8px;
}
.donut-area {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 10px;
}
.donut {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: conic-gradient(
    var(--purple) 0 44%,
    var(--blue) 44% 69%,
    var(--orange) 69% 84%,
    #d8dae2 84%
  );
  position: relative;
}
.donut:after {
  content: "₺18.640\A Toplam";
  white-space: pre;
  position: absolute;
  inset: 25px;
  background: var(--card);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
}
.legend {
  display: grid;
  gap: 11px;
  font-size: 10px;
}
.legend span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
tr:last-child td {
  border: 0;
}
.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 15px;
  font-size: 9px;
  font-weight: 700;
}
.paid {
  background: #e4f7ef;
  color: var(--green);
}
.credit {
  background: #fff1df;
  color: #d47d19;
}
.low {
  background: #ffe9ec;
  color: var(--red);
}
.ok {
  background: #e9f1ff;
  color: var(--blue);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #ede8ff;
  color: var(--purple);
  font-weight: 800;
  margin-right: 8px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.search {
  flex: 1;
  position: relative;
}
.search input {
  width: 100%;
  padding-left: 37px;
}
.search:before {
  content: "⌕";
  position: absolute;
  left: 13px;
  top: 9px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  outline: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
}
.product-img {
  height: 105px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: linear-gradient(135deg, #eee9ff, #faf9ff);
}
.product h4 {
  margin: 11px 0 4px;
  font-size: 13px;
}
.product p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 12px;
}
.product-foot b {
  font-size: 14px;
}
.stock {
  font-size: 9px;
  color: var(--green);
}
.stock.critical {
  color: var(--red);
}
.modal {
  position: fixed;
  inset: 0;
  background: #11111dbb;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-box {
  background: var(--card);
  width: min(860px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: 0 30px 70px #0004;
}
.close {
  position: absolute;
  right: 17px;
  top: 13px;
  border: 0;
  background: transparent;
  font-size: 27px;
  color: var(--muted);
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.span-2 {
  grid-column: span 2;
}
.modal h2 {
  font-size: 20px;
  margin-top: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.sale-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 18px;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr 70px 90px 25px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary {
  background: var(--bg);
  padding: 16px;
  border-radius: 11px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 10px 0;
}
.sum-row.total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 16px;
  font-weight: 800;
}
.empty {
  text-align: center;
  padding: 45px;
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #1d1c2c;
  color: #fff;
  padding: 12px 17px;
  border-radius: 10px;
  z-index: 100;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.25s;
  font-size: 12px;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-card {
  width: 380px;
  max-width: 85%;
  margin: auto;
  display: grid;
  gap: 10px;
}
.login-card h1 {
  font-size: 28px;
  margin: 25px 0 0;
}
.login-card > p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}
.login-card label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 5px;
}
.pass {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pass input {
  border: 0;
  flex: 1;
}
.pass button {
  border: 0;
  background: transparent;
}
.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.demo-note {
  background: #f3f0ff;
  color: #6342c6;
  padding: 10px;
  border-radius: 8px;
  font-size: 10px;
  text-align: center;
}
.login-art {
  background: linear-gradient(145deg, #17152a, #432a8a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.login-art h2 {
  font-size: 38px;
  margin: 0;
  z-index: 2;
}
.login-art p {
  color: #c8baf4;
  z-index: 2;
}
.orb {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #a88aff,
    #6e45dd 40%,
    #31215f 70%
  );
  top: 50px;
  right: -50px;
  box-shadow: 0 0 120px #8a65f888;
}
.dark {
  --bg: #11111c;
  --card: #1b1a29;
  --text: #f1f1f7;
  --muted: #9896aa;
  --line: #302e40;
  --shadow: 0 8px 28px #0003;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.page-btns button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 6px 9px;
}
.report-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.report {
  cursor: pointer;
  transition: 0.2s;
}
.report:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
}
.report .r-icon {
  font-size: 24px;
  margin-bottom: 18px;
}
.report h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.report p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.action {
  color: var(--purple);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.section-title h2 {
  margin: 0;
  font-size: 18px;
}
.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1050px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
  }
  aside {
    position: fixed;
    left: -255px;
    width: 244px;
    transition: 0.25s;
  }
  aside.open {
    left: 0;
  }
  .menu {
    display: block;
  }
  .content,
  #content {
    padding: 16px;
  }
  header {
    padding: 0 15px;
    height: 76px;
  }
  header p,
  .date-pill,
  .icon {
    display: none;
  }
  .head-actions .primary {
    font-size: 0;
    padding: 10px;
  }
  .head-actions .primary:after {
    content: "＋";
    font-size: 18px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 18px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-cards {
    grid-template-columns: 1fr 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .form-grid,
  .sale-layout {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .welcome .mini-date {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
}
@media (max-width: 430px) {
  .product-grid,
  .report-cards {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat .s-top span:first-child {
    max-width: 90px;
  }
  .donut-area {
    gap: 14px;
  }
  .donut {
    width: 115px;
    height: 115px;
  }
}
