/* SF Pro Display Font Family */
@font-face {
    font-family: 'SF Pro Display';
    src: url('../sf-pro-display/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../sf-pro-display/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../sf-pro-display/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../sf-pro-display/SFPRODISPLAYBLACKITALIC.OTF') format('opentype');
    font-weight: 900;
    font-style: italic;
}

/* Custom styles for Castor Cars */

/* Smooth transitions for interactive elements */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom car card hover effects */
.car-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom button animations */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}


/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive text adjustments */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Tab Navigation Styles */
.tab-nav-item {
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #606A75;
    font-weight: 500;
}

.tab-nav-item:hover {
    color: #323940;
}

.tab-nav-item.is-active {
    background-color: white;
    color: #323940;
}

.tab-content-item {
    display: none;
}

.tab-content-item.is-active {
    display: block;
}

/* Login Form Styles */
.shadow-box {
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px -1px rgba(0, 0, 0, 0.10);
}
.shadow-card {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
}

.input-wrap label {
    display: block;
    color: #323940;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.input-wrap input {
    width: 100%;
    background-color: #fff;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrap input:disabled {
    background-color: #EFF4F8;
}

.input-wrap input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.input-wrap input::placeholder {
    color: #8E8E93;
}

.input-wrap textarea {
    width: 100%;
    background-color: #fff;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    min-height: 80px;
}

.input-wrap textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.input-wrap textarea::placeholder {
    color: #8E8E93;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrap label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #606A75;
    font-weight: 500;
    margin: 0;
    user-select: none;
}

.checkbox-wrap label:before {
    content: '';
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #D3DCE4;
    background-color: #EFF4F8;
    margin-right: 8px;
}

.checkbox-wrap input:checked + label:before {
    background-color: #4763E4;
    border-color: #4763E4;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M2.91675%207.58325L5.25008%209.91659L11.0834%204.08325%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-wrap input {
    display: none;
}

/* Forgot password link */
.forgot-password {
    color: #007AFF;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #0056CC;
    text-decoration: underline;
}


.login-container {
    width: 448px;
    max-width: 100%;
}

.btn {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    border-radius: 10px;
    background-color: #0E1B6B;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
}
.btn.btn-red {
    background-color: #E24E3E;
}
.btn.btn-red-invert {
    background-color: transparent;
    color: #E24E3E;
}
.btn.btn-green {
    background-color: #0E9F6E;
}
.btn.btn-invert {
    border: 1px solid #4763E4;
    background-color: transparent;
    color: #4763E4;
}

.header-nav .item {
    color: #606A75;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    background-color: #E6E5E9;
    border-right: 1px solid #606A75;
    padding: 16px;
    width: 100%;
}
.header-nav .item:first-child {
    border-radius: 10px 0 0 10px;
}
.header-nav .item:last-child {
    border-radius: 0 10px 10px 0;
    border-right: none
}
.header-nav .item.is-active {
    border-radius: none;
    background-color: #4763E4;
    color: #fff;
}

/* Data Table Styles */
.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    color: #606A75;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.24px;
    text-transform: uppercase;
    border-top: 1px solid #E6E5E9;
}

.data-table th.sortable:hover {
    background-color: #E9ECEF;
}

.data-table th.sortable {
    position: relative;
}

.sort-icon {
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.data-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.data-table th.sortable.sorted-asc .sort-icon {
    opacity: 1;
    transform: rotate(180deg);
}

.data-table th.sortable.sorted-desc .sort-icon {
    opacity: 1;
}

.data-table tbody tr {
    border-bottom: 1px solid #E6E5E9;
    transition: background-color 0.2s ease;
}

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

.data-table td {
    padding: 16px 24px;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    vertical-align: middle;
    border-top: 1px solid #E6E5E9;
}

/* Status badges */
.status-badge {
    display: block;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
}

.status-badge.completed {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.rejected {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-badge.in-progress {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* Action buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn.edit {
    color: #007AFF;
}

.action-btn.edit:hover {
    background-color: rgba(0, 122, 255, 0.1);
}

.action-btn.delete {
    color: #FF3B30;
}

.action-btn.delete:hover {
    background-color: rgba(255, 59, 48, 0.1);
}

.action-btn.download {
    color: #34C759;
}

.action-btn.download:hover {
    background-color: rgba(52, 199, 89, 0.1);
}

/* Dropdown Action Menu */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #606A75;
}

.action-menu-btn:hover {
    background-color: #F8F9FA;
    color: #323940;
}

.action-menu-btn svg {
    width: 16px;
    height: 16px;
}

.action-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 160px;
    background-color: white;
    border: 1px solid #E6E5E9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.action-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: #323940;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.action-dropdown-item:hover {
    background-color: #F8F9FA;
}

/* Dropdown arrow */
.action-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: white;
    border-left: 1px solid #E6E5E9;
    border-top: 1px solid #E6E5E9;
    transform: rotate(45deg);
}

/* Pagination styles */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E6E5E9;
    background-color: white;
    color: #323940;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #F8F9FA;
    border-color: #D3DCE4;
}

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

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E6E5E9;
    background-color: white;
    color: #323940;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin-left: -1px;
    margin-right: -1px;
}

