/* Compact outlined labels retain a real accessible label, not placeholder-only text. */
.ctrms-field{position:relative;min-width:0;width:100%;margin-top:.45rem;}
.ctrms-field > .ctrms-field-label{
    position:absolute;top:22px;left:12px;z-index:4;transform:translateY(-50%);
    max-width:calc(100% - 24px);padding:0 .3rem;margin:0!important;
    width:auto!important;font-size:.9rem!important;line-height:1.25;font-weight:400;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    background:transparent;color:#654246;cursor:text;
    transition:top .17s ease,left .17s ease,font-size .17s ease,background-color .17s ease;
}
.ctrms-field.has-leading-icon > .ctrms-field-label{left:44px;}
.ctrms-field:focus-within > .ctrms-field-label,
.ctrms-field.is-filled > .ctrms-field-label,
.ctrms-field.is-always-raised > .ctrms-field-label,
.ctrms-field:has(> .form-control:not(:placeholder-shown)) > .ctrms-field-label,
.ctrms-field:has(> .input-group > .form-control:not(:placeholder-shown)) > .ctrms-field-label{
    top:0;left:12px;font-size:.72rem!important;font-weight:500;background:var(--ctrms-field-surface,#fff);
}
.ctrms-field .form-control::placeholder{color:transparent;transition:color .17s ease;}
.ctrms-field:focus-within .form-control::placeholder{color:#7b8088;}
.ctrms-field > .form-control,.ctrms-field > .form-select,.ctrms-field > .input-group > .form-control{
    min-height:44px;height:44px;border:1px solid #bfc5ce!important;
    padding:.65rem .8rem;font-size:.9rem;border-radius:8px;box-shadow:none;
}
.ctrms-field > textarea.form-control{height:auto;min-height:88px;resize:vertical;}
.ctrms-field > .input-group{flex-wrap:nowrap;}
.ctrms-field > .input-group > .form-control{min-width:0;width:1%;}
.ctrms-field > .input-group > .btn,.ctrms-field > .input-group > .input-group-text{min-height:44px;}
.ctrms-field > .input-group > :not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;}
.ctrms-field > .input-group > :not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;}
.ctrms-field .form-control:focus,.ctrms-field .form-select:focus{border-color:#7b1113!important;box-shadow:0 0 0 2px rgba(123,17,19,.1);}
.ctrms-field .form-control:disabled,.ctrms-field .form-select:disabled{color:#656b73;}
.login-card .ctrms-field{--ctrms-field-surface:#faf7f7;}
.ctrms-module-heading{flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:.7rem!important;margin-bottom:1rem!important;}
.ctrms-module-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.5rem;max-width:100%;}
.ctrms-module-actions > .d-flex{flex-wrap:wrap;}
.modal .modal-footer{justify-content:flex-start;gap:.5rem;}
.modal .modal-footer > *{margin:0;}
.modal .modal-footer button[type="submit"]{order:-1;}
.dt-container .dt-search{display:block;min-width:13rem;width:min(100%,20rem);text-align:left!important;margin:0!important;}
.dt-container .dt-search input{margin:0!important;width:100%;}
.dt-container .dt-search .ctrms-field{width:100%;}
.dt-container > .row:first-child{justify-content:flex-start;align-items:center;row-gap:.75rem;}
.dt-container > .row:first-child > .dt-layout-start,.dt-container > .row:first-child > .dt-layout-end{flex:0 1 auto;width:auto;justify-content:flex-start!important;margin-left:0!important;}
@media(max-width:575px){
    .ctrms-module-actions .btn{white-space:normal;}
    .dt-container .dt-search{width:100%;}
    .dt-container > .row:first-child > .dt-layout-end{flex:1 1 100%;}
}
@media(prefers-reduced-motion:reduce){.ctrms-field > .ctrms-field-label,.ctrms-field .form-control::placeholder{transition:none;}}
@media print{
    .ctrms-module-actions{display:none!important;}
    .ctrms-field > .ctrms-field-label{position:static;transform:none;background:transparent;}
}
