/* ============================================
   Customer Portal Stylesheet
   ============================================ */

:root {
    --cp-sidebar-width: 280px;
    --cp-sidebar-width-collapsed: 80px;
    --cp-topbar-height: 70px;
    --cp-transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Page Loading Indicator
   ============================================ */

.cp-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity;
}

.cp-page-loader.cp-page-loader-visible {
    opacity: 1;
    pointer-events: auto;
}

.cp-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--primary-color2);
    border-radius: 50%;
    animation: cp-spin 0.8s linear infinite;
}

@keyframes cp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Alert Modal
   ============================================ */

.cp-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cp-alert-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.cp-alert-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 90%;
    animation: cp-alert-slideIn 0.3s ease;
}

@keyframes cp-alert-slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cp-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--borders-color);
}

.cp-alert-header i {
    font-size: 24px;
    color: #ef4444;
}

.cp-alert-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--title-color);
}

.cp-alert-body {
    padding: 20px;
}

.cp-alert-body p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.cp-alert-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--borders-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cp-alert-footer .cp-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 100px;
}

/* ============================================
   Body & Container
   ============================================ */

.cp-body {
    background: #f8f9fa;
    font-family: var(--font-nunito);
    overflow-x: hidden;
    width: 100%;
}

.cp-container {
    display: grid;
    grid-template-columns: var(--cp-sidebar-width) 1fr;
    min-height: 100vh;
    gap: 0;
    width: 100%;
}

/* ============================================
   Sidebar
   ============================================ */

.cp-sidebar {
    background: white;
    border-right: 1px solid var(--borders-color);
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--cp-sidebar-width);
    overflow-y: auto;
    transition: var(--cp-transition);
    z-index: 999;
}

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

.cp-sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
}

.cp-sidebar-logo img,
.cp-sidebar-logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.cp-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--title-color);
}

.cp-sidebar-nav {
    flex: 1;
    margin-bottom: 20px;
}

.cp-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-nav-item {
    margin-bottom: 8px;
}

.cp-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--cp-transition);
    gap: 12px;
    position: relative;
}

.cp-nav-link i {
    font-size: 18px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-nav-link span {
    white-space: nowrap;
}

.cp-nav-link:hover {
    background: #f0f5ff;
    color: var(--primary-color2);
}

.cp-nav-link.active {
    background: linear-gradient(135deg, var(--primary-color2) 0%, #0078b8 100%);
    color: white;
}

/* Nav Dividers */
.cp-nav-divider {
    margin: 15px 0 10px 0;
    padding: 0;
}

.cp-nav-divider-text {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.cp-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    text-transform: capitalize;
}

.cp-sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--borders-color);
}

.cp-logout {
    color: #ef4444;
}

.cp-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================
   Main Wrapper & Topbar
   ============================================ */

.cp-main-wrapper {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: 0;
    width: 100%;
    overflow: hidden;
}

.cp-topbar {
    background: white;
    border-bottom: 1px solid var(--borders-color);
    padding: 0 40px;
    height: var(--cp-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.cp-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--title-color);
}

.cp-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

.cp-topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 10px;
}

.cp-company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex-shrink: 0;
}

.cp-company-logo img,
.cp-company-logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================
   Content Area
   ============================================ */

.cp-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   Dashboard Sections
   ============================================ */

.cp-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.cp-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

.cp-section-subtitle {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
}

.cp-view-all {
    color: var(--primary-color2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--cp-transition);
}

.cp-view-all:hover {
    color: #0078b8;
}

/* ============================================
   Stats Grid
   ============================================ */

.cp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.cp-stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    align-items: flex-start;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--cp-transition);
}

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

.cp-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color2) 0%, #0078b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
    min-width: 50px;
}

.cp-stat-content {
    flex: 1;
    min-width: 0;
}

.cp-stat-label {
    font-size: 11px;
    color: var(--text-color);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cp-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0 0 3px 0;
    word-break: break-word;
}

.cp-stat-change {
    font-size: 11px;
    color: #10b981;
    margin: 0;
}

/* ============================================
   Dashboard Grid
   ============================================ */

