/*
    Theme Name: Audditio
    Theme URI: https://audditio.com/
    Description: Audditio is multipurpose proffesional wordpress theme, desined to develope any kind of website using wordpress. It also works like a framework with many prebuild functionality which will make a developer's life easy. 
    Author: MyCodeGarden
    Author URI: https://mycodegarden.org/
    Tags: wordpress, theme, woocommerce, blog, developer, framework, multipurpose, proffesional, ecommerce
    Requires at least: 5.0
    Tested up to: 5.4
    Requires PHP: 7.0
    Text Domain: audditio
    Version: 0.0.1
    */

.field-msg {
    float: left;
    color: #F00;
    width: 100%;
    font-size: 12px;
}

.right {
    float: right;
}

/* --- Custom Mobile Dropdown Styles --- */
ul.custom-mobile-accordion,
ul.custom-mobile-accordion ul {
    list-style: none !important;
    padding-left: 0 !important;
    /* margin: 0 !important; */
}

ul.custom-mobile-accordion li {
    position: relative;
    width: 100%;
    display: block;
}

/* Push nested items slightly to the right */
ul.mob-level-2 {
    padding-left: 15px !important;
}

ul.mob-level-3 {
    padding-left: 15px !important;
}

/* Flexbox aligns the link text to the left, and the + button to the right */
.mob-item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f7e2f7;
}

.mob-item-wrap a {
    display: block;
    padding: 12px 0;
    flex-grow: 1;
    text-decoration: none;
    font-size: 11px;
    /* color: #333; */
}

/* The Plus/Minus toggle button */
.mob-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
    background: transparent;
    border: none;
}

.mob-level-2 li a,
.mob-level-2 .mob-toggle-btn {
    font-size: 14px !important;
    margin-left: 10px !important;
    color: #383838 !important;
}

.mob-level-3 {
    margin-top: 10px !important;
}

.mob-level-3 li a {
    color: #7f7f7f !important;
    margin-left: 15px !important;
}

.filter_btn {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 18px;
    float: left;
    width: auto;
    border: 2px solid var(--secondary-color);
    margin-top: 25px;
    cursor: pointer;
    border-radius: 5px;
    line-height: 12px;
}

.filter_btn:hover {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Rate History Page */
/* .rate_history_filter {
	float:left;
	width:100%;
	margin-bottom:20px;
}

.rate_history_filter ul{
	display:flex;
	flex-wrap:wrap;
	gap:15px;
	align-items:end;
}

.rate_history_filter li{
	width:260px;
}

.rate_history_filter li:last-child{
	width:auto;
}

.rate_history_filter label{
	float:left;
	width:100%;
	font-size:13px;
	margin-bottom:5px;
	color:#696969;
}

.rate_history_filter .input_field{
	width:100%;
	height:40px;
	border:1px solid #ddd;
	padding:0 10px;
	background:#fff;
}

.rate_history_table{
	width:100%;
	border-collapse:collapse;
}

.rate_history_table th,
.rate_history_table td{
	padding:10px !important;
}

.empty_row{
	text-align:center;
	color:#777;
} */

.design_upload_box {
    width: 100%;
}

.design_image_label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.design_image_preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px dashed #dcdcdc;
    padding: 5px;
    background: #fff;
}

.design_upload_text {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.design_table_image_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.design_table_image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 2px;
}

/*Emp Details*/
.attendance_header {
    float: left;
    width: 100%;
}

.attendance_header h3 {
    float: left;
    margin: 0 0 30px;
    width: 50%;
}

.attendance_header .export_btn {
    float: right;
}

.export_btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    width: auto;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.right_btns {
    float: right;
    width: auto;
}

/* Dashboard */
.dashboard_stats {
    float: left;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat_card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all .3s ease;
}

.stat_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat_card span {
    display: block;
    font-size: 13px;
    color: #777;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat_card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.invoiced_card {
    border-left: 5px solid #4682b8;
}

.collected_card {
    border-left: 5px solid #4caf50;
}

.outstanding_card {
    border-left: 5px solid #fd026c;
}

.customer_card {
    border-left: 5px solid #ff9800;
}

@media(max-width:991px) {

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

}


.collection_widget {
    padding: 20px;
    text-align: center;
}

.collection_percentage {
    font-size: 48px;
    font-weight: 700;
    color: #4caf50;
    line-height: 1;
}

.collection_label {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
}

.collection_stats p {
    margin: 8px 0;
    font-size: 14px;
}

.dashboard_chart {
    height: 300px;
    max-height: 300px;
    position: relative;
    overflow: hidden;
}

.bar_chart {
    float: left;
    width: 100%;
    height: 300px;
}

.bulk_action_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #000 !important;
    background: #55555573 !important;
    border: 1px solid #555 !important;
}

