/* assets/css/style.css - Simple dark theme for beauty POS */
:root {
  --bg: #0f1720;
  --panel: #14496f;
  --muted: #fff;
  --accent: #16a34a;
  --accent2: #f59e0b;
  --card: #0b1220;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #e6eef6;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: #062942;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand {
  margin-bottom: 10px;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #071019;
  font-weight: 300;
  font-size: 14px;
}
.title {
  font-weight: 700;
  margin-top: 8px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
}
nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.navlink {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
}
.navlink:hover {
  background: #1e3342;
}
.navlink.active {
  background: #00bcd4;
  border: 1px solid #fff;
  color: #201a1a;
}
.account {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
.logo_pos img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

#accountowner {
  margin-bottom: 15px;
  font-size: 16px;
  text-align: left;
 
}

.main {
  flex: 1;
  padding: 20px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.btn {
  padding: 8px 12px;
  border-radius: 6px;
  background: #1f2937;
  color: #e6eef6;
  border: 0;
  cursor: pointer;
}
.btn-green {
  background: var(--accent);
  color: #071019;
}
.btn-yellow {
  background: #1c2535;
  color: #fff;
}

.hidden {
  display: none;
}

.cards {
  display: grid;
  gap: 12px;
  margin: 2px auto;
  width: 85%;
  grid-template-columns: repeat(4, 1fr); /* exactly 4 per row */
}
.card {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.card small {
  color: var(--muted);
}
.big {
  font-size: 16px;
  font-weight: 700;
}

.panel {
  background: var(--panel);
  padding: 14px;
  border-radius: 8px;
  border: #437396 1px solid;
  margin-top: 12px;
  width: 90%;
  margin: 12px auto;
}
.methods .method {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: #07121a;
  border-radius: 6px;
  margin-bottom: 8px;
}

.pos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.left .panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-top: 6px;
}
.products button {
  background: #07121a;
  border: 0;
  color: #dbeafe;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.row input,
.row select {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  background: #0b1220;
  color: #e6eef6;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.right .tx-list {
  max-height: 340px;
  overflow: auto;
  margin-top: 8px;
}
.tx-list .tx {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
}
.tx .amount {
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-body {
  background: #505a6f;
  padding: 20px;
  border-radius: 10px;
  width: 360px;
  max-width: 95%;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.modal.show .modal-body {
  transform: scale(1);
}

.modal-body input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #e6eef6;
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.navlink i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}
/* =========================
   Points Search Button ONLY
   ========================= */
#pointsSearchBtn:disabled,
#pointsSearchBtn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ensure Gift Card button is NEVER affected */
#giftCardSearchBtn,
#pointsSearchBtn {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
/* =========================
   Points / Gift search area ONLY
   ========================= */

/* ============================
   MODAL CLOSE BUTTONS
============================ */

#closeGiftCardSelectModal,
#closePointsSelectModal {
  width: 34px;
  height: 34px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 600;
  line-height: 1;

  color: #555;
  background: #f2f2f2;

  border: none;

  cursor: pointer;

  transition: all 0.2s ease;
}

/* Hover */
#closeGiftCardSelectModal:hover,
#closePointsSelectModal:hover {
  background: #e53935;
  color: #fff;
}

/* Active / Click */
#closeGiftCardSelectModal:active,
#closePointsSelectModal:active {
  transform: scale(0.92);
}

/* Optional: keyboard focus */
#closeGiftCardSelectModal:focus,
#closePointsSelectModal:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
}

/* DELETE */
#deleteBtn {
  background: #e53935;
  border: 2px solid #ccc;
}

/* DISCOUNT */
#discountBtn {
  background: #8e24aa;
}

/* DOWN */
#downBtn {
  background: #546e7a;
}

/* UP */
#upBtn {
  background: #2e7d32;
}

/* CHANGE QTY */
#changeQtyBtn {
  background: #0277bd;
}

/* CHANGE PRICE */
#changePriceBtn {
  background: #f9a825;
}

/* BUY GIFT */
#BuyGiftBtn {
  background: #6d4c41;
}

/* BUY GIFT */
#addProductsBtn {
  background: #0808c6;
}

/* BUY GIFT */
#discountDepositBtn {
  background: #009688;
}

#showLastchangeBtn {
  background: #000;
}

/* ============================
   BOTTOM ACTION BUTTONS
============================ */

.bottom-btn,
#deleteBtn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  min-height: 64px;
  padding: 6px 10px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;

  color: #fff;

  border-radius: 10px;
  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

/* Click feedback */
.bottom-btn:active,
#deleteBtn:active {
  transform: scale(0.96);
}

/* ===============================
   ALL CURRENCIES (Neutral Blue)
   =============================== */
#cajaTabAll .card {
  background-color: #424f78; /* calm blue */
  color: #ffffff;
}

/* ===============================
   RD PESOS (Green)
   =============================== */
#currencyTab .card {
  background-color: #14496f; /* standard green */
  color: #ffffff;
}

