/* Scoped styles migrated from legacy page templates. Shared unlayered theme rules take precedence. */
@layer idb-legacy-pages {
/* abe-add-leave.php */

body.page-template-abe-add-leave .notice-success{
    padding: 10px;
    background: #d4edda;
    color: #155724;
    margin-bottom: 20px;
    border-radius: 5px;
}
body.page-template-abe-add-leave form label{
    display: block;
    margin-top: 15px;
}
body.page-template-abe-add-leave form select,
body.page-template-abe-add-leave form input{
    width: 100%;
    padding: 6px;
    margin-top: 4px;
}
body.page-template-abe-add-leave form button{
    margin-top: 15px;
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
}


/* abe-assign-area.php */

    body.page-template-abe-assign-area .abe-wrap{ max-width: 1000px; margin: 30px auto; padding: 20px; background:#fff; border:1px solid #e5e7eb; border-radius:16px; }
    body.page-template-abe-assign-area .abe-title{ font-size: 22px; margin-bottom: 16px; }
    body.page-template-abe-assign-area .abe-grid{ display:grid; grid-template-columns: 1fr; gap:16px; }
    @media (min-width: 768px){ body.page-template-abe-assign-area .abe-grid{ grid-template-columns: 1fr 1fr; } }
    body.page-template-abe-assign-area .abe-card{ padding:16px; border:1px solid #e5e7eb; border-radius:12px; }
    body.page-template-abe-assign-area .abe-label{ display:block; font-weight:600; margin-bottom:6px; }
    body.page-template-abe-assign-area select,
body.page-template-abe-assign-area button{ width:100%; padding:10px; border:1px solid #d1d5db; border-radius:10px; background:#fff; }
    body.page-template-abe-assign-area button{ cursor:pointer; }
    body.page-template-abe-assign-area .abe-btn{ background:#111827; color:#fff; border:none; }
    body.page-template-abe-assign-area .abe-btn:hover{ opacity:.9; }
    body.page-template-abe-assign-area .abe-table{ width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    border: 1px solid #d1d5db; /* Outer border */}
    
    body.page-template-abe-assign-area .abe-table thead th{
    background: #f9fafb;
    border: 1px solid #d1d5db; /* Border for header cells */
    padding: 10px;
    text-align: left;
    font-weight: 600;
}

body.page-template-abe-assign-area /* Table Body */
.abe-table tbody td{
    border: 1px solid #e5e7eb; /* Border between rows/columns */
    padding: 10px;
}
    body.page-template-abe-assign-area .abe-table th,
body.page-template-abe-assign-area .abe-table td{ border-bottom:1px solid #e5e7eb; padding:10px; text-align:left; }
    body.page-template-abe-assign-area .abe-badge{   display: inline-block; 
    padding: 2px 8px; 
    border-radius: 4px; /* Reduced from fully rounded */
    background: #f3f4f6; 
    font-size: 12px;  }
    body.page-template-abe-assign-area .abe-notice{ margin-bottom:12px; padding:10px; border-radius:8px; }
    body.page-template-abe-assign-area .abe-notice.ok{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
    body.page-template-abe-assign-area .abe-notice.err{ background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
    body.page-template-abe-assign-area .abe-actions form{ display:inline-block; }
    
    body.page-template-abe-assign-area /* General Button Styling */
.abe-btn,
body.page-template-abe-assign-area .abe-actions button{
    display: inline-block;
    width: auto; /* Auto width */
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #15803d); /* Green gradient */
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

 

body.page-template-abe-assign-area /* Hover & Focus effects */
.abe-btn:hover,
body.page-template-abe-assign-area .abe-actions button:hover{
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

body.page-template-abe-assign-area .abe-btn:active,
body.page-template-abe-assign-area .abe-actions button:active{
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.page-template-abe-assign-area /* Delete button specific style */
.abe-actions button{
    background: linear-gradient(135deg, #dc2626, #b91c1c); /* Red gradient */
}

body.page-template-abe-assign-area .abe-actions button:hover{
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}



/* abe-budget-summary.php */

body.page-template-abe-budget-summary .container{
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}
body.page-template-abe-budget-summary .filter-form{
    margin-bottom: 30px;
    text-align: center;
}
body.page-template-abe-budget-summary .filter-form select{
    padding: 6px 12px;
    font-size: 16px;
    margin-left: 10px;
}
body.page-template-abe-budget-summary .table-responsive{
    overflow-x: auto;
}
body.page-template-abe-budget-summary .budget-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #ccc;
}
body.page-template-abe-budget-summary .budget-table thead,
body.page-template-abe-budget-summary .budget-table tr,
body.page-template-abe-budget-summary .budget-table th,
body.page-template-abe-budget-summary .budget-table tbody{
    border: 1px solid #ccc;
}
body.page-template-abe-budget-summary .budget-table th,
body.page-template-abe-budget-summary .budget-table td{
    padding: 10px;
    text-align: right;
    border: 1px solid #ccc;
    white-space: nowrap;
}
body.page-template-abe-budget-summary .budget-table th{
    background-color: #343a40;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}
body.page-template-abe-budget-summary .budget-table td:first-child,
body.page-template-abe-budget-summary .budget-table th:first-child{
    text-align: left;
    background-color: #f9f9f9;
    position: sticky;
    left: 0;
    z-index: 1;
}
body.page-template-abe-budget-summary .budget-table tr:nth-child(even){
    background-color: #f2f2f2;
}
body.page-template-abe-budget-summary .budget-table tr:hover{
    background-color: #e6f7ff;
}
body.page-template-abe-budget-summary .budget-table .zero{
    color: #999;
    font-style: italic;
}


/* abe-daily-planner-summary.php */

body.page-template-abe-daily-planner-summary .abe-planner-container{ max-width: 900px; margin: 20px auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 6px 15px rgba(0,0,0,0.15); font-family: Arial, sans-serif; }
body.page-template-abe-daily-planner-summary .visit-table{ width: 100%; border-collapse: collapse; margin-top: 25px; border: 2px solid #5a8dee; }
body.page-template-abe-daily-planner-summary .visit-table th{ background: #f4f4f4; color: #000; padding: 15px; text-align: center; font-size: 15px; border: 2px solid #5a8dee; }
body.page-template-abe-daily-planner-summary .visit-table td{ padding: 15px; text-align: left; border: 2px solid #5a8dee; }
body.page-template-abe-daily-planner-summary .visit-table tbody tr:hover{ background-color: #55516e; }
body.page-template-abe-daily-planner-summary .visit-table ul{ padding: 0px; margin: 0px 0; }
body.page-template-abe-daily-planner-summary .visit-table ul li{ margin: 0px; padding: 0px;  }
body.page-template-abe-daily-planner-summary .element.style{margin: 0; padding: 0px;}

body.page-template-abe-daily-planner-summary .visit-table tbody tr:nth-child(even){
    background-color: #f9f9f9;
}

body.page-template-abe-daily-planner-summary .visit-table tbody tr:hover{
    background-color: #e8f0fe;
}


/* abe-monthly-calendar.php */

body.page-template-abe-monthly-calendar{
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f6f8fa;
    margin: 0;
    padding: 0;
}
body.page-template-abe-monthly-calendar .content-area{
    max-width: 1000px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
body.page-template-abe-monthly-calendar .calendar-title{
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
}
body.page-template-abe-monthly-calendar .calendar{
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
body.page-template-abe-monthly-calendar .calendar-header{
    display: flex;
    background: #f1f3f4;
    border-bottom: 1px solid #ddd;
}
body.page-template-abe-monthly-calendar .day-header{
    width: 14.2857%;
    padding: 15px 0;
    font-weight: 600;
    text-align: center;
    color: #555;
    border-right: 1px solid #e5e5e5;
}
body.page-template-abe-monthly-calendar .calendar-body{
    display: flex;
    flex-wrap: wrap;
}
body.page-template-abe-monthly-calendar .calendar-row{
    display: flex;
    width: 100%;
}
body.page-template-abe-monthly-calendar .day{
    width: 14.2857%;
    padding: 8px;
    min-height: 100px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    background: #fff;
    position: relative;
    vertical-align: top;
}
body.page-template-abe-monthly-calendar .day.empty{
    background: #f9f9f9;
}
body.page-template-abe-monthly-calendar .date{
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}
body.page-template-abe-monthly-calendar .current-day .date{
    background: #0078d4;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 5px;
}
body.page-template-abe-monthly-calendar .activities{
    font-size: 12px;
    text-align: left;
    overflow-y: auto;
}
body.page-template-abe-monthly-calendar .activity{
    background: #eaf4fe;
    border-left: 4px solid #0078d4;
    margin-bottom: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
body.page-template-abe-monthly-calendar .activity a{
    color: inherit;
    text-decoration: none;
}
body.page-template-abe-monthly-calendar .activity a:hover{
    text-decoration: underline;
}
body.page-template-abe-monthly-calendar .activity.open{ border-left-color: #dc3545; background: #fdeeee; }
body.page-template-abe-monthly-calendar .activity.complete{ border-left-color: #28a745; background: #e7f5e9; }
body.page-template-abe-monthly-calendar .activity.checked-in{ border-left-color: #f1c40f; background: #fff9e6; }
body.page-template-abe-monthly-calendar .activity.checked-out{ border-left-color: #0056b3; background: #eaf3ff; }

body.page-template-abe-monthly-calendar .leave-label{
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    margin-top: 5px;
    color: #fff;
    text-transform: uppercase;
}
body.page-template-abe-monthly-calendar .leave-label.al{ background-color: #007bff; }
body.page-template-abe-monthly-calendar .leave-label.ph{ background-color: #ffc107; }
body.page-template-abe-monthly-calendar .leave-label.mc{ background-color: #dc3545; }
body.page-template-abe-monthly-calendar .leave-label.el{ background-color: #28a745; }

body.page-template-abe-monthly-calendar .today-activities{
    margin-top: 40px;
}
body.page-template-abe-monthly-calendar .today-activities h3{
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}
 
body.page-template-abe-monthly-calendar .today-activities ul li a:hover{
    background-color: #e8f0fe;  /* Soft hover effect */
    transform: scale(1.02);     /* Subtle zoom */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
} 

body.page-template-abe-monthly-calendar .today-activities ul li a strong{
    
    margin-bottom: 4px;
    font-weight: 600;
    color: #0078d4;
}


body.page-template-abe-monthly-calendar .today-activities ul li a{
    text-decoration: none; /* ✅ Remove underline */
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background-color: #f5f7fa;
}




body.page-template-abe-monthly-calendar .leave-bg-al{
    background-color: #e6f0ff; /* Light blue */
}
body.page-template-abe-monthly-calendar .leave-bg-ph{
    background-color: #fff6da; /* Light yellow */
}
body.page-template-abe-monthly-calendar .leave-bg-mc{
    background-color: #ffe6e6; /* Light red */
}
body.page-template-abe-monthly-calendar .leave-bg-el{
    background-color: #e8f5e9; /* Light green */
}

@media print {
    body.page-template-abe-monthly-calendar{
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important; /* ensures background color prints */
    }
    
@media print {
    body.page-template-abe-monthly-calendar header,
body.page-template-abe-monthly-calendar footer,
body.page-template-abe-monthly-calendar .site-header,
body.page-template-abe-monthly-calendar .site-footer,
body.page-template-abe-monthly-calendar #masthead,
body.page-template-abe-monthly-calendar #colophon,
body.page-template-abe-monthly-calendar .print-hide,
body.page-template-abe-monthly-calendar nav,
body.page-template-abe-monthly-calendar .navigation,
body.page-template-abe-monthly-calendar .sidebar,
body.page-template-abe-monthly-calendar .breadcrumbs{
        display: none !important;
    }
}    
    
    
    
body.page-template-abe-monthly-calendar .print-only{
    display: none;
}
    body.page-template-abe-monthly-calendar .content-area{
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100%;
        margin: 0;
    }

    body.page-template-abe-monthly-calendar /* Hide UI elements like dropdowns,
body.page-template-abe-monthly-calendar buttons,
body.page-template-abe-monthly-calendar headers */
    form,
body.page-template-abe-monthly-calendar .today-activities,
body.page-template-abe-monthly-calendar .calendar-title select,
body.page-template-abe-monthly-calendar .print-hide{
        display: none !important;
    }

    body.page-template-abe-monthly-calendar .calendar{
        border: none !important;
    }

    body.page-template-abe-monthly-calendar .calendar-header,
body.page-template-abe-monthly-calendar .calendar-row,
body.page-template-abe-monthly-calendar .day,
body.page-template-abe-monthly-calendar .day-header{
        page-break-inside: avoid;
    }

    body.page-template-abe-monthly-calendar .day{
        border: 1px solid #ccc !important;
        min-height: 100px;
        height: auto;
        color: #000;
        background: #fff;
    }

    body.page-template-abe-monthly-calendar /* Keep leave background colors when printing */
    .leave-bg-al{ background-color: #e6f0ff !important; }   body.page-template-abe-monthly-calendar /* Light blue */
    .leave-bg-ph{ background-color: #fff6da !important; }   body.page-template-abe-monthly-calendar /* Light yellow */
    .leave-bg-mc{ background-color: #ffe6e6 !important; }   body.page-template-abe-monthly-calendar /* Light red */
    .leave-bg-el{ background-color: #e8f5e9 !important; }   body.page-template-abe-monthly-calendar /* Light green */

    .activity{
        font-size: 11px;
        color: #000;
        background: #eee !important;
        border-left: 3px solid #444;
        page-break-inside: avoid;
    }

    body.page-template-abe-monthly-calendar .leave-label{
        font-size: 11px;
        font-weight: bold;
        padding: 2px 4px;
        display: inline-block;
    }

    body.page-template-abe-monthly-calendar .date{
        font-weight: bold;
    }

    body.page-template-abe-monthly-calendar .calendar-body{
        border: 1px solid #ccc;
    }

    body.page-template-abe-monthly-calendar .day-header{
        font-weight: bold;
        background: #eee !important;
        border: 1px solid #ccc;
    }
}



/* abe-sales-summary.php */

body.page-template-abe-sales-summary .abe-summary-container{max-width: 800px; margin: 30px auto; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);}
body.page-template-abe-sales-summary .abe-entry{border-bottom: 1px solid #ddd; padding-bottom: 15px; margin-bottom: 15px;}
body.page-template-abe-sales-summary .abe-total-summary{padding-top:15px; margin-top:15px; border-top:2px solid #333;}
body.page-template-abe-sales-summary h2{margin-bottom: 20px;}
body.page-template-abe-sales-summary h3{margin-bottom: 10px;}
body.page-template-abe-sales-summary p{margin: 3px 0;}
body.page-template-abe-sales-summary canvas{margin-top: 30px;}


/* abe-sample-calendar.php */

    body.page-template-abe-sample-calendar /* Global styles */
    body{
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
        color: #333;
        margin: 0;
        padding: 0;
    }

    body.page-template-abe-sample-calendar .content-area{
        max-width: 800px;
        margin: 20px auto;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 8px;
    }

    body.page-template-abe-sample-calendar /* Calendar styles */
    .current-month-calendar{
        text-align: center;
    }

    body.page-template-abe-sample-calendar .calendar-title{
        margin-bottom: 20px;
        font-size: 24px;
    }

    body.page-template-abe-sample-calendar .calendar-title a{
        text-decoration: none;
        color: #007bff;
        margin: 0 10px;
        font-size: 20px;
    }

    body.page-template-abe-sample-calendar .calendar-title a:hover{
        text-decoration: underline;
    }

    body.page-template-abe-sample-calendar .calendar{
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    body.page-template-abe-sample-calendar .calendar-header{
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #ddd;
        background-color: #f0f0f0;
    }

    body.page-template-abe-sample-calendar .day-header{
        flex: 1;
        padding: 10px 0;
        font-weight: bold;
        color: #666;
        text-transform: uppercase;
    }

    body.page-template-abe-sample-calendar .calendar-body{
        display: flex;
        flex-wrap: wrap;
    }

    body.page-template-abe-sample-calendar .calendar-row{
        display: flex;
        width: 100%;
        border-top: 1px solid #ddd;
    }

    body.page-template-abe-sample-calendar .day{
        flex: 1 0 14.2857%; /* Adjust based on the number of days (7 days per row) */
        padding: 10px 0;
        text-align: center;
        border-right: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
    }

    body.page-template-abe-sample-calendar .day.empty{
        background-color: #f9f9f9;
    }

    body.page-template-abe-sample-calendar .date{
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 5px;
    }

    body.page-template-abe-sample-calendar .activities{
        font-size: 12px;
        color: #666;
        overflow: hidden;
        padding: 5px;
    }

    body.page-template-abe-sample-calendar .activity{
        margin-bottom: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 5px;
        background-color: #f9f9f9;
    }

    body.page-template-abe-sample-calendar .activity a,
body.page-template-abe-sample-calendar .activity span{
        font-weight: bold;
        display: block;
        padding: 5px;
        border-radius: 4px;
    }

    body.page-template-abe-sample-calendar .activity a.open,
body.page-template-abe-sample-calendar .activity span.open{
        color: red;
    }

    body.page-template-abe-sample-calendar .activity a.checked-in,
body.page-template-abe-sample-calendar .activity span.checked-in{
        color: blue;
    }

    body.page-template-abe-sample-calendar .activity a.checked-out,
body.page-template-abe-sample-calendar .activity span.checked-out{
        color: #F1A60B;
    }

    body.page-template-abe-sample-calendar .activity a.complete,
body.page-template-abe-sample-calendar .activity span.complete{
        color: green;
    }

    body.page-template-abe-sample-calendar .activity a:hover{
        text-decoration: underline;
    }

    body.page-template-abe-sample-calendar /* Styling for the current day */
    .current-day .date{
        background-color: #007bff;
        color: white;
        border-radius: 50%;
        width: 30px; /* Adjust as needed */
        height: 30px; /* Adjust as needed */
        line-height: 30px; /* Center text vertically */
        margin: 0 auto 5px; /* Center horizontally and add margin */
    }

    body.page-template-abe-sample-calendar /* Today's activities styles */
    .today-activities{
        margin-top: 20px;
        text-align: left;
    }

    body.page-template-abe-sample-calendar .today-activities h3{
        margin-bottom: 10px;
        font-size: 20px;
    }

    body.page-template-abe-sample-calendar .today-activities ul{
        list-style: none;
        padding: 0;
    }

    body.page-template-abe-sample-calendar .today-activities ul li{
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #f9f9f9;
        position: relative;
    }

    body.page-template-abe-sample-calendar .today-activities ul li a{
        text-decoration: none;
        color: #333;
        display: block;
    }

    body.page-template-abe-sample-calendar .today-activities ul li a:hover{
        background-color: #f0f0f0;
    }

  body.page-template-abe-sample-calendar .activities  .overlay-button{
        position: absolute;
        top: 80%;
        right: 10px;
        transform: translateY(-50%);
        background-color: #ff0505;
        color: #f7f7f5;
        font-weight: bold;
        border: none;
        padding: 5px 10px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 12px;
        opacity: 0.9;
        transition: opacity 0.3s;
        text-decoration: none;
        display: inline-block;
    }

   body.page-template-abe-sample-calendar .activities .overlay-button:hover{
        opacity: 1;
        background-color: #b30505;
        
    }

    body.page-template-abe-sample-calendar /* Responsive styles */
    @media (max-width: 600px){
        .day-header, .day {
            font-size: 12px;
            padding: 5px 0;
        }

        .calendar-header, .calendar-row {
            flex-wrap: wrap;
        }

        .day {
            flex: 1 0 14.2857%;
        }
    }


/* abe-top10-incentive-report.php */

body.page-template-abe-top10-incentive-report .dashboard-wrap{ max-width:1200px; margin:auto; padding:30px; }
body.page-template-abe-top10-incentive-report .kpi-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:30px; }
body.page-template-abe-top10-incentive-report .kpi-card{ background:#fff; padding:25px; border-radius:12px; box-shadow:0 4px 10px rgba(0,0,0,0.08); text-align:center; }
body.page-template-abe-top10-incentive-report .kpi-card.total{ border-left:6px solid #0073aa; }
body.page-template-abe-top10-incentive-report .kpi-card.full{ border-left:6px solid #28a745; }
body.page-template-abe-top10-incentive-report .kpi-card.partial{ border-left:6px solid #ffc107; }
body.page-template-abe-top10-incentive-report .kpi-card.none{ border-left:6px solid #dc3545; }

body.page-template-abe-top10-incentive-report .badge{ padding:5px 12px; border-radius:20px; font-size:12px; font-weight:600; }
body.page-template-abe-top10-incentive-report .badge.success{ background:#28a745; color:#fff; }
body.page-template-abe-top10-incentive-report .badge.warning{ background:#ffc107; color:#000; }
body.page-template-abe-top10-incentive-report .badge.danger{ background:#dc3545; color:#fff; }

body.page-template-abe-top10-incentive-report .row-missing{ background:#ffe5e5 !important; }

body.page-template-abe-top10-incentive-report .dt-button{ background:#0073aa !important; color:#fff !important; border-radius:6px !important; border:none !important; padding:6px 12px !important; }
body.page-template-abe-top10-incentive-report table.dataTable thead{ background:#1f2937; color:#fff; }

body.page-template-abe-top10-incentive-report .detail-header{
    margin-bottom: 20px;
}

body.page-template-abe-top10-incentive-report .detail-filter{
    display: flex;
    align-items: center;
    gap: 15px;
}

body.page-template-abe-top10-incentive-report .view-btn{
    background: #5b6ed6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

body.page-template-abe-top10-incentive-report .dataTables_wrapper .dt-buttons{
    margin-top: 20px;
    margin-bottom: 15px;
}

body.page-template-abe-top10-incentive-report .dt-button{
    background: #2f6fa3 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
}
body.page-template-abe-top10-incentive-report /* Force header text visible */
table.dataTable thead th{
    color: #ffffff !important;
    font-weight: 600;
}

body.page-template-abe-top10-incentive-report /* Also fix sorting icons visibility */
table.dataTable thead .sorting,
body.page-template-abe-top10-incentive-report table.dataTable thead .sorting_asc,
body.page-template-abe-top10-incentive-report table.dataTable thead .sorting_desc{
    color: #ffffff !important;
}


/* abe-visit-report-list.php */

    body.page-template-abe-visit-report-list /* Modern table design */
    #visit-table{
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
    }
    body.page-template-abe-visit-report-list #visit-table thead{
        background-color: #f4f4f4;
    }
    body.page-template-abe-visit-report-list #visit-table th,
body.page-template-abe-visit-report-list #visit-table td{
        padding: 12px 15px;
        text-align: left;
        border: 1px solid #ddd;
    }
    body.page-template-abe-visit-report-list #visit-table th{
        background-color: #0073aa;
        color: #ffffff;
    }
    body.page-template-abe-visit-report-list #visit-table tr:nth-child(even){
        background-color: #f9f9f9;
    }
    body.page-template-abe-visit-report-list #visit-table tr:hover{
        background-color: #f1f1f1;
    }
    body.page-template-abe-visit-report-list #visit-table a{
        color: #0073aa;
        text-decoration: none;
    }
    body.page-template-abe-visit-report-list #visit-table a:hover{
        text-decoration: underline;
    }
    body.page-template-abe-visit-report-list .content-area{
        margin: 0 5%;
        padding: 20px;
        background-color: #ffffff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    @media (max-width: 768px) {
        body.page-template-abe-visit-report-list .content-area{
            margin: 0 2%;
        }
        body.page-template-abe-visit-report-list #visit-table th,
body.page-template-abe-visit-report-list #visit-table td{
            padding: 8px 10px;
        }
    }


/* abe-visit-summary.php */

body.page-template-abe-visit-summary .abe-summary-table{
    border-collapse: collapse;
    width: 100%;
    border: 2px solid #007bff;
    border-radius: 8px;
}

body.page-template-abe-visit-summary .abe-summary-table thead{
    background-color: #007bff;
    color: white;
}

body.page-template-abe-visit-summary .abe-summary-table th,
body.page-template-abe-visit-summary .abe-summary-table td{
    border: 1px solid #007bff;
    padding: 12px;
    text-align: center;
}


/* anp-abe-planner-calendar.php */

body.page-template-anp-abe-planner-calendar /* Enhanced Website View */
.container{
    padding: 20px;
    font-family: Arial, sans-serif;
}

body.page-template-anp-abe-planner-calendar .planner-form{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

body.page-template-anp-abe-planner-calendar .planner-form select,
body.page-template-anp-abe-planner-calendar .submit-button,
body.page-template-anp-abe-planner-calendar .print-button{
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

body.page-template-anp-abe-planner-calendar .submit-button,
body.page-template-anp-abe-planner-calendar .print-button{
    border: none;
    cursor: pointer;
    color: #fff;
}

body.page-template-anp-abe-planner-calendar .submit-button{
    background-color: #007BFF;
}

body.page-template-anp-abe-planner-calendar .print-button{
    background-color: #28a745;
}

body.page-template-anp-abe-planner-calendar .submit-button:hover{
    background-color: #0056b3;
}

body.page-template-anp-abe-planner-calendar .print-button:hover{
    background-color: #218838;
}

body.page-template-anp-abe-planner-calendar #calendar{
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.page-template-anp-abe-planner-calendar .fc-event{
    white-space: normal !important;
    font-size: 0.8em;
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-radius: 3px;
    padding: 2px;
}

body.page-template-anp-abe-planner-calendar /* Optimized A4 Print View */
@media print{
    @page {
        size: A4 portrait;
        margin: 1cm;
    }

    html, body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    body * {
        visibility: hidden;
    }

    #calendar, #calendar * {
        visibility: visible;
    }

    #calendar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: none;
        border: none;
        transform-origin: top left;
        transform: scale(0.6); /* Adjusted scale ensures complete fit */
    }

    .fc-toolbar {
        display: none !important;
    }

    .fc-daygrid-day-frame {
        min-height: 40px !important;
        max-height: 55px !important;
    }

    .fc-event {
        font-size: 7pt !important;
        padding: 1px !important;
    }

    .fc-col-header-cell {
        font-size: 8pt !important;
        padding: 1px !important;
    }
}




/* anp-mth-forecast-vs-actual.php */

body.page-template-anp-mth-forecast-vs-actual table.dataTable td{
    white-space: nowrap;
}

  body.page-template-anp-mth-forecast-vs-actual /* Force horizontal scrolling to show */
  div.dataTables_wrapper{ width: 100%; }
  body.page-template-anp-mth-forecast-vs-actual div.dataTables_scrollBody{ overflow-x: auto !important; overflow-y: auto !important; }
  body.page-template-anp-mth-forecast-vs-actual table.dataTable{ width: 100% !important; }


/* anp-phone-call-sales-data.php */

body.page-template-anp-phone-call-sales-data .abe-phone-sales-container{
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

body.page-template-anp-phone-call-sales-data .abe-phone-sales-container h2{
    text-align: center;
    margin-bottom: 20px;
}

body.page-template-anp-phone-call-sales-data .abe-phone-sales-container label{
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

body.page-template-anp-phone-call-sales-data .abe-phone-sales-container input,
body.page-template-anp-phone-call-sales-data .abe-phone-sales-container textarea,
body.page-template-anp-phone-call-sales-data .abe-phone-sales-container select{
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

body.page-template-anp-phone-call-sales-data .abe-phone-sales-container input[type="submit"]{
    margin-top: 15px;
    background-color: #5a8dee;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

body.page-template-anp-phone-call-sales-data .notice-success{
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    margin-bottom: 15px;
    border-radius: 4px;
}

 body.page-template-anp-phone-call-sales-data /**  for pharmacy search **/
/* 🔲 Container - modern input field style */
.select2-container--default .select2-selection--single{
    background-color: #ffffff;
    border: 2px solid #dcdcdc;
    border-radius: 6px;
    height: 48px !important;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

body.page-template-anp-phone-call-sales-data /* 🔵 Focus border */
.select2-container--default .select2-selection--single:focus,
body.page-template-anp-phone-call-sales-data .select2-container--default .select2-selection--single:hover{
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

body.page-template-anp-phone-call-sales-data /* 🔽 Arrow icon alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 100%;
    right: 10px;
}

body.page-template-anp-phone-call-sales-data /* 💬 Placeholder (Search Pharmacy...) */
.select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #999;
    font-size: 16px;
    display: flex;
    align-items: center;
}

body.page-template-anp-phone-call-sales-data /* 🔍 Search field in dropdown */
.select2-search--dropdown .select2-search__field{
    width: 100% !important;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

body.page-template-anp-phone-call-sales-data /* 📋 Option style */
.select2-results__option{
    padding: 10px 15px;
    font-size: 15px;
    color: #333;
}

body.page-template-anp-phone-call-sales-data /* 🔵 Option highlight on hover */
.select2-results__option--highlighted{
    background-color: #007bff !important;
    color: white !important;
}

body.page-template-anp-phone-call-sales-data /* 🧼 Remove default ugly border */
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 46px !important;
    padding-left: 0 !important;
}



/* anp-sales-to-visit-report.php */

    body.page-template-anp-sales-to-visit-report /* Boxed border styling */
    .select2-container .select2-selection--single{
        height: 42px !important; /* Adjust height */
        border: 2px solid #ccc !important; /* Border color */
        border-radius: 6px !important; /* Rounded corners */
        padding: 6px 12px !important; /* Padding */
        background-color: #fff !important; /* White background */
        display: flex !important;
        align-items: center !important;
    }

    body.page-template-anp-sales-to-visit-report /* Focus effect */
    .select2-container--default .select2-selection--single:focus,
body.page-template-anp-sales-to-visit-report .select2-container--default .select2-selection--single:hover{
        border-color: #007bff !important; /* Change border color on hover/focus */
    }

    body.page-template-anp-sales-to-visit-report /* Placeholder text styling */
    .select2-container--default .select2-selection--single .select2-selection__placeholder{
        color: #888 !important; /* Placeholder text color */
    }

    body.page-template-anp-sales-to-visit-report /* Ensure dropdown text is readable */
    .select2-container--default .select2-results__option{
        padding: 10px !important;
        font-size: 16px !important;
    }

    body.page-template-anp-sales-to-visit-report /* Increase the dropdown width */
    .select2-container{
        width: 50% !important;
    }


/* anp-user-dashboard.php */

.abe-dashboard{
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.abe-dashboard h2,
.abe-dashboard h3{
    color: #0073aa;
}
.abe-dashboard .dashboard-section{
    margin-top: 30px;
}
.abe-dashboard .dashboard-card{
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 10px;
}
.abe-dashboard .dashboard-card p{
    margin: 6px 0;
    font-size: 15px;
}

.abe-dashboard .quick-links{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.abe-dashboard .link-box{
    background: #eaf4fe;
    border: 1px solid #cce3fa;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    flex: 1 0 45%;
    text-align: center;
    transition: all 0.3s ease;
}
.abe-dashboard .link-box:hover{
    background: #d6ecfd;
    transform: scale(1.02);
}

.abe-dashboard .visit-list{
    list-style: none;
    padding-left: 0;
}
.abe-dashboard .visit-list li{
    background: #fff;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.abe-dashboard .visit-status{
    font-weight: bold;
    color: #333;
}

.abe-dashboard .visit-table-wrapper{
    overflow-x: auto;
}
.abe-dashboard .visit-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.abe-dashboard .visit-table th,
.abe-dashboard .visit-table td{
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    text-align: left;
}
.abe-dashboard .visit-table th{
    background-color: #d1cdcd;
}

.abe-dashboard .status-pill{
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
    text-transform: uppercase;
}

/* Dashboard visit status colours. */
.abe-dashboard .status-pill.open{
    background-color: #dc3545;
}
.abe-dashboard .status-pill.complete{
    background-color: #28a745;
}
.abe-dashboard .status-pill.checked-in{
    background-color: #ffc107;
    color: #333;
}
.abe-dashboard .status-pill.checked-out{
    background-color: #007bff;
}

.abe-dashboard .visit-link{
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
}
.abe-dashboard .visit-link:hover{
    text-decoration: underline;
}

.abe-dashboard .birthday-list{
    list-style: none;
    padding-left: 0;
}

.abe-dashboard .birthday-list li{
    background: #fff34f;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
    font-size: 14px;
}

.abe-dashboard .birthday-today{
    background: #fff3cd;
    border-left: 4px solid #dc3545;
    font-weight: 600;
}

.abe-dashboard .birthday-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.abe-dashboard .birthday-table th,
.abe-dashboard .birthday-table td{
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 13px;
}

.abe-dashboard .birthday-table th{
    background: #0073aa;
    color: black;
    text-align: left;
}

.abe-dashboard .birthday-today{
    background: #fff3cd;
    font-weight: 600;
}




/* anp_pharmacy-create-report.php */

body.page-template-anp_pharmacy-create-report .report-container{
    max-width: 1300px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body.page-template-anp_pharmacy-create-report .report-filters{
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

body.page-template-anp_pharmacy-create-report .report-filters select,
body.page-template-anp_pharmacy-create-report .report-filters button{
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

body.page-template-anp_pharmacy-create-report .report-filters button{
    background: #2563eb;
    color: #fff;
    border: none;
}

body.page-template-anp_pharmacy-create-report .summary-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

body.page-template-anp_pharmacy-create-report .card{
    padding: 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e5e7eb;
}

body.page-template-anp_pharmacy-create-report .card h3{
    font-size: 32px;
    margin: 0;
    color: #1e3a8a;
}

body.page-template-anp_pharmacy-create-report .card p{
    margin-top: 6px;
    font-size: 14px;
}

body.page-template-anp_pharmacy-create-report #pharmacyReport{
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
}

body.page-template-anp_pharmacy-create-report #pharmacyReport thead th{
    background: #1f2937;
    color: #fff;
    padding: 12px;
    font-weight: 600;
    border-right: 1px solid #374151;
}

body.page-template-anp_pharmacy-create-report #pharmacyReport tbody td{
    padding: 10px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

body.page-template-anp_pharmacy-create-report #pharmacyReport tbody tr:hover{
    background: #f1f5f9;
}

body.page-template-anp_pharmacy-create-report .badge{
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

body.page-template-anp_pharmacy-create-report .badge.yes{ background: #16a34a; }
body.page-template-anp_pharmacy-create-report .badge.no{ background: #dc2626; }

body.page-template-anp_pharmacy-create-report a{
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}


/* budget-allocation-form.php */

    body.page-template-budget-allocation-form /* General styles for modern layout */
    body{
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
    }
        body.page-template-budget-allocation-form /* Styling the form container */
    .budget-form-container{
        max-width: 600px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 10px;
        background-color: #f9f9f9;
    }

    body.page-template-budget-allocation-form /* Styling the form labels and inputs */
    .budget-form-container label{
        display: block;
        margin-bottom: 10px;
        font-weight: bold;
        color: #333;
    }

    body.page-template-budget-allocation-form .budget-form-container select,
body.page-template-budget-allocation-form .budget-form-container input[type="text"]{
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

    body.page-template-budget-allocation-form /* Styling the submit button */
    .budget-form-container input[type="submit"]{
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        width: auto; /* This makes the button smaller */
        display: inline-block;
    }

    body.page-template-budget-allocation-form .budget-form-container input[type="submit"]:hover{
        background-color: #0056b3;
    }
    

    body.page-template-budget-allocation-form .form-container{
        max-width: 600px;
        margin: 40px auto;
        background-color: #ffffff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    }

    body.page-template-budget-allocation-form h1{
        text-align: center;
        color: #333;
        font-size: 28px;
    }

    body.page-template-budget-allocation-form label{
        display: block;
        font-size: 14px;
        color: #555;
        margin-bottom: 8px;
        font-weight: bold;
    }

    body.page-template-budget-allocation-form select,
body.page-template-budget-allocation-form input[type="text"]{
        width: 100%;
        padding: 12px;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #f9f9f9;
        font-size: 16px;
    }

    body.page-template-budget-allocation-form input[type="submit"]{
        width: 100%;
        background-color: #0073e6;
        color: white;
        padding: 12px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }

    body.page-template-budget-allocation-form input[type="submit"]:hover{
        background-color: #005bb5;
    }

    body.page-template-budget-allocation-form .success-message,
body.page-template-budget-allocation-form .error-message{
        padding: 12px;
        text-align: center;
        margin-bottom: 20px;
    }

    body.page-template-budget-allocation-form .success-message{
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
    }

    body.page-template-budget-allocation-form .error-message{
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
    }

    body.page-template-budget-allocation-form /* Modern table styles */
    .table-container{
        max-width: 600px;
        margin: 40px auto;
        background-color: #fff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    }

    body.page-template-budget-allocation-form table{
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    body.page-template-budget-allocation-form th,
body.page-template-budget-allocation-form td{
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    body.page-template-budget-allocation-form th{
        background-color: #0073e6;
        color: white;
        font-weight: bold;
    }

    body.page-template-budget-allocation-form tr:nth-child(even){
        background-color: #f9f9f9;
    }

    body.page-template-budget-allocation-form /* Responsive Design */
    @media (max-width: 600px){
        .form-container, .table-container {
            padding: 15px;
        }

        input[type="submit"], select, input[type="text"] {
            padding: 10px;
        }

        th, td {
            padding: 10px;
        }
    }
    
     body.page-template-budget-allocation-form /* Styling for the data table container */
    .data-table-container{
        max-width: 600px;
        margin: 40px auto;
    }

    body.page-template-budget-allocation-form /* Styling for the dropdown and table */
    .data-table-container select,
body.page-template-budget-allocation-form .data-table-container table{
        width: 100%;
        margin-bottom: 20px;
    }

    body.page-template-budget-allocation-form /* Table styling */
    .data-table-container table{
        border-collapse: collapse;
        width: 100%;
    }

    body.page-template-budget-allocation-form .data-table-container table th,
body.page-template-budget-allocation-form .data-table-container table td{
        border: 1px solid #ccc;
        padding: 10px;
        text-align: left;
    }

    body.page-template-budget-allocation-form /* Dropdown styling */
    .data-table-container select{
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        margin-bottom: 10px;
    }


/* budget-allocation-new.php */

        body.page-template-budget-allocation-new .container{ max-width: 900px; margin: 0 auto; padding: 20px; }
        body.page-template-budget-allocation-new label{ font-weight: bold; margin-right: 10px; }
        body.page-template-budget-allocation-new select,
body.page-template-budget-allocation-new input[type="number"]{ padding: 5px; margin-right: 10px; }
        body.page-template-budget-allocation-new table{ width: 100%; border-collapse: collapse; margin-top: 20px; }
        body.page-template-budget-allocation-new th,
body.page-template-budget-allocation-new td{ border: 1px solid #ddd; padding: 8px; }
        body.page-template-budget-allocation-new th{ background-color: #f2f2f2; text-align: left; }
        body.page-template-budget-allocation-new tr:nth-child(even){ background-color: #f9f9f9; }
        body.page-template-budget-allocation-new tr:hover{ background-color: #e0e0e0; }
        
        body.page-template-budget-allocation-new .message{ margin: 15px 0; padding: 10px; border-radius: 4px; }
        body.page-template-budget-allocation-new .success{ background-color: #d1f3d1; color: #267326; border: 1px solid #267326; }
        body.page-template-budget-allocation-new .error{ background-color: #fdd; color: #a94442; border: 1px solid #a94442; }

body.page-template-budget-allocation-new .custom-budget-wrapper .btn-update{
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.page-template-budget-allocation-new .custom-budget-wrapper .btn-update:hover{
    background-color: #005177 !important;
}

    

/* budget-detail-view-fin-mgr.php */

    body.page-template-budget-detail-view-fin-mgr .detail-container{
        max-width: 800px;
        margin: 40px auto;
        background: #f9f9f9;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0,0,0,0.05);
    }

    body.page-template-budget-detail-view-fin-mgr .detail-container h2{
        font-size: 28px;
        color: #0073aa;
        margin-bottom: 25px;
        border-bottom: 2px solid #ddd;
        padding-bottom: 10px;
    }

    body.page-template-budget-detail-view-fin-mgr .detail-info{
        margin-bottom: 20px;
    }

    body.page-template-budget-detail-view-fin-mgr .detail-info strong{
        display: inline-block;
        width: 180px;
        color: #333;
    }

    body.page-template-budget-detail-view-fin-mgr .btn-group{
        margin-top: 30px;
    }

    body.page-template-budget-detail-view-fin-mgr .btn-group a,
body.page-template-budget-detail-view-fin-mgr .btn-group button{
        margin-right: 10px;
        padding: 10px 18px;
        border: none;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        font-size: 15px;
    }

    body.page-template-budget-detail-view-fin-mgr .btn-approve{
        background-color: #28a745;
        color: white;
    }

    body.page-template-budget-detail-view-fin-mgr .btn-reject{
        background-color: #dc3545;
        color: white;
    }

    body.page-template-budget-detail-view-fin-mgr .btn-back{
        background-color: #6c757d;
        color: white;
    }

    body.page-template-budget-detail-view-fin-mgr .status-message{
        padding: 15px;
        border-radius: 5px;
        margin-bottom: 20px;
        font-size: 16px;
    }

    body.page-template-budget-detail-view-fin-mgr .status-message.success{
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    body.page-template-budget-detail-view-fin-mgr .status-message.error{
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    body.page-template-budget-detail-view-fin-mgr .styled-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid #297cf0;
}

body.page-template-budget-detail-view-fin-mgr .styled-table thead{
    background-color: #0073aa;
    color: #fff;
    border-bottom: 2px solid #333;
}

body.page-template-budget-detail-view-fin-mgr .styled-table thead th{
    border: 1px solid #297cf0;
    padding: 12px 15px;
    text-align: left;
}

body.page-template-budget-detail-view-fin-mgr .styled-table tbody td{
    border: 1px solid #297cf0;
    padding: 12px 15px;
}

body.page-template-budget-detail-view-fin-mgr .styled-table tbody tr:nth-child(even){
    background-color: #f9f9f9;
}

body.page-template-budget-detail-view-fin-mgr .styled-table tbody tr:hover{
    background-color: #e8f0ff;
}

body.page-template-budget-detail-view-fin-mgr .audit-table-container{
    max-width: 400px;
    margin: 30px auto; /* centers it */
}

body.page-template-budget-detail-view-fin-mgr .audit-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #ddd;
}

body.page-template-budget-detail-view-fin-mgr .audit-table th,
body.page-template-budget-detail-view-fin-mgr .audit-table td{
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}

body.page-template-budget-detail-view-fin-mgr .audit-table thead{
    background-color: #f1f1f1;
    color: #333;
}

body.page-template-budget-detail-view-fin-mgr .audit-table tbody tr:nth-child(even){
    background-color: #f9f9f9;
}




/* budget-detail-view.php */

body.page-template-budget-detail-view{
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
}
body.page-template-budget-detail-view .budget-detail-container{
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
body.page-template-budget-detail-view .page-title{
    font-size: 26px;
    color: #0073aa;
    margin-bottom: 25px;
    text-align: center;
}
body.page-template-budget-detail-view .budget-detail-card{
    padding: 20px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #eee;
}
body.page-template-budget-detail-view .budget-detail-table{
    width: 100%;
    border-collapse: collapse;
}
body.page-template-budget-detail-view .budget-detail-table th{
    text-align: left;
    width: 35%;
    background: #f1f1f1;
    padding: 10px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}
body.page-template-budget-detail-view .budget-detail-table td{
    padding: 10px;
    border-bottom: 1px solid #eee;
}
body.page-template-budget-detail-view .action-buttons{
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
body.page-template-budget-detail-view .btn{
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
}
body.page-template-budget-detail-view .btn.primary{
    background-color: #28a745;
    color: #fff;
    border-radius: 6px;
    margin: 15px;
    padding: 15px;
}
body.page-template-budget-detail-view .btn.primary:hover{
    background-color: #218838;
}
body.page-template-budget-detail-view .btn.danger{
    background-color: #dc3545;
    color: #fff;
}
body.page-template-budget-detail-view .btn.danger:hover{
    background-color: #c82333;
}
body.page-template-budget-detail-view .btn.secondary{
    background-color: #6c757d;
    color: #fff;
}
body.page-template-budget-detail-view .btn.secondary:hover{
    background-color: #5a6268;
}
body.page-template-budget-detail-view .status-pill{
    display: inline-block;
    padding: 5px 10px;
    background-color: #17a2b8;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
}
body.page-template-budget-detail-view .notice.error{
    color: #dc3545;
    background: #ffe6e6;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

body.page-template-budget-detail-view .attachment-gallery img{
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
body.page-template-budget-detail-view .attachment-gallery img:hover{
    transform: scale(1.05);
}

body.page-template-budget-detail-view .btn.secondary:hover{
    background-color: #5a6268;
}

body.page-template-budget-detail-view .btn:hover{
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

body.page-template-budget-detail-view .btn,
body.page-template-budget-detail-view .btn:hover{
    text-decoration: none !important;
}

body.page-template-budget-detail-view .status-pill{
    ...
}
body.page-template-budget-detail-view .status-pill:contains("CANCELLED"){
    background-color: #dc3545;
}


/* budget-list-finance.php */

body.page-template-budget-list-finance .finance-budget-list{
    padding: 50px 0;
}

body.page-template-budget-list-finance .finance-budget-list h2{
    font-size: 2rem;
    margin-bottom: 30px;
    color: #007bff;
}

body.page-template-budget-list-finance .budget-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

body.page-template-budget-list-finance .budget-tabs .tab-link{
    padding: 10px 20px;
    border: 1px solid #007bff;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

body.page-template-budget-list-finance .budget-tabs .tab-link:hover{
    background-color: #e8f0ff;
}

body.page-template-budget-list-finance .budget-tabs .tab-link.active{
    background-color: #007bff;
    color: #fff;
}

body.page-template-budget-list-finance .finance-budget-list .btn{
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

body.page-template-budget-list-finance .finance-budget-list .btn:hover{
    background-color: #0056b3;
}

body.page-template-budget-list-finance #budgetTable thead,
body.page-template-budget-list-finance #budgetTable tbody,
body.page-template-budget-list-finance #budgetTable tr,
body.page-template-budget-list-finance #budgetTable td,
body.page-template-budget-list-finance #budgetTable th{
    border: 1px solid #dee2e6 !important;
}

body.page-template-budget-list-finance .search-box{
    max-width: 300px;
    margin-bottom: 20px;
}


/* budget-listing-mkt.php */

    body.page-template-budget-listing-mkt /* Tab Styling */
    .tab{
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }

    body.page-template-budget-listing-mkt .tab button.custom-btn{
        background-color: #f1f1f1;
        color: #333;
        padding: 12px 18px;
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    body.page-template-budget-listing-mkt .tab button.custom-btn.active{
        background-color: #007bff;
        color: white;
    }

    body.page-template-budget-listing-mkt .tab button.custom-btn:hover{
        background-color: #87CEFA;
        color: white;
    }

    body.page-template-budget-listing-mkt /* Table Styling */
.table-container{
    overflow-x: auto;
    width: 100%; /* Make sure container takes full width */
}

body.page-template-budget-listing-mkt .styled-table{
    width: 100%; /* Ensure the table takes full width of its container */
    min-width: 1000px; /* Increase the minimum width for a wider table */
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #fff;
}

    body.page-template-budget-listing-mkt .styled-table thead tr{
        background-color: #00BFFF;
        color: white;
        text-align: left;
        font-weight: bold;
    }

    body.page-template-budget-listing-mkt .styled-table th,
body.page-template-budget-listing-mkt .styled-table td{
        padding: 12px 15px;
        border-bottom: 1px solid #ddd;
    }

    body.page-template-budget-listing-mkt .styled-table tbody tr:nth-of-type(even){
        background-color: #f3f3f3;
    }

    body.page-template-budget-listing-mkt .styled-table tbody tr:hover{
        background-color: #e9f5ff;
    }

    body.page-template-budget-listing-mkt .styled-table a{
        color: #1E90FF;
        text-decoration: none;
        font-weight: bold;
    }

    body.page-template-budget-listing-mkt .styled-table a:hover{
        text-decoration: underline;
    }

    body.page-template-budget-listing-mkt /* Button Styling */
    .custom-btn{
        background-color: #007bff;
        border: none;
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 1px;
        display: inline-block;
    }

    body.page-template-budget-listing-mkt .custom-btn:hover{
        background-color: #0056b3;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    body.page-template-budget-listing-mkt .download-btn{
        display: block;
        margin: 20px auto;
        text-align: center;
    }

    body.page-template-budget-listing-mkt /* Responsive Styles */
    @media (max-width: 768px){
        .tab {
            flex-direction: column;
        }

        .tab button.custom-btn {
            width: 100%;
            margin-bottom: 10px;
        }

        .styled-table th,
        .styled-table td {
            font-size: 14px;
        }
    }


/* budget-listing-sales.php */

    body.page-template-budget-listing-sales /* Tab Styling */
    .tab{
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }

    body.page-template-budget-listing-sales .tab button.custom-btn{
        background-color: #f1f1f1;
        color: #333;
        padding: 12px 18px;
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    body.page-template-budget-listing-sales .tab button.custom-btn.active{
        background-color: #007bff;
        color: white;
    }

    body.page-template-budget-listing-sales .tab button.custom-btn:hover{
        background-color: #87CEFA;
        color: white;
    }

    body.page-template-budget-listing-sales /* Table Styling */
.table-container{
    overflow-x: auto;
    width: 100%; /* Make sure container takes full width */
}

body.page-template-budget-listing-sales .styled-table{
    width: 100%; /* Ensure the table takes full width of its container */
    min-width: 1000px; /* Increase the minimum width for a wider table */
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #fff;
}

    body.page-template-budget-listing-sales .styled-table thead tr{
        background-color: #00BFFF;
        color: white;
        text-align: left;
        font-weight: bold;
    }

    body.page-template-budget-listing-sales .styled-table th,
body.page-template-budget-listing-sales .styled-table td{
        padding: 12px 15px;
        border-bottom: 1px solid #ddd;
    }

    body.page-template-budget-listing-sales .styled-table tbody tr:nth-of-type(even){
        background-color: #f3f3f3;
    }

    body.page-template-budget-listing-sales .styled-table tbody tr:hover{
        background-color: #e9f5ff;
    }

    body.page-template-budget-listing-sales .styled-table a{
        color: #1E90FF;
        text-decoration: none;
        font-weight: bold;
    }

    body.page-template-budget-listing-sales .styled-table a:hover{
        text-decoration: underline;
    }

    body.page-template-budget-listing-sales /* Button Styling */
    .custom-btn{
        background-color: #007bff;
        border: none;
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 1px;
        display: inline-block;
    }

    body.page-template-budget-listing-sales .custom-btn:hover{
        background-color: #0056b3;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    body.page-template-budget-listing-sales .download-btn{
        display: block;
        margin: 20px auto;
        text-align: center;
    }

    body.page-template-budget-listing-sales /* Responsive Styles */
    @media (max-width: 768px){
        .tab {
            flex-direction: column;
        }

        .tab button.custom-btn {
            width: 100%;
            margin-bottom: 10px;
        }

        .styled-table th,
        .styled-table td {
            font-size: 14px;
        }
    }


/* budget-payment.php */

body.page-template-budget-payment .print-layout{
    display: none;
}

@media print {
    body.page-template-budget-payment /* Avoid browser's default margins and ensure full-page use */
    @page{
        size: A4;
        margin: 1cm;
    }

    body.page-template-budget-payment,
body.page-template-budget-payment{
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    body.page-template-budget-payment *{
        visibility: hidden !important;
    }

    body.page-template-budget-payment .print-layout,
body.page-template-budget-payment .print-layout *{
        visibility: visible !important;
    }

    body.page-template-budget-payment .print-layout{
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 100vh; /* Prevent vertical overflow */
        overflow: hidden;
        font-family: "Segoe UI", Arial, sans-serif;
        color: #000;
        padding: 20px;
        margin: 0 !important;
        box-sizing: border-box;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        zoom: 90%; /* Tweak if needed to fit one page */
    }

    body.page-template-budget-payment .print-layout > *:last-child{
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-template-budget-payment .print-layout::after{
        display: none !important;
        content: none !important;
    }

    body.page-template-budget-payment .print-header{
        text-align: center;
        margin-bottom: 30px;
    }

    body.page-template-budget-payment .print-header h1{
        font-size: 28px;
        margin: 0;
        letter-spacing: 1px;
    }

    body.page-template-budget-payment .print-subtitle{
        font-size: 16px;
        margin: 5px 0 15px;
        font-weight: bold;
        text-transform: uppercase;
    }

    body.page-template-budget-payment .summary-table,
body.page-template-budget-payment .payment-table{
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 30px;
        page-break-inside: avoid;
    }

    body.page-template-budget-payment .summary-table th,
body.page-template-budget-payment .summary-table td,
body.page-template-budget-payment .payment-table th,
body.page-template-budget-payment .payment-table td{
        border: 1px solid #333 !important;
        padding: 10px;
        font-size: 14px;
        box-sizing: border-box;
    }

    body.page-template-budget-payment .summary-table th{
        background-color: #f2f2f2;
        width: 30%;
    }

    body.page-template-budget-payment .payment-table thead th{
        background-color: #ddd;
    }

    body.page-template-budget-payment h2{
        margin-top: 40px;
        font-size: 18px;
        border-bottom: 1px solid #000;
        padding-bottom: 5px;
        page-break-after: avoid;
    }

    body.page-template-budget-payment /* Hide print-related buttons */
    .btn,
body.page-template-budget-payment button{
        display: none !important;
    }
}


body.page-template-budget-payment .attachments{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

body.page-template-budget-payment .attachment-thumb{
    width: 100px;
    height: 100px;
    border: 1px solid #333;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f9f9f9;
}

body.page-template-budget-payment .attachment-thumb img{
    max-width: 100%;
    max-height: 100%;
}

body.page-template-budget-payment .file-icon{
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

body.page-template-budget-payment .file-box{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
}

body.page-template-budget-payment /* Default gray if no specific file type */
.file-box{
    background-color: #6c757d;
}

body.page-template-budget-payment /* Optional color coding by file type */
.file-pdf{ background-color: #dc3545; }     body.page-template-budget-payment /* red */
.file-doc,
body.page-template-budget-payment .file-docx{ background-color: #007bff; }    body.page-template-budget-payment /* blue */
.file-xls,
body.page-template-budget-payment .file-xlsx{ background-color: #28a745; }    body.page-template-budget-payment /* green */
.file-zip,
body.page-template-budget-payment .file-rar{ background-color: #ffc107; }     body.page-template-budget-payment /* yellow */
.file-txt{ background-color: #343a40; }     /* dark gray */




/* budget-payment.php */

  body.page-template-budget-payment .custom-payment-view{
    padding: 50px 0;
    background-color: #f9f9f9;
}

body.page-template-budget-payment .custom-payment-view .container{
    max-width: 900px;
}

body.page-template-budget-payment .custom-payment-view h2,
body.page-template-budget-payment .custom-payment-view h3{
    font-weight: 600;
    margin-bottom: 20px;
}

body.page-template-budget-payment .custom-payment-view .row p strong{
    font-size: 1.2rem; /* Adjust this size for labels */
}

body.page-template-budget-payment .custom-payment-view .row p{
    font-size: 1.1rem; /* Adjust this size for the fetched result data */
}

body.page-template-budget-payment .custom-payment-view .card{
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.page-template-budget-payment .custom-payment-view .card h3{
    font-size: 1.25rem;
    margin-bottom: 15px;
}

body.page-template-budget-payment .custom-payment-view .form-group{
    margin-bottom: 15px;
}

body.page-template-budget-payment .custom-payment-view .form-control,
body.page-template-budget-payment .custom-payment-view .form-select{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

body.page-template-budget-payment .custom-payment-view .form-control:focus,
body.page-template-budget-payment .custom-payment-view .form-select:focus{
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

body.page-template-budget-payment .custom-payment-view .btn{
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
}

body.page-template-budget-payment .custom-payment-view .btn-primary{
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

body.page-template-budget-payment .custom-payment-view .btn-primary:hover{
    background-color: #0056b3;
    border-color: #004885;
}

body.page-template-budget-payment .custom-payment-view .text-primary{
    color: #007bff;
}

body.page-template-budget-payment .custom-payment-view .text-danger{
    color: #dc3545;
}

body.page-template-budget-payment .alert-success{
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
}

 



/* budget-request-mkt.php */

body.page-template-budget-request-mkt /* Custom modern form layout and button styles */

.container-modern{
    max-width: 900px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.page-template-budget-request-mkt .entry-content-modern{
    margin-top: 20px;
}

body.page-template-budget-request-mkt .alert-modern{
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

body.page-template-budget-request-mkt .alert-modern.success{
    background-color: #d4edda;
    color: #155724;
}

body.page-template-budget-request-mkt .alert-modern.error{
    background-color: #f8d7da;
    color: #721c24;
}

body.page-template-budget-request-mkt .form-modern{
    display: flex;
    flex-direction: column;
}

body.page-template-budget-request-mkt .form-group-modern{
    margin-bottom: 20px;
}

body.page-template-budget-request-mkt .form-group-modern label{
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

body.page-template-budget-request-mkt .form-input-modern{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #fff !important; /* Force white background */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease;
}

body.page-template-budget-request-mkt .form-input-modern:focus{
    border-color: #007bff;
}

body.page-template-budget-request-mkt .form-value{
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-top: 5px;
}

body.page-template-budget-request-mkt .text-center{
    text-align: center;
}

body.page-template-budget-request-mkt .attachment-item{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

body.page-template-budget-request-mkt .attachment-item input{
    margin-right: 10px;
}

body.page-template-budget-request-mkt .btn-modern{
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 16px;
}

body.page-template-budget-request-mkt .btn-modern.primary{
    background-color: #007bff;
    color: #fff;
}

body.page-template-budget-request-mkt .btn-modern.primary:hover{
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

body.page-template-budget-request-mkt .btn-modern.secondary{
    background-color: #6c757d;
    color: #fff;
}

body.page-template-budget-request-mkt .btn-modern.secondary:hover{
    background-color: #5a6268;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

body.page-template-budget-request-mkt /* Custom X icon button */
.remove-attachment-icon{
    background: none;
    border: none;
    color: #ff4d4f;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

body.page-template-budget-request-mkt .remove-attachment-icon:hover{
    color: #e3342f;
}

body.page-template-budget-request-mkt /* Modern Select2 Styling */
.select2-container--default .select2-selection--single{
    background-color: #fff;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    height: 48px !important;
    padding: 10px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease-in-out;
}

body.page-template-budget-request-mkt .select2-container--default .select2-selection--single:hover{
    border-color: #007bff;
}

body.page-template-budget-request-mkt .select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

body.page-template-budget-request-mkt .select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
}

body.page-template-budget-request-mkt .select2-search--dropdown .select2-search__field{
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100% !important;
}

body.page-template-budget-request-mkt .select2-results__option{
    padding: 12px 16px;
    font-size: 15px;
    color: #212529;
}

body.page-template-budget-request-mkt .select2-results__option--highlighted{
    background-color: #007bff !important;
    color: #fff !important;
    
    
}

body.page-template-budget-request-mkt /* Vendor Name Box Styling */
#vendor_input_wrapper input#vendor_name{
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-template-budget-request-mkt /* On Focus - add nice blue border */
#vendor_input_wrapper input#vendor_name:focus{
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}




/* budget-request-sales.php */

body.page-template-budget-request-sales .container-modern{
    max-width: 900px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.page-template-budget-request-sales .entry-content-modern{
    margin-top: 20px;
}

body.page-template-budget-request-sales .alert-modern{
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

body.page-template-budget-request-sales .alert-modern.success{
    background-color: #d4edda;
    color: #155724;
}

body.page-template-budget-request-sales .alert-modern.error{
    background-color: #f8d7da;
    color: #721c24;
}

body.page-template-budget-request-sales .form-modern{
    display: flex;
    flex-direction: column;
}

body.page-template-budget-request-sales .form-group-modern{
    margin-bottom: 20px;
}

body.page-template-budget-request-sales .form-group-modern label{
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

body.page-template-budget-request-sales .form-input-modern{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #fff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease;
}

body.page-template-budget-request-sales .form-input-modern:focus{
    border-color: #007bff;
}

body.page-template-budget-request-sales .form-value{
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-top: 5px;
}

body.page-template-budget-request-sales .text-center{
    text-align: center;
}

body.page-template-budget-request-sales .attachment-item{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

body.page-template-budget-request-sales .attachment-item input{
    margin-right: 10px;
}

body.page-template-budget-request-sales .btn-modern{
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 16px;
}

body.page-template-budget-request-sales .btn-modern.primary{
    background-color: #007bff;
    color: #fff;
}

body.page-template-budget-request-sales .btn-modern.primary:hover{
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

body.page-template-budget-request-sales .btn-modern.secondary{
    background-color: #6c757d;
    color: #fff;
}

body.page-template-budget-request-sales .btn-modern.secondary:hover{
    background-color: #5a6268;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

body.page-template-budget-request-sales .remove-attachment-icon{
    background: none;
    border: none;
    color: #ff4d4f;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

body.page-template-budget-request-sales .remove-attachment-icon:hover{
    color: #e3342f;
}

body.page-template-budget-request-sales .select2-container--default .select2-selection--single{
    background-color: #fff;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    height: 48px !important;
    padding: 10px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease-in-out;
}

body.page-template-budget-request-sales .select2-container--default .select2-selection--single:hover{
    border-color: #007bff;
}

body.page-template-budget-request-sales .select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

body.page-template-budget-request-sales .select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
}

body.page-template-budget-request-sales .select2-search--dropdown .select2-search__field{
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100% !important;
}

body.page-template-budget-request-sales .select2-results__option{
    padding: 12px 16px;
    font-size: 15px;
    color: #212529;
}

body.page-template-budget-request-sales .select2-results__option--highlighted{
    background-color: #007bff !important;
    color: #fff !important;
}


/* bulk-budget-import.php */

    body.page-template-bulk-budget-import .budget-container{
        max-width: 900px;
        margin: 20px auto;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body.page-template-bulk-budget-import .budget-form{
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    body.page-template-bulk-budget-import .budget-form select{
        padding: 8px;
        border-radius: 5px;
        border: 1px solid #ccc;
        cursor: pointer;
    }

    body.page-template-bulk-budget-import .table-container{
        overflow-x: auto;
    }

    body.page-template-bulk-budget-import .budget-table{
        width: 100%;
        border-collapse: collapse;
        border: 2px solid #0000FF;
    }

    body.page-template-bulk-budget-import .budget-table th,
body.page-template-bulk-budget-import .budget-table td{
        border: 2px solid #0000FF;
        padding: 10px;
        text-align: left;
    }

    body.page-template-bulk-budget-import .budget-table thead{
        background: #e0e0e0;
    }

    body.page-template-bulk-budget-import .budget-table tbody tr:hover{
        background-color: #f5f5f5;
    }


/* cms-budget-po-upload.php */

body.page-template-cms-budget-po-upload .container-po-upload{
    max-width: 600px;
    margin: 50px auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
body.page-template-cms-budget-po-upload .budget-info{ margin-bottom: 30px; font-size: 15px; }
body.page-template-cms-budget-po-upload .budget-info p{ margin: 5px 0; }
body.page-template-cms-budget-po-upload .budget-info strong{ display: inline-block; width: 150px; color: #333; }
body.page-template-cms-budget-po-upload .po-form-group{ margin-bottom: 20px; }
body.page-template-cms-budget-po-upload .status-msg{ padding: 10px 15px; margin-bottom: 20px; border-radius: 5px; }
body.page-template-cms-budget-po-upload .status-msg.success{ background: #d4edda; color: #155724; }
body.page-template-cms-budget-po-upload .status-msg.error{ background: #f8d7da; color: #721c24; }
body.page-template-cms-budget-po-upload .thumbnail-wrapper{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
body.page-template-cms-budget-po-upload .thumbnail-item{ width: 100px; text-align: center; }
body.page-template-cms-budget-po-upload .thumbnail-item img{ width: 100px; height: 100px; object-fit: cover; border: 1px solid #ccc; border-radius: 4px; }


/* cms-budget-require-po.php */

body.page-template-cms-budget-require-po .po-section{
    max-width: 1100px;
    margin: 40px auto;
}
body.page-template-cms-budget-require-po .po-budget-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #ddd;
    margin-top: 10px;
}
body.page-template-cms-budget-require-po .po-budget-table th,
body.page-template-cms-budget-require-po .po-budget-table td{
    border: 1px solid #ddd;
    padding: 10px;
}
body.page-template-cms-budget-require-po .po-budget-table thead{
    background-color: #0073aa;
    color: white;
}
body.page-template-cms-budget-require-po .po-title{
    font-size: 20px;
    margin-top: 40px;
    color: #0073aa;
}


/* cms-budget-summary-overall.php */

body.page-template-cms-budget-summary-overall .budget-summary-wrapper{
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  border-radius: 12px;
  font-family: "Segoe UI", sans-serif;
}

body.page-template-cms-budget-summary-overall .budget-summary-wrapper h1{
  font-size: 32px;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

body.page-template-cms-budget-summary-overall .budget-section{
  margin-bottom: 60px;
}

body.page-template-cms-budget-summary-overall .section-header{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

body.page-template-cms-budget-summary-overall .section-header form{
  display: flex;
  gap: 10px;
  align-items: center;
}

body.page-template-cms-budget-summary-overall .section-header select{
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

body.page-template-cms-budget-summary-overall .download-btn{
  background: #0073aa;
  color: #fff;
  margin-top : -19px;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

body.page-template-cms-budget-summary-overall .download-btn:hover{
  background: #005e8a;
}

body.page-template-cms-budget-summary-overall .budget-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

body.page-template-cms-budget-summary-overall .budget-table th,
body.page-template-cms-budget-summary-overall .budget-table td{
  padding: 10px;
  text-align: left;
}

body.page-template-cms-budget-summary-overall .budget-table thead{
  background-color: #f9f9f9;
  border-bottom: 2px solid #ddd;
}

body.page-template-cms-budget-summary-overall .budget-table tr:nth-child(even){
  background-color: #f5f5f5;
}


/* cms-pharmacy-budget-report.php */

body.page-template-cms-pharmacy-budget-report .budget-report-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}

body.page-template-cms-pharmacy-budget-report .budget-report-container h1{
    font-size: 32px;
    color: #222;
    margin-bottom: 10px;
}

body.page-template-cms-pharmacy-budget-report .budget-report-container .report-month{
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

body.page-template-cms-pharmacy-budget-report .budget-report-container form{
    margin-bottom: 30px;
}

body.page-template-cms-pharmacy-budget-report .budget-report-container select{
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

body.page-template-cms-pharmacy-budget-report .table-container{
    margin-top: 20px;
    margin-bottom: 60px;
}

body.page-template-cms-pharmacy-budget-report .budget-report-container h2{
    font-size: 24px;
    margin-top: 40px;
    color: #444;
}

body.page-template-cms-pharmacy-budget-report .budget-table{
    width: 100%;
    border-collapse: collapse;
}

body.page-template-cms-pharmacy-budget-report .budget-table th,
body.page-template-cms-pharmacy-budget-report .budget-table td{
    padding: 10px 12px;
    text-align: left;
}

body.page-template-cms-pharmacy-budget-report .budget-table thead{
    background: #f5f5f5;
    border-bottom: 2px solid #ccc;
}

body.page-template-cms-pharmacy-budget-report .budget-table tr:nth-child(even){
    background: #f9f9f9;
}

body.page-template-cms-pharmacy-budget-report .button.button-primary{
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    margin: 10px 0 20px !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

body.page-template-cms-pharmacy-budget-report .button.button-primary:hover{
    background: #006799 !important;
    color: #fff !important;
    text-decoration: none !important;
}



/* contact-profile.php */

    body.page-template-contact-profile /* Add your custom CSS styles here for table styling */
    table{
        border-collapse: collapse;
        width: 100%;
        margin-top: 20px;
    }

    body.page-template-contact-profile table,
body.page-template-contact-profile th,
body.page-template-contact-profile td{
        border: 1px solid #ddd;
    }

    body.page-template-contact-profile th,
body.page-template-contact-profile td{
        padding: 12px;
        text-align: left;
    }

    body.page-template-contact-profile th{
        background-color: #f2f2f2;
    }

    body.page-template-contact-profile .edit-profile-button,
body.page-template-contact-profile .back-button{
        margin-top: 20px;
    }

    body.page-template-contact-profile .button{
        display: inline-block;
        padding: 10px 15px;
        background-color: #0073e5;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
    }


/* create-campaign.php */

    
    body.page-template-create-campaign /* Add this to your styles.css or a new stylesheet */
.campaign-form-table{
    margin-top: 20px;
}

body.page-template-create-campaign table{
    width: 100%;
    border-collapse: collapse;
}

body.page-template-create-campaign table,
body.page-template-create-campaign th,
body.page-template-create-campaign td{
    border: 1px solid #ddd;
}

body.page-template-create-campaign th,
body.page-template-create-campaign td{
    padding: 10px;
    text-align: left;
}

body.page-template-create-campaign th{
    background-color: #f2f2f2;
}


/* create-visit-planner.php */

body.page-template-create-visit-planner /* Page Base */
body{
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f4f7fb 0%, #eef3f8 100%);
    margin: 0;
    padding: 0;
    color: #1f2937;
}

body.page-template-create-visit-planner /* Main Cards */
.visit-planner-container,
body.page-template-create-visit-planner .visit-list{
    max-width: 900px;
    margin: 28px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
}

body.page-template-create-visit-planner /* Headings */
.visit-planner-container h1,
body.page-template-create-visit-planner .visit-list h2{
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 14px;
}

body.page-template-create-visit-planner .visit-list h2{
    font-size: 21px;
}

body.page-template-create-visit-planner /* Notices */
.notice{
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

body.page-template-create-visit-planner .notice p{
    margin: 0;
}

body.page-template-create-visit-planner .notice-success{
    color: #065f46;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
}

body.page-template-create-visit-planner .notice-error{
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

body.page-template-create-visit-planner /* Form Table Layout */
.visit-planner-container table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

body.page-template-create-visit-planner .visit-planner-container td{
    vertical-align: middle;
}

body.page-template-create-visit-planner .visit-planner-container td:first-child{
    width: 220px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

body.page-template-create-visit-planner /* Inputs */
.visit-planner-container select,
body.page-template-create-visit-planner .visit-planner-container input[type="text"],
body.page-template-create-visit-planner .visit-planner-container input[type="number"],
body.page-template-create-visit-planner .visit-planner-container input[type="date"],
body.page-template-create-visit-planner .visit-planner-container textarea{
    width: 100%;
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body.page-template-create-visit-planner .visit-planner-container select:focus,
body.page-template-create-visit-planner .visit-planner-container input:focus,
body.page-template-create-visit-planner .visit-planner-container textarea:focus{
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.page-template-create-visit-planner .visit-planner-container textarea{
    resize: vertical;
    min-height: 100px;
}

body.page-template-create-visit-planner /* Placeholder */
::placeholder{
    color: #9ca3af;
}

body.page-template-create-visit-planner /* Submit Button */
.visit-planner-container input[type="submit"]{
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

body.page-template-create-visit-planner .visit-planner-container input[type="submit"]:hover{
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

body.page-template-create-visit-planner .visit-planner-container input[type="submit"]:active{
    transform: translateY(0);
}

body.page-template-create-visit-planner /* Training Radio Options */
.training-options{
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

body.page-template-create-visit-planner .training-options input[type="radio"]{
    margin: 0 6px 0 0;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

body.page-template-create-visit-planner .training-options label{
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

body.page-template-create-visit-planner /* Visit List Table */
.visit-list{
    overflow-x: auto;
}

body.page-template-create-visit-planner .visit-list table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 12px;
    font-size: 14px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

body.page-template-create-visit-planner .visit-list th{
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

body.page-template-create-visit-planner .visit-list td{
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    color: #374151;
    vertical-align: middle;
}

body.page-template-create-visit-planner .visit-list tbody tr{
    transition: background-color 0.18s ease;
}

body.page-template-create-visit-planner .visit-list tbody tr:hover{
    background-color: #f9fafb;
}

body.page-template-create-visit-planner .visit-list tbody tr:last-child td{
    border-bottom: none;
}

body.page-template-create-visit-planner /* Status Style */
.visit-list td:nth-child(7){
    font-weight: 700;
}

body.page-template-create-visit-planner /* Delete Button */
.button-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-template-create-visit-planner .button-container .delete-icon{
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

body.page-template-create-visit-planner .button-container .icon-circle{
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

body.page-template-create-visit-planner .button-container .icon-circle:hover{
    background: #b91c1c;
    transform: scale(1.06);
}

body.page-template-create-visit-planner /* Empty Message */
.visit-list p{
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    margin: 10px 0 0;
}

body.page-template-create-visit-planner /* Hide Number Input Arrows */
input[type="number"]::-webkit-inner-spin-button,
body.page-template-create-visit-planner input[type="number"]::-webkit-outer-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

body.page-template-create-visit-planner input[type="number"]{
    -moz-appearance: textfield;
}

body.page-template-create-visit-planner /* Mobile Responsive */
@media screen and (max-width: 768px){
    body {
        background: #f4f7fb;
    }

    .visit-planner-container,
    .visit-list {
        max-width: calc(100% - 24px);
        margin: 16px auto;
        padding: 20px;
        border-radius: 14px;
    }

    .visit-planner-container h1,
    .visit-list h2 {
        font-size: 20px;
    }

    .visit-planner-container table,
    .visit-planner-container tbody,
    .visit-planner-container tr,
    .visit-planner-container td {
        display: block;
        width: 100%;
    }

    .visit-planner-container table {
        border-spacing: 0;
    }

    .visit-planner-container tr {
        margin-bottom: 16px;
    }

    .visit-planner-container td:first-child {
        width: 100%;
        margin-bottom: 7px;
        font-size: 13px;
    }

    .visit-planner-container input[type="submit"] {
        width: 100%;
        padding: 13px;
    }

    .training-options {
        gap: 14px;
    }

    .visit-list {
        padding: 18px;
    }

    .visit-list table {
        min-width: 760px;
    }
}


/* dbc-prospect-list.php */

    body.page-template-dbc-prospect-list /* General Container */
    .marketing-prospects{
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    body.page-template-dbc-prospect-list .page-title{
        text-align: center;
        color: #1e88e5;
        margin-bottom: 20px;
    }

    body.page-template-dbc-prospect-list /* Controls Container */
    .table-controls-container{
        display: flex; /* Flexbox layout for controls */
        justify-content: space-between; /* Space between left and right elements */
        align-items: center; /* Vertical alignment */
        margin-bottom: 20px;
    }

    body.page-template-dbc-prospect-list /* Rows Per Page Controls */
    .table-controls{
        display: flex; /* Flex layout for label and dropdown */
        align-items: center; /* Vertical alignment */
        gap: 10px; /* Spacing between label and dropdown */
    }

    body.page-template-dbc-prospect-list .form-select{
        padding: 5px 10px;
        border: 1px solid #1e88e5;
        border-radius: 4px;
    }

    body.page-template-dbc-prospect-list /* DataTables Filter */
    .dataTables_filter{
        margin: 0; /* Reset any additional margins for consistency */
    }

    body.page-template-dbc-prospect-list /* Table Styling */
    .styled-table{
        width: 100%;
        border-collapse: collapse;
        border: 1px solid #ddd;
    }

    body.page-template-dbc-prospect-list #prospects-table thead th{
        position: relative;
        font-weight: bold;
        background-color: #1e88e5 !important; /* Blue Header */
        color: #fff !important; /* White Text */
        background-repeat: no-repeat !important;
        background-position: right center !important;
        padding: 10px 25px; /* Include right padding for sorting icon */
        border: 1px solid #ddd;
        text-align: left;
    }

    body.page-template-dbc-prospect-list #prospects-table td{
        padding: 10px;
        border: 1px solid #ddd;
        color: #333;
    }

    body.page-template-dbc-prospect-list /* Alternating Row Styling */
    #prospects-table tbody tr.alt-row{
        background-color: #e3f2fd; /* Light blue for alternate rows */
    }

    body.page-template-dbc-prospect-list /* ID Link Styling */
    #prospects-table a.id-link{
        color: #1e88e5;
        text-decoration: none;
    }
    body.page-template-dbc-prospect-list #prospects-table a.id-link:hover{
        text-decoration: underline;
    }

    body.page-template-dbc-prospect-list /* Buttons Styling */
    .dt-button{
        background-color: #1e88e5 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 3px !important;
        padding: 5px 10px !important;
        margin: 0 5px !important;
        cursor: pointer !important;
    }
    body.page-template-dbc-prospect-list .dt-button:hover{
        background-color: #1565c0 !important;
    }

    body.page-template-dbc-prospect-list /* DataTables Sorting Icons */
    table.dataTable thead .sorting{
        background-image: url('https://cdn.datatables.net/1.13.5/images/sort_both.png') !important;
        background-position: right center !important;
        background-repeat: no-repeat !important;
    }
    body.page-template-dbc-prospect-list table.dataTable thead .sorting_asc{
        background-image: url('https://cdn.datatables.net/1.13.5/images/sort_asc.png') !important;
    }
    body.page-template-dbc-prospect-list table.dataTable thead .sorting_desc{
        background-image: url('https://cdn.datatables.net/1.13.5/images/sort_desc.png') !important;
    }


/* dbc-prospect-profile.php */

body.page-template-dbc-prospect-profile .prospect-profile{
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.page-template-dbc-prospect-profile .profile-table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

body.page-template-dbc-prospect-profile .profile-table th,
body.page-template-dbc-prospect-profile .profile-table td{
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

body.page-template-dbc-prospect-profile .profile-table th{
    background: #0073aa;
    color: #000;
    
}

body.page-template-dbc-prospect-profile .edit-button,
body.page-template-dbc-prospect-profile #saveButton{
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body.page-template-dbc-prospect-profile .edit-button{
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body.page-template-dbc-prospect-profile .edit-button:hover{
    background: #005a8c;
}

body.page-template-dbc-prospect-profile .edit-button:hover,
body.page-template-dbc-prospect-profile #saveButton:hover{
    background: #005a8c;
}

body.page-template-dbc-prospect-profile .update-success{
    color: green;
    font-weight: bold;
    margin-top: 15px;
}

body.page-template-dbc-prospect-profile input[readonly]{
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    color: #555;
}

body.page-template-dbc-prospect-profile .feedback-section{
    margin-top: 30px;
}

body.page-template-dbc-prospect-profile .feedback-section h2{
    font-size: 1.5em;
    margin-bottom: 15px;
}

body.page-template-dbc-prospect-profile .feedback-form textarea{
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

body.page-template-dbc-prospect-profile .feedback-form button{
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body.page-template-dbc-prospect-profile .feedback-form button:hover{
    background: #005a8c;
}

body.page-template-dbc-prospect-profile .feedback-list{
    list-style-type: none;
    padding: 0;
}

body.page-template-dbc-prospect-profile .feedback-list li{
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

body.page-template-dbc-prospect-profile .feedback-list .meta{
    font-size: 0.9em;
    color: #777;
}


/* edit-contact-template.php */

    body.page-template-edit-contact-template .clearfix::after{
        content: "";
        display: table;
        clear: both;
    }


/* edit-visit-report.php */

    body.page-template-edit-visit-report{ font-family: Arial, sans-serif; background-color: #f4f4f9; margin: 0; padding: 0; }
    body.page-template-edit-visit-report .wrapper{ display: flex; justify-content: center; padding: 20px; }
    body.page-template-edit-visit-report .content{ background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); width: 100%; max-width: 800px; }
    body.page-template-edit-visit-report h2{ margin-bottom: 20px; color: #333; }
    body.page-template-edit-visit-report .section{ margin-bottom: 30px; border: 1px solid #ddd; padding: 20px; border-radius: 8px; background-color: #fafafa; }
    body.page-template-edit-visit-report .section-title{ font-size: 1.5em; margin-bottom: 10px; border-bottom: 2px solid #ddd; padding-bottom: 5px; }
    body.page-template-edit-visit-report .form-group{ margin-bottom: 20px; }
    body.page-template-edit-visit-report .form-group label{ display: block; font-weight: bold; margin-bottom: 5px; margin-top: 10px; /* Added top margin for labels */ }
    body.page-template-edit-visit-report .form-group span,
body.page-template-edit-visit-report .form-group textarea,
body.page-template-edit-visit-report .form-group select,
body.page-template-edit-visit-report .form-group input{ width: 100%; padding: 10px; border-radius: 4px; }
    body.page-template-edit-visit-report .readonly{ border: 1px solid #ddd; background-color: #f8f9fa; }
    body.page-template-edit-visit-report .readonly-cursor{ cursor: not-allowed; }
    body.page-template-edit-visit-report .editable{ border: 1px solid #ccc; }
    body.page-template-edit-visit-report textarea.readonly{ resize: none; }
    body.page-template-edit-visit-report button{ padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px; }
    body.page-template-edit-visit-report #editButton{ background-color: #007bff; color: white; }
    body.page-template-edit-visit-report #editButton:hover{ background-color: #0056b3; }
    body.page-template-edit-visit-report #completeButton{ background-color: #28a745; color: white; display: none; }
    body.page-template-edit-visit-report #completeButton:hover{ background-color: #218838; }
    body.page-template-edit-visit-report #backButton{ background-color: #6c757d; color: white; margin-right: 10px; }
    body.page-template-edit-visit-report #backButton:hover{ background-color: #5a6268; }
    body.page-template-edit-visit-report #cancelButton{ background-color: #dc3545; color: white; display: none; }
    body.page-template-edit-visit-report #cancelButton:hover{ background-color: #c82333; }
    body.page-template-edit-visit-report .sku-entry{ display: flex; align-items: center; margin-bottom: 10px; gap: 10px; }
    body.page-template-edit-visit-report .sku-entry > div{ flex: 1; min-width: 150px; }
    body.page-template-edit-visit-report .quantity-container{ display: flex; align-items: center; gap: 10px; }
    body.page-template-edit-visit-report .remove-button-container{ display: flex; align-items: center; }
    body.page-template-edit-visit-report .removeButton{ color: red; font-weight: bold; cursor: pointer; }
    body.page-template-edit-visit-report .quantity{ width: 50px; } body.page-template-edit-visit-report /* Adjusted the width of the quantity dropdown */ 
    #addMoreButton{ background-color: #001f3f; color: white; display: none; }
    body.page-template-edit-visit-report #addMoreButton:hover{ background-color: #196EE2; }
    body.page-template-edit-visit-report .no-record{ color: #888; font-style: italic; }
    body.page-template-edit-visit-report .button-group{ display: flex; justify-content: flex-start; margin-top: 20px; }
    body.page-template-edit-visit-report .error-message{ background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 10px; margin: 20px 0; border-radius: 4px; }
    body.page-template-edit-visit-report .success-message{ background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 10px; margin: 20px 0; border-radius: 4px; }
    body.page-template-edit-visit-report .attachment-entry{ display: flex; align-items: center; margin-bottom: 10px; }
    body.page-template-edit-visit-report .attachment-entry input{ margin-right: 10px; }
    body.page-template-edit-visit-report .removeAttachmentButton{ color: red; font-weight: bold; cursor: pointer; margin-left: 10px; }
    body.page-template-edit-visit-report .activities-container{ display: flex; flex-direction: column; }
    body.page-template-edit-visit-report .activity-item{ display: flex; align-items: center; gap: 5px; }
    body.page-template-edit-visit-report .activity-checkbox{ margin-right: 5px; width: auto; }
    body.page-template-edit-visit-report .activity-item input[type="checkbox"]{ width: auto; }
    body.page-template-edit-visit-report .activity-item label{ margin-top: 10px; /* Added top margin for labels */ }


/* high-stock-list-mgr.php */


body.page-template-high-stock-list-mgr .card{
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

body.page-template-high-stock-list-mgr h2,
body.page-template-high-stock-list-mgr h3{
    color: #0073aa;
    margin-bottom: 20px;
    font-weight: bold;
}

body.page-template-high-stock-list-mgr h3{
    font-size: 22px;
    margin-top: 30px;
}

body.page-template-high-stock-list-mgr .alert{
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

body.page-template-high-stock-list-mgr .alert-danger{
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

body.page-template-high-stock-list-mgr .alert-warning{
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

body.page-template-high-stock-list-mgr .alert-info{
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

body.page-template-high-stock-list-mgr .table.custom-table{
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #0056b3; /* 🔵 Dark blue border for whole table */
}

body.page-template-high-stock-list-mgr .table.custom-table thead{
    background-color: #00d3ff;
    color: #ffffff;
}

body.page-template-high-stock-list-mgr .table.custom-table th,
body.page-template-high-stock-list-mgr .table.custom-table td{
    padding: 15px;
    border: 2px solid #0056b3; /* 🔵 Apply to each cell */
    text-align: center;
    font-size: 15px;
}

body.page-template-high-stock-list-mgr .table.custom-table tbody tr{
    border: 2px solid #0056b3; /* 🔵 Row border */
}

body.page-template-high-stock-list-mgr .table.custom-table tbody tr:hover{
    background-color: #e9f2ff; /* 🔵 Light blue hover */
}

body.page-template-high-stock-list-mgr .text-primary{
    color: #007bff !important;
}

body.page-template-high-stock-list-mgr .text-warning{
    color: #007bff !important;
}

body.page-template-high-stock-list-mgr .text-secondary{
    color: #007bff !important;
}

body.page-template-high-stock-list-mgr .badge{
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
}

body.page-template-high-stock-list-mgr .bg-warning{
    background-color: #ffc107;
    color: #212529;
}

body.page-template-high-stock-list-mgr .bg-success{
    background-color: #28a745;
    color: #fff;
}

body.page-template-high-stock-list-mgr .bg-danger{
    background-color: #dc3545;
    color: #fff;
}

body.page-template-high-stock-list-mgr a.text-primary{
    text-decoration: none;
    font-weight: bold;
}

body.page-template-high-stock-list-mgr a.text-primary:hover{
    text-decoration: underline;
}

body.page-template-high-stock-list-mgr select.form-control{
    padding: 10px;
    border: 2px solid #0056b3;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}

body.page-template-high-stock-list-mgr #loading-text{
    margin-top: 10px;
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
}

body.page-template-high-stock-list-mgr .style-simple table:not(.recaptchatable) th,
body.page-template-high-stock-list-mgr .style-simple table td{
    border-width: 0 2px 2px 0;
} 


/* high-stock-support.php */


body.page-template-high-stock-support /* Improve Select2 Dropdown Styling */
.select2-container--default .select2-selection--single{
    height: 45px !important; /* Increase height for better appearance */
    border: 2px solid #007bff !important; /* Add blue border */
    border-radius: 5px !important; /* Rounded corners */
    padding: 10px !important;
    font-size: 16px !important;
    background-color: #ffffff !important; /* White background */
    transition: all 0.3s ease-in-out !important;
}

body.page-template-high-stock-support /* Hover & Focus Effects */
.select2-container--default .select2-selection--single:hover,
body.page-template-high-stock-support .select2-container--default .select2-selection--single:focus{
    border-color: #0056b3 !important; /* Darker blue on hover */
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5) !important;
}

body.page-template-high-stock-support /* Style the search box inside the dropdown */
.select2-search--dropdown .select2-search__field{
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 14px !important;
}

body.page-template-high-stock-support /* Style the dropdown results */
.select2-results__option{
    padding: 12px 15px !important;
    font-size: 16px !important;
    color: #333 !important;
}

body.page-template-high-stock-support /* Highlight selected option */
.select2-container--default .select2-results__option--highlighted{
    background-color: #007bff !important;
    color: #ffffff !important;
}
body.page-template-high-stock-support /* General Styles */
body{
    font-family: "Arial", sans-serif !important;
    margin: 0;
    padding: 0;
}

body.page-template-high-stock-support /* Layout */
.container{
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

body.page-template-high-stock-support /* Cards */
.card{
    border-radius: 10px !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 25px !important;
    padding: 20px !important;
}

body.page-template-high-stock-support /* Tables */
.table{
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

body.page-template-high-stock-support .table th,
body.page-template-high-stock-support .table td{
    padding: 12px !important;
    border: 1px solid #dee2e6 !important;
}

body.page-template-high-stock-support .table th{
    background-color: #007bff !important;
    color: #ffffff !important;
    text-align: center;
}

body.page-template-high-stock-support /* Text Styles */
.text-success{ color: green; }
body.page-template-high-stock-support .text-danger{ color: red; }
body.page-template-high-stock-support .fw-bold{ font-weight: bold; }
body.page-template-high-stock-support .loading-text{
    display: none;
    color: #007bff;
    font-weight: bold;
}

body.page-template-high-stock-support /* Remarks Box */
.remarks-box{
    width: 100% !important;
    min-height: 120px !important;
    padding: 10px !important;
    resize: vertical !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
}

body.page-template-high-stock-support /* Product Group */
.product-group{
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    align-items: center !important;
}

body.page-template-high-stock-support .product-dropdown,
body.page-template-high-stock-support .stock-dropdown{
    width: 50% !important;
    padding: 8px !important;
}

body.page-template-high-stock-support /* Buttons */
.add-product,
body.page-template-high-stock-support .remove-product{
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px !important;
}

body.page-template-high-stock-support /* Primary Button */
.btn-primary{
    background-color: #007bff !important;
    border-color: #0056b3 !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease-in-out !important;
}

body.page-template-high-stock-support .btn-primary:hover{
    background-color: #0056b3 !important;
}

body.page-template-high-stock-support /* Responsive Adjustments */
@media (max-width: 768px){
    .product-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-dropdown,
    .stock-dropdown {
        width: 100% !important;
    }
}

body.page-template-high-stock-support .custom-alert{
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

body.page-template-high-stock-support .custom-alert i{
    font-size: 20px;
}

body.page-template-high-stock-support /* Variants */
.alert-success{
    background-color: #e6f9ed;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

body.page-template-high-stock-support .alert-danger{
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

body.page-template-high-stock-support .alert-warning{
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}


body.page-template-high-stock-support /* Force attachment area layout */
#attachment-wrapper{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

body.page-template-high-stock-support /* Stack newer attachments on top */
#attachment-stack{
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
}

body.page-template-high-stock-support /* Attachment item wrapper */
.attachment-item{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f8f9fa !important;
    padding: 10px 15px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
}

body.page-template-high-stock-support /* File input field */
.attachment-input{
    flex-grow: 1 !important;
    min-width: 250px !important;
    padding: 8px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    background-color: #fff !important;
}

body.page-template-high-stock-support /* Add Button */
#attachment-wrapper > .btn-secondary{
    align-self: flex-start !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    background-color: #007bff !important;
    color: #fff !important;
    border: none !important;
    transition: background-color 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

body.page-template-high-stock-support #attachment-wrapper > .btn-secondary:hover{
    background-color: #0056b3 !important;
}

body.page-template-high-stock-support /* Remove Button */
.remove-attachment{
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 6px 12px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out !important;
}

body.page-template-high-stock-support .remove-attachment:hover{
    background-color: #c82333 !important;
}




/* hs-abe-request-list.php */

body.page-template-hs-abe-request-list /* Blue Table Theme */
.table-blue{
    border: 2px solid #007bff !important;
    background-color: #e3f2fd !important;
}

body.page-template-hs-abe-request-list /* Header Styling */
.table-blue thead{
    background-color: #007bff !important;
    color: #ffffff !important;
    border: 2px solid #0056b3 !important;
}

body.page-template-hs-abe-request-list .table-blue th{
    padding: 12px;
    text-align: center;
    border: 2px solid #0056b3 !important;
}

body.page-template-hs-abe-request-list /* Table Body */
.table-blue tbody tr{
    border: 2px solid #007bff !important;
}

body.page-template-hs-abe-request-list .table-blue tbody tr:nth-child(odd){
    background-color: #bbdefb !important;
}

body.page-template-hs-abe-request-list .table-blue tbody tr:hover{
    background-color: #90caf9 !important;
    transition: background-color 0.3s ease-in-out;
}

body.page-template-hs-abe-request-list /* Hyperlinked Request ID */
.btn-outline-primary{
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
}

body.page-template-hs-abe-request-list .btn-outline-primary:hover{
    background-color: #0056b3;
    color: white !important;
}


/* hs-mkt-job-details.php */

body.page-template-hs-mkt-job-details /* Modern Styling for High Stock MKT Job Details */

/* General Page Layout */
.container{
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

body.page-template-hs-mkt-job-details /* Card Styling */
.card{
    border-radius: 12px;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

body.page-template-hs-mkt-job-details /* Title Styling */
h2,
body.page-template-hs-mkt-job-details h3{
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 15px;
}

body.page-template-hs-mkt-job-details /* Table Styling */
.table{
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

body.page-template-hs-mkt-job-details .table thead{
    background: #0056b3;
    color: white;
}

body.page-template-hs-mkt-job-details .table tbody tr:hover{
    background: rgba(0, 86, 179, 0.1);
}

body.page-template-hs-mkt-job-details /* Badges */
.badge{
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
}

body.page-template-hs-mkt-job-details /* Button Styling */
.btn-primary{
    background: #0056b3;
    border: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

body.page-template-hs-mkt-job-details .btn-primary:hover{
    background: #004494;
}

body.page-template-hs-mkt-job-details /* Form Styling */
textarea{
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ddd;
}

body.page-template-hs-mkt-job-details /* Alert Messages */
.alert{
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 15px;
}

body.page-template-hs-mkt-job-details /* ✅ Positive Sales (Green) */
.positive-sales{
    color: #28a745 !important;  /* Bootstrap success green */
    font-weight: bold;
}

body.page-template-hs-mkt-job-details /* ✅ Negative or Zero Sales (Red) */
.negative-sales{
    color: #dc3545 !important;  /* Bootstrap danger red */
    font-weight: bold;
}



/* hs-mkt-job-list.php */

body.page-template-hs-mkt-job-list .custom-table{
    width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

body.page-template-hs-mkt-job-list .custom-table th{
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: left;
}

body.page-template-hs-mkt-job-list .custom-table td{
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

body.page-template-hs-mkt-job-list .badge{ padding: 8px 12px; font-size: 14px; border-radius: 6px; }
body.page-template-hs-mkt-job-list .btn-sm{ padding: 8px 12px; font-size: 14px; border-radius: 5px; }
body.page-template-hs-mkt-job-list .completed-table th{ background-color: #6c757d !important; } /* Gray for completed jobs */


/* hs-request-details.php */

       body.page-template-hs-request-details .custom-table{
        border-collapse: collapse; /* ✅ Ensures borders are connected properly */
        border: 2px solid #007bff;
        border-radius: 10px;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    body.page-template-hs-request-details /* Ensure borders are fully visible in thead */
    .custom-table thead{
        border-bottom: 3px solid #007bff !important; /* ✅ Adds a bottom border to thead */
    }

    body.page-template-hs-request-details .custom-table th,
body.page-template-hs-request-details .custom-table td{
        border: 2px solid #007bff; /* ✅ Full borders for table rows & cells */
        padding: 14px;
        font-size: 16px;
    }

    body.page-template-hs-request-details .custom-table thead th{
        background-color: #007bff;
        color: black;
        text-align: center;
        border-bottom: 2px solid #007bff !important; /* ✅ Ensure bottom border in header */
    }

    body.page-template-hs-request-details .custom-table tbody tr{
        border-top: 2px solid #007bff !important; /* ✅ Ensures tbody rows have a top border */
    }

    body.page-template-hs-request-details .custom-table .mid-line{
        border-left: 2px solid #007bff; /* ✅ Middle blue line */
    }

    body.page-template-hs-request-details .badge{
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 8px;
    }

    body.page-template-hs-request-details /* Force Button Custom Styles */
    .custom-btn{
        display: inline-block;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: bold !important;
        border-radius: 6px !important;
        transition: all 0.3s ease-in-out !important;
        text-transform: uppercase;
        border: none !important;
    }


body.page-template-hs-request-details .button-container{
    display: flex;
    justify-content: space-between; /* ✅ Places buttons on opposite sides */
    align-items: center;
    gap: 20px; /* ✅ Ensures a gap between them */
}

body.page-template-hs-request-details .form-inline{
    display: flex;
    align-items: center;
    gap: 10px; /* ✅ Small gap between the dropdown and approve button */
}

body.page-template-hs-request-details .select-box{
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
 
    body.page-template-hs-request-details /* Approve Button */
.custom-btn-success{
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
}

body.page-template-hs-request-details .custom-btn-success:hover{
    background: #155724 !important;
    transform: scale(1.05);
}

    body.page-template-hs-request-details /* Reject Button */
.custom-btn-danger{
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
}

   body.page-template-hs-request-details .custom-btn-danger:hover{
    background: #a71d2a !important;
    transform: scale(1.05);
}

    body.page-template-hs-request-details /* Primary Button (Assign) */
    .custom-btn-primary{
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        color: white !important;
    }
    body.page-template-hs-request-details .custom-btn-primary:hover{
        background: #004085 !important;
        transform: scale(1.05);
    }
    
body.page-template-hs-request-details .positive-sales{
    color: #28a745 !important;  /* Bootstrap success green */
    font-weight: bold;
}

body.page-template-hs-request-details /* ✅ Negative or Zero Values (Red) */
.negative-sales{
    color: #dc3545 !important;  /* Bootstrap danger red */
    font-weight: bold;
}

body.page-template-hs-request-details /* 🧑‍🎨 Align Approve fields side by side */
.approval-row{
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

body.page-template-hs-request-details .approval-row label{
    width: 150px; /* fixed width for labels */
    font-weight: bold;
    margin-right: 10px;
    text-align: right;
}

body.page-template-hs-request-details .approval-row select,
body.page-template-hs-request-details .approval-row textarea{
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
}

body.page-template-hs-request-details /* 📈 Sales Report Table Border Improvements */
.sales-report-table{
    border-collapse: collapse;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #007bff; /* Dark Blue Border */
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

 

body.page-template-hs-request-details .sales-report-table thead{
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

body.page-template-hs-request-details .sales-report-table th,
body.page-template-hs-request-details .sales-report-table td{
    border: 2px solid #007bff;
    padding: 12px;
    text-align: center;
    font-size: 15px;
}

body.page-template-hs-request-details .sales-report-table tbody tr:nth-child(even){
    background-color: #f9f9f9;
}

body.page-template-hs-request-details .sales-report-table tbody tr:hover{
    background-color: #e6f2ff;
}

body.page-template-hs-request-details .text-muted{
    color: #6c757d;
    font-style: italic;
}


/* job-request-form.php */

body.page-template-job-request-form .job-request-form-container{
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

body.page-template-job-request-form .job-request-form-container label{
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

body.page-template-job-request-form .job-request-form-container input[type="text"],
body.page-template-job-request-form .job-request-form-container textarea,
body.page-template-job-request-form .job-request-form-container select{
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

body.page-template-job-request-form .job-request-form-container input[type="submit"]{
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body.page-template-job-request-form .job-request-form-container input[type="submit"]:hover{
    background: #005f8d;
}

body.page-template-job-request-form .error-message{
    color: red;
    font-size: 14px;
}


/* lacto5-alkaline-training-quiz.php */

body.page-template-lacto5-alkaline-training-quiz .lacto5-quiz-wrap{
    max-width: 920px;
    margin: 40px auto;
    padding: 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-quiz-wrap h1{
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.35;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-quiz-wrap .intro{
    margin-bottom: 24px;
    color: #555;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group{
    margin-bottom: 18px;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group label{
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group input[type="text"],
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group input[type="email"],
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group select,
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group textarea{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-form-group textarea{
    min-height: 120px;
    resize: vertical;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-question{
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-question h3{
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-options label{
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    cursor: pointer;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-rating{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-rating label{
    font-weight: 500;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-btn{
    background: #1e73be;
    color: #fff;
    border: 0;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-btn:hover{
    background: #155d99;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-msg{
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-success{
    background: #e7f8ec;
    color: #166534;
    border: 1px solid #b7ebc6;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-error{
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f5b5b5;
}
body.page-template-lacto5-alkaline-training-quiz .required{
    color: #d92d20;
}
@media (max-width: 768px){
    body.page-template-lacto5-alkaline-training-quiz .lacto5-grid{
        grid-template-columns: 1fr;
    }
    body.page-template-lacto5-alkaline-training-quiz .lacto5-quiz-wrap{
        margin: 20px 12px;
        padding: 18px;
    }
}

body.page-template-lacto5-alkaline-training-quiz .en-label{
    display:block;
    font-size:16px;
    font-weight:600;
    color:#111;
    line-height:1.45;
}
body.page-template-lacto5-alkaline-training-quiz .bm-label{
    display:block;
    font-size:14px;
    font-weight:400;
    color:#666;
    line-height:1.45;
    margin-top:2px;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-options .en-label{
    display:inline;
    font-size:15px;
    font-weight:400;
}
body.page-template-lacto5-alkaline-training-quiz .lacto5-options .bm-label{
    display:block;
    padding-left:24px;
}

body.page-template-lacto5-alkaline-training-quiz .select2-container .select2-selection--single{
    height: 46px !important;
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
}
body.page-template-lacto5-alkaline-training-quiz .select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 28px !important;
    color: #111 !important;
}
body.page-template-lacto5-alkaline-training-quiz .select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 44px !important;
    right: 8px !important;
}
body.page-template-lacto5-alkaline-training-quiz .select2-container{
    width: 100% !important;
}
body.page-template-lacto5-alkaline-training-quiz .select2-dropdown{
    border-radius: 10px !important;
    border: 1px solid #ccc !important;
}
body.page-template-lacto5-alkaline-training-quiz .select2-search__field{
    padding: 8px !important;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-hero{
    margin-bottom: 28px;
    background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    overflow: hidden;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-hero-inner{
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    position: relative;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-hero-inner::before{
    content: "";
    width: 6px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(180deg, #1e73be 0%, #38bdf8 100%);
    flex: 0 0 6px;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-title{
    margin: 0 0 10px 0;
    line-height: 1.3;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-title .en-label{
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-title .bm-label{
    font-size: 20px;
    color: #475569;
    margin-top: 6px;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-intro .en-label{
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

body.page-template-lacto5-alkaline-training-quiz .lacto5-form-intro .bm-label{
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

@media (max-width: 768px){
    body.page-template-lacto5-alkaline-training-quiz .lacto5-form-hero-inner{
        padding: 18px;
    }

    body.page-template-lacto5-alkaline-training-quiz .lacto5-form-title .en-label{
        font-size: 22px;
    }

    body.page-template-lacto5-alkaline-training-quiz .lacto5-form-title .bm-label{
        font-size: 20px;
    }
}



/* lacto5-alkaline-training-report.php */

body.page-template-lacto5-alkaline-training-report .lacto5-report-page{
    background: #f5f7fb;
    padding: 30px 0;
}
body.page-template-lacto5-alkaline-training-report .lacto5-report-wrap{
    max-width: 1450px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}
body.page-template-lacto5-alkaline-training-report .lacto5-report-title{
    margin: 0 0 24px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}
body.page-template-lacto5-alkaline-training-report .lacto5-section{
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
body.page-template-lacto5-alkaline-training-report .lacto5-section-title{
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}
body.page-template-lacto5-alkaline-training-report .lacto5-report-filters{
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-report-filters label,
body.page-template-lacto5-alkaline-training-report .lacto5-summary-filter label{
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
body.page-template-lacto5-alkaline-training-report .lacto5-report-filters input,
body.page-template-lacto5-alkaline-training-report .lacto5-report-filters select,
body.page-template-lacto5-alkaline-training-report .lacto5-summary-filter select{
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
    color: #111827;
    font-size: 14px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-report-actions{
    display: flex;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
body.page-template-lacto5-alkaline-training-report .lacto5-summary-filter{
    min-width: 260px;
}

body.page-template-lacto5-alkaline-training-report /* Main button style */
.lacto5-btn,
body.page-template-lacto5-alkaline-training-report .lacto5-report-actions button[type="submit"]{
    background: linear-gradient(135deg, #1e73be 0%, #2563eb 100%);
    color: #fff !important;
    border: 0 !important;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 42px;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
body.page-template-lacto5-alkaline-training-report .lacto5-btn:hover,
body.page-template-lacto5-alkaline-training-report .lacto5-report-actions button[type="submit"]:hover{
    background: linear-gradient(135deg, #155d99 0%, #1d4ed8 100%);
    color: #fff !important;
}
body.page-template-lacto5-alkaline-training-report .lacto5-btn:focus,
body.page-template-lacto5-alkaline-training-report .lacto5-report-actions button[type="submit"]:focus{
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
body.page-template-lacto5-alkaline-training-report .lacto5-btn-secondary{
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}
body.page-template-lacto5-alkaline-training-report .lacto5-btn-secondary:hover{
    background: #e5e7eb !important;
    color: #111827 !important;
}

body.page-template-lacto5-alkaline-training-report .lacto5-kpi{
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-kpi-card{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-kpi-card .label{
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
}
body.page-template-lacto5-alkaline-training-report .lacto5-kpi-card .value{
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}
body.page-template-lacto5-alkaline-training-report .report-table-wrap{
    overflow-x: auto;
    overflow-y: visible !important;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
}
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable{
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-size: 14px;
    color: #111827;
}
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable,
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable thead,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable thead,
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable tbody,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable tbody,
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable tr,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable tr,
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable th,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable th,
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable td,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable td{
    border: 1px solid #dbe3ee !important;
}
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable thead th,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable thead th{
    background: #eef4fb !important;
    color: #0f172a !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 10px !important;
}
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable tbody td,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable tbody td{
    background: #ffffff;
    padding: 11px 10px !important;
    vertical-align: top !important;
}
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable tbody tr:nth-child(even) td,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable tbody tr:nth-child(even) td{
    background: #f9fbfd;
}
body.page-template-lacto5-alkaline-training-report #lacto5SummaryTable tbody tr:hover td,
body.page-template-lacto5-alkaline-training-report #lacto5ReportTable tbody tr:hover td{
    background: #f1f7ff !important;
}
body.page-template-lacto5-alkaline-training-report .score-badge{
    display: inline-block;
    min-width: 52px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 13px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-entry-link{
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}
body.page-template-lacto5-alkaline-training-report .lacto5-entry-link:hover{
    text-decoration: underline;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-box{
    background: #fff;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-close{
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #475569;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-title{
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-grid > div{
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-section{
    margin-top: 20px;
}
body.page-template-lacto5-alkaline-training-report .lacto5-modal-section h4{
    margin: 0 0 10px;
    font-size: 18px;
    color: #111827;
}
body.page-template-lacto5-alkaline-training-report .lacto5-detail-table{
    width: 100%;
    border-collapse: collapse;
}
body.page-template-lacto5-alkaline-training-report .lacto5-detail-table,
body.page-template-lacto5-alkaline-training-report .lacto5-detail-table th,
body.page-template-lacto5-alkaline-training-report .lacto5-detail-table td{
    border: 1px solid #dbe3ee;
}
body.page-template-lacto5-alkaline-training-report .lacto5-detail-table th{
    background: #eef4fb;
    padding: 10px;
    text-align: left;
}
body.page-template-lacto5-alkaline-training-report .lacto5-detail-table td{
    padding: 10px;
    vertical-align: top;
}
body.page-template-lacto5-alkaline-training-report .lacto5-feedback-box{
    min-height: 70px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    white-space: pre-wrap;
}
body.page-template-lacto5-alkaline-training-report .lacto5-result-correct{
    color: #15803d;
    font-weight: 700;
}
body.page-template-lacto5-alkaline-training-report .lacto5-result-wrong{
    color: #b91c1c;
    font-weight: 700;
}

body.page-template-lacto5-alkaline-training-report /* DataTables button styling */
.dt-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
body.page-template-lacto5-alkaline-training-report .dataTables_wrapper{
    overflow: visible !important;
}
body.page-template-lacto5-alkaline-training-report .dataTables_wrapper .dt-buttons{
    float: none !important;
    margin-bottom: 14px !important;
}
body.page-template-lacto5-alkaline-training-report .dt-button,
body.page-template-lacto5-alkaline-training-report button.dt-button,
body.page-template-lacto5-alkaline-training-report div.dt-button,
body.page-template-lacto5-alkaline-training-report a.dt-button{
    background: linear-gradient(135deg, #1e73be 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: 0 !important;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    min-height: 42px;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}
body.page-template-lacto5-alkaline-training-report .dt-button:hover,
body.page-template-lacto5-alkaline-training-report button.dt-button:hover,
body.page-template-lacto5-alkaline-training-report div.dt-button:hover,
body.page-template-lacto5-alkaline-training-report a.dt-button:hover{
    background: linear-gradient(135deg, #155d99 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: 0 !important;
}
body.page-template-lacto5-alkaline-training-report .dt-button:focus,
body.page-template-lacto5-alkaline-training-report button.dt-button:focus,
body.page-template-lacto5-alkaline-training-report div.dt-button:focus,
body.page-template-lacto5-alkaline-training-report a.dt-button:focus{
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}
body.page-template-lacto5-alkaline-training-report .dt-button span{
    color: inherit !important;
}
body.page-template-lacto5-alkaline-training-report .dataTables_wrapper .dataTables_filter{
    margin-bottom: 12px;
}

@media (max-width: 900px){
    body.page-template-lacto5-alkaline-training-report .lacto5-report-filters,
body.page-template-lacto5-alkaline-training-report .lacto5-kpi{
        grid-template-columns: 1fr;
    }
    body.page-template-lacto5-alkaline-training-report .lacto5-report-wrap{
        margin: 0 12px;
        padding: 18px;
        border-radius: 16px;
    }
    body.page-template-lacto5-alkaline-training-report .lacto5-section{
        padding: 16px;
        border-radius: 14px;
    }
    body.page-template-lacto5-alkaline-training-report .lacto5-report-title{
        font-size: 24px;
    }
}
@media (max-width: 768px){
    body.page-template-lacto5-alkaline-training-report .lacto5-modal-grid{
        grid-template-columns: 1fr;
    }
    body.page-template-lacto5-alkaline-training-report .lacto5-modal-box{
        padding: 18px;
    }
    body.page-template-lacto5-alkaline-training-report .dt-buttons{
        width: 100%;
    }
    body.page-template-lacto5-alkaline-training-report .dt-button,
body.page-template-lacto5-alkaline-training-report button.dt-button,
body.page-template-lacto5-alkaline-training-report div.dt-button,
body.page-template-lacto5-alkaline-training-report a.dt-button,
body.page-template-lacto5-alkaline-training-report .lacto5-report-actions button[type="submit"],
body.page-template-lacto5-alkaline-training-report .lacto5-btn{
        width: 100%;
    }
}


/* latest-product-report.php */

 

body.page-template-latest-product-report .report-container{
    max-width: 1300px;
    margin: 40px auto;
    padding: 25px 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: 'DM Serif Text', serif;
}
body.page-template-latest-product-report .report-container h2{
    font-size: 28px;
    text-align: center;
    color: #2b3a67;
    margin-bottom: 25px;
}
body.page-template-latest-product-report .report-container form{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}
body.page-template-latest-product-report .report-container select,
body.page-template-latest-product-report .report-container button{
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 15px;
}
body.page-template-latest-product-report .report-container button{
    background: #2b3a67;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
body.page-template-latest-product-report .report-container button:hover{
    background: #1f2950;
}
body.page-template-latest-product-report #reportTable{
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #aaa;
    font-size: 15px;
    background: #fafafa;
}
body.page-template-latest-product-report #reportTable th,
body.page-template-latest-product-report #reportTable td{
    border: 1px solid #aaa;
    padding: 8px 10px;
    text-align: left;
}
body.page-template-latest-product-report #reportTable th{
    background: linear-gradient(135deg, #e3e8ff, #cbd3ff);
    font-weight: 600;
    color: #222;
}
body.page-template-latest-product-report #reportTable tr:nth-child(even){ background: #f8f9ff; }
body.page-template-latest-product-report #reportTable tr:hover{ background: #e9efff; }
body.page-template-latest-product-report #exportBtn{
    background: #009688;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
body.page-template-latest-product-report #exportBtn:hover{ background: #00796b; }
body.page-template-latest-product-report /* Fix duplicated arrows */
table.dataTable thead th.sorting,
body.page-template-latest-product-report table.dataTable thead th.sorting_asc,
body.page-template-latest-product-report table.dataTable thead th.sorting_desc{
    background-image: none !important;
    list-style: none !important;
    position: relative;
    padding-right: 25px;
}
body.page-template-latest-product-report table.dataTable thead th::after{
    content: "▲▼";
    font-size: 10px;
    position: absolute;
    right: 8px;
    color: #666;
    opacity: 0.3;
}
body.page-template-latest-product-report table.dataTable thead th.sorting_asc::after{ content: "▲"; opacity: 0.8; color: #222; }
body.page-template-latest-product-report table.dataTable thead th.sorting_desc::after{ content: "▼"; opacity: 0.8; color: #222; }
@media (max-width:768px) {
    body.page-template-latest-product-report .report-container{ padding: 20px; }
    body.page-template-latest-product-report #reportTable{ font-size: 13px; }
}


/* my-budget-request.php */

    body.page-template-my-budget-request /* General Button Styles */
    .btn{
        background-color: #1e88e5;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        margin: 10px 0;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    body.page-template-my-budget-request .btn:hover{
        background-color: #1565c0;
    }

    body.page-template-my-budget-request /* Tab Buttons */
    .tab button{
        background-color: #0c6cb3;
        border: 1px solid #90caf9;
        cursor: pointer;
        padding: 10px 20px;
        font-size: 16px;
        margin-right: 5px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    body.page-template-my-budget-request .tab button.active{
        background-color: #42a5f5;
        color: white;
    }
    body.page-template-my-budget-request .tab button:hover{
        background-color: #bbdefb;
    }

    body.page-template-my-budget-request /* Table Styles */
    #budget-table{
        width: 100%; /* Full width */
        border-collapse: collapse;
        margin-top: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    body.page-template-my-budget-request #budget-table th,
body.page-template-my-budget-request #budget-table td{
        border: 1px solid #bbdefb;
        padding: 12px 15px;
        text-align: left;
    }
    body.page-template-my-budget-request #budget-table thead{
        background-color: #1e88e5;
        color: white;
    }
    body.page-template-my-budget-request #budget-table tr:nth-child(even){
        background-color: #e3f2fd;
    }
    body.page-template-my-budget-request #budget-table tr:hover{
        background-color: #bbdefb;
    }

 


/* pending-report.php */

body.page-template-pending-report /* Pending Reports Section CSS */
.pending-reports-section{
    max-width: 900px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

body.page-template-pending-report .pending-reports-section h2{
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

body.page-template-pending-report .pending-reports-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

body.page-template-pending-report .pending-reports-table th,
body.page-template-pending-report .pending-reports-table td{
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

body.page-template-pending-report .pending-reports-table th{
    background-color: #f7f7f7;
    font-weight: 600;
}

body.page-template-pending-report .pending-reports-table tbody tr:nth-child(even){
    background-color: #f9f9f9;
}

body.page-template-pending-report .pending-reports-table tbody tr:hover{
    background-color: #f0f8ff;
}

body.page-template-pending-report .pending-reports-table a{
    color: #0078d4;
    text-decoration: none;
}

body.page-template-pending-report .pending-reports-table a:hover{
    text-decoration: underline;
}


/* sales-dashboard.php */

    body.page-template-sales-dashboard .sales-dashboard{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 100vh;
        text-align: center;
    }

    body.page-template-sales-dashboard .chart-container{
        width: 80%;
        max-width: 600px;
        margin-bottom: 20px;
    }

    body.page-template-sales-dashboard .total-sales{
        font-size: 18px;
        margin-bottom: 10px;
    }

    body.page-template-sales-dashboard .buttons{
        display: flex;
        justify-content: center;
        margin-top: 20px; /* Added margin-top */
    }

    body.page-template-sales-dashboard .buttons button{
        margin: 0 10px;
    }

    @media (max-width: 768px) {
        body.page-template-sales-dashboard .chart-container{
            width: 90%;
        }
    }


/* top10-summary.php */

body.page-template-top10-summary /* ===== TOP10 REPORT TABLE STYLES ===== */

.top10-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    font-size: 14px;
}

body.page-template-top10-summary .top10-table thead th{
    background: #e0f2fe;        /* light blue background */
    color: #0f4c81;             /* blue text */
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    border: 1px solid #cbd5e1;
}

body.page-template-top10-summary .top10-table tbody td{
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

body.page-template-top10-summary .top10-table tbody tr:nth-child(even){
    background-color: #f8fafc;
}

body.page-template-top10-summary .top10-table tbody tr:hover{
    background-color: #eef2ff;
}

body.page-template-top10-summary /* Center numeric columns */
.top10-table .num{
    text-align: center;
    font-weight: 600;
}

body.page-template-top10-summary /* ===== STATUS BADGES ===== */

.status{
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

body.page-template-top10-summary .status.visited{
    background-color: #dcfce7;
    color: #166534;
}

body.page-template-top10-summary .status.not-visited{
    background-color: #fee2e2;
    color: #991b1b;
}

body.page-template-top10-summary /* ===== DETAIL SECTION ===== */

#detailResult{
    margin-top: 25px;
}

body.page-template-top10-summary #detailTitle{
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

body.page-template-top10-summary /* ===== DROPDOWN ===== */

.top10-filter{
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

body.page-template-top10-summary .top10-filter select{
    padding: 8px 10px;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
}

body.page-template-top10-summary /* ===== RESPONSIVE ===== */

@media (max-width: 768px){
    .top10-table thead {
        display: none;
    }

    .top10-table,
    .top10-table tbody,
    .top10-table tr,
    .top10-table td {
        display: block;
        width: 100%;
    }

    .top10-table tr {
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 10px;
    }

    .top10-table td {
        border: none;
        padding: 6px 0;
    }

    .top10-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #475569;
    }
}

body.page-template-top10-summary /* ===== TOP10 REPORT TABLE BORDERS ===== */

.top10-table{
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cbd5e1; /* OUTER BORDER */
    margin-top: 20px;
    background: #ffffff;
    font-size: 14px;
}

body.page-template-top10-summary .top10-table thead th{
    background: #1e293b;
 
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #cbd5e1; /* HEADER CELL BORDER */
}

body.page-template-top10-summary .top10-table tbody td{
    padding: 10px;
    border: 1px solid #cbd5e1; /* BODY CELL BORDER */
    vertical-align: middle;
}

body.page-template-top10-summary .top10-table tbody tr:nth-child(even){
    background-color: #f8fafc;
}

body.page-template-top10-summary .top10-table tbody tr:hover{
    background-color: #eef2ff;
}

 


/* update-visit-report-v3.php */

        body.page-template-update-visit-report-v3 *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body.page-template-update-visit-report-v3,
body.page-template-update-visit-report-v3{
            height: 100%;
            font-family: Arial, sans-serif;
        }
        body.page-template-update-visit-report-v3 .wrapper{
            min-height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        body.page-template-update-visit-report-v3 .content{
            flex: 1;
            padding: 20px;
            background-color: #f8f9fa;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            margin: 20px auto;
            max-width: 650px;
            width: 100%;
        }
        body.page-template-update-visit-report-v3 .alert{
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 4px;
            display: none;
        }
        body.page-template-update-visit-report-v3 .alert.success{
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        body.page-template-update-visit-report-v3 .alert.error{
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        body.page-template-update-visit-report-v3 .visit-table{
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            border-radius: 8px;
        }
        body.page-template-update-visit-report-v3 .visit-table th,
body.page-template-update-visit-report-v3 .visit-table td{
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }
        body.page-template-update-visit-report-v3 .visit-table th{
            background-color: #007bff;
            color: #fff;
        }
        body.page-template-update-visit-report-v3 .visit-table tbody tr:nth-child(even){
            background-color: #f1f1f1;
        }
        body.page-template-update-visit-report-v3 .visit-table tbody tr:hover{
            background-color: #e9ecef;
        }
        body.page-template-update-visit-report-v3 .footer{
            background-color: #343a40;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            width: 100%;
        }
        @media only screen and (max-width: 768px) {
            body.page-template-update-visit-report-v3 .content{
                padding: 15px;
            }
            body.page-template-update-visit-report-v3 .visit-table th,
body.page-template-update-visit-report-v3 .visit-table td{
                padding: 10px 15px;
            }
        }
        body.page-template-update-visit-report-v3 .section{
            margin-bottom: 20px;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        body.page-template-update-visit-report-v3 .section h4{
            margin-bottom: 10px;
            font-size: 1.2em;
            color: #343a40;
        }
        body.page-template-update-visit-report-v3 .sku-entry{
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
            padding: 10px;
            border-radius: 5px;
        }
        body.page-template-update-visit-report-v3 .sku-entry > div{
            flex: 1 1 calc(33.33% - 10px);
            margin-right: 10px;
            margin-bottom: 10px;
        }
        body.page-template-update-visit-report-v3 .sku-entry > div:last-child{
            margin-right: 0;
        }
        body.page-template-update-visit-report-v3 .sku-entry:nth-child(even){
            background-color: #f9f9f9;
        }
        body.page-template-update-visit-report-v3 .sku-entry:nth-child(odd){
            background-color: #f1f1f1;
        }
        body.page-template-update-visit-report-v3 .sku-entry .expiryDate,
body.page-template-update-visit-report-v3 .sku-entry .quantity{
            width: 100%;
        }
        body.page-template-update-visit-report-v3 #addMoreButton,
body.page-template-update-visit-report-v3 #addAttachmentButton{
            margin-top: 10px;
            font-size: 1.00em;
            background-color: #001f3f;
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        body.page-template-update-visit-report-v3 #addMoreButton:hover,
body.page-template-update-visit-report-v3 #addAttachmentButton:hover{
            background-color: #196EE2;
        }
        body.page-template-update-visit-report-v3 #feedback{
            width: 100%;
            height: 100px;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            background-color: #f8f9fa;
        }
        body.page-template-update-visit-report-v3 .pseudo-disabled{
            color: #ccc;
            background-color: #e7e7e7;
            cursor: not-allowed;
        }
        body.page-template-update-visit-report-v3 .remove-button{
            font-weight: bold;
            font-size: 16px;
            color: red;
            cursor: pointer;
            margin-left: 10px;
        }
        body.page-template-update-visit-report-v3 .attachment-entry{
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        body.page-template-update-visit-report-v3 .attachment-entry > div{
            flex: 1 1 calc(50% - 10px);
            margin-right: 10px;
        }
        body.page-template-update-visit-report-v3 .attachment-entry > div:last-child{
            margin-right: 0;
        }
        body.page-template-update-visit-report-v3 .button-group{
            display: flex;
            justify-content: flex-start;
            gap: 10px;
        }
        body.page-template-update-visit-report-v3 .button-group button{
            flex: 1;
            padding: 12px 20px;
            font-size: 1.00em;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background-color: #007bff;
            color: white;
        }
        body.page-template-update-visit-report-v3 .button-group button:hover{
            background-color: #0056b3;
        }
        body.page-template-update-visit-report-v3 /* Custom CSS for Check In button */
        .custom-check-in-btn{
            background-color: #6c757d !important; /* Gray background */
            color: white !important; /* White text */
            border: none !important; /* Remove border */
            padding: 12px 20px !important; /* Padding */
            border-radius: 5px !important; /* Rounded corners */
            cursor: not-allowed !important; /* Disabled cursor */
        }
        body.page-template-update-visit-report-v3 .custom-check-in-btn:hover{
            background-color: #5a6268 !important; /* Slightly darker gray on hover */
        }
        body.page-template-update-visit-report-v3 .custom-check-in-btn.enabled{
            background-color: #007bff !important; /* Blue background when enabled */
            cursor: pointer !important; /* Pointer cursor when enabled */
        }
        body.page-template-update-visit-report-v3 .custom-check-in-btn.enabled:hover{
            background-color: #0056b3 !important; /* Darker blue on hover when enabled */
        }
    

/* update-visit-report-with-gps.php */

        body.page-template-update-visit-report-with-gps *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body.page-template-update-visit-report-with-gps,
body.page-template-update-visit-report-with-gps{
            height: 100%;
            font-family: Arial, sans-serif;
        }
        body.page-template-update-visit-report-with-gps .wrapper{
            min-height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        body.page-template-update-visit-report-with-gps .content{
            flex: 1;
            padding: 20px;
            background-color: #f8f9fa;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            margin: 20px auto;
            max-width: 650px;
            width: 100%;
        }
        body.page-template-update-visit-report-with-gps .alert{
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 4px;
            display: none;
        }
        body.page-template-update-visit-report-with-gps .alert.success{
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        body.page-template-update-visit-report-with-gps .alert.error{
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        body.page-template-update-visit-report-with-gps .visit-table{
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            border-radius: 8px;
        }
        body.page-template-update-visit-report-with-gps .visit-table th,
body.page-template-update-visit-report-with-gps .visit-table td{
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }
        body.page-template-update-visit-report-with-gps .visit-table th{
            background-color: #007bff;
            color: #fff;
        }
        body.page-template-update-visit-report-with-gps .visit-table tbody tr:nth-child(even){
            background-color: #f1f1f1;
        }
        body.page-template-update-visit-report-with-gps .visit-table tbody tr:hover{
            background-color: #e9ecef;
        }
        body.page-template-update-visit-report-with-gps .footer{
            background-color: #343a40;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            width: 100%;
        }
        @media only screen and (max-width: 768px) {
            body.page-template-update-visit-report-with-gps .content{
                padding: 15px;
            }
            body.page-template-update-visit-report-with-gps .visit-table th,
body.page-template-update-visit-report-with-gps .visit-table td{
                padding: 10px 15px;
            }
        }
        body.page-template-update-visit-report-with-gps .section{
            margin-bottom: 20px;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        body.page-template-update-visit-report-with-gps .section h4{
            margin-bottom: 10px;
            font-size: 1.2em;
            color: #343a40;
        }
        body.page-template-update-visit-report-with-gps .sku-entry{
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
            padding: 10px;
            border-radius: 5px;
        }
        body.page-template-update-visit-report-with-gps .sku-entry > div{
            flex: 1 1 calc(33.33% - 10px);
            margin-right: 10px;
            margin-bottom: 10px;
        }
        body.page-template-update-visit-report-with-gps .sku-entry > div:last-child{
            margin-right: 0;
        }
        body.page-template-update-visit-report-with-gps .sku-entry:nth-child(even){
            background-color: #f9f9f9;
        }
        body.page-template-update-visit-report-with-gps .sku-entry:nth-child(odd){
            background-color: #f1f1f1;
        }
        body.page-template-update-visit-report-with-gps .sku-entry .expiryDate,
body.page-template-update-visit-report-with-gps .sku-entry .quantity{
            width: 100%;
        }
        body.page-template-update-visit-report-with-gps #addMoreButton,
body.page-template-update-visit-report-with-gps #addAttachmentButton{
            margin-top: 10px;
            font-size: 1.00em;
            background-color: #001f3f;
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        body.page-template-update-visit-report-with-gps #addMoreButton:hover,
body.page-template-update-visit-report-with-gps #addAttachmentButton:hover{
            background-color: #196EE2;
        }
        body.page-template-update-visit-report-with-gps #feedback{
            width: 100%;
            height: 100px;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            background-color: #f8f9fa;
        }
        body.page-template-update-visit-report-with-gps .pseudo-disabled{
            color: #ccc;
            background-color: #e7e7e7;
            cursor: not-allowed;
        }
        body.page-template-update-visit-report-with-gps .remove-button{
            font-weight: bold;
            font-size: 16px;
            color: red;
            cursor: pointer;
            margin-left: 10px;
        }
        body.page-template-update-visit-report-with-gps .attachment-entry{
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        body.page-template-update-visit-report-with-gps .attachment-entry > div{
            flex: 1 1 calc(50% - 10px);
            margin-right: 10px;
        }
        body.page-template-update-visit-report-with-gps .attachment-entry > div:last-child{
            margin-right: 0;
        }
        body.page-template-update-visit-report-with-gps .button-group{
            display: flex;
            justify-content: flex-start;
            gap: 10px;
        }
        body.page-template-update-visit-report-with-gps .button-group button{
            flex: 1;
            padding: 12px 20px;
            font-size: 1.00em;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background-color: #007bff;
            color: white;
        }
        body.page-template-update-visit-report-with-gps .button-group button:hover{
            background-color: #0056b3;
        }
        body.page-template-update-visit-report-with-gps /* Custom CSS for Check In button */
        .custom-check-in-btn{
            background-color: #6c757d !important; /* Gray background */
            color: white !important; /* White text */
            border: none !important; /* Remove border */
            padding: 12px 20px !important; /* Padding */
            border-radius: 5px !important; /* Rounded corners */
            cursor: not-allowed !important; /* Disabled cursor */
        }
        body.page-template-update-visit-report-with-gps .custom-check-in-btn:hover{
            background-color: #5a6268 !important; /* Slightly darker gray on hover */
        }
        body.page-template-update-visit-report-with-gps .custom-check-in-btn.enabled{
            background-color: #007bff !important; /* Blue background when enabled */
            cursor: pointer !important; /* Pointer cursor when enabled */
        }
        body.page-template-update-visit-report-with-gps .custom-check-in-btn.enabled:hover{
            background-color: #0056b3 !important; /* Darker blue on hover when enabled */
        }
    

/* upload-sales-data.php */

    body.page-template-upload-sales-data .upload-container{
        max-width: 600px;
        margin: 50px auto;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    body.page-template-upload-sales-data .upload-container h2{
        text-align: center;
        color: #333;
        margin-bottom: 20px;
    }
    
body.page-template-upload-sales-data form{
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

body.page-template-upload-sales-data input[type="file"]{
    display: block;
    margin: 15px auto;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

body.page-template-upload-sales-data input[type="file"]:hover{
    border-color: #aaa;
}

body.page-template-upload-sales-data input[type="submit"]{
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.page-template-upload-sales-data input[type="submit"]:hover{
    background-color: #0056b3;
}

body.page-template-upload-sales-data input[type="submit"]:active{
    background-color: #00408b;
}

    body.page-template-upload-sales-data .import-report{
        margin-top: 20px;
        padding: 15px;
        background: #fff;
        border-left: 5px solid #007bff;
        border-radius: 5px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    body.page-template-upload-sales-data .import-report h3{
        color: #007bff;
        border-bottom: 2px solid #ddd;
        padding-bottom: 5px;
    }

    body.page-template-upload-sales-data .import-report p{
        font-size: 14px;
        margin: 5px 0;
    }

    body.page-template-upload-sales-data .error-messages{
        color: red;
        font-size: 14px;
    }


/* user-visit-summary.php */

body.page-template-user-visit-summary /* Improved UI styles with a blue color tone */
.container{
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

body.page-template-user-visit-summary h1{
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}

body.page-template-user-visit-summary form{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

body.page-template-user-visit-summary form label{
    margin-right: 10px;
    font-weight: bold;
    color: #003366;
}

body.page-template-user-visit-summary form select{
    padding: 5px;
    font-size: 14px;
}

body.page-template-user-visit-summary table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

body.page-template-user-visit-summary table,
body.page-template-user-visit-summary th,
body.page-template-user-visit-summary td{
    border: 1px solid #cce5ff;
}

body.page-template-user-visit-summary th,
body.page-template-user-visit-summary td{
    padding: 12px;
    text-align: left;
}

body.page-template-user-visit-summary thead{
    background-color: #0baacb; /* Blue color for table header */
    color: #ffffff;
}

body.page-template-user-visit-summary tr:nth-child(even){
    background-color: #e7f1ff;
}

body.page-template-user-visit-summary tr:hover{
    background-color: #d0e4ff;
}


/* visit-detail-report.php */

    body.page-template-visit-detail-report{
        font-family: Arial, sans-serif; 
    }
    body.page-template-visit-detail-report .details-container{
        margin: 0 5%;
        padding: 20px;
        background-color: #f8f9fa;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        position: relative;
    }
    body.page-template-visit-detail-report .back-button{
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #0073aa;
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 5px;
    }
    body.page-template-visit-detail-report .back-button-bottom{
        display: inline-block;
        background-color: #0073aa;
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 5px;
        position: absolute;
        bottom: 10px;
        right: 10px;
    }
    body.page-template-visit-detail-report .back-button:hover,
body.page-template-visit-detail-report .back-button-bottom:hover{
        background-color: #005f8b;
    }
    body.page-template-visit-detail-report .section-title{
        margin-top: 30px;
        font-size: 24px;
        color: #0073aa;
        border-bottom: 2px solid #0073aa;
        padding-bottom: 10px;
    }
    body.page-template-visit-detail-report .details-table{
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
        margin-top: 20px;
    }
    body.page-template-visit-detail-report .details-table th,
body.page-template-visit-detail-report .details-table td{
        padding: 12px 15px;
        text-align: left;
        border: 1px solid #ddd;
    }
    body.page-template-visit-detail-report .details-table th{
        background-color: #0073aa;
        color: #090E18;
        text-transform: uppercase;
    }
    body.page-template-visit-detail-report .details-table tr:nth-child(even){
        background-color: #e0f7fa; /* Light blue */
    }
    body.page-template-visit-detail-report .details-table tr:nth-child(odd){
        background-color: #b2ebf2; /* Another shade of blue */
    }
    body.page-template-visit-detail-report .details-table tr:hover{
        background-color: #81d4fa; /* Hover color */
    }
    body.page-template-visit-detail-report .details-table tbody tr td{
        font-size: 14px;
    }
    body.page-template-visit-detail-report .stock-take-table th{
        background-color: #032669; /* Darker blue */
        color: #090E18;
        text-transform: uppercase;
    }
    body.page-template-visit-detail-report .attachment-grid{
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }
    body.page-template-visit-detail-report .attachment-grid a{
        border: 1px solid #ddd;
        border-radius: 8px;
        display: block;
        overflow: hidden;
    }
    body.page-template-visit-detail-report .attachment-grid img{
        max-width: 200px;
        max-height: 200px;
        transition: transform 0.2s;
    }
    body.page-template-visit-detail-report .attachment-grid img:hover{
        transform: scale(1.1);
    }
    @media (max-width: 768px) {
        body.page-template-visit-detail-report .details-container{
            margin: 0 2%;
        }
        body.page-template-visit-detail-report .details-table th,
body.page-template-visit-detail-report .details-table td{
            padding: 8px 10px;
        }
        body.page-template-visit-detail-report .section-title{
            font-size: 20px;
        }
    }
    body.page-template-visit-detail-report /* Custom Fancybox Styles */
    .fancybox-caption{
        top: 10% !important;
    }
    body.page-template-visit-detail-report .fancybox-toolbar{
        top: 15px !important;
    }
    
    body.page-template-visit-detail-report .text-muted{
    font-style: italic;
    color: #6c757d;
    margin-top: 10px;
}

body.page-template-visit-detail-report .btn-update-sales{
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.page-template-visit-detail-report .btn-update-sales:hover{
    background-color: #1e7e34;
    transform: scale(1.05);
}


}

/* iDB single theme design system. Source of truth for site presentation. */

/* ===== app.css ===== */
/* iDB application design system. All application selectors are scoped with idb-. */
:root {
  --idb-brand-50: #eff6ff;
  --idb-brand-100: #dbeafe;
  --idb-brand-600: #2563eb;
  --idb-brand-700: #1d4ed8;
  --idb-brand-800: #1e40af;
  --idb-ink: #111827;
  --idb-muted: #667085;
  --idb-subtle: #98a2b3;
  --idb-canvas: #f6f8fb;
  --idb-surface: #fff;
  --idb-border: #dfe3e8;
  --idb-border-strong: #c6ccd4;
  --idb-success: #067647;
  --idb-success-bg: #ecfdf3;
  --idb-warning: #b54708;
  --idb-warning-bg: #fffaeb;
  --idb-danger: #b42318;
  --idb-danger-bg: #fef3f2;
  --idb-info: #175cd3;
  --idb-info-bg: #eff8ff;
  --idb-space-1: .25rem;
  --idb-space-2: .5rem;
  --idb-space-3: .75rem;
  --idb-space-4: 1rem;
  --idb-space-5: 1.25rem;
  --idb-space-6: 1.5rem;
  --idb-space-8: 2rem;
  --idb-space-10: 2.5rem;
  --idb-radius-sm: .375rem;
  --idb-radius-md: .625rem;
  --idb-radius-lg: .875rem;
  --idb-radius-xl: 1.125rem;
  --idb-shadow-sm: 0 1px 2px rgb(16 24 40 / .05);
  --idb-shadow-card: 0 1px 3px rgb(16 24 40 / .08), 0 1px 2px rgb(16 24 40 / .04);
  --idb-shadow-menu: 0 12px 28px rgb(16 24 40 / .16);
  --idb-content-max: 90rem;
  --idb-transition: 160ms ease;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--idb-canvas); color: var(--idb-ink); }
img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: .16em; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgb(37 99 235 / .35);
  outline-offset: 2px;
}

.idb-skip-link {
  position: fixed; z-index: 9999; top: .5rem; left: .5rem; padding: .75rem 1rem;
  border-radius: var(--idb-radius-md); background: var(--idb-ink); color: #fff;
  transform: translateY(-150%);
}
.idb-skip-link:focus { transform: translateY(0); }

.idb-site { min-height: 100vh; display: flex; flex-direction: column; }
.idb-site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--idb-border); background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); }
@media (min-width: 64rem) { .admin-bar .idb-site-header { top: 32px; } }
.idb-site-header__inner { width: min(100% - 2rem, var(--idb-content-max)); min-height: 4rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--idb-space-4); }
.idb-brand { display: flex; align-items: center; min-width: 0; }
.idb-brand .custom-logo { display: block; width: auto; max-height: 2.5rem; }
.idb-brand__text { color: var(--idb-ink); font-size: 1.125rem; font-weight: 750; text-decoration: none; }

.idb-nav-toggle { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-md); background: #fff; color: var(--idb-ink); }
.idb-nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.idb-nav-toggle__icon, .idb-nav-toggle__icon::before, .idb-nav-toggle__icon::after { width: 1.25rem; height: 2px; display: block; background: currentcolor; transition: transform var(--idb-transition); }
.idb-nav-toggle__icon { position: relative; }
.idb-nav-toggle__icon::before, .idb-nav-toggle__icon::after { position: absolute; left: 0; content: ''; }
.idb-nav-toggle__icon::before { top: -.38rem; }
.idb-nav-toggle__icon::after { top: .38rem; }
.idb-nav-toggle[aria-expanded="true"] .idb-nav-toggle__icon { background: transparent; }
.idb-nav-toggle[aria-expanded="true"] .idb-nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.idb-nav-toggle[aria-expanded="true"] .idb-nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }
.idb-nav { display: none; position: absolute; top: calc(100% + .5rem); right: 1rem; left: 1rem; padding: .5rem; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: #fff; box-shadow: var(--idb-shadow-menu); }
.idb-nav[data-open] { display: block; }
.idb-nav__list, .idb-nav__list ul { margin: 0; padding: 0; list-style: none; }
.idb-nav__list :where(a, button) { width: 100%; display: block; padding: .7rem .8rem; border: 0; border-radius: .5rem; background: transparent; color: var(--idb-ink); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.idb-nav__list :where(a, button):hover, .idb-nav__list .current-menu-item > :where(a, button) { background: var(--idb-brand-50); color: var(--idb-brand-700); }
.idb-nav__list ul { padding-left: 1rem; }

@media (max-width: 63.999rem) {
  .idb-site { padding-top: var(--idb-mobile-header-height, 4rem); }
  .idb-site-header { position: fixed; top: var(--idb-mobile-header-top, 0px); right: 0; left: 0; z-index: 10000; backdrop-filter: none; }
  body.idb-mobile-menu-open { position: fixed; right: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
  .idb-nav[data-open] {
    position: fixed;
    top: var(--idb-mobile-nav-top, 4rem);
    right: 1rem;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 1rem;
    z-index: 1;
    max-height: calc(100dvh - var(--idb-mobile-nav-top, 4rem) - max(8px, env(safe-area-inset-bottom)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .idb-nav__list .sub-menu { display: none; }
  .idb-nav__list li[data-hover-open] > .sub-menu { display: block; }
  .idb-nav__list .menu-item-has-children > :where(a, button) { position: relative; padding-right: 2.25rem; }
  .idb-nav__list .menu-item-has-children > :where(a, button)::after {
    position: absolute; top: 50%; right: .85rem; width: .45rem; height: .45rem;
    border-right: 1.5px solid currentcolor; border-bottom: 1.5px solid currentcolor;
    content: ''; transform: translateY(-70%) rotate(45deg); transition: transform var(--idb-transition);
  }
  .idb-nav__list .menu-item-has-children[data-hover-open] > :where(a, button)::after { transform: translateY(-35%) rotate(225deg); }
}

.idb-main { flex: 1; width: 100%; padding-block: clamp(2rem, 5vw, 4rem); }
.idb-content { width: min(100% - 2rem, var(--idb-content-max)); margin-inline: auto; }
.idb-content--narrow { max-width: 44rem; }
.idb-content--form { max-width: 64rem; }
.idb-content--detail { max-width: 76rem; }
.idb-page-header { margin-bottom: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; gap: var(--idb-space-4); }
.idb-eyebrow { margin: 0 0 .3rem; color: var(--idb-brand-700); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.idb-page-title, .idb-hero h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
.idb-page-summary { max-width: 48rem; margin: .5rem 0 0; color: var(--idb-muted); }
.idb-actions { display: flex; flex-wrap: wrap; gap: var(--idb-space-3); }

.idb-button, .idb-app-view :where(button, input[type="submit"], input[type="button"]), .idb-list-view :where(button, input[type="submit"], input[type="button"]), .idb-detail-view :where(button, input[type="submit"], input[type="button"]), .idb-card--form :where(button, input[type="submit"], input[type="button"]) {
  min-height: 2.75rem; padding: .65rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: var(--idb-radius-md); font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background var(--idb-transition), border-color var(--idb-transition), box-shadow var(--idb-transition), transform var(--idb-transition);
}
.idb-button:active { transform: translateY(1px); }
.idb-button--primary, .idb-app-view :where(button, input[type="submit"]), .idb-card--form :where(button, input[type="submit"]) { background: var(--idb-brand-600); color: #fff; }
.idb-button--primary:hover { background: var(--idb-brand-700); color: #fff; }
.idb-button--secondary { border-color: var(--idb-border-strong); background: #fff; color: var(--idb-ink); }
.idb-button--secondary:hover { border-color: var(--idb-brand-600); color: var(--idb-brand-700); }
.idb-button--danger { background: var(--idb-danger); color: #fff; }
.idb-button[disabled], button[disabled] { opacity: .55; cursor: not-allowed; }

.idb-card { border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: var(--idb-surface); box-shadow: var(--idb-shadow-card); padding: clamp(1rem, 2.5vw, 1.5rem); }
.idb-card__title { margin: 0 0 var(--idb-space-4); font-size: 1.125rem; }
.idb-card__heading { margin: 0 0 var(--idb-space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--idb-space-3); }
.idb-card__heading .idb-card__title { margin: 0; }
.idb-card__body > :first-child, .idb-prose > :first-child { margin-top: 0; }
.idb-card__body > :last-child, .idb-prose > :last-child { margin-bottom: 0; }
.idb-card--form { padding: clamp(1rem, 4vw, 2rem); }
.idb-stack { display: grid; gap: var(--idb-space-4); }
.idb-stack--lg { gap: var(--idb-space-6); }
.idb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--idb-space-4); }
.idb-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--idb-space-4); }
.idb-stat { min-width: 0; padding: 1.1rem; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: #fff; box-shadow: var(--idb-shadow-sm); }
.idb-stat__label, .idb-stat__meta { margin: 0; color: var(--idb-muted); font-size: .82rem; }
.idb-stat__value { margin: .25rem 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }

.idb-notice { margin-block: var(--idb-space-4); padding: .9rem 1rem; border: 1px solid; border-radius: var(--idb-radius-md); }
.idb-notice p { margin: 0; }
.idb-notice__title { display: block; margin-bottom: .2rem; }
.idb-notice--success { border-color: #abefc6; background: var(--idb-success-bg); color: var(--idb-success); }
.idb-notice--warning { border-color: #fedf89; background: var(--idb-warning-bg); color: var(--idb-warning); }
.idb-notice--danger { border-color: #fecdca; background: var(--idb-danger-bg); color: var(--idb-danger); }
.idb-notice--info { border-color: #b2ddff; background: var(--idb-info-bg); color: var(--idb-info); }
.idb-badge { width: fit-content; display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; background: #f2f4f7; color: #344054; font-size: .75rem; font-weight: 700; line-height: 1.35; }
.idb-badge--success { background: var(--idb-success-bg); color: var(--idb-success); }
.idb-badge--warning { background: var(--idb-warning-bg); color: var(--idb-warning); }
.idb-badge--danger { background: var(--idb-danger-bg); color: var(--idb-danger); }

.idb-app-view :where(label), .idb-card--form :where(label), .idb-filter-bar label { display: block; margin-bottom: .35rem; color: #344054; font-size: .875rem; font-weight: 650; }
.idb-app-view :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea), .idb-card--form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea), .idb-filter-bar :where(input, select) {
  width: 100%; min-height: 2.75rem; padding: .65rem .75rem; border: 1px solid var(--idb-border-strong); border-radius: var(--idb-radius-md); background: #fff; color: var(--idb-ink); font: inherit;
}
.idb-app-view textarea, .idb-card--form textarea { min-height: 8rem; resize: vertical; }
.idb-app-view :where(input, select, textarea):focus, .idb-card--form :where(input, select, textarea):focus { border-color: var(--idb-brand-600); box-shadow: 0 0 0 3px rgb(37 99 235 / .12); outline: 0; }
.idb-filter-bar { margin-bottom: var(--idb-space-5); padding: var(--idb-space-4); display: grid; grid-template-columns: 1fr; gap: var(--idb-space-4); align-items: end; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: #fff; }
.idb-field-help { margin: .35rem 0 0; color: var(--idb-muted); font-size: .8rem; }
.idb-field-error { margin: .35rem 0 0; color: var(--idb-danger); font-size: .8rem; font-weight: 600; }

.idb-table-region { max-width: 100%; overflow: auto; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: #fff; -webkit-overflow-scrolling: touch; }
.idb-table-region:focus { outline: 3px solid rgb(37 99 235 / .22); outline-offset: 2px; }
.idb-table, .idb-list-view table, .idb-detail-view table, .idb-app-view table { width: 100%; border-collapse: collapse; background: #fff; font-size: .875rem; }
.idb-table :where(th, td), .idb-list-view table :where(th, td), .idb-detail-view table :where(th, td), .idb-app-view table :where(th, td) { padding: .75rem 1rem; border: 1px solid #cbd6e4; text-align: left; vertical-align: top; }
.idb-table th, .idb-list-view table th, .idb-detail-view table th, .idb-app-view table th { background: #eaf1fb; color: #25344a; font-weight: 700; white-space: nowrap; }
.idb-table tbody tr:nth-child(odd) > *, .idb-list-view table tbody tr:nth-child(odd) > *, .idb-detail-view table tbody tr:nth-child(odd) > *, .idb-app-view table tbody tr:nth-child(odd) > * { background: #fff; }
.idb-table tbody tr:nth-child(even) > *, .idb-list-view table tbody tr:nth-child(even) > *, .idb-detail-view table tbody tr:nth-child(even) > *, .idb-app-view table tbody tr:nth-child(even) > * { background: #f5f8fc; }
.idb-table tbody tr:hover > *, .idb-list-view table tbody tr:hover > *, .idb-detail-view table tbody tr:hover > *, .idb-app-view table tbody tr:hover > * { background: #eaf3ff; }
.idb-table td[data-label] { min-width: 0; }

.idb-empty-state { padding: clamp(2rem, 8vw, 5rem) 1rem; border: 1px dashed var(--idb-border-strong); border-radius: var(--idb-radius-lg); background: #fff; text-align: center; }
.idb-empty-state__icon { width: 2.5rem; height: 2.5rem; margin: 0 auto .75rem; display: grid; place-items: center; border-radius: 50%; background: var(--idb-brand-50); color: var(--idb-brand-700); font-weight: 800; }
.idb-empty-state h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.idb-empty-state p { margin: 0 auto 1rem; max-width: 32rem; color: var(--idb-muted); }
.idb-record-link { color: var(--idb-brand-700); font-weight: 700; }
.idb-pharmacy-view { display: grid; gap: var(--idb-space-6); }
.idb-pharmacy-view > .idb-page-header { margin-bottom: 0; }
.idb-pharmacy-view > .idb-card { min-width: 0; }
.idb-pharmacy-view .idb-stat span { display: block; margin-bottom: .25rem; color: var(--idb-muted); font-size: .8rem; }
.idb-pharmacy-view .idb-stat strong { display: block; font-size: clamp(1.25rem, 3vw, 1.75rem); overflow-wrap: anywhere; }
.idb-pharmacy-edit { margin-inline: auto; }
.idb-pharmacy-edit .idb-card--form { padding: clamp(1.25rem, 4vw, 2rem); }
.idb-form-table { display: block; margin: 0 0 var(--idb-space-8); border: 0; background: transparent; }
.idb-form-table tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem 1.5rem; }
.idb-form-table tr { min-width: 0; display: block; }
.idb-form-table th,
.idb-form-table td { width: 100%; display: block; padding: 0; border: 0; background: transparent; }
.idb-form-table th { margin-bottom: .4rem; color: #344054; font-size: .875rem; font-weight: 700; white-space: normal; }
.idb-form-table td { background: transparent; }
.idb-form-table :where(input, select) { width: 100%; min-height: 2.75rem; padding: .65rem .75rem; border: 1px solid var(--idb-border-strong); border-radius: var(--idb-radius-md); background: #fff; color: var(--idb-ink); font: inherit; }
.idb-form-table :where(input, select):focus { border-color: var(--idb-brand-600); box-shadow: 0 0 0 3px rgb(37 99 235 / .12); outline: 0; }
.idb-standard-form { display: grid; gap: var(--idb-space-8); }
.idb-form-section { display: grid; gap: var(--idb-space-5); }
.idb-form-section + .idb-form-section { padding-top: var(--idb-space-8); border-top: 1px solid var(--idb-border); }
.idb-form-section__header h2 { margin: 0; font-size: 1.1rem; }
.idb-form-section__header p { margin: .3rem 0 0; color: var(--idb-muted); font-size: .85rem; }
.idb-contact-context { margin-bottom: var(--idb-space-6); }
.idb-contact-context .idb-stat { display: grid; align-content: start; gap: .45rem; }
.idb-contact-context .idb-stat__label { display: block; margin: 0; line-height: 1.3; }
.idb-contact-context .idb-stat strong { display: block; color: var(--idb-ink); font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.idb-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem 1.5rem; }
.idb-field { min-width: 0; }
.idb-standard-form .idb-field label { display: block; margin-bottom: .4rem; color: #344054; font-size: .875rem; font-weight: 700; }
.idb-standard-form .idb-field :where(input, select, textarea) { width: 100%; min-height: 2.75rem; padding: .65rem .75rem; border: 1px solid var(--idb-border-strong); border-radius: var(--idb-radius-md); background: #fff; color: var(--idb-ink); font: inherit; }
.idb-standard-form .idb-field :where(input, select, textarea):focus { border-color: var(--idb-brand-600); box-shadow: 0 0 0 3px rgb(37 99 235 / .12); outline: 0; }
.idb-target-table input[type="number"] { width: 100%; min-width: 9rem; min-height: 2.6rem; padding: .55rem .7rem; border: 1px solid var(--idb-border-strong); border-radius: var(--idb-radius-md); background: #fff; color: var(--idb-ink); font: inherit; }
.idb-target-table input[type="number"]:focus { border-color: var(--idb-brand-600); box-shadow: 0 0 0 3px rgb(37 99 235 / .12); outline: 0; }
.idb-target-table input[type="number"]:disabled { border-color: transparent; background: #f2f4f7; color: var(--idb-muted); }
.idb-form-actions { padding-top: var(--idb-space-5); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--idb-space-3); border-top: 1px solid var(--idb-border); }
.idb-form-table tr:nth-child(1),
.idb-form-table tr:nth-child(3),
.idb-form-table tr:nth-child(4),
.idb-form-table tr:nth-child(5) { grid-column: 1 / -1; }
.idb-pharmacy-edit .idb-actions { padding-top: var(--idb-space-5); border-top: 1px solid var(--idb-border); justify-content: flex-end; }
.idb-hero { padding: clamp(2rem, 8vw, 6rem) 0; }
.idb-site-footer { margin-top: auto; border-top: 1px solid var(--idb-border); background: #fff; color: var(--idb-muted); font-size: .85rem; }
.idb-site-footer__inner { width: min(100% - 2rem, var(--idb-content-max)); min-height: 4.5rem; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.idb-site-footer p { margin: 0; }
.idb-footer-nav { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; }

@media (min-width: 40rem) {
  .idb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idb-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idb-page-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .idb-site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .idb-form-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idb-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idb-field--full { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .idb-nav-toggle { display: none; }
  .idb-nav { display: block; position: static; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .idb-nav__list { display: flex; align-items: center; gap: .15rem; }
  .idb-nav__list > li { position: relative; }
  .idb-nav__list .menu-item-has-children > :where(a, button) { padding-right: 1.8rem; position: relative; }
  .idb-nav__list .menu-item-has-children > :where(a, button)::after { content: ''; position: absolute; right: .65rem; top: 50%; width: .38rem; height: .38rem; border-right: 1.5px solid currentcolor; border-bottom: 1.5px solid currentcolor; transform: translateY(-65%) rotate(45deg); }
  .idb-nav__list ul {
    display: none;
    position: absolute;
    z-index: 110;
    top: 100%;
    left: 0;
    min-width: 14rem;
    max-width: min(22rem, calc(100vw - 1rem));
    padding: .5rem;
    border: 1px solid var(--idb-border);
    border-radius: var(--idb-radius-lg);
    background: #fff;
    box-shadow: var(--idb-shadow-menu);
  }
  .idb-nav__list li:hover > ul,
  .idb-nav__list li:focus-within > ul,
  .idb-nav__list li[data-hover-open] > ul { display: block; }
  .idb-nav__list li:hover > :where(a, button),
  .idb-nav__list li:focus-within > :where(a, button),
  .idb-nav__list li[data-hover-open] > :where(a, button) { background: var(--idb-brand-50); color: var(--idb-brand-700); }
  .idb-nav__list ul :where(a, button) { white-space: normal; }
  .idb-nav__list .sub-menu li { position: relative; }
  .idb-nav__list .sub-menu .menu-item-has-children > :where(a, button)::after { transform: translateY(-50%) rotate(-45deg); }
  .idb-nav__list .sub-menu .sub-menu { top: -.5rem; left: calc(100% - 1px); }
  .idb-nav__list .sub-menu li[data-edge="left"] > .sub-menu { right: calc(100% - 1px); left: auto; }
  .idb-nav__list .sub-menu li[data-edge="left"] > :where(a, button)::after { right: auto; left: .65rem; transform: translateY(-50%) rotate(135deg); }
  .idb-nav__list .sub-menu li[data-edge="left"] > :where(a, button) { padding-right: .8rem; padding-left: 1.8rem; }
  .idb-nav__list > li[data-edge="right"] > .sub-menu { right: 0; left: auto; }
  .idb-filter-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .idb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .idb-card__heading { align-items: stretch; flex-direction: column; }
  .idb-card__heading .idb-button { width: 100%; }
  .idb-pharmacy-edit .idb-actions { align-items: stretch; flex-direction: column-reverse; }
  .idb-pharmacy-edit .idb-actions .idb-button { width: 100%; }
  .idb-form-actions { flex-direction: column-reverse; }
  .idb-form-actions .idb-button { width: 100%; }
  .idb-table-region--cards { border: 0; background: transparent; overflow: visible; }
  .idb-table-region--cards .idb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .idb-table-region--cards .idb-table, .idb-table-region--cards .idb-table tbody, .idb-table-region--cards .idb-table tr, .idb-table-region--cards .idb-table td { display: block; width: 100%; }
  .idb-table-region--cards .idb-table tr { margin-bottom: .75rem; padding: .4rem 1rem; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: #fff; box-shadow: var(--idb-shadow-sm); }
  .idb-table-region--cards .idb-table td { min-width: 0; padding: .6rem 0; display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: .75rem; border-bottom: 1px solid var(--idb-border); overflow-wrap: anywhere; }
  .idb-table-region--cards .idb-table td::before { content: attr(data-label); color: var(--idb-muted); font-weight: 650; }
  .idb-table-region--cards .idb-table td:last-child { border-bottom: 0; }
}

@media (max-width: 782px) { .admin-bar .idb-site-header { top: var(--idb-mobile-header-top, 0px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media print { .idb-site-header, .idb-site-footer, .idb-actions, .idb-filter-bar, .idb-nav-toggle { display: none !important; } body { background: #fff; } .idb-main { padding: 0; } .idb-card, .idb-table-region { border-color: #bbb; box-shadow: none; } }

/* ===== vendor-overrides.css ===== */
/* Vendor adapters are deliberately scoped to iDB views. */
:where(.idb-app-view, .idb-list-view, .idb-detail-view, .idb-card--form) .select2-container { max-width: 100%; width: 100% !important; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view, .idb-card--form) .select2-container .select2-selection--single { min-height: 2.75rem; border-color: var(--idb-border-strong); border-radius: var(--idb-radius-md); }
:where(.idb-app-view, .idb-list-view, .idb-detail-view, .idb-card--form) .select2-container .select2-selection--single .select2-selection__rendered { line-height: 2.7rem; padding-left: .75rem; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view, .idb-card--form) .select2-container .select2-selection--single .select2-selection__arrow { height: 2.7rem; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper { width: 100%; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper .dataTables_length,
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper .dataTables_filter { margin-bottom: 1rem; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper .dataTables_filter input,
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper .dataTables_length select { min-height: 2.5rem; border: 1px solid var(--idb-border-strong); border-radius: var(--idb-radius-md); background: #fff; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: var(--idb-radius-sm) !important; }
:where(.idb-app-view, .idb-list-view, .idb-detail-view) .dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: var(--idb-brand-600) !important; background: var(--idb-brand-50) !important; color: var(--idb-brand-700) !important; }

/* ===== legacy-normalize.css ===== */
/*
 * Universal adapter for supplied legacy page templates.
 * Intentionally scoped to WordPress page-template body classes.
 */
body.idb-legacy { background: var(--idb-canvas) !important; color: var(--idb-ink); }
body.idb-legacy :where(#primary, .content-area) { width: 100%; max-width: none; margin: 0; padding: 0; }
body.idb-legacy :where(.site-main, main:not(.idb-main)) { width: min(100% - 2rem, var(--idb-content-max)); margin: 0 auto !important; padding: clamp(2rem, 5vw, 4rem) 0 !important; }
body.idb-legacy .idb-legacy-container { width: 100% !important; max-width: none !important; margin: 0 auto !important; padding: 0 !important; }
body.idb-legacy :where(h1, .page-title) { margin: 0 0 1.5rem; color: var(--idb-ink); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
body.idb-legacy :where(h2) { color: var(--idb-ink); font-size: clamp(1.3rem, 2.5vw, 1.65rem); line-height: 1.25; }
body.idb-legacy :where(h3) { color: var(--idb-ink); font-size: 1.125rem; line-height: 1.3; }
body.idb-legacy :where(p) { line-height: 1.6; }

body.idb-legacy .idb-legacy-card,
body.idb-legacy :where(.form-container, .form-wrapper, .report-wrapper, .dashboard-section, .content-box, .table-container) {
  min-width: 0; margin: 0 0 1.5rem !important; padding: clamp(1rem, 3vw, 1.5rem) !important;
  border: 1px solid var(--idb-border) !important; border-radius: var(--idb-radius-lg) !important;
  background: var(--idb-surface) !important; box-shadow: var(--idb-shadow-card) !important;
}
body.idb-legacy .idb-legacy-card-title { margin: 0 0 1rem !important; color: var(--idb-ink) !important; font-size: 1.125rem !important; font-weight: 750 !important; }
body.idb-legacy :where(.row, .form-row, .filter-row, .filter-grid) { max-width: 100%; }

body.idb-legacy .idb-legacy-form :where(label) { display: block; margin: 0 0 .4rem; color: #344054; font-size: .875rem; font-weight: 700; }
body.idb-legacy .idb-legacy-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100% !important; max-width: 100%; min-height: 2.75rem; padding: .65rem .75rem !important;
  border: 1px solid var(--idb-border-strong) !important; border-radius: var(--idb-radius-md) !important;
  background: #fff !important; color: var(--idb-ink) !important; font: inherit;
}
body.idb-legacy .idb-legacy-form textarea { min-height: 7rem; resize: vertical; }
body.idb-legacy .idb-legacy-form :where(input, select, textarea):focus { border-color: var(--idb-brand-600) !important; box-shadow: 0 0 0 3px rgb(37 99 235 / .12) !important; outline: 0; }
body.idb-legacy .idb-legacy-form :where(.form-group, .field, .input-group) { min-width: 0; margin-bottom: 1rem; }
body.idb-legacy .idb-legacy-form :where(input[type="checkbox"], input[type="radio"]) { width: 1.1rem; height: 1.1rem; accent-color: var(--idb-brand-600); }

body.idb-legacy .idb-legacy-button { min-height: 2.75rem !important; padding: .65rem 1rem !important; display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent !important; border-radius: var(--idb-radius-md) !important; font: inherit !important; font-weight: 700 !important; line-height: 1.2; text-decoration: none !important; cursor: pointer; }
body.idb-legacy .idb-legacy-button[data-idb-tone="primary"] { background: var(--idb-brand-600) !important; color: #fff !important; }
body.idb-legacy .idb-legacy-button[data-idb-tone="primary"]:hover { background: var(--idb-brand-700) !important; }
body.idb-legacy .idb-legacy-button[data-idb-tone="secondary"] { border-color: var(--idb-border-strong) !important; background: #fff !important; color: var(--idb-ink) !important; }
body.idb-legacy .idb-legacy-button[data-idb-tone="success"] { background: var(--idb-success) !important; color: #fff !important; }
body.idb-legacy .idb-legacy-button[data-idb-tone="danger"] { background: var(--idb-danger) !important; color: #fff !important; }

body.idb-legacy .idb-legacy-table-region,
body.idb-legacy :where(.table-responsive, .table-scroll) { max-width: 100%; overflow: auto; border: 1px solid var(--idb-border); border-radius: var(--idb-radius-lg); background: #fff; -webkit-overflow-scrolling: touch; }
body.idb-legacy .idb-legacy-table-region:focus { outline: 3px solid rgb(37 99 235 / .22); outline-offset: 2px; }
body.idb-legacy .idb-legacy-table { width: 100% !important; max-width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse !important; border-spacing: 0 !important; background: #fff !important; color: var(--idb-ink); font-size: .875rem; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) :where(th, td),
body.idb-legacy table.dataTable :where(th, td) { height: auto !important; padding: .75rem 1rem !important; border: 1px solid #cbd6e4 !important; background: transparent; text-align: left; vertical-align: top; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) :where(thead th),
body.idb-legacy table.dataTable :where(thead th) { background: #eaf1fb !important; color: #25344a !important; font-weight: 750 !important; white-space: nowrap; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) tbody tr:nth-child(odd) > *,
body.idb-legacy table.dataTable tbody tr:nth-child(odd) > * { background: #ffffff !important; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) tbody tr:nth-child(even) > *,
body.idb-legacy table.dataTable tbody tr:nth-child(even) > * { background: #f5f8fc !important; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) tbody tr:hover > *,
body.idb-legacy table.dataTable tbody tr:hover > * { background: #eaf3ff !important; }
body.idb-legacy .idb-layout-table,
body.idb-legacy .idb-layout-table :where(tr, th, td) { border: 0 !important; background: transparent !important; }
body.idb-legacy .idb-legacy-table a { color: var(--idb-brand-700) !important; font-weight: 650; }

body.idb-legacy .idb-legacy-notice { margin: 1rem 0 !important; padding: .9rem 1rem !important; border: 1px solid !important; border-radius: var(--idb-radius-md) !important; box-shadow: none !important; }
body.idb-legacy .idb-legacy-notice[data-idb-tone="success"] { border-color: #abefc6 !important; background: var(--idb-success-bg) !important; color: var(--idb-success) !important; }
body.idb-legacy .idb-legacy-notice[data-idb-tone="warning"] { border-color: #fedf89 !important; background: var(--idb-warning-bg) !important; color: var(--idb-warning) !important; }
body.idb-legacy .idb-legacy-notice[data-idb-tone="danger"] { border-color: #fecdca !important; background: var(--idb-danger-bg) !important; color: var(--idb-danger) !important; }
body.idb-legacy .idb-legacy-notice[data-idb-tone="info"] { border-color: #b2ddff !important; background: var(--idb-info-bg) !important; color: var(--idb-info) !important; }

body.idb-legacy :where(.badge, .status, .status-badge, .label) { display: inline-flex; width: fit-content; padding: .2rem .55rem; border-radius: 999px; background: #f2f4f7; color: #344054; font-size: .75rem; font-weight: 700; }
body.idb-legacy :where(.kpi-grid, .stats-grid, .summary-grid, .dashboard-grid) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)) !important; gap: 1rem !important; }
body.idb-legacy :where(.kpi, .stat-card, .summary-box) { min-width: 0; padding: 1.1rem !important; border: 1px solid var(--idb-border) !important; border-radius: var(--idb-radius-lg) !important; background: #fff !important; box-shadow: var(--idb-shadow-sm) !important; }
body.idb-legacy :where(.filters, .filter-section, .filter-container) { margin: 0 0 1.5rem !important; padding: 1rem !important; border: 1px solid var(--idb-border) !important; border-radius: var(--idb-radius-lg) !important; background: #fff !important; }

body.idb-legacy .dataTables_wrapper { width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.idb-legacy :where(.table-responsive, .table-scroll):has(> .dataTables_wrapper) { border: 0; border-radius: 0; background: transparent; }
body.idb-legacy .dataTables_wrapper .dataTables_length,
body.idb-legacy .dataTables_wrapper .dataTables_filter { margin-bottom: 1rem; }
body.idb-legacy .dataTables_wrapper .dataTables_filter input,
body.idb-legacy .dataTables_wrapper .dataTables_length select { min-height: 2.5rem; padding: .45rem .65rem; border: 1px solid var(--idb-border-strong); border-radius: var(--idb-radius-md); background: #fff; }

/* DataTables creates a second sizing header inside its scrolling body. Keep it
 * collapsed even when the shared table-cell rules add padding and borders. */
body.idb-legacy .dataTables_scrollBody thead tr,
body.idb-legacy .dataTables_scrollBody thead th,
body.idb-legacy .dataTables_scrollBody thead td {
	height: 0 !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
	line-height: 0 !important;
}
body.idb-legacy .dataTables_scrollBody thead { visibility: collapse !important; }
body.idb-legacy .dataTables_scrollBody thead .dataTables_sizing {
	height: 0 !important;
	max-height: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

@media (max-width: 48rem) {
  body.idb-legacy :where(.site-main, main:not(.idb-main)) { width: min(100% - 1rem, var(--idb-content-max)); }
  body.idb-legacy .idb-legacy-card { padding: 1rem !important; }
  body.idb-legacy .idb-legacy-form :where(.row, .form-row, .grid) { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
  body.idb-legacy .idb-legacy-button { max-width: 100%; }
  body.idb-legacy .dataTables_wrapper { padding: 0; overflow: auto; }
  body.idb-legacy .dataTables_wrapper .dataTables_length,
  body.idb-legacy .dataTables_wrapper .dataTables_filter { float: none; width: 100%; text-align: left; }
}

@media print {
  body.idb-legacy .idb-legacy-card,
  body.idb-legacy .dataTables_wrapper { border-color: #bbb !important; box-shadow: none !important; }
  body.idb-legacy :where(.idb-legacy-button, .filters, .filter-section) { display: none !important; }
}

/* ===== stock-report.css ===== */
/* Pharmacy latest stock-take report; loaded only for this template. */
.anp-stock-report-wrap{max-width:1500px;margin:32px auto;padding:0 20px 50px;color:var(--idb-ink)}
.anp-stock-title{margin-bottom:6px;font-size:30px;line-height:1.2;font-weight:700}
.anp-stock-subtitle{margin:0 0 24px;color:var(--idb-muted);font-size:14px}
.anp-stock-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:14px;padding:18px;margin-bottom:20px;background:var(--idb-surface);border:1px solid var(--idb-border);border-radius:12px}
.anp-stock-field{min-width:220px}
.anp-stock-field label{display:block;margin-bottom:7px;font-weight:600;font-size:13px}
.anp-stock-field select{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--idb-border-strong);border-radius:8px;background:var(--idb-surface)}
.anp-stock-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border:0;border-radius:8px;text-decoration:none;font-weight:600;cursor:pointer}
.anp-stock-btn-primary{background:var(--idb-brand-600);color:var(--idb-surface)}
.anp-stock-btn-download{background:var(--idb-success);color:var(--idb-surface)}
.anp-stock-summary{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin-bottom:20px}
.anp-stock-card{padding:18px;background:var(--idb-surface);border:1px solid var(--idb-border);border-radius:12px}
.anp-stock-card-label{display:block;color:var(--idb-muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.anp-stock-card-value{display:block;margin-top:6px;font-size:24px;font-weight:700}
.anp-stock-note{margin-bottom:18px;padding:12px 14px;background:#f8fbff;border-left:4px solid var(--idb-muted);font-size:13px;line-height:1.6}
.anp-stock-table-wrap{overflow-x:auto;background:var(--idb-surface);border:1px solid var(--idb-border);border-radius:12px}
.anp-stock-table{width:100%;min-width:1450px;border-collapse:collapse;font-size:13px}
.anp-stock-table th,.anp-stock-table td{padding:10px 12px;border-bottom:1px solid #eef0f2;text-align:left;vertical-align:top;white-space:nowrap}
.anp-stock-table th{position:sticky;top:0;z-index:1;background:#f8fafc;font-weight:700}
.anp-stock-table tbody tr:hover{background:#f8fbff}
.anp-stock-empty{padding:40px 20px;text-align:center;color:var(--idb-muted)}
.anp-stock-age-old{font-weight:700}

/* DataTables */
.anp-stock-table-wrap .dataTables_wrapper{width:100%}
.anp-stock-table-wrap .dataTables_wrapper .dataTables_length,
.anp-stock-table-wrap .dataTables_wrapper .dataTables_filter{margin-bottom:14px}
.anp-stock-table-wrap .dataTables_wrapper .dataTables_filter input,
.anp-stock-table-wrap .dataTables_wrapper .dataTables_length select{
    min-height:38px;border:1px solid var(--idb-border-strong);border-radius:7px;background:var(--idb-surface);padding:6px 9px
}
.anp-stock-table-wrap .dataTables_wrapper .dataTables_filter input{min-width:280px}
.anp-stock-table-wrap .dataTables_wrapper .dataTables_info{padding-top:14px;color:var(--idb-muted);font-size:13px}
.anp-stock-table-wrap .dataTables_wrapper .dataTables_paginate{padding-top:10px}
.anp-stock-table-wrap .dataTables_wrapper .dataTables_paginate .paginate_button{border-radius:6px!important}
.anp-dt-top,.anp-dt-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}

/* Built-in fallback */
.anp-fallback-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px}
.anp-fallback-left,.anp-fallback-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.anp-fallback-controls label{font-size:13px;font-weight:600}
.anp-fallback-controls select,.anp-fallback-controls input{
    min-height:38px;border:1px solid var(--idb-border-strong);border-radius:7px;background:var(--idb-surface);padding:6px 9px
}
.anp-fallback-controls input{min-width:280px}
.anp-fallback-info{margin-top:12px;color:var(--idb-muted);font-size:13px}
.anp-fallback-pagination{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap;margin-top:12px}
.anp-fallback-pagination button{
    min-width:36px;min-height:34px;padding:5px 9px;border:1px solid var(--idb-border-strong);border-radius:6px;background:var(--idb-surface);cursor:pointer
}
.anp-fallback-pagination button.is-active{background:var(--idb-brand-600);color:var(--idb-surface);border-color:var(--idb-brand-600)}
.anp-fallback-pagination button:disabled{opacity:.45;cursor:not-allowed}
.anp-stock-table th.anp-sortable{cursor:pointer;user-select:none}
.anp-stock-table th.anp-sortable::after{content:' ↕';opacity:.45;font-size:11px}
.anp-stock-table th.anp-sort-asc::after{content:' ↑';opacity:1}
.anp-stock-table th.anp-sort-desc::after{content:' ↓';opacity:1}

@media(max-width:900px){.anp-stock-summary{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:560px){.anp-stock-summary{grid-template-columns:1fr}.anp-stock-toolbar{align-items:stretch}.anp-stock-field,.anp-stock-btn{width:100%}}

/* ===== holista-pages.css ===== */
/* Shared presentation for the HOLISTA operational menu pages. */
.idb-workspace,
body.page-template-create-contact-new #primary,
body.page-template-Pharmacy-Contacts #primary,
body.page-template-contact-entry-report #primary,
body.page-template-anp-budget-export .anp-wrap {
	width: min(100% - 32px, 1440px);
	margin: clamp(24px, 4vw, 56px) auto;
}

.idb-card,
body.page-template-create-contact-new article,
body.page-template-Pharmacy-Contacts .pc-scope,
body.page-template-contact-entry-report article,
body.page-template-anp-budget-export .anp-card {
	background: #fff;
	border: 1px solid var(--idb-border, #dfe5ef);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
	padding: clamp(18px, 3vw, 32px);
}

.idb-page-heading { margin-bottom: 24px; }
.idb-page-heading h1 { margin: 2px 0 6px; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; }
.idb-page-heading p:last-child { max-width: 720px; margin: 0; color: #64748b; }
.idb-eyebrow { margin: 0; color: #2563eb; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.idb-table-scroll { width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid #dfe5ef; border-radius: 12px; }
.idb-data-table { width: 100% !important; min-width: 680px; margin: 0 !important; }
.idb-data-table th { background: #f1f5f9 !important; color: #1e293b; white-space: nowrap; }
.idb-data-table th, .idb-data-table td { padding: 11px 13px !important; border-color: #dfe5ef !important; }
.idb-data-table tbody tr:nth-child(even) { background: #f8fafc; }
.idb-button,
.idb-download-page button[type="submit"] { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 9px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.idb-button--primary,
.idb-download-page button[type="submit"] { background: #2563eb; color: #fff; }
.idb-download-page form { display: flex; justify-content: flex-end; margin-top: 18px; }
.idb-download-page { margin-top: 18px; }
.idb-download-page .idb-page-heading { margin-bottom: 16px; }
.idb-download-page .idb-table-scroll { margin-top: 0; }
.idb-download-page .dataTables_wrapper .dataTables_length,
.idb-download-page .dataTables_wrapper .dataTables_filter { margin-top: 0; margin-bottom: 12px; }
.idb-import-page { max-width: 760px; }
.idb-import-page .import-wrapper { max-width: none; margin: 0; font-family: inherit; }
.idb-import-page form label { font-weight: 700; color: #334155; }
.idb-import-page input[type="file"] { width: 100%; border: 1px dashed #94a3b8; background: #f8fafc; padding: 22px; }

body.page-template-create-contact-new article { max-width: 920px; margin: 0 auto; }
body.page-template-create-contact-new .entry-header { text-align: left; }
body.page-template-create-contact-new .entry-title { font-size: clamp(1.75rem, 3vw, 2.35rem); }
body.page-template-create-contact-new #pharmacyContactForm > table { border: 0 !important; border-collapse: separate; border-spacing: 0 12px; }
body.page-template-create-contact-new #pharmacyContactForm > table > tbody > tr { display: grid; grid-template-columns: minmax(170px, 32%) 1fr; align-items: center; }
body.page-template-create-contact-new #pharmacyContactForm > table > tbody > tr > td { display: block; width: auto; border: 0 !important; padding: 3px 10px !important; }
body.page-template-create-contact-new #pharmacyContactForm label { font-weight: 700; color: #334155; }
body.page-template-create-contact-new #pharmacyContactForm .idb-field-label { color: #334155; font-weight: 700; }
body.page-template-create-contact-new #pharmacyContactForm td > strong { color: #1e293b; overflow-wrap: anywhere; }
body.page-template-create-contact-new #pharmacyContactForm input:not([type="hidden"]):not([type="submit"]),
body.page-template-create-contact-new #pharmacyContactForm select,
body.page-template-create-contact-new #pharmacyContactForm textarea { width: 100%; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; background: #fff; }
body.page-template-create-contact-new #pharmacyContactForm input[type="submit"] { min-height: 44px; border: 0; border-radius: 9px; padding: 10px 18px; background: #2563eb; color: #fff; font-weight: 700; }

body.page-template-Pharmacy-Contacts .pc-scope { padding: 26px !important; }
body.page-template-Pharmacy-Contacts .pc-scope > .idb-page-heading { margin-bottom: 24px; }
body.page-template-Pharmacy-Contacts .table-responsive { overflow: visible !important; border: 0 !important; border-radius: 0 !important; }
body.page-template-Pharmacy-Contacts .dataTables_wrapper { padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
body.page-template-Pharmacy-Contacts .dataTables_scroll { border: 1px solid #dfe5ef; border-radius: 12px; overflow: hidden; }
body.page-template-Pharmacy-Contacts .dataTables_scrollBody { border: 0 !important; }
body.page-template-Pharmacy-Contacts #pharmacy-contacts-table { min-width: 1180px; }
body.page-template-Pharmacy-Contacts #pharmacy-contacts-table :where(th, td):first-child {
	min-width: 4rem !important;
	width: 1% !important;
	white-space: nowrap !important;
	overflow-wrap: normal !important;
	word-break: keep-all !important;
}
body.page-template-Pharmacy-Contacts .idb-dt-toolbar,
body.page-template-Pharmacy-Contacts .idb-dt-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
body.page-template-Pharmacy-Contacts .idb-dt-toolbar { margin-bottom: 14px; }
body.page-template-Pharmacy-Contacts .idb-dt-footer { margin-top: 14px; }
body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dt-buttons,
body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dataTables_filter { float: none; margin: 0; }
body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dataTables_filter label { display: flex; align-items: center; gap: 8px; color: #475569; font-weight: 600; }
body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dataTables_filter input { min-height: 42px; margin: 0; }
.idb-contacts-page .pc-scope { padding: 26px !important; }
.idb-contacts-page .table-responsive,
.idb-contacts-page .dataTables_wrapper { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
.idb-contacts-page .dataTables_scroll { border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
.idb-contacts-page .dataTables_scrollHead { border: 1px solid #cbd6e4 !important; border-bottom: 0 !important; border-radius: 12px 12px 0 0; overflow: hidden !important; }
.idb-contacts-page .dataTables_scrollBody { border: 1px solid #cbd6e4 !important; border-top: 0 !important; border-radius: 0 0 12px 12px; }
.idb-contacts-page .dataTables_scrollBody thead,
.idb-contacts-page .dataTables_scrollBody thead tr,
.idb-contacts-page .dataTables_scrollBody thead th { height: 0 !important; padding: 0 !important; border: 0 !important; line-height: 0 !important; }
.idb-contacts-page .dataTables_scrollBody thead { visibility: collapse !important; }
.idb-contacts-page .dataTables_scrollBody thead .dataTables_sizing { height: 0 !important; max-height: 0 !important; padding: 0 !important; overflow: hidden !important; }
body.page-template-contact-entry-report .report-filter { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 24px; }
body.page-template-contact-entry-report .report-filter label { font-weight: 700; }
body.page-template-contact-entry-report .report-filter select { width: 100%; min-height: 42px; }
body.page-template-contact-entry-report .report-chart { margin-top: 26px; padding: 18px; border: 1px solid #dfe5ef; border-radius: 12px; }

@media (max-width: 700px) {
	.idb-workspace,
	body.page-template-create-contact-new #primary,
	body.page-template-Pharmacy-Contacts #primary,
	body.page-template-contact-entry-report #primary { width: min(100% - 20px, 1440px); margin: 18px auto; }
	body.page-template-create-contact-new #pharmacyContactForm > table > tbody > tr { grid-template-columns: 1fr; gap: 4px; }
	body.page-template-contact-entry-report .report-filter { grid-template-columns: 1fr; }
	.idb-download-page form, .idb-download-page button[type="submit"] { width: 100%; }
	body.page-template-Pharmacy-Contacts .pc-scope { padding: 16px !important; }
	body.page-template-Pharmacy-Contacts .idb-dt-toolbar { align-items: stretch; }
	body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dt-buttons,
	body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dataTables_filter,
	body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dataTables_filter label { width: 100%; }
	body.page-template-Pharmacy-Contacts .idb-dt-toolbar .dataTables_filter input { flex: 1; min-width: 0; }
	.idb-contacts-page .pc-scope { padding: 16px !important; }
}

/* Pharmacy directories use intrinsic column widths and horizontal scrolling.
 * Compact values never break; only the name column wraps at a readable width. */
table[data-idb-pharmacy-table] {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}
table[data-idb-pharmacy-table] :where(th, td) { width: auto !important; }
table[data-idb-pharmacy-table] :where(th, td.idb-cell--compact) { white-space: nowrap !important; overflow-wrap: normal; }
table[data-idb-pharmacy-table] td.idb-cell--wrap {
  min-width: 11rem !important;
  max-width: 20rem;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  table[data-idb-pharmacy-table] td.idb-cell--wrap { min-width: 10rem !important; max-width: 15rem; }
}

/* All Visit Report uses the same page/table system as other HOLISTA reports. */
.idb-visit-report-page { width: min(100% - 32px, 1440px) !important; margin: clamp(24px, 4vw, 56px) auto !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
body.idb-legacy .idb-visit-report-page > .site-main { width: 100%; padding: clamp(18px, 3vw, 32px) !important; border: 1px solid var(--idb-border); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.idb-visit-report-page .dataTables_wrapper { min-width: 0; }
.idb-visit-report-page .idb-dt-toolbar,
.idb-visit-report-page .idb-dt-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.idb-visit-report-page .idb-dt-toolbar :where(.dataTables_length, .dataTables_filter) { float: none; margin: 0; }
.idb-visit-report-page #visit-table { width: 100% !important; border-collapse: collapse; }
.idb-visit-report-page #download-csv-btn { margin-top: 18px; }
@media (max-width: 700px) {
  .idb-visit-report-page { width: min(100% - 20px, 1440px) !important; }
  .idb-visit-report-page .idb-dt-toolbar { align-items: stretch; }
  .idb-visit-report-page .idb-dt-toolbar :where(.dataTables_length, .dataTables_filter) { width: 100%; }
  .idb-visit-report-page #download-csv-btn { width: 100%; }
}

/* Budget export page layout; part of the shared theme stylesheet. */
.anp-wrap{max-width:1500px;margin:28px auto;padding:0 18px 40px;font-family:Arial,sans-serif}.anp-title{margin:0 0 6px;font-size:30px}.anp-sub{margin:0 0 22px;color:#667085}.anp-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;box-shadow:0 4px 16px rgba(16,24,40,.05);margin-bottom:18px}.anp-filter-grid{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));gap:12px;align-items:end}.anp-field label{display:block;font-weight:600;font-size:13px;margin-bottom:6px;color:#344054}.anp-field select{width:100%;height:42px;border:1px solid #d0d5dd;border-radius:8px;padding:0 10px;background:#fff}.anp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.anp-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:10px 15px;font-weight:600;text-decoration:none;border:1px solid #d0d5dd;background:#fff;color:#344054;cursor:pointer}.anp-btn-primary{background:#111827;color:#fff;border-color:#111827}.anp-btn-success{background:#067647;color:#fff;border-color:#067647}.anp-stats{display:grid;grid-template-columns:repeat(2,minmax(180px,260px));gap:14px;margin-bottom:18px}.anp-stat{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.anp-stat-label{font-size:13px;color:#667085;margin-bottom:5px}.anp-stat-value{font-size:24px;font-weight:700;color:#101828}.anp-table-wrap{overflow-x:auto}.anp-table{width:100%!important;font-size:13px}.anp-table th{white-space:nowrap}.anp-money{text-align:right;white-space:nowrap}.anp-muted{color:#98a2b3}body.page-template-anp-budget-export .dataTables_wrapper .dataTables_filter input,body.page-template-anp-budget-export .dataTables_wrapper .dataTables_length select{border:1px solid #d0d5dd;border-radius:7px;padding:6px}.anp-note{font-size:12px;color:#667085;margin-top:10px}@media(max-width:1200px){.anp-filter-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.anp-filter-grid{grid-template-columns:1fr}.anp-stats{grid-template-columns:1fr}}

/* One visual system for all tabular lists and shared DataTables controls. */
body.idb-legacy .dataTables_wrapper .idb-dt-toolbar,
body.idb-legacy .dataTables_wrapper .idb-dt-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
body.idb-legacy .dataTables_wrapper .idb-dt-toolbar :where(.dataTables_length, .dataTables_filter),
body.idb-legacy .dataTables_wrapper .idb-dt-footer :where(.dataTables_info, .dataTables_paginate) { float: none; margin: 0; padding: 0; }
body.idb-legacy .dataTables_wrapper .idb-dt-toolbar label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #475569; font-weight: 600; }
body.idb-legacy .dataTables_wrapper .idb-dt-toolbar :where(input, select) { min-height: 40px; margin: 0; border: 1px solid #cbd6e4; border-radius: 8px; background: #fff; color: #1e293b; }
body.idb-legacy .dataTables_wrapper :where(.dataTables_paginate .paginate_button) { border-radius: 8px !important; }
body.idb-legacy .dataTables_wrapper :where(.dataTables_paginate .paginate_button.current) { border: 1px solid #93b4ee !important; background: #eaf3ff !important; color: #174ea6 !important; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) { border-collapse: collapse !important; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) :where(th, td),
body.idb-legacy table.dataTable :where(th, td) { border: 1px solid #cbd6e4 !important; }
body.idb-legacy .idb-data-table:not(.idb-layout-table) tbody tr:nth-child(even) > *,
body.idb-legacy table.dataTable tbody tr:nth-child(even) > * { background: #f5f8fc !important; }
@media (max-width: 700px) {
  body.idb-legacy .dataTables_wrapper .idb-dt-toolbar,
  body.idb-legacy .dataTables_wrapper .idb-dt-footer { align-items: stretch; flex-direction: column; }
  body.idb-legacy .dataTables_wrapper .idb-dt-toolbar .dataTables_filter input { width: min(100%, 320px); }
}

/* Literal legacy presentation moved from template attributes. Shared theme rules may override this layer. */
@layer idb-legacy-pages {
[data-idb-style="idb-048b9a2b26"] { display: block; }
[data-idb-style="idb-0765e3e0cb"] { margin-bottom:20px; display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
[data-idb-style="idb-0a62838932"] { color:#cc7a00; font-weight:bold; }
[data-idb-style="idb-0b9a47eb61"] { display: flex; gap: 20px; }
[data-idb-style="idb-0d7010b773"] { color:red; }
[data-idb-style="idb-0db2942d3d"] { margin-left: 15px; }
[data-idb-style="idb-104c232668"] { color:red; margin-bottom:15px; }
[data-idb-style="idb-1151799950"] { width: 50%; }
[data-idb-style="idb-15eea9a375"] { max-width: 500px; margin: 40px auto; }
[data-idb-style="idb-1a7cb23520"] { color:#dc3545; }
[data-idb-style="idb-1ba98a5ce4"] { padding-left: 20px; margin: 0; }
[data-idb-style="idb-1da9facb4d"] { margin:0; }
[data-idb-style="idb-1dac031fa5"] { color: red; font-weight: bold; padding: 10px 0; }
[data-idb-style="idb-21d91b7027"] { display:block; }
[data-idb-style="idb-2734c0d9dd"] { display:flex; gap:20px; }
[data-idb-style="idb-28ee5e5010"] { margin-top: 40px; text-align: center; }
[data-idb-style="idb-291b7bbb01"] { margin-top:0; }
[data-idb-style="idb-2b12d8628e"] { width:60px; }
[data-idb-style="idb-2e4c5c129b"] { max-width:1000px; margin:40px auto; }
[data-idb-style="idb-3145763e3c"] { color: #888; }
[data-idb-style="idb-31981a7d51"] { color: red; }
[data-idb-style="idb-3762349533"] { width: 120px; text-align: center; font-size: 12px; }
[data-idb-style="idb-388813a022"] { margin:40px 0; }
[data-idb-style="idb-3b4396ad90"] { margin-top: 40px; border-bottom: 2px solid #ccc; padding-bottom: 10px; }
[data-idb-style="idb-3bbd824358"] { background:#f5f5f5; }
[data-idb-style="idb-3d0809b13b"] { color:#cc7a00; }
[data-idb-style="idb-4a3180e2eb"] { margin-bottom: 15px; }
[data-idb-style="idb-4c2029a25e"] { display: flex; flex-wrap: wrap; gap: 15px; padding: 10px 0; }
[data-idb-style="idb-4eff477c56"] { max-width:900px; margin:40px auto; }
[data-idb-style="idb-53dc1ce824"] { display: block;color: red;font-size: 11px; }
[data-idb-style="idb-5bac8467c0"] { color:green; }
[data-idb-style="idb-5dc2db64ba"] { text-align: center; margin-top: 20px; }
[data-idb-style="idb-5efb2661e2"] { text-align: center; margin-bottom: 20px; }
[data-idb-style="idb-5f3eb38a49"] { width: 50px; }
[data-idb-style="idb-5fa693f3d4"] { margin-top: 20px; }
[data-idb-style="idb-69628a8543"] { width:100px; height:100px; object-fit:cover; border:1px solid #ccc; border-radius: 6px; }
[data-idb-style="idb-69d66e5b2e"] { width: 100%; }
[data-idb-style="idb-6cd59009db"] { text-decoration: none; color: #333; }
[data-idb-style="idb-6d51017a89"] { font-size: 11px; color: #999; }
[data-idb-style="idb-6fc4bdcfc1"] { color:#999; }
[data-idb-style="idb-72a68ac344"] { text-align: center; }
[data-idb-style="idb-78d7af8b7e"] { font-weight: bold; }
[data-idb-style="idb-78e35d28ac"] { max-width: 600px; padding: 30px; }
[data-idb-style="idb-7a459431c4"] { font-size: 12px; }
[data-idb-style="idb-7dde5e56b3"] { margin-bottom:20px; }
[data-idb-style="idb-80ffd29599"] { width:110px; }
[data-idb-style="idb-812eab2ba3"] { text-align:right;margin-bottom:10px; }
[data-idb-style="idb-8328d31317"] { background-color:#f8d7da; padding:15px; color:#721c24; border:1px solid #f5c6cb; border-radius:5px; margin-bottom:20px; }
[data-idb-style="idb-8561a50cfd"] { background-color:#d4edda; padding:15px; color:#155724; border:1px solid #c3e6cb; border-radius:5px; margin-bottom:20px; }
[data-idb-style="idb-909e8e96bd"] { color:#2563eb; font-weight:600; text-decoration:none; }
[data-idb-style="idb-923a78c683"] { color:green; font-weight:bold; }
[data-idb-style="idb-9374e84210"] { margin-top:12px; }
[data-idb-style="idb-9430946294"] { text-align:center; margin-bottom: 30px; }
[data-idb-style="idb-94c7e201da"] { height: 100px; }
[data-idb-style="idb-9548f4c539"] { display: inline-block; }
[data-idb-style="idb-98cd073e78"] { display: flex; flex-wrap: wrap; gap: 15px; }
[data-idb-style="idb-993fae4d50"] { color:orange; }
[data-idb-style="idb-9a92149cac"] { width: 100px; text-align: center; }
[data-idb-style="idb-9f7cb1fbb6"] { margin-top:40px; }
[data-idb-style="idb-a20f42a93a"] { margin-top:50px; }
[data-idb-style="idb-aa593decf2"] { margin-bottom: 15px; font-size: 18px; }
[data-idb-style="idb-af1d164402"] { width:100px; }
[data-idb-style="idb-b8945ad231"] { margin:40px; }
[data-idb-style="idb-c01d62ba7b"] { margin-top:12px; font-size:12px; color:#6b7280; }
[data-idb-style="idb-c7a95a685d"] { padding: 12px 24px; font-size: 16px; display: inline-block; }
[data-idb-style="idb-cad980f4b7"] { width:100%; }
[data-idb-style="idb-d4260d2a3e"] { width: 60px; }
[data-idb-style="idb-d59ab00d9f"] { color:#721c24; display:block; margin-top:8px; }
[data-idb-style="idb-d758f3541d"] { padding:2px; }
[data-idb-style="idb-dac4fe6c9b"] { text-align:center; }
[data-idb-style="idb-db34aa9916"] { max-width: 620px; margin: 10px auto; }
[data-idb-style="idb-e7983db0dd"] { color:#009688; }
[data-idb-style="idb-ea96bdd3a7"] { display:flex; align-items:center; gap:10px; }
[data-idb-style="idb-ed05b25e9f"] { margin-top: 25px; }
[data-idb-style="idb-eef7e494bd"] { width:120px; padding:6px; }
[data-idb-style="idb-ef7a9dfbd9"] { margin-top: 24px; }
[data-idb-style="idb-f76091e386"] { color:green; margin-bottom:15px; }
}

/* Shared semantic text states used by dynamic page content. */
.idb-text-danger { color: var(--idb-danger, #b42318); }
.idb-text-success { color: var(--idb-success, #15803d); }
.idb-text-muted { color: var(--idb-muted, #64748b); }
.idb-text-default { color: var(--idb-ink, #1e293b); }

/* First-paint data-table styling: do not wait for the JavaScript normalizer. */
body.idb-legacy table:has(> thead):not(.idb-layout-table, .idb-form-table) {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: var(--idb-ink, #1e293b);
}
body.idb-legacy table:has(> thead):not(.idb-layout-table, .idb-form-table) :where(th, td) {
  padding: .75rem 1rem;
  border: 1px solid #cbd6e4;
  text-align: left;
  vertical-align: top;
}
body.idb-legacy table:has(> thead):not(.idb-layout-table, .idb-form-table) thead th {
  background: #eaf1fb;
  color: #25344a;
  font-weight: 750;
}
body.idb-legacy table:has(> thead):not(.idb-layout-table, .idb-form-table) tbody tr:nth-child(even) > * { background: #f5f8fc; }
body.idb-legacy table:has(> thead):not(.idb-layout-table, .idb-form-table) tbody tr:hover > * { background: #eaf3ff; }
.idb-table-status { display: flex; align-items: center; min-height: 64px; margin: 14px 0; padding: 12px 16px; border: 1px solid #dfe5ef; border-radius: 10px; background: #f8fafc; color: #475569; font-weight: 600; }

/* Dashboard component works both as a page template and inside [anp_dashboard]. */
.abe-dashboard { width: min(100% - 32px, 1200px); max-width: none; margin: clamp(24px, 4vw, 48px) auto; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--idb-border, #dfe5ef); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.abe-dashboard :where(h2, h3, h4) { color: var(--idb-ink, #1e293b); line-height: 1.25; }
.abe-dashboard .dashboard-section { margin-top: 28px; }
.abe-dashboard .dashboard-card { max-width: 100%; overflow-x: auto; border: 1px solid var(--idb-border, #dfe5ef); border-left: 4px solid var(--idb-brand-600, #2563eb); border-radius: 12px; background: #fff; padding: clamp(16px, 2vw, 24px); }
.abe-dashboard .quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.abe-dashboard .quick-links .link-box { min-width: 0; border-color: #cbdcf9; border-radius: 9px; background: #eff6ff; color: var(--idb-brand-700, #1d4ed8); }
.abe-dashboard :where(.birthday-table, .visit-table) { width: 100%; min-width: 700px; border-collapse: collapse; }
.abe-dashboard :where(.birthday-table, .visit-table) :where(th, td) { padding: 10px 12px; border: 1px solid #cbd6e4; text-align: left; vertical-align: top; }
.abe-dashboard :where(.birthday-table, .visit-table) thead th { background: #eaf1fb; color: #25344a; font-weight: 750; }
.abe-dashboard :where(.birthday-table, .visit-table) tbody tr:nth-child(even) > * { background: #f5f8fc; }
.abe-dashboard :where(.birthday-table, .visit-table) tbody tr:hover > * { background: #eaf3ff; }
.abe-dashboard .birthday-today > * { background: #fff7df !important; }
@media (max-width: 700px) { .abe-dashboard { width: min(100% - 20px, 1200px); } .abe-dashboard .quick-links { grid-template-columns: 1fr; } }

/* Download views use the same inset content card as Pharmacy Contacts. */
body.idb-legacy .idb-download-page > .site-main.idb-card { width: min(100% - 32px, 1440px) !important; margin: clamp(24px, 4vw, 56px) auto !important; padding: clamp(18px, 3vw, 32px) !important; border: 1px solid var(--idb-border, #dfe5ef) !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(15, 23, 42, .06) !important; background: #fff !important; }
body.idb-legacy .idb-download-page .idb-table-scroll { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; background: transparent !important; }
body.idb-legacy .idb-download-page .dataTables_wrapper { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
body.idb-legacy .idb-download-page .idb-dt-toolbar { margin: 0 0 14px; }
@media (max-width: 700px) { body.idb-legacy .idb-download-page > .site-main.idb-card { width: min(100% - 20px, 1440px) !important; margin: 18px auto !important; } }

/* Shared inset report surface for pharmacy lists and stock-take reports. */
.idb-content.idb-report-shell { width: min(100% - 32px, 1440px); }
.idb-report-card { width: 100%; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--idb-border, #dfe5ef); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.anp-stock-report-wrap.idb-report-card { width: min(100% - 32px, 1440px); max-width: none; margin: clamp(24px, 4vw, 56px) auto; padding: clamp(18px, 3vw, 32px); }
.idb-report-card .idb-table-region,
.idb-report-card .anp-stock-table-wrap { max-width: 100%; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow-x: auto; }
.idb-report-card .idb-table-region .dataTables_wrapper,
.idb-report-card .anp-stock-table-wrap .dataTables_wrapper { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
@media (max-width: 700px) { .idb-content.idb-report-shell, .anp-stock-report-wrap.idb-report-card { width: min(100% - 20px, 1440px); } .anp-stock-report-wrap.idb-report-card { margin: 18px auto; } }

/* Admin menu pages share the same inset surface; report controls and data stay page-owned. */
body.idb-legacy .idb-admin-page:not(.idb-admin-page--embedded) {
  box-sizing: border-box;
  width: min(100% - 32px, 1440px) !important;
  max-width: 1440px !important;
  margin: clamp(24px, 4vw, 56px) auto !important;
}
body.idb-legacy .idb-admin-page.idb-report-card,
.idb-admin-page--embedded.idb-report-card {
  padding: clamp(18px, 3vw, 32px) !important;
  border: 1px solid var(--idb-border, #dfe5ef) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06) !important;
}
body.idb-legacy .idb-admin-page--host { padding: 0 !important; background: transparent !important; }
body.idb-legacy .idb-admin-page--host > .idb-report-card { width: 100%; box-sizing: border-box; }
body.idb-legacy .idb-admin-page :where(.idb-legacy-table-region, .table-responsive, .table-scroll, .idb-table-region) {
  max-width: 100%;
  overflow-x: auto;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.idb-legacy .idb-admin-page .dataTables_wrapper { max-width: 100%; border: 0 !important; box-shadow: none !important; background: transparent !important; }
body.idb-legacy .idb-admin-page :where(.idb-legacy-table-region, .table-responsive, .table-scroll) > table { min-width: 620px; }
@media (max-width: 700px) {
  body.idb-legacy .idb-admin-page:not(.idb-admin-page--embedded) { width: min(100% - 20px, 1440px) !important; margin: 18px auto !important; }
  body.idb-legacy .idb-admin-page.idb-report-card, .idb-admin-page--embedded.idb-report-card { padding: 18px !important; }
}

/* Visit update: one theme-owned page, readable details, and usable stock entry fields. */
.idb-visit-update-page {
  display: block;
  min-height: 0;
  width: min(100% - 32px, 1100px);
  margin: clamp(24px, 4vw, 48px) auto;
}
.idb-visit-update-page > .content {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.idb-visit-update-page .content > h3 { margin: 0 0 20px; color: #1c2636; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
.idb-visit-update-page .visit-table { width: 100%; margin: 0 0 20px; table-layout: fixed; border-collapse: collapse; }
.idb-visit-update-page .visit-table :where(td.label, td.value) {
  display: table-cell !important;
  box-sizing: border-box;
  height: auto;
  padding: 12px 16px !important;
  border: 1px solid #cbd6e4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #25344a;
  font-size: .93rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.idb-visit-update-page .visit-table td.label { width: 30%; font-weight: 700; background: #f3f7fd !important; }
.idb-visit-update-page .visit-table tbody tr:nth-child(even) td.value { background: #f8faff !important; }
.idb-visit-update-page .section {
  box-sizing: border-box;
  margin: 18px 0 0;
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.idb-visit-update-page .section h4 { margin: 0 0 16px; color: #1c2636; font-size: 1.15rem; }
.idb-visit-update-page :where(.section label, .sku-entry label) { color: #344054; font-weight: 600; }
.idb-visit-update-page #visitForm :where(input[type="text"], input[type="file"], select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #bdcadd;
  border-radius: 8px;
  background: #fff;
  color: #25344a;
  font: inherit;
}
.idb-visit-update-page #visitForm :where(input[type="text"], select, textarea) { width: 100%; }
.idb-visit-update-page #visitForm textarea { min-height: 120px; resize: vertical; }
.idb-visit-update-page .idb-activities-section > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.idb-visit-update-page .idb-activities-section br { display: none; }
.idb-visit-update-page .idb-activities-section label { display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; }
.idb-visit-update-page .idb-activities-section input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--idb-brand-600, #2563eb); }
.idb-visit-update-page .sku-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .75fr) 36px;
  align-items: end;
  gap: 14px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8faff;
}
.idb-visit-update-page .sku-entry > div { min-width: 0; margin: 0; }
.idb-visit-update-page .sku-entry label { display: block; margin: 0 0 7px; }
.idb-visit-update-page .sku-entry :where(select, input) { width: 100%; }
.idb-visit-update-page .sku-entry .remove-button { display: grid; place-items: center; min-width: 36px; min-height: 44px; margin: 0; border-radius: 8px; background: #fff1f2; color: #b42318; cursor: pointer; }
.idb-visit-update-page .sku-entry .remove-button:hover { background: #ffe4e6; }
.idb-visit-update-page :where(#addMoreButton, #addAttachmentButton) { min-height: 42px; }
.idb-visit-update-page .button-group { margin-top: 22px; flex-wrap: wrap; }
.idb-visit-update-page .button-group button { flex: 0 1 auto; min-width: 150px; }
@media (max-width: 700px) {
  .idb-visit-update-page { width: min(100% - 20px, 1100px); margin: 18px auto; }
  .idb-visit-update-page > .content { padding: 18px; }
  .idb-visit-update-page .idb-activities-section > div { grid-template-columns: 1fr; }
  .idb-visit-update-page .sku-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .idb-visit-update-page .sku-entry > div:first-child { grid-column: 1 / -1; }
  .idb-visit-update-page .sku-entry .remove-button { grid-column: 1 / -1; justify-self: end; }
  .idb-visit-update-page .visit-table td.label { width: 38%; }
}
@media (max-width: 420px) {
  .idb-visit-update-page .sku-entry { grid-template-columns: 1fr; }
  .idb-visit-update-page .sku-entry > div:first-child, .idb-visit-update-page .sku-entry .remove-button { grid-column: auto; }
  .idb-visit-update-page .visit-table :where(td.label, td.value) { padding: 10px !important; }
}

/* Content-aware tables: compact short values and wrap genuinely long values.
 * Form/layout tables keep their purpose-built sizing rules. */
:where(.idb-table-region, .idb-table-scroll, .idb-legacy-table-region, .table-responsive, .table-scroll) > table:not(.idb-form-table, .idb-layout-table, .idb-target-table),
:where(.idb-table-region, .idb-table-scroll, .idb-legacy-table-region, .table-responsive, .table-scroll) > .dataTables_wrapper table.dataTable {
  table-layout: auto !important;
  min-width: 100% !important;
  max-width: none !important;
}
:where(.idb-table, .idb-data-table, .idb-legacy-table, table.dataTable):not(.idb-form-table, .idb-layout-table, .idb-target-table) :where(th, td) {
  min-width: 0 !important;
  width: auto;
}
:where(.idb-table, .idb-data-table, .idb-legacy-table, table.dataTable):not(.idb-form-table, .idb-layout-table, .idb-target-table) td {
  max-width: 32rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
:where(.idb-table, .idb-data-table, .idb-legacy-table, table.dataTable):not(.idb-form-table, .idb-layout-table, .idb-target-table) th { white-space: nowrap; }
@media (max-width: 700px) {
  :where(.idb-table, .idb-data-table, .idb-legacy-table, table.dataTable):not(.idb-form-table, .idb-layout-table, .idb-target-table) td {
    max-width: min(22rem, 72vw);
  }
}

/* Overdue visit management: cancellations retain planner rows and audited reasons. */
.idb-oovm { padding: clamp(1rem, 3vw, 2.5rem) 1rem; }
.idb-oovm .idb-content { max-width: 1200px; margin: auto; }
.idb-oovm__header,
.idb-oovm__panel,
.idb-oovm__table-wrap,
.idb-oovm__notice {
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}
.idb-oovm__header { margin-bottom: 1rem; padding: 1.25rem; }
.idb-oovm__header h1 { margin: .15rem 0; }
.idb-oovm__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.idb-oovm__notice { margin-bottom: 1rem; padding: 1rem; border-left: 4px solid var(--idb-brand-600, #2563eb); }
.idb-oovm__panel { margin-bottom: 1.5rem; padding: 1rem; }
.idb-oovm__filter { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.idb-oovm__filter label { width: 100%; font-weight: 700; }
.idb-oovm :where(select, input[type="search"], textarea) {
  box-sizing: border-box;
  min-height: 42px;
  padding: .55rem .7rem;
  border: 1px solid #bdcadd;
  border-radius: 7px;
  background: #fff;
  color: var(--idb-ink, #172033);
  font: inherit;
}
.idb-oovm select { min-width: 240px; }
.idb-oovm input[type="search"] { min-width: min(100%, 360px); }
.idb-oovm textarea { width: 100%; min-height: 92px; resize: vertical; }
.idb-oovm__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--idb-brand-600, #2563eb);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.idb-oovm__button:hover { background: var(--idb-brand-700, #1d4ed8); color: #fff; }
.idb-oovm__button--muted { background: #64748b; }
.idb-oovm__button--muted:hover { background: #475569; }
.idb-oovm__button--danger { background: #b42318; }
.idb-oovm__button--danger:hover { background: #912018; }
.idb-oovm__bulkbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 12px 16px; margin: 0 0 1rem; }
.idb-oovm__bulkbar > span { grid-column: 1 / -1; color: #64748b; }
.idb-oovm__reason-field { display: grid; gap: 7px; color: #344054; font-weight: 700; }
.idb-oovm__table-wrap { max-width: 100%; margin: 1rem 0 2rem; padding: clamp(.4rem, 1.5vw, 1rem); overflow-x: auto; }
.idb-oovm__table { width: 100%; min-width: max-content; margin: 0; border-collapse: collapse; }
.idb-oovm__table :where(th, td) { max-width: 28rem; padding: clamp(.75rem, 1.5vw, 1.1rem); border: 1px solid #cbd6e4; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.idb-oovm__table thead th { background: #eaf1fb; color: #25344a; font-weight: 750; white-space: nowrap; }
.idb-oovm__table tbody tr:nth-child(even) > * { background: #f5f8fc; }
.idb-oovm__table tbody tr:hover > * { background: #eaf3ff; }
.idb-oovm__table th:last-child,
.idb-oovm__table td:last-child { min-width: 110px; }
.idb-oovm__table small { display: block; color: #64748b; }
.idb-oovm__badge { display: inline-block; padding: .25rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.idb-oovm__badge.is-ready { background: #dcfce7; color: #166534; }
.idb-oovm__badge.is-locked,
.idb-oovm__badge.is-cancelled { background: #fee2e2; color: #991b1b; }
.idb-oovm__badge.is-status { background: #e8eefc; color: #234a91; }
.idb-oovm__link-button { border: 0; background: none; color: #b42318; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.idb-oovm-single-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 38px;
  padding: .5rem .85rem;
  border-radius: 8px;
  background: #b42318;
  color: #fff;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.idb-oovm-single-cancel:hover,
.idb-oovm-single-cancel:focus { background: #912018; color: #fff; text-decoration: none; }
.idb-oovm__empty { padding: 2rem !important; text-align: center !important; }
.idb-oovm__pagination { display: flex; justify-content: center; gap: .4rem; margin: 1rem 0 2rem; }
.idb-oovm__pagination .page-numbers { padding: .5rem .75rem; border: 1px solid #cbd6e4; border-radius: 6px; text-decoration: none; }
.idb-oovm__pagination .current { background: var(--idb-brand-600, #2563eb); color: #fff; }
.idb-oovm__link-button--restore { color: var(--idb-brand-600, #2563eb); }
.idb-oovm__cancelled-section,
.idb-oovm__archive-section { margin-top: 2rem; }
.idb-oovm__section-heading { margin-bottom: .75rem; }
.idb-oovm__section-heading h2 { margin-bottom: .25rem; }
.idb-oovm__section-heading p { margin-top: 0; color: #64748b; }
.idb-oovm .dataTables_wrapper { margin: 1rem 0 2rem; padding: .75rem; }
.idb-oovm .dataTables_filter input,
.idb-oovm .dataTables_length select { margin: .25rem; padding: .45rem .6rem; border: 1px solid #bdcadd; border-radius: 6px; }
.idb-oovm .dataTables_info,
.idb-oovm .dataTables_paginate { padding-top: 1rem; }
.idb-oovm__dialog {
  width: min(100% - 32px, 560px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--idb-ink, #172033);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.idb-oovm__dialog::backdrop { background: rgba(15, 23, 42, .55); }
.idb-oovm__dialog-form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 30px); }
.idb-oovm__dialog-form h2,
.idb-oovm__dialog-form p { margin: 0; }
.idb-oovm__dialog-form label { font-weight: 700; }
.idb-oovm__dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 700px) {
  .idb-oovm__filter > * { width: 100%; }
  .idb-oovm select { width: 100%; min-width: 0; }
  .idb-oovm__bulkbar { grid-template-columns: 1fr; align-items: stretch; }
  .idb-oovm__bulkbar > span { grid-column: auto; }
  .idb-oovm__table :where(th, td) { max-width: min(22rem, 72vw); }
  .idb-oovm__dialog-actions .idb-oovm__button { width: 100%; }
}

/* Admin module: one presentation system for every page linked from Admin.
 * Individual templates continue to own their data and interactions. */
body.idb-legacy .idb-admin-page {
  --idb-admin-line: #cbd6e4;
  --idb-admin-head: #eaf1fb;
  --idb-admin-stripe: #f5f8fc;
  color: var(--idb-ink, #172033);
}
body.idb-legacy .idb-admin-page :where(h1, h2, h3) {
  color: var(--idb-ink, #172033) !important;
  line-height: 1.2;
}
body.idb-legacy .idb-admin-page > :where(h1, h2):first-child,
body.idb-legacy .idb-admin-page--host > .idb-report-card > :where(h1, h2):first-child {
  margin: 0 0 clamp(20px, 3vw, 30px) !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
  text-align: left !important;
}
body.idb-legacy .idb-admin-page :where(h2, h3) { margin-top: 24px; margin-bottom: 14px; }

/* Filters and forms use the same spacing and controls throughout Admin. */
body.idb-legacy .idb-admin-page :where(
  .filter-bar,
  .report-filters,
  .form-inline,
  .detail-filter,
  .table-controls-container
) {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  box-sizing: border-box;
  margin: 0 0 20px !important;
  padding: 14px 16px;
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 10px;
  background: #f8faff;
}
body.idb-legacy .idb-admin-page :where(label, .abe-label) {
  color: #344054;
  font-weight: 650;
}
body.idb-legacy .idb-admin-page :where(
  input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"]),
  select,
  textarea
) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #bdcadd;
  border-radius: 8px;
  background: #fff;
  color: var(--idb-ink, #172033);
  font: inherit;
}
body.idb-legacy .idb-admin-page textarea { min-height: 120px; resize: vertical; }
body.idb-legacy .idb-admin-page input[type="file"] {
  min-height: 48px;
  padding: 8px;
  border: 1px dashed #9fb0c8;
  background: #f8faff;
}
body.idb-legacy .idb-admin-page :where(
  button:not(.idb-nav-toggle),
  input[type="submit"],
  input[type="button"],
  .abe-btn,
  .view-btn,
  .dt-button
) {
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 16px !important;
  border: 1px solid var(--idb-brand-600, #2563eb) !important;
  border-radius: 8px !important;
  background: var(--idb-brand-600, #2563eb) !important;
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
body.idb-legacy .idb-admin-page :where(
  button:not(.idb-nav-toggle),
  input[type="submit"],
  input[type="button"],
  .abe-btn,
  .view-btn,
  .dt-button
):hover {
  border-color: var(--idb-brand-700, #1d4ed8) !important;
  background: var(--idb-brand-700, #1d4ed8) !important;
  color: #fff !important;
}
body.idb-legacy .idb-admin-page .abe-actions button {
  border-color: #b42318 !important;
  background: #b42318 !important;
}
body.idb-legacy .idb-admin-page .abe-actions button:hover {
  border-color: #912018 !important;
  background: #912018 !important;
}

/* Secondary cards retain their meaning but share the site geometry. */
body.idb-legacy .idb-admin-page :where(.abe-card, .kpi-card, .summary-cards .card, .idb-card) {
  box-sizing: border-box;
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
body.idb-legacy .idb-admin-page :where(.kpi-grid, .summary-cards) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}
body.idb-legacy .idb-admin-page :where(.kpi-card, .summary-cards .card) {
  min-width: 0;
  padding: 18px;
}

/* Reports retain compact content-sized columns with a single horizontal scroll. */
body.idb-legacy .idb-admin-page,
body.idb-legacy .idb-admin-page :where(.table-responsive, .table-scroll, .idb-table-region, .dataTables_wrapper) {
  max-width: 100%;
  overflow-x: auto;
}
body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) {
  width: 100% !important;
  min-width: max-content;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border-spacing: 0;
  background: #fff;
}
body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) :where(th, td) {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: 32rem;
  padding: 11px 14px !important;
  border: 1px solid var(--idb-admin-line) !important;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) thead th {
  background: var(--idb-admin-head) !important;
  color: #25344a !important;
  font-weight: 750;
  white-space: nowrap;
}
body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) tbody tr:nth-child(even) > * {
  background: var(--idb-admin-stripe) !important;
}
body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) tbody tr:hover > * {
  background: #eaf3ff !important;
}
body.idb-legacy .idb-admin-page :where(.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate) {
  margin: 10px 0;
  color: #526078;
}
body.idb-legacy .idb-admin-page .dataTables_filter input {
  min-width: min(240px, 60vw);
  margin-left: 8px;
}

@media (max-width: 700px) {
  body.idb-legacy .idb-admin-page :where(.filter-bar, .report-filters, .form-inline, .detail-filter, .table-controls-container) {
    align-items: stretch;
    padding: 14px;
  }
  body.idb-legacy .idb-admin-page :where(.filter-bar, .report-filters, .form-inline, .detail-filter) :where(select, button) {
    width: 100% !important;
  }
  body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) :where(th, td) {
    display: table-cell !important;
    max-width: min(22rem, 72vw);
    padding: 10px 12px !important;
  }
  body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) thead { display: table-header-group !important; }
  body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) tbody { display: table-row-group !important; }
  body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) tr { display: table-row !important; }
  body.idb-legacy .idb-admin-page table:not(.idb-layout-table, .idb-form-table) td::before { display: none !important; content: none !important; }
  body.idb-legacy .idb-admin-page :where(.dataTables_length, .dataTables_filter) {
    float: none !important;
    width: 100%;
    text-align: left !important;
  }
}

/* The /budget-allocation-form/ WordPress page uses budget-allocation-new.php. */
body.page-template-budget-allocation-new {
  --idb-budget-width: 1440px;
  --idb-budget-space: clamp(18px, 3vw, 32px);
  --idb-budget-line: #cbd6e4;
  --idb-budget-head: #eaf1fb;
  --idb-budget-stripe: #f5f8fc;
}
body.page-template-budget-allocation-new .idb-site > .container {
  box-sizing: border-box;
  width: min(calc(100% - 32px), var(--idb-budget-width)) !important;
  max-width: var(--idb-budget-width) !important;
  margin: clamp(24px, 4vw, 56px) auto !important;
  padding: var(--idb-budget-space) !important;
  overflow-x: auto;
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
body.page-template-budget-allocation-new .container > h1 {
  margin: 0 0 clamp(20px, 3vw, 30px) !important;
  color: var(--idb-ink, #172033);
  font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
  line-height: 1.2;
  text-align: left !important;
}
body.page-template-budget-allocation-new .container > form:first-of-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 12px;
  background: #f8faff;
}
body.page-template-budget-allocation-new .container > form:first-of-type p {
  flex: 1 0 100%;
  margin: 0 0 4px;
  color: #344054;
}
body.page-template-budget-allocation-new label { color: #344054; font-weight: 700; }
body.page-template-budget-allocation-new :where(select, input[type="number"]) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #bdcadd;
  border-radius: 8px;
  background: #fff;
  color: var(--idb-ink, #172033);
  font: inherit;
}
body.page-template-budget-allocation-new :where(.message, .success, .error) {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 9px;
}
body.page-template-budget-allocation-new table {
  width: 100% !important;
  min-width: max-content;
  margin: 20px 0 !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border-spacing: 0;
  background: #fff;
}
body.page-template-budget-allocation-new table :where(th, td) {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: 32rem;
  padding: 11px 14px !important;
  border: 1px solid var(--idb-budget-line) !important;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.page-template-budget-allocation-new table thead th {
  background: var(--idb-budget-head) !important;
  color: #25344a !important;
  font-weight: 750;
  white-space: nowrap;
}
body.page-template-budget-allocation-new table tbody tr:nth-child(even) > * { background: var(--idb-budget-stripe) !important; }
body.page-template-budget-allocation-new table tbody tr:hover > * { background: #eaf3ff !important; }
body.page-template-budget-allocation-new :where(.btn-update, button[type="submit"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  margin: 8px 0;
  padding: 9px 16px;
  border: 1px solid var(--idb-brand-600, #2563eb);
  border-radius: 8px;
  background: var(--idb-brand-600, #2563eb);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
body.page-template-budget-allocation-new :where(.btn-update, button[type="submit"]):hover {
  border-color: var(--idb-brand-700, #1d4ed8);
  background: var(--idb-brand-700, #1d4ed8);
  color: #fff;
}
body.page-template-budget-allocation-new .custom-budget-wrapper {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 0;
}
@media (max-width: 700px) {
  body.page-template-budget-allocation-new .idb-site > .container {
    width: min(calc(100% - 20px), var(--idb-budget-width)) !important;
    margin: 18px auto !important;
    padding: 18px !important;
    border-radius: 13px;
  }
  body.page-template-budget-allocation-new .container > form:first-of-type { align-items: stretch; padding: 14px; }
  body.page-template-budget-allocation-new .container > form:first-of-type :where(label, select) { width: 100%; }
  body.page-template-budget-allocation-new table :where(th, td) { max-width: min(22rem, 72vw); padding: 10px 12px !important; }
}

/* Budget module: a CSS-only presentation layer shared by every Budget menu page.
 * Page templates retain ownership of data, permissions, validation, and actions. */
:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-listing-sales,
  body.page-template-budget-request-mkt,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) {
  --idb-budget-width: 1440px;
  --idb-budget-space: clamp(18px, 3vw, 32px);
  --idb-budget-line: #cbd6e4;
  --idb-budget-head: #eaf1fb;
  --idb-budget-stripe: #f5f8fc;
}

:where(body.page-template-bulk-budget-import) .budget-container,
:where(body.page-template-cms-pharmacy-budget-report) .budget-report-container,
:where(body.page-template-abe-budget-summary) .container.py-5,
:where(body.page-template-cms-budget-summary-overall) .budget-summary-wrapper,
:where(body.page-template-budget-allocation-form) #primary.content-area,
:where(body.page-template-budget-request-sales) #primary.content-area,
:where(body.page-template-budget-listing-sales) #primary.content-area,
:where(body.page-template-budget-request-mkt) #primary.content-area,
:where(body.page-template-budget-listing-mkt) #primary.content-area,
:where(body.page-template-budget-list-finance) .finance-budget-list,
:where(body.page-template-my-budget-request) .idb-site > .container,
:where(body.page-template-my-budget-request) > .site > .container,
:where(body.page-template-my-budget-request) .site-content > .container,
:where(body.page-template-my-budget-request) main > .container,
:where(body.page-template-cms-budget-require-po) .po-section {
  box-sizing: border-box;
  width: min(calc(100% - 32px), var(--idb-budget-width)) !important;
  max-width: var(--idb-budget-width) !important;
  margin: clamp(24px, 4vw, 56px) auto !important;
  padding: var(--idb-budget-space) !important;
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

:where(
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-listing-sales,
  body.page-template-budget-request-mkt,
  body.page-template-budget-listing-mkt
) :where(#main.site-main, .container-modern, .container.mt-5) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

:where(body.page-template-budget-list-finance) .finance-budget-list > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-listing-sales,
  body.page-template-budget-request-mkt,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) :where(h1, h2, h3) {
  color: var(--idb-ink, #172033);
  line-height: 1.2;
}

:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-listing-sales,
  body.page-template-budget-request-mkt,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) :where(h1, h2).entry-title,
:where(body.page-template-cms-pharmacy-budget-report) .budget-report-container > h1,
:where(body.page-template-bulk-budget-import) .budget-container > h2,
:where(body.page-template-abe-budget-summary) .container > h2,
:where(body.page-template-cms-budget-summary-overall) .budget-summary-wrapper > h1,
:where(body.page-template-budget-listing-sales, body.page-template-budget-listing-mkt) .page-title,
:where(body.page-template-budget-list-finance) .finance-budget-list h2.text-primary,
:where(body.page-template-my-budget-request) .container > h2 {
  margin: 0 0 clamp(20px, 3vw, 30px) !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
  text-align: left !important;
}

/* Section cards create a predictable rhythm without changing the page markup. */
:where(body.page-template-cms-budget-summary-overall) .budget-section,
:where(body.page-template-budget-allocation-form) :where(.form-container, .budget-form-container, .data-table-container),
:where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) .budget-form-modern,
:where(body.page-template-cms-pharmacy-budget-report) .table-container {
  box-sizing: border-box;
  margin: 20px 0 0;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--idb-border, #dfe5ef);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

:where(body.page-template-cms-budget-summary-overall) .budget-section + .budget-section { margin-top: 24px; }
:where(body.page-template-cms-budget-summary-overall) .section-header,
:where(body.page-template-cms-pharmacy-budget-report) #monthFilterForm,
:where(body.page-template-abe-budget-summary) .filter-form,
:where(body.page-template-budget-allocation-form) #yearFilterForm {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

/* One form language across import, allocation, request, and report filters. */
:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-request-mkt,
  body.page-template-cms-budget-require-po
) :where(label) {
  color: #344054;
  font-weight: 650;
}

:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-request-mkt,
  body.page-template-cms-budget-require-po
) :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"]), select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #bdcadd;
  border-radius: 8px;
  background: #fff;
  color: var(--idb-ink, #172033);
  font: inherit;
}

:where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) .form-group-modern {
  margin-bottom: 18px;
}
:where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) .form-group-modern > label {
  display: block;
  margin-bottom: 7px;
}
:where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) .form-group-modern :where(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
  width: 100%;
}
:where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) textarea { min-height: 120px; resize: vertical; }
:where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) .form-value {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8faff;
}

/* Buttons and tabs use the established theme blue. */
:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-listing-sales,
  body.page-template-budget-request-mkt,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) :where(button, input[type="submit"], input[type="button"], .button, .btn, .custom-btn, .download-btn) {
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--idb-brand-600, #2563eb);
  border-radius: 8px;
  background: var(--idb-brand-600, #2563eb);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-request-sales,
  body.page-template-budget-listing-sales,
  body.page-template-budget-request-mkt,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) :where(button, input[type="submit"], input[type="button"], .button, .btn, .custom-btn, .download-btn):hover {
  border-color: var(--idb-brand-700, #1d4ed8);
  background: var(--idb-brand-700, #1d4ed8);
  color: #fff;
}

:where(body.page-template-budget-listing-sales, body.page-template-budget-listing-mkt, body.page-template-my-budget-request) .tab,
:where(body.page-template-budget-list-finance) .budget-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f5f8fc;
}

/* All Budget tables share borders, alternating rows, compact columns, and safe overflow. */
:where(
  body.page-template-bulk-budget-import,
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) :where(.table-container, .table-responsive, .data-table-container, .dataTables_wrapper) {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
}

:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) table {
  width: 100% !important;
  min-width: max-content;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border-spacing: 0;
  background: #fff;
}
:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) table :where(th, td) {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: 32rem;
  padding: 11px 14px !important;
  border: 1px solid var(--idb-budget-line) !important;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) table thead th {
  background: var(--idb-budget-head) !important;
  color: #25344a !important;
  font-weight: 750;
  white-space: nowrap;
}
:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) table tbody tr:nth-child(even) > * { background: var(--idb-budget-stripe) !important; }
:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-abe-budget-summary,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-allocation-form,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) table tbody tr:hover > * { background: #eaf3ff !important; }

/* DataTables controls remain above/below the horizontally scrollable result. */
:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) :where(.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate) {
  margin: 10px 0;
  color: #526078;
}
:where(
  body.page-template-cms-pharmacy-budget-report,
  body.page-template-cms-budget-summary-overall,
  body.page-template-budget-listing-sales,
  body.page-template-budget-listing-mkt,
  body.page-template-budget-list-finance,
  body.page-template-my-budget-request,
  body.page-template-cms-budget-require-po
) .dataTables_filter input {
  min-width: min(240px, 60vw);
  margin-left: 8px;
}

@media (max-width: 700px) {
  :where(body.page-template-bulk-budget-import) .budget-container,
  :where(body.page-template-cms-pharmacy-budget-report) .budget-report-container,
  :where(body.page-template-abe-budget-summary) .container.py-5,
  :where(body.page-template-cms-budget-summary-overall) .budget-summary-wrapper,
  :where(body.page-template-budget-allocation-form) #primary.content-area,
  :where(body.page-template-budget-request-sales) #primary.content-area,
  :where(body.page-template-budget-listing-sales) #primary.content-area,
  :where(body.page-template-budget-request-mkt) #primary.content-area,
  :where(body.page-template-budget-listing-mkt) #primary.content-area,
  :where(body.page-template-budget-list-finance) .finance-budget-list,
  :where(body.page-template-my-budget-request) .idb-site > .container,
  :where(body.page-template-my-budget-request) > .site > .container,
  :where(body.page-template-my-budget-request) .site-content > .container,
  :where(body.page-template-my-budget-request) main > .container,
  :where(body.page-template-cms-budget-require-po) .po-section {
    width: min(calc(100% - 20px), var(--idb-budget-width)) !important;
    margin: 18px auto !important;
    padding: 18px !important;
    border-radius: 13px;
  }
  :where(body.page-template-cms-budget-summary-overall) .section-header { align-items: flex-start; flex-direction: column; }
  :where(body.page-template-cms-budget-summary-overall) .budget-section,
  :where(body.page-template-budget-allocation-form) :where(.form-container, .budget-form-container, .data-table-container),
  :where(body.page-template-budget-request-sales, body.page-template-budget-request-mkt) .budget-form-modern,
  :where(body.page-template-cms-pharmacy-budget-report) .table-container { padding: 14px; }
  :where(
    body.page-template-cms-pharmacy-budget-report,
    body.page-template-abe-budget-summary,
    body.page-template-cms-budget-summary-overall,
    body.page-template-budget-allocation-form,
    body.page-template-budget-listing-sales,
    body.page-template-budget-listing-mkt,
    body.page-template-budget-list-finance,
    body.page-template-my-budget-request,
    body.page-template-cms-budget-require-po
  ) table :where(th, td) {
    max-width: min(22rem, 72vw);
    padding: 10px 12px !important;
  }
  :where(
    body.page-template-cms-pharmacy-budget-report,
    body.page-template-cms-budget-summary-overall,
    body.page-template-budget-listing-sales,
    body.page-template-budget-listing-mkt,
    body.page-template-budget-list-finance,
    body.page-template-my-budget-request,
    body.page-template-cms-budget-require-po
  ) :where(.dataTables_length, .dataTables_filter) {
    float: none !important;
    width: 100%;
    text-align: left !important;
  }
}
