:root {
    /* HIIA / IIA Greece brand: #002855 navy, #006299 blue, #99CA3C green */
    --bg-deep: #002855;
    --bg-panel: #c9d8e8;
    --bg-elevated: #d9e5f1;
    --border: rgba(0, 40, 85, 0.2);
    --text: #16202c;
    --text-muted: #4b5e74;
    --accent: #006299;
    --accent-dim: rgba(0, 98, 153, 0.14);
    --accent-strong: #00446b;
    --accent-hover: #1a7fb8;
    --success: #99ca3c;
    --success-dim: rgba(153, 202, 60, 0.18);
    --success-strong: #6e9c1f;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(0, 40, 85, 0.12);
    --sidebar-w: 292px;
    --sidebar-collapsed-w: 76px;
    --font-display: "Manrope", Verdana, sans-serif;
    --font-body: "Manrope", Verdana, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.5;
}

.muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.85rem;
}

code {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.login-body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 50% at 20% 10%, rgba(73, 162, 255, 0.24), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 5%, rgba(255, 255, 255, 0.08), transparent 50%),
        linear-gradient(165deg, #0b1f3f 0%, #12305f 45%, #0f2952 100%);
    z-index: 0;
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr 420px;
        gap: 3rem;
    }
}

.login-hero {
    padding: 0.5rem 0;
}

.login-hero-logo {
    display: block;
    width: 240px;
    max-width: min(240px, 78vw);
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
    margin-bottom: 1.5rem;
}

.login-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: #eaf2ff;
}

.login-hero-text {
    margin: 0 0 1.25rem;
    color: rgba(231, 241, 255, 0.92);
    font-size: 1.05rem;
    max-width: 36ch;
}

.login-perks {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(231, 241, 255, 0.86);
    font-size: 0.95rem;
}

.login-perks li {
    margin-bottom: 0.5rem;
}

.login-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card {
    background: linear-gradient(155deg, #f8f9fc 0%, #eef0f6 100%);
    border: 1px solid rgba(15, 46, 110, 0.2);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    padding: clamp(1.5rem, 4vw, 2rem);
    backdrop-filter: blur(12px);
}

.login-card-head {
    margin-bottom: 1.5rem;
}

.login-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 0.35rem;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.field input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
    color: rgba(90, 93, 107, 0.55);
}

.field input:focus {
    outline: none;
    border-color: rgba(15, 150, 240, 0.65);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -0.25rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent-strong, #0f2e6e);
    cursor: pointer;
}

.form-error {
    min-height: 1.25rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--danger);
}

.login-foot {
    text-align: center;
    margin: 0;
    color: rgba(231, 241, 255, 0.86);
}

.login-foot-link,
.login-foot-link:visited {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.login-foot-link:hover {
    color: #e7f1ff;
}

/* In DOM for crawlers; not shown in the UI */
.powered-by-novelsoft {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 150, 240, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 14px 36px rgba(15, 150, 240, 0.38);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: #fff;
    color: var(--accent-strong);
    border-color: rgba(15, 46, 110, 0.45);
}

.btn-secondary:hover {
    background: rgba(15, 150, 240, 0.08);
}

.btn-block {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.license-panel {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.license-panel.is-valid {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(240, 253, 244, 0.9);
}

.license-panel.is-invalid {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.9);
}

.license-panel-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.license-panel-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.license-panel-text + .license-panel-text {
    margin-top: 0.35rem;
}

.license-panel-text.is-success {
    color: #166534;
    font-weight: 600;
}

.license-panel-text.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.license-panel-form {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dashboard-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-deep);
}

.dashboard-frame {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f2a52 0%, #13345f 100%);
    border-right: 1px solid rgba(148, 172, 210, 0.28);
    transition: width 0.22s ease;
    z-index: 200;
    color: #eaf2ff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar--collapsed {
    width: var(--sidebar-collapsed-w);
}

.sidebar-head {
    padding: 0.85rem 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1;
    overflow: hidden;
}

.sidebar--collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar-brand--logo-only {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    align-items: center;
}

.sidebar--collapsed .sidebar-brand-text {
    display: none;
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(7rem, 26vw);
    object-fit: contain;
    object-position: center center;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.sidebar-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    color: #c5d9f9;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(118, 174, 248, 0.24);
}

.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(73, 162, 255, 0.3), rgba(118, 174, 248, 0.12));
    box-shadow: inset 3px 0 0 var(--accent);
}

.nav-link-exit {
    color: var(--text-muted);
}

.nav-link-exit:hover {
    color: var(--accent-strong);
    background: rgba(15, 150, 240, 0.1);
}

.nav-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.sidebar--collapsed .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sidebar--collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar-nav .nav-link {
    position: relative;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 40, 85, 0.1);
}

