/* ========================================
   VARIABLES
======================================== */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #5b7cfa;
    --accent-secondary: #6d5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* ========================================
   BASE STYLES
======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================================
   HEADER
======================================== */
.header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 600;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

/* ========================================
   CONTAINER & CARD
======================================== */
.container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   BADGES & STATUS
======================================== */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
    border: 1px solid var(--accent-warning);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.workshop-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 8px;
}

/* ========================================
   INFO ROWS
======================================== */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   SEARCH
======================================== */
.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

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

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-tertiary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    color: var(--text-secondary);
}

.clear-search:hover {
    background: var(--accent-danger);
    color: white;
}

/* ========================================
   PARTS LIST
======================================== */
.parts-section {
    margin-top: 25px;
}

.parts-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.part-item {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.part-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--accent-primary);
    padding: 10px;
}

.part-item.hidden {
    display: none;
}

.part-item.limit-reached {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid var(--accent-warning);
    padding: 10px;
}

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

.part-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
    word-wrap: break-word;
}

.part-limit {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.part-limit.warning {
    color: var(--accent-danger);
    font-weight: 600;
}

/* ========================================
   QTY CONTROL
======================================== */
.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--bg-tertiary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.15s;
    user-select: none;
}

.qty-btn:hover {
    background: var(--accent-primary);
}

.qty-btn:active {
    background: var(--accent-secondary);
}

.qty-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.qty-btn.minus {
    color: var(--accent-danger);
}

.qty-btn.minus:hover:not(:disabled) {
    background: var(--accent-danger);
    color: white;
}

.qty-btn.plus {
    color: var(--accent-success);
}

.qty-btn.plus:hover:not(:disabled) {
    background: var(--accent-success);
    color: white;
}

.qty-value {
    width: 35px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.qty-control.zero {
    opacity: 0.5;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success) 0%, #059669 100%);
    color: white;
}

.btn-success:active {
    transform: scale(0.98);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-danger) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   SELECTED COUNT
======================================== */
.selected-count {
    text-align: center;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
    display: none;
}

/* ========================================
   USED PARTS
======================================== */
.used-parts {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.used-parts h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.used-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 10px;
}

.used-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.used-item-qty {
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   LINKS
======================================== */
.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* ========================================
   NO RESULTS
======================================== */
.no-results {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    display: none;
}

/* ========================================
   WORKSHOP LIST
======================================== */
.workshop-list {
    display: grid;
    gap: 12px;
}

.workshop-item {
    display: block;
}

.workshop-btn {
    display: block;
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.workshop-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.workshop-code {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
}

.workshop-btn:hover .workshop-code {
    background: white;
    color: var(--accent-primary);
}

/* ========================================
   MANUAL INPUT
======================================== */
.manual-input {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.manual-input h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 18px;
}

input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ========================================
   HISTORY SECTION
======================================== */
.history-section {
    margin-top: 30px;
}

.history-section h2 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary);
}

.repair-list {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.repair-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.repair-item:active {
    background: var(--bg-tertiary);
}

.repair-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.bike-id {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
}

.repair-date {
    font-size: 13px;
    color: var(--text-muted);
}

.repair-master {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.repair-parts {
    font-size: 13px;
    color: var(--text-muted);
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ========================================
   RMS DASHBOARD
======================================== */
.menu {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.menu a {
    flex: 1;
    min-width: 150px;
    padding: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.menu a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-primary);
}

.menu a.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

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

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.filter-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-section h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.filter-btn {
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.repairs-list {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.repairs-list h2 {
    margin: 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    font-size: 20px;
    color: var(--text-primary);
}

/* ========================================
   PARTS MANAGEMENT (RMS)
======================================== */
.add-form {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.add-form h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.add-form p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
    min-height: 120px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.parts-list {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.parts-list h2 {
    margin: 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    font-size: 20px;
    color: var(--text-primary);
}

.limit-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 8px;
}

.limit-label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.limit-input {
    width: 70px;
    padding: 6px 8px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.limit-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-save-limit {
    padding: 6px 12px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    width: auto;
    margin: 0;
}

.btn-delete {
    padding: 8px 12px;
    background: var(--accent-danger);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    width: auto;
    margin: 0;
}

.limit-unlimited {
    color: var(--accent-success);
    font-weight: 600;
    font-size: 13px;
}

/* ========================================
   CONFIRM REPAIR
======================================== */
.warning-icon {
    text-align: center;
    margin-bottom: 20px;
}

.warning-icon svg {
    width: 60px;
    height: 60px;
    color: var(--accent-warning);
}

.info-box {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--accent-warning);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-box p {
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-box strong {
    color: var(--text-primary);
}

.last-repair-info {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.last-repair-info div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.last-repair-info div:last-child {
    border-bottom: none;
}

/* ========================================
   SVG ICONS
======================================== */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: currentColor;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* ========================================
   UTILITIES
======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

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

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .menu {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   SCAN STATUS
======================================== */
.scan-status {
    text-align: center;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.scan-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
    display: block;
}

.scan-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
    display: block;
}

/* ========================================
   CHANGE WORKSHOP LINK
======================================== */
.change-workshop {
    display: inline-block;
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
}

.change-workshop:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Fix для иконки поиска */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
    pointer-events: none;
}

.search-input {
    padding-left: 45px !important;
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* ========================================
   MODAL WINDOWS
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    padding: 20px;
}

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

.modal-box {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s;
    text-align: center;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.modal-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.modal-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

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

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-btn-cancel:hover {
    background: var(--border-color);
}

.modal-btn-confirm {
    color: white;
}

.modal-btn-confirm.danger {
    background: var(--accent-danger);
}

.modal-btn-confirm.danger:hover {
    background: #dc2626;
}

.modal-btn-confirm.warning {
    background: var(--accent-warning);
}

.modal-btn-confirm.warning:hover {
    background: #d97706;
}

.modal-btn-confirm.success {
    background: var(--accent-success);
}

.modal-btn-confirm.success:hover {
    background: #059669;
}

/* Кнопка-триггер для модалки */
.btn-modal-trigger {
    cursor: pointer;
}

/* ========================================
   FILTERS
======================================== */
.filter-row {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

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

.filter-input::placeholder {
    color: var(--text-muted);
}

/* Select стили */
select.filter-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* Даты в две колонки */
.filter-row-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Селекты в две колонки */
.filter-row-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Кнопки фильтров */
.filter-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Ремонт-инфо */
.repair-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    align-items: center;
}

.repair-info span {
    display: inline-flex;
    align-items: center;
}

/* Адаптив */
@media (max-width: 600px) {
    .filter-row-dates,
    .filter-row-selects {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons-row {
        flex-direction: column;
    }
    
    .filter-buttons-row .btn {
        width: 100%;
    }
    
    .repair-info {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* Date input стили для тёмной темы */
input[type="date"].filter-input {
    color-scheme: dark;
}

input[type="date"].filter-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#filter-loading {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
}

/* ========================================
   MECHANIC LOGIN
======================================== */
.mechanic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.mechanic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mechanic-card:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.mechanic-card.selected,
.mechanic-card:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mechanic-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mechanic-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.mechanic-workshop {
    font-size: 11px;
    color: var(--text-muted);
}

/* Форма в РМС */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .mechanic-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}



