html {
    font-size: 14px;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background: linear-gradient(145deg, #f5f7fa 0%, #dfe3e8 50%, #c8ced5 100%);
    background-attachment: fixed;
    padding-bottom: 35px;
    overflow: hidden;
}

.f-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.left-menu-div {
    padding: 0;
    background: linear-gradient(180deg, #343a40 0%, #212529 100%);
    width: 200px;
    height: 100vh;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 4px 0 16px rgba(0,0,0,0.2);
    overflow: hidden;
}

.logo-container {
    text-align: center;
    padding: 10px 0;
}

.logo-img {
    max-width: 140px;
    height: auto;
}

.main-content {
    height: 100vh;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    overflow-y: auto;
    overflow-x: auto;
    box-sizing: border-box;
    background-color: #fff;
}

.main-menu {
    list-style-type: none;
    padding: 0;
    margin: 6px 0 0 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-partial {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 0;
    /*border-bottom: 1px solid rgba(255,255,255,0.08);*/
}

.user-avatar {
    font-size: 18px;
    line-height: 1;
}

.left-menu-div a {
    color: #adb5bd !important;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0px;
    margin: 1px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.menu-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.left-menu-div a:hover {
    background: rgba(255,255,255,0.08);
    color: #f8f9fa !important;
    opacity: 1;
}

.left-menu-div a.active {
    background: rgba(253, 126, 20, 0.2) !important;
    color: #fd7e14 !important;
    font-weight: 600 !important;
}

.menu-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 5px 12px;
}

.collapse-menu-btn {
    display: block;
    position: absolute;
    top: 6px;
    right: 4px;
    background: #868e96;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    font-size: 7px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    width: 16px;
    height: 16px;
}


    .collapse-menu-btn::after {
        content: '<';
    }

    .collapse-menu-btn:hover {
        background: #9aa1a8;
    }


.left-menu-div.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

    .left-menu-div.collapsed .collapse-menu-btn {
        position: fixed;
        top: 6px;
        left: calc((100vw - 1300px) / 2);
        right: auto;
        background: #495057;
        color: #fff;
        border-radius: 0 6px 6px 0;
        padding: 0;
        margin: 0;
        width: 20px;
        height: 20px;
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
    }



        .left-menu-div.collapsed .collapse-menu-btn::after {
            content: '>';
        }

.bottom-div {
    position: absolute;
    bottom: 0px;
    left: 0px;
    text-align: center;
    width: 100%;
}

.f-span {
    background: #ffffff;
    border-radius: 10px;
    opacity: 1;
}

a.topLogin {
    color: #fd7e14 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

    a.topLogin:hover {
        color: #ffa036 !important;
    }

.login-partial {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.main-content .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-content a {
    color: #495057;
    cursor: pointer;
}

.ownerTitle {
    color: #777777;
    font-size: 12px;
    font-weight: bold;
    vertical-align: text-top;
    padding-right: 20px;
}

.ownerValue {
    color: orange;
    font-size: 12px;
    font-weight: bold;
}

tr.disabled td {
    background-color: #ececec !important;
}

div.assignOwnerDiv {
    border: 1px solid gray;
    padding: 10px;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    background-color: #f7f7f7;
    box-sizing: border-box;
}

.water-details-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
}

.bills-section {
    border: 1px solid gray;
    padding: 10px;
    border-radius: 20px;
    background-color: #f7f7f7;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

.electric-details-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
}

    .electric-details-sections .valuesDiv {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .electric-details-sections .bills-section {
        border: 1px solid gray;
        padding: 10px;
        border-radius: 20px;
        background-color: #f7f7f7;
        width: 100%;
        max-width: 900px;
        box-sizing: border-box;
    }

div.valuesDiv {
    border: 1px solid gray;
    padding: 10px;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    background-color: #f7f7f7;
    box-sizing: border-box;
}

.GardenPlotTable tr td:nth-child(2n+1) {
    text-align: left;
    font-size: 12px;
    color: #777777;
    font-weight: bold;
    width: 120px;
    vertical-align: text-top;
    padding-top: 0px;
    padding-bottom: 5px;
}

.GardenPlotTable tr td:nth-child(2n) {
    padding-left: 20px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    min-width: 100px;
    padding-top: 0px;
    padding-bottom: 5px;
}

.removeOwner {
    font-weight: normal;
    color: #777777;
}

.ownerTable tr td:nth-child(2n+1) {
    text-align: left;
    font-size: 12px;
    color: #777777;
    font-weight: bold;
    width: 120px;
    vertical-align: text-top;
    padding-top: 5px;
    padding-bottom: 5px;
}

.ownerTable tr td:nth-child(2n) {
    padding-left: 20px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    min-width: 100px;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 200px;
}

.badge-warning {
    background-color: orange;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
}

a.ownerLink {
    color: orange;
}

div.scrol150 {
    max-height: 150px !important;
    overflow-y: scroll;
}

div.scrol200 {
    max-height: 200px !important;
    overflow-y: scroll;
}

div.scrol250 {
    max-height: 250px !important;
    overflow-y: scroll;
}

.text-right {
    text-align: right;
}

a.btn-primary {
    color: white;
}

a.btn-warning {
    color: white;
}

.hidden {
    display: none;
}

.electric-bill-table {
    width: 100%;
}

    .electric-bill-table tr td {
        border-top: 1px solid gray;
        padding: 2px 10px 2px 10px;
    }

    .electric-bill-table tr:hover td {
        background-color: #ececec;
    }

.waterBill {
    width: 100%;
    max-width: 900px;
}

.tdhref {
    cursor: pointer;
    text-decoration: underline !important;
}

.orangeBold {
    color: orange;
    font-weight: bold;
}

#summaryTable tr td {
    border: 1px solid gray;
}

#summaryTable tr th {
    border: 2px solid gray;
}

    #summaryTable tr td:nth-child(2), #summaryTable tr td:nth-child(8), #summaryTable tr th:nth-child(2), #summaryTable tr th:nth-child(8) {
        border-right: 2px solid black;
    }

.badge-blue {
    background-color: lightskyblue;
    border-radius: 5px;
    padding: 0 5px 0 5px;
}

.billTable tr th, .billTable tr td {
    border-top: 1px solid gray;
    padding: 2px 10px 2px 10px;
}

.billTable tr:hover td {
    background-color: #ececec;
}

.bordered {
    border: 1px solid gray;
    padding: 10px;
    border-radius: 10px;
}

span.lgray {
    color: #aaa;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hamburger-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 1050;
    background: linear-gradient(135deg, #495057, #343a40);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1030;
}

.pay-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    font-size: 0.9rem;
}

    .pay-nav a,
    .pay-nav b {
        white-space: nowrap;
    }

    .pay-nav a {
        color: #495057;
    }

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

    .search-form input[type="text"] {
        min-width: 200px;
        flex: 1;
    }


/* ===== UNIFIED VIEW STYLES ===== */

.page-header {
    margin-bottom: 0px;
}

    .page-header h1 {
        margin-bottom: 8px;
    }

.page-actions {
    margin-bottom: 16px;
}

.card-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

    .form-group label,
    .form-group > span:not(.text-danger) {
        display: block;
        font-weight: 600;
        margin-bottom: 4px;
        color: #495057;
        font-size: 13px;
    }

    .form-group input.form-control,
    .form-group select.form-control,
    .form-group textarea.form-control {
        border-radius: 6px;
    }

.form-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-link {
    display: inline-block;
    margin-top: 16px;
    color: #495057;
    text-decoration: none;
}

    .back-link:hover {
        text-decoration: underline;
        color: #222;
    }

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
}

.info-list dt {
    font-weight: 600;
    color: #555;
}

.info-list dd {
    color: #222;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    color: #856404;
}

.danger-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    color: #721c24;
}

