/* V2-HOME : recherche globale, onglets pill, échéance, urgence (maquettes v2 p.03-05) */
.cms-gsearch { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 640px; }
.cms-gsearch__bar { display: flex; align-items: center; background: #fff; border: 1px solid var(--color-neutral-300, #d4d4d4);
    border-radius: 9999px; overflow: hidden; height: 48px; }
.cms-gsearch__icon { margin-left: 14px; color: var(--color-neutral-700, #333); }
.cms-gsearch__input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 12px; height: 100%; font: inherit; min-width: 0; }
.cms-gsearch__go { border: 0; cursor: pointer; height: 100%; padding: 0 28px; font: inherit; font-weight: 500; color: #fff;
    background: var(--color-primary-700, #721313); }
.cms-gsearch__go:hover { background: var(--color-primary-600, #8C2424); }
.cms-gsearch__hint { margin: 0; color: var(--color-neutral-500, #6b7280); font-size: .875rem; }
.cms-gsearch__results, .cms-gsearch__group { display: flex; flex-direction: column; gap: 8px; }
.cms-gsearch__group-title { margin: 8px 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-primary-700, #721313); }
.cms-gsearch__group-title span { margin-left: 6px; color: var(--color-neutral-500, #6b7280); }
.cms-gsearch ul { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 8px; }
.cms-gsearch li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px;
    text-decoration: none; color: inherit; border-bottom: 1px solid var(--color-neutral-200, #e5e7eb); }
.cms-gsearch li:last-child a { border-bottom: 0; }
.cms-gsearch li a:hover, .cms-gsearch li a:focus-visible { background: var(--color-primary-50, #FBF0F0); }
.cms-gsearch__kind { color: var(--color-neutral-500, #6b7280); font-size: .8rem; }

.cms-gsearch-overlay { position: fixed; inset: 0; z-index: 1400; background: rgba(0,0,0,.35); display: flex; justify-content: center; padding: 72px 16px 16px; }
.cms-gsearch-overlay__panel { background: var(--color-neutral-100, #f3f3f3); border-radius: 12px; padding: 16px; width: 100%; max-width: 680px;
    max-height: calc(100vh - 100px); overflow-y: auto; align-self: flex-start; }

/* Onglets pill (v2 p.03-05) */
.cms-home__tab-bar { display: flex; gap: 16px; padding: 16px 20px 8px; border-bottom: 0 !important; }
.cms-home__tab { border-radius: 8px !important; padding: 10px 28px !important; background: #fff !important; color: var(--color-neutral-800, #222) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.cms-home__tab--active { background: var(--color-primary-700, #721313) !important; color: #fff !important; }
.cms-home__tab--active::after { display: none !important; }
.cms-home__tab-badge { background: var(--color-primary-500, #AB2424) !important; }
.cms-home__tab--active .cms-home__tab-badge { background: #fff !important; color: var(--color-primary-700, #721313); }

.cms-home__deadline--overdue { color: #B00020; font-weight: 600; }
.cms-home__validate { border: 0; cursor: pointer; border-radius: 9999px; padding: 4px 18px; color: #fff; font: inherit; font-size: .8125rem;
    background: var(--color-status-accepted, #255C07); }
.cms-home__validate:disabled { opacity: .6; cursor: progress; }
.cms-home__row-link { color: inherit; text-decoration: none; }
.cms-home__row-link:hover { text-decoration: underline; }

/* Tableau Pending : compact pour que la colonne Action reste visible */
.cms-home__table-wrap { overflow-x: auto; }
.cms-home__table th, .cms-home__table td { padding: 6px 10px !important; }
.cms-home__table td:last-child { white-space: nowrap; }
