:root {
    --mobius-blue: #3a7ca5;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0px;
}

.e-bigger {
    font-size: x-large;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.theme-dark {
    background-color: #121212;
    color: #e0e0e0;
}

.theme-light {
    background-color: #f1f1f1;
    color: #333333;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.page-wrapper {
    display: flex;
    width: 100%;
}

aside.left-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* MOBILE */
@media (max-width: 768px) {
    .top-panel {
        margin-left: 0px !important;
    }

    .page-wrapper {
        padding-top: 60px;
    }

    aside.left-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
        padding: 0 10px;
        z-index: 1000;
    }

    .logo {
        order: 2;
        margin: 0 auto;
        text-align: center;
        width: auto;
        padding-top: 36px !important;
    }

    #hamburger {
        order: 1;
        margin: 0;
        cursor: pointer;
        font-size: 24px;
    }

    #mobileMenuContent {
        top: 60px;
        left: -250px;
        width: 250px;
        height: calc(100% - 60px);
    }
}

.logo {
    font-size: 24px;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding-top: 14px;
    padding-bottom: 37px;
    text-align: center;
    width: 100%; /* zajmuje całą szerokość kontenera */
    box-sizing: border-box;
    align-self: center;
}

.top-panel {
    background-color: white;
    padding-right: 36px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    margin-left: 18px;
}

.theme-dark .top-panel {
    background-color: #232323;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

.panel {
    background-color: white;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    padding: 22px 25px;
    margin-right: 18px;
    margin-bottom: 18px;
}

.theme-dark .panel {
    background-color: #232323;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

.body {
    padding-top: 33px;
    margin-left: 18px;
}

#user-panel {
    display: flex;
    align-items: center;
}

.e-dropdown-btn {
    background: transparent;
    border: none;
    color: #333;
    font-weight: 500;
}

#userDropdown {
    display: flex;
    align-items: center;
    gap: 2px;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: inherit;
    font-weight: 400;
    padding: 4px 8px;
}

.avatar {
    width: 27px;
    height: 27px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    user-select: none;
    margin-right: 18px;
}

.avatar-big {
    width: 54px;
    height: 54px;
    font-size: 30px;
    margin-bottom: 15px;
}

.space {
    height: 24px;
}

.space-big {
    height: 40px;
}

.menu-header {
    cursor: default;
    font-size: 14px;
    opacity: 0.5;
    margin-top: 32px;
    margin-left: 24px;
}

.menu-icon {
    margin-right: 15px;
    display: math;
    font-size: 18px;
    vertical-align: middle;
}

.node-wrap span:last-child {
    vertical-align: middle;
}

#mobileMenuContent {
    position: fixed;
    top: 0;
    left: -250px; /* ukryte poza ekranem */
    width: 250px;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
}

    #mobileMenuContent.open {
        left: 0; /* menu wchodzi na ekran */
    }

.theme-dark #mobileMenuContent  {
    background-color: #333333;
    color: #e0e0e0;
}

.theme-light #mobileMenuContent  {
    background-color: #e9e9e9;
    color: #333333;
}

#mobileMenuContent .e-listview {
    border: none !important;
    box-shadow: none !important;
}

#closeMobileMenu {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1001;
}

body.light-theme .e-listview {
    background-color: #ffffff;
    color: #333333;
}

body.dark-theme .e-listview {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* Wymuszenie, żeby hamburger był po lewej stronie */
#mobileMenu {
    position: relative;
}

/* Nadpisanie stylu ikony hamburgera */
#hamburger.e-icons.e-menu.default {
    float: left !important; /* usuwa float w prawo */
    text-align: left !important; /* wymusza wyrównanie do lewej */
    display: inline-block !important;
    margin-right: 10px; /* opcjonalny odstęp od menu */
}

#hamburger {
    cursor: pointer;
    font-size: 24px; /* dostosuj wielkość ikony */
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.panel-subtitle {
    font-size: 14px;
    color: gray;
    margin-top: 16px;
}

.tab-content {
    margin: 29px 19px;
}

label {
    margin-bottom: 2px;
}

.form-group {
    margin-bottom: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 500;
}

.e-dialog .e-dlg-content {
    height: auto !important; /* pozwala treści rosnąć */
    max-height: none; /* usuwa limit domyślny */
    overflow: visible !important; /* usuwa scroll */
}

.modal-content {
    background-color: var(--mobius-blue);
}

.modal-header {
    border: none !important;
    color: lightgray !important;
}

/* Przycisk zamykania */
.closeBtn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .closeBtn:hover {
        color: #000;
    }

.mobius-tag {
    display: inline-flex;
    align-items: center;
    background: var(--mobius-blue);
    color: white;
    padding: 4px 6px;
    margin: 4px 4px 0px 0px;
    border-radius: 4px;
    font-size: 0.85em;
    transition: background 0.2s;
}

.grid-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

    .mobius-tag:hover {
        background: #0056b3;
    }

    .mobius-tag button {
        background: transparent;
        border: none;
        color: white;
        margin-left: 6px;
        cursor: pointer;
    }

.button-icon-left {
    margin-left: 5px;
}

.button-icon-right {
    margin-right: 5px;
}

.button-circle-icon {
    border: 1px solid var(--bs-light-text-emphasis);
    border-radius: 20px;
    background: var(--bs-light-text-emphasis);
    padding: 2px;
    font-size: 10pt !important;
    font-weight: bold !important;
    width: auto !important;
}

.mobius-hidden {
    display: none !important;
}

.disabled-label {
    color: gray;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-left: 20px;
    color: gray;
    font-size: 14px;
}

.back-icon {
    font-size: 18px;
}

.user-menu {
    justify-items: end;
}

.error-message {
    color: red;
}

.modal-buttons {
    margin-left: 5px;
    margin-right: 5px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3); 
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobius-modal {
    z-index: 11000;
}

.diabled-grid-button {
    border: none !important;
    background-color: transparent !important;
}

.diabled-grid-icon {
    color: transparent !important;
}

.margin {
    margin-right: 10px;
}

.bottom-margin {
    margin-bottom: 5px;
}

.help-icon {
    color: #4444FF;
    font-size: 11pt;
}

.help-inline {
    margin-right: 5px;
}

.e-btn-group .e-btn {
    color: #BBBBBB;
}

.e-btn-group input:checked + .e-btn {
    color: white !important;
}

/* Ikony w NumberTextBox: */
.e-numeric .e-input-group-icon.e-spin-up:before {
    content: "\e805";
    font-size: 12pt;
    font-weight: 600;
}

.e-numeric .e-input-group-icon.e-spin-down:before {
    content: "\e920";
    font-size: 12pt;
}