/* Basic styling for Xservices IT */

body {
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 34%, #f9fcff 72%, #f4f9ff 100%);
    background-attachment: fixed;
}

body.xs-env-dev {
    background:
        linear-gradient(180deg, #fff9fb 0%, #fff4f7 36%, #fff7f9 68%, #fff1f5 100%);
    background-attachment: fixed;
}

table,
.table,
.table-responsive {
    background-color: #fff;
}

.table > :not(caption) > * > * {
    background-color: var(--bs-table-bg, #fff);
}
html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden; /* prevence horizontálního posuvníku při modalech/tabulkách */
}

/* Bootstrap modaly: zabránění „poskakování“ layoutu a ořezávání dropdownů vlivem kompenzace scrollbarů */
body.modal-open {
    padding-right: 0 !important;
}

/* Pokud je otevřen modal, musíme zamknout i scroll na <html>.
   V projektu je totiž html { overflow-y: scroll; } kvůli stabilní šířce layoutu,
   což by jinak nechalo stránku pod modalem scrollovat.

   Pozn.: neřešíme to JSem (kvůli stabilitě). Moderní prohlížeče podporují :has().
   Fallback pokrývá Bootstrap (body.modal-open). */
html:has(.modal.show),
body:has(.modal.show) {
    overflow: hidden !important;
}

html {
    overflow-y: scroll; /* stabilní šířka stránky (bez posunu při otevření modalu) */
}

.hero {
    padding: 6rem 0 4rem 0;
}

.hero-gradient {
    background: radial-gradient(circle at top left, #0d6efd33, transparent 55%),
                radial-gradient(circle at bottom right, #19875433, transparent 55%);
}

.navbar-brand span {
    font-weight: 700;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.card-glass {
    backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.85);
}

footer {
    margin-top: auto; /* patička vždy u spodní hrany (flex layout v layout.php) */
}

/* Tabulky: dropdowny v responsive kontejnerech nesmí být oříznuté overflowem */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

/* Dropdown menu musí být nad modaly/offcanvas (jinak se jeví jako „schované“) */
.dropdown-menu {
    z-index: 1100;
}

.xs-feed-offcanvas {
    width: min(460px, 100vw);
    background: #f7faff;
    border-left: 2px solid rgba(51, 102, 255, 0.38);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.85),
        inset 0 0 0 1px rgba(51, 102, 255, 0.1),
        -1.25rem 0 2.75rem rgba(15, 23, 42, 0.2);
}

.xs-feed-offcanvas::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.35rem;
    background: linear-gradient(180deg, #3366ff, #2454e8);
    z-index: 2;
}

.xs-feed-header {
    position: relative;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.25rem 1.1rem;
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(51, 102, 255, 0.11), rgba(255, 255, 255, 0.96) 62%),
        #fff;
    border-bottom: 1px solid rgba(51, 102, 255, 0.14);
}

.xs-feed-header::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    bottom: -1px;
    width: 5.5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3366ff, rgba(51, 102, 255, 0.18));
}

.xs-feed-header .offcanvas-title {
    font-weight: 750;
    letter-spacing: 0;
}

.xs-feed-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.xs-feed-icon-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #3366ff;
    background: #fff;
    border: 1px solid rgba(51, 102, 255, 0.24);
    border-radius: 0.65rem;
    box-shadow: 0 0.35rem 0.9rem rgba(51, 102, 255, 0.12);
}

.xs-feed-icon-btn:hover,
.xs-feed-icon-btn:focus {
    color: #fff;
    background: #3366ff;
    border-color: #3366ff;
}

.xs-feed-clear-btn {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    gap: 0.35rem;
    color: #334155;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.65rem;
    box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.08);
}

.xs-feed-clear-btn:hover,
.xs-feed-clear-btn:focus {
    color: #b42318;
    background: #fff5f5;
    border-color: rgba(220, 38, 38, 0.28);
}

.xs-feed-close {
    width: 2rem;
    height: 2rem;
    margin: 0;
    border-radius: 0.65rem;
    background-size: 0.72rem;
    opacity: 0.72;
}

.xs-feed-body {
    padding: 1rem 1.15rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(51, 102, 255, 0.045) 0%, #ffffff 40%, #f7faff 100%);
    border-top: 1px solid rgba(51, 102, 255, 0.08);
}

.xs-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xs-feed-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.xs-feed-group-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 650;
}

.xs-feed-group-title::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #3366ff;
    box-shadow: 0 0 0 0.18rem rgba(51, 102, 255, 0.12);
}

.xs-feed-item {
    display: block;
    position: relative;
    padding: 0.95rem 1rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 0.45rem 1.25rem rgba(15, 23, 42, 0.07);
}

.xs-feed-item.is-unread {
    border-color: rgba(51, 102, 255, 0.36);
    box-shadow: 0 0.65rem 1.45rem rgba(51, 102, 255, 0.13);
}

.xs-feed-item.is-unread::after {
    content: "";
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #3366ff;
}

.xs-feed-item-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    padding-right: 1.25rem;
}

.xs-feed-type {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    color: #3366ff;
    background: rgba(51, 102, 255, 0.1);
    border-radius: 0.55rem;
    line-height: 1;
}

.xs-feed-time {
    color: #6b7280;
    font-size: 0.78rem;
}

