/**
 * Specrent Rental Agreement & A4 Printable Sign-Off Sheet Styles
 */

/* =========================================================
   Screen Styles
   ========================================================= */
.specrent-legal-container {
    max-width: 1040px;
    margin: 30px auto 60px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.7;
    padding: 0 24px;
    box-sizing: border-box;
}

.specrent-legal-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 28px;
    margin-bottom: 30px;
    border-left: 6px solid #0b6e4f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.specrent-legal-brand-logo {
    height: 34px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.specrent-legal-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.specrent-legal-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.specrent-legal-tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.specrent-legal-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    margin-bottom: -2px;
    transition: all 0.15s ease;
}

.specrent-legal-tab-btn.active {
    color: #0b6e4f;
    border-bottom-color: #0b6e4f;
}

.specrent-legal-section {
    margin-bottom: 35px;
}

.specrent-legal-section h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin: 28px 0 14px 0;
}

.specrent-legal-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 18px 0 6px 0;
}

.specrent-legal-callout {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    color: #065f46;
}

.specrent-checklist-card {
    background: #ffffff;
    border: 2px solid #0b6e4f;
    border-radius: 12px;
    padding: 30px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(11, 110, 79, 0.08);
}

.specrent-print-head-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.specrent-doc-logo {
    height: 32px;
    width: auto;
    display: block;
}

.specrent-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b6e4f;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease;
}

.specrent-print-btn:hover {
    background: #075239;
}

.specrent-table-clean {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px 0;
    font-size: 13.5px;
}

.specrent-table-clean th,
.specrent-table-clean td {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.specrent-table-clean th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specrent-sig-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
}

.specrent-sig-line {
    border-bottom: 1px solid #0f172a;
    height: 32px;
    margin-top: 20px;
}

/* =========================================================
   Clean A4 Print Styles (Zero Browser Headers/Footers/URLs)
   ========================================================= */
@page {
    size: A4 portrait;
    margin: 0 !important;
}

@media print {
    /* 1. Hide all website headers, nav, menus, search, breadcrumbs, footers */
    header,
    footer,
    nav,
    #masthead,
    .site-header,
    .site-footer,
    .col-full-nav,
    .archive-header,
    .woocommerce-breadcrumb,
    .breadcrumbs,
    .menu-overlay,
    .top-bar,
    .sub-menu-wrapper,
    .pinkthemes-cart,
    .specrent-legal-tabs-nav,
    .specrent-print-btn,
    #wpadminbar,
    .specrent-legal-header,
    #specrent-tab-agreement,
    #specrent-tab-bond {
        display: none !important;
    }

    /* Suppress printing of link URLs */
    a:after,
    a[href]:after {
        content: none !important;
    }

    /* 2. Make the Handover Sign-Off Sheet active and full width */
    #specrent-tab-checklist {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        font-size: 9pt !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 8mm 12mm 0 12mm !important;
        width: 100% !important;
        box-sizing: border-box !important;
        page-break-inside: avoid !important;
    }
    #page, #content, .site-content, .col-full, .content-area, .site-main, .specrent-legal-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    /* 3. Single A4 Page Card Layout */
    .specrent-checklist-card {
        border: 1.5px solid #0f172a !important;
        border-radius: 4px !important;
        padding: 14px 18px !important;
        margin: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .specrent-print-head-bar {
        border-bottom: 2px solid #0f172a !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    .specrent-doc-logo {
        height: 26px !important;
        width: auto !important;
    }

    .specrent-table-clean {
        margin: 8px 0 12px 0 !important;
        font-size: 8.5pt !important;
    }

    .specrent-table-clean th,
    .specrent-table-clean td {
        padding: 4px 8px !important;
        border: 1px solid #334155 !important;
    }

    .specrent-table-clean th {
        background: #f1f5f9 !important;
        color: #0f172a !important;
    }

    .specrent-sig-box {
        margin-top: 10px !important;
        padding-top: 8px !important;
        gap: 14px !important;
    }

    .specrent-sig-line {
        height: 20px !important;
        margin-top: 12px !important;
    }
}
