.actions-icon {
    /* display: inline-flex; */
    display: flex;
    align-items: center;
}
.actions-icon > * + * {
    margin-left: 1em;
}

.card:has(.actions-icon) {
    --action-btn-size: 2em;
}
.actions-icon .action {
    font-size: 0.9em;
    padding: 0;
    width: var(--action-btn-size);
    height: var(--action-btn-size);
    justify-content: center;
}

.actions-icon .action-primary,
.actions-icon .action-primary:hover,
.actions-icon .action-primary:focus {
    color: hsla(220, 70%, 50%, 0.8);
}
.actions-icon .action-danger,
.actions-icon .action-danger:hover,
.actions-icon .action-danger:focus {
    color: hsla(0, 60%, 50%, 0.8);
}

.actions-sm {
    font-size: 0.9em;
}
.card:has(.actions-sm) {
    --action-btn-size: 1.8em;
}
.actions-sm .action {
    width: var(--action-btn-size);
    height: var(--action-btn-size);
}
.actions-sm > * + * {
    margin-left: 0.75em;
}

/* #region ==================== ALERT */

.alert {
    padding: 0.4rem 0.9rem 0.5rem;
}
.alert-dismissible {
    padding-right: 2.1rem !important;
}
.alert-dismissible .close {
    border-radius: .25rem;
    outline: none;
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
    top: 0.15rem;
    right: 0.2rem;
    opacity: 1;
    color: hsl(0, 0%, 28%, 0.4);
    text-shadow: none;
}
.alert-dismissible .close:focus {
    opacity: 1 !important;
    color: hsl(0, 0%, 28%, 0.55);
    background-color: hsla(0, 0%, 0%, 0.05);
}
.alert-dismissible .close:hover {
    opacity: 1 !important;
    color: hsl(0, 0%, 28%, 0.55);
    background-color: hsla(0, 0%, 0%, 0.05);
}
.alert-dismissible .close:active {
    opacity: 1 !important;
    color: hsl(0, 0%, 28%, 0.6);
    background-color: hsla(0, 0%, 0%, 0.1);
}

.alert-success-destruct {
    border: none;
    background-color: hsl(135deg 60% 89%);
    background-image: linear-gradient(179deg, hsl(135deg 60% 89%), hsla(0deg 60% 89% / 75%));
}

.alert ul {
    margin-bottom: 0;
}
.alert * + ul {
    margin-top: 0.25em;
}

/* #endregion */


/* #region ==================== NOTIFICATIONS */

.notifications > .alert {
    margin-bottom: 0;
}
.notifications > .alert + .alert {
    margin-top: 0.5em;
}

.notifications:empty,
.notifications:first-child:empty + * {
    margin-top: 0 !important;
}

main :is(.card-body, .modal-body) .notifications:not(:empty):not(:first-child) {
    margin-top: 1em;
}
main :is(.card-body, .modal-body) .notifications:not(:empty) {
    margin-bottom: 1em;
}

main >                                  .notifications > .alert,
main > :is(.container, .tw-container) > .notifications > .alert {
    border: none;
    box-shadow:
        0 0 2px hsl(0deg 0% 0% / 10%),
        0 1px 2px hsl(0deg 0% 0% / 20%);
}
main >                                  .notifications > .alert-success,
main > :is(.container, .tw-container) > .notifications > .alert-success {
    background-color: hsl(135deg 60% 89%);
}

/* #endregion */


/* #region ==================== VALIDATION ERRORS */

/* TODO: field-wrapper vs input-container vs select-container */

:is(
    .form-control,
    .custom-select,
    .input-group,
    .form-group,
    .select-container,
    .input-container,
    .input-value-length-indicator,
    .button-radios,
    .input-dropdown,
) + .alert {
    margin-top: 0.5em;
    margin-bottom: 0;
}
:is(
    .form-control,
    .custom-select,
    .input-group,
    .form-group,
    .select-container,
    .input-container,
    .input-value-length-indicator,
    .button-radios,
    .input-dropdown,
) + .alert ~ .alert {
    margin-top: 0.5em;
    margin-bottom: 0;
}
.alert.small {
    padding: 0.25rem 0.5rem;
}
.alert.small.alert-dismissible .close {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
}

/* #endregion */

/* #region ==================== PHONE INPUT */

.phone-input .phone-ccc {
    position: relative;
    display: flex;
    align-items: stretch;
}

.phone-input .phone-ccc > .phone-ccc-toggle {
    min-width: 6.4rem;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0 0.6rem;
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: 0.25rem 0 0 0.25rem;
    background: #fff;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.phone-input .phone-ccc > .phone-ccc-toggle:focus {
    box-shadow: none;
}

.phone-input .phone-ccc > .phone-ccc-toggle::after {
    margin-left: 0.45rem;
}

.phone-input .phone-ccc > .phone-ccc-toggle .code {
    font-size: 0.92rem;
    line-height: 1;
}

.phone-input .phone-ccc > .phone-ccc-toggle.bs-relative,
.phone-input .js-phone-main.bs-relative {
    height: calc(1.5em + 0.5em + 2px);
}

.phone-input .phone-ccc .dropdown-menu {
    padding: 0;
    min-width: 18rem;
    max-width: min(24rem, 90vw);
}

.phone-input .phone-ccc .phone-ccc-search-wrap {
    padding: 0.5rem;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.08);
    background: #fff;
}

.phone-input .phone-ccc .phone-ccc-search-wrap > input {
    font-size: 0.9rem;
}

.phone-input .phone-ccc .phone-ccc-empty {
    padding: 0.55rem 0.8rem;
    opacity: 0.7;
    font-size: 0.85rem;
}

.phone-input .phone-ccc .phone-ccc-list {
    max-height: 15.5rem;
    overflow: auto;
}

