.existing-file {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.file-preview {
    display: flex;
    width: 150px;
    height: 150px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    padding: 5px;
    align-items: center;
    justify-content: center;
    margin: 10px;
}
.action-fields-wrapper {
    max-width: 50%;
    min-width: 400px;
}
.file-preview img{
    max-width: 100%;
}
.modal {
    z-index: 1155 !important; /* Must be higher than backdrop */
}


.cc-masked-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5em 1em;
    align-items: center;
    margin-bottom: 1em;
}
.cc-masked-list dt {
    font-weight: bold;
    margin: 0;
}
.cc-masked-list dd {
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-family: monospace;
    font-size: 1.1em;
    letter-spacing: 0.1em;
}

.preview-heading {
    width: max-content;
    display: block;
    margin: auto;
    background: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 3px 3px 3px #fff;
}

.file-clear-button {
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid red;
    color: red;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px -1px #000;
}

.file-preview a.thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-group-xs > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}
.sidebar.sidebar-pills .nav-link, .sidebar.sidebar-pills .nav-title {
    color: #495057;
    padding: .5rem .1rem .5rem .1rem;
}
.sidebar .nav-link .nav-icon{
    margin: 0 .1em 0 0;
}
.sidebar .nav-dropdown-toggle::before {

    right: 0px;
}
.table.table-striped.mb-0 table tr td p strong {
    color: #fff;
    text-align: center;
    display: block;
}

.table.table-striped.mb-0 table tr td p {
    margin-bottom: 0;
}

caption{
    caption-side: top;
}

.switch-slider{
    border: 1px solid rgba(0,40,100,.42);
}
.switch-label .switch-slider::after {
    color: #404040;

}

@media (max-width: 991px) {
    .app-header .navbar-brand {
        margin-left: -365px;
    }
}

@media (max-width: 767px) {
    .app-header .navbar-brand {
        left: 50%;
        margin-left: -145.5px;
        position: absolute;
        top: 0;
    }

    .app-header .navbar-toggler{
        z-index: 1000;
    }
}

.package_pricing {
    display: flex;
    justify-content: flex-start;
}

.package_pricing div{
    position: relative;
    margin: 15px;
    width: 200px;
    height: 75px;
}

.package_pricing input {
    position: absolute;
    visibility: visible;
    top: 45%;
    left: 10px;
    z-index: 1;
}

.package_pricing label {
    position: absolute;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    background: #eee;
    box-shadow: 0 0 5px 0px #ccc;
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.package_pricing input:checked + label{
    background: #fff;
    box-shadow: 0 0 0px 0px #ccc;
}

.bg-new{
    background: #245c7e;
    color:#fff
}
.bg-inreview{
    background: #756d3a;
    color:#fff
}
.bg-approved{
    background: #45750b;
    color:#fff
}

.bg-rejected{
    background: #750b0b;
    color:#fff
}

.tab-container.container {
    max-width: 100%;
}
.addOnClick {
    position: absolute;
    left: 2px;
    top: 2px;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
    background: #fff;
    border: 1px solid #ccc;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
#field-tabs-content {
    height: 80%;
    border: 0 !important;
    padding: 0 !important;
    overflow: auto;
    box-shadow: none;
}
#toggleOffcanvasAlt {
    position: absolute;
    right: 5px;
    color: red;
    font-weight: bold;
    cursor: pointer;
}
#offcanvas {
    position: absolute;
    left: -100%;
    box-shadow: 0 0 30px -5px #333;
    background: #fff;
    display: block;
    width: 45%;
    max-width: unset;
    height: 100%;
    top: 0px;
    border-radius:0 5px 5px 0;
    transition: all .5s;
    padding: 0;
    overflow: hidden;
    z-index: 10;
}
.draggable-helper-force-width {
    min-width: 150px;
    max-width: 150px;
    width: 350px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
    /* Προσάρμοσε όπως σε βολεύει */
}
.sortable-placeholder {
    height: 48px;             /* Το ύψος του χώρου που θες */
    width: 100%;
    background: #f6f6f6;
    border: 2px dashed #bbb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background 0.15s;
}
.insertion-placeholder {
    height: 48px;
    width: 100%;
    background: #d9ecff;
    border: 2px dashed #2b76c3;
    border-radius: 8px;
    margin-bottom: 12px;
    opacity: 0.7;
    transition: background 0.2s;
}
.sidebar{
    z-index: 1020;
}
#offcanvas.opened{
    left: -30px;
}
.modal {
    z-index: 1055 !important; /* Must be higher than backdrop */
}

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

