/* form input[type="text"],
form input[type="password"],
form input[type="email"],
form .custom-control-label,
form .custom-control-label:before {
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
} */
form input[type="text"].invalid,
form input[type="password"].invalid,
form input[type="email"].invalid,
form .select2-selection.invalid {
    border-color: #f1556c !important;
}
form .custom-control-label.invalid,
form .custom-control-label.invalid:before {
    color: #f1556c;
    border-color: #f1556c;
}
form .nestable.invalid .dd-empty {
    border-color: #f1556c;
    background: rgb(255 226 226 / 20%);
}
*:focus {
    outline: 0 !important;
    box-shadow: none !important;
}
.card-box.pb-2.position-relative {
    min-height: calc(100vh - 259px);
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}
.modal-open .modal.modal-static {
    /* overflow-y: hidden!important; */
}
.modal.modal-static .modal-dialog {
    transform: scale(0.98) !important;
}
table .fix {
    width: 1px;
    white-space: nowrap;
}
table .toogle {
    width: 42px !important;
    white-space: nowrap;
}
table tbody td {
    vertical-align: middle !important;
}
table tbody tr {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
table tbody td .button-list .btn {
    margin-left: 0px !important;
}
table tr.notif {
    background: #d7ffe8;
}
table tr.delete {
    background: #ffd7d7;
}
ul.pagination {
    z-index: 0 !important;
}
.justify-start {
    margin-right: auto !important;
}
.card-drop.label {
    line-height: 32px !important;
}
a.card-drop.label {
    color: #1abc9c;
}
a.card-drop.label:hover {
    color: #6c757d;
}
.dropdown-menu.wide {
    min-width: 500px;
}
.noeffect {
    pointer-events: none;
}
.dropdown.float-right.child {
    margin-top: -6px;
    margin-right: -16px;
    display: none;
}
/* li.dd-item.dd3-item .dd3-content:hover > .dropdown.float-right.child{
    display: block;
} */
.table.table-struktur th {
    color: #727272 !important;
    background-color: #f7f7f7 !important;
    border-color: #dee2e6 !important;
    border-bottom-width: 1px !important;
    vertical-align: middle !important;
}
.table.table-struktur thead th {
    text-align: center !important;
}
.table.table-struktur tbody th {
    text-align: left !important;
    /* white-space: nowrap; */
}
.table.table-struktur tbody td {
    padding: 3px !important;
}

.btn-primary {
    color: #fff;
    background-color:   #0093DD;
    border-color: #0a9be4;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0fa2ec;
    border-color: #2e89d4;
}

.btn-primary:focus,
.btn-primary.focus {
    color: #fff;
    background-color: #0fa2ec;
    border-color: #2e89d4;
    box-shadow: 0 0 0 0.15rem rgba(226, 113, 113, 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: #0093DD;
    border-color: #0093DD;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #2e89d4;
    border-color: #0fa2ec;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.15rem rgba(226, 113, 113, 0.5);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #0093DD;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 31px;
}

.autocomplete-suggestions {
    border: 1px solid #e9f0f4;
    background-color: #fff;
    cursor: default;
    overflow: auto;
    max-height: 200px !important;
    box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
}

.autocomplete-suggestion {
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
}

.autocomplete-no-suggestion {
    padding: 5px;
}

.autocomplete-selected {
    background: #f7f7f7;
    cursor: pointer;
}

.autocomplete-suggestions strong {
    font-weight: bold;
    color: #323a46;
}

.autocomplete-group {
    padding: 5px;
    font-weight: 500;
    font-family: "Cerebri Sans,sans-serif";
}

.autocomplete-group strong {
    font-weight: bold;
    font-size: 16px;
    color: #323a46;
    display: block;
}

/* Minimal Bootstrap 5-style floating labels support */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem .75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem .75rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: #6c757d;
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > .form-control:-ms-input-placeholder {
    color: transparent;
}

.form-floating > .form-control::-ms-input-placeholder {
    color: transparent;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
    opacity: .85;
}

.form-floating > textarea.form-control {
    min-height: calc(3.5rem + 2px);
    height: auto;
}

/* Gap utilities used by Bootstrap 5 form examples */
.g-3 {
    row-gap: 1rem;
    column-gap: 1rem;
}

/* Premium CITO form styling */
.rapel-cito-form .section-block {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid var(--ins-border-color, #e5e7eb);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
    margin-bottom: 14px;
}

.rapel-cito-form .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ins-body-color, #344054);
    margin-bottom: 12px;
    letter-spacing: 0.1px;
}

.rapel-cito-form .section-title i {
    color: var(--ins-primary, #6658dd);
}

.rapel-cito-form .form-floating,
.rapel-cito-form .form-floating > .form-control,
.rapel-cito-form .form-floating > .form-select {
    width: 100%;
}

.rapel-cito-form .chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rapel-cito-form .chip {
    border-radius: 8px;
    padding: 8px 12px;
}

.rapel-cito-form .file-drop {
    border: 1px dashed var(--ins-border-color, #e5e7eb);
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.rapel-cito-form .file-drop:hover {
    border-color: rgba(102, 88, 221, 0.5);
    background: #f1f5ff;
}

.rapel-cito-form .hint-text {
    font-size: 12px;
    color: #94a3b8;
}

/* Quick action buttons */
.quick-actions .qa-primary {
    background: linear-gradient(135deg, #7c6bff 0%, #5c4ee5 100%);
    border: none;
    color: #fff;
    box-shadow: 0 8px 24px rgba(92, 78, 229, 0.25);
    border-radius: 6px;
}

.quick-actions .qa-primary:hover {
    background: linear-gradient(135deg, #6d5de8 0%, #4a3ed3 100%);
    color: #fff;
}

.quick-actions .qa-ghost {
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
}

.quick-actions .qa-ghost:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

/* Landing-style gradient for primary buttons (admin) */
.content-page .btn-primary,
.content-page .btn-primary:link,
.content-page .btn-primary:visited {
    background: linear-gradient(135deg, #56CCF2, #258beb, #2192ee, #5729ff) !important;
    background-size: 200% 200%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    color: #fff !important;
    border: 0;
    border-radius: .3rem;
    transition: background-position 0.4s ease, color 0.2s ease;
}

.content-page .btn-primary:hover,
.content-page .btn-primary:focus {
    background-position: 100% 50%;
    color: #fff !important;
}

.content-page .btn-primary:active {
    background-position: 0% 50%;
}

/* Mobile tweaks */
@media (max-width: 991.98px) {
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .form-grid .form-card,
    .form-grid .glass-card {
        width: 100%;
        margin: 0;
    }
    .rapel-cito-form .section-block {
        padding: 14px;
        border-radius: 8px;
    }
    .quick-actions.d-grid {
        grid-template-columns: 1fr;
    }
}

/* Sticky summary card on desktop */
@media (min-width: 992px) {
    .form-grid {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 16px;
        align-items: start;
    }
    .summary-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 70px;
        align-self: flex-start;
        height: fit-content;
        z-index: 3;
    }
}
