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

:root {
    --primary-color: #16a34a;
    --primary-color-rgb: 22, 163, 74;
    --primary-color-light: #f0f9f0;
    --secondary-color: #f1f3f4;
    --text-color: #333;
    --text-dark: #171a1f;
    --text-color-light: #666;
    --background-color: #f8f9fa;
    --border-color: #e0e0e0;
    --hover-bg-color: #e8f5e8;
    --error-color: #d32f2f;
    --white-color: #ffffff;
    --black-color: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.hidden {
    display: none;
}

a {
    text-decoration: none;
}

.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.time-estimate {
    font-size: 14px;
    color: #999;
}

.error-message {
    font-size: 14px;
    color: var(--error-color)
}

.success-message {
    font-size: 14px;
    color: var(--primary-color);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn.primary {
    background-color: var(--black-color);
    color: var(--white-color);
}

.btn.secondary {
    background-color: var(--white-color);
    color: #333;
    border: 1px solid var(--border-color);
}

.btn.theme {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn i {
    font-style: normal;
}

input:focus-visible,
select:focus-visible {
    outline: none;
}

select {
    appearance: none;
    background-image: url('../images/icons/angle-down.svg');
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 30px !important;
}

.mt-12 {
    margin-top: 12px !important;
}

.mt-16 {
    margin-top: 16px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-8 {
    margin-bottom: 8px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.text-align-left {
    text-align: left !important;
}

.text-align-center {
    text-align: center !important;
}

.text-align-right {
    text-align: right !important;
}

.d-block {
    display: block !important;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: #ccc;
}


.sidebar {
    min-width: 250px;
    width: 250px;
    background-color: #f1f3f4;
    border-right: 1px solid var(--border-color);
    padding: 18px 0 20px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 0 20px 17px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

@media (max-width: 1549px) {
    .sidebar-header {
        padding: 0 20px 10px;

    }
}

@media (max-width: 1480px) {
    .sidebar-header {
        padding: 0 20px 9px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: opacity 0.3s ease;
}

.logo-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    color: var(--primary-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: bold;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}


.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 20px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 1001;
}


@media (max-width: 1549px) {
    .sidebar-toggle {
        display: block;
    }
}

.sidebar-toggle:hover {
    background-color: #e8f5e8;
}

.sidebar-toggle i {
    font-style: normal;
    transition: transform 0.3s ease;
}

@media (max-width: 1549px) {
    .sidebar.collapsed .sidebar-toggle .toggle-icon::before {
        content: "\f0c9";
    }

    .sidebar.expanded .sidebar-toggle .toggle-icon::before {
        content: "\f00d";
    }
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section h3,
.nav-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: 600;
    transition: opacity 0.3s ease, height 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s, padding 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.nav-item i {
    font-style: normal;
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-item span {
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

.nav-item:hover {
    background-color: #e8f5e8;
}

.nav-item.active {
    background-color: #e8f5e8;
    color: var(--primary-color);
    font-weight: 500;
}


@media (max-width: 1549px) {
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .sidebar.collapsed,
    .sidebar.expanded {
        width: auto !important;
        min-width: auto !important;
        max-height: none !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-right: 1px solid var(--border-color) !important;
        border-bottom: none !important;
        position: sticky !important;
        top: 0 !important;
    }

    .sidebar.collapsed {
        min-width: 70px !important;
        width: 70px !important;
    }

    .sidebar.collapsed .nav-section {
        margin-bottom: 30px !important;
        display: block !important;
        vertical-align: top !important;
        min-width: auto !important;
        margin-right: 0 !important;
    }


    .sidebar.expanded {
        min-width: 250px !important;
        width: 250px !important;
    }

    .sidebar.expanded .logo-text {
        opacity: 1;
        width: auto;
        display: inline-block;
    }

    .sidebar.expanded .nav-section-title {
        opacity: 1;
        height: auto;
        margin-bottom: 10px;
        padding: 0 20px;
        display: block;
    }

    .sidebar.expanded .nav-section {
        margin-bottom: 30px !important;
        display: block !important;
        vertical-align: top !important;
        min-width: auto !important;
        margin-right: 0 !important;
    }

    .sidebar.expanded .nav-item {
        padding: 10px 20px !important;
        justify-content: flex-start;
        font-size: 14px !important;
    }

    .sidebar.expanded .nav-item span {
        opacity: 1;
        width: auto;
        display: inline-block;
    }


    .sidebar.collapsed .nav-item {
        position: relative;
    }

    .sidebar.collapsed .nav-item::after {
        content: attr(data-title);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background-color: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        margin-left: 10px;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .sidebar.collapsed .nav-item::before {
        content: '';
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        border: 6px solid transparent;
        border-right-color: #333;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        margin-left: 4px;
        z-index: 1001;
    }

    .sidebar.collapsed .nav-item:hover::after,
    .sidebar.collapsed .nav-item:hover::before {
        opacity: 1;
    }
}

@media (min-width: 1199px) and (max-width: 1549px) {
    .sidebar.collapsed .logo {
        width: 0;
    }

    .sidebar.collapsed .logo-icon {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar.collapsed .logo-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar.collapsed .nav-section-title {
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        display: none;
        line-height: 0;
    }

    .sidebar.collapsed .nav-item span {
        opacity: 0;
        width: 0;
        overflow: hidden;
        display: none;
    }

    .sidebar.collapsed .nav-item i {
        margin: 0 auto;
    }

    .sidebar.collapsed .nav-item {
        padding: 10px !important;
        justify-content: center;
        font-size: 14px !important;
    }
}

@media (max-width: 1199px) {
    .sidebar.collapsed {
        position: fixed !important;
        min-width: 0 !important;
        width: 0 !important;
    }
}


/* Font Awesome icon support - using ::before for compatibility */
.icon-dashboard::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f015"; /* fa-home */
}

.icon-customer::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f007"; /* fa-user */
}

.icon-customers::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0c0"; /* fa-users */
}

.icon-projects::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f07c"; /* fa-folder-open */
}

.icon-quotes::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0d6"; /* fa-dollar-sign */
}

.icon-files::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f07b"; /* fa-folder */
}

.icon-reports::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f080"; /* fa-chart-bar */
}

.icon-settings::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f013"; /* fa-cog */
}

.icon-starred::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f005"; /* fa-star */
}

.icon-pinned::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f08d"; /* fa-thumbtack */
}

.icon-person::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f007"; /* fa-user */
}