.field-card {
    position: relative;
    margin-bottom: 1rem;
}

.field-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.field-card.collapsed .card-body {
    display: none;
}

#form-canvas-form_design {
    display: flex;
    flex-wrap: wrap;
}

.field-card {
    align-self: flex-start;
}

.sortable-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    height: 80px;
    margin-bottom: 10px;
}


.field-card .form-check-input:disabled + .form-check-label {
    opacity: 0.5;
    pointer-events: none;
}

#field-tabs-content .tab-pane.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 1rem;;
}

#field-tabs-content .tab-pane .btn {
    position: relative;
    cursor: move;
    touch-action: none;
    cursor: grab;
    max-width: 150px;
}

#field-tabs-content .tab-pane .btn div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.field-help {
    font-size: 11px;
    cursor: pointer;
}

.btn .field-help {
    position: absolute;
    right: 2px;
    top: 2px;

}

.refreshable {
    cursor: pointer;
}
#bg-value-picker {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
#bg-value-picker label {
    display: block;
    width: 60px;
    height: 60px;
    padding: 0;
    position: relative;
}
#bg-value-picker label input {
    position: absolute;
    visibility: hidden;
}
#live-preview-form[dir="rtl"] input,
#live-preview-form[dir="rtl"] textarea,
#live-preview-form[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}
.dynamic-choices-group {
    position: relative;
}
.autocomplete-dropdown {
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-left: 15px;
    margin-top: 5px;
    box-shadow: 0 0 10px -3px #666;
}
.img-preview {
    width: 60px;
}
#live-preview-form {
    background: #fff;
    margin: 10px;
}
canvas {
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
}
@media (max-width: 468px){
    .navbar-brand{
        font-size: 1rem;
    }

    .nav-item.package-link {
        display: none;
    }
    .top-btns a, .top-btns button {
        font-size: 0;
    }
    .top-btns a i, .top-btns button i {
        font-size: 18px;
    }

    #offcanvas {
        width: 100% !important;
        left: -124%;
    }
    #incanvas .row {
        flex-direction: column-reverse;
    }

    #incanvas .row > div{
        margin-bottom: 30px;
    }
    #form-tabs-content-form_design {
        padding: 0 !important;
    }
    .event-item > div {
        display: flex;
        flex-direction: column;
    }
    .event-item > div select {
        width: 115px;
    }
    .template-btn {
        width: 100%;
        text-align: left;
    }
    .range-group {
        display: block !important;
        border-bottom: 1px dashed #555;
        padding-bottom: 25px;
        margin-bottom: 40px !important;
        position: relative;
    }
    .remove-range {
        position: absolute;
        top: -35px;
        right: 0;
    }
    .main .container-fluid {
        padding: 0 10px;
    }
    #crudTable thead > tr > th, table.dataTable thead > tr > th {
        padding-right: 7px!important;
    }
    .table td, .table th {
        padding: 10px 5px;
    }
    #offcanvas.opened {
        left: -10px;
    }
    .navbar-brand {
        position: relative !important;
        margin: auto !important;
        left: 0 !important;
    }
}
.modal-xl {
    width: auto;
    max-width: 90%;
}
.dotted-hr {
    border-top: 1px dashed #ccc;
    margin: 2px 0 3px;
}