﻿/* Δημόσια εφαρμογή αποφάσεων - οπτική εναρμόνιση με το dimosvolos.gr */
:root {
    --volos-blue: #2f73b8;
    --volos-blue-dark: #195a9f;
    --volos-blue-deep: #154b83;
    --volos-sky: #86d2fb;
    --volos-orange: #f5b24b;
    --volos-text: #292929;
    --volos-muted: #6b7785;
    --volos-border: #e1e7ee;
    --volos-bg: #f4f7fa;
    --volos-white: #ffffff;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body.public-decisions-body {
    margin: 0;
    color: var(--volos-text);
    background: var(--volos-bg);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.public-decisions-body * {
    box-sizing: border-box;
}

.municipal-header {
    width: 100%;
    background: var(--volos-white);
    border-bottom: 1px solid #dfe6ed;
    box-shadow: 0 2px 9px rgba(21, 75, 131, 0.08);
}

.municipal-header-inner {
    width: calc(100% - 40px);
    max-width: 1180px;
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.municipal-brand {
    width: 175px;
    min-width: 175px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 18px;
    background: var(--volos-blue);
}

.municipal-brand img {
    width: 138px;
    max-width: 100%;
    height: auto;
    display: block;
}

.municipal-app-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0 12px 28px;
}

.municipal-app-title-main {
    color: var(--volos-blue-dark);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
}

.municipal-app-title-sub {
    margin-top: 3px;
    color: var(--volos-muted);
    font-size: 14px;
}

.municipal-header-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--volos-sky) 0 31%, var(--volos-blue) 31% 88%, var(--volos-orange) 88% 100%);
}

.public-shell {
    padding: 34px 20px 18px;
}

.public-container.container {
    width: 100% !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 !important;
}

.public-decisions-card {
    width: 100%;
    float: none !important;
    margin: 0;
    padding: 34px 38px 30px;
    background: var(--volos-white);
    border: 1px solid var(--volos-border);
    border-radius: 4px;
    box-shadow: 0 8px 26px rgba(21, 75, 131, 0.08);
}

.public-decisions-heading-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--volos-border);
}

.public-decisions-heading {
    min-width: 0;
    width: 100%;
    padding-left: 145px;
    padding-right: 145px;
    text-align: center;
}

.public-decisions-heading .heading-accent {
    margin-left: auto;
    margin-right: auto;
}

.public-decisions-heading-row .year-filter {
    position: absolute;
    top: 0;
    right: 0;
}

.heading-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--volos-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
}

.public-decisions-heading h1 {
    margin: 0;
    color: #2d2d2d;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
}

.heading-accent {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 15px;
    background: var(--volos-orange);
}

.year-filter {
    width: 128px;
    flex: 0 0 128px;
}

.year-filter label {
    display: block;
    margin: 0 0 6px;
    color: var(--volos-blue-dark);
    font-size: 12px;
    font-weight: 700;
}

.year-select.form-control {
    width: 100% !important;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #cbd7e3;
    border-radius: 3px;
    color: var(--volos-text);
    background: #fff;
    font-size: 15px;
    box-shadow: none;
}

.council-switch {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 26px 0 20px;
}

.council-option {
    min-width: 245px;
    margin: 0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--volos-blue-deep);
    background: #f7fbff;
    border: 1px solid #cfe0f0;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.council-option:hover {
    border-color: var(--volos-blue);
    background: #eef7ff;
}

.council-option:has(input[type="radio"]:checked) {
    color: #fff;
    border-color: var(--volos-blue);
    background: var(--volos-blue);
    box-shadow: 0 4px 12px rgba(47, 115, 184, .18);
}

.council-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--volos-blue);
}

.public-search-box {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 18px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-field-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.search-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--volos-blue);
    font-size: 18px;
}

.public-search-input.form-control {
    width: 100% !important;
    height: 48px;
    padding: 10px 14px 10px 45px;
    border: 1px solid #c8d5e1;
    border-radius: 4px;
    color: var(--volos-text);
    background: #fff;
    font-size: 16px;
    box-shadow: none;
}

.public-search-input.form-control:focus {
    border-color: var(--volos-blue);
    box-shadow: 0 0 0 3px rgba(47, 115, 184, .12);
}

.search-actions {
    display: flex;
    gap: 8px;
}

.public-search-action {
    width: 48px !important;
    height: 48px !important;
    padding: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #c8d5e1;
    border-radius: 4px;
    transition: background-color .2s ease, border-color .2s ease;
}

.public-search-submit {
    border-color: var(--volos-blue);
    background: #f4f9fe;
}

.public-search-action:hover,
.public-search-action:focus {
    border-color: var(--volos-blue-dark);
    background: #eaf5ff;
}

.results-heading {
    margin: 24px 0 12px;
    text-align: center;
}

