﻿.sw-theme-dots .sw-container {
    min-height: 300px;
}

.sw-theme-dots .step-content {
    padding: 10px 0;
    border: none;
    background-color: #FFF;
    text-align: left;
}

.sw-theme-dots .sw-toolbar {
    background: #fff;
    border-radius: 0 !important;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0 !important;
}

.sw-theme-dots .sw-toolbar-top {
    border-bottom-color: #ddd !important;
}

.sw-theme-dots .sw-toolbar-bottom {
    border-top-color: #ddd !important;
    border-bottom-color: #ddd !important;
}

.sw-theme-dots > ul.step-anchor {
    position: relative;
    background: #fff;
    border: 0px solid #ccc !important;
    list-style: none;
}

    .sw-theme-dots > ul.step-anchor:before {
        content: " ";
        position: absolute;
        top: 70px;
        bottom: 0;
        width: 100%;
        height: 5px;
        background-color: #f5f5f5;
        border-radius: 3px;
        z-order: 0;
        z-index: 95;
    }

    .sw-theme-dots > ul.step-anchor > li {
        border: none;
    }
        /* Anchors styles */
        .sw-theme-dots > ul.step-anchor > li > a {
            position: relative;
            text-align: center;
            font-weight: bold;
            background: transparent;
            border: none;
            color: #ccc;
            text-decoration: none;
            outline-style: none;
            z-index: 96;
            display: block;
        }

            .sw-theme-dots > ul.step-anchor > li > a:before {
                content: ' ';
                position: absolute;
                bottom: 2px;
                left: 44%;
                margin-top: 10px;
                display: block;
                border-radius: 50%;
                color: #428bca;
                background: #f5f5f5;
                border: none;
                width: 30px;
                height: 30px;
                text-decoration: none;
                z-index: 98;
            }

            .sw-theme-dots > ul.step-anchor > li > a:after {
                content: ' ';
                position: relative;
                left: 44%;
                bottom: 2px;
                margin-top: 10px;
                display: block;
                width: 15px;
                height: 15px;
                background: #f5f5f5;
                border-radius: 50%;
                z-index: 99;
            }

            .sw-theme-dots > ul.step-anchor > li > a:hover {
                color: #ccc;
                background: transparent;
            }

            .sw-theme-dots > ul.step-anchor > li > a:focus {
                color: #ccc;
                border: none;
            }

        .sw-theme-dots > ul.step-anchor > li.clickable > a:hover {
            color: #999;
        }
        /* Active anchors */
        .sw-theme-dots > ul.step-anchor > li.active > a {
            color: #29abe0;
        }

            .sw-theme-dots > ul.step-anchor > li.active > a:hover {
                border: none;
            }

            .sw-theme-dots > ul.step-anchor > li.active > a:after {
                background: #29abe0;
            }


        /* Danger anchors */
        .sw-theme-dots > ul.step-anchor > li.danger > a {
            color: #d9534f;
        }

            .sw-theme-dots > ul.step-anchor > li.danger > a:after {
                background: #d9534f;
            }

        .sw-theme-dots > ul.step-anchor > li.disabled > a, .sw-theme-dots > ul.step-anchor > li.disabled > a:hover {
            color: #eee !important;
        }

            .sw-theme-dots > ul.step-anchor > li.disabled > a:after {
                background: #eee;
            }

/* Responsive CSS */
@media screen and (max-width: 768px) {
    .sw-theme-dots > ul.step-anchor:before {
        top: 0;
        bottom: 0;
        left: 10px;
        width: 5px;
        height: 100%;
        background-color: #f5f5f5;
        display: block;
        margin-right: 10px;
    }

    .sw-theme-dots > ul.step-anchor > li {
        margin-left: 20px;
        display: block;
        clear: both;
    }

        .sw-theme-dots > ul.step-anchor > li > a {
            text-align: left;
            margin-left: 0;
            display: block;
        }

            .sw-theme-dots > ul.step-anchor > li > a:before {
                top: 5px;
                left: -23px;
                margin-right: 10px;
                display: block;
            }

            .sw-theme-dots > ul.step-anchor > li > a:after {
                top: -38px;
                left: -31px;
                margin-right: 10px;
                display: block;
            }
}

/* custom by Jack */
/* use outer ring (a:before) only, no inner ring (a:after) */

.sw-theme-dots > ul.step-anchor > li > a:after {
    display: none;
}

.sw-theme-dots > ul.step-anchor > li.active > a {
    color: #29abe0;
}

/* in case of multiple lines of tile, ensure the entire line is at bottom of the highest title */
.sw-theme-dots > ul.step-anchor:before {
    /* unset top so that bottom can take effect */
    top: auto;
    bottom: -20px;
    background: #e6e5e5
}

.sw-theme-dots > ul.step-anchor > li > a:before {
    bottom: -30px;
    color: #edebeb;
}

