/* Online V2 — Common CSS (shared across all themes) */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f0f2f5; color: #333; min-height: 100vh; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 13px 14px; font-size: 14px; border-radius: 10px; border: 2px solid #e8edf2; outline: none; transition: border-color 0.2s; }
.form-group input:focus { border-color: var(--color-primary); }
.form-group input::placeholder { color: #bbb; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; }
.btn-full { width: 100%; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-pay { background: #fff; color: var(--color-primary); font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 8px; cursor: pointer; border: none; }

/* ===== STATUS BADGES ===== */
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.status-badge.paid { background: #e8f5e9; color: #2e7d32; }
.status-badge.unpaid { background: #fff3e0; color: #e65100; }
/* ⚠ Δυσχρωματοψία: η κατάσταση δηλώνεται με ΕΙΚΟΝΙΔΙΟ + ΚΕΙΜΕΝΟ, ποτέ μόνο με χρώμα. */
.status-badge.pending { background: #ede7f6; color: #4527a0; }
.status-badge.simple  { background: #eceff1; color: #37474f; }
.status-badge i { margin-right: 5px; }
/* Επισήμανση μερικής πληρωμής κάτω από το ποσό */
.amount-note { font-size: 11px; color: #6b6b6b; font-weight: 400; margin-top: 2px; line-height: 1.3; }
/* Αδιάβαστα μηνύματα αιτήματος: αριθμός + λέξη, όχι μόνο κουκκίδα */
.unread-flag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: #ffe9e6; color: #b3261e; font-size: 11px; font-weight: 700; vertical-align: middle; }
.unread-flag i { font-size: 6px; vertical-align: middle; }

/* ===== ALERTS ===== */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ===== LOGIN PAGE ===== */
.login-page { min-height: 100vh; }
.login-layout { display: flex; min-height: 100vh; }

/* Left side */
.login-left { flex: 1; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-left-inner { max-width: 480px; }
.login-left .brand-row { margin-bottom: 20px; }
.login-left .brand-name { color: #fff; font-size: 24px; }
.login-left .brand-sub { color: rgba(255,255,255,0.8); }
.login-left .brand-logo { background: #fff; padding: 4px; border-radius: 12px; }
.login-left .brand-logo-text { background: rgba(255,255,255,0.2); color: #fff; }
.login-left .brand-contact { color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.login-left .brand-contact i { color: rgba(255,255,255,0.7); }
.login-company-info { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,0.85); line-height: 2; }
.login-company-info i { width: 20px; text-align: center; margin-right: 6px; opacity: 0.7; }
.login-features { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.login-features-title { font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.login-feature { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.95); font-weight: 500; }
.login-feature i { width: 36px; height: 36px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.login-oroi-link { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 24px; }
.login-oroi-link a { color: #fff; text-decoration: underline; font-weight: 600; }
.login-social-left { display: flex; gap: 12px; margin-bottom: 12px; }
.login-social-left a { font-size: 20px; color: rgba(255,255,255,0.7); }
.login-social-left a:hover { color: #fff; }
.login-hours-left { font-size: 12px; color: rgba(255,255,255,0.6); }

/* File drop zone */
.file-drop-zone { border: 2px dashed #d0d5dd; border-radius: 10px; padding: 20px; text-align: center; color: #888; transition: all .2s; }
.file-drop-zone.drag-over { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb, 66,133,244), 0.05); }
.file-drop-zone i.fa-cloud-upload-alt { font-size: 28px; color: #bbb; display: block; margin-bottom: 6px; }
.file-drop-zone span { font-size: 13px; }
.file-drop-btns { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.file-drop-btn { font-size: 12px !important; padding: 6px 14px !important; cursor: pointer; }
.file-drop-small { padding: 10px; border-width: 1px; margin-top: 8px; }
.file-drop-small .file-drop-btns { margin-top: 0; }
.file-preview-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-preview-item { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: #f0f4f8; border-radius: 6px; font-size: 12px; color: #555; }
.file-preview-item .file-remove { cursor: pointer; color: #c62828; font-weight: bold; margin-left: 4px; }
.file-preview-item img { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; }

/* Tickets */
.tickets-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.tickets-header h3 { font-size: 18px; font-weight: 600; }
.ticket-form-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.ticket-list { }
.ticket-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border-radius: 10px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); cursor: pointer; transition: all .15s; border: 1px solid #f0f0f0; }
.ticket-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); border-color: var(--color-primary); }
.ticket-item-left { display: flex; align-items: center; gap: 12px; }
.ticket-item-subject { font-size: 15px; font-weight: 600; color: #333; }
.ticket-item-meta { font-size: 12px; color: #999; margin-top: 2px; }
.ticket-detail-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.ticket-number { font-size: 13px; color: #888; font-family: monospace; margin-right: 8px; }
.ticket-messages { margin: 12px 0; }
.ticket-msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; max-width: 85%; }
.ticket-msg-tenant { background: #e3f2fd; margin-left: auto; }
.ticket-msg-admin { background: #f5f5f5; }
.ticket-msg-sender { font-size: 12px; font-weight: 600; color: #666; margin-bottom: 4px; }
.ticket-msg-date { font-weight: 400; color: #aaa; }
.ticket-msg-text { font-size: 14px; color: #333; line-height: 1.5; white-space: pre-wrap; }
.ticket-reply-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.ticket-files-section { margin-top: 12px; padding: 12px; background: #f8f9fa; border-radius: 8px; }

/* Synergeia */
.syn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 16px 0; }
.syn-card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; }
.syn-eidik { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-primary); margin-bottom: 4px; }
.syn-name { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 8px; }
.syn-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.syn-contact a { font-size: 13px; color: #555; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.syn-contact a:hover { color: var(--color-primary); }
.syn-contact i { font-size: 12px; color: var(--color-primary); }
.syn-notes { font-size: 12px; color: #888; margin-top: 4px; line-height: 1.4; }

/* Footer */
.wk-footer { text-align: center; padding: 14px; font-size: 12px; color: #aaa; background: #f0f2f5; border-top: 1px solid #e8e8e8; }
.wk-footer a { color: #888; text-decoration: none; }
.wk-footer a:hover { color: var(--color-primary); }
.wk-footer span { margin: 0 6px; }

/* Right side */
.login-right { width: 440px; min-width: 380px; display: flex; flex-direction: column; justify-content: center; padding: 40px; background: #f8f9fa; overflow-y: auto; }

.login-brand { padding: 20px; }
.login-brand-inner { max-width: 400px; margin: 0 auto; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }
.brand-logo-text { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--color-primary); font-family: 'Manrope', sans-serif; }
.brand-name { font-size: 20px; font-weight: 800; font-family: 'Manrope', sans-serif; }
.brand-sub { font-size: 11px; opacity: 0.7; }
.brand-info { flex: 1; }
.brand-contact { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; }
.brand-contact i { margin-right: 3px; }

.login-form-area { flex: 1; padding: 0 20px 20px; max-width: 440px; margin: 0 auto; width: 100%; }
.login-card { padding: 28px 20px; margin-bottom: 16px; }
.login-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: #999; margin-bottom: 20px; }
.login-links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: 12px; }
.login-register { text-align: center; margin-bottom: 14px; }
.login-register p { font-size: 12px; color: #888; margin-bottom: 8px; }
.login-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.login-social a { font-size: 16px; opacity: 0.5; }
.login-hours { text-align: center; font-size: 10px; color: #aaa; }
.login-message { padding: 14px 18px; margin-bottom: 14px; background: #fff; border-radius: 10px; font-size: 14px; color: #555; line-height: 1.5; border-left: 4px solid var(--color-primary); }

/* Registration form */
.radio-row { display: flex; gap: 20px; padding: 4px 0; }
.radio-row label { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #555; cursor: pointer; }
.radio-row input[type="radio"] { accent-color: var(--color-primary); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-half { flex: 1 1 120px; }
.reg-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.reg-msg-info { background: #e3f2fd; color: #1565c0; }
.reg-msg-error { background: #ffebee; color: #c62828; }
.reg-info { font-size: 12px; color: #888; margin-top: 12px; line-height: 1.5; }

/* ===== DASHBOARD ===== */
.dashboard { min-height: 100vh; max-width: 1200px; margin: 0 auto; }

/* Top bar */
.dash-topbar { padding: 12px 24px; }
.dash-topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.dash-brand { display: flex; align-items: center; gap: 10px; }
.dash-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.dash-logo-text { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; font-family: 'Manrope'; }
.dash-firma { font-size: 17px; font-weight: 700; }
.dash-actions { display: flex; gap: 4px; align-items: center; }
.dash-version { font-size: 10px; color: #bbb; margin-right: 4px; }
.dash-lang { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.06); color: #666; text-decoration: none; }
.dash-lang:hover { background: var(--color-primary); color: #fff; }
.login-lang-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; margin-left: auto; }
.login-lang-btn:hover { background: rgba(255,255,255,0.35); }
.dash-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 16px; }

/* Hero */
.dash-hero { padding: 0 24px; margin-bottom: 16px; }
.dash-hero-inner { padding: 20px 24px; border-radius: 14px; }
.dash-welcome { font-size: 14px; opacity: 0.8; display: inline; }
.dash-username { font-size: 14px; font-weight: 700; display: inline; margin-right: 12px; }
.dash-hero-inner { padding: 14px 24px; border-radius: 14px; }
.dash-welcome-row { margin-bottom: 6px; }
.dash-balance-row { display: flex; align-items: baseline; gap: 8px; }
.dash-balance-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 12px; margin-top: 8px; }
.dash-balance-label { font-size: 14px; opacity: 0.8; }
.dash-balance-amount { font-size: 26px; font-weight: 800; }

/* Building info */
.dash-message { margin: 0 24px 14px; padding: 14px 18px; background: #fff; border-radius: 10px; font-size: 14px; color: #555; line-height: 1.5; border-left: 4px solid var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.dash-building-info { margin: 0 24px 12px; padding: 14px 18px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.dash-building-addr { font-size: 16px; font-weight: 600; }
.dash-building-addr i { color: var(--color-primary); margin-right: 6px; }
.dash-building-code { color: #aaa; font-size: 13px; font-weight: 400; }
.dash-building-flat { font-size: 14px; color: #666; margin-top: 4px; }

/* Building selector */
.dash-building-select { display: flex; gap: 6px; padding: 0 24px 12px; overflow-x: auto; }
.building-chip { padding: 7px 14px; border-radius: 20px; font-size: 12px; background: #fff; color: #888; border: 1px solid #e0e0e0; white-space: nowrap; }
.building-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.building-chip span { opacity: 0.7; font-size: 10px; }

/* Multi-building info */
.dash-multi-info { margin: 0 24px 16px; padding: 16px; background: #f8f9fa; border-radius: 10px; border: 1px solid #e8e8e8; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.dash-multi-title { font-size: 15px; color: #666; font-weight: 500; width: 100%; }
.dash-multi-title i { margin-right: 6px; color: var(--color-primary); }
.dash-multi-item { display: block; padding: 12px 14px; border-radius: 8px; background: #fff; border: 2px solid #e8e8e8; text-decoration: none; color: #333; transition: all 0.2s; flex: 1 1 240px; min-width: 200px; }
.dash-multi-item:hover { border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.dash-multi-item.active { border-color: var(--color-primary); background: linear-gradient(135deg, rgba(var(--color-primary-rgb, 66,133,244), 0.04), rgba(var(--color-primary-rgb, 66,133,244), 0.08)); }
/* ⚠ Δυσχρωματοψία: το ενεργό κτίριο σημαινόταν ΜΟΝΟ με χρώμα περιγράμματος. */
.dash-multi-item.active::before { content: "✓ "; display: inline-block; margin-right: 4px; font-weight: 700; color: var(--color-primary); }
.dash-multi-item.active { font-weight: 600; }
.dash-multi-building { font-size: 16px; font-weight: 600; color: #333; }
.dash-multi-flat { font-size: 14px; color: #666; margin-top: 3px; }
.dash-multi-balance { font-size: 15px; color: #d32f2f; margin-top: 5px; }
.dash-multi-balance strong { font-weight: 700; }
.dash-multi-link { text-decoration: none; color: inherit; display: block; }
.dash-multi-extras { display: none; /* moved to dash-extras-box */ }
/* Extras box (separate, below buildings) */
.dash-extras-box { margin: 0 24px 16px; padding: 14px 18px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.dash-extras-title { font-size: 14px; color: #666; font-weight: 600; margin-bottom: 10px; }
.dash-extras-title i { margin-right: 6px; color: var(--color-primary); }
.dash-extras-addr { font-weight: 400; color: #999; }
/* Announcements */
.dash-announcement { margin-bottom: 12px; padding: 12px 14px; background: #fffde7; border-radius: 8px; border-left: 4px solid #fbc02d; }
.dash-announcement-title { font-size: 13px; font-weight: 600; color: #f57f17; margin-bottom: 6px; }
.dash-announcement-title i { margin-right: 5px; }
.dash-announcement-content { font-size: 14px; color: #555; line-height: 1.5; }
.dash-announcement-content img { max-width: 100%; }

.dash-extras-items { display: flex; flex-wrap: wrap; gap: 8px; }
.multi-extra-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 6px; font-size: 13px; background: #f0f4f8; color: #444; text-decoration: none; border: 1px solid #e0e4e8; transition: all 0.2s; white-space: nowrap; }
.multi-extra-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.multi-extra-btn i { font-size: 13px; }
.multi-extra-info { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; font-size: 14px; color: #555; white-space: nowrap; }
.multi-extra-info i { color: var(--color-primary); }
.multi-extra-info strong { color: #333; }
.single-building { background: transparent; border: none; padding: 0 24px 12px; }

/* Tabs */
.dash-tabs { display: flex; margin: 0 24px; border-bottom: 2px solid #f0f0f0; overflow-x: auto; }
.dash-tab { padding: 18px 24px; font-size: 18px; color: #888; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.dash-tab.active { font-weight: 600; }
.dash-tab i { font-size: 24px; }
.tab-badge { display: inline-flex; align-items: center; justify-content: center; background: #e53e3e; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; margin-left: 4px; }

/* Content */
.dash-content { padding: 0 24px 24px; }

/* ===== DESKTOP TABLE VIEW ===== */
.eidop-table-wrap { overflow-x: auto; }
.eidop-table { width: 100%; border-collapse: collapse; }
.eidop-table th { padding: 14px 16px; font-size: 13px; font-weight: 600; color: #777; text-transform: uppercase; letter-spacing: .5px; text-align: left; border-bottom: 2px solid #f0f0f0; background: #fafbfc; }
.eidop-table .th-right { text-align: right; }
.eidop-table .th-center { text-align: center; }
.eidop-table td { padding: 14px 16px; font-size: 15px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.eidop-table tr:hover { background: #f8faff; }
.eidop-table tr.unpaid-row { background: #fffbf5; }
.eidop-table tr.unpaid-row:hover { background: #fff5e6; }

.td-period { font-weight: 600; color: #222; display: flex; align-items: center; font-size: 15px; }
.eidop-card-period { display: flex; align-items: center; }
.scan-icon { display: flex; align-items: center; justify-content: center; width: 24px; min-width: 24px; height: 24px; border-radius: 6px; background: #fff3e0; color: #e65100; font-size: 12px; cursor: pointer; margin-right: 6px; transition: all .15s; }
.scan-icon:hover { background: #e65100; color: #fff; }
.scan-icon-empty { display: block; width: 24px; min-width: 24px; height: 24px; margin-right: 6px; }
.td-amount { font-weight: 700; font-size: 16px; text-align: right; white-space: nowrap; }
.td-status { text-align: center; }
.td-date { text-align: center; font-size: 14px; color: #555; }
.td-actions { text-align: center; white-space: nowrap; }
.td-check { width: 40px; text-align: center; }
.td-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--color-primary); }

/* Table action buttons */
.tbl-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e8e8e8; background: #fff; color: #888; cursor: pointer; transition: all .15s; margin: 0 2px; text-decoration: none; font-size: 15px; }
.tbl-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tbl-btn-pay { color: #e65100; border-color: #ffe0b2; }
.tbl-btn-pay:hover { background: #e65100; color: #fff; border-color: #e65100; }
.tbl-btn-label { display: none; font-size: 12px; }

/* Scan expand row */
.scan-row td { padding: 8px 16px 12px; background: #f8faff; border-bottom: 2px solid #e8edf2; }
.scan-list { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 40px; }
.scan-item { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; color: #555; cursor: pointer; transition: all .15s; text-decoration: none; }
.scan-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
.scan-item i { color: var(--color-primary); }

/* ===== MOBILE CARD VIEW (hidden on desktop) ===== */
.eidop-cards { display: none; flex-direction: column; gap: 10px; padding: 16px 0; }
.eidop-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.eidop-card.is-unpaid { border-left: 3px solid #e65100; }
.eidop-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.eidop-card-check { display: flex; align-items: center; margin-right: 10px; padding-top: 2px; }
.eidop-card-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--color-primary); }
.eidop-card-period { font-size: 15px; font-weight: 600; }
.eidop-card-date { font-size: 12px; color: #999; margin-top: 2px; }
.eidop-card-right { text-align: right; }
.eidop-card-amount { font-size: 17px; font-weight: 700; }
.eidop-card-btns { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.card-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 7px; border: 1px solid #e0e0e0; font-size: 13px; color: #555; background: #fff; cursor: pointer; transition: all .15s; text-decoration: none; }
.card-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.card-btn-pay { color: #e65100; border-color: #ffe0b2; }
.card-btn-pay:hover { background: #e65100; color: #fff; }

/* Scan files (cards) */
.eidop-scans { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 4px; }
.scan-link { font-size: 13px; color: #555; padding: 5px 0; text-decoration: none; }
.scan-link i { color: var(--color-primary); margin-right: 4px; }
.scan-link:hover { color: var(--color-primary); }

/* ===== INFO CARDS GRID (Αρχεία tab) ===== */
.info-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.info-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; text-decoration: none; color: inherit; transition: all .15s; }
.info-card-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: var(--color-primary); transform: translateY(-1px); }
.info-card-accent { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; border: none; }
.info-card-accent .info-card-sub { opacity: 0.8; }
.info-card-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #f0f0f0; color: #555; }
.info-card-accent .info-card-icon { background: rgba(255,255,255,0.2); color: #fff; }
.info-card-body { flex: 1; min-width: 0; }
.info-card-title { font-size: 14px; font-weight: 600; color: #333; }
.info-card-accent .info-card-title { color: #fff; }
.info-card-sub { font-size: 11px; color: #999; margin-top: 2px; }
.info-card-amount { font-size: 22px; font-weight: 800; color: #333; margin-top: 2px; }
.info-card-accent .info-card-amount { color: #fff; }
.info-card-arrow { color: #ccc; font-size: 12px; }
.info-card-link:hover .info-card-arrow { color: var(--color-primary); }

@media (max-width: 600px) {
    .info-cards-grid { grid-template-columns: 1fr; }
    .info-card { padding: 14px; }
    .info-card-icon { width: 40px; height: 40px; min-width: 40px; font-size: 18px; }
    .info-card-title { font-size: 13px; }
    .info-card-amount { font-size: 18px; }
}

/* Empty state */
.eidop-empty { text-align: center; padding: 40px; color: #ccc; }
.eidop-empty i { font-size: 40px; margin-bottom: 10px; }
.eidop-empty p { font-size: 14px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid #f0f0f0; }
.page-btn { padding: 9px 20px; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.06); color: #555; }
.page-btn:hover { background: var(--color-primary); color: #fff; }
.page-info { font-size: 13px; color: #888; }

/* ===== PAYMENT MODAL ===== */
.pay-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.pay-modal { background: #fff; border-radius: 16px; padding: 24px; width: 90%; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.pay-modal-header { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pay-modal-header i { color: var(--color-primary); font-size: 20px; }
.pay-modal-info { font-size: 13px; color: #888; margin-bottom: 4px; }
.pay-modal-amount { font-size: 28px; font-weight: 800; color: #333; margin-bottom: 16px; }
.pay-modal-label { font-size: 13px; font-weight: 600; color: #555; display: block; margin-bottom: 6px; }
.pay-modal-input { width: 100%; padding: 14px; font-size: 18px; font-weight: 700; border: 2px solid #e0e0e0; border-radius: 10px; text-align: center; outline: none; }
.pay-modal-input:focus { border-color: var(--color-primary); }
.pay-modal-footer { display: flex; gap: 10px; margin-top: 16px; }
.pay-modal-footer .btn { flex: 1; }

/* ===== PAYMENT PANEL (inline, scrolls with content) ===== */
.pay-sidebar { width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e8e8e8; overflow: hidden; margin-bottom: 14px; }
/* Η κεφαλίδα απαριθμεί ΟΛΟΥΣ τους τρόπους πληρωμής της εταιρίας, οπότε το κείμενο
   μπορεί να είναι μακρύ: τυλίγεται, και τα εικονίδια δεν στριμώχνονται γι' αυτό. */
.pay-sidebar-header { padding: 14px 16px; background: #f8f9fb; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #333; line-height: 1.35; }
.pay-sidebar-header img, .pay-sidebar-header i { flex-shrink: 0; }
.pay-sidebar-header span { min-width: 0; }
.pay-sidebar-body { padding: 14px 16px; }
.pay-sidebar-line { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #555; padding: 4px 0; }
.pay-sidebar-line strong { font-size: 14px; color: #333; }
.pay-sidebar-total strong { font-size: 18px; color: #d32f2f; }
.pay-sidebar-body hr { border: none; border-top: 1px solid #eee; margin: 8px 0; }
.pay-sidebar-check { margin: 10px 0; }
.pay-sidebar-check label { font-size: 11px; color: #888; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pay-sidebar-check input { accent-color: var(--color-primary); }
/* Ένα «κουτί» ανά τρόπο πληρωμής: έξοδα + τελικό ποσό + κουμπί μαζί, ώστε να
   φαίνεται ΠΟΙΟ ποσό αντιστοιχεί σε ΠΟΙΟ κουμπί (κάρτα ≠ PayPal σε χρεώσεις). */
.pay-method { border-top: 1px solid #eee; padding-top: 8px; margin-top: 10px; }
.pay-sidebar-btn { margin-top: 8px; padding: 10px; font-size: 13px; }
.pay-sidebar-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pay-sidebar-rf { padding: 14px 16px; border-top: 1px solid #eee; background: #fafbfc; }
.pay-sidebar-rf-info { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: #888; line-height: 1.4; }


/* ===== RESPONSIVE — DESKTOP (800px+) ===== */
@media (min-width: 800px) {
    /* Login: side by side */
    .login-page { flex-direction: row; }
    .login-brand { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
    .login-brand-inner { max-width: none; }
    .login-form-area { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 480px; padding: 40px; }
    .brand-name { font-size: 28px; }
    .form-group input { padding: 15px 16px; font-size: 15px; }
    .btn { padding: 14px 28px; font-size: 15px; }

    /* Table: show labels on wide screens */
    .eidop-table-wrap { display: block; }
    .eidop-cards { display: none !important; }
}

@media (min-width: 1100px) {
    .tbl-btn { width: auto; padding: 6px 12px; gap: 4px; }
    .tbl-btn-label { display: inline; }
}

/* ===== RESPONSIVE — LOGIN MOBILE ===== */
@media (max-width: 899px) {
    .login-layout { flex-direction: column; min-height: auto; }
    .login-left { padding: 16px 20px; min-height: auto; align-items: flex-start; justify-content: flex-start; flex: none; }
    .login-left-inner { width: 100%; }
    .login-left .brand-name { font-size: 18px; }
    .login-left .brand-contact { margin-bottom: 8px; font-size: 12px; }
    .login-social-left { margin-bottom: 6px; }
    .login-hours-left { margin-bottom: 0; }
    .login-right { width: 100%; min-width: auto; padding: 20px; flex: none; justify-content: flex-start; }
}

/* ===== SETTINGS ===== */
.settings-section { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.settings-section h3 { margin: 0 0 16px; font-size: 16px; color: #333; display: flex; align-items: center; gap: 8px; }
.settings-section h3 i { color: var(--color-primary); }
.settings-row { margin-bottom: 12px; }
.settings-row label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 4px; }
.settings-row input[type="password"], .settings-row input[type="text"], .settings-row input[type="email"], .settings-row input[type="tel"] {
    width: 100%; padding: 10px 12px; border: 2px solid #e8edf2; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.settings-row input:focus { border-color: var(--color-primary); outline: none; }
.settings-form { max-width: 400px; }
.flat-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.flat-detail-header { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; padding: 8px 12px; background: #f5f7fa; border-bottom: 1px solid #e8edf2; }
.flat-detail-row { display: contents; }
.flat-detail-label { font-size: 13px; color: #888; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.flat-detail-value { font-size: 14px; font-weight: 500; color: #333; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
@media (max-width: 480px) {
    .flat-detail-grid { grid-template-columns: 1fr; }
}

/* ===== EXPENSES ADD ROW ===== */
.exp-add-row { display: flex; gap: 8px; align-items: flex-end; }
.exp-add-cell select, .exp-add-cell input[type="text"], .exp-add-cell input[type="number"] { width: 100%; padding: 9px 10px; border: 2px solid #e8edf2; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.exp-add-cat { flex: 0 0 180px; }
.exp-add-desc { flex: 1 1 200px; }
.exp-add-amount { flex: 0 0 110px; }
.exp-add-file { display: flex; gap: 4px; flex: 0 0 auto; align-items: center; }
.exp-add-btn { flex: 0 0 auto; }
.exp-add-label-mobile { display: none; font-size: 12px; color: #888; margin-bottom: 4px; }
.exp-camera-btn { display: none; }
@media (max-width: 799px) {
    .exp-add-row { flex-direction: column; align-items: stretch; }
    .exp-add-cat, .exp-add-desc, .exp-add-amount { flex: none; width: 100%; }
    .exp-add-file { justify-content: flex-start; }
    .exp-add-label-mobile { display: block; }
    .exp-camera-btn { display: inline-flex; }
}

/* ===== RESPONSIVE — MOBILE (<800px) ===== */
@media (max-width: 799px) {
    .dashboard { max-width: 100%; }
    .dash-topbar { padding: 10px 16px; }
    .dash-hero { padding: 0 16px; }
    .dash-hero-inner { padding: 16px; }
    .dash-building-info { margin: 0 16px 10px; padding: 12px 14px; }
    .dash-building-addr { font-size: 13px; }
    .dash-building-flat { font-size: 11px; }
    .dash-tabs { margin: 0 16px; }
    .dash-tab { padding: 12px 12px; font-size: 13px; }
    .dash-tab i { font-size: 17px; }
    .dash-content { padding: 0 16px 16px; }
    .dash-username { font-size: 18px; }
    .dash-balance-amount { font-size: 22px; }

    /* Hide table, show cards */
    .eidop-table-wrap { display: none !important; }
    .eidop-cards { display: flex !important; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 18px; }
    .dash-username { font-size: 16px; }
    .dash-balance-amount { font-size: 20px; }
    .dash-tab { font-size: 11px; padding: 10px 6px; }
    .card-btn { font-size: 10px; padding: 5px 8px; }
}
