/* Golden Sites — πλοήγηση admin & πελατών (sidebar, μπάρα, κάτω μενού στο κινητό, ειδοποιήσεις). */
:root {
  --an-ink: #1b2430; --an-text: #3d4856; --an-mute: #6a7585; --an-line: #e6e8ec; --an-page: #f6f7f9;
  --an-gold: #d99a1c; --an-gold-deep: #8f5f06; --an-wash: #fbf3e0; --an-red: #d93a2f;
  --an-safe-b: env(safe-area-inset-bottom, 0px); --an-tab-h: 64px;
}

/* ---------- κοινά ---------- */
.an-ico { flex: none; display: block; }
.an-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 14px; }
.an-brand-link { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--an-ink); text-decoration: none; }
.an-brand-link img { border-radius: 10px; box-shadow: 0 1px 2px rgba(27,36,48,.12); flex: none; }
.an-brand-link strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.an-brand-link small { display: block; color: var(--an-mute); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.an-close { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--an-ink); cursor: pointer; }
.an-close:hover { background: var(--an-page); }

.an-nav { display: flex; flex-direction: column; gap: 2px; }
.an-group { margin: 16px 12px 6px; color: var(--an-mute); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.an-group:first-child { margin-top: 2px; }
.an-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--an-text); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.an-item .an-ico { color: #8a93a1; transition: color .15s; }
.an-item > span:not(.an-badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-item:hover { background: var(--an-page); color: var(--an-ink); }
.an-item:hover .an-ico { color: var(--an-ink); }
.an-item[aria-current="page"] { background: var(--an-wash); color: var(--an-ink); box-shadow: inset 3px 0 0 var(--an-gold); }
.an-item[aria-current="page"] .an-ico { color: var(--an-gold-deep); }
.an-item-quiet { color: var(--an-mute); }
.an-item:focus-visible, .an-tab:focus-visible, .an-bell:focus-visible, .an-subitems a:focus-visible { outline: 2px solid var(--an-gold-deep); outline-offset: 1px; }
.an-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--an-red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.an-sub > summary { list-style: none; }
.an-sub > summary::-webkit-details-marker { display: none; }
.an-chev { color: var(--an-mute); transition: transform .2s; }
.an-sub[open] .an-chev { transform: rotate(180deg); }
.an-subitems { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 23px; padding-left: 12px; border-left: 2px solid var(--an-line); }
.an-subitems a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--an-mute); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.an-subitems a:hover { background: var(--an-page); color: var(--an-ink); }
.an-subitems a[aria-current="page"] { color: var(--an-ink); background: var(--an-wash); }
.an-nav-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--an-line); }

