/* ==========================================================================
   ΚΑΘΟΛΙΚΟ ΘΕΜΑ — ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ, ΠΑΡΑΚΑΜΨΕΙΣ BOOTSTRAP, TABLET, ΣΕΛΙΔΕΣ ΤΑΥΤΟΠΟΙΗΣΗΣ
   ========================================================================== */


body {
  font-family: "Geologica", sans-serif;
  font-optical-sizing: auto;
}

:root {
  --sbz-bg: #ffffff;
  --sbz-surface: #ffffff;
  --sbz-surface-2: #f8f9fa;
  --sbz-text: #212529;
  --sbz-text-muted: #6c757d;
  --sbz-border: #dee2e6;
  --sbz-link: #0d6efd;
  --sbz-link-hover: #0a58ca;
  --sbz-focus: #3b82f6;
}

.btn {
  border-radius: 5px;
  padding: 6px 18px;
}

.navbar {
  padding-top: 5px;
  padding-bottom: 5px;
}


/* ΚΟΙΝΟ ΣΤΥΛ ΣΚΟΤΕΙΝΗΣ ΛΕΙΤΟΥΡΓΙΑΣ */
html.dark-mode,
body.dark-mode {
  --sbz-bg: #0b1020;
  --sbz-surface: #11172a;
  --sbz-surface-2: #0e1525;
  --sbz-text: #f8fbff;
  --sbz-text-muted: #c7d2e6;
  --sbz-border: #1f2a40;
  --sbz-link: #9bc1ff;
  --sbz-link-hover: #d7e7ff;
  --sbz-focus: #60a5fa;
  background-color: var(--sbz-bg);
  color: var(--sbz-text);
  color-scheme: dark;
  --bs-border-color: var(--sbz-border);
  --bs-body-bg: var(--sbz-bg);
  --bs-body-color: var(--sbz-text);
  --bs-body-color-rgb: 248, 251, 255;
  --bs-link-color: var(--sbz-link);
  --bs-link-hover-color: var(--sbz-link-hover);
}

body.dark-mode {
  background-color: var(--sbz-bg);
  color: var(--sbz-text);
}

body.dark-mode a {
  color: var(--sbz-link);
}

body.dark-mode a:hover,
body.dark-mode a:focus {
  color: var(--sbz-link-hover);
}

body.dark-mode .nav-link,
body.dark-mode .navbar-brand {
  color: var(--sbz-text) !important;
}

body.dark-mode .bg-light {
  background-color: #0b1020 !important;
}

/* ΑΝ ΧΡΗΣΙΜΟΠΟΙΕΙΤΑΙ ΦΩΤΕΙΝΟ ΑΝΟΙΧΤΟ ΦΟΝΤΟ (ΚΛΑΣΗ BG-LIGHT) ΣΕ ΣΚΟΤΕΙΝΑ ΣΤΟΙΧΕΙΑ, ΝΑ ΠΑΡΑΜΕΝΕΙ ΣΚΟΤΕΙΝΟ */
body.dark-mode .bg-light {
  background-color: #0b1020 !important;
}

/* ΑΣΦΑΛΕΙΑ: ΑΝ ΔΙΑΦΥΓΕΙ ΤΟ ΦΩΤΕΙΝΟ ΑΝΟΙΧΤΟ ΦΟΝΤΟ, ΣΚΟΤΕΙΝΑΖΕΙ */
.bg-light.dark-mode,
.dark-mode .bg-light {
  background-color: #0b1020 !important;
}

body.dark-mode .navbar {
  background: linear-gradient(135deg, #0c182c 0%, #0f2438 100%) !important;
}

body.dark-mode .navbar .nav-link {
  color: #f8fbff !important;
}

body.dark-mode .navbar .navbar-brand {
  color: #f8fbff !important;
}

/* ΕΠΑΝΩ ΠΛΟΗΓΗΣΗ ΥΠΑΛΛΗΛΟΥ/ΔΙΑΧΕΙΡΙΣΤΙΚΟΥ: ΟΠΩΣ Η ΣΚΟΤΕΙΝΗ ΜΠΑΡΑ ΠΛΟΗΓΗΣΗΣ ΤΟΥ ΠΛΑΙΣΙΟΥ (ΑΧΝΟ ΕΝΕΡΓΟ, ΛΕΥΚΟ ΕΝΕΡΓΟ ΣΤΟΙΧΕΙΟ) — ΧΩΡΙΣ ΒΑΡΥ ΣΤΡΟΓΓΥΛΟ ΚΟΥΜΠΙ */
body.dark-mode .employee-navbar .navbar-nav>.nav-item>a.nav-link:not(.nav-icon-link):not(.active):not(.btn),
body.dark-mode .admin-navbar .navbar-nav>.nav-item>a.nav-link:not(.nav-icon-link):not(.active):not(.btn) {
  color: rgba(255, 255, 255, 0.58) !important;
}

body.dark-mode .employee-navbar .navbar-nav>.nav-item>a.nav-link:not(.nav-icon-link).active,
body.dark-mode .admin-navbar .navbar-nav>.nav-item>a.nav-link:not(.nav-icon-link).active {
  color: #ffffff !important;
  font-weight: 500;
  background-color: transparent !important;
  border-radius: 0;
  box-shadow: none;
}

/* ΣΗΜΑΙΕΣ ΓΛΩΣΣΑΣ: ΙΔΙΟ ΜΩΒ ΟΠΩΣ ΣΤΟ ΦΩΤΕΙΝΟ, ΕΛΑΦΡΩΣ ΕΝΤΟΝΟΤΕΡΟ ΣΕ ΣΚΟΤΕΙΝΟ ΜΕΝΟΥ */
body.dark-mode .employee-navbar .employee-lang-menu .lang-flag-item.active,
body.dark-mode .employee-navbar .employee-lang-menu .lang-flag-item.active:hover,
body.dark-mode .employee-navbar .employee-lang-menu .lang-flag-item.active:focus,
body.dark-mode .admin-navbar .admin-lang-menu .lang-flag-item.active,
body.dark-mode .admin-navbar .admin-lang-menu .lang-flag-item.active:hover,
body.dark-mode .admin-navbar .admin-lang-menu .lang-flag-item.active:focus {
  background-color: rgba(102, 126, 234, 0.28) !important;
  box-shadow: none;
  color: inherit !important;
}

body.dark-mode .card {
  background-color: var(--sbz-surface);
  color: var(--sbz-text);
  border-color: var(--sbz-border);
}

body.dark-mode .card-header {
  background-color: var(--sbz-surface-2) !important;
  color: var(--sbz-text);
}

body.dark-mode .card-body {
  background-color: var(--sbz-surface);
  color: var(--sbz-text);
}

body.dark-mode .table {
  color: #f8fbff;
}

body.dark-mode .table th,
body.dark-mode .table td {
  color: #f8fbff;
}

body.dark-mode .table thead {
  background-color: #141c2f;
  color: #f8fbff;
}

body.dark-mode .table thead.table-light {
  background-color: #141c2f;
  color: #f8fbff;
}

body.dark-mode thead.table-light th {
  background-color: #141c2f !important;
  color: #f8fbff !important;
  border-color: #1f2a40 !important;
}

body.dark-mode .table-dark {
  background-color: #141c2f;
  color: #f8fbff;
}

body.dark-mode .table-dark th,
body.dark-mode .table-dark td {
  background-color: #141c2f;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .table tbody tr {
  background-color: #101829;
}

body.dark-mode .table-hover tbody tr:hover {
  background-color: #182136;
}

body.dark-mode .table-bordered> :not(caption)>*>* {
  border-color: #1f2a40;
}

body.dark-mode .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: #0d1424;
}

body.dark-mode .table-responsive {
  background-color: #0b1020;
}

body.dark-mode .card .table-responsive {
  background-color: #11172a;
}

body.dark-mode .border,
body.dark-mode .border-top,
body.dark-mode .border-bottom,
body.dark-mode .border-start,
body.dark-mode .border-end {
  border-color: var(--sbz-border) !important;
}

body.dark-mode hr {
  border-color: var(--sbz-border);
}