.sw-theme-dots > ul.step-anchor > li.done > a:before {
    background: #93c54b;
    pointer-events: none;
}

.sw-theme-dots > ul.step-anchor > li.active > a:before {
    background: #29abe0;
}

.sw-btn-group.btn-group {
    float: none;
}

/* the followings are for AODA compliant (high contrasted) purpose only */

.sw-theme-dots > ul.step-anchor > li:focus {
    border: none;
}

.sw-theme-dots > ul.step-anchor > li.clickable > a:focus {
    color: #999;
}

.sw-theme-dots > ul.step-anchor {
    font-size: 1.1em;
    margin-bottom: 40px;
}

    .sw-theme-dots > ul.step-anchor > li > a,
    .sw-theme-dots > ul.step-anchor > li.done > a {
        color: black;
    }

    .sw-theme-dots > ul.step-anchor > li.done > a {
        pointer-events: none;
    }

/* others */
.step-id {
    display: block;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.step-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 100;
}

.sw-theme-dots > ul.step-anchor, .sw-theme-dots > ul.step-anchor > li {
    /* no border when focused */
    outline-style: none;
}

.sw-theme-dots .sw-container:focus {
    /* the tab content outline when focused */
    outline: #999999 dotted 1px;
}

.btn-group.sw-btn-group {
    order: 1;
    flex-grow: 5;
    justify-content: flex-end;
}

.btn-group.mr-2.sw-btn-group-extra {
    order: 0;
    flex-grow: 5;
    justify-content: flex-start;
}

/* Unrelated CSS*/

input, .btn, textarea {
    border-radius: 0 !important;
}

span[id$=error] {
    background-color: #a94442;
    padding: 5px;
    color: white !important;
    font-weight: bold;
}

span.field-validation-error {
    background-color: #a94442;
    padding: 5px;
    color: white !important;
    font-weight: bold;
}

input[type="radio"], input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    position: absolute;
    margin-left: -25px;
    margin-top: 4px;
}

.is-required::after, .req::after {
    content: " *";
    color: #b94a48;
    font-size: 12px;
}

.delete-attachment {
    color: #808080;
    cursor: pointer;
}

    .delete-attachment:hover {
        color: #ff0000;
    }

label {
    font-weight: 500;
}

    label.form-check-label {
        height: 20px;
        margin-top: .3rem;
        margin-left: .3rem;
    }

.radio-inline {
    margin-bottom: 10px;
}

.k-upload {
    border: none !important;
}

.k-dropzone {
    padding-left: 0px;
    padding-bottom: 1.0rem;
}

.k-popup .k-list .k-item {
    padding: 0px;
    border: none;
}

ul.nav-tabs {
    border-bottom: none !important;
}

.table .btn {
    line-height: inherit;
}

.navbar .nav-link, .nav-tabs .nav-link, .dropdown-menu .dropdown-item, .btn {
    text-transform: none;
}

.k-popup .k-list .k-item {
    padding-left: 0.5rem;
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

    .k-list-scroller h3 {
        font-size: medium !important;
    }

    .k-list-scroller p {
        display: none;
    }

    .k-list-scroller h3 {
        margin-bottom: 0px;
        margin-top: 0px;
    }

    .k-list-scroller .legal {
        border-top: none;
        background-color: transparent !important;
        font-size: x-small;
        color: black;
    }

    .k-list-scroller .roll {
        margin-top: 0px;
    }

/* =============================================
   PPI MODERNIZATION — added styles
   ============================================= */

/* ---- Nav ---- */
.ppi-navbar {
    background-color: #111111 !important;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    min-height: 56px;
}

.ppi-navbar-brand {
    padding: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ppi-navbar-logo {
    height: 36px;
    width: auto;
}

.ppi-navbar-title {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.55) !important;
    font-weight: 400;
}

.ppi-navbar-title-sm {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

/* ---- Environment notice ---- */
.ppi-env-notice {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    border-left: 4px solid #adb5bd;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.35rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ppi-env-badge {
    background: #6c757d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ppi-env-notice code {
    font-size: 0.72rem;
    color: #495057;
    background: transparent;
    padding: 0;
}

.ppi-env-sep {
    opacity: 0.4;
}

/* ---- Main content area ---- */
.ppi-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ppi-footer-divider {
    margin-top: 2.5rem;
    border-color: #e9ecef;
}

/* ---- Hero header ---- */
.ppi-hero {
    margin-bottom: 1.75rem;
}

.ppi-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.ppi-hero-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ---- Search card + tabs ---- */
.ppi-search-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ppi-search-tabs {
    background: #f4f5f7;
    border-bottom: 1px solid #dee2e6;
    padding: 0 0.25rem;
    gap: 0;
}

.ppi-search-tabs .nav-item {
    margin-bottom: -1px;
}

.ppi-search-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.4rem;
    margin-top: 0.35rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.ppi-search-tabs .nav-link:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #dee2e6 #dee2e6 transparent;
}

.ppi-search-tabs .nav-link.active {
    background: #fff;
    color: #1a1a1a;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.ppi-search-tab-content {
    padding: 1.5rem 1.75rem;
}

/* ---- Info cards ---- */
.ppi-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ppi-info-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.ppi-info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.65rem;
}

