/* EMPORAS – Υπολογισμός υποστυλωμάτων. Όλα κάτω από .eyp-app για να μη συγκρούονται με το θέμα του WordPress. */
.eyp-app {
  --eyp-ink: #16202c;
  --eyp-muted: #5b6776;
  --eyp-line: #dfe4ea;
  --eyp-bg: #f5f7f9;
  --eyp-card: #ffffff;
  --eyp-accent: #1f4e79;
  --eyp-accent-ink: #ffffff;
  --eyp-hl: #f2b705;
  --eyp-hl-soft: #fff6d6;
  --eyp-warn: #8a4b00;
  --eyp-warn-bg: #fff1e0;
  --eyp-radius: 12px;
  color: var(--eyp-ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 1080px;
  margin: 0 auto;
}
.eyp-app *, .eyp-app *::before, .eyp-app *::after { box-sizing: border-box; }
.eyp-app h2, .eyp-app h3, .eyp-app p, .eyp-app ul, .eyp-app dl, .eyp-app dd { margin: 0; padding: 0; }
.eyp-app ul { list-style: none; }

.eyp-wrap { background: var(--eyp-bg); border-radius: calc(var(--eyp-radius) + 4px); padding: 20px; }
.eyp-head { margin-bottom: 16px; }
.eyp-title { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--eyp-ink); }
.eyp-lead { color: var(--eyp-muted); margin-top: 6px; max-width: 62ch; }

.eyp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .eyp-grid { grid-template-columns: minmax(0, 1fr); } .eyp-wrap { padding: 14px; } }
.eyp-grid > * { min-width: 0; }

.eyp-card { background: var(--eyp-card); border: 1px solid var(--eyp-line); border-radius: var(--eyp-radius); padding: 16px; }
.eyp-models { margin-top: 16px; }

/* Φόρμα */
.eyp-form { display: grid; gap: 12px; }
.eyp-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--eyp-muted); }
.eyp-inp { position: relative; display: block; }
.eyp-app input[type="number"], .eyp-app select {
  width: 100%; height: 44px; margin: 0; padding: 0 12px;
  font: 600 17px/1 inherit; font-family: inherit; color: var(--eyp-ink);
  background: #fff; border: 1px solid #c9d1da; border-radius: 8px; box-shadow: none;
  -moz-appearance: textfield;
}
.eyp-app select { font-size: 14px; font-weight: 500; padding-right: 8px; max-width: 100%; text-overflow: ellipsis; }
.eyp-app input[type="number"] { padding-right: 56px; }
.eyp-app input::-webkit-outer-spin-button, .eyp-app input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eyp-app input:focus, .eyp-app select:focus { outline: 2px solid var(--eyp-accent); outline-offset: 1px; border-color: var(--eyp-accent); }
.eyp-inp em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 500; color: var(--eyp-muted); pointer-events: none; }
.eyp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.eyp-more { border-top: 1px dashed var(--eyp-line); padding-top: 10px; }
.eyp-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--eyp-accent); }
.eyp-more > .eyp-field { margin-top: 10px; }
.eyp-hint { font-size: 12.5px; color: var(--eyp-muted); margin-top: 8px; }

