
         @charset "UTF-8";
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }


        .disabled-overlay {
          opacity: 0.5;
          pointer-events: none;
        }

        .flex-center {
            display: flex;
            justify-content: center;
            align-items: center;
        }


        .logo2{
            position: relative;
            top: 10px;
            width: 30px;
        }

        .container {
            /* max-width: 800px; */
            margin: 0 auto;
            padding: 20px;
        }

        /* Login Screen */
        .login-screen {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }

        .login-form {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 400px;
        }

        .login-form h2 {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
            font-size: 28px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e1e1e1;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .login-btn:hover {
            transform: translateY(-2px);
        }

        /* Main App */
        .main-app {
            display: none;
        }

        .logout-btn {
            padding: 10px 20px;
            background: #ff4757;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
        }

        .logout-btn:hover {
            background: #ff3742;
        }

        /* Menu Section */
        .menu-section , .laporan, .riwayat {
            background: white;
            border-radius: 15px;
            padding: 10px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .menu-section h2 , .laporan h2, .riwayat h2{
            margin-bottom: 20px;
            color: #333;
            font-size: 18px;
        }

        .menu-category {
          margin-bottom: 10px;
        }

        .menu-category-title {
          font-size: 0.8rem;
          font-weight: bold;
          border-bottom: 2px solid #ccc;
          padding-bottom: 0.25rem;
        }

        #menuList {
            display: flex;
            flex-direction: column;
        }

        .menu-items-wrapper {
          display: flex;
          overflow: auto;
        }

        .menu-item {
            display: flex;
            align-items: center;
            padding: 5px;
            border: 2px solid #f1f1f1;
            border-radius: 12px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .menu-item:hover {
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .menu-image {
            width: 95px;
            height: 95px;
            border-radius: 10px;
            background: #f0f0f0;
        }

        .menu-info {
            flex: 1;
            display: none;
        }

        .menu-name {
            font-weight: bold;
            font-size: 0.9rem;
            color: #333;
            margin-bottom: 5px;
        }

        .menu-price {
            font-size: 16px;
            color: #667eea;
            font-weight: 600;
        }

        /* Cart Section */
        .cart-section {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .cart-section h2 {
            margin-bottom: 20px;
            color: #333;
            font-size: 20px;
        }

        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f1f1f1;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-name {
            font-weight: 600;
            color: #333;
        }

        .cart-item-price {
            color: #666;
            font-size: 14px;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .qty-btn {
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 50%;
            background: #667eea;
            color: white;
            cursor: pointer;
            font-weight: bold;
        }

        .qty-btn:hover {
            background: #5a6fd8;
        }

        .qty-display {
            min-width: 20px;
            text-align: center;
            font-weight: 600;
        }

        .cart-total {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #f1f1f1;
            text-align: right;
        }

        .total-amount {
            font-size: 24px;
            font-weight: bold;
            color: #333;
        }

        /* Payment Section */
        .payment-section {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .payment-section h2 {
            margin-bottom: 20px;
            color: #333;
            font-size: 20px;
        }

        #payment-methods {
            display: flex;
            position: relative;
            gap: 10px;
            left: 55%;
            width: fit-content ;
            bottom: 50px;
            margin-bottom: -35px;
        }

        .payment-btn {
          padding: 10px 20px;
          border: none;
          background-color: #ddd;
          color: #333;
          border-radius: 8px;
          cursor: pointer;
          opacity: 0.5;
          transition: all 0.2s ease;
        }
        
        .payment-btn.active {
          background-color: #4CAF50; /* Hijau untuk menandakan aktif */
          color: white;
          opacity: 1;
        }


        .payment-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e1e1e1;
            border-radius: 10px;
            font-size: 18px;
            margin-bottom: 15px;
        }

        .payment-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .quick-amounts {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .amount-btn {
            padding: 10px;
            background: #f8f9fa;
            border: 2px solid #e1e1e1;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .amount-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .payment-info {
            margin-bottom: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .payment-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .payment-row:last-child {
            margin-bottom: 0;
            font-weight: bold;
            font-size: 18px;
        }

        .process-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #2ed573, #1e90ff);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .process-btn:hover {
            transform: translateY(-2px);
        }

        .process-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .empty-cart {
            text-align: center;
            color: #666;
            padding: 40px 20px;
        }

        .riwayat{
          margin-bottom: 180px;
        }

        #edit-modal, #menu-struk-modal {
            display: none;
            position: fixed;
            z-index: 999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto; /* penting untuk scroll saat modal tinggi */
            background-color: rgba(0, 0, 0, 0.5); /* gelap transparan */
          }

          #edit-modal-content, #menu-struk-content {
            background-color: #fff;
            margin: 5% auto;
            padding: 20px;
            max-height: 90vh;       /* batas tinggi agar tidak melebihi layar */
            overflow-y: auto;       /* scroll jika lebih dari max-height */
            width: 90%;
            max-width: 600px;
            border-radius: 8px;
            position: relative;
          }

          #insert-modal{
            display:none; 
            position:absolute; 
            top:0; left:0; 
            width:100%; 
            min-height: 150%; 
            height:auto; 
            background-color:rgba(0,0,0,0.5); 
            z-index:999;
          }
          #insert-modal-content {
              background:#fff;
              margin: 5% auto;
              padding: 20px;
              width: 90%;
              max-width: 500px;
              border-radius: 10px;
              position: relative;
          }


        #pemakaian-modal, #sisa-modal{
            display:none; 
            position:fixed; 
            top:0; left:0; 
            width:100%; 
            height:100%; 
            background-color:rgba(0,0,0,0.5); 
            z-index:999;
          }
          .pemakaian-modal-content, .sisa-modal-content {
              background:#fff;
              margin: 5% auto;
              padding: 20px;
              max-width: 600px;
              border-radius: 10px;
              overflow-y:auto; max-height:90vh;
          }
          .pemakaian-modal-content span, .sisa-modal-content span {
              float:right; cursor:pointer; font-weight:bold;
          }
          #sisa-list {
              padding: 20px 0px;
          }




        


        .tab-menu {
      display: flex;
      background-color: #333;
    }

    .tab-menu button {
      flex: 1;
      padding: 8px;
      background: #333;
      color: white;
      border: none;
      cursor: pointer;
      font-size: small;
    }

    .tab-menu button:hover,
    .tab-menu button.active {
      background-color: #555;
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    
    /* Tabbed view for Riwayat Transaksi & Analisa Ayam */
    .trxtabs-container { 
      position: fixed;
      bottom: 132px;
      width: 100%;
      left: 0;
      justify-items: center;
    }
    .trxtab-nav { display:flex; list-style:none; padding:0; margin:0 0 10px 0; border-bottom:2px solid #ddd; }
    .trxtab-nav li { padding:8px 15px; cursor:pointer; background:#f1f1f1; border:1px solid #ccc; margin-right:5px; border-radius:4px 4px 0 0; }
    .trxtab-nav li.active { background:#fff; border-bottom:2px solid #fff; font-weight:bold; }
    .trxtab-content { display:none; }
    .trxtab-content.active { display:block; }

    .totalcash{
        position: fixed;
        bottom: 75px;
        left: 0;
        padding: 8px;
        text-align: center;
        background-color: #12e269;
        border-radius: 5px;
        width: 100%;
    }
    .totalqris{
        position: fixed;
        bottom: 10px;
        left: 0;
        padding: 8px;
        text-align: center;
        background-color: rgb(250, 250, 17);
        border-radius: 5px;
        width: 100%;
    }
    /* Tabbed view for Riwayat Transaksi & Analisa Ayam */

    #laporan-pemakaian-admin-container {
        margin: 50px auto;
        padding: 20px;
        width: fit-content;
    }

    .btn-input-produk-sisa {
        margin: 10px 0; 
        background-color: #e53935; 
        color: white; 
        font-weight: bold; 
        padding: 10px 16px; 
        border: none; 
        border-radius: 8px; 
        cursor: pointer;
    }


    #riwayat-list{
        padding-left: 30px;
    }



    .hamburger {
  display: none;
  position: fixed;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  right: 25px;
  top: 15px;
}

#stok-list, #stok-minuman{
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
}






.stok-card {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px;
    margin: 10px;
    width: 220px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
  }

  .stok-card:hover {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
  }

  .stok-card h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
  }

  .stok-card p {
    margin: 4px 0;
    font-size: 0.9em;
    color: #555;
  }

  .form-pemakaian {
    background: #fffefc;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  }

  .form-pemakaian h3 {
    margin-bottom: 15px;
    color: #222;
  }

  .pemakaian-item {
    margin-bottom: 12px;
  }

  .pemakaian-item input {
    width: 60px;
    padding: 4px;
    margin-left: 8px;
  }

  .form-pemakaian button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
  }

  .form-pemakaian button:hover {
    background-color: #0056b3;
  }









