.container {
  display: flex;
  min-height: calc(100vh - 60px);
  position: relative;
  overflow-x: hidden;
}

.orden-sidebar {
  width: 200px;
  background-color: #232b37;
  color: white;
  padding: 20px 0;
  position: fixed;
  left: 130px;
  top: 75px;
  height: calc(100vh - 75px);
  transition: left 0.3s ease;
  z-index: 100;
  font-family: "Istok Web", sans-serif;
}
.orden-sidebar.hidden {
  left: -200px;
}
.orden-sidebar .orden-sidebar-header {
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  background-color: #2a3340;
  margin-bottom: 10px;
  text-align: left;
}
.orden-sidebar .orden-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.orden-sidebar .orden-sidebar-menu li {
  margin: 0;
}
.orden-sidebar .orden-sidebar-menu li a {
  display: block;
  padding: 10px 15px;
  margin: 3px 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 8px;
  min-height: 40px;
  line-height: 1.3;
}
.orden-sidebar .orden-sidebar-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.orden-sidebar .orden-sidebar-menu li a.active {
  background-color: #4b8fe1;
  color: #ffffff;
  font-weight: 700;
}

.main-content {
  flex: 1;
  padding: 30px;
  margin-left: 130px;
  margin-top: 75px;
  transition: margin-left 0.3s ease;
  background-color: #eaf5ff;
  min-height: calc(100vh - 75px);
}
.main-content.with-orden-sidebar {
  margin-left: 330px;
}
.main-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  font-family: "Istok Web", sans-serif;
}

.orden-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.orden-section #orden-content {
  min-height: 400px;
  font-family: "Istok Web", sans-serif;
  font-size: 16px;
  color: #555;
}

.venta-producto-container {
  width: 100%;
}
.venta-producto-container .venta-form-row {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.venta-producto-container .venta-form-row .form-field {
  flex: 1;
  position: relative;
}
.venta-producto-container .venta-form-row .form-field label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 16px;
  font-weight: 700;
}
.venta-producto-container .venta-form-row .form-field input[type=text],
.venta-producto-container .venta-form-row .form-field input[type=number] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Istok Web", sans-serif;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.venta-producto-container .venta-form-row .form-field input[type=text]:focus,
.venta-producto-container .venta-form-row .form-field input[type=number]:focus {
  outline: none;
  border-color: #4b8fe1;
  box-shadow: 0 2px 8px rgba(75, 143, 225, 0.2);
}
.venta-producto-container .venta-form-row .form-field .producto-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 200px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  z-index: 1000;
  display: none;
  font-family: "Istok Web", sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.venta-producto-container .venta-form-row .form-field .producto-dropdown .dropdown-item {
  padding: 12px;
  cursor: pointer;
  background-color: white;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.venta-producto-container .venta-form-row .form-field .producto-dropdown .dropdown-item:last-child {
  border-bottom: none;
}
.venta-producto-container .venta-form-row .form-field .producto-dropdown .dropdown-item:hover {
  background-color: #e8f4fd;
}
.venta-producto-container .venta-form-row .form-field-btn .btn-add {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Istok Web", sans-serif;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.venta-producto-container .venta-form-row .form-field-btn .btn-add:hover {
  background-color: #27ae60;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.venta-producto-container .venta-table-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}
.venta-producto-container .venta-table-container .table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr 0.5fr;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  padding: 18px 20px;
  font-weight: 700;
  color: white;
}
.venta-producto-container .venta-table-container .table-header .header-item {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Istok Web", sans-serif;
}
.venta-producto-container .venta-table-container .table-header .header-item:first-child {
  justify-content: flex-start;
}
.venta-producto-container .venta-table-container .table-body {
  min-height: 100px;
}
.venta-producto-container .venta-table-container .table-body .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr 0.5fr;
  padding: 16px 20px;
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}
.venta-producto-container .venta-table-container .table-body .table-row:nth-child(even) {
  background-color: #f8f9fa;
}
.venta-producto-container .venta-table-container .table-body .table-row:hover {
  background-color: #e3f2fd;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  font-family: "Istok Web", sans-serif;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-cell:first-child {
  justify-content: flex-start;
  font-weight: 500;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions button {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions button.btn-edit:hover {
  background-color: #e3f2fd;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions button.btn-edit .img-edit {
  filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2466%) hue-rotate(201deg) brightness(95%) contrast(101%);
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions button.btn-delete:hover {
  background-color: #ffebee;
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions button.btn-delete .img-delete {
  filter: brightness(0) saturate(100%) invert(23%) sepia(89%) saturate(3470%) hue-rotate(348deg) brightness(89%) contrast(89%);
}
.venta-producto-container .venta-table-container .table-body .table-row .table-actions button img {
  width: 18px;
  height: 18px;
}
.venta-producto-container .venta-table-container .venta-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
  font-family: "Istok Web", sans-serif;
}
.venta-producto-container .venta-table-container .venta-total strong {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 700;
}
.venta-producto-container .venta-table-container .venta-total span {
  font-size: 20px;
  font-weight: 700;
  color: #2ecc71;
}
.venta-producto-container .venta-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.venta-producto-container .venta-actions .btn-registrar {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 14px 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Istok Web", sans-serif;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.venta-producto-container .venta-actions .btn-registrar:hover {
  background-color: #27ae60;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ========== MODALES ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #1A242F;
}
.modal-header .modal-close {
  background: #8B2727;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-header .modal-close:hover {
  background: #6d1d1d;
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
}
.modal-body .form-group {
  margin-bottom: 20px;
}
.modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}
.modal-body .form-group label small {
  font-weight: 400;
  color: #666;
  font-size: 12px;
}
.modal-body .form-group input,
.modal-body .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Istok Web", sans-serif;
  transition: border-color 0.2s ease;
}
.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}
.modal-body .form-group input::placeholder,
.modal-body .form-group textarea::placeholder {
  color: #999;
}
.modal-body .form-group input[type=number] {
  -moz-appearance: textfield;
}
.modal-body .form-group input[type=number]::-webkit-outer-spin-button, .modal-body .form-group input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.modal-body .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-body .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.modal-body .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.modal-body .modal-actions button {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-body .modal-actions button.btn-primary {
  background: #2ecc71;
  color: white;
}
.modal-body .modal-actions button.btn-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .orden-sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    background: #eaf5ff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .main-content.with-orden-sidebar {
    margin-left: 0;
  }
  .orden-section {
    display: none;
  }
  .main-content::after {
    content: "En proceso";
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    font-family: "Istok Web", sans-serif;
  }
}

/*# sourceMappingURL=orden.css.map */