.top-bar-lead {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.top-bar-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.top-logout-icon {
    flex-shrink: 0;
    opacity: 0.92;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(15, 46, 110, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    font-variant-numeric: tabular-nums;
}

.user-chip-license.is-valid {
    border-color: rgba(22, 163, 74, 0.38);
    color: #166534;
    background: rgba(240, 253, 244, 0.9);
}

.user-chip-license.is-invalid {
    border-color: rgba(220, 38, 38, 0.45);
    color: #991b1b;
    background: rgba(254, 242, 242, 0.92);
}

a.user-chip-logout {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.user-chip-logout:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 150, 240, 0.45);
    box-shadow: 0 2px 8px rgba(30, 30, 40, 0.06);
}

a.user-chip-logout:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.main-stage {
    flex: 1;
    background: #f0f4f8;
    border: none;
    padding: clamp(1.25rem, 3vw, 1.75rem) 1.1rem;
    box-shadow: 0 1px 3px rgba(0, 40, 85, 0.06);
}

.panel {
    display: none;
}

.panel.is-visible {
    display: block;
    animation: fade-in 0.25s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.panel-header p,
.panel-header-desc {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.stat-card.muted-card {
    opacity: 0.95;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.stat-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.table-shell {
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(30, 30, 40, 0.15);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.seg-btn {
    flex: 1 1 auto;
    min-width: 160px;
    padding: 0.65rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

a.seg-btn {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.finance-context-nav {
    margin-bottom: 1.25rem;
}

.seg-btn:hover {
    color: var(--text);
    border-color: rgba(15, 150, 240, 0.4);
}

.seg-btn.is-active {
    color: var(--accent-strong);
    background: rgba(15, 150, 240, 0.12);
    border-color: rgba(15, 46, 110, 0.35);
}

.seg-btn-primary {
    border-color: rgba(15, 46, 110, 0.35);
}

.seg-btn-primary.is-active {
    background: rgba(15, 150, 240, 0.18);
    color: var(--accent-strong);
}

.order-context {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
    padding: 1.25rem;
    min-height: 160px;
}

.order-pane {
    display: none;
}

.order-pane.is-visible {
    display: block;
}

.order-pane p {
    margin: 0;
}

.new-order-shell {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 0.9rem;
}

.new-order-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.new-order-head p {
    margin: 0 0 0.8rem;
}

.new-order-form {
    display: block;
}

.new-order-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.new-order-grid .field {
    min-width: 0;
}

.new-order-grid .field-span-2 {
    grid-column: span 2;
}

.new-order-grid .field input,
.new-order-grid .field select {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    background: #fff;
    color: var(--text);
}

.new-order-grid .field input:focus,
.new-order-grid .field select:focus {
    outline: none;
    border-color: rgba(15, 150, 240, 0.65);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.new-order-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-btn {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(35, 40, 55, 0.08);
}


.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dashboard-frame--drawer-open .sidebar-backdrop {
    display: block;
}

@media (max-width: 900px) {
    .dashboard-frame {
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(var(--sidebar-w), 88vw);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }

    .sidebar--collapsed:not(.sidebar--open) {
        width: min(var(--sidebar-w), 88vw);
    }

    .sidebar--collapsed.sidebar--open {
        width: min(var(--sidebar-w), 88vw);
    }

    .top-bar-lead {
        flex: 1;
        min-width: 0;
    }

    .top-actions {
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar .nav-label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
    }

    .sidebar .nav-link {
        justify-content: flex-start;
    }
}

.finance-error {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.finance-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.finance-toolbar-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.finance-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.finance-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.finance-field-grow {
    flex: 1 1 200px;
}

.finance-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.finance-field input[type="date"],
.finance-field .fp-date-input,
.finance-field .flatpickr-input,
.finance-customer-select,
.finance-customer-readonly {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
}

.finance-customer-select:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

/* flatpickr wrap helper */
.fp-wrap { position: relative; }

.fp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fp-date-input {
    flex: 1;
    padding-right: 36px !important;
    cursor: pointer;
}

.fp-cal-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.finance-customer-readonly {
    opacity: 0.95;
    cursor: default;
}

.finance-search .btn,
.finance-toolbar .finance-actions .btn,
.finance-toolbar > .btn {
    box-sizing: border-box;
    min-height: 2.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    align-self: flex-end;
}

/* Page header (τίτλος + περιγραφή) κοινό για όλες τις σελίδες */
.tab-page-header {
    margin-bottom: 1.25rem;
}

.tab-page-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.tab-page-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.finance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
    align-self: flex-end;
}

.finance-pdf-icon {
    display: block;
    flex-shrink: 0;
}

/* Οικονομική καρτέλα: εικονίδιο εγγράφου + «Λήψη Καρτέλας» */
.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link,
.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0.55rem 0.85rem 0.55rem 0.65rem;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 2.75rem;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 150, 240, 0.1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:hover {
    background: rgba(15, 150, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.32);
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:active {
    transform: scale(0.98);
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.finance-toolbar-pdf-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.finance-toolbar .finance-actions .documents-pdf-link.finance-toolbar-pdf-link .documents-pdf-link-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.documents-table td.documents-mk {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.documents-table th.documents-col-pdf,
.documents-table td.documents-col-pdf,
.orders-table th.orders-col-pdf,
.orders-table td.orders-col-pdf {
    text-align: left;
}

.finance-table.documents-table td .documents-pdf-link,
.finance-table.documents-table td .documents-pdf-link:visited,
.finance-table.orders-table td .documents-pdf-link,
.finance-table.orders-table td .documents-pdf-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 6px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 150, 240, 0.1);
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.finance-table.documents-table td .documents-pdf-link:hover,
.finance-table.orders-table td .documents-pdf-link:hover {
    background: rgba(15, 150, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 46, 110, 0.32);
}

.finance-table.documents-table td .documents-pdf-link:active,
.finance-table.orders-table td .documents-pdf-link:active {
    transform: scale(0.96);
}

.finance-table.documents-table td .documents-pdf-link:focus-visible,
.finance-table.orders-table td .documents-pdf-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.finance-table.documents-table td .documents-pdf-link-icon,
.finance-table.orders-table td .documents-pdf-link-icon {
    display: block;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 4px;
}

.finance-table.orders-table td .orders-pdf-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.finance-total-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.finance-total-left {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-width: 0;
    justify-content: flex-start;
    justify-self: start;
}

.finance-total-right {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: flex-end;
    text-align: right;
    justify-self: end;
}

.finance-total-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.finance-total-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.finance-rf-inline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.finance-rf-value {
    font-family: var(--font-display);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    color: var(--accent-strong);
    overflow-wrap: anywhere;
}

.finance-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
}

.finance-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.finance-table th,
.finance-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid rgba(30, 30, 40, 0.08);
    vertical-align: top;
}

.finance-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #002855;
    background: #f0f4f9;
    border-bottom: 2px solid #d1dae7;
    white-space: nowrap;
}

.finance-table tbody tr:hover td {
    background: rgba(0, 98, 153, 0.04);
}

.finance-table th.num,
.finance-table td.num {
    text-align: right;
    white-space: nowrap;
}

.finance-table td:first-child {
    white-space: nowrap;
}

.finance-table.documents-table th,
.finance-table.documents-table td,
.finance-table.orders-table th,
.finance-table.orders-table td {
    vertical-align: middle;
    line-height: 1.4;
}

/* Desktop alignment for customer documents table columns */
.finance-table.documents-table th:nth-child(1),
.finance-table.documents-table td:nth-child(1),
.finance-table.documents-table th:nth-child(2),
.finance-table.documents-table td:nth-child(2),
.finance-table.documents-table th:nth-child(4),
.finance-table.documents-table td:nth-child(4),
.finance-table.documents-table th:nth-child(5),
.finance-table.documents-table td:nth-child(5) {
    text-align: center;
    white-space: nowrap;
}

.finance-table.documents-table th:nth-child(3),
.finance-table.documents-table td:nth-child(3),
.finance-table.documents-table th:nth-child(6),
.finance-table.documents-table td:nth-child(6) {
    text-align: left;
}

.finance-table.documents-table th:nth-child(7),
.finance-table.documents-table td:nth-child(7),
.finance-table.documents-table th:nth-child(8),
.finance-table.documents-table td:nth-child(8),
.finance-table.documents-table th:nth-child(9),
.finance-table.documents-table td:nth-child(9) {
    text-align: center;
    white-space: nowrap;
}

.finance-table.documents-table th.documents-col-pdf,
.finance-table.documents-table td.documents-col-pdf {
    text-align: center;
}

/* Stronger row separators for easier record scanning */
.finance-table.documents-table tbody tr td {
    border-bottom: 1px solid rgba(30, 30, 40, 0.2);
}

.finance-table.documents-table tbody tr + tr td {
    border-top: 2px solid rgba(30, 30, 40, 0.28) !important;
}

.finance-row-muted td {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

.finance-row-strong td {
    font-weight: 700;
}

.finance-toolbar .finance-actions {
    flex-wrap: wrap;
}

.support-contract-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.56);
}

.support-contract-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.serial-numbers-table {
    min-width: 720px;
}

.support-contract-table th,
.support-contract-table td {
    padding: 0.62rem 0.68rem;
    border-bottom: 1px solid rgba(30, 30, 40, 0.08);
    text-align: left;
    vertical-align: middle;
}

.support-contract-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
}

.support-contract-table tbody tr:hover td {
    background: rgba(43, 127, 224, 0.07);
}

.support-status {
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.support-status.is-active {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.support-status.is-inactive {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}

.support-metrics {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.8rem;
}

.support-metrics dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.support-metrics dd {
    margin: 0.15rem 0 0;
    font-weight: 700;
}

.support-requests-toolbar {
    margin-bottom: 0.75rem;
}

.support-contract-filter {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.support-contract-filter select {
    width: 100%;
    padding: 0.78rem 0.9rem;
    font-family: inherit;
    font-size: 0.92rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
}

.support-contract-filter .finance-field {
    margin: 0;
}

.support-contract-filter .btn {
    height: 46px;
    min-height: 46px;
    padding: 0 1rem;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-total-hours {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.24);
}

.support-total-hours strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.support-requests-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.56);
}

.support-requests-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.support-requests-table th,
.support-requests-table td {
    padding: 0.62rem 0.68rem;
    border-bottom: 1px solid rgba(30, 30, 40, 0.08);
    text-align: left;
    vertical-align: top;
}

.support-requests-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
}

.support-requests-table tbody tr:hover td {
    background: rgba(43, 127, 224, 0.07);
}

.support-request-notes {
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

.support-request-notes a {
    color: var(--accent-strong);
    text-decoration: underline;
    font-weight: 600;
}

.support-request-notes .freshdesk-ticket-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(43, 127, 224, 0.36);
    background: rgba(43, 127, 224, 0.12);
    text-decoration: none;
}

.support-request-notes .freshdesk-ticket-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
}

.support-request-notes .freshdesk-ticket-id {
    color: var(--accent-strong);
    font-size: 0.9rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .finance-total-bar {
        grid-template-columns: 1fr;
        row-gap: 0.4rem;
    }

    .finance-total-right {
        justify-self: start;
        text-align: left;
    }

    .support-contract-table {
        min-width: 700px;
    }

    .support-requests-table {
        min-width: 640px;
    }
}

@media (max-width: 900px) {
    .dashboard-content {
        padding: 0.75rem;
        gap: 0.75rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
    }

    .top-bar {
        padding: 0.75rem 0.8rem;
        gap: 0.65rem;
    }

    .main-stage {
        padding: 1rem;
    }

    .order-context {
        padding: 0.85rem;
    }

    .new-order-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .new-order-grid .field-span-2 {
        grid-column: 1 / -1;
    }

    .segmented {
        gap: 0.4rem;
    }

    .seg-btn {
        min-width: 0;
        flex: 1 1 calc(50% - 0.2rem);
    }

    .finance-search {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 0.6rem;
    }

    .finance-field-grow {
        grid-column: 1 / -1;
    }

    .finance-search .btn {
        width: 100%;
        grid-column: 1 / -1;
    }

    .finance-table {
        font-size: 0.82rem;
    }

    .finance-table th,
    .finance-table td {
        padding: 0.5rem 0.55rem;
    }
}

@media (max-width: 640px) {
    .top-bar-title {
        font-size: 1rem;
    }

    .user-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .seg-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .finance-search {
        grid-template-columns: 1fr;
    }

    .finance-field-grow,
    .finance-search .btn {
        grid-column: auto;
    }

    .finance-field input[type="date"],
    .finance-customer-readonly {
        font-size: 0.82rem;
        padding: 7px 12px;
    }

    .main-stage {
        padding: 0.85rem;
    }

    .order-context {
        padding: 0.7rem;
    }

    .new-order-shell {
        padding: 0.8rem;
    }

    .new-order-grid {
        grid-template-columns: 1fr;
    }

    .new-order-grid .field-span-2 {
        grid-column: auto;
    }

    .new-order-actions {
        justify-content: stretch;
    }

    .new-order-actions .btn {
        width: 100%;
    }

    .finance-toolbar-title {
        font-size: 0.95rem;
    }

    .finance-table.documents-table td .documents-pdf-link,
    .finance-table.orders-table td .documents-pdf-link {
        width: 48px;
        height: 48px;
        padding: 5px;
    }

    .finance-table.documents-table td .documents-pdf-link-icon,
    .finance-table.orders-table td .documents-pdf-link-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
    }
}

.is-mobile-view .finance-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
}

.is-mobile-view .finance-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.is-mobile-view .finance-table thead {
    display: none;
}

.is-mobile-view .finance-table tbody,
.is-mobile-view .finance-table tr,
.is-mobile-view .finance-table td {
    display: block;
    width: 100%;
}

.is-mobile-view .finance-table tr {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.7rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.is-mobile-view .finance-table td {
    border: 0;
    border-bottom: 1px dashed rgba(30, 30, 40, 0.12);
    padding: 0.45rem 0;
    margin: 0;
    min-height: 34px;
}

.is-mobile-view .finance-table td:last-child {
    border-bottom: 0;
}

.is-mobile-view .finance-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.18rem;
}

.is-mobile-view .finance-table td.documents-col-pdf::before,
.is-mobile-view .finance-table td.orders-col-pdf::before {
    margin-bottom: 0.35rem;
}

.is-mobile-view .finance-table .finance-row-muted td[colspan],
.is-mobile-view .finance-table .finance-row-strong td[colspan] {
    text-align: left;
    font-weight: 600;
}

.is-mobile-view .finance-table .finance-row-muted td[colspan]::before,
.is-mobile-view .finance-table .finance-row-strong td[colspan]::before {
    content: none;
}

/* Support hub (Υποστήριξη) */
.support-hub {
    max-width: 960px;
}

.support-flash {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.support-flash strong {
    font-weight: 700;
}

.support-flash--ok {
    background: rgba(34, 160, 80, 0.12);
    border: 1px solid rgba(34, 160, 80, 0.35);
    color: var(--text);
}

.support-flash--err {
    background: rgba(200, 60, 60, 0.1);
    border: 1px solid rgba(200, 60, 60, 0.35);
    color: var(--text);
}

.support-code {
    font-size: 0.88em;
    font-weight: 600;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.support-blocked--hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(226, 232, 242, 0.9));
    box-shadow: var(--shadow);
}

.support-blocked-icon {
    color: var(--warning);
    opacity: 0.95;
}

.support-blocked-title {
    font-weight: 700;
    margin: 0;
    font-size: 1.12rem;
    font-family: var(--font-display);
}

.support-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.1rem;
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.65) 0%, rgba(226, 232, 242, 0.95) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.support-hero-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.support-hero-title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.support-hero-desc {
    margin: 0;
    font-size: 0.92rem;
    max-width: 36rem;
}

.support-hero-desc a {
    color: var(--accent);
    font-weight: 600;
}

.support-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 150, 240, 0.12);
    border: 1px solid rgba(15, 150, 240, 0.28);
}

