﻿/* B365PRO.Web/wwwroot/css/b365pro.css
   =========================================================
   B365PRO – Global styles (PUBLIC + APP)
   ADIX Cloud | 365 / Byťák365®|PRO
   ========================================================= */

/* =========================================================
   0) Brand tokens
   ========================================================= */
:root {
    --adix-blue: #004C91;
    --byt-turq: #1D73F8;
    --cloud-grey: #E8ECEF;
    --graphite: #1B1C1E;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-header: 0 6px 20px rgba(0,0,0,0.08);
    --grad-primary: linear-gradient(90deg, var(--adix-blue), var(--byt-turq));
    --header-h: 72px;
    --container-max: 1200px;
    --gap-desktop: 32px;
    --gap-tablet: 24px;
    --app-gutter: 20px;
    --side-max: 380px;
    /* PRO – core */
    --pro-navy: #08123C;
    --pro-365: #1D73F8;
    --pro-365-dark: #0FA9C3;
    /* PRO orange (badge / hover) */
    --pro-orange-light: #F25E0D; /* rgb(242,94,13) */
    --pro-orange-dark: #C9470A; /* rgb(201,71,10) */
    /* Buttons */
    --pro-btn-grad: linear-gradient(90deg, var(--pro-navy), var(--pro-365));
    --btn-shadow: 0 8px 22px rgba(3,42,77,0.35);
    --btn-shadow-hover: 0 10px 24px rgba(201,71,10,0.35);
    --btn-radius: 12px;
    /* App bars */
    --app-bar-h: 40px;
    --app-menu-h: 40px;
    --app-bars-h: calc(var(--app-bar-h) + var(--app-menu-h));
}

/* =========================================================
   1) Base / reset
   ========================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

.b365pro-body {
    margin: 0;
    background: var(--white);
    color: var(--graphite);
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.b365pro-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 767px) {
    .b365pro-container {
        padding: 0 16px;
    }
}

.b365pro-reg {
    font-size: 30%;
    margin-left: 1px;
    position: relative;
    top: -0.6em;
}

/* =========================================================
   2) Shared components (cards, inputs, alerts, footer, buttons)
   ========================================================= */

/* --- Status / alert --- */
.b365pro-alert-wrap.is-off {
    display: none;
}

.b365pro-alert-wrap.is-on {
    display: block;
}

.b365pro-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.b365pro-alert-text {
    flex: 1;
}

.b365pro-alert-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    margin-left: 10px;
}


.b365pro-alert-error {
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fde8e8;
    border: 1px solid #f5b5b5;
    border-radius: var(--radius);
    color: #b71c1c;
    font-size: 13px;
    font-weight: 400;
}

.b365pro-alert-info {
    background: #E5F7F8;
    color: var(--adix-blue);
}

/* --- Cards --- */
.b365pro-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.b365pro-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.b365pro-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.b365pro-card-body {
    padding: 16px;
}

/* --- Inputs --- */
.b365pro-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

    .b365pro-input:focus {
        border-color: var(--pro-365);
        box-shadow: 0 0 0 4px rgba(24,196,226,0.20);
    }

/* --- Lists (brand bullets) --- */
.b365pro-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    line-height: 1.65;
}

    .b365pro-list li {
        padding-left: 18px;
        position: relative;
    }

        .b365pro-list li::before {
            content: "\2022";
            color: var(--pro-365);
            font-weight: 700;
            left: 0;
            position: absolute;
            top: 0;
        }

/* --- Footer (shared) --- */
.b365pro-footer {
    margin-top: 10px;
    padding: 2px 0;
    background: var(--cloud-grey);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.55);
    font-size: 11px;
    line-height: 1.35;
}

.b365pro-copyright {
    padding: 3px 0;
    background: var(--pro-navy);
    color: rgba(255,255,255,0.75);
    font-size: 10.5px;
    line-height: 1.35;
}

/* --- Buttons --- */
.b365pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: var(--btn-radius);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 180ms ease, box-shadow 180ms ease, transform 80ms ease;
}

    .b365pro-btn:active {
        transform: translateY(1px);
    }

