﻿:root {
  --bg-1: #f3f7fb;
  --bg-2: #eaf1f6;
  --ink: #142230;
  --muted: #5d6c7b;
  --line: #d5e0ea;
  --brand: #0d7d8a;
  --brand-2: #1c9ab0;
  --danger: #c93434;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 20%, #d4eaf7 0%, transparent 35%),
    radial-gradient(circle at 100% 80%, #d6ece7 0%, transparent 38%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
}

.login-layout {
  width: min(1080px, 92%);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
}

.brand-panel {
  padding: 2rem;
}

.brand-logo {
  width: min(320px, 90%);
  height: auto;
  display: block;
}

.brand-panel h1 {
  margin: 0.8rem 0 0.2rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.brand-panel p {
  color: var(--muted);
  margin: 0;
}

.login-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 20px 40px rgba(20, 34, 48, 0.08);
}

.login-card h2 {
  margin: 0;
}

.muted {
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.93rem;
}

.form-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
}

.form-grid input:focus {
  outline: 2px solid #bfe5eb;
  border-color: var(--brand-2);
}

.form-grid button {
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.message {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: #0a8750;
}

.panel-page {
  min-height: 100vh;
  background: #f4f7fa;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 68px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.topbar-logo {
  width: 42px;
  height: 42px;
}

.shortcut-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 0.55rem;
  display: grid;
  gap: 0.4rem;
}

.shortcut-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #607487;
}

.shortcut-drop-zone {
  border: 1px dashed #c8d8e4;
  border-radius: 10px;
  min-height: 40px;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: #f8fbfe;
}

.shortcut-drop-zone.hover {
  border-color: #63a7ce;
  background: #e9f6ff;
}

.shortcut-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.shortcut-chip {
  text-decoration: none;
  color: #0b5b7d;
  background: #e8f4fb;
  border: 1px solid #b8d9ea;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.shortcut-chip:hover {
  background: #dff0fb;
}

.shortcut-hint {
  font-size: 0.8rem;
  color: #7890a1;
}

.shortcut-hint.hidden {
  display: none;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panel-main {
  width: 100%;
  margin: 0;
}

.panel-shell {
  width: min(1460px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem 0.75rem 0.8rem 0;
}

.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem;
  height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  overflow: auto;
  padding-right: 0.15rem;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}



.open-pages-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #d7e3ec;
  box-shadow: 0 -8px 20px rgba(20, 34, 48, 0.08);
  padding: 0.5rem 0.8rem;
  z-index: 35;
}

.open-pages-bottom-bar .menu-button-panel {
  border-top: 0;
  padding-top: 0;
}

.open-pages-bottom-bar .menu-button-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
}

.open-pages-bottom-bar .open-page-item {
  flex: 0 0 auto;
  min-width: 160px;
}

.panel-page {
  padding-bottom: 92px;
}
.menu-button-panel {
  border-top: 1px solid #e3ebf2;
  padding-top: 0.6rem;
}

.menu-button-title {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  color: #5c6e7f;
  font-weight: 800;
}

.menu-button-list {
  display: grid;
  gap: 0.35rem;
}

.menu-button-empty {
  font-size: 0.8rem;
  color: #7d8d9c;
}