.cp-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cp-section-sidebar {
    grid-column: 1;
}

/* ============================================
   Tables
   ============================================ */

.cp-table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.cp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 100%;
}

.cp-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid var(--borders-color);
}

.cp-table thead th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    font-size: 11px;
}

.cp-table tbody td {
    padding: 10px;
    border-bottom: 1px solid var(--borders-color);
    color: var(--text-color);
    font-size: 13px;
    text-transform: capitalize;
}

.cp-table tbody tr:last-child td {
    border-bottom: none;
}

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

.cp-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.cp-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.cp-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.cp-badge-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.cp-action-btn {
    color: var(--primary-color2);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--cp-transition);
}

.cp-action-btn:hover {
    color: #0078b8;
}

/* ============================================
   Buttons
   ============================================ */

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cp-transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.cp-btn-primary:hover {
    background: #0078b8;
}

.cp-btn-secondary {
    background: #e5e7eb;
    color: var(--title-color);
}

.cp-btn-secondary:hover {
    background: #d1d5db;
}

/* ============================================
   Status Cards
   ============================================ */

.cp-status-cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cp-status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: var(--cp-transition);
    width: 100%;
}

.cp-status-item:hover {
    background: #f0f5ff;
}

.cp-status-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cp-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.cp-status-in-transit {
    background: #dbeafe;
    color: #1e40af;
}

.cp-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.cp-status-cancelled {
    background: #fee2e2;
    color: #7f1d1d;
}

.cp-status-label {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
}

.cp-status-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

/* ============================================
   Filters
   ============================================ */

.cp-filters-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cp-filters-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.cp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cp-search-input,
.cp-select-input,
.cp-date-input {
    padding: 10px 12px;
    border: 1px solid var(--borders-color);
    border-radius: var(--border-radius);
    font-family: var(--font-nunito);
    font-size: 13px;
    color: var(--text-color);
    transition: var(--cp-transition);
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    appearance: none;
    background-clip: padding-box;
}

.cp-select-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.cp-search-input:focus,
.cp-select-input:focus,
.cp-date-input:focus {
    outline: none;
    border-color: var(--primary-color2);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

/* Form Control Styles - Tüm form element'leri için tutarlı styling */
.cp-form-control,
.cp-form-control-lg {
    padding: 10px 12px;
    border: 1px solid var(--borders-color);
    border-radius: var(--border-radius);
    font-family: var(--font-nunito);
    font-size: 13px;
    color: var(--text-color);
    transition: var(--cp-transition);
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    appearance: none;
    background-clip: padding-box;
}

.cp-form-control-lg {
    height: auto;
    min-height: 40px;
}

.cp-form-control:focus,
.cp-form-control-lg:focus {
    outline: none;
    border-color: var(--primary-color2);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

/* Select dropdown custom arrow */
.cp-form-control[type="select"],
.cp-form-control:is(select) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Form Group */
.cp-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 5px;
}

.cp-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cp-filter-btn {
    padding: 0;
    background: var(--primary-color2);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-nunito);
    transition: var(--cp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.cp-filter-btn:hover {
    background: #0078b8;
    transform: translateY(-2px);
}

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

/* ============================================
   Pagination
   ============================================ */

.cp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--borders-color);
}

.cp-pagination-btn {
    padding: 8px 15px;
    border: 1px solid var(--borders-color);
    background: white;
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-nunito);
    transition: var(--cp-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cp-pagination-btn:hover:not(:disabled) {
    background: var(--primary-color2);
    color: white;
    border-color: var(--primary-color2);
}

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

.cp-pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.cp-pagination-num {
    width: 36px;
    height: 36px;
    border: 1px solid var(--borders-color);
    background: white;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-nunito);
    transition: var(--cp-transition);
}

.cp-pagination-num:hover {
    border-color: var(--primary-color2);
    color: var(--primary-color2);
}

.cp-pagination-num.cp-active {
    background: var(--primary-color2);
    color: white;
    border-color: var(--primary-color2);
}

.cp-pagination-dots {
    color: var(--text-color);
    padding: 0 5px;
}

/* ============================================
   Active Trips
   ============================================ */