.xs-feed-remove {
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

.xs-feed-title {
    color: #111827;
    font-weight: 650;
    line-height: 1.28;
}

.xs-feed-text {
    margin-top: 0.25rem;
    color: #4b5563;
    line-height: 1.35;
}

.xs-feed-empty {
    display: flex;
    min-height: calc(100dvh - 11rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 2.5rem 1.35rem;
    text-align: center;
    color: #1f2937;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.96)),
        #fff;
    border: 1px solid rgba(51, 102, 255, 0.18);
    border-radius: 1rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.78),
        0 0.85rem 2rem rgba(15, 23, 42, 0.08);
}

.xs-feed-empty::before {
    content: "";
    width: 72%;
    height: 1px;
    margin-bottom: 0.85rem;
    background: linear-gradient(90deg, transparent, rgba(51, 102, 255, 0.34), transparent);
}

.xs-feed-empty::after {
    content: "";
    width: 42%;
    height: 1px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, transparent, rgba(51, 102, 255, 0.18), transparent);
}

.xs-feed-empty-icon {
    width: 4.25rem;
    height: 4.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    color: #fff;
    background: linear-gradient(135deg, #3366ff, #2454e8);
    border: 1px solid rgba(51, 102, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 0.85rem 1.5rem rgba(51, 102, 255, 0.2);
    font-size: 1.55rem;
}

.xs-feed-empty .fw-semibold {
    color: #0f172a;
    font-size: 1.05rem;
}

.xs-feed-empty .text-muted {
    max-width: 19rem;
    color: #64748b !important;
    line-height: 1.45;
}

.xs-my-company-feed-link {
    color: #3366ff;
}

.xs-my-company-feed-link:hover,
.xs-my-company-feed-link:focus {
    color: #2454e8;
}

@media (max-width: 767.98px) {
    .xs-comm-hero {
        flex-direction: column;
    }

    .xs-comm-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .xs-comm-panel {
        border-radius: 1.15rem;
    }

    .xs-comm-tabs {
        padding: 0 .75rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .xs-comm-body {
        padding: .85rem;
    }
}

/* Scrollovat svisle v modalu, ale neřezat dropdowny na ose X */
.modal-dialog-scrollable .modal-body {
    overflow-x: visible;
}

/* -----------------------------------------------------------------------
   XS modals: jednotná stabilizace výšky vůči viewportu

   Cíl:
   - modál nikdy nepřeteče mimo viewport (i na nízkých výškách)
   - svisle scrolluje pouze .modal-body
   - footer s tlačítky zůstane dosažitelný scrollováním uvnitř modálu
   ----------------------------------------------------------------------- */
.xs-modal .modal-dialog {
    /* Bezpečné omezení výšky dialogu vůči viewportu */
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
}

.xs-modal .modal-content {
    /* Vynutit flex layout, aby .modal-body mohl být scrollovatelný */
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/*
   Některé modály (např. formuláře) mají strukturu:
     .modal-content > form > (.modal-header, .modal-body, .modal-footer)
   V takovém případě flex na .modal-content nestačí a .modal-body pak nemá
   žádný výškový constraint → chybí vnitřní scrollbar.
   Tato pravidla zajišťují konzistentní scrollování uvnitř .modal-body.
*/
.xs-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.xs-modal .modal-content > form > .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Pokud je dialog označen jako scrollable, nastavíme mu explicitní výšku (spolehlivé i při nestandardním layoutu stránky) */
.xs-modal .modal-dialog.modal-dialog-scrollable {
    height: calc(100vh - 2rem);
    height: calc(100dvh - 2rem);
}

/* Nechceme, aby scrolloval wrapper .modal; scroll musí být pouze v .modal-body */
.xs-modal.modal {
    overflow: hidden !important;
}

.xs-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.xs-field-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: .35rem;
    border-radius: 999px;
    color: #2563eb;
    font-size: .85rem;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.xs-field-help:hover,
.xs-field-help:focus {
    color: var(--bs-primary);
}

/* Přijaté faktury: modál „Vytvořit fakturu“ musí být ovladatelný i na nízké výšce obrazovky.
   U některých kombinací obsahu (taby + tabulky) se modal-body zvětší tak, že footer s tlačítky není vidět.
   Vynutíme proto max výšku modalu a svislé scrollování uvnitř. */
#modalInvoiceCreate .modal-dialog {
    height: calc(100vh - 2rem);
}

#modalInvoiceCreate .modal-content {
    max-height: calc(100vh - 2rem);
}

#modalInvoiceCreate .modal-body {
    overflow-y: auto;
}

.badge-pill {
    border-radius: 999px;
}

/* Ikony v Rychlm pehledu slueb */
.service-item-icon {
    width: 48px;
    height: 48px;
    display: block;
    transition: transform .2s ease, filter .2s ease;
}

.service-item {
    transition: background-color .15s ease;
    border-radius: .75rem;
    padding: .25rem .4rem;
    margin-left: -.4rem;
    margin-right: -.4rem;
}

.service-item:hover {
    background-color: rgba(13,110,253,0.03); /* jemn zvraznn dku */
}

.service-item:hover .service-item-icon {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 .35rem .75rem rgba(15,23,42,0.18));
}

.service-card-icon {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    transition: transform .2s ease, filter .2s ease;
}

.card:hover .service-card-icon {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 .35rem .8rem rgba(15,23,42,.18));
}

