/* ==========================================================================
   Le kit sur Bootstrap — l'habillage du gabarit material-dashboard (Bootstrap 4) et
   des petites bibliothèques qui vivent encore dans le back-office
   (Google Places).

   D'OÙ ÇA VIENT. C'était la moitié « OVERRIDE TEMPLATE » de web/assets/css/custom.css,
   fondue dans le kit le 30/09/2026 (lot 3 de doc/plans/PLAN-css-tout-dans-le-kit.md).
   Les règles sont reprises telles quelles, dans leur ordre : plusieurs se recouvrent
   (.card puis .card-chapter, .progress deux fois) et c'est la dernière qui gagne.

   OÙ ÇA SE CHARGE. Juste après al-bootstrap.css (le socle Bootstrap 4 recopié de
   material-dashboard), là où était custom.css :
   ces règles corrigent Bootstrap à spécificité égale et doivent venir après lui, mais
   AVANT les feuilles des bibliothèques (menu, DevExtreme) et avant al-kit.css, qui
   gardent la main comme elles l'avaient.

   CE QUE ÇA DEVIENT. Rien ne s'ajoute ici. Chaque bloc part avec la bibliothèque qu'il
   habille (lot 7 du plan) : le dernier .btn parti, les règles .btn-* partent ; le jour
   où material-dashboard est coupé, ce fichier disparaît.
   ========================================================================== */

.table-responsive::-webkit-scrollbar {
    width: 5px;
    height: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--ald-color-primary);
    border-radius: 0;
}
.table-responsive::-webkit-scrollbar-thumb:hover{
    background: var(--ald-color-primary);
}
.table-responsive::-webkit-scrollbar-track{
    background: #FFF;
    border-radius: 0;
    box-shadow: inset -30px -30px 3px #FFF;
}

.form-control:read-only {
    background-image: none !important;
}

.form-group input[type=file]{
opacity: 1;
position: static;
}

.pac-container {
z-index: 1060 !important;
}



.dropdown-menu .dropdown-item:focus, .dropdown-menu .dropdown-item:hover, .dropdown-menu a:active, .dropdown-menu a:focus, .dropdown-menu a:hover  {
    background: var(--ald-color-primary);
    color: #fff;
}

/* OVERRIDE TEMPLATE */

/* FineUploader */
.qq-uploader DIALOG[open]{
    margin: auto;
}

.main-panel>.content {
    margin-top: 0;
    padding-top: 10px;
}

.main-panel {
    width: calc(100%);
}

.footer{
    padding: 0;
}