.cp-active-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cp-trip-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--cp-transition);
}

.cp-trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.cp-trip-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

.cp-trip-route {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cp-trip-location {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cp-trip-location i {
    font-size: 18px;
}

.cp-trip-location-label {
    font-size: 11px;
    color: var(--text-color);
    text-transform: uppercase;
    margin: 0;
}

.cp-trip-location-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--title-color);
    margin: 0;
}

.cp-trip-arrow {
    color: var(--text-color);
    font-size: 18px;
}

.cp-trip-progress {
    margin-bottom: 20px;
}

.cp-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color2) 0%, #0078b8 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.cp-progress-text {
    font-size: 12px;
    color: var(--text-color);
    margin: 0;
}

.cp-trip-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borders-color);
}

.cp-trip-detail-item {
    text-align: center;
}

.cp-trip-detail-label {
    font-size: 11px;
    color: var(--text-color);
    text-transform: uppercase;
    margin: 0;
}

.cp-trip-detail-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--title-color);
    margin: 5px 0 0 0;
}

/* ============================================
   Invoices
   ============================================ */

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

.cp-invoice-stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--cp-transition);
}

.cp-invoice-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cp-invoice-stat-label {
    font-size: 13px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.cp-invoice-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color2);
    margin: 0 0 8px 0;
}

.cp-invoice-stat-meta {
    font-size: 12px;
    color: var(--text-color);
    margin: 0;
}

/* ============================================
   Location Icons (Active Trips)
   ============================================ */

.cp-trip-location-icon-departure {
    color: #10b981;
}

.cp-trip-location-icon-arrival {
    color: #ef4444;
}

/* ============================================
   Empty & Error States
   ============================================ */

.cp-empty-state-container,
.cp-error-state-container {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
}

.cp-error-state-container {
    color: #ef4444;
}

.cp-empty-state-icon {
    font-size: 48px;
    color: var(--primary-color2);
}

.cp-error-state-icon {
    font-size: 48px;
}

