.loginlogo img {
 max-width:200px;
}

.partcitcelogo {
    max-width: 120px;
    margin-left: calc(50% - 60px);
    padding-top: 10px;
}



.client-logo-header {
    float: right !important;
    margin-right: 10px;
 
}


    .client-logo-header img {
        height: 40px;
        border-radius: 4px;
    }

.card.simple-card {
    position: relative;
    padding-top: 0;
    overflow: hidden;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ebeff2;
    background-color: #fff;
    box-shadow: 1px 1px 1px #151f49;
    height: 240px;
    margin-bottom: 15px;
}

    .card.simple-card .avatar {
        position: relative;
        top: 5px;
        margin-bottom: 0px;
    }

        .card.simple-card .avatar img {
            width: 100px;
            height: 100px;
            max-width: 100px;
            max-height: 100px;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            border: 5px solid rgba(255, 255, 255, .5);
        }

.panel {
    padding: 15px;
    margin : 20px;
}

.shiftbtn i {
    font-size: 28px;
    color: #dee2e6;
}

.tile-view-btns {
    float: right;
    margin-right: 70px;
    margin-top: 3px;
}

.card  {
 box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 4px;
}
.logocra {
	margin-right: 10px;
}
.logocra img {
	height: 50px;
	
}


/* new  */


/* Modern Acredai Redesign Styles */
/* Using brand colors: #ee7718 (orange) and #1f1f1f (dark gray) */

/* CSS Variables for consistent theming */
:root {
    --primary-orange: #ee7718;
    --primary-dark: #1f1f1f;
    --secondary-orange: #d66a15;
    --secondary-dark: #2a2a2a;
    --light-orange: #fef4e8;
    --light-dark: #f5f5f5;
    --text-dark: #1f1f1f;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

 

/* Modern Navigation */
.modern-navbar {
   
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

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

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--white);
    color: var(--primary-orange) !important;
    font-weight: 600;
}

.btn-register:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

 

/* Hero Section */
.hero-section {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;

}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 0;
}

/* Practice Selection Section */
.practice-selection {
    padding: 2rem 0 4rem;
		margin-top: 150px!important;
}

.practice-form {
    height: 100%;
}

.practice-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.card-image {
    padding: 2rem 1rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--light-dark) 100%);
    position: relative;
}

