
:root{
    --primary-brown:#7A4B35;
    --light-beige:#EDE2D8;
    --background:#F7F7F7;
    --text-dark:#5F5F5F;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F7F7F7 !important;
}

/*Loadert */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    /* When hidden ensure it does not block pointer events so page elements remain clickable */
    pointer-events: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .loader-overlay.show {
        display: flex;
        /* Only when visible should it intercept pointer events */
        pointer-events: auto;
    }

.loader-content {
    text-align: center;
}

.loader-image {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;    
}

.loader-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader-image {
        animation: none;
        opacity: 0.7;
    }
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
}


body {
    background: #e9e9e9;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}
a {
    text-decoration:none !important;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding:0;
    margin:0;
}

.mobile-container {
    width: 100%;
    max-width: 400px;
    /*height: 100vh;*/
    margin: 0 auto;
    background: var(--background);
    position: relative;
    overflow: visible;
}
    /*text-align:center*/

/* Header */
.app-header{
    background:var(--primary-brown);
    color:#fff;
    height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

.app-header h4{
    margin:0;
    font-weight:400;
    letter-spacing:.5px;
}

.power-btn{
    position:absolute;
    right:15px;
    font-size:24px;
    color:white;   
}

/* Vehicle Slider */
.vehicle-slider{
    padding:22px 15px 5px;
}

.vehicle-card{
    background:var(--light-beige);
    border-radius:10px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.vehicle-title{
    color:var(--primary-brown);
    font-size:22px;
    font-weight:500;
}

.vehicle-no{
    color:#777;
    font-size:14px;
}

.vehicle-icon{
    width:54px;
    height:54px;
    object-fit:contain;
}

.menu-icon-img{
    width:58px;
    height:58px;
    object-fit:contain;
}

.slider-dots{
    text-align:center;
    margin:12px;
}

.slider-dots span{
    display:inline-block;
    width:10px;
    height:10px;
    border:2px solid var(--primary-brown);
    border-radius:50%;
    margin:0 4px;
}

.carousel-indicators {
    margin-bottom: 25px;
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    border: 2px solid var(--primary-brown) !important;
    background: transparent !important;
    opacity: 1 !important;
    margin: 0 4px !important;
}

.carousel-indicators .active {
    background: var(--primary-brown) !important;
}

/* Menu */
.menu-grid{
    padding:10px 20px 10px;
}

.menu-item{
    text-align:center;
    margin-bottom:35px;
    cursor:pointer;

}

/* Ensure menu items are positioned above non-interactive elements and accept pointer events */
.menu-item {
    position: relative;
    z-index: 110;
    pointer-events: auto;
}

.menu-icon{
    font-size:55px;
    color:var(--primary-brown);
    line-height:1;
}

.menu-title{
    margin-top:10px;
    font-size:16px;
    color:#555;

}

/* Fixed Footer */
.app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    z-index: 100;
}

.home-btn {
    position: absolute;
    top: -22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-brown);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.home-btn > i {
    vertical-align: middle;
    margin-left: 0px;
}

        /* Driver Page */

        .driver-header {
            background: var(--primary-brown);
            color: #fff;
            height: 58px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        /* Back button */
        .back-btn {
            position: absolute;
            left: 15px;
            color: #fff;
            font-size: 22px;
            display: flex;
            align-items: center;
        }

        .driver-header > a {
            color: white;
        }

        .driver-header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .driver-header-title {
            font-size: 20px;
            font-weight: 400;
        }

        .driver-header-icon {
            width: 28px;
            text-align: center;
            display: block;
            margin-right: 10px;
        }



        .add-btn {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
                    color: #fff;
            cursor: pointer;
            line-height: 1;
            font-size:22px;
        }

        .search-section {
            padding: 12px 14px 0;
        }

        .search-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-box {
            flex: 1;
            background: #d3d3d3;
            border-radius: 8px;
            height: 40px;
            display: flex;
            align-items: center;
            padding: 0 15px;
        }

            .search-box i {
                color: #777;
                font-size: 20px;
            }

            .search-box input {
                border: none;
                background: transparent;
                width: 100%;
                outline: none;
                padding-left: 12px;
                color: #555;
                font-size: 16px;
            }

        .calendar-btn {
            font-size: 28px;
            color: #888;
            cursor: pointer;
        }

        .driver-list {
            padding: 12px 0 12px;
        }

        .driver-list-container {
        }

        .driver-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px;
            margin: 5px;
            border-bottom: 1px solid #d0d0d0;
        }

            .driver-item.active {
                background: var(--light-beige);
                border-radius: 6px;
            }

        .driver-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .driver-avatar {
            font-size: 20px;
            color: var(--primary-brown);
        }

        .driver-name {
            font-size: 16px;
            color: #555;
        }

        .driver-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .driver-details {
            text-align: right;
            line-height: 1.2;
        }

        .driver-acre {
            color: #5d260f;
            font-weight: 700;
            font-size: 14px;
        }

        .driver-amount {
            color: #666;
            font-size: 16px;
        }

        .arrow-icon {
            color: #8c8c8c;
            font-size: 20px;
        }
        /* Form-specific styling matching the layout aesthetic */
        .form-content {
            padding: 25px 20px 40px;
        }

        .form-field-group {
            position: relative;
            margin-bottom: 20px;
        }

        .form-underlined-input {
            width: 100%;
            border: none;
            border-bottom: 1px solid var(--text-dark);
            background: transparent;
            padding-bottom: 6px;
            outline: none;
            color: #787878;
            font-size: 16px;
        }

            .form-underlined-input::placeholder {
                color: #999;
            }
        /* Select field formatting */
        select.form-underlined-input {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            cursor: pointer;
        }

.input-lable {
    color: #8c8c8c;
    font-size: 12px
}

.select-caret-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-brown);
    pointer-events: none;
    font-size: 12px;
}
        /* Value summaries */
        .summary-block {
            text-align: center;
            margin-top: 35px;
        }

        .summary-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 0;
        }