.icon-envelope::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0e0"; /* fa-envelope */
}

.icon-home::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f015"; /* fa-home */
}

.icon-project::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f07c"; /* fa-folder-open */
}

.icon-calendar::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f073"; /* fa-calendar */
}

.icon-dollar::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0d6"; /* fa-dollar-sign */
}

.icon-notes::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f303"; /* fa-sticky-note */
}

.icon-check::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c"; /* fa-check */
}

.icon-budget::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0d6"; /* fa-dollar-sign */
}

.icon-timeline::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f073"; /* fa-calendar */
}

.icon-team::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0c0"; /* fa-users */
}

.icon-logout::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f2f5"; /* fa-sign-out-alt */
}

.icon-quotes-management::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f1c1"; /* fa-file-alt */
}

.icon-kitchen-quote::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f2e7"; /* fa-utensils */
}

.icon-vanity-quote::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f2cd"; /* fa-bath */
}

.icon-price-management::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0d6"; /* fa-dollar-sign */
}

.icon-price-tag::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f02b"; /* fa-tags */
}

.icon-calculator::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f1ec"; /* fa-calculator */
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.header {
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: flex-end;
}

.header.header-between {
    justify-content: space-between;
}

.header .sidebar-toggle {
    display: none !important;
}

@media (max-width: 1199px) {
    .header {
        position: relative;
    }

    .header .sidebar-toggle {
        display: block !important;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 8px 16px;
    width: 400px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.header-btn.primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.header-btn.secondary {
    background-color: #f1f3f4;
    color: #333;
}

.header-btn i {
    font-style: normal;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ff9500;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}


.topbar {
    display: none;
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.topbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-row-1 {
    margin-bottom: 10px;
}

.topbar-row-2 {
    justify-content: flex-end;
}

.topbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f4;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.topbar-toggle:hover {
    background-color: #e8f5e8;
}

.topbar .search-bar {

    width: auto;
    margin: 0;
}


.topbar-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    flex-shrink: 0;
}

.topbar-logo .logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.topbar-logo .logo-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}


@media (min-width: 1199px) and (max-width: 1549px) {
    .dashboard:has(.sidebar.collapsed) .topbar-logo {
        display: flex;
    }

    .dashboard:has(.sidebar.expanded) .topbar-logo {
        display: none;
    }


    .sidebar-collapsed .topbar-logo {
        display: flex;
    }

    .sidebar-expanded .topbar-logo {
        display: none;
    }
}

.topbar .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content.bg-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--primary-color-light);
}

.content.bg-white {
    background-color: var(--white-color);
}

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

@media (max-width: 1549px) {
    .content-header {
        margin-bottom: 20px;
    }
}

.content-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.content-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.back-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--white-color);
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-btn:hover {
    background-color: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 10px;
}


.upload-section {
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.3s;
    background-color: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #e8f5e8;
}

.upload-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.upload-subtext {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.upload-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}


.selector-section {
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 30px;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.selector-group {
    display: flex;
    flex-direction: column;
}

.selector-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.selector-group select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--white-color);
}

.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--white-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.category-tab.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}


.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;

}

.file-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.file-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.file-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.file-icon.pdf {
    background-color: #ff4444;
    color: var(--white-color);
}