.ppi-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppi-info-list li {
    padding: 0.35rem 0;
    padding-left: 1.1rem;
    position: relative;
    color: #495057;
    font-size: 0.9rem;
}

.ppi-info-list li:last-child {
    border-bottom: none;
}

.ppi-info-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #adb5bd;
    font-weight: 700;
}

/* ---- External links card ---- */
.ppi-links-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ppi-links-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.ppi-ext-link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: #212529;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    height: 100%;
}

.ppi-ext-link:hover {
    background: #fff;
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #212529;
}

.ppi-ext-link-icon {
    font-size: 1.3rem;
    color: #6c757d;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.ppi-ext-link strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.ppi-ext-link span {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

/* ---- Additional Info — grouped definition lists (max 2 columns) ---- */
.ppi-addinfo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 100%;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ppi-addinfo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ppi-addinfo-group {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.ppi-addinfo-group--heritage {
    grid-column: 1 / -1;
}

.ppi-addinfo-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.65rem 1rem;
    margin: 0;
}

.ppi-addinfo-dl {
    margin: 0;
    padding: 0;
}

.ppi-addinfo-row {
    display: flex;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    gap: 0.5rem;
}

.ppi-addinfo-row:last-child {
    border-bottom: none;
}

.ppi-addinfo-row dt {
    flex: 0 0 55%;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.ppi-addinfo-row dd {
    flex: 1;
    font-size: 0.85rem;
    color: #212529;
    margin: 0;
    word-break: break-word;
}

/* =============================================
   Kendo Autocomplete Results (Street Search)
   ============================================= */

/* Override Kendo popup to look modern */
.k-popup.k-list-container {
    border: 1px solid #dee2e6 !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    overflow: hidden;
}

.k-popup .k-list .k-item {
    padding: 0 !important;
    border-bottom: 1px solid #f1f3f5 !important;
    margin: 0 !important;
    cursor: pointer;
}

.k-popup .k-list .k-item:last-child {
    border-bottom: none !important;
}

.k-popup .k-list .k-item.k-state-focused,
.k-popup .k-list .k-item.k-state-hover {
    background-color: #f0f4ff !important;
}

/* Autocomplete item layout */
.ppi-ac-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 1rem;
    gap: 0.15rem;
    width: 100%;
}

.ppi-ac-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.ppi-ac-address {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppi-ac-roll {
    background: #343a40;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ppi-ac-legal {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.1rem;
}

/* =============================================
   Property Page — Header & Tabs
   ============================================= */

.ppi-property-header {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ppi-property-header-address {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.ppi-property-header-roll {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.2rem;
    font-family: monospace;
    letter-spacing: 0.04em;
}

.ppi-property-header-actions a.btn {
    border-radius: 4px !important;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* Property page tabs — reuse ppi-search-tabs but adapt for property */
.ppi-property-tabs {
    background: #f4f5f7;
    border-bottom: 1px solid #dee2e6;
    padding: 0 0.25rem;
    gap: 0;
    flex-wrap: wrap;
}

.ppi-property-tabs .nav-item {
    margin-bottom: -1px;
}

.ppi-property-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    color: #495057;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.65rem 1.1rem;
    margin-top: 0.35rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
}

.ppi-property-tabs .nav-link:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #dee2e6 #dee2e6 transparent;
}

.ppi-property-tabs .nav-link.active {
    background: #fff;
    color: #1a1a1a !important;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.ppi-property-tab-content .card {
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ppi-property-tab-content .card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.ppi-property-tab-content .card-header .h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Property details grid — max 2 col layout */
.ppi-propdetails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 100%;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ppi-propdetails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   Tax & Assessment Tables
   ============================================= */

.ppi-tax-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ppi-tax-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ppi-tax-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e3e7;
}

.ppi-tax-table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.ppi-tax-table thead th {
    background: #fafbfc;
    color: #868e96;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.5rem;
    border-top: none;
    border-bottom: 1px solid #f1f3f5;
}

.ppi-tax-table tbody td {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f1f3f5;
    border-bottom: none;
    color: #495057;
}

.ppi-tax-table tbody tr:first-child td {
    border-top: none;
}

.ppi-tax-table tbody tr:hover {
    background: #f8f9fa;
}

.ppi-tax-table tfoot td {
    padding: 0.85rem 1.5rem;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    border-bottom: none;
    font-size: 0.95rem;
}

/* =============================================
   End Tax & Assessment Tables
   ============================================= */

/* Dev RSN badge */
.ppi-dev-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
}