body.dark-mode :focus-visible {
  outline: 2px solid var(--sbz-focus) !important;
  outline-offset: 2px;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-check-input {
  background-color: #0f1628;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  background-color: #0f1628;
  color: #f8fbff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

body.dark-mode .form-control::placeholder {
  color: #d6e0f5;
}

body.dark-mode .form-select option {
  color: #f8fbff;
  background-color: #0f1628;
}

body.dark-mode .input-group-text {
  background-color: #11172a;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #f8fbff;
}

body.dark-mode .btn-light {
  background-color: #1f2a40;
  color: #f8fbff;
  border-color: #26334a;
}

body.dark-mode .btn-dark {
  background-color: #3d4f6b;
  border-color: #4a5d7b;
  color: #f8fbff;
}

body.dark-mode .btn-dark:hover,
body.dark-mode .btn-dark:focus {
  background-color: #4f6280;
  border-color: #6b80a0;
  color: #f8fbff;
}

body.dark-mode .btn-outline-primary,
body.dark-mode .btn-outline-success,
body.dark-mode .btn-outline-info,
body.dark-mode .btn-outline-warning,
body.dark-mode .btn-outline-secondary {
  color: #f8fbff;
  border-color: #26334a;
}

body.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-outline-success:hover,
body.dark-mode .btn-outline-info:hover,
body.dark-mode .btn-outline-warning:hover,
body.dark-mode .btn-outline-secondary:hover {
  color: #0b1020;
  background-color: #f8fbff;
  border-color: #f8fbff;
}

body.dark-mode .text-muted {
  color: var(--sbz-text-muted) !important;
}

body.dark-mode .text-body {
  color: var(--sbz-text) !important;
}

body.dark-mode .alert {
  background-color: #11172a;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .alert-secondary {
  background-color: #141c2f;
  color: #c7d2e6;
  border-color: #1f2a40;
}

body.dark-mode .alert-info {
  background-color: #1a3348;
  color: #b8dff5;
  border-color: #2a5570;
}

body.dark-mode .alert-warning {
  background-color: #3d3520;
  color: #ffe8a3;
  border-color: #5c4f28;
}

body.dark-mode .alert-success {
  background-color: #1a3d2a;
  color: #b8f0c8;
  border-color: #285c3a;
}

body.dark-mode .alert-danger {
  background-color: #3d2024;
  color: #f5b8bf;
  border-color: #5c2830;
}

body.dark-mode .alert-link {
  color: #9bc1ff;
}

body.dark-mode .alert-link:hover,
body.dark-mode .alert-link:focus {
  color: #d7e7ff;
}

body.dark-mode .dropdown-menu {
  background-color: #0e1525;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .dropdown-item {
  color: #f8fbff;
}

body.dark-mode .dropdown-item:hover {
  background-color: #141c2f;
}

body.dark-mode .table-light {
  background-color: #141c2f;
  color: #f8fbff;
}

body.dark-mode .badge {
  color: #f8fbff;
}

body.dark-mode .badge.bg-primary,
body.dark-mode .badge.bg-success,
body.dark-mode .badge.bg-danger,
body.dark-mode .badge.bg-secondary,
body.dark-mode .badge.text-bg-primary,
body.dark-mode .badge.text-bg-success,
body.dark-mode .badge.text-bg-danger,
body.dark-mode .badge.text-bg-secondary {
  color: #f8fbff;
}

body.dark-mode .badge.bg-warning,
body.dark-mode .badge.bg-info,
body.dark-mode .badge.text-bg-warning,
body.dark-mode .badge.text-bg-info {
  color: #0b1020;
}

body.dark-mode .btn-outline-dark {
  color: #d7e7ff;
  border-color: #4b5d7b;
}

body.dark-mode .btn-outline-dark:hover,
body.dark-mode .btn-outline-dark:focus {
  color: #0b1020;
  background-color: #d7e7ff;
  border-color: #d7e7ff;
}

body.dark-mode .navbar-toggler {
  border-color: #ffffff;
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .modal-content {
  background-color: #0e1525;
  border-color: #1f2a40;
  color: #f8fbff;
}

/* ΚΟΥΜΠΙ ΚΛΕΙΣΙΜΑΤΟΣ ΣΕ MODALS — ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ */
body.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.75;
}

body.dark-mode .btn-close:hover,
body.dark-mode .btn-close:focus {
  opacity: 1;
}

body.dark-mode .list-group-item {
  background-color: #0e1525;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .nav-tabs .nav-link {
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .nav-tabs .nav-link.active {
  background-color: #11172a;
  border-color: #1f2a40;
}

body.dark-mode .pagination .page-link {
  background-color: #0e1525;
  border-color: #1f2a40;
  color: #f8fbff;
}

body.dark-mode .pagination .page-link:hover {
  background-color: #141c2f;
}

body.dark-mode .accordion-button {
  background-color: #0e1525;
  color: #f8fbff;
  border-color: #1f2a40;
}

body.dark-mode .accordion-button:not(.collapsed) {
  background-color: #11172a;
  color: #f8fbff;
}

body.dark-mode .bg-white,
body.dark-mode .bg-body,
body.dark-mode .bg-body-secondary {
  background-color: #0b1020 !important;
}

body.dark-mode .bg-light-subtle {
  background-color: #141c2f !important;
  color: #f8fbff;
}

/* ΑΠΟΣΤΑΣΗ ΚΟΥΜΠΙΟΥ ΘΕΜΑΤΟΣ ΜΕΣΑ ΣΤΗΝ ΠΛΟΗΓΗΣΗ */
.theme-toggle-btn {
  margin-left: 0.75rem;
}

/* ΒΕΛΤΙΩΣΕΙΣ ΧΡΗΣΗΣ ΤΑΜΠΛΕΤΑΣ/ΚΙΝΗΤΟΥ */
@media (max-width: 992px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .navbar .navbar-nav {
    gap: 0.25rem;
  }

  .navbar .nav-link {
    padding: 0.6rem 0.75rem;
  }

  .dropdown-menu {
    font-size: 1rem;
  }

  /* ΜΕΙΩΣΗ ΣΤΕΝΩΝ ΠΕΔΙΩΝ ΠΑΡΑΘΥΡΟΥ ΔΙΑΛΟΓΟΥ ΣΕ ΜΙΚΡΕΣ ΟΘΟΝΕΣ */
  .modal-dialog {
    margin: 0.75rem;
  }

  /* ΕΥΚΟΛΟΤΕΡΟ ΠΑΤΗΜΑ ΣΤΗ ΣΕΛΙΔΟΠΟΙΗΣΗ */
  .pagination .page-link {
    padding: 0.6rem 0.8rem;
  }
}

/* ΔΗΜΟΣΙΟ ΚΕΛΥΦΟΣ ΤΑΥΤΟΠΟΙΗΣΗΣ (ΣΥΝΔΕΣΗ, ΕΓΓΡΑΦΗ, ΞΕΧΑΣΜΕΝΟΣ ΚΩΔΙΚΟΣ, …) — ΣΚΟΤΕΙΝΕΣ ΕΠΙΦΑΝΕΙΕΣ */
body.dark-mode .public-site-header {
  background-color: #0e1525 !important;
  border-color: #1f2a40 !important;
}

body.dark-mode .public-site-footer {
  background: rgba(14, 21, 37, 0.96) !important;
  border-color: #1f2a40 !important;
}

body.dark-mode.public-site-body .public-site-main {
  background:
    radial-gradient(1200px 420px at 50% 12%, rgba(40, 82, 132, 0.22), transparent 65%),
    linear-gradient(180deg, #081126 0%, #070d1f 100%);
}

body.dark-mode.public-site-body .public-page-inner,
body.dark-mode.public-site-body .public-page-inner.container,
body.dark-mode.public-site-body .public-page-inner.container-fluid {
  background: transparent !important;
}

body.dark-mode .public-lang-menu .lang-flag-item:hover,
body.dark-mode .public-lang-menu .lang-flag-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .public-lang-menu .lang-flag-item.active,
body.dark-mode .public-lang-menu .lang-flag-item.active:hover,
body.dark-mode .public-lang-menu .lang-flag-item.active:focus {
  background-color: rgba(59, 130, 246, 0.28);
}

/* ==========================================================================
   ΔΗΜΟΣΙΕΣ ΣΕΛΙΔΕΣ — ΣΥΝΔΕΣΗ, ΕΓΓΡΑΦΗ, ΞΕΧΑΣΜΕΝΟΣ ΚΩΔΙΚΟΣ, ΡΟΕΣ SUPERADMIN
   ========================================================================== */

.public-site-body {
  font-size: 1rem;
}

.public-site-header {
  z-index: 1030;
}

.public-site-brand:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 4px;
  border-radius: 4px;
}

.public-site-logo {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 576px) {
  .public-site-logo {
    height: 2.35rem;
  }
}

.public-site-footer {
  background: rgba(255, 255, 255, 0.92);
}

/* ΜΟΝΟ ΣΗΜΑΙΕΣ ΓΛΩΣΣΑΣ ΣΤΟ ΑΝΟΙΓΟΜΕΝΟ ΜΕΝΟΥ (ΟΠΩΣ ΣΤΟ ΔΙΑΧΕΙΡΙΣΤΙΚΟ) */
.public-lang-menu {
  --bs-dropdown-min-width: 0;
  min-width: 0;
  width: auto;
  padding: 0.3rem;
}

.public-lang-menu .lang-flag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 1.55rem;
  line-height: 1;
  border-radius: 0.35rem;
}

.public-lang-menu .lang-flag-item:hover,
.public-lang-menu .lang-flag-item:focus {
  background-color: rgba(0, 0, 0, 0.06);
}

.public-lang-menu .lang-flag-item.active,
.public-lang-menu .lang-flag-item.active:hover,
.public-lang-menu .lang-flag-item.active:focus {
  background-color: rgba(102, 126, 234, 0.22);
  color: inherit;
}

.public-lang-menu li+li {
  margin-top: 0.125rem;
}

/* ΚΥΡΙΟ ΠΕΡΙΕΧΟΜΕΝΟ: ΣΥΜΠΑΓΗΣ ΚΑΤΑΚΟΡΥΦΟΣ ΡΥΘΜΟΣ · ΠΙΟ ΣΤΕΝΑ ΣΕ ΜΙΚΡΑ ΚΙΝΗΤΑ */
.public-site-main {
  /* ΝΑ ΜΗΝ ΤΕΝΤΩΝΟΝΤΑΙ ΜΙΚΡΑ ΦΟΡΜΟΥΛΑΡΙΑ ΣΕ ΟΛΟ ΤΟ ΥΨΟΣ ΟΘΟΝΗΣ ΣΤΟ ΚΙΝΗΤΟ */
  min-height: 0;
}

.public-page-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.55rem;
}

@media (min-width: 576px) {
  .public-page-inner {
    padding-top: 0.55rem;
    padding-bottom: 0.85rem;
  }
}

@media (min-width: 768px) {
  .public-page-inner {
    padding-top: 0.65rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 992px) {
  .public-page-inner {
    padding-top: 0.75rem;
    padding-bottom: 1.15rem;
  }
}

/* ΙΔΙΟ ΚΕΝΤΡΑΡΙΣΜΕΝΟ ΠΛΑΤΟΣ ΣΕ ΟΛΕΣ ΤΙΣ ΔΗΜΟΣΙΕΣ ΣΕΛΙΔΕΣ ΤΑΥΤΟΠΟΙΗΣΗΣ (ΕΠΙΤΡΑΠΕΖΙΟ/ΤΑΜΠΛΕΤΑ) */
.public-page-col-narrow,
.public-page-col-medium,
.public-page-col-wide {
  margin-left: auto;
  margin-right: auto;
}

.public-page-col-narrow {
  max-width: 26rem;
}

.public-page-col-medium {
  max-width: 34rem;
}

.public-page-col-wide {
  max-width: 42rem;
}

@media (max-width: 575.98px) {
  .public-site-footer.border-top .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* ΕΝΙΑΙΟ ΚΕΛΥΦΟΣ ΚΑΡΤΑΣ */
.public-page-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.07);
}

.public-page-card>.card-body {
  padding: 0.8125rem 0.9375rem;
}

@media (max-width: 575.98px) {
  .public-page-card>.card-body {
    padding: 0.6875rem 0.8125rem;
  }
}

.public-page-card>.card-header {
  padding: 0.45rem 0.875rem;
  border-bottom: none;
}

.public-page-card>.card-header h5,
.public-page-card>.card-header h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

/* ΤΥΠΟΓΡΑΦΙΑ */
.public-page-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: #212529;
}

.public-page-lead {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.public-page-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  color: #343a40;
}

.public-page-section-title:first-child {
  margin-top: 0;
}

/* ΓΡΑΜΜΗ ΕΡΓΑΛΕΙΩΝ (Π.Χ. ΔΙΑΧΕΙΡΙΣΤΗΣ-ΥΠΕΡΑΣ ΔΗΜΙΟΥΡΓΙΑ ΔΙΑΧΕΙΡΙΣΤΗ) */
.public-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
  .public-page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-page-toolbar .btn {
    width: 100%;
  }
}

.public-page-toolbar .public-page-title {
  margin-bottom: 0;
}

/* ΦΟΡΜΕΣ: ΣΤΑΘΕΡΗ ΠΥΚΝΟΤΗΤΑ, ΕΥΚΟΛΟ ΠΑΤΗΜΑ */
.public-page-inner .form-label {
  font-weight: 500;
  font-size: 0.8125rem;
  margin-bottom: 0.2rem;
}

.public-page-inner .form-control,
.public-page-inner .form-select {
  font-size: 0.9375rem;
  padding: 0.42rem 0.65rem;
  min-height: 2.5rem;
}

.public-page-inner .form-text {
  font-size: 0.75rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.public-page-inner form .mb-3 {
  margin-bottom: 0.5rem !important;
}

.public-page-inner form .mb-2 {
  margin-bottom: 0.45rem !important;
}

.public-page-inner hr {
  margin: 0.55rem 0;
  opacity: 0.13;
}

.public-page-inner .alert {
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.public-page-inner .alert:last-child {
  margin-bottom: 0;
}

.public-page-inner .btn:not(.btn-sm) {
  padding: 0.45rem 0.85rem;
  font-size: 0.9375rem;
}

.public-page-inner .btn-sm {
  padding: 0.32rem 0.55rem;
  font-size: 0.8125rem;
}

.public-page-inner .form-check {
  margin-bottom: 0;
  padding-top: 0.1rem;
}

.public-page-inner .form-check-label {
  font-size: 0.875rem;
}

/* ΔΕΥΤΕΡΕΥΟΝΤΕΣ ΣΥΝΔΕΣΜΟΙ ΚΑΤΩ ΑΠΟ ΦΟΡΜΕΣ */
.public-page-meta-link {
  font-size: 0.8125rem;
}

/* ΟΜΑΔΑ ΠΕΔΙΩΝ ΕΓΓΡΑΦΗΣ ΥΠΑΛΛΗΛΟΥ */
.public-page-fieldset {
  padding: 0.55rem 0.65rem !important;
  margin-bottom: 0.55rem !important;
  border-color: #dee2e6 !important;
}

.public-page-fieldset legend {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 0.35rem;
  margin-bottom: 0.35rem;
  float: none;
  width: auto;
}

.public-page-fieldset .mb-3:last-child {
  margin-bottom: 0 !important;
}

/* ΣΥΝΔΕΣΗ: ΟΙ ΣΥΝΔΕΣΜΟΙ ΞΕΧΑΣΜΕΝΟΥ ΤΥΛΙΓΟΝΤΑΙ ΣΕ ΣΤΕΝΕΣ ΟΘΟΝΕΣ */
.public-login-forgot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.8125rem;
}

.public-login-forgot .sep {
  opacity: 0.45;
}

@media (max-width: 380px) {
  .public-login-forgot .sep {
    display: none;
  }

  .public-login-forgot {
    flex-direction: column;
  }
}

/* ΣΗΜΑΝΣΗ ΥΠΟΧΡΕΩΤΙΚΟΥ ΠΕΔΙΟΥ (ΞΕΧΑΣΜΕΝΟΣ ΚΩΔΙΚΟΣ, ΕΓΓΡΑΦΗ ΥΠΑΛΛΗΛΟΥ, Κ.ΛΠ.) */
.public-page-inner .form-label.required {
  font-weight: 500;
  color: #333;
}

.public-page-inner .form-label.required::after {
  content: ' *';
  color: #dc3545;
}

.public-page-back-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.875rem;
}

.public-page-back-link:hover {
  color: #495057;
}

/* ΣΤΑΤΙΚΑ ΚΕΙΜΕΝΑ / ΠΑΡΑΓΡΑΦΟΙ (Π.Χ. ΔΙΑΧΕΙΡΙΣΤΗΣ-ΥΠΕΡΑΣ ΑΠΕΝΕΡΓΟΠΟΙΗΣΗ, ΣΦΑΛΜΑ ΒΑΣΗΣ ΔΕΔΟΜΕΝΩΝ) */
.public-page-prose ul {
  margin-bottom: 0.5rem;
  padding-left: 1.15rem;
  font-size: 0.875rem;
}

.public-page-prose ul li {
  margin-bottom: 0.25rem;
}

.public-page-prose p {
  font-size: 0.875rem;
  margin-bottom: 0.45rem;
}

.public-page-prose code {
  font-size: 0.78em;
}

/* ΕΜΠΕΙΡΙΑ ΚΩΔΙΚΟΥ ΕΓΓΡΑΦΗΣ ΥΠΑΛΛΗΛΟΥ (ΕΝΑΛΛΑΓΗ ΟΡΑΤΟΤΗΤΑΣ + ΠΡΟΑΙΡΕΤΙΚΑ ΠΑΛΑΙΑ ΜΕΡΗ ΠΡΟΤΥΠΟΥ) */
#employee-password-container {
  display: none;
}

#employee-password-container.public-page-password-container-visible {
  display: block;
}

.public-page-inner .public-page-field-msg-error {
  margin-top: 0.5rem;
}

.public-site-theme-btn {
  min-width: 2.35rem;
  min-height: 2.35rem;
}

/* ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ: ΤΥΠΟΓΡΑΦΙΑ ΔΗΜΟΣΙΩΝ ΣΕΛΙΔΩΝ (ΠΑΡΑΚΑΜΨΗ ΤΩΝ ΦΩΤΕΙΝΩΝ ΚΑΝΟΝΩΝ ΠΑΝΩ) */
body.dark-mode .public-page-title,
body.dark-mode .public-page-section-title {
  color: #f8fbff !important;
}

body.dark-mode .public-page-lead {
  color: #c7d2e6 !important;
}

body.dark-mode .public-page-fieldset {
  border-color: #1f2a40 !important;
}

body.dark-mode .public-page-inner .form-label.required {
  color: #e8f0ff !important;
}

