main {
    min-height: 100dvh;
    padding-top: 32px;
}

/* ─ PAGE ─ */
.stock-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.stock-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 20px;
}

.stock-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #263238;
}

.stock-title i {
    font-size: 30px;
    color: var(--gestion-de-stock-color);
}

.stock-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: #546e7a;
}

.stock-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.stock-actions .btn,
.stock-actions .btn-flat {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    text-transform: none;
    font-weight: 600;
}

.stock-actions .btn-flat {
    background: rgba(255, 255, 255, .7);
    color: #37474f;
}

.stock-actions .btn-flat:hover {
    background: #fff;
}

.stock-actions i.left {
    margin-right: 6px;
}

/* ─ KPI ─ */
.stock-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stock-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(38, 50, 56, .12), 0 4px 14px rgba(38, 50, 56, .08);
    text-align: left;
    font: inherit;
}

.stock-kpi-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #efebe9;
    color: #6d4c41;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
}

.stock-kpi-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #607d8b;
}

.stock-kpi-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #263238;
    font-variant-numeric: tabular-nums;
}

button.stock-kpi {
    cursor: pointer;
    transition: box-shadow 150ms, transform 150ms;
}

button.stock-kpi:hover,
button.stock-kpi:focus-visible {
    background: #fff;
    box-shadow: 0 2px 6px rgba(38, 50, 56, .16), 0 8px 22px rgba(38, 50, 56, .14);
    transform: translateY(-1px);
}

.stock-kpi-alert.has-alert .stock-kpi-icon {
    background: #ffebee;
    color: #c62828;
}

.stock-kpi-alert.has-alert .stock-kpi-value {
    color: #c62828;
}

/* ─ PANNEAU DU STOCK ─ */
.stock-panel {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(38, 50, 56, .12), 0 4px 14px rgba(38, 50, 56, .08);
    overflow: hidden;
}

.stock-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eceff1;
}

.stock-segment {
    display: inline-flex;
    padding: 3px;
    border-radius: 9px;
    background: #eceff1;
}

.stock-segment button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: #546e7a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.stock-segment button:focus {
    background: none;
}

.stock-segment button i {
    font-size: 18px;
}

.stock-segment button.active {
    background: #fff;
    color: #263238;
    box-shadow: 0 1px 3px rgba(38, 50, 56, .2);
}

.stock-toolbar select.browser-default,
.stock-search {
    height: 38px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
}

.stock-toolbar select.browser-default {
    width: auto;
    max-width: 320px;
    padding: 0 10px;
}

.stock-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 220px;
    max-width: 360px;
    padding: 0 10px;
}

.stock-search:focus-within,
.stock-toolbar select.browser-default:focus {
    border-color: #4d8aa7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(77, 138, 167, .2);
}

.stock-search i {
    font-size: 20px;
    color: #90a4ae;
}

.stock-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: none;
    font-size: 14px;
}

.stock-alert-filter {
    margin-left: auto;
}

.stock-alert-filter span {
    font-size: 14px;
    color: #37474f;
}

.stock-table-wrap {
    overflow-x: auto;
}

#stock-table th,
#mouvements-table th,
#rapprochement-table th,
#inventaire-table th {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #607d8b;
    background: #f7f9fa;
    border-radius: 0;
    white-space: nowrap;
}

#stock-table td,
#mouvements-table td,
#rapprochement-table td,
#inventaire-table td {
    padding: 10px 16px;
    font-size: 14px;
    color: #263238;
    border-radius: 0;
}

#stock-table tbody tr,
#mouvements-table tbody tr,
#rapprochement-table tbody tr,
#inventaire-table tbody tr {
    border-bottom: 1px solid #eceff1;
}

/* Pas de filet entre les colonnes (common.css en met sur tous les tableaux) */
#stock-table th,
#stock-table td,
#mouvements-table th,
#mouvements-table td,
#rapprochement-table th,
#rapprochement-table td,
#inventaire-table th,
#inventaire-table td {
    border-right: 0;
}

/* Même survol que les listes (list.css, /gestion/materiaux) */
#stock-table tbody tr {
    transition: background-color 0.1s, box-shadow 0.1s;
}

#stock-table tbody tr:hover {
    background-color: #e8f0fe;
    box-shadow: inset 3px 0 0 #1565c0;
}

#stock-table .num,
#mouvements-table .num,
#rapprochement-table .num,
#inventaire-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stock-mat-name {
    font-weight: 600;
}

.stock-qty {
    font-weight: 700;
}

.stock-qty small {
    font-weight: 500;
    color: #78909c;
}

/* Quantité en attente sur des feuilles à valider (voir enAttenteTag) */
.stock-qty .stock-attente {
    font-weight: 600;
}

