/* ==================== FONTS ==================== */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* ==================== CREWS PAGE ==================== */
.crews-page {
    width: 100%;
    max-width: none;
    min-height: auto;
    padding: 16px 24px 32px;
    margin: 0;
    background: #F9FAFB;
    font-family: Inter, sans-serif;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.breadcrumb-home-icon {
    width: 16px;
    height: 16px;
}

.breadcrumb-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.breadcrumb-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
}

.breadcrumb-current {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: 0;
}

.page-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.page-title {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin: 0;
}

.page-title:focus {
    outline: none;
}

.info-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    cursor: pointer;
}

.page-description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0;
}

/* ==================== SEARCH AND FILTER CONTAINER ==================== */
.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    background: #FFFFFF;
    border: 0.63px solid #E5E7EB;
    border-top: 0.63px solid #E5E7EB80;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0px 1px 2px -1px #0000001A, 0px 1px 3px 0px #0000001A;
}

.filter-section {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #374151;
}

.search-input-wrapper {
    position: relative;
    width: 296px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: 0.5;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 36px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #111827;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    background-color: #F9FAFB;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-input:focus {
    outline: none;
    border-color: #D1D5DB;
    box-shadow: none;
}

.filter-dropdown {
    width: 220px;
    max-width: 100%;
    height: 40px;
    padding: 8px 36px 8px 12px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #111827;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    background-color: #F9FAFB;
    appearance: none;
    background-image: url('/images/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #D1D5DB;
    box-shadow: none;
}

.filter-dropdown option {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #111827;
    background: #FFFFFF;
    padding: 8px 12px;
}

.action-section {
    display: flex;
    align-items: flex-end;
}

.create-button {
    height: 36px;
    padding: 0 16px;
    background: #083050;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.create-button:hover {
    background: #0a4068;
}

.plus-icon {
    font-size: 16px;
    font-weight: 600;
}

/* ==================== TABLE ==================== */
.crews-table {
    width: 100%;
    background: #FFFFFF;
    border: 0.63px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 16px;
    min-height: 40.31px;
}

.header-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    cursor: pointer;
    text-align: center;
    justify-content: flex-start;
}

.header-cell:last-child {
    cursor: default;
}

.sort-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.table-body {
    max-height: none;
    overflow-y: visible;
}

.table-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    min-height: 48.85px;
    border-bottom: 0.63px solid #F3F4F6;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.table-row:hover {
    background-color: #F9FAFB;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    flex: 1;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.table-cell.crew-name {
    font-weight: 500;
}

.table-cell.company-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-cell.action-status-cell {
    justify-content: flex-start;
}

/* ==================== COMPANY PILLS ==================== */
.company-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 19.98px;
    padding: 2px 8px;
    border-radius: 20971500px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.company-pill.pill-blue {
    background: #DBEAFE;
    color: #193CB8;
}

.company-pill.pill-purple {
    background: #F3E8FF;
    color: #6E11B0;
}

.company-pill.pill-orange {
    background: #FFEDD4;
    color: #9F2D00;
}

/* ==================== STATUS PILLS ==================== */
.status-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 53.41px;
    height: 21.23px;
    padding: 0 8px;
    background-color: #DCFCE7;
    color: #166534;
    border-radius: 6px;
    border: 0.63px solid #A7F3D0;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.status-inactive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 53.41px;
    height: 21.23px;
    padding: 0 8px;
    background-color: #F3F4F6;
    color: #6B7280;
    border-radius: 6px;
    border: 0.63px solid #E5E7EB;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