.page-number:hover {
    background-color: #F8F9FA;
    border-color: #D3DCE4;
}

.page-number.active {
    background-color: #EFF4F8;
    border-color: #E6E5E9;
    color: #4763E4;
}

/* Loading state */
.table-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #606A75;
}

.table-loading .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #E6E5E9;
    border-top: 2px solid #4763E4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.table-empty {
    text-align: center;
    padding: 40px;
    color: #606A75;
}

.table-empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

/* Responsive table */
@media (max-width: 768px) {
    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 16px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .action-btn {
        width: 28px;
        height: 28px;
    }

    .pagination-btn,
    .page-number {
        width: 32px;
        height: 32px;
    }
}

/* Bulk actions (future enhancement) */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #E6E5E9;
    margin-bottom: 16px;
}

.bulk-actions.hidden {
    display: none;
}

.bulk-checkbox {
    margin-right: 8px;
}

.bulk-btn {
    padding: 6px 12px;
    border: 1px solid #E6E5E9;
    border-radius: 6px;
    background-color: white;
    color: #323940;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-btn:hover {
    background-color: #F8F9FA;
}

.bulk-btn.danger {
    color: #FF3B30;
    border-color: #FF3B30;
}

.bulk-btn.danger:hover {
    background-color: #FF3B30;
    color: white;
}

.close {
    color: #fff;
    border: 1px solid #0E1B6B;
    background-color: #0E1B6B;
    border-radius: 50%;
    padding: 8px;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-input {
    width: 100%;
    background-color: #fff;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    padding: 12px 16px;
    padding-right: 40px;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.dropdown-input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.dropdown-input::placeholder {
    color: #8E8E93;
}

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

/* Scrollable dropdown items container */
.dropdown-menu .dropdown-items-scroll {
    max-height: 200px;
    overflow-y: auto;
    flex: 1;
}

/* Sticky button container at bottom */
.dropdown-menu .dropdown-sticky-bottom {
    padding: 16px;
    position: sticky;
    bottom: 0;
}

/* For dropdowns without scrollable structure, maintain backward compatibility */
.dropdown-menu:not(:has(.dropdown-items-scroll)) {
    max-height: 200px;
    overflow-y: auto;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F8F9FA;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #F8F9FA;
}

.dropdown-item.selected {
    background-color: #EFF4F8;
    color: #4763E4;
    font-weight: 500;
}

/* Custom Date Picker Styles */
.custom-datepicker {
    position: relative;
    width: 100%;
}

.datepicker-input {
    width: 100%;
    background-color: #fff;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    padding: 12px 16px;
    padding-right: 40px;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.datepicker-input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.datepicker-input::placeholder {
    color: #8E8E93;
}

.datepicker-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #606A75;
}

.datepicker-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
    padding: 16px;
    min-width: 280px;
}

.custom-datepicker.open .datepicker-calendar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.datepicker-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #606A75;
}

.datepicker-nav-btn:hover {
    background-color: #F8F9FA;
}

.datepicker-title {
    font-size: 14px;
    font-weight: 500;
    color: #323940;
    display: flex;
    gap: 4px;
}

.datepicker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.datepicker-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #606A75;
    padding: 8px 4px;
}

.datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.datepicker-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #323940;
    transition: all 0.2s ease;
    position: relative;
}

.datepicker-day:hover:not(.disabled) {
    background-color: #F8F9FA;
}

.datepicker-day.selected {
    background-color: #007AFF;
    color: white;
    font-weight: 500;
}

.datepicker-day.today {
    background-color: #EFF4F8;
    color: #007AFF;
    font-weight: 500;
}

.datepicker-day.disabled {
    color: #C7C7CC;
    cursor: not-allowed;
}

.datepicker-day.other-month {
    color: #C7C7CC;
}

