/* Mobile Inspection Styles
 * Styles specific to mobile inspection workflows
 */

.mobile-inspection-button {
    height: 50px;
}

.adjustment-amount-input-large {
    margin-top: 0;
}

/* ====================================
 * Yard Selection Styles
 * ==================================== */

.yard-selection-container {
    align-content: start;
    background-color: transparent;
    box-sizing: border-box;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    height: calc(100vh - 45px);
    margin: 0 auto;
    max-width: 768px;
    overflow-y: auto;
    padding: 1rem 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .yard-selection-container {
        grid-template-columns: 1fr 1fr;
    }
}

.yard-card {
    border-radius: 12px;
    border-top: 2px solid #0090BB;
    border-right: 2px solid #0090BB;
    border-left: 2px solid #0090BB;
    background: #FFF;
    box-shadow: 0 -7px 0 0 #0090BB inset;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    height: 123px;
    padding: 25px 33px 19px 26px;
    gap: 10px;
    align-self: stretch;
}

.yard-card:hover {
    background-color: #f0f8fb;
    transform: translateY(-2px);
}

.yard-card:active {
    transform: translateY(0);
}

.yard-icon {
    color: #0090BB;
    font-size: 42px;
    flex-grow: 0;
    aspect-ratio: 1/1;
}

.yard-content {
    flex: 1;
}

.yard-code {
    color: #0090BB;
    text-align: left;
    font-family: Roboto, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

.yard-name {
    color: #0090BB;
    text-align: left;
    font-size: 19px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

/* ====================================
 * Common Loading States
 * ==================================== */

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.no-yards-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 18px;
}

/* ====================================
 * Inspection Card Styles
 * ==================================== */

/* Common card styling for inspection items (loads, shipments, etc.) */
.inspection-card {
    border-radius: 12px;
    border: 2px solid #0090BB;
    background: #FFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inspection-card:hover {
    background-color: #f0f8fb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.inspection-card:active {
    transform: translateY(0);
}

.inspection-card-header {
    color: #0090BB;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.inspection-card-detail {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    margin: 4px 0;
}

.inspection-card-label {
    font-weight: 700;
    margin-right: 4px;
}

/* ====================================
 * LoadSelection Styles
 * ==================================== */

.load-selection-container {
    background-color: transparent;
    box-sizing: border-box;
    margin: 0 auto;
    min-height: 100vh;
    padding: 1rem;
    width: 100%;
}

.loads-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
    max-width: 869px;
    width: 100%;
}

.load-card {
    background: white;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    flex-grow: 1;
    min-width: 336px;
    padding: 16px;
    position: relative;
    transition: all 0.2s;
    width: 100%;
}

.load-card:hover {
    border-color: #403392;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.load-card:active {
    transform: scale(0.99);
}

.load-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.load-card-body {
    display: flex;
    gap: 1.5rem;
}

.load-info {
    flex-grow: 1;
}