.summary-row {
    font-weight: 700;
    margin: 8px 0;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

    .filter-bar input[type="date"],
    .filter-bar input[type="number"],
    .filter-bar input[type="text"] {
        border-radius: 6px;
    }

    .filter-bar .btn {
        padding: 0 0.5rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

.date-quick-btn {
    padding: 0 0.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

    .date-quick-btn.active {
        background-color: #495057;
        color: #fff;
        border-color: #495057;
    }

.modal-content .text-right {
    text-align: right;
}

.modal-footer .btn-primary {
    border-radius: 6px;
}

.assignOwnerDiv {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    background: #fafafa;
}

.tableLink {
    color: #495057;
    text-decoration: none;
}

    .tableLink:hover {
        text-decoration: underline;
    }

.tdhref:hover {
    color: #0056b3;
}

.btn-info {
    border-radius: 6px;
}

.btn-new-reading {
    height: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.badge.badge-warning {
    cursor: pointer;
    font-size: inherit;
}

.stat-total {
    font-weight: 700;
    font-size: 15px;
    margin: 10px 0;
}

.no-results {
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    max-width: 100%;
    background: linear-gradient(180deg, #343a40 0%, #212529 100%);
    color: #adb5bd;
    text-align: center;
    padding: 8px 24px;
    font-size: 12px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.footer-email {
    color: #fd7e14;
    font-weight: 500;
    text-decoration: none;
}

.footer-sep {
    color: rgba(255,255,255,0.15);
}

.footer-org {
    color: #ced4da !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}

body {
    padding-bottom: 36px;
}


/* LkOwner tabs */
.lkowner-tabs .nav-tabs {
    border-bottom: 0px solid #dee2e6;
}

.lkowner-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.2s;
}

    .lkowner-tabs .nav-link:hover {
        color: #fd7e14;
    }

    .lkowner-tabs .nav-link.active {
        color: #fd7e14;
        border-bottom: 3px solid #fd7e14;
        background: transparent;
        font-weight: 600;
    }

.lkowner-tabs .tab-content {
}

    .lkowner-tabs .tab-content > .tab-pane {
        padding-top: 0;
    }

    .lkowner-tabs .tab-content .card {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-top: none;
        border-left: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
    }

/* Water Counters */
.water-section, .counter-section {
    margin-top: -5px;
}

    .water-section .water-title, .counter-section .counter-title {
        font-size: 1rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }



.water-counter-block, .common-block, .electric-counter-block {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

    .water-counter-block:hover, .electric-counter-block:hover {
        box-shadow: 0 3px 14px rgba(0,0,0,0.08);
    }

.memberpay-block {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.maberpay-block:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}


.water-counter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.water-counter-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .water-counter-name .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #28a745;
        display: inline-block;
    }

        .water-counter-name .dot.unbilled {
            background: #ffc107;
        }

.water-counter-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px 12px;
    margin-bottom: 12px;
}

.wc-info-item {
    text-align: center;
}

    .wc-info-item .wc-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #868e96;
        font-weight: 500;
        white-space: nowrap;
    }

    .wc-info-item .wc-value {
        font-size: 1.05rem;
        font-weight: 700;
        color: #2c3e50;
    }

        .wc-info-item .wc-value.debt-positive {
            color: #dc3545;
        }

        .wc-info-item .wc-value.debt-zero {
            color: #28a745;
        }

        .wc-info-item .wc-value.debt-negative {
            color: #17a2b8;
        }

    .wc-info-item .wc-date {
        font-size: 0.7rem;
        color: #adb5bd;
    }

.water-counter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-wc {
    border: none;
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-wc-add {
    background: #e7f5ff;
    color: #1971c2;
}

    .btn-wc-add:hover {
        background: #d0ebff;
        color: #1864ab;
    }

.btn-wc-edit {
    background: #fff9db;
    color: #e67700;
}

    .btn-wc-edit:hover {
        background: #fff3bf;
        color: #f59f00;
    }

.btn-wc-confirm {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

    .btn-wc-confirm:hover {
        opacity: 0.9;
        color: #fff;
    }

.btn-wc-bill {
    background: #4263eb;
    color: #fff !important;
}

    .btn-wc-bill:hover {
        background: #3b5bdb;
        color: #fff !important;
    }

.btn-wc-history {
    background: #f1f3f5;
    color: #495057;
}

    .btn-wc-history:hover {
        background: #e9ecef;
        color: #343a40;
    }

.paid-badge {
    color: #28a745;
    font-weight: 500;
}

/* Confirmation modal */
.confirm-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.confirm-modal-dialog {
    max-width: 390px;
}

.confirm-modal .modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-bottom: none;
    padding: 20px 24px 12px;
}

    .confirm-modal .modal-header .modal-title {
        font-weight: 700;
        font-size: 1.15rem;
    }

    .confirm-modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.confirm-modal .modal-body {
    padding: 20px 24px;
    text-align: center;
}

.confirm-modal .conf-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.confirm-modal .conf-text {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 16px;
}

.confirm-modal .conf-counter {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.confirm-modal .conf-input {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 16px;
    transition: border-color 0.2s;
}

    .confirm-modal .conf-input:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.15rem rgba(40,167,69,0.25);
    }

    .confirm-modal .conf-input.valid {
        border-color: #28a745;
        background: #f0fff4;
    }

.confirm-modal .modal-footer {
    justify-content: center;
    padding: 12px 24px 20px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}

.confirm-modal .btn-confirm {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: 2px solid #1e7e34;
    padding: 10px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s, transform 0.1s;
}

    .confirm-modal .btn-confirm:hover:not(:disabled) {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .confirm-modal .btn-confirm:disabled {
        background: #dee2e6;
        color: #6c757d;
        border-color: #adb5bd;
        cursor: not-allowed;
        transform: none;
    }

.confirm-modal .btn-cancel {
    padding: 10px 24px;
    border: 2px solid #6c757d;
    border-radius: 8px;
    font-weight: 500;
    color: #6c757d;
    background: #fff;
}

    .confirm-modal .btn-cancel:hover {
        background: #f8f9fa;
        color: #495057;
    }


/* ===== GardenPlots Details ===== */
.gp-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .gp-detail-header h1 {
        margin: 0;
    }

.gp-detail-id {
    color: #adb5bd;
    font-size: 0.85rem;
}

.gp-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

    .gp-detail-actions .btn {
        border-radius: 8px;
        font-size: 0.82rem;
    }

.gp-debt-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.gp-debt-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

    .gp-debt-item .gp-debt-label {
        font-size: 0.75rem;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .gp-debt-item .gp-debt-value {
        font-size: 1.2rem;
        font-weight: 700;
        margin-top: 4px;
    }

        .gp-debt-item .gp-debt-value.positive {
            color: #dc3545;
        }

        .gp-debt-item .gp-debt-value.zero {
            color: #28a745;
        }

        .gp-debt-item .gp-debt-value.negative {
            color: #17a2b8;
        }

.gp-detail-section {
    margin-top: 20px;
}

    .gp-detail-section h5 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

        .gp-detail-section h5 a {
            text-decoration: none;
            color: inherit;
        }

            .gp-detail-section h5 a:hover {
                color: #fd7e14;
            }

.gp-owner-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.gp-owner-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.gp-owner-card .gp-owner-name {
    font-weight: 600;
    color: #2c3e50;
}

    .gp-owner-card .gp-owner-name a {
        color: inherit;
        text-decoration: none;
    }

        .gp-owner-card .gp-owner-name a:hover {
            color: #fd7e14;
        }

.gp-owner-card .gp-remove-link {
    font-size: 0.78rem;
    color: #dc3545;
    text-decoration: none;
    margin-left: 8px;
}

    .gp-owner-card .gp-remove-link:hover {
        text-decoration: underline;
    }

.gp-counter-icons a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #495057;
    margin-right: 8px;
}

    .gp-counter-icons a:hover {
        color: #fd7e14;
    }

.gp-combo-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px;
}

.gp-combo-item {
    padding: 6px 0 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

    .gp-combo-item:last-child {
        border-bottom: none;
    }

.gp-combo-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.gp-combo-date {
    color: #adb5bd;
}

.gp-bill-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

    .gp-bill-table thead {
        background: #f8f9fa;
    }

        .gp-bill-table thead th {
            font-size: 0.75rem;
            color: #6c757d;
            font-weight: 600;
            text-transform: uppercase;
            padding: 8px 10px;
            border-bottom: 2px solid #dee2e6;
        }

    .gp-bill-table tbody td {
        padding: 6px 10px;
        font-size: 0.82rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .gp-bill-table tbody tr:hover {
        background: #f8f9fa;
    }

.gp-email-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #856404;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.gp-email-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

    .gp-email-badge.member {
        background: #fff3cd;
    }

    .gp-email-badge.water {
        background: #d1ecf1;
    }

    .gp-email-badge.electric {
        background: #fff3cd;
    }

    .gp-email-badge.target {
        background: #f8d7da;
    }

.gp-combo-last {
    margin: 0;
    font-size: 0.85rem;
    background: #f8f9fa;
}

.gp-assign-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.gp-assign-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.gp-email-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.gp-email-warning {
    background: #ffc107;
    color: #856404;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gp-modal-content {
    padding: 20px;
}

.sector-filters .stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    user-select: none;
    cursor: pointer;
}

.sector-filters .sector-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sector-filters .stat-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.sector-filters .stat-card .stat-value {
    font-size: 1rem;
    margin-bottom: 0;
}

.sector-filters .stat-card .stat-label {
    font-size: 0.72rem;
    margin-top: 0;
}

.sector-filters .stat-card:hover {
    background: #e9ecef;
}

/* Owners Table Styles */
.owner-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none;
}

    .owner-table thead th {
        background: linear-gradient(135deg, #495057, #343a40);
        color: #fff;
        border: none;
        padding: 10px 12px;
        font-weight: 600;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        /* Размытие (скругление) границ сверху слева и справа */
        .owner-table thead th:first-child {
            border-top-left-radius: 0px;
        }

        .owner-table thead th:last-child {
            border-top-right-radius: 0px;
        }

    .owner-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.15s;
    }

        .owner-table tbody tr:hover {
            background: #f8f9fa;
        }

        .owner-table tbody tr:last-child {
            border-bottom: none;
        }

    .owner-table tbody td {
        padding: 8px 12px;
        vertical-align: middle;
        color: #495057;
        border: none;
    }

/* ===== GardenPlots Index ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .stat-card {
        padding: 3px 4px;
    }

        .stat-card .stat-value {
            font-size: 0.85rem;
        }

        .stat-card .stat-label {
            font-size: 0.5rem;
        }

        .stat-card.sector .stat-value {
            font-size: 0.6rem;
        }

        .stat-card.sector .stat-label {
            font-size: 0.35rem;
        }
}

.stat-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
}

    .stat-card .stat-value {
        font-size: 1rem;
        font-weight: 700;
        color: #2c3e50;
    }

    .stat-card .stat-label {
        font-size: 0.65rem;
        color: #6c757d;
        margin-top: 1px;
    }

    .stat-card.sector {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border-color: #dee2e6;
    }

        .stat-card.sector .stat-value {
            font-size: 1.2rem;
        }

.actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

    .actions-bar .btn {
        border-radius: 8px;
        padding: 6px 18px;
        font-size: 0.85rem;
    }

.search-input {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

    .search-input:focus {
        border-color: #fd7e14;
    }

.gp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

    .gp-table thead th {
        background: linear-gradient(135deg, #495057, #343a40);
        color: #fff;
        border: none;
        padding: 10px 12px;
        font-weight: 600;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }

        .gp-table thead th:first-child {
            border-top-left-radius: 0px;
        }

        .gp-table thead th:last-child {
            border-top-right-radius: 0px;
        }

        .gp-table thead th:hover {
            background: rgba(255,255,255,0.08);
        }

    .gp-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.15s;
    }

        .gp-table tbody tr:hover {
            background: #f8f9fa;
        }

        .gp-table tbody tr.disabled-row {
            opacity: 0.5;
            background: #f5f5f5;
        }

    .gp-table tbody td {
        padding: 8px 12px;
        font-size: 0.85rem;
        vertical-align: middle;
        color: #495057;
    }

.gp-number {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
}

    .gp-number a {
        text-decoration: none;
        color: inherit;
    }

.gp-debt {
    font-weight: 600;
}

    .gp-debt.positive {
        color: #dc3545;
    }

    .gp-debt.zero {
        color: #28a745;
    }

    .gp-debt.negative {
        color: #17a2b8;
    }

.gp-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #495057;
    transition: opacity 0.15s;
}

    .gp-icon-link:hover {
        opacity: 0.6;
    }

.gp-subplot {
    font-size: 0.78rem;
    color: #868e96;
    margin-top: 2px;
}

.gp-owner-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

    .gp-owner-link:hover {
        color: #fd7e14;
    }

.gp-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
    font-weight: 600;
}

.gpi-fancyTablePagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

    .gpi-fancyTablePagination a,
    .gpi-fancyTablePagination span {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.8rem;
        text-decoration: none;
        border: 1px solid #dee2e6;
        color: #495057;
        transition: all 0.15s;
    }

        .gpi-fancyTablePagination a:hover {
            background: #e9ecef;
        }

        .gpi-fancyTablePagination span.active {
            background: #fd7e14;
            color: #fff;
            border-color: #fd7e14;
        }

/* Debtors table alignment */
#debtorsTable,
#debtorsTable thead th,
#debtorsTable tbody tr,
#debtorsTable tbody td {
    text-align: left !important;
}



/* All Plots Map */
#allPlotsMap {
    width: 70%;
    height: 160px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* Owner Card Header */
.owner-card-header {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.owner-card-bg {
    height: 36px;
    background: linear-gradient(180deg, #343a40 0%, #212529 100%);
    position: relative;
}

    .owner-card-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.owner-card-content {
    position: relative;
    margin-top: -28px;
    padding: 0 20px 11px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.owner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.owner-details {
    flex: 1;
    padding-bottom: 2px;
}

.owner-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.owner-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.owner-info-item {
    font-size: 0.72rem;
    color: #2c3e50;
    background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Page Header */
.page-header h1 {
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0.5rem;
}

/* Plot Card */
.plot-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

    .plot-card:hover {
        box-shadow: 0 3px 14px rgba(0,0,0,0.08);
    }

.plot-body {
    padding: 20px 24px;
}

.plot-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plot-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 4px 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f5;
}

.plot-info-item {
    display: flex;
    flex-direction: column;
}

    .plot-info-item .label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #868e96;
        font-weight: 500;
    }

    .plot-info-item .value {
        font-size: 0.88rem;
        font-weight: 600;
        color: #2c3e50;
    }

/* Prepayment Alert */
.prepayment-alert {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #155724;
}

    .prepayment-alert strong {
        font-size: 1.2rem;
    }

/* Target Bills Block */
.target-bills-block {
    margin: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ffcc80;
    border-radius: 12px;
}

.target-bills-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.target-bill-link {
    padding: 8px 14px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #495057;
    border-radius: 8px;
    color: #2c3e50 !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    background-color: orange;
    color:white;
}

    .target-bill-link:hover {
        background: #fff8e1;
        border-color: #ffb74d;
        text-decoration: none;
        color: #2c3e50 !important;
    }

    .target-bill-link:last-child {
        margin-bottom: 0;
    }

/* Bill Block */
.bill-block {
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

    .bill-block.bill-paid {
        background: linear-gradient(135deg, #f0fff4, #e6f7ed);
        border-color: #b2dfdb;
    }

.bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .bill-row + .bill-row {
        margin-top: 6px;
    }

.bill-label {
    font-size: 0.82rem;
    color: #6c757d;
}

.bill-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
}

.bill-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: #dc3545;
}

.bill-block.bill-paid .bill-total {
    color: #28a745;
}

.btn-bill-action {
    background: #28a745;
    color: #fff !important;
    border: none;
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

    .btn-bill-action:hover {
        background: #1e7e34;
        color: #fff !important;
    }

.btn-history {
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 4px 14px;
    font-size: 0.75rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

    .btn-history:hover {
        background: #e9ecef;
        color: #495057;
    }

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

    .modal-header .modal-title {
        font-weight: 600;
        color: #2c3e50;
    }

.modal-body table {
    margin-top: 4px;
}

/* Payments Page */
.payment-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
}

.payment-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}


.memberpay-block {
    background-color: #fffcfc;
}

.water-counter-block {
    background-color: #fafaff;
}

.electric-counter-block {
    background-color: #fafffa;
}



@media (max-width: 1300px) {
    .left-menu-div.collapsed .collapse-menu-btn {
        left: 0;
    }
}

@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
        width: 100%;
    }

    .container, .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hamburger-btn {
        display: block;
    }

        .hamburger-btn.user-hidden {
            display: none !important;
        }

    .menu-overlay {
        display: none;
    }

    .collapse-menu-btn {
        display: none !important;
    }

    .f-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .left-menu-div {
        max-height: 0;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        left: 0 !important;
        right: 0 !important;
        display: none !important;
    }

        .left-menu-div.menu-open {
            max-height: 100vh;
            display: block !important;
            overflow-y: auto;
            position: relative !important;
            z-index: 1060 !important;
        }

        .left-menu-div.user-always-open {
            max-height: 100vh;
            display: block !important;
            overflow-y: auto;
            position: relative !important;
            z-index: 1060 !important;
        }

    .menu-overlay.menu-open {
        display: block !important;
    }

    .menu-overlay.user-hidden {
        display: none !important;
    }

    .menu-user-row {
        display: flex !important;
        gap: 0 !important;
    }

        .menu-user-row a {
            flex: 1 !important;
            text-align: center !important;
        }

    .main-menu {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

        .main-menu li {
            padding: 4px 15px;
            margin: 0 !important;
            width: 100% !important;
            box-sizing: border-box;
        }

            .main-menu li a {
                display: block;
                width: 100% !important;
                padding: 2px 0;
            }

    /*    .main-menu hr {
        margin: 0 !important;
    }
*/
    .main-content {
        height: auto !important;
        min-height: 100vh;
        border: none !important;
        padding-top: 5px;
    }

        .main-content > div {
            margin: 5px !important;
            padding: 0 10px;
        }

        .main-content h1,
        .main-content h2,
        .main-content h3,
        .main-content h4,
        .main-content h5 {
            padding-left: 5px;
        }

        .main-content a,
        .main-content div,
        .main-content dl {
            /*padding-left: 0;*/
        }

    h1 {
        font-size: 1.4rem;
        word-break: break-word;
    }

    h2 {
        font-size: 1.2rem;
        word-break: break-word;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.95rem;
    }

    .table {
        font-size: 0.85rem;
    }

        .table th,
        .table td {
            padding: 4px 6px;
            white-space: nowrap;
        }

    .billTable {
        font-size: 0.8rem;
        width: 100%;
    }

        .billTable tr th,
        .billTable tr td {
            padding: 4px 6px;
        }

    .GardenPlotTable tr td {
        display: block;
        width: 100% !important;
        text-align: left !important;
        padding: 2px 5px !important;
    }

        .GardenPlotTable tr td:nth-child(2n+1) {
            background: #f5f5f5;
            margin-top: 5px;
        }

    .ownerTable tr td {
        display: block;
        width: 100% !important;
        text-align: left !important;
        padding: 2px 5px !important;
    }

        .ownerTable tr td:nth-child(2n+1) {
            background: #f5f5f5;
            margin-top: 5px;
        }

    .ownerTable tr {
        display: block;
        margin-bottom: 5px;
    }

    .assignOwnerDiv,
    .valuesDiv {
        width: 100% !important;
        border-radius: 10px;
        padding: 8px;
    }

    .waterBill {
        width: 100% !important;
    }

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

    .form-control {
        font-size: 16px;
    }

    .btn,
    input[type="submit"],
    button {
        font-size: 16px;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .modal-dialog {
        margin: 10px;
    }

    .col-md-4,
    .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    img[height] {
        max-width: 100%;
        height: auto !important;
    }

    .badge-warning {
        display: inline-block;
        padding: 3px 8px;
    }

    dl.row {
        display: block;
    }

        dl.row dt,
        dl.row dd {
            display: block;
            width: 100% !important;
            padding: 2px 0;
        }

        dl.row dt {
            font-weight: bold;
            color: #777;
        }

    .scrol150,
    .scrol200,
    .scrol250 {
        max-height: 200px !important;
        overflow-x: auto;
    }

    .bordered {
        padding: 8px;
        border-radius: 8px;
    }

    .pay-nav {
        gap: 4px 10px;
        font-size: 0.8rem;
    }

        .pay-nav a,
        .pay-nav b {
            font-size: 0.8rem;
        }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

        .search-form input[type="text"] {
            min-width: unset;
            width: 100%;
        }

    html {
        font-size: 14px;
    }

    .left-menu-div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .table th,
    .table td {
        padding: 3px 4px;
        font-size: 0.8rem;
    }

    .billTable {
        font-size: 0.75rem;
    }

        .billTable tr th,
        .billTable tr td {
            padding: 3px 4px;
        }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions {
        flex-direction: column;
    }

    .card-box {
        padding: 12px;
    }

    .owner-info-grid {
        grid-template-columns: 1fr;
    }

    .plot-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .plot-body {
        padding: 14px 16px;
    }

    .bill-block {
        padding: 12px 14px;
    }

    .lkowner-tabs .nav-link {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    #allPlotsMap {
        width: 100%;
        height: 140px;
    }

    .water-counter-body {
        grid-template-columns: repeat(2, 1fr);
    }


    .owner-info-grid {
        flex-direction: column;
        gap: 4px;
    }

    .owner-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .owner-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .owner-name {
        font-size: 0.9rem;
        color: #495057;
        text-shadow: none;
    }

    .owner-info-item {
        font-size: 0.7rem;
    }

    .login-partial {
        display: none;
    }
}


/* ===== Custom Login Page ===== */
.login-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 104px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.login-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 6px;
}

.login-subtitle {
    color: #777;
    margin: 0;
    font-size: 1.05rem;
}

.form-title {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 16px;
}

hr {
    margin-bottom: 20px;
    border-color: #e0e0e0;
}

.login-card .form-floating > .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

    .login-card .form-floating > .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.18);
    }

.btn-login {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #0a58ca, #084298);
        box-shadow: 0 4px 14px rgba(13,110,253,0.35);
        color: #fff;
    }

.validation-summary {
    margin-bottom: 16px;
}

.validation-summary {
    margin-bottom: 16px;
}

/* ===== Custom Change Password Page ===== */
.change-password-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.change-password-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
}

.change-password-header {
    text-align: center;
    margin-bottom: 28px;
}

    .change-password-header h2 {
        font-size: 1.5rem;
        color: #333;
        margin: 0 0 6px;
    }

.change-password-subtitle {
    color: #777;
    margin: 0;
    font-size: 1rem;
}

.form-title {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 16px;
}

.btn-change-password {
    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
}

    .btn-change-password:hover {
        background: linear-gradient(135deg, #146c43, #0f5c37);
        box-shadow: 0 4px 14px rgba(25,135,84,0.35);
        color: #fff;
    }

.btn-back {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

    .btn-back:hover {
        background: linear-gradient(135deg, #5a6268, #4e555b);
        color: #fff;
    }

.change-password-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.success-message {
    color: #198754;
    background-color: #d1e7dd;
    border-color: #badbcc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}


/* ===== Custom Logout Page ===== */
.logout-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.logout-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 40px 36px 32px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.logout-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.logout-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 8px;
}

.logout-message {
    color: #777;
    font-size: 1rem;
    margin: 0 0 28px;
}

.logout-actions form {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

    .logout-actions form .btn-custom {
        border-radius: 8px;
        padding: 10px 18px;
        font-size: 0.95rem;
        font-weight: 500;
        min-width: 120px;
        flex: 1;
        max-width: none;
        white-space: nowrap;
        color: #fff;
        text-decoration: none;
    }

    .logout-actions form .btn-secondary.btn-custom {
        color: #fff !important;
    }


.validation-summary {
    margin-bottom: 16px;
}


@media (max-width: 576px) {
    .water-counter-body {
        grid-template-columns: 1fr 1fr;
        gap: 6px 8px;
    }

    .water-counter-actions {
        width: 100%;
    }

    .btn-wc {
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 8px 8px;
        font-size: 0.74rem;
    }

    .btn-bill-action {
        display: block;
        text-align: center;
        width: 100%;
        padding: 8px;
        font-size: 0.82rem;
    }

    .plot-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px 8px;
    }

    .prepayment-alert {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

        .prepayment-alert strong {
            font-size: 1.05rem;
        }

    .bill-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .lkowner-tabs .nav-tabs {
        margin-left: 0;
    }

    .lkowner-tabs .tab-content {
        margin-left: 0;
    }

    .lkowner-tabs .nav-tabs {
        margin-left: 0;
    }

    .lkowner-tabs .tab-content {
        margin-left: 0;
    }

    .logout-card {
        padding: 28px 20px 22px;
    }

        .logout-card form {
            flex-direction: column;
        }

    .btn-custom {
        width: 100%;
    }

    .login-card {
        padding: 28px 20px 22px;
    }

    .login-header h2 {
        font-size: 1.25rem;
    }

    .change-password-card {
        padding: 28px 20px 22px;
    }

    .change-password-header h2 {
        font-size: 1.25rem;
    }

    .login-partial {
        display: none;
    }
}
