/* Moroccan Tax Withholding & Retention - styles admin */

/* Bloc des sélecteurs de taux, déplacé par JS (relocateOptions) juste après
   "Type de remise" dans la zone haute des options de facturation. */
.mf-options-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e2e2;
}

.mf-option-label {
    display: block;
}

.mf-retenue-base-inline {
    width: auto;
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    height: auto;
}

.mf-option-checkbox {
    display: flex;
    align-items: center;
}

.moroccan-fiscal-panel {
    border-left: 4px solid #d32f2f;
    margin-top: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.moroccan-fiscal-panel .moroccan-fiscal-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #444;
}

.moroccan-fiscal-panel .moroccan-fiscal-title i {
    color: #d32f2f;
    margin-right: 6px;
}

.moroccan-fiscal-summary {
    margin-top: 10px;
    margin-bottom: 0;
    background: #fff;
}

.moroccan-fiscal-summary td {
    padding: 6px 10px;
    font-size: 13px;
}

.moroccan-fiscal-summary tr.text-danger td {
    color: #d32f2f;
}

.moroccan-fiscal-summary tr.moroccan-fiscal-net {
    background: #f1f8e9;
    border-top: 2px solid #333;
}

.moroccan-fiscal-summary tr.moroccan-fiscal-net td {
    font-size: 15px;
    color: #2e7d32;
}

/* Rapport reporting */
.moroccan-fiscal-report-filters {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.moroccan-fiscal-report-filters .form-group {
    display: flex;
    flex-direction: column;
}

.moroccan-fiscal-report-filters label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 4px;
}

.moroccan-fiscal-report-filters select {
    min-width: 140px;
}

/* Les filtres utilisent le widget bootstrap-select (classe "selectpicker") :
   celui-ci masque le <select> natif et génère à la place un bouton
   ".bootstrap-select .dropdown-toggle" -- la règle ci-dessus sur "select" ne
   s'applique donc pas à l'élément réellement visible. On fixe une largeur
   minimale ET un padding-right suffisant sur ce bouton généré pour que le
   texte sélectionné ne chevauche jamais la flèche/l'icône du menu déroulant
   (ce qui produisait le "chevauchement des écritures" observé sur ANNÉE /
   MOIS / CLIENT). La largeur précise de chaque champ est aussi fixée
   individuellement via l'attribut data-width sur chaque <select> concerné. */
.moroccan-fiscal-report-filters .bootstrap-select {
    min-width: 130px;
    margin-right: 4px;
}

.moroccan-fiscal-report-filters .bootstrap-select .dropdown-toggle {
    padding-right: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moroccan-fiscal-report-filters .bootstrap-select .filter-option {
    padding-right: 6px;
}

.moroccan-fiscal-report-table {
    margin-top: 5px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.moroccan-fiscal-report-table thead th {
    background: #f5f6f8;
    color: #444;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e2e2e2 !important;
    vertical-align: middle;
}

.moroccan-fiscal-report-table tbody td {
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
}

.moroccan-fiscal-report-table tbody tr.bold td {
    background: #fafafa;
    font-weight: 700;
}

.moroccan-fiscal-report-table .text-right {
    text-align: right;
}

.moroccan-fiscal-report-table small.text-muted {
    display: block;
    font-size: 11px;
}