.cp-empty-state-text,
.cp-error-state-text {
    margin-top: 20px;
    font-size: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .cp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .cp-dashboard-grid {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .cp-section-sidebar {
        grid-column: 1;
    }

    .cp-filters-row {
        grid-template-columns: 1fr 1fr;
    }

    .cp-content {
        padding: 25px;
    }

    .cp-topbar {
        padding: 0 25px;
    }
}

@media (max-width: 992px) {
    :root {
        --cp-sidebar-width: 70px;
        --cp-sidebar-expanded: 280px;
    }

    .cp-container {
        grid-template-columns: 1fr;
    }

    .cp-sidebar {
        width: var(--cp-sidebar-width);
        padding: 15px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        transition: all 0.3s ease;
    }

    .cp-sidebar.cp-sidebar-open {
        width: var(--cp-sidebar-expanded);
        padding: 20px;
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

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

    .cp-nav-text {
        display: none;
    }

    .cp-sidebar.cp-sidebar-open .cp-nav-text {
        display: inline;
        white-space: nowrap;
    }

    .cp-nav-link {
        justify-content: center;
        padding: 12px;
        flex-direction: column;
        gap: 0;
    }

    .cp-sidebar.cp-sidebar-open .cp-nav-link {
        justify-content: flex-start;
        padding: 12px 15px;
        flex-direction: row;
        gap: 12px;
    }

    .cp-nav-link i {
        width: auto;
        margin-right: 0;
        font-size: 18px;
    }

    .cp-sidebar.cp-sidebar-open .cp-nav-link i {
        margin-right: 8px;
    }

    .cp-badge {
        position: absolute;
        top: 15px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 9px;
        padding: 0;
    }
    .badge-trip,
    .contracts-badge,
    .offer-badge,
    .badge-trip,
    .docs-badge {
        position: relative !important;
        inset: 0;
        width: max-content;
        height: max-content;
        font-size: 10px;
        padding: 4px 8px;
    }

    .cp-sidebar-footer {
        display: none;
    }

    .cp-sidebar.cp-sidebar-open .cp-sidebar-footer {
        display: block;
    }

    .cp-sidebar-close {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .cp-sidebar.cp-sidebar-open .cp-sidebar-close {
        position: static;
    }

    .cp-sidebar-toggle {
        display: block;
    }

    .cp-topbar {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .cp-content {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .cp-filters-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        align-items: center;
    }

    .cp-filter-btn {
        width: 40px;
        height: 40px;
    }

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

    .cp-active-trips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cp-page-title {
        font-size: 20px;
    }

    .cp-table {
        font-size: 12px;
    }

    .cp-table thead th,
    .cp-table tbody td {
        padding: 10px;
    }

    .cp-filters-row {
        grid-template-columns: 1fr;
    }

    .cp-stat-card {
        padding: 15px;
    }

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

    .cp-section {
        padding: 20px;
    }

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

@media (max-width: 576px) {
    :root {
        --cp-sidebar-width: 0;
    }

    .cp-container {
        grid-template-columns: 1fr;
    }

    .cp-sidebar {
        width: 280px;
        left: -280px;
        position: fixed;
        padding: 20px;
    }

    .cp-sidebar.cp-sidebar-open {
        left: 0;
    }

    .cp-nav-text {
        display: inline;
        white-space: nowrap;
    }

    .cp-nav-link {
        justify-content: flex-start;
        padding: 12px 15px;
        flex-direction: row;
        gap: 12px;
    }

    .cp-nav-link i {
        width: auto;
        margin-right: 0;
    }

    .cp-sidebar-footer {
        display: block;
    }

    .cp-main-wrapper {
        grid-column: 1;
    }

    .cp-content {
        padding: 12px;
    }

    .cp-topbar {
        padding: 0 10px;
        height: 60px;
        gap: 8px;
    }

    .cp-topbar-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .cp-sidebar-toggle {
        font-size: 20px;
        flex-shrink: 0;
    }

    .cp-page-title {
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cp-topbar-right {
        flex-shrink: 0;
        margin-left: auto;
    }

    .cp-company-logo {
        height: 32px;
        flex-shrink: 0;
    }

    .cp-company-logo img,
    .cp-company-logo-img {
        height: 32px;
        max-width: 80px;
    }

    .cp-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .cp-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
        gap: 8px;
    }

    .cp-stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .cp-stat-value {
        font-size: 18px;
    }

    .cp-stat-label {
        font-size: 10px;
    }

    .cp-stat-content {
        width: 100%;
    }

    .cp-section {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .cp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .cp-section-header h2 {
        font-size: 15px;
        margin: 0;
    }

    .cp-section-subtitle {
        font-size: 12px;
    }

    .cp-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .cp-table thead th,
    .cp-table tbody td {
        padding: 8px;
    }

    .cp-pagination {
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 15px;
    }

    .cp-pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .cp-pagination-numbers {
        gap: 2px;
    }

    .cp-pagination-num {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .cp-trip-card {
        padding: 12px;
    }

    .cp-trip-header {
        margin-bottom: 12px;
    }

    .cp-trip-header h3 {
        font-size: 14px;
    }

    .cp-trip-route {
        margin-bottom: 12px;
        gap: 8px;
    }

    .cp-trip-location-name {
        font-size: 13px;
    }

    .cp-trip-details {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .cp-trip-detail-label {
        font-size: 10px;
    }

    .cp-trip-detail-value {
        font-size: 10px;
    }

    .cp-invoice-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cp-invoice-stat-card {
        padding: 12px;
    }

    .cp-invoice-stat-label {
        font-size: 10px;
    }

    .cp-invoice-stat-value {
        font-size: 18px;
    }

    .cp-invoice-stat-meta {
        font-size: 11px;
    }

    .cp-filters-row {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: center;
    }

    .cp-filter-btn {
        width: 40px;
        height: 40px;
        justify-self: start;
    }

    .cp-status-cards {
        gap: 10px;
        flex-wrap: wrap;
    }

    .cp-status-item {
        padding: 10px;
        gap: 10px;
        width: 43%;
    }

    .cp-status-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .cp-map-container {
        height: 300px;
    }

    .cp-active-trips-grid {
        gap: 15px;
    }
}

@media (max-width: 380px) {
    .cp-topbar {
        padding: 0 8px;
        height: 55px;
        gap: 4px;
    }

    .cp-topbar-left {
        gap: 6px;
    }

    .cp-content {
        padding: 8px;
    }

    .cp-page-title {
        font-size: 13px;
    }

    .cp-sidebar-toggle {
        font-size: 18px;
    }

    .cp-topbar-right {
        margin-left: 4px;
    }

    .cp-company-logo {
        height: 28px;
    }

    .cp-company-logo img,
    .cp-company-logo-img {
        height: 28px;
        max-width: 70px;
    }

    .cp-sidebar {
        width: 280px;
    }

    .cp-nav-link {
        padding: 12px;
    }

    .cp-nav-link i {
        margin-right: 8px;
    }

    .cp-nav-text {
        font-size: 13px;
    }

    .cp-stat-card {
        padding: 12px;
        gap: 10px;
    }

    .cp-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .cp-stat-label {
        font-size: 10px;
    }

    .cp-stat-value {
        font-size: 18px;
    }

    .cp-section {
        padding: 10px;
    }

    .cp-table thead th,
    .cp-table tbody td {
        padding: 6px;
    }

    .cp-section-header h2 {
        font-size: 14px;
    }

    .cp-trip-card {
        padding: 10px;
    }

    .cp-map-container {
        height: 250px;
    }
}

.cp-map-container {
    width: 100%;
    height: 420px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#cp-map {
    width: 100%;
    height: 100%;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    font-family: var(--font-nunito);
}

.leaflet-popup-content {
    margin: 8px;
}

.cp-trip-location-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-trip-location-name {
    cursor: help;
}

.cp-popup-container {
    font-family: var(--font-nunito);
    font-size: 13px;
    min-width: 220px;
    padding: 5px 0;
}

.cp-popup-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 10px;
    border-radius: 4px 4px 0 0;
    margin: -8px -8px 8px -8px;
    font-size: 14px;
    font-weight: bold;
}

.cp-popup-body {
    padding: 0 5px;
}

.cp-popup-item {
    margin: 6px 0;
    font-size: 12px;
}

.cp-popup-progress {
    margin: 6px 0;
    font-size: 12px;
    border-top: 1px solid #eee;
    padding-top: 6px;
    color: #059669;
    font-weight: bold;
}

/* ============================================
   Profile Section
   ============================================ */

.cp-profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cp-profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.cp-profile-row:last-child {
    margin-bottom: 0;
}

.cp-profile-field {
    display: flex;
    flex-direction: column;
}

.cp-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cp-field-value {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.cp-profile-content-hidden {
    display: none;
}

.cp-profile-content-hidden.cp-profile-content-visible {
    display: block;
}

.cp-profile-loading {
    text-align: center;
    padding: 30px;
}

.cp-profile-loading-icon {
    font-size: 24px;
    color: var(--primary-color2);
}

.cp-profile-loading-text {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cp-profile-card {
        padding: 20px;
    }

    .cp-profile-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .cp-profile-card {
        padding: 15px;
    }

    .cp-profile-row {
        gap: 15px;
        margin-bottom: 15px;
    }

    .cp-field-label {
        font-size: 11px;
    }

    .cp-field-value {
        font-size: 14px;
    }
}

/* ============================================
   NEW: Filter Grid & Tables
   ============================================ */

.cp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 0;
}

.cp-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.cp-text-right {
    text-align: right;
}

.cp-text-ellipsis {
    /* Tam text göster, truncate etme */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ============================================
   NEW: Pagination
   ============================================ */

.cp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 0;
}

.cp-pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.cp-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: var(--primary-color2);
}

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

.cp-pagination-pages {
    display: flex;
    gap: 5px;
}

.cp-pagination-page {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.cp-pagination-page:hover {
    border-color: var(--primary-color2);
}

.cp-pagination-page.active {
    background: var(--primary-color2);
    color: white;
    border-color: var(--primary-color2);
}

.cp-pagination-info {
    font-size: 13px;
    color: #6b7280;
    min-width: 80px;
}

/* ============================================
   NEW: Status Badges
   ============================================ */

.cp-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.cp-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.cp-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.cp-badge-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

/* ============================================
   NEW: Info Box
   ============================================ */

.cp-info-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.cp-info-icon {
    font-size: 28px;
    color: #3b82f6;
    flex-shrink: 0;
}

.cp-info-content {
    flex: 1;
}

.cp-info-content h3 {
    margin: 0 0 10px 0;
    color: #1e40af;
    font-size: 16px;
}

.cp-info-content ul {
    margin: 0;
    padding-left: 20px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
}

.cp-info-content li {
    margin: 8px 0;
}

/* ============================================
   NEW: Action Buttons Container
   ============================================ */

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

.cp-action-btn {
    padding: 6px 10px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color2);
    transition: all 0.2s;
}

.cp-action-btn:hover {
    background: #f3f4f6;
    border-color: var(--primary-color2);
}

/* ============================================
   NEW: Form Styles
   ============================================ */

.cp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cp-form-row.full {
    grid-template-columns: 1fr;
}

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

    .cp-text-ellipsis {
        max-width: 150px;
    }

    .cp-form-row {
        grid-template-columns: 1fr;
    }

    .cp-pagination {
        flex-wrap: wrap;
    }

    .cp-info-box {
        flex-direction: column;
    }

    .cp-action-buttons {
        flex-direction: column;
    }

    .cp-action-buttons .cp-btn {
        width: 100%;
        padding: inherit;
    }
}

/* ============================================
   Tabs Navigation
   ============================================ */

.cp-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    padding: 0 0 0 0;
    margin-bottom: 25px;
}

.cp-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.cp-tab:hover {
    color: #374151;
}

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

.cp-tab-badge {
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.cp-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cp-tabs {
        gap: 5px;
    }

    .cp-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .cp-tab i {
        display: none;
    }
}

/* ===== EXCEL IMPORT MODULE CSS ===== */

/* Modal Base Styles */
.cp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.cp-modal.active {
    display: flex;
}

.cp-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: auto;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cp-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.cp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-modal-close:hover {
    color: #1f2937;
}

.cp-modal-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.cp-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cp-section-header-with-action {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .cp-section-header-with-action {
        grid-template-columns: 1fr;
    }
}

/* Import Wizard Step Indicator */
.import-step-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.import-step-dot.active {
    background: var(--primary-color2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
    transform: scale(1.05);
}

.import-step-dot.done {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Drop zone hover/drag state */
#importDropZone {
    transition:
        border-color 0.2s,
        background 0.2s;
}

#importDropZone:hover,
#importDropZone.drag-over {
    border-color: var(--primary-color2);
    background: #eff6ff;
}

#importDropZone.drag-over i {
    color: var(--primary-color2);
}

/* Import mapping grid responsive */
@media (max-width: 600px) {
    #importMappingGrid {
        grid-template-columns: 1fr !important;
    }
}

/* Progress error row */
.import-error-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 10px;
    background: #fee2e2;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #7f1d1d;
}

/* Import steps */
.import-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== REQUESTS PAGE UTILITIES ===== */

.cp-requests {
    /* Container for requests page */
}

.import-example-box {
    margin-top: 15px;
    padding: 10px 0;
}

.import-example-box p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
}