/* Stavová tečka pro indikaci stavu CHR serveru */
.status-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    display: inline-block;
}

/* RBAC / Permissions: škálovatelný vzhled pro desítky až stovky oprávnění */
.xs-perm-assign-card {
    overflow: hidden;
}

.xs-perm-assign-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: .75rem 1rem;
}

.xs-perm-assign-list {
    padding: 0 1rem 1rem 1rem;
    max-height: calc(100vh - 420px);
    overflow: auto;
}

.xs-perm-item {
    padding: .65rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.xs-perm-item:last-child {
    border-bottom: 0;
}

.xs-perm-item code {
    font-size: .82rem;
}

@media (max-width: 991.98px) {
    .xs-perm-assign-list {
        max-height: calc(100vh - 520px);
    }
}



/* IT Q&A */
.itqa-article-body img { max-width: 100%; height: auto; }
.itqa-article-body pre { background: #f8f9fa; padding: 12px; border-radius: 8px; overflow:auto; }
.itqa-article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Multidropdown (submenu) – Bootstrap 5 nested dropdown */
.dropdown-menu .dropdown-submenu {
    position: relative;
}

.dropdown-menu .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.125rem;
}

/* Pokud submenu nevejde doprava (detekuje JS), otevři ho doleva */
.dropdown-menu .dropdown-submenu.xs-open-left > .dropdown-menu {
    right: 100%;
    left: auto;
}

/* Submenu fallback: při nedostatku místa se přepne doleva (řeší JS) */
.dropdown-menu .dropdown-submenu.xs-open-left > .dropdown-menu {
    right: 100%;
    left: auto;
}

/* Hover chování dropdownů odstraněno – menu se otevírá pouze na kliknutí. */


.dropdown-menu .xs-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-menu .xs-submenu-toggle::after {
    content: "\203A"; /* › */
    font-size: 1.05rem;
    line-height: 1;
    opacity: .75;
}

/* Mobil/offcanvas: submenu raději rozbalit do seznamu (bez flyout), aby se nic neořezávalo */
@media (max-width: 991.98px) {
    .dropdown-menu .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-top: .25rem;
        margin-left: 1rem;
        border: 0;
        box-shadow: none;
    }
    .dropdown-menu .xs-submenu-toggle::after {
        content: "\25BE"; /* ▾ */
    }
}

/* Dashboard tiles: prevent excessive growth.
   Important: scrollbar must not overlap the header (title + action buttons). */