.b365pro-btn-primary {
    background: var(--pro-btn-grad);
    box-shadow: var(--btn-shadow);
    color: #FFFFFF;
}

    .b365pro-btn-primary:hover {
        background: linear-gradient(90deg, var(--pro-orange-dark), var(--pro-orange-light));
        box-shadow: var(--btn-shadow-hover);
    }

.b365pro-btn-outline {
    background: transparent;
    border: 1px solid var(--pro-365);
    box-shadow: none;
    color: var(--pro-navy);
    font-weight: 600;
}

    .b365pro-btn-outline:hover {
        background: rgba(24,196,226,0.12);
    }

.b365pro-btn[disabled],
.b365pro-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* Ghost button (used in APP topbar) */
.b365pro-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1;
}

    .b365pro-btn-ghost:hover {
        background: rgba(255,255,255,0.10);
    }

.b365pro-btn-action {
    background: #004C91;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 16px; /* 🔧 místo 10px 16px */
    height: 40px; /* 🔧 přidat */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

    .b365pro-btn-action:hover {
        background: #F25C05; /* oranžová */
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(242,92,5,0.35);
    }

    .b365pro-btn-action:active {
        transform: translateY(1px);
    }

/* =========================================================
   3) PUBLIC (Index / landing) layout
   Používá _LayoutPublic.cshtml
   ========================================================= */

/* --- Header (PUBLIC) --- */
.b365pro-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--pro-navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.b365pro-header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.b365pro-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.b365pro-logo {
    display: block;
    height: 40px;
    width: auto;
}

.b365pro-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.b365pro-nav-link {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .b365pro-nav-link:hover {
        background: rgba(255,255,255,0.12);
    }

/* --- Main grid PUBLIC – header + login pinned, content scrolls --- */
.b365pro-main {
    flex: 1 0 auto;
    padding: 24px 0 32px;
}

.b365pro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.b365pro-main-content {
    min-width: 0;
    max-width: none;
    display: block;
}

.b365pro-side {
    width: 320px;
    max-width: 320px;
    justify-self: end;
}

.b365pro-side-sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- PUBLIC footer (two-line, links right) --- */
.b365pro-footer-public {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 12px;
}

.b365pro-footer-public-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.b365pro-footer-public-title {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.b365pro-footer-public-text {
    opacity: 0.85;
    font-size: 11px;
    line-height: 1.25;
}

.b365pro-footer-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    line-height: 1.25;
}

.b365pro-footer-link {
    opacity: 0.85;
    color: inherit;
    text-decoration: none;
}

    .b365pro-footer-link:hover {
        opacity: 1;
        text-decoration: underline;
        text-decoration-color: rgba(0,0,0,0.35);
    }

@media (max-width: 640px) {
    .b365pro-footer-public {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .b365pro-footer-public-links {
        gap: 10px;
    }
}

/* =========================================================
   4) APP (Dashboard / application layout)
   Používá _LayoutApp.cshtml (Topbar + Menubar)
   ========================================================= */

/* 4.1 APP containers – moderní 50/50 (tabulky vs formuláře)
-------------------------------------------------- */
.b365pro-container--shell {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: var(--app-gutter);
    padding-right: var(--app-gutter);
}

.b365pro-container--app {
    max-width: 1440px;
}

.b365pro-container--narrow {
    max-width: 980px;
}

.b365pro-container--wide {
    max-width: none;
}

/* 4.2 MAIN – posun pod fixed topbar+menubar
-------------------------------------------------- */
.b365pro-app-main {
    flex: 1 0 auto;
    padding: 14px 0 28px;
    padding-top: calc(var(--app-bars-h) + 14px);
}

/* 4.3 TOP BAR (APP)
-------------------------------------------------- */
.b365pro-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--app-bar-h);
    background: var(--pro-navy);
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.b365pro-topbar-inner {
    height: var(--app-bar-h);
    display: flex;
    align-items: center;
    gap: 12px;
}

.b365pro-topbar .b365pro-logo {
    display: block;
    height: 26px;
    width: auto;
}

/* ✅ KEY FIX: pushes block to the far right */
.b365pro-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Quick icons */
.b365pro-quick {
    display: flex;
    align-items: center;
    gap: 6px;
}

.b365pro-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
}

    .b365pro-quick-btn:hover {
        background: rgba(255,255,255,0.10);
    }

/* Userbar */
.b365pro-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    white-space: nowrap;
}