#stock-table tr.is-alert .stock-qty {
    color: #c62828;
}

#stock-table .col-cump,
#stock-table .col-seuil {
    color: #546e7a;
}

/* Dépôt : stock sur les chantiers et total (dépôt + chantiers) */
#stock-table .col-chantiers {
    color: #546e7a;
}

#stock-table td.col-total {
    font-weight: 700;
    color: #37474f;
}

#stock-table .col-chantiers small,
#stock-table .col-total small {
    font-weight: 500;
    color: #78909c;
}

/* Seuil d'alerte modifiable sur place (voir editSeuil dans stock.js) */
.seuil-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: -4px -8px;
    padding: 4px 8px;
    border-radius: 6px;
    color: inherit;
}

.seuil-edit.is-empty {
    color: #90a4ae;
}

.seuil-edit i {
    font-size: 15px;
    color: #90a4ae;
    opacity: 0;
    transition: opacity 150ms;
}

.seuil-edit:hover,
.seuil-edit:focus {
    background: #eceff1;
    color: #263238;
}

.seuil-edit:hover i,
.seuil-edit:focus i,
#stock-table tr:hover .seuil-edit i {
    opacity: 1;
}

#stock-table input.seuil-input {
    width: 90px;
    height: 32px;
    margin: -6px 0;
    padding: 0 8px;
    border: 1px solid #4d8aa7;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77, 138, 167, .2);
    font-size: 14px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.stock-value {
    font-weight: 600;
}

.stock-row-actions {
    width: 1%;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.stock-row-action {
    padding: 0 8px;
    border-radius: 8px;
    color: #78909c;
}

.stock-row-action:hover {
    background: #eceff1;
    color: #263238;
}

.stock-row-action i {
    font-size: 20px;
}

#stock-table tfoot td {
    background: #f7f9fa;
    border-top: 1px solid #cfd8dc;
    font-size: 13px;
    font-weight: 700;
    color: #455a64;
}

.stock-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 10px;
    background: #eceff1;
    color: #455a64;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

#mouvements-table .stock-pill {
    margin-left: 0;
}

.stock-pill-red,
.stock-type-sortie {
    background: #ffebee;
    color: #c62828;
}

.stock-pill-orange {
    background: #fff3e0;
    color: #e65100;
}

.stock-type-entree {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-type-transfert {
    background: #e3f2fd;
    color: #1565c0;
}

.stock-type-ajustement {
    background: #fff8e1;
    color: #a15c00;
}

.stock-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff3e0;
    color: #e65100;
    font-size: 14px;
}

.stock-notice i {
    font-size: 20px;
}

.stock-empty {
    padding: 48px 24px;
    text-align: center;
    color: #78909c;
}

.stock-empty i {
    font-size: 44px;
    color: #cfd8dc;
}

.stock-empty p {
    max-width: 420px;
    margin: 8px auto 0;
    font-size: 14px;
}


@media (max-width: 600px) {
    .stock-header {
        align-items: flex-start;
    }

    .stock-actions,
    .stock-actions .btn {
        width: 100%;
    }

    .stock-actions .btn-flat {
        flex: 1;
    }

    .stock-actions .btn,
    .stock-actions .btn-flat {
        justify-content: center;
    }

    .stock-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stock-kpi:first-child {
        grid-column: span 2;
    }

    .stock-kpi {
        gap: 10px;
        padding: 12px;
    }

    .stock-kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
        line-height: 36px;
    }

    .stock-kpi-value {
        font-size: 20px;
    }

    .stock-search {
        max-width: none;
    }

    .stock-alert-filter {
        margin-left: 0;
    }

    #stock-table .col-cump,
    #stock-table .col-seuil {
        display: none;
    }

    #stock-table th,
    #stock-table td {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ─ MODAL : NOUVEAU MOUVEMENT ─ */
#modal-mouvement {
    width: 94%;
    max-width: 680px;
    max-height: 92%;
    overflow-y: auto;
}

#modal-mouvement .modal-content {
    padding: 24px 24px 8px;
}

#modal-mouvement .modal-footer {
    padding: 8px 20px 16px;
    height: auto;
}

#modal-mouvement .modal-footer .btn,
#modal-mouvement .modal-footer .btn-flat {
    border-radius: 8px;
    text-transform: none;
    font-weight: 600;
}

.mvt-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #263238;
}

.mvt-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.mvt-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px;
    border: 2px solid #eceff1;
    border-radius: 12px;
    background: #fff;
    color: #546e7a;
    font: inherit;
    cursor: pointer;
    transition: border-color 150ms, background-color 150ms;
}

.mvt-type:hover,
.mvt-type:focus {
    background: #f7f9fa;
    border-color: #cfd8dc;
}

.mvt-type i {
    font-size: 26px;
}

