/* Sertifika Doğrulama — sample UI (TÜRKAK-style) */

.cv-page {
    background: #f0f0f0;
    padding: 40px 0 60px;
    min-height: 60vh;
}

.cv-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.cv-card__header {
    background: #e73636;
    color: #fff;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 16px;
    margin: 0;
}

.cv-form {
    padding: 28px 32px 20px;
}

.cv-form .form-group {
    margin-bottom: 18px;
}

.cv-form label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.cv-form .form-control {
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    height: 40px;
    font-size: 0.9rem;
    color: #444;
    background: #fff;
}

.cv-form .form-control:focus {
    border-color: #e73636;
    box-shadow: none;
}

.cv-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Multi-standard field (select + add) — kept for admin chips if needed */
.cv-standards {
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    background: #fff;
    min-height: 40px;
    padding: 6px 8px;
}

.cv-standards__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 0;
}

.cv-standards__chips:empty {
    display: none;
    margin: 0;
}

.cv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    border: 1px solid #d5d5d5;
    border-radius: 14px;
    padding: 3px 8px 3px 10px;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.3;
}

.cv-chip button {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
}

.cv-chip button:hover {
    color: #e73636;
}

.cv-standards__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

/* Admin panel */
.cv-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cv-link {
    color: #e73636;
    font-weight: 600;
    text-decoration: none;
}

.cv-link:hover {
    text-decoration: underline;
}

.cv-btn-outline {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
}

.cv-btn-outline:hover {
    border-color: #e73636;
    color: #e73636;
}

.cv-admin-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.cv-admin-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cv-admin-add-row .form-control {
    flex: 1;
}

.cv-admin-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    border: 1px solid #ddd;
}

.cv-admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.92rem;
}

.cv-admin-list li:last-child {
    border-bottom: none;
}

.cv-admin-list li:nth-child(even) {
    background: #fafafa;
}

.cv-btn-danger {
    background: #e73636;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.cv-btn-danger:hover {
    background: #c92c2c;
}

.cv-admin-empty {
    color: #888;
    justify-content: center !important;
}

.cv-admin-hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 28px 0 20px;
}

