﻿.sortable-ghost {
    opacity: 0.4;
    background-color: #f0f0f0;
}

.sortable-drag {
    opacity: 0.9;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
}

.drag-handle-sortable {
    display: inline-flex;
    align-items: center;
    cursor: grab;
}

    .drag-handle-sortable:active {
        cursor: grabbing;
    }

.drag-handle {
    color: #74788d;
    cursor: grab;
    user-select: none;
}

    .drag-handle:active {
        cursor: grabbing;
    }

.disabled-drag-handle {
    color: #74788d;
    opacity: 0.5;
    cursor: not-allowed;
    user-select: none;
}

.customer-card {
    border: 1px solid #3E4352 !important;
    transition: all 0.15s ease-in-out;
    margin-bottom: 8px;
    background: #252b3b !important;
}

    .customer-card:hover {
        border-color: #099680 !important;
        box-shadow: 0 0 0 1px #099680 !important;
    }

.customer-card-dark {
    border: 1px solid #3a4050 !important;
    transition: all 0.2s ease-in-out;
    user-select: text;
}

    .customer-card-dark:hover {
        border-color: #099680 !important;
        box-shadow: 0 0 0 1px #099680 !important;
    }

    .customer-card-dark .mud-card-content,
    .customer-card-dark .mud-typography,
    .customer-card-dark span,
    .customer-card-dark strong,
    .cust-details,
    .last-inv,
    .inv-date,
    .inv-total,
    .inactive-geo {
        user-select: text !important;
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
    }

.pinned-card {
    border: 1px solid #8ab4f8 !important;
    background: rgba(138, 180, 248, 0.05) !important;
    position: relative;
}

    .pinned-card:hover {
        border-color: #8ab4f8 !important;
        box-shadow: 0 0 0 1px #8ab4f8 !important;
    }

.unassigned-card {
    border: 2px solid var(--mud-palette-secondary) !important;
    background: rgba(var(--mud-palette-secondary-rgb), 0.05) !important;
}

.no-padding-checkbox,
.mud-icon-button,
.drag-handle,
.drag-handle-sortable,
.disabled-drag-handle,
.circle,
.status-dot {
    user-select: none;
}

.justify-start {
    justify-content: flex-start !important;
}

.checkbox-small-text .mud-checkbox-label {
    font-size: 12px !important;
}

.circle {
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    color: white;
    background: #3E4352;
    flex-shrink: 0;
}

    .circle.pinned {
        background: #8ab4f8;
        color: #ffffff !important;
    }

    .circle.unassigned {
        background: var(--mud-palette-secondary) !important;
    }

    .circle.inactive-route {
        background: #d32f2f;
    }

    .circle.inactive-customer {
        background: #FF5722;
    }

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1) inset;
    margin-top: 2px;
}

    .status-dot.ok {
        background: #2e7d32;
    }

    .status-dot.bad {
        background: #d32f2f;
    }

.inactive-geo {
    color: #d32f2f;
    font-weight: 700;
}

.last-inv {
    color: #00796b;
    margin-left: 8px;
}

.inv-total {
    color: #22bd85;
    margin-left: 8px;
}

    .inv-total.negative {
        color: #d32f2f !important;
    }

.inv-date {
    color: #8ab4f8;
    margin-left: 8px;
}

.cust-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cust-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

    .cust-title strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

.cust-status {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    min-width: 250px;
    flex-shrink: 0;
}

    .cust-status.collapsed-layout {
        justify-content: space-between;
        gap: 0;
    }

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.collapsed-select {
    width: 110px !important;
    flex-shrink: 0;
}

.service-time-container {
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
}

.service-time-wrapper {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-top: 5px;
}

.time-slot-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.expanded-select {
    width: 110px !important;
}

.cust-details {
    margin-top: 8px;
    padding-left: 30px;
}

.compact-select .mud-input {
    font-size: 14px !important;
    height: 34px !important;
    min-height: 34px !important;
}

.compact-select .mud-input-control {
    height: 34px !important;
    min-height: 34px !important;
}

