.pm-batch { margin: 8px 0 14px; padding: 14px; border: 1px solid #cbd9e8; border-radius: 13px; background: #f8fbfe; color: #15304f; }
.pm-batch-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pm-batch-title h2 { margin: 0; color: #15304f; font-size: 1.2rem; }
.pm-batch-title p { margin: 4px 0 0; color: #5e7188; }
.pm-batch-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e5f2e9; color: #27633a; font-size: .78rem; font-weight: 700; }
.pm-batch-banner { margin: 9px 0; padding: 8px 10px; border-left: 3px solid #328456; background: #eef7f0; font-size: .9rem; }
.pm-batch-mode, .pm-batch-actions, .pm-batch-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.pm-batch button { min-height: 42px; padding: 8px 12px; border: 1px solid #cbd9e8; border-radius: 9px; background: #fff; color: #15304f; font: inherit; font-weight: 650; cursor: pointer; }
.pm-batch button[data-batch-mode][aria-pressed="true"], .pm-batch [data-batch-review], .pm-batch [data-batch-confirm], .pm-batch #workForm button[type="submit"] { background: #1557a0; border-color: #1557a0; color: #fff; }
.pm-batch label { display: grid; gap: 4px; min-width: 110px; margin: 0; font-size: .88rem; }
.pm-batch input:not([type=checkbox]), .pm-batch select { min-height: 42px; width: 100%; padding: 7px 9px; border: 1px solid #bdcbd9; border-radius: 8px; background: #fff; color: inherit; font: inherit; }
.pm-batch .pm-field-caption { display: flex; align-items: center; min-height: 17px; gap: 4px; line-height: 17px; }
.pm-batch-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 12px 0; }
.pm-batch-project-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: -3px 0 12px; }
.pm-batch-project-row[hidden] { display: none !important; }
.pm-batch #workForm { display: block !important; margin: 0; padding: 0; }
.pm-individual-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 9px; margin: 12px 0 0; }
body.pm-equipe-pilot-page .pm-individual-fields { align-items: start; }
body.pm-equipe-pilot-page .pm-individual-fields > label { align-self: start; grid-template-rows: minmax(40px, auto) auto auto; }
body.pm-equipe-pilot-page .pm-individual-fields > label .pm-field-caption { min-height: 40px; align-items: flex-end; line-height: 1.2; }
.pm-individual-fields > label:first-child { grid-column: span 2; }
.pm-individual-fields > label:nth-child(2) { grid-column: span 1; }
.pm-individual-fields > label:nth-child(3) { grid-column: span 3; }
.pm-individual-fields > button { grid-column: 4; justify-self: end; width: min(100%, 260px); min-height: 44px; }
.pm-individual-context select[disabled] { opacity: 1; color: #15304f; background: #f2f6fa; cursor: default; }
.pm-batch #workForm[hidden], .pm-batch [data-batch-workflow][hidden] { display: none !important; }
body.pm-equipe-pilot-page .pm-batch .pm-batch-context #workDate,
body.pm-equipe-pilot-page .pm-batch .pm-batch-context #workDays,
body.pm-equipe-pilot-page .pm-batch .pm-batch-context [data-batch-date],
body.pm-equipe-pilot-page .pm-batch .pm-batch-context [data-batch-days],
body.pm-equipe-pilot-page .pm-batch .pm-batch-context select { min-height: 42px !important; margin-top: 0 !important; line-height: normal; }
.pm-batch-tools { margin: 10px 0 6px; }
.pm-batch-tools label { flex: 0 1 190px; }
.pm-batch-tools label:nth-child(2) { flex: 1 1 220px; }
.pm-batch [data-batch-count] { position: sticky; top: 0; z-index: 1; margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: #eaf1f8; font-weight: 700; }
.pm-batch-rows { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid #d8e1ec; border-bottom: 1px solid #d8e1ec; }
 .pm-batch-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) minmax(150px, 190px); align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid #e2eaf2; }
.pm-batch-row:last-child { border-bottom: 0; }
.pm-batch-person { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; min-width: 0 !important; cursor: pointer; }
.pm-batch-person input { width: 20px; height: 20px; flex: 0 0 20px; }
.pm-batch-person span { display: grid; min-width: 0; }
.pm-batch-person strong { overflow-wrap: anywhere; }
.pm-batch-person small { color: #5e7188; }
.pm-batch-rate-label { font-size: .8rem !important; }
.pm-batch-rate-label input { min-height: 38px !important; }
.pm-batch-actions { justify-content: flex-end; margin-top: 10px; }
.pm-batch-review { margin-top: 12px; padding: 12px; border: 1px solid #cbd9e8; border-radius: 10px; background: white; }
.pm-batch-review h4 { margin: 0 0 8px; }
.pm-batch-review ul { max-height: 220px; overflow: auto; padding-left: 22px; }
.pm-batch-warning { padding: 8px; border-left: 3px solid #c7831b; background: #fff6e8; }
.pm-batch-receipt { margin-top: 10px; padding: 12px; border-radius: 9px; background: #eaf6ec; }
@media (max-width: 700px) {
  .pm-batch { padding: 11px; }
  .pm-batch-title { display: block; }
  .pm-batch-badge { display: inline-flex; margin-top: 7px; }
  .pm-batch-context { grid-template-columns: 1fr 1fr; }
  .pm-batch-context label:nth-child(3) { grid-column: 1 / -1; }
  .pm-individual-fields { grid-template-columns: 1fr 1fr; }
  .pm-individual-fields > label:first-child { grid-column: 1 / -1; }
  .pm-individual-fields > label:nth-child(3) { grid-column: 1 / -1; }
  .pm-individual-fields > button { grid-column: 1 / -1; width: 100%; }
  .pm-batch-project-row { grid-template-columns: 1fr; }
  .pm-batch-row { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 9px 4px; }
  .pm-batch-rate-label { margin-left: 29px !important; }
  .pm-batch-tools button { flex: 1 1 140px; }
  .pm-batch-actions > button { flex: 1 1 auto; }
}

/* Explicit dates only for the batch; individual form keeps its existing grid. */
.pm-batch-period-context { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pm-batch-dates { min-width:0; margin:0 0 12px; padding:10px; border:1px solid #cbd9e8; border-radius:9px; }
.pm-batch-dates legend { padding:0 5px; font-weight:700; }
.pm-batch [data-batch-date-options] { display:flex; flex-wrap:wrap; gap:7px; }
.pm-batch label.pm-batch-date-choice { display:flex; align-items:center; gap:6px; min-width:0; padding:6px 9px; border:1px solid #cbd9e8; border-radius:7px; background:#fff; }
.pm-batch-date-choice input { width:18px; height:18px; margin:0; }
.pm-batch-dates p { margin:5px 0 9px; }
@media(max-width:800px) { .pm-batch-period-context { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:440px) { .pm-batch-period-context { grid-template-columns:1fr; } }