.b365pro-userbar-name {
    position: relative;
    top: -0.5px; /* jen text, ne celý blok */
    display: inline-flex;
    align-items: center;
    height: 28px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pro-365);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.95;
    border-bottom: 0;
    transition: color 160ms ease, opacity 160ms ease;
}

    .b365pro-userbar-name:hover {
        color: var(--pro-orange-light);
        opacity: 0.9;
        text-decoration: none;
    }

    .b365pro-userbar-name:visited {
        color: var(--pro-365);
    }

/* Logout form */
.b365pro-userbar-logout {
    margin: 0;
    flex: 0 0 auto;
}

/* 4.4 MENU BAR (APP)
-------------------------------------------------- */
.b365pro-menubar {
    position: fixed;
    top: var(--app-bar-h);
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--app-menu-h);
    background: #F8F8F8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.b365pro-menubar-inner {
    height: var(--app-menu-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

    /* First item hover alignment hack */
    .b365pro-menubar-inner .b365pro-menu-link:first-child {
        margin-left: -10px;
        padding-left: 10px;
    }

        .b365pro-menubar-inner .b365pro-menu-link:first-child::after {
            left: 10px;
            right: 10px;
        }

.b365pro-menu-link {
    position: relative;
    padding: 6px 10px;
    border-radius: 6px;
    color: #1B1C1E;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .b365pro-menu-link:hover {
        background: rgba(0,0,0,0.04);
    }

    .b365pro-menu-link::after {
        content: "";
        background: transparent;
        border-radius: 2px;
        bottom: -2px;
        height: 2px;
        left: 10px;
        right: 10px;
        position: absolute;
    }

    .b365pro-menu-link:hover::after,
    .b365pro-menu-link:focus-visible::after {
        background: var(--pro-orange-light);
    }

    .b365pro-menu-link.is-active {
        background: rgba(0,0,0,0.06);
    }

        .b365pro-menu-link.is-active::after {
            background: var(--pro-orange-dark);
        }

/* -----------------------------------------------------------------------------------*/
/* sekce/karty – jednotné odsazení */
.b365pro-section {
    margin-bottom: 18px;
}

/* tabulka v kartě – obrys a padding uvnitř */
.b365pro-table-wrap {
    margin: 8px; /* 🔑 ODDĚLÍ OD KARTY */
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 10px; /* o chlup menší než card */
    overflow: hidden;
    background: #fff;
}

/* tabulka – čisté rozložení */
.b365pro-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

    .b365pro-table th,
    .b365pro-table td {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        vertical-align: middle;
        text-align: left;
    }

    .b365pro-table thead th {
        background: #E8ECEF; /* Cloud Grey */
        color: #1B1C1E; /* Graphite */
        font-weight: 700;
    }

    .b365pro-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .b365pro-table th:last-child,
    .b365pro-table td:last-child {
        width: 140px; /* klidně uprav */
        white-space: nowrap;
    }

        .b365pro-table td:last-child:empty {
            pointer-events: none; /* kliky propadnou, žádný reflow/caret */
        }

.b365pro-section-title {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pro-navy);
}

.b365pro-form-actions {
    margin-top: 14px;
}

.b365pro-form-actions {
    margin-top: 14px;
    padding-bottom: 6px;
}

.b365pro-btn-wide {
    min-width: 180px; /* vizuálně “CTA” */
    padding-left: 28px;
    padding-right: 28px;
}