.support-hero-stat__val {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-strong);
}

.support-hero-stat__lbl {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.support-hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.support-hub-nav__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.support-hub-nav__btn:hover {
    color: var(--text);
    border-color: rgba(15, 150, 240, 0.35);
    background: rgba(255, 255, 255, 0.85);
}

.support-hub-nav__btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15, 46, 110, 0.22);
}

.support-hub-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.support-hub-grid--empty-pair {
    align-items: stretch;
}

@media (max-width: 820px) {
    .support-hub-grid {
        grid-template-columns: 1fr;
    }
}

.support-hub-aside {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    min-height: 200px;
    max-height: min(60vh, 520px);
    overflow: auto;
}

.support-hub-grid--empty-pair .support-hub-aside {
    max-height: none;
    overflow: visible;
}

.support-empty-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 238, 248, 0.88) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(35, 40, 55, 0.08);
}

.support-hub-grid--empty-pair .support-empty-panel {
    min-height: clamp(280px, 42vh, 400px);
}

.support-empty-panel--aside {
    margin: 0.45rem;
}

.support-empty-panel--main {
    width: 100%;
    box-sizing: border-box;
}

.support-empty-panel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    color: var(--accent-strong);
    background: rgba(15, 150, 240, 0.12);
    border: 1px solid rgba(15, 150, 240, 0.2);
}

.support-empty-panel__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.support-empty-panel__text {
    margin: 0 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 22rem;
}

.support-empty-panel__btn {
    min-width: 10rem;
}

.support-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
}

.support-ticket-list li {
    margin: 0 0 0.4rem;
}

.support-ticket-list li:last-child {
    margin-bottom: 0;
}

.support-ticket-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.55);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.support-ticket-card:hover {
    border-color: rgba(15, 150, 240, 0.25);
    background: #fff;
}

.support-ticket-card.is-active {
    border-color: rgba(15, 150, 240, 0.45);
    background: rgba(15, 150, 240, 0.1);
    box-shadow: 0 4px 16px rgba(35, 40, 55, 0.08);
}

.support-ticket-card.is-new {
    animation: support-ticket-pulse 1.2s ease-out 2;
}

@keyframes support-ticket-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(15, 150, 240, 0.35);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(15, 150, 240, 0.12);
    }
}

.support-ticket-card__id {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-strong);
    font-family: ui-monospace, monospace;
}

.support-ticket-card__subj {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.support-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(34, 160, 80, 0.15);
    color: #166534;
}

.support-badge--lg {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
}

.support-hub-main {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.support-hub-grid--empty-pair .support-hub-main {
    min-height: 0;
}

.support-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.4rem;
}

.support-card-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.support-card-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.support-form {
    position: relative;
}

.support-form .support-field {
    display: block;
    margin-bottom: 1rem;
}

.support-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.support-input,
.support-textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.support-textarea {
    resize: vertical;
    min-height: 10rem;
}

