/* ==========================================================
   IPTT - Patent Common Theme
   ========================================================== */

.patent-page {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 42px 0 55px;
}


/* ==========================================================
   Page Heading
   ========================================================== */

.patent-page-heading {
    color: #172033;
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 22px;
}


/* ==========================================================
   Search Card
   ========================================================== */

.patent-search-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.055);
}


.patent-search-card .form-control {
    height: 42px;

    border: 1px solid #dbe3ee;
    border-radius: 8px;

    color: #172033;
    font-size: 13px;

    background: #ffffff;

    box-shadow: none;

    transition: all 0.2s ease;
}


.patent-search-card .form-control:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


.patent-search-card .form-control::placeholder {
    color: #94a3b8;
}


/* ==========================================================
   Search Buttons
   ========================================================== */

.patent-search-btn,
.patent-reset-btn {
    height: 42px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    transition: all 0.2s ease;
}


.patent-search-btn {
    background: #2563eb;

    border: 1px solid #2563eb;

    color: #ffffff;
}


.patent-search-btn:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;

    color: #ffffff;

    transform: translateY(-1px);
}


.patent-reset-btn {
    background: #f8fafc;

    border: 1px solid #cbd5e1;

    color: #475569;
}


.patent-reset-btn:hover {
    background: #ffffff;

    border-color: #94a3b8;

    color: #1d4ed8;
}


/* ==========================================================
   Patent Table Card
   ========================================================== */

.patent-table-card {
    background: #ffffff;

    border-radius: 14px;

    padding: 6px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.055);
}


/* ==========================================================
   Patent Table
   ========================================================== */

.patents-table {
    margin-bottom: 0;

    border-color: #e2e8f0;

    font-size: 13px;
}


.patents-table thead th {
    background: #172554;

    color: #ffffff;

    border-color: #263b73;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.2px;

    padding: 11px 10px;

    vertical-align: middle;

    white-space: nowrap;
}


.patents-table tbody td {
    color: #334155;

    padding: 11px 10px;

    vertical-align: middle;

    border-color: #e2e8f0;

    line-height: 1.5;
}


.patents-table tbody tr {
    transition: background-color 0.2s ease;
}


.patents-table tbody tr:hover {
    background: #f8fbff;
}


/* ==========================================================
   Application Number Link
   ========================================================== */

.patent-application-link {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.patent-application-link:hover {
    color: #1d4ed8;

    text-decoration: underline;
}


/* ==========================================================
   Sr. No.
   ========================================================== */

.patent-sr-no {
    color: #64748b;

    font-weight: 600;

    white-space: nowrap;
}


/* ==========================================================
   Patent Number
   ========================================================== */

.patent-number {
    color: #172033;

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================================
   Inventors
   ========================================================== */
.patent-inventors {
    color: #334155;
    font-weight: 400;
    min-width: 170px;
}


.patents-table tbody td.patent-title-cell {
    color: #172033;
    font-weight: 700;
}

/* ==========================================================
   Dates
   ========================================================== */

.patent-date {
    color: #475569;

    white-space: nowrap;

    font-size: 12px;
}


/* ==========================================================
   Abstract / Application Areas
   ========================================================== */

.patent-abstract {
    color: #475569;

    min-width: 230px;

    line-height: 1.55;
}


/* ==========================================================
   Pagination
   ========================================================== */

.patent-pagination {
    display: flex;

    justify-content: center;

    margin-top: 20px;
}


.patent-pagination .pagination {
    margin-bottom: 0;
}


.patent-pagination .page-link {
    color: #2563eb;

    border-color: #dbe3ee;

    font-size: 12px;

    font-weight: 600;

    border-radius: 7px !important;

    margin: 0 2px;

    min-width: 34px;

    text-align: center;

    transition: all 0.2s ease;
}


.patent-pagination .page-link:hover {
    background: #eff6ff;

    border-color: #93c5fd;

    color: #1d4ed8;
}


.patent-pagination .page-item.active .page-link {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;
}


/* ==========================================================
   Patent Details Common Styles
   ========================================================== */

.patent-details-page {
    background: #f5f7fb;

    min-height: 100vh;

    padding: 28px 0 45px;
}


/* ==========================================================
   Patent Hero
   Compact Heading Container
   ========================================================== */

.patent-hero {
    position: relative;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #172554 0%,
        #1d4ed8 55%,
        #2563eb 100%
    );

    color: #ffffff;

    border-radius: 13px;

    padding: 20px 25px;

    margin-bottom: 16px;

    box-shadow:
        0 7px 20px rgba(30, 64, 175, 0.13);
}


.patent-hero::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    top: -105px;
    right: -35px;
}


