/* Πύλη πελατών και κοινά στοιχεία αιτημάτων */
.portal { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.pmain { flex: 1; padding: clamp(28px, 4vw, 48px) 0 80px; }
.client-bar { background: var(--ink); color: #fff; font-size: .92rem; }
.client-bar .wrap { display: flex; gap: 16px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.client-bar span:first-child { font-weight: 650; }
.client-bar .muted { color: #b9c3bd; }
.nav a[aria-current="page"] { background: var(--panel-2); }
.nav-form { margin: 0; }
.nav-form button { font: 500 .98rem var(--f); color: var(--ink); background: none; border: 0; padding: .5em .8em; border-radius: var(--r); cursor: pointer; }
.nav-form button:hover { background: var(--panel-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.ptitle { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; margin: .2em 0 .8em; }
.phead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.phead h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 2.5vw, 28px); }
.pcard > p:last-child { margin-bottom: 0; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; } }
.back { margin: 0 0 1em; }
.back a { font-weight: 600; text-decoration: none; }
.back a::before { content: "‹ "; }

/* Σύνδεση */
.plogin { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: 52vh; }
.plogin h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.03em; }
.plogin .btn { width: 100%; }
@media (max-width: 800px) { .plogin { grid-template-columns: 1fr; } }

/* Καρτέλες ανοιχτά/ολοκληρωμένα */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tabs a { text-decoration: none; font-weight: 600; padding: .6em 1em; margin-bottom: -2px; border-bottom: 2px solid transparent; color: var(--ink-2); }
.tabs a[aria-selected="true"] { color: var(--ink); border-color: var(--brand); }
.tabs span { font-weight: 500; color: var(--ink-2); margin-left: .3em; }

/* Λίστα αιτημάτων */
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tlist a { display: grid; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.tlist a:hover { border-color: var(--ink); color: var(--ink); }
.tlist strong { font-size: 1.08rem; font-weight: 600; }
.tl-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; }
.tno { font-weight: 700; font-variant-numeric: tabular-nums; }
.ttype { color: var(--ink-2); font-weight: 500; }
.empty-state { text-align: center; padding: 48px 24px; }

/* Κατάσταση, προτεραιότητα, SLA */
.st, .pr, .sla { display: inline-block; font-size: .78rem; font-weight: 650; padding: .2em .65em; border-radius: 99px; line-height: 1.5; white-space: nowrap; }
.st-new { background: #fde3e3; color: #a3121a; }
.st-in_progress { background: #dfe9f6; color: #1f4f8c; }
.st-scheduled { background: #ece4f7; color: #5a3a8c; }
.st-waiting { background: #fbefd2; color: #6e4d00; }
.st-resolved { background: #e1f0e4; color: #1f5a2c; }
.st-cancelled { background: var(--panel-2); color: var(--ink-2); }
.pr { background: transparent; border: 1.5px solid currentColor; padding: .1em .6em; }
.pr-critical { color: var(--brand-dk); }
.pr-high { color: #b35a00; }
.pr-normal { color: var(--ink-2); }
.pr-low { color: #8b949a; }
.sla-ok { background: #e1f0e4; color: #1f5a2c; }
.sla-late { background: var(--brand); color: #fff; }
.sla-soon { background: #fbefd2; color: #6e4d00; }
.sla-pending { background: var(--panel-2); color: var(--ink-2); }
.sla-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }

/* Συμβόλαιο */
.contract .contract-ok { font-weight: 650; font-size: 1.1rem; display: flex; align-items: center; gap: .5em; }
.contract .contract-ok::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.facts { margin: 0 0 1em; border-top: 2px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.sla-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.sla-table caption { text-align: left; font-weight: 650; padding-bottom: 6px; }
.sla-table th, .sla-table td { text-align: left; padding: 7px 2px; border-bottom: 1px solid var(--panel-2); }
.sla-table th { color: var(--ink-2); font-weight: 500; }
.sla-table td:not(:first-child), .sla-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* Φόρμα νέου αιτήματος */
.pform { max-width: 820px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice.prio { grid-template-columns: repeat(4, 1fr); }
.choice legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.opt-card { position: relative; display: block !important; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; }
.opt-card span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 400; }
.opt-card small { color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.opt-card .sla-hint { color: var(--ink); font-weight: 600; margin-top: 4px; }
.opt-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.opt-card input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.prio .opt-card:first-of-type input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
@media (max-width: 720px) { .choice, .choice.prio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .choice, .choice.prio { grid-template-columns: 1fr; } }
.drop-lite input[type=file] { background: var(--white); border-style: dashed; padding: 1em; }
.narrow-form { max-width: 520px; }
.chk-line { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.chk-line input { width: 18px; height: 18px; accent-color: var(--ink); }

/* Ιστορικό αιτήματος */
.t-head .ptitle { margin-top: .3em; }
.hist-h { margin: 32px 0 12px; }
.timeline { list-style: none; margin: 0 0 24px; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--grey); }
.tl-ev { font-size: .92rem; }
.tl-msg { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.tl-msg.from-us { border-left: 4px solid var(--brand); }
.tl-msg.from-us::before { border-color: var(--brand); background: var(--brand); }
.tl-msg.note { background: #fff8e6; border-color: #ecd9a3; border-left: 4px solid #d8a400; }
.tl-msg.note::before { border-color: #d8a400; }
.tl-msg p:last-child { margin-bottom: 0; }
.tl-meta { font-size: .88rem; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tl-meta span { color: var(--ink-2); }
.resolution { margin-top: 16px; border-left: 4px solid var(--green); }
.atts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.atts img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.att-file { display: inline-block; padding: .5em .8em; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-size: .9rem; text-decoration: none; }
.att-file::before { content: "PDF  "; font-weight: 700; color: var(--brand); }

.pfoot { border-top: 1px solid var(--line); padding: 20px 0; font-size: .9rem; color: var(--ink-2); }
.pfoot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; }