.quick-menu-btn {
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 0.28rem 0.42rem;
  background: linear-gradient(135deg, var(--quick-color), color-mix(in srgb, var(--quick-color), #000 12%));
  border: 1px solid color-mix(in srgb, var(--quick-color), #000 16%);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--quick-color), transparent 74%);
  min-height: 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-menu-btn.active {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.open-page-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 0.25rem;
  align-items: center;
}

.open-page-close {
  border: 1px solid #d1dbe5;
  background: #fff;
  color: #3e5568;
  border-radius: 7px;
  width: 24px;
  height: 24px;
  line-height: 1;
  font-size: 0.86rem;
  cursor: pointer;
}

.open-page-close:hover {
  background: #f3f7fb;
}

.menu-group {
  display: grid;
  gap: 0.3rem;
}

.menu-item {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-weight: 800;
  width: 100%;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.menu-item:hover {
  background: #f3f8fb;
}

.menu-item.active {
  background: #e8f5f7;
  border-color: #bfe4e8;
  color: #0b6d77;
}

.submenu {
  display: none;
  gap: 0.2rem;
  padding-left: 0.5rem;
  max-height: 240px;
  overflow: auto;
  scrollbar-width: thin;
}

.menu-group.open .submenu {
  display: grid;
}

.menu-toggle {
  position: relative;
  padding-right: 2rem;
}

.menu-toggle::after {
  content: "\25BE";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6e7f8f;
  transition: transform 0.2s ease;
}

.menu-group.open .menu-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.submenu-group {
  display: grid;
  gap: 0.2rem;
}

.submenu-item {
  text-decoration: none;
  color: #2d4457;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}

.submenu-item:hover {
  background: #f4f9fb;
}

.submenu-item.active {
  background: #eef7fb;
  color: #0b6d77;
}

.subsubmenu {
  display: none;
  gap: 0.12rem;
  padding-left: 0.7rem;
  max-height: 180px;
  overflow: auto;
  scrollbar-width: thin;
}

.submenu-group.open .subsubmenu {
  display: grid;
}

.submenu-toggle {
  position: relative;
  padding-right: 1.8rem;
}

.submenu-toggle::after {
  content: "\25BE";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8b98;
  transition: transform 0.2s ease;
}

.submenu-group.open .submenu-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.subsubmenu-item {
  text-decoration: none;
  color: #3e5668;
  border-radius: 7px;
  padding: 0.38rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.subsubmenu-item:hover {
  background: #f6fafc;
}

.subsubmenu-item.active {
  background: #f0f8fb;
  color: #0b6d77;
}

.menu-drag-source {
  cursor: grab;
}

.menu-drag-source.dragging {
  opacity: 0.45;
}

.placeholder-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.stock-card {
  overflow: hidden;
}

.stock-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.stock-head h1 {
  margin: 0;
}

.section-close-wrap {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e7edf3;
  display: flex;
  justify-content: flex-end;
}

.stock-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.toolbar-right input,
.toolbar-right select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  background: #fff;
}

.toolbar-right input {
  min-width: 280px;
}

.table-wrap {
  width: 100%;
  height: calc(100vh - 260px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1400px;
  background: #fff;
}

.stock-table th,
.stock-table td {
  border-bottom: 1px solid #e8eef3;
  padding: 0.6rem 0.7rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

.stock-table th {
  text-align: left;
  background: #f6f9fc;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1;
}

.stock-table tbody tr.negative-stock-row td {
  background: #ffe3e3;
  color: #8f1d1d;
}

.stock-table tbody tr[data-row-id] {
  cursor: pointer;
}

.stock-table tbody tr.selected-stock-row td {
  background: #dff2ff !important;
  color: #13405a !important;
}

.stock-table tbody tr.selected-line-row td {
  background: #e7f5ff !important;
}

#productPickBody tr {
  cursor: pointer;
}

#productPickBody tr.pick-selected-row td {
  background: #ffe3e3 !important;
  color: #8f1d1d !important;
}

.slip-line-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

.danger-line-btn {
  border-color: #e3a8a8;
  color: #9f2b2b;
  background: #fff7f7;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 31, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 30;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(780px, 96vw);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.modal-card h2 {
  margin: 0;
}

.options-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcff;
  font-size: 0.9rem;
}

.drag-title {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #5a6c7b;
}

.drag-list {
  border: 1px dashed #c6d7e5;
  border-radius: 11px;
  background: #f8fbfe;
  min-height: 46px;
  padding: 0.4rem;
  display: grid;
  gap: 0.35rem;
}

.drag-col-item {
  border-radius: 10px;
  border: 1px solid #cfe0ec;
  background: #fff;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: grab;
  user-select: none;
  font-size: 0.88rem;
}

.drag-col-item.selected {
  background: #e9f7ff;
  border-color: #b9dff3;
}

.drag-col-item.available {
  background: #f8fbff;
  border-color: #d8e6f0;
}

.drag-col-item.dragging {
  opacity: 0.45;
}

.drag-handle {
  color: #5f7384;
  font-weight: 800;
}

.drag-empty {
  font-size: 0.83rem;
  color: #708596;
}

.remove-zone {
  border: 1px dashed #e8b3b3;
  border-radius: 10px;
  color: #8e3333;
  background: #fff7f7;
  text-align: center;
  padding: 0.38rem 0.5rem;
  font-size: 0.82rem;
}

.remove-zone.hover {
  background: #ffe7e7;
  border-color: #d87f7f;
}

.modal-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.modal-actions button:last-child {
  border: 0;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
}

.stock-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 0.7rem;
}

.form-tab-head {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e5edf4;
  padding-bottom: 0.55rem;
}

.tab-btn {
  border: 1px solid #cfe0ec;
  background: #f6fbff;
  border-radius: 10px;
  padding: 0.42rem 0.72rem;
  font: inherit;
  font-weight: 800;
  color: #1f3e53;
  cursor: pointer;
}

.tab-btn.active {
  background: #e7f5ff;
  border-color: #9fcce7;
  color: #0f5f8c;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 0.7rem;
}

.tab-grid .full {
  grid-column: 1 / -1;
}

.stock-form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
  position: relative;
}

.stock-form-grid input,
.stock-form-grid select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: #fff;
}

.stock-form-grid .short-field input {
  max-width: 260px;
}

.stock-form-grid .short-field .combo-row input {
  flex: 0 0 260px;
  max-width: 260px;
}

.stock-form-grid .inline-field {
  gap: 0.3rem;
}

.stock-form-grid .inline-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stock-form-grid .inline-label {
  min-width: 92px;
  font-weight: 800;
}

.stock-form-grid .wrap-field .tag-list {
  margin-left: 96px;
}

.stock-form-grid .tri-inline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}

.stock-form-grid .tri-inline-row .inline-main {
  min-height: 42px;
}

.stock-form-grid .ek-inline-field .tag-list {
  margin-left: 96px;
}

.stock-form-grid .full {
  grid-column: 1 / -1;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.combo-row {
  display: flex;
  gap: 0.45rem;
}

.combo-row select,
.combo-row input {
  flex: 1;
}

.ghost-btn.small {
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
}

.field-bubble {
  display: none;
  align-self: start;
  background: #fff1f1;
  color: #a73030;
  border: 1px solid #e39f9f;
  border-radius: 7px;
  padding: 0.08rem 0.22rem;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  position: relative;
  white-space: nowrap;
  width: fit-content;
  max-width: none;
}

.field-bubble::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 8px;
  width: 7px;
  height: 7px;
  background: #fff1f1;
  border-left: 1px solid #e39f9f;
  border-top: 1px solid #e39f9f;
  transform: rotate(45deg);
}

.field-bubble.show {
  display: inline-flex;
  animation: bubbleBlink 0.9s ease-in-out infinite;
}

@keyframes bubbleBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.unit-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0.8rem;
}

