﻿/*----------------*/
/*OTHER*/
.page-header {
    font-size: 1.25rem;
    font-weight: bold;
}

.summary-thumbnail {
    width: 10%;
    margin-right: 1rem;
}

.toolbar {
    border: 1px solid #e5e7eb; /* jawny kolor — Bootstrap 5.1.0 nie definiuje --bs-border-color, a niezdefiniowana zmienna uniewaznia caly skrot border (ramka w ogole sie nie renderuje) */
    background-color: var(--group-panel-color);
    margin-bottom: 0.25rem;
    border-radius: 1rem;
    padding: 0.2rem;
    position: relative;
}

.toolbar-integrations {
    border: 1px solid #e5e7eb; /* jawny kolor — Bootstrap 5.1.0 nie definiuje --bs-border-color, a niezdefiniowana zmienna uniewaznia caly skrot border (ramka w ogole sie nie renderuje) */
    background-color: var(--group-panel-color);
    margin-bottom: 0.25rem;
    border-radius: 1rem;
    position: relative;
}

details-input {
    font-size: 0.8rem;
    align-items: center;
}

.filters {
    white-space: nowrap;
    overflow: hidden;
    padding: 3px;
    position: relative;
}

@media (max-width: 576px) {
    .login-width {
        width: 80%;
    }

        .login-width h2 {
            text-align: center;
            font-size: 1.75rem;
        }
}

.loader-sidebar-expanded {
    left: calc(50% + 150px) !important;
}

.custom-listbox {
    height: 15vh !important;
}

    .custom-listbox .dxbl-listbox-item-selected {
        font-weight: bold;
    }

.form-control {
    height: 500px;
    border-radius: 1rem !important;
}

.form-control-offers {
    height: 350px !important;
    width: 100% !important;
}

.form-control-onlyimage > .dxbl-row {
    justify-content: center;
    height: 100%;
}

.form-control-image {
    justify-content: center;
    height: 100%;
}

.transport-order-docs-grid > .dxbl-row {
    padding: 0 !important;
    margin: 0 !important;
}

    .transport-order-docs-grid > .dxbl-row > .dxbl-grid {
        padding: 0 !important;
    }


.login-content {
    position: relative;
    z-index: 1;
}

.login-shell {
    position: relative;
    overflow: visible;
}

.login-width {
    position: relative;
    z-index: 10;
}