.b365pro-table-action {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.b365pro-pill {
    min-width: 110px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 0;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease;
}

    .b365pro-pill.is-on {
        background: rgba(24,196,226,0.18);
        color: var(--pro-navy);
    }

    .b365pro-pill.is-off {
        background: rgba(0,0,0,0.08);
        color: rgba(0,0,0,0.65);
    }

    .b365pro-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

/* tlačítko do tabulek (nenápadné, ale jasně klikací) */
.b365pro-btn-table {
    background: rgba(24,196,226,0.14);
    border: 1px solid rgba(24,196,226,0.45);
    color: var(--pro-navy);
    box-shadow: none;
    padding: 8px 14px;
}

    .b365pro-btn-table:hover {
        background: rgba(24,196,226,0.22);
    }

    .b365pro-btn-table:active {
        transform: translateY(1px);
    }

.b365pro-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.b365pro-alert-success {
    background: #E5F7F8;
    color: #004C91;
}

.b365pro-alert-text {
    flex: 1;
}

.b365pro-alert-close {
    border: none;
    background: transparent;
    color: #004C91;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

    .b365pro-alert-close:hover {
        opacity: 0.65;
    }

.b365pro-btn-action-sm {
    background: #E5F7F8;
    color: #004C91;
    border: 1px solid #1D73F8;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}

    .b365pro-btn-action-sm:hover {
        background: #1D73F8;
        color: white;
    }


/* stylování _B365Form */
.b365-form-shell {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    overflow: hidden;
}

.b365-form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e3e8ef;
}

.b365-form-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #004C91;
}

.b365-form-body {
    background: #ffffff;
    padding: 20px;
}

.b365-form-bottom {
    margin: 0 -20px -20px -20px;
    padding: 14px 20px 16px 20px;
    background: #f4f7fb;
    border-top: 1px solid #e3e8ef;
}

.b365pro-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px 20px;
}

.b365pro-form-row {
    display: flex;
    flex-direction: column;
}

.b365pro-form-row-full {
    grid-column: 1 / -1;
}

.b365pro-form-row label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #1B1C1E;
}

.b365pro-input {
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

    .b365pro-input:focus {
        outline: none;
        border-color: #1D73F8;
        box-shadow: 0 0 0 3px rgba(58,199,201,.12);
    }

.b365pro-form-row-button {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .b365pro-form-grid {
        grid-template-columns: 1fr;
    }
}


.b365-actions .b365pro-btn {
    width: auto;
}

.b365pro-btn-secondary {
    background: transparent;
    color: #004C91;
    border: 1px solid #cfd8dc;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
}

    .b365pro-btn-secondary:hover {
        background: #E8ECEF;
    }

.b365pro-form-section-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #004C91;
    position: relative;
    padding-left: 0px;
    line-height: 1.2;
}

.b365pro-input-sm {
    max-width: 220px;
}

.b365pro-input-md {
    max-width: 320px;
}

.b365pro-form-section {
    padding: 12px 20px;
}


    /* střídání barev */
    .b365pro-form-section:nth-of-type(even) {
        background: #f8fafc;
    }

    .b365pro-form-section:nth-of-type(odd) {
        background: #ffffff;
    }

    .b365pro-form-section + .b365pro-form-section {
        border-top: 1px solid #e3e8ef;
    }


.b365-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.b365-badge-success {
    background-color: #e5f7f8;
    color: #004C91;
}

.b365-badge-inactive {
    background-color: #f1f1f1;
    color: #666;
}

.b365-btn-gap-sm {
    margin-left: 4px;
}

.b365pro-btn-action-neutral-sm {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 14px;
    border: 1px solid #c8ccd0;
    background-color: #f3f4f6;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .b365pro-btn-action-neutral-sm:hover {
        background-color: #e5e7eb;
        color: #000;
    }

.b365pro-btn-action-warning-sm {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 14px;
    border: 1px solid #F6A800;
    background-color: #fff6e0; /* jemný oranžový nádech */
    color: #F6A800;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .b365pro-btn-action-warning-sm:hover {
        background-color: #F6A800;
        color: #ffffff;
    }