body.dark-mode .public-page-back-link {
  color: #c7d2e6 !important;
}

body.dark-mode .public-page-back-link:hover {
  color: #f8fbff !important;
}

/* ==========================================================================
   ΚΟΙΝΑ — ΕΛΕΓΧΟΙ ΕΙΚΟΝΙΔΙΩΝ ΠΛΟΗΓΗΣΗΣ (ΜΠΑΡΑ ΔΙΑΧΕΙΡΙΣΤΙΚΟΥ ΚΑΙ ΥΠΑΛΛΗΛΟΥ)
   ========================================================================== */

/* ΤΑ ΕΙΚΟΝΙΔΙΑ ΝΑ ΜΟΙΑΖΟΥΝ ΜΕ ΚΑΝΟΝΙΚΟΥΣ ΣΥΝΔΕΣΜΟΥΣ ΠΛΟΗΓΗΣΗΣ (ΟΧΙ ΛΕΥΚΑ ΚΟΥΜΠΙΑ) */
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
  line-height: 1;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.nav-icon-link:hover,
.nav-icon-link:focus {
  color: #ffffff;
}

.nav-icon-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

@media (max-width: 992px) {
  .nav-icon-link {
    padding: 0.6rem 0.8rem;
  }
}

/* ΚΟΙΝΟ ΚΟΥΜΠΙ ΜΕΝΟΥ ΣΕ ADMIN / EMPLOYEE (ΚΙΝΗΤΟ) */
@media (max-width: 991.98px) {

  .admin-navbar .navbar-toggler,
  .employee-navbar .navbar-toggler {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.45rem;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
  }

  .admin-navbar .navbar-toggler .navbar-toggler-icon,
  .employee-navbar .navbar-toggler .navbar-toggler-icon {
    height: 1.25rem;
    width: 1.25rem;
  }

  .admin-navbar .navbar-toggler:focus,
  .employee-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  }
}

/* ==========================================================================
   ΔΙΑΧΕΙΡΙΣΤΙΚΟ — ΕΝΟΠΟΙΗΜΕΝΟ ΑΠΟ ΠΑΛΑΙΟ ΠΑΚΕΤΟ (ΕΞΑΓΩΓΗ ΕΝΣΩΜΑΤΩΜΕΝΩΝ ΣΤΥΛ)
   ========================================================================== */

/* -------------------------
   ΚΟΙΝΑ ΣΤΟΙΧΕΙΑ ΔΙΑΜΟΡΦΩΣΗΣ ΔΙΑΧΕΙΡΙΣΤΙΚΟΥ
   ------------------------- */

/* ΚΕΦΑΛΙΔΑ ΠΛΟΗΓΗΣΗΣ */
.admin-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-navbar-brand {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  line-height: 0;
}

.admin-navbar-logo {
  height: 2.25rem;
  width: auto;
  display: block;
}

.admin-navbar-nav {
  gap: 0.15rem;
}

.admin-navbar .admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-navbar .admin-nav-link-icon {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.92;
}

.admin-navbar .admin-nav-utilities {
  margin-left: 0;
}

.admin-navbar .admin-nav-utilities-bar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.admin-navbar .admin-lang-dropdown-toggle::after {
  display: none !important;
}

.admin-navbar .admin-nav-utility-btn {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
}

.admin-navbar .dropdown-menu.admin-lang-menu {
  --bs-dropdown-min-width: 0;
  min-width: 0;
  width: auto;
  padding: 0.3rem;
}

.admin-navbar .dropdown-menu.admin-lang-menu .lang-flag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  line-height: 0;
  border-radius: 0.35rem;
}

.admin-navbar .dropdown-menu.admin-lang-menu .lang-flag-item:hover,
.admin-navbar .dropdown-menu.admin-lang-menu .lang-flag-item:focus {
  background-color: rgba(0, 0, 0, 0.06);
}

.admin-navbar .dropdown-menu.admin-lang-menu .lang-flag-item.active,
.admin-navbar .dropdown-menu.admin-lang-menu .lang-flag-item.active:hover,
.admin-navbar .dropdown-menu.admin-lang-menu .lang-flag-item.active:focus {
  background-color: rgba(102, 126, 234, 0.22);
  color: inherit;
}

.admin-navbar .dropdown-menu.admin-lang-menu li+li {
  margin-top: 0.125rem;
}