/* Custom Multi-Select Styles */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-input {
    position: relative;
    width: 100%;
    background-color: #fff;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    padding: 8px 16px;
    padding-right: 40px;
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.multiselect-input:focus-within {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-height: 20px;
}

.multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #EFF4F8;
    color: #323940;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: #606A75;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.multiselect-tag-remove:hover {
    background-color: rgba(96, 106, 117, 0.1);
}

.multiselect-search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    min-width: 0;
    padding: 0;
    margin-left: 4px;
}

.multiselect-search::placeholder {
    color: #8E8E93;
}

.multiselect-clear {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    color: #606A75;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.multiselect-clear:hover {
    background-color: rgba(96, 106, 117, 0.1);
    color: #323940;
}

.multiselect-clear.visible {
    opacity: 1;
    visibility: visible;
}

.multiselect-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-multiselect.open .multiselect-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.multiselect-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #E6E5E9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.custom-multiselect.open .multiselect-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.multiselect-item {
    padding: 8px 16px;
    transition: background-color 0.2s ease;
}

.multiselect-item:hover {
    background-color: #F8F9FA;
}

.multiselect-item .checkbox-wrap {
    margin: 0;
}

.multiselect-item .checkbox-wrap label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    color: #323940;
    font-weight: 400;
}

.warning-msg {
    color: #E24E3E;
    border-radius: 8px;
    background: rgba(226, 78, 62, 0.06);
    padding: 0 16px 0px 40px;
    margin-left: -24px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    color: #323940;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
}

.modal .close-modal {
    cursor: pointer;
}

.modal .shadow-box .p-6.border-b {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Printing Tabs Styles */
.printing-tab-nav-item {
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #606A75;
}

.printing-tab-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.printing-tab-nav-item.is-active {
    background-color: white;
    color: #323940;
    font-weight: 500;
}

.printing-tab-content-item {
    display: none;
}

.printing-tab-content-item.is-active {
    display: block;
}

/* Rich Text Editor Styles */
.rich-text-editor-container {
    margin-top: 1rem;
}

.rich-text-toolbar {
    border-bottom: none;
}

.rich-text-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #606A75;
}

.rich-text-btn:hover {
    background-color: #f3f4f6;
    color: #323940;
}

.rich-text-btn.active {
    background-color: #e5e7eb;
    color: #323940;
}

.rich-text-color {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.rich-text-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.rich-text-color::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.rich-text-font-size {
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #606A75;
    font-size: 12px;
    padding: 0 8px;
    transition: all 0.2s ease;
}

.rich-text-font-size:hover {
    background-color: #f3f4f6;
    color: #323940;
}

.rich-text-font-size:focus {
    outline: none;
    background-color: #e5e7eb;
    color: #323940;
}

.rich-text-editor {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-y: auto;
}

.rich-text-editor:focus {
    outline: none;
}

.rich-text-editor p {
    margin: 0 0 0.5rem 0;
}

.rich-text-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.rich-text-editor h1,
.rich-text-editor h2,
.rich-text-editor h3,
.rich-text-editor h4,
.rich-text-editor h5,
.rich-text-editor h6 {
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.rich-text-editor ul,
.rich-text-editor ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.rich-text-editor blockquote {
    margin: 0.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid #e5e7eb;
    color: #6b7280;
}

/* Image upload button styling */
.rich-text-btn[data-command="insertImage"] {
    position: relative;
}

.rich-text-btn[data-command="insertImage"]:hover {
    background-color: #f3f4f6;
}

/* Responsive adjustments for rich text editor */
@media (max-width: 768px) {
    .rich-text-toolbar {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .rich-text-btn {
        width: 28px;
        height: 28px;
    }

    .rich-text-color {
        width: 28px;
        height: 28px;
    }
}



/* Added by DW (not part of original SH code */
.datatable-container{
    /*width:80%;*/
    background:#fff;
    padding: 5px 10px;
}

.datatable{
    width: 100%;
}

.item-edit,
.item-delete{
    cursor:pointer;
}

.vehicle-status{
    font-size:35px;
    font-weight:bold;
    color:#f00;
    border:2px solid #f00;
    padding: 5px 10px;
}

button#PdfPreview:disabled,
button#CarjamLookup:disabled,
button#CarjamDetails:disabled{
    background-color: #e0e0e0;
}

input:read-only{
    background-color: #f0f0f0;
    cursor: default;
}

.validation-summary-errors{
    margin: 15px 0;
}

.validation-summary-errors ul{

}

.validation-summary-errors li{
    color:#f00;
    font-size:14px;
}

.highlight {
  background-color: #fff9c4 !important;

}
div.dt-container .datatable tbody tr td.currency-cell {
  text-align: right !important;
}

.uppercase {
      text-transform: capitalize;
}



