@font-face {
    font-family: 'Metropolis Regular';
    src: url('/fonts/metropolis.regular.otf');
}

html, body {
    font-family: 'Metropolis Regular','Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 90% !important;
}

a, .btn-link {
    color: #006bb7;
}

input[type='range'] {
    accent-color: #007bff !important;
}

article {
    padding: 0px !important;
    height: calc(100vh - 51px);
}

.page {
    flex-direction: row !important;
}

.pointer {
    cursor: pointer !important;
}

.wb {
    word-break: break-all;
    overflow-wrap: break-word;
}

.f-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px !important;
}

.prevent-resize {
    resize: none;
}

.dfu-nav {
    z-index: 9 !important;
    height: 100vh !important;
    position: absolute !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgN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LjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.b-bar-link.active {
    color: white !important;
    background-color: #e67e22 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.custom-control {
    z-index: 0 !important;
}

.page-link {
    z-index: 0 !important;
}

.feature-header {
    background-color: #ecf0f1;
    padding: 7px;
    max-width: 2000px;
}

/* Module Container */
.module-container {
    display: flex;
    flex-flow: column;
    height: 100%;
    align-items: stretch;
}

.module-header {
    flex: 0 0 35px;
    min-height: 35px;
    width: 100%;
    display: flex;
    background-color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: space-between;
    align-items: baseline;
    border-top: 2px solid #e67e22;
}

.module-icon {
    width: 60px;
    min-width: 60px;
    background-color: #e67e22;
    border-bottom-right-radius: 14px;
    text-align: center;
    color: white;
    line-height: 35px;
    font-size: 1.5em;
    margin-right: 4px;
}

.module-action-content {
    text-align: right;
    padding-bottom: 4px;
    padding-right: 7px;
    width: 100%;
}

.module-title-container {
    border-top-left-radius: 14px;
    background-color: white;
    display: flex;
    gap: 7px;
    align-items: center;
}

.module-title {
    margin: 0;
    font-weight: bold;
}

.module-nav {
    color: #1e8bc3;
    cursor: pointer;
    margin-left: 7px;
    font-size: 120%;
}

.module-content {
    flex: 1 1 auto;
    padding-bottom: 7px;
    padding-left: .5rem;
    padding-right: .5rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 2000px;
}

.module-footer {
    flex: 0 0 40px;
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #e67e22;
    width: 60px;
    height: 60px;
    -webkit-animation: spin 1.5s linear infinite; /* Safari */
    animation: spin 1.5s linear infinite;
}

.loader-container {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
}

.loader-item {
    align-self: center;
}

.loader-text {
    opacity: .6;
}

.draggable-placeholder {
    border: 4px dashed #2980b9 !important;
}

.edit-footer-container {
    height: 40px;
    min-height: 40px;
    position: fixed;
    display: flex;
    justify-content: end;
    bottom: 0px;
    width: 100%;
    border-top: 2px solid #e67e22;
    background-color: #f7f7f7;
}

.edit-footer-row {
    height: 100%;
    align-content: center;
    margin: 0px 7px !important;
}

.checklist-item p {
    margin: 0px !important;
    padding: 0px !important;
}

.scenario-item p {
    margin: 0px !important;
    padding: 0px !important;
}

.ql-editor {
    height: 150px !important;
    background-color: white !important;
}

.navbar-toggler-icon {
    display: block !important;
}

.b-bar-toggler-popout {
    width: 50px !important;
}

.img-container {
    position: relative;
}

.img-container:after {
    content: " ";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
}

.sequence-cell {
    width: 120px;
}

.link-card {
    background-color: #ecf0f1;
    font-weight: bold;
}

.link-card:hover {
    background-color: #bdc3c7;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-content {
    position: absolute;
    display: flex;
    transition: transform 0.3s ease;
    gap: 3px;
    width: 100%;
    height: 100%;

}

.item {
    white-space: nowrap;
    align-self: center;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: pointer;
    background-color: white;
}

.ck-text-field p{
    margin: 0;
}

.va-center {
    vertical-align: middle !important;
}

.txt-center {
    text-align: center !important;
}

.txt-right {
    text-align: right !important;
}

.txt-green {
    color: #1abc9c;
}

.txt-red {
    color: #c0392b;
}

.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.table-container {
    width: 100%;
}

    .table-container::-webkit-scrollbar {
        width: 100%;
    }

    .table-container::-webkit-scrollbar-track {
        background-color: transparent;
    }

    .table-container::-webkit-scrollbar-thumb {
        background-color: #95a5a6;
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background-color: #bdc3c7;
    }

.modal-responsive-container {
    width: 100%;
}

    .modal-responsive-container::-webkit-scrollbar {
        width: 100%;
    }

    .modal-responsive-container::-webkit-scrollbar-track {
        background-color: transparent;
    }

    .modal-responsive-container::-webkit-scrollbar-thumb {
        background-color: #95a5a6;
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }

        .modal-responsive-container::-webkit-scrollbar-thumb:hover {
            background-color: #bdc3c7;
        }

.missionjournal-edit {
    justify-content: center;
}

.filter-wrapper {
    position: relative;
    display: inline-block;
}

.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 250px;
    max-width: 500px;
    z-index: 8;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: normal;
    word-wrap: break-word;
}

    .filter-panel::before {
        content: "";
        position: absolute;
        top: -16px;
        left: 20px;
        border-width: 8px;
        border-style: solid;
        border-color: transparent transparent #f9f9f9 transparent;
    }