.card {
    font-size: .8rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

.card .card-body{
    padding: 15px;
}

.card-product {
    margin-top: 30px!important;
    margin-bottom: 30px !important;
}

.card-bg-secondary {
    background: var(--ald-card-bg-secondary);
}

.card-bg-tertiary {
    background: var(--ald-card-bg-tertiary);
}

.card-chapter{
    color: var(--ald-card-text-secondary)!important;
    background-color: var(--ald-bg-body)!important;
    box-shadow: none;
    margin-bottom: 0px;
    margin-top: 0px;
}

.card-body-chapter {
    display: flex;
    align-items: center;
}

.card-chapter span {
    font-size: 1.5rem;
    font-weight: 550;
    font-size: 1.8rem;
}

.card-chapter i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.card-body-chapter .card-extra {
    margin-left: auto;
}

.card-buttons {
    margin-right: 10px
}

.sheet {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

ol {
    margin-left: 10px;
}

.table-bordered {
    border: 1px solid #ddd !important;
}

.nav-pills:not(.flex-column) .nav-item + .nav-item:not(:first-child) {
    margin: 0 1px;
}

.table-responsive {
    z-index: 0;
    position: relative;
}

.table {
    border-collapse: separate;
    border-left: 0;
    border-spacing: 0;
    font-size: 12px;

}

.table thead tr th {
    font-size: 0.8rem;
    font-weight: 500;
}

.table tr {
    border-top: none;
}

.table tr th,
.table tr td {
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    padding: 5px !important;
}
.table tr th:first-child,
.table tr td:first-child {
    border-left: 1px solid #999999;
}
.table tr th {
    background: #f9f9f9;
    border-top: 1px solid #999999;
    text-align: left;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    border-color: #999999;
}

.table thead {
    display: table-header-group;
    vertical-align: middle;
    border-color: inherit;
    border-collapse: separate;
    color: #111;
}

.table td, .table th {
    border-top: 0;
}

/* top-left border-radius */
.table tr:first-child th:first-child {
    border-top-left-radius: 0.1875rem;
}

/* top-right border-radius */
.table tr:first-child th:last-child {
    border-top-right-radius: 0.1875rem;
}

/* bottom-left border-radius */
.table tr:last-child td:first-child {
    border-bottom-left-radius: 0.1875rem;
}

/* bottom-right border-radius */
.table tr:last-child td:last-child {
    border-bottom-right-radius: 0.1875rem;
}

.table .table {
    background-color: transparent;
}

/* bottom-right border-radius */
.sub-table tr td:last-child {
    border-right: 0;
}
.sub-table tr th:first-child,
.sub-table tr td:first-child {
    border-left: 0;
}

.sub-table tr:first-child td{
    border-top: 0 !important;
}

/* top-right border-radius */
.sub-table th {
    border-radius: 0 !important;
}

/* bottom-right border-radius */
.sub-table td {
    border-radius: 0 !important;
}

.table-no-border>tbody>tr>td, .table-no-border>tbody>tr>th, .table-no-border>tfoot>tr>td, .table-no-border>tfoot>tr>th, .table-no-border>thead>tr>td, .table-no-border>thead>tr>th {
    border: none !important;
}

.table-no-padding>tbody>tr>td, .table-no-padding>tbody>tr>th, .table-no-padding>tfoot>tr>td, .table-no-padding>tfoot>tr>th, .table-no-padding>thead>tr>td, .table-no-padding>thead>tr>th {
    padding: 0 !important;
}

.table-condensed>tbody>tr>td,
.table-condensed>tbody>tr>th,
.table-condensed>tfoot>tr>td,
.table-condensed>tfoot>tr>th,
.table-condensed>thead>tr>td,
.table-condensed>thead>tr>th {
    padding: 1px 3px !important;
    text-align: left;
    z-index: 1;
    cursor: pointer;
}

.sticky-top {
    z-index: 1000;
}

.dropdown-menu {
    /*max-height: 250px;*/
}

.progress {
    height: 20px;
    border-radius: 3px;
    background: #ddd;
    margin-bottom: 2px;
}

.alert hr {
    border-top-color: #ffffff;
}

.alert{
    font-size: 14px;
    text-align: justify;
}

.alert-secondary {
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(173, 175, 174, 0.4);
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.alert.alert-with-icon {
    margin-top: 10px;
}

/* END OVERRIDE TEMPLATE */

.text-yellow {
    color: #f8c62a !important; }

a.text-yellow:hover, a.text-yellow:focus {
    color: #f8c62a !important; }

.text-primary {
    color: var(--ald-color-primary) !important; }

a.text-primary:hover, a.text-primary:focus {
    color: var(--ald-color-primary) !important; }

.text-secondary {
    color: #6c757d !important; }

a.text-secondary:hover, a.text-secondary:focus {
    color: #545b62 !important; }

.text-success {
    color: #1ABB9C !important; }

a.text-success:hover, a.text-success:focus {
    color: #1ABB9C !important; }

.text-info {
    color: #0280b8 !important; }

a.text-info:hover, a.text-info:focus {
    color: #0174a8 !important; }

.text-warning {
    color: #ff9800 !important; }

a.text-warning:hover, a.text-warning:focus {
    color: #cc7a00 !important; }

.text-danger {
    color: #f44336 !important; }

a.text-danger:hover, a.text-danger:focus {
    color: #ea1c0d !important; }

.text-disabled {
    color: #999999 !important; }

a.text-disabled:hover, a.text-disabled:focus {
    color: #8f8f8f !important; }

.table .form-check .form-check-sign {
    top: 0;
}

.table .form-check .form-check-label {
    /* padding-left: 5px; */
    padding-right: 5px;
}

.form-check label {
    color: rgba(0, 0, 0, 0.80) !important;
}

.form-check-label {
    color: rgba(0, 0, 0, 0.80) !important;
}

.togglebutton label {
    color: rgba(0, 0, 0, 0.80) !important;
    font-size: 12px;
}

.sidebar[data-background-color="admin"] {
    background-color: #333333; }
.sidebar[data-background-color="admin"] .nav .nav-item .nav-link {
    color: #ffffff; }
.sidebar[data-background-color="admin"] .nav .nav-item i {
    color: rgba(255, 255, 255, 0.8); }
.sidebar[data-background-color="admin"] .nav .nav-item.active [data-toggle="collapse"], .sidebar[data-background-color="admin"] .nav .nav-item:hover [data-toggle="collapse"] {
    color: #ffffff; }
.sidebar[data-background-color="admin"] .nav .nav-item.active [data-toggle="collapse"] i, .sidebar[data-background-color="admin"] .nav .nav-item:hover [data-toggle="collapse"] i {
    color: rgba(255, 255, 255, 0.8); }
.sidebar[data-background-color="admin"] .user a {
    color: #ffffff; }
.sidebar[data-background-color="admin"] .sidebar-background:after {
    background: #333333;
    opacity: .8; }
.sidebar[data-background-color="admin"] .user:after,
.sidebar[data-background-color="admin"] .logo:after,
.sidebar[data-background-color="admin"] .nav li.separator:after {
    background-color: rgba(255, 255, 255, 0.3); }
.sidebar[data-background-color="admin"] .nav li:hover:not(.active) > a,
.sidebar[data-background-color="admin"] .nav li.active > [data-toggle="collapse"] {
    background-color: rgba(255, 255, 255, 0.1); }

@media(max-width: 768px) {
    button.btn-full-width {
        width: 100%;
    }
}

.badge {
    text-transform: none;
}


.h3, h3 {
    margin-top: 10px;
    font-weight: 400;
    font-size: 22px;
}

.label {
    display: inline;
    padding: .2em .6em .3em;
    font-weight: 500;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: .25em;
}

.label:empty {
    display: none;
}
.al-btn .label {
    position: relative;
    top: -1px;
}
.label-default {
    background-color: #777;
}
.label-default[href]:hover,
.label-default[href]:focus {
    background-color: #5e5e5e;
}
.label-primary {
    background-color: var(--ald-color-primary);
}
.label-primary[href]:hover,
.label-primary[href]:focus {
    background-color: var(--ald-color-primary);
}
.label-secondary {
    background-color: var(--ald-color-secondary);
}
.label-secondary[href]:hover,
.label-secondary[href]:focus {
    background-color: var(--ald-color-secondary);
}
.label-success {
    background-color: #17a589;
}
.label-success[href]:hover,
.label-success[href]:focus {
    background-color: #17a589;
}
.label-info {
    background-color: #00bcd4;
}
.label-info[href]:hover,
.label-info[href]:focus {
    background-color: #00bcd4;
}
.label-warning {
    background-color: #ff9800;
}
.label-warning[href]:hover,
.label-warning[href]:focus {
    background-color: #ff9800;
}
.label-danger {
    background-color: #f33527;
}
.label-danger[href]:hover,
.label-danger[href]:focus {
    background-color: #f33527;
}
.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
}

.badge-lg {
    font-size: 18px;
}

.badge:empty {
    display: none;
}
.al-btn .badge {
    position: relative;
    top: -1px;
}
.al-btn.small .badge {
    top: 0;
    padding: 1px 5px;
}
a.badge:hover,
a.badge:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.tooltip{
    position:relative;
    float:right;
}
.tooltip > .tooltip-inner {background-color: #eebf3f; padding:5px 15px; color:rgb(23,44,66); font-weight:bold; font-size:13px;}

.progress-bar {
    border-radius: 0;
    width: 100%;
    background-color: #ddd;
    height: 24px;
}
.progress {
    border-radius: 2px;
    height: 24px;
    text-align: right;
    position: relative;
    background: #ddd;
    margin-bottom: 0;
}

.progress span {
    font-size: 14px;
    display: inline-block;
    position: relative;
    color: white;
    margin: auto;
}