#cajaTabUSD small {
  color: #fff;
}
/* ===============================
   USD (Teal / Cyan)
   =============================== */
#cajaTabUSD .card {
  background-color: #1ca3d6; /* soft blue */
  color: #ffffff;
}

/* ===============================
   EUR (Purple / Gray)
   =============================== */
#cajaTabEUR .card {
  background-color: #3a2a69; /* muted purple */
  color: #ffffff;
}

#addItemBtn {
  position: relative;
  z-index: 99;
  pointer-events: auto !important;
}
.main-container,
.left-section,
.top-controls {
  pointer-events: auto;
}
/* SHIFT CLOSED */
.shift-locked #closeShiftBtn {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

/* SHIFT OPEN → block Open Shift */
.shift-open #openShiftBtn {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}
#notification-content {
  pointer-events: none; /* 🚫 not clickable */
}

.nomina-actions button.active {
  background: #0f97af;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#addCredictsBtn {
  background: #4f0707;
}

#openRncModal {
  background: #780505;
}

.logout-btn {
  margin-top: 20px;
  background: #14496f;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  border: 1px solid#fff;
}

.logout-btn:hover {
  background: #092f49;
}

.logout-section {
  margin-bottom: 20px;
}

.footer-pos {
  width: 100%;
  display: grid;
  justify-content: center; /* horizontal center */
  align-items: center; /* vertical center */
  padding: 20px 0;

  bottom: 0;
  left: 0;
  background: transparent; /* or add color if needed */
  z-index: 10;
}

.logo_pos img {
  height: 40px; /* adjust size */
}

/* ❌ hide hamburger on desktop */
.hamburger {
  display: none;
}

h5 {
  display: none;
}

.lc-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgb(6 41 66);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.lc-box {
  width: 480px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #0b1220, #111827);
  color: white;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  animation: pop 0.2s ease;
  border: 1px solid #fff;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lc-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lc-header span {
  cursor: pointer;
  font-size: 20px;
  opacity: 0.8;
  background: #dc0a0a;
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid #fff;
}

.lc-header span:hover {
  opacity: 1;
}

.lc-body {
  padding: 18px;
}

.lc-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
}

.lc-grid {
  display: grid;
  gap: 12px;
}

.lc-card {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lc-card.highlight {
  background: linear-gradient(90deg, #16a34a33, #22c55e22);
  border: 1px solid #22c55e55;
}

.lc-label {
  opacity: 0.7;
  font-size: 13px;
}

.lc-value {
  font-weight: bold;
  font-size: 35px;
}

/* desktop sidebar stays visible */
@media (min-width: 769px) {
  .sidebar {
    position: relative;
    left: 0;
    width: 250px;
    height: auto;
  }
}

/* 📱 MOBILE RESPONSIVE */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }

  .container {
    min-height: 100vh;
    height: auto;
  }
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* 📱 MOBILE TOP BAR */
  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #062942;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 👉 move to RIGHT */
    padding: 0 15px;
    z-index: 1200;
    border: 1px solid #fff;
  }

  /* 🍔 HAMBURGER */
  .hamburger {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 33px;
    padding: 8px 18px;
    width: auto;
    display: flex;

    /* ❌ REMOVE THESE */
    position: static;
  }

  #dashboardEgresoReport {
    display: inline-block;
  }

  .lc-box {
    width: 95%;
  }

  /* 🔲 OVERLAY */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    z-index: 1000;
  }

  #overlay.active {
    display: block;
  }

  /* 📦 APP */
  .app {
    flex-direction: column;
    background-color: #1e3342;
  }
  h5 {
    margin-right: auto;
    margin-left: 20px;
    display: block;
  }
  /* 📂 SIDEBAR (DRAWER STYLE) */
  .sidebar {
    position: fixed;
    top: 0;
    left: -95%; /* hidden */
    width: 65%;
    height: 100%;
    background: #062942;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
  }

  .sidebar.active {
    left: 0;
    border-right: 2px solid #fff;
  }

  /* SIDEBAR LINKS */
  .sidebar nav {
    display: block;
  }

  .navlink {
    display: block;

    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* MAIN CONTENT */
  .main {
    padding: 20px 10px 10px; /* space for hamburger */

    width: 100%;
    margin-top: 60px;
  }
  .sidebar .logo {
    margin-top: 60px;
    margin-left: 10px;
  }

  .logout-section {
    margin-bottom: 40px;
  }
  .logout-btn {
    background: #14496f;
    border-bottom: 1px solid #fff;
    color: #fff;
    width: 145px;
  }

  #accountowner {
    text-align: left;
    
  }

  .bcp-welcome-title {
    font-size: 13px;
  }

  .logo_pos img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
  }

  .footer-pos {
    display: grid;
  }
}

@media (min-width: 1101px) and (max-width: 1640px) {
  #cardsCaja {
    grid-template-columns: repeat(3, 1fr);
  }
}