.support-dropzone {
    display: block;
    padding: 1rem 1rem;
    border: 1px dashed rgba(30, 30, 40, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.support-dropzone:hover {
    border-color: rgba(15, 150, 240, 0.45);
    background: rgba(15, 150, 240, 0.04);
}

.support-dropzone .support-file {
    width: 100%;
    font-size: 0.82rem;
}

.support-dropzone__hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.support-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.support-card--detail .support-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.support-detail-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.support-detail-title {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.support-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.86rem;
}

.support-detail-meta dt {
    margin: 0;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.support-detail-meta dd {
    margin: 0.15rem 0 0;
}

.support-detail-body {
    margin-bottom: 1rem;
}

.support-detail-msg {
    margin-top: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-sm);
    background: rgba(30, 30, 40, 0.04);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.support-detail-files ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
}

.support-detail-foot {
    margin: 1rem 0 0;
    font-size: 0.82rem;
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 0;
}

.support-thread-msg {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--surface-2, #f8fafc);
}

.support-thread-msg--agent {
    border-color: rgba(15, 150, 240, 0.35);
    background: linear-gradient(135deg, rgba(15, 150, 240, 0.06), rgba(15, 46, 110, 0.04));
}

.support-thread-msg__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
}

.support-form--reply {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #e2e8f0);
}

.support-form--agent {
    margin-top: 1.25rem;
}

.support-form--close {
    margin-top: 0.75rem;
}

.support-hub-nav__btn--agent {
    margin-left: auto;
}

.support-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.is-mobile-view .support-hub-grid {
    grid-template-columns: 1fr;
}

.is-mobile-view .support-hub-aside {
    max-height: none;
}

.home-welcome {
    margin-bottom: 1.5rem;
}

.home-welcome-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.home-welcome-sub {
    margin: 0;
    font-size: 1rem;
}

.home-remote-banner {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    overflow: hidden;
    contain: content;
}

.home-remote-iframe {
    display: block;
    width: 100%;
    min-height: 80px;
    height: 320px;
    max-height: none;
    border: 0;
    background: #fff;
    overflow: hidden;
    vertical-align: top;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.home-news-card {
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-news-card:hover {
    border-color: rgba(43, 127, 224, 0.35);
    box-shadow: var(--shadow);
}

.home-news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.04);
}

.home-news-card-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
}

.home-news-card-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--accent-strong);
}

.home-news-card-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.is-mobile-view .home-news-grid {
    grid-template-columns: 1fr;
}

.deposit-context-nav {
    margin-bottom: 1.25rem;
}

.deposit-lead {
    margin: 0 0 1rem;
}

.deposit-rf-code-block {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.deposit-rf-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.deposit-rf-code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.deposit-rf-code {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-break: break-all;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.deposit-rf-hint,
.deposit-viva-hint {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
}

.deposit-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
}

.deposit-qr-img {
    display: block;
    width: 240px;
    height: 240px;
    max-width: min(100%, 240px);
    object-fit: contain;
}

.deposit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.deposit-viva-frame-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    min-height: 520px;
}

.deposit-viva-iframe {
    display: block;
    width: 100%;
    min-height: 520px;
    height: 72vh;
    max-height: 720px;
    border: 0;
}

.deposit-notice {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.deposit-notice-warn {
    border-color: rgba(217, 119, 6, 0.35);
    background: rgba(255, 251, 235, 0.9);
}

.deposit-notice-success {
    border-color: rgba(34, 139, 87, 0.35);
    background: rgba(236, 253, 245, 0.95);
}

.deposit-notice p {
    margin: 0 0 0.35rem;
}

.deposit-notice p:last-child {
    margin-bottom: 0;
}

.deposit-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.deposit-modal[hidden] {
    display: none;
}

.deposit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 82, 0.45);
}

.deposit-modal-card {
    position: relative;
    width: min(100%, 400px);
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.deposit-modal-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.deposit-modal-text {
    margin: 0 0 1.1rem;
}

.deposit-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
}

.is-mobile-view .deposit-viva-iframe {
    min-height: 420px;
    height: 65vh;
}

.is-mobile-view .deposit-rf-code-row {
    flex-direction: column;
    align-items: stretch;
}

/* ── Projects ───────────────────────────────────────────────── */

.projects-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.projects-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.projects-filter-select {
    padding: 0.4rem 0.7rem;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s;
}

.projects-filter-select:focus {
    outline: none;
    border-color: rgba(15, 150, 240, 0.55);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.projects-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.56);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.projects-table th,
.projects-table td {
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid rgba(30, 30, 40, 0.08);
    text-align: left;
    vertical-align: middle;
}

.projects-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
}

.projects-toggle-cell {
    width: 32px;
    text-align: center;
}

.projects-row.is-expandable {
    cursor: pointer;
    user-select: none;
}

.projects-row.is-expandable:hover td {
    background: rgba(43, 127, 224, 0.07);
}

.projects-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.projects-chevron.is-open {
    transform: rotate(90deg);
}

.projects-tasks-row td {
    padding: 0;
    background: rgba(239, 244, 250, 0.7);
}

.projects-tasks-cell {
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
}

.projects-tasks-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-tasks-table th,
.projects-tasks-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(30, 30, 40, 0.06);
    text-align: left;
    font-size: 0.87rem;
    vertical-align: middle;
}

.projects-tasks-table thead th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.projects-tasks-table tbody tr:last-child td {
    border-bottom: none;
}

.proj-task-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.projects-section-row td {
    padding: 0.9rem 0.75rem 0.35rem;
    background: transparent;
    border-bottom: none;
}

.projects-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.projects-section-label.is-active {
    color: #166534;
    background: rgba(22, 163, 74, 0.13);
}

.projects-section-label.is-completed {
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
}

.projects-row.is-done td {
    color: var(--text-muted);
}

.projects-row.is-done strong {
    font-weight: 500;
}

.support-status.is-pending {
    background: rgba(217, 119, 6, 0.14);
    color: #92400e;
}

.support-status.is-waiting {
    background: rgba(99, 102, 241, 0.13);
    color: #3730a3;
}

/* ── Custom Modules ─────────────────────────────────────────── */

.cm-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cm-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.cm-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.cm-search-input {
    width: 100%;
    padding: 0.6rem 0.9rem 0.6rem 2.2rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cm-search-input::placeholder {
    color: rgba(90, 93, 107, 0.5);
}

.cm-search-input:focus {
    outline: none;
    border-color: rgba(15, 150, 240, 0.55);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: #fff;
}

.cm-count {
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.cm-card {
    border-radius: var(--radius-sm);
    background: #eff4fa;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-card:hover {
    border-color: rgba(43, 127, 224, 0.38);
    box-shadow: var(--shadow);
}

.cm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0;
}

.cm-code {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-strong);
    background: var(--accent-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}


.cm-card-body {
    flex: 1;
    padding: 0.65rem 1rem 0.75rem;
}

.cm-card-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.cm-card-descr {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cm-card-foot {
    padding: 0.6rem 1rem 0.85rem;
    border-top: 1px solid rgba(30, 30, 40, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cm-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.cm-price-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cm-price-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-strong);
    font-variant-numeric: tabular-nums;
}

.cm-price-maint {
    color: #166534;
    font-size: 0.88rem;
}

.cm-empty-msg {
    margin-top: 1rem;
}

.cm-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cm-cart-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cm-modal[hidden] {
    display: none;
}

.cm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 82, 0.45);
}

.cm-modal-card {
    position: relative;
    width: min(100%, 400px);
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.cm-modal-title {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.cm-modal-text {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cm-modal-text strong {
    color: var(--accent-strong);
}

.cm-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cm-modal-feedback {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.is-mobile-view .cm-grid {
    grid-template-columns: 1fr;
}


/* ==========================================================================
   HIIA — Dashboard cards, badges, progress, detail rows
   ========================================================================== */

.hiia-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.hiia-cards--wide {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hiia-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 40, 85, 0.06);
}

.hiia-card-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hiia-card-value {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.hiia-card-value--ok {
    color: var(--success-strong);
}
.hiia-card-value--muted {
    color: var(--text-muted, #6b7280);
    font-size: 1rem;
    font-weight: 500;
}

.hiia-card-value--warn {
    color: var(--warning);
}

.hiia-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 40, 85, 0.12);
    overflow: hidden;
    margin: 10px 0 6px;
}

.hiia-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--success) 0%, var(--success-strong) 100%);
    transition: width 0.4s ease;
}

.hiia-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(0, 40, 85, 0.1);
    color: var(--text-muted);
    vertical-align: middle;
}

.hiia-badge--ok {
    background: var(--success-dim);
    color: var(--success-strong);
}

.hiia-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.hiia-detail-row:last-child {
    border-bottom: none;
}