.an-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--an-ink); text-decoration: none; transition: background .15s; }
.an-bell:hover, .an-bell.is-active { background: var(--an-wash); }
.an-bell-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid #fff; background: var(--an-red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 14px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- κάτω μενού (κινητό) ---------- */
.an-tabbar { display: none; }
.an-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 2px 4px; border: 0; background: none; color: #7b8494; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.an-tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-tab-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 999px; transition: background .2s, transform .12s; }
.an-tab:active .an-tab-ico { transform: scale(.92); }
.an-tab[aria-current="page"] { color: var(--an-ink); }
.an-tab[aria-current="page"] .an-tab-ico { background: var(--an-wash); color: var(--an-gold-deep); }
.an-tab-badge { position: absolute; top: -3px; left: 30px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid #fff; background: var(--an-red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 14px; text-align: center; }
.an-tab-dot { position: absolute; top: 2px; left: 32px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; background: var(--an-red); }

/* ---------- κέντρο ειδοποιήσεων ---------- */
.an-page { max-width: 760px; }
.an-h2 { margin: 22px 0 10px; color: var(--an-ink); font-size: 16px; font-weight: 700; }
.an-attention { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.an-attn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 14px; border: 1px solid var(--an-line); border-radius: 14px; background: #fff; color: var(--an-text); text-decoration: none; }
.an-attn .an-ico { grid-row: span 2; color: var(--an-mute); }
.an-attn strong { color: var(--an-ink); font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.an-attn span { font-size: 12.5px; color: var(--an-mute); line-height: 1.3; }
.an-attn.is-hot { border-color: #f3c9c4; background: #fff6f5; }
.an-attn.is-hot .an-ico, .an-attn.is-hot strong { color: var(--an-red); }
.an-attn:hover { border-color: var(--an-gold); }
.an-inbox { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--an-line); border-radius: 14px; overflow: hidden; }
.an-note { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--an-line); color: var(--an-text); text-decoration: none; }
.an-note:first-child { border-top: 0; }
a.an-note:hover { background: var(--an-page); }
.an-note.is-new { background: #fffaf0; }
.an-note-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--an-page); color: var(--an-mute); }
.an-kind-ticket { background: #eef2ff; color: #4054b2; }
.an-kind-payment { background: #e6f3ee; color: #1f7a5a; }
.an-kind-invoice { background: var(--an-wash); color: var(--an-gold-deep); }
.an-kind-expiry { background: #fff1e6; color: #b45309; }
.an-kind-lead { background: #f3e8ff; color: #7c3aed; }
.an-note-main { min-width: 0; }
.an-note-main strong { display: block; color: var(--an-ink); font-size: 14.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.an-note-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.an-note time { display: block; margin-top: 4px; color: var(--an-mute); font-size: 12.5px; }
.an-note-new { align-self: center; padding: 3px 8px; border-radius: 999px; background: var(--an-red); color: #fff; font-size: 11px; font-weight: 700; }
.an-inbox-empty { padding: 44px 20px; text-align: center; color: var(--an-mute); }
.an-inbox-empty .an-ico { margin: 0 auto 8px; opacity: .6; }
.an-hint { margin-top: 12px; color: var(--an-mute); font-size: 13px; }
.an-hint a { color: var(--an-gold-deep); font-weight: 600; }

/* ---------- ADMIN ---------- */
.an-admin { background: var(--an-page); }
.an-flash { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid #bfe3d3; background: #e6f3ee; color: #14583f; font-size: 14px; }
.an-bar { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 20px 8px 24px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--an-line); position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.an-bar h1 { flex: 1; min-width: 0; margin: 0; color: var(--an-ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-bar-actions { display: flex; align-items: center; gap: 8px; }
.an-barlogo { display: none; }
.an-btn-quiet { min-height: 38px; padding: 0 14px; border: 1px solid var(--an-line); border-radius: 10px; background: #fff; color: var(--an-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.an-btn-quiet:hover { border-color: var(--an-gold); color: var(--an-gold-deep); }
.an-main { padding: 28px 28px 48px; }

@media (min-width: 768px) {
  .an-admin .an-side { position: sticky; top: 0; width: 268px; flex: none; height: 100vh; overflow-y: auto; padding: 18px 12px 24px; background: #fff; border-right: 1px solid var(--an-line); }
  .an-admin .gc-tabs { top: 60px; }
}

@media (max-width: 767.98px) {
  .an-admin .an-side { padding: 14px 12px calc(24px + var(--an-safe-b)); }
  .an-admin .an-close { display: inline-flex; }
  .an-admin .an-side .an-item { min-height: 46px; }
  .an-bar { min-height: 56px; padding: 6px 8px 6px 14px; }
  .an-bar h1 { font-size: 17px; }
  .an-barlogo { display: inline-flex; flex: none; }
  .an-barlogo img { border-radius: 9px; }
  .an-bar-logout { display: none; }
  .an-main { padding: 16px 16px calc(var(--an-tab-h) + 28px + var(--an-safe-b)); }
  .an-admin .an-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--an-tab-h) + var(--an-safe-b)); padding: 4px 4px var(--an-safe-b); background: rgba(255,255,255,.96); border-top: 1px solid var(--an-line); box-shadow: 0 -6px 20px rgba(27,36,48,.06); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
  .an-attention { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .an-attn { grid-template-columns: auto auto 1fr; grid-template-rows: auto; padding: 12px 14px; }
  .an-attn .an-ico { grid-row: auto; }
  .an-attn strong { font-size: 19px; }
  .an-attn span { font-size: 13.5px; }
}

/* ---------- ΠΕΛΑΤΗΣ ---------- */
.an-topbar { display: none; }
.an-scrim { display: none; }
.an-account .an-cside { gap: 6px; padding: 20px 12px 24px; overflow-y: auto; }
.an-account .an-cside .an-nav { flex: 1; }
.an-account .an-nav-foot { margin-top: auto; }

@media (max-width: 900px) {
  .an-account .an-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 40; min-height: 56px; padding: 6px 8px 6px 14px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--an-line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
  .an-account .an-topbar .an-brand-link img { border-radius: 9px; }
  .an-account .an-cside { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; display: flex; flex-direction: column; width: min(86vw, 320px); height: auto; padding: 14px 12px calc(24px + var(--an-safe-b)); background: #fff; border-right: 1px solid var(--an-line); border-bottom: 0; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  body.gp-menu-open .an-cside { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(27,36,48,.22); }
  .an-account .an-close { display: inline-flex; }
  .an-account .an-cside .an-item { min-height: 46px; }
  .an-account .an-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(27,36,48,.45); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  body.gp-menu-open .an-scrim { opacity: 1; pointer-events: auto; }
  body.gp-menu-open { overflow: hidden; }
  .an-account .an-cmain { padding: 20px 16px calc(var(--an-tab-h) + 28px + var(--an-safe-b)); }
  .an-account .an-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--an-tab-h) + var(--an-safe-b)); padding: 4px 4px var(--an-safe-b); background: rgba(255,255,255,.96); border-top: 1px solid var(--an-line); box-shadow: 0 -6px 20px rgba(27,36,48,.06); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
  .an-has-tabbar .gpp-banner { bottom: calc(var(--an-tab-h) + 12px + var(--an-safe-b)); }
}

@media (prefers-reduced-motion: reduce) {
  .an-account .an-cside, .an-scrim, .an-tab-ico, .an-chev { transition: none; }
}

/* ---------- μπρος / πίσω ---------- */
.an-navbtns { display: flex; align-items: center; gap: 2px; flex: none; }
.an-navbtns:not(:has(.an-navbtn:not([hidden]))) { display: none; }
.an-navbtn { display: inline-flex; align-items: center; gap: 2px; height: 40px; min-width: 40px; padding: 0 10px 0 6px; border: 1px solid var(--an-line); border-radius: 12px; background: #fff; color: var(--an-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, transform .1s; }
.an-navbtn[hidden] { display: none; }
.an-navbtn:hover { border-color: var(--an-gold); background: var(--an-wash); }
.an-navbtn:active { transform: scale(.95); }
.an-navfwd { padding: 0 6px; }
.an-navlabel { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-navlabel:empty { display: none; }
.an-account .an-topbar { justify-content: flex-start; }
.an-account .an-topbar .an-bell { margin-left: auto; }
@media (max-width: 767.98px) {
  .an-admin.an-can-back .an-barlogo { display: none; }
  .an-admin .an-navlabel { display: none; }
  .an-admin .an-navbtn { padding: 0 8px 0 6px; }
}
@media (max-width: 900px) {
  .an-account.an-can-back .an-topbar .an-brand-link img { display: none; }
  .an-account .an-navlabel { display: none; }
}

/* ---------- γρήγορες ενέργειες invoice ---------- */
.an-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.an-quick form { display: contents; }
.an-qbtn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1px solid var(--an-line); border-radius: 14px; background: #fff; color: var(--an-ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.an-qbtn small { display: block; color: var(--an-mute); font-size: 12.5px; font-weight: 500; }
.an-qbtn .an-ico { color: var(--an-gold-deep); }
.an-qbtn:hover { border-color: var(--an-gold); background: var(--an-wash); }
.an-qbtn:active { transform: scale(.98); }
.an-qbtn-good { border-color: #bfe3d3; background: #effaf5; }
.an-qbtn-good .an-ico { color: #1f7a5a; }
.an-qbtn-good:hover { border-color: #1f7a5a; background: #e6f3ee; }
/* Invoice σε απόκρυψη: φαίνεται «διαγραμμένο» μόνο στον admin. */
.an-struck td, .an-struck td a, .an-struck-text { text-decoration: line-through; text-decoration-thickness: 1.5px; color: #9aa2ae !important; }
.an-struck td .gp-tag { text-decoration: none; }
.an-struck { background: #fafafa; }
.an-danger-btn { color: var(--an-red) !important; }
.an-danger-btn:hover { border-color: #f3c9c4 !important; background: #fff6f5 !important; }
.an-danger { border-color: #f3c9c4; }
.an-danger > summary { color: var(--an-red) !important; }
.an-qbtn-lost .an-ico { color: var(--an-mute); }
.an-qbtn-lost:hover { border-color: #cdd2da; background: var(--an-page); }
.an-quick-done { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #e6f3ee; color: #14583f; font-weight: 600; }
.an-paysheet { margin-bottom: 12px; padding: 0 18px; }
.an-paysheet > summary { padding: 14px 0; color: var(--an-ink); font-weight: 700; cursor: pointer; }
.an-paysheet[open] { padding-bottom: 18px; }
.an-paysheet:not(#an-pay) > summary { color: var(--an-mute); font-weight: 600; }
#an-pay { border-color: #e9d9b4; }
.an-paylist { display: grid; gap: 10px; }
.an-payitem { background: #fff; border: 1px solid #e6e8ec; border-radius: 14px; padding: 12px 14px; }
.an-payhead { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.an-payhead b { color: #1b2430; font-size: 15px; }
.an-payamt { font-weight: 800; color: #1f7a5a; white-space: nowrap; font-size: 16px; }
.an-paymeta { font-size: 13px; color: #6a7585; margin-top: 2px; }
.an-paynote { margin-top: 8px; padding: 8px 10px; background: #f7f8fa; border-radius: 10px; font-size: 14px; color: #3d4856; white-space: pre-line; overflow-wrap: anywhere; }
.an-payedit > summary { font-size: 13px; color: #8f5f06; font-weight: 600; cursor: pointer; margin-top: 8px; }
.an-rowact { text-align: right; white-space: nowrap; }
.an-rowact form { display: inline-block; margin: 0 0 0 6px; }
/* Καρτέλα πελάτη: υπηρεσίες σε αναμονή πληρωμής (εκτός υπολοίπου) */
.gc-svc-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: #fbf3e0; border: 1px solid #f0dcaa; color: #5c4210; text-decoration: none; }
.gc-svc-alert-ic { width: 28px; height: 28px; border-radius: 50%; background: #d99a1c; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gc-svc-alert-txt { display: flex; flex-direction: column; min-width: 0; }
.gc-svc-alert-txt b { font-size: 14.5px; color: #4a3409; }
.gc-svc-alert-txt span { font-size: 12.5px; color: #7a5c1c; }
.gc-svc-alert em { font-style: normal; font-weight: 700; font-size: 13.5px; color: #8f5f06; white-space: nowrap; }
@media (max-width: 600px) { .gc-svc-alert em { display: none; } }
/* Dashboard */
.db { display: grid; gap: 16px; max-width: 1100px; }
.db-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 2px 2px 0; }
.db-hello h2 { margin: 2px 0 0; font-size: 24px; font-weight: 800; color: #1b2430; letter-spacing: -.02em; }
.db-date { margin: 0; font-size: 13px; color: #6a7585; }
.db-pill { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.db-pill.is-warn { background: #fbf3e0; color: #8f5f06; }
.db-pill.is-good { background: #e6f3ee; color: #14583f; }
.db-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .db-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.db-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; background: #fff; border: 1px solid #e6e8ec; border-radius: 18px; color: inherit; text-decoration: none; min-width: 0; }
.db-kpi:active { transform: scale(.985); }
.db-kpi-ico { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #f1f3f5; color: #3d4856; margin-bottom: 8px; }
.db-kpi-label { font-size: 12.5px; color: #6a7585; font-weight: 600; }
.db-kpi strong { font-size: 21px; font-weight: 800; color: #1b2430; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kpi small { font-size: 12px; color: #8a93a1; line-height: 1.35; }
.db-kpi small b { font-weight: 700; color: #a12c22; }
.db-kpi small b.up { color: #1f7a5a; }
.db-kpi-due { background: linear-gradient(160deg, #1b2430, #2c3646); border-color: #1b2430; }
.db-kpi-due .db-kpi-ico { background: rgba(255,255,255,.12); color: #f0c35a; }
.db-kpi-due .db-kpi-label, .db-kpi-due small { color: rgba(255,255,255,.7); }
.db-kpi-due strong { color: #fff; }
.db-kpi-due small b { color: #ffb4a8; }
.db-kpi-in .db-kpi-ico { background: #e6f3ee; color: #1f7a5a; }
.db-card { background: #fff; border: 1px solid #e6e8ec; border-radius: 18px; padding: 14px 14px 6px; }
.db-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #1b2430; }
.db-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.db-card-head h3 { margin: 0; }
.db-card-head a { font-size: 13.5px; font-weight: 600; color: #8f5f06; text-decoration: none; }
.db-count { font-size: 12px; font-weight: 700; background: #fbf3e0; color: #8f5f06; padding: 3px 9px; border-radius: 999px; }
.db-list { display: flex; flex-direction: column; }
.db-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f2f5; color: inherit; text-decoration: none; }
.db-list > .db-item:first-child { border-top: 0; }
.db-item-main { min-width: 0; display: flex; flex-direction: column; }
.db-item-main b { font-size: 14.5px; font-weight: 600; color: #1b2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-item-main small { font-size: 12.5px; color: #6a7585; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-item em { font-style: normal; font-weight: 700; font-size: 14px; color: #1b2430; white-space: nowrap; }
.db-item em.is-good { color: #1f7a5a; }
.db-item em.db-when { font-weight: 500; font-size: 12px; color: #8a93a1; }
.db-dot { width: 10px; height: 10px; border-radius: 50%; background: #c3c9d2; margin: 0 4px; }
.db-dot.is-warn { background: #d99a1c; } .db-dot.is-bad { background: #d93a2f; } .db-dot.is-good { background: #1f7a5a; } .db-dot.is-info { background: #4a6fd8; }
.db-days { width: 44px; height: 44px; border-radius: 12px; background: #f1f3f5; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: #3d4856; }
.db-days b { font-size: 16px; font-weight: 800; } .db-days small { font-size: 10px; margin-top: 2px; }
.db-days.is-warn { background: #fbf3e0; color: #8f5f06; } .db-days.is-bad { background: #fdecea; color: #a12c22; }
.db-ev { width: 32px; height: 32px; border-radius: 10px; background: #eaf0fd; color: #2c4aa0; display: flex; align-items: center; justify-content: center; }
.db-empty { margin: 4px 0 10px; font-size: 14px; color: #8a93a1; }
.db-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.db-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: #fff; border: 1px solid #e6e8ec; border-radius: 16px; color: #1b2430; text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; }
.db-quick a .an-ico { color: #8f5f06; }
.db-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.db-mini div { background: #f7f8fa; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.db-mini strong { font-size: 19px; font-weight: 800; color: #1b2430; }
.db-mini span { font-size: 11.5px; color: #6a7585; }
@media (min-width: 900px) {
  .db { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-hello, .db-kpis, .db-quick { grid-column: 1 / -1; }
}
/* Διακόπτης «μόνο Elorus» */
.an-switch-form { margin-top: 10px; }
.an-switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 600; color: #3d4856; cursor: pointer; }
.an-switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #d5dae1; transition: background .2s; flex: none; }
.an-switch-dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.an-switch.is-on { color: #1b2430; }
.an-switch.is-on .an-switch-track { background: #1f7a5a; }
.an-switch.is-on .an-switch-dot { transform: translateX(18px); }
/* Γρήγορη αλλαγή κατάστασης υπηρεσίας */
.an-qs-form { margin-top: 6px; }
select.an-qs { display: block; margin-top: 6px; max-width: 100%; font-size: 13px; padding: 6px 28px 6px 10px; border: 1px solid #e3e6eb; border-radius: 10px; background-color: #fff; color: #3d4856; font-weight: 600; }
.an-row-invoice { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #8f5f06; text-decoration: none; }
.an-qs-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
/* Λίστα πελατών */
.cl-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 12px; }
.cl-search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e3e6eb; border-radius: 14px; padding: 4px 4px 4px 14px; }
.cl-search:focus-within { border-color: #d99a1c; box-shadow: 0 0 0 3px rgba(217,154,28,.15); }
.cl-search-ico { color: #8a93a1; flex: none; }
.cl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; box-shadow: none; }
.cl-search button { border: 0; background: #1b2430; color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.cl-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-buttons .gp-btn { display: inline-flex; align-items: center; gap: 6px; }
.cl-sort { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.cl-sort::-webkit-scrollbar { display: none; }
.cl-sort > span { font-size: 13px; color: #8a93a1; margin-right: 2px; white-space: nowrap; }
.cl-sort a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid #e3e6eb; background: #fff; color: #3d4856; font-size: 14px; font-weight: 600; text-decoration: none; }
.cl-sort a.is-on { background: #1b2430; border-color: #1b2430; color: #fff; }
.cl-found { font-size: 14px; color: #6a7585; margin: 0 0 10px; }
.cl-list { background: #fff; border: 1px solid #e6e8ec; border-radius: 18px; overflow: hidden; }
.cl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; border-top: 1px solid #eef0f3; color: inherit; text-decoration: none; transition: background .15s; }
.cl-row:first-child { border-top: 0; }
.cl-row:hover { background: #fbf8f1; }
.cl-row:active { background: #f6efe0; }
.cl-avatar { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; letter-spacing: .02em; flex: none; }
.cl-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cl-name b { font-size: 16px; font-weight: 700; color: #1b2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-badge { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #fbf3e0; color: #8f5f06; flex: none; }
.cl-email { font-size: 13.5px; color: #6a7585; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: #6a7585; }
.cl-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cl-meta .an-ico { color: #a0a8b4; }
.cl-meta .is-warn, .cl-meta .is-warn .an-ico { color: #b7791f; }
.cl-meta .is-good, .cl-meta .is-good .an-ico { color: #1f7a5a; }
.cl-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.cl-owes { font-size: 15px; font-weight: 700; color: var(--gp-bad, #c0392b); white-space: nowrap; }
.cl-side small { font-size: 11.5px; color: #8a93a1; }
.cl-ok { width: 28px; height: 28px; border-radius: 50%; background: #e6f3ee; color: #1f7a5a; display: flex; align-items: center; justify-content: center; }
.cl-chev { font-size: 24px; color: #c3c9d2; line-height: 1; }
@media (max-width: 520px) {
  .cl-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px 12px; gap: 11px; }
  .cl-chev { display: none; }
  .cl-avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
  .cl-buttons { width: 100%; }
  .cl-buttons .gp-btn { flex: 1; justify-content: center; }
}
/* Επεξεργασία invoice */
.an-inv-edit .gp-panel { margin-bottom: 16px; }
.an-lines { display: grid; gap: 12px; margin-bottom: 16px; }
.an-line { background: #fff; border: 1px solid #e6e8ec; border-radius: 16px; padding: 14px 14px 10px; }
.an-line .gp-field { margin-bottom: 8px; }
.an-line-foot { display: flex; gap: 12px; align-items: flex-end; }
.an-line-amount { flex: 1; }
.an-line-check { display: flex; gap: 6px; align-items: center; height: 48px; margin-bottom: 8px; font-size: 14px; color: var(--gp-ink); white-space: nowrap; }
.an-line-del { width: 44px; height: 44px; margin-bottom: 10px; border: 1px solid #f1d4d1; border-radius: 12px; background: #fdf3f2; color: var(--gp-bad); font-size: 16px; flex: none; }
.an-line-add { justify-self: start; }
.an-inv-save { display: flex; gap: 10px; flex-wrap: wrap; }
.an-qbtn-edit { text-decoration: none; }
/* Invoice για υπηρεσίες (καρτέλα πελάτη) */
.an-billbox { margin-bottom: 18px; }
.an-billlist { border: 1px solid #e6e8ec; border-radius: 14px; overflow: hidden; background: #fff; }
.an-billrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid #eef0f3; cursor: pointer; }
.an-billrow:first-child { border-top: 0; }
.an-billrow input[type=checkbox] { width: 20px; height: 20px; accent-color: #1b2430; }
.an-billtext b { display: block; color: var(--gp-ink); font-weight: 600; overflow-wrap: anywhere; }
.an-billtext small { display: block; color: #6a7585; font-size: 13px; line-height: 1.5; margin-top: 2px; }
.an-billrow em { font-style: normal; font-weight: 700; color: var(--gp-ink); white-space: nowrap; }
.an-billrow:has(input:checked) { background: #fbf6ea; }
.an-rowact form:first-child { margin-left: 0; }
.an-mini { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid #bfe3d3; border-radius: 999px; background: #effaf5; color: #1f7a5a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.an-mini:hover { background: #e6f3ee; border-color: #1f7a5a; }
@media (max-width: 767.98px) {
  .an-quick { grid-template-columns: minmax(0, 1fr); }
  .gc-cards td.an-rowact { display: block; padding-top: 8px; text-align: left; }
  .gc-cards td.an-rowact:empty { display: none; }
  .an-mini { min-height: 38px; padding: 0 14px; }
}
