body {
    background-color: white;
}

h1 > span {
    color: var(--bs-primary);
}

.btn-delete {
    float: right;
    background-color: var(--bs-danger) !important;
    color: white !important;
}

.btn-edit {
}

.btn-add {

}

.btn-back {

}

.btn-show {

}

img.svg_thumb {
    height: 80px;
}

.table-fiche th {
    white-space: nowrap;
}


td.preview svg { height: 250px; width: auto; border:1px solid #999}
td.preview2 svg { height: 250px; width: auto;}


.select-multiple-2cols, .select-multiple-3cols {
    border: 1px solid #DDD;
    border-radius: 5px;
    padding: 8px;
    max-height: 20em;
    overflow-y: scroll;
    /* max-width: 60em; */
}

.select-multiple-2cols div.form-check {
    display: inline-block;
    width: 48%;
}

.select-multiple-3cols div.form-check {
    display: inline-block;
    width: 31%;
}

.licence-unavailable {
    opacity: 0.35;
    cursor: not-allowed;
}

.licence-overlap-warning {
    font-size: 0.85em;
    cursor: help;
}

.template-svg-preview * {
    max-width: 900px;
    max-height: 900px;
}

/* Astérisque rouge pour les champs obligatoires */
label.required::after {
    content: " *";
    color: #dc3545;
}

/* Gabarit preview styles */
.svg-preview, .png-preview {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    display: inline-block;
    max-width: 100%;
}

.svg-preview svg, .png-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #adb5bd;
    background-color: white;
}

.preview-content {
    display: none;
}

.preview-content.active {
    display: block;
}

/* Gabarit tag autocomplete */
.gabarit-settings-panel .ts-wrapper .ts-control .item {
    background: #fff !important;
    color: #303030 !important;
    border: 1px solid #dddddd !important;
    box-shadow: none !important;
}

.gabarit-settings-panel .ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
    border-left: 1px solid #dddddd;
}

/* Gabarit card list */
.gabarit-list .card-body-preview {
    height: 256px;
    background-color: #f8f9fa;
}

.gabarit-list .card-body-preview img {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #dddddd;
}

.gabarit-list .card-footer .btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
}

/* Gabarit source badges (S = system, P = personal) */
.gabarit-badge-system {
    background-color: #6c757d;
}

.gabarit-badge-personal {
    background-color: #0dcaf0;
}

/* Formulaire compact : labels larges, champs réduits */
.form-compact .col-sm-2 {
    width: 40%;
}

.form-compact .col-sm-10 {
    width: 60%;
}

span.tag {
    border: 1px solid #dddddd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

/* Navbar search (Tom Select) */
.navbar-search {
    width: 250px;
}

.navbar-search .ts-wrapper .ts-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 0.375rem;
    min-height: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.navbar-search .ts-wrapper .ts-control input {
    color: #fff;
}

.navbar-search .ts-wrapper .ts-control input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-search .ts-wrapper .ts-control:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.navbar-search .ts-wrapper .ts-dropdown {
    font-size: 0.875rem;
}

.navbar-search .ts-wrapper .ts-dropdown .no-results {
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 991.98px) {
    .navbar-search {
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}