.sbz-lang-flag-img {
  border-radius: 0.15rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  display: block;
  width: 1.75rem;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .admin-navbar .admin-nav-utilities {
    margin-left: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .admin-navbar .admin-navbar-nav {
    width: 100%;
    padding: 0.35rem 0 0.65rem;
  }

  .admin-navbar .admin-nav-main {
    width: 100%;
  }

  .admin-navbar .admin-nav-link {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 0.45rem;
  }

  .admin-navbar .admin-nav-link.active {
    background-color: rgba(255, 255, 255, 0.14);
    font-weight: 600;
  }

  .admin-navbar .admin-nav-utilities {
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .admin-navbar .admin-nav-utilities-bar {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .admin-navbar .admin-nav-lang-wrap {
    flex: 0 0 auto;
  }

  .admin-navbar .admin-lang-dropdown {
    width: auto;
  }

  .admin-navbar .admin-lang-dropdown .dropdown-menu.admin-lang-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex !important;
    flex-direction: row;
    gap: 0.45rem;
    margin: 0;
    min-width: 0;
    padding: 0;
    position: static !important;
    transform: none !important;
    width: auto;
  }

  .admin-navbar .admin-lang-dropdown .dropdown-menu.admin-lang-menu li {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .admin-navbar .admin-lang-dropdown .dropdown-menu.admin-lang-menu .lang-flag-item {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    height: 2.75rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
    width: 2.75rem;
  }

  .admin-navbar .admin-lang-dropdown .dropdown-menu.admin-lang-menu .lang-flag-item.active {
    background-color: rgba(102, 126, 234, 0.35);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .admin-navbar .admin-nav-utility-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
  }
}

/* ΣΤΑΘΜΟΣ QR ΣΤΙΣ ΡΥΘΜΙΣΕΙΣ — QR ΚΩΔΙΚΑΣ ΚΑΤΩ ΑΠΟ ΤΟ LINK */
.settings-qr-station-split .settings-qr-station-hint {
  max-width: 20rem;
}

.settings-qr-station-wrap canvas,
.settings-qr-station-wrap img {
  display: block;
}

/* ΣΕΛΙΔΑ ΡΥΘΜΙΣΕΩΝ ΔΙΑΧΕΙΡΙΣΤΗ */
.admin-settings-page .settings-page-desc {
  max-width: 42rem;
}

.admin-settings-page .settings-section-nav {
  top: 1rem;
  z-index: 20;
}

.admin-settings-page .settings-section-nav .list-group-item {
  border-left: 3px solid transparent;
  font-size: 0.925rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.admin-settings-page .settings-section-nav .list-group-item:hover,
.admin-settings-page .settings-section-nav .list-group-item:focus {
  background-color: rgba(102, 126, 234, 0.08);
}

.admin-settings-page .settings-section-nav .list-group-item.active {
  border-left-color: #667eea;
  background-color: rgba(102, 126, 234, 0.12);
  color: #4c51bf;
  font-weight: 600;
}

.admin-settings-page .settings-section-nav-mobile .nav-link {
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
}

.admin-settings-page .settings-section-nav-mobile {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.admin-settings-page .settings-section-nav-mobile::-webkit-scrollbar {
  display: none;
}

.admin-settings-page .settings-section-anchor {
  scroll-margin-top: 1rem;
}

.admin-settings .settings-card>.card-header {
  background-color: var(--bs-light, #f8f9fa);
}

body.dark-mode .admin-settings .settings-card>.card-header {
  background-color: var(--sbz-surface-2) !important;
}

.admin-settings .settings-switch-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-settings .settings-switch-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.admin-settings .settings-switch-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-settings .settings-switch-item:first-child {
  padding-top: 0;
}

.admin-settings-page .settings-section-nav-mobile .nav-link.active {
  background-color: rgba(102, 126, 234, 0.18);
  color: #4c51bf;
}

body.dark-mode .admin-settings-page .settings-section-nav-mobile .nav-link.active {
  background-color: rgba(102, 126, 234, 0.28);
  color: #c4cbff;
}

body.dark-mode .admin-settings-page .settings-section-nav .list-group-item.active {
  color: #c4cbff;
  background-color: rgba(102, 126, 234, 0.22);
  border-left-color: #8b9cff;
}

body.dark-mode .admin-settings-page .settings-section-nav .list-group-item:hover,
body.dark-mode .admin-settings-page .settings-section-nav .list-group-item:focus {
  background-color: rgba(102, 126, 234, 0.16);
  color: #f8fbff;
}

body.dark-mode .admin-settings-page .settings-section-nav-mobile .nav-link {
  color: #c7d2e6;
}

body.dark-mode .admin-settings .settings-switch-item {
  border-bottom-color: #1f2a40;
}

body.dark-mode .admin-settings .form-control-plaintext.bg-light {
  background-color: #0f1628 !important;
  color: #f8fbff;
  border-color: #1f2a40 !important;
}

body.dark-mode .settings-qr-station-wrap.bg-white {
  background-color: #ffffff !important;
}

.admin-settings .settings-form-actions {
  padding-top: 0.25rem;
}

.admin-settings .settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-settings .settings-card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.admin-settings .settings-card-save {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.admin-settings .settings-card-save .bi {
  font-size: 1rem;
}

.nav-icon-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

/* ΜΟΝΟ ΣΗΜΑΙΕΣ ΓΛΩΣΣΑΣ: ΜΕΝΟΥ ΣΤΕΝΟ (ΟΙ ΠΡΟΕΠΙΛΟΓΕΣ ΤΟΥ ΠΛΑΙΣΙΟΥ ΕΙΝΑΙ ΠΟΛΥ ΦΑΡΔΙΕΣ) */

.table.attendance-by-day tbody tr.attendance-day-a>* {
  background-color: #fff;
}

.table.attendance-by-day tbody tr.attendance-day-b>* {
  background-color: #f3f6f9;
}

.table.attendance-by-day tbody tr:hover>* {
  background-color: #e9ecef;
}

body.dark-mode .table.attendance-by-day tbody tr.attendance-day-a>* {
  background-color: #101829;
}

body.dark-mode .table.attendance-by-day tbody tr.attendance-day-b>* {
  background-color: #151f33;
}

body.dark-mode .table.attendance-by-day tbody tr:hover>* {
  background-color: #1c2942;
}

.attendance-date-input {
  width: 11rem;
  max-width: 100%;
  flex: 0 0 auto;
}

.attendance-date-filter {
  --bs-gutter-x: 0.75rem;
}

.attendance-date-period-select {
  max-width: 11rem;
  flex: 0 0 auto;
}

.btn-filter-icon {
  width: 2.5rem;
  min-width: 2.5rem;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-filter-icon .bi {
  font-size: 1rem;
}

/* ΕΠΑΝΑΧΡΗΣΙΜΟΠΟΙΗΣΙΜΟΙ ΤΙΤΛΟΙ/ΣΥΝΔΕΣΜΟΙ ΣΕΛΙΔΑΣ */
.admin-page-title {
  margin-top: 30px;
}

.admin-title-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ΑΠΛΟΙ ΒΟΗΘΟΙ ΑΝΤΙ ΓΙΑ ΕΝΣΩΜΑΤΩΜΕΝΑ ΣΤΥΛ */
.is-hidden {
  display: none;
}

.admin-inline-form {
  display: inline;
}

/* ΕΝΕΡΓΕΙΕΣ ΓΡΑΜΜΗΣ ΜΟΝΟ ΜΕ ΕΙΚΟΝΙΔΙΟ (Π.Χ. ΠΙΝΑΚΑΣ ΥΠΑΛΛΗΛΩΝ) */
.btn-icon-action {
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-icon-action .bi {
  font-size: 1.05rem;
}

.manage-staff-table {
  width: 100%;
}

.manage-staff-role-badge {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.25;
}

.manage-staff-role-cell {
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .manage-staff-table {
    min-width: 38rem;
  }

  .manage-staff-role-badge {
    font-size: 0.75rem;
    padding: 0.4em 0.3em;
  }
}

@media (max-width: 575.98px) {
  .manage-staff-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .manage-staff-table thead {
    display: none;
  }

  .manage-staff-table tbody {
    display: block;
  }

  .manage-staff-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.5rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
  }

  .manage-staff-table tbody tr::before {
    content: '';
    order: 5;
    flex: 0 0 100%;
    height: 0;
    border-top: 1px solid #dee2e6;
    margin-top: 0.35rem;
  }

  body.dark-mode .manage-staff-table tbody tr {
    border-color: #1f2a40;
    background: #141c2f;
  }

  body.dark-mode .manage-staff-table tbody tr::before {
    border-top-color: #1f2a40;
  }

  .manage-staff-table tbody tr td {
    display: block;
    border: none;
    padding: 0;
    width: auto;
  }

  .manage-staff-table tbody tr td:first-child {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
  }

  .manage-staff-table tbody tr td.manage-staff-role-cell {
    order: 1;
    flex: 0 0 9rem;
    width: 9rem;
    max-width: 9rem;
    align-self: flex-start;
  }

  .manage-staff-role-badge {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    padding: 0.4em 0.3em;
  }

  .manage-staff-table tbody tr td.employees-row-actions-col {
    order: 10;
    flex: 0 0 auto;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }

  .manage-staff-table tbody tr td.employees-row-actions-col:not(:has(.btn, form)) {
    display: none;
  }

  .manage-staff-table .employees-row-actions-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    gap: 0.35rem;
  }
}

.employees-actions-th {
  white-space: nowrap;
}

.employees-row-actions-col {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  vertical-align: middle;
  text-align: left;
}

.employees-row-actions-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.125rem;
}

.employees-row-actions-inner form {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}

/* ΣΕΛΙΔΑ ΥΠΑΛΛΗΛΩΝ: ΣΥΜΠΑΓΗΣ ΔΙΑΤΑΞΗ ΓΙΑ ΤΟ ΠΑΡΑΘΥΡΟ ΟΡΙΣΜΟΥ ΩΡΑΡΙΟΥ */
.hours-modal-compact .modal-header,
.hours-modal-compact .modal-footer {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.hours-modal-compact .modal-body {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.hours-modal-compact .card-body {
  padding: 0.62rem;
}

.hours-modal-compact .card-title,
.hours-modal-compact .section-title {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.hours-modal-compact .form-label {
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
}

.hours-modal-compact .form-text,
.hours-modal-compact .text-muted {
  font-size: 0.78rem;
}

.hours-modal-compact .table th,
.hours-modal-compact .table td {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  vertical-align: middle;
}

.hours-modal-compact .daily-schedule-scroll {
  max-height: none;
  overflow-y: visible;
}

.hours-modal-compact .daily-schedule-row .form-control-sm {
  min-height: 1.65rem;
  padding-top: 0.12rem;
  padding-bottom: 0.12rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.hours-modal-compact .daily-schedule-scroll .table {
  table-layout: fixed;
}

.hours-modal-compact .daily-schedule-scroll .table th,
.hours-modal-compact .daily-schedule-scroll .table td {
  white-space: nowrap;
}

.hours-modal-compact .daily-schedule-scroll .table th:first-child,
.hours-modal-compact .daily-schedule-scroll .table td:first-child {
  width: 6.8rem;
  font-size: 0.8rem;
}

.hours-modal-compact .daily-schedule-scroll .form-control-sm {
  min-width: 5.1rem;
}

.hours-modal-compact .form-check {
  margin-bottom: 0;
}

.hours-modal-compact .form-check-label {
  font-size: 0.95rem;
  line-height: 1.15;
}

/* ERGANI LOGS MODAL: ΣΥΜΠΑΓΗΣ ΠΡΟΒΟΛΗ ΚΑΤΑΓΡΑΦΩΝ API */
.ergani-logs-modal .modal-dialog {
  max-width: 920px;
}

.ergani-logs-modal .modal-body {
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.ergani-logs-table th {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.ergani-logs-table td {
  font-size: 0.82rem;
  vertical-align: top;
}

.ergani-logs-details-row>td {
  border-top: 0;
}

.ergani-logs-pre {
  font-size: 0.72rem;
  line-height: 1.35;
  max-height: 140px;
  overflow: auto;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
  background: var(--bs-light);
  white-space: pre-wrap;
  word-break: break-word;
}

body.dark-mode .ergani-logs-pre {
  background: #11172a;
  border-color: #1f2a40;
  color: #f8fbff;
}

.ergani-session-logs-panel {
  min-width: 280px;
  max-width: min(100vw, 720px);
}

.ergani-employee-status {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: help;
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: 1.25rem;
  min-width: 4.3125rem;
  justify-content: center;
}

.ergani-employee-status--success {
  color: var(--bs-success);
  background-color: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.35);
}

.ergani-employee-status--failed {
  color: var(--bs-danger);
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.35);
}

.ergani-employee-status--retryable {
  cursor: pointer;
  border-style: dashed;
}

.ergani-retry-btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  min-width: 0;
  text-align: inherit;
  vertical-align: middle;
}

button.ergani-employee-status {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.68rem;
  font-weight: 600;
  min-height: 1.25rem;
}

.ergani-retry-btn:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.35);
}

.ergani-employee-status--retryable:hover,
.ergani-employee-status--retryable:focus-visible {
  background-color: rgba(220, 53, 69, 0.18);
  outline: none;
}

.ergani-retry-btn--busy {
  opacity: 0.7;
  cursor: wait;
}

.ergani-message-modal-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.ergani-employee-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 0.82em;
  line-height: 1;
  flex-shrink: 0;
}

body.dark-mode.employee-portal .ergani-employee-status--success,
body.dark-mode .ergani-employee-status--success {
  background-color: rgba(25, 135, 84, 0.18);
  border-color: rgba(25, 135, 84, 0.45);
}

body.dark-mode.employee-portal .ergani-employee-status--failed,
body.dark-mode .ergani-employee-status--failed {
  background-color: rgba(220, 53, 69, 0.18);
  border-color: rgba(220, 53, 69, 0.45);
}

.admin-role-select {
  width: auto;
  display: inline-block;
}

/* ΤΑΜΠΛΕΤΑ/ΚΙΝΗΤΟ (ΠΛΑΤΟΣ ΟΘΟΝΗΣ ΕΩΣ 992 PX) */
@media (max-width: 992px) {

  /* ΜΕΙΩΣΗ ΚΕΝΟΥ ΠΑΝΩ ΚΑΙ ΑΝΑΓΝΩΣΙΜΟΙ ΤΙΤΛΟΙ */
  .admin-page-title {
    margin-top: 12px;
  }

  .admin-page-title h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }

  /* ΠΙΟ ΣΤΕΓΝΕΣ ΚΑΡΤΕΣ ΣΕ ΜΙΚΡΟΤΕΡΕΣ ΟΘΟΝΕΣ */
  .card-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .card-body {
    padding: 0.9rem;
  }

  /* ΚΑΛΥΤΕΡΟΙ ΣΤΟΧΟΙ ΠΑΤΗΜΑΤΟΣ */
  .btn {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .btn.btn-sm {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  /* ΠΙΟ ΟΜΑΛΗ ΟΡΙΖΟΝΤΙΑ ΚΥΛΙΣΗ ΠΙΝΑΚΑ ΣΤΟ ΑΓΓΙΓΜΑ */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  /* ΣΕΛΙΔΑ ΡΥΘΜΙΣΕΩΝ: ΑΠΟΦΥΓΗ ΣΥΜΠΙΕΣΗΣ/ΥΠΕΡΧΕΙΛΙΣΗΣ ΣΤΙΣ ΟΜΑΔΕΣ ΕΙΣΟΔΟΥ ΤΟΥ ΠΛΑΙΣΙΟΥ */
  .admin-settings .input-group {
    flex-wrap: wrap;
  }

  .admin-settings .input-group>.form-control,
  .admin-settings .input-group>.form-select {
    width: 100%;
    flex: 0 0 100%;
    border-radius: 0.375rem !important;
  }

  .admin-settings .input-group>.btn,
  .admin-settings .input-group>a.btn {
    width: 100%;
    flex: 0 0 100%;
    margin-top: 0.5rem;
    border-radius: 0.375rem !important;
  }
}

/* ΑΝΑΦΟΡΕΣ ΚΑΙ ΑΝΑΦΟΡΕΣ ΛΟΓΙΣΤΗ */
.stat-box {
  text-align: center;
  padding: 15px;
}

.stat-box h4 {
  margin: 10px 0 5px 0;
}

body.dark-mode.admin-portal .stat-box h4 {
  color: #9bc1ff;
}

.report-chart-wrap {
  position: relative;
  height: 300px;
}

.report-chart-wrap--tall {
  height: max(300px, min(520px, calc(48px * var(--leave-chart-rows, 6))));
}

.report-section-tabs .nav-link {
  font-weight: 500;
}

.report-filters-year {
  width: auto;
  min-width: 5.5rem;
}

.report-filters-employee {
  width: auto;
  min-width: 10rem;
  max-width: 18rem;
}

.report-filters--header .form-select {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  color: #212529;
}

.report-filters--header .form-select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ: ΑΝΑΦΟΡΕΣ ADMIN */
body.dark-mode .card-header.bg-primary.text-white {
  background-color: #1e4a8a !important;
  color: #f8fbff !important;
}

body.dark-mode .card-header.bg-success.text-white {
  background-color: #1a5c38 !important;
  color: #f8fbff !important;
}

body.dark-mode .report-filters--header .form-select {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fbff;
}

body.dark-mode .report-filters--header .form-select:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
  color: #f8fbff;
}

body.dark-mode .report-filters--header .form-select option {
  background-color: #0f1628;
  color: #f8fbff;
}

body.dark-mode .card-header.bg-primary .report-export-xlsx.btn-light,
body.dark-mode .card-header.bg-success .report-export-xlsx.btn-light {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fbff;
}

body.dark-mode .card-header.bg-primary .report-export-xlsx.btn-light:hover,
body.dark-mode .card-header.bg-primary .report-export-xlsx.btn-light:focus,
body.dark-mode .card-header.bg-success .report-export-xlsx.btn-light:hover,
body.dark-mode .card-header.bg-success .report-export-xlsx.btn-light:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #f8fbff;
}

body.dark-mode .report-section-tabs {
  border-bottom-color: #1f2a40;
}

body.dark-mode .table .text-danger {
  color: #f87171 !important;
}

/* ΤΑΜΠΛΟ — ΚΑΡΤΕΣ ΣΤΑΤΙΣΤΙΚΩΝ (ΔΙΑΧΕΙΡΙΣΤΙΚΟ ΚΑΙ ΥΠΑΛΛΗΛΟΣ) */
.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.stat-card .employee-stat-icon-lg {
  font-size: 1.5rem;
}

body.employee-portal .employee-dashboard-stats {
  --employee-stat-border: rgba(102, 126, 234, 0.14);
}

body.employee-portal .employee-stat-tile {
  background: #f8f9fc;
  border: 1px solid var(--employee-stat-border, rgba(102, 126, 234, 0.14));
  border-radius: 0.75rem;
  height: 100%;
  padding: 0.9rem 0.75rem;
  text-align: center;
}

body.employee-portal .employee-stat-tile__icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

body.employee-portal .employee-stat-tile__label {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

body.employee-portal .employee-stat-tile__value {
  color: #2c3e50;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

body.employee-portal .employee-stat-tile__unit {
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 0.15rem;
}

body.employee-portal .employee-stat-tile__meta {
  color: #6c757d;
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 0.35rem;
}

body.employee-portal .employee-stat-tile--times {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.employee-portal .employee-stat-tile__times {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

body.employee-portal .employee-stat-tile__time-item {
  flex: 1 1 0;
  min-width: 0;
}

body.employee-portal .employee-stat-tile__time-sep {
  color: #adb5bd;
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
}

body.employee-portal .employee-stat-progress {
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  height: 0.35rem;
  margin-top: 0.55rem;
  overflow: hidden;
}

body.employee-portal .employee-stat-progress .progress-bar {
  border-radius: 999px;
}

body.employee-portal .employee-dashboard-today-empty,
body.employee-portal .employee-dashboard-today-status {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

body.dark-mode.employee-portal .employee-stat-tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode.employee-portal .employee-stat-tile__value {
  color: #f1f3f5;
}

body.dark-mode.employee-portal .employee-stat-tile__label,
body.dark-mode.employee-portal .employee-stat-tile__meta,
body.dark-mode.employee-portal .employee-stat-tile__unit,
body.dark-mode.employee-portal .employee-stat-tile__time-sep {
  color: #adb5bd;
}

body.dark-mode.employee-portal .employee-stat-progress {
  background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode.employee-portal .employee-dashboard-today-empty {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ced4da;
}

.welcome-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.menu-card {
  transition: transform 0.2s;
}

.menu-card:hover {
  transform: translateY(-5px);
}

/* ΠΡΟΣΦΥΓΕΣ ΚΑΤΑΓΡΑΦΗΣ ΕΙΣΟΔΟΥ */
.appeal-row {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.appeal-row:last-child {
  border-bottom: none;
}

body.dark-mode .appeal-row {
  border-bottom-color: #1f2a40;
}

/* ΑΔΕΙΕΣ (ΕΠΕΚΤΑΣΗ ΠΛΗΡΟΥΣ ΗΜΕΡΟΛΟΓΙΟΥ) */
#leaveCalendar {
  min-height: 520px;
}

.fc .fc-daygrid-event {
  font-size: 0.85rem;
  line-height: 1.15;
  padding: 2px 4px;
  border-radius: 4px;
}

.fc .fc-daygrid-day-number {
  padding: 2px 4px;
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   ΦΟΡΕΑΣ ΥΠΑΛΛΗΛΟΥ — ΔΙΑΤΑΞΗ, ΑΔΕΙΕΣ, ΡΥΘΜΙΣΕΙΣ (ΣΩΜΑ ΜΕ ΚΛΑΣΗ EMPLOYEE-PORTAL)
   ========================================================================== */

/* ΚΕΛΥΦΟΣ: ΙΔΙΑ ΣΤΟΙΒΑ ΓΡΑΜΜΑΤΟΣΕΙΡΩΝ, ΦΟΝΤΟ ΚΑΙ ΠΛΑΤΟΣ ΣΕ ΚΑΘΕ ΣΕΛΙΔΑ */
body.employee-portal {
  background-color: #ffffff;
  color: #212529;
}

/* ΣΗΜΑ ΚΛΑΣΗΣ: ΟΙ ΙΔΙΟΙ ΚΑΝΟΝΕΣ ΜΕ ΤΗΝ ΚΛΑΣΗ `.CONTAINER` ΤΟΥ ΠΛΑΙΣΙΟΥ · ΓΙΑ ΣΤΟΙΧΙΣΗ ΥΠΟΣΕΛΙΔΟΥ/ΚΥΡΙΟΥ ΠΕΡΙΕΧΟΜΕΝΟΥ */
body.employee-portal .employee-main {
  box-sizing: border-box;
}

body.employee-portal h1,
body.employee-portal h2,
body.employee-portal h3,
body.employee-portal h4,
body.employee-portal h5,
body.employee-portal .h1,
body.employee-portal .h2,
body.employee-portal .h3,
body.employee-portal .h4,
body.employee-portal .h5 {
  font-weight: 600;
}

body.dark-mode.employee-portal {
  background-color: #0b1020;
  color: #f8fbff;
}

/* ΚΕΦΑΛΙΔΑ / ΠΛΟΗΓΗΣΗ */
.employee-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.employee-navbar-brand {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  line-height: 0;
}

.employee-navbar-logo {
  height: 2.25rem;
  width: auto;
  display: block;
}

.employee-navbar-nav {
  gap: 0.15rem;
}

.employee-navbar .employee-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.employee-navbar .employee-nav-link-icon {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.92;
}

.employee-navbar .employee-nav-utilities {
  margin-left: 0;
}

.employee-navbar .employee-nav-utilities-bar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.employee-navbar .employee-lang-dropdown-toggle::after {
  display: none !important;
}

.employee-navbar .employee-nav-utility-btn {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
}

.employee-navbar .employee-nav-switch-back {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.875rem;
  gap: 0.35rem;
  height: 2.5rem;
  line-height: 1;
  margin-right: auto;
  padding: 0 0.65rem;
  white-space: nowrap;
}

.employee-navbar .dropdown-menu.employee-lang-menu {
  --bs-dropdown-min-width: 0;
  min-width: 0;
  width: auto;
  padding: 0.3rem;
}

.employee-navbar .dropdown-menu.employee-lang-menu .lang-flag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  line-height: 0;
  border-radius: 0.35rem;
}

.employee-navbar .dropdown-menu.employee-lang-menu .lang-flag-item:hover,
.employee-navbar .dropdown-menu.employee-lang-menu .lang-flag-item:focus {
  background-color: rgba(0, 0, 0, 0.06);
}

.employee-navbar .dropdown-menu.employee-lang-menu .lang-flag-item.active,
.employee-navbar .dropdown-menu.employee-lang-menu .lang-flag-item.active:hover,
.employee-navbar .dropdown-menu.employee-lang-menu .lang-flag-item.active:focus {
  background-color: rgba(102, 126, 234, 0.22);
  color: inherit;
}

.employee-navbar .dropdown-menu.employee-lang-menu li+li {
  margin-top: 0.125rem;
}

@media (min-width: 992px) {
  .employee-navbar .employee-nav-utilities {
    margin-left: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .employee-navbar .employee-navbar-nav {
    width: 100%;
    padding: 0.35rem 0 0.65rem;
  }

  .employee-navbar .employee-nav-main {
    width: 100%;
  }

  .employee-navbar .employee-nav-link {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 0.45rem;
  }

  .employee-navbar .employee-nav-link.active {
    background-color: rgba(255, 255, 255, 0.14);
    font-weight: 600;
  }

  .employee-navbar .employee-nav-utilities {
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .employee-navbar .employee-nav-utilities-bar {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .employee-navbar .employee-nav-switch-back {
    height: 2.75rem;
    padding: 0 0.75rem;
  }

  .employee-navbar .employee-nav-lang-wrap {
    flex: 0 0 auto;
  }

  .employee-navbar .employee-lang-dropdown {
    width: auto;
  }

  .employee-navbar .employee-lang-dropdown .dropdown-menu.employee-lang-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex !important;
    flex-direction: row;
    gap: 0.45rem;
    margin: 0;
    min-width: 0;
    padding: 0;
    position: static !important;
    transform: none !important;
    width: auto;
  }

  .employee-navbar .employee-lang-dropdown .dropdown-menu.employee-lang-menu li {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .employee-navbar .employee-lang-dropdown .dropdown-menu.employee-lang-menu .lang-flag-item {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    height: 2.75rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
    width: 2.75rem;
  }

  .employee-navbar .employee-lang-dropdown .dropdown-menu.employee-lang-menu .lang-flag-item.active {
    background-color: rgba(102, 126, 234, 0.35);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .employee-navbar .employee-nav-utility-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
  }
}

/* ΥΠΟΣΕΛΙΔΟ */
.employee-footer {
  margin-top: 2rem;
  border-color: rgba(0, 0, 0, 0.08) !important;
  background-color: transparent;
}

body.dark-mode.employee-portal .employee-footer {
  border-color: #1f2a40 !important;
}

.employee-footer-inner {
  letter-spacing: 0.01em;
}

/* ΚΟΙΝΕΣ ΚΑΡΤΕΣ */
body.employee-portal .card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ΠΛΑΙΣΙΟ ΣΕΛΙΔΑΣ ΚΑΤΩ ΑΠΟ ΤΗΝ ΠΛΟΗΓΗΣΗ (ΤΙΤΛΟΣ ΚΑΙ ΣΥΜΠΛΗΡΩΜΑΤΙΚΟ ΚΕΙΜΕΝΟ ΑΠΟ ΤΟ ΚΟΙΝΟ ΑΡΧΕΙΟ ΚΕΦΑΛΙΔΑΣ ΕΦΑΡΜΟΓΗΣ) */
.employee-header-context {
  background-color: rgba(102, 126, 234, 0.09);
}

.employee-header-context-primary {
  font-size: 0.9375rem;
  line-height: 1.35;
}

.employee-header-context-meta {
  line-height: 1.35;
}

body.dark-mode.employee-portal .employee-header-context {
  background-color: rgba(17, 23, 42, 0.92);
  border-color: #1f2a40 !important;
}

body.dark-mode.employee-portal .employee-header-context-primary,
body.dark-mode.employee-portal .employee-header-context-primary.text-body {
  color: var(--sbz-text);
}

.emp-install-page-btn {
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.emp-install-page-btn:hover,
.emp-install-page-btn:focus {
  background-color: #fff !important;
}

body.dark-mode.employee-portal .employee-settings-install-wrap .emp-install-page-btn {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.dark-mode.employee-portal .employee-settings-install-wrap .emp-install-page-btn:hover,
body.dark-mode.employee-portal .employee-settings-install-wrap .emp-install-page-btn:focus {
  background-color: #fff !important;
}

body.dark-mode.employee-portal .employee-settings-install-wrap .text-muted {
  color: #c7d2e6 !important;
}

.employee-settings-profile-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode.employee-portal .employee-settings-profile-preview {
  border-color: #1f2a40;
}

/* ΡΥΘΜΙΣΕΙΣ: ΦΩΤΟ ΠΡΟΦΙΛ + ΕΓΚΑΤΑΣΤΑΣΗ · ΠΕΔΙΑ (ΔΥΟ ΣΤΗΛΕΣ ΑΠΟ ΜΕΓΑΛΗ ΟΘΟΝΗ) */
.employee-settings-form-row {
  align-items: stretch;
}

.employee-settings-left-stack {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

body.dark-mode.employee-portal .employee-settings-left-stack {
  border-bottom-color: #1f2a40;
}

@media (min-width: 992px) {
  .employee-settings-col-photo .employee-settings-left-stack {
    height: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    padding-right: 1rem;
  }

  .employee-settings-col-fields {
    padding-left: 0.5rem;
  }

  body.dark-mode.employee-portal .employee-settings-col-photo .employee-settings-left-stack {
    border-right-color: #1f2a40;
  }
}

/* ΤΑΜΠΛΟ */
.qr-section {
  text-align: center;
  background: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  border: 0 !important;
}

body.dark-mode.employee-portal .qr-section {
  background: #11172a;
  border: 0 !important;
}

.employee-qr-img {
  box-sizing: content-box;
  max-width: 200px;
  border: 20px solid #fff;
}

body.dark-mode.employee-portal .employee-qr-img {
  border-color: #fff !important;
}

/* QR ΥΠΑΛΛΗΛΟΥ ΣΤΟ ΤΑΜΠΛΟ — ΧΩΡΙΣ ΚΑΡΤΑ/ΠΛΑΙΣΙΟ */
body.employee-portal .employee-dashboard-qr {
  text-align: center;
}

body.employee-portal .employee-dashboard-qr-scan {
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

body.employee-portal .employee-dashboard-qr-link {
  background: #fff;
  box-sizing: border-box;
  display: inline-block;
  line-height: 0;
  padding: 20px;
  text-decoration: none;
}

body.employee-portal .employee-dashboard-qr-link:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid rgba(102, 126, 234, 0.55);
  outline-offset: 4px;
}

body.employee-portal .employee-dashboard-qr-img {
  border: 0;
  box-sizing: border-box;
  display: block;
  height: auto;
  max-width: min(200px, 72vw);
  width: 100%;
}

body.dark-mode.employee-portal .employee-dashboard-qr-link {
  background: #fff;
}

body.employee-portal .employee-dashboard-qr-hint {
  line-height: 1.35;
  margin-top: 0.55rem;
}

/* ΠΑΡΟΥΣΙΕΣ ΕΒΔΟΜΑΔΑΣ — ΠΙΝΑΚΑΣ ΗΜΕΡΩΝ */
body.employee-portal .employee-week-attendance {
  table-layout: fixed;
  width: 100%;
}

body.employee-portal .employee-week-attendance-legend {
  flex: 1 1 12rem;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}

body.employee-portal .employee-week-attendance th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.employee-portal .employee-week-attendance th:nth-child(1) {
  width: 38%;
}

body.employee-portal .employee-week-attendance th:nth-child(2),
body.employee-portal .employee-week-attendance th:nth-child(3) {
  width: 31%;
}

body.employee-portal .employee-week-attendance td {
  vertical-align: middle;
}

body.employee-portal .employee-week-attendance__date {
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.employee-portal .employee-week-attendance__today-badge {
  background: rgba(102, 126, 234, 0.12);
  border-radius: 999px;
  color: #667eea;
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  text-transform: uppercase;
  vertical-align: middle;
}

body.employee-portal .employee-week-attendance__time {
  font-variant-numeric: tabular-nums;
}

body.employee-portal .employee-week-attendance__time-cell {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

body.employee-portal .employee-week-attendance__time-value {
  font-weight: 600;
}

body.employee-portal .employee-week-attendance__row--today>* {
  background-color: rgba(102, 126, 234, 0.08);
}

body.employee-portal .employee-week-attendance__time .ergani-employee-status {
  margin-left: 0;
}

body.employee-portal .employee-week-attendance__mobile-times {
  column-gap: 0.65rem;
  display: inline-grid;
  font-variant-numeric: tabular-nums;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  line-height: 1.35;
  row-gap: 0.35rem;
}

body.employee-portal .employee-week-attendance__mobile-part {
  align-items: baseline;
  display: inline-flex;
  gap: 0.35rem;
  justify-content: center;
}

body.employee-portal .employee-week-attendance__mobile-part--from {
  grid-column: 1;
  grid-row: 1;
}

body.employee-portal .employee-week-attendance__mobile-sep {
  align-self: center;
  color: rgba(0, 0, 0, 0.22);
  font-size: 1.1rem;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1;
  line-height: 1;
  user-select: none;
}

body.employee-portal .employee-week-attendance__mobile-part--to {
  grid-column: 3;
  grid-row: 1;
}

body.employee-portal .employee-week-attendance__mobile-label {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.employee-portal .employee-week-attendance__mobile-ergani {
  display: flex;
  justify-content: center;
}

body.employee-portal .employee-week-attendance__mobile-ergani--from {
  grid-column: 1;
  grid-row: 2;
}

body.employee-portal .employee-week-attendance__mobile-ergani--to {
  grid-column: 3;
  grid-row: 2;
}

body.dark-mode.employee-portal .employee-week-attendance__mobile-sep {
  color: rgba(255, 255, 255, 0.28);
}

body.dark-mode.employee-portal .employee-week-attendance__mobile-label {
  color: #adb5bd;
}

body.dark-mode.employee-portal .employee-week-attendance__today-badge {
  background: rgba(102, 126, 234, 0.2);
  color: #a5b4fc;
}

body.dark-mode.employee-portal .employee-week-attendance__row--today>* {
  background-color: rgba(102, 126, 234, 0.14);
}

body.dark-mode.employee-portal .employee-week-attendance thead.table-light th {
  background-color: #151f33;
  border-color: #1f2a40;
  color: #adb5bd;
}

@media (max-width: 767.98px) {

  body.employee-portal .employee-week-attendance,
  body.employee-portal .employee-week-attendance tbody,
  body.employee-portal .employee-week-attendance tr,
  body.employee-portal .employee-week-attendance td {
    display: block;
    width: 100%;
  }

  body.employee-portal .employee-week-attendance {
    table-layout: auto;
  }

  body.employee-portal .employee-week-attendance thead {
    display: none;
  }

  body.employee-portal .employee-week-attendance tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.85rem 0.75rem;
    text-align: center;
  }

  body.employee-portal .employee-week-attendance tbody tr:last-child {
    border-bottom: 0;
  }

  body.employee-portal .employee-week-attendance__row--today {
    background-color: rgba(102, 126, 234, 0.08);
  }

  body.employee-portal .employee-week-attendance__row--today>* {
    background-color: transparent;
  }

  body.employee-portal .employee-week-attendance__date {
    align-items: center;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
    padding: 0 0 0.55rem;
  }

  body.employee-portal .employee-week-attendance__today-badge {
    margin-left: 0;
  }

  body.employee-portal .employee-week-attendance__mobile {
    align-items: center;
    border: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  body.dark-mode.employee-portal .employee-week-attendance tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  body.dark-mode.employee-portal .employee-week-attendance__row--today {
    background-color: rgba(102, 126, 234, 0.14);
  }
}

.badge-status {
  padding: 5px 12px;
}

/* ΑΔΕΙΕΣ: ΗΜΕΡΟΛΟΓΙΟ ΚΑΙ ΛΙΣΤΑ */
.calendar-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  border-radius: 8px;
}

.card>.calendar-header {
  border-radius: calc(var(--bs-border-radius, 0.375rem) - 1px) calc(var(--bs-border-radius, 0.375rem) - 1px) 0 0;
  margin: 0;
}

.calendar-header .d-flex {
  gap: 0.5rem;
  margin-bottom: 0 !important;
}

.calendar-header h4 {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.15;
}

.calendar-header .calendar-month-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0.15rem 0.35rem;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #334155;
  border-radius: 999px;
  flex: 0 0 auto;
}

.calendar-header .calendar-month-nav:hover,
.calendar-header .calendar-month-nav:focus {
  background-color: #f1f5f9;
  border-color: #fff;
  color: #1e293b;
}

.calendar-header .calendar-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #334155;
  border-radius: 999px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
}

.calendar-header .calendar-header-action:hover,
.calendar-header .calendar-header-action:focus {
  background-color: #f1f5f9;
  border-color: #fff;
  color: #1e293b;
}

.calendar-header .calendar-month-nav .bi,
.calendar-header .calendar-month-nav svg {
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 576px) {
  .calendar-header {
    padding: 8px;
  }

  .calendar-header .d-flex {
    gap: 0.35rem;
  }

  .calendar-header h4 {
    font-size: 0.95rem;
  }

  .calendar-header .calendar-month-nav {
    min-width: 1.75rem;
    min-height: 1.75rem;
    padding: 0.1rem 0.3rem;
  }
}

.calendar-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar-table th {
  width: 14.2857142857%;
  box-sizing: border-box;
  height: 2.3rem;
  min-height: 2.3rem;
  max-height: 2.3rem;
  background: #f5f5f5;
  padding: 4px 6px;
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
  font-size: 0.82rem;
}

.calendar-table td {
  width: 14.2857142857%;
  box-sizing: border-box;
  padding: 4px 6px;
  border: 1px solid #eee;
  text-align: center;
  height: 3.6rem;
  min-height: 3.6rem;
  max-height: 3.6rem;
  line-height: 1.2;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  word-break: break-word;
}

.calendar-table td small {
  display: block;
  margin-top: 1px;
  font-size: 0.62rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-table td:hover {
  background: #f0f0f0;
}

.calendar-table .other-month {
  color: #ccc;
  background: #fafafa;
}

.calendar-table .today {
  background: #e3f2fd;
  font-weight: bold;
}

.calendar-table .selected {
  background: #667eea;
  color: white;
}

.calendar-table .selected small {
  color: #ffffff;
}

.calendar-table .approved {
  background: #d4edda;
  color: #155724;
}

.calendar-table .pending {
  background: #fff3cd;
  color: #856404;
}

.calendar-table .rejected {
  background: #f8d7da;
  color: #721c24;
}

.calendar-table .disabled {
  color: #ccc;
  background: #f5f5f5;
  cursor: not-allowed;
}

.calendar-table .non-working {
  color: #9aa1a8;
  background: #eceff3;
  cursor: not-allowed;
}

.calendar-table .non-working small {
  color: #9aa1a8;
}

.calendar-table .holiday {
  background: #dc3545;
  color: #fff;
  cursor: not-allowed;
}

.calendar-table .holiday small {
  color: #fff;
  font-weight: 600;
}

/* ΗΜΕΡΟΛΟΓΙΟ ΑΔΕΙΩΝ: ΣΤΑΘΕΡΕΣ ΓΡΑΜΜΕΣ ΑΔΕΙΑΣ ΑΝΑ ΗΜΕΡΑ (ΥΠΑΛΛΗΛΟΣ + ADMIN) */
body.employee-portal .calendar-table tbody td,
#adminCalendarTable tbody td {
  position: relative;
  vertical-align: top;
  overflow: hidden;
  box-sizing: border-box;
  --calendar-cell-height: 112px;
  --calendar-events-bottom: 3px;
  --calendar-lane-height: 16px;
  --calendar-lane-gap: 1px;
  --calendar-chip-font-size: 11px;
  padding-bottom: 4px;
  min-height: var(--calendar-cell-height);
  height: var(--calendar-cell-height);
  max-height: var(--calendar-cell-height);
}

body.employee-portal .calendar-table .calendar-events,
#adminCalendarTable .calendar-events {
  position: absolute;
  left: 3px;
  right: 3px;
  top: auto;
  bottom: var(--calendar-events-bottom);
  display: grid;
  grid-template-rows: repeat(var(--leave-lane-count, 1), var(--calendar-lane-height));
  grid-auto-rows: var(--calendar-lane-height);
  gap: var(--calendar-lane-gap);
  align-items: stretch;
  height: calc((var(--calendar-lane-height) + var(--calendar-lane-gap)) * var(--leave-lane-count, 1) - var(--calendar-lane-gap));
  min-height: 0;
  margin-top: 0;
  padding-right: 1px;
  pointer-events: none;
}

@media (max-width: 991.98px) {

  body.employee-portal .calendar-table tbody td,
  #adminCalendarTable tbody td {
    --calendar-cell-height: 94px;
    --calendar-lane-height: 15px;
    --calendar-chip-font-size: 10px;
  }
}

/* ΚΙΝΗΤΟ: ΣΥΜΠΑΓΕΣ ΗΜΕΡΟΛΟΓΙΟ ΑΔΕΙΩΝ (ΧΡΩΜΑΤΙΚΕΣ ΓΡΑΜΜΕΣ ΑΝΤΙ ΚΕΙΜΕΝΟΥ) */
@media (max-width: 575.98px) {

  body.employee-portal .calendar-table tbody td,
  #adminCalendarTable tbody td {
    --calendar-cell-height: 78px;
    --calendar-lane-height: 9px;
    --calendar-lane-gap: 2px;
    --calendar-chip-font-size: 0;
    --calendar-events-bottom: 2px;
    padding: 2px 1px 3px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  body.employee-portal .calendar-table th,
  #adminCalendarTable th {
    height: 1.65rem;
    min-height: 1.65rem;
    max-height: 1.65rem;
    padding: 2px 0;
    font-size: 0.62rem;
    letter-spacing: -0.02em;
  }

  body.employee-portal .calendar-table td small,
  #adminCalendarTable td small {
    font-size: 0.52rem;
    line-height: 1;
    margin-top: 0;
  }

  body.employee-portal .calendar-table td.has-leave-events small.calendar-meta,
  #adminCalendarTable td.has-leave-events small.calendar-meta {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 2;
    margin: 0;
    padding: 0 2px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.14);
    font-weight: 700;
    line-height: 1.2;
  }

  body.employee-portal .calendar-table td.has-leave-events br,
  #adminCalendarTable td.has-leave-events br {
    display: none;
  }

  body.employee-portal .calendar-table .calendar-events,
  #adminCalendarTable .calendar-events {
    left: 1px;
    right: 1px;
  }

  body.employee-portal .calendar-table .calendar-event-chip,
  #adminCalendarTable .calendar-event-chip {
    padding: 0;
    margin-left: -1px;
    margin-right: -1px;
    width: calc(100% + 2px);
    min-height: var(--calendar-lane-height);
    color: transparent;
    font-size: 0;
    line-height: 0;
    border-radius: 2px;
  }

  body.employee-portal .calendar-table .calendar-event-chip-start,
  #adminCalendarTable .calendar-event-chip-start {
    margin-right: -2px;
    width: calc(100% + 3px);
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
  }

  body.employee-portal .calendar-table .calendar-event-chip-end,
  #adminCalendarTable .calendar-event-chip-end {
    margin-left: -2px;
    width: calc(100% + 3px);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
  }

  body.employee-portal .calendar-table .calendar-event-chip-middle,
  #adminCalendarTable .calendar-event-chip-middle {
    margin-left: -2px;
    margin-right: -2px;
    width: calc(100% + 4px);
  }

  body.employee-portal .calendar-table .calendar-event-more,
  #adminCalendarTable .calendar-event-more {
    left: 1px;
    right: 1px;
    bottom: 1px;
    font-size: 0.52rem;
    line-height: 1;
  }

  .calendar-header .d-flex {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .calendar-header h4 {
    font-size: 0.82rem;
  }

  .calendar-header .calendar-month-nav {
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0.1rem 0.25rem;
  }

  .calendar-header .calendar-month-nav svg {
    width: 14px;
    height: 14px;
  }

  .calendar-header .calendar-header-action {
    flex: 0 0 auto;
    width: auto;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0.1rem 0.35rem;
    font-size: 0;
    line-height: 1;
    gap: 0;
  }

  .calendar-header .calendar-header-action .bi {
    font-size: 1rem;
    line-height: 1;
  }
}

body.employee-portal .calendar-table .calendar-event-chip,
body.employee-portal .calendar-table .calendar-event-slot,
#adminCalendarTable .calendar-event-chip,
#adminCalendarTable .calendar-event-slot {
  pointer-events: auto;
}

body.employee-portal .calendar-table .calendar-event-chip,
#adminCalendarTable .calendar-event-chip {
  display: block;
  min-height: calc(var(--calendar-lane-height) - 1px);
  padding: 1px 6px;
  font-size: var(--calendar-chip-font-size);
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  border-radius: 0;
  margin-left: -4px;
  margin-right: -4px;
  width: calc(100% + 8px);
  box-sizing: border-box;
  cursor: pointer;
}

body.employee-portal .calendar-table .calendar-event-slot,
#adminCalendarTable .calendar-event-slot {
  display: block;
  height: var(--calendar-lane-height);
  visibility: hidden;
  pointer-events: none;
}

body.employee-portal .calendar-table .calendar-event-chip-single,
#adminCalendarTable .calendar-event-chip-single {
  border-radius: 4px;
}

body.employee-portal .calendar-table .calendar-event-chip-start,
#adminCalendarTable .calendar-event-chip-start {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  margin-right: -5px;
  width: calc(100% + 9px);
}