.b365pro-btn-action-danger-sm {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 14px;
    border: 1px solid #dc3545;
    background-color: #fdecea; /* 👈 jemný červený nádech */
    color: #dc3545;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .b365pro-btn-action-danger-sm:hover {
        background-color: #dc3545;
        color: #ffffff;
    }




/* =========================================================
   INLINE GRID ACTION ICONS – FINÁL
   ========================================================= */

.b365-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 2px;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

    .b365-icon-action svg {
        width: 20px;
        height: 20px;
        transition: transform 0.18s ease;
    }

    .b365-icon-action:hover svg {
        transform: scale(1.08);
    }

    .b365-icon-action.b365-icon-btn-neutral:hover {
        background-color: rgba(0, 76, 145, 0.14);
    }

    .b365-icon-action.b365-icon-btn-warning:hover {
        background-color: rgba(246, 168, 0, 0.34);
    }

    .b365-icon-action.b365-icon-btn-danger:hover {
        background-color: rgba(220, 53, 69, 0.34);
    }

/* =========================================================
   BUTTON ICONS
   ========================================================= */

.b365pro-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .b365pro-btn-action svg,
    .b365pro-btn-action svg path,
    .b365pro-btn-action svg circle,
    .b365pro-btn-action svg rect,
    .b365pro-btn-action svg line,
    .b365pro-btn-action svg polyline,
    .b365pro-btn-action svg polygon {
        color: #ffffff !important;
        fill: currentColor !important;
        stroke: currentColor !important;
    }

    .b365pro-btn-action svg,
    .b365pro-btn-secondary svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        display: block;
    }
/* =========================================================
   VALIDACE – label vlevo, chyba vpravo
   ========================================================= */

.b365pro-form-row-validate .b365pro-form-label-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 6px;
}

    .b365pro-form-row-validate .b365pro-form-label-row label {
        margin: 0;
        font-weight: 600;
        color: #1B1C1E;
        flex: 0 0 auto;
    }

    .b365pro-form-row-validate .b365pro-form-label-row .text-danger,
    .b365pro-form-row-validate .b365pro-form-label-row .field-validation-error,
    .b365pro-form-row-validate .b365pro-form-label-row .field-validation-valid {
        margin: 0;
        padding: 0;
        min-height: 0;
        display: block;
        flex: 1 1 auto;
        text-align: right;
        font-size: 12.5px;
        line-height: 1.2;
        color: #dc3545;
    }

        /* bez chyby nezabírej místo */
        .b365pro-form-row-validate .b365pro-form-label-row .field-validation-valid:empty,
        .b365pro-form-row-validate .b365pro-form-label-row .text-danger:empty {
            display: none;
        }

/* chyba – input */
.b365pro-input.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

    .b365pro-input.input-validation-error:focus {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18);
    }

/* =========================================================
   CONFIRM MODAL
   ========================================================= */

.b365pro-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 30, 0.32);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding: 80px 24px 24px 24px;
}

    .b365pro-modal-backdrop[hidden] {
        display: none !important;
    }

.b365pro-modal-dialog {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: b365pro-modal-fade 0.18s ease-out;
}

.b365pro-modal-header {
    padding: 22px 24px 0 24px;
}

.b365pro-modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .b365pro-modal-title-row h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #032A4D;
        line-height: 1.2;
    }

.b365pro-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #6c757d;
    flex: 0 0 auto;
}

    .b365pro-modal-icon svg {
        width: 18px;
        height: 18px;
    }

.b365pro-modal-body {
    padding: 8px 24px 20px 24px;
}

.b365pro-modal-message {
    margin: 0 0 14px 16px;
    line-height: 1.55;
    font-size: 16px;
    color: #1B1C1E;
}

