﻿/* Cropio reconciliation: app bar indicator, menu badge, discrepancy views, group management. */

.cropio_indicator
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
    white-space: nowrap;
}

.cropio_indicator:hover
{
    background: rgba(255, 255, 255, 0.26);
}

.cropio_indicator-count
{
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--red-alert);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.cropio_indicator-close
{
    margin-left: 2px;
    padding: 0 4px;
    font-size: 16px;
    line-height: 16px;
    opacity: 0.8;
}

.cropio_indicator-close:hover
{
    opacity: 1;
}

.menu_badge
{
    margin-left: auto;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--red-alert);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cropio_toolbar
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cropio_toolbar .zselect_wrap,
.cropio_toolbar > div
{
    min-width: 200px;
}

.cropio_meta
{
    font-size: 13px;
    color: var(--gray-text);
}

.cropio_meta b
{
    color: var(--black-text, #222);
}

.cropio_kind
{
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

.cropio_kind--new { background: rgba(33, 118, 199, 0.12); color: #1f6fbf; }
.cropio_kind--changed { background: rgba(230, 145, 20, 0.15); color: #b26a00; }
.cropio_kind--missing { background: rgba(185, 47, 28, 0.12); color: var(--red-alert); }
.cropio_kind--ok { background: rgba(121, 172, 74, 0.15); color: var(--green-hover); }

.cropio_diff
{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cropio_diff td
{
    padding: 2px 8px 2px 0;
    vertical-align: top;
}

.cropio_diff-label { color: var(--gray-text); white-space: nowrap; }
.cropio_diff-ours { color: var(--black-text, #222); }
.cropio_diff-cropio { color: #b26a00; }

.cropio_actions
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cropio_preview
{
    max-height: 50vh;
    overflow-y: auto;
}

.cropio_preview table
{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cropio_preview th,
.cropio_preview td
{
    padding: 6px 8px;
    border-bottom: 1px solid var(--gray-light, #eee);
    text-align: left;
    vertical-align: top;
}

.cropio_wide_modal .modal_window_body
{
    width: min(960px, 94vw);
    max-width: none;
}

.chip_list
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chip
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(121, 172, 74, 0.15);
    color: var(--green-hover);
    font-size: 13px;
}

.chip-remove
{
    cursor: pointer;
    font-weight: 700;
    opacity: 0.7;
}

.chip-remove:hover
{
    opacity: 1;
}

.list_row_actions
{
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.text_link
{
    color: var(--green-hover);
    cursor: pointer;
    text-decoration: underline;
}
