/* dri.css - extracted from mesh-PO_sheet.html */

.dri-shell { flex: 1; display: none; flex-direction: column; overflow: hidden; background: white; }
.dri-shell.active { display: flex; }
.dri-topbar { height: 44px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 18px; flex-shrink: 0; background: white; }
.dri-topbar-bc { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 5px; }
.dri-topbar-bc b { color: #111827; font-weight: 600; }
.dri-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 11px; color: #6b7280; }
.dri-topbar-help { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid #e5e7eb; border-radius: 5px; background: white; color: #374151; cursor: pointer; font-family: inherit; }
.dri-topbar-help:hover { background: #f9fafb; }
.dri-body { flex: 1; overflow: auto; padding: 32px 48px 48px; background: white; box-shadow: inset -1px 0 0 #e5e7eb; }
.dri-header { max-width: 1240px; margin: 0 auto 22px; }
.dri-title { font-size: 26px; font-weight: 600; color: #111827; letter-spacing: -0.4px; margin-bottom: 16px; }
.dri-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dri-period-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; font-weight: 500; color: #111827; background: white; cursor: pointer; }
.dri-period-chip:hover { background: #f9fafb; border-color: #9ca3af; }
.dri-updated { font-size: 12px; color: #6b7280; }
.dri-progress-wrap { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 340px; }
.dri-progress-bar { flex: 1; height: 6px; background: #eef2ff; border-radius: 3px; overflow: hidden; min-width: 200px; }
.dri-progress-fill { height: 100%; background: linear-gradient(90deg, #93b4ff, #4f6ef7); border-radius: 3px; transition: width 0.3s; }
.dri-progress-label { font-size: 12px; color: #6b7280; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dri-banner { max-width: 1240px; margin: 0 auto 14px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12.5px; color: #374151; }
.dri-banner b { color: #1e3a8a; font-weight: 600; background: #eff6ff; padding: 1px 5px; border-radius: 3px; }
.dri-banner-ico { color: #6b7280; flex-shrink: 0; }
.dri-table-wrap { max-width: 1240px; margin: 0 auto; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: white; }
.dri-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dri-table thead th { background: #fafafa; font-weight: 500; color: #6b7280; text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; font-size: 12px; position: sticky; top: 0; z-index: 2; }
.dri-table thead th.input-col { background: #eff6ff; color: #1e3a8a; }
.dri-table thead th.input-col::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4f6ef7; margin-left: 6px; vertical-align: middle; }
.dri-table thead th .sort-arr { font-size: 10px; color: #9ca3af; margin-left: 4px; }
.dri-table tbody td { padding: 0; border-bottom: 1px solid #f3f4f6; color: #111827; vertical-align: middle; height: 36px; }
.dri-table tbody td.dri-pad { padding: 9px 12px; }
.dri-table tbody tr:last-child td { border-bottom: none; }
.dri-table tbody tr:hover td { background: #fafafa; }
.dri-rn { width: 36px; text-align: center !important; color: #9ca3af; font-size: 11px; padding: 9px 4px !important; }
.dri-col-po { font-variant-numeric: tabular-nums; width: 90px; }
.dri-col-supplier { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dri-col-item { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; }
.dri-input-cell { background: #fafcff; position: relative; padding: 0 !important; }
.dri-table tbody tr:hover .dri-input-cell { background: #f4f9ff; }
.dri-services-sel, .dri-cost-input { width: 100%; border: none; background: transparent; font-size: 12.5px; color: #111827; padding: 9px 12px; outline: none; font-family: inherit; box-sizing: border-box; height: 100%; }
.dri-services-sel { appearance: none; cursor: pointer; padding-right: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.dri-input-cell:focus-within { background: #e8f2ff; box-shadow: inset 0 0 0 1.5px #4f6ef7; }
.dri-cost-input { text-align: right; font-variant-numeric: tabular-nums; }
.dri-cost-input::placeholder, .dri-services-sel.empty { color: #cbd5e1; }
.dri-status-cell { width: 62px; text-align: center !important; padding: 9px 4px !important; }
.dri-st-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; }
.dri-st-ico.pending { color: #ea580c; }
.dri-st-ico.done { color: #16a34a; }
.dri-toast { position: fixed; bottom: 20px; right: 20px; background: #111827; color: white; padding: 10px 14px; border-radius: 6px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); display: none; align-items: center; gap: 8px; z-index: 2000; }
.dri-toast.on { display: flex; animation: rpSlide 0.2s ease-out; }
