﻿/* ===== Layout ===== */
main.container {
    max-width: 1360px;
}
/* Page background */
body {
    background: #efefef;
}

.kref-doc-shell {
    max-width: 1360px;
}

    .kref-doc-shell h3 {
        margin-bottom: 18px;
    }

/* ===== Search ===== */
.cf-search-panel {
    margin-bottom: 14px;
}

.cf-search-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cf-search-actions {
    margin-top: 6px;
    margin-bottom: 14px;
}

    .cf-search-actions .btn {
        margin-right: 8px;
    }

    
/* ===== Results meta ===== */
.kref-results-meta {
    margin-top: 10px;
    margin-bottom: 16px;
}

    .kref-results-meta > * {
        display: block;
        margin-bottom: 8px;
    }
.kref-doc-note {
    margin-top: 8px;
    margin-bottom: 12px;
    color: #444;
    line-height: 1.4;
}

/* ===== Pager ===== */
.kref-pager {
    margin: 10px 0 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kref-pager-link {
    font-weight: 600;
}

.kref-pager a[disabled],
.kref-pager .aspNetDisabled {
    color: #777;
    text-decoration: none;
    pointer-events: none;
}

/* ===== Table ===== */
#MainContent_litResultCount,
.kref-results-shell {
    margin-top: 12px;
}

.kref-results-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
}
.kref-col-select {
    text-align: center;
    white-space: nowrap;
    width: 70px;
    padding-left: 10px !important;
}
.kref-select-checkbox {
    transform: scale(1.1);
    cursor: pointer;
}
.kref-doc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 980px;
}

    .kref-doc-table th,
    .kref-doc-table td {
        padding: 6px 12px 6px 0;
        vertical-align: top;
    }

.kref-doc-table th.kref-col-select {
    padding-left: 10px;
}

.kref-doc-row-even {
    background-color: #ffffff;
}

.kref-doc-row-odd {
    background-color: #f7f9fc;
}
    .kref-doc-row-odd:hover,
    .kref-doc-row-even:hover {
        background-color: #eef3f8;
    }

.kref-doc-links a {
    margin-right: 8px;
}
.kref-date-cell,
.kref-col-datefiled,
.kref-col-scandate {
    white-space: nowrap;
    font-size: 0.88em;
    color: #66707c;
}
.kref-actions {
    margin-top: 14px;
    margin-bottom: 18px;
}

    .kref-actions .btn {
        margin-right: 8px;
    }

/* ===== Overlay ===== */
.kref-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.65);
    z-index: 9999;
}

.kref-overlay-box {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #173f6d;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ===== Status text ===== */
.kref-no-pdf {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

.kref-missing-doc {
    color: #777;
    font-size: 0.92em;
}

/* ===== Mobile / narrow-screen adjustments ===== */
/* Keep KREF results tabular. On small screens, allow horizontal scrolling
   and tighten spacing rather than converting to cards. */
@media (max-width: 768px) {
    main.container,
    .kref-doc-shell {
        max-width: 100%;
    }

    .cf-search-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cf-search-row {
        gap: 10px;
    }

    .cf-search-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }

        .cf-search-actions .btn {
            margin-right: 0;
            margin-bottom: 0;
        }

    .kref-results-meta {
        padding-left: 12px;
        padding-right: 12px;
    }

    .kref-pager {
        flex-wrap: wrap;
        gap: 8px;
    }

    .kref-doc-table th,
    .kref-doc-table td {
        padding: 5px 8px 5px 0;
        font-size: 0.95em;
    }

    .kref-col-select {
        width: 56px;
        padding-left: 6px !important;
    }

    .kref-col-datefiled,
    .kref-col-scandate {
        font-size: 0.84em;
    }
}
@media (max-width: 480px) {
    .kref-doc-shell h3 {
        font-size: 1.8rem;
        margin-bottom: 14px;
    }

    .kref-overlay-box {
        width: auto;
        max-width: 85%;
        padding: 12px 16px;
        font-size: 0.95em;
    }

    .kref-doc-note {
        font-size: 0.95em;
    }
}