body.employee-portal .calendar-table .calendar-event-chip-end,
#adminCalendarTable .calendar-event-chip-end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-left: -5px;
  width: calc(100% + 9px);
}

body.employee-portal .calendar-table .calendar-event-chip-middle,
#adminCalendarTable .calendar-event-chip-middle {
  color: transparent;
  margin-left: -5px;
  margin-right: -5px;
  width: calc(100% + 10px);
}

body.employee-portal .calendar-table .calendar-event-more,
#adminCalendarTable .calendar-event-more {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #6c757d;
  line-height: 1.1;
  text-align: left;
  pointer-events: none;
}

body.employee-portal .calendar-table td.selected,
#adminCalendarTable td.selected {
  outline: 2px solid #1a73e8;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 9999px rgba(26, 115, 232, 0.18);
}

body.employee-portal .calendar-table td.leave-highlight {
  outline: 2px solid #764ba2;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 9999px rgba(118, 75, 162, 0.22);
}

.admin-leaves-calendar-layout .calendar-table td.leave-highlight,
#adminCalendarTable td.leave-highlight {
  outline: 2px solid #764ba2;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 9999px rgba(118, 75, 162, 0.22);
}

#adminCalendarTable td.selected .calendar-meta {
  font-weight: 700;
}

.calendar-user-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 12px;
}

