
/* ---------- Modern Neutral Theme (CSS-only, no HTML changes required) ---------- */
/* Drop this file in /assets/styles.css (or same folder) and include with:
   <link rel="stylesheet" href="/assets/styles.css">
*/

:root {
  --bg: #0b0d10;
  --surface: #11151a;
  --surface-2: #161b22;
  --text: #e6edf3;
  --muted: #9da9b5;
  --primary: #4da3ff;
  --primary-700: #1f6feb;
  --accent: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(77,163,255,.25);
  --border: 1px solid rgba(255,255,255,.08);
  --gap: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #f2f4f7;
    --text: #0b0f14;
    --muted: #556170;
    --primary: #2563eb;
    --primary-700: #1d4ed8;
    --accent: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --border: 1px solid rgba(0,0,0,.08);
    --shadow: 0 10px 24px rgba(0,0,0,.08);
  }
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

.container, .wrap, .wrapper, .content, main, #content {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px;
}

h1,h2,h3,h4,h5,h6 {
  line-height: 1.25;
  margin: 0 0 10px 0;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4vw, 40px);}
h2 { font-size: clamp(22px, 3vw, 30px);}
h3 { font-size: clamp(18px, 2.2vw, 22px);}
p  { margin: 0 0 12px 0; color: var(--text);}
small, .muted { color: var(--muted);}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Cards / panels */
.card, .panel, .box, .well, .widget, .module, .table-container {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}

/* Buttons */
button, .btn, input[type=submit], input[type=button], .button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: calc(var(--radius) - 4px);
  border: 0;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
}
button:hover, .btn:hover, input[type=submit]:hover, input[type=button]:hover, .button:hover {
  transform: translateY(-1px);
}
button:focus-visible, .btn:focus-visible, input[type=submit]:focus-visible { outline: none; box-shadow: var(--ring);}
button:disabled, .btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary, .button.secondary {
  background: var(--surface-2); color: var(--text); border: var(--border);
  box-shadow: 0 6px 12px rgba(0,0,0,.12);
}
.btn-danger { background: var(--danger);}
.btn-warning { background: var(--warning); color: #111; }
.btn-ghost { background: transparent; border: var(--border); color: var(--text);}

/* Inputs & forms */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 10px 12px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { box-shadow: var(--ring); }
label { display: block; font-weight: 600; margin: 8px 0 6px; }
.form-row, .field, .form-group { display: grid; gap: 8px; margin-bottom: 12px; }

.input-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;}

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); overflow: hidden; border-radius: var(--radius); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06);}
thead th { background: var(--surface-2); font-weight: 700; }
tbody tr:hover { background: rgba(255,255,255,.03);}
.table-striped tbody tr:nth-child(odd) { background: rgba(255,255,255,.025);}

/* Navigation bars */
.nav, nav, .navbar, header .menu {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface);
  border: var(--border);
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav a, nav a, .navbar a { padding: 8px 10px; border-radius: 10px; }
.nav a.active, nav a.active, .navbar a.active, .nav a:hover { background: var(--surface-2); text-decoration: none; }

/* Alerts */
.alert, .notice, .message, .status {
  padding: 12px 14px;
  border-radius: calc(var(--radius) - 4px);
  border-left: 4px solid var(--primary);
  background: linear-gradient(0deg, rgba(255,255,255,.02), rgba(255,255,255,.02)), var(--surface);
  margin: 12px 0;
}
.alert-success { border-left-color: var(--accent);}
.alert-danger, .alert-error { border-left-color: var(--danger);}
.alert-warning { border-left-color: var(--warning);}

/* Badges / pills */
.badge, .pill, .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: var(--border);
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
}
.badge.success { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.35);}
.badge.warning { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.35);}
.badge.danger  { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35);}

/* Lists */
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: 6px; }

/* Grids */
.grid { display: grid; gap: var(--gap);}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Tables wrapped */
.table-container { padding: 0; overflow: hidden; }
.table-container table { border-radius: 0; }

/* Modals (if present) */
.modal, .dialog { background: rgba(0,0,0,.55); position: fixed; inset: 0; display: none; align-items: center; justify-content: center; }
.modal.open, .dialog.open { display: flex; }
.modal .modal-content, .dialog .modal-content { background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; max-width: 640px; width: 94vw; }

/* Tables with actions */
td .actions, .actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;}

/* Footer */
footer { margin-top: 24px; padding: 16px 0; color: var(--muted);}

/* Utility spacing */
.mt-1{margin-top:6px}.mt-2{margin-top:10px}.mt-3{margin-top:16px}.mt-4{margin-top:24px}
.mb-1{margin-bottom:6px}.mb-2{margin-bottom:10px}.mb-3{margin-bottom:16px}.mb-4{margin-bottom:24px}
.p-1{padding:6px}.p-2{padding:10px}.p-3{padding:16px}.p-4{padding:24px}
.rounded{border-radius:var(--radius)}

/* Discovered selectors from your file for tailored styling */
.btn {
  /* inherits global styles; customize here if needed */
}
.field {
  /* inherits global styles; customize here if needed */
}
.toolbar {
  /* inherits global styles; customize here if needed */
}
.card {
  /* inherits global styles; customize here if needed */
}
.content {
  /* inherits global styles; customize here if needed */
}
.grid {
  /* inherits global styles; customize here if needed */
}
.row {
  /* inherits global styles; customize here if needed */
}
.primary {
  /* inherits global styles; customize here if needed */
}
.muted {
  /* inherits global styles; customize here if needed */
}
.icon {
  /* inherits global styles; customize here if needed */
}
.warn {
  /* inherits global styles; customize here if needed */
}
.noprint {
  /* inherits global styles; customize here if needed */
}
.divider {
  /* inherits global styles; customize here if needed */
}
.wrap {
  /* inherits global styles; customize here if needed */
}
.flash {
  /* inherits global styles; customize here if needed */
}
.cols-2 {
  /* inherits global styles; customize here if needed */
}
.success {
  /* inherits global styles; customize here if needed */
}
.actions {
  /* inherits global styles; customize here if needed */
}
.sheet {
  /* inherits global styles; customize here if needed */
}
.print-header {
  /* inherits global styles; customize here if needed */
}
.spacer {
  /* inherits global styles; customize here if needed */
}
.brand {
  /* inherits global styles; customize here if needed */
}
.sub {
  /* inherits global styles; customize here if needed */
}
.err {
  /* inherits global styles; customize here if needed */
}
.cols-3 {
  /* inherits global styles; customize here if needed */
}
#cp_ {
  /* inherits global styles; customize here if needed */
}
#clientsearch_ {
  /* inherits global styles; customize here if needed */
}
#hidden_ {
  /* inherits global styles; customize here if needed */
}
#suggest_ {
  /* inherits global styles; customize here if needed */
}
#.(int)$selectedId. {
  /* inherits global styles; customize here if needed */
}
#+preId).then(r=>r.json()).then(arr=>{
        if(arr && arr[0]){
          const r=arr[0];
          const lab = r.full_name + (r.event_date ? ( {
  /* inherits global styles; customize here if needed */
}
#username {
  /* inherits global styles; customize here if needed */
}
#password {
  /* inherits global styles; customize here if needed */
}
#pid {
  /* inherits global styles; customize here if needed */
}
#m {
  /* inherits global styles; customize here if needed */
}
#ann_emails {
  /* inherits global styles; customize here if needed */
}

			/* Λευκά γράμματα μέσα στην προεπισκόπηση απόδειξης */
.email-preview table,
.email-preview table * {
  color: #fff !important;
}