.phone-input .phone-ccc .phone-ccc-item {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.phone-input .phone-ccc .flag {
    display: block;
    width: 32px;
    height: 32px;
    background-image: var(--country-flags-url);
}

.phone-input .phone-ccc .text {
    display: flex;
    flex-direction: column;
    margin-left: 0.6em;
    line-height: 1;
    gap: 0.2em;
}

.phone-input .phone-ccc .flag.d-none + .text {
    margin-left: 0;
}

.phone-input .phone-ccc .country {
    opacity: 0.8;
    font-size: 0.72em;
}

.phone-input .phone-ccc .code {
    font-size: 0.9em;
}

.phone-input .js-phone-main {
    height: calc(1.5em + 0.75rem + 2px);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* #endregion */

.background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: -1;
    /* position: relative; */
}

/* .background .background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/backgrounds/abstract-blue-triangle-geometric-background-vector.jpg");
    background-position: center;
    background-size: cover;
    opacity: 0.06;
}
.background .background.tileable {
    background-position: left top;
    background-size: auto;
} */


.background .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}



.background .attribution {
    display: inline-flex;
    padding: 0.5rem 1rem;
    position: fixed;
    left: 0.5rem;
    bottom: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.25;
    user-select: none;
    transition: all 0.1s;
    display: none;
    /* position: relative; */
    /* z-index: 2; */
}
.background .attribution .bullet {
    margin: 0 0.5em;
    font-size: 0.9em;
}
.background .attribution:hover {
    opacity: 0.5;
    color: hsla(0, 0%, 0%, 0.8);
    background-color: hsla(0, 0%, 0%, 0.075);
}
.background .attribution .icon {
    display: inline-block;
    margin-right: 0.5em;
}
.background .attribution a {
    color: inherit;
}

.background .attribution.to-right {
    left: unset;
    right: 1rem;
    align-items: center;
}
.background .attribution.to-right .columns {
    justify-content: flex-end;
}
.bootstrap-select {
    padding: .375rem .75rem;
    border: 1px solid #ced4da !important;
    border: none !important;
}


.bootstrap-select .dropdown-menu {
    box-shadow: 0 0.1em 0.5em hsl(0deg 0% 0% / 20%);
    z-index: 9999;
}


.bootstrap-select:focus,
.bootstrap-select:active {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.bootstrap-select.show button.btn.dropdown-toggle {
    border: 1px solid #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.bootstrap-select > button.btn.dropdown-toggle {
    background-color: white !important;
    border: 1px solid #ced4da;
    outline: none !important;
    color: inherit !important;
}

.bootstrap-select > button.btn.dropdown-toggle:focus,
.bootstrap-select > button.btn.dropdown-toggle:active {
    border: 1px solid #80bdff !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25) !important;
}

.bootstrap-select a {
    outline: none !important;
}

.bootstrap-select .dropdown-menu a.dropdown-item {
    padding: 0.5em 0.75em;
    /* padding: .375rem .75rem; */
}


.bootstrap-select .dropdown-toggle.disabled {
    opacity: 1 !important;
}



nav.breadcrumbs {
    font-size: 0.8em;
    padding: 0 0.25em;
}
nav.breadcrumbs .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}
nav.breadcrumbs .breadcrumb-item {
    display: flex;
}
nav.breadcrumbs .breadcrumb-item a {
    color: hsl(210, 75%, 40%);
}
nav.breadcrumbs .breadcrumb-item a:hover {
    color: hsl(210, 75%, 45%);
}
nav.breadcrumbs .breadcrumb-item a:active {
    color: hsl(210, 75%, 30%);
    text-decoration: underline;
}

main nav.breadcrumbs .breadcrumb-item .icon {
    margin-top: -0.1em;
}

main > nav.breadcrumbs {
    margin-top: -1rem;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}
.btn {
    user-select: none;
}

/* #region ==================== PRIMARY */

/* over-saturated */
.btn-primary {
    color: hsl(0, 0%, 100%);
    background-color: hsl(210, 70%, 50%);
    border-color: hsl(210, 70%, 50%);
}

.btn.disabled, .btn:disabled {
    cursor: not-allowed;
    opacity: 0.33;
}

/* .btn-primary {
    color: hsl(0, 0%, 100%);
    background-color: hsl(40, 70%, 55%);
    border-color: hsl(40, 70%, 53%);
    text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.3);color: hsl(0, 0%, 100%);
    background-color: hsl(211, 100%, 50%);
    border-color: hsl(211, 100%, 50%);
}
.btn-primary:hover {
    color: hsl(0, 0%, 100%, 1);
    background-color: hsl(40, 65%, 50%);
    border-color: hsl(40, 65%, 48%);
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
    color: hsl(0, 0%, 100%, 0.9);
    background-color: hsl(40, 60%, 45%);
    border-color: hsl(40, 60%, 43%);
    box-shadow: 0 0 0 0.2rem hsla(40, 80%, 60%, 0.5);
}

.btn-primary.focus,
.btn-primary:focus {
    color: hsl(0, 0%, 100%, 0.9);
    background-color: hsl(40, 65%, 50%);
    border-color: hsl(40, 65%, 48%);
    box-shadow: 0 0 0 0.2rem hsla(40, 80%, 60%, 0.5);
}
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem hsla(40, 80%, 60%, 0.5);
} */

/* #endregion */


/* #region ==================== PALE */

/* based on .input-group-text */

.btn-pale {
    color: hsl(210, 10%, 30%);
    background-color: hsl(210, 15%, 93%);
    border: 1px solid hsl(210, 15%, 83%);
}
.btn-pale:hover {
    color: hsl(210, 10%, 30%);
    background-color: hsl(210, 15%, 89%);
    border: 1px solid hsl(210, 15%, 79%);
}
.btn-pale:focus {
    color: hsl(210, 10%, 30%);
    background-color: hsl(210, 15%, 89%);
    border: 1px solid hsl(210, 15%, 79%);
    box-shadow: 0 0 0 0.2rem hsla(210, 10%, 55%, 0.25);
}
.btn-pale:active {
    background-color: hsl(210, 15%, 84%);
    border: 1px solid hsl(210, 15%, 74%);
}

/* #endregion */


/* #region ==================== PALE DARK */