.btn-print{
    float: right;
    margin-top: 20px;
}

    /* Employee Details Page */
    .employee_details_page {
        font-family: 'Outfit', 'Inter', sans-serif;
    }
    
    .emp-profile-card {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        padding: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        border: 1px solid #f0f0f0;
        transition: box-shadow 0.3s ease;
    }
    
    .emp-profile-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    }
    
    .emp-profile-left {
        display: flex;
        align-items: center;
        gap: 24px;
    }
    
    .emp-profile-icon {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: #ffffff;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    }
    
    .emp-profile-details h2 {
        margin: 0;
        font-size: 24px;
        color: #1f2937;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .emp-profile-code {
        margin: 0px 10px;
        font-size: 14px;
        color: #6b7280;
        font-weight: 600;
        background: #f3f4f6;
        padding: 2px 10px;
        border-radius: 20px;
        display: inline-block;
    }
    
    .emp-profile-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
        color: #4b5563;
        font-size: 14px;
        margin-top: 5px;
    }
    
    .emp-profile-meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .emp-profile-meta-item i {
        color: #6b7280;
        width: 16px;
        text-align: center;
    }
    
    .emp-profile-right {
        text-align: right;
        border-left: 2px solid #f3f4f6;
        padding-left: 40px;
        min-width: 180px;
    }
    
    .emp-salary-title {
        font-size: 13px;
        text-transform: uppercase;
        color: #9ca3af;
        font-weight: 700;
        letter-spacing: 0.8px;
        margin-bottom: 4px;
    }
    
    .emp-salary-amt {
        font-size: 20px;
        color: #10b981;
        font-weight: 800;
    }
    
    /* 3-Cards Row CSS */
    .emp-stats-grid {
        float: left;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin: 30px 0;
    }
    
    .emp-stat-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #f0f0f0;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .emp-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
    
    .emp-stat-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 12px;
    }
    
    .emp-stat-card-title {
        font-size: 16px;
        font-weight: 700;
        color: #374151;
        margin: 0;
    }
    
    .emp-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }
    
    .emp-stat-icon.hours {
        background: #eff6ff;
        color: #2563eb;
    }
    
    .emp-stat-icon.stitches {
        background: #ecfdf5;
        color: #059669;
    }
    
    .emp-stat-icon.amount {
        background: #fdf2f8;
        color: #db2777;
    }
    
    .emp-stat-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .emp-stat-row:last-child {
        margin-bottom: 0;
    }
    
    .emp-stat-label {
        font-size: 14px;
        color: #6b7280;
        font-weight: 500;
    }
    
    .emp-stat-val {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
    }
    
    /* Outstanding Full-width Card CSS */
    .emp-outstanding-card {
        border: 1px solid var(--primary-color);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 40px;
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.05);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .emp-outstanding-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .emp-outstanding-val {
        font-size: 30px;
        font-weight: 800;
        margin-top: 6px;
    }
    
    .emp-outstanding-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    /* .emp-outstanding-actions .btn {
        background: #dc2626 !important;
        border-color: #dc2626 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    }
    
    .emp-outstanding-actions .btn:hover {
        background: #b91c1c !important;
        border-color: #b91c1c !important;
    } */
    
    .emp-history-link-wrap {
        border-top: 1px solid rgba(220, 38, 38, 0.1);
        padding-top: 12px;
    }
    
    .emp-history-link {
        font-size: 14px;
        /* color: #b91c1c; */
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s ease;
    }
    
    .emp-history-link:hover {
        /* color: #7f1d1d; */
        text-decoration: underline;
    }
    
    .attendance_header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #374151;
        margin: 0;
    }
    
    /* Responsive Media Queries */
    @media (max-width: 991px) {
        .emp-profile-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }
        
        .emp-profile-right {
            border-left: none;
            border-top: 2px solid #f3f4f6;
            padding-left: 0;
            padding-top: 20px;
            width: 100%;
            text-align: left;
        }
        
        .emp-stats-grid {
            grid-template-columns: 1fr;
        }
        
        .emp-outstanding-main {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }
        
        .emp-outstanding-actions {
            width: 100%;
        }
        
        .emp-outstanding-actions .btn {
            width: 100%;
            text-align: center;
            justify-content: center;
        }
    }
	.emp-outstanding-main {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}
	.emp-outstanding-info h3 {
		font-size: 14px;
		text-transform: uppercase;
		font-weight: 700;
		letter-spacing: 0.5px;
	}
	.payments_table_section h2 {
		font-family: 'Outfit', 'Inter', sans-serif;
	}
    .outstanding-card {
        float: left;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 20px;
        font-size: 15px;
        border: 1px solid var(--primary-color);
        border-radius: 20px;
        padding: 0px 20px;
        margin: 0;
    }