.xs-dashboard-tile .card-body {
    max-height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.xs-dashboard-tile .xs-tile-header {
    flex: 0 0 auto;
}

.xs-dashboard-tile .xs-tile-scroll {
    flex: 1 1 auto;
    min-height: 0; /* required so the flex child can scroll */
    overflow: auto;
}

.xs-dashboard-tile .xs-tile-header-actions {
    flex: 0 0 auto;
}

.xs-dashboard-tile.xs-tile-minimized .card-body {
    max-height: none;
    overflow: hidden;
}

.xs-dashboard-hidden-tiles .list-group-item {
    cursor: default;
}

/* Dashboard tiles: carousel pagination inside tiles */
.xs-tile-carousel {
    position: relative;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

.xs-tile-carousel .carousel-control-prev,
.xs-tile-carousel .carousel-control-next {
    width: 2.25rem;
}

.xs-tile-carousel .carousel-control-prev-icon,
.xs-tile-carousel .carousel-control-next-icon {
    opacity: .65;
}

.xs-tile-carousel-hint {
    text-align: center;
}


/* =========================
   Xservices One landing
   ========================= */
.xs-one-hero {
    background: linear-gradient(180deg, rgba(13,110,253,0.08) 0%, rgba(13,110,253,0.02) 100%);
}

.xs-one-hero-icon {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}

.xs-one-card {
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform .12s ease, box-shadow .12s ease;
}

a.xs-one-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.xs-one-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.xs-one-pill {
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    border-radius: 999px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* --- Main navigation: "Moje firma" link (decent emphasis, no CTA) --------------- */
.xs-nav-my-company {
    font-weight: 600;
    color: rgba(13, 110, 253, 0.85) !important; /* bootstrap primary, slightly softened */
}

.xs-nav-my-company:hover,
.xs-nav-my-company:focus {
    color: rgba(13, 110, 253, 1) !important;
}

/* --- My Company: Breadcrumb (UI-only, no routing changes) -------------------- */
.xs-breadcrumb {
    --bs-breadcrumb-divider: '›';
}

.xs-breadcrumb .breadcrumb {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 0;
}

.xs-breadcrumb .breadcrumb-item {
    font-size: .875rem;
    line-height: 1.1;
}

.xs-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    opacity: .65;
}

.xs-breadcrumb a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.xs-breadcrumb a:hover,
.xs-breadcrumb a:focus {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xs-breadcrumb .breadcrumb-item.active {
    color: var(--bs-body-color);
    font-weight: 600;
}

.xs-breadcrumb .xs-bc-label {
    display: inline-block;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}


/* XS Alerts — inline variant (replacement for Bootstrap .alert boxes) */
.xs-alert-inline{
    display: block;
    box-shadow: none;
    padding: .9rem 1rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    color: inherit;
}
.xs-alert-inline .xs-alert-icon{ display: none; }
.xs-alert-inline .xs-alert-close{ display: none; }
.xs-alert-inline .xs-alert-message{
    white-space: normal;
    line-height: inherit;
}
.xs-alert-sm{
    padding: .5rem .75rem;
    border-radius: .375rem;
    font-size: .875rem;
}

/* Inline color palette aligned to Bootstrap 5 alerts */
.xs-alert-inline.xs-alert-success{ background: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.xs-alert-inline.xs-alert-info{ background: #cff4fc; color: #055160; border-color: #b6effb; }
.xs-alert-inline.xs-alert-warning{ background: #fff3cd; color: #664d03; border-color: #ffecb5; }
.xs-alert-inline.xs-alert-danger{ background: #f8d7da; color: #842029; border-color: #f5c2c7; }
.xs-alert-inline.xs-alert-secondary{ background: #e2e3e5; color: #41464b; border-color: #d3d6d8; }
.xs-alert-inline.xs-alert-light{ background: #f8f9fa; color: #212529; border-color: #e2e3e5; }

/* Welcome carousel */
.xs-welcome-modal .modal-dialog {
    max-width: min(1080px, calc(100vw - 1.5rem));
}

.xs-welcome-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, .24);
}

.xs-welcome-modal .modal-header {
    padding: 1.2rem 1.35rem 0;
    background: #fff;
}

.xs-welcome-modal .modal-title {
    color: #0f172a;
    font-size: 1.03rem;
    font-weight: 650;
    line-height: 1.35;
}

.xs-welcome-kicker,
.xs-welcome-label {
    color: #2563eb;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.xs-welcome-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, .98fr);
    gap: 1.25rem;
    min-height: 430px;
    padding: 1.4rem 3.85rem 3.5rem;
    background:
        linear-gradient(135deg, #ffffff 0%, #f8fbff 45%, #eef7ff 100%);
}

.xs-welcome-copy {
    align-self: center;
    min-width: 0;
}

.xs-welcome-copy h2 {
    max-width: 34rem;
    margin: .45rem 0 .75rem;
    color: #0f172a;
    font-size: 1.82rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
}

.xs-welcome-copy p {
    max-width: 36rem;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
}

.xs-welcome-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.15rem;
}

.xs-welcome-pills span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.15rem;
    padding: .42rem .7rem;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: .55rem;
    color: #1e3a8a;
    background: #fff;
    box-shadow: 0 .15rem .65rem rgba(15, 23, 42, .06);
    font-size: .86rem;
    font-weight: 650;
}

.xs-welcome-art {
    position: relative;
    align-self: center;
    min-width: 0;
    min-height: 320px;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: .5rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .86)),
        linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(20, 184, 166, .08));
    box-shadow: 0 .9rem 2rem rgba(15, 23, 42, .12);
}

.xs-welcome-window,
.xs-welcome-device,
.xs-welcome-ticket,
.xs-welcome-stack > div {
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 .65rem 1.35rem rgba(15, 23, 42, .1);
}

.xs-welcome-window {
    height: 100%;
    min-height: 270px;
    padding: 1rem;
}

.xs-welcome-window-bar {
    height: .7rem;
    margin-bottom: 1rem;
    border-radius: .4rem;
    background: linear-gradient(90deg, #2563eb 0 22%, #14b8a6 22% 42%, #f59e0b 42% 62%, #e2e8f0 62% 100%);
}

.xs-welcome-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
    margin-bottom: 1rem;
}

.xs-welcome-card-row span {
    min-height: 4.8rem;
    border-radius: .5rem;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
    border: 1px solid rgba(37, 99, 235, .14);
}

.xs-welcome-chart {
    height: 5.8rem;
    margin-bottom: 1rem;
    border-radius: .5rem;
    background:
        linear-gradient(180deg, transparent 0 68%, rgba(37, 99, 235, .14) 68%),
        linear-gradient(90deg, #2563eb 0 18%, transparent 18% 24%, #14b8a6 24% 45%, transparent 45% 51%, #f59e0b 51% 72%, transparent 72% 78%, #22c55e 78% 100%);
    opacity: .9;
}

.xs-welcome-lines span {
    display: block;
    height: .7rem;
    margin-top: .55rem;
    border-radius: .4rem;
    background: #e2e8f0;
}

.xs-welcome-lines span:nth-child(2) { width: 82%; }
.xs-welcome-lines span:nth-child(3) { width: 64%; }

.xs-welcome-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    height: 100%;
}

.xs-welcome-stack > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .65rem;
    min-height: 8rem;
    padding: 1rem;
    --xs-welcome-stack-accent: #2563eb;
    --xs-welcome-stack-bg: #eff6ff;
}

.xs-welcome-stack > div:nth-child(1) {
    --xs-welcome-stack-accent: #7c3aed;
    --xs-welcome-stack-bg: #f5f3ff;
}

.xs-welcome-stack > div:nth-child(2) {
    --xs-welcome-stack-accent: #0f9f9a;
    --xs-welcome-stack-bg: #ecfeff;
}

.xs-welcome-stack > div:nth-child(3),
.xs-welcome-stack > div:nth-child(4) {
    --xs-welcome-stack-accent: #2563eb;
    --xs-welcome-stack-bg: #eff6ff;
}

.xs-welcome-stack i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: .5rem;
    color: var(--xs-welcome-stack-accent);
    background: linear-gradient(135deg, var(--xs-welcome-stack-bg), #fff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
    font-size: 1.35rem;
}

.xs-welcome-device-screen i,
.xs-welcome-ticket i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: .5rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-size: 1.35rem;
}

.xs-welcome-stack span {
    color: #0f172a;
    font-weight: 750;
}

.xs-welcome-device {
    position: absolute;
    inset: 2.2rem 2rem 5.2rem;
    padding: .95rem;
}

.xs-welcome-device-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    height: 100%;
    border-radius: .5rem;
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(20, 184, 166, .08)),
        #f8fafc;
    font-weight: 750;
}

