/* 1.12.3.C - Presentacion global del inventario fisico */
.cash-inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cash-inventory-toolbar-global {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
}

.cash-inventory-status {
  font-size: .78rem;
  font-weight: 600;
}

.cash-inventory-status.status-success { color: #198754; }
.cash-inventory-status.status-loading,
.cash-inventory-status.status-muted { color: #6c757d; }
.cash-inventory-status.status-error { color: #dc3545; }

.cash-inventory-info {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 5px 7px;
  border: 1px solid #dfe3e7;
  border-radius: 6px;
  background: #f8f9fa;
  color: #495057;
  font-size: .76rem;
  line-height: 1.15;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cash-inventory-info.is-disabled {
  display: none;
}

.cash-inventory-metric {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .75);
  white-space: nowrap;
}

.cash-inventory-metric-label { color: #6c757d; }
.cash-inventory-metric-value { color: #212529; font-weight: 700; }
.metric-entry { background: #d1e7dd; }
.metric-entry .cash-inventory-metric-value { color: #0f5132; }
.metric-output { background: #cfe2ff; }
.metric-output .cash-inventory-metric-value { color: #084298; }
.metric-remaining { background: #e2e3e5; }
.metric-requested { background: #f8d7da; }
.metric-requested .cash-inventory-metric-value { color: #842029; }
.metric-missing { background: #dc3545; color: #fff; }
.metric-missing .cash-inventory-metric-label,
.metric-missing .cash-inventory-metric-value { color: #fff; }

.cash-inventory-info.is-ok {
  border-color: #a3cfbb;
  background: #f0faf4;
}

.cash-inventory-info.is-zero {
  border-color: #ffda6a;
  background: #fff8db;
  box-shadow: 0 0 0 .12rem rgba(255, 193, 7, .12);
}

.cash-inventory-info.is-zero .metric-remaining { background: #ffc107; }

.cash-inventory-info.is-invalid {
  border-color: #ea868f;
  background: #fceced;
  box-shadow: 0 0 0 .12rem rgba(220, 53, 69, .12);
}

input.cash-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .18rem rgba(220, 53, 69, .18) !important;
}

@media (max-width: 767px) {
  .cash-inventory-toolbar {
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }
  .cash-inventory-info { align-items: flex-start; }
}

/* 1.12.4.B - detalle fisico bidireccional y resumen neto */
.cash-bidirectional-panel {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.cash-bidirectional-side {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 10px;
  height: 100%;
  background: #f8f9fa;
}

.cash-bidirectional-side.is-entry-side {
  border-color: #a3cfbb;
  background: #f0faf4;
}

.cash-bidirectional-side.is-output-side {
  border-color: #9ec5fe;
  background: #f2f7ff;
}

.cash-net-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
}

.cash-net-summary.cash-net-ok {
  border-color: #a3cfbb;
  background: #f0faf4;
}

.cash-net-summary.cash-net-error {
  border-color: #ea868f;
  background: #fceced;
}

.cash-net-summary-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.cash-net-summary-message {
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 600;
}

.cash-net-error .cash-net-summary-message { color: #842029; }
.cash-net-ok .cash-net-summary-message { color: #0f5132; }

@media (max-width: 767px) {
  .cash-bidirectional-side { padding: 8px; }
  .cash-net-summary-grid { align-items: flex-start; }
}