.btn-pale-dark {
    color: hsla(210, 10%, 30%, 0.9);
    background-color: hsl(210, 15%, 88%);
    border: 1px solid hsl(210, 15%, 78%);
}
.btn-pale-dark:focus {
    color: hsla(210, 10%, 30%, 0.9);
    background-color: hsl(210, 15%, 84%);
    border: 1px solid hsl(210, 15%, 75%);
    box-shadow: 0 0 0 0.2rem hsla(210, 10%, 55%, 0.2);
}
.btn-pale-dark:hover {
    color: hsla(210, 10%, 30%, 0.9);
    background-color: hsl(210, 15%, 84%);
    border: 1px solid hsl(210, 15%, 75%);
}
.btn-pale-dark:active {
    background-color: hsl(210, 16%, 79%);
    border: 1px solid hsl(210, 14%, 72%);
}

.btn-pale-dark.active {
    color: hsl(210, 10%, 100%, 0.9);
    text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.2);
    background-color: hsl(210, 15%, 55%);
    border: 1px solid hsl(210, 15%, 52%);
}
.btn-pale-dark.active:focus {
    color: hsl(210, 10%, 100%, 0.85);
    background-color: hsl(210, 15%, 50%);
    border: 1px solid hsl(210, 15%, 45%);
    box-shadow: 0 0 0 0.2rem hsla(210, 25%, 45%, 0.3);
}
.btn-pale-dark.active:hover {
    color: hsl(210, 10%, 100%, 0.85);
    background-color: hsl(210, 15%, 50%);
    border: 1px solid hsl(210, 15%, 45%);
}
.btn-pale-dark.active:active {
    color: hsl(210, 10%, 100%, 0.8);
    background-color: hsl(210, 15%, 45%);
    border: 1px solid hsl(210, 15%, 40%);
}

/* #endregion */


/* #region ==================== PALE DARKER */

.btn-pale-darker {
    color: hsla(210, 10%, 30%, 0.9);
    background-color: hsl(210, 15%, 83%);
    border: 1px solid hsl(210, 15%, 73%);
}
.btn-pale-darker:focus {
    color: hsla(210, 10%, 30%, 0.9);
    background-color: hsl(210, 15%, 79%);
    border: 1px solid hsl(210, 15%, 70%);
    box-shadow: 0 0 0 0.2rem hsla(210, 10%, 55%, 0.2);
    box-shadow: 0 0 0 0.2rem hsl(210deg 25% 35% / 20%);
}
.btn-pale-darker:hover {
    color: hsla(210, 10%, 30%, 0.9);
    background-color: hsl(210, 15%, 79%);
    border: 1px solid hsl(210, 15%, 70%);
}
.btn-pale-darker:active {
    background-color: hsl(210, 16%, 74%);
    border: 1px solid hsl(210, 14%, 67%);
}

/* #endregion */


/* #region ==================== ALIEN */

/* no semantic meaning; just different from the rest */

.btn-alien {
    color: hsl(280, 20%, 40%);
    background-color: hsl(280, 25%, 82%);
    border: 1px solid hsl(280, 25%, 77%);
}
.btn-alien:focus {
    box-shadow: 0 0 0 0.2rem hsla(280, 20%, 65%, 0.25);
}
.btn-alien:focus,
.btn-alien:hover {
    color: hsl(280, 20%, 35%);
    background-color: hsl(280, 25%, 78%);
    border: 1px solid hsl(280, 25%, 73%);
}
.btn-alien:active {
    color: hsl(280, 20%, 30%);
    background-color: hsl(280, 25%, 75%);
    border: 1px solid hsl(280, 25%, 70%);
}

/* #endregion */


/* #region ==================== WHATSAPP */

.btn-whatsapp {
    color: white;
    background-color: hsl(142deg 70% 45%);
    border: 1px solid hsl(142deg 70% 40%);
}
.btn-whatsapp:hover {
    color: white;
    background-color: hsl(142deg 70% 40%);
    border: 1px solid hsl(142deg 70% 35%);
}
.btn-whatsapp:focus {
    color: white;
    background-color: hsl(142deg 70% 40%);
    border: 1px solid hsl(142deg 70% 35%);
    box-shadow: 0 0 0 0.2rem hsl(142deg 70% 50% / 25%);
}
.btn-whatsapp:active {
    background-color: hsl(142deg 70% 30%);
    border: 1px solid hsl(142deg 70% 25%);
}

/* #endregion */

.card {
    border: none;
    background-color: rgb(253, 253, 253);
    box-shadow: 0 0 2px hsla(0, 0%, 0%, 0.1),
                0 1px 2px hsla(0, 0%, 0%, 0.2);    
}
.card .card-header {
    padding: 0 1.25rem;
    height: 2.8125em;
    display: flex;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.075);
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
    align-items: center;
}

:not(.card-deck) > .card + .card {
    margin-top: 1rem;
}

.card .card-header .flex-container {
    justify-content: space-between;
}


/* #region ==================== HEADER */

.card .card-header h1 a {
    color: inherit;
    text-decoration: none;
}
.card .card-header h1 a:hover span:not(.icon) {
    text-decoration: underline;
}
.card .card-header a:active {
    color: hsla(0, 0%, 0%, 0.8);
} 

/* #endregion */


/* #region ==================== IMAGE */

.card.image-upload .preview {
    width: 200px;
    width: 100%;
    height: 200px;
    background-color: hsla(0, 0%, 0%, 0.04);
    /* border: 1px solid hsla(0, 0%, 0%, 0.05); */
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}
.card.image-upload .preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* #endregion */
/* ==================== SUBMENU ==================== */

.dropdown-menu {
    /* min-width: 8em; */
    /* min-width: 100%; */
    border: none;
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.2),
                0 0 1px hsla(0, 0%, 0%, 0.2);
}
.dropdown-menu,
.dropdown-menu * {
    color: inherit !important;
}


/* ==================== SUBMENU ITEM ==================== */

:root {
    --dd-item-right-padding: 3rem;
}