.import-example-box a {
    font-size: 12px;
    padding: 6px 12px;
}

.import-loading-state {
    text-align: center;
    padding: 30px;
}

.import-loading-state i {
    font-size: 24px;
    color: var(--primary-color2);
}

.import-loading-state p {
    margin-top: 10px;
}

.cp-modal-content {
    max-width: 900px;
}

.import-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 25px 0;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.import-step-indicator .import-step-dot {
    flex-shrink: 0;
}

.import-step-indicator .import-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    display: block;
    transition: background 0.2s ease;
}

.import-step-indicator .import-step-line.done {
    background: #10b981;
}

.import-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.import-drop-zone i {
    font-size: 48px;
    color: #9ca3af;
    display: block;
    margin-bottom: 15px;
}

.import-drop-zone-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.import-drop-zone-subtitle {
    color: #9ca3af;
    font-size: 13px;
    margin: 0 0 20px;
}

.import-drop-zone-btn {
    margin-bottom: 15px;
}

.import-file-name {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.import-error-box {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    background: #fee2e2;
    border-radius: 8px;
    color: #7f1d1d;
    font-size: 13px;
}

.import-mapping-label {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 20px;
}

.import-mapping-label strong {
    color: #ef4444;
}

.import-mapping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .import-mapping-grid {
        grid-template-columns: 1fr !important;
    }
}

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

