/* =============================================================================
   FASOVKA_PLAN.CSS - Стили страницы "План фасовки"
   ============================================================================= */

.fasovka-plan-page {
    padding: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.fasovka-plan-page .fasovka-plan-table-container {
    flex: 1;
    overflow: hidden;
}

.fasovka-plan-table-container {
    background: white;
    overflow: hidden;
    max-width: 100%;
}

.fasovka-plan-table-container .tabulator {
    border: none;
    font-size: 12px;
}

.fasovka-plan-table-container .tabulator-row {
    min-height: auto;
}

.fasovka-plan-table-container .tabulator-cell {
    padding: 4px 8px;
}

.fasovka-plan-table-container .tabulator-col-content {
    padding: 4px 8px;
}

/* Editable date cell highlight */
.fasovka-plan-table-container .tabulator-cell[tabulator-field="date"] {
    cursor: pointer;
}

.fasovka-plan-table-container .tabulator-cell[tabulator-field="date"]:hover {
    background: #f0f9ff;
}

.fasovka-plan-table-container .tabulator-cell.tabulator-editing {
    border: 2px solid #3b82f6 !important;
    padding: 2px 4px;
}

.fasovka-plan-table-container .tabulator-cell.tabulator-editing input[type="date"] {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    background: transparent;
}

/* Editable status and equipment cell highlight */
.fasovka-plan-table-container .tabulator-cell[tabulator-field="status"],
.fasovka-plan-table-container .tabulator-cell[tabulator-field="equipment"] {
    cursor: pointer;
}

.fasovka-plan-table-container .tabulator-cell[tabulator-field="status"]:hover,
.fasovka-plan-table-container .tabulator-cell[tabulator-field="equipment"]:hover {
    background: #f0f9ff;
}

/* Status badge in table cell */
.fasovka-plan-page .order-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Equipment badge in table cell */
.fasovka-plan-page .equipment-cell {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    background: #e0f2fe;
    color: #0369a1;
}

.fasovka-plan-page .equipment-cell.equipment-empty {
    background: #f1f5f9;
    color: #94a3b8;
    font-style: italic;
}

/* Relation badges in table cells */
.fasovka-plan-page .related-date-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    margin: 1px 2px;
    white-space: nowrap;
}

.fasovka-plan-page .related-date-badge.status-completed,
.fasovka-plan-page .related-date-badge.status-inprogress,
.fasovka-plan-page .related-date-badge.status-waiting,
.fasovka-plan-page .related-date-badge.status-quarantine,
.fasovka-plan-page .related-date-badge.status-nomaterials,
.fasovka-plan-page .related-date-badge.status-partial {
    color: white;
}
