body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

.container {
    min-height: 100vh;
    padding: 20px;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: #e2e8f0;
    background: #334155;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.nav a:hover {
    background: #475569;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    width: 100%;
    max-width: 100%;
    background: #1e293b;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

h2 {
    margin: 0 0 12px 0;
}

h3 {
    margin-top: 0;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    color: #94a3b8;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
}

input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
}

.password-field {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.password-field input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.password-toggle {
    flex: 0 0 auto;
    min-width: 96px;
    margin-top: 0;
    border-radius: 0 10px 10px 0;
    border: 1px solid #334155;
    border-left: 0;
    background: #334155;
    padding: 0 12px;
    font-size: 14px;
}

.password-toggle:hover {
    background: #475569;
}

select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
    resize: vertical;
}

button {
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

button:hover {
    background: #1d4ed8;
}

.error {
    background: #7f1d1d;
    color: #fecaca;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.menu-item {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.empty-state {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    text-align: center;
}

.page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.wide-card {
    max-width: 1100px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #334155;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.back-btn:hover {
    background: #475569;
}

.menu-link {
    text-decoration: none;
    color: inherit;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.request-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 18px;
}

.request-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.badge {
    background: #1d4ed8;
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.request-id {
    color: #94a3b8;
    font-size: 13px;
}

.request-priority {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.priority-urgent {
    background: #7f1d1d;
    border-color: #b91c1c;
    color: #fee2e2;
}

.priority-normal {
    background: #facc15;
    border-color: #eab308;
    color: #111827;
}

.equipment-on {
    background: #14532d;
    border-color: #16a34a;
    color: #dcfce7;
}

.equipment-off {
    background: #7f1d1d;
    border-color: #b91c1c;
    color: #fee2e2;
}

.status-new {
    background: #1d4ed8;
    border-color: #2563eb;
    color: #dbeafe;
}

.status-accepted {
    background: #0f766e;
    border-color: #14b8a6;
    color: #ccfbf1;
}

.status-in-progress {
    background: #7c2d12;
    border-color: #ea580c;
    color: #ffedd5;
}

.status-completed {
    background: #14532d;
    border-color: #16a34a;
    color: #dcfce7;
}

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

.dispatcher-status-new {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.dispatcher-status-accepted {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1d4ed8;
}

.dispatcher-status-in-progress {
    background: #bfdbfe;
    border-color: #2563eb;
    color: #1e3a8a;
}

.dispatcher-status-completed {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.dispatcher-status-cancelled {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.local-badge {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
    margin-right: 6px;
}

.pending-badge {
    background: #7c2d12;
    border-color: #ea580c;
    color: #ffedd5;
    margin-right: 6px;
}

.priority-neutral {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.request-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 20px;
}

.request-info p {
    margin: 8px 0;
    color: #cbd5e1;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.small-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: #334155;
}

.secondary-btn:hover {
    background: #475569;
}

.notify-banner {
    margin: 12px 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #14532d;
    color: #dcfce7;
    font-weight: bold;
}

.warning-banner {
    margin: 12px 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #78350f;
    color: #fef3c7;
    font-weight: bold;
    border: 1px solid #f59e0b;
}

.admin-ops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.admin-ops-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-ops-toggle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
}

.admin-ops-toggle span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-ops-toggle small {
    color: #94a3b8;
    line-height: 1.4;
}

.admin-ops-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.admin-ops-details summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #334155;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.admin-management-table {
    margin-top: 0;
}

.admin-management-table th,
.admin-management-table td {
    min-width: 120px;
}

.admin-management-table th:last-child,
.admin-management-table td:last-child,
.admin-table-actions-cell {
    min-width: 220px;
}

.admin-table-actions {
    align-items: stretch;
    min-width: 220px;
}

.admin-table-actions form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 0;
}

.admin-action-input {
    width: min(260px, 100%);
    min-width: 0;
}

.admin-table-actions .small-btn,
.admin-table-actions .back-btn {
    flex: 0 0 auto;
    margin-top: 0;
    min-height: 42px;
    white-space: normal;
}

.mechanic-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #f59e0b;
    background: #78350f;
    color: #fef3c7;
}

.mechanic-alert-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-wrap: anywhere;
}

.mechanic-alert-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mechanic-alert-close {
    margin-top: 0;
    background: #f59e0b;
    color: #111827;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
}

.mechanic-alert-close:hover {
    background: #d97706;
}

.hidden {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #334155;
    vertical-align: top;
}

th {
    background: #1d4ed8;
    color: white;
    font-weight: bold;
}

tr:hover td {
    background: #172036;
}

ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

li {
    margin-bottom: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #334155;
    text-align: left;
    vertical-align: top;
}

label {
    font-size: 14px;
    color: #cbd5e1;
}

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.request-actions form {
    width: 100%;
}

.request-actions .small-btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
}