.dropdown-item {
    padding: 0.25rem 1rem;
    padding-right: var(--dd-item-right-padding);
    cursor: pointer;
    user-select: none;
}
.dropdown-item:focus {
    background-color: hsla(0, 0%, 0%, 0.04);
}
.dropdown-item:hover {
    background-color: hsla(0, 0%, 0%, 0.06);
}
.dropdown-item:focus *,
.dropdown-item:hover * {
    text-decoration: none !important;
}
.dropdown-item.active,
.dropdown-item:active {
    color: hsla(0, 0%, 0%, 0.7);
    background-color: hsla(0, 0%, 0%, 0.1);
}


/* ==================== PUSHABLE ==================== */

.dropdown-item.pushable {
    padding: 0;
}
.dropdown-item.pushable > :first-child {
    display: flex;
    transition: transform 0.1s;
    padding: 0.25rem 1rem;
    padding-right: var(--dd-item-right-padding);
}
.dropdown-item.pushable:active > :first-child {
    transform: scale(0.95);
}


/* ==================== ICON ==================== */

.dropdown-item .icon {
    width: 1.5em;
    margin-left: -0.25em;
    font-size: 0.9em;
}


/* ==================== INDICATOR ==================== */

.dropdown-toggle .indicator {
    margin-left: 1em;
    font-size: 0.9em;
    margin-top: 0.1em;
    opacity: 0.75;
}



/* ==================== SPLIT ==================== */

.btn-group > .dropdown-toggle-split {
    border-left: 1px solid hsla(0, 0%, 100%, 0.1);
}

.btn-group > .dropdown-toggle-split.btn-secondary:hover {
    border-left: 1px solid hsl(210, 8%, 36%);
}
.btn-group > .dropdown-toggle-split.btn-primary:hover {
    border-left: 1px solid hsl(210, 100%, 40%);
}







.btn.dropdown-toggle:not(:empty)::after {
    /* margin-top: 0.2em; */
    margin-left: 0.5em;
}





.input-group > .input-group-prepend .dropdown-toggle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    display: inline-flex;
    align-items: center;
}

.input-group > .input-group-prepend + .input-group-prepend .dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: inline-flex;
    align-items: center;
}


.input-group > .input-group-append .dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}




.time-durations {
    display: flex;
    margin-right: 1rem;
    white-space: nowrap;
    gap: 0.5rem;
}
.duration-choice {
    display: flex;
    align-items: center;
    margin-left: 0.5em;
}
.entities.grid {
    display: grid;
    grid-gap: 0.5em;
    grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
    min-height: 66px;
}

/* #region ==================== ENTITY */

.entities.grid .entity {
    padding: 0.5em;
    display: flex;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.1s;
    user-select: none;
}

/* #endregion */


/* #region ==================== AVATAR */

.entities.grid .entity .avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.entities.grid .entity .image {
    display: block;
    width: 3em;
    height: 3em;
    flex-shrink: 0;
    border-radius: calc(5% + 0.5rem);
    overflow: hidden;
}
.entities.grid .entity .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entities.grid .entity .icon {
    display: block;
    width: 50px;
    flex-shrink: 0;
    border-radius: calc(5% + 0.5rem);
    overflow: hidden;
}
.entities.grid .entity .icon img {
    display: block;
    width: 100%;
}

/* #endregion */


/* #region ==================== INFO */

.entities.grid .entity .info {
    margin-left: 0.5em;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.entities.grid .entity .info .entity-primary,
.entities.grid .entity .info .entity-secondary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.entities.grid .entity .info .entity-secondary {
    color: rgba(0,0,0,0.4);
    transition: all 0.1s;
}

/* #endregion */


/* #region ==================== HOVER */

.entities.grid .entity:hover {
    background-color: hsla(210, 20%, 50%, 0.05);
    color: rgba(0,0,0,0.8);
}
.entities.grid .entity:active {
    background-color: hsla(210, 20%, 50%, 0.08);
}
.entities.grid .entity:hover .info .entity-secondary {
    color: rgba(0,0,0,0.5);
}

/* #endregion */


/* #region ==================== LIST */

.entities.list table {
    width: 100%;
}

/* .entities.list th.index {
    width: 4em;
    max-width: 4.7em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    direction: rtl;
} */

/* #endregion */


/* #region ==================== LIST: COLUMN HEADERS */

.entities.list thead th {
    background-color: hsla(210, 50%, 25%, 0.05);
    background-image: linear-gradient(hsla(210, 50%, 25%, 0.01), hsla(210, 50%, 25%, 0.1));
    font-weight: 500;
    /* border-top: 1px solid hsl(0, 0%, 85%);
    border-bottom: 1px solid hsl(0, 0%, 85%); */
    border: 1px solid hsl(0, 0%, 85%);
}
.entities.list thead th {
    padding: 0.25em 0.5em;
    padding: 0.5em 0.75em;
}
.entities.list thead tr:last-child th {
    /* border-bottom: 1px solid hsl(0, 0%, 80%); */
    border: 1px solid hsl(0, 0%, 80%);
}

/* #endregion */


/* #region ==================== LIST: ROW HEADERS */

.entities.list tbody th {
    background-color: hsla(210, 50%, 25%, 0.05);
    /* background-image: linear-gradient(hsla(210, 50%, 25%, 0.01), hsla(210, 50%, 25%, 0.1)); */
    font-weight: 500;
    /* border-top: 1px solid hsl(0, 0%, 85%);
    border-bottom: 1px solid hsl(0, 0%, 85%); */
    border: 1px solid hsl(0, 0%, 85%);
}

/* #endregion */


/* #region ==================== LIST: DATA / CELLS */

.entities.list tbody :is(th, td) {
    /* border-top: 1px solid hsl(0, 0%, 90%);
    border-bottom: 1px solid hsl(0, 0%, 90%);
    border-left: 1px solid hsl(0, 0%, 90%);
    border-right: 1px solid hsl(0, 0%, 90%); */
    border: 1px solid hsl(0, 0%, 90%);
    padding: 1em 0.75em;
}
.entities.list tbody :is(th, td).col-avatar {
    padding: 0.25em 0.75em;
}

/* #endregion */


/* #region ==================== LIST: STRIPES */

.entities.list:not(.no-stripe) tbody tr:nth-child(even),
.entities.list:not(.no-stripe) tbody tr:nth-child(even) {
    background-color: hsla(210, 50%, 25%, 0.03);
}

.body-stripe tbody:nth-child(odd) {
    background-color: hsla(210, 50%, 25%, 0.03);
}

/* .entities.list tbody tr:nth-child(even) th,
.entities.list tbody tr:nth-child(even) td {
    background-color: hsla(210, 50%, 25%, 0.03);
}
.entities.list tbody tr:nth-child(odd) td {
    border-left: 1px solid hsl(0, 0%, 92%);
    border-right: 1px solid hsl(0, 0%, 92%);
} */

/* #endregion */


/* #region ==================== LIST: STATES / HOVER */

.entities.list:not(.no-hover) tbody tr:hover {
    background-color: hsla(210, 50%, 25%, 0.05);
}
.entities.list:not(.no-hover) tbody tr:hover td {
    border: 1px solid hsl(0, 0%, 88%);
}

.body-hover tbody:hover {
    background-color: hsla(210, 50%, 25%, 0.05);
}
.body-hover tbody:hover td {
    border: 1px solid hsl(0, 0%, 88%);
}

.entities.list tbody tr.active td {
    background-color: hsl(210, 60%, 70%);
    color: white;
    text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.4);
}
.entities.list tbody tr.active td a {
    color: inherit;
}