.compact-select .mud-input-label {
    font-size: 12px !important;
}

.compact-select .mud-select {
    height: 34px !important;
}

.no-padding-checkbox .mud-button-root {
    padding: 0 !important;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(9, 150, 128, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(9, 150, 128, 0.2);
}

.checkbox-with-warning {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 8px;
}

.warning-icon {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: #f57c00 !important;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

    .warning-icon:hover {
        color: #ff9800 !important;
    }

.premium-checkbox {
    flex: 1;
    width: 100% !important;
}

    .premium-checkbox:hover {
        background-color: rgba(9, 150, 128, 0.08);
        border-radius: 6px;
    }

    .premium-checkbox .mud-checkbox {
        padding: 4px !important;
    }

    .premium-checkbox .mud-checkbox-content {
        font-size: 0.875rem !important;
        font-weight: 450 !important;
        color: #bec0c5 !important;
        font-family: 'Work Sans', sans-serif !important;
    }

    .premium-checkbox .mud-button-root {
        min-height: 24px !important;
        height: 24px !important;
        border-radius: 4px !important;
    }

.segment {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

    .segment .mud-button-root {
        flex: 1;
        margin: 0;
        height: 30px;
        font-weight: 700;
        font-size: 10px;
    }

        .segment .mud-button-root + .mud-button-root {
            border-left: 1px solid #fff;
        }

.radio-group-container {
    padding: 8px 12px;
    background: rgba(9, 150, 128, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(9, 150, 128, 0.2);
}

.premium-radio-group {
    display: flex;
    gap: 16px;
}

.premium-radio {
    transition: all 0.2s ease;
}

    .premium-radio:hover {
        background-color: rgba(9, 150, 128, 0.08);
        border-radius: 6px;
        padding: 4px 8px;
        margin: -4px -8px;
    }

    .premium-radio .mud-radio {
        padding: 4px !important;
    }

    .premium-radio .mud-typography {
        font-weight: 450 !important;
        color: #bec0c5 !important;
        font-family: 'Work Sans', sans-serif !important;
    }

.fuel-cost-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fuel-info-button {
    position: absolute;
    top: -18px;
    right: 0;
    z-index: 1;
}

.premium-settings-panel {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(10px);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid rgba(9, 150, 128, 0.2);
    background: linear-gradient(135deg, #252b3b 0%, #1d222e 100%);
    border-radius: 16px 16px 0 0;
}

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

.settings-content {
    padding: 0;
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .settings-content::-webkit-scrollbar {
        width: 4px;
    }

    .settings-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .settings-content::-webkit-scrollbar-thumb {
        background: rgba(9, 150, 128, 0.4);
        border-radius: 2px;
    }

        .settings-content::-webkit-scrollbar-thumb:hover {
            background: rgba(9, 150, 128, 0.6);
        }

.settings-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(9, 150, 128, 0.1);
    transition: background-color 0.2s ease;
    background: var(--mud-palette-background);
}

    .settings-section:hover {
        background-color: rgba(9, 150, 128, 0.02);
    }

    .settings-section:last-child {
        border-bottom: none;
        border-radius: 0 0 16px 16px;
    }

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(9, 150, 128, 0.2);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-input .mud-input {
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: var(--mud-palette-background) !important;
    border-color: #74788d !important;
    color: #bec0c5 !important;
}

    .premium-input .mud-input:hover {
        box-shadow: 0 2px 8px rgba(9, 150, 128, 0.25) !important;
        border-color: #099680 !important;
    }

    .premium-input .mud-input:focus-within {
        box-shadow: 0 4px 12px rgba(9, 150, 128, 0.3) !important;
        border-color: #099680 !important;
    }

.premium-input .mud-input-control {
    border-radius: 8px !important;
}

.premium-input .mud-input-slot {
    color: #bec0c5 !important;
}

.premium-input .mud-input-label {
    font-weight: 500 !important;
    color: #74788d !important;
    font-family: 'Work Sans', sans-serif !important;
}

    .premium-input .mud-input-label.mud-input-label-inputfocus {
        color: #099680 !important;
    }
