:root {
    --primary-start: #001f34;
    --primary-end: #001f34;
    --sidebar-color-start: #001f34;
    --sidebar-color-end: #001f34;
    --link-color: #179283;
    --bs-primary: #179283;
    --bs-primary-rgb: 23, 146, 131;
    --logo-size: 200px;
    --meeting-logo-size: 300px;
    --bs-body-font-size: 14px;
    --app-font-family: "Verdana", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
    font-family: var(--app-font-family);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary.active,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle {
    background: var(--link-color, #179283) !important;
    border-color: var(--link-color, #179283) !important;
    box-shadow: none !important;
}

a.text-primary,
.text-primary {
    color: var(--link-color, #179283) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--link-color, #179283) !important;
    border-color: var(--link-color, #179283) !important;
    color: #fff !important;
}

.pagination .page-link {
    color: var(--link-color, #179283);
}

.pagination .page-link:hover {
    color: var(--link-color, #179283);
    border-color: var(--link-color, #179283);
}

.list-group-item.active {
    z-index: 2;
    color: #fff !important;
    background-color: var(--link-color, #179283) !important;
    border-color: var(--link-color, #179283) !important;
}

.list-group-item.active a {
    color: #fff !important;
}

.modal-header {
    border-bottom: 0;
}

.modal-footer {
    border-top: 0;
}

.table-col-select {
    width: 36px;
}

.badge-clickable {
    cursor: pointer;
}

.badge-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-flex;
    padding: 0;
}

/* ===========================
   Project Show
   =========================== */
.project-status-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.progress-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: conic-gradient(var(--ring-color, var(--link-color)) 0 var(--progress), #e2e8f0 var(--progress) 100%);
}

.progress-ring-inner {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(148, 163, 184, 0.25);
}

.progress-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--link-color);
}

.progress-label {
    font-size: 0.75rem;
    color: #64748b;
}

.gantt-shell {
    border-radius: 0;
    padding: 18px;
}

.gantt-board {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.gantt-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: #f8fafc;
    color: #1f2937;
}

.gantt-body .gantt-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-top: 1px solid #e2e8f0;
}

.gantt-col-title {
    padding: 14px 16px;
    color: #1f2937;
    font-weight: 600;
}

.gantt-task-name {
    font-weight: 600;
    color: #1f2937;
}

.gantt-col-grid {
    padding: 12px 16px;
}

.gantt-months {
    display: flex;
    gap: 0;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}

.gantt-month {
    text-align: center;
    padding: 12px 6px;
    font-weight: 600;
    color: #64748b;
    border-left: 1px solid #e2e8f0;
}

.gantt-track {
    position: relative;
    height: 30px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.gantt-bar {
    position: absolute;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 20px;
    white-space: nowrap;
}

.gantt-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 30px;
    background: #fff;
    border-radius: 5px;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.gantt-handle.start {
    left: -6px;
}

.gantt-handle.end {
    right: -6px;
}

.gantt-empty {
    color: #64748b;
    font-size: 12px;
    padding-left: 8px;
}

.gantt-bar-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-bar-dates {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.gantt-exporting .gantt-handle {
    display: none;
}

.gantt-plan {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--sidebar-color-start) 20%, transparent),
        color-mix(in srgb, var(--sidebar-color-end) 20%, transparent)
    );
}

.gantt-progress {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--link-color);
}

.gantt-today {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 38px;
    background: #ef4444;
}

.gantt-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #64748b;
}

.summary-list .row + .row {
    margin-top: 8px;
}

.team-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.team-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.project-team-card {
    width: 70px;
}

.project-attachments-list {
    max-height: 300px;
    overflow-y: auto;
}

.project-manager-list .list-group-item.active,
.project-team-list .list-group-item.active,
#projectManagerModal .list-group-item.active,
#projectTeamModal .list-group-item.active {
    z-index: 2;
    color: #fff !important;
    background-color: var(--link-color) !important;
    border-color: var(--link-color) !important;
}

.picker-name {
    color: var(--link-color);
}

.project-manager-list .list-group-item.active .picker-name,
.project-team-list .list-group-item.active .picker-name,
#projectManagerModal .list-group-item.active .picker-name,
#projectTeamModal .list-group-item.active .picker-name,
.project-manager-list .list-group-item.active a,
.project-team-list .list-group-item.active a,
#projectManagerModal .list-group-item.active a,
#projectTeamModal .list-group-item.active a {
    color: #fff !important;
}

.select2-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select2-user-item .avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.select2-user-item .avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.task-modal-form-column {
    background: #fff;
    border-right: 1px solid #e2e8f0;
}

.task-comments-list {
    margin-top: 12px;
}

.task-comment-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid var(--link-color);
    font-size: 13px;
}

.task-comment-item:last-child {
    margin-bottom: 0;
}

.task-comment-item .comment-user {
    display: flex;
    align-items: center;
    
    margin-bottom: 4px;
}

.task-comment-item .comment-user-name {
    font-weight: 600;
    color: var(--link-color);
}

.comment-avatar {
    margin-right: 5px;
    margin-bottom: 5px;
}

.task-comment-item .comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.task-comment-item .comment-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #111;
    font-weight: 700;
    font-size: 12px;
}

.task-comment-item .comment-text {
    color: #2d3748;
    margin-bottom: 6px;
}

.task-comment-item .comment-time {
    color: #a0aec0;
    font-size: 11px;
}

.task-comment-item .comment-delete {
    font-size: 11px;
    cursor: pointer;
    color: #e53e3e;
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
}

.project-comment-input {
    height: 300px;
}

.task-attachments-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f8fafc;
    border-radius: 0;
}

.task-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
}

.task-attachment-item:last-child {
    margin-bottom: 0;
}

.attachment-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    font-size: 18px;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-name:hover {
    color: #3b82f6;
}

.attachment-size {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.attachment-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
}

.settings-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.settings-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #f7fafc;
    background: #fafbfc;
}

.tab-item {
    flex: 1;
}

.tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-link:hover {
    background: #f7fafc;
    color: var(--link-color);
}

.tab-link.active {
    color: var(--link-color);
    background: #fff;
    border-bottom-color: var(--link-color);
}

