/* v146 - ajustes dashboard/notas/CxC */
body.route-dashboard-home .dashboard-page > .head{
  display:none!important;
}
body.route-dashboard-home .dashboard-page{
  padding-top:0!important;
}
body.route-dashboard-home .dashboard-page .pdv360-shortcuts{
  margin-top:0!important;
}
body.route-dashboard-home .dashboard-page .kpis{
  grid-template-columns:repeat(5,minmax(220px,1fr))!important;
  gap:14px!important;
}
body.route-dashboard-home .dashboard-page .kpi{
  min-height:102px!important;
  padding:14px 16px!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  column-gap:12px!important;
}
body.route-dashboard-home .dashboard-page .kpi small{
  display:block!important;
  max-width:none!important;
  font-size:11px!important;
  line-height:1.16!important;
  letter-spacing:.03em!important;
}
body.route-dashboard-home .dashboard-page .kpi b{
  font-size:20px!important;
}
body.route-dashboard-home .dashboard-page .grid.two{
  grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr)!important;
}
body.route-dashboard-home .dashboard-page .card{
  min-width:0!important;
}
body.route-dashboard-home .dashboard-page .card h2{
  font-size:16px!important;
}

/* estilo botón editar nota */
.pdv-edit-note-btn{
  color:#1d4ed8!important;
  border-color:#dbe7ff!important;
  background:#eff6ff!important;
}
.pdv-edit-note-btn:hover{
  background:#dbeafe!important;
}

/* modal edición nota */
.pdv-note-modal-overlay{
  position:fixed; inset:0; z-index:3000; background:rgba(15,23,42,.48);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.pdv-note-modal{
  width:min(1040px, calc(100vw - 28px)); max-height:92vh; overflow:hidden;
  border-radius:22px; background:#fff; border:1px solid #dbe3f1;
  box-shadow:0 30px 80px rgba(15,23,42,.24); display:flex; flex-direction:column;
}
.pdv-note-modal-header,.pdv-note-modal-footer{
  padding:14px 18px; border-bottom:1px solid #e8edf6; background:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.pdv-note-modal-footer{border-top:1px solid #e8edf6; border-bottom:0}
.pdv-note-modal-header h3{margin:0; font-size:20px; line-height:1.1; color:#0f172a}
.pdv-note-modal-body{padding:16px 18px 18px; overflow:auto; background:#fbfcff}
.pdv-note-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px}
.pdv-note-field{display:flex; flex-direction:column; gap:6px}
.pdv-note-field label{font-size:12px; font-weight:800; color:#475569}
.pdv-note-field input,.pdv-note-field select,.pdv-note-field textarea{
  min-height:42px; border-radius:12px; border:1px solid #d5dfed; background:#fff; padding:10px 12px;
}
.pdv-note-field textarea{min-height:76px; resize:vertical}
.pdv-note-field.full{grid-column:1 / -1}
.pdv-note-items-card{background:#fff; border:1px solid #e1e8f3; border-radius:18px; overflow:hidden}
.pdv-note-items-toolbar{padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e8edf6}
.pdv-note-items-table{width:100%; border-collapse:collapse}
.pdv-note-items-table th,.pdv-note-items-table td{padding:10px 10px; border-bottom:1px solid #eef2f7; text-align:left; vertical-align:top}
.pdv-note-items-table th{font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:#64748b; background:#f8fafc}
.pdv-note-items-table td input{width:100%; min-height:38px; border-radius:10px; border:1px solid #d5dfed; padding:8px 10px}
.pdv-note-items-table td .mini-btn{min-height:34px; border-radius:10px; border:1px solid #fecaca; background:#fff1f2; color:#b91c1c; padding:0 10px; font-weight:700}
.pdv-note-modal .btn{min-height:40px; border-radius:12px; padding:0 14px}
.pdv-note-total{font-size:13px; font-weight:800; color:#334155}
.pdv-note-modal-close{border:1px solid #dbe3f1; background:#fff; color:#475569; width:36px; height:36px; border-radius:11px; font-size:18px}
@media (max-width: 900px){
  .pdv-note-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  body.route-dashboard-home .dashboard-page .kpis{grid-template-columns:1fr!important}
  body.route-dashboard-home .dashboard-page .grid.two{grid-template-columns:1fr!important}
  .pdv-note-grid{grid-template-columns:1fr}
  .pdv-note-modal{width:100%; max-height:94vh}
  .pdv-note-items-table{min-width:760px}
}