.dual-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 0.8rem;
}

.inner-card {
  padding: 0.8rem;
}

.inner-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.unit-form {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.unit-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.unit-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

.unit-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.unit-table-wrap {
  height: calc(100vh - 260px);
}

.small-table-wrap {
  height: calc(100vh - 330px);
}

.row-actions {
  display: flex;
  gap: 0.35rem;
}

.tag-list {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #c9dce6;
  background: #f4fbff;
  font-size: 0.78rem;
  color: #24506a;
}

.tag-remove {
  border: 0;
  background: transparent;
  color: #9a2f2f;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.tag-muted {
  font-size: 0.78rem;
  color: var(--muted);
}

.hidden-row {
  display: none !important;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .brand-panel {
    text-align: center;
    padding-bottom: 0;
  }

  .brand-logo {
    margin: 0 auto;
  }

  .panel-shell {
    grid-template-columns: 1fr;
    padding: 0.7rem;
  }

  .sidebar {
    border-radius: 16px;
  }

  .open-pages-bottom-bar {
    padding: 0.45rem 0.55rem;
  }

  .open-pages-bottom-bar .open-page-item {
    min-width: 130px;
  }

  .toolbar-right input {
    min-width: 220px;
  }

  .stock-form-grid {
    grid-template-columns: 1fr;
  }

  .tab-grid {
    grid-template-columns: 1fr;
  }

  .stock-form-grid .inline-label {
    min-width: 84px;
  }

  .stock-form-grid .wrap-field .tag-list {
    margin-left: 0;
  }

  .stock-form-grid .tri-inline-row {
    grid-template-columns: 1fr;
  }

  .stock-form-grid .ek-inline-field .tag-list {
    margin-left: 0;
  }

  .unit-layout {
    grid-template-columns: 1fr;
  }

  .dual-layout {
    grid-template-columns: 1fr;
  }
}
.new-stock-page .panel-shell {
  width: min(1460px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem 0.75rem 0.8rem 0;
}

.new-stock-page .placeholder-card {
  padding: 0.75rem;
}

.new-stock-page .stock-head {
  margin-bottom: 0.55rem;
}

.new-stock-page .stock-head h1 {
  font-size: 1.2rem;
}

.new-stock-page .stock-form-grid {
  gap: 0.45rem;
}

.new-stock-page .stock-form-grid label {
  font-size: 0.84rem;
  gap: 0.22rem;
}

.new-stock-page .stock-form-grid input,
.new-stock-page .stock-form-grid select {
  padding: 0.4rem 0.5rem;
  font-size: 0.86rem;
}

.new-stock-page .ghost-btn.small,
.new-stock-page .primary-btn,
.new-stock-page .ghost-btn {
  font-size: 0.84rem;
  padding-top: 0.36rem;
  padding-bottom: 0.36rem;
}

.new-stock-page .check-row input {
  width: 15px;
  height: 15px;
}

.new-stock-page .form-actions {
  margin-top: 0.15rem;
}
.subsubmenu-group {
  display: grid;
  gap: 0.12rem;
}

.subsubmenu-toggle {
  position: relative;
  padding-right: 1.6rem;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}

.subsubmenu-toggle::after {
  content: "\25BE";
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8b98;
  transition: transform 0.2s ease;
}

.subsubmenu-group.open .subsubmenu-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.subsubsubmenu {
  display: none;
  gap: 0.1rem;
  padding-left: 0.75rem;
  max-height: 150px;
  overflow: auto;
  scrollbar-width: thin;
}

.subsubmenu-group.open .subsubsubmenu {
  display: grid;
}

.subsubsubmenu-item {
  text-decoration: none;
  color: #4d6273;
  border-radius: 7px;
  padding: 0.34rem 0.46rem;
  font-size: 0.83rem;
  font-weight: 600;
}

.subsubsubmenu-item:hover {
  background: #f6fafc;
}

.subsubsubmenu-item.active {
  background: #f0f8fb;
  color: #0b6d77;
}

.pos-desk-page .topbar {
  border-bottom: 1px solid #e4edf2;
}

.pos-desk-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 360px;
  gap: 1rem;
  padding: 1rem;
}

.pos-left-card,
.pos-right-card {
  background: #ffffff;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  padding: 0.9rem;
}

.pos-scan-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px auto auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pos-scan-row input {
  min-height: 36px;
}

.pos-customer-row {
  margin-bottom: 0.75rem;
}

.pos-customer-row input {
  margin-top: 0.25rem;
}

.pos-main-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 220px;
  gap: 0.7rem;
  align-items: start;
}