.patent-hero::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    bottom: -70px;
    left: -30px;
}


.patent-hero-content {
    position: relative;

    z-index: 2;
}


/* ==========================================================
   Patent Label
   ========================================================== */

.patent-label {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.25);

    padding: 3px 10px;

    border-radius: 50px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    margin-bottom: 7px;
}


/* ==========================================================
   Patent Title
   ========================================================== */

.patent-title {
    position: relative;

    z-index: 2;

    font-size: 1.25rem;

    line-height: 1.35;

    font-weight: 750;

    margin: 0;
}


/* ==========================================================
   Details Information
   HORIZONTAL LAYOUT
   ========================================================== */

.patent-details-page .patent-info-wrapper {
    display: flex !important;

    flex-direction: row !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    width: 100% !important;

    gap: 12px !important;

    background: #ffffff;

    border-radius: 12px;

    padding: 5px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.055);

    margin-bottom: 16px;
}


/* ==========================================================
   Details Information Item
   ========================================================== */

.patent-details-page .patent-info-item {
    flex: 1 1 0 !important;

    width: 25% !important;

    min-width: 0 !important;

    padding: 12px 13px;

    border-radius: 9px;

    height: auto;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    gap: 10px;

    transition: all 0.25s ease;
}


.patent-details-page .patent-info-item:hover {
    background: #f8fafc;

    transform: translateY(-2px);
}


/* ==========================================================
   Information Icon
   ========================================================== */

.patent-details-page .patent-info-icon {
    width: 34px;

    height: 34px;

    min-width: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 14px;

    margin-bottom: 0 !important;
}


/* ==========================================================
   Information Text Container
   ========================================================== */

.patent-details-page .patent-info-item > div:last-child {
    min-width: 0;
}


/* ==========================================================
   Information Label
   ========================================================== */

.patent-details-page .patent-info-label {
    color: #64748b;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 2px;

    white-space: nowrap;
}


/* ==========================================================
   Information Value
   ========================================================== */

.patent-details-page .patent-info-value {
    color: #172033;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.3;

    word-break: normal;

    white-space: nowrap;
}


/* ==========================================================
   Details Sections
   ========================================================== */

.patent-section {
    background: #ffffff;

    border-radius: 14px;

    padding: 18px;

    margin-bottom: 16px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.055);
}


/* ==========================================================
   Section Header
   ========================================================== */

.patent-section-header {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 10px;
}


/* ==========================================================
   Section Icon
   ========================================================== */

.patent-section-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 14px;
}


/* ==========================================================
   Section Title
   ========================================================== */

.patent-section-title {
    margin: 0;

    font-size: 16px;

    font-weight: 800;

    color: #172033;
}


/* ==========================================================
   Inventor Details
   ========================================================== */

.inventor-content {
    background: #f8fafc;

    border-left: 3px solid #2563eb;

    border-radius: 7px;

    padding: 10px 13px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.55;
}


/* ==========================================================
   PDF + Drawing Cards
   ========================================================== */

.patent-documents-wrapper {
    margin-bottom: 16px;
}


.patent-document-card {
    height: 100%;

    background: #ffffff;

    border-radius: 14px;

    padding: 18px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.055);

    border-top: 3px solid #2563eb;
}


/* ==========================================================
   Document Header
   ========================================================== */

.document-card-header {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 12px;
}


.document-card-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    font-size: 14px;
}


.pdf-card-icon {
    background: #fee2e2;

    color: #dc2626;
}


.drawing-card-icon {
    background: #eff6ff;

    color: #2563eb;
}


.document-card-title {
    margin: 0;

    font-size: 16px;

    font-weight: 800;

    color: #172033;
}


/* ==========================================================
   PDF Viewer
   ========================================================== */

.pdf-viewer-wrapper {
    overflow: hidden;

    background: #f8fafc;

    border: 1px solid #dbe4f0;

    border-radius: 11px;

    padding: 5px;
}


.pdf-viewer {
    display: block;

    width: 100%;

    height: 600px;

    border: none;

    border-radius: 7px;

    background: #ffffff;
}


/* ==========================================================
   PDF Footer
   ========================================================== */

.pdf-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 10px;

    padding: 8px 10px;

    background: #f8fafc;

    border-radius: 8px;
}