.hiia-detail-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.hiia-detail-value {
    text-align: right;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   HIIA — Login page (κεντραρισμένη στήλη, σταθερό gradient background)
   ========================================================================== */

.hiia-login {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(165deg, #001b33 0%, #002855 48%, #00446b 100%) fixed;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.hiia-login::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(600px 320px at 78% 8%, rgba(153, 202, 60, 0.10), transparent 70%),
        radial-gradient(700px 420px at 15% 92%, rgba(0, 98, 153, 0.28), transparent 70%);
}

.hiia-login-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 420px;
}

.hiia-login-brand {
    text-align: center;
}

.hiia-login-logo {
    max-width: min(300px, 78vw);
    height: auto;
    display: block;
    margin: 0 auto 14px;
}

.hiia-login-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.hiia-login-sub {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hiia-login-card-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hiia-login-card {
    width: 100%;
    background: #f4f8fc;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 10, 25, 0.45);
    padding: 26px 28px;
}

.hiia-login-foot {
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.hiia-login-foot .login-foot-link {
    color: #99ca3c;
}

.hiia-powered {
    margin: 6px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.hiia-powered a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.hiia-powered a:hover {
    color: #99ca3c;
    border-bottom-color: #99ca3c;
}

/* Split-panel login layout */
.hiia-login-inner {
    display: flex;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.hiia-login-panel {
    flex: 0 0 400px;
    background: linear-gradient(180deg, #0d1f38 0%, #002855 60%, #00446b 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hiia-login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(280px 280px at 50% 20%, rgba(153, 202, 60, 0.12), transparent 70%),
        radial-gradient(200px 300px at 80% 90%, rgba(0, 98, 153, 0.3), transparent 70%);
    pointer-events: none;
}

.hiia-login-panel .hiia-login-brand {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hiia-login-panel-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.hiia-login-panel-footer .hiia-powered {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
    margin: 0;
    letter-spacing: 0.05em;
}

.hiia-login-panel-footer .hiia-powered a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.2);
}

.hiia-login-panel-footer .hiia-powered a:hover {
    color: #99ca3c;
    border-bottom-color: #99ca3c;
}

.hiia-login-panel-version {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
    margin: 0;
}

.hiia-login-panel .hiia-login-logo {
    max-width: min(220px, 60vw);
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.hiia-login-panel .hiia-login-title {
    font-size: 1.2rem;
}

.hiia-login-panel .hiia-login-sub {
    font-size: 0.82rem;
    opacity: 0.75;
}

.hiia-login-accent-bar {
    display: block;
    width: 36px;
    height: 3px;
    background: #99ca3c;
    border-radius: 2px;
    margin: 18px auto 0;
}

.hiia-login-back-link {
    display: block;
    margin-top: 20px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color .15s;
}

.hiia-login-back-link:hover {
    color: #99ca3c;
}

.hiia-login-form-side {
    flex: 1;
    background: #e8ecf3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
    max-height: 100vh;
    overflow-y: auto;
}

.hiia-login-form-side .hiia-login-card-wrap {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.hiia-login-form-side .hiia-login-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 24px rgba(0, 20, 60, 0.10);
    padding: 28px 28px 24px;
    width: 100%;
}

/* Compact inputs inside login/register card */
.hiia-login-form-side .field input,
.hiia-login-form-side .field select,
.hiia-login-form-side .field textarea {
    padding: 8px 11px;
    font-size: 0.88rem;
}

.hiia-login-form-side .field-label {
    font-size: 0.76rem;
}

.hiia-login-form-side .field {
    gap: 0.3rem;
    margin-bottom: 12px;
}

.hiia-login-form-side .login-card-head {
    margin-bottom: 16px;
}

.hiia-login-form-side .login-card-head .muted {
    font-size: 0.82rem;
    margin-top: 4px;
    line-height: 1.4;
}

.hiia-login-form-side .login-title {
    font-size: 1.2rem;
    margin: 2px 0 0;
}

.hiia-login-form-side .login-kicker {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.hiia-login-form-side .login-form {
    gap: 0.3rem;
}

/* Kill the min-height reservation so empty form-error takes no space */
.hiia-login-form-side .form-error {
    min-height: 0;
}

.hiia-login-form-side .login-form .form-error:not(:empty),
.hiia-login-form-side .login-form .form-success:not(:empty) {
    margin-bottom: 4px;
}

.hiia-login-form-side .btn-block {
    padding: 9px 16px;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* Remove extra spacing in login remember row */
.hiia-login-form-side .login-remember {
    margin: 2px 0 4px;
    font-size: 0.82rem;
}

/* Tighten card padding */
.hiia-login-form-side .hiia-login-card {
    padding: 22px 24px 20px;
    box-shadow: 0 4px 28px rgba(0, 20, 60, 0.10), 0 1px 4px rgba(0, 20, 60, 0.06);
}

/* Subtle separator before submit button */
.hiia-login-form-side .login-form .btn-block {
    border-top: 1px solid #eef0f4;
    padding-top: 14px;
    margin-top: 8px;
}

/* Better input focus inside login card */
.hiia-login-form-side .field input:focus,
.hiia-login-form-side .field select:focus {
    border-color: var(--primary, #006299);
    box-shadow: 0 0 0 3px rgba(0, 98, 153, 0.10);
    outline: none;
}

/* login-kicker accent color */
.hiia-login-form-side .login-kicker {
    color: var(--primary, #006299);
}

/* Powered-by moved to panel — hide from form side */
.hiia-login-form-side .hiia-powered {
    display: none;
}

/* Register: remove section dividers */
.hiia-login-form-side .apply-section {
    display: none;
}

.hiia-login-form-side .apply-grid,
.hiia-login-form-side .apply-grid-2 {
    gap: 0 12px;
}

/* For register (wider card) */
.hiia-login-form-side .hiia-login-card.apply-card {
    max-width: none;
}

.hiia-login-form-side .hiia-login-card-wrap:has(.apply-card) {
    max-width: 700px;
}

.hiia-login-form-side .hiia-login-foot {
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    font-size: 0.76rem;
    margin-top: 14px;
}

.hiia-login-form-side .hiia-login-foot .login-foot-link {
    color: var(--primary);
}

.hiia-login-form-side .hiia-powered {
    position: absolute;
    bottom: 14px;
    right: 20px;
    color: var(--text-muted);
    margin: 0;
}

.hiia-login-form-side .hiia-powered a {
    color: var(--text-muted);
    border-bottom-color: var(--border);
}

/* Stage adjustments for split layout */
.hiia-login-stage--split {
    max-width: 100%;
    gap: 0;
    padding: 0;
    min-height: 100vh;
    flex: 1;
}

.hiia-login-stage--split > .hiia-powered {
    display: none;
}

@media (max-width: 860px) {
    .hiia-login-panel { flex: 0 0 300px; padding: 36px 28px; }
}

@media (max-width: 680px) {
    .hiia-login-inner { flex-direction: column; }
    .hiia-login-panel { flex: none; padding: 20px 24px 18px; justify-content: center; }
    .hiia-login-panel .hiia-login-brand { flex: none; }
    /* Κρύψε το powered-by/version στο mobile — δεν χωράει στο compact panel */
    .hiia-login-panel-footer { display: none; }
    .hiia-login-panel::before { display: none; }
    .hiia-login-form-side { padding: 24px 16px 28px; justify-content: flex-start; max-height: none; overflow-y: visible; }
    .hiia-login-form-side .hiia-login-card-wrap { max-width: 100%; }
    /* Στο mobile το powered-by εμφανίζεται στο κάτω μέρος της φόρμας */
    .hiia-login-form-side::after {
        content: 'powered by Dual Logicom';
        display: block;
        text-align: center;
        font-size: 0.68rem;
        color: #94a3b8;
        margin-top: 20px;
        letter-spacing: 0.04em;
    }
    .hiia-login-foot { white-space: nowrap; font-size: 0.72rem; }
}

/* ==========================================================================
 * E-Shop — Κατάλογος, Καλάθι, Checkout, Confirmation
 * ========================================================================== */

.shop-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #002855;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-section-title:first-child {
    margin-top: 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.shop-card:hover {
    border-color: #006299;
    box-shadow: 0 4px 12px rgba(0, 98, 153, 0.1);
}

.shop-card-body {
    padding: 1rem 1.25rem 0.75rem;
    flex: 1;
}

.shop-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #002855;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.shop-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.shop-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.shop-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #64748b;
}

.shop-meta-item svg {
    flex-shrink: 0;
    color: #006299;
}

.shop-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #006299;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #94a3b8;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-icon-danger:hover {
    color: #ef4444;
}

.shop-cart-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #006299;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.checkout-options {
    margin: 1rem 0;
}

.checkout-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.checkout-radio-group {
    display: flex;
    gap: 1.25rem;
}

.checkout-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
}

.checkout-radio input[type="radio"] {
    accent-color: #006299;
}

.checkout-notes {
    margin: 0.75rem 0 1rem;
}

.checkout-notes .form-input {
    width: 100%;
    max-width: 480px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.checkout-notes .form-input:focus {
    outline: none;
    border-color: #006299;
    box-shadow: 0 0 0 3px rgba(0, 98, 153, 0.1);
}

.btn-checkout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.92rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-default {
    background: #f1f5f9;
    color: #475569;
}

/* RF code display */
.rf-code {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    user-select: all;
}

.rf-code:hover {
    background: #e2e8f0;
}

/* Confirmation page */
.confirmation-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 3rem 1rem;
    background: #f8fafc;
}

.confirmation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 40, 85, 0.08);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.confirmation-icon {
    margin-bottom: 1rem;
}

.confirmation-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #002855;
    margin: 0 0 0.5rem;
}

.confirmation-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1.5rem;
}

.rf-payment-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #bae6fd;
}

.rf-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #002855;
    margin: 0 0 0.4rem;
}

.rf-instructions {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.rf-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rf-code-lg {
    font-size: 1.15rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.04em;
}

.rf-qr {
    margin-top: 1rem;
}

.rf-qr img {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid #006299;
    border-radius: 8px;
    color: #006299;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: #006299;
    color: #fff;
}

.confirmation-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    .confirmation-card {
        padding: 1.5rem;
    }
    .rf-display {
        flex-direction: column;
    }
}

/* ==========================================================================
   Top bar — Cart button, Profile dropdown
   ========================================================================== */

.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.top-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.top-cart-btn:hover {
    background: #f1f5f9;
    color: #006299;
}

.top-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #99CA3C;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.top-profile-wrap {
    position: relative;
}