/* Σκίτσο */
.eyp-fig { width: 100%; max-width: 300px; height: auto; margin: 4px auto 0; display: block; }
.eyp-f-slab { fill: #b9c2cc; }
.eyp-f-form { fill: #d9a35a; }
.eyp-f-floor { fill: #8a96a3; }
.eyp-f-prop { stroke: var(--eyp-accent); stroke-width: 6; stroke-linecap: square; }
.eyp-f-dim, .eyp-f-dim2 { stroke: var(--eyp-ink); stroke-width: 1; stroke-dasharray: 3 3; }
.eyp-f-txt { font: 600 10px/1 inherit; font-family: inherit; fill: var(--eyp-ink); }
.eyp-f-in { fill: #16202c; }

/* Αποτελέσματα */
.eyp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.eyp-kpi { background: var(--eyp-bg); border-radius: 8px; padding: 10px; display: grid; gap: 2px; }
.eyp-kpi span { font-size: 12px; color: var(--eyp-muted); }
.eyp-kpi b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eyp-kpi small { font-size: 12px; color: var(--eyp-muted); }
@media (max-width: 420px) { .eyp-kpi b { font-size: 18px; } }

.eyp-best { border: 2px solid var(--eyp-hl); background: var(--eyp-hl-soft); border-radius: 10px; padding: 14px; }
.eyp-best-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.eyp-badge { background: var(--eyp-hl); color: #2b2100; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.eyp-cls { font-weight: 700; color: var(--eyp-accent); }
.eyp-best-main { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 0 10px; flex-wrap: wrap; }
.eyp-model { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; display: grid; gap: 2px; }
.eyp-model small { font-size: 14px; font-weight: 600; color: var(--eyp-muted); letter-spacing: 0; }
.eyp-avail { font-size: 13px; font-weight: 700; color: #1b7a3a; }
.eyp-avail-no { color: var(--eyp-warn); }
.eyp-stock { margin-top: 16px; }
.eyp-stock .eyp-h3 { margin-top: 0; }
.eyp-tbl tr.eyp-off { cursor: default; color: var(--eyp-muted); }
.eyp-tbl tr.eyp-off:hover { background: none; }
.eyp-cmp > summary { font-size: 15px; }
.eyp-cmp { border-top: 0; padding-top: 0; }
.eyp-n { font-size: 18px; }
.eyp-n b { font-size: 30px; font-variant-numeric: tabular-nums; }
.eyp-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.eyp-dl dt { font-size: 12px; color: var(--eyp-muted); }
.eyp-dl dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.eyp-bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.eyp-bar i { display: block; height: 100%; background: var(--eyp-accent); border-radius: 99px; }

.eyp-h3 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.eyp-models .eyp-h3 { margin-top: 0; }
.eyp-accs { display: grid; gap: 6px; }
.eyp-acc { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--eyp-line); border-radius: 8px; }
.eyp-acc-q { font-size: 20px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.eyp-acc-n { display: grid; }
.eyp-acc-n small { color: var(--eyp-muted); font-size: 12px; }
.eyp-acc-l { font-size: 13px; font-weight: 600; color: var(--eyp-accent); text-decoration: none; white-space: nowrap; }
.eyp-acc-l:hover { text-decoration: underline; }

.eyp-warn { margin-top: 12px; display: grid; gap: 6px; }
.eyp-warn li { background: var(--eyp-warn-bg); color: var(--eyp-warn); font-size: 13px; padding: 8px 10px; border-radius: 8px; }
.eyp-msg { background: var(--eyp-warn-bg); color: var(--eyp-warn); padding: 12px; border-radius: 8px; }

.eyp-calc { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.eyp-calc td { padding: 5px 0; border-bottom: 1px solid var(--eyp-line); }
.eyp-calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.eyp-calc .eyp-sum td { font-weight: 800; }

.eyp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.eyp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px;
  font: 600 14px/1 inherit; font-family: inherit; color: var(--eyp-accent); background: #fff;
  border: 1px solid var(--eyp-accent); border-radius: 8px; cursor: pointer; text-decoration: none;
}
.eyp-btn:hover { background: #eef3f8; }
.eyp-btn-p { background: var(--eyp-accent); color: var(--eyp-accent-ink); }
.eyp-btn-p:hover { background: #173c5e; color: #fff; }
.eyp-link { background: none; border: 0; padding: 0; margin-top: 8px; color: var(--eyp-accent); font: 600 13px/1.4 inherit; font-family: inherit; cursor: pointer; }

/* Πίνακας μοντέλων */
.eyp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; }
.eyp-tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.eyp-tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--eyp-muted); padding: 6px 8px; border-bottom: 2px solid var(--eyp-line); white-space: nowrap; }
.eyp-tbl td { padding: 8px; border-bottom: 1px solid var(--eyp-line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eyp-tbl tbody tr { cursor: pointer; }
.eyp-tbl tbody tr:hover { background: #f2f6fa; }
.eyp-tbl tr.eyp-on { background: var(--eyp-hl-soft); }
.eyp-tbl .eyp-r { text-align: right; }
.eyp-dot { color: #c99700; }

.eyp-disc { font-size: 12.5px; color: var(--eyp-muted); margin-top: 14px; }

@media print {
  .eyp-app .eyp-actions, .eyp-app .eyp-more > summary, .eyp-app .eyp-fig { display: none; }
  .eyp-app .eyp-wrap { background: none; padding: 0; }
}
.eyp-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--eyp-accent); background: #e7eef6; border-radius: 99px; padding: 1px 7px; margin-left: 2px; }

/* Θέσεις υποστυλωμάτων (κάτοψη) */
.eyp-row2-top { margin-top: 0; }
.eyp-plan { display: block; width: 100%; max-width: 360px; height: auto; margin: 4px 0 8px; }
.eyp-p-slab { fill: #eef1f4; stroke: #8a96a3; stroke-width: 1.2; }
.eyp-p-row { stroke: #c9a24a; stroke-width: 1.5; stroke-dasharray: 4 3; }
.eyp-p-prop { fill: var(--eyp-accent); }
.eyp-p-dim { stroke: var(--eyp-ink); stroke-width: 0.8; }
.eyp-p-txt { font: 600 9.5px/1 inherit; font-family: inherit; fill: var(--eyp-ink); }
.eyp-p-tot { fill: var(--eyp-muted); font-weight: 500; }
.eyp-place { display: grid; gap: 6px; }
.eyp-place li { font-size: 14px; padding: 8px 10px; border: 1px solid var(--eyp-line); border-radius: 8px; font-variant-numeric: tabular-nums; }