.cv-admin-upload {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cv-admin-error {
    color: #e73636;
    font-weight: 600;
    margin: 0 0 12px;
}

.cv-admin-flash {
    background: #e8f6ec;
    border: 1px solid #b7e0c2;
    color: #1f7a36;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.cv-ftp-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 767px) {
    .cv-ftp-box {
        grid-template-columns: 1fr;
    }
}

.cv-ftp-path {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 12px;
    border-radius: 2px;
}

.cv-ftp-path strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.cv-ftp-path code {
    display: block;
    font-size: 0.72rem;
    word-break: break-all;
    color: #444;
    background: #eee;
    padding: 6px 8px;
    margin-bottom: 8px;
}

.cv-ftp-files {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.cv-ftp-files li {
    padding: 3px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.cv-ftp-files li:last-child {
    border-bottom: none;
}

.cv-admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.cv-admin-form-full {
    grid-column: 1 / -1;
}

.cv-admin-pin-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    max-width: 900px;
}

.cv-admin-pin-form .form-group {
    margin-bottom: 0;
}

.cv-admin-pin-form .cv-form__actions {
    grid-column: 1 / -1;
}

.cv-file-input {
    height: auto;
    padding: 8px;
}

.cv-admin-pdf-note {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: #777;
}

.cv-sub-section {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.cv-sub-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cv-sub-section__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.cv-sub-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cv-sub-item {
    padding: 14px 16px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.cv-sub-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.cv-sub-item__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.cv-sub-item .form-group {
    margin-bottom: 10px;
}

.cv-sub-item .form-group:last-child {
    margin-bottom: 0;
}

.cv-pdf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e8f6ec;
    color: #1f7a36;
}

.cv-pdf-badge--none {
    background: #f3f3f3;
    color: #888;
}

@media (max-width: 767px) {
    .cv-admin-pin-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .cv-admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Info section below query */
.cv-info-section {
    background: #fff;
    padding: 50px 0 70px;
    border-top: 1px solid #eee;
}

.cv-info-row {
    align-items: flex-end;
}

.cv-info-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 28px;
}

.cv-info-text {
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 22px;
    max-width: 720px;
}

.cv-info-contact {
    padding: 22px 26px;
    border-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    background: #fff;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
}

.cv-info-contact h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.cv-info-contact-sub {
    color: #222;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 18px;
}

.cv-info-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 14px;
}

.cv-info-contact-label {
    color: #777;
    font-weight: 500;
    min-width: 72px;
    margin-right: 6px;
}

.cv-info-contact-row a {
    color: #777;
    text-decoration: underline;
}

.cv-info-contact-row a:hover {
    color: #e73636;
}

@media (max-width: 991px) {
    .cv-info-row {
        align-items: flex-start;
    }

    .cv-info-contact {
        max-width: none;
        margin-left: 0;
        margin-top: 30px;
    }
}

.cv-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.cv-btn-search {
    background: #2e9e4b;
    color: #fff !important;
    border: none;
    border-radius: 2px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cv-btn-search:hover {
    background: #268a40;
    color: #fff !important;
}

/* Results table */
.cv-results {
    overflow: hidden;
}

.cv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cv-table thead th {
    background: #e73636;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border: none;
    vertical-align: middle;
}

.cv-table tbody tr.cv-row {
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    background: #fff;
    transition: background 0.12s;
}

.cv-table tbody tr.cv-row:nth-child(4n+3) {
    background: #eef6fb;
}

.cv-table tbody tr.cv-row:hover,
.cv-table tbody tr.cv-row.is-open {
    background: #e4f0f8;
}

.cv-table tbody td {
    padding: 14px;
    font-size: 0.88rem;
    color: #222;
    vertical-align: middle;
    border: none;
}

.cv-table .cv-col-num {
    width: 48px;
    text-align: center;
    font-weight: 600;
}

.cv-table .cv-col-file {
    width: 130px;
    white-space: nowrap;
}

.cv-table .cv-col-date {
    width: 130px;
    white-space: nowrap;
}

.cv-table .cv-col-address {
    max-width: 220px;
    font-size: 0.82rem;
    color: #444;
    line-height: 1.35;
}

.cv-table .cv-col-pdf {
    width: 64px;
    text-align: center;
    white-space: nowrap;
}

.cv-pdf-icon-btn--sm {
    width: 34px;
    height: 34px;
}

.cv-pdf-icon-btn--sm svg {
    width: 18px;
    height: 18px;
}

.cv-pdf-none {
    color: #aaa;
    font-size: 0.9rem;
}

.cv-table .cv-col-status {
    width: 120px;
    text-align: center;
}

.cv-badge {
    display: inline-block;
    min-width: 72px;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.cv-badge--valid {
    background: #2e9e4b;
}

.cv-badge--suspended {
    background: #888888;
}

.cv-badge--cancelled {
    background: #e73636;
}

/* Expandable detail */
.cv-detail-row td {
    padding: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd;
}

.cv-detail {
    display: none;
    padding: 18px 24px 22px 48px;
    font-size: 0.9rem;
    color: #222;
    line-height: 1.7;
}

.cv-detail.is-visible {
    display: block;
}

.cv-detail dt {
    float: left;
    clear: left;
    width: 180px;
    font-weight: 700;
    margin: 0;
}

.cv-detail dd {
    margin: 0 0 6px 180px;
}

.cv-detail-scope {
    white-space: pre-wrap;
    word-break: break-word;
}

.cv-subsidiaries {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
}

.cv-subsidiaries__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.cv-subsidiary {
    margin-bottom: 14px;
    padding: 10px 0 4px;
    border-bottom: 1px dashed #ddd;
}

.cv-subsidiary:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cv-subsidiary dl {
    margin: 0;
}

.cv-detail dt::after {
    content: ":";
}

.cv-detail dd .cv-pdf-icon-btn {
    vertical-align: middle;
}

.cv-pdf-doc-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    border: 2px solid #222 !important;
    border-radius: 4px !important;
    background: #2b7bb9 !important;
    color: #fff !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.cv-pdf-doc-btn svg,
.cv-detail .cv-pdf-doc-btn svg,
.cv-detail dd svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block !important;
    fill: #fff !important;
}

.cv-pdf-doc-btn:hover {
    background: #23689d !important;
    color: #fff !important;
}

.cv-pdf-doc-btn:focus {
    outline: 2px solid #e73636;
    outline-offset: 2px;
}

.cv-pdf-logo-btn {
    display: none;
}

.cv-pdf-actions > span {
    font-weight: 700;
    margin-right: 6px;
}

.cv-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2b7bb9;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}

.cv-btn-pdf:hover {
    background: #23689d;
    color: #fff !important;
}

.cv-btn-pdf.is-disabled {
    background: #aaa;
    pointer-events: none;
    cursor: default;
}

.cv-btn-pdf svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.cv-pdf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 6px;
    background: #2b7bb9;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.cv-pdf-icon-btn:hover {
    background: #23689d;
}

.cv-pdf-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cv-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cv-pdf-modal[hidden] {
    display: none !important;
}

.cv-pdf-modal.is-open {
    display: flex !important;
}

.cv-pdf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cv-pdf-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.cv-pdf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #e73636;
    color: #fff;
}

.cv-pdf-modal__header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.cv-pdf-modal__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cv-pdf-modal__link {
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline !important;
    white-space: nowrap;
}

.cv-pdf-modal__close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.cv-pdf-modal__body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #f5f5f5;
    height: min(75vh, 720px);
}

.cv-pdf-modal__body embed,
.cv-pdf-modal__body iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.cv-pdf-modal__body iframe {
    z-index: 0;
}

.cv-pdf-modal__body embed {
    z-index: 1;
}

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

/* Footer / pagination */
.cv-results-footer {
    padding: 18px 16px 22px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.cv-pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cv-pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1rem;
    color: #444;
}

.cv-pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}

.cv-pagination .cv-page-info {
    font-size: 0.9rem;
    color: #333;
}

.cv-pagination .cv-page-info input {
    width: 42px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 2px;
    height: 32px;
    margin: 0 4px;
}

.cv-results-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.cv-sample-note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .cv-form {
        padding: 20px 16px 12px;
    }

    .cv-detail {
        padding: 14px 16px 18px;
    }

    .cv-detail dt {
        float: none;
        width: auto;
    }

    .cv-detail dd {
        margin: 0 0 12px 0;
    }

    .cv-table thead th.cv-hide-sm,
    .cv-table tbody td.cv-hide-sm {
        display: none;
    }
}
