/* OfferWorkflow — ortak stiller (KanboardCSS ile uyumlu, sade) */

.ow-muted { color: #888; font-size: 0.9em; }
.ow-right { text-align: right; }
.ow-center { text-align: center; }
.ow-error-text { color: #b94a48; font-size: 0.9em; margin-top: 4px; }

/* Rozetler */
.ow-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    line-height: 1.6;
    white-space: nowrap;
    color: #fff;
    background: #999;
    vertical-align: middle;
}
.ow-badge-grey   { background: #9e9e9e; }
.ow-badge-blue   { background: #3a87ad; }
.ow-badge-green  { background: #468847; }
.ow-badge-orange { background: #e08e0b; }
.ow-badge-red    { background: #b94a48; }

/* Filtre formu */
.ow-filter-form { margin-bottom: 15px; }
.ow-filter-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.ow-filter-row label { display: flex; flex-direction: column; font-size: 0.9em; gap: 3px; margin: 0; }
.ow-filter-row input[type="text"] { min-width: 220px; }
.ow-filter-row .ow-checkbox { flex-direction: row; align-items: center; gap: 6px; }
.ow-filter-actions { display: flex; gap: 10px; align-items: center; }

/* Tablolar */
.ow-table-wrapper { overflow-x: auto; }
.ow-table td, .ow-table th { vertical-align: middle; }
.ow-archived td { opacity: 0.55; }

/* İlerleme çubuğu */
.ow-progress {
    position: relative;
    min-width: 90px;
    height: 16px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}
.ow-progress-bar { height: 100%; background: #5cb85c; }
.ow-progress span {
    position: absolute; top: 0; left: 0; right: 0;
    text-align: center; font-size: 11px; line-height: 16px; color: #333;
}

/* Sayfalama */
.ow-pagination { display: flex; gap: 15px; align-items: center; justify-content: center; margin: 15px 0; }

/* Teklif detay */
.ow-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ow-kpi {
    flex: 1 1 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fafafa;
}
.ow-kpi strong { display: block; font-size: 1.6em; }
.ow-kpi span { color: #777; font-size: 0.9em; }
.ow-kpi-danger strong { color: #b94a48; }

.ow-grid { display: flex; gap: 20px; align-items: flex-start; }
.ow-main { flex: 1 1 auto; min-width: 0; }
.ow-side { flex: 0 0 280px; }
@media (max-width: 1000px) {
    .ow-grid { flex-direction: column; }
    .ow-side { flex-basis: auto; width: 100%; }
}

.ow-section { margin-bottom: 22px; }
.ow-section h3 { margin-bottom: 8px; }
.ow-section-header { display: flex; justify-content: space-between; align-items: center; }

.ow-info-table { width: 100%; border-collapse: collapse; }
.ow-info-table th { text-align: left; width: 200px; color: #666; font-weight: normal; padding: 5px 8px 5px 0; vertical-align: top; }
.ow-info-table td { padding: 5px 0; }

.ow-notes { margin-top: 8px; padding: 8px 10px; background: #fffbea; border-left: 3px solid #e0c060; white-space: pre-wrap; }
.ow-readonly-note { font-size: 0.9em; color: #666; margin: 0 0 8px; }

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

/* --- Adım 3: proje oluşturma formu, işler, erişim --- */
.ow-fieldset { border: 1px solid #ddd; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
.ow-fieldset legend { font-weight: bold; padding: 0 6px; }
.ow-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; }
.ow-form-grid label, .ow-full { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ow-form-grid select, .ow-form-grid input, .ow-full textarea { width: 100%; box-sizing: border-box; }
.ow-full { margin-top: 12px; }
.ow-field-error { color: #b94a48; font-size: 0.85em; margin: 2px 0 0; }

.ow-jobs { margin: 10px 0; }
.ow-job { margin-bottom: 8px; }
.ow-job-actions { display: flex; gap: 8px; margin-top: 6px; }
.ow-job-actions form { margin: 0; }

.ow-grant-list { list-style: none; padding: 0; margin: 0 0 10px; }
.ow-grant-list li { padding: 4px 0; border-bottom: 1px dashed #e5e5e5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ow-inline-form { display: inline; margin: 0 0 0 auto; }
.ow-link-button { background: none; border: 0; color: #b94a48; cursor: pointer; padding: 0 4px; }
.ow-grant-form { display: flex; flex-direction: column; gap: 6px; }
.ow-grant-form label { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.ow-grant-form select { width: 100%; }

/* --- Adım 5: görev detayı "Depodb Ürünleri" --- */
.ow-task-items { margin-bottom: 15px; }
.ow-item-add-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ow-item-add-form .select2-container { flex: 1 1 auto; }


/* --- Adım 6: QC, onay, kart rozetleri --- */
.ow-qc-result { white-space: nowrap; }
.ow-radio { display: inline-block; margin-right: 8px; font-weight: normal; }
.ow-radio-pass { color: #468847; }
.ow-radio-fail { color: #b94a48; }
.ow-radio-na { color: #777; }
.ow-qc-form input[type="text"], .ow-qc-form select { width: 100%; box-sizing: border-box; }
.ow-qc-actions { display: flex; gap: 8px; }
.ow-reject-box { border-color: #e4b9b9; background: #fdf6f6; margin-top: 15px; }
.ow-reject-box .ow-checkbox { display: flex; gap: 6px; align-items: center; margin: 8px 0; font-weight: normal; }

.ow-approval-card { border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
.ow-approval-overdue { border-color: #b94a48; }
.ow-approval-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.ow-decision-form textarea { width: 100%; box-sizing: border-box; }
.ow-decision-actions { display: flex; gap: 8px; margin-top: 6px; }
.ow-workflow-panel { margin-bottom: 15px; }
.ow-plain-list { margin: 0; padding-left: 18px; }

.ow-card-badge { display: inline-block; font-size: 10px; line-height: 14px; padding: 0 4px; border-radius: 3px; color: #fff; margin-left: 2px; }
.ow-card-qc { background: #3a87ad; }
.ow-card-approval { background: #e08e0b; }
.ow-card-overdue { background: #b94a48; }
.ow-card-revision { background: #8e44ad; }

/* --- Adım 7: aktivite akışı ve göstergeler --- */
.ow-activity { list-style: none; margin: 0; padding: 0; }
.ow-activity-item { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e5e5e5; }
.ow-activity-item > .fa { margin-top: 3px; color: #777; }
.ow-activity-success > .fa { color: #468847; }
.ow-activity-danger > .fa { color: #b94a48; }
.ow-activity-meta { font-size: 0.85em; color: #888; }
.ow-activity-compact .ow-activity-item { padding: 4px 0; }
.ow-subtitle { margin: 12px 0 4px; font-size: 1em; }

.ow-state-bars th { width: 150px; }
.ow-bar { background: #eee; border-radius: 4px; height: 14px; overflow: hidden; }
.ow-bar-fill { height: 100%; background: #3a87ad; }
.ow-bar-qc_waiting, .ow-bar-qc { background: #8e7cc3; }
.ow-bar-approval_waiting { background: #e08e0b; }
.ow-bar-approved { background: #468847; }
.ow-bar-revision { background: #b94a48; }