.mvt-type b {
    font-size: 14px;
    color: #263238;
}

.mvt-type small {
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

.mvt-type.active {
    background: #f1f8fb;
    border-color: #4d8aa7;
}

.mvt-type.active i {
    color: #2f6f8f;
}

.mvt-type[data-type="entrée"].active {
    background: #f1f8f2;
    border-color: #43a047;
}

.mvt-type[data-type="entrée"].active i {
    color: #2e7d32;
}

.mvt-type[data-type="sortie"].active {
    background: #fff5f5;
    border-color: #e53935;
}

.mvt-type[data-type="sortie"].active i {
    color: #c62828;
}

.mvt-type[data-type="ajustement"].active {
    background: #fffaf0;
    border-color: #f9a825;
}

.mvt-type[data-type="ajustement"].active i {
    color: #a15c00;
}

.mvt-block {
    flex: 1;
    min-width: 0;
    margin-bottom: 16px;
}

.mvt-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #37474f;
}

.mvt-label small {
    font-weight: 500;
    color: #90a4ae;
}

#modal-mouvement input.browser-default,
#modal-mouvement select.browser-default {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    color: #263238;
    box-sizing: border-box;
}

#modal-mouvement input.browser-default:focus,
#modal-mouvement select.browser-default:focus {
    border-color: #4d8aa7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(77, 138, 167, .2);
}

#modal-mouvement select.browser-default + select.browser-default {
    margin-top: 8px;
}

/* Matériau : champ de recherche + liste */
.mvt-combo {
    position: relative;
}

.mvt-combo > i {
    position: absolute;
    top: 11px;
    left: 11px;
    font-size: 20px;
    color: #90a4ae;
    pointer-events: none;
}

#modal-mouvement .mvt-combo input.browser-default {
    padding-left: 38px;
    padding-right: 40px;
}

#modal-mouvement .mvt-combo.has-value input.browser-default {
    background-color: #f7f9fa;
    font-weight: 600;
    cursor: default;
}

#mvt-materiau-clear:not(.hidden) {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    padding: 4px;
    border-radius: 6px;
    color: #78909c;
}

#mvt-materiau-clear:hover {
    background: #eceff1;
    color: #263238;
}

#mvt-materiau-clear i {
    font-size: 20px;
}

.mvt-combo-list {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 240px;
    margin: 0;
    overflow-y: auto;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(38, 50, 56, .18);
}

.mvt-combo-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
}

.mvt-combo-list li small {
    flex-shrink: 0;
    color: #78909c;
    font-variant-numeric: tabular-nums;
}

.mvt-combo-list li.active,
.mvt-combo-list li[data-id]:hover {
    background: #f1f8fb;
}

.mvt-combo-list li.mvt-combo-empty {
    color: #78909c;
    cursor: default;
}

.mvt-locations,
.mvt-row {
    display: flex;
    gap: 12px;
}

.mvt-arrow {
    flex-shrink: 0;
    margin-top: 34px;
    color: #90a4ae;
}

.mvt-input-unit {
    position: relative;
}

.mvt-input-unit span {
    position: absolute;
    top: 0;
    right: 12px;
    line-height: 42px;
    font-size: 13px;
    font-weight: 600;
    color: #78909c;
    pointer-events: none;
}

#modal-mouvement .mvt-input-unit input.browser-default {
    padding-right: 52px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mvt-help {
    margin: -8px 0 16px;
    font-size: 12px;
    color: #78909c;
}

.mvt-preview {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f1f8fb;
    font-size: 14px;
    color: #37474f;
}

.mvt-preview-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}

.mvt-preview-line b {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.mvt-preview-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}

.mvt-preview-note i {
    font-size: 18px;
}

.mvt-preview.is-warning {
    background: #ffebee;
    color: #b71c1c;
}

.mvt-force {
    display: block;
    margin: -6px 0 16px;
}

.mvt-force span {
    font-size: 14px;
    color: #37474f;
}

@media (max-width: 600px) {
    .mvt-types {
        grid-template-columns: 1fr 1fr;
    }

    .mvt-type small {
        display: none;
    }

    .mvt-locations {
        flex-direction: column;
        gap: 0;
    }

    .mvt-arrow {
        display: none;
    }
}

/* ─ MODALS : HISTORIQUE ET RAPPROCHEMENT ─ en-tête et pied fixes, seul le tableau défile */
/* Materialize place le modal à 10 % du haut : 84 % de hauteur laisse une marge sous le modal */
.stock-modal {
    width: 96%;
    max-width: 1100px;
    max-height: 84%;
    overflow: hidden;
}

#modal-historique {
    height: 84%;
}

.stock-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 84vh;
    padding: 0;
}

.stock-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 16px 12px 24px;
}

.stock-modal-header .mvt-title {
    margin: 0;
}

