/* ADMIN */
#branding a:link, #branding a:visited {
    color: white;
}
#branding h4 {
    color: white;
}
#branding-container {
    width: 100%;
    display: flex;
    align-items: center;
}
#header {
    overflow: visible;  /* allows to see the user menu */
    color: white;
}
#user-tools {
    display: flex;
    gap: 5px;
    text-transform: none;
}
#user-tools a {
    border: none;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    background-color: #fff;
    border: 0.5px solid #ccc;
    min-width: 150px;
    overflow: auto;
    z-index: 99;
    right: 0rem;
    top: 1.5rem;
    padding: 5px;
    border-radius: 4px;
    font-weight: unset;
    letter-spacing: unset;
    text-transform: none;
}
.dropdown-content a {
    color: black!important;
    text-decoration: none;
    text-align: left;
}

/* CONTENT TITLE */
/* temporarly disabled */
/* #content-title h1 {
    margin: 0;
} */

/* INFOBOX */
.infobox {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid black;
    background: #ddd;
}
.filtered .infobox {
    margin-right: 280px;
}
.infobox img {
    vertical-align: middle;
}

/* ICONS */
.icon {
    margin-left: 5px;
    margin-right: 5px;
}

/* BUTTONS */
.btn {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: content-box;
    display: block;
    margin: 5px;
    font-size: 11px;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    padding: 2px 4px;
    cursor: pointer;
    color: #333;
    white-space: nowrap;
}
a.btn {
    color: #333;
}
a.btn.disabled {
    cursor: initial;
    pointer-events: none;
    opacity: 0.5;
}
.btn.disabled {
    cursor: initial;
    opacity: 0.5;
}
.btn img {
    vertical-align: middle;
}
.btn-inline {
    display: inline-block;
}
.btn-xl {
    width: 200px;
}
.btn-fat {
    min-height: 25px;
}
.btn-icon {
    width: 15px;
    min-width: 15px;
}
.btn-icon .icon {
    margin-left: unset;
    margin-right: unset
}
.btn-text {
    text-align: left;
    border-color: transparent;
    background-color: transparent;
}
.changelist-btn {
    border: 1px solid #ccc!important;
    font-size: 13px!important;
    padding: 4px 8px!important;
    margin: 0!important;
    vertical-align: middle!important;
    background: #fff!important;
    box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset!important;
    cursor: pointer!important;
    color: #333!important;
}
.cf_links {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    background: var(--breadcrumbs-bg);
}
.btn.related-link-btn {
    display: flex;
    min-width: 100px;
    align-items: center;
    height: 28px;
}

/* FORMS */
.inline-radio-input li {
    display: inline-flex;
    padding: 0 10px;
}
.inline-radio-input li input {
    margin: 0;
}

/* UTILITIES */
.full-width {
    width: 100%;
}
.width-100 {
    width: 100%;
}
.width-50 {
    width: 50%;
}
.width-45 {
    width: 45%;
}
.bordered {
    border: 1px solid #eee;
}
.small-text {
    font-size: 11px;
}
.small-select {
    height: 24px;
    background: none;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 11px;
    padding: 0 0 0 4px;
    margin: 0;
}
.text-danger {
    color: red;
}
.messagelist .info{
    background: #d1ecf1 url(../icons/icon-info.svg) 40px 9px no-repeat;
}

/* TABLES */
.fixed-table {
    table-layout: fixed;
}
.fixed-table input {
    width: 80%;
}
.small-table th {
    font-size: 11px;
    line-height: 11px;
}
.small-table td {
    font-size: 11px;
    line-height: 11px;
}
.small-table input {
    font-size: 11px;
    line-height: 11px;
}
.vertical-aligned-table th {
    vertical-align: middle;
}
.vertical-aligned-table td {
    vertical-align: middle;
}
.small-table caption {
    font-size: 11px;
    line-height: 7px;
}

/* GRID */
.row {
    display: flex;
    flex-direction: row;
    width: 100%;
}
.col {
    flex: 1;
    margin-left: 10px;
    margin-right: 10px;
    overflow: hidden;
}

/* regola per far scrollare gli inline in caso di contenuto troppo largo */
div.tabular.inline-related fieldset:has(table) {
    display: grid;
    overflow-x: auto;
}

/* MODULES */
.module h2 {
    border-radius: 4px;
}
.module table caption {
    border-radius: 4px;
}

/* CHIPS */
.chip {
    display: inline;
    border: 1px solid gray;
    border-radius: 5px;
    padding-inline: 5px;
}

/* ALPINE JS */
[x-cloak] { display: none !important; }