.load-ticket-number {
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.load-status-badge {
    align-items: center;
    border-radius: 5px;
    display: flex;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    gap: 4px;
    line-height: normal;
    padding: 7px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-needs-inspection {
    background-color: #403392;
    color: white;
}

.status-rejected {
    background-color: #DC1616;
    color: white;
}

.status-complete {
    background-color: #1D955F;
    color: white;
}

.status-in-progress {
    background-color: #F59E0B;
    color: white;
}

.load-supplier-info {
    align-items: center;
    color: #000;
    display: flex;
    font-size: 15px;
    font-weight: 400;
    gap: 4px;
    margin-bottom: 2px;
}

.load-supplier-info span {
    flex-grow: 0;
    flex-shrink: 1;
}

.load-supplier-info-title {
    max-width: 222px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.load-arrival-time {
    color: #222;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 12px;
}

.load-weight {
    align-items: flex-end;
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.load-weight-label {
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: 18px;
    text-transform: uppercase;
}

.load-weight-unit-label {
    color: #222;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.load-commodities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-right: 1rem;
}

.load-actions {
    bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    max-width: 80px;
    padding-right: 0.5rem;
    position: absolute;
    right: 0.5rem;
}

.action-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    height: 32px;
    justify-content: center;
    padding: 6px;
    transition: all 0.2s;
    width: 32px;
}

.action-icon:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.no-loads-message {
    color: #666;
    font-size: 18px;
    padding: 40px 20px;
    text-align: center;
}

.back-button-container {
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 869px;
}

.load-footer-container {
    margin-top: 0.5rem;
}

.search-container {
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ====================================
 * Mobile Modal Header Styles
 * ==================================== */

.mobile-text-button {
    color: inherit;
}

.mobile-text-button-primary {
    color: var(--custom-palette-mobile-primary);
}

.mobile-text-button-success {
    color: var(--custom-palette-mobile-success);
}

.mobile-modal-header-title {
    text-align: center;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

/* ====================================
 * Commodity Modal Styles
 * ==================================== */

.commodity-modal-search {
    margin-bottom: 20px;
}

.commodity-chip {
    width: 100%;
    text-transform: uppercase;
    font-weight: 900;
    font-size: clamp(14px, 3vw, 16px);
    cursor: pointer;
    border-width: 2px;
    justify-content: center;
}

.commodity-chip--selected {
    background-color: var(--custom-palette-mobile-success);
    color: white;
}

.commodity-chip--selected:hover {
    background-color: var(--custom-palette-mobile-success);
    color: white;
}

.commodity-chip.mud-chip-outlined {
    border-width: 2px;
}

.commodity-chip .mud-chip-content {
    width: 100%;
    justify-content: center;
}

/* ====================================
 * Adjustment Modal Styles
 * ==================================== */

.adjustment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adjustment-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    min-height: 90vh;
    max-height: 98vh;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow-y: scroll;
}

.adjustment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid #E5E5E5;
}

.adjustment-modal-cancel {
    color: #0090BB;
    font-size: clamp(14px, 3vw, 18px);
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
    display: flex;
    gap: 6px;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.adjustment-modal-title {
    flex: 1;
    text-align: center;
    color: #000;
    font-size: clamp(16px, 3.5vw, 22px);
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

.adjustment-modal-save {
    color: #1D955F;
    font-size: clamp(14px, 3vw, 18px);
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
    display: flex;
    gap: 6px;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.adjustment-modal-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.adjustment-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.adjustment-modal-items {
    display: flex;
    gap: 12px;
}

.adjustment-modal-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adjustment-item-container {
    border: 3px solid #0090BB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.adjustment-item-container.selected {
    border-color: #0090BB;
    background: #F0F9FC;
}

.adjustment-item-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adjustment-item-container.selected .adjustment-item-button {
    background: #0090BB;
    color: white;
}

.adjustment-item-icon {
    font-size: clamp(14px, 3vw, 18px);
    flex-shrink: 0;
    color: #0090BB;
}

.adjustment-item-icon-expanded {
    font-size: clamp(14px, 3vw, 18px);
    flex-shrink: 0;
    color: #fff;
}

.adjustment-item-text {
    flex: 1;
    text-align: left;
    font-weight: 700;
    text-transform: capitalize;
    font-size: clamp(14px, 3vw, 18px);
    font-style: normal;
    line-height: normal;
}

/* ====================================
 * Adjustment Details Modal Styles
 * ==================================== */

.adjustment-details-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    min-height: 90vh;
    max-height: 98vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.adjustment-details-content {
    overflow-y: auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Two-column layout for tablet and up */
@media (min-width: 768px) {
    .adjustment-details-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Better spacing for larger displays */
@media (min-width: 1200px) {
    .adjustment-details-content {
        gap: 48px;
        padding: 32px 40px;
    }
}

/* Ensure MudGrid items align properly */
.adjustment-details-modal .mud-grid-item {
    display: flex;
    align-items: flex-start;
}

.adjustment-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.photo-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    padding: 16px;
    background: white;
    box-sizing: border-box;
}

.adjustment-section-label {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adjustment-section-label .optional-indicator {
    color: #666;
    font-weight: normal;
}

.adjustment-section-label .required-indicator {
    color: #d32f2f;
    font-weight: 600;
}

.adjustment-photo-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #E5E5E5;
}

.adjustment-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adjustment-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    border: 2px dashed #C5C5C5;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scale photo icon based on container size */
@media (min-width: 768px) {
    .adjustment-photo-placeholder {
        min-height: 300px;
    }
}

@media (min-width: 1200px) {
    .adjustment-photo-placeholder {
        min-height: 400px;
    }
}

.adjustment-photo-placeholder-icon {
    color: #999999;
    font-size: 64px;
}

.adjustment-photo-buttons {
    display: flex;
    gap: 12px;
}

.photo-with-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.photo-with-actions .adjustment-photo-container {
    flex: 1;
    min-width: 0;
}

.photo-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60px;
    flex-shrink: 0;
    align-items: stretch;
    justify-content: flex-start;
}

.photo-icon-button {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border: 2px solid #0090BB;
    border-radius: 12px;
    color: #0090BB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 60px;
    transition: all 0.2s ease;
}

.photo-icon-button:hover {
    background: #F0F9FC;
    transform: scale(1.05);
}

.photo-icon-button:active {
    transform: scale(0.98);
}

.photo-icon-button-delete {
    border-color: #D32F2F;
    color: #D32F2F;
}

.photo-icon-button-delete:hover {
    background: #FFF0F0;
}

.adjustment-action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adjustment-action-button-primary {
    background: #0090BB;
    color: white;
}

.adjustment-action-button-primary:hover {
    background: #007a9e;
}

.adjustment-action-button-secondary {
    background: white;
    color: #0090BB;
    border: 2px solid #0090BB;
}

.adjustment-action-button-secondary:hover {
    background: #F0F9FC;
}

.adjustment-amount-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.adjustment-amount-input-large {
    flex: 1;
}

.adjustment-unit-select {
    flex: 1;
}
.adjustment-unit-toggle-large {
    display: flex;
    border: 2px solid #0090BB;
    border-radius: 8px;
    overflow: hidden;
    width: 120px;
}

.adjustment-unit-button {
    flex: 1;
    background: white;
    color: #0090BB;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}


.adjustment-unit-button.active {
    background: #0090BB;
    color: white;
}

.adjustment-unit-text {
    font-weight: 900;
    font-size: 14px;
}

.adjustment-comments-field {
    width: 100%;
    min-width: 250px;
}

/* Adjustment/Prohibited Item Action Buttons */
.adjustment-action-buttons {
    margin-top: 16px;
}

.adjustment-remove-button {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.adjustment-discard-section {
    margin-top: auto;
    padding-top: 24px;
}

.adjustment-discard-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    background: white;
    color: #D32F2F;
    border: 2px solid #D32F2F;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adjustment-discard-button:hover {
    background: #FFF0F0;
}

/* ====================================
 * Responsive Adjustments
 * ==================================== */

@media (max-width: 600px) {
    .adjustment-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .adjustment-details-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .adjustment-modal-items {
        flex-direction: column;
    }

    .adjustment-modal-header {
        padding: 12px 16px;
    }

    .adjustment-modal-content {
        padding: 16px;
    }

    .adjustment-details-content {
        padding: 20px 16px;
        grid-template-columns: 1fr;
    }

    .adjustment-item-button {
        padding: 12px 16px;
    }

    .adjustment-photo-buttons {
        flex-direction: column;
    }

    .adjustment-action-button {
        padding: 12px 16px;
    }
}

/* ====================================
 * LoadDetails Styles
 * ==================================== */

/* ===== LAYOUT CONTAINERS ===== */
.load-details-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1301;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
        overflow-x: hidden;
        overflow-y: auto;
    background-color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.subtitle-separator {
    color: #555555;
}

.error-container {
    text-align: center;
    padding: 40px 20px;
}

/* ===== HEADER STYLES ===== */
.load-details-header {
    background: white;
    padding: 16px;
    border-bottom: 3px solid #D9D9D9;
    /* height: 99px; */
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    flex-grow: 0;
    width: 100%;
}

.header-top-row {
    display: flex;
    width: 100%;
    gap: 1rem;
    align-items: start;
}

.header-back-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}

.header-menu-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex-grow: 0;
}

.header-center {
    flex: 1;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-grow: 0;
}

.header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-title {
    font-size: clamp(16px, 3.5vw, 22px);
    font-weight: bold;
    color: #000;
    flex: 1;
    line-height: 1.2;
}

.header-status-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-status-actions .mobile-pick-button-container {
    min-width: 205px;
}
.header-subtitle {
    display: flex;
    align-items: center;
    color: #000;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    gap: 12px;
    margin-bottom: 8px;
}

.contract-badge {
    color: #1976d2;
    font-weight: 700;
}

.non-contract-badge {
    color: #666;
    font-style: italic;
    font-weight: 500;
}
.header-arrived-time {
    font-weight: 400;
    font-size: clamp(12px, 3vw, 16px);
}

.header-back-button,
.header-menu-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}

/* ===== COMMODITIES SECTION ===== */
.load-details-content {
    flex-grow: 1;
    display: flex;
    gap: 1rem;
    max-height: calc(100vh - 99px);
    width: 100%;
    overflow-x: hidden;
    /* margin-bottom: 150px; */
}

.commodities-section-container {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    flex-grow: 1;
}

.commodities-section {
    margin-bottom: 16px;
}

.commodities-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
}

.commodities-header-container.edit {
    padding-left: 3.75rem;
}

.commodities-header {
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    font-style: normal;
    line-height: normal;
}

.commodities-header-weight {
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

.commodities-header-weight .uom {
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.commodity-card-container {
    width: 100%;
    display: flex;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.commodity-card {
    flex-grow: 1;
}

.commodity-card-body {
    background: transparent;
    border: 1px solid #D9D9D9;
    border-radius: 0 0 15px 15px;
    border-top: none;
    margin-bottom: 16px;
    padding: 16px;
    display: flex;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.commodity-title {
    font-size: 27px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

.commodity-title-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    border-radius: 15px 15px 0 0;
    padding: 8px 23px 8px 21px;
    margin-bottom: 0;
}

.commodity-title-bar-collapsed {
    border-radius: 15px;
    border: 1px solid #D9D9D9;
    margin-bottom: 16px;
}

.commodity-title-bar-container .commodity-remove-button {
    border: 2px solid #fff;
    color: #fff;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    padding: 0;
    display: none;
    transition: transform 0.2s ease;
}

.commodity-title-bar-container .commodity-remove-button:hover {
    transform: scale(1.1);
}

.commodity-title-bar {

    color: #ffffff;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

.commodity-comments {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.commodity-comments-empty {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #666666;
}

.commodity-adjustment {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    color: #FF9800;
}

.commodity-adjustment > span {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.commodity-prohibited {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    color: #EF4444;
    line-height: 1.3;
}

.commodity-remove-button {
    border: 2px solid #0090BB;
    color: #0090BB;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    padding: 0;
}

/* ===== PHOTOS SECTION ===== */

/* Photo Columns Container - displays columns side by side */
.photo-columns-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    align-items: flex-start;
    overflow-x: auto;
}

/* Individual photo column - photos stack vertically */
.photo-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    min-width: 64px;
    flex-shrink: 0;
    padding-top: 8px;
}

/* Column headers */
.photo-column-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 4px;
    text-align: center;
}

/* Column type-specific styling */
.photo-column-commodity .photo-column-header {
    color: #1976d2;
}

.photo-column-prohibited .photo-column-header {
    color: #d32f2f;
}

.photo-column-adjustment .photo-column-header {
    color: #ed6c02;
}

/* Responsive: adjust for smaller screens */
@media (max-width: 400px) {
    .photo-columns-container {
        gap: 12px;
    }

    .photo-column {
        min-width: 56px;
        gap: 14px;
    }

    .photo-column-header {
        font-size: 9px;
    }
}

/* Legacy grid layout (kept for backward compatibility) */
.commodity-photos {
    display: grid;
    grid-template-columns: repeat(4, 64px);
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Responsive: fewer columns on smaller screens */
@media (max-width: 400px) {
    .commodity-photos {
        grid-template-columns: repeat(3, 56px);
    }
}

.commodity-photo-container {
    position: relative;
    width: 64px;
    height: 64px;
}

@media (max-width: 400px) {
    .commodity-photo-container {
        width: 56px;
        height: 56px;
    }
}

.commodity-photo {
    width: 64px;
    height: 64px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666666;
    border: 1px solid transparent;
    border-radius: 6px;
}

.commodity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.photo-delete-button {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    border: 2px solid #FFF;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0090BB;
}

.photo-delete-button:hover {
    background-color: #0086AF;
}

/* ===== PHOTO COMMENT BADGE ===== */
.photo-comment-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(33, 150, 243, 0.9);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.photo-comment-badge .mud-icon-root {
    font-size: 12px;
}

/* ===== PHOTO TYPE BADGES (Adjustment/Prohibited) ===== */
.photo-type-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.photo-type-badge .mud-icon-root {
    font-size: 12px;
}

.photo-type-badge-adjustment {
    background-color: rgba(255, 152, 0, 0.9);
}

.photo-type-badge-prohibited {
    background-color: rgba(244, 67, 54, 0.9);
}

/* ===== ADJUSTMENT/PROHIBITED PHOTO BORDERS ===== */
.adjustment-photo-border {
    border: 2px solid #ff9800 !important;
}

.prohibited-photo-border {
    border: 2px solid #f44336 !important;
}
/* ===== CAMERA MODAL COMMENT INPUT ===== */
.camera-comment-section {
    padding: 0;
    width: 100%;
}

.camera-comment-input {
    width: 100%;
}

/* ===== PHOTO VIEWER COMMENT SECTION ===== */
.photo-comment-section {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.photo-comment-display {
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}

.photo-comment-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: #333;
}

.photo-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.photo-comment-input {
    width: 100%;
}

/* ===== EDIT CONTROLS ===== */
.commodity-edit-controls {
    display: flex;
    flex-direction: row;
    gap: 3em;
}

.commodity-edit-controls-comment-container {
    display: flex;
    gap: 0.5rem;
    flex-grow: 1;
}

.commodity-edit-controls-comment-container .mud-input-control {
    margin-top: 0;
    flex: 1;
}

.commodity-edit-controls-comment-container > .mobile-pick-button-container {
    flex: 0 0 100px;
}

.commodity-edit-controls .mobile-pick-button-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 61px;
}

.commodity-edit-controls .mobile-pick-button-container.mobile-button-disabled {
    opacity: 60%;
}


.edit-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== ADDITIONAL COMMENTS ===== */
.comment-section {
    margin-bottom: 16px;
    margin-top: 4rem;
}

.comment-header {
    color: #000;
    font-size: clamp(16px, 3.5vw, 22px);
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.additional-comment {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== CHIPS ===== */
.chips-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.chip {
    border-radius: 100px;
    border: 2px solid #fff;
    display: flex;
    padding: 7px 10px 7px 12px;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-size: clamp(12px, 3vw, 16px);
}

.chip-adjustment {
    border: 2px solid #FF9800;
    color: #FF9800;
}

.chip-prohibited {
    border: 2px solid #BB4B00;
    color: #BB4B00;
}

/* ===== PROHIBITED ITEMS ===== */
.prohibited-items-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #000;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
}

.prohibited-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== REJECTION REASON ===== */
.rejection-reason-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #FFF0F0;
    border: 2px solid #DC1616;
    border-radius: 8px;
    margin-bottom: 16px;
}

.rejection-reason-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rejection-reason-header .mud-icon-root {
    flex-shrink: 0;
}

.rejection-reason-title {
    font-weight: bold;
    color: #DC1616;
    font-size: clamp(14px, 3vw, 18px);
    text-transform: uppercase;
}

.rejection-reason-text {
    color: #333;
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.4;
}
/* ===== VALIDATION ===== */
.validation-status {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: clamp(12px, 3vw, 16px);
    line-height: 1.3;
}

.validation-complete {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #84E1BC;
}

.validation-incomplete {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

/* ===== ACTION MENU ===== */
.action-buttons-grid {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-direction: column;
    border-left: 3px solid #D9D9D9;
    width: 277px;
    padding: 1rem;
    flex-shrink: 0;
}

/* ===== TABLET & MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    /* Header adjustments - hide save button, show in footer instead */
    .header-right {
        display: none;
    }

    .header-actions .mud-button {
        min-width: 100px;
        font-size: clamp(10px, 2.5vw, 14px);
        padding: 4px 12px;
    }

        /* Footer adjustments - show action footer on tablet/mobile */
    .action-footer {
        display: flex !important;
        flex-direction: column;
        padding: 12px;
    }

    .action-buttons-grid {
        display: none;
    }

        /* Hide cancel edit button in content area - it appears in footer instead */
        .cancel-edit-button-section {
            display: none;
        }
    /* Layout adjustments */
    .commodity-edit-controls {
        flex-direction: column !important;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .edit-action-buttons {
        width: 100%;
    }

    .commodity-remove-button {
        display: none;
    }

    .commodity-title-bar-container .commodity-remove-button {
        display: block;
    }

    /* Spacing adjustments */
    .commodity-photos {
        gap: 6px;
        margin-bottom: 6px;
    }

    .commodity-photo-container {
        width: 56px;
        height: 56px;
    }

    .chips-container {
        margin-top: 1rem;
    }

    .chip {
        padding: 6px 10px;
    }
}

/* ===== CANCEL EDIT BUTTON SECTION ===== */
.cancel-edit-button-section {
    display: block; /* Visible by default on desktop */
}

/* Tablet and mobile responsive styles - header and layout */
@media (max-width: 1024px) {
    .load-details-header {
        flex-direction: column;
        align-items: start;
        padding: 12px;
        height: auto;
        min-height: 60px;
    }

    .header-top-row {
        flex: 1;
        width: 100%;
    }

    .header-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .header-status-actions {
        flex-shrink: 1;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
    }

    .header-status-actions .mobile-pick-button-container {
        min-width: auto;
    }

    .header-subtitle {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 14px;
    }

    .header-arrived-time {
        width: 100%;
        margin-top: 4px;
    }

    .load-details-container {
        font-size: clamp(14px, 3.5vw, 18px);
        max-width: 100vw;
        overflow-x: hidden;
        padding-bottom: 220px; /* Space for sticky action-footer */
    }

    .load-details-content {
        max-height: none;
        flex: 1;
        min-height: 0;
    }

    .button-min-width-205 {
        min-width: auto;
        width: auto;
    }

    .commodities-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        max-width: 100%;
    }

    .commodities-header-container.edit {
        padding-left: 0.5rem;
    }

    .commodities-header {
        font-size: 20px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .commodities-header-weight {
        font-size: 20px;
    }
}

/* Phone-specific adjustments */
@media (max-width: 767px) {
    .header-subtitle {
        font-size: 12px;
    }

    .commodities-header {
        font-size: 18px;
        gap: 10px;
    }

    .commodities-header-weight {
        font-size: 18px;
    }
}


/* ====================================
 * Camera Modal Styles
 * ==================================== */

.camera-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
        /* Higher than MudDialog (default ~1400) to show above other modals */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.camera-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-height: 85vh;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.camera-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid #E5E5E5;
    flex-shrink: 0;
}

.camera-modal-close {
    color: #0090BB;
    font-size: clamp(14px, 3vw, 18px);
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
    display: flex;
    gap: 6px;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.camera-modal-title {
    flex: 1;
    text-align: center;
    color: #000;
    font-size: clamp(16px, 3.5vw, 22px);
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

.camera-modal-subtitle {
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 500;
    color: #666;
    margin-top: 4px;
    text-transform: none;
}

.camera-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(85vh - 65px);
}

.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    max-height: 50vh;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.camera-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.photo-preview-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.photo-preview-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
}

.photo-preview-image-wrapper {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.photo-preview-controls-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.photo-preview-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Note: .photo-preview-controls replaced by .photo-preview-controls-column */

.photo-rotation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.rotation-button {
    width: 56px;
    height: 56px;
}

.photo-save-button,
.photo-save-another-button,
.photo-discard-button {
    width: 56px;
    height: 56px;
}

.photo-alert {
    width: 100%;
    margin-top: 16px;
}

/* ===== PHOTO VIEWER MODAL STYLES ===== */
.photo-viewer-container {
    display: grid;
    gap: 16px;
    grid-template-areas: "photo controls";
    grid-template-columns: 1fr auto;
    width: 100%;
}

.photo-viewer-image-wrapper {
    align-items: center;
    display: flex;
    grid-area: photo;
    justify-content: center;
    min-width: 0;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.photo-viewer-controls {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 12px;
    grid-area: controls;
    padding: 8px;
}

.photo-viewer-rotation-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.photo-viewer-delete-button,
.photo-viewer-save-button {
    width: 56px;
    height: 56px;
}

.photo-viewer-footer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

/* ===== CAMERA MODAL ADDITIONAL STYLES ===== */
.photo-controls-spacer {
    flex-grow: 1;
}

.camera-save-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.camera-save-buttons .camera-save-button,
.camera-save-buttons .camera-save-another-button {
    min-width: 120px;
}

.camera-button-primary {
    background-color: #0090BB;
    color: white;
}

.camera-button-secondary {
    background-color: transparent;
    border: 2px solid #0090BB;
    color: #0090BB;
}

.camera-button-danger {
    background-color: transparent;
    border: 2px solid #BB4B00;
    color: #BB4B00;
}

.camera-link-danger {
    text-align: center;
    margin-top: 8px;
}

.camera-link-danger button {
    background: none;
    border: none;
    color: #BB4B00;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 600px) {
    .camera-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .camera-modal-header {
        padding: 12px 16px;
    }

    .camera-modal-content {
        padding: 16px;
    }

    .camera-container {
        height: 40vh;
        max-height: 40vh;
    }

    .camera-placeholder {
        height: 40vh;
        max-height: 40vh;
        padding: 16px;
        gap: 10px;
    }

    .camera-modal-content {
        max-height: calc(100vh - 60px);
        padding: 12px 16px;
    }

    .camera-modal {
        max-height: 100vh;
    }

    .camera-controls {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
    }

    .photo-preview-row {
        flex-direction: column;
    }

    .photo-preview-controls-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 0;
        width: 100%;
    }

    .photo-rotation-buttons {
        flex-direction: row;
    }

    .photo-preview-image-wrapper {
        width: 100%;
    }
}

/* ===== FOOTER STYLES ===== */
.action-footer {
    padding: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1302;
    display: none; /* Hidden by default (desktop) */
    gap: 12px;
    flex-direction: column;
}


/* ===== CAMERA STYLES ===== */

/* Camera Capture Styles */
.camera-container
{
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 50vh;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.camera-container video
{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.camera-container canvas
{
    display: none;
}

.camera-preview-placeholder
{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.camera-controls
{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    flex-shrink: 0;
}


@media (min-width: 869px) {
    .load-footer-container {
        align-items: center;
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }

    .load-actions {
        flex-direction: row;
        gap: 1rem;
        padding-right: 0;
        padding-top: 0;
        position: static;
    }

    .load-commodities {
        flex-grow: 1;
        margin-bottom: 0;
        margin-top: 0;
    }

    .load-weight {
        flex-grow: 0;
        margin-bottom: 0;
    }

    .load-info {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .load-card-header {
        margin-bottom: 0.5rem;
    }

    .load-ticket-number {
        font-size: 28px;
        margin-bottom: -0.5rem;
    }

    .load-supplier-info {
        font-size: 20px;
        margin-bottom: 0;
    }

    .load-supplier-info-title {
        max-width: 500px;
        overflow: visible;
        text-overflow: inherit;
        white-space: normal;
    }

    .load-arrival-time {
        font-size: 17px;
        font-weight: 400;
    }
}

/* Mobile-specific camera optimizations */
@media (max-width: 600px)
{
    .camera-container
    {
        min-height: 50vh;
    }

    .camera-container video
    {
        max-height: 60vh;
    }
}

/* ====================================
 * Confirmation Photos Grid Styles
 * (Reuses camera-modal classes for modal structure)
 * ==================================== */

.confirmation-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
}

.confirmation-photo-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.confirmation-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirmation-photo-img-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.confirmation-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirmation-photo-timestamp {
    padding: 8px;
    font-size: clamp(10px, 2vw, 12px);
    color: #666;
    text-align: center;
    background: white;
}

.no-photos-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
    width: 100%;
}

.no-photos-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-photos-message-text {
    font-size: clamp(14px, 3vw, 18px);
    color: #666;
    text-align: center;
    width: 100%;
}

.confirmation-modal-footer {
    padding: 16px 20px;
    border-top: 2px solid #E5E5E5;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.confirmation-back-button {
    width: 100%;
    max-width: 400px;
}

.confirmation-back-button .mobile-inspection-button {
    width: 100%;
}

/* ====================================
 * Inline Style Replacements
 * ==================================== */

/* Error states */
.error-icon-large {
    font-size: 64px;
    margin-bottom: 16px;
}

.error-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

/* Status icons */
.status-icon-white {
    color: white;
}

/* Button styles */
.button-min-width-205 {
    min-width: 205px;
}

/* Commodity weight text */
.commodity-weight-text {
    color: #c7c4c4;
    font-weight: normal;
    margin-left: 8px;
}

/* Commodity card body flex */
.commodity-card-body-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Photo styles */
.photo-cursor-pointer {
    cursor: pointer;
}

.photo-full-size {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.photo-delete-button-small {
    width: 20px;
    height: 20px;
    padding: 0;
}

/* Comment input container */
.comment-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.comment-input-button {
    flex: 0 0 auto;
}

.comment-input-flex {
    flex: 1;
}

/* Photos margin */
.photos-margin-bottom {
    margin-bottom: 16px;
}

.photos-margin-top {
    margin-top: 12px;
}

/* Cancel edit section */
.cancel-edit-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Fix stretched save button under inspection comments */
.comment-save-buttons .mud-button-root.mud-button.mobile-pick-button {
    height: 61px !important;
    padding: 13px 19px !important;
}

@media (max-width: 1024px) {
    .comment-save-buttons,
    .cancel-edit-section {
        display: none;
    }
}

/* Action buttons column */
.action-buttons-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Rejection text margin */
.rejection-text-margin {
    margin-top: 8px;
}

/* Camera modal spacer */
.camera-spacer {
    width: 80px;
}

/* Camera video display */
.camera-video-display {
    display: block;
}

.camera-video-hidden {
    display: none;
}

/* Camera placeholder */
.camera-placeholder-icon {
    color: #0090BB;
    font-size: 5rem;
    opacity: 0.8;
}

.camera-placeholder-text {
    color: #0090BB;
    font-weight: 700;
    font-size: 1.25rem;
}

.camera-placeholder-subtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
    max-width: 300px;
}

/* Canvas hidden */
.canvas-hidden {
    display: none;
}

/* Photo viewer spacer */
.photo-viewer-spacer {
    width: 80px;
}

/* Photo viewer icon large */
.photo-viewer-icon-large {
    font-size: 4rem;
}

/* Photo viewer alert position */
.photo-viewer-alert-position {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

/* Rotation transform - uses CSS variable for dynamic rotation */
.rotation-transform {
    transform: rotate(var(--rotation-degrees, 0deg));
}

/* Load selection container */
.load-selection-container-wrapper {
    max-width: 869px;
    /* min-width: 100vw; */
    margin: auto;
    padding: 1rem;
    width: 100%;
}

/* Confirmation photos modal spacer */
.confirmation-photos-spacer {
    width: 80px;
}

/* Chip delete button styles */
.chip-delete-button-adjustment {
    width: 20px;
    height: 20px;
    padding: 0;
    color: #FF9800;
}

.chip-delete-button-prohibited {
    width: 20px;
    height: 20px;
    padding: 0;
    color: #BB4B00;
}

/* Reject load modal styles */
.reject-load-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reject-load-photo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reject-load-photo-label {
    font-weight: 500;
}

.reject-load-photo-helper {
    color: #666;
}

.reject-load-photo-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.reject-load-photo-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.reject-load-photo-delete-button {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* ====================================
 * Rejection Info Section Styles
 * ==================================== */

.rejection-info-section {
    background-color: #FFF0F0;
    border: 2px solid #DC1616;
    border-radius: 12px;
    margin-bottom: 16px;
    margin-top: 2rem;
    padding: 16px;
}

.rejection-header {
    align-items: center;
    color: #DC1616;
    display: flex;
    font-size: clamp(16px, 3.5vw, 22px);
    font-weight: 900;
    gap: 8px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.rejection-header-icon {
    color: #DC1616;
    flex-shrink: 0;
}

.rejection-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rejection-comment {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rejection-comment-label {
    color: #DC1616;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
}

.rejection-comment-text {
    color: #333;
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.4;
}

.rejection-by {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rejection-by-label {
    color: #DC1616;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
}

.rejection-by-text {
    color: #333;
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.4;
}

.rejection-photos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rejection-photos-label {
    color: #DC1616;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
}

/* ====================================
 * Load Type Toggle Styles
 * ==================================== */

.load-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
        width: 100%;
}

.load-type-button {
    align-items: center;
    background: white;
    border: 1px solid #bdbdbd;
    color: #666;
    cursor: pointer;
    display: flex;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    justify-content: center;
    padding: 8px 16px;
    transition: all 0.2s;
}

.load-type-button.inbound {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.load-type-button.outbound {
    border-radius: 0 4px 4px 0;
}

/* Inbound button active state - matches inbound tag color */
.load-type-button.inbound.active {
    background: #0090BB;
    border-color: #0090BB;
    color: white;
}

/* Outbound button active state - matches outbound tag color */
.load-type-button.outbound.active {
    background: #9C27B0;
    border-color: #9C27B0;
    color: white;
}
.load-type-button:not(.active):hover {
    background: #f5f5f5;
}

.load-type-button.inbound.active:hover {
    background: #007a9e;
}

.load-type-button.outbound.active:hover {
    background: #7B1FA2;
}
/* Load Type Indicator on Cards */
.load-type-indicator {
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
}

.load-type-indicator.inbound {
    background-color: #0090BB;
    color: white;
}

.load-type-indicator.outbound {
    background-color: #9C27B0;
    color: white;
}

/* Contract indicator badge for load cards */
.contract-indicator {
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
    width: fit-content;
}

.contract-indicator.contract {
    background-color: #1976d2;
    color: white;
}

.contract-indicator.non-contract {
    background-color: #e0e0e0;
    color: #666;
}
/* ====================================
 * Clickable Commodity Title Bar (View Mode)
 * ==================================== */

.commodity-title-bar-clickable {
    cursor: pointer;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.commodity-title-bar-clickable:hover {
    background-color: #222;
}

.commodity-expand-icon {
    color: #fff;
    margin-left: auto;
}

/* ===========================================
   Filter/Sort Container Styles (LoadSelection)
   =========================================== */

.filter-sort-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
    width: 100%;
}

@media (max-width: 600px) {
    .filter-sort-container {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-sort-container .mud-select {
        width: 100%;
    }
}

/* ===========================================
   Show More Commodities Button
   =========================================== */

.show-more-commodities-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
    width: 100%;
}