.btn-group-nav {
  margin-bottom: 20px;
}

.leaves-list {
  margin-top: 0;
}

.leave-item {
  padding: 15px;
  border-left: 4px solid #667eea;
  background: white;
  margin-bottom: 10px;
  border-radius: 5px;
}

.leave-item.approved {
  border-left-color: #28a745;
}

.leave-item.pending {
  border-left-color: #ffc107;
}

.leave-item.rejected {
  border-left-color: #dc3545;
}

/* ΚΑΤΑΣΤΑΣΗ ΑΔΕΙΑΣ ΣΕ ΛΙΣΤΕΣ: ΠΡΑΣΙΝΟ approved, ΚΙΤΡΙΝΟ pending, ΚΟΚΚΙΝΟ rejected */
.leaves-list .leave-item.approved>.d-flex .badge,
.leaves-list .leave-item.approved .text-end>.badge:first-child {
  background-color: #198754 !important;
  color: #fff !important;
}

.leaves-list .leave-item.pending>.d-flex .badge.bg-warning,
.leaves-list .leave-item.pending .text-end>.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.leaves-list .leave-item.rejected>.d-flex .badge,
.leaves-list .leave-item.rejected .text-end>.badge:first-child {
  background-color: #dc3545 !important;
  color: #fff !important;
}

/* ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ: ΗΜΕΡΟΛΟΓΙΟ ΚΑΙ ΛΙΣΤΑ ΑΔΕΙΩΝ (ΥΠΑΛΛΗΛΟΣ + ADMIN) */
body.dark-mode.employee-portal .calendar-table th,
body.dark-mode .admin-leaves-calendar-layout .calendar-table th {
  background: #141c2f !important;
  color: #f8fbff !important;
}