.results-title,
.results-subtitle {
    display: block;
    color: var(--volos-blue-dark) !important;
    font-size: 16px;
    font-weight: 700 !important;
}

.results-subtitle {
    margin-top: 5px;
    color: var(--volos-text) !important;
    font-size: 15px;
}

.back-row {
    min-height: 15px;
    margin-bottom: 8px;
    text-align: left;
}

.public-back-button {
    padding: 8px 0 8px 22px !important;
    position: relative;
    color: var(--volos-blue-dark) !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: 14px;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.public-back-button:before {
    content: "‹";
    position: absolute;
    left: 2px;
    top: 2px;
    font-size: 25px;
    font-weight: 400;
}

.public-back-button:hover {
    color: var(--volos-blue) !important;
}

.public-decisions-list {
    min-height: 0 !important;
    margin-top: 4px;
}

.public-results-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

.public-results-table td {
    width: auto !important;
}

.public-results-table tr.ClickRow,
.public-results-table tr.ClickRowIssues {
    font-size: 15px !important;
}

.public-results-table tr.ClickRow > td,
.public-results-table tr.ClickRowIssues > td {
    position: relative;
    min-height: 56px;
    padding: 16px 48px 16px 18px !important;
    vertical-align: middle !important;
    color: var(--volos-text) !important;
    background: #fff !important;
    border: 1px solid var(--volos-border) !important;
    border-left: 4px solid #d8e9f7 !important;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(32, 73, 112, .045);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.public-results-table tr.ClickRow > td:after,
.public-results-table tr.ClickRowIssues > td:after {
    content: "›";
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--volos-blue);
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.public-results-table tr.ClickRow:hover > td,
.public-results-table tr.ClickRowIssues:hover > td {
    background: #f9fcff !important;
    border-color: #bcd6ed !important;
    border-left-color: var(--volos-blue) !important;
    box-shadow: 0 5px 15px rgba(32, 73, 112, .09);
}

.public-results-table td .text,
.public-results-table td span,
.public-results-table td label {
    font-size: 15px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
}

.public-results-table u {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    color: var(--volos-blue-dark) !important;
    background: #eaf4fd;
    border-radius: 12px;
    text-decoration: none !important;
    white-space: nowrap;
}

.public-results-table u b[style] {
    color: var(--volos-blue-dark) !important;
}

.public-issues-table tr.ClickRowIssues > td {
    border-left-color: var(--volos-orange) !important;
}

.public-issues-table tr.ClickRowIssues:hover > td {
    border-left-color: var(--volos-blue) !important;
}

.public-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px 8px;
    color: var(--volos-muted);
    background: transparent;
    font-size: 13px;
}

.public-copyright {
    display: block;
}

.public-error {
    display: block;
    max-width: 760px;
    color: #c0392b !important;
    text-align: right;
}

/* autocomplete πάνω από το panel */
.ui-autocomplete {
    z-index: 5000 !important;
    max-width: calc(100vw - 40px);
}

/* Loader: παραμένει λειτουργικό, με πιο καθαρό μήνυμα */
.LoaderMessage h1,
.loaderwrapper .LoaderMessage h1 {
    font-size: 18px !important;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    body.public-decisions-body {
        font-size: 15px;
    }

    .municipal-header-inner {
        width: 100%;
        min-height: 70px;
    }

    .municipal-brand {
        width: 122px;
        min-width: 122px;
        min-height: 70px;
        padding: 12px 10px;
    }

    .municipal-brand img {
        width: 104px;
    }

    .municipal-app-title {
        padding: 10px 14px;
    }

    .municipal-app-title-main {
        font-size: 16px;
        line-height: 1.2;
    }

    .municipal-app-title-sub {
        font-size: 11px;
        line-height: 1.25;
    }

    .public-shell {
        padding: 16px 10px 8px;
    }

    .public-decisions-card {
        padding: 22px 15px 18px;
        border-radius: 3px;
        box-shadow: 0 4px 14px rgba(21, 75, 131, .07);
    }

    .public-decisions-heading-row {
        display: block;
        padding-bottom: 18px;
    }

    .public-decisions-heading {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .public-decisions-heading-row .year-filter {
        position: static;
        margin-top: 16px;
    }

    .public-decisions-heading h1 {
        font-size: 21px;
    }

    .heading-kicker {
        font-size: 11px;
    }

    .year-filter {
        width: 100%;
        margin-top: 18px;
    }

    .year-select.form-control {
        height: 46px;
        font-size: 16px;
    }

    .council-switch {
        display: block;
        margin: 18px 0;
    }

    .council-option {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin-bottom: 9px;
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .public-search-box {
        display: block;
        margin-bottom: 18px;
    }

    .public-search-input.form-control {
        height: 50px;
        font-size: 16px;
    }

    .search-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 10px;
    }

    .public-search-action {
        width: 100% !important;
        height: 48px !important;
        object-fit: contain;
        padding: 10px calc(50% - 14px);
    }

    .results-heading {
        margin: 20px 0 10px;
        text-align: left;
    }

    .results-title,
    .results-subtitle {
        font-size: 15px !important;
    }

    .public-results-table {
        border-spacing: 0 9px !important;
    }

    .public-results-table tr.ClickRow,
    .public-results-table tr.ClickRowIssues {
        font-size: 15px !important;
    }

    .public-results-table tr.ClickRow > td,
    .public-results-table tr.ClickRowIssues > td {
        width: auto !important;
        padding: 14px 38px 14px 13px !important;
        line-height: 1.5 !important;
        word-break: break-word;
    }

    .public-results-table tr.ClickRow > td:after,
    .public-results-table tr.ClickRowIssues > td:after {
        right: 12px;
        font-size: 24px;
    }

    .public-results-table td .text,
    .public-results-table td span,
    .public-results-table td label {
        font-size: 15px !important;
    }

    .public-results-table u {
        margin: 6px 0 0;
        white-space: normal;
    }

    .public-footer {
        display: block;
        padding: 15px 3px 5px;
    }

    .public-error {
        margin-top: 8px;
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .municipal-brand {
        width: 104px;
        min-width: 104px;
    }

    .municipal-brand img {
        width: 88px;
    }

    .municipal-app-title-main {
        font-size: 14px;
    }

    .municipal-app-title-sub {
        display: none;
    }

    .public-decisions-card {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ================================================================
   Full postback loading overlay
   ================================================================ */
.public-loader-overlay.loaderwrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1 !important;
    filter: none !important;
    background: rgba(245, 249, 253, .90) !important;
    backdrop-filter: blur(2px);
}

.public-loader-card {
    width: min(92vw, 390px);
    padding: 32px 28px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--volos-border);
    border-top: 4px solid var(--volos-blue);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(21, 75, 131, .18);
}

.public-loader-overlay #loader {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 auto 18px !important;
    border: 4px solid #dceaf6 !important;
    border-top-color: var(--volos-blue) !important;
    border-right-color: var(--volos-orange) !important;
    border-radius: 50% !important;
    animation: spin .85s linear infinite !important;
}

.public-loader-overlay #loader:before,
.public-loader-overlay #loader:after {
    display: none !important;
    content: none !important;
}

.public-loader-overlay .LoaderMessage,
.public-loader-overlay .public-loader-message {
    position: static !important;
    display: block !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    color: var(--volos-text) !important;
}

.public-loader-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--volos-blue-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
}