/* ==================== ACTION STATUS ==================== */
.action-status-pill {
    min-width: 86px;
    height: 28px;
    border-radius: 6px;
    border: 0.63px solid transparent;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.action-status-pill.enabled {
    background-color: #DCFCE7;
    border-color: #A7F3D0;
    color: #166534;
}

.action-status-pill.enabled:hover {
    background-color: #BBF7D0;
}

.action-status-pill.disabled {
    background-color: #F3F4F6;
    border-color: #E5E7EB;
    color: #6B7280;
}

.action-status-pill.disabled:hover {
    background-color: #E5E7EB;
}

/* ==================== NO RESULTS ==================== */
.no-results {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 14px;
    background: #FFFFFF;
    border: 0.63px solid #E5E7EB;
    border-radius: 12px;
}

.crews-loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.crews-loading-card {
    width: 100%;
    min-height: 300px;
    background: #FFFFFF;
    border: 0.63px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
}

/* ==================== PAGINATION WRAPPER ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: flex-start;
    padding: 16px 0;
}

/* ==================== VIEW/EDIT MODAL ==================== */
.crew-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.crew-view-modal {
    width: 800px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crew-view-modal.form-disabled {
    pointer-events: none;
}

.crew-view-modal.form-disabled .view-modal-body,
.crew-view-modal.form-disabled .view-alert {
    opacity: 0.5;
    pointer-events: none;
}

.crew-view-modal.form-disabled .view-modal-close-icon,
.crew-view-modal.form-disabled .view-modal-footer button {
    pointer-events: auto;
}

.crew-view-modal.form-disabled .view-modal-close-icon img {
    opacity: 1;
}

.create-crew-modal.form-disabled {
    pointer-events: none;
}

.create-crew-modal.form-disabled .create-modal-body,
.create-crew-modal.form-disabled .create-crew-right-panel,
.create-crew-modal.form-disabled .create-alert {
    opacity: 0.5;
    pointer-events: none;
}

.create-crew-modal.form-disabled .create-modal-close-btn,
.create-crew-modal.form-disabled .create-modal-footer,
.create-crew-modal.form-disabled .create-modal-footer button {
    pointer-events: auto;
}


.view-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 32px 16px;
    border-bottom: 0.63px solid #E5E7EB;
    gap: 16px;
}

.view-modal-title-block {
    flex: 1;
}

.view-modal-title-block h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #111827;
    margin: 0 0 4px 0;
}

.view-modal-title-block p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0;
}

.view-modal-icon,
.edit-modal-icon {
    width: 20px;
    height: 20px;
}

.unsaved-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F97316;
    border-radius: 20px;
    white-space: nowrap;
}

.unsaved-banner span {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
}

.unsaved-icon {
    width: 16px;
    height: 16px;
}

.view-modal-close-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-modal-close-icon img {
    width: 20px;
    height: 20px;
}

.view-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-header {
    border-bottom: 0.63px solid #E5E7EB;
    padding-bottom: 8px;
}

.section-title {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #111827;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #374151;
}

.view-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    box-sizing: border-box;
}

.view-input:read-only {
    cursor: default;
}

.view-input:focus {
    outline: none;
    border-color: #3B82F6;
}

.view-input.readonly-field {
    background: #F3F4F6;
    color: #6B7280;
}

.view-select {
    appearance: none;
    background-image: url('/images/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

.status-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 8px 12px;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
}

.status-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
}

.status-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
}

    .status-toggle.active {
        background: #083050;
    }

.status-toggle.inactive {
    background: #D1D5DB;
}

.status-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-knob {
    position: absolute;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: left 0.2s ease;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.status-toggle.active .toggle-knob {
    left: 22px;
}

.status-toggle.inactive .toggle-knob {
    left: 2px;
}

/* Company Assignments */
.companies-display-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    min-height: 60px;
}

.company-count {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #6B7280;
    margin-top: 4px;
}

.company-search-wrapper {
    position: relative;
    width: 100%;
}

.company-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    min-height: 60px;
    flex-wrap: wrap;
}

.company-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.company-search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.company-search-input {
    width: 100%;
    height: 32px;
    padding: 4px 8px 4px 28px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #111827;
    background: transparent;
    border: none;
    outline: none;
}

.company-search-input::placeholder {
    color: #9CA3AF;
}

