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

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

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

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

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

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

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

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

/* Row status indicators */
.status-modified {
    color: #f59e0b;
    font-size: 16px;
    line-height: 1;
}

.status-saved {
    color: #10b981;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.status-error {
    color: #ef4444;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Save button in header */
.header-save-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    background: #10b981;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 6px;
    white-space: nowrap;
}

.header-save-btn:hover:not(:disabled) {
    background: #059669;
}

.header-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

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

.varochnoye-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 */
.varochnoye-plan-table-container .tabulator-cell[tabulator-field="status"],
.varochnoye-plan-table-container .tabulator-cell[tabulator-field="equipment"] {
    cursor: pointer;
}

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

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

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

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