/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 10%;
  background-color: #212529;
  transition: all 0.3s ease;
  overflow-x: hidden;
  z-index: 1000;
  padding-top: 1rem;
}

.sidebar:hover {
  width: auto;
  min-width: 250px;
}

.main-content {
  margin-left: 80px; /* Match sidebar's max-width */
  padding: 20px;
  transition: margin-left 0.3s ease;
}


.sidebar:hover + .main-content {
  margin-left: 250px; /* Match sidebar's min-width on hover */
}

.sidebar .nav-link {
  color: #fff;
  padding: 0.8rem 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.sidebar .nav-link i {
  min-width: 24px;
  text-align: center;
  font-size: 1.2rem; /* Make icons slightly larger */
}

.main-content {
  margin-left: 10%;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

.sidebar:hover + .main-content {
  margin-left: 15%;
}
/* Add media query for small screens */
@media (max-width: 768px) {
  .sidebar {
      width: 50px;
      min-width: 50px;
      max-width: 50px;
  }

  .main-content {
      margin-left: 50px;
  }

  .sidebar:hover {
      width: 200px;
      min-width: 200px;
  }

  .sidebar:hover + .main-content {
      margin-left: 200px;
  }
}

.nav-item .dropdown-menu {
  display: none;
}

.nav-item.show .dropdown-menu {
  display: block;
}

.opname-form {
  margin: 0;
  padding: 5px 0;
  align-items: center;
}

.opname-form input {
  height: 31px;
  padding: 2px 5px;
}

.opname-form .btn-sm {
  height: 31px;
  padding: 2px 5px;
}

.opname-form h5 {
  margin: 0;
  line-height: 31px;
}

.row .col-8 .row {
  margin: 0;
}

.row .col-8 h3 {
  margin-bottom: 0.5rem;
}

.row .col-8 label {
  font-size: 0.9rem;
}
.row .col-8 .row {
  margin: 0;
}

.row .col-8 h3 {
  margin-bottom: 0.5rem;
}

.row .col-8 label {
  font-size: 0.9rem;
}
.production-form {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  margin: 0;
  min-height: 38px;
}

.production-form .col-1,
.production-form .col-4,
.production-form .col-6 {
  padding: 0 0.25rem;
}

.production-form .row {
  width: 100%;
  margin: 0;
}

.production-form input.form-control-sm {
  height: 31px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.production-form .btn-sm {
  height: 31px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.production-form h5 {
  margin: 0;
  line-height: 31px;
  font-size: 0.9rem;
}

.production-form label {
  margin: 0;
  line-height: 31px;
}

/* Login page styles */
.bakery-login {
  background-color: #f8f9fa;
}

.bakery-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('../images/bakery-bg.jpg');
  background-size: cover;
  background-position: center;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-link {
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text {
  margin: 0;
  font-weight: 500;
}

/* Branch Management Styles */
.table td {
  vertical-align: middle;
}

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card {
  border: none;
  margin-bottom: 1rem;
}

.card-header {
  border-bottom: 1px solid rgba(0,0,0,.125);
  background-color: #f8f9fa;
}

.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.btn-sm {
  padding: .25rem .5rem;
  font-size: .875rem;
  border-radius: .2rem;
}

/* Production tables styles */
.table {
  margin-bottom: 0;
}

.table td, .table th {
  padding: 0.5rem;
  vertical-align: middle;
}

.form-check-input {
  margin: 0;
}

.table-sm td, .table-sm th {
  padding: 0.25rem;
}

.row-cols-xl-3 > * {
  display: flex;
  flex-direction: column;
}

/* Kitchen calculation styles */
.kitchen-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.kitchen-table {
  flex: 0 1 auto;
  min-width: 300px;
  max-width: 500px;
}

.kitchen-table .table {
  margin-bottom: 0;
  width: 100%;
}

.kitchen-table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

@media (max-width: 768px) {
  .kitchen-table {
      width: 100%;
      max-width: none;
  }
}

/* Production Table print */
.production-tables-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.production-table {
  flex: 1 1 300px;
  max-width: calc(50% - 1rem);
  min-width: 300px;
}

.production-table .table {
  margin-bottom: 0;
  width: 100%;
}

.production-table th {
  background-color: #f8f9fa;
  vertical-align: middle;
}

.production-table td {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .production-table {
      max-width: 100%;
  }
}

.card {
  border: none;
  border-radius: 0.5rem;
}

.card-header {
  border-bottom: 1px solid rgba(0,0,0,.125);
  background-color: #f8f9fa;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
}

.table-sm td, 
.table-sm th {
  padding: 0.5rem;
}

.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

textarea {
  resize: none;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/*search box opname */
.search-container {
  max-width: 400px;
  margin: 0 auto;
}

.search-container .input-group {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.search-container .input-group:focus-within {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.search-container .input-group-text {
  color: #6c757d;
  border: 1px solid #ced4da;
}

.search-container .form-control {
  border: 1px solid #ced4da;
}

.search-container .form-control:focus {
  box-shadow: none;
}

.product-row.hidden {
  display: none;
}

.highlight {
  background-color: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}