/* ═══════════════════════════════════════════════════════════════════════════
   RTA Document Validation — Styles matching design_css.css
   Pure CSS recreation (no background-image GIF dependencies)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Base for body content area ──────────────────────────────────────── */
#body-placeholder {
    font: normal 11px Verdana, Arial, Helvetica, sans-serif;
    color: #2c2c2c;
    line-height: 16px;
}

#body-placeholder a,
#body-placeholder a:link,
#body-placeholder a:visited,
#body-placeholder a:active {
    color: #528fba;
    text-decoration: none;
}

#body-placeholder a:hover {
    text-decoration: underline;
}

/* ─── Reset & Common ──────────────────────────────────────────────────── */
.container .fines { margin: 0 0 15px 30px; }

.cleaner { zoom: 1; }
.cleaner:after { clear: both; content: '.'; display: block; height: 0; visibility: hidden; }

.clrboth { clear: both; padding: 5px 0 0; margin: 0 0 15px; border-top: 1px solid #c7c8c8; }

.red { color: #d33127; }
.gray { color: #858585; }

strong { font: bold 12px Helvetica, Arial, sans-serif; }

.margb4 { margin-bottom: 4px; }

/* ─── Form Inputs Row ─────────────────────────────────────────────────── */
.frminpts { list-style: none; margin: 0; padding: 0; }
.frminpts li { float: left; margin: 0 20px 0 0; }
.frminpts li.last { margin: 0; }

.tips { color: #b7b9ba; margin: 0 0 0 6px; font-size: 11px; }

/* ─── Select ──────────────────────────────────────────────────────────── */
.inptslct {
    padding: 0 0 0 2px;
    color: #676767;
    height: 24px;
    margin-bottom: 2px;
    font-size: 11px;
    font-family: Verdana, Arial, sans-serif;
    border: 1px solid #bbb;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
}

.wdth140 { width: 155px; }

.wdth240 { width: 255px; }

/* ─── Input Fields ────────────────────────────────────────────────────── */
span.inptcorns {
    display: inline-block;
    height: 22px;
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    background: #f9f9f9;
    padding: 0;
    position: relative;
}

span.inptcorns em {
    display: inline-block;
    padding: 2px 4px 0 4px;
    height: 20px;
    font-style: normal;
}

input.inpttxt {
    border: none;
    height: 17px;
    color: #676767;
    font-size: 11px;
    font-family: Verdana, Arial, sans-serif;
    background: transparent;
    outline: none;
}

input.inpttxt:focus {
    color: #333;
}

input.inpttxt::placeholder {
    color: #b7b9ba;
}

.refbg {
    background: transparent;
    padding-right: 20px;
}

span.inptcorns:after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ─── Go Button ───────────────────────────────────────────────────────── */
.inptbtn {
    border: none;
    background: none;
    display: inline-block;
    margin: -3px -8px 0 0;
    cursor: pointer;
    padding: 0;
}

.inptbtn span {
    display: inline-block;
    height: 23px;
    padding: 0 0 0 15px;
    background: linear-gradient(to bottom, #fafafa 0%, #e8e8e8 100%);
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 12px;
    overflow: hidden;
}

.inptbtn em {
    display: inline-block;
    height: 22px;
    line-height: 22px;
    padding: 0 15px 0 0;
    font-style: normal;
    font-weight: bold;
    font-size: 12px;
    font-family: Helvetica, Arial, sans-serif;
    color: #d33127;
    white-space: nowrap;
    background: linear-gradient(to bottom, #fafafa 0%, #e8e8e8 100%);
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.inptbtn:hover span,
.inptbtn:hover em {
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%);
    border-color: #bbb;
}

.inptbtn:active span,
.inptbtn:active em {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 100%);
}

/* ─── Captcha Area ────────────────────────────────────────────────────── */
.captchaDiv {
    margin: 10px 0 5px;
    clear: both;
}

/* ─── Warning / Error Message ─────────────────────────────────────────── */
.warning {
    background: #f3f4f4;
    padding: 8px 12px 8px 12px;
    color: #d33127;
    margin: 8px 0 15px;
    display: inline-block;
    font-weight: bold;
    font-size: 12px;
    border-left: 3px solid #d33127;
}

/* ─── Results Table Box ───────────────────────────────────────────────── */
.movbox {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    border: 1px solid #d5d5d5;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.boxcornrs,
.boxcornrs span {
    display: block;
    height: 6px;
    font-size: 0;
    line-height: 0;
}

/* ─── Search Results Table ────────────────────────────────────────────── */
.srchrsult {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #d5d5d5;
    border-top: none;
}

.srchrsult th {
    background: linear-gradient(to bottom, #f7f7f7 0%, #e5e5e5 100%);
    font-weight: bold;
    font-size: 11px;
    font-family: Verdana, Arial, sans-serif;
    color: #777;
    padding: 0;
    border-right: 1px solid #dbdbdb;
    text-align: center;
}

.srchrsult th:last-child {
    border-right: none;
}

.digbg {
    padding: 12px 12px 8px 12px;
    margin: 0;
    position: relative;
    height: auto;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,0.04);
}

.digbg span {
    font-size: 11px;
    font-weight: bold;
    color: #777;
}

.srchrsult td {
    border-right: 1px solid #dbdbdb;
    background: #eceff1 linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,0.02) 100%);
    padding: 4px 18px 4px 12px;
    font-size: 11px;
    font-family: Verdana, Arial, sans-serif;
    color: #2c2c2c;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

.srchrsult td:last-child {
    border-right: none;
    text-align: left;
}

.srchrsult tr:last-child td {
    border-bottom: none;
}

/* ─── Action Buttons (reg-btn-gray) ───────────────────────────────────── */
.container a.reg-btn-gray {
    display: inline-block;
    cursor: pointer;
    margin: 0 0 0 5px;
    padding: 0 0 0 14px;
    color: #777;
    text-decoration: none;
    background: linear-gradient(to bottom, #fafafa 0%, #e8e8e8 100%);
    border: 1px solid #ccc;
    border-radius: 12px;
    line-height: 1;
}

.reg-btn-gray em,
.container a.reg-btn-gray em {
    font-style: normal;
    font-size: 12px;
    font-family: Helvetica, Arial, sans-serif;
    height: 22px;
    line-height: 22px;
    padding: 0 14px 0 0;
    display: inline-block;
    text-align: center;
    border-radius: 12px;
    color: #777;
}

.container a.reg-btn-gray:hover,
.container a.reg-btn-gray:hover em {
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%);
    border-color: #bbb;
    text-decoration: none;
    color: #555;
}

.fxdwdth {
    width: 111px;
    text-align: center;
}

/* ─── Status Badges ───────────────────────────────────────────────────── */
.v-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
}

.v-badge.valid {
    background: #e8f5e9;
    color: #2e7d32;
}

.v-badge.expired {
    background: #ffebee;
    color: #c62828;
}

.v-badge.cancelled {
    background: #fff8e1;
    color: #f57f17;
}

/* ─── PDF Popup Viewer ────────────────────────────────────────────────── */
.pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-popup {
    background: #fff;
    border-radius: 8px;
    width: 90vw;
    max-width: 960px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.pdf-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(to bottom, #f7f7f7, #eaeaea);
    border-bottom: 1px solid #d5d5d5;
    flex-shrink: 0;
}

.pdf-popup-title {
    font: bold 13px Helvetica, Arial, sans-serif;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

.pdf-popup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-popup-btn {
    display: inline-block;
    padding: 4px 14px;
    font: bold 12px Helvetica, Arial, sans-serif;
    color: #555;
    background: linear-gradient(to bottom, #fafafa, #e8e8e8);
    border: 1px solid #ccc;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    line-height: 20px;
    text-align: center;
}

.pdf-popup-btn:hover {
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    border-color: #bbb;
    color: #333;
    text-decoration: none;
}

.pdf-close-btn {
    font-size: 20px;
    line-height: 18px;
    padding: 2px 10px 4px;
    color: #d33127;
    font-weight: bold;
}

.pdf-close-btn:hover {
    color: #a01a12;
}

.pdf-popup-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #525659;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font: bold 14px Helvetica, Arial, sans-serif;
    letter-spacing: 0.5px;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .frminpts li {
        float: none;
        margin: 0 0 10px 0;
    }

    .srchrsult {
        display: block;
        overflow-x: auto;
    }

    .inptslct,
    input.inpttxt {
        width: 100% !important;
    }

    span.inptcorns {
        width: 100%;
    }

    .fxdwdth {
        width: 90px;
    }

    .pdf-overlay { padding: 8px; }
    .pdf-popup { width: 100%; height: 94vh; border-radius: 4px; }
    .pdf-popup-title { max-width: 40%; font-size: 12px; }
}
