/*
 * Styles globaux partagés (grid/css/custom.css)
 * - Utilitaires (espacements)
 * - Composants communs (loader)
 * - Pages métier (Rapprochement Marge, Banque)
 */

/* Base générique */
.container{
	width:100%;
	max-width:100%;
}
footer{
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}
footer p{
	color:#fff;
}

.index-menu .card{
	margin-bottom:1em;
}
.index-menu ul li{
	text-align:center;
	list-style:none;
	margin-right:1em;
}
.index-menu ul h3{
	font-size:1em;
}

.color_FFE0B2{
	background-color:#FFE0B2!important;
}

.color_B3E5FC{
	background-color:#B3E5FC!important;
}

.card-text a{
	text-decoration:none;
}
ul.top_lists li,
ul.top_lists{
	display:inline;
	list-style:none;
}

/* jqGrid - standardisation des cellules */
.ui-jqgrid .ui-jqgrid-bdiv tr.ui-row-ltr:not(.jqgfirstrow) > td:not(.subgrid-data):not(.sgexpanded):not(.sgcollapsed) {
    border: 0;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    color: #555;
    padding: 0 5px !important;
    line-height: 20px;
}

/* Utilitaires layout */
.app-pl-0 { padding-left: 0 !important; }

/* Rapprochement Marge (reporting/Rappro_Marge.php) */
.rm-page-shell { padding: 0 15px 140px; }
.rm-grid-row { align-items: stretch; }
.rm-grid { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 8px; }
.rm-actions { display: flex; justify-content: center; margin: 12px 0; }
.rm-context { background: #f8f9fa; border: 1px solid #dcdcdc; border-radius: 6px; padding: 10px 12px; }
.rm-context-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #f8f9fa;
    border-top: 1px solid #dcdcdc;
    padding: 10px 15px;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
}
.rm-context-fixed .rm-context { margin: 0 auto; max-width: 1800px; }
.rm-context .rm-label { display: inline-block; min-width: 90px; color: #6c757d; }
.rm-context-line { white-space: nowrap; }
.rm-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; align-items: center; }
.rm-summary-item { background: #fff; border: 1px solid #dcdcdc; border-radius: 6px; padding: 8px 12px; min-width: 220px; }
.rm-summary-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.rm-summary-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #6c757d; }
.rm-summary-value { font-size: 18px; font-weight: 600; color: #1f2937; }
.rm-summary-value.is-alert { color: #b42318; background: #fde8e8; border-radius: 4px; padding: 2px 6px; }
.rm-summary-value.is-positive { color: #a15c00; background: #fff4e5; border-radius: 4px; padding: 2px 6px; }
.rm-summary-value.is-zero { color: #027a48; background: #ecfdf3; border-radius: 4px; padding: 2px 6px; }
.rm-float-info {
    background: #fff;
    border: 2px solid #1f2937;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    text-align: center;
}
.rm-float-info.is-ok { border-color: #027a48; background: #ecfdf3; }
.rm-float-info.is-alert { border-color: #b42318; background: #fde8e8; }
.rm-float-wrap { display: flex; flex-grow: 1; justify-content: center; }
.rm-float-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #6c757d; }
.rm-float-value { font-size: 18px; font-weight: 600; color: #1f2937; }
.rm-match-row td { background: #e7f6ec !important; }
.rm-match-row.ui-state-highlight td { background: #d4f0df !important; }
.rm-suggest-row td { background: #e0f2fe !important; }
.rm-suggest-row.ui-state-highlight td { background: #c7e9fd !important; }

/* Loader global (overlay + spinner) */
.app-loader-content { text-align: center; color: #fff; }
.app-loader-spinner { width: 3rem; height: 3rem; }
#loaderOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Banque - Relevé / Rappro (pages/banque) */
.banq-page-shell {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 140px;
}
.banq-page-shell > .mb-3,
.banq-page-shell > .mb-4 {
    width: 100%;
}
.banq-page-shell > .banq-grid-row {
    width: 100%;
    position: relative;
}
.banq-page-shell > .banq-summary-footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
}
.banq-summary-footer .card { margin: 0; border-radius: 0; }
.banq-page-shell .section_title,
.banq-page-shell .section_title_text {
    text-align: center;
}
.banq-page-shell .form-label,
.banq-page-shell .form-text {
    text-align: center;
    width: 100%;
}
.banq-page-shell .form-control {
    max-width: 360px;
    margin: 0 auto;
}
.banq-page-shell .card,
.banq-grid-center,
.banq-grid {
    max-width: 1800px;
    width: 100%;
}
.banq-grid-center,
.banq-grid {
    display: block;
    padding: 0;
}
.banq-grid-center .ui-jqgrid,
.banq-grid .ui-jqgrid {
    margin: 0 auto;
}
.banq-grid-center .ui-jqgrid-view,
.banq-grid-center .ui-jqgrid-hdiv,
.banq-grid-center .ui-jqgrid-bdiv,
.banq-grid .ui-jqgrid-view,
.banq-grid .ui-jqgrid-hdiv,
.banq-grid .ui-jqgrid-bdiv {
    width: 100% !important;
}
.banq-grid-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.banq-grid-row .banq-grid { overflow-x: auto; }
.banq-summary-footer { width: 100%; }

@media (max-width: 1200px) {
    .rm-grid-row { display: block; }
}