body.dark-mode.employee-portal .calendar-table td,
body.dark-mode .admin-leaves-calendar-layout .calendar-table td {
  background: #11172a !important;
  color: #f8fbff !important;
  border-color: #1f2a40 !important;
}

body.dark-mode.employee-portal .calendar-table td:hover,
body.dark-mode .admin-leaves-calendar-layout .calendar-table td:hover {
  background: #182136 !important;
}

body.dark-mode.employee-portal .calendar-table .other-month,
body.dark-mode .admin-leaves-calendar-layout .calendar-table .other-month {
  background: #0b1020 !important;
  color: #6b7280 !important;
}

body.dark-mode.employee-portal .calendar-table .today,
body.dark-mode .admin-leaves-calendar-layout .calendar-table .today {
  background: #3b4a6b !important;
  color: #f8fbff !important;
}

body.dark-mode.employee-portal .calendar-table .disabled,
body.dark-mode .admin-leaves-calendar-layout .calendar-table .disabled,
body.dark-mode .admin-leaves-calendar-layout .calendar-table .non-working {
  background: #0d1424 !important;
  color: #6b7280 !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .non-working small {
  color: #6b7280 !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .approved {
  background: #1a3d2a !important;
  color: #b8f0c8 !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .pending {
  background: #3d3520 !important;
  color: #ffe8a3 !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .rejected {
  background: #3d2024 !important;
  color: #f5b8bf !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .holiday {
  background: #8b1e2a !important;
  color: #fff !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .holiday small {
  color: #fff !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .selected {
  background: #4a5a8a !important;
  color: #f8fbff !important;
}

body.dark-mode .admin-leaves-calendar-layout .calendar-table .selected small {
  color: #f8fbff !important;
}

body.dark-mode .admin-leaves-calendar-layout #adminCalendarTable .calendar-event-more {
  color: #c7d2e6 !important;
}

body.dark-mode.employee-portal .leave-item {
  background: #11172a !important;
  color: #f8fbff !important;
}

body.dark-mode.employee-portal .leaves-list .leave-item.approved {
  background: #1a3d2a !important;
  border-left-color: #28a745;
  color: #b8f0c8 !important;
}

body.dark-mode.employee-portal .leaves-list .leave-item.pending {
  background: #3d3520 !important;
  border-left-color: #ffc107;
  color: #ffe8a3 !important;
}

body.dark-mode.employee-portal .leaves-list .leave-item.rejected {
  background: #3d2024 !important;
  border-left-color: #dc3545;
  color: #f5b8bf !important;
}

body.dark-mode.employee-portal .leaves-list .leave-item.leave-item-active.approved {
  background: #245c3a !important;
}

body.dark-mode.employee-portal .leaves-list .leave-item.leave-item-active.pending {
  background: #524820 !important;
}

body.dark-mode.employee-portal .leaves-list .leave-item.leave-item-active.rejected {
  background: #522830 !important;
}

body.dark-mode .admin-leaves-calendar-layout .leaves-list .leave-item.approved {
  background: #1a3d2a !important;
  border-left-color: #28a745;
  color: #b8f0c8 !important;
}

body.dark-mode .admin-leaves-calendar-layout .leaves-list .leave-item.pending {
  background: #3d3520 !important;
  border-left-color: #ffc107;
  color: #ffe8a3 !important;
}

body.dark-mode .admin-leaves-calendar-layout .leaves-list .leave-item.rejected {
  background: #3d2024 !important;
  border-left-color: #dc3545;
  color: #f5b8bf !important;
}

body.dark-mode .admin-leaves-calendar-layout .leaves-list .leave-item.leave-item-active.approved {
  background: #245c3a !important;
}

body.dark-mode .admin-leaves-calendar-layout .leaves-list .leave-item.leave-item-active.pending {
  background: #524820 !important;
}

body.dark-mode .admin-leaves-calendar-layout .leaves-list .leave-item.leave-item-active.rejected {
  background: #522830 !important;
}