.top-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: #334155;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
}

.top-profile-btn:hover {
    background: #f1f5f9;
}

.top-profile-icon {
    flex-shrink: 0;
    color: #006299;
}

.top-profile-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-profile-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.top-profile-wrap.open .top-profile-chevron {
    transform: rotate(180deg);
}

.top-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 40, 85, 0.12);
    padding: 6px;
    z-index: 1000;
}

.top-profile-wrap.open .top-profile-dropdown {
    display: block;
}

.top-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 0.84rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.top-dd-item:hover {
    background: #f1f5f9;
}

.top-dd-info {
    color: #64748b;
    font-size: 0.78rem;
    cursor: default;
}

.top-dd-info:hover {
    background: transparent;
}

.top-dd-danger {
    color: #dc2626;
}

.top-dd-danger:hover {
    background: #fef2f2;
}

.top-dd-sep {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 12px;
}

/* ==========================================================================
   Shop — Filter tabs, Action buttons, Section labels, Badges
   ========================================================================== */

.shop-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
    padding: 2px;
    background: #e8edf4;
    border-radius: 10px;
    width: fit-content;
}

.shop-filter-tab {
    padding: 7px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.shop-filter-tab:hover {
    color: #334155;
    background: rgba(255,255,255,0.6);
}

.shop-filter-tab.active {
    background: #fff;
    color: #006299;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 40, 85, 0.12);
}

.shop-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: #002855;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.shop-section-label svg {
    color: #006299;
    flex-shrink: 0;
}

.shop-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.shop-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-badge-seminar {
    background: #e0eff7;
    color: #005280;
    border: 1px solid #b3d4e8;
}

.shop-badge-sub {
    background: #eaf6d4;
    color: #4a7a0e;
    border: 1px solid #c6e49a;
}

.shop-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-btn-view:hover {
    border-color: #006299;
    color: #006299;
    background: #f0f9ff;
}

.shop-btn-cart:hover {
    border-color: #99CA3C;
    color: #fff;
    background: #99CA3C;
}

.shop-btn-cart.added {
    border-color: #99CA3C;
    color: #fff;
    background: #99CA3C;
    animation: cartPulse 0.35s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Alerts */
.shop-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    margin-bottom: 1rem;
}

.shop-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.shop-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Shop — Product detail modal
   ========================================================================== */

.shop-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 40, 85, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s;
}

.shop-modal-backdrop[hidden] {
    display: none;
}

.shop-modal-backdrop.visible {
    opacity: 1;
}

.shop-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 40, 85, 0.18);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform 0.25s;
}

.shop-modal-backdrop.visible .shop-modal {
    transform: translateY(0);
}

.shop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0;
}

.shop-modal-header-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-modal-close {
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.shop-modal-close:hover {
    background: #e2e8f0;
}

.shop-modal-body {
    padding: 5px 20px 20px;
}

.shop-modal-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #002855;
    margin: 0 0 6px;
    line-height: 1.3;
}

.shop-modal-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.shop-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.shop-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.shop-modal-meta-item svg {
    flex-shrink: 0;
    color: #006299;
}

.shop-modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.shop-modal-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #006299;
}

.shop-modal-price-label {
    font-size: 0.72rem;
    color: #94a3b8;
}

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

/* ==========================================================================
   Cart drawer sidebar
   ========================================================================== */

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 40, 85, 0.3);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.25s;
}

.cart-drawer-backdrop[hidden] {
    display: none;
}

.cart-drawer-backdrop.visible {
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 40, 85, 0.12);
    z-index: 1501;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #002855;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.cart-drawer-close {
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.cart-drawer-close:hover {
    background: #e2e8f0;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-drawer-empty {
    text-align: center;
    padding: 2rem 0;
    color: #94a3b8;
    font-size: 0.88rem;
}

.cart-drawer-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-drawer-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #002855;
    margin: 0 0 3px;
    line-height: 1.3;
}

.cart-item-type {
    font-size: 0.72rem;
    color: #94a3b8;
}

.cart-item-price {
    font-family: var(--font-display);
    font-weight: 700;
    color: #006299;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cart-item-remove {
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.cart-item-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

.cart-drawer-foot {
    border-top: 2px solid #e2e8f0;
    padding: 16px 20px;
}

.cart-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #002855;
}

.cart-drawer-total-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #006299;
}

/* ==========================================================================
   Profile form
   ========================================================================== */

.profile-form {
    width: 100%;
}

.profile-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-field {
    margin-bottom: 12px;
}

.profile-field--wide {
    grid-column: 1 / -1;
}