.card-image img {
    max-width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.practice-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.practice-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.practice-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-select {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-select:hover::before {
    left: 100%;
}

.btn-select svg {
    transition: var(--transition);
}

.btn-select:hover svg {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .modern-navbar {
        padding: 0.75rem 0;
    }
    
    .brand-logo img {
        max-width: 150px;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0 1rem;
    }
    
    .practice-selection {
        padding: 1rem 0 2rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .practice-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .brand-logo img {
        max-width: 120px;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        margin-top: 90px;
    }
    
    .card-image {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .card-image img {
        max-width: 100px;
        height: 100px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.practice-card {
    animation: fadeInUp 0.6s ease-out;
}

.practice-card:nth-child(2) {
    animation-delay: 0.1s;
}

.practice-card:nth-child(3) {
    animation-delay: 0.2s;
}

.practice-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Focus states for accessibility */
.btn-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Loading state */
.btn-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-select:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-light);
}

/* Print styles */
@media print {
    .modern-navbar,
    .btn-select {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .practice-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Training Dashboard Styles */
.training-area-container {
    padding: 0px;
		margin: 5px 15px;
}

.training-header-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.training-header-card .card-body {
    padding: 1.5rem;
}

.training-dashboard-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.training-dashboard-title i {
    color: var(--primary-orange);
}

/* File Upload Page Title Styles */
.file-upload-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.file-upload-page-title i {
    color: var(--white, #ffffff);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--secondary-orange, #ff8c42) 100%);
    padding: 0.625rem;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.25);
    transition: var(--transition, all 0.3s ease);
}

.file-upload-page-title:hover i {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 119, 24, 0.35);
}

@media (max-width: 768px) {
    .file-upload-page-title {
        font-size: 1.5rem;
    }

    .file-upload-page-title i {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .file-upload-page-title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .file-upload-page-title i {
        font-size: 1.25rem;
        width: 36px;
        height: 36px;
        padding: 0.375rem;
    }
}

.training-filter-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;

}

.training-filter-card .card-body {
    padding: 1.5rem;
}

.training-table-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.training-table-card .card-body {
    padding: 1.5rem;
}

.training-table {
    margin-bottom: 0;
}

.training-table thead th {
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.training-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.training-table tbody tr:hover {
    background-color: var(--light-gray);
    transition: background-color 0.2s ease;
}

.training-status-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.training-status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.training-status-badge i {
    font-size: 0.7rem;
}

/* Completed Status - Green */
.training-status-completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.training-status-completed:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Pending Status - Orange/Yellow */
.training-status-pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.training-status-pending:hover {
    background: linear-gradient(135deg, #e0a800 0%, #dc6e0a 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* In Progress Status - Blue */
.training-status-progress {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.training-status-progress:hover {
    background: linear-gradient(135deg, #0aa2c0 0%, #0a58ca 100%);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.training-status-progress i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.clara-icon-img {
    max-width: 40px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.clara-icon-img:hover {
    transform: scale(1.1);
}

/* Modal Styles */
.training-modal-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.training-modal-header .modal-title {
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.training-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.training-modal-header .btn-close:hover {
    opacity: 1;
}

.training-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

.training-modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border-radius: 0 0 12px 12px;
}

.training-modal-footer .btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.training-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Styles in Modals */
.training-modal-body .form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.training-modal-body .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
}

.training-modal-body .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--light-orange);
    color: var(--primary-dark);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Training Action Dropdown - Theme Style */
.training-action-dropdown {
    position: relative;
}

.btn-action-toggle {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(238, 119, 24, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-action-toggle:hover,
.btn-action-toggle:focus,
.btn-action-toggle.show {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-dark) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.4);
}

.btn-action-toggle i {
    font-size: 0.875rem;
    margin: 0;
}

.training-action-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.training-action-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.training-action-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0.125rem 0.5rem;
    border-radius: 6px;
}

.training-action-item:hover {
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.1) 0%, rgba(31, 31, 31, 0.05) 100%);
    color: var(--primary-orange);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(238, 119, 24, 0.15);
}

.training-action-item:active {
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.15) 0%, rgba(31, 31, 31, 0.1) 100%);
    transform: translateX(2px);
}

.training-action-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--primary-orange);
    transition: all 0.25s ease;
}

.training-action-item:hover .training-action-icon {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.training-action-item span {
    flex: 1;
    font-weight: 500;
}

.training-action-divider {
    margin: 0.5rem 0.75rem;
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Dropdown Animation */
.training-action-menu {
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .training-action-menu {
        min-width: 180px;
    }
    
    .training-action-item {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .btn-action-toggle {
        padding: 0.4rem 0.6rem;
        min-width: 32px;
        height: 32px;
    }
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* Button Styles */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-outline-primary {
    border-width: 1.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-outline-secondary {
    border-width: 1.5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .training-dashboard-title {
        font-size: 1.5rem;
    }
    
    .training-header-card .card-body,
    .training-filter-card .card-body,
    .training-table-card .card-body {
        padding: 1rem;
    }
    
    .training-table {
        font-size: 0.875rem;
    }
    
    .training-table thead th,
    .training-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .training-modal-body {
        padding: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.training-header-card,
.training-filter-card,
.training-table-card {
    animation: fadeIn 0.4s ease-out;
}

.training-filter-card {
    animation-delay: 0.1s;
}

.training-table-card {
    animation-delay: 0.2s;
}

/* Legacy Status Classes (for backward compatibility) */
.instcomplte,
.instpending,
.instprogres {
    display: none; /* Hide old status divs, using badges instead */
}

/* Status Badge Icon Styles */
.training-status-badge i.fa-check-circle {
    color: rgba(255, 255, 255, 0.9);
}

.training-status-pending i.fa-clock {
    color: rgba(33, 37, 41, 0.8);
}

.training-status-progress i.fa-spinner {
    color: rgba(255, 255, 255, 0.9);
}

/* Training Report Page Styles */
.training-report-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.training-report-card .card-body {
    padding: 1.5rem;
}

.training-report-table {
    margin-bottom: 0;
    width: 100%;
}

.training-report-table thead th {
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    background: var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 10;
}

.training-report-course-header {
    min-width: 200px;
    text-align: left;
}

.training-report-user-header {
    min-width: 150px;
    white-space: nowrap;
}

.training-report-user-header .d-flex {
    gap: 0.25rem;
}

.training-report-user-header i {
    font-size: 1.25rem;
    color: var(--primary-orange);
}

.training-report-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.training-report-table tbody tr:hover {
    background-color: var(--light-gray);
    transition: background-color 0.2s ease;
}

.training-report-course-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Not Started Status Badge */
.training-status-not-started {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.training-status-not-started:hover {
    background: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.training-status-not-started i {
    color: #6c757d;
}

/* Completed Badge Link Styling */
.training-status-completed a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.training-status-completed a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.training-status-completed:hover a {
    color: #ffffff;
}

/* Responsive Table Styles */
@media (max-width: 1200px) {
    .training-report-table {
        font-size: 0.875rem;
    }
    
    .training-report-course-header,
    .training-report-user-header {
        min-width: 120px;
    }
    
    .training-report-table thead th,
    .training-report-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .training-report-card .card-body {
        padding: 1rem;
    }
    
    .training-report-table {
        font-size: 0.8125rem;
    }
    
    .training-report-user-header {
        min-width: 100px;
    }
    
    .training-report-user-header span {
        font-size: 0.75rem;
    }
    
    .training-status-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .training-status-badge i {
        font-size: 0.625rem;
    }
}

/* Table Scroll Container */
.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Training View Page Styles */
.training-view-content-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
}

.training-view-content-card .card-body {
    padding: 1.5rem;
}

.training-media-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.training-media-card:fullscreen {
    border-radius: 0;
    background: #000000;
    padding: 1rem;
}

.training-media-card:-webkit-full-screen {
    border-radius: 0;
    background: #000000;
    padding: 1rem;
}

.training-media-card:-moz-full-screen {
    border-radius: 0;
    background: #000000;
    padding: 1rem;
}

.training-media-card:-ms-fullscreen {
    border-radius: 0;
    background: #000000;
    padding: 1rem;
}

.training-media-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.training-media-header span {
    color: #ffffff;
    font-size: 0.9375rem;
}

.training-fullscreen-btn {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.training-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: scale(1.05);
}

.training-fullscreen-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.training-media-card .card-body {
    padding: 1rem;
}

.training-media-card:fullscreen .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.video-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.viv-if-pdf {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.viv-if-pdf iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
}

.tainingimages {
    width: 100%;
    margin-bottom: 1rem;
}

.tainingimages img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.training-chapter-content {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-top: 1rem;
    line-height: 1.6;
}

.training-pdf-navigation {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.training-pdf-nav-btn {
    min-width: 120px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.training-pdf-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.training-navigation-buttons {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.training-nav-btn {
    min-width: 140px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
}

.training-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.training-mark-complete-btn {
    min-width: 160px;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border: none;
    transition: all 0.3s ease;
}

.training-mark-complete-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.4);
}

.training-complete-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
}

.training-complete-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Course Sidebar Styles */
.training-course-sidebar {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.training-course-sidebar .card-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
}

.training-course-sidebar .card-header h5 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.training-collapse-btn {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.training-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.training-course-sidebar .card-body {
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.training-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-course-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.training-course-item:hover {
    background: var(--light-orange);
    border-color: var(--primary-orange);
    transform: translateX(4px);
}

.training-course-item.active {
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.15) 0%, rgba(31, 31, 31, 0.05) 100%);
    border-color: var(--primary-orange);
    border-left: 4px solid var(--primary-orange);
}

.training-checkbox-wrapper {
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
}

.training-chapter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-orange);
}

.training-chapter-name {
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.training-chapter-name:hover {
    color: var(--primary-orange);
}

.training-subcourse-item {
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.training-subcourse-item:hover {
    background: var(--light-gray);
    border-color: var(--border-color);
}

.training-subcourse-item.active {
    background: rgba(238, 119, 24, 0.1);
    border-left: 3px solid var(--primary-orange);
}

.training-subchapter-name {
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.training-subchapter-name:hover {
    color: var(--primary-orange);
}

.training-questionnaire-item {
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.training-questionnaire-item:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    transform: translateX(4px);
}

.training-questionnaire-item.active-questionnaire {
    background: rgba(255, 193, 7, 0.25);
    border-color: #ffc107;
    border-left: 4px solid #ffc107;
}

.training-questionnaire-container {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-top: 1rem;
}

.training-questionnaire-container h4 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.training-questionnaire-container .question-item {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.training-questionnaire-container .question-item h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.training-questionnaire-container .question-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-questionnaire-container .question-item li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-gray);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.training-questionnaire-container .question-item li:hover {
    background: var(--light-orange);
}

.training-questionnaire-container .question-item input[type="radio"],
.training-questionnaire-container .question-item input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .training-course-sidebar {
        position: relative;
        top: 0;
        margin-top: 1.5rem;
    }
    
    .training-course-sidebar .card-body {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .training-view-content-card .card-body {
        padding: 1rem;
    }
    
    .training-navigation-buttons .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    .training-nav-btn,
    .training-mark-complete-btn {
        width: 100%;
        min-width: auto;
    }
    
    .training-pdf-nav-btn {
        min-width: 100px;
        font-size: 0.875rem;
    }
    
    .viv-if-pdf iframe {
        height: 350px;
    }
    
    .video-container video {
        height: auto;
    }
}

/* AI Chat Page Styles */
.training-chat-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
}

.training-chat-card .card-body {
    padding: 2rem;
}

.training-chat-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.training-chat-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.training-chat-box {
    height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--light-gray);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.training-chat-box::-webkit-scrollbar {
    width: 8px;
}

.training-chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.training-chat-box::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.training-chat-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.training-chat-input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.training-chat-input {
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.training-chat-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
}

.training-chat-send-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
}

.training-chat-send-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.4);
    color: #ffffff;
}

.training-chat-send-btn:active {
    transform: translateY(0);
}

/* Chat Message Styles - Updated with smaller icons */
.chat-message {
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Message - Right aligned */
.user-message {
    background: linear-gradient(135deg, rgba(43, 168, 76, 0.12) 0%, rgba(33, 167, 69, 0.08) 100%);
    color: var(--text-dark);
    margin-left: auto;
    flex-direction: row-reverse;
    border: 1px solid rgba(43, 168, 76, 0.2);
    padding-right: 1rem;
}

.user-message .chat-icon {
    background: linear-gradient(135deg, #2ba84c 0%, #218838 100%);
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(43, 168, 76, 0.3);
    margin-left: 0.5rem;
    margin-right: 0;
}

.user-message > div,
.user-message > span {
    flex: 1;
    text-align: right;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

/* Response Message - Left aligned */
.response-message {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    color: var(--text-dark);
    margin-right: auto;
    flex-direction: row;
    border: 1px solid rgba(13, 110, 253, 0.2);
    padding-left: 1rem;
}

.response-message .chat-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 0.5rem;
    margin-left: 0;
}

.response-message > div {
    flex: 1;
    text-align: left;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.response-message > div p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.response-message > div p:last-child {
    margin-bottom: 0;
}

.response-message > div ul,
.response-message > div ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.response-message > div li {
    margin-bottom: 0.25rem;
}

.response-message > div h1,
.response-message > div h2,
.response-message > div h3,
.response-message > div h4,
.response-message > div h5,
.response-message > div h6 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.response-message > div h1:first-child,
.response-message > div h2:first-child,
.response-message > div h3:first-child {
    margin-top: 0;
}

.response-message > div h1 {
    font-size: 1.5rem;
}

.response-message > div h2 {
    font-size: 1.25rem;
}

.response-message > div h3 {
    font-size: 1.125rem;
}

.response-message > div code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.response-message > div pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.response-message > div blockquote {
    border-left: 3px solid var(--primary-orange);
    padding-left: 1rem;
    margin: 0.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

/* Chat Icon Base Styles */
.chat-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-shrink: 0;
}

/* Responsive Styles for Chat */
@media (max-width: 768px) {
    .training-chat-box {
        height: 400px;
        padding: 1rem;
    }
    
    .training-chat-card .card-body {
        padding: 1rem;
    }
    
    .training-chat-header {
        padding: 0.75rem 1rem;
    }
    
    .training-chat-logo {
        height: 35px;
    }
    
    .chat-message {
        max-width: 90%;
        padding: 0.75rem 0.875rem;
        gap: 0.5rem;
    }
    
    .user-message .chat-icon,
    .response-message .chat-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.6875rem;
    }
    
    .training-chat-input {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .training-chat-send-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .user-message > div,
    .user-message > span,
    .response-message > div {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .training-chat-box {
        height: 350px;
        padding: 0.75rem;
    }
    
    .chat-message {
        max-width: 95%;
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    
    .user-message .chat-icon,
    .response-message .chat-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 0.625rem;
    }
    
    .user-message > div,
    .user-message > span,
    .response-message > div {
        font-size: 0.8125rem;
    }
}

/* Legacy Button Classes (for backward compatibility) - Styles handled by new classes */


.Exp-box {
  margin-top: 5px;
  float: left;
  width: 100%;
}

.item-exp {
  border: 1px solid #ddd;
  float: left;
  width: 100%;
  padding: 10px 10px 5px 10px;
  margin-bottom: 5px;
}

.item-exp h3 {
  padding: 0px;
  margin: 0px;
}

.item-exp li {
  list-style: none;
  float: left;
  width: 47%;
}

.exp-btn-gp {
  margin-top: 4px;
}

.re-upload {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #06aaf7;
  border: 2px solid #06aaf7;
  float: left;
  text-align: center;
  font-size: 22px;
  margin-right: 10px;
  padding-left: 8px;
}

.re-delete {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fe0012;
  border: 2px solid #fe0012;
  float: left;
  text-align: center;
  font-size: 22px;
  margin-right: 10px;
}

.re-view {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #444444;
  border: 2px solid #444444;
  float: left;
  text-align: center;
  font-size: 22px;
  margin-right: 10px;
}



.sans-items {
  width: 100%;
  float: left;
  border: 1px solid #e8edef;
  margin-top: 20px;
  border-radius: 4px;
}


.sansmain-title {
  border-bottom: 1px solid #e8edef;
  text-transform: uppercase;
  padding-left: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 40px;
  padding-top: 0px;
}

.fl-rt {
  float: right;
  margin-right: 20px;
}

.sansmain-subtitle {
  font-size: 16px;
  padding: 2px 10px;
}

.sansmain-date {
  font-size: 14px;
  padding: 2px 10px;
}



.sansmain-subtitle::before {
  content: "\f002";
  font-family: FontAwesome;
  padding-right: 8px;
  color: #007cbb;
  font-size: 18px;
}

.sansmain-result::before {
  content: "\f118";
  font-family: FontAwesome;
  padding-right: 8px;
  color: #007cbb;
  font-size: 18px;
}
 


.sansmain-date::before {
  content: "\f073 ";
  font-family: FontAwesome;
  padding-right: 8px;
  color: #007cbb;
  font-size: 18px;
}

.sansmain-footer {
  background: #F4F9FE;
  border-top: 1px solid #e8edef;
  font-size: 14px;
  height: 40px;
  padding: 3px 10px;
  color: #12cc7c;
}

.sansmain-result {
  font-size: 14px;
  padding: 2px 10px;
}


.all-items::after {
  border-top-color: #007cbb;
}

.all-items::after {
  border: solid transparent;
    border-top-width: medium;
    border-top-color: transparent;
    border-right-width: medium;
    border-right-color: transparent;
    border-bottom-width: medium;
    border-bottom-color: transparent;
    border-left-width: medium;
    border-left-color: transparent;
  border-top-color: transparent;
  border-top-width: medium;
  border-right-color: transparent;
  border-right-width: medium;
  border-bottom-color: transparent;
  border-bottom-width: medium;
  border-left-color: transparent;
  border-left-width: medium;
  border-color: rgba(231,88,83,0);
    border-top-color: rgba(231, 88, 83, 0);
  border-top-color: rgba(231, 88, 83, 0);
  border-width: 10px;
  content: " ";
  height: 0;
  left: 25px;
  bottom: -20px;
  margin-left: -10px;
  pointer-events: none;
  position: absolute;
  width: 0;
}


h3.box-title {
  background: #455a64;
  font-size: 16px;
  padding: 12px;
  color: #fff;
}
.all-items {
  background: #007cbb !important;
  float: left;
  width: 100%;
  display: block;
  position: relative;
}

#cred-altert {
  width: 100%;
  float: left;
  margin-top: 10px;
}

.pvdalert-bx {
  float: left;
  width: 100%;
  margin: 10px 0;
  border: 1px solid #e8edef;
  border-radius: 5px;
}

.pvd-title {
  font-size: 18px;
  padding: 10px 10px 5px 10px;
  border-bottom: 1px solid #e8edef;
  color: #007cbb;
  text-transform: uppercase;
  border-left: 5px solid #007cbb;
}

.linetxtbx {
  margin: 7px 0;
  float: left;
  width: 100%;
}

.pvdalert-bx .inline-group {
  padding-top: 10px;
}


.Exp-box {
  margin-top: 5px;
  float: left;
  width: 100%;
}

.item-exp {
  border: 1px solid #ddd;
  float: left;
  width: 100%;
  padding: 10px 10px 5px 10px;
  margin-bottom: 5px;
}

.item-exp li {
  list-style: none;
  float: left;
  width: 47%;
}

.re-upload {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #06aaf7;
  border: 2px solid #06aaf7;
  float: left;
  text-align: center;
  font-size: 22px;
  margin-right: 10px;
  padding-left: 8px;
}

.re-delete {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fe0012;
  border: 2px solid #fe0012;
  float: left;
  text-align: center;
  font-size: 22px;
  margin-right: 10px;
}

.re-view {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #444444;
  border: 2px solid #444444;
  float: left;
  text-align: center;
  font-size: 22px;
  margin-right: 10px;
}


























































/* Category Container Redesign Styles */
/* ============================================
   Category Container Redesign Styles
   Following Bootstrap v5 and smartapp.min.css patterns
   ============================================ */

/* Category Container Main Wrapper */
.categeory-container {
    padding: 0px;
    width: 100%;
    overflow: visible;
    position: relative;
}

/* Forms List Card Container */
.category-forms-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Category Header Section */
.category-header-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-header-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-header-title i {
    font-size: 1.25rem;
}

/* Search Box Container */
.category-search-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.category-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.category-search-box .form-control {
    padding-left: 2.75rem;
    padding-right: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-search-box .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
}

.category-search-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--text-light);
    z-index: 5;
    pointer-events: none;
}

/* Action Buttons Container */
.category-actions-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.category-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-action-btn i {
    font-size: 0.875rem;
}

/* Forms List Container */
.category-forms-list {
    padding: 1rem 1.5rem;
    overflow: visible;
    position: relative;
}

/* Form Item Card */
.category-form-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--light-gray);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 1rem;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.category-form-item > * {
    flex-shrink: 0;
}

.category-form-item > .category-form-content {
    flex-shrink: 1;
    min-width: 0;
}

.category-form-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-light);
    transform: translateX(4px);
    border-color: var(--primary-orange);
    z-index: 10;
}

.category-form-item:has(.dropdown-menu.show),
.category-form-item:has(.dropdown-toggle[aria-expanded="true"]) {
    z-index: 100 !important;
    overflow: visible !important;
}

/* Alternative selector for browsers that don't support :has() */
.category-form-item.active-dropdown {
    z-index: 100 !important;
    overflow: visible !important;
}

.category-form-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: var(--shadow-light);
}

.category-form-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding-right: 1rem;
}

.category-form-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-form-name.gray-clr {
    color: var(--text-light);
    opacity: 0.7;
}

.category-form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* Form Buttons Expand Container */
.form-btns-expan {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.25rem;
    z-index: 1000;
}

.form-btns-expan .dropdown-toggle {
    position: relative;
    z-index: 1001;
}

.form-btns-expan .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem !important;
    z-index: 9999 !important;
    min-width: 200px;
    transform-origin: top right;
}

/* Bootstrap 5 dropdown positioning fix */
.form-btns-expan .dropdown-menu[data-bs-popper] {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem !important;
    transform: none !important;
}

/* Ensure dropdown shows above other items */
.category-form-item:has(.form-btns-expan .dropdown-toggle[aria-expanded="true"]) {
    z-index: 100 !important;
    position: relative;
}

.category-form-item:has(.form-btns-expan .dropdown-menu.show) {
    z-index: 100 !important;
    position: relative;
}

/* Form Action Buttons */
.category-form-btn {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
}

.category-form-btn.view-btn {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: var(--white);
}

.category-form-btn.view-btn:hover {
    background: linear-gradient(135deg, #0aa2c0 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 202, 240, 0.3);
}

.category-form-btn.fill-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: var(--white);
}

.category-form-btn.fill-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 119, 24, 0.3);
}