.summary-label {
    font-size: 15px;
    color: #777;
    margin-bottom: 2px;
    text-align: center;
}
        /* Action Buttons */
        .action-btn-row {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .btn-action {
            background: var(--primary-brown);
            color: #fff;
            border: none;
            padding: 8px 38px;
            border-radius: 25px;
            font-size: 18px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            transition: background-color 0.2s ease;
        }

            .btn-action:hover {
                opacity: 0.95;
                color: #fff;
            }

        .select-caret-icon {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-brown);
            pointer-events: none;
            font-size: 12px;
        }

.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    display: none;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

    .suggestion-item:hover {
        background: #f5f5f5;
    }

/* Report Page */

.report-wrapper {
    padding: 18px 15px 10px;
}

/* Summary Card */

.summary-card {
    background: #e2e2e2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
}

.summary-top {
    padding: 18px 15px;
    text-align: center;
}

.summary-title {
    font-size: 15px;
    color: #666;
}

.summary-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #666;
}

.summary-middle {
    display: flex;
    border-top: 1px solid #c8c8c8;
}

.summary-box {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
}

    .summary-box:first-child {
        border-right: 1px solid #c8c8c8;
    }

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-amount {
    font-size: 18px;
    font-weight: 700;
    color: #666;
}

.summary-footer {
    background: #8f8f8f;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* Report Cards */

.report-card {
    background: var(--light-beige);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.report-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.report-text {
    flex: 1;
    text-align: center;
    color: #666;
    line-height: 1.1;
}

.report-title {
    font-size: 24px;
    font-weight: 700;
}

.report-subtitle {
    font-size: 22px;
    padding-top:8px;
    font-weight:normal;
}

.report-mobile {
    width: 260px;
    min-height: 480px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #cfcfcf;
}

/* Farmer Header */
.farmer-header {
    background: var(--primary-brown);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px 10px;
}

.farmer-name {
    font-size: 20px;
    font-weight: 400;
    margin-left:30px;
}

.balance-section {
    text-align: right;
    line-height: 1.1;
}

.balance-amount {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    color: #7c7c7c;
}
.driver-right {
    display: flex;
    justify-content: flex-end;
}

.driver-details {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.arrow-icon {
    font-size: 18px;
    color: #999;
}


.balance-text {
    font-size: 14px;
}
/* Android Style Tabs */
.page-content {
    overflow-y: auto;
    overflow-x: visible;
    /* Prevent content from being hidden behind footer */
    padding-bottom: 50px;
    -webkit-overflow-scrolling: touch;
}

.page-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 20px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: all .25s ease;
    user-select: none;
}

    .tab-item.active {
        color: var(--primary-brown);
    }

        /* Android indicator */

        .tab-item.active::after {
            content: "";
            position: absolute;
            left: 20%;
            bottom: 0;
            width: 60%;
            height: 3px;
            background: var(--primary-brown);
            border-radius: 3px 3px 0 0;
        }

    .tab-item:active {
        background: rgba(0,0,0,0.04);
    }

/* Remove divider */

.tab-divider {
    display: none;
}
/* Cards */

.service-container {
    padding: 0 18px 10px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: 0 8px 14px rgba(0,0,0,.12);
}

.service-header {
    background: var(--light-beige);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.service-date {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.service-time {
    font-size: 14px;
    font-weight: normal;
}

.service-body {
    padding: 14px 22px 18px;
    position: relative;
}

.service-line {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.delete-btn {
    border: none;
    background: none;
    color: var(--primary-brown);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    transition: .2s;
}

    .delete-btn:hover {
        transform: scale(1.1);
    }



/* Bottom Sheet From date - To date*/

.date-sheet {
    height: 60% !important;
    border-radius: 20px 20px 0 0;
}

    .date-sheet::before {
        content: '';
        width: 50px;
        height: 5px;
        background: #ccc;
        border-radius: 10px;
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .date-sheet .offcanvas-header {
        margin-top: 10px;
    }

    .date-sheet .offcanvas-title {
        color: var(--primary-brown);
        font-weight: 600;
    }

.apply-filter-btn {
    background: var(--primary-brown);
    color: #fff;
    border: none;
}

    .apply-filter-btn:hover {
        background: var(--primary-brown);
        color: #fff;
    }

.calendar-btn {
    font-size: 22px;
    color: #888;
    cursor: pointer;
    padding: 10px 10px 10px 0;
}

.success-msg {
    color: green;
    font-weight: 600;
}

.error-msg {
    color: red;
    font-weight: 600;
}

.list-icon {
    width:25px;
}
#MainContent_lblResult {
    margin-top: 0 !important;
    margin-bottom: 5px;
    text-align: center !important;
}
::after, ::before {
    box-sizing: border-box;
    text-align: center !important;
}
#MainContent_lblCurrentBalance {
    display: inline-block;
    width: 100%;
    text-align: center;
}
#MainContent_lblCurrentAdvance {
    display: inline-block;
    width: 100%;
    text-align: center;
}
#MainContent_lblPrevBalance {
    display: inline-block;
    width: 100%;
    text-align: center;
}
#MainContent_lblAdvance {
    display: inline-block;
    width: 100%;
    text-align: center;
}
#MainContent_ddlService {
    display: inline-block;
    width: 100%;
    text-align: center;
}
#MainContent_ddlVehicle{
text-align: center;

}

.form-check-input:checked {
    background-color: #7a4b35 !important;
    border-color: #7a4b35 !important;
}

.form-check-input {
    margin-top:10px !important;
}
.form-switch .form-check-input {
    border-color: #7a4b35 !important;
}
.form-switch .form-check-input:focus {
    border-color: #7a4b35 !important;
}