.xs-welcome-sync {
    position: absolute;
    right: 2.1rem;
    bottom: 1.8rem;
    left: 2.1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
}

.xs-welcome-sync span {
    height: .75rem;
    border-radius: .4rem;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.xs-welcome-ticket {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
    min-height: 270px;
    padding: 1.35rem;
}

.xs-welcome-ticket strong {
    color: #0f172a;
    font-size: 1.35rem;
}

.xs-welcome-ticket span {
    color: #64748b;
    line-height: 1.55;
}

.xs-welcome-modal .carousel-control-prev,
.xs-welcome-modal .carousel-control-next {
    width: 3.25rem;
}

.xs-welcome-modal .carousel-control-prev-icon,
.xs-welcome-modal .carousel-control-next-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    background-color: rgba(15, 23, 42, .62);
    background-size: 58%;
}

.xs-welcome-modal .carousel-indicators {
    bottom: 1.1rem;
    margin-bottom: 0;
}

.xs-welcome-modal .carousel-indicators [data-bs-target] {
    width: 2.2rem;
    height: .35rem;
    border: 0;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, .32);
}

.xs-welcome-modal .carousel-indicators .active {
    background-color: #2563eb;
}

.xs-welcome-footer {
    justify-content: space-between;
    padding: .95rem 1.35rem;
    border-color: rgba(15, 23, 42, .08);
    background: #fff;
}

.xs-welcome-footer .form-check {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .xs-welcome-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: .5rem auto;
    }
    .xs-welcome-slide {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 1.15rem 1rem 3.25rem;
    }
    .xs-welcome-art {
        min-height: 220px;
        order: -1;
    }
    .xs-welcome-copy h2 {
        font-size: 1.38rem;
    }
    .xs-welcome-copy p {
        font-size: .95rem;
    }
    .xs-welcome-device {
        inset: 1rem 1rem 4rem;
    }
    .xs-welcome-sync {
        right: 1rem;
        left: 1rem;
    }
    .xs-welcome-footer {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
    }
    .xs-welcome-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .xs-breadcrumb .xs-bc-label { max-width: 11rem; }
}

/* FIX: Moje firma – povolit shrink obsahu karet */
.xs-my-company-grid .d-flex,
.xs-my-company-grid .flex-grow-1 {
    min-width: 0;
}

.xs-my-company-grid {
    --xs-tile-accent: #2563eb;
    --xs-tile-accent-soft: rgba(37, 99, 235, .12);
    --xs-tile-accent-bg: #eff6ff;
}

.xs-my-company-board-head h2 {
    color: #0f172a;
    font-weight: 750;
}

.xs-my-company-layout-actions {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: none;
    justify-content: center;
    pointer-events: none;
    margin-top: 1rem;
}

.xs-my-company-layout-actions.is-visible {
    display: flex;
}

.xs-my-company-layout-actions-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 .75rem 1.8rem rgba(15, 23, 42, .14);
}

@media (max-width: 575.98px) {
    .xs-my-company-layout-actions-inner {
        width: min(100%, calc(100vw - 1.5rem));
        justify-content: center;
        flex-wrap: wrap;
    }
}

.xs-my-company-hide-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    max-height: 0;
    min-height: 0;
    margin: 0 0 0;
    overflow: hidden;
    border: 2px dashed rgba(220, 38, 38, .78);
    border-radius: .85rem;
    color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, .08), rgba(255, 255, 255, .97));
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.35rem);
    transition: max-height .18s ease, min-height .18s ease, margin .18s ease, opacity .16s ease, transform .16s ease;
}

.xs-my-company-hide-zone.is-visible {
    max-height: 86px;
    min-height: 74px;
    margin: -.15rem 0 1rem;
    opacity: .52;
    transform: translateY(0);
}

.xs-my-company-hide-zone.is-active {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .1), 0 .7rem 1.5rem rgba(220, 38, 38, .14);
}

.xs-my-company-hide-zone i {
    font-size: 1.35rem;
}

.xs-my-company-settings-tabs {
    border-bottom-color: rgba(15, 23, 42, .12);
}

.xs-my-company-settings-tabs .nav-link {
    color: #475569;
    font-weight: 650;
}

.xs-my-company-settings-tabs .nav-link.active {
    color: #0f172a;
    border-color: rgba(15, 23, 42, .12) rgba(15, 23, 42, .12) #fff;
}

.xs-my-company-module-list {
    display: grid;
    gap: .45rem;
}