.category-form-btn.fill-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.category-form-btn.schedule-btn {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.category-form-btn.schedule-btn:hover {
    background: var(--light-orange);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.category-form-btn.schedule-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    border-color: transparent;
}

.category-form-btn.schedule-btn.success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
}

.category-form-btn.more-btn {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
    text-transform: uppercase;
}

.category-form-btn.more-btn:hover {
    background: var(--light-orange);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Date Box */
.category-date-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.category-date-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-date-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Date items in one line - equal space distribution */
.category-date-box .last-sub-date,
.category-date-box .next-due-date,
.category-date-box .category-frequency-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: var(--light-gray);
    border-radius: 6px;
    white-space: nowrap;
    min-height: 28px;
    min-width: 0;
}

/* Ensure flex items always take equal space even when empty */
.category-date-box .last-sub-date,
.category-date-box .next-due-date {
    flex-basis: 0; /* Start from 0 and grow equally */
}

/* Empty items - invisible but still take space */
.category-date-box .last-sub-date:empty,
.category-date-box .next-due-date:empty {
    visibility: hidden;
}

.category-date-box .last-sub-date {
    color: var(--text-light);
}

.category-date-box .next-due-date {
    color: var(--primary-orange);
    font-weight: 500;
}

.category-date-box .next-due-date i.fa-exclamation-triangle {
    color: #dc3545;
}

.category-date-box .next-due-date i.fa-clock {
    color: #ffc107;
}

.category-date-box .next-due-date i.fa-calendar-check {
    color: var(--primary-orange);
}

.category-date-box .last-sub-date i {
    color: var(--text-light);
    font-size: 0.75rem;
}

.category-date-box .category-frequency-badge {
    background: var(--light-orange);
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.8125rem;
}

.category-frequency-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-orange);
    color: var(--primary-orange);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Sub-Category Section */
.category-subcategory-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--light-gray);
    border-radius: var(--border-radius);
    width: 100%;
}

.category-subcategory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.category-subcategory-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.category-subcategory-title i {
    color: var(--primary-orange);
    font-size: 1.125rem;
}

.category-subcategory-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 1rem;
}

.category-subcategory-item:hover {
    background: var(--light-gray);
    border-color: var(--primary-orange);
    transform: translateX(4px);
}

.category-subcategory-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    color: var(--white);
    font-size: 1.125rem;
}

.category-subcategory-name {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding-left: 10px;
}

.category-subcategory-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.category-subcategory-actions .category-action-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(238, 119, 24, 0.2);
}

.category-subcategory-actions .category-action-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 119, 24, 0.3);
}

.category-subcategory-actions .category-action-btn i {
    font-size: 0.875rem;
}

.category-subcategory-actions .category-form-btn {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.category-subcategory-actions .category-form-btn:hover {
    background: var(--light-orange);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Dropdown Menu Styles */
.category-dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    background: var(--white);
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    display: none;
}

.category-dropdown-menu.show,
.category-dropdown-menu[data-bs-popper] {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem !important;
    z-index: 9999 !important;
}

.category-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    width: 100%;
}

.category-dropdown-item:hover {
    background: var(--light-orange);
    color: var(--primary-orange);
    transform: translateX(4px);
}

.category-dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-orange);
}

.category-dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Modal Styles - Bootstrap v5 Compatible */
.category-modal .modal-dialog {
    margin: 1.75rem auto;
}

.category-modal .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

.category-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.category-modal .modal-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.category-modal .btn-close:hover {
    opacity: 1;
}

.category-modal .modal-body {
    padding: 1.5rem;
    background: var(--white);
}

.category-modal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.category-modal .form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.category-modal .form-control,
.category-modal .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

.category-modal .form-control:focus,
.category-modal .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
    outline: 0;
}

.category-modal .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.875rem;
}

.category-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
}

.category-modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.3);
}

