/* ═══════════════════════════════════════════════════════════════
   AppelOffre — Shared Utility Classes
   Replaces frequently repeated inline styles across components.
   ═══════════════════════════════════════════════════════════════ */

/* ── Typography ─────────────────────────────────────────────── */

.text-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.text-subtitle {
    color: #666;
    font-size: 0.9rem;
}

.text-muted {
    color: #999;
    font-size: 0.85rem;
}

.text-dark {
    color: #333;
}

.text-secondary {
    color: #666;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn-primary-ricoh {
    background-color: #CF142B !important;
    color: white !important;
    text-transform: none !important;
    border-radius: 10px !important;
    padding: 6px 20px !important;
    font-weight: 500;
}

.btn-primary-red {
    background-color: #CF142B !important;
    color: white !important;
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 8px 32px !important;
}

.btn-outline-red {
    border: 1px solid #CF142B !important;
    color: #CF142B !important;
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

.btn-cancel {
    border-color: #ccc !important;
    color: #333 !important;
    text-transform: none !important;
    font-weight: 500;
}

/* ── Badges / Chips ─────────────────────────────────────────── */

.badge-base {
    border-radius: 12px;
    padding: 4px 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-blue {
    background-color: #e3f2fd;
    border-radius: 16px;
}

.badge-orange {
    background-color: #fff3e0;
    border-radius: 16px;
}

/* ── Cards / Containers ─────────────────────────────────────── */

.card-bordered {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #fafafa;
}

.card-white {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: white;
}

/* ── Table headers ──────────────────────────────────────────── */

.table-header-cell {
    color: #999;
    font-weight: 500;
    font-size: 13px;
}

/* ── Link-style actions ─────────────────────────────────────── */

.link-action {
    color: #E31837;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED FILTER DROPDOWN
   Previously duplicated in appels-offre.css, admin-users.css,
   extraction.css, archives.css.
   ═══════════════════════════════════════════════════════════════ */

.filter-dropdown {
    text-transform: none !important;
    color: #666 !important;
    background-color: #f5f5f5 !important;
    border-radius: 25px !important;
    padding: 5px 20px !important;
    font-size: 14px !important;
    white-space: nowrap;
    width: auto !important;
    min-width: fit-content !important;
    border: 1px solid #e0e0e0 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-dropdown:hover {
    background-color: #e0e0e0 !important;
}

.filter-dropdown .mud-popover {
    min-width: 200px !important;
}

.filter-dropdown .mud-list {
    min-width: 200px !important;
}

.filter-dropdown .mud-input-control {
    margin-top: 0 !important;
}

/* Popover width overrides for dropdowns */
.mud-popover-open {
    min-width: 200px !important;
}

.mud-select-popover {
    min-width: 200px !important;
}

.mud-select .mud-popover .mud-list {
    min-width: 200px !important;
    width: auto !important;
}

.mud-select-item {
    white-space: nowrap !important;
    padding: 8px 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGINATION
   Previously duplicated in appels-offre.css & admin-users.css.
   ═══════════════════════════════════════════════════════════════ */

.pagination-section,
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 8px;
}

.pagination-info,
.pagination-text {
    font-size: 0.85rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn,
.page-number-btn {
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f5f5f5;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none !important;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #eee;
    color: #333;
}

.pagination-btn.active {
    background-color: #d32f2f !important;
    color: white !important;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SEARCH CAPSULE
   Used in admin-users.css and appels-offre.css.
   ═══════════════════════════════════════════════════════════════ */

.search-capsule {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px 16px;
    max-width: 350px;
    border: 1px solid #e0e0e0;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED TABLE STYLES
   Common table styling used across pages.
   ═══════════════════════════════════════════════════════════════ */

.data-table-section,
.users-table-container,
.recent-files-table {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