/* #endregion */


/* #region ==================== LIST: AVATAR */

.entities.list .avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    cursor: pointer;
}

.entities.list .avatar .image {
    display: block;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    border-radius: calc(5% + 0.25rem);
    overflow: hidden;
}
.entities.list .avatar .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entities.list .avatar .icon {
    display: block;
    width: 1.5em;
    flex-shrink: 0;
    border-radius: calc(5% + 0.25rem);
    overflow: hidden;
}
.entities.list .avatar .icon img {
    display: block;
    width: 100%;
}

.entities.list .col-avatar .avatar .image {
    width: 1.75em;
    height: 1.75em;
}

/* #endregion */


/* #region ==================== LIST: BADGES */

.entities.list tbody .badge {
    user-select: none;
}

/* #endregion */


/* #region ==================== LIST: CONTROLS */

.entities-controls div[class*=col]:not(:empty) + div[class*=col]  {
    margin-left: 0.5em;
}

.entities-controls .col-selected-filters:not(:empty) {
    /* margin-left: 0.5em; */
    display: flex;
}

/* .entities-controls .col-selected-filters .search-filter + .search-filter {
    margin-left: 0.5em;
} */

.entities-controls .col-default-filters {
    display: flex;
    gap: 0.5em;
}

.entities-controls {
    display: flex;
    margin-bottom: 1em;
}
.entities-filters {
    flex-grow: 1;
}
.entities-filters .remove-filter .input-group-text {
    color: hsl(0deg 25% 30% / 90%);
    background-color: hsl(0deg 20% 90%);
    border: 1px solid hsl(0deg 20% 80%);
    cursor: pointer;
}
.entities-filters .remove-filter .input-group-text:hover {
    background-color: hsl(0deg 20% 85%);
    border: 1px solid hsl(0deg 20% 75%);
}
.entities-filters .remove-filter .input-group-text:active {
    background-color: hsl(0deg 20% 80%);
    border: 1px solid hsl(0deg 20% 70%);
}
.entities-displays {
    margin-left: 1em;
    color: hsl(210, 10%, 30%);
    background-color: hsl(210, 15%, 93%);
    display: flex;
    justify-content: space-between;
    border: 1px solid hsl(210, 15%, 79%);
    border-radius: 0.25em;
}
.entities-displays label {
    margin-bottom: 0;
    width: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
}
.entities-displays label:hover,
.entities-displays label:active {
    border: none;
}
.entities-displays label.active-display {
    background-color: hsl(210, 15%, 80%);
}
.entities-displays input[type=radio] {
    display: none;
}
.entities-displays .seperator {
    border-left: 1px solid hsl(210, 15%, 79%);
}

.col-available-filters .dropdown-item img {
    width: 1.1em;
    opacity: 0.7;
}


/* #endregion */

/* ==================== GROUP ==================== */

.form-groups {
    flex-grow: 1;
}

.form-group:last-child {
    margin-bottom: 0;
}

input.readonly:focus {
    box-shadow: none;
    border: 1px solid hsl(210deg 14% 83%);
}

/* ==================== LABEL ==================== */

.form-group > label {
    font-weight: 500;
    white-space: nowrap;
}


/* ==================== SUBMIT ==================== */

.form-group.submit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.form-group.submit .custom-checkbox + .btn {
    margin-left: 2em;
}


/* #region ==================== BS CUSTOM FILE PLACEHOLDER */