.mechanic-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mechanic-title {
    margin: 0;
}

.mechanic-meta {
    margin-top: 8px;
}

.mechanic-card-title {
    margin-top: 0;
}

.mechanic-filter-form {
    max-width: 100%;
    margin-bottom: 14px;
}

.mechanic-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.mechanic-context-badges {
    margin-top: 10px;
}

.mechanic-primary-action {
    max-width: 220px;
}

.mechanic-filter-actions .back-btn,
.dispatcher-filter-actions .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mechanic-period-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mechanic-period-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.mechanic-page .request-card h3 {
    overflow-wrap: anywhere;
}

.mechanic-page .request-info p {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .container {
        align-items: flex-start;
        padding: 12px;
    }

    .card {
        padding: 18px;
        border-radius: 14px;
    }

    .wide-card {
        max-width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .requests-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mechanic-report-grid,
    .mechanic-requests-grid {
        grid-template-columns: 1fr;
    }

    .mechanic-filter-actions,
    .mechanic-period-links {
        flex-direction: column;
        align-items: stretch;
    }

    .mechanic-filter-actions .small-btn,
    .mechanic-filter-actions .back-btn,
    .mechanic-period-link {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
    }

    .request-card {
        padding: 14px;
    }

    .mechanic-page .request-top {
        align-items: flex-start;
        gap: 8px;
    }

    .mechanic-page .request-id {
        text-align: right;
        line-height: 1.3;
    }

    .mechanic-page .small-btn {
        min-height: 48px;
        font-size: 16px;
        padding: 12px;
    }

    .mechanic-context-badges {
        width: 100%;
    }

    .mechanic-context-badges .priority-badge,
    .pilot-choice-option,
    .pilot-choice-option span {
        width: 100%;
    }

    .pilot-photo-slots {
        gap: 12px;
    }

    .request-card h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .request-info p {
        font-size: 14px;
        line-height: 1.4;
    }

    .badge {
        font-size: 11px;
        padding: 5px 9px;
    }

    .request-id {
        font-size: 12px;
    }

    .mechanic-alert {
        flex-direction: column;
        align-items: flex-start;
    }

    .mechanic-alert-actions {
        width: 100%;
        justify-content: stretch;
    }

    .mechanic-alert-close {
        width: 100%;
    }

    h2 {
        font-size: 24px;
    }

    input,
    select,
    button,
    .small-btn,
    .back-btn {
        font-size: 16px;
    }
}

.dispatcher-page {
    width: 100%;
    max-width: 100%;
}

.dispatcher-title {
    margin: 0 0 8px 0;
}

.dispatcher-subtitle {
    margin-bottom: 18px;
}

.manager-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 14px;
}

.manager-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
}

.manager-nav-link:hover {
    background: #172036;
}

.manager-nav-link-active {
    border-color: #2563eb;
    background: #1d4ed8;
    color: #ffffff;
}

.manager-nav-link-muted {
    background: #111827;
}

.dispatcher-card-title {
    margin: 0 0 14px 0;
}

.dispatcher-filters-form {
    width: 100%;
}

.dispatcher-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px 12px;
}

.dispatcher-filter-grid > * {
    min-width: 0;
}

.dispatcher-filter-grid select,
.dispatcher-filter-grid input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    box-sizing: border-box;
}

.dispatcher-date-range-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dispatcher-date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dispatcher-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.dispatcher-secondary-block {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    overflow-wrap: anywhere;
}

