/* Form relation pickers only. Logical properties keep the same layout in RTL. */
.rp-dialog {
    width: min(940px, calc(100vw - 32px)) !important;
    height: min(700px, 86vh) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 0 !important;
    background: #fff;
    color: #374151;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    box-shadow: 0 24px 64px -16px #0f172a47;
    overflow: hidden;
}
.rp-dialog .ui-dialog-content { padding: 0 !important; height: 100% !important; overflow: hidden !important; }
.rp-dialog form { height: 100%; margin: 0; }
.rp-picker { display: flex; flex-direction: column; height: 100%; font-size: 13px; text-align: start; }
.rp-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px 0; order: 0; }
.rp-heading { flex: 1; min-width: 0; }
.rp-eyebrow { font-size: 12px; font-weight: 500; color: #9ca3af; }
.rp-title { margin: 1px 0 0; color: #282f44; font-size: 18px; font-weight: 600; line-height: 1.3; }
.rp-grab { display: none; }
.rp-button, .rp-icon {
    font: inherit !important; color: #282f44 !important; background: #fff !important;
    border: 1px solid #e5e7eb !important; border-radius: 8px !important;
    box-shadow: none !important; cursor: pointer; text-shadow: none !important; flex: none;
}
.rp-button { min-height: 32px; padding: 0 12px; font-weight: 500 !important; white-space: nowrap; }
.rp-button .ui-button-text { padding-block: 6px !important; }
.rp-icon { display: inline-grid; place-items: center; width: 28px !important; height: 28px; padding: 0 !important; border: 0 !important; }
.rp-icon .ui-button-text { padding: 0 !important; }
.rp-button:hover, .rp-icon:hover { background: #f3f4f7 !important; }
.rp-primary { background: #282f44 !important; border-color: #282f44 !important; color: #fff !important; }
.rp-primary:hover { background: #202638 !important; }
.rp-dialog button:focus-visible, .rp-dialog a:focus-visible, .rp-field button:focus-visible { outline: 2px solid #282f44 !important; outline-offset: 2px; box-shadow: none !important; }
.rp-dialog .ui-state-focus, .rp-field .ui-state-focus { box-shadow: none !important; }
.rp-search { display: flex; align-items: center; gap: 8px; margin: 14px 22px 12px; min-height: 42px;
    border: 1px solid #d1d5db; border-radius: 11px; order: 1; }
.rp-search-icon { color: #6b7280; margin-inline-start: 13px; }
.rp-search .rp-query { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0 !important; box-shadow: none !important;
    outline: 0 !important; background: transparent; font: inherit; font-size: 14px; color: #282f44; }
.rp-query::placeholder, .rp-field-input::placeholder { color: #9ca3af; }
.rp-search .rp-icon { margin-inline-end: 6px; }
.rp-spin { visibility: hidden; width: 16px; height: 16px; flex: none; border: 2px solid #e5e7eb;
    border-block-start-color: #282f44; border-radius: 50%; animation: rp-rotate .7s linear infinite; }
.rp-loading .rp-spin { visibility: visible; }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 0 22px 12px;
    color: #6b7280; font-size: 12px; order: 2; }
.rp-meta b, .rp-current { color: #282f44; font-weight: 600; }
.rp-current-meta { margin-inline-start: auto; }
.rp-link { color: #2563eb !important; }
.rp-body { flex: 1; min-height: 0; overflow: auto; border-block-start: 1px solid #eef0f3; order: 3; position: relative; }
.rp-table { width: 100%; }
.rp-table table { width: 100%; border-collapse: collapse; table-layout: auto; }
.rp-table .ui-datatable-thead > tr > th { height: 36px; padding: 0 12px; border: 0;
    border-block-end: 1px solid #eef0f3; background: #f6f7f9; color: #6b7280; font-size: 12px;
    font-weight: 500; text-align: start; text-transform: none; white-space: nowrap; }
.rp-table .ui-datatable-data > tr { cursor: pointer; border: 0; background: #fff; color: #374151; }
.rp-table .ui-datatable-data > tr > td { height: 54px; padding: 0 12px; border: 0;
    border-block-end: 1px solid #eef0f3; font-size: 13px; color: #6b7280; white-space: nowrap; }
.rp-table .ui-datatable-data > tr > td:first-child, .rp-table .ui-datatable-thead > tr > th:first-child { padding-inline-start: 22px; }
.rp-table .ui-datatable-data > tr:hover, .rp-table .ui-datatable-data > tr.rp-kb { background: #f3f4f7 !important; }
.rp-table .ui-datatable-data > tr > td { background: transparent !important; }
.rp-table .ui-datatable-data > tr.ui-state-highlight { background: #eceef3 !important; }
.rp-table .ui-state-active, .rp-table .ui-state-highlight { background: #eceef3 !important; color: #282f44 !important; border-color: #e5e7eb; }
.rp-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rp-tile { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px;
    background: #eef0f3; color: #282f44; font-size: 11px; font-weight: 600; }
.rp-h0 { background: #e7f5ec; color: #17803d; }
.rp-h1 { background: #e8f0fe; color: #1d4ed8; }
.rp-h2 { background: #f0ebfd; color: #6d28d9; }
.rp-h3 { background: #fdf0e3; color: #c2410c; }
.rp-h4 { background: #fce9f1; color: #be185d; }
.rp-h5 { background: #e3f6f5; color: #0f766e; }
.rp-values { min-width: 0; }
.rp-value { overflow: hidden; text-overflow: ellipsis; }
.rp-table td .rp-tile { display: none; }
/* Lead cell: the relation display column (.rp-lead), or the first column when it is not shown. */
.rp-table td:has(> .rp-lead) .rp-tile, .rp-table tr:not(:has(.rp-lead)) > td:first-child .rp-tile, .rp-multi .rp-table tr:not(:has(.rp-lead)) > td:nth-child(2) .rp-tile { display: grid; }
.rp-table td:has(> .rp-lead) .rp-value, .rp-table tr:not(:has(.rp-lead)) > td:first-child .rp-value, .rp-multi .rp-table tr:not(:has(.rp-lead)) > td:nth-child(2) .rp-value { color: #282f44; font-weight: 600; }
.rp-phone-sub { display: none; }
.rp-table mark { background: #fff3a8; color: inherit; border-radius: 3px; padding-inline: 1px; }
.rp-end { width: 1%; text-align: end; }
.rp-end .rp-icon { text-decoration: none; font-size: 18px; color: #6b7280 !important; }
.rp-current { font-size: 12px; }
.rp-enter { visibility: hidden; }
.rp-kb .rp-enter { visibility: visible; }
.rp-checkbox { width: 28px; }
.rp-table .ui-chkbox-box.ui-state-active { background: #282f44 !important; border-color: #282f44 !important; }
.rp-table .ui-chkbox-box.ui-state-active .ui-chkbox-icon { color: #fff !important; }
.rp-table .ui-paginator { background: #fff; border: 0; padding: 10px 18px; text-align: end; font-size: 12px; }
.rp-table .ui-paginator .ui-paginator-element { border: 0; background: transparent; color: #6b7280; box-shadow: none; }
.rp-empty { display: grid; justify-items: center; padding: 56px 24px; text-align: center; white-space: normal; }
.rp-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-block-end: 12px;
    border-radius: 12px; background: #f6f7f9; color: #6b7280; font-size: 20px; }
.rp-empty h4 { margin: 0; font-size: 14px; color: #282f44; font-weight: 600; }
.rp-empty p { margin: 4px 0 16px; }
.rp-footer { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 22px;
    border-block-start: 1px solid #eef0f3; order: 4; }
.rp-tray-label { color: #282f44; font-weight: 600; white-space: nowrap; }
.rp-tokens { display: flex; flex: 1; gap: 6px; min-width: 0; overflow: auto; }
.rp-token, .rp-multifield .ui-chips-token { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px;
    border: 1px solid #e5e7eb !important; border-radius: 8px !important; background: #f6f7f9 !important;
    color: #282f44 !important; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.rp-field { display: flex; align-items: center; gap: 4px; min-height: 38px; padding-inline: 6px;
    border: 1px solid #d1d5db; border-radius: 10px; background: #fff; cursor: pointer;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.rp-field .rp-field-input { flex: 1; width: 0; min-width: 40px; height: 36px; padding: 0 4px;
    border: 0 !important; border-radius: 0 !important; outline: 0 !important; background: transparent !important;
    box-shadow: none !important; color: #282f44; font-size: 13px; cursor: pointer; }
.rp-field .rp-icon { width: 28px !important; min-width: 28px; height: 28px; border: 0 !important; flex: none; }
.rp-field-tile { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.rp-field-tile:empty { display: none; }
.rp-readonly { cursor: default; background: #f6f7f9; }
.rp-multifield .ui-chips { flex: 1; min-width: 0; }
.rp-multifield .ui-chips-container { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.rp-multifield .ui-chips-input-token { display: none; }
.rp-loading .rp-body::after { content: ''; position: absolute; inset: 0; z-index: 3;
    background: repeating-linear-gradient(to bottom, #fff 0, #fff 20px, #eef0f3 20px, #eef0f3 32px, #fff 32px, #fff 54px);
    background-size: 100% 54px; animation: rp-pulse 1s ease-in-out infinite alternate; pointer-events: all; }
@keyframes rp-rotate { to { transform: rotate(360deg); } }
@keyframes rp-pulse { to { opacity: .55; } }
@media (max-width: 600px) {
    .rp-dialog { width: 100vw !important; height: 94dvh !important; max-height: 94vh;
        inset-inline-start: 0 !important; inset-block-start: auto !important; inset-block-end: 0 !important;
        margin: 0 !important; border-radius: 18px 18px 0 0 !important; }
    .rp-grab { display: block; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #e5e7eb; }
    .rp-head { padding: 10px 16px 0; gap: 8px; }
    .rp-head .rp-button { max-width: 45%; white-space: normal; font-size: 12px !important; }
    .rp-search { margin: 12px 16px 10px; }
    .rp-meta { padding: 0 16px 10px; }
    .rp-table thead { display: none; }
    .rp-table .ui-datatable-data > tr > td { display: none; height: 60px; }
    .rp-table .ui-datatable-data > tr > td:has(> .rp-lead), .rp-table .ui-datatable-data > tr:not(:has(.rp-lead)) > td:first-child,
    .rp-multi .rp-table .ui-datatable-data > tr:not(:has(.rp-lead)) > td:nth-child(2), .rp-multi .rp-table .ui-datatable-data > tr > td.rp-checkbox,
    .rp-table .ui-datatable-data > tr > td.rp-end,
    .rp-table .ui-datatable-data > tr.ui-datatable-empty-message > td { display: table-cell; }
    .rp-table td:has(> .rp-lead) .rp-phone-sub, .rp-table tr:not(:has(.rp-lead)) > td:first-child .rp-phone-sub, .rp-multi .rp-table tr:not(:has(.rp-lead)) > td:nth-child(2) .rp-phone-sub { display: block; }
    .rp-phone-sub .rp-sub + .rp-sub::before { content: ' \00b7  '; }
    .rp-phone-sub { color: #6b7280; font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
    .rp-footer { flex-wrap: wrap; padding: 10px 16px 14px; }
    .rp-footer .rp-button { flex: 1; }
    .rp-tokens { display: none; }
    .rp-tray-label { width: 100%; }
    .rp-body { overflow-x: hidden; }
    .rp-current { display: none; }
}

/* Live polish (16 Oct): match the concept. PrimeFaces theme rules win on specificity, hence !important. */
.rp-search { outline: 0 !important; transition: border-color .15s; }
.rp-head .rp-icon { font-size: 20px; color: #6b7280 !important; }
.rp-search .rp-icon { font-size: 18px; color: #9ca3af !important; }
.rp-current-name { color: #282f44; font-weight: 600; }
.rp-body { overflow-x: hidden; }
.rp-table .ui-datatable-thead > tr > th { padding: 0 12px !important; }
.rp-table .ui-datatable-thead > tr > th:first-child, .rp-table .ui-datatable-data > tr > td:first-child { padding-inline-start: 22px !important; }
.rp-table .ui-datatable-data > tr > td { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: #374151; }
.rp-table th.ui-state-active, .rp-table th.ui-state-hover { background: #f6f7f9 !important; color: #282f44 !important; }
.rp-table .ui-sortable-column-icon { font-size: 0 !important; background: none !important; width: auto !important; height: auto !important; margin-inline-start: 4px; vertical-align: baseline; }
.rp-table .ui-sortable-column-icon::before { font: 600 12px Inter, system-ui, sans-serif !important; color: #282f44; }
.rp-table .ui-paginator { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 2px;
    padding: 10px 18px 10px 22px !important; border-block-start: 1px solid #eef0f3 !important; background: #fff !important; }
.rp-table .ui-paginator::before { content: attr(data-keys); margin-inline-end: auto; color: #9ca3af; white-space: pre; }
.rp-multi .rp-table .ui-paginator::before { content: none; }
.rp-table .ui-paginator-current { margin-inline-end: 6px; color: #6b7280; }
.rp-table .ui-paginator .ui-paginator-prev, .rp-table .ui-paginator .ui-paginator-next { display: inline-grid; place-items: center;
    width: 28px; height: 28px; border-radius: 7px !important; }
.rp-table .ui-paginator .ui-paginator-prev:hover, .rp-table .ui-paginator .ui-paginator-next:hover { background: #f3f4f7 !important; }
.rp-table .ui-paginator .ui-icon { font-size: 0 !important; background: none !important; width: auto; height: auto; text-indent: 0; }
.rp-table .ui-paginator .ui-icon::before { font: 400 18px Inter, system-ui, sans-serif !important; color: #282f44; }
.rp-table .ui-paginator .ui-icon-seek-prev::before { content: '\2039'; }
.rp-table .ui-paginator .ui-icon-seek-next::before { content: '\203A'; }
.rp-table .ui-paginator .ui-state-disabled .ui-icon::before { color: #c5cad3; }
.rp-field .rp-icon .fa, .rp-field .rp-icon .ui-icon { color: #6b7280 !important; font-size: 13px; }
.rp-field .rp-icon:hover .fa { color: #282f44 !important; }
@media (max-width: 600px) { .rp-table .ui-paginator::before { content: none; } }
.rp-table th:not([aria-sort="ascending"]):not([aria-sort="descending"]) .ui-sortable-column-icon { display: none !important; }
.rp-end .rp-open { opacity: 0; transition: opacity .12s; }
.rp-table tr:hover .rp-open, .rp-table tr.rp-kb .rp-open, .rp-open:focus-visible { opacity: 1; }
.rp-search .rp-query:placeholder-shown ~ .rp-icon { visibility: hidden; }
.rp-dialog .rp-table thead > tr > th:first-child { padding-inline-start: 22px !important; }
.rp-dialog .rp-table thead > tr > th, .rp-dialog .rp-table tbody > tr > td { border-inline: 0 !important; }
.rp-end .rp-icon { background: transparent !important; }
.rp-dialog .rp-table th .ui-sortable-column-icon { width: auto !important; border: 0 !important; }
.rp-dialog .rp-table th[aria-sort="ascending"] .ui-sortable-column-icon::before { content: '\2191' !important; }
.rp-dialog .rp-table th[aria-sort="descending"] .ui-sortable-column-icon::before { content: '\2193' !important; }
.rp-field { transition: border-color .15s; }
.rp-field:hover:not(.rp-readonly) { border-color: #b8bdc8; }
/* Focus on inputs: a slightly darker grey border only, no ring (house rule). */
.rp-search:focus-within, .rp-field:focus-within { outline: 0 !important; border-color: #9ca3af !important; box-shadow: none !important; }
.rp-dialog input:focus, .rp-field input:focus { outline: 0 !important; box-shadow: none !important; }
/* Icon-only buttons: PrimeFaces offsets the icon from 14px/14px with a 5px margin; centre it in the box instead. */
.rp-icon.ui-button-icon-only .ui-button-icon-left { inset: 0 !important; margin: auto !important; width: 14px; height: 14px; line-height: 14px; text-align: center; }

/* Get Data uses the relation picker controls and table. */
.gd-dialog { width: min(1080px, calc(100vw - 32px)) !important; height: min(720px, 88vh) !important; }
.gd-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; flex: 1; min-height: 0; }
.gd-browse { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gd-basket { display: flex; flex-direction: column; min-height: 0; border-inline-start: 1px solid #eef0f3; background: #fbfbfc; }
.gd-basket-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 18px 10px; }
.gd-basket-head b { color: #282f44; font-size: 14px; font-weight: 600; }
.gd-basket-head .rp-link { font-size: 12px; }
.gd-list { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; padding: 0 10px 10px; }
.gd-item { flex: none; gap: 10px; padding: 8px; border-radius: 10px; }
.gd-item:hover { background: #fff; box-shadow: 0 1px 2px #1018280d; }
.gd-item .rp-values { flex: 1; }
.gd-item .rp-value { display: block; white-space: nowrap; color: #282f44; font-weight: 500; }
.gd-item .rp-tile { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.gd-item .rp-icon { opacity: 0; }
.gd-item:hover .rp-icon, .gd-item .rp-icon:focus-visible { opacity: 1; }
.gd-sub { display: block; color: #9ca3af; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-empty { margin-block: auto; padding: 24px 14px; color: #9ca3af; }
.gd-empty b { color: #6b7280; font-weight: 500; }
.gd-foot { display: flex; flex: none; gap: 8px; padding: 12px 18px 14px; border-block-start: 1px solid #eef0f3; background: #fff; }
.gd-foot .rp-button { flex: 1; }
.gd-toggle { display: none; }
.gd-picker .rp-table .ui-paginator::before { content: attr(data-keys); font-size: 10px; }
.gd-picker .rp-table tr.gd-intable { cursor: default; }
.gd-picker .rp-table tr.gd-intable td, .gd-picker .rp-table tr.gd-intable .rp-value { color: #9ca3af; }
.gd-already { font-size: 12px; color: #6b7280; }
.gd-busy .gd-add { pointer-events: none; opacity: .65; }
.gd-toast { position: fixed; inset-inline: 16px; inset-block-end: 24px; z-index: 2147483647; width: max-content;
    max-width: calc(100vw - 32px); margin-inline: auto; padding: 10px 14px; border-radius: 10px; background: #282f44;
    color: #fff; font: 500 13px Inter, system-ui, sans-serif; opacity: 0; transform: translateY(20px);
    transition: opacity .2s, transform .2s; pointer-events: none; }
.gd-toast-on { opacity: 1; transform: none; }
.gd-flash > td { animation: gd-newrow 2.4s ease !important; }
@keyframes gd-newrow { 0%, 40% { background-color: #fffbe0; } 100% { background-color: transparent; } }
@media (max-width: 600px) {
    .gd-dialog { width: 100vw !important; height: 94dvh !important; }
    .gd-main { grid-template-columns: 1fr; position: relative; }
    .gd-browse { padding-block-end: 112px; }
    .gd-basket { position: absolute; inset-inline: 0; inset-block-end: 0; max-height: 72%; border-inline-start: 0;
        border-block-start: 1px solid #e5e7eb; border-start-start-radius: 16px; border-start-end-radius: 16px;
        background: #fff; box-shadow: 0 -16px 40px -12px #0f172a33; z-index: 4; }
    .gd-picker:not(.gd-basket-open) .gd-basket-head, .gd-picker:not(.gd-basket-open) .gd-list { display: none; }
    .gd-toggle { display: flex; gap: 8px; padding: 12px 16px 0; border: 0; background: none;
        color: #282f44; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; text-align: start; }
    .gd-basket-open .gd-toggle span { transform: rotate(180deg); }
    .gd-picker .rp-table .ui-datatable-data > tr > td { display: none; text-align: start; }
    .gd-picker .rp-table .ui-datatable-data > tr > td.rp-checkbox,
    .gd-picker .rp-table .ui-datatable-data > tr > td:has(> .rp-lead), .gd-picker .rp-table .ui-datatable-data > tr:not(:has(.rp-lead)) > td:nth-child(2),
    .gd-picker .rp-table .ui-datatable-data > tr > td.rp-end,
    .gd-picker .rp-table .ui-datatable-data > tr.ui-datatable-empty-message > td { display: table-cell; }
    .gd-picker .rp-table .ui-paginator::before { content: none; }
    .gd-item .rp-icon { opacity: 1; }
    .gd-already { white-space: normal; font-size: 11px; }
    .gd-picker .ui-column-title { display: none !important; }
}
.gd-key { display: none; }
/* The app's mobile script centres every dialog with inline left/top 50% + translate(-50%,-50%) and a 400px cap; the pickers are bottom sheets. */
@media (max-width: 600px) { .rp-dialog { transform: none !important; max-width: none !important; left: 0 !important; } }
/* Phone list for the Get Data table; also overrides PrimeFaces reflow (stacked cards) if a cached template still has it. */
@media (max-width: 600px) {
    .gd-dialog .gd-picker .rp-table thead { display: none !important; }
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr > td { display: none !important; float: none !important; width: auto !important; }
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr > td.rp-checkbox,
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr > td:has(> .rp-lead),
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr > td.rp-end,
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr.ui-datatable-empty-message > td { display: table-cell !important; }
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr { display: table-row !important; }
    .gd-dialog .gd-picker .rp-table td:has(> .rp-lead) .rp-phone-sub { display: block; }
}
@media (max-width: 600px) {
    .gd-dialog .ui-reflow-dropdown, .gd-dialog .ui-reflow-label, .gd-dialog label[for$="_reflowDD"] { display: none !important; }
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr { margin: 0 !important; border: 0 !important; border-radius: 0 !important;
        box-shadow: none !important; background: #fff; border-block-end: 1px solid #eef0f3 !important; }
    .gd-dialog .gd-picker .rp-table .ui-datatable-data > tr > td { background: transparent !important; border: 0 !important; }
}
@media (max-width: 600px) { .gd-dialog .gd-picker .rp-table table { display: table !important; border-collapse: collapse !important; border-spacing: 0 !important; } }
.gd-intable-note { display: block; margin-block-start: 2px; color: #6b7280; font-size: 12px; font-weight: 400; }
.gd-already { color: #6b7280; font-size: 12px; white-space: nowrap; }
/* Rows already in the target table: a soft green wash and a green check, so earlier picks are visible at a glance. */
.rp-table .ui-datatable-data > tr.gd-added { background: #f0f9f3 !important; }
.rp-table .ui-datatable-data > tr.gd-added:hover, .rp-table .ui-datatable-data > tr.gd-added.rp-kb { background: #e6f4eb !important; }
.gd-added .gd-already { color: #15803d; font-weight: 600; }
.gd-added .gd-already::before, .gd-intable-note::before { content: '\2713'; margin-inline-end: 5px; color: #15803d; font-weight: 700; }
.gd-intable-note { color: #15803d; font-weight: 500; }
/* Stronger cue: the tag under the name and a clearer wash. */
.rp-table .ui-datatable-data > tr.gd-added { background: #e8f6ed !important; }
.rp-table .ui-datatable-data > tr.gd-added:hover, .rp-table .ui-datatable-data > tr.gd-added.rp-kb { background: #ddf1e4 !important; }
.rp-lead .gd-already { display: block; font-size: 12px; }
/* PrimeFaces shows its own spinner on the busy Add button; keep it white and spaced. */
.gd-add .ui-icon-loading { color: #fff; margin-inline-end: 6px; }