.public-loader-overlay .LoaderMessage h1,
.public-loader-overlay .public-loader-message h1 {
    height: auto !important;
    margin: 0 !important;
    color: #24384b !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.public-loader-message p {
    margin: 7px 0 0;
    color: var(--volos-muted);
    font-size: 13px;
}

/* ================================================================
   Footer / copyright
   ================================================================ */
.public-footer {
    width: 100%;
    margin-top: 20px;
    padding: 18px 4px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--volos-border);
    color: var(--volos-muted);
    background: transparent;
    font-size: 13px;
}

.public-footer-error {
    flex: 1 1 auto;
    min-width: 0;
}

.public-footer-copyright {
    flex: 0 0 auto;
    max-width: 520px;
    margin-left: auto;
    padding: 8px 12px;
    text-align: right;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #e5ebf1;
    border-radius: 4px;
}

.public-copyright {
    display: block;
    color: #637486 !important;
    font-size: 13px !important;
    line-height: 1.45;
    white-space: normal;
}

.public-error {
    display: block;
    max-width: 760px;
    color: #c0392b !important;
    text-align: left;
}

@media (max-width: 767px) {
    .public-loader-card {
        padding: 28px 20px 24px;
    }

    .public-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 15px;
    }

    .public-footer-copyright {
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: right;
    }

    .public-error {
        max-width: 100%;
        text-align: left;
    }
}


/* 2026-08-30: encoding/readability/click/license refinements */
body.public-decisions-body,
.public-decisions-body input,
.public-decisions-body button,
.public-decisions-body select,
.public-decisions-body textarea {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

.public-results-table tr.ClickRow {
    user-select: none;
    -webkit-tap-highlight-color: rgba(47, 115, 184, .10);
}

.public-results-table tr.ClickRow > td {
    position: relative;
}

.public-results-table tr.ClickRow:focus {
    outline: 3px solid rgba(47, 115, 184, .25);
    outline-offset: 1px;
}

.session-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    color: var(--volos-blue-dark);
    background: #eef6fd;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.public-footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.public-license-expiry {
    display: block;
    color: #667789;
    font-size: 12px;
    font-weight: 600;
}

.public-copyright {
    display: block;
}

@media (max-width: 767px) {
    .public-footer-copyright {
        align-items: center;
        text-align: center;
    }

    .session-count {
        margin-top: 5px;
        margin-left: 0;
    }
}