.dispatcher-secondary-note {
    margin-bottom: 12px;
}

.dispatcher-status-items,
.dispatcher-export-row {
    min-width: 0;
}

.dispatcher-export-row form {
    flex: 0 1 auto;
    min-width: min(100%, 260px);
}

.dispatcher-filter-actions .small-btn,
.dispatcher-filter-actions .back-btn {
    min-height: 44px;
    min-width: 140px;
}

.dispatcher-search-hint {
    display: block;
    margin-top: -2px;
    color: #94a3b8;
    font-size: 13px;
}

.dispatcher-search-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: span 2;
}

.dispatcher-filter-primary,
.dispatcher-filter-secondary {
    align-self: start;
}

.dispatcher-filter-period,
.dispatcher-filter-search {
    grid-column: span 2;
}

.dispatcher-search-group input {
    width: 100%;
}

.dispatcher-report-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
}

.dispatcher-report-grid .request-card h3 {
    margin: 6px 0 0 0;
}

.dispatcher-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #334155;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.dispatcher-table {
    margin-top: 0;
    min-width: 1600px;
    width: max-content;
}

.dispatcher-active-filters {
    margin: 2px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #cbd5e1;
}

.dispatcher-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f172a;
    font-size: 13px;
    color: #e2e8f0;
}

.mechanic-report-value {
    margin: 6px 0 0;
}

.mechanic-request-heading {
    margin-top: 0;
}

.pilot-status-completed {
    background: #15803d;
    color: #f0fdf4;
}

.pilot-status-in-progress {
    background: #b45309;
    color: #fffbeb;
}

.pilot-status-accepted {
    background: #1d4ed8;
    color: #eff6ff;
}

.pilot-status-cancelled {
    background: #b91c1c;
    color: #fef2f2;
}

.pilot-status-new {
    background: #475569;
    color: #f8fafc;
}

.pilot-secondary-text {
    color: #64748b;
    font-size: 14px;
}

.pilot-cancel-block {
    border-left: 3px solid #b91c1c;
    padding-left: 10px;
    margin: 8px 0;
}

.pilot-cancel-block p {
    margin: 4px 0;
}

.pilot-edit-intro {
    margin-bottom: 18px;
    color: #475569;
}

.pilot-secondary-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.pilot-field-helper {
    margin-top: 6px;
}

.pilot-edit-field.is-hidden {
    display: none;
}

