/* web/src/theme.css */
:root {
  --cream: #FBF5EC;
  --cream-2: #F4E8D6;
  --surface: #FFFDFA;
  --surface-2: #FBF3E8;
  --ink: #3B2A1E;
  --ink-soft: #6F5B49;
  --muted: #9C876F;
  --line: #ECDDC8;
  --line-soft: #F3E9DB;
  --brand: #B06A31;
  --brand-strong: #8E5121;
  --brand-soft: #F5E4D0;
  --gold: #E3A44B;
  --honey: #F3CD84;
  --berry: #B5453B;
  --berry-soft: #F7E0DD;
  --sage: #6E8B5B;
  --sage-soft: #E7EFDF;
  --r: 14px;
  --r-sm: 9px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(80,50,20,.06), 0 8px 24px -12px rgba(120,70,25,.18);
  --shadow-lg: 0 2px 6px rgba(80,50,20,.08), 0 24px 48px -18px rgba(120,70,25,.28);
  --ring: 0 0 0 3px rgba(176,106,49,.22);
  --font-serif:
    "Georgia",
    "Cambria",
    "Times New Roman",
    ui-serif,
    serif;
  --font-sans:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(
      1200px 600px at 100% -10%,
      rgba(243, 205, 132, .20),
      transparent 60%),
    radial-gradient(
      900px 500px at -10% 110%,
      rgba(176, 106, 49, .10),
      transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection {
  background: var(--brand-soft);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .1px;
  margin: 0 0 .4em;
}
a {
  color: var(--brand-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font-family: inherit;
}
.app {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}
.sidebar {
  background:
    linear-gradient(
      180deg,
      var(--surface),
      var(--surface-2));
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}
.sidebar .spacer {
  min-height: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
}
.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 30% 25%,
      var(--honey),
      var(--brand));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .35);
  color: #fff;
}
.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand .name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.05;
}
.brand .name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.nav-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background .15s,
    color .15s,
    border-color .15s;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-color: #EAD3B8;
  font-weight: 650;
}
.nav-item .ic {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: .9;
}
.sidebar .spacer {
  flex: 1;
}
.sidebar .who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.sidebar .who .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-serif);
}
.sidebar .who .meta {
  line-height: 1.15;
}
.sidebar .who .meta b {
  font-size: 13.5px;
}
.sidebar .who .meta span {
  font-size: 11.5px;
  color: var(--muted);
}
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 30px;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(255, 253, 250, .72);
  border-bottom: 1px solid var(--line);
}
.topbar .title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}
.topbar .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: -2px;
}
.content {
  padding: 28px 30px 60px;
  max-width: 1100px;
  width: 100%;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 {
  font-size: 16px;
}
.card .hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: -6px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  gap: 18px;
}
.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat .chip {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.stat .chip.gold {
  background: #FBEECB;
  color: #A9781F;
}
.stat .chip.sage {
  background: var(--sage-soft);
  color: var(--sage);
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.stat .lbl {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-top: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform .05s,
    box-shadow .15s,
    background .15s,
    border-color .15s;
}
.btn:hover {
  border-color: #E0CDB2;
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  border: none;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      var(--gold),
      var(--brand));
  box-shadow: 0 6px 16px -6px rgba(176, 106, 49, .6);
}
.btn-primary:hover {
  box-shadow: 0 10px 22px -8px rgba(176, 106, 49, .7);
}
.btn-danger {
  border: none;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      #C85a50,
      var(--berry));
}
.btn-ghost {
  background: transparent;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.input,
.field input[type=text],
.field input[type=password] {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  transition:
    border-color .15s,
    box-shadow .15s,
    background .15s;
}
.input:focus,
.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: var(--ring);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.pusat {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.badge.cabang {
  background: var(--sage-soft);
  color: var(--sage);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background: var(--surface-2);
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.logo-preview {
  width: 108px;
  height: 108px;
  border-radius: var(--r);
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.drop {
  flex: 1;
  min-width: 240px;
  border: 2px dashed #E3CFB2;
  border-radius: var(--r);
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover,
.drop.over {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.drop b {
  color: var(--brand-strong);
}
.drop small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px;
}
.login-card .brand {
  justify-content: center;
  padding-top: 0;
}
.login-card h2 {
  text-align: center;
  margin-bottom: 4px;
}
.login-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 24px;
}
.alert {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.alert.err {
  background: var(--berry-soft);
  color: #8a2f27;
  border: 1px solid #EFCcc7;
}
.alert.ok {
  background: var(--sage-soft);
  color: #3f5a2f;
  border: 1px solid #D7E5C9;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.muted {
  color: var(--muted);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 15px;
  text-transform: none;
  color: var(--ink);
  margin: 26px 0 12px;
}
.spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sp .7s linear infinite;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
.combo {
  position: relative;
}
.combo-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 30px -8px rgba(60, 38, 16, .25);
  max-height: 280px;
  overflow-y: auto;
}
.combo-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft);
}
.combo-opt:last-child {
  border-bottom: none;
}
.combo-opt:hover,
.combo-opt.active {
  background: var(--brand-soft);
}
.combo-opt .combo-stock {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  flex: none;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filters .input,
.filters select.input {
  max-width: 200px;
}
.filters .grow {
  flex: 1;
  min-width: 160px;
  max-width: none;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.hamburger:hover {
  background: var(--surface-2);
}
@media (min-width: 601px) and (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    z-index: 30;
    padding: 12px 18px;
  }
  .sidebar-top {
    width: 100%;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar .nav-label,
  .sidebar .spacer,
  .sidebar .who {
    display: none;
  }
  .nav-item {
    font-size: 13.5px;
    padding: 8px 11px;
  }
  .topbar {
    padding: 14px 20px;
  }
  .content {
    padding: 20px 20px 60px;
  }
  .card {
    overflow-x: auto;
  }
  .table {
    min-width: 480px;
  }
}
@media (max-width: 600px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    flex-direction: column;
    gap: 4px;
    z-index: 30;
    padding: 12px 16px;
  }
  .sidebar-top {
    width: 100%;
  }
  .sidebar .brand {
    padding: 0;
  }
  .hamburger {
    display: inline-flex;
  }
  .sidebar > *:not(.sidebar-top) {
    display: none;
  }
  .sidebar.open > .nav-label {
    display: block;
    margin-top: 8px;
  }
  .sidebar.open > .nav-item,
  .sidebar.open > .who {
    display: flex;
  }
  .sidebar.open {
    padding-bottom: 14px;
  }
  .nav-item {
    font-size: 14.5px;
    padding: 10px 12px;
  }
  .topbar {
    padding: 14px 18px;
  }
  .content {
    padding: 18px 16px 60px;
  }
  .card {
    padding: 16px;
    overflow-x: auto;
  }
  .topbar .title {
    font-size: 19px;
  }
  .table {
    min-width: 480px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filters .input,
  .filters select.input {
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
}
/*# sourceMappingURL=bundle.css.map */
