/* ============================================================================
   Πύλη Μεταπωλητών (/reseller) — αυτοτελές στυλ, ανεξάρτητο από το κέλυφος
   του ERP. Ίδια παλέτα Metronic (#1B84FF) για συνέπεια μάρκας.
   ============================================================================ */
.rs-shell { min-height: 100vh; background: #f7f9fc; display: flex; flex-direction: column; }

.rs-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem 1.25rem; background: #052767; color: #fff;
    position: sticky; top: 0; z-index: 10;
}
.rs-brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 600; }
.rs-brand-sub {
    font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(255,255,255,.16); padding: .12rem .45rem; border-radius: 999px;
}
.rs-topbar-right { display: flex; align-items: center; gap: .75rem; }
.rs-user { font-size: .8125rem; opacity: .9; }

.rs-main { flex: 1; padding: 1.25rem; }
.rs-page { max-width: 1200px; margin: 0 auto; }
.rs-page-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.rs-page-head h1 { font-size: 1.25rem; font-weight: 600; margin: 0; color: #1e2129; }
.rs-count {
    background: #1B84FF; color: #fff; border-radius: 999px;
    font-size: .75rem; font-weight: 600; padding: .1rem .5rem;
}

/* ── Αναζήτηση ── */
.rs-search { display: flex; gap: .5rem; margin-bottom: 1rem; max-width: 620px; }
.rs-search .form-control { min-height: 2.5rem; border-radius: .5rem; border-color: #d8e2ee; }
.rs-search .form-control:focus { border-color: #1B84FF; box-shadow: 0 0 0 .2rem rgba(27,132,255,.18); }
.rs-search .btn { min-height: 2.5rem; border-radius: .5rem; white-space: nowrap; }

/* ── Λίστα εγκαταστάσεων (μία γραμμή ανά πελάτη, όχι πλακίδια) ── */
.rs-list { display: flex; flex-direction: column; gap: .5rem; }
.rs-row {
    background: #fff; border: 1px solid #e4ecf5; border-radius: .75rem;
    padding: .85rem 1rem; display: flex; align-items: center; gap: 1.5rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.rs-row:hover { box-shadow: 0 4px 14px rgba(15,34,66,.07); border-color: #cfe0f5; }
.rs-row-main { flex: 1; min-width: 0; }
.rs-row-title {
    font-weight: 600; color: #1e2129; display: flex; align-items: center; gap: .4rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rs-row-meta {
    display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .15rem;
    font-size: .8125rem; color: #78829d;
}
.rs-row-db { font-family: ui-monospace, Consolas, monospace; }

/* Αριθμός εγκατάστασης (registry id) — το μόνο σίγουρα μοναδικό αναγνωριστικό. */
.rs-id {
    font-family: ui-monospace, Consolas, monospace; font-weight: 600;
    color: #4b5675; background: #eef2f7; border-radius: .25rem; padding: 0 .35rem;
}
/* SN εγκατάστασης. Η «αδύναμη» παραλλαγή = DBVER.CODE (υπάρχει αλλά δεν είναι μοναδικός). */
.rs-sn {
    font-family: ui-monospace, Consolas, monospace;
    color: #1b6dc1; background: #eef4fb; border: 1px solid #d6e6f8;
    border-radius: .25rem; padding: 0 .35rem;
}
.rs-sn-weak { color: #7c6a3c; background: #fdf7e7; border-color: #f0e2bd; }
.rs-sn-err  { color: #a4404b; background: #fdeef0; border-color: #f6d3d8; }
.rs-row-note {
    margin-top: .3rem; font-size: .8125rem; color: #4b5675;
    background: #f7f9fc; border-left: 3px solid #cfe0f5;
    border-radius: .25rem; padding: .2rem .5rem; display: inline-block;
}
.rs-row-stats { display: flex; gap: 1.35rem; flex: none; }
.rs-row-stats > div { text-align: right; min-width: 86px; }

/* Ετικέτα ΠΑΝΩ από την τιμή, σε δική της γραμμή. Χωρίς αυτό οι δύο spans είναι
   inline και κολλάνε («Τελ. σύνδεσηπριν 0′»). Ισχύει και για τη σελίδα στοιχείων. */
.rs-stat-label,
.rs-stat-val { display: block; }
.rs-stat-label {
    font-size: .6875rem; line-height: 1.3; color: #99a1b7;
    text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.rs-stat-val { font-size: .9375rem; line-height: 1.35; font-weight: 600; color: #1e2129; }

/* Σελίδα «Στοιχεία επικοινωνίας»: τα ίδια νούμερα σε τρεις στήλες με αέρα. */
.rs-stats {
    display: flex; gap: 1.35rem; flex-wrap: wrap;
    border-top: 1px solid #eef2f7; padding-top: .85rem;
}
.rs-stats > div { min-width: 96px; }
.rs-row-actions { display: flex; gap: .4rem; flex: none; }
.rs-row-actions .btn { border-radius: .5rem; }

/* Σε στενή οθόνη η γραμμή γίνεται στοίβα — τα στατιστικά δεν συνθλίβουν τον τίτλο. */
@media (max-width: 860px) {
    .rs-row { flex-wrap: wrap; }
    .rs-row-main { flex: 1 0 100%; }
    .rs-row-stats { flex: 1; justify-content: flex-start; }
    .rs-row-stats > div { text-align: left; }
}

/* Το κουμπί ανανέωσης σπρώχνεται δεξιά, μακριά από τον μετρητή. */
.rs-head-actions { margin-left: auto; }

/* ── Συμβόλαιο ── */
/* Στη λίστα υπάρχει μόνο ΚΟΥΜΠΙ (η κλήση προς το BeAPI γίνεται στη σελίδα του συμβολαίου).
   Χρωματίζεται μόνο όταν έχουμε ήδη αποθηκευμένη ημερομηνία — αλλιώς μένει ουδέτερο. */
.rs-contract-btn.rs-contract-ok      { color: #17795e; }
.rs-contract-btn.rs-contract-soon    { color: #8a6714; background: #fdf6e3; border-color: #f0e2bd; }
.rs-contract-btn.rs-contract-expired { color: #a4404b; background: #fdeef0; border-color: #f6d3d8; }

/* Υποσέλιδο της κάρτας: πηγή αριστερά, ανανέωση δεξιά. */
.rs-contract-actions {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .85rem;
}
.rs-contract-actions .rs-contract-foot { margin: 0; margin-right: auto; }

/* Στη σελίδα εγκατάστασης: αυτοτελής κάρτα. */
.rs-contract-card {
    border: 1px solid #e4ecf5; border-radius: .625rem; padding: .85rem 1rem; background: #fbfdff;
}
.rs-contract-card-empty { color: #78829d; font-size: .8125rem; background: #f9fafc; }
.rs-contract-head {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding-bottom: .6rem; margin-bottom: .75rem; border-bottom: 1px solid #eef2f7;
}
.rs-contract-title { font-weight: 600; color: #1e2129; }
.rs-contract-badge {
    margin-left: auto; display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .8125rem; border-radius: .375rem; padding: .15rem .5rem;
    background: #eef2f7;
}
.rs-contract-badge.rs-contract-ok      { background: #e7f6f1; color: #17795e; }
.rs-contract-badge.rs-contract-soon    { background: #fdf6e3; color: #8a6714; }
.rs-contract-badge.rs-contract-expired { background: #fdeef0; color: #a4404b; }
.rs-contract-days { font-weight: 500; opacity: .75; }

/* Ζεύγη ετικέτα/τιμή σε δύο-τρεις στήλες ανάλογα με το πλάτος. */
.rs-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem .9rem; }
.rs-kv > div { display: flex; flex-direction: column; min-width: 0; }
.rs-kv span {
    font-size: .6875rem; text-transform: uppercase; letter-spacing: .02em; color: #99a1b7;
}
.rs-kv b { font-weight: 600; color: #1e2129; font-size: .875rem; overflow-wrap: anywhere; }

/* Modules: μαζεμένα — ο μεταπωλητής σπάνια τα χρειάζεται. */
.rs-modules { margin-top: .85rem; }
.rs-modules summary {
    cursor: pointer; font-size: .8125rem; font-weight: 600; color: #1b6dc1;
}
.rs-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.rs-chip {
    font-size: .75rem; color: #4b5675; background: #eef2f7;
    border-radius: 999px; padding: .1rem .55rem;
}
.rs-contract-foot { margin-top: .75rem; font-size: .6875rem; color: #99a1b7; }

/* ── Κενή κατάσταση ── */
.rs-empty { text-align: center; padding: 3rem 1rem; color: #78829d; }
.rs-empty i { font-size: 2rem; display: block; margin-bottom: .6rem; opacity: .5; }
.rs-empty p { margin-bottom: .5rem; }

/* ── Login ── */
.rs-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.rs-login-card {
    background: #fff; border: 1px solid #e4ecf5; border-radius: .875rem;
    box-shadow: 0 18px 48px rgba(15,34,66,.12); padding: 1.75rem; width: 100%; max-width: 380px;
}
.rs-login-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
.rs-login-title { font-size: 1.1rem; font-weight: 700; color: #1e2129; line-height: 1.1; }
.rs-login-sub { font-size: .8125rem; color: #78829d; }
.rs-login-card .form-control { min-height: 2.6rem; border-radius: .5rem; border-color: #d8e2ee; }
.rs-login-card .form-control:focus { border-color: #1B84FF; box-shadow: 0 0 0 .2rem rgba(27,132,255,.18); }
.rs-login-card .btn-primary { min-height: 2.6rem; border-radius: .5rem; font-weight: 500; }
.rs-login-foot { margin-top: 1.25rem; font-size: .75rem; color: #99a1b7; text-align: center; }

/* ── Ενδιάμεση σελίδα εισόδου στην εφαρμογή του πελάτη ── */
.rs-open-wrap { display: flex; justify-content: center; padding-top: 1.5rem; }
.rs-open-card {
    background: #fff; border: 1px solid #e4ecf5; border-radius: .875rem;
    box-shadow: 0 14px 40px rgba(15,34,66,.10); padding: 1.5rem; width: 100%; max-width: 420px;
}
.rs-open-back { font-size: .8125rem; color: #78829d; text-decoration: none; }
.rs-open-back:hover { color: #1B84FF; }
.rs-open-head { display: flex; gap: .85rem; align-items: flex-start; margin: 1rem 0 1.25rem; }
.rs-open-app {
    width: 44px; height: 44px; border-radius: .65rem; flex: none;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.rs-open-app.pos { background: #E9F3FF; color: #1B84FF; }
.rs-open-app.tablet { background: #F1F1F4; color: #4b5675; }
.rs-open-title { font-weight: 600; color: #1e2129; }
.rs-open-cust { font-size: .9375rem; color: #4b5675; }
.rs-open-db { font-size: .75rem; color: #99a1b7; font-family: ui-monospace, Consolas, monospace; }
.rs-open-card .form-control { min-height: 2.6rem; border-radius: .5rem; border-color: #d8e2ee; }
.rs-open-card .form-control:focus { border-color: #1B84FF; box-shadow: 0 0 0 .2rem rgba(27,132,255,.18); }
.rs-open-card .btn-primary { min-height: 2.6rem; border-radius: .5rem; font-weight: 500; }
.rs-open-note { font-size: .75rem; color: #99a1b7; }

/* ============================================================================
   ΚΕΛΥΦΟΣ ΕΦΑΡΜΟΓΗΣ (rsx-*) — sidebar + navbar, κατά το πρότυπο του emblem
   reseller portal. Το παλιό .rs-shell/.rs-topbar αντικαταστάθηκε· τα .rs-*
   στυλ ΠΕΡΙΕΧΟΜΕΝΟΥ (λίστα, κάρτες, συμβόλαιο) μένουν ως έχουν.
   ============================================================================ */
.rsx-shell { min-height: 100vh; display: flex; background: #f7f9fc; }

/* ── Sidebar ── */
.rsx-side {
    width: 218px; flex: 0 0 218px; background: #052767; color: #fff;
    display: flex; flex-direction: column; position: sticky; top: 0;
    height: 100vh; z-index: 20; transition: width .15s ease, flex-basis .15s ease;
}
.rsx-logo {
    display: flex; align-items: center; gap: .55rem; padding: .9rem 1rem;
    color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1);
}
.rsx-logo-txt { display: flex; flex-direction: column; line-height: 1.15; font-size: .9375rem; }
.rsx-logo-txt em { font-style: normal; font-size: .625rem; text-transform: uppercase;
                   letter-spacing: .08em; opacity: .65; }

.rsx-nav { flex: 1; padding: .6rem 0; overflow-y: auto; }
.rsx-nav-sec {
    font-size: .625rem; text-transform: uppercase; letter-spacing: .1em;
    opacity: .5; padding: .9rem 1rem .35rem;
}
.rsx-nav-item {
    display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem;
    color: rgba(255,255,255,.82); text-decoration: none; font-size: .875rem;
    border-left: 3px solid transparent; white-space: nowrap;
}
.rsx-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
/* Ενεργό: γεμάτο accent αριστερά — ξεχωρίζει και σε συμπτυγμένο μενού. */
.rsx-nav-item.active {
    background: rgba(255,255,255,.12); color: #fff; font-weight: 600;
    border-left-color: #1B84FF;
}
.rsx-nav-item i { font-size: 1rem; flex: 0 0 1rem; text-align: center; }

.rsx-collapse {
    margin: .5rem; align-self: flex-start; width: 30px; height: 30px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08); color: #fff; line-height: 1;
}
.rsx-collapse:hover { background: rgba(255,255,255,.18); }

/* Συμπτυγμένο: μένουν μόνο τα εικονίδια. */
.rsx-shell.collapsed .rsx-side { width: 56px; flex-basis: 56px; }
.rsx-shell.collapsed .rsx-logo-txt,
.rsx-shell.collapsed .rsx-nav-item span,
.rsx-shell.collapsed .rsx-nav-sec { display: none; }
.rsx-shell.collapsed .rsx-nav-item { justify-content: center; padding: .6rem 0; }
.rsx-shell.collapsed .rsx-logo { justify-content: center; padding: .9rem 0; }
.rsx-shell.collapsed .rsx-collapse { align-self: center; }
.rsx-shell.collapsed .rsx-collapse i { transform: rotate(180deg); }

/* ── Κύρια περιοχή ── */
.rsx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rsx-top {
    display: flex; align-items: center; gap: .75rem; background: #fff;
    border-bottom: 1px solid #e4ecf5; padding: .6rem 1.25rem;
    position: sticky; top: 0; z-index: 15;
}
.rsx-top-title { font-weight: 600; color: #1e2129; }
.rsx-top-right { margin-left: auto; display: flex; align-items: center; gap: .35rem; }

.rsx-burger { display: none; border: 0; background: none; font-size: 1.25rem; color: #4b5675; }

/* Ειδοποιήσεις */
.rsx-bell {
    position: relative; width: 34px; height: 34px; border-radius: .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: #4b5675; text-decoration: none;
}
.rsx-bell:hover { background: #f1f5fa; color: #1b6dc1; }
.rsx-bell-badge {
    position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px;
    border-radius: 999px; background: #f8285a; color: #fff;
    font-size: .5625rem; font-weight: 700; line-height: 15px; text-align: center;
}

/* Χρήστης — <details> ώστε να δουλεύει χωρίς JS/interactivity */
.rsx-user { position: relative; }
.rsx-user > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem;
    padding: .25rem .5rem; border-radius: .5rem; border: 1px solid transparent;
}
.rsx-user > summary::-webkit-details-marker { display: none; }
.rsx-user > summary:hover { background: #f1f5fa; }
.rsx-user[open] > summary { border-color: #cfe0f5; background: #f7fbff; }
.rsx-user-name { font-size: .8125rem; color: #4b5675; }
.rsx-avatar { font-size: 1.35rem; color: #99a1b7; line-height: 1; }
.rsx-user-menu {
    position: absolute; right: 0; top: calc(100% + .35rem); min-width: 210px;
    background: #fff; border: 1px solid #e4ecf5; border-radius: .625rem;
    box-shadow: 0 12px 32px rgba(15,34,66,.14); padding: .35rem; z-index: 30;
}
.rsx-user-menu a, .rsx-user-menu button {
    display: flex; align-items: center; width: 100%; text-align: left;
    padding: .45rem .6rem; border-radius: .4rem; font-size: .875rem;
    color: #252F4A; text-decoration: none; background: none; border: 0;
}
.rsx-user-menu a:hover, .rsx-user-menu button:hover { background: #f1f5fa; }
.rsx-user-sep { height: 1px; background: #eef2f7; margin: .3rem 0; }

.rsx-content { flex: 1; padding: 1.25rem; }
.rsx-page { max-width: 1360px; }

/* ── Αρχική: KPI πλακίδια ── */
.rsx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .85rem; }
.rsx-kpi {
    background: #fff; border: 1px solid #e4ecf5; border-radius: .75rem;
    padding: .9rem 1rem; text-decoration: none; display: flex; flex-direction: column; gap: .15rem;
}
.rsx-kpi:hover { border-color: #cfe0f5; box-shadow: 0 4px 14px rgba(15,34,66,.07); }
.rsx-kpi-label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: #99a1b7; }
.rsx-kpi-val { font-size: 1.75rem; font-weight: 700; color: #1e2129; line-height: 1.1; }
.rsx-kpi-foot { font-size: .75rem; color: #78829d; }
.rsx-kpi.warn   .rsx-kpi-val { color: #8a6714; }
.rsx-kpi.danger .rsx-kpi-val { color: #a4404b; }

.rsx-note {
    margin-top: .85rem; background: #eef4fb; border: 1px solid #d6e6f8;
    border-radius: .5rem; padding: .55rem .8rem; font-size: .8125rem; color: #1b4f8a;
}

/* ── Αρχική: κάρτες με πίνακες ── */
.rsx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: .85rem; margin-top: .85rem; }
.rsx-card { background: #fff; border: 1px solid #e4ecf5; border-radius: .75rem; overflow: hidden; }
.rsx-card-head {
    display: flex; align-items: center; padding: .7rem .9rem;
    border-bottom: 1px solid #eef2f7; font-weight: 600; color: #1e2129; font-size: .9375rem;
}
.rsx-card-more { margin-left: auto; font-size: .8125rem; font-weight: 500; }
.rsx-card-empty { padding: 1.25rem .9rem; color: #78829d; font-size: .875rem; text-align: center; }
.rsx-table { width: 100%; font-size: .8125rem; margin: 0; }
.rsx-table th {
    text-align: left; font-size: .6875rem; text-transform: uppercase; letter-spacing: .03em;
    color: #99a1b7; font-weight: 600; padding: .5rem .9rem; border-bottom: 1px solid #eef2f7;
}
.rsx-table td { padding: .5rem .9rem; border-bottom: 1px solid #f4f7fa; color: #252F4A; }
.rsx-table tr:last-child td { border-bottom: 0; }
.rsx-mono { font-family: ui-monospace, Consolas, monospace; }

/* ── Κράτημα θέσης ενοτήτων ── */
.rsx-soon { text-align: center; padding: 4rem 1rem; color: #78829d; }
.rsx-soon i { font-size: 2.5rem; color: #cfe0f5; display: block; margin-bottom: .75rem; }
.rsx-soon h2 { font-size: 1.125rem; font-weight: 600; color: #1e2129; margin-bottom: .35rem; }
.rsx-soon-tag {
    display: inline-block; margin-top: .75rem; font-size: .6875rem; text-transform: uppercase;
    letter-spacing: .06em; background: #eef2f7; color: #4b5675;
    border-radius: 999px; padding: .2rem .6rem;
}

/* ── Στενή οθόνη: το sidebar γίνεται συρόμενο ── */
@media (max-width: 860px) {
    .rsx-burger { display: inline-block; }
    .rsx-side { position: fixed; left: -218px; transition: left .15s ease; }
    .rsx-shell.side-open .rsx-side { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.35); }
    .rsx-shell.collapsed .rsx-side { width: 218px; flex-basis: 218px; }
    .rsx-cards { grid-template-columns: 1fr; }
}

/* ============================================================================
   ΠΕΛΑΤΟΛΟΓΙΟ — πίνακας με οριζόντια κύλιση και ΚΟΛΛΗΜΕΝΕΣ άκρες στήλες.
   Ο πίνακας είναι φαρδύς επίτηδες: ο μεταπωλητής θέλει πολλά πεδία μπροστά του.
   Sticky αριστερά ο πελάτης (να ξέρεις ποια γραμμή διαβάζεις) και sticky δεξιά οι
   ενέργειες (τα τρία link να είναι ΠΑΝΤΑ προσβάσιμα, όσο κι αν κυλήσεις).
   ============================================================================ */
.rsx-toolbar {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .85rem;
}
.rsx-search { display: flex; gap: .4rem; }
.rsx-search .form-control { min-width: 300px; border-radius: .5rem; border-color: #d8e2ee; }
.rsx-search .form-control:focus { border-color: #1B84FF; box-shadow: 0 0 0 .2rem rgba(27,132,255,.18); }
.rsx-count {
    font-size: .8125rem; color: #4b5675; background: #eef2f7;
    border-radius: 999px; padding: .15rem .6rem;
}
.rsx-toolbar > form:last-child { margin-left: auto; }

.rsx-grid-wrap {
    background: #fff; border: 1px solid #e4ecf5; border-radius: .75rem;
    overflow-x: auto;                       /* η κύλιση ΖΕΙ εδώ, όχι στη σελίδα */
    max-width: 100%;
}
/* separate borders: απαραίτητο για να δουλέψει σωστά το sticky με background. */
.rsx-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .8125rem; margin: 0; }

.rsx-grid thead th {
    position: sticky; top: 0; z-index: 3;
    background: #052767; color: #fff; font-weight: 600; white-space: nowrap;
    font-size: .75rem; padding: .55rem .7rem; text-align: left;
}
.rsx-grid tbody td {
    padding: .5rem .7rem; border-bottom: 1px solid #f1f5fa; color: #252F4A;
    white-space: nowrap; background: #fff;
}
.rsx-grid tbody tr:hover td { background: #f7fbff; }
.rsx-grid tbody tr:last-child td { border-bottom: 0; }
.rsx-grid .num { text-align: right; }

/* ── Κολλημένες στήλες ── */
.rsx-grid th.stick-l, .rsx-grid td.stick-l {
    position: sticky; left: 0; z-index: 2;
    box-shadow: 1px 0 0 #e4ecf5;            /* διαχωριστικό όταν υπάρχει κύλιση */
    min-width: 210px; max-width: 260px;
}
.rsx-grid th.stick-r, .rsx-grid td.stick-r {
    position: sticky; right: 0; z-index: 2;
    box-shadow: -1px 0 0 #e4ecf5;
}
/* Οι γωνίες της κεφαλίδας πρέπει να μένουν ΠΑΝΩ και από το sticky σώμα. */
.rsx-grid thead th.stick-l, .rsx-grid thead th.stick-r { z-index: 4; }
/* Το hover δεν πρέπει να «χάνει» το χρώμα των κολλημένων κελιών. */
.rsx-grid tbody tr:hover td.stick-l, .rsx-grid tbody tr:hover td.stick-r { background: #f7fbff; }

.rsx-cust { font-weight: 600; color: #1e2129; }
/* Μακριά κείμενα (email, σημείωση) κόβονται με «…» — το πλήρες στο tooltip. */
.rsx-ell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.rsx-acts { display: flex; gap: .3rem; }
.rsx-acts .btn { border-radius: .45rem; padding: .15rem .45rem; display: inline-flex; align-items: center; gap: .3rem; }
.rsx-acts .btn span { font-size: .75rem; }

/* Σε στενή οθόνη κρύβονται οι λεζάντες των κουμπιών — μένουν τα εικονίδια, ώστε η
   κολλημένη στήλη να μη «φάει» τη μισή οθόνη. */
@media (max-width: 1200px) {
    .rsx-acts .btn span { display: none; }
    .rsx-grid th.stick-l, .rsx-grid td.stick-l { min-width: 160px; max-width: 180px; }
}

/* ── Πλήρες πλάτος: ο πίνακας πιάνει ό,τι επιτρέπει το παράθυρο ── */
.rsx-page { max-width: none; }        /* ήταν 1360px */
.rsx-content { padding: .85rem; }
.rsx-content > .rsx-toolbar { padding: 0 .15rem; }

/* Inline πεδία μέσα στο πλέγμα — μικρά, να μη φουσκώνει η γραμμή. */
.rsx-inp    { min-width: 150px; max-width: 190px; height: 1.85rem; font-size: .8125rem; padding: .1rem .4rem; }
.rsx-inp-sm { min-width: 110px; max-width: 130px; }
.rsx-inp-xs { width: 88px; height: 1.85rem; font-size: .8125rem; padding: .1rem .4rem; }

/* Η φόρμα εισόδου κάθεται σε μία σειρά μέσα στο κολλημένο κελί. */
.rsx-login { display: flex; align-items: center; gap: .25rem; margin: 0; }

.rsx-ok { font-size: .8125rem; color: #17795e; background: #e7f6f1;
          border-radius: 999px; padding: .15rem .6rem; }
.rsx-hint { margin: .6rem .15rem 0; font-size: .75rem; color: #78829d; }

/* Popover με modules/λεπτομέρειες συμβολαίου — <details> ώστε να δουλεύει χωρίς interactivity. */
.rsx-mods { position: relative; }
.rsx-mods > summary { list-style: none; cursor: pointer; }
.rsx-mods > summary::-webkit-details-marker { display: none; }
.rsx-mods-pop {
    position: absolute; right: 0; top: calc(100% + .3rem); width: 340px;
    background: #fff; border: 1px solid #e4ecf5; border-radius: .625rem;
    box-shadow: 0 12px 32px rgba(15,34,66,.16); padding: .7rem; z-index: 40;
    white-space: normal;
}
.rsx-mods-head { font-weight: 600; font-size: .8125rem; color: #1e2129; margin-bottom: .5rem; }

/* Δείκτης εξωτερικού συνδέσμου στο μενού (π.χ. B2B Shop). */
.rsx-ext { font-size: .625rem; margin-left: .35rem; opacity: .6; vertical-align: super; }

/* ── Στήλες δικαιωμάτων στο πλέγμα ── */
.rsx-grid th.mod { text-align: center; font-size: .625rem; padding: .45rem .35rem; }
.rsx-grid td.mod { text-align: center; padding: .4rem .35rem; }
.mod-on  { color: #17795e; }
.mod-off { color: #cfd5e0; }
.mod-lvl {
    display: inline-block; min-width: 16px; font-size: .6875rem; font-weight: 700;
    color: #1b6dc1; background: #eef4fb; border-radius: .25rem;
}
.mod-none { display: inline-block; width: 8px; height: 1px; background: transparent; }

/* ── Modal εισόδου (ένα για όλες τις γραμμές) ── */
.rsx-dlg {
    border: 0; border-radius: .875rem; padding: 1.1rem; width: min(420px, 92vw);
    box-shadow: 0 24px 64px rgba(15,34,66,.28);
}
.rsx-dlg::backdrop { background: rgba(6,20,44,.5); }
.rsx-dlg-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.rsx-dlg-title { font-weight: 600; color: #1e2129; }
.rsx-dlg-sub { font-size: .8125rem; color: #78829d; }
.rsx-dlg-head .btn-close { margin-left: auto; }
.rsx-dlg-note { font-size: .75rem; color: #78829d; margin-top: .35rem; }
.rsx-dlg-btns { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.rsx-dlg-btns .btn { border-radius: .5rem; }

/* ── Ενότητες πλακιδίων στην Αρχική ── */
.rsx-sec { display: flex; align-items: baseline; gap: .5rem; margin: 1.1rem .15rem .5rem; }
.rsx-sec-t { font-size: .8125rem; font-weight: 600; color: #4b5675;
             text-transform: uppercase; letter-spacing: .04em; }
.rsx-sec-n { font-size: .75rem; color: #99a1b7; }
.rsx-kpis-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rsx-kpi-flat { cursor: default; }
.rsx-kpi-flat .rsx-kpi-val { font-size: 1.35rem; }

/* Επιλεγμένο πλακίδιο έκδοσης. */
.rsx-kpi.sel { border-color: #1B84FF; box-shadow: 0 0 0 .18rem rgba(27,132,255,.16); }
.rsx-kpi.sel .rsx-kpi-label { color: #1b6dc1; }

/* Φαρδύ modal για λίστες (πλακίδια εκδόσεων). */
.rsx-dlg-wide { width: min(1000px, 94vw); padding: 1rem 1.1rem; }
.rsx-dlg-body { max-height: 60vh; overflow: auto; border: 1px solid #eef2f7; border-radius: .5rem; }
.rsx-dlg-body .rsx-table thead th { position: sticky; top: 0; background: #f7f9fc; z-index: 1; }
.rsx-dlg-foot { display: flex; justify-content: flex-end; margin-top: .85rem; }
.rsx-dlg-head .btn-close { text-decoration: none; }

/* ── «Τι νέο βγήκε» (κοινό component: πύλη + Solid ERP) ── */
.wn-list { list-style: none; padding: 0; margin: 0; }
.wn-rel + .wn-rel { margin-top: 1.35rem; }
.wn-ver { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.wn-ver-tag {
    font-size: .75rem; font-weight: 600; color: #fff; background: #052767;
    border-radius: 999px; padding: .12rem .6rem;
}
.wn-ver-date, .wn-ver-n { font-size: .75rem; color: #99a1b7; }
.wn-item {
    border-left: 3px solid #eef2f7; padding: .3rem 0 .6rem .75rem; margin-left: .25rem;
}
.wn-item.wn-new { border-left-color: #1B84FF; }
.wn-title { font-weight: 600; color: #1e2129; display: flex; align-items: center; gap: .45rem; }
.wn-dot { width: 7px; height: 7px; border-radius: 50%; background: #1B84FF; flex: none; }
.wn-body { font-size: .875rem; color: #4b5675; margin-top: .2rem; }
.wn-meta { display: flex; gap: .5rem; margin-top: .35rem; font-size: .8125rem; }
.wn-k {
    flex: 0 0 82px; color: #99a1b7; font-size: .6875rem; text-transform: uppercase;
    letter-spacing: .03em; padding-top: .12rem;
}
.wn-v { color: #252F4A; }
.wn-empty { text-align: center; padding: 2.5rem 1rem; color: #78829d; }
.wn-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .5; }
