/* Shared record management follows the existing ibox and field styles. */
.onecup-record-management {width:100%;min-width:0;}
.onecup-record-management>.ibox-heading {cursor:pointer;}
.onecup-management-people {display:flex;flex-wrap:wrap;gap:5px;width:100%;min-width:0;}
.onecup-management-people>.opportunity-content {flex:1 1 180px;min-width:0;margin:0;}
.onecup-management-people .contacto-ficha {width:100%;}
.onecup-birthday-information {display:contents;}
.onecup-opportunity-start-fields {display:flex;flex-wrap:wrap;gap:15px;width:100%;min-width:0;}
html body .onecup-opportunity-start-fields>.form-group {width:calc(50% - 7.5px)!important;min-width:0;}
@media(max-width:768px){html body .onecup-opportunity-start-fields>.form-group {width:100%!important;}}

/* Close the complete panel, including the custom-field actions. */
.ibox.collapsed > .ibox-footer,
.ibox.collapsed > .ibox-content-footer {display:none;}

/* Let the owner picker extend beyond the management card. */
html body .onecup-record-management:not(.collapsed),
html body .onecup-record-management:not(.collapsed) > .ibox-content {overflow:visible;}
html body .onecup-record-management:focus-within {z-index:5;}

/* Align labels and controls, including the compact field actions. */
html body .onecup-section-editor .onecup-section-editor__field {
    display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:15px;width:100%;margin:0;padding:0;
}
html body .onecup-section-editor .onecup-section-editor__field > .form-group {
    width:calc(50% - 7.5px)!important;min-width:0;margin:0 0 15px;padding:0;
}
html body .onecup-section-editor .onecup-section-editor__field > .form-group > label {min-height:24px;}
@media(max-width:768px){
    html body .onecup-section-editor .onecup-section-editor__field > .form-group {width:100%!important;}
}

/* Compact profile channels: icons stay inside joined buttons, including mobile. */
html body .side-1 .profile .profile-desc .onecup-profile-channels > .btn-group {
 display:flex!important;flex-wrap:wrap;gap:0!important;max-width:100%;
}
html body .side-1 .profile .profile-desc .onecup-profile-channels > .btn-group > .btn {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:32px!important;
 padding:0!important;margin:0!important;line-height:1!important;color:#fff!important;
}
html body .onecup-profile-channels .btn > svg.onecup-profile-channel__icon {
 display:block!important;visibility:visible!important;position:static!important;
 flex:0 0 18px!important;width:18px!important;height:18px!important;
 margin:0!important;padding:0!important;transform:none!important;color:inherit!important;
}