.helpdesk-login-page {
    min-height: 70vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.helpdesk-login-card {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.helpdesk-left {
    position: relative;
    background: #f4f7fb;
    padding: 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .helpdesk-left::before,
    .helpdesk-left::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        filter: blur(50px);
        opacity: 0.7;
    }

    .helpdesk-left::before {
        background: #ffe0cc;
        left: -100px;
        top: 80px;
    }

    .helpdesk-left::after {
        background: #fff1a8;
        right: -80px;
        bottom: 30px;
    }

.helpdesk-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logsoft-text {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    color: #2b2b2b;
    letter-spacing: -0.06em;
}

.logsoft-mark {
    position: relative;
    width: 56px;
    height: 56px;
    animation: rotateMark 18s linear infinite;
}

    .logsoft-mark span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 30px;
        height: 6px;
        background: #ff5a0a;
        border-radius: 999px;
        transform-origin: left center;
    }

        .logsoft-mark span:nth-child(1) {
            transform: rotate(0deg);
        }

        .logsoft-mark span:nth-child(2) {
            transform: rotate(45deg);
        }

        .logsoft-mark span:nth-child(3) {
            transform: rotate(90deg);
        }

        .logsoft-mark span:nth-child(4) {
            transform: rotate(135deg);
        }

        .logsoft-mark span:nth-child(5) {
            transform: rotate(180deg);
        }

        .logsoft-mark span:nth-child(6) {
            transform: rotate(225deg);
        }

        .logsoft-mark span:nth-child(7) {
            transform: rotate(270deg);
        }

        .logsoft-mark span:nth-child(8) {
            transform: rotate(315deg);
        }

    .logsoft-mark div {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 24px;
        height: 24px;
        background: #ff5a0a;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

.helpdesk-animation {
    position: relative;
    z-index: 2;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yellow-blob {
    position: absolute;
    width: 340px;
    height: 320px;
    background: #ffdc57;
    border-radius: 42% 58% 50% 50% / 55% 45% 55% 45%;
    animation: blobMove 8s ease-in-out infinite;
}

.support-window {
    position: relative;
    z-index: 3;
    width: 300px;
    height: 190px;
    background: #fff;
    border: 4px solid #282828;
    border-radius: 1.6rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
    animation: floatMain 3s ease-in-out infinite;
}

.window-header {
    height: 42px;
    background: #ff5a0a;
    border-bottom: 4px solid #282828;
    border-radius: 1.25rem 1.25rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

    .window-header span {
        width: 11px;
        height: 11px;
        background: #fff;
        border-radius: 50%;
    }

        .window-header span:nth-child(2) {
            opacity: 0.75;
        }

        .window-header span:nth-child(3) {
            opacity: 0.5;
        }

.window-body {
    padding: 1.4rem;
}

.line {
    height: 10px;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.line-orange {
    width: 145px;
    background: #ffdc57;
    animation: lineOne 2.5s ease-in-out infinite;
}

.line-gray {
    width: 210px;
    background: #e5e7eb;
    animation: lineTwo 2.8s ease-in-out infinite;
}

.line-short {
    width: 165px;
}

.support-user {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.avatar {
    width: 48px;
    height: 48px;
    background: #ff5a0a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    animation: pulseAvatar 1.8s ease-in-out infinite;
}

.user-line {
    height: 8px;
    border-radius: 999px;
}

    .user-line.dark {
        width: 110px;
        background: #282828;
        margin-bottom: 0.5rem;
    }

    .user-line.light {
        width: 80px;
        background: #cbd5e1;
    }

.floating-icon {
    position: absolute;
    z-index: 4;
    width: 74px;
    height: 74px;
    background: #fff;
    border-radius: 1.4rem;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

    .floating-icon img {
        max-width: 82%;
        max-height: 82%;
        object-fit: contain;
    }

    .floating-icon i {
        color: #ff5a0a;
    }

.icon-headset {
    left: 12%;
    top: 12%;
    animation: floatLeft 5s ease-in-out infinite;
}

.icon-chat {
    right: 14%;
    top: 18%;
    animation: floatTop 3.2s ease-in-out infinite;
}

.icon-ticket {
    left: 16%;
    bottom: 14%;
    animation: floatBottom 4s ease-in-out infinite;
}

.icon-shield {
    right: 12%;
    bottom: 16%;
    animation: floatRight 4.3s ease-in-out infinite;
}

.dot {
    position: absolute;
    z-index: 2;
    width: 8px;
    height: 8px;
    background: #282828;
    border-radius: 50%;
    animation: dotPulse 2.4s ease-in-out infinite;
}

.dot-1 {
    left: 20%;
    top: 70%;
    animation-delay: 0s;
}

.dot-2 {
    left: 76%;
    top: 30%;
    animation-delay: 0.3s;
}

.dot-3 {
    left: 64%;
    top: 78%;
    animation-delay: 0.6s;
}

.dot-4 {
    left: 34%;
    top: 20%;
    animation-delay: 0.9s;
}

.helpdesk-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

    .helpdesk-copy h1 {
        color: #282828;
        font-size: 2.2rem;
        line-height: 1.12;
        font-weight: 600;
        margin-bottom: 1rem;
        letter-spacing: -0.04em;
    }

    .helpdesk-copy p {
        color: #64748b;
        font-size: 1rem;
        line-height: 1.7;
        margin: 0;
    }

.helpdesk-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #fff;
}

.login-panel {
    width: 100%;
    max-width: 430px;
}

.login-heading {
    margin-bottom: 1.0rem;
}

    .login-heading span {
        display: block;
        color: #ff5a0a;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        margin-bottom: 0.6rem;
    }

    .login-heading h2 {
        color: #282828;
        font-size: 2.6rem;
        font-weight: 600;
        letter-spacing: -0.05em;
        margin: 0;
    }

    .login-heading p {
        color: #64748b;
        margin-top: 0.8rem;
        margin-bottom: 0;
    }

.login-input {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    min-height: 58px;
}

    .login-input:focus {
        border-color: #ff5a0a;
        box-shadow: 0 0 0 0.25rem rgba(255, 90, 10, 0.16);
        background: #fff;
    }

.login-submit {
    width: 100%;
    min-height: 58px;
    border-radius: 1rem;
    background-color: #ff5a0a;
    border: 1px solid #ff5a0a;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0.75rem;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .login-submit:hover,
    .login-submit:focus {
        background: #e64f08;
        border-color: #e64f08;
        color: #ffffff;
        box-shadow: 0 0 0 0.25rem rgba(255, 90, 10, 0.25);
    }

.login-policy {
    margin-top: 1.2rem;
    color: #64748b;
    text-align: center;
    font-size: 0.8rem;
}

    .login-policy a {
        color: #64748b;
        text-decoration: underline;
    }

.login-failed-alert {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@keyframes rotateMark {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blobMove {
    0%, 100% {
        border-radius: 42% 58% 50% 50% / 55% 45% 55% 45%;
        transform: scale(1);
    }

    50% {
        border-radius: 55% 45% 60% 40% / 45% 58% 42% 55%;
        transform: scale(1.04);
    }
}

@keyframes floatMain {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatTop {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes floatBottom {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(12px) rotate(-4deg);
    }
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(8deg);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes pulseAvatar {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

@keyframes lineOne {
    0%, 100% {
        width: 145px;
    }

    50% {
        width: 200px;
    }
}

@keyframes lineTwo {
    0%, 100% {
        width: 210px;
    }

    50% {
        width: 160px;
    }
}

@media (max-width: 992px) {
    .helpdesk-login-card {
        grid-template-columns: 1fr;
    }

    .helpdesk-left {
        min-height: 560px;
    }

    .helpdesk-right {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .helpdesk-login-page {
        padding: 1rem;
    }

    .helpdesk-left {
        padding: 2rem;
    }

    .logsoft-text {
        font-size: 2.4rem;
    }

    .helpdesk-copy h1 {
        font-size: 1.8rem;
    }

    .floating-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .support-window {
        width: 260px;
    }
}



.ticket-animation {
    position: relative;
    z-index: 2;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-blob {
    position: absolute;
    width: 350px;
    height: 320px;
    background: #ffdc57;
    border-radius: 46% 54% 51% 49% / 52% 42% 58% 48%;
    animation: ticketBlob 8s ease-in-out infinite;
}

.ticket-card-main {
    position: relative;
    z-index: 4;
    width: 320px;
    min-height: 215px;
    background: #fff;
    border: 4px solid #282828;
    border-radius: 1.6rem;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    animation: ticketFloatMain 3.4s ease-in-out infinite;
}

.ticket-card-header {
    height: 44px;
    background: #ff5a0a;
    border-bottom: 4px solid #282828;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.2rem;
}

    .ticket-card-header span {
        width: 11px;
        height: 11px;
        background: #fff;
        border-radius: 50%;
    }

        .ticket-card-header span:nth-child(2) {
            opacity: 0.75;
        }

        .ticket-card-header span:nth-child(3) {
            opacity: 0.5;
        }

.ticket-card-body {
    padding: 1.4rem;
}

.ticket-number {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #fff4e8;
    color: #ff5a0a;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
}

.ticket-line {
    height: 10px;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.ticket-line-orange {
    width: 190px;
    background: #ffdc57;
    animation: ticketLineOrange 2.6s ease-in-out infinite;
}

.ticket-line-gray {
    width: 235px;
    background: #e5e7eb;
    animation: ticketLineGray 2.9s ease-in-out infinite;
}

    .ticket-line-gray.short {
        width: 165px;
    }

.ticket-status-row {
    margin-top: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ticket-status-dot {
    width: 46px;
    height: 46px;
    background: #ff5a0a;
    border-radius: 50%;
    position: relative;
    animation: ticketPulse 1.8s ease-in-out infinite;
}

    .ticket-status-dot::after {
        content: "";
        position: absolute;
        left: 15px;
        top: 10px;
        width: 14px;
        height: 22px;
        border-right: 4px solid #fff;
        border-bottom: 4px solid #fff;
        transform: rotate(45deg);
    }

.ticket-small-line {
    height: 8px;
    border-radius: 999px;
}

    .ticket-small-line.dark {
        width: 118px;
        background: #282828;
        margin-bottom: 0.5rem;
    }

    .ticket-small-line.light {
        width: 82px;
        background: #cbd5e1;
    }

.ticket-floating-card {
    position: absolute;
    z-index: 5;
    min-width: 100px;
    min-height: 80px;
    padding: 0.8rem 1rem;
    background: #fff;
    border-radius: 1.3rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    color: #282828;
    font-weight: 900;
    font-size: 0.8rem;
}

    .ticket-floating-card i {
        color: #ff5a0a;
        font-size: 1.45rem;
    }

.card-mail {
    left: 7%;
    top: 12%;
    animation: ticketFloatLeft 4.8s ease-in-out infinite;
}

.card-attachment {
    right: 5%;
    top: 17%;
    animation: ticketFloatTop 3.8s ease-in-out infinite;
}

.card-status {
    left: 10%;
    bottom: 16%;
    animation: ticketFloatBottom 4.2s ease-in-out infinite;
}

.card-history {
    right: 8%;
    bottom: 13%;
    animation: ticketFloatRight 4.5s ease-in-out infinite;
}

.ticket-dot {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    background: #282828;
    border-radius: 50%;
    animation: ticketDotPulse 2.4s ease-in-out infinite;
}

.dot-a {
    left: 23%;
    top: 67%;
    animation-delay: 0s;
}

.dot-b {
    left: 74%;
    top: 29%;
    animation-delay: 0.3s;
}

.dot-c {
    left: 63%;
    top: 78%;
    animation-delay: 0.6s;
}

.dot-d {
    left: 35%;
    top: 22%;
    animation-delay: 0.9s;
}

.login-benefit-box {
    margin-top: 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}

    .login-benefit-box i {
        color: #ff5a0a;
        font-size: 1.2rem;
        margin-top: 0.1rem;
    }

.submit-login-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 1rem;
    margin-bottom: 1.3rem;
    border-radius: 1.2rem;
    background: #fff7ed;
    border: 1px solid rgba(255, 90, 10, 0.18);
    color: #475569;
}

    .submit-login-hint i {
        color: #ff5a0a;
        font-size: 1.4rem;
        margin-top: 0.1rem;
    }

    .submit-login-hint strong {
        display: block;
        color: #282828;
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .submit-login-hint span {
        display: block;
        font-size: 0.86rem;
        line-height: 1.45;
    }

.submit-form-layout .dxbl-fl-cpt {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.submit-dx-combobox {
    width: 100%;
}

    .submit-dx-combobox .dxbl-btn {
        min-width: 2rem;
    }

.submit-success-panel {
    text-align: center;
}

.success-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.3rem;
    background: #ff5a0a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(255, 90, 10, 0.28);
    animation: successPop 1.8s ease-in-out infinite;
}

    .success-icon i {
        font-size: 2.1rem;
    }

.submit-label {
    display: block;
    color: #ff5a0a;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 0.6rem;
}

.submit-success-panel h2 {
    color: #282828;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.8rem;
}

.submit-success-panel p {
    color: #64748b;
}

.ticket-number-box {
    margin: 1.6rem 0;
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

    .ticket-number-box span {
        display: block;
        color: #64748b;
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .ticket-number-box strong {
        display: block;
        color: #282828;
        font-size: 1.6rem;
        font-weight: 900;
    }

@keyframes ticketBlob {
    0%, 100% {
        border-radius: 46% 54% 51% 49% / 52% 42% 58% 48%;
        transform: scale(1);
    }

    50% {
        border-radius: 55% 45% 60% 40% / 45% 58% 42% 55%;
        transform: scale(1.04);
    }
}

@keyframes ticketFloatMain {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-9px) rotate(-1deg);
    }
}

@keyframes ticketFloatTop {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes ticketFloatBottom {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(12px) rotate(-4deg);
    }
}

@keyframes ticketFloatLeft {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(6deg);
    }
}

@keyframes ticketFloatRight {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes ticketPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes ticketDotPulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

@keyframes ticketLineOrange {
    0%, 100% {
        width: 190px;
    }

    50% {
        width: 235px;
    }
}

@keyframes ticketLineGray {
    0%, 100% {
        width: 235px;
    }

    50% {
        width: 175px;
    }
}

@keyframes successPop {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 576px) {
    .ticket-floating-card {
        min-width: 92px;
        min-height: 56px;
        font-size: 0.7rem;
        padding: 0.65rem;
    }

        .ticket-floating-card i {
            font-size: 1.15rem;
        }

    .ticket-card-main {
        width: 270px;
    }
}



.status-panel {
    max-height: 640px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.status-ticket-animation {
    position: relative;
    z-index: 2;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-card-main {
    position: relative;
    z-index: 4;
    width: 320px;
    min-height: 230px;
    background: #fff;
    border: 4px solid #282828;
    border-radius: 1.6rem;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    animation: ticketFloatMain 3.4s ease-in-out infinite;
}

.status-card-header {
    height: 44px;
    background: #ff5a0a;
    border-bottom: 4px solid #282828;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.2rem;
}

    .status-card-header span {
        width: 11px;
        height: 11px;
        background: #fff;
        border-radius: 50%;
    }

        .status-card-header span:nth-child(2) {
            opacity: 0.75;
        }

        .status-card-header span:nth-child(3) {
            opacity: 0.5;
        }

.status-card-body {
    padding: 1.4rem;
}

.status-ticket-number {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #fff4e8;
    color: #ff5a0a;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
}

.status-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

    .status-progress::before {
        content: "";
        position: absolute;
        top: 15px;
        left: 22px;
        right: 22px;
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
    }

    .status-progress::after {
        content: "";
        position: absolute;
        top: 15px;
        left: 22px;
        width: 48%;
        height: 4px;
        background: #ff5a0a;
        border-radius: 999px;
        animation: statusProgress 2.8s ease-in-out infinite;
    }

.status-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 33.333%;
}

    .status-step span {
        width: 34px;
        height: 34px;
        margin: 0 auto 0.45rem;
        display: block;
        background: #e5e7eb;
        border: 4px solid #fff;
        border-radius: 50%;
        box-shadow: 0 0 0 2px #e5e7eb;
    }

    .status-step.active span {
        background: #ff5a0a;
        box-shadow: 0 0 0 2px #ff5a0a;
    }

    .status-step p {
        margin: 0;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 800;
    }

.card-number {
    right: 8%;
    bottom: 13%;
    animation: ticketFloatRight 4.5s ease-in-out infinite;
}

.status-empty-box {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff7ed;
    border: 1px solid rgba(255, 90, 10, 0.2);
    color: #475569;
}

    .status-empty-box strong {
        display: block;
        color: #282828;
        margin-bottom: 0.25rem;
    }

    .status-empty-box span {
        display: block;
        font-size: 0.9rem;
    }

.status-ticket-result {
    margin-top: 1.4rem;
    padding: 1.1rem;
    border-radius: 1.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.status-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .status-result-header span {
        display: block;
        color: #64748b;
        font-size: 0.78rem;
        margin-bottom: 0.25rem;
    }

    .status-result-header strong {
        display: block;
        color: #282828;
        font-size: 1.35rem;
        font-weight: 900;
    }

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

.status-new {
    background: #e0f2fe;
    color: #075985;
}

.status-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-waiting-customer {
    background: #fef3c7;
    color: #92400e;
}

.status-waiting-support {
    background: #ede9fe;
    color: #5b21b6;
}

.status-resolved {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #e5e7eb;
    color: #111827;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-default {
    background: #e5e7eb;
    color: #374151;
}

.status-result-subject {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #282828;
    font-weight: 800;
    margin-bottom: 1rem;
}

.status-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .status-result-grid div {
        padding: 0.8rem 1rem;
        border-radius: 1rem;
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    .status-result-grid span {
        display: block;
        color: #64748b;
        font-size: 0.76rem;
        margin-bottom: 0.25rem;
    }

    .status-result-grid strong {
        color: #282828;
        font-size: 0.92rem;
    }

.status-messages {
    margin-top: 1rem;
}

.status-messages-title {
    color: #282828;
    font-weight: 900;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.status-message {
    padding: 0.85rem;
    border-radius: 1rem;
    margin-bottom: 0.7rem;
}

    .status-message.support {
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    .status-message.customer {
        background: #fff7ed;
        border: 1px solid rgba(255, 90, 10, 0.18);
    }

.status-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.status-message p {
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

@keyframes statusProgress {
    0%, 100% {
        width: 42%;
    }

    50% {
        width: 58%;
    }
}

.service-health-page {
    min-height: 100vh;
    padding: 2rem;
}

.service-health-shell {
    max-width: 1240px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.service-health-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff5a0a;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.service-health-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a0a;
}

.service-health-topbar h1 {
    margin: 0 0 0.6rem 0;
    font-size: 2.6rem;
    font-weight: 900;
    color: #282828;
    letter-spacing: -0.04em;
}

.service-health-topbar p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.service-health-meta {
    min-width: 220px;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

    .service-health-meta span {
        display: block;
        font-size: 0.78rem;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    .service-health-meta strong {
        color: #282828;
        font-size: 0.95rem;
        font-weight: 800;
    }

.service-health-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-health-overview-card,
.service-health-services-card,
.service-health-history-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.service-health-overview-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-health-overview-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .service-health-overview-icon span {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #16a34a;
        position: relative;
    }

        .service-health-overview-icon span::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 2px;
            width: 5px;
            height: 10px;
            border-right: 2px solid white;
            border-bottom: 2px solid white;
            transform: rotate(45deg);
        }

.service-health-overview-header h2 {
    margin: 0 0 0.45rem 0;
    color: #16a34a;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.service-health-overview-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.service-health-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-health-summary-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

    .service-health-summary-box span {
        display: block;
        color: #64748b;
        font-size: 0.78rem;
        margin-bottom: 0.35rem;
    }

    .service-health-summary-box strong {
        color: #282828;
        font-size: 1.6rem;
        font-weight: 900;
    }

.service-health-incidents-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.service-health-incidents-title {
    color: #282828;
    font-weight: 900;
    margin-bottom: 0.45rem;
}

.service-health-incidents-box p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.service-health-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .service-health-section-title h3 {
        margin: 0;
        color: #282828;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .service-health-section-title span {
        color: #64748b;
        font-size: 0.82rem;
    }

.service-health-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.service-health-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
}

.service-health-service-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.service-health-logo-box {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .service-health-logo-box img {
        max-width: 34px;
        max-height: 34px;
        object-fit: contain;
    }

.service-health-service-info strong {
    display: block;
    color: #282828;
    font-size: 0.98rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.service-health-service-info span {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
}

.service-health-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.service-health-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-coming-soon {
    background: #fef3c7;
    color: #92400e;
}

.status-unknown {
    background: #e5e7eb;
    color: #374151;
}

.service-health-history-card {
    margin-top: 0;
}

.service-health-history-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

    .service-health-history-item:last-child {
        margin-bottom: 0;
    }

.service-health-history-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

    .service-health-history-icon.success {
        background: #16a34a;
    }

    .service-health-history-icon.soon {
        background: #d97706;
    }

.service-health-history-item strong {
    display: block;
    color: #282828;
    margin-bottom: 0.25rem;
    font-weight: 900;
}

.service-health-history-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .service-health-grid {
        grid-template-columns: 1fr;
    }

    .service-health-topbar {
        flex-direction: column;
    }

    .service-health-meta {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .service-health-page {
        padding: 1rem;
    }

    .service-health-shell {
        padding: 1.2rem;
        border-radius: 1.3rem;
    }

    .service-health-summary-row {
        grid-template-columns: 1fr;
    }

    .service-health-service-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-health-service-right {
        width: 100%;
    }
}

.okapi-static {
    position: absolute;
    left: -153px;
    bottom: 60px;
    width: 220px;
    pointer-events: none;
    z-index: 1;
}

    .okapi-static img {
        width: 100%;
        height: auto;
        display: block;
        animation: okapi-wave 2.8s ease-in-out infinite;
        transform-origin: 80% 70%;
    }

@keyframes okapi-wave {
    0% {
        transform: rotate(0deg) translateX(0);
    }

    30% {
        transform: rotate(1deg) translateX(2px);
    }

    60% {
        transform: rotate(-1deg) translateX(-1px);
    }

    100% {
        transform: rotate(0deg) translateX(0);
    }
}



.login-failed-alert ul {
    padding: 0;
}

    .login-failed-alert ul li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

.button-logout {
    background-color: var(--main-color);
    border: none;
    transition: filter 0.3s ease;
}

    .button-logout:hover {
        background-color: var(--main-color-hover) !important;
    }

.nav-transition .expand-btn {
    transition: none !important;
}

.chatbot-window {
    min-width: 300px !important;
}

    .chatbot-window .dxbl-fl-group {
        padding: 0.25rem;
    }

.announcement-hover {
    transition: ease-out 0.2s;
}

    .announcement-hover:hover {
        background-color: var(--main-color-subtle);
    }


.button-container {
    position: relative;
    min-height: 30px;
    border: 1px solid transparent;
}

.button-bottom-right {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.addon-text-w-15 {
    width: 15%;
    flex-shrink: 0;
}

    .addon-text-w-15 input {
        padding: 0 0.2rem;
    }

.integration-empty-height {
    height: 3px;
}

.offer-details-link-h100 > .dxbl-fl-ctrl {
    height: 100% !important;
}

.text-area-content-class {
    height: 100%;
}

.toolbar-item-selected {
    background-color: #fae1d2;
    /*    border: 1px solid #007bff;*/
    border-radius: 4px;
    /*    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);*/
}

.toolbar-item-active {
    background-color: #fae1d2;
    /*    border: 1px solid #007bff; */
    border-radius: 4px;
    padding: 5px;
    /*    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); */
}


.transparent-button {
    background-color: transparent !important;
    border-color: transparent !important;
}

    .transparent-button .oi {
        font-size: 16px;
        margin-left: 5px;
    }


.index-title-color {
    color: var(--main-color) !important;
}

.equal-height {
    height: 100%;
    padding: 0;
    margin: 0;
}

.text-end {
    visibility: visible;
}

.chart-min-height-100 {
    height: 500px;
}

    .chart-min-height-100 .dxbl-row {
        height: 100%;
    }

        .chart-min-height-100 .dxbl-row .dxbl-col {
            height: 100%;
        }

            .chart-min-height-100 .dxbl-row .dxbl-col .dxbl-fl-ctrl {
                height: 100%;
                margin-top: 0;
            }

.import-window {
    width: 30vw;
}

    .import-window .col-auto {
        margin: 0 auto;
    }

        .import-window .col-auto button {
            width: 100%;
        }

    .import-window .dxuc-button-container {
        height: max-content;
    }

.dxbl-form-layout-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hugerte-wrapper textarea {
    height: 500px;
    width: 100%;
    border: 2px solid #eee;
    border-radius: 10px;
    visibility: hidden;
    position: relative;
    color: transparent;
}

.hugerte-wrapper {
    width: 100%;
}

.dx-optional-parameters-card dxbl-group-control {
    border-top-width: 1px;
    margin-top: 0.5rem;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.export-products-window {
    min-width: 30vw !important;
}

/*combobox dropdown height*/
.combobox_dropdown-300 dxbl-listbox {
    max-height: 300px !important;
}

.combobox_dropdown-500 dxbl-listbox {
    max-height: 500px !important;
}

.custom-w-50px {
    width: 50px !important;
}

.user-profile .logo-container {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

.user-profile .log-off-btn {
    padding-top: 8px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-top: 1px solid #e5e5e5;
}

/* Profile viewer (avatar dropdown) — odstępy jak w OK-API + badge roli/grupy, które się mieszczą (zawijanie) */
.user-profile {
    padding: 6px 14px 4px;
}

    /* Szerszy kontener niż domyślne 150px, żeby badge roli/grupy się nie ucinały */
    .user-profile .user-name-container {
        width: 270px;
        max-width: 270px;
    }

    .user-profile .profile-badges {
        flex-wrap: wrap;
        row-gap: 4px;
        margin-top: 8px;
        overflow: visible;
    }

        /* Badge nie może wychodzić poza kontener; bardzo długie nazwy grup mogą się zawinąć */
        .user-profile .profile-badges .badge {
            max-width: 100%;
            white-space: normal;
            word-break: break-word;
        }

.menu-icon-user-profile {
    opacity: 0.75;
}

.user-profile .menu-icon-user-profile {
    opacity: 0.25;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.user-name-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    overflow: hidden;
    width: 150px;
}

    .user-name-container .tm-8 {
        opacity: 0.8;
    }

.user-profile .log-off-btn ul.nav li.dx-menu-item > dxbl-menu-item > a.dx-menu-vertical-item:focus,
.user-profile .log-off-btn ul.nav li.dx-menu-item > dxbl-menu-item > a.dx-menu-vertical-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.user-profile .log-off-btn ul.nav li.dx-menu-item > dxbl-menu-item > a.dx-menu-vertical-item:hover {
    background: transparent !important;
}

/* Szersze i luźniejsze pozycje w menu profilu (jak w widoku referencyjnym):
   pełna szerokość, większy padding pionowy/poziomy oraz odstęp ikona–tekst. */
.user-profile .log-off-btn {
    width: 100%;
}

    .user-profile .log-off-btn .dxbl-menu {
        --dxbl-menu-item-padding-x: 0.95rem;
        --dxbl-menu-item-padding-x-s: 0.95rem;
        --dxbl-menu-item-padding-x-m: 0.95rem;
        --dxbl-menu-item-padding-y: 0.6rem;
        --dxbl-menu-item-padding-y-s: 0.6rem;
        --dxbl-menu-item-padding-y-m: 0.6rem;
    }

    /* Pozycje na pełną szerokość, tekst wyrównany do lewej (nie wyśrodkowany) */
    .user-profile .log-off-btn .dxbl-menu-item,
    .user-profile .log-off-btn .dxbl-menu-item-text-container {
        width: 100%;
        justify-content: flex-start;
    }

    /* Wyraźny odstęp między ikoną a tekstem */
    .user-profile .log-off-btn .dxbl-menu .icon {
        margin-right: 0.85rem !important;
    }

.user-profile .log-off-btn ul.nav li.dx-menu-item > dxbl-menu-item > a.dx-menu-vertical-item {
    -webkit-tap-highlight-color: transparent;
    /* Więcej powietrza między pozycjami (Konto / Faktury / Wyloguj) — nie tak ściśnięte */
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.6rem;
}

/* Odstęp między kolejnymi pozycjami menu profilu */
.user-profile .log-off-btn ul.nav li.dx-menu-item {
    margin-top: 2px;
    margin-bottom: 2px;
}

    .user-profile .log-off-btn ul.nav li.dx-menu-item:first-child {
        margin-top: 0;
    }

.nip-alert {
    margin-bottom: 0px;
    margin-top: 4px;
}

.custom-height-24px {
    height: 24px !important;
}

.integration-columns .dxbl-tabs-item {
    position: relative;
}

.integration-tabs .dxbl-tabs-item {
    position: relative;
    --dxbl-tabs-tab-selected-bg: white;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.settings-tile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.2rem !important;
    cursor: pointer;
    position: relative;
    background-color: white;
    border-radius: 12px;
}

    .settings-tile:hover {
        transform: scale(1.03);
        box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    }

.stats-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

    .stats-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    }

.stats-card-value {
    font-size: 30px;
    font-weight: 500;
    color: #0f172a;
}


.settings-tile-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.settings-tile-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.settings-tile-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.settings-tile-arrow span {
    font-size: 1rem;
    color: #9ca3af;
}

/* Kolory ikon */
.tile-blue {
    background: #3b82f6;
}

.tile-light-blue {
    background: #0ea5e9;
}

.tile-sky {
    background: #38bdf8;
}

.tile-cyan {
    background: #06b6d4;
}

.tile-teal {
    background: #14b8a6;
}

.tile-green {
    background: #22c55e;
}

.tile-lime {
    background: #84cc16;
}

.tile-yellow {
    background: #eab308;
}

.tile-amber {
    background: #f59e0b;
}

.tile-orange {
    background: #f97316;
}

.tile-deep-orange {
    background: #ea580c;
}

.tile-red {
    background: #ef4444;
}

.tile-rose {
    background: #f43f5e;
}

.tile-pink {
    background: #ec4899;
}

.tile-fuchsia {
    background: #d946ef;
}

.tile-purple {
    background: #8b5cf6;
}

.tile-violet {
    background: #7c3aed;
}

.tile-indigo {
    background: #6366f1;
}

.tile-dark-indigo {
    background: #4338ca;
}

.tile-gray {
    background: #6b7280;
}

.tile-slate {
    background: #475569;
}

.tile-zinc {
    background: #52525b;
}

.tile-neutral {
    background: #737373;
}

.tile-stone {
    background: #78716c;
}

.tile-black {
    background: #18181b;
}

.tile-white {
    background: #f9fafb;
    color: #111827;
}

.tile-gold {
    background: #d4af37;
}

.tile-silver {
    background: #c0c0c0;
    color: #111827;
}

.tile-bronze {
    background: #cd7f32;
}

.tile-brown {
    background: #92400e;
}

.tile-coffee {
    background: #6f4e37;
}

.tile-mint {
    background: #98ff98;
    color: #111827;
}

.tile-olive {
    background: #808000;
}

.tile-navy {
    background: #001f3f;
}

.tile-aqua {
    background: #00ffff;
    color: #111827;
}

.tile-magenta {
    background: #ff00ff;
}

.tile-second {
    background: #f1c5a5;
}

.chart-bg-primary path {
    stroke: var(--bs-primary) !important;
}

.chart-bg-warning path {
    stroke: var(--bs-warning) !important;
}

.chart-bg-success path {
    stroke: var(--bs-success) !important;
}

.chart-bg-info path {
    stroke: var(--bs-info) !important;
}

.top-products {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    color: black;
    background: white;
    padding: 0.25rem;
}

.top-products-header {
    position: relative;
    text-align: center;
    color: black;
    font-size: 1.05rem;
    font-weight: 600;
}

.analytics-panel-minh {
    min-height: 660px;
    max-height: 660px;
    margin-top: 4px;
    border-radius: 18px;
}

.avg-fulfillment-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.settings-section {
    margin-bottom: 4px;
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.settings-section-header {
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    position: relative;
}

    .settings-section-header h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .settings-section-header p {
        margin: 0.15rem 0 0;
        font-size: 0.8rem;
        color: #6b7280;
    }

@media (max-width: 1100px) {
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.invoices-summary {
    width: 100%;
    margin-top: 6px;
}

    .invoices-summary .settings-tile {
        cursor: default;
        min-width: 220px;
        padding: 0.75rem 1rem;
    }

        .invoices-summary .settings-tile .settings-tile-icon {
            width: 40px;
            height: 40px;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
        }

        .invoices-summary .settings-tile .settings-tile-text h3 {
            font-size: 0.95rem;
            margin-bottom: 0.2rem;
        }

        .invoices-summary .settings-tile .settings-tile-text p {
            font-size: 0.85rem;
            margin-bottom: 0;
            opacity: 0.8;
        }

    .invoices-summary .d-flex {
        flex-wrap: wrap;
    }

@media (max-width: 768px) {
    .invoices-summary .settings-tile {
        flex: 1 1 100%;
    }
}

.send-order-card {
    background: #fff;
    border: 1px solid #e5e7eb; /* jawny kolor — Bootstrap 5.1.0 nie definiuje --bs-border-color, a niezdefiniowana zmienna uniewaznia caly skrot border (ramka w ogole sie nie renderuje) */
    border-radius: 1rem;
    padding: 14px;
}

.icon-btn-disabled {
    background: transparent;
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.is-active .icon-bs-black-small,
.is-active .icon-bs-black-medium {
    filter: invert(100%) brightness(115%) contrast(100%) !important;
}

.order-details-page-actions-left {
    display: flex;
    align-items: start;
    gap: 8px;
}

.order-details-page-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .order-details-page-actions-right .dxbl-btn,
    .order-details-page-actions-right .dxbl-btn-inner {
        border-radius: 8px;
    }

/* Help.razor page */
.help-page-container {
    padding: 1rem;
}

.help-content-wrapper {
    gap: 2rem;
}

.help-main-content {
    min-height: 500px;
}

.help-content-display {
    padding: 1rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

    .help-content-display h1,
    .help-content-display h2,
    .help-content-display h3,
    .help-content-display h4,
    .help-content-display h5,
    .help-content-display h6 {
        scroll-margin-top: 80px;
        padding-top: 0.5rem;
        margin-top: 1rem;
    }

    .help-content-display img {
        max-width: 100%;
        height: auto;
        cursor: pointer;
    }

    .help-content-display a {
        color: var(--main-color);
        text-decoration: underline;
    }

.help-editor {
    min-height: 500px;
}

.toc-container {
    background: #f8f9fa;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.help-toc-sidebar .toc-link {
    text-decoration: none;
    color: #495057;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    display: block;
    padding: 0.25rem 0;
}

    .help-toc-sidebar .toc-link:hover {
        color: var(--main-color);
        background-color: #f8f9fa;
        border-left-color: var(--main-color);
    }

.sidebar.okapi-sidebar {
    width: 280px;
    min-width: 280px;
    transition: width 0.25s ease-in-out, min-width 0.25s ease-in-out, padding 0.25s ease-in-out;
}

    .sidebar.okapi-sidebar.sidebar-collapsed {
        width: 70px !important;
        min-width: 70px !important;
        padding-left: 8px;
        padding-right: 8px;
    }

.search-result-item {
    transition: all 0.2s;
}

    .search-result-item:hover {
        background-color: #f8f9fa;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .search-result-item mark {
        background-color: #fff3cd;
        padding: 2px 4px;
        border-radius: 2px;
    }

.toc-toggle-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 1000;
}

    .toc-toggle-button:hover {
        background-color: var(--main-color-hover);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        transform: translateY(-50%) scale(1.1);
    }

    .toc-toggle-button .oi {
        font-size: 1.2rem;
    }

@media (max-width: 992px) {
    .help-toc-sidebar {
        display: none;
    }

    .toc-toggle-button {
        display: none;
    }
}
/*---------------------------*/

/*---------------------------*/
/* Announcement Popup Styles */
/*---------------------------*/
.announcement-popup .dxbl-popup-content {
    padding: 0 !important;
    background-color: #fff !important;
}

.announcement-popup-details {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    max-height: 90vh;
    background-color: #fff;
}

.announcement-popup-header {
    padding: 2rem 2.5rem 1rem 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
}

.announcement-popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.announcement-popup-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
}

.announcement-popup-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.announcement-popup-meta-text {
    font-weight: 500;
}

.announcement-popup-meta-separator {
    color: #dee2e6;
    font-weight: bold;
}

.announcement-popup-divider {
    margin: 0;
    border-top: 2px solid #dee2e6;
    opacity: 0.5;
    flex-shrink: 0;
}

.announcement-popup-content {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    background-color: #fff;
}

    /* Reset styles for content that might have unwanted backgrounds */
    .announcement-popup-content > div,
    .announcement-popup-content > p,
    .announcement-popup-content > section {
        background: none !important;
        background-color: transparent !important;
    }

    .announcement-popup-content h1,
    .announcement-popup-content h2,
    .announcement-popup-content h3,
    .announcement-popup-content h4,
    .announcement-popup-content h5,
    .announcement-popup-content h6 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #212529;
        background: none !important;
        background-color: transparent !important;
    }

    .announcement-popup-content h1 {
        font-size: 1.75rem;
    }

    .announcement-popup-content h2 {
        font-size: 1.5rem;
    }

    .announcement-popup-content h3 {
        font-size: 1.25rem;
    }

    .announcement-popup-content p {
        margin-bottom: 1rem;
        background: none !important;
        background-color: transparent !important;
    }

    .announcement-popup-content img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem;
        margin: 1rem 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .announcement-popup-content ul,
    .announcement-popup-content ol {
        margin-bottom: 1rem;
        padding-left: 1.5rem;
    }

    .announcement-popup-content li {
        margin-bottom: 0.5rem;
    }

    .announcement-popup-content a {
        color: #0d6efd;
        text-decoration: none;
    }

        .announcement-popup-content a:hover {
            text-decoration: underline;
        }

    .announcement-popup-content blockquote {
        border-left: 4px solid #0d6efd;
        padding-left: 1rem;
        margin: 1rem 0;
        font-style: italic;
        color: #6c757d;
    }

    .announcement-popup-content code {
        background-color: #f8f9fa;
        padding: 0.2rem 0.4rem;
        border-radius: 0.25rem;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
        color: #d63384;
    }

    .announcement-popup-content pre {
        background-color: #f8f9fa;
        padding: 1rem;
        border-radius: 0.5rem;
        overflow-x: auto;
        margin: 1rem 0;
    }

        .announcement-popup-content pre code {
            background-color: transparent;
            padding: 0;
            color: inherit;
        }

.announcement-popup-footer {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    background-color: #f8f9fa;
}

.announcement-popup-btn-close {
    min-width: 100px;
}

@media (max-width: 576px) {
    .announcement-popup-header,
    .announcement-popup-content,
    .announcement-popup-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .announcement-popup-title {
        font-size: 1.5rem;
    }

    .announcement-popup-meta {
        font-size: 0.85rem;
    }

    .announcement-popup-content {
        font-size: 0.95rem;
    }
}
/*---------------------------*/

/* Important Announcement Header Styles */
.important-announcement {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 50%;
    padding: 0.25rem 1.5rem;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-hover) 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 12px rgba(196, 96, 36, 0.4);
    cursor: pointer;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

    .important-announcement:hover {
        box-shadow: 0 6px 16px rgba(196, 96, 36, 0.6);
        filter: brightness(1.05);
    }

.important-announcement-small {
    max-width: 100%;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
}

    .important-announcement-small:hover {
        box-shadow: 0 6px 16px rgba(196, 96, 36, 0.6);
        filter: brightness(1.05);
    }

.important-announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.important-announcement-icon {
    font-size: 1.25rem;
}

.important-announcement-text {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 576px) {
    .important-announcement {
        position: relative;
        left: auto;
        right: auto;
        transform: none;
        padding: 0.5rem 1rem;
        animation: slideDownMobile 0.5s ease-out;
    }

        .important-announcement:hover {
            box-shadow: 0 6px 16px rgba(196, 96, 36, 0.6);
            filter: brightness(1.05);
        }

    .important-announcement-content {
        font-size: 0.85rem;
    }

    .important-announcement-icon {
        font-size: 1rem;
    }

    @keyframes slideDownMobile {
        from {
            opacity: 0;
            margin-top: -60px;
        }

        to {
            opacity: 1;
            margin-top: 0;
        }
    }
}
/*---------------------------*/

/* End of Wms24.Web.Server/wwwroot/css/custom.css */

/* End of Wms24.Web.Server/wwwroot/css/custom.css */


.kanban-flag-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}



.diagram-container {
    width: 100%;
    height: 400px;
    border: 1px solid red; /* Just visual */
}

.automation-node {
    min-width: 260px;
    max-width: 420px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    position: relative;
    overflow: hidden;
    padding: 10px 12px;
}

    .automation-node .body,
    .automation-node .title {
        white-space: pre-wrap; /* zachowuje \n i łamie */
        overflow-wrap: anywhere; /* łamie też długie ciągi */
        word-break: break-word; /* fallback */
    }

    .automation-node.selected {
        outline: 2px solid rgba(255,140,0,.35);
    }

.automation-node-header {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.automation-node-body .line {
    font-size: 12px;
    opacity: .9;
    line-height: 1.25rem;
    white-space: pre-wrap;
}

/* typy kroków */
.automation-node.kind-event {
    border-left: 6px solid #2f7dff;
}

.automation-node.kind-if {
    border-left: 6px solid #ff9800;
}

.automation-node.kind-sql {
    border-left: 6px solid #7b61ff;
}

.automation-node.kind-do {
    border-left: 6px solid #22a06b;
}

.automation-node.kind-join {
    border-left: 6px solid #999;
}

.copy-to-clipboard-container {
    position: relative;
    display: inline-flex;
}

/* copy-to-clipboard */
.copy-to-clipboard-message {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    z-index: 1100;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #212529;
    color: #ffffff;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
}

@media (max-height: 420px) {
    .copy-to-clipboard-message {
        bottom: auto;
        top: calc(100% + 6px);
    }
}