.profile-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-input {
    width: 100%;
    padding: 7px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-input[readonly] {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: default;
}

.profile-input--editable {
    background: #fff;
    border-color: #cbd5e1;
}

.profile-input--editable:focus {
    outline: none;
    border-color: #006299;
    box-shadow: 0 0 0 3px rgba(0, 98, 153, 0.1);
}

select.profile-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

input[type="date"].profile-input {
    box-sizing: border-box;
    height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 34px;
}
input[type="date"].profile-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.profile-editable-hint,
.profile-editable-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: #99CA3C;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.profile-section {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

/* Member application */
.profile-label-hint {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.req {
    color: var(--danger);
}

.member-app-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Required docs notice */
.app-required-docs {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff8f8;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 1.25rem;
    color: #991b1b;
    font-size: 0.85rem;
}
.app-required-docs svg { flex-shrink: 0; margin-top: 2px; }
.app-required-docs ol { margin: 4px 0 0 16px; padding: 0; }
.app-required-docs li { margin-bottom: 2px; }

/* Upload drop-zone grid */
.app-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.app-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    position: relative;
    min-height: 140px;
}
.app-upload-zone:hover,
.app-upload-zone:focus-within {
    border-color: #006299;
    background: #f0f7fb;
}
.app-upload-zone.has-file {
    border-color: #3a7d1e;
    background: #f0faf0;
}

.app-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.app-upload-icon { color: #94a3b8; transition: color 0.2s; }
.app-upload-zone:hover .app-upload-icon,
.app-upload-zone:focus-within .app-upload-icon { color: #006299; }
.app-upload-zone.has-file .app-upload-icon { color: #3a7d1e; }

.app-upload-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.app-upload-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: color 0.2s;
}
.app-upload-zone.has-file .app-upload-hint {
    color: #3a7d1e;
    font-weight: 600;
}

@media (max-width: 640px) {
    .app-upload-grid { grid-template-columns: 1fr; }
}

/* Legacy — διατηρείται σε περίπτωση χρήσης αλλαχού */
.member-app-files { display: flex; flex-direction: column; gap: 1rem; }
.member-app-file-row { display: flex; align-items: center; gap: 1rem; }
.member-app-file-input { flex: 1; }

.member-app-codex {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-main);
}

.member-app-codex p {
    margin: 0 0 0.75rem;
}

.member-app-codex p:last-child {
    margin-bottom: 0;
}

.member-app-terms-label {
    justify-content: center;
    font-size: 0.9rem;
}

.member-app-submit-section {
    text-align: center;
}

.profile-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8edf4;
    letter-spacing: 0.01em;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.profile-field--span2 {
    grid-column: 1 / -1;
}

.profile-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 20px;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.profile-actions--left {
    justify-content: flex-start;
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

.checkout-body {
    margin: 0;
    background: #f8fafc;
    min-height: 100vh;
}

.checkout-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #002855;
    color: #fff;
}

.checkout-topbar-logo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.checkout-topbar-logo:hover {
    color: #99CA3C;
}

.checkout-topbar-sep {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
}

.checkout-topbar-title {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.checkout-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.checkout-main {
    flex: 1;
    min-width: 0;
}

.checkout-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #006299;
    text-decoration: none;
    margin-bottom: 18px;
    font-weight: 500;
}

.checkout-back:hover {
    text-decoration: underline;
}

.checkout-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.checkout-card--sticky {
    position: sticky;
    top: 24px;
}

.checkout-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #002855;
    margin: 0 0 16px;
}

.checkout-card-title svg {
    flex-shrink: 0;
    color: #006299;
}

.checkout-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-field--wide {
    grid-column: 1 / -1;
}

.checkout-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkout-field-label--editable {
    color: #006299;
    display: flex;
    align-items: center;
    gap: 4px;
}

.checkout-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #334155;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.checkout-input[readonly] {
    background: #f1f5f9;
    color: #94a3b8;
}

.checkout-input--editable {
    background: #fff;
    border-color: #cbd5e1;
}

.checkout-input--editable:focus {
    outline: none;
    border-color: #006299;
    box-shadow: 0 0 0 3px rgba(0, 98, 153, 0.1);
}

.checkout-edit-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 3px;
    display: block;
}

.checkout-radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.checkout-radio-card:hover {
    border-color: #cbd5e1;
}

.checkout-radio-card:has(input:checked) {
    border-color: #006299;
    background: #f0f9ff;
}

.checkout-radio-card input[type="radio"] {
    accent-color: #006299;
}

.checkout-radio-card svg {
    color: #006299;
    flex-shrink: 0;
}

.checkout-invoice-fields {
    display: none;
    padding-top: 4px;
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.checkout-summary-item:last-of-type {
    border-bottom: none;
}

.checkout-summary-type {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.checkout-summary-name {
    flex: 1;
    color: #334155;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-summary-price {
    font-family: var(--font-display);
    font-weight: 700;
    color: #006299;
    white-space: nowrap;
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #002855;
}

.checkout-total-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #006299;
}

.checkout-submit-wrap {
    margin-top: 18px;
    text-align: center;
}

.checkout-submit-mobile {
    display: none;
}

.checkout-payment-note {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.checkout-payment-method {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.checkout-payment-option.active {
    border-color: #006299;
    background: #f0f9ff;
}

.checkout-payment-option.active svg {
    color: #006299;
}

.checkout-payment-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-payment-option strong {
    display: block;
    font-weight: 600;
    color: #002855;
    margin-bottom: 2px;
}

.checkout-payment-option span {
    font-size: 0.78rem;
    color: #64748b;
}

.btn-checkout {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.92rem;
}

/* CPEs table */
.cpes-table {
    table-layout: fixed;
}

.cpes-table th,
.cpes-table td {
    vertical-align: middle;
}

.cpes-table .cpe-cert-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #006299;
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid #b3d4e8;
    border-radius: 6px;
    background: #f0f7fc;
    transition: background 0.15s, border-color 0.15s;
}

.cpes-table .cpe-cert-link:hover {
    background: #d9edf8;
    border-color: #006299;
}

/* ==========================================================================
   Toast notifications (bottom-right)
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
}

.toast.visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: #16a34a;
}

.toast-info {
    background: #006299;
}

.toast-warning {
    background: #d97706;
}

.toast-error {
    background: #dc2626;
}

.toast svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Shop search bar
   ========================================================================== */

.shop-search-wrap {
    position: relative;
    margin-bottom: 14px;
    max-width: 380px;
}

.shop-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.shop-search-input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search-input:focus {
    outline: none;
    border-color: #006299;
    box-shadow: 0 0 0 3px rgba(0, 98, 153, 0.1);
}

.shop-search-input::placeholder {
    color: #94a3b8;
}

/* ==========================================================================
   Profile tabs
   ========================================================================== */

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    background: #e8edf4;
    border-radius: 10px;
    width: fit-content;
}

.profile-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.profile-tab:hover {
    color: #334155;
}

.profile-tab.active {
    background: #fff;
    color: #006299;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 40, 85, 0.12);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
    animation: fade-in 0.2s ease;
}

/* ==========================================================================
   Sidebar footer
   ========================================================================== */

.sidebar-foot {
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 172, 210, 0.18);
    margin-top: auto;
}

.sidebar-foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-version {
    font-size: 0.65rem;
    color: rgba(197, 217, 249, 0.45);
}

.sidebar-powered {
    font-size: 0.68rem;
    color: rgba(197, 217, 249, 0.5);
}

.sidebar-powered a {
    color: rgba(197, 217, 249, 0.7);
    text-decoration: none;
    border-bottom: 1px dotted rgba(197, 217, 249, 0.3);
    transition: color 0.2s;
}

.sidebar-powered a:hover {
    color: #99CA3C;
    border-bottom-color: #99CA3C;
}

/* ==========================================================================
   Modern touches
   ========================================================================== */

.hiia-card {
    transition: box-shadow 0.2s, transform 0.2s;
}

.hiia-card:hover {
    box-shadow: 0 6px 20px rgba(0, 40, 85, 0.08);
    transform: translateY(-1px);
}

.profile-form .hiia-card:hover,
.profile-tab-content .hiia-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 40, 85, 0.06);
}

/* ── Profile Files tab ───────────────────────────────────────── */
.pf-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    min-width: 0;
}

.pf-file-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pf-file-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pf-file-meta {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.pf-file-actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pf-btn-dl,
.pf-btn-del {
    padding: 5px 8px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pf-del-form {
    margin: 0;
    padding: 0;
    display: inline;
}

.pf-upload-form {
    margin: 0;
}

.pf-upload-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pf-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 260px;
    min-width: 0;
    padding: 9px 14px;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--muted);
    background: var(--surface);
    transition: border-color 0.15s, background 0.15s;
}

.pf-upload-label:hover {
    border-color: var(--accent);
    background: rgba(0, 98, 153, 0.03);
    color: var(--accent);
}

.pf-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-upload-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .pf-file-meta { display: none; }
    .pf-upload-row { flex-direction: column; align-items: stretch; }
}

/* ── end Profile Files tab ───────────────────────────────────── */

/* ── CPE self-report collapsible panel ──────────────────────── */
.cpe-add-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}

.cpe-add-panel--open {
    max-height: 1200px;
    opacity: 1;
}
/* ── end CPE add panel ───────────────────────────────────────── */

/* ── Flatpickr overrides — HIIA brand ────────────────────────── */
.flatpickr-calendar {
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.flatpickr-day:hover {
    background: var(--accent-dim);
}

.flatpickr-day.today {
    border-color: var(--accent);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--bg-deep);
    font-weight: 700;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent);
}

.flatpickr-input {
    cursor: pointer;
}

.flatpickr-input.active,
.flatpickr-input:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 98, 153, 0.1) !important;
}
/* ── end Flatpickr ───────────────────────────────────────────── */

.shop-card {
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 98, 153, 0.12);
}

