@charset "UTF-8";
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111111;
  background: #f7f7f8;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
:focus-visible {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #2f6fed;
  color: #ffffff;
}
.btn-primary:hover {
  background: #1d4fc4;
}

.btn-block {
  width: 100%;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #4a4d52;
}

.form-control {
  width: 100%;
  padding: 5px;
  font-size: 13px;
  border: 1px solid #d1d3d6;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  transition: border-color 0.15s ease;
}
.form-control:focus {
  border-color: #2f6fed;
  outline: none;
}

.alert {
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fdeceb;
  color: #d92d20;
  border: 1px solid rgba(217, 45, 32, 0.25);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 2.25rem 2rem;
  text-align: center;
}

.login-card__logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card h1 {
  font-size: 1.3rem;
  margin: 0 0 0.25rem;
}

.login-card__subtitle {
  font-size: 0.85rem;
  color: #8a8d93;
  margin: 0 0 1.5rem;
}

.login-card form {
  text-align: left;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #111111;
  color: #ececed;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 0;
  position: sticky;
  height: 100vh;
  overflow-y: auto;
  top: 0;
}

.sidebar__logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar__nav a {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  color: #d1d3d6;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar__nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.sidebar__nav a.active {
  background: rgba(47, 111, 237, 0.15);
  border-left-color: #2f6fed;
  color: #ffffff;
  font-weight: 600;
}

.sidebar__logout {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem !important;
  color: #d1d3d6;
}

.main {
  flex: 1;
  min-width: 0;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e3e5;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  right: 0;
  left: 240px;
}
.topbar h1 {
  font-size: 1.15rem;
  margin: 0;
}

.topbar__user {
  font-size: 0.85rem;
  color: #000000;
  text-transform: capitalize;
  font-weight: 500;
}

.main-content {
  padding: 2rem;
  margin-top: 76px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat-card__label {
  font-size: 0.8rem;
  color: #8a8d93;
  margin-bottom: 0.4rem;
}

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-card--warning .stat-card__value {
  color: #d92d20;
}

.placeholder-note {
  color: #8a8d93;
  font-size: 0.9rem;
}

.product-thumb {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.product-thumb:hover {
  transform: scale(4.5);
  z-index: 10;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 800px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem 0;
  }
  .sidebar__logo {
    display: none;
  }
  .sidebar__nav {
    flex-direction: row;
  }
  .sidebar__logout {
    margin-top: 0;
    border-top: none;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.btn-outline {
  background: transparent;
  border-color: #d1d3d6;
  color: #4a4d52;
}
.btn-outline:hover {
  background: #f7f7f8;
  border-color: #8a8d93;
}

.btn-danger {
  background: #d92d20;
  color: #ffffff;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}
.btn-success:hover {
  background: #15803d;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-toolbar h2 {
  margin: 0;
  font-size: 1rem;
}

.search-box {
  position: relative;
}
.search-box .form-control {
  padding-left: 2.1rem;
  min-width: 220px;
}
.search-box::before {
  content: "⌕";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8d93;
  font-size: 1.05rem;
  pointer-events: none;
}

.table-card {
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background: #f7f7f8;
  border-bottom: 1px solid #e2e3e5;
}
thead th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a4d52;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #ececed;
  transition: background-color 0.1s ease;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: #f7f7f8;
}

tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  color: #111111;
}

.td-muted {
  color: #8a8d93;
  font-size: 0.82rem;
}

.td-mono {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.82rem;
}

.td-actions {
  white-space: nowrap;
  display: flex;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-enabled {
  background: #dcfce7;
  color: #15803d;
}

.badge-disabled {
  background: #ececed;
  color: #8a8d93;
}

.badge-low {
  background: #fef9c3;
  color: #92400e;
}

.stock-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stock-bar {
  width: 50px;
  height: 5px;
  background: #e2e3e5;
  border-radius: 99px;
  overflow: hidden;
}
.stock-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #16a34a;
}
.stock-bar span.low {
  background: #f59e0b;
}
.stock-bar span.zero {
  background: #d92d20;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #111111;
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
#toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#toast.toast-error {
  background: #d92d20;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  position: relative;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal__header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #8a8d93;
  padding: 0;
}
.modal__close:hover {
  color: #111111;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.modal-grid .form-group.full {
  grid-column: 1/-1;
}

.modal__footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  border-top: 1px solid #ececed;
  padding-top: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #8a8d93;
  font-size: 0.9rem;
}

.panel-card {
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 10px;
  margin-bottom: 1.5rem;
}

.panel-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.panel-card__header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.stock-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.summary-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a8d93;
  margin-bottom: 0.3rem;
}

.summary-card__value {
  font-size: 1.4rem;
  font-weight: 700;
}

.summary-card__sub {
  font-size: 0.78rem;
  color: #8a8d93;
  margin-top: 0.2rem;
}

.select-wrapper {
  position: relative;
}
.select-wrapper select.form-control {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding-right: 2rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8d93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.quick-add-panel {
  background: #f7f7f8;
  border: 1px dashed #d1d3d6;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin-top: 0.6rem;
  display: none;
}
.quick-add-panel.open {
  display: block;
}

.quick-add-panel__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a4d52;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #4a4d52;
  background: #ececed;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-top: 0.4rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #ececed;
}
.filter-bar input[type=date] {
  width: auto;
  min-width: 140px;
}
.filter-bar label {
  font-size: 0.82rem;
  color: #8a8d93;
}

.shop-tag {
  display: inline-block;
  font-size: 0.78rem;
  background: #ececed;
  color: #4a4d52;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

@media (max-width: 700px) {
  .stock-summary {
    grid-template-columns: 1fr 1fr;
  }
}
.topbar-cart {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__logout img {
  filter: invert(1);
  width: 30px;
}

.cart-btn img {
  width: 100%;
  max-width: 18px;
}

.cart-badge {
  position: absolute;
  top: -1px;
  right: -2px;
  background: #2f6fed;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.cart-badge.hidden {
  display: none;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-color: #d1d3d6;
}

.product-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.product-card__sku {
  font-size: 0.76rem;
  color: #8a8d93;
  font-family: "SF Mono", "Fira Code", monospace;
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.product-card__bulk {
  font-size: 0.78rem;
  color: #8a8d93;
  background: #f7f7f8;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  display: inline-block;
}

.product-card__stock {
  font-size: 0.8rem;
  color: #8a8d93;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #ececed;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.product-card__actions input[type=number] {
  width: 56px;
  padding: 0.5rem 0.5rem;
  text-align: center;
}

.in-cart-label {
  font-size: 0.75rem;
  color: #2f6fed;
  font-weight: 600;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}

.checkout-summary {
  background: #ffffff;
  border: 1px solid #e2e3e5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}

.checkout-summary h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ececed;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}
.order-total-row.grand {
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid #e2e3e5;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.cart-qty-input {
  width: 60px;
  padding: 0.35rem 0.4rem;
  text-align: center;
  font-size: 0.85rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 1rem;
  color: #8a8d93;
}
.empty-cart a {
  color: #2f6fed;
  font-weight: 600;
}

.order-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.order-success h2 {
  margin: 0 0 0.4rem;
  color: #15803d;
}
.order-success p {
  margin: 0;
  color: #166534;
  font-size: 0.9rem;
}

.client-meta {
  font-size: 0.8rem;
  color: #8a8d93;
}

.order-status-badge.completed {
  background: #dcfce7;
  color: #15803d;
}
.order-status-badge.pending {
  background: #fef9c3;
  color: #92400e;
}
.order-status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

#bank_details {
  margin-top: auto;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}/*# sourceMappingURL=style.css.map */