.selected-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.company-pill-removable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 2px 8px;
    border-radius: 20971500px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.company-pill-removable.pill-blue {
    background: #DBEAFE;
    color: #193CB8;
}

.company-pill-removable.pill-purple {
    background: #F3E8FF;
    color: #6E11B0;
}

.company-pill-removable.pill-orange {
    background: #FFEDD4;
    color: #9F2D00;
}

.remove-company-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin-left: 2px;
    color: inherit;
    line-height: 1;
}

.remove-company-btn:hover {
    opacity: 0.7;
}

.company-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
    max-height: 180px;
    overflow-y: auto;
}

.company-option {
    padding: 10px 16px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

.company-option:hover {
    background: #F3F4F6;
}

/* Alerts */
.view-alert {
    margin: 0 32px 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.view-alert.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #A7F3D0;
}

.view-alert.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.view-alert.full-width-alert {
    width: calc(100% - 64px);
    margin-left: 32px;
    margin-right: 32px;
}

/* Footer */
.view-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 32px 24px;
    background: #F9FAFB;
    border-top: 0.63px solid #E5E7EB;
}

.view-close-btn,
.view-cancel-btn {
    height: 40px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-close-btn:hover,
.view-cancel-btn:hover {
    background: #F3F4F6;
}

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

.view-edit-btn {
    height: 40px;
    padding: 0 20px;
    background: #083050;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-edit-btn:hover {
    background: #0a4068;
}

.view-edit-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.view-edit-btn .edit-icon {
    width: 16px;
    height: 16px;
}

.view-save-btn {
    height: 40px;
    padding: 0 20px;
    background: #083050;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-save-btn:hover {
    background: #0a4068;
}

.view-save-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.view-save-btn .save-icon {
    width: 16px;
    height: 16px;
}

/* ==================== CREATE NEW CREW MODAL ==================== */
.create-crew-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    z-index: 1000;
    overflow-y: auto;
}

.create-crew-modal {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    background: #FFFFFF;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    margin: auto;
}

.create-crew-modal .modal-content-wrapper {
    display: flex;
    width: 100%;
}

.create-crew-modal:not(.expanded) {
    width: 800px;
}

.create-crew-modal.expanded {
    width: 1400px;
}

.create-crew-modal.form-disabled {
    pointer-events: none;
}

.create-crew-modal.form-disabled .create-modal-close-btn,
.create-crew-modal.form-disabled .create-modal-footer button {
    pointer-events: auto;
}

/* Left Panel */
.create-crew-left-panel {
    width: 800px;
    min-width: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 16px;
}

.create-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.create-modal-close-btn img {
    width: 16px;
    height: 16px;
}

.create-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 25px 24px;
}

.create-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.create-modal-icon img {
    width: 48px;
    height: 48px;
}

.create-modal-title-block h2 {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #111827;
    margin: 0 0 6px 0;
}

.create-modal-title-block p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0;
}

.create-modal-body {
    flex: 1;
    padding: 0 25px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.create-section-header {
    padding-top: 16px;
    margin-bottom: -8px;
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
}

.create-section-title {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #111827;
}

.create-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.create-field-group.half {
    flex: 1;
}

.create-field-group label {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
    color: #374151;
}

.required-star {
    color: #EF4444;
}

.create-input {
    width: 300px;
    height: 44px;
    padding: 8px 12px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #111827;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    box-sizing: border-box;
}

.create-input::placeholder {
    color: #6B7280;
}

.create-input:focus {
    outline: none;
    border-color: #3B82F6;
}

.create-select {
    appearance: none;
    background-image: url('/images/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

.create-field-row {
    display: flex;
    gap: 24px;
}

.create-field-row .create-field-group {
    flex: 1;
}

.create-field-row .create-input {
    width: 100%;
}

.create-checkbox-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

.create-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
    color: #111827;
}

/* Company Search in Create Modal */
.create-company-search-wrapper {
    position: relative;
    width: 100%;
}

.create-company-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    min-height: 48px;
}

.create-company-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.create-company-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
    z-index: 1;
}