.import-preview-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.import-preview-table-container {
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

.import-preview-warnings {
    margin-top: 15px;
    display: none;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
}

.import-progress-container {
    position: relative;
    min-height: 400px;
}

.import-progress-title {
    color: #374151;
    font-weight: 600;
    margin: 0 0 15px;
}

.import-progress-bar-wrapper {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.import-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color2);
    transition: width 0.3s ease;
    border-radius: 6px;
}

.import-progress-text {
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    margin: 0 0 15px;
}

.import-progress-errors {
    max-height: 150px;
    overflow-y: auto;
}

/* ============================================
   Import Button & Hidden Elements
   ============================================ */

.import-button-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.import-file-input-hidden {
    display: none;
}

.import-step-hidden {
    display: none;
}

/* ============================================
   Map Header & Controls
   ============================================ */

.card-header {
    background: white;
    border-bottom: 1px solid var(--borders-color);
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.card-title {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.card-label {
    margin: 0;
    color: var(--title-color);
}

.card-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-group {
    display: inline-flex;
    gap: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.btn-group .btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid #e5e7eb;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-group .btn:last-child {
    border-right: none;
}

.fw-bold {
    font-weight: 600;
}

.fs-3 {
    font-size: 1.25rem;
}

.fs-7 {
    font-size: 0.875rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.text-muted {
    color: #6b7280;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-toolbar {
        width: 100%;
    }
}

/* ============================================
   Button Styles for Map Controls
   ============================================ */

.btn-light-primary {
    background-color: #f3f6f9;
    border-color: #e5e7eb;
    color: var(--primary-color2);
    transition: all 0.3s ease;
}

.btn-light-primary:hover {
    background-color: #edf2f9;
    border-color: #d1d5db;
}

.btn-primary {
    background-color: var(--primary-color2);
    border-color: var(--primary-color2);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0078b8;
    border-color: #0078b8;
}

.btn-light-info {
    background-color: #f3f6f9;
    border-color: #e5e7eb;
    color: #0dcaf0;
}

.btn-light-info:hover {
    background-color: #edf2f9;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.btn-icon {
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Text Ellipsis (Standard Tooltip)
   ============================================ */

.cp-ellipsis {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    cursor: help;
    text-decoration: underline dotted;
    text-decoration-color: #9ca3af;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .cp-ellipsis {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .cp-ellipsis {
        max-width: 120px;
    }
}

/* ============================================
   Data Tooltip (Custom Tooltips)
   ============================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: cp-tooltip-appear 0.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    z-index: 1000;
}


@keyframes cp-tooltip-appear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   Dashboard Payment CTA
   ============================================ */

.cp-payment-cta-section {
    margin: 24px 0;
    padding: 0 24px;
}

.cp-payment-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color2, #3b82f6) 0%, #2563eb 100%);
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cp-payment-cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    color: white;
}

.cp-payment-cta-icon {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.cp-payment-cta-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.cp-payment-cta-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.cp-payment-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cp-payment-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .cp-payment-cta-section {
        padding: 0 16px;
    }

    .cp-payment-cta-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 16px;
    }

    .cp-payment-cta-content {
        justify-content: center;
        width: 100%;
    }

    .cp-payment-cta-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .cp-payment-cta-text h3 {
        font-size: 16px;
    }

    .cp-payment-cta-text p {
        font-size: 13px;
    }

    .cp-payment-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Payment Page Styles
   ============================================ */

.cp-payment-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.cp-payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.cp-payment-form-section {
    flex: 1;
}

.cp-payment-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.cp-payment-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cp-payment-title i {
    color: var(--primary-color2, #3b82f6);
    font-size: 22px;
}

.cp-payment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cp-payment-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-payment-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 3px;
}

.cp-required {
    color: #ef4444;
    font-weight: 700;
}

.cp-payment-input {
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.cp-payment-input:focus {
    outline: none;
    border-color: var(--primary-color2, #3b82f6);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.cp-payment-input::placeholder {
    color: #9ca3af;
}

.cp-card-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-size: 16px;
}

.cp-expiry-input,
.cp-cvv-input {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 1px;
}

.cp-payment-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.cp-error-text {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 2px;
    font-weight: 500;
}

.cp-error-text:not(:empty) {
    display: block;
}

.cp-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
}

.cp-amount-input-wrapper .cp-payment-input {
    padding-right: 40px;
}

.cp-currency-symbol {
    position: absolute;
    right: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

.cp-payment-terms {
    padding: 12px;
    background: #fafbfc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
    margin-bottom: 0;
}

.cp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.cp-checkbox-input {
    margin-top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cp-checkbox-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.cp-terms-link {
    color: var(--primary-color2, #3b82f6);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.cp-terms-link:hover {
    border-bottom-color: var(--primary-color2, #3b82f6);
}

.cp-payment-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color2, #3b82f6), #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

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

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

.cp-payment-btn i {
    font-size: 15px;
}

/* Summary Section */
.cp-payment-summary-section {
    display: flex;
    flex-direction: column;
}

.cp-payment-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.cp-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.cp-summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cp-summary-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.cp-summary-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.cp-summary-total .cp-summary-label {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.cp-summary-total .cp-summary-value {
    font-size: 18px;
    color: var(--primary-color2, #3b82f6);
}

.cp-summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

.cp-security-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid #dcfce7;
}

.cp-security-info i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

.cp-security-info p {
    font-size: 11px;
    color: #065f46;
    margin: 0;
    line-height: 1.3;
}

/* Corporate Links Footer - Below Form */
.cp-corporate-links-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.cp-corporate-title-footer {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cp-links-list-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-corporate-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cp-corporate-link-footer:hover {
    border-color: var(--primary-color2, #3b82f6);
    color: var(--primary-color2, #3b82f6);
    background: #f0f9ff;
}

.cp-corporate-link-footer i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cp-payment-wrapper {
        grid-template-columns: 1fr 320px;
    }

    .cp-payment-summary {
        top: 70px;
    }
}

@media (max-width: 1024px) {
    .cp-payment-wrapper {
        grid-template-columns: 1fr;
    }

    .cp-payment-summary {
        position: static;
    }

    .cp-links-list-footer {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cp-payment-container {
        padding: 16px;
        gap: 24px;
    }

    .cp-payment-card {
        padding: 20px;
    }

    .cp-payment-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cp-payment-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cp-links-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cp-links-list-footer {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .cp-payment-container {
        padding: 12px;
        gap: 16px;
    }

    .cp-payment-card {
        padding: 16px;
        border-radius: 8px;
    }

    .cp-payment-title {
        font-size: 18px;
        gap: 8px;
        margin-bottom: 16px;
    }

    .cp-payment-form {
        gap: 6px;
    }

    .cp-payment-row {
        gap: 10px;
    }

    .cp-payment-group {
        gap: 3px;
    }

    .cp-payment-input {
        font-size: 16px;
        padding: 11px 12px;
    }

    .cp-payment-btn {
        padding: 12px 16px;
        font-size: 14px;
        margin-top: 6px;
    }

    .cp-payment-summary {
        padding: 16px;
    }

    .cp-summary-title {
        font-size: 16px;
    }

    .cp-summary-value {
        font-size: 14px;
    }

    .cp-summary-total .cp-summary-value {
        font-size: 18px;
    }

    .cp-corporate-links-footer {
        margin-top: 12px;
        padding-top: 12px;
    }

    .cp-corporate-title-footer {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .cp-links-list-footer {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .cp-corporate-link-footer {
        padding: 7px 5px;
        font-size: 10px;
    }

    .cp-error-text {
        font-size: 11px;
        margin-top: 2px;
        min-height: 12px;
    }

    .cp-payment-hint {
        font-size: 11px;
        margin-top: 1px;
    }
}