html,
body {
    min-height: 100%;
}

.login-box {
    margin-top: 10vh;
    padding: 2rem;
    background: #fff;
    border: 1px solid #dee2e6;
}
.cms-color-primary { color: #0d6efd; }
.cms-color-secondary { color: #6c757d; }
.cms-color-success { color: #198754; }
.cms-color-danger { color: #dc3545; }
.cms-color-dark { color: #212529; }
.cms-editor-color {
    width: 130px;
    flex: 0 0 auto;
}
.admin-user-menu {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.cms-editor {
    border: 1px solid #dee2e6;
    background: #fff;
}

.cms-editor:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.cms-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}
.cms-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cms-editor-toolbar button svg {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    pointer-events: none;
}
.cms-editor-clear-button {
    width: auto;
    padding-left: .55rem;
    padding-right: .55rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.cms-editor-format {
    width: auto;
    min-width: 10rem;
}

.cms-editor-content {
    min-height: 30rem;
    padding: 1rem;
    outline: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
    .cms-editor-content {
        min-height: 360px;
    }
}
.cms-editor-content .cms-text-left {
    text-align: left;
}

.cms-editor-content .cms-text-center {
    text-align: center;
}

.cms-editor-content .cms-text-right {
    text-align: right;
}

.cms-editor-content p:last-child,
.cms-editor-content ul:last-child,
.cms-editor-content ol:last-child,
.cms-editor-content h3:last-child,
.cms-editor-content h4:last-child {
    margin-bottom: 0;
}
.cms-editor-toolbar .btn.active {
    background: #212529;
    border-color: #212529;
    color: #fff;
}

.cms-editor-source-button {
    margin-left: auto;
}

.cms-editor-source {
    min-height: 18rem;
    padding: 1rem;
    border: 0;
    border-top: 1px solid #dee2e6;
    border-radius: 0;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: .9rem;
    line-height: 1.6;
    resize: vertical;
}

.cms-editor-source:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.cms-editor-toolbar button:disabled,
.cms-editor-toolbar select:disabled {
    opacity: .45;
}

.cms-editor-content h3,
.cms-editor-content h4 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

.cms-editor-content p {
    margin-bottom: 1rem;
}

.cms-editor-content ul,
.cms-editor-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.admin-form-page {
    min-height: 100vh;
    background: var(--bs-tertiary-bg);
}

.admin-form-card {
    background: #fff;
    border: 1px solid #dee2e6;
}

.admin-form-card .form-control,
.admin-form-card .form-select {
    background-color: #fff;
    border-color: #bfc5ca;
}

.admin-form-card .form-label {
    font-weight: 600;
}

.admin-form-sidebar {
    position: sticky;
    top: 1rem;
}

@media (max-width: 991.98px) {
    .admin-form-sidebar {
        position: static;
    }
}

.admin-nav-icon {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.admin-nav-icon svg {
    display: block;
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    fill: currentColor;
}
/* =========================================================
   ADMIN TOP
   ========================================================= */

.admin-header {
    background: #fff;
}

.admin-topbar {
    background: #212529;
    color: #fff;
}

.admin-topbar-inner {
    min-height: 3.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.5rem;
}

.admin-brand {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-brand:hover,
.admin-brand:focus {
    color: #fff;
    text-decoration: underline;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;

    font-size: .875rem;
}

.admin-user-name {
    color: #ced4da;
}

.admin-logout {
    color: #fff;
}

.admin-logout:hover,
.admin-logout:focus {
    color: #fff;
}


/* =========================================================
   ADMIN NAVIGATION
   ========================================================= */

.admin-nav {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.admin-nav-items {
    display: flex;
    align-items: stretch;

    gap: .25rem;

    overflow-x: auto;
}

.admin-nav-item {
    position: relative;

    min-width: 6rem;
    min-height: 5.5rem;

    padding: .7rem .9rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: .3rem;

    color: #212529;
    text-decoration: none;

    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item:focus-visible {
    color: #000;
    background: #f1f3f5;
}

.admin-nav-item.active {
    color: #0d6efd;
    background: #eef4fa;
}

.admin-nav-item.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: currentColor;
}

.admin-nav-icon {
    display: block;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;
}

.admin-nav-icon svg {
    display: block;

    width: 32px;
    height: 32px;

    max-width: 32px;
    max-height: 32px;

    fill: currentColor;
}

.admin-nav-label {
    font-size: .8rem;
    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .admin-user-name {
        display: none;
    }

    .admin-nav-item {
        min-width: 5.25rem;
        min-height: 5rem;

        padding-left: .6rem;
        padding-right: .6rem;
    }

    .admin-nav-icon {
        width: 28px;
        height: 28px;

        flex-basis: 28px;
    }

    .admin-nav-icon svg {
        width: 28px;
        height: 28px;

        max-width: 28px;
        max-height: 28px;
    }
}
.media-card .card-img-top {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.media-card .card-body {
    padding: .65rem;
}

.media-card .media-alt {
    font-size: .75rem;
    line-height: 1.3;
}

.cms-media-browser-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.cms-media-browser-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .5rem;
    border: 1px solid #dee2e6;
    background: #fff;
    text-align: left;
}

.cms-media-browser-item:hover,
.cms-media-browser-item:focus-visible {
    border-color: #212529;
}

.cms-media-browser-item:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .25);
    outline-offset: 2px;
}

.cms-media-browser-item img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: .5rem;
}

.cms-media-browser-item span {
    display: block;
    font-size: .75rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {

    .cms-media-browser-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {

    .cms-media-browser-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}
.cms-editor-content img {
    cursor: pointer;
}

.cms-editor-content img.cms-editor-image-selected {
    outline: 3px solid #0d6efd;
    outline-offset: 3px;
}
.cms-img-25 {
    width: 25%;
}

.cms-img-50 {
    width: 50%;
}

.cms-img-75 {
    width: 75%;
}

.cms-img-100 {
    width: 100%;
}

.cms-img-left {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.cms-img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cms-img-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 767.98px) {

    .cms-img-25,
    .cms-img-50,
    .cms-img-75 {
        width: 100%;
    }
}
.cms-editor-image-toolbar {
    position: absolute;
    z-index: 1050;

    display: flex;
    flex-wrap: wrap;
    gap: .35rem;

    max-width: calc(100vw - 2rem);
    padding: .4rem;

    background: rgba(255, 255, 255, .95);
    border: 1px solid #dee2e6;

    box-shadow:
        0 .25rem .75rem
        rgba(0, 0, 0, .15);
}
/* =========================================================
   PAGES LAYOUT
   ========================================================= */

.pages-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.pages-sidebar-column {
    flex: 0 0 260px;
    width: 260px;
    min-width: 0;
}

.pages-content-column {
    flex: 1 1 auto;
    min-width: 0;
}


/*
 * Mniejsze komputery / tablety.
 *
 * Sidebar trafia nad formularz.
 */
@media (max-width: 991.98px) {

    .pages-layout {
        display: block;
    }

    .pages-sidebar-column {
        width: 100%;
        margin-bottom: 2rem;
    }
}
/* =========================================================
   PAGES SIDEBAR
   ========================================================= */

.pages-sidebar {
    border: 1px solid #dee2e6;
    background: #fff;
}

.pages-sidebar-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 1rem;
    font-weight: 700;
}

.pages-sidebar-group {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.pages-sidebar-group:last-child {
    border-bottom: 0;
}

.pages-sidebar-group-title {
    padding: 0 1.1rem .5rem;
    color: #6c757d;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pages-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pages-sidebar-link {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    width: 100%;
    padding: .55rem 1.1rem;
    border-left: 3px solid transparent;
    color: #212529;
    font-size: .875rem;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pages-sidebar-link:hover {
    background: #f8f9fa;
    color: #000;
}

.pages-sidebar-link:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .25);
    outline-offset: -3px;
}

.pages-sidebar-link.is-active {
    border-left-color: #0d6efd;
    background: #eaf2ff;
    color: #0a58ca;
    font-weight: 600;
}

.pages-sidebar-link.is-child {
    padding-left: 1.8rem;
    font-size: .82rem;
}

.pages-sidebar-child-marker {
    flex: 0 0 auto;
    color: #adb5bd;
}

.pages-sidebar-link.is-active
.pages-sidebar-child-marker {
    color: inherit;
}

.media-file-preview {
    min-height: 140px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.media-file-icon {
    font-size: 3rem;
    line-height: 1;
}

.media-file-extension {
    margin-top: .75rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.media-filename {
    font-size: .875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
/* MEDIA - LISTA PLIKÓW */

.media-list {
    background: #fff;
}

.media-list-header,
.media-list-row {
    display: grid;
    grid-template-columns:
        90px
        minmax(220px, 1fr)
        90px
        110px
        120px
        90px;

    align-items: center;
    column-gap: 1rem;
}

.media-list-header {
    min-height: 44px;
    padding: .5rem 1rem;

    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.media-list-row {
    min-height: 76px;
    padding: .65rem 1rem;

    border-bottom: 1px solid #e9ecef;
}

.media-list-row:last-child {
    border-bottom: 0;
}

.media-list-row:hover {
    background: #f8f9fa;
}


/* MINIATURA */

.media-list-preview {
    width: 70px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.media-list-preview img {
    display: block;

    width: 70px;
    height: 52px;

    object-fit: cover;

    border: 1px solid #dee2e6;
}


/* DOKUMENT */

.media-document-icon {
    width: 70px;
    height: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.media-document-icon svg {
    width: 22px;
    height: 22px;
}

.media-document-icon span {
    margin-top: .2rem;

    font-size: .6rem;
    font-weight: 700;
    line-height: 1;
}


/* NAZWA */

.media-list-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.media-list-alt {
    margin-top: .15rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* PARAMETRY */

.media-list-type,
.media-list-size,
.media-list-date {
    font-size: .875rem;
    color: #6c757d;
}

.media-list-actions {
    text-align: right;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .media-list-header {
        display: none;
    }

    .media-list-row {
        grid-template-columns:
            70px
            minmax(0, 1fr)
            auto;

        column-gap: .75rem;
    }

    .media-list-type,
    .media-list-size,
    .media-list-date {
        display: none;
    }

    .media-list-preview {
        width: 60px;
    }

    .media-list-preview img,
    .media-document-icon {
        width: 60px;
        height: 48px;
    }
}
/* MEDIA LIBRARY */

.media-library-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.media-library-sidebar {
    flex: 0 0 260px;
    width: 260px;
    min-width: 0;
}

.media-library-content {
    flex: 1 1 auto;
    min-width: 0;
}

.media-folders {
    border: 1px solid var(--bs-border-color);
    background: #fff;
    padding: 1rem;
}

.media-folder-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;

    padding: .65rem .75rem;

    color: var(--bs-body-color);
    text-decoration: none;

    border-left: 3px solid transparent;
}

.media-folder-link:hover {
    background: var(--bs-tertiary-bg);
}

.media-folder-link.active {
    background: var(--bs-tertiary-bg);
    border-left-color: var(--bs-primary);
    font-weight: 600;
}

.media-folder-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-folder-count {
    flex: 0 0 auto;
    color: var(--bs-secondary-color);
    font-size: .875rem;
}

.media-folders-separator {
    height: 1px;
    margin: .75rem 0;
    background: var(--bs-border-color);
}

@media (max-width: 991.98px) {

    .media-library-layout {
        display: block;
    }

    .media-library-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
} 
.pages-sidebar-home-section {
    padding: .75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.pages-sidebar-link-home {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.pages-sidebar-home-icon {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
}

.pages-sidebar-home {
    display: inline-block;
    margin-left: auto;
    padding: .15rem .4rem;
    border: 1px solid currentColor;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
}