.custom-file input[type=file],
.custom-file .custom-file-label {
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-file:not(.has-file) .custom-file-label {
    color: hsl(0deg 0% 0% / 30%);
}
.custom-file.has-file {
    color: hsl(210deg 9% 31%);
}

.custom-file-adv {
    display: flex;
}
.custom-file-adv .remove-file {
    margin-left: 0.5em;
    padding-left: 0.75em;
    padding-right: 0.75em;
}

/* #endregion */


/* #region ==================== CURSOR: CHECKBOX & RADIO */

:is(.custom-checkbox, .custom-radio).cursor-pointer :is(
    .custom-control-input,
    .custom-control-label
) {
    cursor: pointer;
}

label.cursor-pointer > :is(
    input[type=checkbox],
    input[type=radio]
) {
    cursor: pointer;
}

:is(button, .btn) > :is(
    input[type=checkbox],
    input[type=radio]
) {
    cursor: pointer;
}

/* #endregion */


/* #region ==================== BUTTON RADIOS */

.button-radios {
    display: flex;
    gap: 0.5em;
}
.button-radios label {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0;
}

.button-radios label .text span {
    white-space: nowrap;
}

/* #endregion */

h1, h2, h3 {
    margin-bottom: 0.75em;
}

/*
    Page does NOT contain an entity.
    Cards have the primary role.
    Examples: gate/login. 
*/
.card-header h1 {
    font-size: 1.2em;
    padding-top: 0.1em;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}

/*
    Page contains an entity.
    Cards have secondary roles.
    Examples: user/info. 
*/
.card-header h2 {
    font-size: 1.1em;
    margin-bottom: 0;
}

/*
    Sectioning is done inside a card (body).
    Examples: gate/apply, application. 
*/
/* this no longer needed? */
/* conflicts with markdown */
/* .card-body h2 {
    color: hsla(210, 50%, 50%);
    font-size: 1em;
} */



/* ==================== LINE STYLES ==================== */

.line-right {
    display: flex;
    align-items: center;
}
.line-right::after {
    content: " ";
    height: 1px;
    background-color: black;
    flex-grow: 1;
    margin-left: 1em;
    margin-top: 0.25em;
    opacity: 0.2;
}

.line-bottom {
    border-bottom: 0.8px solid hsla(0, 0%, 0%, 0.2);
    padding-bottom: 0.25em;
    padding-left: 0.1em;
}

.hr-seperator {
    position: relative;
    margin-top: 0.5em;
}
.hr-seperator:after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.2);
    z-index: 9;
}
.hr-seperator.is-blank {
    height: 1px;
}
.hr-seperator.is-blank:after {
    top: 0;
}
.hr-seperator.middle-line:after {
    top: calc(50% + 1px);
}
.hr-seperator.middle-line .seperator-text {
    background-color: white;
    z-index: 99;
    position: relative;
    padding-right: 0.5em;
}
.hr-seperator.middle-line .seperator-text.text-indent {
    padding-left: 0.5em;
    margin-left: 0.5em;
}
.hr-seperator.middle-line .seperator-text.text-center {
    margin-left: auto;
    margin-right: auto;
    display: table;
    padding-left: 0.5em;
}
.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
}

.has-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}
.has-icon:not(.flex-column) .icon ~ span {
    margin-left: 0.5em;
    white-space: nowrap;
}
.has-icon span + .icon {
    margin-left: 0.5em;
}
.has-icon .icon > i {
    margin-top: 0.1em;
}

a.has-icon:not(.btn):hover .icon + span {
    text-decoration: underline;
}
a.has-icon:not(.btn):active .icon + span {
    text-decoration: underline;
}

.btn.has-icon.dropdown-toggle::after {
    margin-left: 0.5em;
}
.btn.icon-only {
    font-size: 0.9em;
    padding: 0;
    width: 2em;
    height: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}



.js-sticky-active {
    position: fixed;
    z-index: 9999;
}
main > * + *:not(.modal) {
    margin-top: 1em;
}

.row + .row,
.row + .card {
    margin-top: 1rem;
}

.card-container {
    display: flex;
}

.card-container .card + .card {
    margin-left: 1rem;
}
.modal-content {
    background-color: rgb(253, 253, 253);
    box-shadow: 0 0.25em 0.5em hsla(0, 0%, 0%, 0.4);
}
.modal-header {
    background-color: hsla(0, 0%, 0%, 0.04);
    border-bottom: 1px solid hsl(210, 15%, 86%);
}
.modal-footer {
    background-color: hsla(0, 0%, 0%, 0.02);
}

.modal-header .close {
    padding: 0.2em 0.4em;
    margin: -0.1em -0.2em -1em auto;
    border-radius: 0.2em;
    outline: none;
    transition: background-color 0.15s;
}
.modal-header .close:hover {
    background-color: hsla(0deg 0% 0% / 10%);
}
.modal-header .close:active {
    background-color: hsla(0deg 0% 0% / 20%);
}

#page-header .entity {
    display: flex;
}
#page-header .entity .avatar {
    line-height: 1;
    width: 50px;   /* was 64px: shrink ~50% */
    height: 50px;  /* was 64px: shrink ~50% */
    margin: 0;
    margin-right: 0.5em;
}
#page-header .entity .avatar .icon {
    font-size: 1.3rem; /* shrink icon inside header avatar */
}
#page-header .entity .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#page-header .entity .info nav.breadcrumbs {
    font-size: 0.75em;
    /*margin-bottom: 0.25em;*/
}
#page-header .entity h1 {
    font-size: 1.25rem; /* smaller title to reduce header height */
    margin-bottom: 0;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pagination:not(:empty) {
    margin-top: 1em;
}
.pagination .pages {
    display: flex;
    align-items: center;
}
.pagination .pages :is(strong, a) {
    padding: 0.5em 0.7em;
    background-color: hsl(0, 0%, 95%);
    border-radius: 0.2em;
    line-height: 1;
}
.pagination .pages :is(strong, .active) {
    background-color: hsl(210, 20%, 90%);
    font-weight: 500;
}
.pagination .pages >*:not(:first-child) {
    margin-left: 0.3em;
}
.pagination .pages a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.pagination .pages a:hover {
    background-color: hsl(0, 0%, 92%);
}
.pagination .pages a:active {
    background-color: hsl(0, 0%, 88%);
}


.pagination .page-size {
    display: flex;
    align-items: center;
}
.pagination .page-size span {
    white-space: nowrap;
    margin-right: 0.5em;
    margin-top: -0.2em;
}
.pagination .page-size .custom-select-sm {
    height: calc(1.5em + 0.5rem + 3px);
    padding-top: 0.3rem;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background-color: #f2f2f2;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-corner {
    background-color: #ffffff;
    border-radius: 0;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #bfbfbf;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: hsla(0, 0%, 70%, 0.95);
}
.custom-scrollbar::-webkit-scrollbar-thumb:active {
    background-color: hsla(0, 0%, 65%, 0.95);
}
/* #region ==================== UNDERLINED ROWS */

table {
    --row-space: 0.25em;
}

table.row-line-dotted > :is(thead, tbody, tfoot) > tr > td {
    border-bottom: 1px dotted hsla(0, 0%, 0%, 0.15);
}

