html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

.swal-top-layer {
    z-index: 20000 !important;
}

.rounded-swal {
    border-radius: 30px !important;
    padding: 2rem !important;
}

.nav-link {
    color: #fd0d0d;
}

    .nav-link:hover {
        color: #ff4444 !important;
    }

.pagination .page-link {
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background-color: #d14b3c;
    border-color: #d14b3c;
}

.pagination .page-item {
    color: #5b5b5b;
    background-color: #e1e1e194;
}

.pagination .page-item a {
    color: #5b5b5b;
    background-color: #e1e1e194;
}

.btn-mscs-primary {
    color: #2f3135;
    background-color: #aab1c4;
    border-color: #aab1c4;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}



.btn-teal {
    color: #ffffff;
    background-color: #0b9386;
    border-color: #0b9386;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.btn-teal-reversed {
    color: #0b9386;
    background-color: transparent;
    border-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

    .btn-teal:hover {
        background-color: #0b938655;
        border-color: #0b938655;
        color: #ffffff;
    }

    .btn-teal:active {
        background-color: #0b938644 !important;
        border-color: #0b938644 !important;
        transform: translateY(1px) !important;
    }

    .btn-teal:focus,
    .btn-teal:focus-visible {
        box-shadow: 0 0 0 0.15rem #0b938622 !important;
        outline: none !important;
    }

.btn-check:focus + btn-success, .btn-success:focus {
    background-color: #ff0000;
    border-color: #ff0000;
}

.btn-check:focus + btn-success-green, .btn-success-green:focus {
    background-color: #0b9386;
    border-color: #0b9386;
}

.link.active {
    color: #526477;
}


.file-drop-zone {
    border: 2px dashed #aab1c4;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    cursor: pointer;
    background-color: #fafbfe;
    transition: all 0.2s ease;
}

    .file-drop-zone:hover {
        background-color: #f1f3f9;
    }

    .file-drop-zone.drag-over {
        background-color: #eef1fb;
        border-color: #6c7ae0;
    }


    /* Hover */
    .btn-mscs-primary:hover {
        background-color: rgba(170, 177, 196, 0.85);
        border-color: rgba(170, 177, 196, 0.85);
        color: #2f3135;
    }

    /* Active (click) */
    .btn-mscs-primary:active {
        background-color: rgba(170, 177, 196, 0.75);
        border-color: rgba(170, 177, 196, 0.75);
        transform: translateY(1px);
    }

    /* Remove Bootstrap blue focus ring */
    .btn-mscs-primary:focus,
    .btn-mscs-primary:focus-visible {
        box-shadow: 0 0 0 0.15rem rgba(170, 177, 196, 0.45);
        outline: none;
    }

    /* MSCS Red Button */
    .btn-success {
        color: #ffffff;
        background-color: #C00F0C;
        border-color: #C00F0C;
        transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
    }

.btn-success-reversed {
    color: #C00F0C;
    background-color: transparent;
    border-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

    /* Hover */
    .btn-success:hover {
        background-color: rgba(255, 0, 0, 0.85);
        border-color: rgba(255, 0, 0, 0.85);
        color: #ffffff;
    }

    /* Active (click) */
    .btn-success:active {
        background-color: rgba(255, 0, 0, 0.75) !important;
        border-color: rgba(255, 0, 0, 0.75) !important;
        transform: translateY(1px) !important;
    }

    /* Remove Bootstrap blue focus ring */
    .btn-success:focus,
    .btn-success:focus-visible {
        box-shadow: 0 0 0 0.15rem rgba(255, 0, 0, 0.45) !important;
        outline: none !important;
    }
        .btn-check:focus + btn-success, .btn-success:focus {
            background-color: #ff0000;
            border-color: #ff0000;
        }

        .link.active {
            color: #526477;
        }

a {
    color: #526477;
}

/* Button Success Green */

.btn-success-green {
    color: #ffffff;
    background-color: #0b9386;
    border-color: #0b9386;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.btn-success-green-reversed {
    color: #0b9386;
    background-color: transparent;
    border-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

/* Hover */
.btn-success-green:hover {
    background-color: rgba(11, 147, 32, 0.85);
    border-color: rgba(11, 147, 32, 0.85);
    color: #ffffff;
}

/* Active (click) */
.btn-success-green:active {
    background-color: rgba(11, 147, 32, 0.75) !important;
    border-color: rgba(11, 147, 32, 0.75) !important;
    transform: translateY(1px) !important;
}

/* Remove Bootstrap blue focus ring */
.btn-success-green:focus,
.btn-success-green:focus-visible {
    box-shadow: 0 0 0 0.15rem rgba(11, 147, 32, 0.45) !important;
    outline: none !important;
}

.btn-check:focus + btn-success-green, .btn-success-green:focus {
    background-color: #0b9386;
    border-color: #0b9386;
}

/* MSCS Lightblue Button */
.btn-primary {
    color: #ffffff;
    background-color: #A3BED4;
    border-color: #A3BED4;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.btn-primary-reversed {
    color: #A3BED4;
    background-color: transparent;
    border-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

    /* Hover */
    .btn-primary:hover {
        background-color: rgba(161, 190, 212, 0.85);
        border-color: rgba(161, 190, 212, 0.85);
        color: #ffffff;
    }

    /* Active (click) */
    .btn-primary:active {
        background-color: rgba(161, 190, 212, 0.75) !important;
        border-color: rgba(161, 190, 212, 0.75) !important;
        transform: translateY(1px) !important;
    }

    /* Remove Bootstrap blue focus ring */
    .btn-primary:focus,
    .btn-primary:focus-visible {
        box-shadow: 0 0 0 0.15rem rgba(161, 190, 212, 0.45) !important;
        outline: none !important;
    }

    .btn-check:focus + btn-primary, .btn-primary:focus {
        background-color: #A3BED4;
        border-color: #A3BED4;
    }

.accordion-button:not(:empty) {
    background-color: #EEEEEE;
}

.accordion-button:focus,
.accordion-button:focus-visible {
    box-shadow: 0 0 0 0.15rem rgba(161, 190, 212, 0.45) !important;
    outline: none !important;
}

.icon-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.icon-circle {
    border: 2px solid currentColor;
    background: transparent !important;
}



.btn {
    border-radius: 0.5rem !important;
}

.btn-primary-save {
    background-color: #8b929d;
    border-color: #8b929d;
}
    .btn-primary-save:focus {
        background-color: #808081 !important;
        border-color: #808081 !important;
    }
    .btn-primary-save:hover {
        background-color: #808081 !important;
        border-color: #808081 !important;
    }

.form-check-input:checked {
    background-color: #d14b3c !important;
    border-color: #d14b3c !important;
}

.form-control:focus {
    border-color: #aab1c4 !important;
    box-shadow: 0 0 0 0.25rem #dbdbdb8f;
}

.form-select:focus {
    border-color: #aab1c4 !important;
    box-shadow: 0 0 0 0.25rem #dbdbdb8f;
}

/* Select2 single & multiple - focus */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
    border-color: #aab1c4 !important;
    box-shadow: 0 0 0 0.25rem #dbdbdb8f !important;
    outline: 0;
}

/* When Select2 is open (most important part) */
.select2-container--default.select2-container--open
.select2-selection--single,
.select2-container--default.select2-container--open
.select2-selection--multiple {
    border-color: #aab1c4 !important;
    box-shadow: 0 0 0 0.25rem #dbdbdb8f !important;
}

/* Multiple select chips focus */
.select2-container--default
.select2-selection--multiple
.select2-selection__choice {
    background-color: #f5f6fa;
    border-color: #aab1c4;
}

.table-scroll-wrapper {
    max-height: calc(100vh - 280px); /* adjust once */
    overflow: auto;
    position: relative;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* HEADER TABLE */
.table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f3f6f9;
    border-collapse: separate;
    border-spacing: 0;
}

    /* Header cells */
    .table-header th {
        background-color: #f3f6f9;
        color: #292D32;
        font-family: 'BPGNinoMtavruli';
        white-space: nowrap;
    }

        /* Rounded corners */
        .table-header th:first-child {
            border-top-left-radius: 12px;
        }

        .table-header th:last-child {
            border-top-right-radius: 12px;
        }

/* BODY TABLE */
.table-body {
    border-collapse: collapse;
}

    .table-body td {
        white-space: nowrap;
    }


.table-dark {
    --bs-table-bg: #8791A0; /* main background */
    --bs-table-striped-bg: #23272b; /* striped rows */
    --bs-table-striped-color: #e6e6e6;
    --bs-table-active-bg: #2d3238; /* active row */
    --bs-table-active-color: #ffffff;
    --bs-table-hover-bg: #262b30; /* hover */
    --bs-table-hover-color: #ffffff;
    color: #ffffff;
    border-color: #2f343a;
}


/* Base menu */
#customContextMenu {
    position: fixed !important;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2147483647;
    min-width: 180px;
    padding: 4px 0;
    /* RESET INHERITED STYLES */
    all: unset;
    font-family: Arial, sans-serif;
}

/* restore what we need after all:unset */
#customContextMenu {
    position: fixed;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2147483647;
}

    #customContextMenu #contextMenuHeader {
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    #customContextMenu .context-item {
        padding: 8px 14px;
        cursor: pointer;
        white-space: nowrap;
    }

        #customContextMenu .context-item:hover {
            background: #f2f2f2;
        }

.swal-on-top {
    z-index: 20000 !important;
}

.swal2-container {
    z-index: 20000 !important;
}



.button-with-title {
    max-width: 320px;
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 0.875rem 72px 0.875rem 1.75rem;
    background-color: #5f5f5f;
    background-image: linear-gradient(to top right, #6f6f6f, #919191);
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.25rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    align-items: center;
    border-radius: 0.5rem;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    transition: all 0.6s ease;
}

    .button-with-title span {
        background-color: rgb(61 61 61 / 38%);
        display: grid;
        position: absolute;
        right: 0;
        place-items: center;
        width: 3rem;
        height: 100%;
        cursor: pointer;
    }

    .button-with-title:hover {
        box-shadow: 0 4px 30px rgba(4, 175, 255, 0.1), 0 2px 30px rgba(11, 158, 255, 0.06);
    }

.removable-icon {
    color: inherit;
    transition: color 0.2s ease;
}

    .removable-icon:hover {
        color: red;
        cursor: pointer;
    }


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 0px;
        bottom: 1px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }