/**
 * [INSTALL] com_docvmr/site/media/css/doclist.css
 * [JOOMLA]  media/com_docvmr/css/doclist.css
 */

.docvmr-doclist .docvmr-search {
    width: 260px;
}

.docvmr-doclist .docvmr-table {
    table-layout: fixed;
    width: auto;
    min-width: 0;
}

.docvmr-doclist .docvmr-table-wrap {
    position: relative;
    overflow: auto;

    resize: vertical;
    min-height: 260px;
    max-height: calc(100vh - 220px);
}

.docvmr-doclist .docvmr-table thead th {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #33404c;
}

.docvmr-doclist .docvmr-table thead th::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    background: #33404c;
}

.docvmr-doclist .docvmr-table th {
    overflow: visible;
    text-overflow: ellipsis;
}

.docvmr-doclist .docvmr-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.docvmr-doclist .docvmr-col-num {
    white-space: nowrap;
}

.docvmr-doclist .docvmr-col-star {
    text-align: center;
}

.docvmr-doclist .docvmr-col-fav1,
.docvmr-doclist .docvmr-col-fav2 {
    text-align: center;
    white-space: nowrap;
}

.docvmr-fav-filter-1 {
    border-color: rgba(255, 212, 59, .75);
}

.docvmr-fav-filter-2 {
    border-color: rgba(255, 107, 107, .75);
}

.docvmr-fav-operator {
    width: 76px;
}

.docvmr-category-filter {
    width: 190px;
}

.docvmr-fav-filter {
    width: 120px;
}

.docvmr-fav-filter option,
.docvmr-category-filter option {
    min-width: 420px;
}

.docvmr-date-filter {
    width: 117px;
}

.docvmr-icon-btn {
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 16px;
}

.docvmr-doclist .docvmr-col-date {
    white-space: nowrap;
}

.docvmr-doclist .docvmr-col-actions {
    white-space: nowrap;
}

.docvmr-doclist .docvmr-table th[data-col] {
    position: sticky;
    top: 0;
    z-index: 6;
    padding-right: 12px;
    user-select: none;
    white-space: nowrap;
    background: #33404c;
}

.docvmr-doclist .docvmr-table th[data-col] .docvmr-column-resizer {
    position: absolute;
    top: 0;
    right: -2px;
    z-index: 30;

    width: 5px;
    height: 100%;

    cursor: col-resize;
    user-select: none;
    touch-action: none;

    background: rgba(88, 166, 255, .28);

    border: 0;
    border-radius: 0;
    transform: none;
    opacity: 1;
    box-shadow: none;
}

body.docvmr-column-resize-active {
    cursor: col-resize !important;
    user-select: none;
}

body.docvmr-column-resize-active * {
    cursor: col-resize !important;
}

.docvmr-doclist .docvmr-table th[draggable="true"] {
    cursor: grab;
}

.docvmr-doclist .docvmr-table th[data-col] .docvmr-column-resizer:hover,
.docvmr-doclist .docvmr-table.docvmr-column-resizing th[data-col] .docvmr-column-resizer {
    cursor: col-resize;
    background: #58a6ff;
}

.docvmr-doclist .docvmr-table th.docvmr-column-dragging {
    opacity: .45;
    cursor: grabbing;
}

.docvmr-doclist .docvmr-table th.docvmr-column-drop-left {
    box-shadow: inset 3px 0 0 #58a6ff;
}

.docvmr-doclist .docvmr-table th.docvmr-column-drop-right {
    box-shadow: inset -3px 0 0 #58a6ff;
}

.docvmr-doc-title {
    color: var(--docvmr-link);
    text-decoration: none;
    font-weight: 500;
}

.docvmr-doc-title:hover {
    color: var(--docvmr-link-hover);
    text-decoration: underline;
}

.docvmr-doc-title-no-link,
.docvmr-doc-title-no-link:hover {
    cursor: default;
}

.docvmr-doc-title-no-link:hover {
    color: inherit;
    text-decoration: none;
}

.docvmr-star-muted {
    opacity: .55;
}

.docvmr-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.docvmr-search-help-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #555;
    border-radius: 50%;
    background: #2b2b2b;
    color: #ddd;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
}

.docvmr-search-help-btn:hover {
    background: #3a3a3a;
}

