/* ===== Αγρο Μισθωτήρια – Frontend App ===== */
:root { --agf-green:#4d7c2f; --agf-green-d:#3f6323; --agf-bg:#f4f7f0; }
* { box-sizing:border-box; }
body.agro-front { margin:0; font-family:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; color:#1f2937; background:var(--agf-bg); }

.af-head { background:linear-gradient(135deg,#5a8f37,#3f6323); color:#fff; }
.af-head-in { max-width:1080px; margin:0 auto; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.af-brand { display:flex; align-items:center; gap:12px; }
.af-avatar { width:52px; height:52px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,255,255,.7); background:#eef; display:inline-flex; align-items:center; justify-content:center; font-size:1.625rem; }
.af-title { font-size:1.125rem; font-weight:700; line-height:1.1; }
.af-sub { font-size:0.8125rem; opacity:.9; }
.af-nav { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
.af-nav a, .af-nav summary { color:#fff; text-decoration:none; font-size:0.875rem; padding:7px 11px; border-radius:8px; cursor:pointer; list-style:none; display:inline-flex; align-items:center; gap:6px; }
.af-nav summary::-webkit-details-marker { display:none; }
.af-nav a:hover, .af-nav summary:hover { background:rgba(255,255,255,.16); }
.af-nav .is-active { background:rgba(255,255,255,.24); font-weight:700; }
.af-nav-ico { font-size:0.9375rem; line-height:1; }
.af-nav-more { position:relative; }
.af-nav-more-list { position:absolute; right:0; top:calc(100% + 4px); min-width:210px; background:#fff; border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,.22); padding:6px; z-index:80; display:flex; flex-direction:column; }
.af-nav-more-list a, .af-nav-more-list button { color:#1f2937; background:none; border:0; font:inherit; font-size:0.9375rem; text-align:left; padding:12px 14px; border-radius:8px; cursor:pointer; display:block; text-decoration:none; width:100%; }
.af-nav-more-list a:hover, .af-nav-more-list button:hover { background:#eef3e8; }

.af-main { max-width:1080px; margin:18px auto; padding:0 18px; }
.af-panel { background:#fff; border:1px solid #e2e8dd; border-radius:12px; padding:16px 18px; margin-bottom:16px; }
.af-panel h2 { margin:0 0 12px; color:var(--agf-green-d); font-size:1.0625rem; }

.af-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.af-card { background:#fff; border:1px solid #e2e8dd; border-radius:12px; padding:16px; text-align:center; }
.af-card-warn { background:#fff8ec; border-color:#f0d9a6; }
.af-charts-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
@media (max-width:820px){ .af-charts-grid { grid-template-columns:1fr; } }
.af-num { font-size:1.625rem; font-weight:700; color:var(--agf-green-d); }
.af-lbl { font-size:0.75rem; color:#6b7280; margin-top:2px; }

.af-table { width:100%; border-collapse:collapse; }
.af-table th, .af-table td { text-align:left; padding:9px 10px; border-bottom:1px solid #eef1ea; font-size:0.875rem; }
.af-table th { color:#374151; background:#f5f8f0; }
.af-table a { color:var(--agf-green-d); text-decoration:none; }

.af-pay { display:inline-block; padding:2px 9px; border-radius:20px; font-size:0.75rem; font-weight:600; }
/* Μπάρα επιλογής έτους — κύριο εργαλείο, εμφανές */
.af-yearbar{background:rgba(0,0,0,.06);border-bottom:1px solid rgba(0,0,0,.08);}
.af-yearbar-in{max-width:1180px;margin:0 auto;padding:10px 18px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.af-yearbar-label{font-weight:700;margin-right:4px;}
.af-yearchip{display:inline-block;padding:6px 16px;border-radius:20px;background:#fff;border:1px solid #cdd5c6;color:#333;text-decoration:none;font-weight:600;font-size:0.875rem;transition:all .15s;}
.af-yearchip:hover{border-color:var(--agf-green);}
.af-yearchip.is-active{background:var(--agf-green);color:var(--agf-on,#fff);border-color:var(--agf-green);box-shadow:0 2px 6px rgba(0,0,0,.15);}
.af-yearselect{padding:7px 14px;border-radius:20px;background:#fff;border:1px solid #cdd5c6;color:#333;font-weight:700;font-size:0.875rem;cursor:pointer;max-width:220px;}
.af-yearselect:hover,.af-yearselect:focus{border-color:var(--agf-green);}

/* Ετικέτα έτους δίπλα στον τίτλο «Μισθωτήρια». */
.af-year-badge{display:inline-block;margin-left:8px;padding:3px 12px;border-radius:14px;background:var(--agf-green);color:var(--agf-on,#fff);font-size:0.8125rem;font-weight:700;vertical-align:middle;}
.af-year-badge-all{background:#8a8f86;}

/* Κυλιόμενος πίνακας μισθωτηρίων: όλα τα αποτελέσματα σε ΜΙΑ λίστα, χωρίς σελίδα
   «Επόμενο» — κύλιση με φαρδιά, εύκολη μπάρα στα δεξιά (καλύτερο και σε κινητό/tablet).
   Το overflow-x εμποδίζει επίσης τον πίνακα να «ξεχειλίζει» έξω από το λευκό πλαίσιο
   όταν οι στήλες δεν χωράνε (π.χ. το κουτάκι πληρωμής στο τέλος της γραμμής). */
.af-table-scroll{max-height:70vh;overflow-y:auto;overflow-x:auto;border:1px solid #eef1ea;border-radius:8px;}
.af-table-scroll .af-table{margin:0;}
.af-table-scroll thead th{position:sticky;top:0;z-index:1;}
.af-table-scroll::-webkit-scrollbar{width:16px;height:16px;}
.af-table-scroll::-webkit-scrollbar-track{background:#f0f3ec;border-radius:8px;}
.af-table-scroll::-webkit-scrollbar-thumb{background:#a8bb9a;border-radius:8px;border:3px solid #f0f3ec;}
.af-table-scroll::-webkit-scrollbar-thumb:hover{background:var(--agf-green);}
.af-table-scroll{scrollbar-width:auto;scrollbar-color:#a8bb9a #f0f3ec;}
/* Εργαλείο στατιστικών ερωτήσεων */
.af-qa-answer{margin-top:14px;padding:16px 18px;border-radius:12px;background:linear-gradient(135deg,var(--agf-green),var(--agf-green-d));color:#fff;}
.af-qa-q{font-size:0.875rem;opacity:.9;margin-bottom:4px;}
.af-qa-a{font-size:1.875rem;font-weight:800;line-height:1.1;}
.af-qa-note{font-size:0.75rem;opacity:.85;margin-top:6px;}
.af-import-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.af-import-cta .agro-note{display:block;}
.af-trial{background:#eef4fb;padding:11px 16px;border-radius:10px;margin-bottom:16px;font-size:0.875rem;}
.af-trial-expired{background:#fdecea;}
/* Σύγκριση ετών */
.af-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;}
.af-compare-block h3{font-size:0.9375rem;margin:0 0 10px;}
.af-bar-row{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:0.8125rem;}
.af-bar-year{width:44px;font-weight:600;flex-shrink:0;}
.af-bar-track{flex:1;background:rgba(0,0,0,.07);border-radius:6px;height:16px;overflow:hidden;}
.af-bar-fill{display:block;height:100%;border-radius:6px;transition:width .4s;}
.af-bar-val{width:96px;text-align:right;flex-shrink:0;font-variant-numeric:tabular-nums;}
@media (max-width:520px){.af-bar-val{width:78px;font-size:0.75rem;}}
select.af-pay { border:1px solid #e2e8dd; cursor:pointer; padding:3px 6px; }
.af-quickpay { margin:0; display:inline; }
.af-pay-ekkremei { background:#fdecea; color:#c0392b; }
.af-pay-plironei { background:#e7f6ec; color:#1e8e4e; }
.af-pay-meriki { background:#fff4e0; color:#b9770a; }

/* Χρωματισμός κελιού «Μίσθωμα Ετήσιο» ανάλογα με την κατάσταση πληρωμής. */
.af-rent { display:inline-block; padding:3px 10px; border-radius:8px; font-weight:700; }
.af-rent-ekkremei { background:#fdecea; color:#a32b1c; }
.af-rent-plironei { background:#e7f6ec; color:#136c34; }
.af-rent-meriki { background:#fff4e0; color:#8a5a00; }

/* Χρωματισμός ΟΛΟΚΛΗΡΗΣ γραμμής ανάλογα με την κατάσταση πληρωμής — πιο έντονα
   χρώματα ώστε να φαίνονται καθαρά με την πρώτη ματιά. */
.af-table tr.af-row-pay-ekkremei { background:#fbdad6; }
.af-table tr.af-row-pay-meriki { background:#ffedcf; }
.af-table tr.af-row-pay-plironei { background:#e3f5e9; }
.af-table tr.af-row-pay-ekkremei td,
.af-table tr.af-row-pay-meriki td,
.af-table tr.af-row-pay-plironei td { border-bottom-color:rgba(0,0,0,.06); }

/* Αναφορά μισθωτηρίων: πλατύς πίνακας με οριζόντια κύλιση και «κολλημένη» κεφαλίδα. */
.af-report-wrap { overflow-x:auto; max-height:70vh; overflow-y:auto; border:1px solid #e2e8dd; border-radius:8px; margin-top:10px; }
.af-report-wrap table { margin:0; font-size:0.8125rem; white-space:nowrap; }
.af-report-wrap thead th { position:sticky; top:0; background:#4d7c2f; color:#fff; z-index:2; }
.af-report-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:12px 0 4px; }

/* Σύνολα αναφοράς ανά έτος */
.af-report-totals { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.af-rt { background:#f4f8f0; border:1px solid #dbe4d4; border-radius:10px; padding:10px 14px; min-width:120px; }
.af-rt-n { display:block; font-size:1.1875rem; font-weight:800; color:#2e6b2e; line-height:1.2; }
.af-rt-l { display:block; font-size:0.7188rem; color:#6b7280; margin-top:2px; }
.af-rt-ok { background:#e7f6ec; border-color:#bfe3cd; }
.af-rt-ok .af-rt-n { color:#136c34; }
.af-rt-due { background:#fdecea; border-color:#f3c9c3; }
.af-rt-due .af-rt-n { color:#a32b1c; }
.af-open { font-weight:700; text-decoration:none; }
.af-report-wrap tbody tr:hover { background:#f4f8f0; }
.af-paysum { margin-top:10px; padding:11px 14px; background:#f6f9f4; border-left:4px solid #4d7c2f; border-radius:6px; font-size:0.875rem; }
.af-mailform { display:flex; gap:6px; align-items:center; margin:0; }
.af-mailform input[type=email] { padding:8px 12px; border:1px solid #cdd5c6; border-radius:8px; min-width:220px; font:inherit; }
@media (max-width:600px){ .af-mailform { width:100%; } .af-mailform input[type=email] { flex:1; min-width:0; } }

.af-pager { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:14px; }
.af-pager a { color:var(--agf-green-d); text-decoration:none; font-weight:600; }
.af-pager span { color:#6b7280; font-size:0.8125rem; }

.af-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.af-filters input[type=search], .af-filters select { padding:7px 9px; border:1px solid #cdd5c6; border-radius:8px; }
.af-filters button { background:var(--agf-green); color:var(--agf-on,#fff); border:0; padding:7px 16px; border-radius:8px; cursor:pointer; }
.af-clear { align-self:center; color:#6b7280; text-decoration:none; font-size:0.8125rem; }
.af-bulkbar { display:flex; align-items:center; gap:10px; margin:0 0 10px; padding:8px 12px; background:#f5f8f0; border:1px solid #e2e8dd; border-radius:8px; flex-wrap:wrap; }
.af-bulkbar select { padding:6px 10px; border-radius:6px; border:1px solid #cdd5c6; }
.af-quickbar { display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; font-size:0.8125rem; }
.af-quickchip { padding:5px 12px; border-radius:14px; font-weight:600; }
.af-quickchip-warn { background:#fff4e0; color:#8a5a00; }
.af-fab { display:none; }
@media (max-width:768px){
	.af-fab {
		display:flex; align-items:center; justify-content:center;
		position:fixed; right:18px; bottom:22px; z-index:50;
		width:56px; height:56px; border-radius:50%;
		background:var(--agf-green); color:var(--agf-on,#fff); font-size:1.75rem; font-weight:700;
		text-decoration:none; box-shadow:0 4px 14px rgba(0,0,0,.25);
	}
}

#af-map { height:340px; border-radius:10px; overflow:hidden; }

/* Φόρμες frontend */
.af-form h2 { margin:18px 0 8px; }
.af-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px 18px; }
.af-field { display:flex; flex-direction:column; margin:8px 0; }
.af-field label { font-weight:600; font-size:0.8125rem; color:#374151; margin-bottom:4px; }
.af-field input, .af-field select, .af-field textarea { padding:8px 10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; }
.af-select-search { display:block; width:100%; margin-bottom:4px; padding:7px 10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; background:#fffdf5; }
.af-btn { display:inline-block; background:#eef3e8; color:var(--agf-green-d); border:1px solid #cdd5c6; padding:9px 16px; border-radius:8px; text-decoration:none; font-weight:600; cursor:pointer; font-size:0.875rem; }
.af-btn-primary { background:var(--agf-green); color:var(--agf-on,#fff); border-color:var(--agf-green); }
.af-btn-danger { background:#c0392b; color:#fff; border-color:#a93226; }
.af-btn-dis { opacity:.45; cursor:default; }
.af-navrow { display:flex; justify-content:space-between; }
.af-actionsrow { margin-top:14px; }

/* Γραμμές πρόσθετων επαφών ιδιοκτήτη (frontend φόρμα) */
.af-contact-row { display:grid; grid-template-columns:1fr 1fr 1fr 1fr auto; gap:8px; margin:6px 0; align-items:center; }
.af-contact-row input { padding:8px 10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; }
.af-contact-row .af-remove-contact { padding:8px 12px; }
@media (max-width:768px){ .af-contact-row { grid-template-columns:1fr 1fr; } .af-contact-row .af-remove-contact { grid-column:span 2; } }

@media (max-width:700px){ .af-grid { grid-template-columns:1fr; } }

.af-foot { text-align:center; color:#9aa0a6; font-size:0.75rem; padding:10px 0 30px; }

/* Weather (reuse from admin, redefined for frontend) */
.agro-weather-now { display:flex; align-items:center; gap:14px; margin:6px 0 14px; }
.agro-w-emoji { font-size:2.375rem; }
.agro-w-temp { font-size:1.875rem; font-weight:700; color:var(--agf-green-d); }
.agro-w-desc { font-size:0.875rem; color:#555; }
.agro-weather-days { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; flex:1; }
.agro-w-day { background:#f5f8f0; border:1px solid #e2e8dd; border-radius:8px; padding:8px 4px; text-align:center; }
.agro-w-dow { font-size:0.6875rem; font-weight:600; color:#374151; text-transform:capitalize; }
.agro-w-ic { font-size:1.375rem; margin:4px 0; }
.agro-w-mm { font-size:0.75rem; }
.agro-w-mm .hi { font-weight:700; color:#c0392b; }
.agro-w-mm .lo { color:#2f6fb0; }
.agro-w-rain { font-size:0.6875rem; color:#2f6fb0; margin-top:2px; }
.agro-weather-slider { display:flex; align-items:stretch; gap:8px; }
.agro-w-arrow { flex:0 0 auto; width:34px; border:1px solid #e2e8dd; background:#fff; border-radius:8px; font-size:1.125rem; font-weight:700; color:var(--agf-green-d); cursor:pointer; }
.agro-w-arrow:disabled { opacity:.3; cursor:default; }
.agro-w-arrow:hover:not(:disabled) { background:#f5f8f0; }
.agro-note { font-size:0.75rem; color:#6b7280; }

@media (max-width:900px){
	.af-cards { grid-template-columns:repeat(2,1fr); }
	.agro-weather-days { grid-template-columns:repeat(4,1fr); }
}
@media (max-width:768px){
	.af-table { display:block; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; }
	.af-head-in { flex-direction:row; align-items:center; padding:10px 14px; }
	.af-avatar { width:40px; height:40px; font-size:1.25rem; }
	.af-title { font-size:1rem; }
	.af-main { padding:0 12px; margin:12px auto; }
	.af-panel { padding:14px; border-radius:14px; }
	.af-cards { grid-template-columns:1fr 1fr; }

	/* Κάτω μπάρα μενού: μεγάλα κουμπιά για τον αντίχειρα */
	.af-nav { position:fixed; left:0; right:0; bottom:0; z-index:70; width:100%; flex-wrap:nowrap; gap:0; justify-content:space-around;
		background:var(--agf-green-d); padding:4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow:0 -2px 14px rgba(0,0,0,.25); }
	.af-nav > a, .af-nav-more { flex:1 1 0; min-width:0; }
	.af-nav > a, .af-nav summary { flex-direction:column; justify-content:center; gap:2px; font-size:0.6875rem; padding:6px 2px; min-height:3.25rem; text-align:center; width:100%; }
	.af-nav-ico { font-size:1.3125rem; }
	.af-nav-more-list { top:auto; bottom:calc(100% + 8px); right:6px; min-width:230px; }
	body.agro-front { padding-bottom:calc(5.75rem + env(safe-area-inset-bottom)); }
	.af-fab { display:none !important; }

	/* Πιο μεγάλα πεδία/κουμπιά (16px = χωρίς αυτόματο ζουμ στο iPhone) */
	.af-field input, .af-field select, .af-field textarea, .af-filters input, .af-filters select, .af-select-search { font-size:1rem; padding:12px; min-height:48px; }
	.af-btn, .af-filters button { min-height:48px; padding:12px 18px; font-size:1rem; display:inline-flex; align-items:center; justify-content:center; }
	.af-actionsrow .af-btn-primary, .af-actionsrow button { width:100%; }
	.af-pay { font-size:0.9375rem; min-height:44px; }

	/* Λίστα μισθωτηρίων: ΚΑΡΤΕΣ αντί για πολυστήλιο πίνακα */
	.af-table-scroll { max-height:none; overflow:visible; border:0; }
	#af-lease-table, #af-lease-table tbody, #af-lease-table tr, #af-lease-table td { display:block; width:100%; white-space:normal; overflow:visible; }
	#af-lease-table thead { display:none; }
	#af-lease-table tr { border:1px solid #d9e0d2; border-radius:14px; margin:0 0 12px; padding:10px 14px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
	#af-lease-table td { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:6px 0; border:0; text-align:right; font-size:0.9375rem; }
	#af-lease-table td::before { content:attr(data-label); font-weight:600; color:#6b7280; text-align:left; flex:0 0 40%; font-size:0.8125rem; }
	#af-lease-table td { white-space:normal !important; min-width:0; overflow-wrap:anywhere; }
	#af-lease-table td.af-kaek-cell { flex-wrap:wrap; justify-content:flex-end; }
	#af-lease-table td.af-kaek-cell::before { flex:0 0 100%; }
	#af-lease-table td.af-kaek-cell br { display:none; }
	#af-lease-table td.af-kaek-cell .af-owners-badge { flex:0 0 auto; margin:0 0 6px auto; }
	#af-lease-table td.af-kaek-cell .af-kaek-link { flex:0 0 100%; text-align:right; font-size:1rem; letter-spacing:.3px; word-break:break-all; }
	#af-lease-table td[data-m="hide"] { display:none; }
	#af-lease-table td[data-primary] { font-size:1.125rem; font-weight:700; padding-bottom:8px; margin-bottom:4px; border-bottom:1px solid rgba(0,0,0,.08); }
	#af-lease-table td[data-primary]::before { display:none; }
	#af-lease-table td[data-primary] a { color:var(--agf-green-d); }
	#af-lease-table .af-quickpay { width:100%; }
	#af-lease-table .af-quickpay select { width:100%; }
	.af-bulkbar { display:none; }
}
@media (max-width:520px){
	.af-cards { grid-template-columns:1fr 1fr; }
	.agro-weather-days { grid-template-columns:repeat(3,1fr); }
	.af-filters { flex-direction:column; align-items:stretch; }
	.af-filters input, .af-filters select, .af-filters button { width:100%; }
}

/* ============ ΠΛΗΡΩΜΕΣ: ΕΝΤΟΝΑ ΧΡΩΜΑΤΑ & ΜΠΑΡΑ ΠΡΟΟΔΟΥ ============ */
.agro-paybar-wrap { margin:12px 0 6px; }
.agro-paybar { position:relative; background:#e8eaed; border-radius:12px; overflow:hidden; box-shadow:inset 0 1px 3px rgba(0,0,0,.12); }
.agro-paybar-fill { height:100%; transition:width .5s ease; box-shadow:0 0 12px rgba(0,0,0,.25); }
.agro-paybar-txt { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
	font-weight:800; font-size:0.75rem; color:#1b1b1b; text-shadow:0 1px 2px rgba(255,255,255,.85); }
.agro-paybar-legend { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:8px; font-size:0.8438rem; }
.agro-chip { display:inline-block; padding:4px 12px; border-radius:20px; font-weight:800; font-size:0.75rem; letter-spacing:.4px; }

/* Υπόλοιπο σε έντονο, «φωσφοριζέ» στυλ ώστε να χτυπάει στο μάτι */
.agro-remain-hot {
	display:inline-block; padding:5px 14px; border-radius:8px; font-weight:900; font-size:0.875rem;
	background:#ffea00; color:#b71c1c; border:2px solid #ff1744;
	box-shadow:0 0 10px rgba(255,234,0,.9), 0 0 4px rgba(255,23,68,.6);
	animation:agroPulse 1.6s ease-in-out infinite;
}
@keyframes agroPulse { 0%,100%{ box-shadow:0 0 10px rgba(255,234,0,.9),0 0 4px rgba(255,23,68,.6);} 50%{ box-shadow:0 0 18px rgba(255,234,0,1),0 0 8px rgba(255,23,68,.85);} }

/* Γραμμές πληρωμών στη φόρμα */
.af-paylist { display:flex; flex-direction:column; gap:8px; }
.af-payrow { display:grid; grid-template-columns:150px 110px 1fr 130px 1fr auto; gap:8px; align-items:center;
	background:#f7faf4; border:1px solid #dbe4d4; border-radius:10px; padding:8px; }
.af-payrow input, .af-payrow select { padding:8px 10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; width:100%; }
@media (max-width:820px){ .af-payrow { grid-template-columns:1fr 1fr; } .af-payrow .af-pay-del { grid-column:span 2; } }
.af-receipt { margin-top:12px; padding:12px 14px; background:#fffde7; border:2px dashed #fbc02d; border-radius:10px; }

/* Έντονα σήματα κατάστασης στους πίνακες */
.af-pay-plironei { background:#00c853 !important; color:#fff !important; font-weight:800; }
.af-pay-meriki { background:#ff9100 !important; color:#fff !important; font-weight:800; }
.af-pay-ekkremei { background:#ff1744 !important; color:#fff !important; font-weight:800; }
.af-rent-plironei { background:#c8f7d4 !important; color:#00600f !important; }
.af-rent-meriki { background:#ffe0b2 !important; color:#8a4500 !important; }
.af-rent-ekkremei { background:#ffcdd2 !important; color:#b71c1c !important; }

/* ============ ΟΦΕΙΛΕΣ ============ */
.af-debt-total { background:linear-gradient(135deg,#ff1744,#c4001d); color:#fff; font-weight:900; font-size:1.25rem;
	padding:14px 18px; border-radius:12px; text-align:center; letter-spacing:.5px; margin:12px 0;
	box-shadow:0 4px 14px rgba(255,23,68,.35); }
.af-nodebts { background:#e7f6ec; border:2px solid #00c853; color:#00600f; padding:16px; border-radius:12px; font-size:1rem; text-align:center; }
.af-debt-owners { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; margin:10px 0 18px; }
.af-debt-owner { background:#fff8e1; border:2px solid #ffb300; border-radius:12px; padding:12px; }
.af-debt-owner-name { font-weight:800; font-size:0.875rem; color:#5d4037; }
.af-debt-owner-sum { font-size:1.375rem; font-weight:900; color:#c4001d; margin:4px 0; }
.af-debt-owner-n { font-size:0.7188rem; color:#8a6d3b; }
.af-debt-actions { margin-top:8px; display:flex; gap:5px; flex-wrap:wrap; }

/* ============ LIGHTBOX (zoom φωτογραφίας) ============ */
.af-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center;
	justify-content:center; z-index:99999; padding:20px; cursor:zoom-out; }
.af-lightbox.is-open { display:flex; }
.af-lightbox img { max-width:96vw; max-height:92vh; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,.6); }
.af-lightbox-close { position:absolute; top:14px; right:18px; background:rgba(255,255,255,.15); color:#fff;
	border:0; font-size:1.625rem; width:44px; height:44px; border-radius:50%; cursor:pointer; }
.af-lightbox-close:hover { background:rgba(255,255,255,.3); }

/* ============ ΑΝΤΙΓΡΑΦΗ ΕΤΟΥΣ ============ */
.af-clone { margin:12px 0; background:#f0f6ff; border:1px solid #cfe0f5; border-radius:10px; padding:10px 14px; }
.af-clone summary { cursor:pointer; font-weight:700; color:#1a5490; }
.af-clone form { margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.af-clone input[type=text], .af-clone select { padding:7px 10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; }
.af-owner-actions { background:#f7faf4; }

/* Εκτύπωση: κρύψε πλοήγηση/κουμπιά ώστε το PDF να είναι καθαρό */
.af-print-only { display:none; }
@media print {
	.af-topbar, .af-yearbar, .af-owner-actions, .af-filters, .af-report-actions, .af-clone, .af-trial, .af-head, .af-nav, .af-no-print { display:none !important; }
	.af-panel { box-shadow:none !important; border:1px solid #ccc !important; page-break-inside:avoid; }
	.af-print-only { display:block !important; }
	body { background:#fff !important; }
}

/* ===== Απλή φόρμα: «Περισσότερα στοιχεία» ===== */
.af-more { margin:18px 0 8px; border:1px dashed #b9c7ae; border-radius:12px; background:#fafcf7; }
.af-more > summary { cursor:pointer; padding:14px 16px; font-weight:700; color:var(--agf-green-d); list-style:none; font-size:0.9375rem; }
.af-more > summary::-webkit-details-marker { display:none; }
.af-more[open] > summary { border-bottom:1px dashed #b9c7ae; }
.af-more-body { padding:4px 16px 14px; }
.af-more-body h2 { font-size:0.9375rem; margin-top:16px; }

.af-empty { text-align:center; padding:28px 12px; }
.af-empty-ico { font-size:3rem; }
.af-empty h3 { margin:8px 0; color:var(--agf-green-d); }
.af-empty .af-btn { margin-top:8px; }
.af-import-more { margin-top:4px; }

.af-yearbar-bleed { margin:0 -18px 14px; border-radius:0; }
@media (max-width:768px){ .af-yearbar-bleed { margin:0 -12px 14px; } }

/* ===== v1.40: δεύτερη μπάρα κύλισης ΠΑΝΩ από τους πίνακες + πιο φαρδιά λίστα ===== */
.af-scroll-top { overflow-x:auto; overflow-y:hidden; height:16px; margin:0 0 3px; scrollbar-width:auto; scrollbar-color:#a8bb9a #f0f3ec; }
.af-scroll-top-in { height:1px; }
.af-scroll-top::-webkit-scrollbar { height:16px; }
.af-scroll-top::-webkit-scrollbar-track { background:#f0f3ec; border-radius:8px; }
.af-scroll-top::-webkit-scrollbar-thumb { background:#a8bb9a; border-radius:8px; border:3px solid #f0f3ec; }
.af-scroll-top::-webkit-scrollbar-thumb:hover { background:var(--agf-green); }
body.af-wide .af-main, body.af-wide .af-head-in { max-width:1560px; }
@media (max-width:768px){ .af-scroll-top { display:none !important; } }
@media print { .af-scroll-top { display:none !important; } }

/* ===== v1.41: ΚΑΕΚ υποχρεωτικό — έντονο πεδίο, μεγάλη γραμματοσειρά ===== */
.af-field.af-field-kaek { grid-column:1 / -1; padding:14px 16px; background:#fffbe8; border:2px solid var(--agf-green); border-radius:12px; }
.af-field.af-field-kaek label { font-size:1.125rem; font-weight:800; color:var(--agf-green-d); }
.af-field.af-field-kaek label small { font-weight:600; color:#6b7280; font-size:0.8125rem; }
.af-field-kaek .af-req { color:#c0392b; font-size:1.5rem; line-height:1; }
.af-field.af-field-kaek input { font-size:1.375rem; font-weight:800; letter-spacing:1.5px; padding:14px 16px; min-height:56px; border:2px solid var(--agf-green-d); background:#fff; }
.af-field.af-field-kaek input:invalid:not(:placeholder-shown) { border-color:#c0392b; background:#fff5f4; }
.af-field.af-field-kaek input:valid { border-color:#1e8e4e; }
.af-field.af-field-kaek input::placeholder { font-size:0.9375rem; font-weight:400; letter-spacing:0; color:#9aa39a; }
.af-kaek-cell { font-weight:700; font-size:0.9375rem; }
.af-missing { display:inline-block; background:#fdecea; color:#a32b1c; font-weight:800; padding:3px 10px; border-radius:10px; text-decoration:none; }
.af-quickchip-bad { background:#fdecea; color:#a32b1c; text-decoration:none; }
.af-quickchip-bad:hover { text-decoration:underline; }

/* ===== Έλεγχος πληρότητας ===== */
.af-progress { height:18px; background:#e8eee1; border-radius:10px; overflow:hidden; margin:8px 0; }
.af-progress-bar { height:100%; background:linear-gradient(90deg,#7fa650,#1e8e4e); }
.af-chips { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.af-chip { display:inline-block; padding:5px 12px; border-radius:14px; font-size:0.8125rem; font-weight:600; background:#eef1ea; color:#374151; text-decoration:none; }
.af-chip-must { background:#fdecea; color:#a32b1c; }
.af-chip-should { background:#fff4e0; color:#8a5a00; }
a.af-chip:hover { text-decoration:underline; }
.af-chip.is-active { outline:2px solid var(--agf-green-d); }
#af-checks-table td { white-space:normal; vertical-align:top; }
@media (max-width:768px){
	#af-checks-table, #af-checks-table tbody, #af-checks-table tr, #af-checks-table td { display:block; width:100%; white-space:normal; }
	#af-checks-table thead { display:none; }
	#af-checks-table tr { border:1px solid #d9e0d2; border-radius:14px; margin:0 0 12px; padding:10px 14px; }
	#af-checks-table td { border:0; padding:5px 0; }
	#af-checks-table td::before { content:attr(data-label) ': '; font-weight:600; color:#6b7280; font-size:0.8125rem; }
}

/* ===== v1.42: ιδιόκτητα χωράφια ===== */
.af-field.af-locked { opacity:.55; }
.af-field.af-locked input, .af-field.af-locked select { background:#eef1ea; cursor:not-allowed; }
.af-lock-note { display:block; margin-top:4px; font-weight:600; color:#6b7280; }
.af-owned-badge { display:inline-block; padding:4px 12px; border-radius:10px; background:#e8eee1; color:#3f6323; font-weight:700; font-size:0.8125rem; }
.af-table tr.af-row-owned { background:#f6f8f2; }

/* =====================================================================
   v1.43 — ΕΠΑΓΓΕΛΜΑΤΙΚΗ ΕΜΦΑΝΙΣΗ + 5 ΣΧΕΔΙΑΣΜΟΙ
   Κάθε σχεδιασμός ορίζει μόνο «tokens» (μεταβλητές). Οι κοινοί κανόνες τα διαβάζουν, άρα
   δουλεύουν με ΟΠΟΙΟΔΗΠΟΤΕ χρώμα θέματος και με σκούρο/φωτεινό.
   ===================================================================== */
:root { --af-surface:#fff; --af-surface-2:#f5f8f0; --af-line:#e2e8dd; --af-text:#1f2937; --af-muted:#6b7280; --af-ibc:#cdd5c6; }

/* --- Γενική στιλβωση (ισχύει σε όλα τα σχέδια) --- */
.af-btn, .af-filters button, .af-yearchip, .af-nav a, .af-nav summary { transition:background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.af-btn:active, .af-filters button:active { transform:translateY(1px); }
.af-btn:hover { border-color:var(--agf-green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline:3px solid color-mix(in srgb, var(--agf-green) 45%, transparent); outline-offset:2px; }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus, .af-filters input:focus, .af-filters select:focus { border-color:var(--agf-green); box-shadow:0 0 0 3px color-mix(in srgb, var(--agf-green) 18%, transparent); outline:none; }
.af-table tbody tr { transition:filter .12s; }
.af-table tbody tr:hover { filter:brightness(.97); }
.af-table tbody tr:last-child td { border-bottom:0; }
.af-table td a { font-weight:600; }
.af-chip { white-space:nowrap; }

/* --- Κοινοί κανόνες που διαβάζουν τα tokens --- */
body.agro-front[class*="af-d-"] { font-family:var(--af-font, var(--agf-font, sans-serif)); font-size:var(--af-fs, 16px); color:var(--af-text); background:var(--af-page-bg, var(--agf-bg)); }
[class*="af-d-"] .af-head { background:var(--af-head-bg, var(--agf-head, var(--agf-green-d))); box-shadow:var(--af-head-shadow, none); border-bottom:var(--af-head-border, 0); }
[class*="af-d-"] .af-panel, [class*="af-d-"] .af-card { background:var(--af-surface); border:var(--af-bw, 1px) solid var(--af-line); border-radius:var(--af-radius, 12px); box-shadow:var(--af-shadow, none); }
[class*="af-d-"] .af-panel { padding:var(--af-pad, 16px 18px); }
[class*="af-d-"] .af-panel h2 { font-size:var(--af-h2-fs, 17px); text-transform:var(--af-h2-tt, none); letter-spacing:var(--af-h2-ls, 0); font-family:var(--af-h2-font, inherit); color:var(--af-h2-color, var(--agf-green-d)); }
[class*="af-d-"] .af-num { color:var(--af-h2-color, var(--agf-green-d)); }
[class*="af-d-"] .af-lbl, [class*="af-d-"] .agro-note { color:var(--af-muted); }
[class*="af-d-"] .af-table th { background:var(--af-th-bg, var(--af-surface-2)); color:var(--af-th-fg, var(--af-text)); font-size:var(--af-th-fs, 14px); text-transform:var(--af-th-tt, none); letter-spacing:var(--af-th-ls, 0); padding:var(--af-td-pad, 9px 10px); border-bottom:var(--af-th-bb, 1px solid var(--af-line)); }
[class*="af-d-"] .af-table td { padding:var(--af-td-pad, 9px 10px); border-bottom:1px var(--af-td-bs, solid) var(--af-td-line, var(--af-line)); font-size:var(--af-td-fs, 14px); }
[class*="af-d-"] .af-table-scroll { border-color:var(--af-line); border-radius:var(--af-radius-sm, 8px); }
[class*="af-d-"] .af-btn, [class*="af-d-"] .af-filters button { border-radius:var(--af-btn-r, 8px); }
[class*="af-d-"] .af-field input, [class*="af-d-"] .af-field select, [class*="af-d-"] .af-field textarea,
[class*="af-d-"] .af-filters input[type=search], [class*="af-d-"] .af-filters select { border:var(--af-ibw, 1px) solid var(--af-ibc); border-radius:var(--af-radius-sm, 8px); }
[class*="af-d-"] .af-yearchip { border-radius:var(--af-btn-r, 20px); }
[class*="af-d-"] .af-year-badge, [class*="af-d-"] .af-quickchip, [class*="af-d-"] .af-chip { border-radius:var(--af-chip-r, 14px); }

/* --- Κλασικό --- */
.af-d-classic { --af-radius:12px; --af-radius-sm:8px; --af-shadow:0 1px 2px rgba(16,24,40,.05); --af-head-shadow:0 2px 6px rgba(0,0,0,.12); }

/* --- Επαγγελματικό: ψυχρό γκρι, λεπτές γραμμές, μικρά κεφαλαία --- */
.af-d-pro { --af-radius:6px; --af-radius-sm:5px; --af-btn-r:5px; --af-chip-r:4px; --af-shadow:0 1px 2px rgba(15,23,42,.07); --af-pad:18px 20px;
  --af-page-bg:#eef1f6; --af-font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --af-h2-fs:13px; --af-h2-tt:uppercase; --af-h2-ls:.07em; --af-h2-color:var(--af-muted);
  --af-th-bg:var(--af-surface-2); --af-th-fs:11.5px; --af-th-tt:uppercase; --af-th-ls:.06em; --af-th-fg:var(--af-muted); --af-td-pad:11px 12px;
  --af-head-shadow:0 1px 0 rgba(255,255,255,.1) inset, 0 3px 10px rgba(15,23,42,.2); }
.af-d-pro .af-panel > h2 { border-bottom:1px solid var(--af-line); padding-bottom:10px; margin-bottom:14px; }
.af-d-pro .af-year-badge { background:transparent; color:var(--af-muted); border:1px solid var(--af-line); font-weight:600; }
.af-d-pro .af-btn-primary, .af-d-pro .af-filters button { box-shadow:0 1px 2px rgba(15,23,42,.2); }

/* --- Μοντέρνο: μεγάλη στρογγυλότητα, απαλές σκιές, κάψουλες --- */
.af-d-modern { --af-radius:20px; --af-radius-sm:12px; --af-btn-r:999px; --af-chip-r:999px; --af-bw:0px; --af-shadow:0 10px 30px rgba(16,24,40,.09); --af-pad:22px 24px;
  --af-page-bg:linear-gradient(180deg,#f8fafd 0%,#e9eff6 100%);
  --af-head-bg:linear-gradient(135deg,var(--agf-head),color-mix(in srgb,var(--agf-head) 68%,#ffffff));
  --af-head-shadow:0 8px 24px rgba(16,24,40,.18); --af-h2-fs:19px;
  --af-th-bg:transparent; --af-th-fg:var(--af-muted); --af-th-fs:13px; --af-td-pad:14px 14px; --af-th-bb:2px solid var(--af-line); }
.af-d-modern .af-head { border-radius:0 0 26px 26px; }
.af-d-modern .af-btn { padding:10px 20px; }
.af-d-modern .af-panel h2 { font-weight:800; }
.af-d-modern .af-table-scroll { border-color:transparent; }

/* --- Αγροτικό: ζεστό χαρτί, γήινοι τόνοι, τίτλοι με πατούρες --- */
.af-d-rustic { --af-radius:10px; --af-radius-sm:7px; --af-btn-r:7px; --af-surface:#fffdf6; --af-surface-2:#f2e8cf; --af-line:#e0d3b0; --af-ibc:#cdbd93; --af-td-line:#d9c9a0; --af-td-bs:dotted;
  --af-page-bg:#f6efdf; --af-shadow:0 1px 0 rgba(120,90,40,.12), 0 3px 8px rgba(120,90,40,.08); --af-text:#2d2616; --af-muted:#7a6a45;
  --af-h2-font:Georgia,"Noto Serif","Times New Roman",serif; --af-h2-fs:20px; --af-h2-color:color-mix(in srgb,var(--agf-green-d) 70%,#4a3414);
  --af-th-bg:#efe3c4; --af-th-fg:#5a4524; --af-th-fs:13px;
  --af-head-bg:linear-gradient(180deg,var(--agf-head),color-mix(in srgb,var(--agf-head) 78%,#3b2a14)); --af-head-border:5px solid #c8a35a; --af-head-shadow:0 3px 10px rgba(80,55,20,.25); }
.af-d-rustic .af-panel h2 { border-bottom:2px double #d9c9a0; padding-bottom:8px; }
.af-d-rustic .af-title { font-family:Georgia,"Noto Serif",serif; letter-spacing:.01em; }
.af-d-rustic .af-year-badge { background:#8a6b2e; }

/* --- Μεγάλα γράμματα: υψηλή αντίθεση, μεγάλοι στόχοι αφής --- */
.af-d-big { --af-radius:14px; --af-radius-sm:10px; --af-btn-r:12px; --af-bw:2px; --af-ibw:2px; --af-line:#98ab93; --af-ibc:#7d9078; --af-text:#101828; --af-muted:#374151;
  --af-shadow:0 2px 6px rgba(0,0,0,.12); --af-fs:19px; --af-h2-fs:23px; --af-th-fs:16px; --af-td-fs:17px; --af-td-pad:15px 12px; --af-pad:20px 22px; --af-page-bg:#ffffff; }
.af-d-big .af-nav a, .af-d-big .af-nav summary { font-size:1.0625rem; }
.af-d-big .af-field label, .af-d-big .af-yearbar-label { font-size:1.0625rem; font-weight:700; color:var(--af-text); }
.af-d-big .af-field input, .af-d-big .af-field select, .af-d-big .af-field textarea, .af-d-big .af-filters input, .af-d-big .af-filters select { font-size:1.1875rem; min-height:56px; }
.af-d-big .af-btn, .af-d-big .af-filters button { font-size:1.125rem; min-height:54px; padding:12px 22px; }
.af-d-big .af-pay { font-size:0.9375rem; padding:5px 12px; }
.af-d-big .af-table td, .af-d-big .af-table td a { font-weight:600; }
.af-d-big .af-yearchip, .af-d-big .af-yearselect { font-size:1.0625rem; padding:10px 18px; }

/* Σκούρο: ισχύει ΜΕΤΑ από τα σχέδια, ώστε να τα νικά σε ίση ειδικότητα */
.af-dark, .af-dark[class*="af-d-"] { --af-surface:#243044; --af-surface-2:#1d2739; --af-line:#31405c; --af-text:#e5e7eb; --af-muted:#9aa7bd; --af-ibc:#3b4a68; --af-td-line:#31405c; --af-th-bg:#1d2739; --af-th-fg:#cbd5e1; --af-page-bg:var(--agf-bg); --af-h2-color:#cfe3c6; }
.af-dark.af-d-big { --af-line:#6b7d9c; --af-text:#ffffff; --af-muted:#d1d9e6; }

/* Desktop: στυλ πλοήγησης ανά σχέδιο (το κινητό κρατά την κάτω μπάρα) */
@media (min-width:769px){
	.af-d-pro .af-nav a, .af-d-pro .af-nav summary { border-radius:0; border-bottom:3px solid transparent; padding:9px 13px 6px; }
	.af-d-pro .af-nav .is-active { background:transparent; border-bottom-color:#fff; }
	.af-d-modern .af-nav a, .af-d-modern .af-nav summary { border-radius:999px; padding:8px 16px; }
	.af-d-modern .af-nav .is-active { background:#fff; color:var(--agf-head); }
	.af-d-rustic .af-nav a, .af-d-rustic .af-nav summary { border-radius:5px; letter-spacing:.02em; }
	.af-d-rustic .af-nav .is-active { background:rgba(255,236,190,.22); box-shadow:inset 0 -3px 0 #c8a35a; }
	.af-d-big .af-nav a, .af-d-big .af-nav summary { padding:11px 14px; }
}

/* Σελίδα «Εμφάνιση»: κάρτες προεπισκόπησης */
.af-design-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:18px; margin:14px 0; }
.af-design-card { border:2px solid var(--af-line); border-radius:16px; overflow:hidden; background:var(--af-surface); display:flex; flex-direction:column; }
.af-design-card.is-current { border-color:var(--agf-green); box-shadow:0 0 0 3px color-mix(in srgb,var(--agf-green) 22%, transparent); }
.af-design-meta { padding:12px 16px 16px; }
.af-design-meta h3 { margin:0 0 4px; font-size:1.0625rem; }
.af-design-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.af-dprev { background:var(--af-page-bg, var(--agf-bg)); font-size:0.75rem; pointer-events:none; user-select:none; font-family:var(--af-font, var(--agf-font, sans-serif)); color:var(--af-text); }
.af-dprev.af-dark { background:var(--agf-bg); }
.af-dprev .af-head-in { padding:10px 14px; flex-wrap:nowrap; }
.af-dprev .af-avatar { width:30px; height:30px; font-size:1rem; }
.af-dprev .af-title { font-size:0.8125rem; }
.af-dprev .af-sub { font-size:0.625rem; }
.af-dprev .af-nav { position:static; width:auto; background:none; box-shadow:none; padding:0; gap:0; }
.af-dprev .af-nav > a { flex-direction:row; width:auto; min-height:0; font-size:0.625rem; padding:5px 8px; }
.af-dprev-body { padding:12px; }
.af-dprev .af-panel { margin:0; padding:12px 14px; }
.af-dprev .af-panel h2 { font-size:0.8125rem; margin-bottom:8px; }
.af-dprev .af-table th, .af-dprev .af-table td { font-size:0.625rem; padding:6px 7px; }
.af-dprev .af-btn { font-size:0.6875rem; padding:6px 10px; min-height:0; }
.af-dprev.af-d-big { font-size:0.875rem; }
.af-dprev.af-d-big .af-table td { font-size:0.75rem; }
.af-dprev.af-d-big .af-btn { font-size:0.8125rem; min-height:0; padding:7px 12px; }
.af-dprev.af-d-big .af-panel h2 { font-size:0.9375rem; }
.af-dprev .af-year-badge { font-size:0.625rem; padding:2px 8px; }
@media print { .af-design-grid { display:none; } }

/* Παλιότεροι browsers χωρίς color-mix(): απλά χρώματα αντί για μίξεις, ώστε να μην χαθεί η επικεφαλίδα */
@supports not (color: color-mix(in srgb, red, blue)) {
	.af-d-modern, .af-d-rustic { --af-head-bg:var(--agf-head); --af-h2-color:var(--agf-green-d); }
	.af-design-card.is-current { box-shadow:0 0 0 3px var(--agf-green); }
}


/* =====================================================================
   v1.44 — ΠΡΟΣΒΑΣΙΜΟΤΗΤΑ: μέγεθος γραμμάτων, αποστάσεις, ευδιάκριτα ψηφία, υψηλή αντίθεση
   ===================================================================== */
/* Μέγεθος γραμμάτων: όλα τα κείμενα είναι σε rem, άρα μεγαλώνουν μαζί με τη ρίζα */
html.af-fs-1 { font-size:100%; }
html.af-fs-2 { font-size:112.5%; }
html.af-fs-3 { font-size:125%; }
html.af-fs-4 { font-size:137.5%; }
html.af-fs-5 { font-size:150%; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body.agro-front { line-height:1.5; overflow-wrap:break-word; }
body.agro-front p, body.agro-front li { overflow-wrap:break-word; }

/* Ψηφία: ισοπλατή (tabular) ώστε οι αριθμοί να στοιχίζονται σωστά σε πίνακες και ποσά */
.af-table td, .af-table th, .af-num, .af-pay, .af-card, .af-field input, .af-quickchip, .af-year-badge, .af-chip, .agro-note strong {
	font-variant-numeric:tabular-nums lining-nums; font-feature-settings:"tnum" 1, "lnum" 1; }
body.agro-front { letter-spacing:.005em; }

/* Αραιές αποστάσεις */
html.af-sp-roomy body.agro-front { line-height:1.75; letter-spacing:.02em; word-spacing:.08em; }
html.af-sp-roomy [class*="af-d-"] { --af-td-pad:15px 14px; --af-pad:22px 24px; }
html.af-sp-roomy .af-field { margin:14px 0; }
html.af-sp-roomy .af-field label { margin-bottom:8px; }
html.af-sp-roomy .af-panel, html.af-sp-roomy .af-card { margin-bottom:22px; }
html.af-sp-roomy .af-btn { padding:12px 20px; }
html.af-sp-roomy .af-nav a, html.af-sp-roomy .af-nav summary { padding-top:10px; padding-bottom:10px; }

/* Μεγάλο κείμενο: τίποτα δεν «κόβεται» — οι μπλοκ γίνονται φαρδύτερα/κάθετα */
@media (max-width:768px){
	html.af-fs-4 .af-cards, html.af-fs-5 .af-cards { grid-template-columns:1fr; }
	html.af-fs-3 .af-nav > a, html.af-fs-4 .af-nav > a, html.af-fs-5 .af-nav > a { font-size:max(.6875rem, 11px); }
}
@media (prefers-reduced-motion:reduce){ * { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }

/* Φίλτρα (έτος/καλλιέργεια/ιδιοκτήτης) — ευανάγνωστα και με μεγάλους στόχους αφής */
.af-yearbar select { padding:.5rem .9rem; min-height:2.75rem; border-radius:var(--af-btn-r, 20px); border:1px solid var(--af-ibc, #cdd5c6); background:var(--af-surface, #fff); color:var(--af-text, #1f2937); font:inherit; font-size:1rem; max-width:100%; }
.af-yearbar form { display:inline-flex; flex-wrap:wrap; gap:8px; align-items:center; }
@media (max-width:768px){
	.af-yearbar form { display:flex; width:100%; margin:6px 0 0 !important; }
	.af-yearbar form select { flex:1 1 100%; font-size:1rem; min-height:3rem; }
	.af-yearbar .af-btn { flex:1 1 45%; justify-content:center; min-height:3rem; }
}

/* Σελίδα «Εμφάνιση»: κουμπιά επιλογής */
.af-opt-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-top:8px; }
.af-opt-grid-sm { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
.af-opt { position:relative; text-align:left; cursor:pointer; background:var(--af-surface, #fff); color:var(--af-text, #1f2937); border:2px solid var(--af-line, #e2e8dd); border-radius:14px; padding:12px 14px 14px; font:inherit; min-height:4rem; display:flex; flex-direction:column; gap:6px; }
.af-opt:hover { border-color:var(--agf-green); }
.af-opt.is-current { border-color:var(--agf-green); box-shadow:0 0 0 3px var(--agf-green); }
.af-opt-sample { display:block; line-height:1.3; }
.af-opt-name { display:block; font-weight:700; font-size:.9375rem; }
.af-opt-on { position:absolute; top:8px; right:10px; font-size:.75rem; font-weight:700; color:var(--agf-green-d); }
.af-swatch { display:block; height:2.4rem; border-radius:10px; border:1px solid rgba(0,0,0,.18); }

/* --- Ελαφρύ --- */
.af-d-minimal { --af-radius:4px; --af-radius-sm:4px; --af-btn-r:4px; --af-chip-r:4px; --af-bw:0px; --af-shadow:none; --af-page-bg:#ffffff; --af-pad:18px 4px;
  --af-h2-fs:1.0625rem; --af-th-bg:transparent; --af-th-fg:var(--af-muted); --af-th-fs:.8125rem; --af-th-bb:1px solid var(--af-line); --af-td-pad:12px 8px; --af-head-shadow:none; }
.af-d-minimal .af-panel { background:transparent; border:0; border-bottom:1px solid var(--af-line); border-radius:0; box-shadow:none; }
.af-d-minimal .af-table-scroll { border:0; }
.af-d-minimal .af-card { box-shadow:none; border:1px solid var(--af-line); }

/* --- Ζωντανό: τόνος από το χρώμα του θέματος --- */
.af-d-vivid { --af-radius:16px; --af-radius-sm:10px; --af-btn-r:12px; --af-shadow:0 6px 18px rgba(16,24,40,.08); --af-pad:20px 22px;
  --af-page-bg:color-mix(in srgb, var(--agf-green) 9%, #ffffff);
  --af-head-bg:linear-gradient(120deg, var(--agf-head), color-mix(in srgb, var(--agf-head) 62%, #ffffff));
  --af-th-bg:color-mix(in srgb, var(--agf-green) 15%, #ffffff); --af-th-fg:var(--agf-green-d); --af-h2-fs:1.1875rem; --af-head-shadow:0 6px 18px rgba(16,24,40,.2); }
.af-d-vivid .af-panel { border-left:6px solid var(--agf-green); }
.af-d-vivid .af-card { border-top:5px solid var(--agf-green); }
.af-d-vivid .af-panel h2 { font-weight:800; }

/* --- Υψηλή αντίθεση: μαύρο/λευκό, χοντρά περιγράμματα, υπογραμμισμένοι σύνδεσμοι --- */
.af-d-contrast { --af-radius:6px; --af-radius-sm:6px; --af-btn-r:6px; --af-bw:3px; --af-ibw:3px; --af-line:#000000; --af-ibc:#000000; --af-text:#000000; --af-muted:#222222; --af-surface:#ffffff; --af-surface-2:#ffffff;
  --af-shadow:none; --af-page-bg:#ffffff; --af-fs:1.125rem; --af-h2-fs:1.375rem; --af-h2-color:#000000; --af-th-bg:#000000; --af-th-fg:#ffffff; --af-th-fs:1rem; --af-td-fs:1.0625rem; --af-td-pad:14px 12px; --af-td-line:#000000;
  --af-head-bg:#000000; --af-head-shadow:none; --af-head-border:4px solid #ffdd00; --af-pad:20px 22px; }
.af-d-contrast a { text-decoration:underline; text-underline-offset:3px; }
.af-d-contrast .af-nav a, .af-d-contrast .af-nav summary { color:#ffffff; font-weight:700; text-decoration:none; }
.af-d-contrast .af-nav .is-active { background:#ffdd00; color:#000000; }
.af-d-contrast .af-btn { background:#ffffff; color:#000000; border:3px solid #000000; font-weight:800; font-size:1.0625rem; min-height:3rem; }
.af-d-contrast .af-btn-primary, .af-d-contrast .af-filters button { background:#000000; color:#ffffff; border-color:#000000; }
.af-d-contrast .af-year-badge { background:#000000; color:#ffffff; }
.af-d-contrast .af-yearchip { border:3px solid #000000; color:#000000; font-weight:800; }
.af-d-contrast .af-yearchip.is-active { background:#000000; color:#ffffff; }
.af-d-contrast .af-pay { border:2px solid #000000; font-weight:800; }
.af-d-contrast .af-table td, .af-d-contrast .af-table td a { font-weight:600; }
.af-d-contrast a:focus-visible, .af-d-contrast button:focus-visible, .af-d-contrast input:focus-visible, .af-d-contrast select:focus-visible, .af-d-contrast summary:focus-visible { outline:4px solid #ffdd00; outline-offset:2px; box-shadow:0 0 0 7px #000000; }
.af-dark.af-d-contrast { --af-line:#ffffff; --af-ibc:#ffffff; --af-text:#ffffff; --af-muted:#e5e5e5; --af-surface:#000000; --af-surface-2:#000000; --af-page-bg:#000000; --af-h2-color:#ffdd00; --af-th-bg:#ffffff; --af-th-fg:#000000; --af-td-line:#ffffff; --af-head-bg:#000000; }
.af-dark.af-d-contrast a { color:#ffdd00; }
.af-dark.af-d-contrast .af-btn { background:#000000; color:#ffffff; border-color:#ffffff; }
.af-dark.af-d-contrast .af-btn-primary, .af-dark.af-d-contrast .af-filters button { background:#ffdd00; color:#000000; border-color:#ffdd00; }

/* Παλιότεροι browsers χωρίς color-mix(): σταθερά χρώματα στα νέα σχέδια */
@supports not (color: color-mix(in srgb, red, blue)) {
	.af-d-vivid { --af-page-bg:var(--agf-bg); --af-head-bg:var(--agf-head); --af-th-bg:var(--af-surface-2); }
}

/* ===== v1.44: πεδίο-προτάσεις (combobox), υπόδειξη άλλων ετών, αναζήτηση ΚΑΕΚ ===== */
.af-combo { position:relative; }
.af-combo .af-select-search { width:100%; margin:0; padding:.7rem .9rem; min-height:2.75rem; font-size:1rem; border:1px solid var(--af-ibc, #cdd5c6); border-radius:var(--af-radius-sm, 8px); background:var(--af-surface, #fff); color:var(--af-text, #1f2937); }
.af-combo-select { position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; overflow:hidden !important; }
.af-suggest { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:60; margin:0; padding:4px; list-style:none; max-height:18rem; overflow-y:auto; background:var(--af-surface, #fff); color:var(--af-text, #1f2937); border:2px solid var(--agf-green); border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.22); }
.af-suggest li { padding:.7rem .8rem; border-radius:8px; cursor:pointer; font-size:1rem; line-height:1.3; }
.af-suggest li.is-active, .af-suggest li:hover { background:var(--agf-green); color:var(--agf-on, #fff); }
.af-suggest .af-suggest-none { cursor:default; color:var(--af-muted, #6b7280); }
.af-suggest .af-suggest-none:hover { background:none; color:var(--af-muted, #6b7280); }
.af-suggest a { font-weight:700; color:var(--agf-green-d); margin-left:6px; }
.af-hint { margin:12px 0; padding:12px 14px; border-radius:12px; background:#fff4e0; color:#6b4300; border:1px solid #f0d9a6; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.af-dark .af-hint { background:#3a2e12; color:#ffe2a8; border-color:#6b5320; }
.af-kaek-owners { margin-top:10px; padding:10px 12px; border-radius:12px; background:var(--af-surface-2, #f5f8f0); border:1px dashed var(--agf-green); font-size:.9375rem; }
.af-kaek-owners strong { display:block; margin-bottom:6px; }
.af-kaek-owner { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; padding:8px 0; border-top:1px solid var(--af-line, #e2e8dd); }
.af-kaek-owner:first-of-type { border-top:0; }
.af-kaek-owner small { color:var(--af-muted, #6b7280); display:block; }
.af-kaek-owner button, .af-kaek-copy { min-height:2.5rem; padding:.45rem .9rem; border-radius:10px; border:2px solid var(--agf-green); background:var(--agf-green); color:var(--agf-on, #fff); font:inherit; font-weight:700; cursor:pointer; }
.af-kaek-copy { background:transparent; color:var(--agf-green-d); margin-top:8px; }
.af-form .af-field-hidden { display:none !important; }

/* ===== v1.44: σελίδα αντιγράφων ασφαλείας ===== */
.af-actions-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:10px 0; }
.af-actions-row form { margin:0; }
.af-check { display:inline-flex; align-items:center; gap:8px; font-size:1rem; }
.af-check input, #af-bk-table input[type="checkbox"] { width:1.4rem; height:1.4rem; }
@media (max-width:768px){
	#af-bk-table, #af-bk-table tbody, #af-bk-table tr, #af-bk-table td { display:block; width:100%; white-space:normal; }
	#af-bk-table thead { display:none; }
	#af-bk-table tr { border:1px solid var(--af-line, #d9e0d2); border-radius:14px; margin:0 0 12px; padding:10px 14px; }
	#af-bk-table td { border:0; padding:5px 0; }
	#af-bk-table td[data-label]:not([data-label=""])::before { content:attr(data-label) ': '; font-weight:600; color:var(--af-muted, #6b7280); font-size:.8125rem; }
	.af-actions-row .af-btn { flex:1 1 100%; justify-content:center; }
}

/* ===== v1.45: συνδεδεμένος χρήστης στην επικεφαλίδα + λογαριασμός/λήξη στο Μενού ===== */
.af-user { display:flex; align-items:center; gap:.3rem; margin-top:2px; font-size:.8125rem; line-height:1.2; opacity:.96; max-width:min(72vw, 440px); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.af-user strong { font-weight:700; }
.af-user-role { opacity:.88; }
.af-nav-account { padding:12px 12px 10px; margin:0 0 6px; border-bottom:1px solid #e2e8dd; color:#1f2937; }
.af-nav-user { display:flex; gap:10px; align-items:center; }
.af-nav-avatar { flex:0 0 auto; width:2.5rem; height:2.5rem; border-radius:50%; background:var(--agf-green); color:var(--agf-on,#fff); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.95rem; }
.af-nav-user strong { display:block; font-size:1rem; color:#1f2937; line-height:1.25; }
.af-nav-user small { display:block; color:#6b7280; font-size:.8125rem; line-height:1.25; }
.af-nav-lic { margin-top:10px; padding:8px 10px; border-radius:10px; font-size:.875rem; font-weight:600; line-height:1.4; }
.af-nav-lic.is-ok { background:#e3f5e9; color:#14633a; }
.af-nav-lic.is-info { background:#e8f0fb; color:#1d4f8f; }
.af-nav-lic.is-warn { background:#fff4e0; color:#7a4b00; }
.af-nav-lic.is-bad { background:#fdecea; color:#a32b1c; }
@media (max-width:768px){ .af-user { max-width:58vw; } }
@media print { .af-user, .af-nav-account { display:none; } }
@media (max-width:768px){ .af-nav-more-list { min-width:min(18rem, 92vw); } }

/* ===== v1.46: ΚΑΕΚ-κουμπί + pop-up αναφοράς, αριθμοί χωρίς σπάσιμο ===== */
body.agro-front { overflow-wrap:break-word; }            /* (πριν: anywhere → έσπαγε τους αριθμούς στη μέση) */
.af-table td, .af-table th { overflow-wrap:normal; }
td[data-label="ΑΦΜ"], td[data-label="ΑΤΑΚ"], td[data-label="ΚΑΕΚ"], td[data-label="Αρ. Χωραφιού"], td[data-label="Έτος"], td[data-label="Στρέμματα"] { white-space:nowrap; }
.af-kaek-link { background:none; border:0; padding:.25rem .1rem; margin:0; font:inherit; font-weight:800; font-variant-numeric:tabular-nums; color:var(--agf-green-d); text-decoration:underline dotted; text-underline-offset:3px; cursor:pointer; min-height:2rem; }
.af-kaek-link:hover { text-decoration:underline; }
dialog.af-modal { width:min(40rem, 94vw); max-height:88vh; padding:0; border:2px solid var(--agf-green); border-radius:16px; background:var(--af-surface, #fff); color:var(--af-text, #1f2937); box-shadow:0 24px 60px rgba(0,0,0,.35); overflow:hidden; }
dialog.af-modal[open] { display:flex; flex-direction:column; }
dialog.af-modal::backdrop { background:rgba(16,24,40,.55); }
.af-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; background:var(--agf-green); color:var(--agf-on, #fff); }
.af-modal-head h2 { margin:0; font-size:1.125rem; font-variant-numeric:tabular-nums; }
.af-modal-x { background:transparent; color:inherit; border:2px solid currentColor; border-radius:10px; width:2.5rem; height:2.5rem; font-size:1rem; cursor:pointer; }
.af-modal-body { padding:14px 18px 18px; overflow-y:auto; }
.af-modal-sum { margin:0 0 12px; color:var(--af-muted, #6b7280); font-size:.9375rem; }
.af-modal-owner { border:1px solid var(--af-line, #e2e8dd); border-radius:12px; padding:10px 12px; margin:0 0 10px; }
.af-modal-owner-top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; align-items:baseline; }
.af-modal-name { font-size:1.0625rem; font-weight:700; }
.af-modal-afm { font-weight:600; color:var(--af-muted, #6b7280); font-variant-numeric:tabular-nums; }
.af-modal-tel { text-decoration:none; font-weight:600; }
.af-modal-leases { list-style:none; margin:8px 0 0; padding:0; }
.af-modal-leases li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; padding:6px 0; border-top:1px dashed var(--af-line, #e2e8dd); font-size:.9375rem; font-variant-numeric:tabular-nums; }
.af-modal-open { font-weight:700; }
.af-modal-foot { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:12px; }
.af-modal-empty, .af-modal-loading { padding:12px 0; }
@media (max-width:768px){ dialog.af-modal { width:96vw; max-height:92vh; } .af-modal-foot .af-btn { flex:1 1 100%; justify-content:center; } }
@media print { dialog.af-modal { display:none; } }

/* ===== v1.46: σελίδα «Πληρωμή συνδρομής» ===== */
.af-pay-card { border:2px solid var(--agf-green); border-radius:14px; padding:6px 14px; margin:12px 0; background:var(--af-surface-2, #f5f8f0); }
.af-pay-row { display:grid; grid-template-columns:minmax(9rem, 14rem) 1fr auto; gap:6px 12px; align-items:center; padding:10px 0; border-top:1px solid var(--af-line, #e2e8dd); }
.af-pay-row:first-child { border-top:0; }
.af-pay-label { font-weight:600; color:var(--af-muted, #6b7280); font-size:.9375rem; }
.af-pay-value { font-weight:700; font-size:1.0625rem; overflow-wrap:anywhere; }
.af-pay-value.is-mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing:.04em; font-size:1.1875rem; }
@media (max-width:640px){ .af-pay-row { grid-template-columns:1fr; } .af-pay-row .af-copy { justify-self:start; } }

/* v1.47.0 — αριθμοί που δεν σπάνε σε δύο γραμμές (ΚΑΕΚ στις Ειδοποιήσεις) */
.af-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums;}

/* v1.49.0 — Η επικεφαλίδα του πίνακα είναι ΠΑΝΤΑ αδιαφανής (σε κάποιους σχεδιασμούς το φόντο της
   ήταν «transparent» και οι γραμμές φαίνονταν από κάτω της). Στρώμα 1: το φόντο της κάρτας·
   στρώμα 2: το χρώμα επικεφαλίδας του σχεδιασμού. */
.af-table-scroll .af-table thead th,
.af-fixedhead .af-table thead th{
	background-color:var(--af-surface,#ffffff);
	background-image:linear-gradient(var(--af-th-bg,#f5f8f0),var(--af-th-bg,#f5f8f0));
	z-index:5;
	box-shadow:0 1px 0 var(--af-line,#d9e0d2);
}
/* Κολλημένο αντίγραφο της επικεφαλίδας όταν κυλάς τη σελίδα (βλ. frontend.js). */
.af-fixedhead{position:fixed;top:0;z-index:60;overflow:hidden;background:var(--af-surface,#ffffff);box-shadow:0 4px 10px rgba(0,0,0,.12);border-radius:0 0 8px 8px;}
.af-fixedhead .af-table{margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;}
.af-fixedhead .af-table th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:900px){.af-fixedhead{display:none !important;}}
@media print{.af-fixedhead{display:none !important;}}

/* v1.50.0 — πληρωμές πάντα ορατές + επικεφαλίδες στηλών */
.af-payhead { display:grid; grid-template-columns:150px 110px 1fr 130px 1fr auto; gap:8px; font-size:.8rem; font-weight:700; color:#5a6b54; margin:6px 0 2px; }
.af-payhead span:last-child { width:34px; }
@media (max-width:820px){ .af-payhead { display:none; } }
#af-lease-table th a.af-sortlink { color:inherit; text-decoration:none; }

/* v1.51.0 — ανέβασμα PDF πάνω στο «Νέο μισθωτήριο» */
.af-pdfdrop-in { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:26px 16px; border:3px dashed var(--agf-green,#4d7c2f); border-radius:16px; background:#f4f9ee; cursor:pointer; position:relative; }
.af-pdfdrop-in:hover { background:#eaf4df; }
.af-pdfdrop-in strong { font-size:1.2rem; color:var(--agf-green-d,#2f4f1c); }
.af-pdfdrop-in span { color:#4a5a44; }
.af-pdfdrop-ico { font-size:2.4rem; }
.af-pdfdrop-in input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.af-pdfdrop-busy { display:none; text-align:center; font-weight:700; margin:8px 0 0; }
.af-pdfdrop.is-busy .af-pdfdrop-busy { display:block; }

/* v1.52.0 — παράθυρο στοιχείων πληρωμής */
.af-paydlg { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9999; display:flex; align-items:center; justify-content:center; padding:16px; }
.af-paydlg[hidden] { display:none; }
.af-paydlg-box { background:#fff; color:#1a1a1a; border-radius:16px; padding:20px; width:100%; max-width:440px; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.af-paydlg-box h3 { margin:0 0 6px; }
.af-paydlg-box input, .af-paydlg-box select { width:100%; padding:10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; box-sizing:border-box; }
.af-paydlg-err { color:#c0392b; font-weight:700; }
table.af-sort2 th[data-s] { user-select:none; }

/* v1.53.0 — πλήθος μισθωτηρίων (έντονο, αναβοσβήνει) + πλαίσιο συνδρομής στην επικεφαλίδα */
.af-countbadge { display:inline-block; vertical-align:middle; margin-left:10px; padding:6px 16px; font-size:1.35rem; font-weight:800; line-height:1.2;
	color:#fff; background:#c0392b; border:4px solid #7a1f14; border-radius:14px; box-shadow:0 0 0 0 rgba(192,57,43,.7); animation:af-blink 1.2s ease-in-out infinite; }
.af-countbadge b { font-size:1.9rem; font-weight:900; margin-right:4px; }
@keyframes af-blink { 0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(192,57,43,.7); } 50% { opacity:.35; box-shadow:0 0 0 10px rgba(192,57,43,0); } }
@media (prefers-reduced-motion: reduce) { .af-countbadge { animation:none; } }
.af-subpill { margin-left:auto; padding:6px 12px; border-radius:12px; font-size:.9rem; line-height:1.3; background:rgba(255,255,255,.18); border:2px solid rgba(255,255,255,.7); color:#fff; text-align:center; }
.af-subpill small { opacity:.9; }
.af-subpill-warn { background:#f59e0b; border-color:#fff; color:#3b2400; }
.af-subpill-bad { background:#c0392b; border-color:#fff; }
@media (max-width:820px) { .af-subpill { flex:1 1 100%; margin-left:0; } }
@media print { .af-subpill { display:none; } }

/* v1.54.0 — παράθυρο πληρωμής φιλικό στο κινητό + παράθυρο πληρωμής συνδρομής */
body.af-modal-open { overflow:hidden; }
.af-paydlg-box { max-height:92vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.af-paydlg-box input, .af-paydlg-box select { font-size:16px; min-height:46px; }
.af-paydlg-box .af-field { margin:10px 0; }
.af-paydlg-box .af-field label { display:block; font-weight:700; margin-bottom:4px; }
.af-paydlg-box .af-btn { min-height:44px; }
@media (max-width:640px) {
	.af-paydlg { align-items:flex-end; padding:0; }
	.af-paydlg-box { max-width:none; border-radius:18px 18px 0 0; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); }
}
.af-paybtn { margin-top:6px; padding:6px 10px; font-size:.8125rem; white-space:nowrap; }
.af-quickpay { display:flex; flex-direction:column; align-items:flex-start; }
button.af-subpill { font:inherit; font-size:.9rem; cursor:pointer; }
.af-subpill-cta { display:inline-block; margin-left:6px; padding:2px 10px; border-radius:10px; background:#fff; color:#2f4f1c; font-weight:800; }
.af-subdlg-box { max-width:520px; }
.af-subdlg-box h4 { margin:14px 0 6px; }
.af-bankcard { border:1px solid #cdd5c6; border-radius:10px; padding:10px 12px; margin:6px 0; background:#f8fbf4; word-break:break-all; }
.af-bankcard code { font-size:.95rem; font-weight:700; }
.af-bankcard .af-copy { margin-left:6px; padding:4px 10px; min-height:0; }

/* v1.55.0 — πολλοί ιδιοκτήτες ανά μισθωτήριο + ένδειξη «N ΙΔΙΟΚΤΗΤΕΣ» */
.af-owners-badge { display:inline-block; margin:0 0 4px; padding:3px 10px; font:inherit; font-size:.85rem; font-weight:800; color:#fff; background:#c0392b; border:3px solid #7a1f14; border-radius:10px; cursor:pointer; animation:af-blink 1.2s ease-in-out infinite; }
.af-owners-badge-big { display:block; width:max-content; margin:0 0 10px; padding:6px 16px; font-size:1.3rem; cursor:default; }
@media (prefers-reduced-motion: reduce) { .af-owners-badge { animation:none; } }
.af-os-tag { color:#7a1f14; font-weight:700; }
.af-owners-split { grid-column:1 / -1; border:2px solid var(--agf-green,#4d7c2f); border-radius:14px; padding:12px 14px; background:#f8fbf4; }
.af-owners-split h3 { margin:0 0 4px; }
.af-os-primary { display:flex; justify-content:space-between; gap:10px; padding:8px 10px; background:#fff; border:1px solid #cdd5c6; border-radius:10px; margin:6px 0; }
.af-os-row { display:grid; grid-template-columns:1fr 120px auto; gap:8px; align-items:center; margin:6px 0; }
.af-os-row select, .af-os-row input { width:100%; padding:10px; border:1px solid #cdd5c6; border-radius:8px; font:inherit; box-sizing:border-box; }
.af-os-pct { display:flex; align-items:center; gap:4px; }
.af-os-err { color:#c0392b; font-weight:700; }
@media (max-width:640px) { .af-os-row { grid-template-columns:1fr 100px auto; } .af-os-row select, .af-os-row input { font-size:16px; } }

/* v1.56.0 — αναζήτηση ανά πεδίο */
.af-fsearch{margin:10px 0 14px;border:1px solid #cfe3d5;border-radius:10px;background:#f6fbf7;padding:8px 12px}
.af-fsearch>summary{cursor:pointer;font-weight:700;color:#1e5e35;padding:4px 0}
.af-fsearch>summary small{font-weight:400;color:#5b6f61}
.af-fsearch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:8px}
.af-fsearch-item label{display:block;font-size:13px;font-weight:700;margin-bottom:3px}
.af-fsearch-row{display:flex;gap:6px}
.af-fsearch-row input{flex:1;min-width:0;padding:9px;border:1px solid #b9c9be;border-radius:8px;font-size:16px}
.af-fsearch-row button{white-space:nowrap;padding:9px 12px;border:0;border-radius:8px;background:#1e8e4e;color:#fff;font-weight:700;cursor:pointer}
.af-fsearch-note{font-size:12px;color:#5b6f61;margin:8px 0 2px}

/* v1.56.0 — χρωματισμός λήξης */
.af-exp{display:inline-block;padding:3px 8px;border-radius:8px;font-size:12.5px;line-height:1.3;border:1px solid transparent;white-space:nowrap}
.af-exp b{font-size:12px}
.af-exp-green{background:#e8f6ec;color:#1e6b3a;border-color:#bfe3c9}
.af-exp-lime{background:#f1f8e2;color:#4b6b12;border-color:#d6e8a8}
.af-exp-yellow{background:#fff9d6;color:#7a6500;border-color:#efe08a}
.af-exp-amber{background:#ffeccc;color:#8a5200;border-color:#f3c77a}
.af-exp-orange{background:#ffd9b3;color:#8a3a00;border-color:#f0a35e}
.af-exp-red{background:#ffd2d2;color:#a50f0f;border-color:#f08a8a;animation:af-blink 1.2s ease-in-out infinite}
.af-exp-expired{background:#6b1010;color:#fff;border-color:#4a0a0a}
.af-exp-none{color:#888}
.af-quickchip-expiring{font-weight:800;font-size:15px;background:#fff0e0;border:2px solid #e8731a;color:#8a3a00;animation:af-blink 1.4s ease-in-out infinite}

/* v1.56.0 — αναφορά περιόδου */
.af-pr-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.af-pr-chip{padding:9px 14px;border-radius:999px;border:2px solid #1e8e4e;color:#1e5e35;background:#fff;font-weight:700;text-decoration:none}
.af-pr-chip.is-active{background:#1e8e4e;color:#fff}
.af-pr-custom{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:8px 0 14px}
.af-pr-custom input{padding:8px;border:1px solid #b9c9be;border-radius:8px;font-size:16px}
.af-pr-title{margin:12px 0 6px;font-size:1.1rem}
.af-pr .af-rt-due .af-rt-n{font-size:2rem}

/* v1.57.0 — ημερομηνίες ΗΗ/ΜΜ/ΕΕΕΕ + πλαίσιο περιόδου */
.af-dmy{display:inline-flex;align-items:center;gap:6px;position:relative;max-width:100%}
.af-dmy-in{width:9.5em;padding:9px;border:1px solid #b9c9be;border-radius:8px;font-size:16px;letter-spacing:.5px}
.af-dmy-btn{padding:7px 9px;border:1px solid #b9c9be;border-radius:8px;background:#fff;cursor:pointer;font-size:16px}
.af-dmy-cal{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.af-periodbox{margin:10px 0 14px;padding:10px 14px;border:2px solid #1e8e4e;border-radius:12px;background:#f3faf5}
.af-periodbox h3{margin:0 0 6px}
.af-durbtns{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}

/* v1.58.0 — συνοχή σελίδων ελέγχου */
.af-infotabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.af-infotab{padding:9px 14px;border-radius:999px;border:2px solid #b9c9be;background:#fff;color:#2b3a30;font-weight:700;text-decoration:none}
.af-infotab.is-active{background:#1e8e4e;border-color:#1e8e4e;color:#fff}
.af-infotab-help{margin:0 0 14px;padding:8px 12px;border-left:4px solid #1e8e4e;background:#f3faf5;border-radius:6px;font-size:14px}
.af-nav-sub{display:block;font-weight:400;font-size:11.5px;opacity:.7;margin-top:1px}

/* v1.59.0 — αναφορές / ανανεώσεις */
.af-repcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:14px}
.af-repcard{display:block;padding:14px;border:2px solid #cfe3d5;border-radius:12px;background:#fff;text-decoration:none;color:inherit}
.af-repcard:hover{border-color:#1e8e4e;background:#f3faf5}
.af-repcard-ico{font-size:28px;display:block}
.af-repcard b{display:block;font-size:1.05rem;margin:4px 0}
.af-repcard small{color:#5b6f61;line-height:1.35;display:block}
.af-exp-link{color:inherit;text-decoration:none;display:block}
.af-exp-link:hover{text-decoration:underline}
.af-renew{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#af-periodbox:target{animation:af-flash 2.2s ease-out 1}
@keyframes af-flash{0%{box-shadow:0 0 0 6px rgba(232,115,26,.7)}100%{box-shadow:0 0 0 0 rgba(232,115,26,0)}}

/* v1.63.0 — κλείδωμα πληρωμένων */
.af-paylocked{display:inline-block;padding:6px 12px;border-radius:999px;font-weight:700;cursor:default}
.af-lockbox{margin:8px 0 12px;padding:10px 14px;border:2px solid #1e8e4e;border-radius:10px;background:#eaf7ee;color:#14532d}
.af-lockbox-open{border-color:#e8731a;background:#fff3e6;color:#7a3a00}

/* v1.64.0 — ανανέωση από τη λίστα */
.af-renewbtn{margin-top:6px;min-height:36px !important;padding:6px 12px !important;font-size:.85rem !important;border-color:#e8731a !important;color:#8a3a00 !important;background:#fff3e6 !important;font-weight:700}
.af-renewed{font-size:.8rem;font-weight:700;color:#1e6b3a}
.af-renew-prev{padding:8px 10px;background:#f3faf5;border-radius:8px;margin:6px 0}

/* v1.67.0 */
.af-splitbtn{margin-top:6px;min-height:36px !important;padding:6px 12px !important;font-size:.85rem !important;border-color:#2b7bd9 !important;color:#124b8f !important;background:#eaf3ff !important;font-weight:700}
.af-delbtn{margin-top:6px;min-height:36px !important;padding:6px 10px !important;font-size:.9rem !important;border-color:#c0392b !important;background:#fff !important}
.af-dl-msg{font-weight:700;color:#8e1b10;padding:8px 10px;background:#fdecea;border-radius:8px}

/* v1.69.0 — κουμπιά στο κελί περιόδου: ποτέ εκτός πλαισίου, σπάνε σε γραμμές */
.af-expcell{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;max-width:100%}
.af-exp-actions{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.af-exp-actions .af-btn{white-space:normal;margin:0 !important;max-width:100%}
.af-exp-actions .af-renewed{display:inline-block}
.af-delbtn{background:#fff !important;color:#a32d22 !important;font-weight:600}
@media (max-width:720px){
 #af-lease-table td[data-label="Περίοδος / Λήξη"]{flex-wrap:wrap}
 #af-lease-table td[data-label="Περίοδος / Λήξη"] .af-expcell{align-items:flex-end;flex:1 1 55%;min-width:0}
 #af-lease-table td[data-label="Περίοδος / Λήξη"] .af-exp-actions{justify-content:flex-end}
}

/* v1.70.0 — ανανεωμένα: ουδέτερο χρώμα */
.af-exp-renewed{background:#eef2f0;border-color:#c9d6cf;color:#3f5a4b}

.af-chains td,.af-chains th{text-align:center;white-space:nowrap}
.af-chains td:first-child,.af-chains th:first-child,.af-chains td:nth-child(2){text-align:left}
.af-chains a{color:inherit;text-decoration:none;display:block}
.af-ch-paid{background:#dff3e5}.af-ch-part{background:#fff3cf}.af-ch-due{background:#fbdcd8}.af-ch-empty{color:#aaa}

/* v1.71.0 */
.af-searchwrap{position:relative;display:block;width:100%}
.af-searchwrap input[type="search"]{width:100%;padding-right:44px;box-sizing:border-box}
.af-searchwrap input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}
.af-searchclear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:rgba(0,0,0,.08);color:#444;font-size:16px;line-height:1;cursor:pointer;padding:0}
.af-searchclear[hidden]{display:none}
.af-paylocked[data-unlock]{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}
@media (max-width:720px){
 #af-lease-table td[data-primary]::before{display:block;content:"Ιδιοκτήτης";flex:0 0 40%;font-size:.8125rem;font-weight:600;color:#6b7280;text-align:left}
}

/* v1.73.0 — μπάρες συνόλων */
.af-totals{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;margin:10px 0;padding:10px;background:#f3f6ef;border:1px solid #d9e0d2;border-radius:12px}
.af-tot-title{flex:1 0 100%;font-size:.8rem;font-weight:700;color:#4b5b3f;text-transform:uppercase;letter-spacing:.3px}
.af-tot{flex:1 1 110px;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border-radius:10px;padding:6px 10px;min-width:0}
.af-tot b{font-size:1.05rem;color:#2c3e1f;overflow-wrap:anywhere}
.af-tot small{font-size:.72rem;color:#6b7280}
.af-tot-ok b{color:#1e7a43}.af-tot-due b{color:#b3261e}
.af-totals-live:empty{display:none}
#af-bulk-sum{margin-left:6px;font-weight:600}
@media (max-width:720px){.af-tot{flex:1 1 44%}}

.af-rn-tot{margin-top:6px;padding-top:6px;border-top:1px dashed #b9c9b0}

/* v1.76.0 — έκδοση στην επικεφαλίδα, κελί πληρωμής, πίνακας ελέγχου, ρυθμίσεις */
.af-ver{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.22);font-size:.68rem;font-weight:700;vertical-align:middle;letter-spacing:.2px}
.af-paybox{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:150px}
.af-pg{width:100%;max-width:220px;height:8px;border-radius:999px;background:#e3e8dd;overflow:hidden}
.af-pg>i{display:block;height:100%;background:#2e9e57;border-radius:999px}
.af-pg-big{max-width:none;height:14px}
.af-payline{font-size:.8rem;color:#555}
.af-payrest{font-size:.9rem}
.af-payrest b{color:#b3261e}
.af-paybtns{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.af-paybtns .af-paybtn{margin:0;padding:7px 11px;font-size:.82rem}
.af-payfull{border-color:#1e8e4e !important;color:#14532d !important;background:#eaf7ee !important;font-weight:700}
.af-paysaved{border-left:4px solid #1e8e4e;margin-bottom:14px;background:#eaf7ee;padding:10px 12px;border-radius:8px}
tr[id^="lease-"]{scroll-margin-top:96px}
tr[id^="lease-"]:target{animation:af-rowflash 2.4s ease-out 1;outline:2px solid #1e8e4e;outline-offset:-2px}
@keyframes af-rowflash{0%{background:#fff3b0}100%{background:transparent}}
@media (max-width:720px){
 #af-lease-table td[data-label="Πληρωμή"]{flex-wrap:wrap}
 #af-lease-table td[data-label="Πληρωμή"] .af-quickpay{flex:1 1 55%;align-items:flex-end}
 #af-lease-table .af-paybox{align-items:flex-end;min-width:0;width:100%}
 #af-lease-table .af-paybox .af-pg{max-width:100%}
 #af-lease-table .af-paybtns{justify-content:flex-end;width:100%}
 #af-lease-table .af-paybtns .af-paybtn{flex:1 1 auto}
 #af-lease-table .af-delbtn{min-width:44px;padding:6px 10px !important}
}
.af-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}
.af-chips-l{font-size:.85rem;color:#555}
.af-chip-y{display:inline-block;padding:6px 12px;border-radius:999px;border:1px solid #cfd8c6;background:#fff;color:#2c3e1f;text-decoration:none;font-weight:600;font-size:.85rem}
.af-chip-y.is-on{background:#4d7c2f;border-color:#4d7c2f;color:#fff}
.af-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:10px 0}
.af-kpi{display:flex;flex-direction:column;padding:10px 12px;background:#f3f6ef;border:1px solid #d9e0d2;border-radius:12px;min-width:0}
.af-kpi-n{font-size:1.25rem;font-weight:800;color:#2c3e1f;overflow-wrap:anywhere}
.af-kpi-l{font-size:.75rem;color:#6b7280}
.af-kpi-ok .af-kpi-n{color:#1e7a43}
.af-kpi-due{background:#fbeae8;border-color:#f0c6c1}.af-kpi-due .af-kpi-n{color:#b3261e}
.af-soon{list-style:none;margin:6px 0;padding:0}
.af-soon li{padding:6px 0;border-bottom:1px dashed #d9e0d2;display:flex;justify-content:space-between;gap:8px}
.af-soon-d{font-weight:700;color:#8a3a00;white-space:nowrap}
.af-fin th,.af-fin td{white-space:nowrap}
.af-fin-ok{color:#1e7a43}.af-fin-due{color:#b3261e}
.af-fin tfoot td{background:#f3f6ef;font-weight:700}
.af-fin .af-pg{min-width:70px}
.af-fin-o{border:1px solid #d9e0d2;border-radius:10px;margin:6px 0;background:#fff}
.af-fin-o>summary{cursor:pointer;padding:10px 12px;display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;list-style:none}
.af-fin-o>summary::-webkit-details-marker{display:none}
.af-fin-name{font-weight:700}
.af-fin-nums small{color:#6b7280}
.af-fin-o[open]>summary{border-bottom:1px solid #e3e8dd;background:#f7f9f4}
.af-fin-o .af-fin-pays{margin:8px 12px;width:calc(100% - 24px)}
.af-fin-o>p{margin:6px 12px 10px}
.af-repcard-danger{border-color:#e0a39d !important;background:#fff5f4 !important}
.af-danger{border:2px solid #c0392b}
.af-danger h3{color:#a32d22}
.af-wipe-opt{display:block;margin:8px 0;padding:10px;border:1px solid #e0c3bf;border-radius:10px;background:#fff}
@media (max-width:720px){ .af-fin-pays td[data-label]{display:flex;justify-content:space-between;gap:10px} .af-fin-pays td[data-label]::before{content:attr(data-label);font-weight:600;color:#6b7280} .af-fin-pays thead{display:none} .af-fin-pays tr{display:block;border-bottom:1px solid #e3e8dd;padding:4px 0} }

/* v1.77.0 */
.af-seq{display:inline-block;padding:2px 8px;border-radius:8px;background:#eef2e8;color:#2c3e1f;font-size:.85rem}

/* v1.78.0 */
.af-explock{display:inline-block;padding:4px 10px;border-radius:999px;background:#eceff1;border:1px solid #b8c0c6;color:#37474f;font-size:.78rem;font-weight:700}
.af-lockbanner{border-left:4px solid #607d8b;background:#eceff1}
tr[data-href]{cursor:pointer}
@media (hover:hover){tr[data-href]:hover{filter:brightness(.97)}}


/* v1.79.0 — γραμμές πληρωμών στη λίστα, toast αποθήκευσης, σειρά αποθήκευσης */
.af-paylist-cell { margin-top:6px; display:flex; flex-direction:column; gap:3px; width:100%; max-width:100%; }
.af-payitem { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; font-size:12.5px; line-height:1.3; background:#f3f7ef; border:1px solid #dfe8d6; border-radius:6px; padding:3px 7px; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; word-break:break-word; }
.af-payitem b { white-space:nowrap; }
.af-payitem span { color:#4b5563; }
.af-payitem span + span::before { content:'/ '; color:#9ca3af; }
.af-paybox { max-width:100%; box-sizing:border-box; }
@media (max-width:700px){ .af-payitem { font-size:13px; } td[data-label="Πληρωμή"] { min-width:0; max-width:100%; } }
.af-toast { position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:99999; background:#1e8e4e; color:#fff; padding:10px 18px; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,.25); font-weight:600; transition:opacity .5s; }
.af-toast-hide { opacity:0; pointer-events:none; }
.af-saverow { margin:14px 0; }