.pilot-choice-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pilot-choice-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.pilot-choice-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pilot-choice-option span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pilot-choice-option.is-selected span,
.pilot-choice-option input:checked + span {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.pilot-photo-slots {
    display: grid;
    gap: 10px;
}

.pilot-photo-slot {
    display: grid;
    gap: 6px;
}

.pilot-photo-slot input[type="file"] {
    width: 100%;
}

.dispatcher-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.dispatcher-row-note {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dispatcher-cancel-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.dispatcher-cancel-input {
    width: 100%;
    max-width: 220px;
    min-width: 0;
    min-height: 38px;
}

.dispatcher-cancel-form .small-btn {
    width: 100%;
    min-height: 40px;
    margin-top: 0;
    white-space: normal;
}

.dispatcher-row-local td {
    background: rgba(148, 163, 184, 0.08);
}

.dispatcher-row-local td:first-child {
    box-shadow: inset 3px 0 0 #64748b;
}

.autocomplete {
    position: relative;
    width: 100%;
}

.autocomplete-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1220;
    z-index: 30;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.autocomplete-item {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #1e293b;
    background: transparent;
    padding: 10px 12px;
    text-align: left;
}

.autocomplete-item:last-child {
    border-bottom: 0;
}

.autocomplete-item:hover {
    background: #172036;
}

.autocomplete-item-active {
    background: #1e293b;
}

.autocomplete-main {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}

.autocomplete-meta {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
}

.autocomplete-empty {
    padding: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.autocomplete-menu mark {
    background: #facc15;
    color: #111827;
    padding: 0 2px;
    border-radius: 3px;
}

.selected-card {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selected-card .small-btn {
    margin-top: 6px;
    max-width: 220px;
}

@media (max-width: 1100px) {
    .dispatcher-filter-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .dispatcher-report-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

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

    .dispatcher-secondary-block {
        padding: 12px;
    }

    .dispatcher-status-items,
    .dispatcher-export-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .dispatcher-status-items span,
    .dispatcher-export-row span,
    .dispatcher-export-row form {
        width: 100%;
    }

    .admin-ops-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .manager-nav {
        flex-direction: column;
    }

    .manager-nav-link {
        width: 100%;
    }

    .dispatcher-search-group {
        grid-column: auto;
    }

    .dispatcher-filter-period,
    .dispatcher-filter-search {
        grid-column: auto;
    }

    .dispatcher-filter-actions {
        flex-direction: column;
    }

    .dispatcher-filter-actions .small-btn,
    .dispatcher-filter-actions .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .dispatcher-table-wrap {
        border-radius: 10px;
        padding-bottom: 6px;
    }

    .dispatcher-active-filters {
        align-items: flex-start;
    }

    .dispatcher-report-grid {
        grid-template-columns: 1fr;
    }

    .dispatcher-table th,
    .dispatcher-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .dispatcher-cancel-form {
        min-width: 0;
        width: 100%;
    }

    .dispatcher-cancel-input {
        max-width: 100%;
        min-height: 42px;
    }

    .dispatcher-cancel-form .small-btn {
        min-height: 44px;
    }

    .admin-table-scroll {
        padding-bottom: 6px;
        border-radius: 10px;
    }

    .admin-management-table {
        min-width: 760px;
    }

    .web-access-table {
        min-width: 980px;
    }

    .admin-management-table th,
    .admin-management-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .admin-table-actions-cell {
        min-width: 240px;
    }

    .admin-table-actions,
    .admin-table-actions form,
    .web-access-actions,
    .web-access-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-table-actions,
    .admin-table-actions form {
        min-width: 0;
        width: 100%;
    }

    .admin-action-input,
    .admin-table-actions input[type="text"],
    .web-access-edit-form input {
        width: 100%;
        max-width: 100%;
        min-height: 42px;
    }

    .admin-table-actions .small-btn,
    .admin-table-actions .back-btn,
    .web-access-actions .small-btn,
    .web-access-edit-actions .small-btn,
    .web-access-edit-actions .back-btn {
        width: 100%;
        min-height: 44px;
    }
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    width: 100%;
}

.parts-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parts-image {
    width: 100%;
    max-height: 220px;
    min-height: 180px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #111827;
}

.parts-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.parts-meta {
    margin: 0;
    color: #cbd5e1;
}

.parts-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.45;
}

.parts-image-preview {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 0;
}

.parts-search-form,
.parts-photo-form {
    width: 100%;
}

.parts-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.parts-actions .small-btn,
.parts-actions .back-btn {
    min-height: 44px;
}

.parts-pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.parts-file-status {
    margin-top: -2px;
    color: #94a3b8;
    font-size: 13px;
}

.parts-file-status-active {
    color: #dcfce7;
}

.web-access-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.web-access-actions form,
.web-access-actions .small-btn {
    width: 100%;
}

.web-access-actions .small-btn {
    min-height: 40px;
    margin-top: 0;
}

.web-access-edit-panel {
    width: 100%;
}

.web-access-edit-panel summary {
    list-style: none;
}

.web-access-edit-panel summary::-webkit-details-marker {
    display: none;
}

.web-access-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0f172a;
}

.web-access-edit-form input {
    width: 100%;
}

.web-access-edit-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.web-access-edit-actions .small-btn,
.web-access-edit-actions .back-btn {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

.web-access-filter-form {
    max-width: 100%;
}

.web-access-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 12px;
}

.web-access-filter-grid input,
.web-access-filter-grid select {
    width: 100%;
    min-height: 42px;
}

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

    .web-access-filter-grid {
        grid-template-columns: 1fr;
    }

    .parts-card {
        padding: 12px;
    }

    .parts-image {
        max-height: 200px;
        min-height: 150px;
    }

    .parts-actions,
    .parts-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .parts-actions .small-btn,
    .parts-actions .back-btn,
    .parts-pagination .back-btn {
        width: 100%;
        max-width: 100%;
    }
}