.file-icon.design {
    background-color: #4CAF50;
    color: var(--white-color);
}

.file-icon.image {
    background-color: #2196F3;
    color: var(--white-color);
}

.file-icon.document {
    background-color: #FF9800;
    color: var(--white-color);
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-word;
}

.files .file-name {
    font-weight: 600;
    margin-bottom: 6px;
}

.file-thumb {
    min-height: 37px;
}

.file-thumb .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.file-thumb img {
    height: 37px;
    max-width: 100%;
    object-fit: contain;
}

.file-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.files .file-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.page-btn {
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.page-btn:hover {
    background: #f1f1f1;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-medium .modal-content {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.file-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    color: #333;
}


.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.nested-tabs {
    padding-top: 2px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #363636;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab:hover {
    color: var(--primary-color);
}


.crm-table {
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.custom-table {
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

@media (max-width: 991px) {
    .custom-table {
        overflow-x: auto;
    }
}


.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
}

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

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.custom-table .table,
.custom-table table.table,
.table {
    display: table !important;
    width: 100%;
    min-width: 600px;
}

@media (max-width: 991px) {

    .custom-table .table,
    .custom-table table.table,
    .table {
        min-width: 1000px;
    }
}

.custom-table .table td::before,
.table td::before {
    display: none !important;
    content: none !important;
}

.custom-table .progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.custom-table .progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.custom-table .progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    text-align: left;
    display: table;
    table-layout: auto;
}

.table tbody tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table th {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.table td {
    padding: 15px 20px;
    align-items: center;
    transition: background-color 0.2s;
    vertical-align: middle;
}

.no-records {
    font-size: 14px;
    padding: 20px;
    text-align: center;
    color: rgb(102, 102, 102);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.customer-name {
    font-size: 12px;
    color: #666;
}

.customer-details h4,
.project-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.customer-details p,
.project-details p {
    font-size: 12px;
    color: #666;
}

.contact-info {
    font-size: 12px;
    color: #666;
}

.contact-info .email {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info>div:not(:last-child) {
    margin-bottom: 3px;
}

.total-value {
    font-weight: 600;
    font-size: 14px;
    color: #28a745;
}

.projects-count {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.normal-text {
    font-size: 14px;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

.status-fabricate {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-install {
    background-color: #d4edda;
    color: #155724;
}

.status-followup {
    background-color: #f8d7da;
    color: #721c24;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

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

.status-vip {
    background-color: #cce5ff;
    color: #004085;
}

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

.status-fabrication {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-installation {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #cce5ff;
    color: #004085;
}

.status-on-hold {
    background-color: #f8d7da;
    color: #721c24;
}

.status-in-progress {
    background-color: #f8d7da;
    color: #721c24;
}

.status-draft {
    background-color: #ffe2e2;
    color: #666;
}

.status-sent {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

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

.timeline {
    font-size: 12px;
    color: #666;
}

.timeline.overdue {
    color: #dc3545;
    font-weight: 500;
}

.timeline.on-track {
    color: #28a745;
}

.timeline.at-risk {
    color: #ffc107;
    font-weight: 500;
}

.last-contact {
    font-size: 12px;
    color: #666;
}

.priority-high {
    color: #dc3545;
    font-weight: 600;
}

.priority-medium {
    color: #ffc107;
    font-weight: 600;
}

.priority-low {
    color: #28a745;
    font-weight: 600;
}

.amount {
    font-weight: 600;
    font-size: 14px;
}

.amount.pending {
    color: #ffc107;
}

.amount.approved {
    color: #28a745;
}

.amount.rejected {
    color: #dc3545;
}

.date {
    font-size: 12px;
    color: #666;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions span.muted {
    display: none;
}

.action-btn {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
    border-radius: 50%;
}

.action-btn.edit {
    background-color: #d4f3e0;
    color: #218838;
    border-color: #c3e6cb;
}

.action-btn.edit:hover {
    background-color: #bdeacb;
}

.action-btn.view {
    background-color: #d6ecff;
    color: #007bff;
    border-color: #cce5ff;
}

.action-btn.view:hover {
    background-color: #b8daff;
}

.action-btn.contact {
    background-color: #ffe8cc;
    color: #ff9800;
    border-color: #ffe0b2;
}

.action-btn.contact:hover {
    background-color: #ffd699;
}

.action-btn.delete {
    background-color: #f8d7da;
    color: #d32f2f;
    border-color: #f8d7da;
}

.action-btn.delete:hover {
    background-color: #f5b7b9;
}

.action-btn.update {
    background-color: #d1f0e8;
    color: #117a65;
    border-color: #b2dfdb;
}

.action-btn.update:hover {
    background-color: #a8e6cf;
}

.action-btn.send {
    background-color: #e6e0f8;
    color: #5a2d91;
    border-color: #d1c4e9;
}

.action-btn.send:hover {
    background-color: #d4c7f7;
}

.action-btn.approve {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.action-btn.approve:hover {
    background-color: #b7e4c7;
}

.action-btn.reject {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.action-btn.reject:hover {
    background-color: #f1b0b7;
}

.action-btn.download {
    background-color: #e2f0fb;
    color: #0056b3;
    border-color: #b6e0fe;
}

.action-btn.download:hover {
    background-color: #cce5ff;
}

.action-btn.save-inline-item,
.action-btn.cancel-inline-item {
    margin-top: 8px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1280px) {
    .stats-grid {
        margin-bottom: 20px;
    }
}

.stat-card {
    background: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.stat-card .change {
    font-size: 12px;
    color: var(--primary-color);
}


@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .search-bar {
        width: 250px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .table-header {
        display: none;
    }
}

.error-text,
.error-msg {
    font-size: smaller;
    display: block;
    color: red;
    margin-top: 2px;
}


.form-container {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
}


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

.step-indicator {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--black-color);
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}


.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.form-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}


.form-fields {
    margin-bottom: 40px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.field-row.single {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: #999;
}


.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn.previous {
    background-color: var(--white-color);
    color: #666;
    border: 1px solid var(--border-color);
}

.nav-btn.previous:hover {
    background-color: #f8f9fa;
}

.nav-btn.next {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.nav-btn.next:hover {
    background-color: rgb(21, 128, 61);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-container-view {
    display: none;
}

.form-container-view.active {
    display: block;
}

.budget {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.name span {
    color: var(--primary-color);
}

.project-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.quote-number {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.quote-type {
    max-width: 500px;
    width: 100%;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.quote-type .title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.quote-type .title .brand {
    color: var(--primary-color);
}

.quote-type .description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.quote-type .quote-options {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.quote-type .quote-options h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.quote-type .checkbox-group {
    display: flex;
    gap: 20px;
    justify-content: center;

    flex-wrap: nowrap;
}

.quote-type .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    width: 100%;
}

.quote-type .checkbox-item:hover {
    border-color: var(--primary-color);
    background-color: #f0fdf4;
}

.quote-type .checkbox-item.selected {
    border-color: var(--primary-color);
    background-color: #e8f5e8;
}

.quote-type .checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.quote-type .checkbox-item label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.quote-type .btn {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.quote-type .time-estimate {
    margin-top: 8px;
}

.quote-type .error-message {
    display: none;
    margin-top: 12px;
}

.quote-type .selector-group select {
    padding: 14px 15px;
    font-weight: 500;
}

.customer-quotes {
    margin-top: 20px;
}

.customer-quotes .title {
    margin-bottom: 15px;
}

.qty-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    background-color: #e6f3ff;
}

.qty-input.num-fill {
    background-color: #e8f5e8;
}

.qty-input.yes-no {
    background-color: #fff3cd;
}

.qty-input::placeholder {
    color: #999;
    font-style: italic;
}

.money-input {
    max-width: 300px;
    text-align: center;
}

.alpha-fill {
    background-color: #ffebee;
}

.cost-value {
    color: #333;
    font-weight: 500;
}

.error-value {
    color: #d32f2f;
    font-style: italic;
}

.is-invalid {
    border-color: #dc3545;
}

.empty-value {
    color: #999;
}

.files-grid:has(.empty) {
    grid-template-columns: 1fr;
}

.empty {
    font-size: 14px;
    text-align: center;
    color: #333;
}

.taxed-t {
    color: #2e7d32;
    font-weight: 700;
}

.steps-indicator {
    font-size: 14px;
    color: #666
}

.summary-box {

    border-top: 1px dashed #eee
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee
}

.summary-row.total {
    font-weight: 700
}

.quote-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 80px;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    align-items: center;
}

.quote-item:hover {
    background-color: #f8f9fa;
}

.quote-details {
    width: 100%;
    text-align: left;
    border-radius: 8px;
}

.quote-details__listing {
    padding: 20px;
    background-color: var(--white-color);
}

.quote-details__inside {
    margin-top: 30px;
    margin-bottom: 20px;
}

.quote-details .title {}

.quote-details .subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    margin-top: 22px;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.login-main .login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .login-main .login-container {
        margin: 20px;
        padding: 32px 24px;
    }
}

.login-main .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgb(34, 197, 94) 100%);
}

.login-main .logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.login-main .logo-section .logo {
    justify-content: center;
    margin-bottom: 10px;
}

.login-main .company-name {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .login-main .company-name {
        font-size: 24px;
    }
}

.login-main .company-tagline {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.login-main .login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-main .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-main .form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.login-main .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.login-main .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;

}

.login-main .form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.login-main .password-container {
    position: relative;
}

.login-main .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    padding: 4px;
}

.login-main .password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.login-main .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-main .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.login-main .forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-main .forgot-password:hover {
    text-decoration: underline;
}

.login-main .login-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgb(34, 197, 94) 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.login-main .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.4);
}

.login-main .login-button:active {
    transform: translateY(0);
}

.login-main .login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-main .error-message {
    margin-top: 8px;
    display: none;
}

.login-main .success-message {
    margin-top: 8px;
    display: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: #6b7280;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

.login-main .social-login {
    display: flex;
    gap: 12px;
}

@media (max-width: 480px) {
    .login-main .social-login {
        flex-direction: column;
    }
}

.login-main .social-button {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
}

.login-main .social-button:hover {
    border-color: var(--primary-color);
    background: #f0fdf4;
}

.login-main .footer-text {
    text-align: center;
    margin-top: 32px;
    color: #6b7280;
    font-size: 14px;
}

.login-main .footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-main .footer-text a:hover {
    text-decoration: underline;
}

.login-modal__content .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.login-modal__content .form__btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.login-modal__content .form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.login-modal__content .form-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.login-modal__content .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;

}

.login-modal__content .form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.login-modal__content .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

.profile-main {
    background: linear-gradient(135deg, #f0f9f0 0%, #f8f9fa 100%);
    min-height: calc(100vh - 60px);
}
 
.profile-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.profile-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #22c55e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.profile-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.profile-main .profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1370px) {
    .profile-main .profile-content {
        grid-template-columns: 1fr;
    }
}

.profile-main .profile-card {
    width: 100%;
    background: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.profile-main .profile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.profile-form-card {
    display: flex;
    flex-direction: column;
}

.profile-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #22c55e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
    margin: 0;
}

.profile-card-icon.password-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.profile-card-header > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-main h2.title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.5px;
}

.profile-card-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.profile-form-body {
    padding: 30px;
}

.profile-main .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-main .form-group__grp {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}

@media (max-width: 768px) {
    .profile-main .form-group__grp {
        grid-template-columns: 1fr;
    }
}

.profile-main .form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-main .form-label i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
}

.profile-main .form-input {
    width: 100%;
}

.profile-main .form-input:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.profile-main .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.profile-main .form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.profile-main .form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.profile-main .form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: #f3f4f6;
}

.password-toggle:focus {
    outline: none;
    background: #f3f4f6;
}

.profile-main .error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}

.profile-main .error-message i {
    font-size: 12px;
}

.profile-form-actions {
    margin-top: 15px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.profile-submit-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
    margin: 0;
}

.profile-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    background-color: #15803d;
}

.profile-submit-btn:active {
    transform: translateY(0);
}

.profile-submit-btn i {
    font-size: 14px;
}

@media (max-width: 991px) {
    .profile-header-content {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 0;
    }

    .profile-header-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .profile-card-header {
        padding: 24px 24px 16px;
        gap: 16px;
    }

    .profile-form-body {
        padding: 24px;
    }

    .profile-card-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 20px;
    }

    .profile-main h2.title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .profile-main .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-card-header {
        padding: 20px 20px 16px;
        gap: 12px;
    }

    .profile-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .profile-main h2.title {
        font-size: 18px;
    }

    .profile-card-description {
        font-size: 13px;
    }

    .profile-form-body {
        padding: 20px;
    }

    .profile-form-actions {
        padding-top: 20px;
    }

    .profile-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}


.view-details {
    width: 100%;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--white-color);
}

.view-details .list-view .table {
    width: 100%;
    font-size: 14px;
}

.view-details .list-view thead {
    border-top: 1px solid var(--border-color);
}

.view-details .list-view th {
    background-color: white;
    color: black;
    font-weight: bold;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.view-details .list-view th:first-child,
.view-details .list-view td:first-child {
    width: 25%;
}

.view-details .list-view th:last-child {
    border-right: none;
}

.view-details .list-view td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    vertical-align: top;
}

.view-details .list-view td:last-child {
    border-right: none;
}

.view-details .list-view tr:last-child th,
.view-details .list-view tr:last-child td {
    border-bottom: 0;
}

.view-details .list-view .contact-info {
    font-size: 14px;
}

.view-details .list-view .timeline {
    font-size: 14px;
}

.project-files {
    width: 100%;
}

.project-files:not(:last-child) {
    padding-bottom: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.project-files .files-grid {
    margin-top: 12px;
    margin-bottom: 0;
}


.select2-container--default .select2-selection--single {
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: var(--primary-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 24px;
    background-image: url('../images/icons/angle-down.svg');
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: right 6px center;
    pointer-events: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
    padding: 9px 16px;
    padding-right: 30px;
    line-height: inherit;
    color: var(--black-color);
    min-height: 42px;
    text-transform: capitalize;
}

.select2-dropdown {
    border-color: var(--border-color);
    border-radius: 8px;
}

.select2-search--dropdown {
    padding: 5px;
}

.select2-results__option[aria-selected] {
    font-size: 14px;
    padding: 8px 16px;
    color: var(--black-color);
    text-transform: capitalize;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0px;
    right: 0px;
    width: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-size: 14px;
    color: #999;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 30px;
    border-radius: 4px;
    padding: 0 12px;
    color: var(--black-color);
    border-color: var(--primary-color);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 18px;
    height: 100%;
    color: var(--text-color);
    line-height: inherit;
    margin-top: -3px;
    margin-right: 2px;
}

.select2-container--default .select2-results__option[aria-disabled=true] {
    font-size: 14px;
}

.select2-results__option {
    font-size: 14px;
}

.quote-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-form .form-group:not(:last-child) {
    margin-bottom: 15px;
}

.quote-form .form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin: 0;
}

.quote-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--white-color);
}

.quote-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.quote-form .form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.quote-form .btn-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.quote-steps .progress-container {
    margin: 0 7px 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-steps .progress-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quote-steps .progress-step {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    background-color: #f3f4f6;
    color: #565e6c;
}

.quote-steps .progress-step.inactive {
    background-color: #f3f4f6;
    color: #565e6c;
}

.quote-steps .progress-step.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.quote-steps .progress-step.completed {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0;
}

.quote-steps .progress-line {
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
    margin: 0 -8px;
}

.quote-steps .progress-labels {
    display: flex;
    justify-content: space-between;
    padding-left: 5px;
}

.quote-steps .progress-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #565e6c;
    flex: 1;
    text-align: center;
}

.quote-steps .progress-label:nth-child(2) {
    padding-left: 9.2%;
}

.quote-steps .progress-label:nth-child(3) {
    padding-left: 9.4%;
}

.quote-steps .progress-label.active {
    color: var(--black-color);
    font-weight: 500;
}

.quote-steps .progress-label:first-child {
    text-align: left;
}

.quote-steps .progress-label:last-child {
    text-align: right;
}

.quote-stepview {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

@media (max-width: 1199px) {
    .quote-stepview {
        gap: 15px;
        flex-direction: column;
    }
}

.quote-stepview .custom-table .table {
    min-width: 700px;
}

.quote-stepview .custom-table {
    overflow: auto;
}

.quote-stepview .quote-stepview__left {
    width: calc(100% - 330px);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

@media (max-width: 1199px) {
    .quote-stepview .quote-stepview__left {
        width: 100%;
    }
}

.quote-stepview .quote-stepview__right {
    width: 300px;
    min-width: 300px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.quote-stepview .quote-stepview__full {
    width: 100%;
}

.quote-stepview .stepview-title {
    margin-bottom: 25px;
}

.quote-stepview .custom-table th,
.quote-stepview .custom-table td {
    text-align: center;
}

.quote-stepview .custom-table th:first-child,
.quote-stepview .custom-table td:first-child {
    text-align: left;
}

.quote-stepview .custom-table .label {
    font-size: 14px;
    font-weight: 500;
}

.quote-stepview .custom-table .actions-td {
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    gap: 8px;
    width: 100%;
}

.quote-stepview .custom-table .form-input {
    padding: 10px 16px;
    max-width: 100%;
}

@media (max-width: 1480px) {
    .quote-stepview .custom-table .form-input {
        padding: 9px 14px;
        max-width: 100%;
    }
}

.quote-stepview .custom-table .form-input::placeholder {
    color: #565E6C;
}

.t_tag {
    width: 16px;
    height: 20px;
    font-size: 12px;
    font-weight: 400;
    background-color: #eaffe8;
    color: var(--primary-color);
    border: 1px solid var(--white-color);
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.quote-stepview .t_tag {
    margin-left: 15px;
}

.quantity-controls {
    width: 100%;
    max-width: 96px;
    min-width: 85px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    background-color: #eaffe8;
    border-radius: 4px;
}

.quantity-controls .quantity-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    color: var(--black-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.25s ease-in-out;
}

.quantity-controls .quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.quantity-controls .quantity-input {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background-color: transparent;
    appearance: none;
}

.quantity-controls input[type=number]::-webkit-inner-spin-button,
.quantity-controls input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.quote-stepview__right .summary-card {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quote-stepview__right .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.quote-stepview__right .summary-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
}

.quote-stepview__right .summary-amount {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.quote-stepview__right .grand-total {
    padding-top: 15px;
    border-top: 1px solid #dee1e6;
    margin-bottom: 0;
}

.quote-stepview__right .grand-total .summary-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.quote-stepview__right .grand-total .summary-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.step-footer {
    background-color: var(--white-color);
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
}

.step-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-footer .step-indicator {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: #565e6c;
}

.step-footer .footer-actions {
    display: flex;
    gap: 14px;
}

.quote-accordion {}

.quote-accordion__item {}

.quote-accordion__item:not(:last-child) {
    margin-bottom: 20px;
}

.quote-accordion__header {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    padding: 17px 25px;
    padding-right: 35px !important;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.quote-accordion__header .quote-accordion__icon {
    position: absolute;
    right: 0;
    top: 42%;
    right: 20px;
    font-size: 12px;
    width: auto;
    height: auto;
    transform: rotate(-90deg) translateY(-50%);
    transition: all .25s ease-in-out;
}

.quote-accordion__header.active .quote-accordion__icon {
    top: 50%;
    transform: rotate(0deg) translateY(-50%);
}

.quote-accordion__body {
    display: none;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;
    padding: 30px 20px 20px;
    margin-top: -10px;
}

.quote-accordion__body input::placeholder {
    color: #565E6C;
}

.quote-stepview .add-btn {
    display: inline-flex;
    background-color: #EAFFE8;
    border: 1px solid #00000000;
    color: var(--primary-color);
    white-space: nowrap;
}

.quote-stepview__summary {
    width: 100%;
}

.quote-stepview__summary .summary-card {
    background-color: var(--primary-color-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

@media (max-width: 1199px) {
    .quote-stepview__summary .summary-card {
        padding: 20px;
    }
}

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

.quote-stepview__summary .summary-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    color: #171a1f;
    margin-bottom: 20px;
}

.quote-stepview__summary .final-total-section {
    text-align: right;
}

.quote-stepview__summary .final-total-label {
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    color: #171a1f;
    margin-bottom: 6px;
}

.quote-stepview__summary .final-total-amount {
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    color: #0f8300;
}

.quote-stepview__summary .summary-divider {
    width: 100%;
    height: 1px;
    background-color: #bcc1ca;
    margin: 25px 0;
}

.quote-stepview__summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quote-stepview__summary .summary-item:last-child {
    margin-bottom: 0;
}

.quote-stepview__summary .item-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: #171a1f;
}

.quote-stepview__summary .item-price {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: #323842;
}

@media (max-width: 1199px) {
    .quote-stepview__summary .summary-title {
        font-size: 18px;
    }

    .quote-stepview__summary .final-total-label {
        font-size: 16px;
    }

    .quote-stepview__summary .final-total-amount {
        font-size: 20px;
    }

    .quote-stepview__summary .item-description {
        font-size: 16px;
    }

    .quote-stepview__summary .item-price {
        font-size: 16px;
    }

    .quote-stepview__summary .summary-item {
        margin-bottom: 10px;
    }

    .quote-stepview__summary .summary-divider {
        margin: 20px 0;
    }
}

.quote-stepview__summary .total-row .item-description,
.quote-stepview__summary .total-row .item-price {
    font-weight: 700;
}

.quote-stepview__summary .summary-section>p:not(:last-child) {
    margin-bottom: 10px;
}

.validation-msg {
    font-size: 12px;
    margin-top: 3px;
    color: var(--error-color);
}

.quote-stepview.success-step .quote-stepview__full {
    text-align: center;
    padding: 40px;
    max-width: 550px;
    margin: auto;
    background-color: var(--primary-color-light);
    border-radius: 20px;
}

@media (max-width: 991px) {
    .quote-stepview.success-step .quote-stepview__full {
        padding: 30px 20px;
    }
}

.success-step .success-step__icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-step .success-step__icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-step .success-step__title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-step .success-step__description {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.success-step .success-step__flex {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 1550px) {
    .success-step .success-step__flex {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1550px) {
   .dashboard {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        max-height: none;
        height: 100vh;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header {
        gap: 15px;
        padding: 13.5px 30px;
    }

    .search-bar {

        min-width: 250px;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .form-container {
        padding: 30px;
    }

    .custom-table .table-wrapper {
        overflow-x: auto;
        overflow-y: visible;
    }

    .table {
        min-width: 600px;
    }
}

@media (max-width: 1480px) {


    .dashboard {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        max-height: none;
        height: 100vh;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header {
        padding: 14px 20px;

        gap: 12px;
    }

    .search-bar {
        width: 100%;
        max-width: 400px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .content {
        padding: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .table {
        font-size: 13px;
        min-width: 600px;
    }

    .form-container {
        padding: 25px;
    }


    .custom-table .table-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 1370px) {


    .dashboard {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        max-height: none;
        height: 100vh;
        padding: 16px 0 20px;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .nav-section {
        margin-bottom: 30px;
        display: block;
        vertical-align: top;
        min-width: auto;
        margin-right: 0;
    }

    .nav-item {
        padding: 10px 20px;
        font-size: 14px;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header {
        padding: 12px 15px;
    }

    .search-bar {
        width: 100%;
        max-width: 350px;
    }

    .content {
        padding: 15px;
    }

    .content-header {
        align-items: flex-start;
    }

    .content-title {
        font-size: 20px;
    }

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

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 10px 15px;
    }
}

@media (max-width: 1280px) {


    .dashboard {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        max-height: none;
        height: 100vh;
        padding: 16px 0 20px;
    }

    .nav-section h3 {
        padding: 0 20px;
    }

    .nav-item i {
        width: 16px;
        font-size: 14px;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .header-actions {
        width: auto;
        justify-content: flex-end;
    }

    .content-title {
        font-size: 18px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card .value {
        font-size: 24px;
    }

    .form-title {
        font-size: 20px;
    }


    .table {

        min-width: 600px;
        display: table;
    }

    .table thead {
        display: table-header-group;
    }

    .table tbody {
        display: table-row-group;
    }

    .table tbody tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .table td::before {
        display: none;
    }

    .custom-table .table-wrapper {
        overflow-x: auto;
        overflow-y: visible;
    }
}

@media (max-width: 1199px) {


    .dashboard {
        flex-direction: column;
    }


    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        display: block !important;
        background-color: #f1f3f4;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar.mobile-open {
        width: 250px !important;
        min-width: 250px !important;
        left: 0;
        top: 0;
    }


    .sidebar-overlay-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sidebar-overlay-mobile.active {
        display: block;
    }


    .topbar {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: space-between;
    }


    .main-content {
        width: 100%;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }


    .topbar {
        padding: 10px 12px;
    }

    .topbar-row-1 {
        margin-bottom: 0;
    }

    .topbar-toggle {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .topbar .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .table {
        min-width: 600px;
        display: table !important;
    }

    .custom-table .table-wrapper {
        overflow-x: auto;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .content-header {
        margin-bottom: 20px;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-bar {
        margin-left: 35px;
    }

    .stat-card .value {
        font-size: 20px;
    }

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

    .form-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

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

    .form-navigation {
        gap: 20px;
    }

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

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 15px;
    }

    .file-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 1050px) {
    .dashboard {
        flex-direction: column;
    }

    .nav-section {
        margin-bottom: 20px;
    }

    .nav-item i {
        width: 12px;

    }

    .main-content {
        width: 100%;
    }

    .header-btn {
        padding: 6px 16px;

    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 12px;
    }

    .file-card {
        padding: 10px;
    }
}

@media (max-width: 991px) {
    .dashboard {
        flex-direction: column;
    }

    .logo {
        gap: 6px;
    }

    .main-content {
        width: 100%;
    }

    .header-btn {
        gap: 4px;
    }

    .content-header {
        margin-bottom: 15px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .action-buttons {
        gap: 6px;
    }

    .btn {
        gap: 4px;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-fields {
        margin-bottom: 20px;
    }

    .file-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .modal-content {
        padding: 15px;
        width: 95%;
    }

    .table {
        min-width: 1000px;
    }

    .list-view,
    .responsive-table {
        overflow: auto;
    }
}

.company-settings-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

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

.company-settings-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.company-settings-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 5000;
    transition: color 0.2s ease;
}

.company-settings-link:hover {
    text-decoration: underline;
}

.company-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
}

.company-settings-item {
    line-height: 1.6;
}

.company-settings-label {
    color: #374151;
    font-weight: 600;
}

.settings-main {
    background: linear-gradient(135deg, #f0f9f0 0%, #f8f9fa 100%);
    min-height: calc(100vh - 60px);
}

.settings-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #22c55e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.settings-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.settings-container {
    margin-top: 20px;
}

.settings-tabs {
    background: var(--white-color);
    border-radius: 12px 12px 0 0;
    padding: 5px 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-bottom: none;
    margin-bottom: 0;
}


.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-content.active {
    display: block;
}

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

.settings-card {
    background: var(--white-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-top: none;
    overflow: hidden;
    margin-bottom: 30px;
}

.settings-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 24px 30px;
    border-bottom: 2px solid #f1f3f4;
}

.settings-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.settings-section-title i {
    color: var(--primary-color);
    font-size: 18px;
}

.settings-card-body {
    padding: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-field label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin: 0;
}

.field-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.5;
    font-style: italic;
}

.settings-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.settings-field select {
    cursor: pointer;
    appearance: none;
    background-image: url('../images/icons/angle-down.svg');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.settings-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 4px;
}

.checkbox-wrapper span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
}

.save-settings-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
    margin: 0;
}

.save-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    background-color: #15803d;
}

.save-settings-btn:active {
    transform: translateY(0);
}

.save-settings-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.save-settings-btn i {
    font-size: 14px;
}

@media (max-width: 991px) {
    .settings-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .settings-header-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .settings-card-header {
        padding: 20px 24px;
    }

    .settings-card-body {
        padding: 24px;
    }

    .settings-section-title {
        font-size: 18px;
    }

    .settings-tabs {
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .settings-tabs .tab {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-card-header {
        padding: 18px 20px;
    }

    .settings-card-body {
        padding: 20px;
    }

    .save-settings-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .settings-tabs {
        padding: 0 10px;
    }

    .settings-tabs .tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .settings-tabs .tab i {
        font-size: 12px;
    }
}