.xs-my-company-module-setting {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 58px;
    padding: .65rem .8rem;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .08rem .35rem rgba(15, 23, 42, .045);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.xs-my-company-module-setting:hover {
    border-color: rgba(37, 99, 235, .22);
    background: linear-gradient(90deg, rgba(37, 99, 235, .035), #fff);
    box-shadow: 0 .16rem .55rem rgba(15, 23, 42, .06);
}

.xs-my-company-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: .55rem;
    color: #2563eb;
    background: #eff6ff;
}

.xs-my-company-module-copy {
    min-width: 0;
    cursor: pointer;
}

.xs-my-company-module-copy .small {
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xs-my-company-module-setting .form-check-input {
    cursor: pointer;
}

.xs-my-company-module-setting i {
    font-size: 1rem;
}

.xs-my-company-tile-col.xs-my-company-tile-dragging {
    opacity: .72;
}

.xs-my-company-tile-col.xs-my-company-tile-dragging .xs-my-company-tile {
    border-color: rgba(37, 99, 235, .55) !important;
    box-shadow: 0 .8rem 1.8rem rgba(37, 99, 235, .2) !important;
}

.xs-my-company-tile-col.xs-my-company-tile-drop-target {
    position: relative;
}

.xs-my-company-tile-col.xs-my-company-tile-drop-target .xs-my-company-tile {
    visibility: hidden;
}

.xs-my-company-tile-col.xs-my-company-tile-drop-target::after {
    position: absolute;
    inset: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
    z-index: 2;
    border: 2px dashed rgba(37, 99, 235, .72);
    border-radius: .85rem;
    content: "Přetáhněte sem dlaždici";
    color: #2563eb;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .07), rgba(255, 255, 255, .96));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    text-align: center;
    font-weight: 650;
    font-size: .9rem;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .06);
}

.xs-my-company-tile-col.xs-my-company-tile-drop-target::before {
    position: absolute;
    top: calc(50% - 2.1rem);
    left: 50%;
    z-index: 3;
    content: "\F3FC";
    transform: translate(-50%, -50%);
    color: rgba(37, 99, 235, .38);
    font-family: "bootstrap-icons";
    font-size: 1.65rem;
    line-height: 1;
}

.xs-my-company-tile {
    min-height: 132px;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 .18rem .75rem rgba(15, 23, 42, .08) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.xs-my-company-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, .16) !important;
    box-shadow: 0 .45rem 1.2rem rgba(15, 23, 42, .12) !important;
}

.xs-my-company-tile .card-body {
    padding: 1.15rem 1.2rem .9rem;
    align-items: flex-start;
}

.xs-my-company-tile .flex-grow-1 {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    row-gap: .38rem;
}

.xs-my-company-tile h2 {
    color: #0f172a;
    font-size: 1.03rem;
    font-weight: 750;
    line-height: 1.25;
}

.xs-my-company-tile p {
    color: #475569 !important;
    font-size: .94rem;
    line-height: 1.42;
}