@media (min-width: 992px) {
  body.employee-portal .employee-leaves-calendar-col {
    flex: 0 0 80%;
    max-width: 80%;
  }

  body.employee-portal .employee-leaves-sidebar-col {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .admin-leaves-calendar-layout .admin-leaves-calendar-col {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .admin-leaves-calendar-layout .admin-leaves-sidebar-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

body.employee-portal .employee-leaves-calendar-col>.card>.card-body {
  padding: 0;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-card .card-header {
  min-height: 0;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-btn {
  font-size: 0.68rem;
  line-height: 1.2;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-list {
  max-height: 9rem;
  overflow-y: auto;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-item {
  padding: 0.1rem 0;
  min-height: 1.35rem;
  line-height: 1.2;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-item .form-check-input {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-item .calendar-user-color {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
}

.admin-leaves-calendar-layout .admin-leaves-calendars-item .small {
  font-size: 0.75rem;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .card-header {
  min-height: 0;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .leaves-list {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .leave-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.75rem;
  min-width: 0;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .leave-item-dates strong {
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .leave-item-type {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.72rem;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .leaves-list .leave-item {
  padding: 0.25rem 0.4rem;
  margin-bottom: 3px;
  border-left-width: 2px;
  border-radius: 3px;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar .leave-item-btn {
  padding: 0.05rem 0.25rem;
  font-size: 0.72rem;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar.h-100 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-leaves-calendar-layout .admin-leaves-sidebar.h-100>.card-body.leaves-list {
  overflow-y: auto;
}

body.employee-portal .employee-leaves-sidebar .leaves-list {
  max-height: min(70vh, 720px);
  overflow-y: auto;
}

body.employee-portal .employee-leaves-sidebar .leave-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

body.employee-portal .employee-leaves-sidebar .leave-item-meta,
.admin-leaves-calendar-layout .admin-leaves-sidebar .leave-item-meta {
  width: 100%;
  min-width: 0;
}

body.employee-portal .employee-leaves-sidebar .leave-item-type {
  flex: 1 1 auto;
  min-width: 0;
}

body.employee-portal .employee-leaves-sidebar .leave-item-actions,
.admin-leaves-calendar-layout .admin-leaves-sidebar .leave-item-actions {
  flex: 0 0 auto;
}

body.employee-portal .leaves-list .leave-item,
.admin-leaves-calendar-layout .leaves-list .leave-item {
  padding: 0.35rem 0.6rem;
  margin-bottom: 4px;
  border-left-width: 3px;
  border-radius: 4px;
  cursor: pointer;
}

body.employee-portal .leaves-list .leave-item.approved,
.admin-leaves-calendar-layout .leaves-list .leave-item.approved {
  background: #d4edda;
  border-left-color: #28a745;
  color: #155724;
}

body.employee-portal .leaves-list .leave-item.pending,
.admin-leaves-calendar-layout .leaves-list .leave-item.pending {
  background: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

body.employee-portal .leaves-list .leave-item.rejected,
.admin-leaves-calendar-layout .leaves-list .leave-item.rejected {
  background: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
}

body.employee-portal .leaves-list .leave-item .text-muted,
.admin-leaves-calendar-layout .leaves-list .leave-item .text-muted {
  color: inherit !important;
  opacity: 0.78;
}

body.employee-portal .leaves-list .leave-item.leave-item-active.approved,
.admin-leaves-calendar-layout .leaves-list .leave-item.leave-item-active.approved {
  background: #c3e6cb;
}

body.employee-portal .leaves-list .leave-item.leave-item-active.pending,
.admin-leaves-calendar-layout .leaves-list .leave-item.leave-item-active.pending {
  background: #ffecb5;
}

body.employee-portal .leaves-list .leave-item.leave-item-active.rejected,
.admin-leaves-calendar-layout .leaves-list .leave-item.leave-item-active.rejected {
  background: #f1b0b7;
}

body.employee-portal .leaves-list .leave-item-row,
.admin-leaves-calendar-layout .leaves-list .leave-item-row {
  min-width: 0;
  font-size: 0.875rem;
}

body.employee-portal .leaves-list .leave-item-dates,
body.employee-portal .leaves-list .leave-item-type,
.admin-leaves-calendar-layout .leaves-list .leave-item-dates,
.admin-leaves-calendar-layout .leaves-list .leave-item-type {
  min-width: 0;
}

body.employee-portal .leaves-list .leave-item-meta,
.admin-leaves-calendar-layout .leaves-list .leave-item-meta {
  width: 100%;
  min-width: 0;
}

body.employee-portal .leaves-list .leave-item-actions,
.admin-leaves-calendar-layout .leaves-list .leave-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.admin-leaves-calendar-layout .leaves-list .leave-item-actions form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

body.employee-portal .leaves-list .leave-item-btn,
.admin-leaves-calendar-layout .leaves-list .leave-item-btn {
  padding: 0.1rem 0.35rem;
  line-height: 1.2;
  outline-offset: 0;
}

body.employee-portal .leaves-list .leave-item-btn:focus,
body.employee-portal .leaves-list .leave-item-btn:focus-visible,
.admin-leaves-calendar-layout .leaves-list .leave-item-btn:focus,
.admin-leaves-calendar-layout .leaves-list .leave-item-btn:focus-visible {
  outline-offset: 0;
  box-shadow: none;
}

/* ΚΙΝΗΤΟ: ΔΙΑΧΕΙΡΙΣΗ ΑΔΕΙΩΝ – ΗΜΕΡΟΛΟΓΙΟ ΚΑΙ ΠΛΕΥΡΙΚΗ ΣΤΗΛΗ */
@media (max-width: 575.98px) {
  .admin-leaves-calendar-layout {
    --bs-gutter-x: 0.5rem;
  }

  .admin-leaves-calendar-layout .admin-leaves-calendar-col>.card>.card-body {
    padding: 0.35rem 0.2rem 0.45rem;
  }

  .admin-leaves-calendar-layout .admin-leaves-calendars-list {
    max-height: 7rem;
  }

  .admin-leaves-calendar-layout .admin-leaves-sidebar .leaves-list {
    max-height: min(42vh, 360px);
    overflow-y: auto;
  }

  body.dark-mode .admin-leaves-calendar-layout #adminCalendarTable td.has-leave-events small.calendar-meta {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fbff;
  }
}

/* ΕΠΙΒΕΒΑΙΩΣΗ ΕΝΕΡΓΕΙΑΣ ΑΔΕΙΑΣ ΣΤΟ ΗΜΕΡΟΛΟΓΙΟ ADMIN */
#leaveCalendarModal.leave-calendar-parent-dimmed {
  pointer-events: none;
}

#leaveCalendarModal.leave-calendar-parent-dimmed>.modal-dialog {
  filter: blur(2px);
  opacity: 0.45;
  transform: scale(0.98);
  transition: filter 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

#leaveCalendarConfirmModal .modal-content {
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
}

#leaveCalendarConfirmModal .modal-body {
  font-size: 0.95rem;
  line-height: 1.45;
}

body.dark-mode #leaveCalendarConfirmModal .modal-content {
  border-color: #3d4f6f;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.65);
}

body.dark-mode #leaveCalendarModal.leave-calendar-parent-dimmed>.modal-dialog {
  opacity: 0.35;
}

.admin-leaves-requests .admin-leaves-request-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15em 0.4em;
  line-height: 1.2;
  vertical-align: middle;
}

.admin-leaves-requests .admin-leaves-request-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-leaves-requests .admin-leaves-request-item {
  padding: 0.45rem 0.55rem;
  border-radius: 0.25rem;
  border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
  background: var(--bs-body-bg);
}

.admin-leaves-requests .admin-leaves-request-item .admin-leaves-request-line+.admin-leaves-request-line {
  margin-top: 0.2rem;
}

.admin-leaves-requests .admin-leaves-request-item--pending {
  background: #fff8e6;
  border-left: 3px solid #ffc107;
}

.admin-leaves-requests .admin-leaves-request-item--approved {
  background: #eefaf1;
  border-left: 3px solid #198754;
}

.admin-leaves-requests .admin-leaves-request-item--rejected {
  background: #fdf0f1;
  border-left: 3px solid #dc3545;
}

.admin-leaves-requests .admin-leaves-request-item--cancelled {
  background: #f8f9fa;
  border-left: 3px solid #6c757d;
}

.admin-leaves-requests .admin-leaves-request-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.admin-leaves-requests .admin-leaves-request-line--head {
  flex-wrap: nowrap;
}

.admin-leaves-requests .admin-leaves-request-line+.admin-leaves-request-line {
  margin-top: 0;
}

.admin-leaves-requests .admin-leaves-request-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-leaves-requests .admin-leaves-request-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  min-width: 0;
  margin-left: auto;
}

.admin-leaves-requests .admin-leaves-request-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

.admin-leaves-requests .admin-leaves-request-line-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-leaves-requests .nav-link .admin-leaves-request-badge {
  font-size: 0.6rem;
  padding: 0.1em 0.35em;
}

.admin-leaves-requests .admin-leaves-request-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  padding-left: 0.5rem;
  margin-left: 0.35rem;
  border-left: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.12));
}

.admin-leaves-requests .admin-leaves-request-actions form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.admin-leaves-requests .admin-leaves-request-btn {
  padding: 0.1rem 0.35rem;
  line-height: 1.2;
  outline-offset: 0;
}

.admin-leaves-requests .admin-leaves-request-btn:focus,
.admin-leaves-requests .admin-leaves-request-btn:focus-visible {
  outline-offset: 0;
  box-shadow: none;
}

/* ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ: ΛΙΣΤΑ ΑΙΤΗΜΑΤΩΝ ΑΔΕΙΩΝ ADMIN */
body.dark-mode .admin-leaves-requests .admin-leaves-request-item {
  border-color: #1f2a40;
  background: #11172a;
  color: #f8fbff;
}

body.dark-mode .admin-leaves-requests .admin-leaves-request-item--pending {
  background: #3d3520 !important;
  border-left-color: #ffc107;
  color: #ffe8a3;
}

body.dark-mode .admin-leaves-requests .admin-leaves-request-item--approved {
  background: #1a3d2a !important;
  border-left-color: #28a745;
  color: #b8f0c8;
}

body.dark-mode .admin-leaves-requests .admin-leaves-request-item--rejected {
  background: #3d2024 !important;
  border-left-color: #dc3545;
  color: #f5b8bf;
}

body.dark-mode .admin-leaves-requests .admin-leaves-request-item--cancelled {
  background: #141c2f !important;
  border-left-color: #6c757d;
  color: #c7d2e6;
}

body.dark-mode .admin-leaves-requests .admin-leaves-request-date,
body.dark-mode .admin-leaves-requests .admin-leaves-request-line-main {
  color: inherit;
  opacity: 0.85;
}

body.dark-mode .admin-leaves-requests .admin-leaves-request-actions {
  border-left-color: rgba(255, 255, 255, 0.12);
}

/* ΣΚΟΤΕΙΝΗ ΛΕΙΤΟΥΡΓΙΑ: ADMIN MANAGE STAFF / ATTENDANCE */
body.dark-mode .manage-staff-table .manage-staff-role-badge.bg-warning {
  color: #0b1020 !important;
}

body.dark-mode .nav-tabs .nav-link .badge.bg-warning.text-dark {
  color: #0b1020 !important;
}

body.dark-mode .hours-modal-compact .card.bg-light-subtle {
  border-color: #1f2a40 !important;
}

body.dark-mode .hours-modal-compact .card.bg-light-subtle .card-title {
  color: #f8fbff;
}

body.dark-mode .ergani-logs-table thead.table-light th {
  background-color: #141c2f !important;
  color: #f8fbff !important;
  border-color: #1f2a40 !important;
}

/* ==========================================================================
   ΦΟΡΕΑΣ ΔΙΑΧΕΙΡΙΣΤΗ — ΚΟΙΝΟ UI (ΚΛΑΣΗ ADMIN-PORTAL ΣΕ ΟΛΕΣ ΤΙΣ ΣΕΛΙΔΕΣ ADMIN)
   ========================================================================== */

body.dark-mode.admin-portal {
  background-color: var(--sbz-bg);
  color: var(--sbz-text);
}

body.dark-mode.admin-portal .card-header.bg-light {
  background-color: var(--sbz-surface-2) !important;
  color: var(--sbz-text);
}

/* ΤΑΜΠΛΟ ΛΟΓΙΣΤΗ (accountant / admin_accountant) */
.accountant-dashboard {
  font-size: 16px;
}

.accountant-dashboard .navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.5rem 1rem;
  overflow: visible;
}

.accountant-dashboard .navbar-collapse {
  overflow: visible !important;
}

.accountant-dashboard .card {
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.accountant-dashboard .card-header {
  background: #34495e;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.accountant-dashboard .stat-card {
  text-align: center;
  padding: 1.25rem;
}

.accountant-dashboard .stat-number {
  font-size: 2em;
  font-weight: 700;
  color: #3498db;
}

.accountant-dashboard .stat-number--present {
  color: #27ae60;
}

.accountant-dashboard .stat-number--leave-approved {
  color: #e74c3c;
}

.accountant-dashboard .stat-number--leave-pending {
  color: #f39c12;
}

.accountant-dashboard .stat-label {
  color: #7f8c8d;
  font-size: 0.85em;
  margin-top: 0.5rem;
}

.accountant-dashboard .badge-approved {
  background: #27ae60;
  color: #fff;
}

.accountant-dashboard .badge-pending {
  background: #f39c12;
  color: #fff;
}

.accountant-dashboard .badge-rejected {
  background: #e74c3c;
  color: #fff;
}

.accountant-dashboard .table-hover tbody tr:hover {
  background: #ecf0f1;
}

.accountant-dashboard .table {
  font-size: 0.9rem;
}

.accountant-dashboard .table-responsive {
  border-radius: 0.25rem;
}

.accountant-dashboard .accountant-dashboard-scroll {
  max-height: 400px;
  overflow-y: auto;
}

.accountant-dashboard .accountant-dashboard-lang-select {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.accountant-dashboard .accountant-dashboard-lang-select:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}

.accountant-dashboard .accountant-dashboard-lang-select option {
  color: #212529;
  background-color: #fff;
}

body.dark-mode.accountant-dashboard {
  background-color: var(--sbz-bg);
  color: var(--sbz-text);
}

body.dark-mode.accountant-dashboard .card {
  background-color: var(--sbz-surface);
  color: var(--sbz-text);
  border-color: var(--sbz-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.dark-mode.accountant-dashboard .card-header {
  background: #1a2740 !important;
  color: #f8fbff;
}

body.dark-mode.accountant-dashboard .stat-number {
  color: #9bc1ff;
}

body.dark-mode.accountant-dashboard .stat-number--present {
  color: #6ee7a0;
}

body.dark-mode.accountant-dashboard .stat-number--leave-approved {
  color: #f87171;
}

body.dark-mode.accountant-dashboard .stat-number--leave-pending {
  color: #fbbf24;
}

body.dark-mode.accountant-dashboard .stat-label {
  color: var(--sbz-text-muted);
}

body.dark-mode.accountant-dashboard .table-hover tbody tr:hover {
  background: #182136;
}

@media (max-width: 768px) {
  .accountant-dashboard .navbar-brand {
    font-size: 1rem;
  }

  .accountant-dashboard .stat-number {
    font-size: 1.8em;
  }

  .accountant-dashboard .stat-label {
    font-size: 0.75em;
  }

  .accountant-dashboard .card {
    margin-bottom: 0.75rem;
  }

  .accountant-dashboard .table {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .accountant-dashboard {
    font-size: 14px;
  }

  .accountant-dashboard .navbar {
    padding: 0.5rem;
  }

  .accountant-dashboard .stat-number {
    font-size: 1.5em;
  }

  .accountant-dashboard .stat-label {
    font-size: 0.7em;
  }
}

/* ==========================================================================
   ΦΟΡΕΑΣ ΔΙΑΧΕΙΡΙΣΤΗ — ΒΕΛΤΙΣΤΟΠΟΙΗΣΗ UI ΓΙΑ ΚΙΝΗΤΟ
   ========================================================================== */

/* ΚΟΙΝΟ ΚΕΛΥΦΟΣ ΣΕΛΙΔΩΝ ADMIN */
@media (max-width: 767.98px) {

  body.admin-portal .container.py-4,
  body.admin-portal .admin-settings-page.container.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
  }

  body.admin-portal h2,
  body.admin-portal .admin-page-title h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  body.admin-portal .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    gap: 0;
  }

  body.admin-portal .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  body.admin-portal .nav-tabs .nav-item {
    flex: 0 0 auto;
  }

  body.admin-portal .nav-tabs .nav-link {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.55rem 0.75rem;
  }

  body.admin-portal .card-header h5,
  body.admin-portal .card-header .h5 {
    font-size: 1rem;
    line-height: 1.35;
  }

  body.admin-portal .card-header.d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem;
  }

  body.admin-portal .card-header .ms-auto {
    margin-left: 0 !important;
    width: 100%;
  }
}

@media (max-width: 575.98px) {

  body.admin-portal .container,
  body.admin-portal .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  body.admin-portal .card {
    border-radius: 0.5rem;
  }

  body.admin-portal .card-body {
    padding: 0.75rem;
  }

  body.admin-portal .card-header {
    padding: 0.55rem 0.75rem;
  }

  body.admin-portal .stat-box {
    padding: 0.65rem 0.5rem;
  }

  body.admin-portal .stat-box h4 {
    font-size: 1.25rem;
    margin: 0.35rem 0 0.2rem;
  }

  body.admin-portal .stat-box p {
    font-size: 0.75rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  body.admin-portal .admin-stat-row .stat-card .card-body {
    padding: 0.75rem 0.5rem;
  }
}

/* ΦΙΛΤΡΑ ΗΜΕΡΟΜΗΝΙΩΝ ΠΑΡΟΥΣΙΑΣ */
@media (max-width: 767.98px) {
  .attendance-date-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch !important;
    row-gap: 0.65rem;
  }

  .attendance-date-filter>[class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .attendance-date-input,
  .attendance-date-period-select,
  .attendance-date-filter .form-select {
    width: 100%;
    max-width: none;
  }

  .attendance-date-filter .btn-filter-icon {
    width: 100%;
    min-width: 0;
    height: calc(1.5em + 0.75rem + 2px);
  }
}

/* ΦΙΛΤΡΑ ΑΝΑΦΟΡΩΝ */
@media (max-width: 767.98px) {
  .report-filters--header {
    width: 100%;
  }

  .report-filters--header .form-select {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .report-filters-year,
  .report-filters-employee {
    min-width: 0;
    max-width: none;
  }

  .report-chart-wrap {
    height: min(52vw, 260px);
  }

  .report-chart-wrap--tall {
    height: max(220px, min(70vh, calc(40px * var(--leave-chart-rows, 6))));
  }

  .report-section-tabs .nav-link {
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
  }
}

/* ΠΡΟΣΦΥΓΕΣ ΚΑΤΑΓΡΑΦΗΣ */
@media (max-width: 767.98px) {
  .appeal-row {
    padding: 0.85rem 0;
  }

  .appeal-row .row {
    row-gap: 0.65rem;
  }

  .appeal-row .col-md-4 {
    width: 100%;
  }

  .appeal-row-actions .btn {
    min-height: 2.375rem;
  }
}

/* ΠΙΝΑΚΕΣ ΠΑΡΟΥΣΙΑΣ / ΑΝΑΦΟΡΩΝ */
@media (max-width: 575.98px) {

  body.admin-portal .table.attendance-by-day,
  body.admin-portal .table.table-sm {
    font-size: 0.78rem;
  }

  body.admin-portal .table.attendance-by-day th,
  body.admin-portal .table.attendance-by-day td {
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
  }

  body.admin-portal .table-responsive {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* ΑΙΤΗΜΑΤΑ ΑΔΕΙΩΝ ADMIN */
@media (max-width: 575.98px) {
  .admin-leaves-requests .admin-leaves-request-line--head {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .admin-leaves-requests .admin-leaves-request-name {
    flex: 1 1 100%;
    white-space: normal;
  }

  .admin-leaves-requests .admin-leaves-request-badges {
    flex-wrap: wrap;
    margin-left: 0;
    width: auto;
  }

  .admin-leaves-requests .admin-leaves-request-actions {
    margin-left: auto;
  }

  .admin-leaves-requests .nav-tabs .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.8125rem;
  }
}

/* ΡΥΘΜΙΣΕΙΣ ΔΙΑΧΕΙΡΙΣΤΗ */
@media (max-width: 991.98px) {
  .admin-settings-page .settings-section-nav-mobile {
    overflow-x: auto;
  }

  .admin-settings-page .settings-section-nav-mobile .nav {
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  .admin-settings .settings-card-header {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .admin-settings .settings-card-header>strong {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    font-size: 0.9375rem;
  }
}

@media (max-width: 575.98px) {
  .admin-settings-page .settings-page-desc {
    font-size: 0.875rem;
    margin-bottom: 0.75rem !important;
  }

  .admin-settings-page .row.g-4 {
    --bs-gutter-y: 0.75rem;
  }

  .hours-modal-compact.modal-dialog,
  .hours-modal-compact.modal-xl {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
}

/* ΤΑΜΠΛΟ ΛΟΓΙΣΤΗ — ΕΠΙΠΛΕΟΝ ΚΙΝΗΤΟ */
@media (max-width: 991.98px) {
  .accountant-dashboard .navbar-nav {
    gap: 0.5rem;
    padding: 0.5rem 0 0.65rem;
    width: 100%;
  }

  .accountant-dashboard .navbar-nav .nav-item {
    width: 100%;
  }

  .accountant-dashboard .accountant-dashboard-lang-select {
    width: 100%;
    max-width: 12rem;
  }

  .accountant-dashboard .navbar-nav .btn-danger {
    width: 100%;
    max-width: 8rem;
  }
}

@media (max-width: 575.98px) {
  .accountant-dashboard .alert.alert-info {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem !important;
  }

  .accountant-dashboard .card-header {
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 0.55rem 0.75rem;
  }

  .accountant-dashboard .stat-card .card-body {
    padding: 0.75rem 0.45rem;
  }

  .accountant-dashboard .accountant-dashboard-scroll {
    max-height: min(50vh, 320px);
  }

  .accountant-dashboard form.row .col-md-4.d-grid {
    gap: 0.5rem !important;
  }
}

/* ΔΗΜΙΟΥΡΓΙΑ ΛΟΓΑΡΙΑΣΜΟΥ / ΦΟΡΜΕΣ ADMIN */
@media (max-width: 575.98px) {
  body.admin-portal .form-select option {
    white-space: normal;
  }

  body.admin-portal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  body.admin-portal .ergani-logs-modal .modal-dialog {
    max-width: calc(100% - 1rem);
  }
}