/* ════════════════════════════════════════════════════════════
   app.css — Portal συνεργατών, εγγραφή, σελίδα οδηγού
   (ίδια γλώσσα σχεδίασης με το Hotel Partner Panel)
════════════════════════════════════════════════════════════ */
:root {
    --navy: #0B1F4D; --navy-2: #132B63; --blue: #1E3A8A; --blue-l: #DBEAFE;
    --bg: #EEF1F6; --card: #fff; --soft: #F1F5F9; --line: #E2E8F0; --line-2: #CBD5E1;
    --text: #0F172A; --muted: #475569; --muted-2: #64748B;
    --green: #15803D; --green-l: #DCFCE7; --green-d: #14532D;
    --amber-l: #FEF3C7; --amber-d: #92400E; --red: #B91C1C; --red-l: #FEE2E2;
    --shadow: 0 1px 3px rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); font-family: "Poppins", system-ui, sans-serif; font-size: 14px; color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.hidden { display: none !important; }
.muted { color: var(--muted-2); font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.empty { padding: 32px 12px; text-align: center; color: var(--muted-2); font-size: 14px; line-height: 1.6; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Κουμπιά ── */
.btn {
    min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.line { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn.line:hover { border-color: var(--muted-2); }
.btn.primary { background: var(--blue); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--navy); }
.btn.big { min-height: 50px; padding: 0 22px; font-size: 15px; }
.btn.huge { min-height: 60px; font-size: 16px; border-radius: 16px; width: 100%; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* ── Φόρμες ── */
.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.flabel { font-size: 12px; color: var(--muted); }
.f input, .f select, .f textarea, .table.edit input, .table.edit select, .week-nav input {
    height: 44px; width: 100%; border: 1px solid var(--line-2); border-radius: 12px;
    padding: 0 12px; font-size: 14px; color: var(--text); background: #fff;
}
.f input[type=file] { padding: 9px 10px; }
.f input:focus, .f select:focus, .table.edit input:focus, .table.edit select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,58,138,.15); }
.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(185,28,28,.12) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 500; }
.alert.err { background: var(--red-l); color: var(--red); }
.req { color: var(--red); }

/* ── Κάρτες, πίνακες ── */
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.table-box { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px; background: #F8FAFC; white-space: nowrap; }
.table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.off td { color: var(--muted-2); }
.table .num { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table .route { min-width: 220px; }
.table.edit td { padding: 6px 4px; }
.w-num { max-width: 80px; }
.row-del { width: 40px; height: 40px; border: none; background: none; border-radius: 10px; font-size: 20px; color: var(--muted-2); cursor: pointer; }
.row-del:hover { background: var(--red-l); color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); cursor: pointer; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; margin-left: 8px; }
.tag.soft { background: var(--soft); color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); margin-left: 8px; }
.badge.accepted { background: var(--amber-l); color: var(--amber-d); }
.badge.assigned { background: var(--blue-l); color: var(--blue); }
.badge.on_way { background: var(--blue); color: #fff; }
.badge.arrived, .badge.onboard { background: var(--green); color: #fff; }
.badge.done { background: var(--green-l); color: var(--green-d); }
.badge.cancelled { background: var(--soft); color: var(--muted-2); text-decoration: line-through; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--muted-2); }
.dot.ok { background: var(--green); } .dot.error { background: var(--red); }

/* ── Layout portal ── */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 0 0 240px; background: var(--navy); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text span { font-size: 12px; color: #B9C6E4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 12px; background: none; border: none; color: #D6DEF0; cursor: pointer; text-align: left; font-size: 14px; }
.nav-item:hover { background: var(--navy-2); color: #fff; }
.nav-item.active { background: var(--blue); color: #fff; font-weight: 500; }
.count { background: #fff; color: var(--blue); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-note { margin-top: auto; background: var(--navy-2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.side-note span { font-size: 12px; color: #B9C6E4; } .side-note b { font-size: 16px; font-weight: 600; }
.logout { color: #B9C6E4; text-decoration: none; font-size: 13px; padding: 8px 14px; }
.logout:hover { color: #fff; }

.main { flex: 1 1 560px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; max-width: 1200px; }
.view { display: flex; flex-direction: column; gap: 16px; }
.view-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.view-head h1 { font-size: 22px; font-weight: 600; margin-right: auto; }
.view-head h1 small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cards { display: flex; flex-direction: column; gap: 12px; }
.two-col { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.two-col > .card { flex: 1 1 420px; min-width: 0; }

.status-card { border-left: none; }
.status-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.status-card p { color: var(--muted); line-height: 1.6; }
.status-card.pending { background: var(--amber-l); }
.status-card.suspended { background: var(--red-l); }
.status-card .note { margin-top: 8px; color: var(--text); }

/* Προσφορά / δρομολόγιο */
.offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.when { font-size: 17px; font-weight: 600; }
.pay { text-align: right; display: flex; flex-direction: column; }
.pay b { font-size: 26px; font-weight: 700; color: var(--green-d); line-height: 1.1; }
.pay small { font-size: 12px; color: var(--muted-2); }
.pay b.tbc { font-size: 16px; color: var(--amber-d); }
.route { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 14px; }
.route span { position: relative; padding-left: 22px; }
.route span::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; }
.route .a::before { background: var(--red); } .route .b::before { background: var(--green); }
.route.big { font-size: 16px; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); align-items: center; }
.meta .left { margin-left: auto; }
.notes { margin-top: 10px; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.assign { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.assign .f { flex: 1 1 200px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.job.st-accepted { box-shadow: 0 0 0 2px #F59E0B, var(--shadow); }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-form .f { flex: 1 1 140px; }
.inline-form .f.cc { flex: 0 0 72px; } .inline-form .f.num { flex: 0 0 90px; }
.inline-form .check { flex: 0 0 auto; align-self: center; }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.check-card { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14px; }
.check-card:has(input:checked) { border-color: var(--blue); background: #F5F8FF; font-weight: 500; }
.check-card input { width: 18px; height: 18px; accent-color: var(--blue); }

.docs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.docs li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.dl dt { color: var(--muted-2); font-size: 13px; } .dl dd { font-weight: 500; overflow-wrap: anywhere; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 13px; color: var(--muted); } .kpi b { font-size: 22px; font-weight: 600; }
.balance { font-size: 15px; color: var(--muted); } .balance b { color: var(--text); }
.week-nav { display: flex; gap: 6px; align-items: center; } .week-nav input { width: 160px; height: 36px; }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--text); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 500; transition: transform .25s; z-index: 99; max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); } .toast.err { background: var(--red); }

@media (max-width: 899px) {
    .sidebar { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
    .brand { flex: 1 1 200px; padding: 0; }
    .nav { flex-direction: row; flex-wrap: wrap; order: 3; flex: 1 1 100%; }
    .nav-item { flex: 1 1 auto; justify-content: center; gap: 6px; min-height: 44px; }
    .side-note { display: none; }
    .main { padding: 16px; }
    .actions .btn { flex: 1 1 auto; }
    .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; }
}

/* ── Login ── */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-box { width: 400px; max-width: 100%; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgba(11,31,77,.15); }
.auth-head { background: var(--navy); color: #fff; padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.auth-head b { font-size: 20px; font-weight: 600; } .auth-head span { font-size: 13px; color: #B9C6E4; }
.auth-form { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-alt { font-size: 13px; color: var(--muted); text-align: center; }

/* ── Εγγραφή ── */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.reg-hero { background: var(--navy); color: #fff; padding: 28px 0 90px; }
.reg-login { float: right; color: #D6DEF0; font-size: 13px; text-decoration: none; }
.reg-hero h1 { font-size: 30px; font-weight: 700; margin: 26px 0 8px; }
.reg-hero p { color: #D6DEF0; max-width: 620px; line-height: 1.6; }
.perks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.perks li { background: var(--navy-2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.perks span { font-size: 13px; color: #B9C6E4; }
.reg-form { margin: -64px 0 40px; display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 13px; color: var(--muted-2); padding-top: 10px; border-top: 4px solid var(--line); }
.steps li::before { content: counter(s) ". "; }
.steps li.active { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.steps li.done { color: var(--green-d); border-color: var(--green); }
.step { border: none; display: flex; flex-direction: column; gap: 14px; }
.step legend { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid2 .full { grid-column: 1 / -1; }
.phone .row { display: flex; gap: 8px; } .phone .cc { flex: 0 0 72px; }
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc { border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px; }
.doc > span { font-size: 13px; color: var(--text); }
.reg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
.step-err { flex: 1 1 200px; color: var(--red); font-size: 13px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .grid2, .doc-list { grid-template-columns: 1fr; } .reg-hero h1 { font-size: 24px; } .steps li { font-size: 11px; } }

/* ── Σελίδα οδηγού ── */
.driver-page { min-height: 100vh; }
.drv-wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.drv-head { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.drv-head .badge { margin-left: 0; align-self: flex-start; }
.drv-head h1 { font-size: 24px; font-weight: 700; }
.drv-actions { display: flex; flex-direction: column; gap: 10px; }
.collect { margin-top: 14px; background: var(--amber-l); color: var(--amber-d); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.collect b { font-size: 18px; } .collect.paid { background: var(--green-l); color: var(--green-d); }
.done-card { text-align: center; font-size: 16px; font-weight: 500; color: var(--green-d); background: var(--green-l); }

@media print {
    .sidebar, .view-head .btn, .week-nav, .toast { display: none !important; }
    body, .app { background: #fff; }
}
