diff --git a/resources/views/finance/daily-work-log.blade.php b/resources/views/finance/daily-work-log.blade.php index d22731fe..70ec1071 100644 --- a/resources/views/finance/daily-work-log.blade.php +++ b/resources/views/finance/daily-work-log.blade.php @@ -226,7 +226,8 @@ function DailyWorkLog() { const tdCenter = { ...tdStyle, textAlign: 'center' }; const sectionHeader = { background: '#edf2f7', padding: '8px 12px', fontWeight: '600', fontSize: '14px', textAlign: 'center', borderTop: '2px solid #4a5568', borderBottom: '1px solid #cbd5e0' }; const rateBar = { height: '8px', borderRadius: '4px', background: '#e2e8f0', overflow: 'hidden' }; - const rateFill = { height: '100%', borderRadius: '4px', background: rate >= 80 ? '#48bb78' : rate >= 50 ? '#ecc94b' : '#f56565', width: rate + '%', transition: 'width 0.3s' }; + const rateColor = rate >= 80 ? '#48bb78' : (rate >= 50 ? '#ecc94b' : '#f56565'); + const rateFill = { height: '100%', borderRadius: '4px', background: rateColor, width: rate + '%', transition: 'width 0.3s' }; const inputBase = { width: '100%', padding: '4px 6px', fontSize: '13px', border: '1px solid #e2e8f0', borderRadius: '4px', outline: 'none' }; const btnNav = { padding: '6px 12px', background: 'white', border: '1px solid #d1d5db', borderRadius: '6px', cursor: 'pointer', fontSize: '16px', lineHeight: '1' }; const btnPrimary = { padding: '8px 20px', background: '#4f46e5', color: 'white', border: 'none', borderRadius: '6px', cursor: 'pointer', fontWeight: '600', fontSize: '14px' }; @@ -244,6 +245,9 @@ function DailyWorkLog() { const doneCol = { width: '50px' }; const noteCol = { width: '160px' }; const actCol = { width: '80px' }; + const colorSelectStyle = { padding: '2px', fontSize: '11px', width: '32px' }; + const rateContainerStyle = { flex: '1', maxWidth: '400px', marginLeft: '20px' }; + const rateTextStyle = { color: rateColor, minWidth: '80px', textAlign: 'right' }; const tableStyle = { width: '100%', borderCollapse: 'collapse' }; return ( @@ -354,7 +358,7 @@ className="text-lg font-bold text-gray-800 border border-gray-300 rounded-lg px-