.device-profit-section { margin-top: 24px; padding: 20px; border: 1px solid #dbe5ef; border-radius: 18px; background: #fff; }
.device-profit-section .section-head { margin-bottom: 16px; }
.device-profit-section h3 { margin: 0 0 6px; }
.device-profit-table { min-width: 820px; }
#deviceProfitDialog { width: min(1240px, calc(100vw - 32px)); max-width: 1240px; }
#deviceProfitDialog .dialog-inner { display: block; min-width: 0; min-height: 0; height: auto; max-height: none; }
#deviceProfitDialog .dialog-actions { position: static; margin: 16px 0 0; }
.profit-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.profit-fields label { display: grid; gap: 6px; color: #475569; font-size: 13px; }
.profit-note-field { grid-column: 1 / -1; }
.profit-guidance { margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: #eff6ff; color: #335579; font-size: 13px; line-height: 1.8; }
.profit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.profit-metric { padding: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.profit-metric span { display: block; color: #64748b; font-size: 12px; }
.profit-metric strong { display: block; margin-top: 8px; font-size: 22px; overflow-wrap: anywhere; }
.profit-positive { color: #047857; }
.profit-negative { color: #b91c1c; }
.profit-month-table { min-width: 1240px; }
.profit-month-table th, .profit-month-table td { white-space: nowrap; }
.profit-month-table input { min-width: 95px; width: 110px; }
.profit-drop-editor { display: flex; align-items: center; gap: 6px; }
.profit-drop-editor select { min-width: 122px; width: 122px; }
.profit-month-table [data-profit-rent] { width: 138px; }
.profit-validation { color: #b45309; font-size: 13px; min-height: 20px; }
.profit-formula { font-size: 13px; color: #475569; line-height: 1.8; }
#deleteProfitPlanBtn[hidden] { display: none !important; }
@media (max-width: 720px) {
  .device-profit-section { padding: 12px; }
  #deviceProfitDialog { width: 100vw; max-width: 100vw; }
  .profit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profit-fields > label:first-child { grid-column: 1 / -1; }
  .profit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profit-metric { padding: 10px; }
  .profit-metric strong { font-size: 19px; }
}
