.period-picker{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.period-picker h2{margin:0 0 8px}.period-picker p{margin:0;font-size:12px}.auto-period{flex-direction:row;align-items:center;font-size:12px;justify-content:flex-end}.auto-period input{accent-color:#5a963e;width:18px;height:18px}.period-selects{display:flex;gap:12px;align-items:flex-end;grid-column:1/-1}.period-selects label{min-width:160px}.period-selects select{background:#f7faf5}.period-selects button{font-size:11px;background:#eff5e9;min-height:42px}.period-picker small{grid-column:1/-1;color:#829075;font-size:11px;line-height:1.6}.upload-card small{font-size:11px;color:#78916d;line-height:1.8}.reason-button{background:#eff7e8;color:#507d39;font-size:11px;padding:7px 11px;border:1px solid #d9e9cb}.saved-reason{display:block;max-width:320px;white-space:normal;line-height:1.6;color:#517840}#reasonStatus{font-size:12px}.period-selects select:disabled{opacity:.6}@media(max-width:750px){.period-picker{grid-template-columns:1fr}.auto-period{justify-content:flex-start}.period-selects{flex-wrap:wrap}.period-selects label{min-width:120px;flex:1}}

/* Central de Upload & Modal Annotation Styles */
.upload-center-heading { margin-bottom: 22px; }
.upload-center-heading h2 { font-size: 24px; color: #1a3828; margin: 4px 0 6px; }
.upload-center-heading p { color: #5d7062; font-size: 14px; margin: 0; }
.upload-batch-zone { border: 2px dashed #9bc29f; background: #f7faf5; border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 24px; transition: all .2s; cursor: pointer; }
.upload-batch-zone:hover, .upload-batch-zone.dragover { border-color: #2e6945; background: #eef6ec; }
.upload-batch-zone .batch-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.upload-batch-zone h3 { margin: 0 0 6px; font-size: 16px; color: #204530; }
.upload-batch-zone p { margin: 0 0 12px; font-size: 13px; color: #6a7c6f; }
.upload-batch-zone button { background: #285d3d; color: white; font-weight: 600; padding: 10px 20px; border-radius: 8px; }

.upload-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-top: 20px; }
.upload-card-full { background: white; border: 1px solid #dce4d9; border-radius: 14px; padding: 20px; box-shadow: 0 4px 14px rgba(24,59,42,.03); display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: transform .15s, box-shadow .15s; }
.upload-card-full:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24,59,42,.08); }
.upload-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.upload-card-header .card-title-group h3 { margin: 0 0 4px; font-size: 16px; color: #1a3828; }
.upload-card-header .card-erp-tag { font-size: 11px; font-family: monospace; color: #637767; background: #f0f4ee; padding: 2px 7px; border-radius: 5px; display: inline-block; }
.upload-card-desc { font-size: 12.5px; color: #556758; line-height: 1.5; margin: 0 0 14px; flex-grow: 1; }
.upload-source-status { background: #f7faf6; border: 1px solid #e5ede3; border-radius: 9px; padding: 10px 12px; font-size: 12px; margin-bottom: 14px; }
.upload-source-status .status-line { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.upload-source-status .status-details { font-size: 11px; color: #687a6b; line-height: 1.4; }
.upload-file-action { display: flex; align-items: center; gap: 10px; }
.upload-file-action label.btn-upload { background: #285d3d; color: white; border-radius: 8px; padding: 9px 16px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; transition: background .15s; }
.upload-file-action label.btn-upload:hover { background: #1e492f; }
.upload-file-action input[type="file"] { display: none; }
.upload-ext-tag { font-size: 11px; color: #798b7d; }

.modal-annotation-box { margin-top: 24px; background: #f4f8f3; border: 1px solid #d4e4d1; border-radius: 12px; padding: 18px 20px; }
.modal-annotation-box h3 { margin: 0 0 6px; font-size: 15px; color: #1a3c2b; }
.modal-annotation-box p { margin: 0 0 14px; font-size: 12px; color: #556c5c; }
.annotation-grid { display: grid; grid-template-columns: 200px 1fr; gap: 14px; margin-bottom: 14px; }
@media(max-width: 600px) { .annotation-grid { grid-template-columns: 1fr; } }
.annotation-grid label { font-size: 12px; font-weight: 600; color: #354e3f; display: flex; flex-direction: column; gap: 6px; }
.annotation-grid select, .annotation-grid textarea { border: 1px solid #c2d6be; border-radius: 8px; padding: 10px; font-family: inherit; font-size: 13px; background: white; }
.annotation-footer { display: flex; align-items: center; gap: 14px; }
.annotation-footer button { padding: 10px 18px; font-weight: 600; font-size: 13px; }
#saveAnnotationStatus { font-size: 13px; color: #2e6945; font-weight: 500; }

/* BANNER DE SINCRONIZAÇÃO E CARREGAMENTO PROGRESSIVO */
.sync-banner {
  background: #f0f7f3;
  border: 1px solid #c7dfd0;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0 16px;
  box-shadow: 0 4px 14px rgba(18, 42, 28, 0.05);
  transition: all 0.3s ease;
}
.sync-banner.is-done {
  background: #edf7ef;
  border-color: #82cb99;
}
.sync-banner.is-error {
  background: #fdf2f2;
  border-color: #f8b4b4;
}
.sync-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.sync-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sync-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.sync-indicator.spinning {
  border: 3px solid #d1e5d7;
  border-top-color: #2563eb;
  animation: sync-spin 0.8s linear infinite;
}
.sync-indicator.done {
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}
.sync-indicator.error {
  background: #dc2626;
  color: #fff;
}
@keyframes sync-spin {
  to { transform: rotate(360deg); }
}
.sync-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sync-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #12301f;
}
.sync-banner.is-done .sync-title {
  color: #15803d;
}
.sync-banner.is-error .sync-title {
  color: #b91c1c;
}
.sync-sub {
  font-size: 11.5px;
  color: #557260;
}
.sync-banner.is-done .sync-sub {
  color: #166534;
}
.sync-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sync-pct {
  font-size: 14px;
  font-weight: 800;
  color: #1e3d29;
}
.sync-banner.is-done .sync-pct {
  color: #15803d;
}
.sync-close-btn {
  background: none;
  border: 0;
  color: #6b7280;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.sync-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sync-track {
  width: 100%;
  height: 8px;
  background: #dae8de;
  border-radius: 6px;
  overflow: hidden;
}
.sync-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 6px;
  transition: width 0.4s ease, background 0.3s;
}
.sync-fill.done {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}
.sync-fill.error {
  background: #ef4444;
}