.nav-link {
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav-link:hover {
    transform: translateX(2px);
}

.nav-link.is-active {
    transform: none;
}

/* ==========================================================================
   Responsive — Mobile & Tablet
   ========================================================================== */

@media (max-width: 900px) {
    .top-profile-name {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .profile-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-layout {
        flex-direction: column;
        padding: 16px;
    }

    .checkout-main {
        width: 100%;
    }

    .checkout-sidebar {
        width: 100%;
        order: -1;
    }

    .checkout-card--sticky {
        position: static;
    }

    .checkout-submit-desktop {
        display: none;
    }

    .checkout-submit-mobile {
        display: block;
    }

    .checkout-field-row {
        grid-template-columns: 1fr;
    }

    .checkout-radio-group {
        flex-direction: column;
    }

    .profile-field-group,
    .profile-grid,
    .profile-grid-3 {
        grid-template-columns: 1fr;
    }

    .profile-section {
        padding: 18px 16px;
    }

    .shop-modal-meta {
        grid-template-columns: 1fr;
    }

    .shop-modal-price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .shop-modal-actions {
        justify-content: stretch;
    }

    .shop-modal-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .hiia-cards--wide {
        grid-template-columns: 1fr;
    }

    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .shop-search-wrap {
        max-width: 100%;
    }

    .profile-tabs {
        width: 100%;
    }

    .profile-tab {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Finance RF bar (αντικαθιστά finance-total-bar εκτός πίνακα)
   ========================================================================== */

.finance-rf-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Shop — toolbar φίλτρων (server-side)
   ========================================================================== */

.shop-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.shop-toolbar-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.shop-month-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: var(--bg-card);
    padding: 7px 32px 7px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-main);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    height: auto;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}
.shop-month-select:focus {
    border-color: var(--primary);
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.shop-total-label {
    font-size: 0.82rem;
    white-space: nowrap;
    color: var(--text-muted);
}

/* Minimal per-page select — φαίνεται σαν muted text */
.shop-perpage-select {
    appearance: auto;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    outline: none;
}

.shop-perpage-select:focus-visible {
    outline: 2px solid var(--accent-strong);
    border-radius: 4px;
}

.cpe-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    height: 2.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #006299;
    border: 1.5px solid #006299;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.cpe-print-btn:hover {
    background: #006299;
    color: #fff;
}

.shop-cart-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.shop-balance-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.shop-balance-notice__body,
.shop-balance-notice > span {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    text-align: left;
}

.shop-balance-notice > svg {
    flex-shrink: 0;
}

.shop-balance-notice__btn {
    flex-shrink: 0;
    background: #006299;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .shop-balance-notice {
        flex-wrap: wrap;
    }
    .shop-balance-notice__body {
        flex: 1 1 100%;
    }
    .shop-balance-notice__btn {
        width: 100%;
        text-align: center;
    }
}

.finance-search .btn.btn-icon-only {
    padding: 9px 12px;
    min-height: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Όταν υπάρχει υπόλοιπο, τα add-to-cart κουμπιά είναι disabled */
.shop-has-balance .shop-card-actions .btn,
.shop-has-balance .shop-table .btn {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Shop table — inherits finance-table styles, minimal overrides */
.shop-table td {
    vertical-align: middle;
}

.shop-btn-icon:disabled,
.shop-btn-icon[disabled] {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: auto;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    padding: 0.25rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-family: var(--font-body);
    line-height: 1;
}

.pagination-btn:hover {
    border-color: var(--accent-strong);
    background: #f0f7ff;
    color: var(--accent-strong);
}

.pagination-btn--active {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    pointer-events: none;
}

.pagination-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--bg-elevated);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 34px;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
}

/* ==========================================================================
   Responsive — shop toolbar & pagination
   ========================================================================== */

/* Shop filter tabs inside toolbar — reset margin */
.shop-toolbar .shop-filter-tabs {
    margin-bottom: 0;
}

/* Toolbar selects — ίδιο ύψος με τα filter tab pills (~36px) */
.shop-toolbar .finance-customer-select,
.shop-toolbar .finance-field-label,
.finance-toolbar .finance-customer-select,
#cpe-filter-form .finance-customer-select {
    min-height: 36px;
    height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 28px;
    font-size: 0.82rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234b5e74' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}


/* Shop filter tabs με <a> links */
.shop-filter-tab {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 600px) {
    .shop-toolbar {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .shop-toolbar-right {
        flex-shrink: 0;
    }

    .pagination {
        justify-content: center;
    }

    .finance-rf-bar {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */
.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 200;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 12px rgba(0, 40, 85, 0.08);
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px 6px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        gap: 3px;
        transition: color 0.15s;
        min-width: 0;
    }
    .mobile-nav-item svg {
        width: 22px; height: 22px;
        flex-shrink: 0;
    }
    .mobile-nav-item.active {
        color: #006299;
    }
    .mobile-nav-item.active svg {
        stroke: #006299;
    }
    /* Make room for bottom nav */
    .main-stage {
        padding-bottom: calc(1rem + 60px + env(safe-area-inset-bottom, 0));
    }
}

/* ==========================================================================
   Empty State Enhancements
   ========================================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
    gap: 0.75rem;
}
.empty-state svg {
    opacity: 0.35;
}
.empty-state p {
    font-size: 0.95rem;
    margin: 0;
    color: #94a3b8;
}
.empty-state strong {
    display: block;
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Home Card Enhancements
   ========================================================================== */
.hiia-cards {
    gap: 1rem;
}

/* Νέα BEM δομή κάρτας */
.hiia-card {
    border-top: 3px solid #006299;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Icon + label σε οριζόντια γραμμή */
.hiia-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

/* Icon κύκλος */
.hiia-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hiia-card__icon--blue  { background: #e8f2f9; color: #006299; }
.hiia-card__icon--green { background: #ecf8e8; color: #3a7d1e; }
.hiia-card__icon--teal  { background: #e6f4f4; color: #0e7490; }
.hiia-card__icon--amber { background: #fef3e2; color: #b45309; }

/* Label (τίτλος) */
.hiia-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

/* Κύρια τιμή */
.hiia-card__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #002855;
    margin: 0 0 8px;
    line-height: 1.2;
}
.hiia-card__value--ok   { color: #166534; }
.hiia-card__value--warn { color: #b45309; }
.hiia-card__value--muted {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

/* Υπο-κείμενο */
.hiia-card__sub {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    margin-top: auto;
}
.hiia-card__sub a {
    color: #006299;
    text-decoration: none;
}
.hiia-card__sub a:hover {
    text-decoration: underline;
}

/* Progress bar */
.hiia-progress {
    margin-bottom: 8px;
}
.hiia-progress-bar {
    background: linear-gradient(90deg, #006299 0%, #99CA3C 100%);
}

/* "Αίτηση →" / "Προβολή καρτέλας →" action link στο sub */
.hiia-card__action-link {
    color: #006299;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color 0.15s;
}
.hiia-card__action-link:hover { color: #004a74; text-decoration: underline; }

/* Mobile-menu-btn — SVG color when visible */
.mobile-menu-btn { color: var(--text-main, #1e293b); }

/* Legacy value classes — διατηρούνται για άλλα tabs */
.hiia-card-value--ok   { color: #166534; }
.hiia-card-value--warn { color: #b45309; }
.hiia-card-value--muted { color: #64748b; font-size: 1rem; font-weight: 500; }

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text {
    height: 0.9em;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.skeleton-row {
    height: 2.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Settings Card (admin panel & future settings pages)
   ========================================================================== */

.settings-card {
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.settings-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    color: var(--color-primary, #006299);
}

.settings-card-head svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.settings-card-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy, #002855);
    line-height: 1.3;
}

.settings-card-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
}

.settings-card-body {
    padding: 20px;
}

/* Password eye toggle */
.field-pw-wrap { position: relative; display: block; }
.field-pw-wrap input { padding-right: 2.6rem; box-sizing: border-box; width: 100%; }
.field-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 4px; cursor: pointer; color: var(--text-muted,#94a3b8); line-height: 0; border-radius: 4px; transition: color 0.15s; }
.field-eye:hover { color: var(--primary,#006299); }
.field-eye:focus-visible { outline: 2px solid var(--primary,#006299); outline-offset: 1px; }
