    /* Global Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #4a9b8e 0%, #6fb33f 100%);
        min-height: 100vh;
        padding: 20px;
    }

    /* ===== LOGIN CARD STYLES ===== */
    .login-container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 20px;
    }

    .login-card {
        max-width: 450px;
        width: 100%;
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .login-header {
        background: linear-gradient(135deg, #4a9b8e 0%, #6fb33f 100%);
        color: white;
        padding: 40px 30px;
        text-align: center;
    }

    .login-title {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .login-subtitle {
        opacity: 0.9;
        font-size: 16px;
    }

    .login-body {
        padding: 40px 30px;
    }

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

    .form-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #2d3436;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-input {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        font-size: 16px;
        font-family: inherit;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }

    .form-input:focus {
        outline: none;
        border-color: #6fb33f;
        background: white;
        box-shadow: 0 0 0 3px rgba(111, 179, 63, 0.1);
    }

    .form-input::placeholder {
        color: #636e72;
    }

    .login-button {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: bold;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(111, 179, 63, 0.3);
    }

    .forgot-password {
        text-align: center;
        margin-top: 20px;
    }

    .forgot-password a {
        color: #4a9b8e;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

    /* =====  GROUP CARD STYLES ===== */
    .group-card {
        max-width: 600px;
        margin: 0 auto;
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .card-header {
        background: linear-gradient(135deg, #4a9b8e 0%, #6fb33f 100%);
        color: white;
        padding: 30px;
        text-align: center;
    }

    .member-name {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .member-email {
        opacity: 0.9;
        font-size: 16px;
    }

    .card-body {
        padding: 30px;
    }

    .balance-section {
        text-align: center;
        margin-bottom: 30px;
        padding: 25px;
        background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
        border-radius: 15px;
        color: white;
    }

    .current-balance-label {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .balance-amount {
        font-size: 48px;
        font-weight: bold;
        margin: 10px 0;
        color: white;
    }

    .next-due {
        background: linear-gradient(135deg, #6fb33f 15%, #4a9b8e 85%);
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 25px;
        text-align: center;
        color: white;
    }

    .next-due h3 {
        color: white;
        margin-bottom: 15px;
        font-size: 20px;
    }

    .due-breakdown {
        background: rgba(255,255,255,0.1);
        padding: 15px;
        border-radius: 8px;
        margin: 15px 0;
    }

    .breakdown-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 8px 0;
        color: rgba(255,255,255,0.9);
        font-size: 14px;
    }

    .breakdown-amount {
        font-weight: bold;
        color: white;
    }

    .breakdown-divider {
        height: 1px;
        background: rgba(255,255,255,0.3);
        margin: 12px 0;
    }

    .breakdown-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        font-size: 16px;
        font-weight: bold;
    }

    .total-amount {
        font-size: 24px;
        font-weight: bold;
        color: white;
    }

    .due-date {
        color: rgba(255,255,255,0.9);
        font-size: 16px;
        margin-top: 10px;
    }

    .activity-section {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .activity-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .activity-title {
        font-size: 18px;
        font-weight: bold;
        color: #2d3436;
    }

    .period-badge {
        background: #6fb33f;
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-weight: bold;
        font-size: 14px;
    }

    .activity-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #e9ecef;
    }

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

    .item-info {
        flex: 1;
    }

    .item-description {
        font-weight: 500;
        color: #2d3436;
        margin-bottom: 4px;
    }

    .item-date {
        font-size: 12px;
        color: #636e72;
    }

    .item-amount {
        font-weight: bold;
        color: #6fb33f;
        font-size: 16px;
        margin-right: 10px;
    }

    .status-badge {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .status-confirmed {
        background: rgba(111, 179, 63, 0.15);
        color: #4a7c59;
    }

    .status-pending {
        background: #fff3cd;
        color: #856404;
    }

    .summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .summary-item {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .summary-label {
        font-size: 12px;
        color: #636e72;
        margin-bottom: 5px;
        text-transform: uppercase;
        font-weight: 500;
    }

    .summary-value {
        font-size: 18px;
        font-weight: bold;
        color: #2d3436;
    }

    /* ===== RESPONSIVE STYLES ===== */
    @media (max-width: 600px) {
	    body {
        padding: 5px;
    }

    .main_container {
        margin: 5px;
        padding: 15px;
        border-radius: 8px;
    }

        .login-card, .billing-card {
            margin: 10px;
            border-radius: 15px;
        }
        
        .login-header, .card-header {
            padding: 30px 20px;
        }
        
        .login-body, .card-body {
            padding: 30px 20px;
        }
        
        .login-title {
            font-size: 28px;
        }
        
        .balance-amount {
            font-size: 36px;
        }
    }
    /* main settings */
    .main_container{
  background-color: white;
  border-radius: 12px; /* rounded corners */
  margin: 20px; /* space around container - shows gradient */
  padding: 20px; /* space inside container for content */
  }
  .bl_head1-b{
	  color:#166d79;font-weight:bold;}
  .bl_head2-b{
	  color:#166d79;font-weight:normal;}

	  /* Item List Section */
.items-section {
    background: #f8f9fa;
    background: #f0f8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    color: #166d79;
    font-weight: bold;
    font-size: 20px;
}

.add-item-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 179, 63, 0.3);
}

/* Item Card */
.item-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid #e9ecef;
    text-align:center;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.item-badge {
    display: inline-block;
    background: rgba(111, 179, 63, 0.15);
    color: #4a7c59;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.item-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin: 12px 0;
}

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

.photo-count {
    color: #636e72;
    font-size: 14px;
    flex: 1;
}

.edit-btn, .delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #e9ecef;
    color: #2d3436;
}

.edit-btn:hover {
    background: #dfe2e5;
}

.delete-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.2);
}

@media (max-width: 768px) {
	body {
        padding: 5px;
    }
    
    .main_container {
        margin: 5px;
        padding: 15px;
        border-radius: 8px;
    }
    .items-section {
        padding: 15px;
        margin: 10px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .add-item-btn {
        width: 100%;
    }
    .logo-header img {
        max-width: 60%; /* or 70%, adjust as needed */
        height: auto;
    }
    .top-nav {
        position: relative !important;
        top: 1px;
        right: 0px;
        align-items: center;
        padding: 0px;
	margin-top:-20px;
	margin-right:-20px;
    }
}
.form-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #166d79;
    box-shadow: 0 4px 12px rgba(22, 109, 121, 0.15);
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel, .btn-save {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: #e9ecef;
    color: #2d3436;
}

.btn-cancel:hover {
    background: #dfe2e5;
    transform: translateY(-2px);
}

.btn-save {
    background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 179, 63, 0.3);
}

@media (max-wdith: 768px){
	.search-filters {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: left !important;
        width: auto !important;
        gap: 10px !important;
    }
}

.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 1000;
}

.welcome-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-login-btn {
    background: none;
    border: none;
    color: #FFD700; /* Gold/yellow */
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-login-btn:hover {
    color: #FFF; /* Changes to white on hover */
}

.request-pending {
    opacity: 0.8 !important;
    cursor: default !important;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%) !important;
    pointer-events: none !important;
}
.on-waitlist {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
    opacity: 0.8 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.request-approved {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
    opacity: 0.8 !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Navigation Menu - Hamburger Only */
/* Navigation Menu - Hamburger Only */
.nav-container {
    position: absolute;
    top: 50px;
    right: 5px;
    margin-top:10px;
    z-index: 100;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    border: 2px solid #166d79;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #166d79;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border: 2px solid #166d79;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.nav-menu.active {
    display: block;
    max-height: 400px;
    padding: 8px 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #166d79;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
    color: white;
}

/* Customer Header Card - Tab Style */
.customer-header-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #4a9b8e 100%);
    border-radius: 12px 12px 0 0; /* Only round top corners */
    padding: 20px;
    margin-top: 20px; /* Space between customer sections */
    margin-bottom: 0; /* No gap between header and items */
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.customer-header-card .customer-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.customer-header-card .customer-contact {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

/* Customer Items Container - Rounded bottom with padding */
.customer-items-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px; /* Add padding around items */
    background: white; /* White background like the item cards */
    border-radius: 0 0 12px 12px; /* Round bottom corners */
    margin-bottom: 20px; /* Space before next customer section */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    color: #2d3436; /* Reset text color to dark */

}

@media (min-width: 768px) {
    .customer-items-list.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .customer-items-list.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Job Card Specific Styles */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.job-address {
    font-size: 20px;
    font-weight: bold;
    color: #166d79;
    text-align: left;
}

.job-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.job-column {
    background: rgba(111, 179, 63, 0.08);
    padding: 12px;
    border-radius: 8px;
}

.column-title {
    font-size: 14px;
    font-weight: bold;
    color: #166d79;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(111, 179, 63, 0.2);
}

.info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: #636e72;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    color: #2d3436;
    font-weight: 600;
}

/* Responsive - stack on mobile */
@media (max-width: 600px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-header .edit-btn {
        width: 100%;
    }
    
    .job-two-column {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.job-address-expand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.expand-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #166d79;
}

.expand-arrow.expanded {
    transform: rotate(-90deg);
}
/* Routes Section */
.routes-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

/* Route Cards Container - Default 1 per row */
#routesList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Grid view - responsive columns */
#routesList.grid-view {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #routesList.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    #routesList.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Route Card */
.route-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.route-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Route Header */
.route-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.route-title-section {
    flex: 1;
}

.route-id {
    color: #166d79;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.route-name {
    color: #2d3436;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.route-date {
    color: #636e72;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.open-route-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.open-route-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 179, 63, 0.4);
}

/* Metrics Grid */
.route-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.metric-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.metric-label {
    font-size: 11px;
    color: #636e72;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.metric-value {
    font-size: 20px;
    font-weight: bold;
    color: #166d79;
}

.metric-value.small {
    font-size: 16px;
}

/* Team Section */
.route-team {
    background: rgba(111, 179, 63, 0.08);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #6fb33f;
}

.team-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.team-row:last-child {
    margin-bottom: 0;
}

.team-label {
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 70px;
}

.team-name {
    font-size: 14px;
    color: #2d3436;
    font-weight: 500;
}

.team-names {
    font-size: 14px;
    color: #2d3436;
}

/* Status Badge (optional, if you want to show route status) */
.route-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-planned {
    background: rgba(111, 179, 63, 0.15);
    color: #4a7c59;
}

.status-active {
    background: rgba(74, 155, 142, 0.15);
    color: #166d79;
}

.status-completed {
    background: rgba(99, 110, 114, 0.15);
    color: #636e72;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .route-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .metric-box {
        padding: 10px 8px;
    }

    .metric-value {
        font-size: 18px;
    }

    .route-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .route-header {
        flex-direction: column;
        gap: 12px;
    }

    .open-route-btn {
        width: 100%;
    }

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

/* Route Edit Buttons */
.route-edit-buttons {
    display: flex;
    gap: 8px;
}

.save-route-btn,
.cancel-route-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.save-route-btn {
    background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
    color: white;
}

.save-route-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 179, 63, 0.4);
}

.cancel-route-btn {
    background: #e9ecef;
    color: #2d3436;
}

.cancel-route-btn:hover {
    background: #dfe2e5;
    transform: translateY(-2px);
}

/* Form inputs in route cards */
.route-name .form-input,
.route-date .form-input {
    padding: 8px 12px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    width: 100%;
    margin-top: 4px;
}

.route-name .form-input {
    font-size: 18px;
    font-weight: 600;
}

.metric-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #166d79;
}

.metric-input:focus {
    outline: none;
    border-color: #6fb33f;
    box-shadow: 0 0 0 3px rgba(111, 179, 63, 0.1);
}

@media (max-width: 480px) {
    .route-edit-buttons {
        flex-direction: column;
        width: 100%;
    }

    .save-route-btn,
    .cancel-route-btn {
        width: 100%;
    }
}
div#itemsList.grid-view {
    display: grid !important;
}

div#itemsList.grid-view {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    div#itemsList.grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    div#itemsList.grid-view {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===== ROUTE DETAIL PAGE STYLES ===== */

/* Route Header Section */
.route-header-section {
    background: linear-gradient(135deg, #4a9b8e 0%, #6fb33f 100%);
    background:  linear-gradient(135deg, #8b5cf6 0%, #4a9b8e 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.route-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.route-title-info {
    flex: 1;
}

.route-id-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.route-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.route-date-display {
    font-size: 18px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.25);
}

/* replace here */
/* Route Metrics Grid */
.route-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.route-detail-metric {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.route-detail-metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.route-detail-metric-value {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

/* Team Card in Header */
.route-detail-metric.team-card {
    text-align: left;
}

.route-detail-metric .team-card-value {
    font-size: 14px !important;
    line-height: 1.6;
    font-weight: normal !important;
}

.team-member {
    margin-bottom: 4px;
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-role {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.team-name {
    color: white;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #e9ecef;
    color: #2d3436;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    background: #dfe2e5;
    transform: translateX(-4px);
}

/* Jobs Section */
.jobs-section {
    margin-top: 30px;
}

/* Route Job Cards Container */
#routeJobsList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Route Job Card */
.route-job-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.route-job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.route-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.route-job-info {
    flex: 1;
}

.route-job-id {
    color: #166d79;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.route-job-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(111, 179, 63, 0.15);
    color: #4a7c59;
    margin-left: 8px;
}

.route-job-addresses {
    margin-bottom: 12px;
}

.route-job-address-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.route-job-address-icon {
    font-size: 18px;
    min-width: 20px;
}

.route-job-address-content {
    flex: 1;
}

.route-job-address-label {
    font-size: 11px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.route-job-address-text {
    font-size: 16px;
    color: #2d3436;
    line-height: 1.4;
    font-weight: 500;
}

.route-job-address-text.empty {
    color: #636e72;
    font-style: italic;
    font-weight: normal;
}

.route-job-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.route-job-customer {
    color: #636e72;
    font-size: 13px;
}

.route-job-customer-name {
    color: #2d3436;
    font-weight: 600;
}

.route-job-phone {
    color: #636e72;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-job-phone-number {
    color: #2d3436;
    font-weight: 600;
}

.route-job-preftime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(111, 179, 63, 0.1);
    border-radius: 8px;
    color: #4a7c59;
    font-size: 14px;
    font-weight: 600;
}

.route-job-preftime.no-time {
    color: #636e72;
    font-style: italic;
}

.route-job-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.route-job-reorder-btn {
    flex: 1;
    padding: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.route-job-reorder-btn:hover {
    background: #e9ecef;
    border-color: #dfe2e5;
}

.route-job-reorder-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.route-job-remove-btn {
    padding: 10px 16px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-job-remove-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .route-header-section {
        padding: 20px;
    }

    .route-title {
        font-size: 24px;
    }

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

    .route-job-header {
        flex-direction: column;
        gap: 12px;
    }

    .view-job-btn {
        width: 100%;
    }

    .route-job-actions {
        flex-direction: column;
    }

    .route-job-contact {
        flex-direction: column;
        gap: 6px;
    }
}

.back-btn-gradient {
    position: absolute;
    top: 20px;
    left: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #6fb33f 0%, #4a9b8e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor:pointer;
}

.back-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 179, 63, 0.3);
}

@media (max-width: 768px) {
.back-btn-gradient {
    top: 5px;
    z-index:9999;
  }
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #4a9b8e 0%, #6fb33f 100%);
    color: white;
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-branding {
    margin-bottom: 20px;
}

.footer-operated-by {
    display: block;
    font-size: 14px;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 15px;
}

.footer-logo {
    height: 80px;
    max-width: 90%;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-copyright {
    font-size: 14px;
    margin: 20px 0;
    opacity: 0.9;
}

.footer-install {
    margin-top: 25px;
}

.install-pwa-btn {
    background: white;
    color: #166d79;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.install-pwa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.install-help-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.install-help-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer {
        padding: 30px 15px 15px 15px;
    }

    .footer-logo {
        height: 60px;
    }
}