.tab-content-wrapper {
    padding: 32px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ticket-status-badge,
.ticket-priority-badge {
    font-size: 12px;
    text-transform: capitalize;
}

.ticket-status-badge {
    color: #fff;
    background-color: var(--ticket-status-default, #6c757d);
}

.ticket-status-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-flex;
    background-color: var(--ticket-status-default, #6c757d);
}

.ticket-status--open { background-color: var(--ticket-status-open, #0d6efd); }
.ticket-status--in_progress { background-color: var(--ticket-status-in_progress, #0dcaf0); }
.ticket-status--in-progress { background-color: var(--ticket-status-in_progress, #0dcaf0); }
.ticket-status--waiting { background-color: var(--ticket-status-waiting, #ffc107); color: #111827; }
.ticket-status--resolved { background-color: var(--ticket-status-resolved, #198754); }
.ticket-status--closed { background-color: var(--ticket-status-closed, #6c757d); }
.ticket-status--cancelled { background-color: var(--ticket-status-cancelled, #dc3545); }

.ticket-search-row { flex-wrap: wrap; }
.ticket-search-row .form-control,
.ticket-search-row .form-select,
.ticket-search-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.ticket-search-btn { flex: 0 0 auto; }
.ticket-col-id { width: 36px; }
.ticket-clickable { cursor: pointer; }

.ticket-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 13px;
}

.ticket-message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure full conversation is visible without scroll */
.ticket-message-list {
    max-height: none !important;
    overflow: visible !important;
}

.ticket-message {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
}

.ticket-message--internal {
    background: #fff7ed;
    border-color: #fed7aa;
}

.ticket-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: #6b7280;
}

.ticket-message-body {
    color: #111827;
    white-space: pre-wrap;
}

.ticket-filter-panel,
#filterPanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.ticket-filter-panel.open,
#filterPanel.open {
    right: 0;
}

.ticket-filter-overlay,
#filterOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.35);
    z-index: 1040;
    display: none;
}

.filter-panel-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.filter-panel-body {
    padding: 20px;
}

@media (max-width: 768px){
    .ticket-filter-panel,
    #filterPanel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 767px) {
    .ticket-search-row {
        flex-direction: column;
    }
    .ticket-search-row .form-control,
    .ticket-search-row .form-select,
    .ticket-search-row .btn {
        width: 100%;
        height: auto;
        min-height: unset;
    }
}

.ticket-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.user-card {
    position: relative;
}

.user-select-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.user-search-row {  flex-wrap: wrap; }
.user-search-field {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.user-search-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.user-search-btn { flex: 0 0 auto; }
.user-col-select { width: 36px; }
.user-inline-select {
    width: auto;
    display: inline-block;
}
.user-badge-clickable { cursor: pointer; }
.announcement-dept-badge-clickable { cursor: pointer; }
.announcement-col-select { width: 36px; }
.announcement-dept-badge{
    display: inline-block;
    /* Match the app's badge styling (see `.badge` override) */
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}
.announcement-react-btn {
    --reaction-color: #6c757d;
    border-color: var(--reaction-color);
    color: var(--reaction-color);
    background: #fff;
    font-weight: 600;
}
.announcement-react-btn:hover,
.announcement-react-btn.active {
    border-color: var(--reaction-color);
    background: var(--reaction-color);
    color: #fff;
}
.announcement-react-btn i {
    margin-right: 4px;
}
.announcement-react-btn .reaction-count {
    min-width: 1.2rem;
    display: inline-block;
    text-align: center;
}
.announcement-reaction-picker .form-check-label {
    cursor: pointer;
}
.announcement-reaction-pill {
    --reaction-color: #6c757d;
    background: var(--reaction-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.user-role-badge,
.role-count-badge,
.user-option-badge {
    background-color: var(--user-role-color, #6c757d);
    color: #fff;
}

.user-status-badge {
    color: #fff;
    background-color: #6c757d;
}
.user-status--active { background-color: #10b981; }
.user-status--pending { background-color: #f59e0b; }
.user-status--inactive { background-color: #6c757d; }

.role-card {
    position: relative;
}

.role-select-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.role-icon {
    background: var(--role-gradient, linear-gradient(135deg,#001f34 0%,#001f34 100%));
}

.role-stats .stat-item i {
    color: var(--role-accent, #001f34);
}

.department-card {
    --role-accent: var(--link-color, #001f34);
}

.designation-card {
    --role-accent: var(--link-color, #001f34);
}

/* HR Leaves */
.leave-filter-row {  flex-wrap: wrap; }
.leave-filter-row .form-control,
.leave-filter-row .form-select,
.leave-filter-row .select2-container,
.leave-filter-control {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.leave-filter-action { flex: 0 0 auto; }
.leave-clickable { cursor: pointer; }
.leave-status-action { cursor: pointer; display: inline-flex; }
.leave-kanban-scroll { overflow-x: auto; padding: 0 0 10px 0; }
.leave-kanban-column {
    flex: 0 0 320px;
    background: #f8f9fa;
    border-radius: 0px;
    padding: 0;
}
.leave-card { position: relative; }
.kanban-board .kanban-column .leave-card {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}
.kanban-board .kanban-column .leave-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: var(--link-color, #001f34);
}
.leave-select-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.leave-avatar,
.leave-avatar-initials {
    width: 30px;
    height: 30px;
    border-radius: 0px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.table .leave-avatar {
    width: 30px;
    height: 30px;
}
.table .leave-avatar-initials {
    width: 28px;
    height: 28px;
    font-size: 12px;
}
.leave-type-badge {
    display: inline-flex;
    align-items: center;
    
}
.leave-type-option {
    display: inline-flex;
    align-items: center;
    
}
.leave-type-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.08);
    display: inline-block;
}
.leave-status-badge { display: inline-block; }
.leave-view-text {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow: auto;
}
.leave-reason-textarea-lg { min-height: 400px; max-height: 500px; resize: vertical; overflow-y: auto; }
.leave-reason-textarea-md { min-height: 400px; max-height: 500px; resize: vertical; overflow-y: auto; }
#leavesPage textarea { max-height: 500px; overflow-y: auto; }
.leave-empty-icon { font-size: 24px; opacity: 0.5; }
.leave-empty-icon-lg { font-size: 32px; opacity: 0.5; }

/* HR Recruitment */
.recruitment-filter-row {  flex-wrap: wrap; }
.recruitment-filter-row .form-control,
.recruitment-filter-row .form-select,
.recruitment-filter-row .select2-container,
.recruitment-filter-control {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.recruitment-filter-action { flex: 0 0 auto; }
.recruitment-col-select { width: 36px; min-width: 36px; }
.recruitment-card { position: relative; }
.job-select-wrap{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.recruitment-badge {
    background-color: var(--badge-color, #6c757d);
    color: var(--badge-text, #fff);
}
.recruitment-badge-clickable { cursor: pointer; }
.recruitment-count-badge {
    background-color: var(--badge-color, #6c757d);
    color: var(--badge-text, #fff);
}
.recruitment-textarea-lg { min-height: 300px; resize: vertical; }
.recruitment-textarea-md { min-height: 300px; resize: vertical; }
.recruitment-option {
    display: flex;
    align-items: center;
    
}
.recruitment-option::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--option-color, #6c757d);
}
.recruitment-option-text { font-weight: 600; }
.recruitment-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.recruitment-toast.is-hidden { opacity: 0; }
.recruitment-toast-success { background: #10b981; }
.recruitment-toast-error { background: #ef4444; }

/* HR Candidates */
.candidate-avatar{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #111827;
    font-weight: 600;
    margin-right: 10px;
    flex: 0 0 auto;
}
.candidate-meta{ min-width: 0; }
.candidate-email{ font-size: 0.85rem; }
.candidate-search-btn{ height: calc(2.5em + .75rem + 2px); }
.candidate-status-badge{ cursor: pointer; }
.candidate-badge{
    background-color: var(--badge-color, #6c757d);
    color: var(--badge-text, #fff);
}
.candidate-count-badge{
    background-color: var(--badge-color, #6c757d);
    color: var(--badge-text, #fff);
}
.candidate-col-select{ width: 40px; min-width: 40px; }
.candidate-select-wrap{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.candidate-card{ position: relative; }
.payroll-filter-row {  flex-wrap: wrap; }
.payroll-filter-row .form-control,
.payroll-filter-row .form-select,
.payroll-filter-row .select2-container,
.payroll-filter-control {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.payroll-filter-action { flex: 0 0 auto; }
.finance-filter-row {  flex-wrap: wrap; }
.finance-filter-row .form-control,
.finance-filter-row .form-select,
.finance-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.finance-filter-action { flex: 0 0 auto; }
.candidate-kanban-scroll{ overflow-x: auto; padding: 0 0 10px 0; }
.candidate-kanban-column{
    min-width: 320px;
    background: #f8f9fa;
    border-radius: 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.kanban-board .kanban-column.candidate-kanban-column .card{
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}
.kanban-board .kanban-column.candidate-kanban-column .card:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: var(--link-color, #001f34);
}
.candidate-status-option{
    display: flex;
    align-items: center;
    
}
.candidate-status-dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot-color, #6c757d);
    display: inline-block;
}
.select2-container--open{ z-index: 1065; }
.kanban-scroll-wrapper::-webkit-scrollbar{ height: 8px; }
.kanban-scroll-wrapper::-webkit-scrollbar-track{ background:#f1f1f1; border-radius:10px; }
.kanban-scroll-wrapper::-webkit-scrollbar-thumb{ background:#ccc; border-radius:10px; }
.kanban-scroll-wrapper::-webkit-scrollbar-thumb:hover{ background:#999; }
.leave-empty-wrap { width: 100%; }
.kanban-loader { text-align: center; padding: 10px; }

.role-col-select { width: 36px; }

.role-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.role-color-swatch.active {
    border-color: var(--link-color, #001f34);
    box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
}

.role-filter-panel,
.role-filter-panel.open {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.role-filter-panel.open {
    right: 0;
}

.role-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.35);
    z-index: 1040;
    display: none;
}

@media (max-width: 768px){
    .role-filter-panel {
        width: 100%;
        right: -100%;
    }
}

.timelog-col-select { width: 36px; }

.avatar-20 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initials-20 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #2d3748;
}

.user-filter-panel,
#filterPanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.user-filter-panel.open,
#filterPanel.open {
    right: 0;
}

.user-filter-overlay,
#filterOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.35);
    z-index: 1040;
    display: none;
}

@media (max-width: 768px){
    .user-filter-panel,
    #filterPanel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 767px) {
    .user-search-row {
        flex-direction: column;
    }
    .user-search-row .form-control,
    .user-search-row .form-select,
    .user-search-row .btn {
        width: 100%;
        height: auto;
        min-height: unset;
    }
}
/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--app-font-family);
    background: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
      font-size: 14px;
}

/* ===========================
   Utility Helpers
   Reusable spacing, flex, text, and radius helpers to replace inline styles
   =========================== */
.min-w-0 { min-width: 0 !important; }
.flex-1-0 { flex: 1 1 0 !important; }
.flex-0-auto { flex: 0 0 auto !important; }
.gap-6 { gap: 6px !important; }
.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.fs-14 { font-size: 14px !important; }
.fs-12 { font-size: 12px !important; }
.rounded-8 { border-radius: 0px !important; }
.rounded-10 { border-radius: 10px !important; }
.text-amber-500 { color: #f59e0b !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #78350f !important; }
.bg-amber-50 { background-color: #fff7ed !important; }
.text-pre-wrap { white-space: pre-wrap !important; }

/* ===========================
   Layout & Brand Helpers
   =========================== */
.sidebar-gradient {
    background: linear-gradient(135deg, var(--sidebar-color-start, var(--primary-start, #001f34)) 0%, var(--sidebar-color-end, var(--primary-end, #001f34)) 100%);
}

.link-color {
    color: var(--link-color, #001f34) !important;
}

.link-color:hover,
.link-color:focus {
    color: var(--link-color, #001f34) !important;
}

.sidebar .menu-item,
.sidebar .submenu-item,
.sidebar .menu-item .menu-link,
.sidebar .menu-item .menu-text,
.sidebar .submenu-item .menu-text {
    color: var(--link-color, #001f34);
}

.menu-action-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    text-align: left;
    width: 100%;
}

.footer-shadow {
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

/* ===========================
   Settings-style Tabs
   =========================== */
.settings-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #f7fafc;
    background: #fafbfc;
}

.settings-tabs .tab-item {
    flex: 1;
}

.settings-tabs .tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    background: transparent;
    width: 100%;
}

.settings-tabs .tab-link:hover {
    background: #f7fafc;
    color: var(--link-color, #001f34);
}

.settings-tabs .tab-link.active {
    color: var(--link-color, #001f34);
    background: #fff;
    border-bottom-color: var(--link-color, #001f34);
}

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

.settings-tabs .nav-link {
    border: none;
}

.settings-tabs .nav-link:focus,
.settings-tabs .nav-link:focus-visible {
    box-shadow: none;
    outline: none;
}

/* Lead modal email list sizing */
.lead-emails-table .col-from,
.lead-emails-table .col-to {
    width: 140px;
    max-width: 140px;
}

.lead-emails-table .col-subject {
    width: 220px;
    max-width: 220px;
}

.lead-emails-table td.col-from,
.lead-emails-table td.col-to,
.lead-emails-table td.col-subject {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-emails-table td.col-related,
.lead-emails-table td.col-date,
.lead-emails-table td.col-status {
    white-space: nowrap;
}

/* ===========================
   Avatars
   =========================== */
.avatar-42 { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.avatar-32 { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-20 { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.avatar-28 { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-initials-32 { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: #475569; font-weight: 600; }
.avatar-initials-28 { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #475569; font-weight: 600; line-height: 28px; }
.avatar-initials-20 { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; font-size: 12px; }

/* ===========================
    Picker (Assignees) Styles
    =========================== */
.picker-item { cursor: pointer; }
.picker-name { color: var(--link-color, #001f34); font-weight: 600; }
.ticket-assignees-list .form-check-input { margin-top: 0; }

/* ===========================
   Form & Input Helpers
   =========================== */
.filter-toolbar { display: flex; width: 100%; align-items: stretch; flex-wrap: wrap;  }
.filter-toolbar .form-control,
.filter-toolbar .form-select,
.filter-toolbar .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.filter-toolbar button { flex: 0 0 auto; }
.textarea-tall { min-height: 300px; max-height: 60vh; overflow: auto; }
.textarea-xl { min-height: 400px; max-height: 60vh; overflow: auto; }
.textarea-md { min-height: 260px; max-height: 60vh; overflow: auto; }

/* ===========================
   Finance: Invoices
   =========================== */
.invoice-col-select { width: 36px; }
.invoice-status-badge { color: #fff; }
.invoice-status-badge.status-draft { background: #6b7280; }
.invoice-status-badge.status-sent { background: #3b82f6; }
.invoice-status-badge.status-paid { background: #10b981; }
.invoice-status-badge.status-overdue { background: #ef4444; }
.status-edit-container .status-badge { cursor: pointer; }
.invoice-item-col-qty { width: 120px; }
.invoice-item-col-unit { width: 160px; }
.invoice-item-col-actions { width: 80px; }
.invoice-tax-col-type { width: 140px; }
.invoice-tax-col-value { width: 160px; }
.invoice-tax-col-amount { width: 140px; }
.invoice-tax-col-actions { width: 80px; }
.kanban-loader { text-align: center; padding: 10px; }

/* ===========================
   Finance: Payments
   =========================== */
.payment-col-select { width: 36px; }
.payment-method-badge { color: #fff; background: #6c757d; }
.method-edit-container .method-badge { cursor: pointer; }

/* ===========================
   Finance: Expenses
   =========================== */
.expense-col-select { width: 36px; }
.expense-status-badge { color: #fff; }
.expense-status-badge.status-approved { background: #10b981; }
.expense-status-badge.status-pending { background: #f59e0b; }
.expense-status-badge.status-rejected { background: #6b7280; }

/* ===========================
   Finance: Budgets
   =========================== */
.budget-col-select { width: 36px; }
.budget-item-col-amount { width: 180px; }
.budget-item-col-actions { width: 80px; }
.budget-status-badge { color: #fff; }
.budget-status-badge.status-active { background: #10b981; }
.budget-status-badge.status-archived { background: #6b7280; }

/* ===========================
   Email Templates
   =========================== */
.template-status-badge { cursor: pointer; }
.template-status-swatch { width: 12px; height: 12px; display: inline-block; border-radius: 2px; }
.template-status-swatch-enabled { background: #10b981; }
.template-status-swatch-disabled { background: #6c757d; }
.email-template-edit .variables-list { max-height: 400px; overflow-y: auto; }
.email-template-edit .variable-item {
    padding: 12px;
    background: #f7fafc;
    border-radius: 0px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.email-template-edit .variable-item:hover { background: #edf2f7; transform: translateX(5px); }
.email-template-edit .variable-code {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: var(--link-color, #001f34);
    border: 1px solid #e2e8f0;
    display: inline-block;
    margin-bottom: 5px;
}
.email-template-edit code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.email-template-edit .note-editor.note-frame { border: 2px solid #e2e8f0; border-radius: 10px; }
.email-template-edit .note-editor.note-frame .note-statusbar { background: #f7fafc; border-top: 1px solid #e2e8f0; }

/* ===========================
   Finance: Journals
   =========================== */
.journal-col-select { width: 36px; }
.journal-line-col-type { width: 160px; }
.journal-line-col-amount { width: 160px; }
.journal-line-col-actions { width: 80px; }

/* ===========================
   Tables & Cards
   =========================== */
.table-sm-text { font-size: 14px; }

/* ===========================
   Toast / Notification
   =========================== */
.app-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-toast {
    position: relative;
    padding: 12px 18px;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    color: #fff;
}

.app-toast-success { background: #10b981; }
.app-toast-error { background: #ef4444; }

.app-toast .toast-icon { margin-right: 8px; }

/* ===========================
   Dashboard: Google Calendar & Meetings
   =========================== */
.calendar-card { border: 1px solid #eef0f6; border-radius: 0px; }
.calendar-events { display: flex; flex-direction: column; gap: 12px; }
.calendar-event-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #eef0f6; border-radius: 12px; background: #fff; }
.calendar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--link-color, #001f34); margin-top: 6px; flex-shrink: 0; }
.calendar-event-title { font-weight: 700; }
.calendar-event-meta .calendar-badge { background: #eef2ff; color: #3730a3; border: 0; }
.calendar-badge.meet { background: #e0f2fe; color: #075985; }
.meeting-list { display: flex; flex-direction: column; gap: 12px; }
.meeting-item { padding: 12px; border: 1px solid #eef0f6; border-radius: 12px; background: #fff; }
.meeting-title { font-weight: 600; }
.meeting-badge { background: #f8fafc; color: #475569; border: 0; }
.meeting-badge.status { background: #ecfdf3; color: #166534; }
@media (max-width: 767.98px) {
    .calendar-event-row { flex-direction: column; }
    .calendar-dot { margin-top: 0; }
}

/* ===========================
   Header Timer Banner
   =========================== */

.header-timer-label { font-size: 12px; color: #78350f; font-weight: 600; }
.header-timer-value { font-size: 24px; font-weight: 700; color: #d97706; font-family: 'Courier New', monospace; line-height: 1.1; }
.header-timer-icon { color: #f59e0b; font-size: 18px; }

/* ===========================
   Footer & Sidebar Specific
   =========================== */
.sidebar-logo-img { width: var(--logo-size, 200px); height: auto; object-fit: contain; border-radius: 0px; }

/* ===========================
   Select2 Overrides
   =========================== */
.select2-container--default .select2-selection--single{
    height: 50px !important;
    padding: 12px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background-color: #f7fafc !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 50px !important;
    top: 0 !important;
    right: .75rem !important;
    display:flex;align-items:center;justify-content:center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: normal !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--multiple{
    min-height: 50px !important;
    padding: 10px 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
    padding: 4px 8px !important;
    border-radius: 0px !important;
    background: var(--link-color, #001f34) !important;
    color: #fff !important;
    margin-top: 1px !important;
    margin-right: 6px !important;
    border: 1px solid var(--link-color, #001f34) !important;
}
.select2-selection__choice__remove{
    height: 100% !important;
    color: #fff !important;
    border-right: 0px !important;
}
.select2-selection__choice__display{
    cursor: default !important;
    padding-left: 15px !important;
    padding-right: 5px !important;
}
.select2-user-item{display:flex;align-items:center;gap:8px}
.select2-user-item .avatar-sm{width:36px;height:36px;border-radius:50%;object-fit:cover;display:inline-block}
.select2-user-item .avatar-initials{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#6c757d;color:#fff;font-weight:700}
.select2-selection__rendered .avatar-sm{width:20px;height:20px;border-radius:50%;object-fit:cover;margin-right:6px}
.select2-selection__rendered .avatar-initials{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-right:6px;font-size:12px}

/* ===========================
   Overlay Filter Panel
   =========================== */
#filterOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:1040;display:none}
#filterPanel{position:fixed;top:0;right:-400px;width:400px;height:100%;background:white;box-shadow:-4px 0 15px rgba(0,0,0,0.1);z-index:1050;transition:right 0.3s ease;overflow-y:auto}
#filterPanel.open{right:0}
.filter-panel-header{padding:20px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;z-index:10}
.filter-panel-body{padding:20px}
@media(max-width:768px){
    #filterPanel{width:100%;right:-100%}
}

/* ===========================
   Global Card Radius
   Applies consistent rounded corners to card-like components
   =========================== */
.card,
.task-card,
.login-card,
.welcome-card,
.modal-content {
    border-radius: 0 !important;
}

.modal-content {
    border-left: 10px solid var(--link-color, #001f34);
}



/* ===========================
   Login Container
   =========================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: linear-gradient(135deg, var(--sidebar-color-start, #001f34) 0%, var(--sidebar-color-end, #001f34) 100%);
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* ===========================
   Animated Background Shapes
   =========================== */
.animated-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 30%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
        opacity: 0.6;
    }
}

/* ===========================
   Login Wrapper & Card
   =========================== */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Login Header
   =========================== */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.login-container .logo-circle {
    width: auto;
    height: auto;
    background: transparent;
}

.login-logo {
    width: var(--logo-size, 200px);
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-circle i {
    font-size: 32px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        /* removed shadow for logo-circle */
    }
    50% {
        transform: scale(1.05);
        /* removed shadow for logo-circle */
    }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #718096;
    font-size: 15px;
    margin: 0;
}

/* ===========================
   Form Styles
   =========================== */
.form-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control {
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    background: white;
    border-color: #001f34;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
    outline: none;
}

.form-control::placeholder {
    color: #cbd5e0;
}

/* ===========================
   Password Toggle
   =========================== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #001f34;
}

/* ===========================
   Checkbox
   =========================== */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--link-color, #001f34) !important;
    border-color: var(--link-color, #001f34) !important;
}

.form-check-label {
    margin-left: 8px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

/* ===========================
   Login Button
   =========================== */
.btn-login {
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #001f34 0%, #001f34 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

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

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===========================
   Alerts
   =========================== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    animation: slideDown 0.4s ease;
}

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

.alert-danger {
    background: linear-gradient(135deg, #fc5c7d 0%, #f76a8c 100%);
    color: white;
}

/* ===========================
   Login Footer
   =========================== */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    margin: 0;
    font-size: 13px;
}

/* ===========================
   Responsive Design
   =========================== */
/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar.mobile-open + .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1300px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        flex: 1 1 auto;
        width: 100%;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .dashboard-content {
        padding: 20px 15px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .btn-logout {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .btn-logout span {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle i {
        font-size: 28px;
    }
}

/* ===========================
   Dashboard Styles
   =========================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f7fafc;
}

/* ===========================
   Sidebar Styles
   =========================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar-color-start, var(--primary-start, #001f34)) 0%, var(--sidebar-color-end, var(--primary-end, #001f34)) 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

/* Collapsed sidebar styles removed (desktop collapse toggle disabled) */

/* Sidebar Header */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo i {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.logo-text {
    transition: all 0.3s ease;
}

/* Custom Scrollbar to match sidebar/login background */
:root {
    --primary-start: #2e3d52;
    --primary-end: #2e3d52;
}

/* WebKit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.08);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-start) rgba(0,0,0,0.06);
}

/* sidebar-toggle removed */

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 20px 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 2px 10px;
    font-weight: 600;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: white;
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.menu-item.active::before {
    height: 70%;
}

.menu-item i {
    font-size: 18px;
    min-width: 24px;
    margin-right: 12px;
}

.menu-text {
    flex: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-link {
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.submenu-arrow.rotated {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    display: none;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* When backend sets submenu open/show classes */
.submenu.show {
    display: block;
}

.menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0px;
    margin: 2px 0;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.submenu-item i {
    font-size: 14px;
    min-width: 20px;
    margin-right: 10px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.avatar-inline { /* reduced to minimal for footer avatars */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-details {
    flex: 1;
    transition: all 0.3s ease;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Main Content Area
   =========================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 280px);
}

.main-content.expanded {
    /* deprecated: desktop collapse removed */
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-right {
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

/* header user-greeting removed */

.mobile-toggle {
    display: none;
    background: #f7fafc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #001f34;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #edf2f7;
    transform: scale(1.05);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 40px;
    background: #f7fafc;
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    background: #f7fafc;
}

/* Legacy container - keep for compatibility */
.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #001f34 0%, #001f34 100%);
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 92px;
}

.dashboard-content {
    padding: 30px;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease;
    width: 100%;
}

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

.stat-card {
    background: white;
    border-radius: 0px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.stat-card:hover {
    /* Disable movement and extra shadow on hover */
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.stat-icon {
    width: 100px;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 10px;
    padding: 20px;
}

/* Quick action buttons: remove hover translate and outline/focus ring */
.quick-action {
    transition: none !important;
}
.quick-action:hover,
.quick-action:focus,
.quick-action:active {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.quick-action:focus {
    box-shadow: none !important;
}

/* Remove orange/focused outline on quick-action and light buttons in welcome card */
.btn.quick-action,
.btn.quick-action:focus,
.btn.quick-action:hover,
.btn.quick-action:active,
.welcome-card .btn {
    outline: none !important;
    box-shadow: none !important;
}
.btn.quick-action:focus-visible,
.btn.quick-action:focus {
    outline: none !important;
    box-shadow: none !important;
}

.stat-icon.blue { background: #001f34; }
.stat-icon.green { background: #38ef7d; }
.stat-icon.orange { background: #f5576c; }
.stat-icon.purple { background: #4facfe; }
.stat-icon.navy { background: #1e3a8a; }

.stat-title {
    font-size: 14px;
    color: #718096;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
}

.btn-logout {
    background: linear-gradient(135deg, #fc5c7d 0%, #f76a8c 100%);
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(252, 92, 125, 0.25);
    color: white;
}

/* ===========================
   Ripple Effect
   =========================== */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 20px;
    height: 20px;
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(40);
        opacity: 0;
    }
}

/* ===========================
   Data Card Styles
   =========================== */
.data-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-header {
    padding: 30px;
    border-bottom: 2px solid #f7fafc;
}

.card-header h5 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.card-body {
    padding: 30px;
}


/* Hover effect: lift rows and add subtle shadow like data-cards */
.table tbody tr {
    transition: background-color 0.15s ease;
}

/* Use Bootstrap-like hover for tables that opt-in with .table-hover */
.table.table-hover tbody tr:hover {
    background-color: #f7fafc;
}

/* ===========================
   Badges
   =========================== */
.badge {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    line-height:1;
}

/* ===========================
   Loading Spinner
   =========================== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    border-radius: 50% !important;
    
}

/* ===========================
   Scrollbar Styling
   =========================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #001f34 0%, #001f34 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #001f34 0%, #001f34 100%);
}

/* ===========================
   Selection Styling
   =========================== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #2d3748;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #2d3748;
}

/* ===========================
   Compact btn-group for action buttons
   Keeps grouped action buttons from stretching in card/table layouts
   Ensures visibility across all modules
   =========================== */
.user-actions .btn-group .btn,
.project-actions .btn-group .btn,
.client-actions .btn-group .btn,
.role-actions .btn-group .btn,
.time-log-actions .btn-group .btn,
.lead-actions .btn-group .btn,
.task-actions .btn-group .btn,
.table .btn-group .btn {
    flex: initial !important;
    min-width: 36px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Small spacing tweak for grouped buttons to match previous gap */
.btn-group { 
    gap: 0;
    display: inline-flex;
}

/* Ensure all action containers are visible and properly positioned */
.lead-card .lead-actions,
.task-card .task-actions,
.project-card .project-actions,
.client-card .client-actions,
.user-card .user-actions,
.role-card .role-actions {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ===========================
   Kanban Board Common Styles
   =========================== */
.kanban-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 200px);
    box-sizing: border-box;
}

.kanban-board {
    width: 1px;
    min-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    height: 100%;
    padding-left: 5px;
    padding-right: 20px;
    box-sizing: border-box;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    flex: 0 0 400px;
    max-height: 100%;
    box-sizing: border-box;
    background: #f7fafc;
    border-radius: 12px;
}

.kanban-column-header {
    padding: 20px;
    background: white;
    border-radius: 0px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.kanban-column-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.kanban-column-body {
    flex: 1;
    overflow-y: auto;
}

/* Custom Scrollbar for Kanban */
.kanban-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}

.kanban-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.kanban-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

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

.kanban-column-body::-webkit-scrollbar {
    width: 6px;
}

.kanban-column-body::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-column-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* Kanban scroll controls (for users module) */
.kanban-controls {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    
    padding: 6px 10px;
    z-index: 2;
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
    pointer-events: none;
}

.kanban-controls button {
    pointer-events: auto;
}

.kanban-scroll-btn {
    border: none;
    background: #edf2f7;
    color: #2d3748;
    border-radius: 0px;
    width: 32px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.kanban-scroll-btn:hover {
    background: #e2e8f0;
}

.kanban-scroll-wrapper.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Kanban Card Action Buttons - All Devices */
/* Cards need relative positioning for proper stacking */
.kanban-column-body > * {
    position: relative;
    padding-bottom: 20px;
}

/* Action buttons left-aligned on all kanban cards */
.kanban-column-body .lead-actions,
.kanban-column-body .task-actions,
.kanban-column-body .project-actions,
.kanban-column-body .client-actions,
.kanban-column-body .user-actions,
.kanban-column-body .role-actions,
.kanban-column-body [class*="-actions"] {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    
    margin-top: 12px;
    z-index: 2;
}

/* Button groups styling for all kanbans */
.kanban-column-body .btn-group {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    border-radius: 0px;
    overflow: hidden;
    z-index: 2;
}

/* Individual buttons in kanban */
.kanban-column-body .btn-group .btn {
    margin: 0;
    flex: 0 0 auto;
    border-radius: 0;
}

.kanban-column-body .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 36px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-column-body .btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.kanban-column-body .btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ===========================
   Filter Panel Common Styles
   =========================== */
#filterOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

#filterPanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#filterPanel.open {
    right: 0;
}

.filter-panel-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.filter-panel-body {
    padding: 20px;
}

/* ===========================
   Select2 Common Styles
   =========================== */
.select2-container--default .select2-selection--single {
    height: 50px !important;
    padding: 12px 18px !important;
    border: 2px solid #e2e8ef !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    top: 0 !important;
    right: .75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 50px !important;
    padding: 10px 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 4px 8px !important;
    border-radius: 0px !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #cbd5e0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
   
    height: auto !important; 
    color: #888888;
}
.select2-search__field,
.select2-search__field:focus {
    border-bottom: 0 !important;
    outline: none;
}

/* ===========================
   Common Card Styles
   =========================== */
.lead-card,
.task-card,
.project-card,
.client-card,
.user-card,
.role-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all .3s ease;
}

.lead-card,
.task-card {
    padding: 18px;
    margin-bottom: 12px;
}

.project-card,
.client-card,
.role-card,
.user-card {
    padding: 20px;
    margin-bottom: 12px;
}

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

.project-card:hover,
.client-card:hover,
.user-card:hover,
.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card Titles */
.lead-title,
.task-title,
.user-title,
.project-title,
.client-title,
.role-title {
    font-weight: 600;
    color: #2d3748;
}

.lead-title,
.task-title,
.user-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.project-title,
.client-title,
.role-title {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Card Subtitles */
.lead-client,
.task-project,
.project-company,
.client-company {
    color: #718096;
    font-size: 13px;
    margin-bottom: 8px;
}

.project-company,
.client-company {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.client-email,
.client-phone,
.user-email,
.user-phone {
    color: #718096;
    font-size: 13px;
}

.client-email,
.user-email {
    margin-bottom: 6px;
}

.client-phone {
    margin-bottom: 15px;
}

.user-phone {
    margin-bottom: 12px;
}

/* Stats */
.project-stats,
.client-stats,
.user-stats,
.role-stats {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.project-stats,
.client-stats {
    margin-bottom: 15px;
    align-items: center;
}

.user-stats {
    padding-top: 12px;
}

.role-stats {
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
}

/* Role Description */
.role-description {
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

/* ===========================
   Avatar & Initials Common Styles
   =========================== */
.avatar-table,
.table-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

.avatar-table-md {
    width: 32px;
    height: 32px;
}

.table-avatar {
    width: 40px;
    height: 40px;
}

.avatar-initials-table,
.table-initials {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6c757d;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.avatar-initials-md {
    width: 32px;
    height: 32px;
}

.table-initials {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    color: #2d3748;
}

.user-avatar-lg,
.client-avatar {
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-avatar-lg {
    width: 60px;
    height: 60px;
}

.client-avatar {
    width: 100%;
    height: 100%;
}

.avatar-initials-lg,
.client-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.avatar-initials-lg {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    font-size: 20px;
}

.client-initials {
    font-size: 20px;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 0px;
    object-fit: cover;
    display: block;
}

.avatar-initials-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===========================
   Action Button Common Styles - All Modules
   Left-aligned on all devices for consistent UX
   =========================== */
.lead-actions,
.task-actions,
.project-actions,
.client-actions,
.role-actions,
.user-actions {
    display: flex;
    
    justify-content: flex-start !important;
    align-items: center;
}

/* Buttons don't stretch */
.lead-actions .btn,
.task-actions .btn,
.project-actions .btn,
.client-actions .btn,
.role-actions .btn,
.user-actions .btn {
    flex: 0 0 auto;
}

/* Button groups styling */
.lead-actions .btn-group,
.task-actions .btn-group,
.project-actions .btn-group,
.client-actions .btn-group,
.role-actions .btn-group,
.user-actions .btn-group {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}

.lead-actions .btn-group .btn,
.task-actions .btn-group .btn,
.project-actions .btn-group .btn,
.client-actions .btn-group .btn,
.role-actions .btn-group .btn,
.user-actions .btn-group .btn {
    border-radius: 0;
}

.lead-actions .btn-group .btn:first-child,
.task-actions .btn-group .btn:first-child,
.project-actions .btn-group .btn:first-child,
.client-actions .btn-group .btn:first-child,
.role-actions .btn-group .btn:first-child,
.user-actions .btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.lead-actions .btn-group .btn:last-child,
.task-actions .btn-group .btn:last-child,
.project-actions .btn-group .btn:last-child,
.client-actions .btn-group .btn:last-child,
.role-actions .btn-group .btn:last-child,
.user-actions .btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* ===========================
   Misc Common Utilities
   =========================== */
.welcome-card {
    overflow: visible;
}

.lead-lines .lead-line1 {
    color: #718096;
    font-size: 13px;
    margin-bottom: 4px;
}

.lead-lines .lead-line2 {
    font-size: 13px;
}

/* Color swatches for roles */
.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #2d3748;
    transform: scale(1.1);
}

/* Icons for cards */
.user-icon,
.client-icon,
.role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    margin-bottom: 12px;
}

.client-icon,
.role-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 15px;
}

.client-icon {
    border-radius: 50%;
}

.role-icon {
    border-radius: 50%;
}

.user-icon.blue,
.client-icon.blue {
    background: #001f34;
}

.user-icon.green,
.client-icon.green {
    background: #11998e;
}

.user-icon.orange,
.client-icon.orange {
    background: #f5576c;
}

/* ===========================
   Responsive Media Queries
   =========================== */
@media(max-width:768px) {
    .kanban-column {
        min-width: 400px;
        max-width: 400px;
    }
    
    #filterPanel {
        width: 100%;
        right: -100%;
    }
}
      .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
           
            padding-left: 15px !important;;
        }

        .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
            font-size: 1.3em !important;
            }

 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
   
    height: 100%;
    color: white !important;
    border-right: 0px !important
}

/* ===========================
   Task Modal Layout & Comments/Attachments
   =========================== */
.task-modal-form-column {
    overflow-y: auto;
    max-height: 85vh;
}
.lead-modal-form-column {
    overflow-y: auto;
    max-height: 85vh;
}

.task-modal-sidebar {

    overflow-y: auto;
    max-height: 70vh;
}







.task-attachments-list {
    max-height: 250px;
}

.ticket-attachments-list {
    max-height: 300px;
}

.task-comments-list,
.task-attachments-list,
.ticket-attachments-list {
    overflow-y: auto;
    border-radius: 0px;

}

/* ===========================
   Search & Filter Flex Utilities
   =========================== */
.flex-gap-8 {
    
}

.form-flex-grow {
    flex: 1 1 0;
    min-width: 0;
}

.form-flex-fixed {
    flex: 0 0 auto;
}

/* ===========================
   Avatar & Badge Sizes
   =========================== */
.avatar-28 {
    width: 28px;
    height: 28px;
}


/* ===========================
   Cursor & Gap Utilities
   =========================== */
.cursor-pointer {
    cursor: pointer;
}

.task-assignees-edit {
    cursor: pointer;
}

.ticket-assignee-edit {
    cursor: pointer;
}

.gap-6 {
    gap: 6px;
}

/* ===========================
   Hidden Elements
   =========================== */
.d-none-important {
    display: none !important;
}

/* ===========================
   Task Status Inline Select
   =========================== */
.status-inline-select {
    width: auto !important;
    display: inline-block !important;
}

/* ===========================
   Task Comments Section
   =========================== */

.note-editor.note-airframe .note-statusbar,
.note-editor.note-frame .note-statusbar {
    background-color: #ffffff !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-top: 0px !important;
}

.note-editor.note-airframe,
.note-editor.note-frame {
    border: 1px solid var(--link-color, #179283) !important;
    border-radius: 0px !important;
}

.note-toolbar {
    color: #333 !important;
    background-color: #ffffff !important;
    border-bottom: 0px solid !important;
    border-color: #ffffff !important;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.note-btn {
    border: 1px solid var(--link-color, #179283) !important;
}

.note-editor.note-airframe .note-statusbar .note-resizebar .note-icon-bar,
.note-editor.note-frame .note-statusbar .note-resizebar .note-icon-bar {
    border-top: 1px solid var(--link-color, #179283) !important;
}


#taskCommentEditor {
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    background: white;
}

#taskCommentEditor .note-editor {
    border: none;
}

#taskCommentEditor .note-toolbar {
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

#taskCommentEditor .note-editable {
    min-height: 100px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
}

/* Task comment mention popup */
.comment-mentions {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    min-width: 200px;
}

.comment-mentions .mention-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    
    font-size: 13px;
}

.comment-mentions .mention-item:hover {
    background-color: #edf2f7;
}

.comment-mentions .mention-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-mentions .mention-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #001f34;
    color: white;
    font-size: 10px;
    font-weight: 600;
}

/* ===========================
   Tasks Module
   =========================== */
.btn-outline-primary {
    color: var(--link-color, #001f34);
    border-color: var(--link-color, #001f34);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:active:focus,
.btn-outline-primary.active,
.btn-outline-primary.active:focus,
.show > .btn-outline-primary.dropdown-toggle,
.show > .btn-outline-primary.dropdown-toggle:focus {
    color: #fff;
    background-color: var(--link-color, #001f34);
    border-color: var(--link-color, #001f34);
    box-shadow: none;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: var(--link-color, #001f34);
    border-color: var(--link-color, #001f34);
    background-color: transparent;
}

.tasks-filter-row {
    flex-wrap: wrap;
}

.task-assignees-list .list-group-item.active,
#taskAssigneesModal .list-group-item.active {
    z-index: 2;
    color: #fff !important;
    background-color: var(--link-color, #001f34) !important;
    border-color: var(--link-color, #001f34) !important;
}

.task-assignees-list .list-group-item.active .picker-name,
#taskAssigneesModal .list-group-item.active .picker-name,
.task-assignees-list .list-group-item.active a,
#taskAssigneesModal .list-group-item.active a {
    color: #fff !important;
}

.task-card {
    position: relative;
}

/* Task reminder highlight (upcoming reminders) */
.task-card.task-reminder-soon {
    background-color: rgba(25, 135, 84, 0.08) !important;
    border-left: 3px solid rgba(25, 135, 84, 0.85) !important;
}

.task-card.task-reminder-warning {
    background-color: rgba(255, 193, 7, 0.12) !important;
    border-left: 3px solid rgba(255, 193, 7, 0.95) !important;
}

.task-card.task-reminder-urgent {
    background-color: rgba(220, 53, 69, 0.12) !important;
    border-left: 3px solid rgba(220, 53, 69, 0.90) !important;
}

#tasksTable tbody tr.task-reminder-soon > td {
    background-color: rgba(25, 135, 84, 0.08) !important;
}

#tasksTable tbody tr.task-reminder-warning > td {
    background-color: rgba(255, 193, 7, 0.12) !important;
}

#tasksTable tbody tr.task-reminder-urgent > td {
    background-color: rgba(220, 53, 69, 0.12) !important;
}

#tasksTable tbody tr.task-reminder-soon:hover > td {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

#tasksTable tbody tr.task-reminder-warning:hover > td {
    background-color: rgba(255, 193, 7, 0.16) !important;
}

#tasksTable tbody tr.task-reminder-urgent:hover > td {
    background-color: rgba(220, 53, 69, 0.16) !important;
}

.task-select-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #ffffff;
    border-radius: 0px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.note-editor,
.note-editable {
    overflow: visible !important;
}

[data-proposal-form] .note-editor .note-editable,
#proposalForm .note-editor .note-editable {
    overflow: auto !important;
}

.tasks-filter-row .form-control,
.tasks-filter-row .form-select,
.tasks-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}

.tasks-filter-btn {
    flex: 0 0 auto;
}

@media (max-width: 992px) {
    .tasks-filter-row .form-control,
    .tasks-filter-row .form-select,
    .tasks-filter-row .select2-container,
    .tasks-filter-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.task-assignee-item {
    margin-right: 6px;
}

.task-clickable {
    cursor: pointer;
}

.recurrence-wrap {
    display: none;
}

.picker-name {
    color: var(--link-color, #001f34);
}

.status-color-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
}

/* Task comments */
.task-comment-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid var(--link-color, #001f34);
    font-size: 13px;
}

.task-comment-item .comment-user {
    display: flex;
    align-items: center;
    
    margin-bottom: 4px;
}

.task-comment-item .comment-user-name {
    font-weight: 600;
    color: var(--link-color, #001f34);
}

.task-comment-item .comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.task-comment-item .comment-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #111;
    font-weight: 700;
    font-size: 12px;
}

.task-comment-item .comment-text {
    color: #2d3748;
    margin-bottom: 6px;
}

.task-comment-item .comment-time {
    color: #a0aec0;
    font-size: 11px;
}

.task-attachment-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

.task-attachment-item .attachment-icon {
    color: var(--link-color, #001f34);
    font-size: 18px;
    flex-shrink: 0;
}

.task-attachment-item .attachment-info {
    flex: 1;
    min-width: 0;
}

.task-attachment-item .attachment-name {
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.task-attachment-item .attachment-size {
    color: #718096;
    font-size: 11px;
}

.task-attachment-item .attachment-delete {
    cursor: pointer;
    color: #e53e3e;
    font-size: 14px;
    flex-shrink: 0;
}

.task-attachment-item a {
    color: var(--link-color, #001f34);
    text-decoration: none;
}

.task-attachment-item a:hover {
    text-decoration: underline;
}

#filterOverlay {
    display: none;
}

/* Summernote editing heights for tasks */
#taskCommentEditor + .note-editor .note-editing-area,
#taskCommentEditor + .note-editor .note-editable,
.note-editor #taskCommentEditor .note-editable {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: auto !important;
}

#taskDescription + .note-editor .note-editing-area,
#taskDescription + .note-editor .note-editable,
.note-editor #taskDescription .note-editable {
    height: 400px !important;
    min-height: 300px !important;
    max-height: 500px !important;
    overflow: auto !important;
}

/* ===========================
   Leads Module
   =========================== */
.leads-filter-row {
    
    flex-wrap: wrap;
}

.leads-filter-row .form-control,
.leads-filter-row .form-select,
.leads-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}

.leads-filter-btn {
    flex: 0 0 auto;
}

@media (max-width: 992px) {
    .leads-filter-row .form-control,
    .leads-filter-row .form-select,
    .leads-filter-row .select2-container,
    .leads-filter-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.lead-link {
    color: var(--link-color, #001f34);
    text-decoration: none;
}

.lead-link:hover {
    text-decoration: underline;
}

.lead-card {
    position: relative;
}

/* Lead reminder highlight (upcoming reminders) */
.lead-card.lead-reminder-soon {
    background-color: rgba(25, 135, 84, 0.08) !important;
    border-left: 3px solid rgba(25, 135, 84, 0.85) !important;
}

.lead-card.lead-reminder-warning {
    background-color: rgba(255, 193, 7, 0.12) !important;
    border-left: 3px solid rgba(255, 193, 7, 0.95) !important;
}

.lead-card.lead-reminder-urgent {
    background-color: rgba(220, 53, 69, 0.12) !important;
    border-left: 3px solid rgba(220, 53, 69, 0.90) !important;
}

#leadsTable tbody tr.lead-reminder-soon > td {
    background-color: rgba(25, 135, 84, 0.08) !important;
}

#leadsTable tbody tr.lead-reminder-warning > td {
    background-color: rgba(255, 193, 7, 0.12) !important;
}

#leadsTable tbody tr.lead-reminder-urgent > td {
    background-color: rgba(220, 53, 69, 0.12) !important;
}

#leadsTable tbody tr.lead-reminder-soon:hover > td {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

#leadsTable tbody tr.lead-reminder-warning:hover > td {
    background-color: rgba(255, 193, 7, 0.16) !important;
}

#leadsTable tbody tr.lead-reminder-urgent:hover > td {
    background-color: rgba(220, 53, 69, 0.16) !important;
}

.lead-select-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lead-priority-flag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    cursor: pointer;
    z-index: 10;
}

.lead-priority-icon {
    font-size: 18px;
}

.lead-title-spaced {
    padding-right: 35px;
}

.lead-assignees-edit {
    gap: 6px;
    cursor: pointer;
}

.lead-select-col {
    width: 36px;
}

.priority-badge,
.status-badge,
.kanban-count-badge {
    color: #fff;
}

.priority-badge,
.status-badge {
    cursor: pointer;
}

.lead-assignees-list .list-group-item.active,
#leadAssigneesModal .list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: var(--link-color, #001f34);
    border-color: var(--link-color, #001f34);
}

.lead-assignees-list .list-group-item.active .picker-name,
#leadAssigneesModal .list-group-item.active .picker-name,
.lead-assignees-list .list-group-item.active a,
#leadAssigneesModal .list-group-item.active a {
    color: #fff;
}

.lead-comment-item {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--link-color, #001f34);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lead-comment-item:last-child {
    margin-bottom: 0;
}

.lead-comment-item .comment-user {
    display: flex;
    align-items: center;
    
    margin-bottom: 6px;
}

.lead-comment-item .comment-user-name {
    font-weight: 600;
    color: var(--link-color, #001f34);
}

.lead-comment-item .comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.lead-comment-item .comment-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #111;
    font-weight: 700;
    font-size: 12px;
}

.lead-comment-item .comment-text {
    color: #374151;
    margin-bottom: 6px;
    word-wrap: break-word;
}

.lead-comment-item .comment-time {
    font-size: 12px;
    color: #9ca3af;
}

.lead-comment-item--automation {
    border-left-width: 4px;
}

.lead-automation-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.lead-automation-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6b7280;
}

.lead-automation-comment-sections {
    display: grid;
    gap: 8px;
}

.lead-automation-comment-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    background: #ffffff;
}

.lead-automation-comment-title {
    margin-bottom: 6px;
    color: var(--link-color, #001f34);
    font-size: 13px;
    font-weight: 700;
}

.lead-automation-comment-line {
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
}

.lead-automation-comment-line:last-child {
    margin-bottom: 0;
}

.lead-automation-comment-list {
    margin: 0 0 6px 16px;
    padding: 0;
    color: #374151;
    font-size: 13px;
}

.kanban-loading-placeholder {
    padding: 12px;
    text-align: center;
}

.reminder-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.reminder-sidebar {
    min-width: 160px;
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    
}

.reminder-sidebar .btn {
    justify-content: flex-start;
}

.reminder-main {
    flex: 1 1 0;
    min-width: 280px;
}

.reminder-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

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

.reminder-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.reminder-calendar-day {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.reminder-date {
    height: 34px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.reminder-date:hover {
    background: #eef2ff;
}

.reminder-date.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.reminder-date.active {
    background: var(--link-color, #001f34);
    color: #fff;
}

.reminder-date.in-range {
    background: rgba(102, 126, 234, 0.15);
    color: #1f2937;
}

.reminder-time-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.reminder-time {
    padding: 6px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid transparent;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
}

.reminder-time.active {
    background: var(--link-color, #001f34);
    color: #fff;
}

.reminder-recurring {
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    display: none;
}

.leadReminderBtn.btn-primary {
    color: #fff;
}

/* ===========================
   MOBILE RESPONSIVENESS - COMPREHENSIVE SOLUTION
   Production-ready responsive layout for all modules
   =========================== */

/* Mobile Toggle Button (Hamburger) */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--link-color, #001f34);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle:hover {
    background: #edf2f7;
    transform: scale(1.05);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar.mobile-open + .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Table Horizontal Scroll Container */
.table-responsive,
.table-responsive-mobile {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table,
.table-responsive-mobile > .table {
    width: auto;
    min-width: 100%;
    table-layout: auto;
}

.table-responsive-mobile {
    margin: 0;
    padding: 0;
}

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

.table-responsive-mobile::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive-mobile::-webkit-scrollbar-thumb {
    background: var(--link-color, #001f34);
    border-radius: 10px;
}

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


/* Mobile Breakpoint: Below 1024px */
@media (max-width: 1300px) {
    /* Show mobile toggle button */
    .mobile-toggle {
        display: flex !important;
    }

    /* Sidebar: Hidden by default, slide in when open */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    }

    /* Main content takes full width */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Dashboard header adjustments */
    .dashboard-header {
        padding: 15px 20px;
    }

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

    /* Dashboard content padding */
    .dashboard-content {
        padding: 20px 15px;
    }
}

/* Mobile Breakpoint: Below 1000px - Form Inputs Stack */
@media (max-width: 1000px) {
    /* Stack all filter/search inputs vertically */
    .filter-toolbar,
    .row.g-3 > .col-12 > .d-flex,
    form#searchForm .d-flex,
    .d-flex.align-items-stretch,
    .d-flex.w-100.align-items-stretch {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* All form controls full width */
    .filter-toolbar input,
    .filter-toolbar select,
    .filter-toolbar .form-control,
    .filter-toolbar .form-select,
    .filter-toolbar button,
    form#searchForm input,
    form#searchForm select,
    form#searchForm .form-control,
    form#searchForm .form-select,
    form#searchForm button,
    .d-flex.align-items-stretch input,
    .d-flex.align-items-stretch select,
    .d-flex.align-items-stretch .form-control,
    .d-flex.align-items-stretch .form-select,
    .d-flex.w-100 input,
    .d-flex.w-100 select,
    .d-flex.w-100 .form-control,
    .d-flex.w-100 .form-select {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    /* Buttons in search forms */
    .filter-toolbar button,
    form#searchForm button,
    .d-flex.align-items-stretch button,
    .d-flex.w-100 button {
        width: 100% !important;
        justify-content: center;
    }

    /* Input groups on mobile - fix border radius */
    .input-group {
        flex-wrap: wrap;
        
    }

    .input-group .form-control,
    .input-group .form-select {
        flex: 1 1 100% !important;
        border-radius: 0px !important;
        margin-bottom: 0;
    }

    .input-group .btn {
        flex: 1 1 auto;
        border-radius: 0px !important;
        min-width: 48%;
    }

    .input-group .btn:not(:last-child) {
        margin-right: 0;
    }

    /* Select2 dropdowns */
    .select2-container {
        width: 100% !important;
    }

    /* Button groups */
    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btn-group {
        width: 100%;
        flex-direction: row !important;
    }

    .btn-group .btn {
        flex: 1;
    }

    /* Action buttons at top of pages */
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .d-flex.justify-content-between > div {
        width: 100%;
    }

    .d-flex.justify-content-between .d-flex.gap-2 {
        width: 100%;
    }

    /* Welcome card adjustments */
    .welcome-card {
        padding: 20px;
    }

    /* Stat cards stack */
    .stat-card {
        margin-bottom: 15px;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
    }

    .modal-lg {
        max-width: calc(100% - 20px);
    }
}

/* Mobile Breakpoint: Below 768px */
@media (max-width: 768px) {
    /* Further reduce padding */
    .dashboard-header {
        padding: 12px 15px;
    }

    .dashboard-content {
        padding: 15px 10px;
    }

    .welcome-card {
        padding: 15px;
    }

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

    /* Hide button text, show icons only */
    .btn-logout span,
    .header-right .btn span:not(.badge) {
        display: none;
    }

    .header-right .btn i {
        margin: 0 !important;
    }

    /* Reduce stat card size */
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

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

    /* Table font size */
    .table {
        font-size: 13px;
    }

.table th,
.table td {
    padding: 10px 8px;
}
.table > :not(caption) > * > * {
    vertical-align: middle;
}

    /* Card headers */
    .card-header {
        padding: 20px 15px;
    }

    .card-header h5 {
        font-size: 18px;
    }

    .card-body {
        padding: 15px;
    }

    /* Avatar sizes */
    .avatar-42 {
        width: 36px;
        height: 36px;
    }

    .avatar-32 {
        width: 28px;
        height: 28px;
    }

    /* Sidebar width adjustment */
    .sidebar {
        width: 280px;
        max-width: 85vw;
    }

    /* Form labels */
    .form-label {
        font-size: 13px;
    }

    /* Button sizes */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Mobile Breakpoint: Below 576px */
@media (max-width: 576px) {
    /* Minimal padding */
    .dashboard-content {
        padding: 10px 8px;
    }

    .welcome-card {
        padding: 12px;
    }

    .page-title {
        font-size: 16px;
    }

    /* Login adjustments */
    .login-card {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .logo-circle i {
        font-size: 24px;
    }

    /* Form controls */
    .form-control,
    .form-select {
        font-size: 14px;
        height: 44px;
        padding: 10px 14px;
        border-radius: 0px !important;
    }

    /* Input group buttons on small mobile */
    .input-group .btn {
        height: 44px;
        border-radius: 0px !important;
    }

    .input-group .form-control {
        border-radius: 0px !important;
    }

    /* Table scrolling */
    .table {
        min-width: 600px;
        font-size: 12px;
    }

    /* Modals take full screen on tiny devices */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
    }

    /* Sidebar full width on smallest screens */
    .sidebar {
        width: 100%;
        max-width: 100%;
    }

    /* Hide less critical columns in tables - add .d-none-mobile to th/td */
    .d-none-mobile {
        display: none !important;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .dashboard-header,
    .mobile-toggle,
    .sidebar-overlay,
    .btn,
    .pagination {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .table {
        font-size: 10px;
    }
}

/* ===========================
   END MOBILE RESPONSIVENESS
   =========================== */


/* Mobile close button inside sidebar (shown when sidebar is open on mobile) */
.sidebar .mobile-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 0px;
    align-items: center;
    justify-content: center;
    background:none;
    border: none;
    color: var(--link-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 1101;
}

.sidebar.mobile-open .mobile-close {
    display: inline-flex;
}

@media (min-width: 1025px) {
    .sidebar .mobile-close { display: none !important; }
}

/* Kanban View Styles */
.kanban-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 200px);
    box-sizing: border-box;
}

.kanban-board {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width:1px;
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.kanban-column {
    flex: 0 0 320px;
    background: #f8f9fa;
    border-radius: 0px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    border-radius:0px;
}

.kanban-column-body {
    flex: 1;
    padding: 10px 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    overflow-y: auto;
}

.user-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

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

.user-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 15px;
}

.avatar-initials-lg {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.user-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.user-email, .user-phone {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.125rem;
}

.user-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.user-actions .btn-group .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kanban-column {
        flex: 0 0 280px;
    }

    .kanban-board {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
}

/* ===========================
   Global Form Control Borders
   =========================== */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
textarea,
select,
.form-control,
.form-select {
    border: 0 !important;
    border-bottom: 1px solid var(--link-color, #001f34) !important;
    border-radius: 0 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--link-color, #001f34) !important;
    border-radius: 0 !important;
}

/* Select2: enforce primary border */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 0 !important;
    border-bottom: 1px solid var(--link-color, #001f34) !important;
    border-radius: 0 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--link-color, #001f34) !important;
    border-radius: 0 !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--link-color, #001f34) !important;
}

/* Global border radius reset */
* {
    border-radius: 0 !important;
}

/* Dashboard */
.dashboard-icon-primary {
    color: var(--link-color, #001f34);
}

.dashboard-hero-icon {
    font-size: 80px;
    color: var(--link-color, #001f34);
    opacity: 0.2;
}

.dashboard-action-icon {
    font-size: 28px;
}

.dashboard-action-icon-primary {
    color: var(--link-color, #001f34);
}

.dashboard-action-icon-teal {
    color: #11998e;
}

.dashboard-action-icon-rose {
    color: #f5576c;
}

.dashboard-action-icon-sky {
    color: #4facfe;
}

/* Notifications */
.notifications-main { background: #f6f7fb; }
.notif-hero { position: relative; overflow: hidden; }
.notif-hero p { color: #718096; }
.bg-gradient-primary { background: var(--primary-start, #001f34); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.notif-count { font-size: 32px; font-weight: 700; }
.chip { border: 1px solid #e5e7eb; border-radius: 999px; padding: 8px 14px; background: #fff; color: #111; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.chip:hover { border-color: var(--link-color, #001f34); color: var(--link-color, #001f34); }
.chip.active { background: var(--link-color, #001f34); color: #fff; border-color: var(--link-color, #001f34); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.notif-search { position: relative; min-width: 240px; }
.notif-search i { position: absolute; left: 12px; top: 18px; color: #cbd5e0; }
.notif-search input { padding-left: 34px; }
.notif-list { min-height: 320px; }
.notif-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px; border-radius: 0px; border: 1px solid #eef0f6; background: #fff; margin-bottom: 10px; transition: transform .12s ease, box-shadow .12s ease; }
.notif-item:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.notif-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.notif-icon.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.notif-icon.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.notif-icon.info { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.notif-icon.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.notif-meta { font-size: 12px; color: #6b7280; }
.notif-title { margin: 0; font-weight: 700; font-size: 15px; }
.notif-link { color: var(--link-color, #001f34); font-weight: 600; text-decoration: none; }
.notif-link:hover { text-decoration: underline; }
.notif-badge { padding: 6px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.notif-badge.danger { background: #fee2e2; color: #b91c1c; }
.notif-badge.warning { background: #fef3c7; color: #b45309; }
.notif-badge.info { background: #e0f2fe; color: #075985; }
.notif-badge.success { background: #dcfce7; color: #166534; }
.notif-empty { text-align: center; color: #9ca3af; padding: 30px 10px; }
.notif-empty i { font-size: 36px; margin-bottom: 8px; color: #cbd5e1; }
.notif-skeletons { display: grid; gap: 10px; }
.notif-skeleton { height: 70px; border-radius: 0px; background: linear-gradient(90deg, #f2f4f8 25%, #e6e9f0 37%, #f2f4f8 63%); background-size: 400% 100%; animation: shimmer 1.1s ease infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.notif-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-flex; }
.notif-dot.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.notif-dot.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.notif-dot.info { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.notif-dot.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.notif-highlights .highlight-card { border: 1px solid #eef0f6; border-radius: 0px; padding: 12px; margin-bottom: 10px; background: #fff; }
.notif-highlights .highlight-card h6 { font-weight: 700; margin-bottom: 4px; }
.notif-highlights .highlight-card small { color: #6b7280; }

/* Activity Logs */

.activity-filter-search { flex: 1 1 220px; }
.activity-filter-action { flex: 0 0 160px; }
.activity-filter-user { flex: 0 0 220px; }
.activity-filter-module { flex: 0 0 220px; }
.activity-filter-date { flex: 0 0 180px; }
.activity-filter-submit { flex: 0 0 auto; }
.activity-filter-clear { flex: 0 0 auto; }
.activity-col-select { width: 36px; }
.activity-changes-pre { white-space: pre-wrap; }

.select2-user-item { display: flex; align-items: center; gap: 10px; }
.select2-results__option .select2-user-item { display: flex; align-items: center; gap: 10px; }
.activity-select2-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-right: 6px; }
.activity-select2-initials { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #1e293b; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; margin-right: 6px; }
.select2-results__option .activity-select2-avatar { width: 28px; height: 28px; margin-right: 0; }
.select2-results__option .activity-select2-initials { width: 28px; height: 28px; font-size: 13px; margin-right: 0; }
.select2-container--default .select2-selection--single .select2-selection__rendered .activity-select2-avatar { width: 20px; height: 20px; margin-right: 6px; }
.select2-container--default .select2-selection--single .select2-selection__rendered .activity-select2-initials { width: 20px; height: 20px; font-size: 12px; margin-right: 6px; }

/* Clients */
.clients-col-select { width: 36px; }
.client-name-stack { display: flex; align-items: center; gap: 10px; }
.client-title-link { color: var(--link-color, #001f34); }
.client-title-link:hover { color: var(--link-color, #001f34); }
.client-status-badge { cursor: pointer; }
.client-card { position: relative; }
.client-select-wrap { position: absolute; top: 10px; right: 10px; z-index: 2; background: #fff; border-radius: 6px; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.client-load-more { border: 2px dashed #d1d5db; cursor: pointer; height: auto; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.client-load-more:hover { border-color: #9ca3af; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.client-load-more-inner { text-align: center; color: #64748b; font-weight: 600; }
.client-load-more-icon { width: 54px; height: 54px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 20px; }
.client-load-more.loading { pointer-events: none; opacity: 0.7; }

/* Client Contacts */
.contacts-col-select { width: 36px; }
.contact-filter-submit,
.contact-filter-clear { flex: 0 0 auto; }
.contact-select-wrap { position: absolute; top: 10px; right: 10px; z-index: 2; background: #fff; border-radius: 6px; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.contact-color-0 { background: #e3f2fd; }
.contact-color-1 { background: #f3e5f5; }
.contact-color-2 { background: #fff3e0; }
.status-badge { cursor: pointer; }
.contact-status-active { background: #198754; color: #fff; }
.contact-status-inactive { background: #6c757d; color: #fff; }

/* Projects */
.projects-filter-row {  flex-wrap: wrap; }
.projects-filter-input,
.projects-filter-select,
.projects-filter-row .select2-container { flex: 1 1 0; min-width: 220px; max-width: 100%; }
.projects-filter-btn { flex: 0 0 auto; }
@media (max-width: 992px) {
    .projects-filter-input,
    .projects-filter-select,
    .projects-filter-row .select2-container,
    .projects-filter-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* HR Announcements */
.announcements-filter-row { flex-wrap: wrap; }
.announcements-filter-input,
.announcements-filter-select,
.announcements-filter-row .select2-container { flex: 1 1 0; min-width: 220px; max-width: 100%; }
.announcements-filter-btn { flex: 0 0 auto; }
@media (max-width: 992px) {
    .announcements-filter-input,
    .announcements-filter-select,
    .announcements-filter-row .select2-container,
    .announcements-filter-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--announcement-flatpickr-primary, #569ff7) !important;
    box-shadow: none !important;
    color: #fff !important;
    border-color: var(--announcement-flatpickr-primary, #569ff7) !important;
}
.flatpickr-current-month .numInputWrapper {
    border: 0;
    border-bottom: 0px solid #ced4da;
}
.flatpickr-current-month {
    font-size: 100% !important;
}
.flatpickr-current-month input.cur-year {
    height: 20px !important;
}
.flatpickr-months .flatpickr-month {
    height: 55px !important;
}
.projects-col-select { width: 36px; }
.project-clickable { cursor: pointer; }
.project-team-inline { gap: 6px; }
.project-select-wrap { position: absolute; top: 10px; right: 10px; z-index: 2; background: #fff; border-radius: 6px; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.project-card { position: relative; }
.user-card { position: relative; }
.project-manager-list .list-group-item.active,
.project-team-list .list-group-item.active,
#projectManagerModal .list-group-item.active,
#projectTeamModal .list-group-item.active { z-index: 2; color: #fff !important; background-color: var(--link-color, #001f34) !important; border-color: var(--link-color, #001f34) !important; }
.project-manager-list .list-group-item.active .picker-name,
.project-team-list .list-group-item.active .picker-name,
#projectManagerModal .list-group-item.active .picker-name,
#projectTeamModal .list-group-item.active .picker-name,
.project-manager-list .list-group-item.active a,
.project-team-list .list-group-item.active a,
#projectManagerModal .list-group-item.active a,
#projectTeamModal .list-group-item.active a { color: #fff !important; }

/* ===========================
   Active Members (Time Logs)
   =========================== */
.active-members-filter-row {  flex-wrap: wrap; }

.active-members-filter-item {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 100%;
}

.active-members-filter-row .form-control,
.active-members-filter-row .form-select,
.active-members-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}

.active-members-date-range {
    flex: 1 1 0;
    width: 100%;
}

.active-members-date-range .active-members-date-input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.active-members-filter-btn { flex: 0 0 auto; }

.overtime-text { color: #f59e0b; }

.bottle-progress-container {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 140px;
}

.bottle-progress-lg {
    width: 90px;
    height: 180px;
}

.bottle-svg {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.bottle-svg-lg {
    width: 100%;
    height: 100%;
}

.bottle-progress-container:hover .bottle-svg {
    transform: scale(1.05);
}

.bottle-fill {
    transition: y 0.5s ease, height 0.5s ease;
}

.bottle-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 10px;
    pointer-events: none;
}

@keyframes bottle-bubble-float {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-10px); opacity: 0; }
}

.overflow-bubble { animation: bottle-bubble-float 2s ease-in-out infinite; }
.bubble-1 { animation-delay: 0s; }
.bubble-2 { animation-delay: 0.6s; }
.bubble-3 { animation-delay: 1.2s; }

.bottle-info { line-height: 1.6; }

.bottle-stop-start.is-regular { stop-color: #10b981; }
.bottle-stop-end.is-regular { stop-color: #34d399; }
.bottle-stop-start.is-overtime { stop-color: #f59e0b; }
.bottle-stop-end.is-overtime { stop-color: #fbbf24; }

.member-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member-avatar {
    width: 56px;
    height: 56px;
    border-radius: 0;
    object-fit: cover;
}

.member-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
}

.member-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.member-initials-sm {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-weight: 700;
    color: #2d3748;
}

/* ===========================
   HR - Employees
   =========================== */
.employee-filter-row {  flex-wrap: wrap; }

.employee-filter-row .form-control,
.employee-filter-row .form-select,
.employee-filter-row .select2-container,
.employee-filter-input {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}

.employee-select-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.employee-name-link { color: var(--link-color, #001f34); }

.employee-card-body {
    flex: 1;
    min-width: 0;
}

.employee-status-badge {
    color: #fff;
    cursor: pointer;
}

.employee-status-badge.status-active { background-color: #10b981; }
.employee-status-badge.status-probation { background-color: #f59e0b; color: #111827; }
.employee-status-badge.status-on_leave { background-color: #0ea5e9; }
.employee-status-badge.status-terminated { background-color: #ef4444; }
.employee-status-badge.status-resigned { background-color: #6b7280; }
.employee-status-badge.status-na { background-color: #6c757d; }

.dept-count-badge { color: #fff; }
.dept-color-chip,
.desig-color-chip { cursor: pointer; }

.employee-col-select { width: 36px; }

.employee-filter-overlay.active,
#filterOverlay.active { display: block; }

.is-hidden { display: none; }

.stat-item i { color: var(--link-color, #001f34); }

/* ===========================
   HR - Employee Details
   =========================== */
.doc-stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15,23,42,0.04);
    height: 100%;
}

.doc-stat-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.doc-stat-card .value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.doc-filter-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px;
}

.doc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(15,23,42,0.08);
    color: #334155;
}

.doc-pill i { color: var(--link-color, #001f34); }

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.doc-badge.expired { background: rgba(239,68,68,0.12); color: #b91c1c; }
.doc-badge.expiring { background: rgba(245,158,11,0.12); color: #b45309; }
.doc-badge.valid { background: rgba(16,185,129,0.12); color: #047857; }
.doc-badge.archived { background: rgba(100,116,139,0.12); color: #475569; }
.doc-badge.confidential { background: rgba(79,70,229,0.12); color: #4338ca; }

.doc-dropzone {
    border: 2px dashed #cbd5f5;
    border-radius: 0px;
    padding: 20px;
    text-align: center;
    background: rgba(var(--bs-primary-rgb, 102,126,234), 0.06);
    transition: border-color .2s ease, background .2s ease;
}

.doc-dropzone.dragover {
    border-color: var(--link-color, #001f34);
    background: rgba(var(--bs-primary-rgb, 102,126,234), 0.12);
}

.doc-upload-icon { color: var(--link-color, #001f34); }

.doc-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
}

.doc-file-row .file-meta { flex: 1 1 auto; }
.doc-file-row .file-meta h6 { margin: 0; font-size: 13px; }
.doc-file-row .file-meta p { margin: 0; font-size: 12px; color: #64748b; }

.doc-category-col { width: 160px; }
.doc-progress-col { width: 120px; }

.doc-progress {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.doc-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--link-color, #001f34);
    transition: width .2s ease;
}

.doc-table td { vertical-align: middle; }
.doc-table th { white-space: nowrap; }
.doc-table .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doc-table .btn-icon i { font-size: 13px; }

.doc-muted {
    color: #94a3b8;
    font-size: 12px;
}

.leave-balance-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15,23,42,0.04);
    height: 100%;
}

.leave-balance-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.leave-balance-card .value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.leave-balance-table th { white-space: nowrap; }
.leave-balance-table td { vertical-align: middle; }

.leave-col-total { width: 160px; }
.leave-col-used { width: 140px; }

.leave-balance-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.leave-balance-status.ok { background: rgba(16,185,129,0.12); color: #047857; }
.leave-balance-status.empty { background: rgba(100,116,139,0.12); color: #475569; }
.leave-balance-status.over { background: rgba(239,68,68,0.12); color: #b91c1c; }

.leave-balance-help { color: #64748b; font-size: 13px; }
.leave-balance-available.overdrawn { color: #b91c1c; font-weight: 600; }

.employee-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb, 102,126,234), 0.18), rgba(var(--bs-primary-rgb, 102,126,234), 0.05));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: var(--link-color, #3b82f6);
    overflow: hidden;
}

.employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #f7fafc;
    background: #fafbfc;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.tab-item { flex: 1; }

.tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-link:hover {
    background: #f7fafc;
    color: var(--link-color, #001f34);
}

.tab-link.active {
    color: var(--link-color, #001f34);
    background: #fff;
    border-bottom-color: var(--link-color, #001f34);
}

.tab-link i { font-size: 16px; }

.employee-tabs-card .card-header {
    padding: 0;
    border-bottom: 0;
}

.employee-tabs-card .tab-link:first-child { border-top-left-radius: 16px; }
.employee-tabs-card .tab-link:last-child { border-top-right-radius: 16px; }

.tab-content-wrapper { padding: 28px; }

.tab-pane {
    display: none;
    animation: employeeFadeIn 0.4s ease;
}

.tab-pane.active { display: block; }

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

@media (max-width: 768px) {
    .tab-content-wrapper { padding: 20px; }
    .tab-link span { display: none; }
}
.picker-name { color: var(--link-color, #001f34); }
.project-status-badge { cursor: pointer; }
.kanban-loader { text-align: center; padding: 10px; }

/* Avatar sizing helpers */
.avatar-table-sm { width: 28px; height: 28px; }
.avatar-table-xs { width: 20px; height: 20px; }
.avatar-initials-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-initials-xs { width: 20px; height: 20px; font-size: 12px; }

/* Select2 user templates */
.select2-user-item { display: flex; align-items: center; gap: 10px; }
.select2-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.select2-initials { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #6c757d; font-weight: 600; }
.select2-avatar-xs { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-right: 6px; vertical-align: middle; }
.select2-initials-xs { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; background: #6c757d; color: #fff; margin-right: 6px; vertical-align: middle; }

/* Select2 multi-selection styling */
.select2-container--default .select2-selection--multiple { min-height: 50px; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 10px; background-color: #f7fafc; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { padding: 4px 8px; border-radius: 0px; background: var(--link-color, #001f34); color: #fff; margin-top: 1px; margin-right: 6px; border: 1px solid var(--link-color, #001f34); }
.select2-selection__choice__remove { height: 100%; color: #fff; border-right: 0; }
.select2-selection__choice__display { cursor: default; padding-left: 15px; padding-right: 5px; }

/* Emails */
.emails-filter-row { flex-wrap: wrap; }
.emails-filter-row .form-control,
.emails-filter-row .form-select,
.emails-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.emails-filter-btn { flex: 0 0 auto; }
.email-select-col { width: 36px; min-width: 36px; }
.email-unread { background-color: #fff7f0; border-left: 4px solid var(--link-color, #001f34); }
.email-unread .email-subject-link { font-weight: 700; }
.email-unread .col-from,
.email-unread .col-to { font-weight: 600; }
.notification-unread { background-color: #fff7f0; border-left: 4px solid var(--link-color, #001f34); }
.notification-unread .col-title { font-weight: 700; }
.notification-unread .col-actor,
.notification-unread .col-type { font-weight: 600; }

/* Email settings */
.form-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 30px; padding-top: 30px; border-top: 2px solid #f7fafc; }
.email-settings-actions { align-items: flex-end; }
.email-settings-test { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.email-settings-test-field { min-width: 260px; }
.email-settings-test-label { font-size: 13px; margin-bottom: 6px; }
@media (max-width: 768px) {
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .email-settings-test { width: 100%; }
    .email-settings-test-field { min-width: 0; width: 100%; }
}

/* Calls */
.call-filter-row { flex-wrap: wrap; }
.call-filter-row .form-control,
.call-filter-row .form-select,
.call-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.call-filter-btn { flex: 0 0 auto; }

/* Documents */
.document-filter-row {  flex-wrap: wrap; }
.document-filter-row .form-control,
.document-filter-row .form-select,
.document-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.document-filter-btn { flex: 0 0 auto; }
.document-select-col { width: 40px; min-width: 40px; }
.select2-container--open { z-index: 1060; }

/* Meetings */
.meeting-card { position: relative; }
.meeting-select-wrap { position: absolute; top: 10px; right: 10px; z-index: 2; background: #fff; border-radius: 6px; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.meeting-filter-row { flex-wrap: wrap; }
.meeting-filter-row .form-control,
.meeting-filter-row .form-select,
.meeting-filter-row .select2-container {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
}
.meeting-filter-btn { flex: 0 0 auto; }
.meeting-count-badge { background-color: var(--link-color, #001f34); color: #fff; }
.meeting-link,
.meeting-phone-link { color: var(--link-color, #001f34); text-decoration: none; }
.meeting-link:hover,
.meeting-phone-link:hover { text-decoration: underline; }
.meeting-status-badge,
.meeting-status-pill { color: #fff; }
.meeting-status-badge { cursor: pointer; }
.meeting-status--pending {
    --bs-badge-bg: #f59e0b;
    background-color: #f59e0b;
}
.meeting-status--completed {
    --bs-badge-bg: #10b981;
    background-color: #10b981;
}
.meeting-status--cancelled {
    --bs-badge-bg: #ef4444;
    background-color: #ef4444;
}
.meeting-status--in_progress,
.meeting-status--in-progress {
    --bs-badge-bg: #3b82f6;
    background-color: #3b82f6;
}
.meeting-status--scheduled,
.meeting-status--upcoming {
    --bs-badge-bg: #6c757d;
    background-color: #6c757d;
}
.meeting-table { font-size: 14px; }
.meeting-select-col { width: 36px; min-width: 36px; }
.meeting-host { display: flex; align-items: center;  }
.meeting-host-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.meeting-host-initials { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #475569; }
.meeting-host { position: relative; }
.meeting-host-name { display: none; }
#meetingsPage .meeting-host:hover::after,
#documentsPage .meeting-host:hover::after,
#screenRecordingsPage .meeting-host:hover::after {
    content: attr(data-name);
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #111827;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.meeting-description { min-height: 300px; max-height: 60vh; overflow: auto; }
.meeting-client-fields { display: none; }
.meeting-contacts-wrapper { display: none; }
.meeting-select2-option { display: flex; align-items: center; }
.meeting-select2-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; margin-right: 8px; flex: 0 0 auto; }
.meeting-select2-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meeting-select2-initials { width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0; color: #475569; text-align: center; line-height: 28px; font-weight: 600; display: inline-block; }
.meeting-select2-text { line-height: 1; }

.booking-timezone-select + .select2-container,
.booking-timezone-select + .select2-container--default .select2-selection--single {
    min-height: 50px;
    padding:0px !important;
    border-radius: 0;
    border: 0px solid #e2e8f0;
    background-color: #ffffff;
    width: 200px !important;
}
.booking-timezone-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-timezone-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding: 0;
}


.booking-timezone-select + .select2-container--default .select2-selection--single {
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 0;
    border: 2px solid #e2e8f0;
    background-color: #f7fafc;
}
.booking-timezone-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-timezone-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    height: 50px;
    padding: 17px !important;
}

@media (max-width: 992px) {
    .emails-filter-row .form-control,
    .emails-filter-row .form-select,
    .emails-filter-row .select2-container,
    .emails-filter-btn,
    .call-filter-row .form-control,
    .call-filter-row .form-select,
    .call-filter-row .select2-container,
    .call-filter-btn,
    .document-filter-row .form-control,
    .document-filter-row .form-select,
    .document-filter-row .select2-container,
    .document-filter-btn,
    .meeting-filter-row .form-control,
    .meeting-filter-row .form-select,
    .meeting-filter-row .select2-container,
    .meeting-filter-btn,
    .ticket-search-row .form-control,
    .ticket-search-row .form-select,
    .ticket-search-row .select2-container,
    .ticket-search-btn,
    .user-search-row .form-control,
    .user-search-row .form-select,
    .user-search-row .select2-container,
    .user-search-btn,
    .filter-toolbar .form-control,
    .filter-toolbar .form-select,
    .filter-toolbar .select2-container,
    .filter-toolbar button,
    .active-members-filter-row .form-control,
    .active-members-filter-row .form-select,
    .active-members-filter-row .select2-container,
    .active-members-filter-btn,
    .active-members-filter-item,
    .employee-filter-row .form-control,
    .employee-filter-row .form-select,
    .employee-filter-row .select2-container,
    .employee-filter-input,
    .leave-filter-row .form-control,
    .leave-filter-row .form-select,
    .leave-filter-row .select2-container,
    .leave-filter-control,
    .leave-filter-action,
    .recruitment-filter-row .form-control,
    .recruitment-filter-row .form-select,
    .recruitment-filter-row .select2-container,
    .recruitment-filter-control,
    .recruitment-filter-action,
    .payroll-filter-row .form-control,
    .payroll-filter-row .form-select,
    .payroll-filter-row .select2-container,
    .payroll-filter-control,
    .payroll-filter-action,
    .finance-filter-row .form-control,
    .finance-filter-row .form-select,
    .finance-filter-row .select2-container,
    .finance-filter-action {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.module-summary-card {
    display: block;
    background: #fff;
    border-radius: 0;
    padding: 16px;
    height: 100%;
    margin-bottom: 16px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.module-summary-visuals {
    display: grid;
    grid-template-columns: 70px;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    justify-content: end;
    margin-left: auto;
}
.mini-donut {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--donut-bg, conic-gradient(var(--link-color, #001f34) calc(var(--donut-percent, 0) * 1%), #e2e8f0 0));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #0f172a;
    position: relative;
    cursor: default;
}
.mini-donut::after {
    content: '';
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
}
.mini-donut span {
    position: relative;
    z-index: 1;
}
.mini-donut:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(-8px);
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 5;
}
.module-summary-metrics {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}
.module-summary-metric {
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.module-summary-metric:hover {
    background: rgba(102, 126, 234, 0.08);
}
.module-summary-metric .metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
}
.module-summary-metric .metric-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-color, #001f34);
    display: inline-block;
}
.module-summary-metric .metric-value {
    font-weight: 600;
    color: #0f172a;
}

.module-summary-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.module-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-modern .welcome-card {
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.dashboard-modern .dashboard-section-title {
    font-weight: 700;
    color: #0f172a;
}

.dashboard-modern .dashboard-summary-title {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 12px;
}

.dashboard-modern .dashboard-group-title {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #0f172a;
    margin: 18px 0 10px;
}

.dashboard-modern .module-summary-card {
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-modern .module-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.dashboard-modern .module-summary-card.summary-card {
    border-color: #dbe3f0;
}

.dashboard-modern .module-summary-header {
    align-items: center;
    margin-bottom: 10px;
}

.dashboard-modern .module-summary-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 0;
    padding: 0;
}

.dashboard-modern .module-summary-card .stat-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.dashboard-modern .module-summary-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.dashboard-modern .module-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    margin-bottom: 10px;
}

.dashboard-modern .module-summary-stat {
    font-size: 12px;
    color: #6b7280;
}

.dashboard-modern .module-summary-value {
    font-weight: 600;
    color: #0f172a;
}

.dashboard-modern .module-summary-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-modern .module-summary-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #34d399, #22c55e);
}

.dashboard-modern .module-summary-trend {
    margin-top: 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.module-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 10px;
}

.module-summary-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
}

.module-summary-value {
    font-weight: 600;
    color: #111827;
}

@media (max-width: 992px) {
    .module-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .module-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* Advanced Importer */
.importer-steps {
    display: flex;
    flex-wrap: wrap;
    
    margin-bottom: 20px;
}
.importer-step {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.importer-step.active {
    border-color: var(--link-color);
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--link-color);
}
.importer-step-body {
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    padding: 20px;
    background: #ffffff;
}
.importer-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.importer-module-card {
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    padding: 16px;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s ease;
}
.importer-module-card input {
    display: none;
}
.importer-module-card:hover {
    border-color: var(--link-color);
}
.importer-module-card input:checked + .importer-module-title {
    color: var(--link-color);
}
.importer-module-title {
    font-weight: 700;
    margin-bottom: 4px;
}
.importer-module-meta {
    font-size: 12px;
}
.importer-module-card a:not(.btn),
#importerPage a:not(.btn) {
    color: var(--link-color, #001f34);
}
.importer-module-card a:not(.btn):hover,
.importer-module-card a:not(.btn):focus,
#importerPage a:not(.btn):hover,
#importerPage a:not(.btn):focus {
    color: var(--link-color, #001f34);
}
.importer-upload-box {
    border: 1px dashed #cbd5f5;
    border-radius: 0px;
    padding: 16px;
    background: #f8fafc;
}
.importer-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}
.importer-mapping-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}
.importer-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}
.importer-summary .stat-card {
    border-radius: 0px;
}


/* Settings page (moved from inline styles) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    top: 0 !important;
    right: .75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select2-selection__choice__remove {
    height: 100% !important;
    color: #fff !important;
    border-right: 0 !important;
}
.settings-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.settings-layout {
    display: flex;
    min-height: 600px;
}
.settings-sidebar {
    width: 260px;
    background: #fafbfc;
    border-right: 2px solid #f7fafc;
}
.settings-sidebar .settings-tabs {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 0;
    background: transparent;
}

.project-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
}

.project-tabs .tab-item {
    flex: 1 1 auto;
}

.project-tabs .tab-link {
    justify-content: center;
    text-align: center;
    border-left: 0;
    border-bottom: 3px solid transparent;
}

.project-tabs .tab-link.active {
    border-bottom-color: var(--link-color, #001f34);
}

.chatify-page {
    background: #f8f9fa;
    min-height: 100vh;
}
.chatify-wrap .messenger {
    height: calc(100vh - 170px);
}
@media (max-width: 991px) {
    .chatify-wrap .messenger {
        height: calc(100vh - 150px);
    }
}
.chatify-wrap .avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #111827;
    font-weight: 600;
    text-transform: uppercase;
}
.chatify-wrap .fa-star,
.chatify-wrap .fa-info-circle,
.chatify-wrap .fa-plus-circle,
.chatify-wrap .fa-smile,
.chatify-wrap .fa-paper-plane,
.chatify-wrap .fa-bell {
    color: var(--link-color, #001f34);
}
.chatify-wrap .listOfContacts {
    width: 100%;
    height: calc(100% - 272px);
    position: relative;
}
.chatify-wrap .header-avatar.chatify-header-avatar {
    margin: 0 10px;
    margin-top: -5px;
    margin-bottom: -5px;
}
.chatify-wrap .message-sender-name {
    font-size: 12px;
    margin-bottom: 4px;
}
.chatify-wrap .message-card .image-wrapper {
    text-align: start;
}
.chatify-wrap .message-card.mc-sender .image-wrapper {
    text-align: end;
}
.chatify-wrap .message-meta-block {
    margin-bottom: 5px;
}
.chatify-wrap .chatify-avatar-cell {
    position: relative;
}

.candidate-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #111827;
    font-weight: 600;
    margin-right: 12px;
}
.candidate-status-badge {
    cursor: pointer;
}
.candidate-prewrap {
    white-space: pre-wrap;
}
.candidate-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.candidate-timeline-item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
}
.candidate-timeline-item:last-child {
    margin-bottom: 0;
}
.candidate-timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    bottom: -18px;
    width: 2px;
    background: #e2e8f0;
}
.candidate-timeline-item:last-child::before {
    display: none;
}
.candidate-timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--link-color, #001f34);
    border: 3px solid #dbeafe;
}
.candidate-timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}
.candidate-timeline-note {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
}
.job-prewrap {
    white-space: pre-wrap;
}
.careers-page {
    background: linear-gradient(135deg, var(--primary-start, #001f34) 0%, var(--primary-end, #764ba2) 100%);
    min-height: 100vh;
    padding: 40px 0;
}
.careers-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.careers-header {
    color: #111;
    padding: 0px;
}
.careers-body {
    padding: 0px;
}
.job-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.job-detail-item i {
    width: 30px;
    color: var(--link-color, #001f34);
}
.logo-section {
    text-align: center;
    margin-bottom: 0;
}
.logo-section img {
    max-width: 250px;
    height: auto;
}
.careers-submit-btn {
    background: var(--link-color, #001f34);
    border-color: var(--link-color, #001f34);
    color: #fff;
    border-radius: 0;
}
.careers-submit-btn:hover,
.careers-submit-btn:focus {
    background: var(--link-color, #001f34);
    border-color: var(--link-color, #001f34);
    color: #fff;
}
.tab-item {
    flex: none;
}
.tab-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px 20px;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    width: 100%;
}
.tab-link:hover {
    background: #f7fafc;
    color: var(--link-color, #001f34);
}
.tab-link.active {
    color: var(--link-color, #001f34);
    background: #fff;
}
.tab-link i {
    font-size: 18px;
}
@media (min-width: 992px) {
    .settings-sidebar .settings-tabs .tab-link {
        justify-content: flex-start;
        text-align: left;
    }
}
.tab-content-wrapper {
    padding: 40px;
    flex: 1;
}
.tab-pane {
    display: none;
    animation: settingsFadeIn 0.4s ease;
}
.tab-pane.active {
    display: block;
}
@keyframes settingsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 992px) {
    .settings-layout {
        flex-direction: column;
        min-height: auto;
    }
    .settings-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 2px solid #f7fafc;
    }
    .settings-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .tab-item {
        flex: 1 1 50%;
    }
    .tab-link {
        justify-content: center;
        border-left: 0;
        border-bottom: 3px solid transparent;
    }
    .tab-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--link-color, #001f34);
    }
    .settings-tabs .tab-link span {
        display: none;
    }
}
.tab-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f7fafc;
}
.tab-header h5 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}
.settings-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}
.settings-section:last-child {
    border-bottom: none;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}
.logo-preview {
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-preview img {
    max-width: 100%;
    height: auto;
}
.logo-preview img#meetingLogoPreview {
    transition: width 180ms ease, height 180ms ease;
}
.favicon-preview {
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.favicon-preview img {
    max-width: 64px;
    height: auto;
}
.color-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}
.color-input {
    width: 80px;
    height: 50px;
    padding: 5px;
    cursor: pointer;
    border-radius: 10px;
}
.color-text {
    flex: 1;
    background: #f7fafc;
    font-family: monospace;
    font-weight: 600;
}
.color-preview {
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
}
.preview-box {
    height: 100%;
    background: linear-gradient(135deg, #001f34 0%, #001f34 100%);
    transition: background 0.3s ease;
}
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f7fafc;
}
.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
}
.status-row .form-control {
    flex: 1;
}
.status-row .status-color {
    width: 80px;
    height: 50px;
    padding: 0;
    border-radius: 10px;
}
.status-row-reaction .status-key {
    max-width: 170px;
}
.status-row-reaction .status-icon {
    max-width: 180px;
}
.status-handle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: grab;
}
.status-actions {
    display: flex;
    gap: 6px;
}
@media (max-width: 768px) {
    .tab-content-wrapper {
        padding: 20px;
    }
    .tab-link span {
        display: none;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
}
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ===========================
   AI Reports
   =========================== */
    min-height: 240px;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.95rem;
    color: #111827;
}
    color: #6b7280;
}
    white-space: nowrap;
}

/* ===========================
   Client Dashboard
   =========================== */
.client-dashboard .welcome-banner {
    background: linear-gradient(135deg, var(--primary-start, #001f34), var(--primary-end, #764ba2));
    color: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}
.client-dashboard .welcome-banner h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}
.client-dashboard .welcome-banner p {
    color: rgba(255, 255, 255, 0.85);
}
.client-dashboard .stat-card {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    height: 100%;
}
.client-dashboard .stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}
.client-dashboard .stat-card.info .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.client-dashboard .stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f5576c, #f093fb);
}
.client-dashboard .stat-card.success .stat-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}
.client-dashboard .stat-card.primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-start, #001f34), var(--primary-end, #764ba2));
}
.client-dashboard .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.client-dashboard .stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}
.client-dashboard .quick-action-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.client-dashboard .quick-action-card {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-dashboard .quick-action-card .icon {
    font-size: 22px;
    color: var(--link-color, #179283);
    margin-bottom: 10px;
}
.client-dashboard .quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}
.client-dashboard .chart-card {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    height: 100%;
}
.client-dashboard .chart-canvas-wrap {
    position: relative;
    height: 250px;
}
.client-dashboard .progress-bar-modern {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.client-dashboard .progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--primary-start, #001f34), var(--primary-end, #764ba2));
    transition: width 0.4s ease;
}
.client-dashboard .recent-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.client-dashboard .recent-item:last-child {
    border-bottom: 0;
}

/* ===========================
   Profile
   =========================== */
.profile-card {
    border-radius: 20px;
    overflow: hidden;
}
.profile-page .avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--link-color, #001f34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-page .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-page .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--sidebar-color-start, #001f34), var(--sidebar-color-end, #764ba2));
}
.profile-page .profile-role-badge {
    background: var(--link-color, #001f34);
}

/* ===========================
   Public Documents
   =========================== */
.public-document-page {
    background: #f3f4f6;
    padding: 30px 0;
}
.public-document-page .doc-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 28px;
    position: relative;
}
.public-document-page .doc-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    border-radius: 0 0 0 14px;
    background: linear-gradient(180deg, var(--sidebar-color-start, #001f34) 0%, var(--sidebar-color-end, #001f34) 100%);
}
.public-document-page .doc-meta {
    color: #64748b;
    font-size: 0.9rem;
}
.public-document-page .public-header {
    background: linear-gradient(180deg, var(--sidebar-color-start, #001f34) 0%, var(--sidebar-color-end, #001f34) 100%);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.public-document-page .public-logo {
    width: var(--logo-size, 200px);
    max-width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}
.public-document-page .table > :not(caption) > * > * {
    vertical-align: middle;
}
.document-preview-frame {
    width: 100%;
    height: 70vh;
    border: 0;
}
@media (max-width: 768px) {
    .public-document-page {
        padding: 14px 0;
    }
    .public-document-page .doc-card {
        padding: 16px 14px;
        border-radius: 0;
    }
    .public-document-page .doc-card::before {
        width: 4px;
    }
    .public-document-page .public-header {
        padding: 14px;
        margin-bottom: 12px;
    }
    .public-document-page h1 {
        font-size: 1.5rem;
    }
}

/* Job Embed Page */
.job-embed-page {
    margin: 0;
    background: #fff;
    color: #0f172a;
}
.job-embed-shell {
    width: 100%;
    max-width: none;
    padding: 16px;
}
.job-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.job-embed-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}
.job-embed-page .form-control,
.job-embed-page .form-select {
    border-radius: 8px;
}
@media (max-width: 768px) {
    .job-embed-shell {
        padding: 12px;
    }
    .job-embed-header h3 {
        font-size: 1.25rem;
    }
    .job-embed-card {
        padding: 10px;
    }
}

/* Careers Jobs Board */
.careers-public-shell {
    padding: 0 16px;
}
.careers-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.career-job-card {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.career-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: var(--link-color, #001f34);
}
.career-job-card:focus-visible {
    outline: 2px solid var(--link-color, #001f34);
    outline-offset: 2px;
}
.career-job-card.is-active {
    border-color: var(--link-color, #001f34);
    box-shadow: 0 0 0 2px rgba(0, 31, 52, 0.08);
}
.career-job-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.career-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 8px;
}
.career-job-summary {
    color: #64748b;
    font-size: 0.9rem;
}
.careers-apply-card {
    scroll-margin-top: 18px;
}
.careers-embed-shell {
    width: 100%;
    max-width: none;
    padding: 16px;
}
@media (max-width: 768px) {
    .careers-public-shell {
        padding: 0 10px;
    }
    .careers-jobs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .career-job-card {
        padding: 12px;
    }
    .careers-embed-shell {
        padding: 12px;
    }
}

/* ===========================
   Client Profile Tabs
   =========================== */
.client-profile-page .settings-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.client-profile-page .settings-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}
.client-profile-page .tab-item {
    flex: 1 1 auto;
}
.client-profile-page .tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}
.client-profile-page .tab-link:hover {
    background: #f7fafc;
    color: var(--link-color, #001f34);
}
.client-profile-page .tab-link.active {
    color: var(--link-color, #001f34);
    background: #fff;
    border-bottom-color: var(--link-color, #001f34);
}
.client-profile-page .tab-link i {
    font-size: 18px;
}
.client-profile-page .tab-content-wrapper {
    padding: 40px;
}
.client-profile-page .tab-pane {
    display: none;
    animation: client-profile-fade-in 0.4s ease;
}
.client-profile-page .tab-pane.active {
    display: block;
}
@keyframes client-profile-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Lead Modal Tabs
   =========================== */
.lead-modal-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}
.lead-modal-tabs .tab-item {
    flex: 1 1 auto;
}
.lead-modal-tabs .tab-link {
    width: auto;
    justify-content: center;
    text-align: center;
    border-left: 0;
    border-bottom: 3px solid transparent;
}
.lead-modal-tabs .tab-link.active {
    background: #fff;
    border-bottom-color: var(--link-color, #001f34);
}

/* ===========================
   Client Portal Profile
   =========================== */
.client-profile-page .client-profile-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 0;
    overflow: hidden;
}
.client-profile-page .client-profile-banner {
    background: linear-gradient(135deg, var(--sidebar-color-start, #001f34), var(--sidebar-color-end, #764ba2));
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
}
.client-profile-page .client-profile-banner h4 {
    margin: 0;
}
.client-profile-page .client-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--link-color, #001f34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
}
.client-profile-page .client-profile-card .card-body {
    padding: 32px;
}

/* ===========================
   Client Tickets
   =========================== */
.client-tickets-page .client-tickets-filter-row {
    
    flex-wrap: wrap;
}
.client-tickets-page .client-tickets-filter-btn {
    flex: 0 0 auto;
}

/* ===========================
   Public Invoice/Proposal Pages
   =========================== */
.public-doc-page {
    background: #f3f4f6;
    padding: 30px 0;
}

.public-doc-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 32px;
    position: relative;
}

.public-invoice-card::before,
.public-proposal-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
}

.public-invoice-card::before {
    width: 12px;
    background: linear-gradient(180deg, var(--primary-start), var(--primary-end));
}

.public-proposal-card::before {
    width: 12px;
     background: linear-gradient(180deg, var(--primary-start), var(--primary-end));
}

.public-doc-logo {
    width: var(--logo-size);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.public-doc-logo-wrap {
    background: linear-gradient(135deg, var(--primary-start, #001f34), var(--primary-end, #001f34));
    padding: 20px;
    border-radius: 8px;
}
.public-doc-logo-banner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--logo-banner-start, var(--primary-start, #001f34)), var(--logo-banner-end, var(--primary-end, #001f34)));
    margin-bottom: 20px;
}

.public-doc-section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 10px;
}
.public-doc-page a,
.public-doc-page a:visited {
    color: var(--link-color);
}
.public-doc-page a:hover,
.public-doc-page a:focus {
    color: var(--link-color);
    text-decoration: underline;
}

.proposal-details-page .proposal-details-content a,
.proposal-details-page .proposal-details-content a:visited {
    color: var(--link-color);
}

.proposal-details-page .proposal-details-content a:hover,
.proposal-details-page .proposal-details-content a:focus {
    color: var(--link-color);
    text-decoration: underline;
}

.public-doc-badge-status {
    font-size: 0.85rem;
}

.public-doc-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.public-doc-table thead th {
    background: var(--link-color);
    color: #fff;
}

.public-doc-table.table-bordered > :not(caption) > * {
    border-color: var(--link-color);
}

.public-doc-col-qty {
    width: 120px;
}

.public-doc-col-unit,
.public-doc-col-total {
    width: 160px;
}

/* Salary slip */
.salary-slip-page {
    font-family: var(--app-font-family);
    color: #0f172a;
    background: linear-gradient(135deg, var(--slip-primary-start, #001f34) 0%, var(--slip-primary-end, #764ba2) 100%);
    font-size: 14px;
    line-height: 1.5;
    padding: 20px;
}

.salary-slip-page * {
    box-sizing: border-box;
}

.salary-slip-shell {
    max-width: 1024px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.salary-slip-header {
    background: #ffffff;
    color: #0f172a;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.salary-slip-body {
    padding: 18px 20px 20px;
}

@media print {
    @page {
        margin: 10px 12px 12px;
        size: A4 landscape;
    }

    .salary-slip-page {
        padding: 0;
        background: #ffffff;
    }

    .salary-slip-shell {
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .salary-slip-header {
        border-radius: 0;
        padding: 12px 14px;
    }

    .salary-slip-body {
        padding: 12px 14px 16px;
    }
}

.salary-slip-page .header-table,
.salary-slip-page .grid-table,
.salary-slip-page .summary-table,
.salary-slip-page .info-table,
.salary-slip-page .split-table,
.salary-slip-page .mini-table,
.salary-slip-page .detail-table {
    width: 100%;
    border-collapse: collapse;
}

.salary-slip-page .header-table td,
.salary-slip-page .grid-table td,
.salary-slip-page .split-table td {
    vertical-align: top;
}

.salary-slip-page .salary-slip-logo {
    width: var(--salary-logo-size, 200px);
    height: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 64px;
    display: block;
}

.salary-slip-page .header-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 6px;
}

.salary-slip-page .subtitle {
    font-size: 12px;
    color: #6b7280;
}

.salary-slip-page .slip-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
}

.salary-slip-page .card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
    background: #ffffff;
    position: relative;
    box-shadow: none;
}

.salary-slip-page .card::before {
    content: none;
}

.salary-slip-page .section-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1f2937;
    margin-bottom: 12px;
}

.salary-slip-page .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.salary-slip-page .value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.salary-slip-page .info-table td {
    padding-right: 12px;
}

.salary-slip-page .mini-table td {
    padding: 4px 0;
}

.salary-slip-page .summary-table td {
    padding: 6px 0;
}

.salary-slip-page .amount {
    text-align: right;
    font-weight: 600;
}

.salary-slip-page .total-row td {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    font-weight: 700;
}

.salary-slip-page .pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
}

.salary-slip-page .muted {
    color: #94a3b8;
}

.salary-slip-page .detail-table th,
.salary-slip-page .detail-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.salary-slip-page .detail-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: #64748b;
    text-align: left;
    background: #f8fafc;
}

.salary-slip-page .detail-table .amount {
    text-align: right;
}

.salary-slip-page .detail-row-dayoff {
    background: #fef3c7;
}

.salary-slip-page .slip-text-right {
    text-align: right;
}

.salary-slip-page .slip-mt-10 {
    margin-top: 10px;
}

.salary-slip-page .slip-mt-8 {
    margin-top: 8px;
}

.salary-slip-page .slip-mt-6 {
    margin-top: 6px;
}

.salary-slip-page .slip-pt-6 {
    padding-top: 6px;
}

.salary-slip-page .slip-mb-4 {
    margin-bottom: 4px;
}

.salary-slip-page .slip-pr-10 {
    padding-right: 10px;
}

.salary-slip-page .slip-pl-10 {
    padding-left: 10px;
}

.salary-slip-page .slip-col-left {
    width: 58%;
    padding-right: 12px;
    vertical-align: top;
}

.salary-slip-page .slip-col-right {
    width: 42%;
    padding-left: 12px;
    vertical-align: top;
}

.salary-slip-page .slip-col-half-left {
    width: 50%;
    padding-right: 10px;
    vertical-align: top;
}

.salary-slip-page .slip-col-half-right {
    width: 50%;
    padding-left: 10px;
    vertical-align: top;
}

/* ===========================
   Settings
   =========================== */
.settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-test-target {
    min-width: 220px;
}

.settings-label-sm {
    font-size: 0.85rem;
    font-weight: 600;
}

.settings-col-160 {
    width: 160px;
}

.settings-min-height-80 {
    min-height: 80px;
}

.settings-section-gap {
    margin-top: 20px;
}

.settings-textarea-300 {
    min-height: 300px;
}

.settings-logo-preview-img {
    width: var(--settings-logo-size, 200px);
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

/* ===========================
   Project Form
   =========================== */
.select2-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select2-user-item img.avatar-sm {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.select2-user-item .avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #6c757d;
    font-weight: 600;
}

.select2-user-selection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.select2-user-avatar {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 50%;
    object-fit: cover;
}

.select2-user-initials {
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    border-radius: 50%;
    background: #6c757d;
    color: #fff;
}

.project-form .select2-container--default .select2-selection--multiple {
    min-height: 50px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f7fafc;
}

.project-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 4px 8px;
    border-radius: 0;
    background: #4f46e5;
    color: #fff;
    margin-top: 1px;
    margin-right: 6px;
    border: 1px solid #4f46e5;
}

.project-form .select2-selection__choice__remove {
    color: #fff;
    margin-right: 4px;
}

/* ===========================
   Font Preview
   =========================== */
.font-preview-page {
    margin: 0;
    padding: 24px;
    font-family: var(--preview-font-family, Arial, sans-serif);
    background: #f7fafc;
    color: #1a202c;
}

.font-preview-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.font-preview-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
}

.font-preview-card p {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.6;
}

.font-preview-meta {
    font-size: 14px;
    color: #718096;
}

/* ===========================
   Meeting Booking Page
   =========================== */
.meeting-booking-page,
.meeting-booking-page * {
    box-sizing: border-box;
}

.meeting-booking-page {
    font-family: var(--app-font-family);
    background: linear-gradient(135deg, var(--booking-start, #001f34) 0%, var(--booking-end, #764ba2) 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.meeting-booking-page .booking-container {
    max-width: 1200px;
    margin: 0 auto;
}

.meeting-booking-page .booking-wrapper {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    animation: bookingFadeInUp 0.6s ease-out;
}

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

.meeting-booking-page .booking-header {
    padding: 40px 30px;
    text-align: center;
}

.meeting-booking-page .company-logo {
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
    width: var(--booking-logo-size, 200px);
    height: auto;
}

.meeting-booking-page .booking-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.meeting-booking-page .booking-header p {
    font-size: 16px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.meeting-booking-page .duration-grid-wrapper {
    margin: 16px 0;
}

.meeting-booking-page .duration-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.meeting-booking-page .duration-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    font-weight: 600;
    color: #374151;
}

.meeting-booking-page .duration-card.selected {
    background: linear-gradient(90deg, var(--booking-start, #001f34), var(--booking-end, #764ba2));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.meeting-booking-page .booking-duration {
    display: inline-flex;
    align-items: center;
    
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 14px;
}

.meeting-booking-page .booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

@media (max-width: 968px) {
    .meeting-booking-page .booking-content {
        grid-template-columns: 1fr;
    }

    .meeting-booking-page .booking-calendar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

.meeting-booking-page .booking-calendar {
    padding: 30px;
    border-right: 1px solid #e5e7eb;
}

.meeting-booking-page .booking-form-container {
    padding: 30px;
    background: #f9fafb;
}

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

.meeting-booking-page .calendar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.meeting-booking-page .timezone-selector {
    display: flex;
    align-items: center;
    
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    color: #6b7280;
}

.meeting-booking-page .timezone-selector select {
    border: none;
    background: none;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    font-weight: 500;
}

.meeting-booking-page .booking-timezone-select {
    min-width: 0;
    width: 100%;
}

.meeting-booking-page .date-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meeting-booking-page .date-group {
    animation: bookingSlideIn 0.4s ease-out;
}

@keyframes bookingSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.meeting-booking-page .date-header {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--booking-link, #001f34);
}

.meeting-booking-page .time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

@media (max-width: 640px) {
    .meeting-booking-page {
        padding: 10px;
    }

    .meeting-booking-page .booking-header {
        padding: 30px 20px;
    }

    .meeting-booking-page .booking-header h1 {
        font-size: 24px;
    }

    .meeting-booking-page .booking-calendar,
    .meeting-booking-page .booking-form-container {
        padding: 20px;
    }

    .meeting-booking-page .calendar-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .meeting-booking-page .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

.meeting-booking-page .time-slot {
    padding: 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.meeting-booking-page .time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.meeting-booking-page .time-slot:hover {
    border-color: var(--booking-link, #001f34);
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.meeting-booking-page .time-slot.selected {
    background: linear-gradient(135deg, var(--booking-start, #001f34) 0%, var(--booking-end, #764ba2) 100%);
    color: #fff;
    border-color: var(--booking-link, #001f34);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.meeting-booking-page .loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.meeting-booking-page .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--booking-link, #001f34);
    border-radius: 50%;
    animation: bookingSpin 0.8s linear infinite;
}

@keyframes bookingSpin {
    to { transform: rotate(360deg); }
}

.meeting-booking-page .booking-loading-text {
    margin-top: 15px;
}

.meeting-booking-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.meeting-booking-page .empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.meeting-booking-page .booking-form {
    display: none;
    animation: bookingFadeIn 0.4s ease-out;
}

.meeting-booking-page .booking-form.active {
    display: block;
}

@keyframes bookingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.meeting-booking-page .form-group {
    margin-bottom: 20px;
}

.meeting-booking-page .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.meeting-booking-page .form-group label .required {
    color: #ef4444;
}

.meeting-booking-page .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.meeting-booking-page .form-control:focus {
    outline: none;
    border-color: var(--booking-link, #001f34);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.meeting-booking-page .form-control.error {
    border-color: #ef4444;
}

.meeting-booking-page .error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
}

.meeting-booking-page .selected-slot-info {
    background: #f0f4ff;
    border: 2px solid var(--booking-link, #001f34);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.meeting-booking-page .selected-slot-info h4 {
    font-size: 15px;
    color: var(--booking-link, #001f34);
    margin-bottom: 8px;
    font-weight: 600;
}

.meeting-booking-page .selected-slot-info p {
    font-size: 14px;
    color: #374151;
    margin: 4px 0;
}

.meeting-booking-page .btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.meeting-booking-page .btn-linkColor {
    background: linear-gradient(135deg, var(--booking-start, #001f34) 0%, var(--booking-end, #764ba2) 100%);
    color: #fff;
    width: 100%;
}

.meeting-booking-page .btn-linkColor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.meeting-booking-page .btn-linkColor:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.meeting-booking-page .btn-secondary {
    background: #fff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.meeting-booking-page .btn-secondary:hover {
    border-color: var(--booking-link, #001f34);
    color: var(--booking-link, #001f34);
}

.meeting-booking-page .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.meeting-booking-page .booking-action {
    flex: 1;
}

.meeting-booking-page .booking-action-primary {
    flex: 2;
}

.meeting-booking-page .booking-guest-hint {
    color: #6b7280;
    font-size: 13px;
}

.meeting-booking-page .confirmation-screen {
    display: none;
    text-align: center;
    padding: 60px 30px;
    animation: bookingFadeIn 0.6s ease-out;
}

.meeting-booking-page .confirmation-screen.active {
    display: block;
}

.meeting-booking-page .confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--booking-link, #001f34);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: bookingScaleIn 0.5s ease-out;
}

@keyframes bookingScaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.meeting-booking-page .confirmation-icon i {
    font-size: 40px;
    color: #fff;
}

.meeting-booking-page .confirmation-screen h2 {
    font-size: 28px;
    color: #111;
    margin-bottom: 12px;
}

.meeting-booking-page .confirmation-screen p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
}

.meeting-booking-page .meeting-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    text-align: left;
}

.meeting-booking-page .meeting-details-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.meeting-booking-page .meeting-details-row i {
    color: var(--booking-link, #001f34);
    margin-top: 3px;
    min-width: 20px;
}

.meeting-booking-page .meeting-details-row:last-child {
    margin-bottom: 0;
}


.timezone-selector.projects-filter-row {

    display: flex;
    align-items: center;
}
.timezone-selector.projects-filter-row .projects-filter-select {
    flex: 1;
}
.timezone-selector.projects-filter-row .project-select-wrap {
    width: 100%;
}
.timezone-selector.projects-filter-row .select2-container {
    flex: 1;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--link-color, #001f34) !important;
    border-radius: 0 !important;
}
.settings-tabs.developer-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.settings-tabs.developer-tabs .tab-item {
    flex: 1 1 0;
}

.settings-tabs.developer-tabs .tab-link {
    justify-content: center;
    width: 100%;
}

.screen-recording-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--link-color, #001f34);
    color: #fff;
    border: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    cursor: pointer;
}

.dialer-status-fab {
    position: fixed;
    right: 24px;
    bottom: 92px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    cursor: pointer;
}

.dialer-status-fab i {
    font-size: 18px;
}

.dialer-status-fab .dialer-status-text {
    display: none;
}

.dialer-status-fab.is-success {
    background: #16a34a;
}

.dialer-status-fab.is-warning {
    background: #f59e0b;
}

.dialer-status-fab.is-error,
.dialer-status-fab.is-info {
    background: #dc3545;
}

.screen-recording-fab.is-recording {
    background: #dc3545;
}

.screen-recording-fab i {
    font-size: 20px;
}

.status {
    position: fixed;
    right: 24px;
    bottom: 4px;
    max-width: 260px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #f8d7da;
    color: #b42318;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    z-index: 1049;
}
.status.d-none {
    display: none !important;
}
.status.is-visible {
    display: block !important;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .screen-recording-fab {
        right: 16px;
        bottom: 16px;
    }

    .dialer-status-fab {
        right: 16px;
        bottom: 84px;
    }
}

.form-control-color:not(:disabled):not([readonly]) {
    width: 100%;
}

.incoming-call-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.incoming-call-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 146, 131, 0.12);
    color: #179283;
    font-size: 20px;
}

.incoming-call-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 4px;
}

.incoming-call-number {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

/* Global Search (Header) */
.header-center {
    flex: 1 1 420px;
    display: flex;
    justify-content: center;
    position: relative;
}

.global-search {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.global-search .input-group {
    position: relative;
}

.global-search .global-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 6;
}

.global-search .form-control {
    border-color: #e2e8f0;
    padding-left: 36px;
}

.global-search .btn-outline-secondary {
    border-color: #e2e8f0;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-height: 420px;
    overflow: auto;
    z-index: 120;
}

.global-search-loading,
.global-search-empty {
    padding: 12px 16px;
    color: #64748b;
    font-size: 14px;
}

.global-search-group {
    padding: 8px 0;
}

.global-search-group + .global-search-group {
    border-top: 1px solid #f1f5f9;
}

.global-search-group-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
}

.global-search-group-list {
    display: flex;
    flex-direction: column;
}

.global-search-item {
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 16px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.global-search-item:hover,
.global-search-item.active {
    background: #f8fafc;
}

.global-search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.global-search-item-sub {
    font-size: 12px;
    color: #64748b;
}

.global-search-item-meta {
    font-size: 11px;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .dashboard-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        order: 1;
        width: 100%;
    }

    .header-right {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }

    .header-center {
        order: 3;
        width: 100%;
    }

    .global-search {
        max-width: 100%;
    }
}

/* Unified card/kanban hover effect */
.lead-card,
.task-card,
.project-card,
.client-card,
.user-card,
.role-card,
.candidate-card,
.recruitment-card,
.meeting-card,
.leave-card,
.finance-kanban-card,
.knowledge-article-card,
.contact-card,
.department-card,
.designation-card,
.career-job-card {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.lead-card:hover,
.task-card:hover,
.project-card:hover,
.client-card:hover,
.user-card:hover,
.role-card:hover,
.candidate-card:hover,
.recruitment-card:hover,
.meeting-card:hover,
.leave-card:hover,
.finance-kanban-card:hover,
.knowledge-article-card:hover,
.contact-card:hover,
.department-card:hover,
.designation-card:hover,
.career-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: var(--link-color, #001f34);
}
