/*
 * Site-wide form and toolbar styles.
 *
 * These rules used to live in event.css, which the template loaded on every page. When event.css stopped being
 * loaded site-wide (its unscoped .card / .card-body rules restyled unrelated pages), these went with it, and every
 * front-end edit form built with a "myTab" tab set lost its layout. They are kept here, loaded at the same point
 * in the cascade event.css used to be, so the forms look as they did before.
 */

/* list toolbars: search and clear buttons */
.icon-search:before {
    content: '\f002';
    font-weight: 900;
    font-family: 'Font Awesome 6 Free';
}
.input-group button.filter-search-bar__button.btn.btn-primary {
    border-radius: 0px 5px 5px 0px !important;
    border: 1px solid #fff;
    background: #141e3e;
}
button.filter-search-actions__button.btn.btn-primary.js-stools-btn-clear {
    background: #202a4e;
    color: #ffffffad;
    border: 1px solid #cccccc73;
}
button.filter-search-actions__button.btn.btn-primary.js-stools-btn-clear:hover {
    background: #fff;
    color: #202a4e;
    border: 1px solid #fff;
}

/* edit forms: hide the tab strip of single-tab forms, label on the left of each field */
joomla-tab[view="tabs"] > div[role="tablist"] {display: none;}
joomla-tab[view="accordion"] > button[aria-expanded="true"] {display: none;}
joomla-tab#myTab .control-group label {width: 200px; min-width: 200px; margin: 0px !important; color: #000;}
joomla-tab#myTab .control-group {text-align: left; display: flex; align-items: center; margin-top: 10px;}
joomla-tab#myTab input {font-size: 14px !important;}
joomla-tab#myTab .js-editor-tinymce {width: 100%;}
joomla-tab#myTab .field-calendar {width: 100%;}

@media (max-width: 600px) {
    joomla-tab#myTab .control-group {display: flex; flex-direction: column; align-items: flex-start;}
}

joomla-tab-element#detail .control-group {color: #000;}

/* edit forms: Save / Cancel buttons */
.control-group.button-group-submit-cancel {display: flex; justify-content: flex-end; margin-top: 30px;}
.control-group.button-group-submit-cancel button {border-radius: 5px !important;}
button.validate.btn.btn-primary {background: #198754; transition: 0.5s ease;}
button.validate.btn.btn-primary:hover {opacity: 0.5; transition: 0.5s ease;}
a.btn.btn-danger {background: #c60f0f;}
a.btn.btn-danger:hover {opacity: 0.5; transition: 0.5s ease;}

/* icons inside button groups (e.g. show/hide password) */
.btn-group [class^="icon-"] {font-family: 'Font Awesome 6 Free' !important;}
.icon-eye:before {content: '\f06e' !important; font-weight: 900 !important;}

/* upload fields */
.max-upload-size {display: flex;}
@media (min-width: 600px) {
    .max-upload-size {display: flex; width: 50%; margin-left: 30px;}
}