.xs-my-company-tile-icon {
    width: 58px;
    height: 58px;
    border-radius: .9rem;
    color: var(--xs-tile-accent);
    background: linear-gradient(135deg, var(--xs-tile-accent-bg), #fff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.xs-my-company-tile-grip {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-left: .35rem;
    padding: 0;
    border: 0;
    border-radius: .45rem;
    color: #334155;
    background: transparent;
    cursor: grab;
    font-size: 1.2rem;
}

.xs-my-company-tile-grip:hover,
.xs-my-company-tile-grip:focus-visible {
    color: var(--xs-tile-accent);
    background: var(--xs-tile-accent-soft);
    outline: none;
}

.xs-my-company-tile-count {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    margin-top: auto !important;
    border-radius: 999px;
    padding: .22rem .72rem;
    color: var(--xs-tile-accent) !important;
    background: var(--xs-tile-accent-soft);
    line-height: 1.2;
}

.xs-my-company-tile-count--warning {
    color: #b45309 !important;
    background: rgba(245, 158, 11, .16);
}

.xs-my-company-tile-count--danger {
    color: #b91c1c !important;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.xs-my-company-tile--has-danger-alert {
    border-color: rgba(220, 38, 38, .35) !important;
    box-shadow: 0 .9rem 1.9rem rgba(220, 38, 38, .12) !important;
}

.xs-my-company-tile--has-danger-alert .xs-my-company-tile-icon {
    color: #dc2626;
    background: linear-gradient(135deg, #fee2e2, #fff);
}

.xs-my-company-tile--assistant {
    --xs-tile-accent: #7c3aed;
    --xs-tile-accent-soft: rgba(124, 58, 237, .12);
    --xs-tile-accent-bg: #f3e8ff;
}

.xs-my-company-tile--board,
.xs-my-company-tile--projects,
.xs-my-company-tile--org_directory,
.xs-my-company-tile--requests,
.xs-my-company-tile--assets,
.xs-my-company-tile--dms {
    --xs-tile-accent: #2563eb;
    --xs-tile-accent-soft: rgba(37, 99, 235, .12);
    --xs-tile-accent-bg: #eff6ff;
}

.xs-my-company-tile--reports,
.xs-my-company-tile--invoices_received {
    --xs-tile-accent: #15803d;
    --xs-tile-accent-soft: rgba(21, 128, 61, .12);
    --xs-tile-accent-bg: #ecfdf3;
}

.xs-my-company-tile--meetings,
.xs-my-company-tile--attendance {
    --xs-tile-accent: #ea580c;
    --xs-tile-accent-soft: rgba(234, 88, 12, .12);
    --xs-tile-accent-bg: #fff7ed;
}

.xs-my-company-tile--events,
.xs-my-company-tile--employees {
    --xs-tile-accent: #7c3aed;
    --xs-tile-accent-soft: rgba(124, 58, 237, .12);
    --xs-tile-accent-bg: #f5f3ff;
}

.xs-my-company-tile--tasks,
.xs-my-company-tile--reservations {
    --xs-tile-accent: #0f9f9a;
    --xs-tile-accent-soft: rgba(15, 159, 154, .12);
    --xs-tile-accent-bg: #ecfeff;
}

.xs-my-company-tile--daily_report {
    --xs-tile-accent: #e11d48;
    --xs-tile-accent-soft: rgba(225, 29, 72, .12);
    --xs-tile-accent-bg: #fff1f2;
}

.xs-my-company-tile--hr_management {
    --xs-tile-accent: #be123c;
    --xs-tile-accent-soft: rgba(190, 18, 60, .13);
    --xs-tile-accent-bg: #ffe4e6;
    border-color: rgba(190, 18, 60, .2) !important;
    background: #fff;
}

.xs-my-company-tile--hr_management:hover {
    border-color: rgba(190, 18, 60, .35) !important;
    box-shadow: 0 .55rem 1.35rem rgba(190, 18, 60, .14) !important;
}

.xs-my-company-tile--hr-candidates {
    --xs-tile-accent: #be123c;
    --xs-tile-accent-soft: rgba(190, 18, 60, .13);
    --xs-tile-accent-bg: #ffe4e6;
}

.xs-my-company-tile--hr-recruitment {
    --xs-tile-accent: #7c3aed;
    --xs-tile-accent-soft: rgba(124, 58, 237, .12);
    --xs-tile-accent-bg: #f5f3ff;
}

.xs-my-company-tile--hr-resumes {
    --xs-tile-accent: #2563eb;
    --xs-tile-accent-soft: rgba(37, 99, 235, .12);
    --xs-tile-accent-bg: #eff6ff;
}

.xs-my-company-tile--directives_contracts,
.xs-my-company-tile--admin {
    --xs-tile-accent: #d97706;
    --xs-tile-accent-soft: rgba(217, 119, 6, .13);
    --xs-tile-accent-bg: #fffbeb;
}

.xs-my-company-tile--org-sub-overview,
.xs-my-company-tile--org-sub-management,
.xs-my-company-tile--org-sub-electronic-cards,
.xs-my-company-tile--org-sub-access,
.xs-my-company-tile--org-sub-assets {
    --xs-tile-accent: #2563eb;
    --xs-tile-accent-soft: rgba(37, 99, 235, .12);
    --xs-tile-accent-bg: #eff6ff;
}

.xs-my-company-tile--org-sub-org-structure,
.xs-my-company-tile--org-sub-role-competence,
.xs-my-company-tile--org-sub-reviews {
    --xs-tile-accent: #7c3aed;
    --xs-tile-accent-soft: rgba(124, 58, 237, .12);
    --xs-tile-accent-bg: #f5f3ff;
}

.xs-my-company-tile--org-sub-documents,
.xs-my-company-tile--org-sub-trainings {
    --xs-tile-accent: #d97706;
    --xs-tile-accent-soft: rgba(217, 119, 6, .13);
    --xs-tile-accent-bg: #fffbeb;
}

.xs-my-company-tile--org-sub-medical {
    --xs-tile-accent: #e11d48;
    --xs-tile-accent-soft: rgba(225, 29, 72, .12);
    --xs-tile-accent-bg: #fff1f2;
}

.xs-my-company-tile--org-sub-attendance {
    --xs-tile-accent: #0f9f9a;
    --xs-tile-accent-soft: rgba(15, 159, 154, .12);
    --xs-tile-accent-bg: #ecfeff;
}

.xs-my-company-tile--management-database {
    --xs-tile-accent: #2563eb;
    --xs-tile-accent-soft: rgba(37, 99, 235, .12);
    --xs-tile-accent-bg: #eff6ff;
}

.xs-my-company-tile--management-auditlog {
    --xs-tile-accent: #7c3aed;
    --xs-tile-accent-soft: rgba(124, 58, 237, .12);
    --xs-tile-accent-bg: #f5f3ff;
}

.xs-my-company-tile--management-updates {
    --xs-tile-accent: #0f9f9a;
    --xs-tile-accent-soft: rgba(15, 159, 154, .12);
    --xs-tile-accent-bg: #ecfeff;
}

.xs-my-company-tile--management-applications {
    --xs-tile-accent: #0ea5e9;
    --xs-tile-accent-soft: rgba(14, 165, 233, .12);
    --xs-tile-accent-bg: #f0f9ff;
}

.xs-assets-type-row .xs-my-company-tile {
    --xs-tile-accent: #2563eb;
    --xs-tile-accent-soft: rgba(37, 99, 235, .12);
    --xs-tile-accent-bg: #eff6ff;
}

.xs-assets-type-row .col:nth-child(5n+2) .xs-my-company-tile {
    --xs-tile-accent: #0f9f9a;
    --xs-tile-accent-soft: rgba(15, 159, 154, .12);
    --xs-tile-accent-bg: #ecfeff;
}

.xs-assets-type-row .col:nth-child(5n+3) .xs-my-company-tile {
    --xs-tile-accent: #7c3aed;
    --xs-tile-accent-soft: rgba(124, 58, 237, .12);
    --xs-tile-accent-bg: #f5f3ff;
}

.xs-assets-type-row .col:nth-child(5n+4) .xs-my-company-tile {
    --xs-tile-accent: #d97706;
    --xs-tile-accent-soft: rgba(217, 119, 6, .13);
    --xs-tile-accent-bg: #fffbeb;
}

.xs-assets-type-row .col:nth-child(5n) .xs-my-company-tile {
    --xs-tile-accent: #e11d48;
    --xs-tile-accent-soft: rgba(225, 29, 72, .12);
    --xs-tile-accent-bg: #fff1f2;
}

.xs-assets-type-row .xs-assets-type-tile.is-active {
    border-color: var(--xs-tile-accent) !important;
    box-shadow: 0 .7rem 1.4rem var(--xs-tile-accent-soft) !important;
}

.xs-assets-type-row .xs-assets-type-tile .badge {
    display: none;
}

.xs-assets-type-row .xs-assets-type-tile.is-active .flex-grow-1 > .d-flex::after {
    content: "\F26A";
    color: #64748b;
    font-family: "bootstrap-icons";
    font-size: 1rem;
    line-height: 1;
}

.xs-assets-type-active-badge {
    color: var(--xs-tile-accent);
    background: var(--xs-tile-accent-soft);
    border: 1px solid rgba(255, 255, 255, .65);
}

/* ---------------------------------------------------------------------------
   XS Alerts (floating notifications)
   Inspired by Bootsnipp 0ebmD (adapted for Bootstrap Icons + existing BS5 theme)
--------------------------------------------------------------------------- */
.xs-alerts-host{
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none; /* allow clicks to pass through except on alerts */
}

.xs-alert{
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.18);
}

.xs-alert .xs-alert-icon{
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
}

.xs-alert .xs-alert-message{
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25rem;
    white-space: pre-line; /* keep \n */
    word-break: break-word;
}

.xs-alert .xs-alert-close{
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.9);
    padding: .1rem;
    margin-left: .25rem;
    line-height: 1;
    opacity: .85;
}