table.row-space-2 > :is(thead, tbody, tfoot) > tr:not(:first-child) > td {
    padding-top: calc(var(--row-space) * 2);
}
table.row-space-3 > :is(thead, tbody, tfoot) > tr:not(:first-child) > td {
    padding-top: calc(var(--row-space) * 3);
}

table.px-1 > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    padding-left: 0.25em;
    padding-right: 0.25em;
}
table.px-1-5 > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    padding-left: 0.375em;
    padding-right: 0.375em;
}
table.py-1 > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    padding-top: 0.25em;
    padding-bottom: 0.25em;
}
table.py-2 > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

table.row-line-dotted.row-line-space-1 > :is(thead, tbody, tfoot) > tr > td {
    padding-bottom: 0.25em;
}

table.col-1-pr-2 > :is(thead, tbody, tfoot) > tr > td:nth-child(1) {
    padding-right: 0.5em;
}
table.col-1-pr-3 > :is(thead, tbody, tfoot) > tr > td:nth-child(1) {
    padding-right: 1em;
}

/* #endregion */


table.top-header thead th {
    font-weight: 500;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.15);
}




/* #region ==================== LEFT HEADER */

table.left-header > :is(thead, tbody, tfoot) > tr > td:nth-child(1) {
    font-weight: 500;
    white-space: nowrap;
}

table.col-header-1 > :is(thead, tbody, tfoot) > tr > td:nth-child(1),
table.col-header-3 > :is(thead, tbody, tfoot) > tr > td:nth-child(3),
table.col-header-4 > :is(thead, tbody, tfoot) > tr > td:nth-child(4) {
    font-weight: 500;
    white-space: nowrap;
}


/* table.left-header-w-3 td:nth-child(1)   { width: 3em; }
table.left-header-w-3-5 td:nth-child(1) { width: 3.5em; }
table.left-header-w-4 td:nth-child(1)   { width: 4em; }
table.left-header-w-4-5 td:nth-child(1) { width: 4.5em; }
table.left-header-w-5 td:nth-child(1)   { width: 5em; } */
/* 
table.left-header.has-equals td:nth-child(2) {
    width: 0.75em;
    text-align: center;
} */

/* #endregion */


/* #region ==================== TWO COLUMNS */

table.two-cols > :is(thead, tbody, tfoot) > tr > td:last-child {
    text-align: right;
}

/* #endregion */


/* #region ==================== SEPERATOR */