.category-modal .btn-secondary,
.category-modal .btn-default {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.category-modal .btn-secondary:hover,
.category-modal .btn-default:hover {
    background: var(--light-gray);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-header-section {
        flex-direction: column;
        align-items: stretch;
    }

    .category-search-container {
        max-width: 100%;
    }

    .category-actions-container {
        flex-direction: column;
        width: 100%;
    }

    .category-action-btn {
        width: 100%;
        justify-content: center;
    }

    .category-form-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .category-form-content {
        width: 100%;
        padding-right: 0;
    }

    .category-form-name {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .category-form-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .category-date-box {
        align-items: flex-start;
        width: 100%;
        margin-top: 0.5rem;
    }

    .category-subcategory-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .category-subcategory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .category-subcategory-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .category-subcategory-actions .category-action-btn {
        width: 100%;
        justify-content: center;
    }

    .category-modal .modal-dialog {
        margin: 0.5rem;
    }

    .category-modal .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .category-header-title {
        font-size: 1.25rem;
    }

    .category-form-name {
        font-size: 0.9375rem;
    }

    .category-form-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Spacer */
.category-spacer {
    height: 1rem;
    clear: both;
}

/* Animation */
@keyframes categoryFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-form-item,
.category-subcategory-item {
    animation: categoryFadeIn 0.3s ease-out;
}

/* Accessibility */
.category-form-btn:focus,
.category-action-btn:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .category-actions-container,
    .category-form-actions,
    .category-subcategory-actions {
        display: none;
    }

    .category-form-item {
        break-inside: avoid;
    }
}

/* ============================================
   File Upload Form Styles (NW-formupload)
   ============================================ */

/* File Upload Container */
.NW-formupload {
    margin-top: 1.5rem;
}

.file-upload-card {
    border: none;
    border-radius: 12px;
    background: var(--white, #ffffff);
    transition: var(--transition, all 0.3s ease);
}

.file-upload-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Form Labels */
.file-upload-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.file-upload-label i {
    color: var(--primary-orange, #ee7718);
    font-size: 0.875rem;
}

/* Form Inputs */
.file-upload-input {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition, all 0.3s ease);
    background-color: var(--white, #ffffff);
}

.file-upload-input:focus {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
    outline: 0;
}

.file-upload-input::placeholder {
    color: var(--text-light, #6c757d);
    opacity: 0.6;
}

/* File Upload Box */
.fileuploadbox {
    position: relative;
    margin-top: 0.5rem;
}

.fileuploadbox .inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.fileuploadbox .inputfile + .file-upload-label-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 12px;
    background: var(--light-gray, #f8f9fa);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    text-align: center;
    min-height: 140px;
    flex-direction: column;
}

.fileuploadbox .inputfile + .file-upload-label-custom:hover {
    border-color: var(--primary-orange, #ee7718);
    background: rgba(238, 119, 24, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.1);
}

.fileuploadbox .inputfile:focus + .file-upload-label-custom {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
}

.fileuploadbox .inputfile:disabled + .file-upload-label-custom {
    opacity: 0.6;
    cursor: not-allowed;
}

/* File Upload Icon */
.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-orange, #ee7718);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-icon i {
    font-size: 3rem;
}

/* File Upload Text */
.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-upload-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
}

.file-upload-text small {
    font-size: 0.8125rem;
    color: var(--text-light, #6c757d);
    font-weight: 400;
}

/* File Name Display */
.file-name-display {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--light-orange, #fff4e6);
    border: 1px solid rgba(238, 119, 24, 0.2);
    border-radius: 8px;
    color: var(--primary-orange, #ee7718);
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.file-name-display.file-selected {
    display: flex;
}

.file-name-display i {
    font-size: 1rem;
}

/* Submit Button */
.file-upload-submit-btn {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--secondary-orange, #ff8c42) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 2px 8px rgba(238, 119, 24, 0.2);
}

.file-upload-submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange, #ff8c42) 0%, var(--primary-orange, #ee7718) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.3);
}

.file-upload-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(238, 119, 24, 0.2);
}

.file-upload-submit-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.25);
}

.file-upload-submit-btn i {
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .file-upload-card .card-body {
        padding: 1.5rem;
    }

    .fileuploadbox .inputfile + .file-upload-label-custom {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }

    .file-upload-icon {
        font-size: 2.5rem;
    }

    .file-upload-icon i {
        font-size: 2.5rem;
    }

    .file-upload-submit-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .file-upload-label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .NW-formupload {
        margin-top: 1rem;
    }

    .file-upload-card .card-body {
        padding: 1rem;
    }

    .fileuploadbox .inputfile + .file-upload-label-custom {
        padding: 1.25rem 0.75rem;
        min-height: 100px;
    }

    .file-upload-icon {
        font-size: 2rem;
    }

    .file-upload-icon i {
        font-size: 2rem;
    }

    .file-upload-text strong {
        font-size: 0.9375rem;
    }

    .file-upload-text small {
        font-size: 0.75rem;
    }
}

/* ============================================
   Create Form Styles (NW-CreateForm)
   ============================================ */

/* Create Form Container */
.NW-CreateForm {
    margin-top: 1.5rem;
}

.create-form-card {
    border: none;
    border-radius: 12px;
    background: var(--white, #ffffff);
    transition: var(--transition, all 0.3s ease);
}

.create-form-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.create-form-card .card-body {
    padding: 2rem;
}

/* Form Labels */
.create-form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.create-form-label i {
    color: var(--primary-orange, #ee7718);
    font-size: 0.875rem;
}

/* Form Inputs */
.create-form-input,
.create-form-select {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition, all 0.3s ease);
    background-color: var(--white, #ffffff);
}

.create-form-input:focus,
.create-form-select:focus {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
    outline: 0;
}

.create-form-input::placeholder {
    color: var(--text-light, #6c757d);
    opacity: 0.6;
}

/* CKEditor Container */
.ck-new-custom-box {
    width: 100% !important;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white, #ffffff);
}

.ck-new-custom-box .cke {
    border: none !important;
    border-radius: 8px;
}

.ck-new-custom-box textarea {
    min-height: 400px;
    border: none;
    padding: 1rem;
}

/* Tags Container */
.create-form-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-gray, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--border-color, #dee2e6);
}

/* Tag Buttons */
.create-form-tag-btn {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    color: var(--text-dark, #212529);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition, all 0.3s ease);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

.create-form-tag-btn:hover {
    background: var(--primary-orange, #ee7718);
    border-color: var(--primary-orange, #ee7718);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(238, 119, 24, 0.25);
}

.create-form-tag-btn:active {
    transform: translateY(0);
}

.create-form-tag-btn i {
    font-size: 0.8125rem;
}

/* Submit Buttons */
.create-form-submit-btn {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--secondary-orange, #ff8c42) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 2px 8px rgba(238, 119, 24, 0.2);
    color: var(--white, #ffffff);
}

.create-form-submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange, #ff8c42) 0%, var(--primary-orange, #ee7718) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.3);
    color: var(--white, #ffffff);
}

.create-form-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(238, 119, 24, 0.2);
}

.create-form-publish-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    color: var(--white, #ffffff);
}

.create-form-publish-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: var(--white, #ffffff);
}

.create-form-publish-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.create-form-submit-btn i,
.create-form-publish-btn i {
    font-size: 0.875rem;
}

/* Modal Styles */
.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog > div {
    width: 90%;
    max-width: 500px;
    position: relative;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    background: var(--white, #ffffff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.create-form-modal .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 500px;
}

.create-form-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.create-form-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--secondary-orange, #ff8c42) 100%);
    color: var(--white, #ffffff);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.create-form-modal .modal-title {
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--white, #ffffff);
}

.create-form-modal .modal-title i {
    font-size: 1rem;
}

.create-form-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white, #ffffff);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition, all 0.3s ease);
}

.create-form-modal .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.create-form-modal .modal-body {
    padding: 1.5rem;
}

.create-form-modal .modal-footer {
    border-top: 1px solid var(--border-color, #dee2e6);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.create-form-modal .form-label {
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
}

.create-form-modal .form-control {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 6px;
    padding: 0.625rem 1rem;
}

.create-form-modal .form-control:focus {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .create-form-card .card-body {
        padding: 1.5rem;
    }

    .create-form-tags-container {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .create-form-tag-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    .create-form-submit-btn,
    .create-form-publish-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .ck-new-custom-box textarea {
        min-height: 300px;
    }

    .modalDialog > div {
        width: 95%;
        margin: 5% auto;
    }
}

@media (max-width: 576px) {
    .NW-CreateForm {
        margin-top: 1rem;
    }

    .create-form-card .card-body {
        padding: 1rem;
    }

    .create-form-label {
        font-size: 0.8125rem;
    }

    .create-form-tags-container {
        gap: 0.375rem;
        padding: 0.5rem;
    }

    .create-form-tag-btn {
        padding: 0.35rem 0.625rem;
        font-size: 0.75rem;
    }

    .create-form-tag-btn i {
        font-size: 0.75rem;
    }

    .ck-new-custom-box textarea {
        min-height: 250px;
    }

    .modalDialog > div {
        width: 98%;
        margin: 2% auto;
    }

    .create-form-modal .modal-header,
    .create-form-modal .modal-body,
    .create-form-modal .modal-footer {
        padding: 1rem;
    }
}

/* ============================================
   Design Form Styles (NW-DS-forms)
   Following Bootstrap v5 and smartapp.min.css patterns
   ============================================ */

/* Main Container */
.NW-DS-forms {
    padding: 0;
    width: 100%;
    position: relative;
}

/* Header Card */
.ds-form-header-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.ds-form-header-card .card-body {
    padding: 1.5rem;
}

/* Main Form Card */
.ds-form-main-card {
    background: var(--white, #ffffff);
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border-color, #e9ecef);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ds-form-main-title {
    border-left: 4px solid var(--primary-orange, #ee7718);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 3px -3px rgba(238, 119, 24, 0.3);
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark, #212529);
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.05) 0%, rgba(31, 31, 31, 0.02) 100%);
    margin: 0;
}

.ds-form-main-body {
    padding: 1.5rem;
    width: 100%;
}

/* Form Row Alignment */
.ds-form-main-body .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.ds-form-main-body .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Ensure proper alignment for form groups */
.ds-form-main-body .col-md-2,
.ds-form-main-body .col-md-3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Checkbox Group Alignment */
.ds-form-main-body .datbaflowchkbox,
.ds-form-main-body .ds-form-checkbox-group {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 38px;
    padding-top: 0.5rem;
}

.ds-form-main-body .form-check {
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
}

.ds-form-main-body .form-check-input {
    margin-right: 0.5rem;
    margin-top: 0;
    flex-shrink: 0;
}

.ds-form-main-body .form-check-label {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

/* Button Container Alignment */
.ds-form-main-body .d-flex.flex-column {
    gap: 0.75rem;
    width: 100%;
}

.ds-form-main-body .d-flex.flex-column .ds-form-action-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Label Alignment */
.ds-form-main-body .ds-form-label {
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

/* Input/Select Alignment */
.ds-form-main-body .ds-form-input,
.ds-form-main-body .ds-form-select {
    width: 100%;
    display: block;
}

/* Ensure buttons are visible and properly aligned */
.ds-form-main-body input[type="button"].ds-form-action-btn,
.ds-form-main-body button.ds-form-action-btn {
    min-height: 38px;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    width: 100%;
    margin: 0;
    border: none;
    cursor: pointer;
}

/* Fix button visibility issues */
.ds-form-main-body .btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

.ds-form-main-body .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: var(--white, #ffffff) !important;
    border: none !important;
}

.ds-form-main-body .btn-primary {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--secondary-orange, #ff8c42) 100%) !important;
    color: var(--white, #ffffff) !important;
    border: none !important;
}

.ds-form-main-body .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: var(--white, #ffffff) !important;
    border: none !important;
}

/* Ensure proper vertical alignment for form rows */
.ds-form-main-body .row.align-items-end {
    align-items: flex-end;
}

.ds-form-main-body .row.align-items-end > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Fix checkbox alignment */
.ds-form-main-body .datbaflowchkbox {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 38px;
    padding-top: 0.5rem;
}

.ds-form-main-body .datbaflowchkbox .form-check {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Ensure inputs and selects are properly aligned */
.ds-form-main-body .form-control,
.ds-form-main-body .form-select {
    width: 100%;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix gap utilities */
.ds-form-main-body .gap-2 {
    gap: 0.5rem !important;
}

.ds-form-main-body .gap-3 {
    gap: 1rem !important;
}

/* Form Labels */
.ds-form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
    display: block;
}

/* Form Inputs */
.ds-form-input,
.ds-form-select {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition, all 0.3s ease);
    background-color: var(--white, #ffffff);
}

.ds-form-input:focus,
.ds-form-select:focus {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
    outline: 0;
}

.ds-form-input::placeholder {
    color: var(--text-light, #6c757d);
    opacity: 0.6;
}

/* Checkbox Groups */
.ds-form-checkbox-group {
    margin-bottom: 0.75rem;
}

.ds-form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-orange, #ee7718);
}

.ds-form-checkbox-label {
    font-size: 0.875rem;
    color: var(--text-dark, #212529);
    cursor: pointer;
    user-select: none;
}

/* Action Buttons */
.ds-form-action-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition, all 0.3s ease);
    border: none;
    width: 100%;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    line-height: 1.5;
}

/* Button Color Styles - Ensure visibility */
.ds-form-action-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white, #ffffff);
    border: none;
}

.ds-form-action-btn.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ds-form-action-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--secondary-orange, #ff8c42) 100%);
    color: var(--white, #ffffff);
    border: none;
}

.ds-form-action-btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-orange, #ff8c42) 0%, var(--primary-dark, #1f1f1f) 100%);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.4);
}

.ds-form-action-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white, #ffffff);
    border: none;
}

.ds-form-action-btn.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.ds-form-action-btn.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: var(--white, #ffffff);
    border: none;
}

.ds-form-action-btn.btn-info:hover {
    background: linear-gradient(135deg, #0aa2c0 0%, #0a58ca 100%);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.ds-form-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ds-form-action-btn:focus {
    outline: 2px solid var(--primary-orange, #ee7718);
    outline-offset: 2px;
}

/* Advanced Options Section */
.ds-form-advanced-options {
    padding: 1.5rem;
    background: var(--light-gray, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e9ecef);
    margin-top: 1rem;
}

.ds-form-alert-section {
    width: 100%;
}

.ds-form-alert-details {
    padding: 1rem;
    background: var(--white, #ffffff);
    border-radius: 8px;
    border: 1px solid var(--border-color, #dee2e6);
    margin-top: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ds-form-alert-details .form-select {
    width: 100%;
}

.ds-form-alert-details .row {
    margin-left: 0;
    margin-right: 0;
}

.ds-form-alert-details {
    padding: 1rem;
    background: var(--white, #ffffff);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e9ecef);
}

/* Designer Card */
.ds-form-designer-card {
    background: var(--white, #ffffff);
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border-color, #e9ecef);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Toolbar Styles */
.ds-form-toolbar {
    background: var(--white, #ffffff);
    border-radius: 10px;
    border: 1px solid var(--border-color, #e9ecef);
    box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.08));
    padding: 0;
    overflow: hidden;
}

.ds-form-toolbar-header {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--primary-dark, #1f1f1f) 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.ds-form-toolbar-title {
    color: var(--white, #ffffff);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-form-toolbar-pin {
    display: flex;
    align-items: center;
}

.ds-form-switch {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--white, #ffffff);
}

.ds-form-toolbar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    transition: var(--transition, all 0.3s ease);
    cursor: pointer;
}

.ds-form-toolbar-item:last-child {
    border-bottom: none;
}

.ds-form-toolbar-item:hover {
    background: var(--light-orange, #fff4e6);
    transform: translateX(4px);
}

.ds-form-toolbar-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.ds-form-toolbar-icon {
    font-size: 1.25rem;
    color: var(--primary-orange, #ee7718);
    width: 24px;
    text-align: center;
}

.ds-form-toolbar-item-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark, #212529);
}

.ds-form-toolbar-add-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--light-gray, #f8f9fa);
    color: var(--primary-orange, #ee7718);
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
    font-size: 1.125rem;
}

.ds-form-toolbar-add-btn:hover {
    background: var(--primary-orange, #ee7718);
    color: var(--white, #ffffff);
    transform: scale(1.1);
}

/* Designer Window Container */
.ds-form-designer-window-container {
    background: var(--white, #ffffff);
    border-radius: 12px;
    box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border-color, #e9ecef);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

/* Designer Window Header */
.ds-form-designer-window-header {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--primary-dark, #1f1f1f) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ds-form-designer-window-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.ds-form-designer-window-icon {
    font-size: 1.5rem;
    color: var(--white, #ffffff);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
}

.ds-form-designer-window-title {
    color: var(--white, #ffffff);
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.ds-form-designer-window-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ds-form-designer-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white, #ffffff);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    padding: 0;
    font-size: 1rem;
}

.ds-form-designer-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.ds-form-designer-action-btn i {
    font-size: 1rem;
}

/* Designer Window Body */
.ds-form-designer-window-body {
    flex: 1;
    padding: 1.5rem;
    background: var(--light-gray, #f8f9fa);
    overflow-y: auto;
    min-height: 500px;
    position: relative;
}

.ds-form-designer-canvas {
    min-height: 500px;
    padding: 1.5rem;
    background: var(--white, #ffffff);
    border-radius: 10px;
    border: 2px dashed var(--border-color, #dee2e6);
    position: relative;
    transition: var(--transition, all 0.3s ease);
}

.ds-form-designer-canvas:hover {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.1);
}

.ds-form-designer-canvas:has(.design_cover) {
    border-style: solid;
    border-color: var(--border-color, #dee2e6);
    background: var(--white, #ffffff);
}

/* Empty State */
.ds-form-designer-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 400px;
}

.ds-form-designer-canvas:has(.design_cover) .ds-form-designer-empty-state {
    display: none;
}

.ds-form-designer-empty-icon {
    font-size: 4rem;
    color: var(--text-light, #6c757d);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.ds-form-designer-empty-text {
    font-size: 1rem;
    color: var(--text-light, #6c757d);
    margin: 0;
    font-weight: 500;
}

/* Design Cover Items - Redesigned */
.design_cover {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition, all 0.3s ease);
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: move;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 60px;
}

.design_cover:hover {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 4px 16px rgba(238, 119, 24, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.02) 0%, rgba(31, 31, 31, 0.01) 100%);
}

.design_cover:active {
    cursor: grabbing;
    opacity: 0.9;
    transform: translateY(0);
}

.design_cover.dc_active {
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.1) 0%, rgba(31, 31, 31, 0.05) 100%);
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 4px 16px rgba(238, 119, 24, 0.25);
}

/* Box Layout - Using Flexbox for better alignment (matching Old_Style.css widths) */
.design_cover .box1 {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 200px;
    display: flex;
    align-items: center;
    padding-right: 1rem;
    overflow: hidden;
    width: 30%;
}

.design_cover .box2 {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 0;
    display: flex;
    align-items: center;
    padding-right: 1rem;
    overflow: hidden;
    width: 45%;
}

.design_cover .box1_2_combaine {
    flex: 0 0 75%;
    max-width: 75%;
    display: flex;
    align-items: center;
    padding-right: 1rem;
    overflow: hidden;
    width: 75%;
}

.design_cover .box3,
.design_cover .box4,
.design_cover .box5,
.design_cover .box6,
.design_cover .box7 {
    flex: 0 0 4%;
    max-width: 4%;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    width: 4%;
}

/* Ensure proper spacing between boxes */
.design_cover .box1 + .box2 {
    margin-left: 0;
}

.design_cover .box2 + .box3,
.design_cover .box3 + .box4,
.design_cover .box4 + .box5,
.design_cover .box5 + .box6,
.design_cover .box6 + .box7 {
    margin-left: 0;
}

/* Action Buttons in Boxes */
.design_cover .box3 a,
.design_cover .box4 a,
.design_cover .box5 a,
.design_cover .box6 a,
.design_cover .box7 a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
    background: var(--light-gray, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
}

.design_cover .box3 a {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.05);
}

.design_cover .box3 a:hover {
    background: #dc3545;
    color: var(--white, #ffffff);
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.design_cover .box4 a {
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
    background: rgba(40, 167, 69, 0.05);
}

.design_cover .box4 a:hover {
    background: #28a745;
    color: var(--white, #ffffff);
    border-color: #28a745;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.design_cover .box5 a,
.design_cover .box6 a {
    color: var(--primary-orange, #ee7718);
    border-color: rgba(238, 119, 24, 0.3);
    background: rgba(238, 119, 24, 0.05);
}

.design_cover .box5 a:hover,
.design_cover .box6 a:hover {
    background: var(--primary-orange, #ee7718);
    color: var(--white, #ffffff);
    border-color: var(--primary-orange, #ee7718);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(238, 119, 24, 0.3);
}

.design_cover .box7 a {
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.05);
}

.design_cover .box7 a:hover {
    background: #0d6efd;
    color: var(--white, #ffffff);
    border-color: #0d6efd;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.design_cover .box3 a i,
.design_cover .box4 a i,
.design_cover .box5 a i,
.design_cover .box6 a i,
.design_cover .box7 a i {
    font-size: 0.875rem;
    margin: 0;
}

/* Label and Control Styling */
.design_cover .box1 label,
.design_cover .box1_2_combaine label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark, #212529);
    margin: 0;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.design_cover .box2 input,
.design_cover .box2 select,
.design_cover .box2 textarea {
    width: 100%;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition, all 0.3s ease);
}

.design_cover .box2 input:focus,
.design_cover .box2 select:focus,
.design_cover .box2 textarea:focus {
    border-color: var(--primary-orange, #ee7718);
    box-shadow: 0 0 0 0.15rem rgba(238, 119, 24, 0.1);
    outline: 0;
}

/* Dual List Box Layout */
.dual-list-bx .design_cover .box1 {
    flex: 0 0 50%;
    max-width: 50%;
}

.dual-list-bx .design_cover .box2 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .design_cover {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .design_cover .box1 {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: auto;
    }

    .design_cover .box2 {
        flex: 0 0 calc(100% - 200px);
        max-width: calc(100% - 200px);
    }

    .design_cover .box3,
    .design_cover .box4,
    .design_cover .box5,
    .design_cover .box6,
    .design_cover .box7 {
        flex: 0 0 auto;
        max-width: none;
        min-width: 36px;
    }
}

@media (max-width: 768px) {
    .design_cover {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .design_cover .box1,
    .design_cover .box2,
    .design_cover .box1_2_combaine {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: auto;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }

    .design_cover .box3,
    .design_cover .box4,
    .design_cover .box5,
    .design_cover .box6,
    .design_cover .box7 {
        flex: 1;
        max-width: none;
        min-width: auto;
    }

    .design_cover .box3 a,
    .design_cover .box4 a,
    .design_cover .box5 a,
    .design_cover .box6 a,
    .design_cover .box7 a {
        width: 100%;
    }
}

.design_cover-placeholder {
    background: var(--light-orange, #fff4e6);
    border: 2px dashed var(--primary-orange, #ee7718);
    border-radius: 8px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.design_cover-placeholder-animator {
    height: 0;
    transition: height 0.3s ease;
}

/* Ensure all items inside design_cover are properly aligned */
.design_cover > * {
    display: flex;
    align-items: center;
}

.design_cover .box1,
.design_cover .box2,
.design_cover .box1_2_combaine {
    align-items: center;
    justify-content: flex-start;
}

/* Fix for label alignment */
.design_cover .box1 label,
.design_cover .box1_2_combaine label {
    line-height: 1.5;
    display: flex;
    align-items: center;
    min-height: 38px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Control alignment - ensure all controls take full width */
.design_cover .box2 > *,
.design_cover .box2 input,
.design_cover .box2 select,
.design_cover .box2 textarea,
.design_cover .box2 button {
    width: 100%;
    max-width: 100%;
}

/* Action buttons container alignment */
.design_cover .box3,
.design_cover .box4,
.design_cover .box5,
.design_cover .box6,
.design_cover .box7 {
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon alignment in design_cover */
.design_cover i {
    font-size: 0.875rem;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hidden elements alignment */
.design_cover hidden {
    display: none;
}

/* Row variations */
.design_cover.row_repeater,
.design_cover.row_approval,
.design_cover.row_section {
    border-left: 4px solid var(--primary-orange, #ee7718);
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.05) 0%, rgba(31, 31, 31, 0.02) 100%);
    padding-left: 1.5rem;
}

.design_cover.row_repeater:hover,
.design_cover.row_approval:hover,
.design_cover.row_section:hover {
    border-left-width: 6px;
    background: linear-gradient(135deg, rgba(238, 119, 24, 0.1) 0%, rgba(31, 31, 31, 0.05) 100%);
}

/* Ensure proper text alignment in boxes */
.design_cover .box1,
.design_cover .box2,
.design_cover .box1_2_combaine {
    text-align: left;
}

.design_cover .box3,
.design_cover .box4,
.design_cover .box5,
.design_cover .box6,
.design_cover .box7 {
    text-align: center;
}

/* Fix for nested elements */
.design_cover .box1 > *,
.design_cover .box2 > * {
    width: 100%;
}

/* Radio and checkbox groups alignment */
.design_cover .box2 input[type="radio"],
.design_cover .box2 input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.design_cover .box2 label {
    width: auto;
    margin-right: 1rem;
    font-weight: normal;
}

/* Ensure buttons don't break layout */
.design_cover .box3 a,
.design_cover .box4 a,
.design_cover .box5 a,
.design_cover .box6 a,
.design_cover .box7 a {
    flex-shrink: 0;
}

/* Scrollbar styling for designer window */
.ds-form-designer-window-body::-webkit-scrollbar {
    width: 8px;
}

.ds-form-designer-window-body::-webkit-scrollbar-track {
    background: var(--light-gray, #f8f9fa);
    border-radius: 4px;
}

.ds-form-designer-window-body::-webkit-scrollbar-thumb {
    background: var(--primary-orange, #ee7718);
    border-radius: 4px;
}

.ds-form-designer-window-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange, #d66a15);
}

/* Modal Styles */
.ds-form-modal {
    z-index: 1055;
}

.ds-form-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy, 0 8px 30px rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

.ds-form-modal-actions {
    padding: 1rem 1.5rem;
    background: var(--light-gray, #f8f9fa);
    border-top: 1px solid var(--border-color, #e9ecef);
}

.ds-form-property-modal {
    z-index: 1060;
}

.ds-form-property-modal .modal-dialog {
    max-width: 800px;
    width: 95%;
}

.ds-form-property-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy, 0 8px 30px rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

.ds-form-property-modal-header {
    background: linear-gradient(135deg, var(--primary-orange, #ee7718) 0%, var(--primary-dark, #1f1f1f) 100%);
    color: var(--white, #ffffff);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.ds-form-property-modal-title {
    color: var(--white, #ffffff);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.ds-form-property-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
    padding: 0.5rem;
}

.ds-form-property-modal-header .btn-close:hover {
    opacity: 1;
}

.ds-form-property-modal-body {
    padding: 1.5rem;
    background: var(--white, #ffffff);
    max-height: 70vh;
    overflow-y: auto;
}

/* Checkbox and Label Container Styles */
.ds-form-property-modal-body .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

 

.ds-pop-chk-bx {
    width: 30px;
    display: block;
    float: Left;
	height: 50px;
    line-height: 50px;
}

.ds-lbl-chk-bx {
 
 
    width:calc(100% - 40px);
    display: block;
    float: Left;
    line-height: 50px;
	height: 50px;
    line-height: 50px;	
}

/* When both classes are in the same row, ensure inline display */
.ds-form-property-modal-body .row > .ds-pop-chk-bx,
.ds-form-property-modal-body .row > .ds-lbl-chk-bx {
    display: inline-flex;
    vertical-align: middle;
}

.ds-lbl-chk-bx label {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark, #212529);
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
 
}

.ds-form-property-modal-footer {
    border-top: 1px solid var(--border-color, #e9ecef);
    padding: 1rem 1.5rem;
    background: var(--light-gray, #f8f9fa);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.ds-form-btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition, all 0.3s ease);
    font-size: 0.875rem;
    border: none;
}

.ds-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fixed Toolbar */
.fix-controller-bar {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-medium, 0 4px 20px rgba(0, 0, 0, 0.15));
}

/* Responsive Design */
@media (max-width: 768px) {
    .ds-form-main-body {
        padding: 1rem;
    }

    .ds-form-designer-card {
        padding: 1rem;
    }

    .ds-form-toolbar-header {
        padding: 0.875rem 1rem;
    }

    .ds-form-toolbar-item {
        padding: 0.75rem 1rem;
    }

    .ds-form-designer-window {
        padding: 1rem;
        min-height: 400px;
    }

    .ds-form-property-modal-body {
        padding: 1rem;
        max-height: 60vh;
    }

    .fix-controller-bar {
        position: relative;
        top: 0;
        left: 0;
        max-height: none;
    }
}

@media (max-width: 576px) {
    .ds-form-main-title {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .ds-form-label {
        font-size: 0.8125rem;
    }

    .ds-form-input,
    .ds-form-select {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }

    .ds-form-action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .ds-form-toolbar-title,
    .ds-form-designer-window-title {
        font-size: 0.875rem;
    }
}

/* Animation */
@keyframes dsFormFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ds-form-main-card,
.ds-form-designer-card {
    animation: dsFormFadeIn 0.4s ease-out;
}

/* Gap utility for Bootstrap 5 */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

/* Hide default checkbox */
.regular-checkbox {
    display: none;
}

/* Hide default checkbox */
.regular-checkbox {
    display: none;
}
/* Custom checkbox style */
.regular-checkbox + label {
    width: 25px;
    height: 25px;
    display: inline-block;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
	margin-top: 12px;
}

/* Checked state */
.regular-checkbox:checked + label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 8px;
    height: 14px;
    border: solid #008000; /* tick color */
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}


.filed-label {
  margin-top: 30px;
  font-weight: 500;
  color: var(--text-dark, #212529);
  font-size: 0.875rem;
  white-space: normal;
  word-wrap: break-word;
  width: 100%;
}

/* Filde Data Container - Flex Layout for Equal Width Distribution */
/* Referencing Bootstrap form-check styles from smartapp.min.css */
.filde_data {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* Ck-box-cover inside filde_data - Equal Width Distribution */
.filde_data .ck-box-cover {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0;
    padding-top: 0;
    position: relative;
}

/* Inline-ck-box inside filde_data - Display Radio and Label on Same Line */
.filde_data .ck-box-cover .inline-ck-box {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    padding-right: 0;
    float: none;
    width: auto;
    position: relative;
    order: 1;
    flex-shrink: 0;
}

/* Bigger Radio Buttons - Override existing styles, make them 35px x 35px */
/* Referencing Bootstrap form-check-input styles from smartapp.min.css */
.filde_data .ck-box-cover .regular-radio.big-radio + label {
    -webkit-appearance: none;
    background-color: #fafafa;
    border: 2px solid #cacece;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 0;
    width: 30px;
    height: 30px;
    min-width: 35px;
    min-height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Checked Radio Button Indicator - Bigger size */
.filde_data .ck-box-cover :checked + label::after {
    content: ' ';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0d6dba;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.3);
}

.filde_data .ck-box-cover .regular-radio.big-radio:checked + label {
    background-color: #e9ecee;
    border: 2px solid #adb8c0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1), inset 0px 0px 10px rgba(0,0,0,0.1);
}

.filde_data .ck-box-cover .regular-radio.big-radio + label:active,
.filde_data .ck-box-cover .regular-radio.big-radio:checked + label:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}

/* Text Label Display on Same Line with Radio Button */
/* Label that is a direct child of ck-box-cover (sibling of inline-ck-box) */
.filde_data .ck-box-cover > label:not(.regular-radio + label) {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark, #212529);
    cursor: pointer;
    white-space: nowrap;
    order: 2;
    flex-shrink: 0;
}

/* Ensure Radio Input is Hidden but Accessible */
.filde_data .ck-box-cover .regular-radio {
    display: none;
}

/* Focus State - Referencing Bootstrap form-check-input:focus from smartapp.min.css */
.filde_data .ck-box-cover .regular-radio.big-radio:focus + label {
    border-color: #86b7fe;
    outline: 0;
    -webkit-box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25), 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25), 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
}

/* Active State - Referencing Bootstrap form-check-input:active from smartapp.min.css */
.filde_data .ck-box-cover .regular-radio.big-radio:active + label {
    -webkit-filter: brightness(90%);
    filter: brightness(90%);
}

/* Icon Buttons for Nw-Frmbtins - Following smartapp.min.css button styles */
.Nw-Frmbtins .nw-frm-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Icon styling inside buttons */
.Nw-Frmbtins .nw-frm-icon-btn i {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
}

/* Multiple icons spacing (for Save & Publish button) */
.Nw-Frmbtins .nw-frm-icon-btn i + i {
    margin-left: 0.25rem;
}

/* Tooltip on hover - Following Bootstrap tooltip patterns */
.Nw-Frmbtins .nw-frm-icon-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: #212529;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
    z-index: 1000;
}

/* Tooltip arrow */
.Nw-Frmbtins .nw-frm-icon-btn::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.25rem;
    border: 4px solid transparent;
    border-top-color: #212529;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
    z-index: 1001;
}

/* Show tooltip on hover */
.Nw-Frmbtins .nw-frm-icon-btn:hover::after,
.Nw-Frmbtins .nw-frm-icon-btn:hover::before {
    opacity: 1;
}

/* Button Success (Save buttons) - Following smartapp.min.css .btn-success */
.Nw-Frmbtins .nw-frm-icon-btn.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-success:hover {
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-success:focus-visible {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(60, 153, 110, 0.5);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-success:active {
    color: var(--bs-btn-hover-color);
    background-color: #146c43;
    border-color: #13653f;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Button Primary (Plus button) - Following smartapp.min.css .btn-primary */
.Nw-Frmbtins .nw-frm-icon-btn.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-primary:hover {
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-primary:focus-visible {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-primary:active {
    color: var(--bs-btn-hover-color);
    background-color: #0a58ca;
    border-color: #0a53be;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Button Danger (Close button) - Following smartapp.min.css .btn-danger */
.Nw-Frmbtins .nw-frm-icon-btn.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #dc3545;
    --bs-btn-border-color: #dc3545;
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-danger:hover {
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #bb2d3b;
    --bs-btn-hover-border-color: #b02a37;
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-danger:focus-visible {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(225, 83, 97, 0.5);
}

.Nw-Frmbtins .nw-frm-icon-btn.btn-danger:active {
    color: var(--bs-btn-hover-color);
    background-color: #b02a37;
    border-color: #a52834;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Ensure icons are white in all button states */
.Nw-Frmbtins .nw-frm-icon-btn i {
    color: inherit;
}

.no-border {
	border: none!important;
}

/* ============================================
   nw-Viewbar Modern Redesign Styles
   Following smartapp.min.css Bootstrap v5 patterns
   ============================================ */

/* Main Viewbar Container */
.nw-Viewbar {
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background-color: var(--bs-body-bg, #fff);
}

.nw-Viewbar .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-heading-color, #212529);
    margin-bottom: 0;
}

.nw-Viewbar .title-table {
    margin-bottom: 0;
}

/* Action Buttons Container */
.nw-Viewbar-actions {
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Individual Action Buttons */
.nw-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--bs-white, #fff);
    color: var(--bs-body-color, #212529);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nw-action-btn:hover {
    background-color: var(--bs-primary, #0d6efd);
    color: var(--bs-white, #fff);
    border-color: var(--bs-primary, #0d6efd);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
    text-decoration: none;
}

.nw-action-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--bs-primary, #0d6efd);
}

.nw-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nw-action-btn i {
    font-size: 1.125rem;
    line-height: 1;
}

/* Align delete button with file input in attach popup */
.attach-file-item .col-md-2 .nw-action-btn,
.form-file-ugup.fileUp .col-md-2 .nw-action-btn {
    margin-top: 0;
    vertical-align: middle;
}

.attach-file-item .row.align-items-end .col-md-2,
.form-file-ugup.fileUp .row.align-items-end .col-md-2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.attach-file-item .row.align-items-end .col-md-2 .nw-action-btn,
.form-file-ugup.fileUp .row.align-items-end .col-md-2 .nw-action-btn {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nw-Viewbar-actions {
        justify-content: flex-start !important;
        margin-top: 0.75rem;
    }
    
    .nw-action-btn {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .nw-action-btn i {
        font-size: 1rem;
    }
}

/* ============================================
   Modal Popup Improvements (Bootstrap v5)
   ============================================ */

/* Modal Header Improvements */
.modal-header {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    padding: 1rem 1.5rem;
    background-color: var(--bs-white, #fff);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-heading-color, #212529);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Bootstrap v5 Close Button */
.btn-close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: var(--bs-border-radius, 0.375rem);
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
    width: 1em;
    height: 1em;
}

.btn-close:hover {
    opacity: 1;
    background-color: var(--bs-gray-100, #f8f9fa);
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
}

/* Modal Body Improvements */
.modal-body {
    padding: 1.5rem;
    color: var(--bs-body-color, #212529);
}

/* Modal Footer Improvements */
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background-color: var(--bs-gray-50, #f8f9fa);
    gap: 0.5rem;
}

.modal-footer .btn {
    min-width: 5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--bs-border-radius, 0.375rem);
    transition: all 0.2s ease-in-out;
}

.modal-footer .btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5c636a;
    --bs-btn-hover-border-color: #565e64;
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.modal-footer .btn-secondary:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.modal-footer .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.modal-footer .btn-primary:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.25);
}

.modal-footer .btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.modal-footer .btn:active {
    transform: translateY(0);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Modal Dialog Improvements */
.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-big-2 {
    max-width: 900px;
}

.modal-content,
.modal-content-big-2 {
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.175));
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: var(--bs-white, #fff);
}

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsive Modal Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-dialog-big-2 {
        max-width: calc(100% - 1rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Spacing and Alignment Fixes */
.nw-Viewbar .row {
    margin-left: 0;
    margin-right: 0;
}

.nw-Viewbar .col-md-8,
.nw-Viewbar .col-md-4,
.nw-Viewbar .col-lg-8,
.nw-Viewbar .col-lg-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Ensure proper alignment */
.nw-Viewbar .align-items-center {
    align-items: center !important;
}

/* Table styling within Viewbar */
.nw-Viewbar .title-table {
    width: 100%;
    border-collapse: collapse;
}

.nw-Viewbar .title-table td,
.nw-Viewbar .title-table th {
    padding: 0.5rem;
    vertical-align: middle;
}

/* ============================================
   Attach Popup Modal Redesign Styles
   Following smartapp.min.css Bootstrap v5 patterns
   ============================================ */

/* Attach Popup Container */
.attach-popup-container {
    padding: 0;
}

/* Supporting File Box */
.suppoiryting-file-box {
    width: 100%;
}

/* Form File Upload Group */
.form-file-ugup {
    margin-bottom: 1rem;
}

.form-file-ugup:last-child {
    margin-bottom: 0;
}

/* Add File Button uses nw-action-btn class - no custom styles needed */
.attach-file-add-field-btn {
    margin-bottom: 0;
}

/* File Upload Item - Applied to both first item and dynamically added items */
.attach-file-item,
.form-file-ugup.attach-file-item {
    background-color: var(--bs-gray-50, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    padding: 1rem;
    margin-bottom: 1rem;
}

.attach-file-item:last-child {
    margin-bottom: 0;
}

/* Form Labels */
.attach-file-item .form-label {
    font-weight: 500;
    color: var(--bs-body-color, #212529);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Form Controls */
.attach-file-item .form-control {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.attach-file-item .form-control:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.attach-file-item .form-control::placeholder {
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.75));
    opacity: 1;
}

/* File Input Styling */
.file-upload-forms {
    position: relative;
}

.file-upload-forms input[type="file"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--bs-white, #fff);
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(1.5em + 1rem + 2px);
    line-height: 1.5;
}

.file-upload-forms input[type="file"]:hover {
    border-color: var(--bs-primary, #0d6efd);
}

.file-upload-forms input[type="file"]:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.file-upload-forms input[type="file"]::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin-right: 0.5rem;
    background-color: var(--bs-secondary, #6c757d);
    color: var(--bs-white, #fff);
    border: 1px solid var(--bs-secondary, #6c757d);
    border-radius: var(--bs-border-radius, 0.375rem);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.file-upload-forms input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--bs-secondary, #5c636a);
    border-color: var(--bs-secondary, #565e64);
}

/* Attach Popup Modal Width */
#attach-popup .modal-dialog.attach-popup-dialog,
.modal-dialog.attach-popup-dialog {
    max-width: 800px;
}

@media (min-width: 992px) {
    #attach-popup .modal-dialog.attach-popup-dialog,
    .modal-dialog.attach-popup-dialog {
        max-width: 900px;
    }
}

@media (max-width: 576px) {
    #attach-popup .modal-dialog.attach-popup-dialog,
    .modal-dialog.attach-popup-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
    }
}

/* Delete Button uses nw-action-btn class - no custom styles needed */

/* Error Message */
#attach-err {
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
    border-radius: var(--bs-border-radius, 0.375rem);
    border: 1px solid var(--bs-danger-border-subtle, #f1aeb5);
    background-color: var(--bs-danger-bg-subtle, #f8d7da);
    color: var(--bs-danger-text-emphasis, #58151c);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

#attach-err i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Row Spacing */
.attach-file-item .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-top: calc(var(--bs-gutter-y) * -0.5);
}

.attach-file-item .row.g-3 > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-top: calc(var(--bs-gutter-y) * 0.5);
}

/* Alignment Fixes */
.attach-file-item .align-items-end {
    align-items: flex-end !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .attach-file-item {
        padding: 0.75rem;
    }
    
    .attach-file-item .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .attach-file-item .col-md-6,
    .attach-file-item .col-md-4,
    .attach-file-item .col-md-2 {
        margin-bottom: 0.75rem;
    }
    
    .attach-file-item .col-md-2:last-child {
        margin-bottom: 0;
    }
    
    .attach-add-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .attach-file-item {
        padding: 0.5rem;
    }
    
    .attach-file-item .form-label {
        font-size: 0.8125rem;
    }
    
    .attach-file-item .form-control {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }
    
    .attach-add-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Dynamic File Items (added via JavaScript) - Same styling as first file item */
.form-file-ugup.fileUp.attach-file-item {
    background-color: var(--bs-gray-50, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    padding: 1rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure dynamically added items use same row spacing as first item */
.form-file-ugup.fileUp.attach-file-item .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-top: calc(var(--bs-gutter-y) * -0.5);
}

.form-file-ugup.fileUp.attach-file-item .row.g-3 > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-top: calc(var(--bs-gutter-y) * 0.5);
}

.form-file-ugup.fileUp.attach-file-item .align-items-end {
    align-items: flex-end !important;
}

/* Ensure form labels and controls match exactly */
.form-file-ugup.fileUp.attach-file-item .form-label {
    font-weight: 500;
    color: var(--bs-body-color, #212529);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-file-ugup.fileUp.attach-file-item .form-control {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-file-ugup.fileUp.attach-file-item .form-control:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-file-ugup.fileUp.attach-file-item .file-upload-forms {
    position: relative;
}

.form-file-ugup.fileUp.attach-file-item .file-upload-forms input[type="file"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--bs-white, #fff);
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-file-ugup.fileUp .form-control,
.form-file-ugup.attach-file-item .form-control {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-file-ugup.fileUp .form-control:focus,
.form-file-ugup.attach-file-item .form-control:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Policy Sub File Container */
#policysubFile {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.75));
}

/* Modal Body Spacing */
#attach-popup .modal-body {
    padding: 1.5rem;
}

/* Ensure proper spacing between file items */
.suppoiryting-file-box .form-file-ugup + .form-file-ugup {
    margin-top: 1rem;
}

/* ============================================
   Filed Forms Attach Modal Redesign Styles
   Following smartapp.min.css Bootstrap v5 patterns
   ============================================ */

/* Filed Forms Attach Modal Width */
#filedformsattch .modal-dialog.filedformsattch-dialog,
.modal-dialog.filedformsattch-dialog {
    max-width: 900px;
}

@media (min-width: 1200px) {
    #filedformsattch .modal-dialog.filedformsattch-dialog,
    .modal-dialog.filedformsattch-dialog {
        max-width: 1000px;
    }
}

@media (max-width: 576px) {
    #filedformsattch .modal-dialog.filedformsattch-dialog,
    .modal-dialog.filedformsattch-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
    }
}

/* Filed Forms Attach Container */
.filedformsattch-container {
    padding: 0;
}

/* Form Details Section */
.filedformsattch-form-section {
    padding: 0;
}

.filedformsattch-form-section .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-top: calc(var(--bs-gutter-y) * -0.5);
}

.filedformsattch-form-section .row.g-3 > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-top: calc(var(--bs-gutter-y) * 0.5);
}

/* Separator */
.filedformsattch-separator {
    border: 0;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    margin: 1.5rem 0;
    opacity: 1;
}

/* Table Section */
.filedformsattch-table-section {
    padding: 0;
}

/* Table Styling */
.filedformsattch-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--bs-body-color, #212529);
    vertical-align: top;
    border-color: var(--bs-border-color, #dee2e6);
}

.filedformsattch-table > :not(caption) > * > * {
    padding: 0.5rem 0.75rem;
    background-color: var(--bs-table-bg, transparent);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg, transparent);
}

.filedformsattch-table > tbody {
    vertical-align: inherit;
}

.filedformsattch-table > thead {
    vertical-align: bottom;
}

/* Table Header */
.filedformsattch-table thead.table-light th {
    background-color: var(--bs-gray-100, #f8f9fa);
    border-bottom: 2px solid var(--bs-border-color, #dee2e6);
    color: var(--bs-body-color, #212529);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
}

.filedformsattch-table thead th[scope="col"] {
    color: var(--bs-body-color, #212529);
}

/* Table Body */
.filedformsattch-table tbody tr {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    transition: background-color 0.15s ease-in-out;
}

.filedformsattch-table tbody tr:hover {
    background-color: var(--bs-gray-50, #f8f9fa);
}

.filedformsattch-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--bs-body-color, #212529);
}

/* Striped Table Rows */
.filedformsattch-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: var(--bs-gray-50, #f8f9fa);
    color: var(--bs-body-color, #212529);
}

.filedformsattch-table.table-striped > tbody > tr:nth-of-type(even) > * {
    --bs-table-accent-bg: transparent;
    color: var(--bs-body-color, #212529);
}

/* Table Links */
.filedformsattch-table tbody a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.filedformsattch-table tbody a:hover {
    color: var(--bs-primary-text-emphasis, #052c65);
    text-decoration: underline;
}

/* Table Responsive */
.filedformsattch-table-section .table-responsive {
    border-radius: var(--bs-border-radius, 0.375rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filedformsattch-table-section .table-responsive > .table {
    margin-bottom: 0;
}

/* Empty State */
.filedformsattch-table tbody:empty::after {
    content: "No linked forms found";
    display: block;
    text-align: center;
    padding: 2rem;
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.75));
    font-style: italic;
}

/* Modal Body Spacing */
#filedformsattch .modal-body {
    padding: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #filedformsattch .modal-body {
        padding: 1rem;
    }
    
    .filedformsattch-form-section .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .filedformsattch-table thead th,
    .filedformsattch-table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .filedformsattch-separator {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .filedformsattch-table thead th,
    .filedformsattch-table tbody td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .filedformsattch-table-section .table-responsive {
        border: 1px solid var(--bs-border-color, #dee2e6);
    }
}









/* Additional Modal Styles for ViewDataEntryForm - Bootstrap v5 Compatibility */
.category-modal .modal-dialog {
    margin: 1.75rem auto;
}

.category-modal .modal-content {
    border: none;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.category-modal .modal-header {
    background: linear-gradient(135deg, #ee7718 0%, #1a1a1a 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-modal .modal-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-modal .modal-title i {
    font-size: 1.125rem;
}

.category-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.category-modal .btn-close:hover {
    opacity: 1;
}

.category-modal .modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

.category-modal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.category-modal .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.category-modal .btn-primary {
    background: linear-gradient(135deg, #ee7718 0%, #1a1a1a 100%);
    border: none;
    color: #ffffff;
}

.category-modal .btn-primary:hover {
    background: linear-gradient(135deg, #d66815 0%, #2d2d2d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 119, 24, 0.3);
}

.category-modal .btn-secondary,
.category-modal .btn-default {
    background: #ffffff;
    color: #212529;
    border: 1px solid #dee2e6;
}

.category-modal .btn-secondary:hover,
.category-modal .btn-default:hover {
    background: #f8f9fa;
    border-color: #ee7718;
    color: #ee7718;
}

/* Ensure modals are visible and properly styled */
.category-modal.modal {
    display: none;
}

.category-modal.modal.show {
    display: block;
}

.category-modal.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.category-modal.modal.show .modal-dialog {
    transform: none;
}

/* Fix for modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .category-modal .modal-body {
        padding: 1rem;
    }
    
    .category-modal .modal-header {
        padding: 1rem;
    }
    
    .category-modal .modal-title {
        font-size: 1.125rem;
    }
}

/* ============================================
   Modal Tab Styles for ViewDataEntryForm
   Following Bootstrap v5 and category-modal patterns
   ============================================ */

/* Tab Container */
.category-modal .attach-tabs {
    margin-bottom: 1.5rem;
}

.category-modal .pop-cust-tab {
    border-bottom: 2px solid var(--bs-border-color, #dee2e6);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

/* Individual Tab Items */
.category-modal .pop-cust-tab > li {
    margin-bottom: -2px;
    flex: 0 0 auto;
}

.category-modal .pop-cust-tab > li[role="presentation"] {
    display: flex;
    align-items: center;
}

/* Tab Links */
.category-modal .pop-cust-tab > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--bs-body-color, #212529);
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.category-modal .pop-cust-tab > li > a:hover {
    color: var(--primary-orange, #ee7718);
    background-color: var(--light-orange, #fff4e6);
    border-bottom-color: var(--primary-orange, #ee7718);
}

.category-modal .pop-cust-tab > li > a:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 24, 0.15);
}

/* Active Tab */
.category-modal .pop-cust-tab > li.active > a,
.category-modal .pop-cust-tab > li[role="presentation"].active > a {
    color: var(--primary-orange, #ee7718);
    background-color: transparent;
    border-bottom-color: var(--primary-orange, #ee7718);
    font-weight: 600;
}

.category-modal .pop-cust-tab > li.active > a:hover,
.category-modal .pop-cust-tab > li[role="presentation"].active > a:hover {
    color: var(--primary-orange, #ee7718);
    background-color: var(--light-orange, #fff4e6);
}

/* Tab Icons */
.category-modal .pop-cust-tab > li > a i {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-modal .pop-cust-tab > li.active > a i,
.category-modal .pop-cust-tab > li[role="presentation"].active > a i {
    color: var(--primary-orange, #ee7718);
}

/* Checkbox Item in Tabs (bckadjmentchk) */
.category-modal .pop-cust-tab > li.bckadjmentchk {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0.5rem 0;
}

.category-modal .pop-cust-tab > li.bckadjmentchk .mr-tp-5 {
    margin-top: 0;
    display: flex;
    align-items: center;
}

/* Disabled Tab Item */
.category-modal .pop-cust-tab > li.diabledd {
    opacity: 0.5;
    pointer-events: none;
}

.category-modal .pop-cust-tab > li.diabledd > a {
    cursor: not-allowed;
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.75));
}

/* Tab Content */
.category-modal .tab-content {
    padding: 1.5rem 0;
    min-height: 200px;
}

.category-modal .tab-content .tab-pane {
    display: none;
}

.category-modal .tab-content .tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.category-modal .tab-content .tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.category-modal .tab-content .tab-pane.fade.active {
    opacity: 1;
}

.category-modal .tab-content .tab-pane.fade.in {
    opacity: 1;
}

/* Tab Content Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tab Styles */
@media (max-width: 768px) {
    .category-modal .pop-cust-tab {
        flex-direction: column;
        border-bottom: none;
        border-left: 2px solid var(--bs-border-color, #dee2e6);
        gap: 0;
    }
    
    .category-modal .pop-cust-tab > li {
        width: 100%;
        margin-bottom: 0;
    }
    
    .category-modal .pop-cust-tab > li > a {
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 0;
        padding: 0.875rem 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .category-modal .pop-cust-tab > li.active > a,
    .category-modal .pop-cust-tab > li[role="presentation"].active > a {
        border-left-color: var(--primary-orange, #ee7718);
        border-bottom-color: transparent;
    }
    
    .category-modal .pop-cust-tab > li > a:hover {
        border-left-color: var(--primary-orange, #ee7718);
        border-bottom-color: transparent;
    }
    
    .category-modal .pop-cust-tab > li.bckadjmentchk {
        margin-left: 0;
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        border-top: 1px solid var(--bs-border-color, #dee2e6);
    }
}

@media (max-width: 576px) {
    .category-modal .pop-cust-tab > li > a {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
    }
    
    .category-modal .pop-cust-tab > li > a i {
        font-size: 0.875rem;
    }
    
    .category-modal .tab-content {
        padding: 1rem 0;
    }
}


.hidden {
    display: none!important;
}

/* ============================================
   Title and Button Bar Styles for ViewDataEntryForm
   ============================================ */

/* Main Title Container - Flex Layout */
.main-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

/* Title Table Container - 75% Width */
.main-title .title-table {
    flex: 0 0 75%;
    max-width: 75%;
    width: 75%;
    margin: 0;
    border: none;
    table-layout: auto;
}

.main-title .title-table tbody {
    display: table-row-group;
}

.main-title .title-table tr {
    display: table-row;
}

.main-title .title-table td {
    display: table-cell;
    padding: 0;
    border: none;
    vertical-align: middle;
    width: 100%;
}

/* Title Info 15 Style */
.title_info_15 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    line-height: 1.5;
    margin: 0;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* View Form Buttons Bar - 25% Width, Right Aligned */
.view-form-btns-bar {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Button/Anchor Styles in View Form Buttons Bar */
.view-form-btns-bar > a,
.view-form-btns-bar > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--bs-white, #fff);
    color: var(--bs-body-color, #212529);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-form-btns-bar > a:hover,
.view-form-btns-bar > button:hover {
    background-color: var(--primary-orange, #ee7718);
    color: var(--bs-white, #fff);
    border-color: var(--primary-orange, #ee7718);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 119, 24, 0.25);
    text-decoration: none;
}

.view-form-btns-bar > a:focus,
.view-form-btns-bar > button:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(238, 119, 24, 0.25);
    border-color: var(--primary-orange, #ee7718);
}

.view-form-btns-bar > a:active,
.view-form-btns-bar > button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.view-form-btns-bar > a i,
.view-form-btns-bar > button i {
    font-size: 1.125rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .main-title .title-table {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .view-form-btns-bar {
        flex: 0 0 100%;
        max-width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .title_info_15 {
        font-size: 1.25rem;
    }
    
    .view-form-btns-bar {
        gap: 0.375rem;
    }
    
    .view-form-btns-bar > a,
    .view-form-btns-bar > button {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
    }
    
    .view-form-btns-bar > a i,
    .view-form-btns-bar > button i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .title_info_15 {
        font-size: 1.125rem;
        padding: 0.375rem 0;
    }
    
    .view-form-btns-bar > a,
    .view-form-btns-bar > button {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
    }
    
    .view-form-btns-bar > a i,
    .view-form-btns-bar > button i {
        font-size: 0.875rem;
    }
}

.custom-date-section {
    border: 1px solid #2aa648;
    float: left;
    max-width: 500px;
    margin-bottom: 20px;
    /* box-shadow: 2px 2px 2px #2aa648; */
    background: rgba(42, 176, 72, 0.1);
    padding: 5px;
}


.row-cover {
    margin-top: 15px;
    float: left;
    width: 100%;
    display: block;
    margin-bottom: 5px;
}


.input-value-box-units {
    max-width: 1200px;
    float: left;
    z-index: 1 !important;
    position: relative;
}


.attechment-pin {
    width: 50px;
    float: left;
    margin: 0px 0 0 0;
    z-index: 1 !important;
    position: relative;
}

.attechment-pin i {
    font-size: 25px;
    color: rgba(13, 109, 186, 0.5);
    margin: 0px 0 0 10px;
    padding: 7px;
    /* border: 1px solid rgba(13, 109, 186, 0.5); */
}

 

.input-value-box-units [type="text"] {
    height: 40px;
}


.input-value-box-radio {
    max-width: 1200px;
    float: left;
}

.attechment-pin-radio {
    width: 70px;
    float: left;
    margin: -7px 0 0 0;
    z-index: 1 !important;
    position: relative;
}

.attechment-pin-radio i {
    font-size: 25px;
    color: rgba(13, 109, 186, 0.5);
    margin: 0px 0 0 10px;
    padding: 7px;
    /* border: 1px solid rgba(13, 109, 186, 0.5); */
}



.new-style-forms .label {
    width: 100%;
    float: left;
    text-align: left;
    padding: 0px;
    overflow-wrap: break-word !important;
    word-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   Policy Documents Page - Modern Bootstrap 5 Styles
   Following smartapp.min.css design patterns
   ============================================ */

/* Policy Cover Container */
.poli_cover {
    width: 100%;
    float: left;
    position: relative;
}

/* Policy Box Layout - Sidebar */
.Poliycybx-1 {
    width: 20%;
    margin-top: 45px;
    float: left;
    padding: 0;
    transition: all 0.5s ease;
    overflow: hidden;
    min-width: 230px;
    position: relative;
    min-height: 500px;
}

.Poliycybx-1_sp {
    width: 0%;
    float: left;
    position: fixed;
    transition: all 0.5s ease;
    overflow: hidden;
    min-height: 500px;
}

/* Policy Box Layout - Main Content */
.Poliycybx-2 {
    width: 79%;
    float: right;
    transition: all 0.5s ease;
    margin-top: 5px;
    position: relative;
}

.Poliycybx-2_sp {
    width: 100%;
    float: right;
    transition: all 0.5s ease;
    margin-top: 5px;
}

/* Full Header */
.full-header {
    width: calc(100% - 15px);
    float: left;
    border-color: var(--bs-primary, #0d6efd) !important;
    background: var(--bs-primary, #0d6efd);
    height: 50px;
    color: #fff;
    line-height: 50px;
    padding-left: 15px;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
}

/* Toggle Buttons */
.tog-btns {
    float: right;
    position: absolute;
    right: 20px;
    top: 8px;
    display: flex;
    gap: 0.5rem;
}

.tog-btns .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--bs-border-radius, 0.375rem);
}

/* File Tree */
.file-tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.file-tree li {
    margin-bottom: 0.25rem;
}

.file-tree li a.call {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color, #212529);
    text-decoration: none;
    border-radius: var(--bs-border-radius-sm, 0.25rem);
    transition: all 0.2s ease;
}

.file-tree li a.call:hover {
    background-color: var(--bs-gray-100, #f8f9fa);
    color: var(--bs-primary, #0d6efd);
}

.file-tree li.poly-selected a.call {
    background-color: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
}

/* Add Area Box */
.add-area-box {
    margin-top: 50px;
    padding: 10px;
}

/* Full Card Box */
.poli_cover .full-card-box {
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.full-card-box {
    background: #fff;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    padding: 1rem;
}

.main-body {
    padding: 0;
}

/* Widget Styles - Bootstrap 5 Compatible */
.smart-standard-widget {
    min-height: 130px;
    background: #fff;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    overflow: hidden;
    transition: all 0.3s ease;
}

.smart-standard-widget:hover {
    box-shadow: var(--bs-box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    transform: translateY(-2px);
}

.widget-caption {
    padding: 1rem;
}

.widget-caption.warning {
    background-color: var(--bs-warning-bg-subtle, #fff3cd);
    border-left: 4px solid var(--bs-warning, #ffc107);
}

.widget-caption.danger {
    background-color: var(--bs-danger-bg-subtle, #f8d7da);
    border-left: 4px solid var(--bs-danger, #dc3545);
}

.widget-caption.success {
    background-color: var(--bs-success-bg-subtle, #d1e7dd);
    border-left: 4px solid var(--bs-success, #198754);
}

.widget-caption.info {
    background-color: var(--bs-info-bg-subtle, #cff4fc);
    border-left: 4px solid var(--bs-info, #0dcaf0);
}

.widget-detail {
    margin-bottom: 0.5rem;
}

.widget-detail h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.widget-detail h3 a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.widget-detail h3 a:hover {
    opacity: 0.8;
}

.widget-detail span {
    font-size: 0.875rem;
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.75));
    font-weight: 500;
}

.widget-line {
    height: 4px;
    background-color: var(--bs-gray-200, #e9ecef);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.widget-horigental-line {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Color Classes */
.cl-warning {
    color: var(--bs-warning, #ffc107) !important;
}

.cl-danger {
    color: var(--bs-danger, #dc3545) !important;
}

.cl-success {
    color: var(--bs-success, #198754) !important;
}

.cl-info {
    color: var(--bs-info, #0dcaf0) !important;
}

/* Utility Classes */
.no-pad {
    padding: 0 !important;
}

.mrg-0 {
    margin: 0 !important;
}

.row-0 {
    margin-bottom: 1rem;
}

/* Policy Path Bar */
.poli-path-bar {
    color: #fff;
    float: left;
    padding-top: 0;
    margin-right: 50px;
    font-size: 1rem;
    line-height: 40px;
}

.poli-path-bar i {
    display: inline;
    padding-left: 10px;
    padding-right: 10px;
    float: left;
    line-height: 38px;
}

#folderPath {
    float: left;
}

/* Jarvis Widget */
.jarviswidget {
    background: #fff;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    margin-bottom: 1rem;
}

.jarviswidget > header {
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-gray-50, #f8f9fa);
    height: 50px;
    padding: 0 1rem;
    line-height: 50px;
    margin-bottom: 0;
    border-radius: var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem) 0 0;
}

.jarviswidget > header h2 {
    font-size: 1rem;
    line-height: 50px;
    color: var(--bs-body-color, #212529);
    font-weight: 600;
    margin: 0;
}

.jarviswidget-color-blueDark > header {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border-color: var(--bs-primary, #0d6efd);
}

.jarviswidget-color-blueDark > header h2 {
    color: #fff;
}

/* File Buttons */
.file-btns {
    float: right;
    margin-top: 1px;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    border: 1px solid #fff;
    border-radius: var(--bs-border-radius, 0.375rem);
    margin-left: 15px;
}

/* Contact Table */
.contact-table {
    width: 100%;
}

.contact-table h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-table .form-control {
    border-radius: var(--bs-border-radius, 0.375rem);
}

/* Bulk Update Box */
.blulupdatebox {
    float: left;
    width: 100%;
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-radius: var(--bs-border-radius, 0.375rem);
    background: var(--bs-gray-50, #f8f9fa);
}

/* Logs Search Box */
.logs-seach-box {
    float: left;
    width: 100%;
    padding: 1rem;
    background: var(--bs-gray-50, #f8f9fa);
    border-radius: var(--bs-border-radius, 0.375rem);
    margin-bottom: 1rem;
}

/* Responsive Popup Box */
.responsive-popup-box {
    float: left;
    width: calc(100% - 300px);
    margin-left: 150px;
    position: absolute;
    min-height: 250px;
    height: 90% !important;
    overflow: auto;
    background: #fff;
    top: 60px;
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    box-shadow: var(--bs-box-shadow-lg, 0 1rem 3rem rgba(0, 0, 0, 0.175));
}

.resp-popup-header {
    border-color: var(--bs-primary, #0d6efd) !important;
    background: var(--bs-primary, #0d6efd);
    font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto);
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #fff;
    text-align: center;
    width: 100%;
    height: 50px;
    line-height: 50px;
    float: left;
    border-radius: var(--bs-border-radius-lg, 0.5rem) var(--bs-border-radius-lg, 0.5rem) 0 0;
}

.resp-popup-body {
    padding: 1rem;
    float: left;
    width: calc(100% - 2rem);
    min-height: 530px;
    overflow: auto;
    height: calc(100% - 100px);
    position: absolute;
    margin-top: 50px;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.resp-popup-body label {
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto);
    margin-bottom: 0.5rem !important;
    color: var(--bs-body-color, #212529);
}

.resp-popup-footer {
    border-color: var(--bs-primary, #0d6efd) !important;
    background: var(--bs-primary, #0d6efd);
    font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto);
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #fff;
    text-align: center;
    width: 100%;
    height: 50px;
    line-height: 50px;
    float: left;
    bottom: 0;
    position: absolute;
    padding-left: calc(50% - 150px);
    border-radius: 0 0 var(--bs-border-radius-lg, 0.5rem) var(--bs-border-radius-lg, 0.5rem);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .Poliycybx-1 {
        width: 0%;
        overflow: hidden;
    }
    
    .Poliycybx-2 {
        width: 100%;
    }
    
    .responsive-popup-box {
        width: calc(100% - 40px);
        margin-left: 20px;
    }
}

@media (max-width: 767.98px) {
    .full-header {
        height: auto;
        padding: 0.75rem;
        line-height: 1.5;
    }
    
    .tog-btns {
        position: relative;
        float: none;
        right: auto;
        top: auto;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }
    
    .widget-detail h3 {
        font-size: 1.5rem;
    }
}