/* saas_staffpay.css — καρτέλα «Προσωπικό» των Οικονομικών (saas_staffpay_page.js / saas_staffpay_guide.js). Κλάσεις με πρόθεμα cfxsp-.
   Ύφος docs/design/fason: λευκές κάρτες (#FFF, περίγραμμα #E2E8F0, γωνίες 12px) πάνω στο φόντο της επιχείρησης (κανένα σταθερό φόντο σελίδας),
   κουμπιά 10px, chips 999px, μπλε #1D6FD8, πράσινο #16A34A, στόχοι αφής ≥ 44px. Ίδιο ύφος σε υπολογιστή και κινητό. */

.cfxsp-p { font-size: .9rem; color: #64748B; margin: 6px 0; line-height: 1.45; }
.cfxsp-m, .cfxsp-only-m { display: none; }
.cfxsp-sub { display: block; font-size: .82rem; color: #64748B; font-weight: 400; margin-top: 2px; }
.cfxsp-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Γραμμή πάνω από το γαλάζιο πλαίσιο: αριστερά η κατάσταση, δεξιά οι σύνδεσμοι (ο μήνας αλλάζει από τη σελίδα Οικονομικά) */
.cfxsp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.cfxsp-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #EFF6FF; color: #1D6FD8; border: 1px solid #BFDBFE; white-space: nowrap; }
.cfxsp-chip-grey { background: #F8FAFC; color: #64748B; border-color: #E2E8F0; }
.cfxsp-chip-green { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.cfxsp-chip-warn { background: #FEF9C3; color: #854D0E; border-color: #FDE68A; }
.cfxsp-links { display: flex; gap: 14px; flex-wrap: wrap; }
.cfxsp-link { min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: #1D6FD8; font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: underline; }
.cfxsp-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #0F172A; border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }

/* Τρεις κάρτες */
.cfxsp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.cfxsp-card { margin-bottom: 0; min-width: 0; }
.cfxsp-card-main { border: 2px solid #1D6FD8; }
.cfxsp-card-l { font-size: .8rem; font-weight: 700; color: #64748B; }
.cfxsp-card-v { font-size: 1.35rem; font-weight: 800; margin-top: 2px; overflow-wrap: anywhere; }
.cfxsp-card-s { font-size: .8rem; color: #64748B; margin-top: 4px; }

/* Πίνακας μήνα */
.cfxsp-thead, .cfxsp-trow { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.cfxsp-thead { font-size: .78rem; font-weight: 700; color: #64748B; border-bottom: 1px solid #E2E8F0; padding: 8px 4px; margin-top: 8px; }
.cfxsp-trow { width: 100%; min-height: 56px; padding: 8px 4px; background: transparent; border: 0; border-bottom: 1px solid #E2E8F0; text-align: left; color: #0F172A; font: inherit; }
.cfxsp-btn { cursor: pointer; border-radius: 10px; }
.cfxsp-btn:hover, .cfxsp-open { background: #F8FAFC; }
.cfxsp-name { min-width: 0; }
.cfxsp-nm { font-weight: 700; margin-right: 6px; overflow-wrap: anywhere; }
.cfxsp-total { border-bottom: 0; border-top: 2px solid #E2E8F0; font-weight: 800; }
.cfxsp-missing { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr); background: #FFFBEB; border-radius: 10px; margin-top: 4px; }
.cfxsp-miss-act { text-align: right; }
.cfxsp-fill { min-width: 120px; }

/* Ανοιχτή γραμμή */
.cfxsp-detail { padding: 8px 8px 14px; background: #F8FAFC; border-radius: 0 0 10px 10px; border-bottom: 1px solid #E2E8F0; }
.cfxsp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfxsp-col-t { font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.cfxsp-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #E2E8F0; }
.cfxsp-line-l { min-width: 0; font-size: .9rem; }
.cfxsp-line-v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfxsp-warn { margin-top: 10px; background: #FEF9C3; border: 1px solid #FDE68A; color: #854D0E; border-radius: 10px; padding: 8px 10px; font-size: .85rem; }
.cfxsp-foot { font-size: .85rem; color: #64748B; margin: 4px 2px 12px; }

/* Παράθυρα (Πώς δουλεύει, ερώτηση αλλαγών) */
.cfxsp-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cfxsp-sheet { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 16px; }
.cfxsp-sheet-sm { max-width: 460px; }
.cfxsp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cfxsp-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; color: #64748B; cursor: pointer; }

/* Οδηγός */
.cfxsp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.cfxsp-step { margin-bottom: 0; display: flex; align-items: flex-start; gap: 12px; }
.cfxsp-step-body { flex: 1; min-width: 0; }
.cfxsp-stepnum { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; }
.cfxsp-stepnum-1 { background: #DCFCE7; color: #166534; }
.cfxsp-stepnum-2 { background: #1D6FD8; color: #fff; }
.cfxsp-stepnum-3 { background: #F1F5F9; color: #526079; }
.cfxsp-step-green { border-color: #BBF7D0; }
.cfxsp-step-blue { border: 2px solid #1D6FD8; }
.cfxsp-step-grey { background: #F8FAFC; }
.cfxsp-ol { margin: 6px 0 6px 20px; padding: 0; font-weight: 700; }
.cfxsp-form { margin-top: 12px; }
.cfxsp-frow { display: grid; gap: 10px; align-items: start; padding: 12px 6px; border-top: 1px solid #E2E8F0; border-radius: 10px; }
.cfxsp-cell { min-width: 0; }
.cfxsp-cell-l { display: block; font-size: .78rem; font-weight: 700; color: #64748B; margin-bottom: 4px; }
.cfxsp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cfxsp-opt { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #E2E8F0; background: #fff; color: #0F172A; font: inherit; font-weight: 700; cursor: pointer; }
.cfxsp-opt-on { background: #1D6FD8; border-color: #1D6FD8; color: #fff; }
.cfxsp-input { min-height: 44px; width: 100%; max-width: 160px; padding: 0 10px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; color: #0F172A; font: inherit; }
.cfxsp-input-warn { border: 2px solid #EA580C; }
.cfxsp-datelab { display: block; margin-top: 8px; font-size: .78rem; font-weight: 700; color: #64748B; }
.cfxsp-date { margin-top: 4px; max-width: 200px; }
.cfxsp-opt:disabled { opacity: .5; cursor: default; }
.cfxsp-input:disabled { background: #F1F5F9; color: #64748B; }
.cfxsp-off { background: #F1F5F9; }
.cfxsp-bad { background: #FEF2F2; outline: 1px solid #FCA5A5; }
.cfxsp-yellow { background: #FEFCE8; }
.cfxsp-msg { color: #B91C1C; font-weight: 700; font-size: .9rem; margin: 8px 2px; min-height: 1.2em; }
.cfxsp-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.cfxsp-btnrow .cfxfin-btn { min-height: 44px; }

/* Πάνω από 600px, κάθε πλάτος: η γραμμή εργαζομένου είναι κατακόρυφη. Το όνομα σε όλο το πλάτος, από κάτω οι τρεις ομάδες σε μία σειρά που κατεβαίνει ολόκληρη όταν δεν χωρά. Η κάρτα δεν ξεχειλίζει. */
@media (min-width: 601px) {
  .cfxsp-frow { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
  .cfxsp-frow .cfxsp-name { flex: 0 0 100%; min-width: 0; word-break: normal; overflow-wrap: break-word; }
  .cfxsp-frow .cfxsp-nm, .cfxsp-frow .cfxsp-sub { word-break: normal; overflow-wrap: break-word; }
  .cfxsp-frow .cfxsp-cell { flex: 0 0 auto; }
  .cfxsp-frow .cfxsp-seg { display: grid; grid-template-columns: auto auto; gap: 8px; }
  .cfxsp-frow .cfxsp-opt { min-height: 44px; padding: 0 14px; white-space: nowrap; font-size: 13px; }
  .cfxsp-frow .cfxsp-input[type="number"] { width: 90px; max-width: 90px; }
  .cfxsp-frow .cfxsp-date { width: 100%; max-width: none; }
}

/* Κινητό: ένας εργαζόμενος ανά οθόνη */
.cfxsp-bars { display: flex; gap: 4px; margin-top: 8px; }
.cfxsp-bar { flex: 1; height: 6px; border-radius: 999px; background: #E2E8F0; }
.cfxsp-bar-on { background: #1D6FD8; }
.cfxsp-mfield { margin-top: 14px; }
.cfxsp-help { font-size: .85rem; color: #64748B; margin: 6px 0 0; }

@media (max-width: 600px) {
  .cfxsp-frow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, 1.8fr); }
  .cfxsp-top { flex-direction: column; align-items: flex-start; }
  .cfxsp-d, .cfxsp-hide-m, .cfxsp-thead { display: none; }
  .cfxsp-m { display: block; }
  .cfxsp-only-m { display: block; }
  .cfxsp-cards { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 4px 14px; }
  .cfxsp-cards .cfxsp-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 10px 0; border-top: 1px solid #E2E8F0; }
  .cfxsp-cards .cfxsp-card-main { order: -1; border-top: 0; }
  .cfxsp-cards .cfxsp-card-main .cfxsp-card-v { font-size: 1.7rem; }
  .cfxsp-trow { grid-template-columns: minmax(0, 1fr) auto; }
  .cfxsp-missing { grid-template-columns: minmax(0, 1fr); }
  .cfxsp-miss-act { text-align: left; }
  .cfxsp-cols { grid-template-columns: 1fr; }
  .cfxsp-steps { grid-template-columns: 1fr; }
  .cfxsp-overlay { align-items: flex-end; padding: 0; }
  .cfxsp-sheet { max-width: none; border-radius: 12px 12px 0 0; }
  .cfxsp-mcard .cfxsp-input { max-width: none; }
}

/* Από πότε μετρά η μισθοδοσία στο Κοστολόγιο */
.cfxsp-start { font-size: .85rem; color: #64748B; margin: -4px 2px 12px; }