/* Kartu/form pembelian */
.form-pemakaian {
  background: #fffefc;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  max-width: 800px;
  margin-inline: auto;
  margin: 20px 10px;
}


.form-pemakaian h3 {
  margin-bottom: 15px;
  color: #222;
}

#form-restok-container {
  margin: auto; 
  width: fit-content;
}

.restok-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
  align-items: flex-end;
}

.restok-item label {
  display: flex;
  flex-direction: column;
  font-size: 0.9em;
  min-width: 140px;
}

.restok-item input,
.restok-item select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.restok-item button {
  background: #ff5c5c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  height: 36px;
}

.restok-item button:hover {
  background: #e53e3e;
}

button[type="button"] {
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="button"]:hover {
  background-color: #0056b3;
}

#total-pembelian {
  font-size: 1.2em;
  font-weight: bold;
  color: green;
}





/* === FORM EDIT TRANSAKSI === */
.edit-transaksi-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.edit-transaksi-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #333;
}

.edit-transaksi-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
}

.edit-transaksi-form input[type="number"],
.edit-transaksi-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 15px;
}

.item-row {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}

.item-row label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.item-row input {
  margin-top: 4px;
  padding: 6px;
}

/* Tombol */
.edit-transaksi-form button,
.edit-transaksi-form a.btn {
  display: inline-block;
  padding: 10px 16px;
  margin-top: 10px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

/* Tombol utama */
.edit-transaksi-form button[type="submit"] {
  background: #28a745;
  color: white;
  border: none;
}

.edit-transaksi-form button[type="submit"]:hover {
  background: #218838;
}

/* Hapus transaksi */
.edit-transaksi-form a.btn-delete {
  background: #dc3545;
  color: white;
  margin-left: 8px;
}

.edit-transaksi-form a.btn-delete:hover {
  background: #c82333;
}

/* Cetak */
.edit-transaksi-form a.btn-print {
  background: #007bff;
  color: white;
  margin-left: 8px;
}

.edit-transaksi-form a.btn-print:hover {
  background: #0069d9;
}

/* Link hapus item */
.item-row a {
  font-size: 13px;
  color: #dc3545;
  display: inline-block;
  margin-top: 6px;
}



/* Universal Close button */
.universal-modal-close-btn {
  position: absolute !important;
  width: fit-content !important;
  top: 5px !important;
  right: 10px !important;
  cursor: pointer !important;
}

.hide {
  display: none;
}
.red-button {
  background: #ff4757; 
  color: white; 
  grid-column: span 3;
}

/* Responsif */
@media screen and (max-width: 600px) {
  .restok-item {
    flex-direction: column;
    align-items: stretch;
  }

  .restok-item label {
    min-width: 100%;
  }

}

@media (max-width: 600px) {

  body #riwayat-list{
    font-size: small;
  }
  .container {
    padding: 5px;
  }
  .stok-card {
    width: 48%;
    max-width: 95%;
    padding: 12px;
    margin: 8px auto;
  }

  .stok-card h4 {
    font-size: 1em;
  }

  .stok-card p {
    font-size: 0.85em;
  }

  

  .form-pemakaian h3 {
    font-size: 1.1em;
    text-align: center;
  }

  .pemakaian-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .pemakaian-item label {
    font-size: 0.9em;
    margin-bottom: 4px;
  }

  .pemakaian-item input {
    width: 40%;
    max-width: 100%;
    padding: 6px;
    margin: 4px 0;
    box-sizing: border-box;
  }

  .form-pemakaian button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
  }


  .edit-transaksi-form {
    padding: 15px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .edit-transaksi-form button,
  .edit-transaksi-form a.btn {
    display: block;
    width: 100%;
    margin: 6px 0;
    text-align: center;
  }

}


@media (max-width: 768px) {
  .tab-menu {
    display: none;
    flex-direction: column;
    background-color: #f4f4f4;
    padding: 10px;
    position: fixed;
    width: 97%;
    top: 50px;
    border-radius: 8px;
  }

  .tab-menu.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .tab-btn, .logout-btn {
    width: 100%;
    margin-bottom: 5px;
  }

  #navMenu {
            display: none;
        }

        #navMenu.show {
            display: block;
        }
}