/* Variables de color verde */
:root {
  --primary-green: #28a745;
  --primary-green-dark: #218838;
  --primary-green-light: #34ce57;
  --success-green: #28a745;
  --light-green: #d4edda;
  --dark-green: #155724;
  --border-green: #c3e6cb;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contenedor principal */
.login-container,
.signup-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
  padding: 2rem 1rem;
}

/* Card de bienvenida */
.welcome-card {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(40, 167, 69, 0.2);
  color: white;
  max-width: 500px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(40, 167, 69, 0.3);
}

.welcome-content {
  text-align: center;
}

.logo-wrapper {
  margin-bottom: 1.5rem;
}

.logo-wrapper i {
  font-size: 4rem;
  color: white;
  opacity: 0.9;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  opacity: 0.95;
}

.feature-item i {
  font-size: 1.25rem;
  color: white;
}

/* CTA para crear pedido */
.welcome-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-cta__message {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.welcome-cta__message i {
  color: #ffd700;
  font-size: 1.3rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.welcome-cta__submessage {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.welcome-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: #28a745;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.welcome-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.welcome-cta__button:active {
  transform: translateY(-1px);
}

.welcome-cta__button i {
  font-size: 1.3rem;
}

/* Contenedor del formulario */
.login-form-container,
.signup-form-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.login-form-card,
.signup-form-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.login-form-card:hover,
.signup-form-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-title i {
  font-size: 1.75rem;
}

.form-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Alertas personalizadas */
.alert-danger-custom {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: shake 0.5s;
}

.alert-danger-custom i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Formulario */
.login-form,
.signup-form {
  margin-bottom: 1.5rem;
}

.form-group-custom {
  margin-bottom: 1.5rem;
}

.form-label-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-label-custom i {
  color: #28a745;
  font-size: 1.1rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
  z-index: 1;
}

.form-control-custom {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  font-family: inherit;
}

.form-control-custom:focus {
  outline: none;
  border-color: #28a745;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control-custom::placeholder {
  color: #adb5bd;
}

/* Botón principal */
.btn-primary-custom {
  width: 100%;
  padding: 0.875rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 10px;
  color: white;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  cursor: pointer;
  font-family: inherit;
}

.btn-primary-custom:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-primary-custom:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.btn-primary-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enlaces de navegación */
.register-link,
.login-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.register-link p,
.login-link p {
  color: #6c757d;
  margin: 0;
  font-size: 0.95rem;
}

.link-custom {
  color: #28a745;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link-custom:hover {
  color: #218838;
  text-decoration: underline;
}

/* Spinner personalizado */
.spinner-border-sm {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.125em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm.me-2 {
  margin-right: 0.5rem !important;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Estados y validaciones */
.form-control-custom.is-invalid {
  border-color: #dc3545;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.validation-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.validation-message i {
  font-size: 1rem;
}

.validation-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #28a745;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.validation-success i {
  font-size: 1rem;
}

.alert-success-custom {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 991px) {
  .login-container,
  .signup-container {
    padding: 1.5rem 1rem;
  }
  
  .welcome-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .login-form-card,
  .signup-form-card {
    padding: 2rem 1.5rem;
  }
  
  .form-title {
    font-size: 1.75rem;
  }

  .welcome-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .welcome-cta__message {
    font-size: 1rem;
  }

  .welcome-cta__button {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .welcome-card {
    padding: 1.5rem;
  }
  
  .login-form-card,
  .signup-form-card {
    padding: 1.5rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
  
  .logo-wrapper i {
    font-size: 3rem;
  }

  .welcome-cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .welcome-cta__message {
    font-size: 0.95rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .welcome-cta__submessage {
    font-size: 0.85rem;
  }

  .welcome-cta__button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
}

/* ========================= */
/* Home dashboard styles     */
/* ========================= */
.home-body {
  background: #f5f7fa;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #17a664;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.topbar__brand i {
  font-size: 1.3rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar__btn--active {
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

.topbar__btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}

.home-layout {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.75rem;
}

.panel {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  padding: 1.15rem 1.1rem;
  border: 1px solid #e9ecef;
}

.panel--list {
  min-height: 480px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel__header--detail {
  align-items: flex-start;
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #198754;
  font-size: 1rem;
  margin: 0;
}

.panel__title-lg {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f5132;
}

.panel__subtitle {
  margin: 0;
  color: #198754;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.panel__header-actions {
  display: flex;
  gap: 0.75rem;
}

.panel__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

.panel__search input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 0.95rem;
  color: #495057;
}

.ticket-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid #d1e7dd;
  border-radius: 12px;
  background: #e8f7ef;
  color: #0f5132;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticket-card:hover {
  box-shadow: 0 6px 18px rgba(23,166,100,0.16);
  transform: translateY(-1px);
}

.ticket-card__icon i {
  font-size: 1.35rem;
  color: #0f5132;
}

.ticket-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticket-card__label {
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.7;
}

.ticket-card__number {
  font-weight: 700;
}

.ticket-card__arrow i {
  font-size: 1.2rem;
  color: #198754;
}

.panel--detail {
  padding: 1.25rem 1.35rem 1.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.detail-card {
  background: #f9fbfd;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.detail-card__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.detail-card__value {
  font-weight: 700;
  color: #0f5132;
}

.value-card {
  margin-top: 1rem;
  background: linear-gradient(135deg, #dff8ec 0%, #c7f2df 100%);
  border: 1px solid #bce3d1;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.value-card__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #198754;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.value-card__amount {
  margin-top: 0.35rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f5132;
}

.value-card__quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  background: rgba(15, 81, 50, 0.05);
  border: 1px dashed #bce3d1;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  color: #0f5132;
}

.value-card__quantity-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.value-card__quantity-value {
  font-weight: 800;
  font-size: 1.05rem;
}

/* ========================= */
/* Stock dashboard styles    */
/* ========================= */
.stock-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stock-kpi {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #f8fdfb;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.stock-kpi__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0f5132;
  font-size: 1.3rem;
  background: #e8f7ef;
}

.bg-green { background: #e8f7ef; }
.bg-amber { background: #fff4e5; color: #b26a00 !important; }
.bg-blue { background: #e7f1ff; color: #0d6efd !important; }
.bg-gray { background: #f1f3f5; color: #495057 !important; }

.stock-kpi__label {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.stock-kpi__value {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  color: #0f5132;
}

.stock-kpi__hint {
  font-size: 0.85rem;
  color: #6c757d;
}

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stock-list__item {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.stock-list__item--low {
  border-color: #ffe5d9;
  background: #fff8f3;
}

.stock-list__head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #0f5132;
}

.stock-list__qty {
  color: #198754;
}

.stock-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.35rem 0 0.45rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.stock-progress {
  width: 100%;
  height: 8px;
  background: #f1f3f5;
  border-radius: 999px;
  overflow: hidden;
}

.stock-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
  width: 0;
}

.stock-table {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

.stock-table__header,
.stock-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  align-items: center;
}

.stock-table__header {
  background: #f8f9fa;
  font-weight: 700;
  color: #495057;
}

.stock-table__row:nth-child(even) {
  background: #fcfdfc;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.stock-status--ok {
  background: #e8f7ef;
  color: #0f5132;
}

.stock-status--low {
  background: #fff4e5;
  color: #b26a00;
}

.btn-light-custom {
  border: 1px solid #d1e7dd;
  background: #f8fdfb;
  color: #0f5132;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-light-custom:hover {
  background: #e8f7ef;
  box-shadow: 0 4px 12px rgba(23,166,100,0.12);
}

.btn-danger-custom {
  border: 1px solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-custom:hover {
  background: #f1bfc4;
  box-shadow: 0 4px 12px rgba(132,32,41,0.16);
}

.btn.btn-primary-custom.btn-sm {
  width: auto;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .panel__header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ========================= */
/* Modal Crear Pedido        */
/* ========================= */
.order-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}

.order-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(40, 167, 69, 0.08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(32, 201, 151, 0.12), transparent 30%),
              rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1px);
}

.order-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  width: min(960px, 100%);
  overflow: hidden;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2.5rem);
}

.order-modal__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, #16a75f 0%, #1fc78c 100%);
  color: white;
  position: relative;
}

.order-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 2px solid #8b4513;
  background: #a0522d;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.order-modal__close:hover {
  background: #8b4513;
  border-color: #654321;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.order-modal__close:active {
  transform: scale(0.95);
  background: #654321;
}

.order-modal__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1.25rem;
}

.order-modal__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.order-modal__subtitle {
  margin: 0.1rem 0 0;
  opacity: 0.9;
}

.order-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fdfb 0%, #ffffff 40%);
}

.order-form {
  margin: 0;
}

.order-form__group {
  margin-bottom: 1rem;
}

.order-form__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #0f5132;
  margin-bottom: 0.35rem;
}

.order-form__label i {
  color: #28a745;
}

.order-form__input {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.order-form__input i {
  color: #6c757d;
}

.order-form__input select,
.order-form__input input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: #495057;
}

.order-form__input textarea {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: #495057;
  min-height: 96px;
  resize: vertical;
  padding: 0;
}

.order-form__input .order-form__unit {
  width: auto;
  flex: 0 0 auto;
  min-width: 110px;
  background: transparent;
  border-left: 1px solid #e9ecef;
  padding-left: 0.5rem;
}

.order-form__input select:disabled {
  color: #adb5bd;
}

.order-form__prefix {
  font-weight: 700;
  color: #6c757d;
}

.order-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.order-form__btn-secondary {
  min-width: 140px;
}

.order-form__btn-primary {
  min-width: 160px;
}

@media (max-width: 768px) {
  .order-modal {
    align-items: stretch;
    padding: 1rem;
  }

  .order-modal__content {
    margin-top: 2rem;
  }

  .order-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* Botón flotante para crear pedido */
.btn-floating-order {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-floating-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
  background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

.btn-floating-order:active {
  transform: translateY(-1px);
}

.btn-floating-order i {
  font-size: 1.3rem;
}

.btn-floating-order span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btn-floating-order {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-floating-order span {
    display: none;
  }

  .btn-floating-order i {
    font-size: 1.5rem;
  }
}

/* Página de crear pedido */
.pedido-page {
  min-height: 100vh;
  background: #f5f7fa;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedido-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  padding: 2rem;
  border: 1px solid #e9ecef;
}

.pedido-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
}

.pedido-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pedido-header__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f5132;
}

.pedido-header__subtitle {
  margin: 0.25rem 0 0;
  color: #6c757d;
  font-size: 0.95rem;
}

.order-form--page {
  max-width: 100%;
}

.order-form--page .order-form__group {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .pedido-page {
    padding: 1rem;
  }

  .pedido-container {
    padding: 1.5rem;
  }

  .pedido-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .pedido-header__title {
    font-size: 1.5rem;
  }
}

