.nitro-card {
    resize: both;
    border: 2px solid #000 !important;
    border-radius: 10px;
    background: #f2f2eb;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);

    .nitro-card-header {
        position: relative;
        min-height: 36px;
        max-height: 36px;
        width: 100%;
        margin: 0;
        padding: 5px;
        background: #30728c;
        border: 2px solid #3c88a6;
        border-bottom-color: #000;
        border-radius: 8px 8px 0 0;
        box-shadow: none;

        &:before {
            display: none;
        }

        .nitro-card-header-text {
            color: #fff;
            text-shadow: 1px 1px 1px #000;
            font-family: UbuntuCondensed, Ubuntu, sans-serif;
            font-size: 20px;
            font-weight: 400;
            line-height: 1;
            min-height: auto;
        }

        .nitro-card-header-close {
            cursor: pointer;
            width: 20px;
            height: 20px;
            padding: 0;
            line-height: 1;
            border-radius: 4px;
            border: 2px solid #000;
            box-shadow: none;
            background: #bf2c2c;

            &:hover {
                border-color: #fff;
                filter: brightness(1.08);
            }

            &:active {
                filter: brightness(0.96);
            }
        }
    }

    .nitro-card-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        min-height: auto;
        max-height: none;
        padding: 4px 8px 0;
        background: #d9ded7;
        border-bottom: 2px solid #c4cabf;

        .nav-item {
            padding: 0.35rem 0.8rem;
            margin-bottom: -1px;
            color: #000;
            background: #d2d7cf;
            border: 2px solid #000;
            border-bottom: 0;
            border-radius: 8px 8px 0 0;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);

            &:before {
                display: none;
            }

            &.active {
                background: #f2f2eb;
                border-color: #000 !important;
                border-bottom: 0;
            }
        }
    }

    .content-area {
        height: 100%;
        overflow: auto;
        padding: 10px;
        background: #f2f2eb;
        border: 0;
        border-top: 0;
        border-radius: 0 0 8px 8px;
        font-family: Ubuntu, sans-serif;
        color: #111;
    }
}

.content-area {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: Ubuntu, sans-serif;
        font-weight: 700;
        line-height: 1.15;
        color: #111;
    }

    p,
    span,
    label,
    li,
    td,
    th,
    input,
    textarea,
    select,
    button {
        font-family: Ubuntu, sans-serif;
        color: #111;
    }

    p,
    label,
    li,
    td,
    th,
    input,
    textarea,
    select,
    button {
        font-size: 12px;
        line-height: 1.25;
    }

    &.theme-dark {
        background-color: #1c323f !important;
    }
}

.nitro-card-header {
    position: relative;
    height: 100%;
}

.nitro-card-accordion-set {
    &.active {
        height: 100%;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }

    .nitro-card-accordion-set-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 991.98px) {
    .nitro-card {
        resize: none !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 16px) !important;
    }

    .nitro-card {
        .nitro-card-header {
            min-height: 32px;
            max-height: 32px;
            padding: 4px;

            .nitro-card-header-text {
                font-size: 17px;
            }
        }

        .nitro-card-tabs {
            padding: 4px 6px 0;
            gap: 3px;

            .nav-item {
                padding: 0.25rem 0.55rem;
                font-size: 12px;
            }
        }

        .content-area {
            padding: 8px;
        }
    }

    .content-area {
        min-height: auto !important;
        max-height: 100% !important;

        p,
        label,
        li,
        td,
        th,
        input,
        textarea,
        select,
        button {
            font-size: 11.5px;
        }
    }
}

@media (max-width: 640px) {
    .draggable-window {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}