.pdf-file-name {
    color: #64748b;

    font-size: 11px;

    font-weight: 600;

    word-break: break-word;
}


/* ==========================================================
   Open PDF Button
   ========================================================== */

.open-pdf-btn {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: #2563eb;

    color: #ffffff;

    padding: 6px 11px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition: all 0.2s ease;
}


.open-pdf-btn:hover {
    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-1px);
}


/* ==========================================================
   Drawing Viewer
   ========================================================== */

.drawing-viewer-wrapper {
    height: 600px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f8fafc;

    border: 1px solid #dbe4f0;

    border-radius: 11px;

    padding: 15px;

    overflow: hidden;
}


.drawing-viewer-wrapper img {
    display: block;

    max-width: 100%;

    max-height: 565px;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.10);
}


/* ==========================================================
   Back Button
   ========================================================== */

.patent-back-btn {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    background: #ffffff;

    color: #334155;

    border: 1px solid #cbd5e1;

    padding: 9px 16px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.25s ease;
}


.patent-back-btn:hover {
    background: #f8fafc;

    color: #1d4ed8;

    border-color: #93c5fd;

    transform: translateX(-2px);
}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 991px) {

    .patent-details-page .patent-info-wrapper {
        flex-wrap: wrap !important;
    }


    .patent-details-page .patent-info-item {
        flex: 1 1 calc(50% - 6px) !important;

        width: calc(50% - 6px) !important;
    }


    .pdf-viewer,
    .drawing-viewer-wrapper {
        height: 500px;
    }


    .drawing-viewer-wrapper img {
        max-height: 465px;
    }

}


/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .patent-page,
    .patent-details-page {
        padding: 28px 0 42px;
    }


    .patent-page-heading {
        font-size: 1.4rem;
    }


    .patent-hero {
        padding: 20px 18px;

        border-radius: 12px;
    }


    .patent-title {
        font-size: 1.15rem;

        line-height: 1.4;
    }


    .patent-label {
        font-size: 9px;

        padding: 4px 10px;
    }


    .patent-search-card {
        padding: 10px;
    }


    .patent-section,
    .patent-document-card {
        padding: 16px;

        border-radius: 12px;
    }


    .patent-info-item {
        padding: 11px 12px;
    }


    .patent-info-value {
        font-size: 12px;
    }


    .pdf-viewer,
    .drawing-viewer-wrapper {
        height: 450px;
    }


    .drawing-viewer-wrapper img {
        max-height: 415px;
    }


    .pdf-footer {
        flex-direction: column;

        align-items: flex-start;
    }


    .open-pdf-btn {
        width: 100%;

        justify-content: center;
    }

}


/* ==========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================== */

@media (max-width: 575px) {

    .patent-details-page .patent-info-wrapper {
        flex-direction: column !important;

        flex-wrap: nowrap !important;

        gap: 8px !important;
    }


    .patent-details-page .patent-info-item {
        flex: 1 1 100% !important;

        width: 100% !important;
    }


    .patent-title {
        font-size: 1.05rem;
    }


    .patent-info-value {
        font-size: 12px;

        white-space: normal;
    }


    .pdf-viewer,
    .drawing-viewer-wrapper {
        height: 350px;
    }

}





/* ==========================================================
   Approved Design Pagination Fix
   ========================================================== */

.patent-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 20px;
}

.patent-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.patent-pagination .page-item {
    margin: 0 2px;
}

.patent-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 6px 12px;

    font-size: 13px;
    line-height: 1;

    border-radius: 7px !important;
}


/* Fix oversized Bootstrap SVG arrows */

.patent-pagination .page-link svg {
    width: 16px !important;
    height: 16px !important;

    max-width: 16px !important;
    max-height: 16px !important;
}


/* Previous / Next buttons */

.patent-pagination .page-item:first-child .page-link,
.patent-pagination .page-item:last-child .page-link {
    min-width: 90px;
}


/* Disabled Previous / Next */

.patent-pagination .page-item.disabled .page-link {
    opacity: 0.55;
}


/* Active Page */

.patent-pagination .page-item.active .page-link {
    font-weight: 700;
}


/* ==========================================================
   Approved Design Title
   ========================================================== */

.patents-table tbody td.patent-title-cell {
    font-weight: 700;
}


/* Inventors should remain normal weight */

.patents-table tbody td.patent-inventors {
    font-weight: 400;
}