/* Pagination */
.tc-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    flex-wrap: wrap;
}

.tc-page-prev-btn,
.tc-page-next-btn {
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    min-width: 40px;
}

.tc-page-prev-btn:disabled,
.tc-page-next-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tc-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.tc-page-num-btn {
    padding: 7px 11px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    min-width: 34px;
    line-height: 1;
}

.tc-page-num-btn.active {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.tc-page-ellipsis {
    padding: 7px 4px;
    font-size: 14px;
    opacity: 0.6;
}

.tc-page-info-text {
    font-size: 14px;
    padding: 0 8px;
}

/* Ensure list menu is never visually disabled */
.tc-sidebar ul li.tc-disabled {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Scan result messages */
.tc-scan-message {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.tc-scan-message strong {
    font-size: 18px;
}

.tc-scan-message small {
    font-size: 13px;
    opacity: 0.85;
}

/* Camera scanner overlay */
#tc-camera-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
}

#tc-camera-overlay.tc-camera-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

#tc-camera-overlay-inner {
    position: relative;
    width: 90%;
    max-width: 380px;
    background: #1a1a2e;
    border-radius: 14px;
    overflow: hidden;
    padding: 16px;
}

#tc-camera-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s;
}

#tc-camera-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#tc-qr-reader {
    width: 100%;
    margin-top: 10px;
}

#tc-qr-reader video {
    width: 100% !important;
    border-radius: 8px;
}

#tc-qr-reader img[alt="Info icon"],
#tc-qr-reader img[alt="Camera based scan"] {
    display: none;
}

.tc-camera-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px 20px;
    text-align: center;
    color: #fff;
}

.tc-camera-error-icon {
    font-size: 36px;
    line-height: 1;
    opacity: 0.6;
}

.tc-camera-error-text {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 260px;
}

/* Camera unavailable notice */
#tc-camera-unavailable {
    margin: 8px auto 0;
    padding: 8px 14px;
    max-width: 280px;
    font-size: 13px;
    text-align: center;
    opacity: 0.65;
    border-radius: 6px;
}

/* Make scan notification area taller to fit messages */
.tc-scan .tc-notification {
    min-height: 60px;
    padding: 15px;
}

.tc-scan .tc-notification.error-message,
.tc-scan .tc-notification.success-message {
    text-align: center;
}