table tr.seperator td {
    padding: 0 !important;
}
table tr.seperator hr {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* #endregion */


/* #region ==================== HOVERABLE */

:is(table, thead, tbody).hoverable tr:not(.not-hoverable):hover {
    background-color: hsla(0, 0%, 0%, 0.025);
    color: hsla(0, 0%, 0%, 0.8);
}

/* #endregion */


/* #region ==================== HEADER */

thead.bg-1 {
    background-color: hsl(0deg 0% 0% / 2.5%);
}

.header th {
    border-bottom: 1px solid hsla(0, 0%, 80%);
    padding-bottom: 0.25em;
}

.underline > :is(th, td) {
    border-bottom: 1px solid hsla(0, 0%, 80%);
    padding-bottom: 0.25em;
}

/* #endregion */


/* #region ==================== VERT-SPACE */

.vt-space-1 :is(th, td) {
    padding-top: 0.25em;
    padding-bottom: 0.25em;
}
.vt-space-2 :is(th, td) {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

/* #endregion */


/* #region ==================== HORZ-SPACE */

.hr-space-1 :is(th, td) {
    padding-left: 0.25em;
    padding-right: 0.25em;
}
.hr-space-2 :is(th, td) {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

/* #endregion */


/* #region ==================== BORDER */

table.border-1 :is(th, td) {
    border: 1px solid hsl(0deg 0% 90%);
}
table.border-2 :is(th, td) {
    border: 1px solid hsl(0deg 0% 80%);
}

/* #endregion */


/* #region ==================== TABLE: SCROLLABLE */

table.scrollable-body tbody {
    overflow: auto;
}
table.scrollable-body :is(thead, tbody) {
    display: block;
}
table.scrollable-body :is(thead, tbody) tr {
    display: block;
}
table.scrollable-body :is(thead, tbody) :is(th, td) {
    display: inline-block;
}
table.scrollable-body {
    overflow: auto;
}
table.scrollable-body tbody td {
    border-top: none;
}
table.scrollable-body tbody td:not(:last-child) {
    border-right: none;
}
table.has-overflow thead tr {
    padding-right: var(--scrollbar-width, 17px);
}

/* #endregion */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1rem;
}
.tabs a,
.tabs a span,
.tabs a:hover,
.tabs a:hover span {
    text-decoration: none !important;
}

.tabs .tab {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.tabs .digital-card-tab {
    position: relative;
    padding-right: 2.3rem;
}

.tabs .digital-card-tab::after {
    content: attr(data-new-label);
    position: absolute;
    top: -.55rem;
    right: -.35rem;
    min-width: 1.9rem;
    padding: .08rem .32rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 3px 8px rgba(127, 29, 29, .22);
    pointer-events: none;
}

.tabs .tab img {
    height: 1.2em;
}


/* .tabs a .seperator {
    margin-left: 0.5em;
    margin-right: 0.6em;
    color: hsl(0, 0%, 100%, 0.7);
}

.tabs a .seperator.bar {
    background-color: hsl(0, 0%, 100%, 0.5);
    width: 1px;
    display: inline-block;
    height: 1.5em;
} */

/* .btn-primary */
/* main > .tabs .tab.current {
    color: hsl(0, 0%, 100%);
    background-color: hsl(210, 70%, 50%);
    border-color: hsl(210, 70%, 50%);
} */

/* .btn-primary */
.tabs .subtab.active {
    color: hsl(0, 0%, 100%);
    background-color: hsl(210, 70%, 50%);
    border-color: hsl(210, 70%, 50%);
}



/* #region ==================== GENERAL */

.card.has-tabular-fields {
    /* --col-width: calc(100% / 12); */
    --row-width-offset: 0px;
    --row-width: calc(100% + var(--row-width-offset));
    --col-width: calc(var(--row-width) / 12);
    --col-gap: 1em;
    --col-reorder-width: 2em;
    --col-index-width: 2em;
    --col-actions-width: 5em;
}
.card.has-tabular-fields .card-body {
    padding-left: 0;
    padding-right: 0;
}

.tf-rows .row > .row {
    width: 100%;
}

.tf-rows-headers {
    font-weight: 500;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.15);
    padding-bottom: 0.1em;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* #endregion */


/* #region ==================== ALIGNMENTS & NOTIFICATIONS */

.tf-row .tf-detail-secondary,
.tf-row .tf-detail-tertiary,
.tf-row .tf-detail-quaternary {
    padding-left: calc(
        var(--col-reorder-width) + var(--col-gap)
        + var(--col-index-width) + var(--col-gap)
    );
    padding-right: calc(
        var(--col-actions-width) + var(--col-gap)
    );
}
.tf-row .tf-detail-primary > .notifications {
    /* padding-left: calc(1.5em + var(--col-gap));
    padding-right: calc(var(--col-width) * 0.8 - 4.5em); */
    padding-left: calc(
        var(--col-reorder-width) + var(--col-gap)
        + var(--col-index-width) + var(--col-gap)
    );
    padding-right: calc(
        var(--col-actions-width) + var(--col-gap)
    );
}
.tf-row .row + .notifications:not(:empty) {
    margin-top: 0.5em;
}
.card.has-tabular-fields .card-body > .notifications:first-child {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

/* #endregion */


/* #region ==================== ROW */

.tf-row {
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.tf-rows .tf-row:nth-child(even) {
    background-color: hsla(0, 0%, 0%, 0.025);
}
.tf-row + .tf-row {
    border-top: 1px solid hsla(0, 0%, 0%, 0.1);
    margin-top: 0;
}
.tf-rows > .tf-row:last-child {
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}
.tf-row > *:not(:first-child) {
    margin-top: 0.8em;
}

/* #endregion */


/* #region ==================== COLUMNS */

:is(
    .tf-rows-headers,
    .tf-row
) .col:not(:last-child) {
    margin-right: var(--col-gap);
}

/* #endregion */


.has-tabular-fields .col-index {
    display: flex;
    max-width: var(--col-index-width);
}
.has-tabular-fields .tf-rows .col-index {
    padding-top: 0.4em;
}

/* #region ==================== COLUMN: REORDER */

.has-tabular-fields .col-reorder {
    display: flex;
    /* align-items: center; */
    max-width: var(--col-reorder-width);
}
.has-tabular-fields .col-reorder .move-handle {
    width: 1.5em;
    height: 1.5em;
    opacity: 0.3;
}
.has-tabular-fields .tf-rows .col-reorder .move-handle {
    cursor: grab;
}
.has-tabular-fields .tf-rows .col-reorder .move-handle {
    margin-top: 0.4em;
}

/* #endregion */


/* #region ==================== COLUMN: ACTIONS */

.has-tabular-fields .col-actions {
    max-width: var(--col-actions-width);
}

/* #endregion */


/* #region ==================== DETAILS */

.tf-row .tf-detail-primary {
    flex-direction: column;
}
.tf-row [class*=tf-detail-] .col .actions-icon:not(:first-child) {
    margin-left: var(--col-gap);
}
.tf-row [class*=tf-detail-]:not(.tf-detail-primary) .input-container ~ .alert {
    margin-right: calc(var(--action-btn-size) + var(--col-gap));
}

/* #endregion */


/* #region ==================== LINES ACTIONS */

.tf-rows-actions {
    margin-top: 1em;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* #endregion */


/* #region ==================== FORM-CONTROL: DISABLED */

.tf-row .form-control[readonly],
.tf-row .form-control.readonly {
    background-color: hsl(210deg 16% 98%);
    border: 1px dashed hsl(210deg 14% 83%);
    color: hsla(0, 0%, 0%, 0.6) !important;
    cursor: default;
}
.tf-row :is(
    .form-control[readonly],
    .form-control.readonly,
    .form-control[disabled],
    .form-control.disabled
):focus {
    box-shadow: none !important;
}
/* .tf-row .form-control[readonly]:not(.disabled):focus,
.tf-row .form-control.readonly:not(.disabled):focus {
    box-shadow: none !important;
    border: 1px dashed hsl(210deg 14% 80%);
} */
.tf-row :is(.form-control, .custom-select)[disabled],
.tf-row :is(.form-control, .custom-select).disabled
{
    background-color: hsl(210deg 16% 96%);
    border: 1px solid hsl(210deg 14% 80%);
    color: hsl(0, 0%, 0%, 0.5) !important;
}
.tf-row .custom-select[disabled],
.tf-row .custom-select.disabled
{
    background: 
        hsla(210, 16%, 96%)
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'><path fill='hsla(210,10%,23%,0.3)' d='M2 0L0 2h4zm0 5L0 3h4z'/>></svg>")
        no-repeat right 0.75rem center/8px 10px;
}
.tf-row .input-group.disabled .input-group-text {
    color: hsl(0, 0%, 0%, 0.5);
}
.tf-row .input-group.readonly .input-group-text {
    border: 1px dashed hsl(210deg 14% 83%);
}

.tf-row .bootstrap-select.readonly .dropdown-toggle {
    background-color: hsl(210deg 16% 98%) !important;
    border: 1px dashed hsl(210deg 14% 83%);
    color: hsla(0, 0%, 0%, 0.6) !important;
    cursor: default;
    pointer-events: none;
}

.tf-row select[readonly],
.tf-row select.readonly {
    background-color: hsl(210deg 16% 98%) !important;
    border: 1px dashed hsl(210deg 14% 83%);
    color: hsla(0, 0%, 0%, 0.6) !important;
    cursor: default;
    pointer-events: none;
    background: #fff url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'><path fill='hsla(210,10%,23%,0.4)' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") no-repeat right 0.75rem center/8px 10px;
}

/* #endregion */