.stock-modal-close {
    display: flex;
    padding: 6px;
    border-radius: 8px;
    color: #78909c;
}

.stock-modal-close:hover {
    background: #eceff1;
    color: #263238;
}

.stock-modal-intro {
    margin: 0;
    padding: 0 24px 16px;
    max-width: 820px;
    font-size: 14px;
    color: #546e7a;
}

.hist-filters {
    padding: 0 24px 14px;
    border-bottom: 0;
}

.hist-filters select.browser-default {
    min-width: 0;
}

.stock-modal-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-top: 1px solid #eceff1;
}

.stock-modal-body table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

#inventaire-table th:first-child,
#inventaire-table td:first-child,
#mouvements-table th:first-child,
#mouvements-table td:first-child,
#rapprochement-table th:first-child,
#rapprochement-table td:first-child {
    padding-left: 24px;
}

.stock-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 6px 12px 6px 24px;
    border-top: 1px solid #eceff1;
    background: #f7f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #546e7a;
}

/* Inventaire */
#modal-inventaire {
    height: 84%;
    max-width: 900px;
}

#inventaire-table td {
    padding-top: 6px;
    padding-bottom: 6px;
}

.inv-input-wrap {
    display: inline-block;
    width: 150px;
}

#inventaire-table input.inv-input {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 48px 0 10px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.inv-input-wrap span {
    line-height: 38px;
}

#inventaire-table input.inv-input:focus {
    border-color: #4d8aa7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(77, 138, 167, .2);
}

#inventaire-table input.inv-input.invalid {
    border-color: #e53935;
}

.inv-ecart {
    min-width: 110px;
    font-weight: 700;
}

.inv-ecart.is-plus {
    color: #2e7d32;
}

.inv-ecart.is-minus {
    color: #c62828;
}

.inv-ecart.is-ok {
    font-weight: 500;
    color: #78909c;
}

.inv-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-footer-actions .btn,
.inv-footer-actions .btn-flat {
    border-radius: 8px;
    text-transform: none;
    font-weight: 600;
}

.hist-date {
    white-space: nowrap;
}

.hist-date small {
    display: block;
    color: #78909c;
}

.hist-motif {
    display: block;
    font-size: 12px;
    color: #78909c;
}

#rapprochement-table select.browser-default {
    min-width: 200px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
}

.rapprochement-actions {
    white-space: nowrap;
    text-align: right;
}

/* Saisie sur une feuille pas encore validée : affichée, pas encore rapprochable */
#rapprochement-table tr.is-non-validee td {
    color: #78909c;
}

#rapprochement-table tr.is-non-validee .stock-pill {
    margin-left: 0;
}

.rapprochement-actions.rapprochement-wait {
    font-size: 12px;
    font-style: italic;
    white-space: normal;
}

.rapprochement-actions .btn,
.rapprochement-actions .btn-flat {
    border-radius: 8px;
    text-transform: none;
    font-weight: 600;
}

@media (max-width: 700px) {
    #mouvements-table .col-valeur,
    #mouvements-table .col-origine {
        display: none;
    }

    .hist-filters select.browser-default {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.stock-count-badge {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.empty-report {
    margin-bottom: 20px;
    color: #90a4ae;
    font-style: italic;
}

/* ─ RIBBON ─ same look as the list pages' #list-ribbon, whose rules live in list.css (not loaded here) ─ */
#list-ribbon {
    background: linear-gradient(45deg, #294e5f, #4d8aa7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

#list-ribbon .ribbon-tabs {
    display: flex;
    padding: 0 8px;
    align-items: stretch;
    min-height: 32px;
}

#list-ribbon .ribbon-tab {
    border: none;
    background: 0;
    color: rgba(255, 255, 255, .9);
    padding: 5px 11px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    transition: .2s;
}

#list-ribbon .ribbon-tab i,
#list-ribbon .ribbon-tab svg {
    font-size: 14px;
}

#list-ribbon .ribbon-tab:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

#list-ribbon .ribbon-tab.active {
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-weight: 700;
}

#list-ribbon .ribbon-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    display: flex;
    align-items: center;
    letter-spacing: .3px;
}


/* Trial badge (see trial-module.js) — same look as on the other modules' ribbons */
#trial-badge {
    flex-shrink: 0;
    align-self: center;
    background: #fff;
    color: #37474f;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    margin-right: 4px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
}

#trial-badge:hover {
    background: #eceff1;
}

#trial-badge.urgent {
    background: #d32f2f;
    color: #fff;
}

#trial-badge.urgent:hover {
    background: #b71c1c;
}

/* History modal pager */
.stock-pager {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #455a64;
}

.stock-pager .btn-flat {
    padding: 0 8px;
    border-radius: 8px;
}
