/* Copyable Kakao report drafts; no outbound messaging. */
@media screen {
  dialog.performance-reports-dialog {
    width: min(680px, calc(100vw - 28px));
    max-width: none;
    max-height: min(900px, calc(100dvh - 32px));
    padding: 0;
    border: 1px solid #d7d4ca;
    border-radius: 14px;
    background: #fff;
    color: #304158;
    box-shadow: 0 22px 80px #0005;
    overflow: hidden;
  }
  dialog.performance-reports-dialog[open] { display: flex; flex-direction: column; }
  dialog.performance-reports-dialog::backdrop { background: #10151bb3; }
  .performance-reports-dialog .pr-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 22px 6px; flex: 0 0 auto; }
  .performance-reports-dialog .pr-dialog-head span { display: block; color: #967138; font-size: 11px; font-weight: 700; line-height: 1.5; }
  .performance-reports-dialog .pr-dialog-head h2 { margin: 3px 0 0; color: #2c3a4d; font-size: 21px; line-height: 1.5; letter-spacing: -.6px; }
  .performance-reports-dialog button { min-height: 39px; padding: 8px 12px; border: 1px solid #d4dce5; border-radius: 7px; background: #fff; color: #42546c; font-size: 13px; font-weight: 650; line-height: 1.5; }
  .performance-reports-dialog button:hover { border-color: #b49b6d; background: #fcf8ef; }
  .performance-reports-dialog button:disabled { cursor: not-allowed; opacity: .5; }
  .performance-reports-dialog #prClose { width: 37px; min-height: 37px; padding: 0; border: 0; font-size: 24px; font-weight: 400; }
  .performance-reports-dialog .pr-description { margin: 0; padding: 0 22px 15px; color: #69778b; font-size: 12px; line-height: 1.65; flex: 0 0 auto; }
  .performance-reports-dialog .pr-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 22px 12px; padding: 4px; border-radius: 9px; background: #f0f2f5; flex: 0 0 auto; }
  .performance-reports-dialog .pr-tabs button { border-color: transparent; background: transparent; color: #647084; }
  .performance-reports-dialog .pr-tabs button.active { border-color: #dfd5c1; background: #fff; color: #80602d; box-shadow: 0 2px 5px #00000008; }
  .performance-reports-dialog .pr-content { min-height: 0; padding: 0 22px 12px; overflow: auto; overscroll-behavior: contain; }
  .performance-reports-dialog .pr-period { margin: 0 0 11px; color: #7e653d; font-size: 12px; font-weight: 700; line-height: 1.6; }
  .performance-reports-dialog .pr-fields { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0, 1.6fr); gap: 12px; }
  .performance-reports-dialog .pr-fields [hidden] { display: none; }
  .performance-reports-dialog .pr-fields.pr-fields-summary { grid-template-columns: minmax(0, 1fr); }
  .performance-reports-dialog label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; color: #4b5b72; font-size: 12px; font-weight: 650; line-height: 1.6; }
  .performance-reports-dialog :is(input, select, textarea) { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 9px 10px; border: 1px solid #cfd8e3; border-radius: 7px; background: #fff; color: #304158; font: inherit; font-size: 13px; font-weight: 450; line-height: 1.6; }
  .performance-reports-dialog .pr-hint { margin: 11px 0 13px; color: #718094; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
  .performance-reports-dialog .pr-preview-label { margin: 0 0 6px; }
  .performance-reports-dialog #prPreview { display: block; min-height: 230px; resize: vertical; background: #fcfbf8; border-color: #ded8cb; color: #344359; font-family: inherit; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
  .performance-reports-dialog #prMessage { min-height: 20px; margin: 9px 0 0; color: #8c6230; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
  .performance-reports-dialog .pr-actions { display: flex; align-items: center; gap: 8px; padding: 13px 22px; border-top: 1px solid #e4e7ed; background: #fff; flex: 0 0 auto; }
  .performance-reports-dialog .pr-actions > span { flex: 1; }
  .performance-reports-dialog #prEditContract { font-size: 12px; }
  .performance-reports-dialog button.primary { border-color: #927039; background: #927039; color: #fff; }
  .performance-reports-dialog button.primary:hover { border-color: #795b2d; background: #795b2d; }
  .performance-reports-dialog :is(button, input, select, textarea):focus-visible { outline: 3px solid #c7a665; outline-offset: 2px; }
}
@media screen and (max-width: 560px) {
  dialog.performance-reports-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 11px; }
  .performance-reports-dialog .pr-dialog-head { padding: 15px 14px 6px; }
  .performance-reports-dialog .pr-dialog-head h2 { font-size: 19px; }
  .performance-reports-dialog .pr-description { padding: 0 14px 12px; }
  .performance-reports-dialog .pr-tabs { margin: 0 14px 11px; }
  .performance-reports-dialog .pr-tabs button { font-size: 12px; padding: 8px 6px; }
  .performance-reports-dialog .pr-content { padding: 0 14px 10px; }
  .performance-reports-dialog .pr-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .performance-reports-dialog :is(input, select) { font-size: 16px; }
  .performance-reports-dialog #prPreview { min-height: 210px; font-size: 13px; }
  .performance-reports-dialog .pr-actions { flex-wrap: wrap; padding: 10px 14px; }
  .performance-reports-dialog .pr-actions > span { display: none; }
  .performance-reports-dialog .pr-actions #prEditContract { margin-right: auto; }
  .performance-reports-dialog .pr-actions #prCopy { flex: 1; }
  .performance-reports-dialog button { min-height: 42px; }
}
