a {outline: none!important;}

/* hide scrollbar on mobile - prevents Bootstrap modal shift */
.modal-body {
    padding-left: 5px!important;
    padding-right: 5px!important;
}


html, body {
    scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
}

.nav-pills { scrollbar-width: none; }
.nav-pills::-webkit-scrollbar { display: none; }



body.modal-open .app-header,
body.modal-open header .dropdown
{
    padding-right: 0 !important;
    margin-right: 0 !important;
}

body.modal-open .datagrid-toolbar-top-wrapper {
    right: -15px;
}

.app-header img.logo {display: none;}


/* prevent zoom on focus (iOS) */
input, select, textarea {
    font-size: 16px !important;
}

.top-search {display: none!important;}
.app-menu {
    display: block !important;
    position: fixed;
    top: 55px;
    left: -90vw !important;
    bottom: 0;
    width: 90vw;
    z-index: 2147483647;
    visibility: hidden;
}

.app-header-btn-task {display: none!important;}

/* hamburger button */
.app-menu-toggle {
    border: none;
    background: none;
    padding: 4px 8px;
    line-height: 1;
    color: #333;
    margin-top: -3px;
}

/* overlay */
.app-menu-overlay {
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483645;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.app-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.app-header-btn-agenda {
    margin-right: 0!important;
}

.app-header-end .dropdown-menu {
    min-width: 250px;
}
.app-header-end .dropdown-menu a {
    padding-top: 12px;
    padding-bottom: 12px;
}


/* menu mobile ouvert */
.app-menu.open {
    left: 0 !important;
    visibility: visible;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 15px;
    background: #f5f6fa !important;
}

.app-menu.open .category a {
    width: 100%;
    display: block;
    text-align: left!important;
    padding: 12px 20px;

}

.app-menu.open .category a span {
    display: inline !important;
    color: #222;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.app-menu.open .category > a i {
    margin-right: 8px;
    color: #333 !important;
}

.app-menu.open .category ul {
    position: static;
    background: #fff;
    min-width: auto;
    padding: 5px 0;
    display: none;
    box-shadow: none;
}

.app-menu.open .category:hover > a {
    background: transparent;
}

.app-menu.open .category.active > a {
    background: var(--hover-bg, #000);
    color: #fff;
}

.app-menu.open .category.active > a span {
    color: #fff !important;
}

.app-menu.open .category.active > a i {
    color: #fff !important;
}

.app-menu.open .category.active ul {
    display: block;
}

.app-menu.open .category ul li.category-title {
    display: none;
}

.app-menu.open .category ul li {
    padding: 0;
}

.app-menu.open .category ul li a {
    display: block;
    width: 100%;
    color: #222;
    /*padding: 14px 20px 14px 50px; */
    font-size: 15px;
}

.app-menu.open .category ul li a:hover {
    color: #000;
    background: #e4e5e8;
}

.app-main {
    margin-left: 0;
    width: 100vw;
}

.app-header .dropdown-menu {
    font-size: 16px;
}

body.auth-page {overflow-y: hidden!important;}
body.auth-page .btn {padding-top: 10px; padding-bottom: 10px; }


/* h1 titre fixe */
h1.main-fixed {
    left: 0;
    width: 100vw!important;
    max-width: 100vw!important;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
}

/* cockpit: cacher description boutons */
.cockpit-btn .small.text-muted {
    display: none;
}

/* cockpit: boutons 2 colonnes */
.cockpit-btn {
    flex: 1 1 calc(50% - 12px) !important;
    min-width: calc(50% - 12px);
    max-width: calc(50% - 6px);
}

/* cockpit: tuiles wrap sur mobile */
.widget-cockpit .widget-wrapper {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow: visible !important;
}

/* cockpit: tuiles lead/intervention 2 colonnes */
.widget-cockpit .link-tuile,
.widget-cockpit .cockpit-stat {
    display: block !important;
    flex: 0 0 calc(50% - 4px) !important;
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: calc(50% - 4px) !important;
    margin-right: 0 !important;
}

/* widget-system: retirer bold sur mobile */
.widget-system .system-card-status .fw-bold,
.widget-system .system-card-status .fw-semibold {
    font-weight: normal !important;
}



/* datagrid: search mobile */
.datagrid-search-contents {
    display: none !important;
}

.datagrid-search-contents.mobile-visible {
    display: flex !important;
    position: fixed;
    top: 100px;
    left: 10px;
    right: 10px;
    z-index: 1050;
    background: #fff;
    padding: 15px;
    width: calc(100vw - 20px) !important;
}

.datagrid-search-contents .input-group {
    width: 100%;
}

.datagrid-search-contents input,
.datagrid-search-contents select,
.datagrid-search-contents .btn {
    font-size: 16px !important;
}

/* datagrid: header-message scroll horizontal */
.datagrid .header-message .header-message-contents {
    min-height: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: block;
    max-width: 100vw;
    position: sticky;
    left: 0;
}

.datagrid-search-contents.mobile-visible::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

/* datagrid: colonne figée */
.datagrid {
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
}
.datagrid th.col-fixed,
.datagrid td.col-fixed {
    position: sticky !important;
    left: 0;
    z-index: 1;
    background: #fff;
    border-left: none !important;
    border-right: none !important;
}
.datagrid thead th.col-fixed {
    z-index: 2;
    background: #f8f9fa;
}
.datagrid tbody tr:hover td.col-fixed {
    background: var(--bs-table-hover-bg, #e9ecef);
}
.datagrid tbody tr.table-warning td.col-fixed { background: var(--bs-table-warning-bg, #fff3cd); }
.datagrid tbody tr.table-danger td.col-fixed { background: var(--bs-table-danger-bg, #f8d7da); }
.datagrid tbody tr.table-success td.col-fixed { background: var(--bs-table-success-bg, #d1e7dd); }
.datagrid tbody tr.table-info td.col-fixed { background: var(--bs-table-info-bg, #cff4fc); }

/* datagrid: caption et footer figés */
.datagrid caption {
    /*position: sticky;
    left: 0;*/
}
.datagrid tfoot td {
    /*position: sticky;
    left: 0;*/
}

/* datagrid: scroll horizontal */
.datagrid-wrapper {
    width: 100vw;
    overflow-x: scroll;
}

.datagrid i {
    font-size: 20px!important;
}

.datagrid .dropdown-actions {
    padding-right: 10px;
}

.datagrid .dropdown-actions .dropdown-menu-action {
    position: fixed !important;
    top: auto !important;
    right: 10px !important;
    left: auto !important;
    transform: none !important;
    z-index: 1050;
}


.datagrid .pager {
    max-width: 100vw;
    overflow-x: scroll;
}

.datagrid-footer-mobile {
    max-width: 100vw;
    text-align: center;
}

.datagrid-wrapper .datagrid-search-contents {
    display: none;
}

.datagrid-wrapper .col-search {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


.popover.datagrid-filters {
    left: 10px !important;
    right: 10px !important;
    width: 99vw !important;
    max-width: 99vw !important;
}

.popover.datagrid-filters .popover-body .row {
    flex-wrap: wrap;
}


.popover.datagrid-filters .popover-body {
    max-width:calc(100vw - 14px);
}

.popover.datagrid-filters .input-group .btn {
    height: 33px;
}

.dropdown-menu-my-filters {
    width: calc(100vw - 20px) !important;
}


.input-group .input-group-text {
    height: 34px;
}

.input-group .btn {height: 34px;}


/* =========================================
   agenda responsive
   ========================================= */

/* container: full height minus mobile header */
.agenda-container {
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    min-height: 300px;
}

/* toolbar: compact layout */
.agenda-toolbar {
    padding: 6px 8px;
    gap: 6px;
}

.agenda-title-wrapper {
    position: static;
    transform: none;
    order: -1;
    width: 100%;
    justify-content: center;
}

.agenda-title {
    font-size: 14px;
    width: auto;
}

.agenda-toolbar-left {
    order: 1;
}

.agenda-view-buttons {
    order: 2;
}

/* date picker: smaller */
.agenda-toolbar #agenda-date-picker {
    max-width: 130px;
    height: 30px;
    padding: 2px 4px;
}

/* calendar: reduce margin */
.agenda-calendar {
    margin: 4px;
    border-radius: 4px;
}

/* day/week: reduce time column */
.agenda-container {
    --agenda-time-col-width: 38px;
}

.agenda-time-label {
    font-size: 9px;
    padding-right: 3px;
}

/* day/week header: compact */
.agenda-header-day {
    padding: 4px 1px;
}

.agenda-header-day-name {
    font-size: 9px;
}

.agenda-header-day-num {
    font-size: 13px;
    width: 22px;
    height: 22px;
    line-height: 22px;
}

/* events: compact */
.agenda-event {
    font-size: 10px;
    padding: 1px 3px;
    border-radius: 3px;
}

.agenda-event-time {
    display: none;
}

.agenda-event-title {
    font-size: 10px;
}

.agenda-event-address {
    display: none;
}

.agenda-event-zip-city {
    display: block;
    font-size: 8px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* month view: compact */
.agenda-month-header-day {
    padding: 4px 2px;
    font-size: 10px;
}

.agenda-month-day {
    padding: 2px;
}

.agenda-month-day-num {
    font-size: 12px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.agenda-month-event {
    font-size: 9px;
    padding: 1px 2px;
}

.agenda-month-more {
    font-size: 9px;
    padding: 1px 2px;
}

/* context menu: touch-friendly */
.agenda-context-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 15px;
}

/* view buttons: compact */
.agenda-view-buttons .btn {
    padding: 3px 8px;
    font-size: 12px;
}

.agenda-view-buttons {
    position: fixed;
    z-index: 99;
    top: 68px;
    right: 10px;
}

.agenda-calendar {
    margin: 0!important;
}

.agenda-toolbar {
    height: 45px !important;
}


.form-label {font-size: 16px; padding-left: 5px}