.docvmr-search-help {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    width: 420px;
    max-width: 90vw;

    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 10px;

    padding: 14px;

    z-index: 1000;

    display: none;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.docvmr-search-help.is-open {
    display: block;
}

.docvmr-search-help-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.docvmr-search-help-row {
    margin-bottom: 8px;
    color: #d5d5d5;
    line-height: 1.45;
}

.docvmr-search-help code {
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1px 5px;
    color: #7fd1ff;
}

.docvmr-sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.docvmr-sort-link:hover {
    color: #7fd1ff;
}

.docvmr-doc-title-no-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

.docvmr-total-count {
    margin-top: 10px;
    text-align: center;
    color: #c9d1d9;
    font-size: 13px;
    font-weight: 600;
}

.docvmr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0,0,0,.72);

    backdrop-filter: blur(4px);
}

.docvmr-modal {
    width: min(1100px, 100%);
    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    background: #222831;

    overflow: hidden;

    box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.docvmr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 20px;

    border-bottom: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.03);
}

.docvmr-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.docvmr-modal-subtitle {
    margin-top: 4px;
    color: #b7c1cf;
    font-size: 13px;
}

.docvmr-modal-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 8px;

    background: rgba(255,255,255,.08);

    color: #fff;

    cursor: pointer;
}

.docvmr-modal-close:hover {
    background: rgba(255,255,255,.14);
}

.docvmr-modal-body {
    overflow: auto;
    padding: 20px;
}

.docvmr-modal-loading,
.docvmr-modal-error {
    padding: 60px 20px;
    text-align: center;
    color: #d7dce3;
}

.docvmr-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.docvmr-document-field {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}

.docvmr-document-label {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #98a6b8;
    text-transform: uppercase;
}

.docvmr-document-value {
    color: #fff;
    word-break: break-word;
}

.docvmr-document-section {
    margin-top: 24px;
}

.docvmr-document-section-title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.docvmr-document-content {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
}

body.docvmr-modal-open {
    overflow: hidden;
}

.docvmr-table tr.docvmr-row-active > td {
    background: rgba(56, 139, 253, 0.18) !important;
}

.docvmr-table tr.docvmr-row-active > td:first-child {
    box-shadow: inset 4px 0 0 #58a6ff !important;
}

.docvmr-col-actions {
    text-align: center;
}

.docvmr-flag {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.docvmr-flag-confidential {
    color: #79c0ff;
}

.docvmr-flag-invalid {
    color: #ff7b72;
}


/* Обрані №1 */
.docvmr-fav-hit-1 {
    color: #ffd43b;
}

/* Обрані №2 */
.docvmr-fav-hit-2 {
    color: #ff3b3b;
}

.docvmr-fav-filter-1 {
    color: #ffd43b;
}

.docvmr-fav-filter-2 {
    color: #ff3b3b;
}

.docvmr-col-fav1,
.docvmr-col-fav2 {
    width: 21px;
    min-width: 21px;
    max-width: 21px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.docvmr-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 2px;
}

.docvmr-header-left {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
}

.docvmr-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


.docvmr-pagination-inline .pagination {
    margin: 0;
}

.docvmr-total-count {
    margin: 0;
    white-space: nowrap;

    font-size: 18px;
    font-weight: 700;
    line-height: 34px;

    color: #c9d1d9;
}

.docvmr-pagination-inline .pagination {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;

    border: 1px solid rgba(139, 148, 158, .35);
    border-radius: 8px;
    overflow: hidden;

    background: #21262d;
}

.docvmr-pagination-inline .page-item {
    margin: 0;
}

.docvmr-pagination-inline .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-right: 1px solid rgba(139, 148, 158, .28);
    border-radius: 0;

    background: #21262d;
    color: #c9d1d9;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.docvmr-pagination-inline .page-item:last-child .page-link {
    border-right: 0;
}

.docvmr-pagination-inline .page-link:hover {
    background: #21262d;
    color: #58a6ff;
    text-decoration: none;
}

.docvmr-pagination-inline .page-item.active .page-link {
    background: #0969da;
    color: #fff;
}

.docvmr-pagination-inline .page-item.disabled .page-link {
    background: #161b22;
    color: #6e7681;
    cursor: not-allowed;
    opacity: .75;
}

.docvmr-pagination-inline {
    display: flex;
    align-items: center;
    height: 14px;
}