.filter-panel.align-left {
    right: 0; 
    left: auto;
}

    .filter-panel.align-left::before {
        left: auto;
        right: 20px;
    }

.report-agenda-item:hover {
    background-color: #3498db80;
    border: 1px solid #3498db;
}

.folder-item {
    display: flex;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #bdc3c7;
    padding: 7px;
    margin-bottom: 7px;
}

.folder-item:hover {
    background-color: #3498db50;
    border: 1px solid #3498db;
    cursor: pointer;
}

.folder-content {
    display: flex;
    flex: 1;
    gap: 14px;
}

.folder-icon-container {
    text-align: center;
    width: 40px;
    align-self: center;
}

.folder-text-container {
    align-self: center;
}

.folder-name {
    display: block;
    font-weight: bold;
}

.folder-detail {
    display: block;
    font-style: italic;
    font-size: 80%;
}

.folder-action {
    align-self: center;
}

.marker-item {
    padding: 7px;
    background-color: white;
    border: 1px solid #7f8c8d;
    margin-bottom: 7px;
}

.marker-item:hover {
    background-color: #2980b980;
}

.icon-btn {
    padding: 7px;
    border-radius: 50%;
    border: 1px solid #34495e;
    cursor: pointer;
}

    .icon-btn:hover {
        background-color: #34495e;
        box-shadow: 2px 2px 2px #95a5a6;
        color: white;
    }

.icon-btn-inactive {
    padding: 7px;
    background-color: #95a5a6;
    border-radius: 50%;
    border: 1px solid #34495e;
    cursor: pointer;
}

    .icon-btn-inactive:hover {
        box-shadow: 2px 2px 2px #95a5a6;
    }

.icon-btn-active {
    padding: 7px;
    background-color: #3498db;
    border-radius: 50%;
    border: 1px solid #2980b9;
    cursor: pointer;
    color: white;
}

    .icon-btn-active:hover {
        box-shadow: 2px 2px 2px #95a5a6;
    }

.rich-text-editor {
    border: 1px solid #ccc;
    min-height: 150px;
    padding: 10px;
    font-family: Arial, sans-serif;
}

.rt-container {
    border: 2px solid #34495e80;
    margin-bottom: 7px;
}

.rt-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 4px;
    background-color: #34495e80;
}

#editor-input {
    border: 1px solid #ecf0f1;
    padding: 14px;
    min-height: 150px;
    background-color: white;
    max-height: 500px;
    overflow-y: auto;
}

#code-input {
    display: none;
    width: 100%;
    border: 1px solid #ecf0f1;
    padding: 14px;
    min-height: 150px;
    background-color: white;
    max-height: 500px;
    overflow-y: auto;
}

.rt-btn-active {
    background-color: #3498db !important;
}

.rt-input-wrapper {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rt-option-label {
    margin: 0;
}

.rt-color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 40px;
    height: 28px;
    border: none;
    cursor: pointer;
}

    .rt-color-picker::-webkit-color-swatch {
        border-radius: 15px;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #020929;
    }

    .rt-color-picker::-moz-color-swatch {
        border-radius: 15px;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #020929;
    }

.editor-input tr {
    border: 1px solid black;
}

@media (max-width: 1199px) {
    .missionjournal-edit {
    justify-content: flex-start;
}
}

@media (max-width: 800px) {
    .table-container {
        max-width: calc(100vw - 25px);
        overflow-x: auto;
    }

    .table-widget-container {
        max-width: calc(100vw - 45px);
        overflow-x: auto;
    }
}

@media (max-width: 1100px) {
    .table-container {
        max-width: calc(100vw - 25px);
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .filter-panel {
        width: 90vw;
        max-width: 90vw;
        left: 0;
    }
}

@media (max-width: 500px) {
    .modal-responsive-container {
        max-width: calc(100vw - 60px);
        overflow-x: auto;
    }
}

@media (max-width: 470px) {
    .module-header {
        flex-direction: column;
        flex: 0 0 auto;
    }

    .module-btn {
        margin-top: 7px;
        text-align: center;
        width: calc(100vw - 20px);
    }

    .module-content{
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .module-action-content {
        padding-right: 0px !important;
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
