:root {
    --dashui-lighter-bg: #f2f7ff;
}

[data-bs-theme=dark] {
    --dashui-lighter-bg: #161e2c;
}

.section,
.page-details {
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

* {
    direction: rtl;
}

.section-top {
    padding: 10px 25px 10px 10px !important;
    background-color: #223e9c !important;
    border-radius: .5rem .5rem 0rem 0rem;
    display: flex;
    align-items: center;
    height: 60px;
}

.section-top h3 {
    color: white;
}

.section-body {
    padding: 25px;
}

.page-details {
    padding: 20px !important;
    border-top: 10px solid #223e9c !important;
    position: relative;
}

.page-counter {
    background-color: #223e9c !important;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0px 0px;
    position: absolute;
    right: 0;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    top: -38px;
}

.row>* {
    flex-shrink: 0;
    padding-left: calc(var(--bs-gutter-x, var(--dashui-gutter-x, 1.5rem)) * .5) !important;
    padding-right: calc(var(--bs-gutter-x, var(--dashui-gutter-x, 1.5rem)) * .5) !important;
}

.sidebar {
    position: absolute;
    left: 0;
    width: 200px;
    background-color: var(-dashui-lighter-bg);
    padding: 10px;
    border-right: 1px solid #ccc;
}

.topbar {
    position: sticky;
    box-shadow: 0 2px 4px rgba(0, 0, 20, .08), 0 1px 2px rgba(0, 0, 20, .08);
    padding: .625rem 1.5rem;
    width: 100%;
    text-align: left;
    border-radius: 0px !important;
}

.col-md-6 .form-select {
    max-width: none !important;
    width: 100% !important;
}

.form-select,
.form-control,
.textarea {
    display: block;
}

.form-control,
.textarea {
    display: block;
    max-width: none !important;
    width: 100% !important;
}

.section-title {
    margin: 0px;
    margin-left: 20px;
    width: 100%;
    display: inline-block;
}

.section-size-div {
    width: 120px;
    float: left;
}

.toolbar-btn {
    display: block;
    margin-bottom: 10px;
}

.field {
    margin-bottom: 10px;
}

.remove-section,
.remove-field {
    color: red;
}

.preview-fields {
    display: none;
}

.body_dark {
    background-color: var(--dashui-lighter-bg);
}

.section,
.page-details {
    min-height: auto;
}

.signature-canvas {
    border: 1.8px solid #223e9c;
    border-radius: .25rem;
    max-width: 100%;
    max-height: 200px;
}

@media screen and (max-width:960px) {
    .mobile-full-size {
        padding-right: 30px !important;
        padding-left: 30px !important;
    }

    .mt-4 {
        margin-top: 1.5rem !important;
    }
}

.button {
    position: relative;
    width: 100%;
    border-radius: 10px;
}

.button .inner {
    position: absolute;
    height: 100%;
    width: 300%;
    left: -100%;
    z-index: -1;
    transition: all .4s;
    background: -webkit-linear-gradient(right, #00dbde, #223e9c, #00dbde, #223e9c);
}

.button:hover .inner,
.button:active .inner {
    left: 0;
}

.button button {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.button {
    overflow: hidden;
    z-index: 111;
}



.button.button-disabled {
    opacity: 0.8;
    /* Reduce opacity to make it look disabled */
    pointer-events: none;
    /* Disable any clicks on the .inner element */
    cursor: not-allowed;
    /* Change cursor to indicate it's disabled */
}

.field-success {
    border: 2px solid #198758;
    transition: border-color 0.7s ease;
}

.field-error {
    border: 2px solid #dc3545;
    transition: border-color 0.7s ease;
}

.preview-file {
    max-width: 200px;
    max-height: 100px;
    height: auto;
    margin: 5px;
}

.file-preview * {
    float: right;
}

.success-container {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.button {
    min-height: 100px;
}

.success-text {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    min-height: 100px;
    text-align: center;
}

.form_body {
    padding: 1rem;
}

.text-white {
    color: white;
}

.text-red {
    color: #dc3545;
}

.close {
    width: 40px;
    height: 40px;
    margin-right: 5px;
    margin-top: 5px;
}

@media screen and (max-width: 1199px) {

    .form-select,
    .form-control {
        max-width: none !important;
    }

    p {
        margin: 0px;
    }

}

.school-logo {
    max-height: 65px;
}

@media screen and (max-width: 1199px) {

    .top_container_row div {
        width: 33% !important;
        padding: 0px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

}

.readonly-textarea {
    border: 0px !important;
    color: #212b36;
    resize: none;
    padding: 0px;
    font-size: 18px;
}

.readonly-textarea:focus {
    border: 0px !important;
}