.create-company-search-input {
    width: 100%;
    height: 36px;
    padding: 8px 12px 8px 32px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #111827;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    outline: none;
}

.create-company-search-input:focus {
    border-color: #3B82F6;
}

.create-company-search-input::placeholder {
    color: #9CA3AF;
}

.create-selected-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.create-company-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
    max-height: 150px;
    overflow-y: auto;
}

/* Profile Type Row */
.profile-type-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.profile-select {
    width: 300px;
    flex-shrink: 0;
}

.create-profile-type-btn {
    height: 40px;
    padding: 0 16px;
    background: #083050;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.create-profile-type-btn:hover {
    background: #0a4068;
}

.create-profile-type-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* Create Modal Footer */
.create-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 25px 24px;
    margin-top: auto;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.create-modal-footer-expanded {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.create-clear-btn {
    height: 40px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-clear-btn:hover {
    background: #F3F4F6;
}

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

.create-clear-btn .close-x {
    font-size: 16px;
    font-weight: 600;
}

.create-save-btn {
    height: 40px;
    padding: 0 20px;
    background: #083050;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-save-btn:hover {
    background: #0a4068;
}

.create-save-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.create-save-btn .save-icon {
    width: 16px;
    height: 16px;
}

/* Create Alert */
.create-alert {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.create-alert.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #A7F3D0;
}

.create-alert.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Right Panel - Create New Profile Type */
.create-crew-right-panel {
    width: 560px;
    padding: 32px;
    border-left: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.profile-type-header {
    padding: 0 0 20px 0;
}

.profile-type-header h3 {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #111827;
    margin: 0 0 8px 0;
}

.profile-type-header p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0;
}

.profile-type-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-type-body .create-input {
    width: 100%;
}

.profile-type-body .create-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    background: #F9FAFB;
    border: 0.63px solid #D1D5DB;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
}

.profile-type-body .create-textarea::placeholder {
    color: #9CA3AF;
}

.profile-type-body .create-textarea:focus {
    outline: none;
    border-color: #3B82F6;
}

.profile-type-columns {
    display: flex;
    gap: 16px;
}

.profile-type-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-type-column > label {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
}

.profile-type-checkbox-box {
    height: 220px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.profile-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #083050;
}

.save-profile-type-btn {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    background: #083050;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.save-profile-type-btn:hover {
    background: #0a4068;
}

.save-profile-type-btn .save-icon {
    width: 16px;
    height: 16px;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 1439px) and (min-width: 1366px) {
    .search-input-wrapper {
        width: 260px;
    }
    
    .filter-dropdown {
        width: 200px;
    }
}

@media (max-width: 1365px) and (min-width: 1200px) {
    .search-filter-container {
        flex-wrap: wrap;
    }
    
    .search-input-wrapper {
        width: 240px;
    }
    
    .filter-dropdown {
        width: 180px;
    }
}

@media (max-width: 1199px) and (min-width: 1024px) {
    .filter-section {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .search-input-wrapper {
        width: 220px;
    }
    
    .filter-dropdown {
        width: 180px;
    }
    
    .header-cell,
    .table-cell {
        font-size: 13px;
    }
}

@media (max-width: 1023px) {
    .crews-page {
        padding: 12px;
    }
    
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input-wrapper,
    .filter-dropdown {
        width: 100%;
    }
    
    .action-section {
        justify-content: flex-end;
    }
    
    .crews-table {
        overflow-x: auto;
    }
    
    .table-header,
    .table-row {
        min-width: 800px;
    }
}

@media (max-width: 767px) {
    .crews-page {
        padding: 8px;
        gap: 12px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .page-description {
        font-size: 13px;
    }
    
    .create-button {
        width: 100%;
        justify-content: center;
    }
    
    .export-section {
        bottom: 16px;
        right: 16px;
    }
    
    .export-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ==================== CREATE CREW MODAL RESPONSIVE ==================== */

/* Large screens (1440px+) */
@media (min-width: 1440px) {
    .create-crew-modal:not(.expanded) {
        width: 800px;
    }
    
    .create-crew-modal.expanded {
        width: 1400px;
    }
    
    .create-crew-left-panel {
        width: 800px;
        min-width: 800px;
    }
    
    .create-crew-right-panel {
        width: 560px;
    }
}

/* Medium-large screens (1200px - 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .create-crew-modal:not(.expanded) {
        width: 700px;
    }
    
    .create-crew-modal.expanded {
        width: 1200px;
    }
    
    .create-crew-left-panel {
        width: 700px;
        min-width: 700px;
    }
    
    .create-crew-right-panel {
        width: 500px;
    }
    
    .create-input {
        width: 280px;
    }
    
    .profile-select {
        width: 280px;
    }
}

/* Medium screens (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .create-crew-modal:not(.expanded) {
        width: 600px;
    }
    
    .create-crew-modal.expanded {
        width: 1050px;
    }
    
    .create-crew-left-panel {
        width: 600px;
        min-width: 600px;
    }
    
    .create-crew-right-panel {
        width: 450px;
        padding: 24px;
    }
    
    .create-input {
        width: 250px;
    }
    
    .profile-select {
        width: 250px;
    }
    
    .profile-type-checkbox-box {
        height: 180px;
    }
    
    .profile-checkbox-item {
        font-size: 12px;
    }
}

/* Small-medium screens (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .create-crew-overlay {
        padding: 20px;
    }
    
    .create-crew-modal:not(.expanded) {
        width: 95%;
        max-width: 600px;
    }
    
    .create-crew-modal.expanded {
        width: 95%;
        max-width: 900px;
    }
    
    .create-crew-left-panel {
        width: 100%;
        min-width: auto;
    }
    
    .create-crew-right-panel {
        width: 380px;
        padding: 20px;
    }
    
    .modal-content-wrapper {
        flex-wrap: wrap;
    }
    
    .create-modal-header {
        padding: 24px 20px 16px;
    }
    
    .create-modal-body {
        padding: 0 20px 24px;
    }
    
    .create-input {
        width: 100%;
        max-width: 300px;
    }
    
    .profile-select {
        width: 200px;
    }
    
    .create-field-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .profile-type-columns {
        gap: 8px;
    }
    
    .profile-type-checkbox-box {
        height: 160px;
        padding: 8px;
    }
    
    .profile-checkbox-item {
        font-size: 11px;
        gap: 6px;
    }
    
    .profile-checkbox-item input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* Mobile screens (< 768px) */
@media (max-width: 767px) {
    .create-crew-overlay {
        padding: 10px;
    }
    
    .create-crew-modal:not(.expanded),
    .create-crew-modal.expanded {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .create-crew-left-panel {
        width: 100%;
        min-width: auto;
    }
    
    .modal-content-wrapper {
        flex-direction: column;
    }
    
    .create-crew-right-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #E5E7EB;
        padding: 20px;
    }
    
    .create-modal-header {
        padding: 20px 16px 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .create-modal-icon {
        width: 40px;
        height: 40px;
    }
    
    .create-modal-icon img {
        width: 40px;
        height: 40px;
    }
    
    .create-modal-title-block h2 {
        font-size: 18px;
    }
    
    .create-modal-body {
        padding: 0 16px 20px;
        gap: 16px;
    }
    
    .create-input {
        width: 100%;
    }
    
    .profile-select {
        width: 100%;
    }
    
    .create-field-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .profile-type-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .create-profile-type-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-type-columns {
        flex-direction: column;
        gap: 16px;
    }
    
    .profile-type-checkbox-box {
        height: 150px;
    }
    
    .create-modal-footer,
    .create-modal-footer-expanded {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .create-clear-btn,
    .create-save-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .save-profile-type-btn {
        height: 44px;
    }
}