.b365pro-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px 24px;
    margin-top: 12px;
    border-top: 1px solid #e3e8ef;
    background: #f4f7fb;
    border-radius: 0 0 16px 16px;
}

    .b365pro-modal-footer .b365pro-btn,
    .b365pro-modal-footer .b365pro-btn-secondary,
    .b365pro-modal-footer .b365pro-btn-danger,
    .b365pro-modal-footer .b365pro-btn-warning {
        border-radius: 12px;
    }

    .b365pro-modal-footer .b365pro-btn-secondary {
        background: #ffffff;
        border: 1px solid #cfd8dc;
        color: #004C91;
        text-decoration: none;
        box-shadow: none;
    }

        .b365pro-modal-footer .b365pro-btn-secondary:hover {
            background: #E8ECEF;
            border-color: #b0bec5;
        }

.b365pro-btn-danger {
    background: #004C91;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .b365pro-btn-danger:hover {
        background: #dc3545;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(220,53,69,0.35);
    }

.b365pro-btn-warning {
    background: #004C91;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .b365pro-btn-warning:hover {
        background: #F6A800;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(246,168,0,0.35);
    }

.b365pro-modal-warning {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

    .b365pro-modal-warning.is-warning {
        background: #fff4e5;
        /*border-left: 4px solid #F6A800;*/
        color: #8a5a00;
    }

    .b365pro-modal-warning.is-danger {
        background: #fdecea;
        /*border-left: 4px solid #dc3545;*/
        color: #842029;
    }

.b365pro-modal-dialog.is-danger .b365pro-modal-icon {
    background: #fdecea;
    color: #dc3545;
}

.b365pro-modal-dialog.is-warning .b365pro-modal-icon {
    background: #fff4e5;
    color: #F6A800;
}

@keyframes b365pro-modal-fade {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.b365pro-modal-divider {
    height: 1px;
    background: #e3e8ef; /* stejná jako ve formech */
    margin: 12px 0 12px 0;
}


/* =========================================================
   5) MŮJBYŤÁK – PUBLIC LANDING PAGE
   ========================================================= */

/* --- Login form --- */
.mujbytak-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Hero image block --- */
.mujbytak-hero-section {
    width: 100%;
}

.mujbytak-hero {
    width: 100%;
}

.mujbytak-hero-image {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
}

/* --- Divider between hero and content sections --- */
.mujbytak-divider {
    height: 1px;
    background: var(--cloud-grey);
    margin: 30px 0px 30px 0px;
}

/* --- Content sections --- */
.mujbytak-section {
    margin: 0 0 70px 0;
    max-width: 100%;
}

.mujbytak-section-title {
    text-align: center;
    margin: 0 0 22px 0;
    color: var(--pro-navy);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.mujbytak-section-text {
    max-width: 900px;
    margin: 0 auto 16px auto;
    text-align: left;
    line-height: 1.7;
    color: var(--graphite);
}

/* --- Benefit cards --- */
.mujbytak-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.mujbytak-card {
    background: var(--white);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 8px 24px rgba(8, 18, 60, .08);
    border: 1px solid rgba(8, 18, 60, .06);
}

    .mujbytak-card h3 {
        margin: 0 0 12px 0;
        color: var(--pro-navy);
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .mujbytak-card p {
        margin: 0;
        line-height: 1.55;
        color: var(--graphite);
    }

/* --- Contact section --- */
.mujbytak-contact {
    text-align: center;
    line-height: 1.8;
    color: var(--graphite);
}

    .mujbytak-contact a {
        color: var(--pro-365);
        font-weight: 600;
    }

/* --- Responsive public layout --- */
@media (max-width: 1100px) {
    .b365pro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .b365pro-side {
        width: 100%;
        max-width: 420px;
        justify-self: center;
        order: -1;
    }

    .b365pro-side-sticky {
        position: static;
    }

    .mujbytak-hero-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .mujbytak-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .b365pro-main {
        padding-top: 18px;
    }
}

@media (max-width: 640px) {
    .mujbytak-cards {
        grid-template-columns: 1fr;
    }

    .mujbytak-section-title {
        font-size: 1.6rem;
    }

    .mujbytak-divider {
        margin: 40px 0;
    }
}