.xs-alert .xs-alert-close:hover{
    opacity: 1;
}

.xs-alert-success{ background: #28a745; }
.xs-alert-info{ background: #17a2b8; }
.xs-alert-warning{ background: #f0ad4e; color: #1f1f1f; }
.xs-alert-warning .xs-alert-close{ color: rgba(0,0,0,.75); }
.xs-alert-warning .xs-alert-close:hover{ color: rgba(0,0,0,.95); }
.xs-alert-warning .xs-alert-icon{ background: rgba(0,0,0,.12); }
.xs-alert-danger{ background: #dc3545; }

@media (max-width: 576px){
    .xs-alerts-host{
        left: .75rem;
        right: .75rem;
        top: .75rem;
        max-width: none;
    }
}

/* Moje firma: zachovat bile pozadi, ale zesilit cteni hran panelu na svetlem podkladu. */
body.xs-page-my-company {
    --xs-myco-frame-border: rgba(15, 23, 42, .14);
    --xs-myco-frame-border-strong: rgba(15, 23, 42, .18);
    --xs-myco-frame-shadow: 0 .16rem .55rem rgba(15, 23, 42, .05);
    --xs-myco-frame-shadow-hover: 0 .3rem .9rem rgba(15, 23, 42, .07);
}

body.xs-page-my-company .card,
body.xs-page-my-company .modal-content,
body.xs-page-my-company .accordion-item,
body.xs-page-my-company .list-group,
body.xs-page-my-company .table-responsive,
body.xs-page-my-company .xs-detail-card,
body.xs-page-my-company .xs-summary-card {
    border-color: var(--xs-myco-frame-border) !important;
    box-shadow: var(--xs-myco-frame-shadow);
}

body.xs-page-my-company .card.border-0,
body.xs-page-my-company .modal-content.border-0,
body.xs-page-my-company .accordion-item.border-0 {
    border: 1px solid var(--xs-myco-frame-border) !important;
}

body.xs-page-my-company .card:hover,
body.xs-page-my-company .xs-detail-card:hover,
body.xs-page-my-company .xs-summary-card:hover {
    box-shadow: var(--xs-myco-frame-shadow-hover);
}

body.xs-page-my-company .card-header,
body.xs-page-my-company .card-footer,
body.xs-page-my-company .list-group-item,
body.xs-page-my-company .accordion-button,
body.xs-page-my-company .accordion-body,
body.xs-page-my-company .table > :not(caption) > * > *,
body.xs-page-my-company .nav-tabs,
body.xs-page-my-company .nav-pills,
body.xs-page-my-company .modal-header,
body.xs-page-my-company .modal-footer {
    border-color: var(--xs-myco-frame-border) !important;
}

body.xs-page-my-company .nav-tabs .nav-link,
body.xs-page-my-company .nav-pills .nav-link {
    border: 1px solid transparent;
}

body.xs-page-my-company .nav-tabs .nav-link.active,
body.xs-page-my-company .nav-pills .nav-link.active,
body.xs-page-my-company .nav-tabs .show > .nav-link,
body.xs-page-my-company .nav-pills .show > .nav-link {
    border-color: var(--xs-myco-frame-border-strong) !important;
    box-shadow: 0 .08rem .3rem rgba(15, 23, 42, .05);
}

body.xs-page-my-company .table-responsive {
    border-radius: inherit;
}

body.xs-page-my-company .list-group-item:first-child {
    border-top-color: transparent;
}
