:root {
    --app-bg: #f5f7fb;
    --app-ink: #1f2937;
    --app-muted: #6b7280;
    --app-line: #d9e1ee;
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
}

.navbar {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.nav-list-tabs {
    gap: 0.25rem;
}

.nav-list-tabs .nav-link {
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.nav-list-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.btn-icon {
    align-items: center;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.btn-icon-sm {
    align-items: center;
    display: inline-flex;
    height: 31px;
    justify-content: center;
    padding: 0;
    width: 31px;
}

.btn-icon-sm.is-copied {
    border-color: #198754;
    color: #198754;
}

.copy-toast {
    background: #172033;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    color: #fff;
    min-width: 240px;
}

.copy-toast-icon {
    align-items: center;
    background: #198754;
    border-radius: 999px;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.page-shell {
    max-width: 1320px;
}

.soft-panel {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}

.list-nav .list-group-item {
    border-color: var(--app-line);
}

.list-nav .active {
    background: #0d6efd;
    border-color: #0d6efd;
}

.request-photo {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-chip[role="button"] {
    cursor: pointer;
}

.badge-chip[role="button"]:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.badge-chip-sm {
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.18rem 0.38rem;
}

.badge-chip-edit {
    padding-right: 0.25rem;
}

.badge-chip-remove {
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    height: 0.95rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 0.95rem;
}

.badge-chip-remove:hover {
    background: rgba(255, 255, 255, 0.35);
}

.badge-add-button {
    align-items: center;
    background: #fff;
    border: 1px dashed #9aa8bd;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 0.75rem;
    height: 1.5rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 1.5rem;
}

.badge-add-button:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.request-table tbody tr.request-badges-row td {
    border-top: 0 !important;
    padding: 0 0.5rem 0.3rem !important;
}

.request-table tbody tr.has-badges > td {
    border-bottom-color: transparent !important;
    border-bottom-width: 0 !important;
    padding-bottom: 0.25rem;
}

.request-table tbody tr:not(.request-badges-row) td {
    border-bottom-color: rgba(217, 225, 238, 0.55);
}

.request-table.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: transparent;
    background-color: transparent;
}

.request-badges-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    line-height: 1;
    min-height: 0;
    padding-bottom: 0;
}

.status-select {
    appearance: none;
    background-image: none !important;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    min-width: 0;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    text-align: center;
    text-align-last: center;
    width: 132px;
}

.status-badge-checking,
.status-badge-verified,
.status-badge-accepted,
.status-badge-rejected {
    background-color: #fff !important;
    border: 1px solid #adb5bd;
    color: #6c757d !important;
}

.status-heading {
    color: transparent;
}

.request-badges-row .badge-chip-text {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-cell {
    width: 150px;
    white-space: nowrap;
}

.compact-meta {
    color: var(--app-muted);
    font-size: 0.875rem;
}

.color-dot {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.color-dot-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.color-dot-button:hover,
.color-dot-button:focus-visible {
    border-color: #0d6efd;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.color-swatch {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    height: 1.35rem;
    padding: 0;
    width: 1.35rem;
}

.color-swatch:hover,
.color-swatch:focus-visible {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.modal-photo-preview {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    object-fit: cover;
    width: 92px;
}

.document-list {
    display: grid;
    gap: 0.5rem;
}

.document-item {
    align-items: center;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
    padding: 0.55rem 0.75rem;
}

.document-link {
    align-items: center;
    display: inline-flex;
    flex: 1 1 auto;
    gap: 0.4rem;
    min-width: 0;
    text-decoration: none;
}

.document-link span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-item > .compact-meta {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .status-select {
        min-width: 100%;
    }

    .nav-list-tabs {
        padding-top: 0.75rem;
    }
}