.pos-table-wrap {
  min-height: 360px;
}

.pos-keypad-card {
  border: 1px solid #e3ecf2;
  border-radius: 10px;
  padding: 0.6rem;
  background: #f8fbfd;
}

.pos-keypad-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.pos-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.pos-keypad button {
  border: 1px solid #d4e0e9;
  background: #fff;
  border-radius: 8px;
  min-height: 42px;
  font-weight: 800;
  cursor: pointer;
}

.pos-keypad button:hover {
  background: #f2f8fb;
}

.pos-key-enter {
  background: #007e86 !important;
  color: #fff;
  border-color: #007e86 !important;
}

.pos-total-bar {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #dde8ef;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #f7fbfd;
}

.pos-total-bar span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #075e66;
}

.pos-payment-bar {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pos-payment-bar .payment-btn {
  min-width: 150px;
}

.pos-shortcut-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.pos-shortcut-tabs .active-shortcut-tab {
  border-color: #0d808a;
  color: #0d808a;
}

.pos-shortcut-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.shortcut-item-btn {
  min-height: 42px;
}

@media (max-width: 1200px) {
  .pos-desk-layout {
    grid-template-columns: 1fr;
  }

  .pos-main-grid {
    grid-template-columns: 1fr;
  }
}

.pos-product-modal-card {
  width: min(96vw, 1100px);
}

.product-search-label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-search-label input {
  min-height: 38px;
}

.product-search-keyboard {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  background: #f8fbfd;
}

.product-search-keyboard button {
  min-height: 34px;
  border: 1px solid #d1dfe8;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.product-search-keyboard button:hover {
  background: #eef6fb;
}

.product-search-keyboard .kbd-space {
  grid-column: span 8;
}

.product-search-keyboard .kbd-action {
  background: #f2f5f8;
}

.select-product-btn {
  white-space: nowrap;
}

.pos-layout-v2 {
  grid-template-columns: minmax(700px, 1fr) 500px;
}

.pos-scan-row-v2 {
  grid-template-columns: minmax(170px, 1fr) 74px 110px 90px 80px;
}

.pos-table-wrap-v2 {
  min-height: 250px;
  max-height: 320px;
  overflow: auto;
}

.pos-main-grid-v2 {
  grid-template-columns: minmax(380px, 1fr) 280px;
}

.pos-tools-column {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.pos-keypad-v2 button {
  min-height: 58px;
  font-size: 1.08rem;
}

.pos-payment-stack {
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  padding: 0.5rem;
  background: #f8fbfd;
}

.pos-payment-stack h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.pos-payment-bar-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.pos-payment-bar-v2 .payment-btn {
  min-width: 100%;
  min-height: 50px;
  border-radius: 8px;
}

.pos-right-card-v2 {
  min-height: 640px;
}

.shortcut-layout-v2 {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.shortcut-groups-list {
  display: grid;
  gap: 0.4rem;
  max-height: 540px;
  overflow: auto;
  padding-right: 0.15rem;
}

.shortcut-content-v2 {
  display: grid;
  gap: 0.5rem;
}

.shortcut-actions-v2 {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.shortcut-content-v2 .pos-shortcut-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 250px;
}

.shortcut-content-v2 .shortcut-item-btn.selected-stock-row {
  border-color: #0c7d87;
  background: #e8f8fa;
  color: #0a6169;
}

@media (max-width: 1180px) {
  .pos-layout-v2 {
    grid-template-columns: 1fr;
  }

  .shortcut-layout-v2 {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  display: grid;
  gap: 0.85rem;
}

.sales-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.sales-kpi {
  border: 1px solid #dce9f1;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #fbfdfe;
  display: grid;
  gap: 0.24rem;
}

.sales-kpi.total {
  background: linear-gradient(130deg, #e7f6fb 0%, #f8feff 100%);
  border-color: #cdeaf6;
}

.sales-kpi.cash {
  background: linear-gradient(130deg, #e9f8f1 0%, #f9fefb 100%);
  border-color: #cbeedc;
}

.sales-kpi.card {
  background: linear-gradient(130deg, #ecf3ff 0%, #fafcff 100%);
  border-color: #d6e4ff;
}

.sales-kpi.contactless {
  background: linear-gradient(130deg, #fff4e8 0%, #fffdf9 100%);
  border-color: #ffe3c4;
}

.kpi-label {
  font-size: 0.82rem;
  color: #5b6f80;
  font-weight: 800;
}

.sales-kpi strong {
  font-size: 1.08rem;
  color: #12384a;
}

.sales-chart-wrap {
  border: 1px solid #dce9f1;
  border-radius: 10px;
  padding: 0.8rem;
  background: #ffffff;
}

.sales-chart-wrap h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.sales-bar-list {
  display: grid;
  gap: 0.55rem;
}

.sales-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 56px;
  gap: 0.45rem;
  align-items: center;
}

.sales-bar-row span {
  font-size: 0.84rem;
  font-weight: 800;
  color: #355266;
}

.sales-bar-track {
  width: 100%;
  height: 14px;
  background: #edf4f8;
  border-radius: 999px;
  overflow: hidden;
}

.sales-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.sales-bar-fill.cash {
  background: linear-gradient(90deg, #27a36b 0%, #50c78f 100%);
}

.sales-bar-fill.card {
  background: linear-gradient(90deg, #3d79d6 0%, #6ea0ef 100%);
}

.sales-bar-fill.contactless {
  background: linear-gradient(90deg, #d4872d 0%, #f2b46b 100%);
}

@media (max-width: 1200px) {
  .sales-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .sales-kpi-grid {
    grid-template-columns: 1fr;
  }

  .sales-bar-row {
    grid-template-columns: 94px 1fr 52px;
  }
}

.stock-table tbody tr.cari-borclu-row td {
  background: #ffe8e8;
}

.stock-table tbody tr.cari-alacakli-row td {
  background: #e8f9ec;
}





.pos-cart-table {
  min-width: 0;
  table-layout: fixed;
}

.pos-cart-table th,
.pos-cart-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-cart-table th:nth-child(1),
.pos-cart-table td:nth-child(1) {
  width: 15ch;
  max-width: 15ch;
}

.pos-cart-table th:nth-child(2),
.pos-cart-table td:nth-child(2) {
  width: 25ch;
  max-width: 25ch;
}

.pos-cart-table th:nth-child(3),
.pos-cart-table td:nth-child(3),
.pos-cart-table th:nth-child(4),
.pos-cart-table td:nth-child(4),
.pos-cart-table th:nth-child(5),
.pos-cart-table td:nth-child(5) {
  width: 10ch;
  max-width: 10ch;
}

.menu-group:nth-child(1) .menu-toggle { color: #0d6e7b; }
.menu-group:nth-child(2) .menu-toggle { color: #7a4f00; }
.menu-group:nth-child(3) .menu-toggle { color: #00509d; }
.menu-group:nth-child(4) .menu-toggle { color: #2b8a3e; }
.menu-group:nth-child(5) .menu-toggle { color: #8b1e3f; }






.login-corner-brand {
  position: fixed;
  top: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #1d4257;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 20;
}

.login-corner-logo {
  width: auto;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.login-powered {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  color: #627587;
  font-size: 0.82rem;
  font-weight: 700;
}


.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0.75rem;
  align-items: start;
}

.market-card {
  display: grid;
  gap: 0.55rem;
}

.market-head {
  margin-bottom: 0.2rem;
}

.market-head h2 {
  margin: 0;
  font-size: 1rem;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dce9f1;
  border-radius: 10px;
  overflow: hidden;
}

.market-table th,
.market-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #e5eef5;
  font-size: 0.86rem;
}

.market-table th {
  text-align: left;
  background: #f7fbfe;
  font-weight: 800;
}

.market-table tbody tr:last-child td {
  border-bottom: 0;
}

.market-divider {
  height: 1px;
  background: #e1ecf3;
  margin: 0.2rem 0;
}

.market-updated {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

@media (max-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.excel-import-card {
  min-height: 72vh;
}

.excel-import-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0.85rem;
}

.excel-map-panel,
.excel-preview-panel {
  border: 1px solid #d8e7f0;
  border-radius: 12px;
  padding: 0.7rem;
  background: #f9fcff;
}

.excel-map-panel h2,
.excel-preview-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.mapping-list {
  display: grid;
  gap: 0.42rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.mapping-row {
  display: grid;
  gap: 0.2rem;
}

.mapping-row label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #294b64;
}

.mapping-row select {
  width: 100%;
  border: 1px solid #c9dcea;
  border-radius: 8px;
  padding: 0.38rem 0.45rem;
  font-size: 0.82rem;
  background: #fff;
}

.excel-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.file-btn {
  cursor: pointer;
}

.excel-table-wrap {
  max-height: 44vh;
  overflow: auto;
}

.import-log-wrap {
  margin-top: 0.6rem;
  border-top: 1px solid #e0edf6;
  padding-top: 0.5rem;
}

.import-flow {
  border: 1px solid #d4e5f1;
  border-radius: 8px;
  background: #fff;
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
  padding: 0.45rem;
  display: grid;
  gap: 0.2rem;
}

.flow-line {
  font-size: 0.8rem;
  color: #203243;
}

.flow-line.success {
  color: #14673f;
}

.flow-line.warn {
  color: #8a6518;
}

.flow-line.error {
  color: #922626;
}

.import-report {
  margin: 0.45rem 0 0;
  font-weight: 700;
  color: #1f4763;
  font-size: 0.85rem;
}

@media (max-width: 1280px) {
  .excel-import-layout {
    grid-template-columns: 1fr;
  }

  .mapping-list {
    max-height: 42vh;
  }
}

/* POS kısayol alanı iyileştirmeleri */
.pos-layout-v2 {
  align-items: stretch;
}

.pos-right-card-v2 {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 98px);
}

.pos-right-card-v2 .stock-head h2 {
  font-size: 0.92rem;
}

.shortcut-layout-v2 {
  flex: 1;
  min-height: 0;
  grid-template-columns: 148px 1fr;
  gap: 0.55rem;
}

.shortcut-groups-list {
  max-height: none;
  min-height: 0;
  overflow: auto;
  gap: 0.32rem;
}

.shortcut-groups-list .ghost-btn {
  font-size: 0.73rem;
  line-height: 1.1;
  padding: 0.26rem 0.4rem;
  min-height: 28px;
  border-color: color-mix(in srgb, var(--group-color, #d5e4ef), #9eb4c6 25%);
  background: var(--group-color, #f3f8fc);
  color: #29465c;
}

.shortcut-groups-list .ghost-btn.active-shortcut-tab {
  border-color: #0d808a;
  box-shadow: inset 0 0 0 1px #0d808a;
}

.shortcut-content-v2 {
  min-height: 0;
  grid-template-rows: auto 1fr auto;
}

.shortcut-content-v2 .pos-shortcut-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100%;
  max-height: none;
  overflow: auto;
  align-content: start;
  gap: 0.42rem;
}

.shortcut-content-v2 .shortcut-item-btn {
  background: var(--item-color, #edf5fb);
  border-color: color-mix(in srgb, var(--item-color, #edf5fb), #9fb5c6 35%);
  color: #1f3f58;
  min-height: 44px;
  font-size: 0.76rem;
  font-weight: 700;
}

.shortcut-content-v2 .shortcut-item-btn:hover {
  filter: brightness(0.98);
}

.shortcut-content-v2 .shortcut-item-btn.selected-stock-row {
  border-color: #0c7d87;
  box-shadow: inset 0 0 0 1px #0c7d87;
}

@media (max-width: 1180px) {
  .pos-right-card-v2 {
    min-height: 0;
  }

  .shortcut-layout-v2 {
    grid-template-columns: 1fr;
  }
}

.cash-change-modal-card {
  width: min(92vw, 420px);
}

.cash-change-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.cash-change-grid label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2a475d;
}

.cash-change-grid input {
  min-height: 38px;
}

#cashChangeInput {
  font-weight: 800;
  color: #0a6370;
}

.mixed-payment-modal-card {
  width: min(94vw, 460px);
}

.mixed-payment-rows {
  display: grid;
  gap: 0.45rem;
}

.mixed-payment-rows label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2a475d;
}

#mixedRemainInput {
  font-weight: 800;
  color: #0a6370;
}
