:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #687386;
  --line: #d8dee9;
  --primary: #1f4e78;
  --primary-dark: #173b5b;
  --ok-bg: #e7f7ee;
  --ok: #166534;
  --warn-bg: #fff7dc;
  --warn: #92400e;
  --neutral-bg: #e9eef5;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: #0f2740; color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.brand { display: flex; align-items: baseline; gap: 12px; font-weight: 700; }
.brand a { color: #fff; font-size: 20px; letter-spacing: .04em; }
.brand span { color: #c8d7ea; font-size: 14px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { color: #e7eef8; }
.nav .user { color: #b9c9dc; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.logout-form { margin: 0; }
.logout-form button { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 6px 10px; cursor: pointer; }

.container { width: min(1480px, calc(100% - 40px)); margin: 28px auto 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
h1 { margin: 0 0 6px; font-size: 28px; }
h2 { margin: 0 0 14px; font-size: 18px; }
.muted { color: var(--muted); margin: 0; }
.actions, .inline-actions, .form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card, .auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 6px 18px rgba(32, 48, 72, .05); }
.narrow { max-width: 680px; }
.narrow-form { max-width: 980px; }
.auth-card { max-width: 420px; margin: 80px auto; }
.auth-card h1 { font-size: 24px; }

button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; cursor: pointer; }
button:hover, .button:hover { text-decoration: none; background: #f2f5fa; }
.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.primary:hover { background: var(--primary-dark); }
.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.danger-link { color: var(--danger); }
.full { width: 100%; margin-top: 14px; }

.messages { margin-bottom: 16px; }
.message { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; }
.message.success { background: #e8f7ee; border-color: #b7e1c4; }
.message.warning { background: #fff7dc; border-color: #f0d98b; }
.message.error { background: #ffebe9; border-color: #ffbbb3; color: #8f1b11; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { font-size: 28px; display: block; margin-top: 4px; }

.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; align-items: end; }
.filter-grid .wide { grid-column: span 2; }
.filter-actions { display: flex; gap: 8px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input, select, textarea, .form-control { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--text); }
input:disabled, select:disabled, textarea:disabled { background: #f0f3f7; color: #6b7280; }
small { display: block; margin-top: 5px; color: var(--muted); }
.error-text { color: var(--danger); }
.req { color: var(--danger); margin-left: 3px; }

.table-card { overflow-x: auto; padding: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.data-table th { background: #eef3f8; text-align: left; font-size: 13px; color: #344154; white-space: nowrap; }
.data-table tr:hover td { background: #fafcff; }
.data-table.compact th, .data-table.compact td { padding: 8px 9px; }
.title-col { min-width: 260px; }
.remark-col { max-width: 300px; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }

.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.neutral { background: var(--neutral-bg); color: #344154; }

.detail-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-bottom: 16px; }
.detail-list { display: grid; grid-template-columns: 140px 1fr; row-gap: 9px; column-gap: 12px; margin: 0; }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { margin: 0; }
.preline { white-space: pre-line; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field.span-2 { grid-column: span 2; }
.form-actions { margin-top: 18px; }

.master-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.master-card { color: var(--text); text-decoration: none; }
.master-card span { color: var(--muted); font-weight: 700; }
.master-card strong { display: block; font-size: 34px; margin: 10px 0; }
.master-card em { font-style: normal; color: var(--primary); font-weight: 700; }

.pagination { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 18px; }
.pagination a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }

@media (max-width: 980px) {
  .page-head, .topbar { flex-direction: column; height: auto; align-items: stretch; gap: 10px; padding: 14px 18px; }
  .nav { flex-wrap: wrap; }
  .stats-grid, .filter-grid, .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .filter-grid .wide, .form-field.span-2 { grid-column: span 1; }
}

.master-help { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.master-help strong { color: var(--primary); }
.master-help span { color: var(--muted); }
.master-group { margin-bottom: 16px; }
.master-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8fbff; }
.master-group-head h2 { margin: 0; }
.drag-col { width: 58px; text-align: center !important; white-space: nowrap; }
.drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: #64748b; cursor: grab; font-weight: 800; letter-spacing: -3px; user-select: none; }
.drag-handle:hover { background: #e8eef6; color: var(--primary); }
tr.dragging { opacity: .45; }
tr.dragging td { background: #edf5ff !important; }
.sort-save-status { min-height: 18px; padding: 8px 14px 12px; }

.use-col { width: 92px; text-align: center !important; white-space: nowrap; }
.action-col { width: 92px; text-align: center !important; white-space: nowrap; }

.issue-list-card { overflow-x: auto; }
.issue-table { min-width: 1780px; }
.issue-table th, .issue-table td { padding: 8px 9px; }
.doc-col { width: 170px; min-width: 170px; }
.code-col { width: 86px; min-width: 86px; text-align: center !important; }
.issue-title-col { width: 300px; min-width: 300px; }
.issue-content-col { width: 420px; min-width: 420px; }
.owner-col { width: 100px; min-width: 100px; }
.date-col { width: 132px; min-width: 132px; }
.status-col { width: 138px; min-width: 138px; }
.file-col { width: 68px; min-width: 68px; text-align: center !important; }
.issue-remark-col { width: 210px; min-width: 210px; }

.inline-field { width: 100%; min-height: 32px; border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.inline-title { font-weight: 600; }
.inline-select { padding: 5px 7px; }
.inline-date { padding: 5px 7px; }
.inline-content { min-height: 42px; max-height: 260px; resize: vertical; transition: min-height .15s ease, box-shadow .15s ease; }
.inline-content:focus { min-height: 150px; }
.inline-remark { min-height: 42px; max-height: 180px; resize: vertical; }
.inline-remark:focus { min-height: 92px; }
.inline-field.saving { background: #f8fbff; }
.inline-field.save-error { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(180, 35, 24, .08); }
.inline-save-state { display: block; min-height: 16px; margin-top: 4px; color: var(--muted); font-size: 11px; }

.code-pop { position: relative; display: inline-flex; justify-content: center; }
.code-chip { min-height: 28px; padding: 4px 7px; border: 0; background: transparent; color: var(--primary); font-weight: 800; }
.code-chip:hover { background: #eaf1f8; text-decoration: none; }
.code-popover { position: absolute; z-index: 20; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 220px; max-width: 380px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(15, 39, 64, .16); text-align: left; color: var(--text); white-space: normal; line-height: 1.45; }
.code-popover[hidden] { display: none; }

.content-details summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.content-details div { margin-top: 8px; padding: 10px; border-radius: 8px; background: #f8fbff; border: 1px solid var(--line); }

@media (max-width: 980px) {
  .issue-table { min-width: 1500px; }
}

/* patch 20260605-03: compact inline list controls */
.master-sortable-table th.use-col,
.master-sortable-table td.use-col,
.master-sortable-table th.action-col,
.master-sortable-table td.action-col {
  text-align: center !important;
  vertical-align: middle;
}
.master-sortable-table .use-col { width: 88px; }
.master-sortable-table .action-col { width: 76px; }

.issue-list-card {
  overflow: visible !important;
}
.issue-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  font-size: 12.5px;
}
.issue-table th,
.issue-table td {
  padding: 7px 6px;
  overflow: hidden;
}
.issue-table .doc-col { width: 126px; min-width: 0 !important; }
.issue-table .code-col { width: 56px; min-width: 0 !important; text-align: center !important; }
.issue-table .issue-title-col { width: 16%; min-width: 0 !important; }
.issue-table .issue-content-col { width: 23%; min-width: 0 !important; }
.issue-table .owner-col { width: 72px; min-width: 0 !important; }
.issue-table .date-col { width: 104px; min-width: 0 !important; }
.issue-table .status-col { width: 86px; min-width: 0 !important; text-align: center !important; }
.issue-table .file-col { width: 42px; min-width: 0 !important; text-align: center !important; }
.issue-table .issue-remark-col { width: 10%; min-width: 0 !important; }
.issue-table .doc-col a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.issue-table .owner-col,
.issue-table .file-col {
  vertical-align: middle;
}

.issue-table .inline-field {
  width: 100%;
  min-height: 28px;
  border: 0 !important;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  outline: none;
  padding: 4px 6px;
  font-size: 12.5px;
  line-height: 1.35;
}
.issue-table .inline-field:hover {
  background: #f4f8fc;
}
.issue-table .inline-field:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(31, 78, 120, .12);
}
.issue-table .inline-title {
  font-weight: 650;
}
.issue-table .inline-date {
  padding: 4px 2px;
  text-align: center;
}
.issue-table .inline-content,
.issue-table .inline-content:focus {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  resize: none;
  overflow: auto;
}
.issue-table .inline-remark,
.issue-table .inline-remark:focus {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  resize: none;
  overflow: auto;
}
.issue-table .inline-readonly-text {
  max-height: 48px;
  overflow: hidden;
  line-height: 1.45;
}
.issue-table .inline-save-state {
  display: none;
}
.issue-table .inline-field.saving {
  background: #f7fbff;
}
.issue-table .inline-field.save-error {
  background: #fff3f2;
  box-shadow: inset 0 0 0 2px rgba(180, 35, 24, .16);
}

.issue-table .inline-pill-select {
  width: auto;
  max-width: 100%;
  min-width: 62px;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 22px 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 9px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 20 20'%3E%3Cpath fill='%23566' d='M5.5 7.5 10 12l4.5-4.5z'/%3E%3C/svg%3E");
}
.issue-table .inline-pill-select:focus {
  box-shadow: 0 0 0 3px rgba(31, 78, 120, .10);
}
.issue-table .pill-ok { background-color: #d8f8f2; color: #12696d; }
.issue-table .pill-blue { background-color: #dcecff; color: #23518f; }
.issue-table .pill-pink { background-color: #ffe5f5; color: #8a3f78; }
.issue-table .pill-red { background-color: #ffe2de; color: #9f3730; }
.issue-table .pill-gray { background-color: #e8eff0; color: #40515a; }
.issue-table .pill-green { background-color: #def8df; color: #25693d; }
.issue-table .pill-amber { background-color: #fff1c7; color: #80530c; }

.code-pop { position: static; display: inline-flex; justify-content: center; }
.code-chip {
  min-height: 24px;
  padding: 2px 5px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
}
.code-chip:hover,
.code-chip[aria-expanded="true"] {
  background: #eaf1f8;
}
.floating-code-popover {
  position: fixed;
  z-index: 9999;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 39, 64, .20);
  text-align: left;
  color: var(--text);
  white-space: normal;
  line-height: 1.45;
}
.floating-code-popover::before {
  content: "";
  position: absolute;
  left: var(--arrow-left, 50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.floating-code-popover[data-placement="bottom"]::before { top: -6px; }
.floating-code-popover[data-placement="top"]::before {
  bottom: -6px;
  transform: translateX(-50%) rotate(225deg);
}

@media (max-width: 980px) {
  .issue-table {
    min-width: 0 !important;
    font-size: 12px;
  }
  .issue-table th,
  .issue-table td {
    padding: 6px 4px;
  }
  .issue-table .doc-col { width: 112px; }
  .issue-table .code-col { width: 50px; }
  .issue-table .owner-col { width: 58px; }
  .issue-table .date-col { width: 94px; }
  .issue-table .status-col { width: 76px; }
  .issue-table .file-col { width: 34px; }
  .issue-table .issue-title-col { width: 15%; }
  .issue-table .issue-content-col { width: 25%; }
  .issue-table .issue-remark-col { width: 8%; }
  .issue-table .inline-pill-select {
    min-width: 54px;
    padding-left: 7px;
    padding-right: 18px;
    font-size: 11.5px;
  }
}

/* patch 20260605-04: status colors and table alignment */
.data-table th {
  text-align: center;
  vertical-align: middle;
}
.master-sortable-table th,
.master-sortable-table td {
  vertical-align: middle;
}
.master-sortable-table .color-col {
  width: 108px;
  text-align: center !important;
}
.color-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}
input[type="color"].form-control {
  max-width: 92px;
  height: 38px;
  padding: 4px;
  cursor: pointer;
}

.issue-table th {
  text-align: center !important;
  vertical-align: middle !important;
}
.issue-table td {
  vertical-align: middle !important;
}
.issue-table .owner-col,
.issue-table .file-col,
.issue-table .date-col,
.issue-table .code-col,
.issue-table .status-col {
  text-align: center !important;
}
.issue-table .doc-col a,
.code-chip {
  font-family: inherit;
  font-size: 12.5px;
}
.code-chip {
  min-height: 24px;
  padding: 2px 5px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
}
.issue-table .inline-field {
  display: block;
  line-height: 1.35;
  vertical-align: middle;
}
.issue-table .inline-title {
  height: 30px;
  min-height: 30px;
  font-weight: 650;
}
.issue-table .inline-date {
  height: 30px;
  min-height: 30px;
  line-height: 20px;
}
.issue-table .inline-content,
.issue-table .inline-content:focus {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  resize: none;
}
.issue-table .inline-remark,
.issue-table .inline-remark:focus {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  resize: none;
}
.issue-table .inline-pill-select {
  display: inline-block;
  height: 26px;
  min-height: 26px;
  padding: 2px 22px 2px 10px;
  line-height: 22px;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 750;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 22px;
  white-space: nowrap;
}

/* patch 20260605-05: subtle table separators and history controls */
.data-table th,
.data-table td {
  border-right: 1px solid rgba(216, 222, 233, .58);
  vertical-align: middle;
  word-break: keep-all;
}
.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}
.data-table th {
  text-align: center !important;
}
.data-table.compact th,
.data-table.compact td {
  line-height: 1.35;
}

.issue-table .code-chip {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
.issue-table td {
  vertical-align: middle;
}
.issue-table .inline-field {
  vertical-align: middle;
}
.issue-table .inline-pill-select {
  line-height: 1.25;
  vertical-align: middle;
}
.issue-table .inline-content,
.issue-table .inline-content:focus,
.issue-table .inline-remark,
.issue-table .inline-remark:focus {
  line-height: 1.35;
}

.master-sortable-table th,
.master-sortable-table td {
  vertical-align: middle;
}
.master-sortable-table .use-col,
.master-sortable-table .action-col,
.master-sortable-table .color-col {
  text-align: center !important;
}

.history-card {
  overflow-x: auto;
}
.history-table {
  table-layout: fixed;
  min-width: 980px;
  font-size: 12.5px;
}
.history-table th,
.history-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.history-table .history-date-col { width: 122px; text-align: center; }
.history-table .history-user-col { width: 82px; text-align: center; }
.history-table .history-type-col { width: 56px; text-align: center; }
.history-table .history-field-col { width: 96px; text-align: center; }
.history-table .history-note-col { width: 150px; }
.history-table .history-action-col { width: 58px; text-align: center !important; }
.cell-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-delete-form {
  margin: 0;
}
.table-link-button {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}
.table-link-button:hover {
  background: transparent;
  text-decoration: underline;
}

/* patch 20260605-06/07: ONLYOFFICE editor */
.attachment-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.office-head {
  margin-bottom: 12px;
}
.office-editor-shell {
  width: calc(100vw - 32px);
  margin-left: calc(50% - 50vw + 16px);
  margin-right: calc(50% - 50vw + 16px);
}
.office-editor-card {
  height: calc(100vh - 148px);
  min-height: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(32, 48, 72, .05);
}
.onlyoffice-editor {
  width: 100%;
  height: 100%;
}
@media (max-width: 980px) {
  .office-editor-shell {
    width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
  }
  .office-editor-card {
    height: calc(100vh - 190px);
    min-height: 560px;
  }
}

/* patch 20260605-08: compact and expandable ONLYOFFICE workspace */
body.office-editor-page {
  overflow: hidden;
}
body.office-editor-page .topbar {
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
}
body.office-editor-page .brand {
  gap: 9px;
}
body.office-editor-page .brand a {
  font-size: 16px;
}
body.office-editor-page .brand span,
body.office-editor-page .nav {
  font-size: 12.5px;
}
body.office-editor-page .nav {
  gap: 10px;
}
body.office-editor-page .logout-form button {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}
body.office-editor-page .container {
  width: 100%;
  max-width: none;
  height: calc(100vh - 42px);
  margin: 0;
  padding: 0 10px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.office-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
body.office-editor-page .office-head {
  flex: 0 0 auto;
  min-height: 46px;
  margin: 0;
  padding: 7px 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.office-file-line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.office-file-line h1 {
  max-width: min(58vw, 900px);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.2;
}
.office-file-sub {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.office-actions {
  flex: 0 0 auto;
  gap: 6px;
}
.office-actions .button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12.5px;
}
body.office-editor-page .office-editor-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0 0 2px;
}
body.office-editor-page .office-editor-card {
  height: 100%;
  min-height: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: none;
}
body.office-editor-page .onlyoffice-editor {
  width: 100%;
  height: 100%;
}
body.office-expanded .topbar {
  display: none;
}
body.office-expanded .container {
  height: 100vh;
  padding: 0;
}
body.office-expanded .office-head {
  min-height: 38px;
  padding: 5px 10px;
}
body.office-expanded .office-file-line h1 {
  font-size: 15px;
}
body.office-expanded .office-actions .button {
  min-height: 28px;
  padding: 4px 9px;
}
body.office-expanded .office-editor-shell {
  padding-bottom: 0;
}
body.office-expanded .office-editor-card {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
@media (max-width: 980px) {
  body.office-editor-page .topbar {
    height: auto;
    min-height: 0;
  }
  body.office-editor-page .container {
    height: calc(100vh - 88px);
    padding: 0 6px 6px;
  }
  body.office-editor-page .office-head {
    gap: 6px;
    padding: 6px;
  }
  .office-file-line {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .office-file-line h1 {
    max-width: 56vw;
    font-size: 15px;
  }
  .office-actions .button {
    min-height: 28px;
    padding: 4px 7px;
  }
  body.office-expanded .container {
    height: 100vh;
    padding: 0;
  }
}

/* patch 20260605-09: attachment metadata and issue-list attachment popup */
.attachment-count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: #eaf1f8;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
}
.attachment-count-chip:hover,
.attachment-count-chip[aria-expanded="true"] {
  background: #dcecff;
  text-decoration: none;
}
.file-count-zero {
  color: var(--text);
}
.attachment-popover[hidden] {
  display: none;
}
.floating-attachment-popover {
  width: min(430px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 60px));
  overflow: hidden;
  padding: 0;
}
.floating-attachment-popover .attachment-popover-title {
  display: block;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(216, 222, 233, .72);
  background: #f8fbff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.floating-attachment-popover .attachment-popover-list {
  display: flex;
  flex-direction: column;
  max-height: min(500px, calc(100vh - 118px));
  overflow-y: auto;
}
.floating-attachment-popover .attachment-popover-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(216, 222, 233, .52);
}
.floating-attachment-popover .attachment-popover-item:last-child {
  border-bottom: 0;
}
.floating-attachment-popover .attachment-file-name {
  grid-column: 1 / 2;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 750;
  font-size: 13px;
}
.floating-attachment-popover .attachment-file-meta {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.floating-attachment-popover .attachment-file-actions {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.floating-attachment-popover .attachment-file-actions a {
  color: var(--primary);
}
.floating-attachment-popover .attachment-file-actions a:hover {
  text-decoration: underline;
}
.attachment-actions {
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .floating-attachment-popover .attachment-popover-item {
    grid-template-columns: 1fr;
  }
  .floating-attachment-popover .attachment-file-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}

/* patch 20260605-10: compact text cells, delete dialog, attachment actions, master drag fix */
.issue-table .text-popup-cell {
  vertical-align: middle !important;
}
.text-preview-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.text-preview-button:hover,
.text-preview-button:focus {
  background: #f4f8fc;
  outline: none;
}
.text-preview-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}
.text-open-mark {
  flex: 0 0 auto;
  color: #8da0b4;
  font-size: 11px;
  font-weight: 800;
}
.text-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 26, 44, .38);
}
.text-modal-backdrop[hidden] {
  display: none;
}
.text-modal-card {
  width: min(860px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 39, 64, .28);
}
.text-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}
.text-modal-close {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.text-modal-close:hover {
  background: #eaf1f8;
  color: var(--text);
}
.text-modal-input {
  flex: 1 1 auto;
  min-height: 360px;
  border: 0;
  border-radius: 0;
  padding: 16px;
  resize: none;
  line-height: 1.6;
  font-size: 14px;
  outline: none;
}
.text-modal-input[readonly] {
  background: #fff;
}
.text-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}
.text-modal-state {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
body.modal-open {
  overflow: hidden;
}
.attachment-name-text {
  font-weight: 650;
}
.attachment-actions {
  gap: 10px;
}
.floating-attachment-popover .attachment-file-actions {
  gap: 10px;
}
.master-sortable-table tbody tr {
  user-select: none;
}
.master-sortable-table .drag-handle {
  touch-action: none;
}
.master-sortable-table .drag-handle:active {
  cursor: grabbing;
}
@media (max-width: 700px) {
  .text-modal-backdrop {
    padding: 10px;
  }
  .text-modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .text-modal-input {
    min-height: 300px;
  }
}

/* patch 20260605-11: encrypted attachment marker */
.encrypted-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  margin-left: 5px;
  border-radius: 50%;
  background: #ef2a1e;
  vertical-align: -2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.encrypted-file-icon::before {
  content: "";
  display: block;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.floating-attachment-popover .encrypted-file-icon {
  flex: 0 0 auto;
}

.user-filter-grid {
  grid-template-columns: minmax(260px, 1fr) auto;
}
.user-table th,
.user-table td {
  white-space: nowrap;
}
.user-table .actions-cell {
  text-align: center;
  width: 150px;
}
.center {
  text-align: center;
}
.form-check-input {
  width: auto;
  min-width: 16px;
  height: 16px;
  vertical-align: middle;
}
.auth-card small {
  display: block;
  margin: 5px 0 10px;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}

/* account management */
.user-table th,
.user-table td { vertical-align: middle; }
.user-table .center { text-align: center; }
.user-table .right { text-align: right; }
.user-table .nowrap { white-space: nowrap; }
.form-stack .form-row { margin-bottom: 14px; }
.form-stack .help-text { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.form-stack .field-error { margin: 5px 0 0; font-size: 12px; color: #b91c1c; }
.checkbox-row-wrap input[type="checkbox"].form-check-input { width: auto; min-width: 18px; height: 18px; }
.badge.warn { background: #fff3cd; color: #7a5600; }

/* patch 20260605-13: keep document numbers on a single line */
.issue-table .doc-col {
  width: 174px !important;
  min-width: 0 !important;
}
.issue-table .doc-col,
.issue-table .doc-col a {
  white-space: nowrap !important;
}
.issue-table .doc-col a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden !important;
  text-overflow: ellipsis;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  line-height: 1.25;
  vertical-align: middle;
}
@media (max-width: 980px) {
  .issue-table .doc-col {
    width: 154px !important;
  }
  .issue-table .doc-col a {
    font-size: 11.5px;
  }
}

/* patch 20260605-14: collaborative status edits and compact status width fix */
.issue-table .doc-col a {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.issue-table .issue-status-col {
  width: 88px;
}
.issue-table .document-status-col {
  width: 94px;
}
.issue-table .inline-pill-select {
  min-width: 72px;
  max-width: none;
}
.issue-table .document-status-col .inline-pill-select,
.issue-table .document-status-col .status-badge {
  min-width: 78px;
}
.issue-table .inline-pill-select option {
  color: #102a43;
  background: #ffffff;
}
@media (max-width: 980px) {
  .issue-table .issue-status-col { width: 82px; }
  .issue-table .document-status-col { width: 88px; }
  .issue-table .inline-pill-select { min-width: 68px; }
  .issue-table .document-status-col .inline-pill-select,
  .issue-table .document-status-col .status-badge { min-width: 74px; }
}

/* Patch 20260605-15: detail layout, comments, full-width attachments */
.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.issue-info-card,
.comment-card,
.attachment-card {
  min-width: 0;
}
.issue-detail-list {
  grid-template-columns: 130px minmax(0, 1fr);
  row-gap: 10px;
}
.issue-detail-list .detail-long-text {
  line-height: 1.65;
  max-height: 280px;
  overflow: auto;
  padding-right: 6px;
}
.comment-card h2,
.attachment-card h2 {
  margin-bottom: 14px;
}
.comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.5;
  background: #fff;
}
.comment-form textarea:focus {
  outline: 2px solid rgba(31, 78, 121, 0.14);
  border-color: rgba(31, 78, 121, 0.35);
}
.comment-submit {
  width: 100%;
  margin-top: 8px;
}
.recent-comments {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.recent-comment-item {
  border: 1px solid rgba(211, 222, 234, 0.75);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fbfdff;
}
.recent-comment-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
  white-space: nowrap;
}
.recent-comment-text {
  font-size: 13px;
  line-height: 1.45;
  max-height: 86px;
  overflow: auto;
}
.comment-empty {
  margin: 0;
  padding: 12px 0;
}
.attachment-card {
  margin-bottom: 16px;
}
.attachment-detail-table th,
.attachment-detail-table td {
  vertical-align: middle;
}
.attachment-detail-table th:nth-child(2),
.attachment-detail-table td:nth-child(2),
.attachment-detail-table th:nth-child(3),
.attachment-detail-table td:nth-child(3),
.attachment-detail-table th:nth-child(4),
.attachment-detail-table td:nth-child(4),
.attachment-detail-table th:nth-child(5),
.attachment-detail-table td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}
.history-comment-row td {
  background: rgba(244, 248, 252, 0.72);
}
.history-comment-row .history-type-col,
.history-comment-row .history-field-col {
  font-weight: 700;
}
@media (max-width: 1100px) {
  .detail-main-grid { grid-template-columns: 1fr; }
  .recent-comments { max-height: none; }
}

/* patch 20260605-15: detail layout, comments, attachment section */
.issue-detail-main {
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, .75fr);
  align-items: start;
}
.issue-info-card {
  min-height: 360px;
}
.issue-detail-list {
  grid-template-columns: 136px minmax(0, 1fr);
  row-gap: 10px;
}
.issue-detail-list dd {
  min-width: 0;
  line-height: 1.52;
}
.detail-long-text {
  white-space: pre-line;
  word-break: break-word;
}
.comment-card {
  min-height: 360px;
}
.comment-form textarea {
  min-height: 126px;
  resize: vertical;
}
.comment-form .full {
  margin-top: 8px;
}
.comment-list {
  margin-top: 14px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}
.comment-item {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.comment-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 12.5px;
}
.comment-meta strong {
  font-size: 13px;
}
.comment-meta span {
  color: var(--muted);
  white-space: nowrap;
}
.comment-body {
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
}
.small-empty {
  padding: 18px 0 !important;
}
.attachment-detail-card {
  margin-bottom: 16px;
  overflow-x: auto;
}
.attachment-detail-table {
  table-layout: fixed;
  min-width: 960px;
}
.attachment-detail-table th,
.attachment-detail-table td {
  vertical-align: middle;
}
.attachment-detail-table th {
  text-align: center;
}
.attachment-detail-table th:first-child,
.attachment-detail-table td:first-child {
  text-align: left;
}
.attachment-detail-table th:nth-child(2),
.attachment-detail-table td:nth-child(2) { width: 95px; text-align: center; }
.attachment-detail-table th:nth-child(3),
.attachment-detail-table td:nth-child(3) { width: 64px; text-align: center; }
.attachment-detail-table th:nth-child(4),
.attachment-detail-table td:nth-child(4) { width: 82px; text-align: center; }
.attachment-detail-table th:nth-child(5),
.attachment-detail-table td:nth-child(5) { width: 90px; text-align: center; }
.attachment-detail-table th:nth-child(6),
.attachment-detail-table td:nth-child(6) { width: 210px; text-align: center; }
@media (max-width: 980px) {
  .issue-detail-main {
    grid-template-columns: 1fr;
  }
  .comment-card,
  .issue-info-card {
    min-height: 0;
  }
}

/* patch 20260605-16: comment management and read-only controls */
.issue-detail-main {
  align-items: stretch;
}
.issue-info-card,
.comment-card {
  height: 100%;
}
.comment-card {
  display: flex;
  flex-direction: column;
}
.comment-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: visible;
}
.comment-actions,
.comment-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 6px;
}
.comment-actions .inline-delete-form {
  display: inline-flex;
}
.comment-edit-form {
  margin-top: 8px;
}
.comment-edit-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}
.comment-edit-actions .button,
.comment-edit-actions .primary {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12.5px;
}

.issue-table .readonly-pill,
.issue-table .readonly-date {
  cursor: not-allowed;
  user-select: none;
}
.issue-table .readonly-pill {
  border: 0 !important;
  text-align: center;
  white-space: nowrap;
}
.issue-table .readonly-date {
  height: 30px;
  min-height: 30px;
  line-height: 20px;
  text-align: center;
  color: var(--text);
}
.issue-table .readonly-denied {
  box-shadow: inset 0 0 0 2px rgba(197, 79, 48, .42) !important;
  background-image: none;
}
.issue-table .readonly-pill.readonly-denied {
  background-image: none !important;
}
.issue-table .readonly-date.readonly-denied {
  background: #fff8f6 !important;
}


/* patch 20260605-17: compact comments, two-column detail fields, matched readonly cells */
.issue-table .inline-static-title {
  display: block;
  width: 100%;
  min-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  padding: 4px 6px;
  color: var(--text);
  background: transparent;
}
.issue-table .inline-title,
.issue-table .inline-static-title {
  text-align: left;
}
.issue-table .inline-date,
.issue-table .inline-static-date {
  font-weight: 400;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
}
.issue-table button.inline-static-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  width: 100%;
  border: 0;
  background: transparent;
  line-height: 1.35;
  cursor: not-allowed;
}
.issue-table button.inline-static-date:hover {
  background: #f8fbfe;
}
.date-fake-icon {
  font-size: 11px;
  line-height: 1;
  color: #172b3f;
  transform: translateY(-1px);
}
.issue-table .readonly-denied {
  box-shadow: inset 0 0 0 2px rgba(31, 78, 120, .30) !important;
}
.issue-detail-list-v2 {
  grid-template-columns: 96px minmax(0, 1.2fr) 118px minmax(0, .8fr) !important;
  row-gap: 11px;
  column-gap: 14px;
  align-items: center;
}
.issue-detail-list-v2 dt {
  white-space: nowrap;
}
.issue-detail-list-v2 dd {
  min-width: 0;
}
.issue-detail-list-v2 .detail-long-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  align-self: end;
}
.issue-detail-list-v2 .detail-adaptive-text {
  grid-column: 1 / -1;
  max-height: 188px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.58;
  padding: 2px 4px 2px 0;
}
.issue-detail-list-v2 .detail-remark-text {
  max-height: 128px;
}
.comment-meta {
  justify-content: flex-start;
  gap: 8px;
}
.comment-meta .comment-time {
  margin-left: auto;
}
.comment-delete-form {
  margin: 0 0 0 4px;
  flex: 0 0 auto;
}
.comment-delete-button {
  border: 0;
  background: transparent;
  color: #9f3730;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 0;
  cursor: pointer;
}
.comment-delete-button:hover {
  text-decoration: underline;
}
.comment-body {
  padding-right: 2px;
}
.comment-actions,
.comment-edit-form,
.comment-edit-actions,
.comment-edit-details {
  display: none !important;
}
@media (max-width: 1120px) {
  .issue-detail-list-v2 {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }
  .issue-detail-list-v2 .detail-long-label,
  .issue-detail-list-v2 .detail-adaptive-text {
    grid-column: 1 / -1;
  }
}

/* patch 20260605-18: unified date control icon and owner-only history control */
.issue-table .date-control-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: none;
}
.issue-table .editable-date-wrap:hover,
.issue-table .readonly-date:hover {
  background: #f8fbfe;
}
.issue-table .editable-date-wrap:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(31, 78, 120, .12);
}
.issue-table .date-display {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.issue-table .date-css-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1.5px solid #172b3f;
  border-radius: 2px;
  transform: translateY(.5px);
  opacity: .95;
}
.issue-table .date-css-icon::before {
  content: "";
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: 2.5px;
  border-top: 1.5px solid #172b3f;
}
.issue-table .date-css-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 1.5px;
  height: 1.5px;
  background: #172b3f;
  box-shadow: 3.2px 0 0 #172b3f, 0 3px 0 #172b3f, 3.2px 3px 0 #172b3f;
}
.issue-table .date-native-input {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px;
  opacity: 0;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}
.issue-table .date-native-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.issue-table button.date-control-wrap {
  cursor: not-allowed;
}
.issue-table .date-control-wrap.readonly-denied {
  box-shadow: inset 0 0 0 2px rgba(31, 78, 120, .30) !important;
  background: #fff8f6 !important;
}

/* patch 20260605-19: refined date icon and larger detail text height */
.issue-detail-list-v2 .detail-adaptive-text {
  max-height: 1020px;
  max-height: 40lh;
}
.issue-detail-list-v2 .detail-remark-text {
  max-height: 1020px;
  max-height: 40lh;
}
.issue-table .date-css-icon {
  border: 0 !important;
  border-radius: 0 !important;
  width: 13px;
  height: 13px;
  transform: translateY(.4px);
  opacity: .88;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2.45' y='3.65' width='11.1' height='9.85' rx='1.65' stroke='%23172b3f' stroke-width='1.25'/%3E%3Cpath d='M5 2.55v2.55M11 2.55v2.55M2.85 6.45h10.3' stroke='%23172b3f' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M5.1 8.75h1.2M7.45 8.75h1.2M9.8 8.75H11M5.1 11h1.2M7.45 11h1.2' stroke='%23172b3f' stroke-width='1.05' stroke-linecap='round'/%3E%3C/svg%3E");
}
.issue-table .date-css-icon::before,
.issue-table .date-css-icon::after {
  display: none !important;
  content: none !important;
}

/* patch 20260608-01: master access and master change log */
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 12px;
}
.section-head-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.master-log-card {
  margin-top: 18px;
}
.master-log-table th,
.master-log-table td {
  vertical-align: middle;
}
.master-log-table .log-time-col {
  width: 150px;
  white-space: nowrap;
  text-align: center;
}
.master-log-table .log-message-col {
  min-width: 360px;
}
.master-log-table .log-detail-col {
  width: 34%;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .master-log-table .log-time-col,
  .master-log-table .log-detail-col {
    width: auto;
  }
  .master-log-table .log-message-col {
    min-width: 240px;
  }
}

/* patch 20260608-02: master log rollback and heading polish */
.master-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 14px;
}
.master-log-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.master-log-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.master-log-table .log-action-col {
  width: 72px;
  text-align: center;
  white-space: nowrap;
}
.danger-link {
  color: #b42318;
  font-weight: 750;
}
.danger-link:hover {
  color: #7a1b12;
}
.compact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  text-decoration: none;
}
.compact-link:hover {
  background: #fff1f0;
  text-decoration: none;
}
.master-revert-card {
  max-width: 760px;
  margin: 0 auto;
}
.master-revert-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.confirm-main {
  margin: 0 0 16px;
  color: #b42318;
  font-weight: 750;
}
.revert-log-preview {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}
.revert-log-preview strong {
  display: block;
  line-height: 1.55;
}
.revert-log-preview p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.button.danger {
  border-color: #f0b8b1;
  background: #d92d20;
  color: #fff;
}
.button.danger:hover {
  background: #b42318;
}

/* patch 20260608-03: master change log heading spacing */
.master-log-card .master-log-head {
  padding: 18px 24px 14px;
}
.master-log-card .master-log-head h2,
.master-log-card .master-log-head p {
  padding-left: 0;
}
@media (max-width: 700px) {
  .master-log-card .master-log-head {
    padding: 16px 18px 12px;
  }
}

/* patch 20260608-04: issue ownership/delete controls */
.button.danger-outline {
  border-color: #f0b8b1;
  background: #fff;
  color: var(--danger);
}
.button.danger-outline:hover {
  background: #fff0ef;
  color: var(--danger);
}

/* patch 20260608-05: rich issue content editor */
.rich-source-textarea,
textarea[data-rich-text-source] {
  display: none !important;
}
.rich-form-field small {
  display: block;
}
.rich-editor-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}
.rich-toolbar button,
.rich-toolbar select {
  min-height: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(203, 213, 225, .85);
  background: #fff;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}
.rich-toolbar button {
  padding: 4px 9px;
}
.rich-toolbar select {
  width: auto;
  padding: 3px 24px 3px 8px;
}
.rich-toolbar button:hover,
.rich-toolbar select:hover {
  background: #eef5fb;
}
.rich-editor-area {
  min-height: 300px;
  max-height: min(760px, 62vh);
  overflow: auto;
  padding: 16px 18px;
  line-height: 1.65;
  font-size: 14px;
  outline: none;
  white-space: pre-wrap;
}
.rich-editor-area:focus {
  box-shadow: inset 0 0 0 2px rgba(31, 78, 121, .12);
}
.rich-editor-state {
  min-height: 22px;
  padding: 3px 10px 5px;
  border-top: 1px solid rgba(216, 222, 233, .6);
  color: var(--muted);
  font-size: 12px;
  background: #fbfdff;
}
.rich-editor-area img,
.rich-content-view img,
.detail-rich-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(216, 222, 233, .85);
}
.rich-editor-area table,
.rich-content-view table,
.detail-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
.rich-editor-area td,
.rich-editor-area th,
.rich-content-view td,
.rich-content-view th,
.detail-rich-text td,
.detail-rich-text th {
  border: 1px solid rgba(203, 213, 225, .95);
  padding: 7px 8px;
  vertical-align: top;
}
.rich-editor-area th,
.rich-content-view th,
.detail-rich-text th {
  background: #f1f5f9;
  font-weight: 800;
}
.rich-editor-area p,
.detail-rich-text p,
.rich-content-view p {
  margin: 0 0 8px;
}
.rich-editor-area h3,
.detail-rich-text h3,
.rich-content-view h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}
.rich-editor-area h4,
.detail-rich-text h4,
.rich-content-view h4 {
  margin: 10px 0 6px;
  font-size: 16px;
}
.detail-rich-text {
  white-space: normal !important;
  max-height: min(1020px, 40lh);
  overflow: auto;
  padding-right: 6px;
}
.text-modal-input[readonly] {
  cursor: default;
}
#issue-text-modal-edit-link[hidden] {
  display: none;
}
@media (max-width: 720px) {
  .rich-editor-area {
    min-height: 240px;
    max-height: 60vh;
    padding: 13px;
  }
  .rich-toolbar {
    gap: 5px;
  }
  .rich-toolbar button,
  .rich-toolbar select {
    font-size: 12px;
  }
}


/* patch 20260608-06: rich editor image resize */
.rich-editor-shell {
  position: relative;
}
.rich-editor-area img.rich-image-selected,
.rich-editor-area img[data-resizing="1"] {
  outline: 2px solid rgba(31, 78, 121, .55);
  outline-offset: 2px;
}
.rich-image-resize-handle {
  position: absolute;
  z-index: 20;
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
  cursor: nwse-resize;
  touch-action: none;
}
.rich-image-resize-handle.is-visible {
  display: block;
}
.rich-toolbar select[data-rich-image-size] {
  min-width: 92px;
}
.rich-toolbar select[data-rich-image-size]:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: default;
}
.detail-rich-text img[width],
.rich-content-view img[width],
.rich-editor-area img[width] {
  max-width: 100%;
  height: auto;
}
body.rich-image-resizing {
  cursor: nwse-resize;
  user-select: none;
}

/* patch 20260608-07: rich content spacing and preview modal */
.text-modal-rich {
  flex: 1 1 auto;
  min-height: 360px;
  max-height: min(760px, calc(100vh - 170px));
  overflow: auto;
  padding: 20px 22px;
  background: #fff;
  line-height: 1.72;
  font-size: 14.5px;
  color: var(--text);
}
.text-modal-rich[hidden] {
  display: none;
}
.text-modal-card:has(.text-modal-rich:not([hidden])) {
  width: min(1120px, calc(100vw - 48px));
}
.rich-editor-area,
.rich-content-view,
.detail-rich-text {
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rich-editor-area p,
.detail-rich-text p,
.rich-content-view p,
.rich-editor-area div,
.detail-rich-text div,
.rich-content-view div {
  margin: 0 0 10px;
}
.rich-editor-area p:last-child,
.detail-rich-text p:last-child,
.rich-content-view p:last-child,
.rich-editor-area div:last-child,
.detail-rich-text div:last-child,
.rich-content-view div:last-child {
  margin-bottom: 0;
}
.rich-editor-area ul,
.rich-editor-area ol,
.detail-rich-text ul,
.detail-rich-text ol,
.rich-content-view ul,
.rich-content-view ol {
  margin: 8px 0 12px 22px;
  padding-left: 18px;
}
.rich-editor-area li,
.detail-rich-text li,
.rich-content-view li {
  margin: 4px 0;
}
.rich-editor-area blockquote,
.detail-rich-text blockquote,
.rich-content-view blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 4px solid rgba(31, 78, 121, .25);
  background: #f8fbff;
}
.rich-editor-area h3,
.detail-rich-text h3,
.rich-content-view h3 {
  display: block;
  margin: 18px 0 10px;
  line-height: 1.45;
}
.rich-editor-area h4,
.detail-rich-text h4,
.rich-content-view h4 {
  display: block;
  margin: 14px 0 8px;
  line-height: 1.45;
}
.rich-editor-area br,
.detail-rich-text br,
.rich-content-view br {
  display: block;
  content: "";
  min-height: .35em;
}
@media (max-width: 720px) {
  .text-modal-rich {
    min-height: 300px;
    max-height: calc(100vh - 150px);
    padding: 16px;
  }
}
.text-modal-card {
  width: min(1120px, calc(100vw - 48px));
}

/* patch 20260608-07: preserve rich-content paragraph spacing and pasted line breaks */
.detail-rich-text,
.rich-content-view,
.text-modal-rich {
  white-space: pre-wrap !important;
}
.detail-rich-text p,
.rich-content-view p,
.text-modal-rich p,
.detail-rich-text div,
.rich-content-view div,
.text-modal-rich div {
  margin-top: 0;
  margin-bottom: .82em;
}
.detail-rich-text p:last-child,
.rich-content-view p:last-child,
.text-modal-rich p:last-child,
.detail-rich-text div:last-child,
.rich-content-view div:last-child,
.text-modal-rich div:last-child {
  margin-bottom: 0;
}
.detail-rich-text h3,
.rich-content-view h3,
.text-modal-rich h3 {
  margin: 1.2em 0 .55em;
  line-height: 1.45;
}
.detail-rich-text h4,
.rich-content-view h4,
.text-modal-rich h4 {
  margin: 1em 0 .45em;
  line-height: 1.45;
}
.detail-rich-text img,
.rich-content-view img,
.text-modal-rich img {
  white-space: normal;
}

/* patch 20260608-09: rich editing from issue list modal */
.text-modal-editor-shell[hidden] {
  display: none !important;
}
.text-modal-editor-shell {
  flex: 1 1 auto;
  min-height: min(640px, calc(100vh - 230px));
}
.text-modal-editor-shell .rich-editor-area {
  min-height: min(520px, calc(100vh - 305px));
  max-height: calc(100vh - 290px);
}
.text-modal-card:has(.text-modal-editor-shell:not([hidden])) {
  width: min(1240px, calc(100vw - 48px));
}
.rich-toolbar button.is-active,
.rich-toolbar button[aria-pressed="true"] {
  border-color: rgba(31, 78, 121, .45);
  background: rgba(31, 78, 121, .10);
  color: var(--accent);
}
.rich-format-painter-on .rich-editor-area {
  cursor: crosshair;
}
@media (max-width: 720px) {
  .text-modal-editor-shell {
    min-height: calc(100vh - 190px);
  }
  .text-modal-editor-shell .rich-editor-area {
    min-height: calc(100vh - 300px);
    max-height: calc(100vh - 280px);
  }
}

/* patch 20260608-10: icon toolbar, format tools, and full-height content modal */
.rich-toolbar button.rich-icon-btn {
  width: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rich-toolbar button.rich-icon-btn strong,
.rich-toolbar button.rich-icon-btn em,
.rich-toolbar button.rich-icon-btn u {
  font-size: 13px;
  line-height: 1;
}
.rich-align-icon,
.rich-list-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 17px;
  height: 15px;
}
.rich-align-icon i,
.rich-list-icon i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: .9;
}
.rich-align-left i:nth-child(1) { width: 15px; align-self: flex-start; }
.rich-align-left i:nth-child(2) { width: 10px; align-self: flex-start; }
.rich-align-left i:nth-child(3) { width: 14px; align-self: flex-start; }
.rich-align-center i:nth-child(1) { width: 15px; align-self: center; }
.rich-align-center i:nth-child(2) { width: 10px; align-self: center; }
.rich-align-center i:nth-child(3) { width: 14px; align-self: center; }
.rich-align-right i:nth-child(1) { width: 15px; align-self: flex-end; }
.rich-align-right i:nth-child(2) { width: 10px; align-self: flex-end; }
.rich-align-right i:nth-child(3) { width: 14px; align-self: flex-end; }
.rich-align-justify i { width: 16px; align-self: stretch; }
.rich-list-icon {
  position: relative;
  padding-left: 5px;
}
.rich-list-bullet i {
  width: 12px;
  margin-left: 5px;
}
.rich-list-bullet i::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 3px;
  margin-top: -1px;
  border-radius: 50%;
  background: currentColor;
}
.rich-list-number {
  gap: 1px;
  padding-left: 0;
}
.rich-list-number i {
  position: relative;
  width: 16px;
  height: 4px;
  padding-left: 7px;
  background: transparent;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  line-height: 4px;
}
.rich-list-number i::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 0;
  top: 1px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.rich-table-icon,
.rich-image-icon,
.rich-painter-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  color: currentColor;
}
.rich-table-icon {
  border: 1.7px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat;
}
.rich-image-icon {
  border: 1.7px solid currentColor;
  border-radius: 4px;
}
.rich-image-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.rich-image-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 7px;
  clip-path: polygon(0 100%, 35% 35%, 55% 62%, 72% 25%, 100% 100%);
  background: currentColor;
}
.rich-painter-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 5px;
  height: 12px;
  border-radius: 3px 3px 2px 2px;
  background: currentColor;
  transform: rotate(38deg);
}
.rich-painter-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 9px;
  height: 5px;
  border-radius: 2px 2px 5px 5px;
  border: 1.8px solid currentColor;
  border-top-width: 3px;
  transform: rotate(38deg);
}
.text-modal-card:has(.text-modal-editor-shell:not([hidden])) {
  width: min(1280px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
}
.text-modal-card:has(.text-modal-editor-shell:not([hidden])) .text-modal-head,
.text-modal-card:has(.text-modal-editor-shell:not([hidden])) .text-modal-actions {
  flex: 0 0 auto;
}
.text-modal-editor-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}
.text-modal-editor-shell .rich-toolbar {
  flex: 0 0 auto;
}
.text-modal-editor-shell .rich-editor-area {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.text-modal-editor-shell .rich-editor-state {
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .text-modal-backdrop {
    padding: 10px;
  }
  .text-modal-card:has(.text-modal-editor-shell:not([hidden])) {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
  .rich-toolbar button.rich-icon-btn {
    width: 30px;
    min-width: 30px;
  }
}

/* patch 20260608-11: simplify rich editor tools and slightly tighten spacing */
.rich-toolbar [data-rich-format-copy],
.rich-toolbar [data-rich-command="insertUnorderedList"],
.rich-toolbar [data-rich-command="insertOrderedList"],
.rich-toolbar select[data-rich-image-size] {
  display: none !important;
}
.rich-editor-area,
.rich-content-view,
.detail-rich-text,
.text-modal-rich {
  line-height: 1.58 !important;
}
.rich-editor-area p,
.detail-rich-text p,
.rich-content-view p,
.text-modal-rich p,
.rich-editor-area div,
.detail-rich-text div,
.rich-content-view div,
.text-modal-rich div {
  margin-top: 0 !important;
  margin-bottom: .55em !important;
}
.rich-editor-area p:last-child,
.detail-rich-text p:last-child,
.rich-content-view p:last-child,
.text-modal-rich p:last-child,
.rich-editor-area div:last-child,
.detail-rich-text div:last-child,
.rich-content-view div:last-child,
.text-modal-rich div:last-child {
  margin-bottom: 0 !important;
}
.rich-editor-area h3,
.detail-rich-text h3,
.rich-content-view h3,
.text-modal-rich h3 {
  margin: .95em 0 .4em !important;
  line-height: 1.34 !important;
}
.rich-editor-area h4,
.detail-rich-text h4,
.rich-content-view h4,
.text-modal-rich h4 {
  margin: .8em 0 .35em !important;
  line-height: 1.34 !important;
}
.rich-editor-area ul,
.rich-editor-area ol,
.detail-rich-text ul,
.detail-rich-text ol,
.rich-content-view ul,
.rich-content-view ol,
.text-modal-rich ul,
.text-modal-rich ol {
  list-style: none !important;
  margin: 0 0 .55em 0 !important;
  padding-left: 0 !important;
}
.rich-editor-area li,
.detail-rich-text li,
.rich-content-view li,
.text-modal-rich li {
  margin: 0 0 .35em 0 !important;
}

/* patch 20260609-01: Tiptap editor integration */
.rich-editor-area {
  padding: 0 !important;
  white-space: normal !important;
  line-height: normal !important;
}
.rich-editor-area .ProseMirror {
  min-height: 300px;
  max-height: min(760px, 62vh);
  overflow: auto;
  padding: 16px 18px;
  outline: none;
  line-height: 1.52;
  font-size: 14px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rich-editor-area .ProseMirror:focus {
  box-shadow: inset 0 0 0 2px rgba(31, 78, 121, .12);
}
.rich-editor-area .ProseMirror p,
.rich-content-view p,
.detail-rich-text p,
.text-modal-rich p {
  margin: 0 0 .5em !important;
}
.rich-editor-area .ProseMirror p:last-child,
.rich-content-view p:last-child,
.detail-rich-text p:last-child,
.text-modal-rich p:last-child {
  margin-bottom: 0 !important;
}
.rich-editor-area .ProseMirror h3,
.rich-content-view h3,
.detail-rich-text h3,
.text-modal-rich h3 {
  margin: .9em 0 .35em !important;
  line-height: 1.3 !important;
}
.rich-editor-area .ProseMirror h4,
.rich-content-view h4,
.detail-rich-text h4,
.text-modal-rich h4 {
  margin: .75em 0 .3em !important;
  line-height: 1.3 !important;
}
.rich-editor-area .ProseMirror ul,
.rich-editor-area .ProseMirror ol,
.rich-content-view ul,
.rich-content-view ol,
.detail-rich-text ul,
.detail-rich-text ol,
.text-modal-rich ul,
.text-modal-rich ol {
  list-style: none !important;
  margin: 0 0 .5em 0 !important;
  padding-left: 0 !important;
}
.rich-editor-area .ProseMirror img,
.rich-content-view img,
.detail-rich-text img,
.text-modal-rich img {
  display: block;
  max-width: 100%;
  height: auto;
}
.rich-editor-area .ProseMirror table,
.rich-content-view table,
.detail-rich-text table,
.text-modal-rich table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 10px 0;
}
.rich-editor-area .ProseMirror td,
.rich-editor-area .ProseMirror th,
.rich-content-view td,
.rich-content-view th,
.detail-rich-text td,
.detail-rich-text th,
.text-modal-rich td,
.text-modal-rich th {
  border: 1px solid rgba(203, 213, 225, .95);
  padding: 7px 8px;
  vertical-align: top;
  min-width: 36px;
}
.rich-editor-area .ProseMirror th,
.rich-content-view th,
.detail-rich-text th,
.text-modal-rich th {
  background: #f1f5f9;
  font-weight: 800;
}
.rich-editor-area .ProseMirror .selectedCell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 78, 121, .12);
  pointer-events: none;
}
.rich-editor-area .ProseMirror .selectedCell {
  position: relative;
}
.rich-editor-area .ProseMirror .column-resize-handle {
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgba(31, 78, 121, .5);
  pointer-events: none;
}
.resize-cursor {
  cursor: col-resize;
}
.rich-editor-area .ProseMirror .ProseMirror-selectednode,
.rich-editor-area .ProseMirror img.ProseMirror-selectednode {
  outline: 2px solid rgba(31, 78, 121, .55);
  outline-offset: 3px;
}
.rich-editor-area [data-resize-handle] {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
}
.rich-table-insert-panel,
.rich-table-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(216, 222, 233, .85);
  background: #fbfdff;
}
.rich-table-insert-panel[hidden],
.rich-table-tools[hidden] {
  display: none !important;
}
.rich-table-insert-panel label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.rich-table-insert-panel input[type="number"] {
  width: 54px;
  height: 28px;
  padding: 3px 6px;
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 8px;
  font-size: 12px;
}
.rich-check-label input {
  margin: 0;
}
.rich-mini-btn {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.rich-mini-btn:hover {
  background: #eef5fb;
}
.rich-mini-btn.danger {
  color: var(--danger);
}
.rich-tool-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(203, 213, 225, .9);
}
.rich-toolbar button.active {
  border-color: rgba(31, 78, 121, .45);
  background: rgba(31, 78, 121, .10);
  color: var(--accent);
}
.text-modal-editor-shell .rich-editor-area .ProseMirror {
  flex: 1 1 auto;
  min-height: calc(100vh - 360px);
  max-height: none;
}
@media (max-width: 720px) {
  .rich-editor-area .ProseMirror {
    min-height: 240px;
    max-height: 60vh;
    padding: 13px;
  }
  .text-modal-editor-shell .rich-editor-area .ProseMirror {
    min-height: calc(100vh - 310px);
  }
}
.rich-content-view,
.detail-rich-text,
.text-modal-rich {
  white-space: normal !important;
}

/* patch 20260609-02: practical Tiptap toolbar and list/task/link tools */
.rich-toolbar {
  gap: 5px !important;
  padding: 7px 8px !important;
  background: linear-gradient(180deg, #f9fcff 0%, #f4f8fd 100%) !important;
}
.rich-toolbar-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 1px;
  background: rgba(203, 213, 225, .85);
}
.rich-toolbar button.rich-icon-btn {
  border-color: rgba(197, 207, 222, .92) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .045);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.rich-toolbar button.rich-icon-btn:hover:not(:disabled) {
  background: #eef6ff !important;
  border-color: rgba(31, 78, 121, .32) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.rich-toolbar button.rich-icon-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.rich-toolbar button.rich-icon-btn:disabled {
  opacity: .38;
  cursor: default;
  box-shadow: none;
}
.rich-toolbar button.rich-icon-btn.active,
.rich-toolbar button.rich-icon-btn[aria-pressed="true"] {
  background: rgba(31, 78, 121, .11) !important;
  border-color: rgba(31, 78, 121, .42) !important;
  color: var(--accent) !important;
}
.rich-svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rich-svg circle {
  fill: currentColor;
  stroke: none;
}
.rich-text-icon strong,
.rich-text-icon em,
.rich-text-icon u {
  font-family: var(--font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.rich-editor-area .ProseMirror a,
.rich-content-view a,
.detail-rich-text a,
.text-modal-rich a {
  color: #1f5f99;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rich-editor-area .ProseMirror ul:not([data-type="taskList"]),
.rich-content-view ul:not([data-type="taskList"]),
.detail-rich-text ul:not([data-type="taskList"]),
.text-modal-rich ul:not([data-type="taskList"]) {
  list-style: disc !important;
  margin: .3em 0 .65em 1.35em !important;
  padding-left: 1.05em !important;
}
.rich-editor-area .ProseMirror ul:not([data-type="taskList"]) li,
.rich-content-view ul:not([data-type="taskList"]) li,
.detail-rich-text ul:not([data-type="taskList"]) li,
.text-modal-rich ul:not([data-type="taskList"]) li {
  display: list-item !important;
  margin: .22em 0 !important;
  padding-left: .15em;
}
.rich-editor-area .ProseMirror ul[data-type="taskList"],
.rich-content-view ul[data-type="taskList"],
.detail-rich-text ul[data-type="taskList"],
.text-modal-rich ul[data-type="taskList"] {
  list-style: none !important;
  margin: .35em 0 .7em 0 !important;
  padding-left: 0 !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"],
.rich-content-view li[data-type="taskItem"],
.detail-rich-text li[data-type="taskItem"],
.text-modal-rich li[data-type="taskItem"] {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: .28em 0 !important;
  padding-left: 0 !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > label,
.rich-content-view li[data-type="taskItem"] > label,
.detail-rich-text li[data-type="taskItem"] > label,
.text-modal-rich li[data-type="taskItem"] > label {
  flex: 0 0 auto;
  margin-top: .18em;
  line-height: 1;
  user-select: none;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] input[type="checkbox"],
.rich-content-view li[data-type="taskItem"] input[type="checkbox"],
.detail-rich-text li[data-type="taskItem"] input[type="checkbox"],
.text-modal-rich li[data-type="taskItem"] input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > div,
.rich-content-view li[data-type="taskItem"] > div,
.detail-rich-text li[data-type="taskItem"] > div,
.text-modal-rich li[data-type="taskItem"] > div {
  flex: 1 1 auto;
  min-width: 0;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > div > p,
.rich-content-view li[data-type="taskItem"] > div > p,
.detail-rich-text li[data-type="taskItem"] > div > p,
.text-modal-rich li[data-type="taskItem"] > div > p {
  margin: 0 0 .25em !important;
}

/* patch 20260609-04: checklist, issue title fitting, create attachments, comment replies, PDF view */
.issue-table .inline-title,
.issue-table .inline-static-title,
.issue-table .inline-title-textarea {
  display: block;
  width: 100%;
  min-height: 30px;
  height: 30px;
  line-height: 1.28 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  resize: none;
  word-break: keep-all;
  overflow-wrap: normal;
}
.issue-table .inline-title-textarea {
  padding-top: 6px !important;
  padding-bottom: 4px !important;
}
.issue-table .inline-title.title-fit-1,
.issue-table .inline-static-title.title-fit-1,
.issue-table .inline-title-textarea.title-fit-1 {
  font-size: 11.7px !important;
}
.issue-table .inline-title.title-fit-2,
.issue-table .inline-static-title.title-fit-2,
.issue-table .inline-title-textarea.title-fit-2 {
  font-size: 10.9px !important;
}
.issue-table .inline-title.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  height: auto;
  min-height: 30px;
  max-height: 62px;
  overflow: auto;
}

.create-attachment-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(216, 222, 233, .9);
  border-radius: 14px;
  background: #fbfdff;
}
.create-attachment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.create-attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.create-attachment-grid .span-2 { grid-column: 1 / -1; }
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  font-weight: 700;
  color: var(--text);
}
.inline-check input { margin: 0; }
@media (max-width: 760px) {
  .create-attachment-grid { grid-template-columns: 1fr; }
  .create-attachment-grid .span-2 { grid-column: auto; }
}

.comment-card .comment-form textarea,
.comment-reply-form textarea {
  min-height: 54px;
  max-height: 140px;
  resize: vertical;
}
.comment-card .comment-form { gap: 7px; }
.comment-reply-details {
  display: inline-block;
  margin-left: auto;
  font-size: 12px;
  color: var(--primary);
}
.comment-reply-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.comment-reply-details summary::-webkit-details-marker { display: none; }
.comment-reply-form {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 48px));
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 39, 64, .18);
}
.comment-reply-form button { margin-top: 6px; }
.comment-replies {
  margin-top: 10px;
  padding-left: 18px;
  border-left: 2px solid rgba(31, 78, 121, .12);
}
.comment-item.comment-reply {
  margin-top: 8px;
  padding: 9px 10px;
  background: #fbfdff;
}
.comment-meta { position: relative; }
.comment-body { line-height: 1.48; }

.rich-editor-area .ProseMirror ul[data-type="taskList"],
.rich-content-view ul[data-type="taskList"],
.detail-rich-text ul[data-type="taskList"],
.text-modal-rich ul[data-type="taskList"] {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  list-style: none !important;
  margin: .35em 0 .7em 0 !important;
  padding-left: 0 !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"],
.rich-content-view li[data-type="taskItem"],
.detail-rich-text li[data-type="taskItem"],
.text-modal-rich li[data-type="taskItem"] {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  width: 100%;
  text-align: left !important;
  justify-content: stretch !important;
  margin: .22em 0 !important;
  padding-left: 0 !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > label,
.rich-content-view li[data-type="taskItem"] > label,
.detail-rich-text li[data-type="taskItem"] > label,
.text-modal-rich li[data-type="taskItem"] > label {
  grid-column: 1;
  margin-top: .18em;
  line-height: 1;
  user-select: none;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > div,
.rich-content-view li[data-type="taskItem"] > div,
.detail-rich-text li[data-type="taskItem"] > div,
.text-modal-rich li[data-type="taskItem"] > div {
  grid-column: 2;
  display: block;
  min-width: 0;
  min-height: 1.45em;
  text-align: left !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > div > p,
.rich-content-view li[data-type="taskItem"] > div > p,
.detail-rich-text li[data-type="taskItem"] > div > p,
.text-modal-rich li[data-type="taskItem"] > div > p {
  margin: 0 0 .22em !important;
  text-align: inherit !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] input[type="checkbox"],
.rich-content-view li[data-type="taskItem"] input[type="checkbox"],
.detail-rich-text li[data-type="taskItem"] input[type="checkbox"],
.text-modal-rich li[data-type="taskItem"] input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

/* patch 20260609-06: checklist behavior, title row alignment, issue history visibility polish */
.rich-toolbar button[data-rich-command="undo"],
.rich-toolbar button[data-rich-command="redo"] {
  display: none !important;
}
.rich-editor-area .ProseMirror ul[data-type="taskList"],
.rich-content-view ul[data-type="taskList"],
.detail-rich-text ul[data-type="taskList"],
.text-modal-rich ul[data-type="taskList"] {
  display: block !important;
  width: 100% !important;
  margin: .28em 0 .55em 0 !important;
  padding: 0 !important;
  text-align: left !important;
  list-style: none !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"],
.rich-content-view li[data-type="taskItem"],
.detail-rich-text li[data-type="taskItem"],
.text-modal-rich li[data-type="taskItem"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: .18em 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > label,
.rich-content-view li[data-type="taskItem"] > label,
.detail-rich-text li[data-type="taskItem"] > label,
.text-modal-rich li[data-type="taskItem"] > label {
  flex: 0 0 16px !important;
  width: 16px !important;
  margin: .18em 0 0 0 !important;
  line-height: 1 !important;
  text-align: left !important;
  user-select: none;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > div,
.rich-content-view li[data-type="taskItem"] > div,
.detail-rich-text li[data-type="taskItem"] > div,
.text-modal-rich li[data-type="taskItem"] > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 1.45em !important;
  display: block !important;
  text-align: left !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] > div > p,
.rich-content-view li[data-type="taskItem"] > div > p,
.detail-rich-text li[data-type="taskItem"] > div > p,
.text-modal-rich li[data-type="taskItem"] > div > p {
  margin: 0 !important;
  line-height: 1.42 !important;
  text-align: inherit !important;
}
.rich-editor-area .ProseMirror li[data-type="taskItem"] input[type="checkbox"],
.rich-content-view li[data-type="taskItem"] input[type="checkbox"],
.detail-rich-text li[data-type="taskItem"] input[type="checkbox"],
.text-modal-rich li[data-type="taskItem"] input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  accent-color: var(--accent);
}
.issue-table td.issue-title-col {
  vertical-align: middle !important;
}
.issue-table .inline-title,
.issue-table .inline-static-title,
.issue-table .inline-title-textarea {
  display: flex !important;
  align-items: center !important;
  line-height: 1.32 !important;
}
.issue-table .inline-title.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  align-items: flex-start !important;
  padding-top: 6px !important;
}
.issue-table .inline-title-textarea {
  display: block !important;
  padding-top: 6px !important;
  padding-bottom: 4px !important;
}
.issue-table .inline-static-title {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* patch 20260609-07: compact create-time attachment area */
.create-attachment-panel {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
}
.create-attachment-head {
  margin-bottom: 8px !important;
  line-height: 1.2 !important;
}
.create-attachment-head .muted {
  display: none !important;
}
.create-attachment-grid.compact-create-attachment-grid {
  grid-template-columns: minmax(260px, 1.45fr) 128px 96px minmax(180px, 1fr) !important;
  gap: 8px 10px !important;
  align-items: end !important;
}
.create-attachment-grid.compact-create-attachment-grid .form-field {
  min-width: 0;
}
.create-attachment-grid.compact-create-attachment-grid label {
  margin-bottom: 4px !important;
}
.create-attachment-grid.compact-create-attachment-grid input[type="file"],
.create-attachment-grid.compact-create-attachment-grid select,
.create-attachment-grid.compact-create-attachment-grid input[type="text"] {
  min-height: 34px !important;
  height: 34px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
.create-attachment-final {
  min-width: 90px;
}
.create-attachment-final .field-spacer {
  display: block;
  height: 20px;
  margin: 0 0 4px 0 !important;
}
.attachment-final-check {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 10px;
  background: #fff;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  justify-content: center;
  font-size: 13px;
}
.attachment-final-check input {
  flex: 0 0 auto;
}
@media (max-width: 980px) {
  .create-attachment-grid.compact-create-attachment-grid {
    grid-template-columns: minmax(240px, 1fr) 128px 96px !important;
  }
  .create-attachment-remark {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .create-attachment-grid.compact-create-attachment-grid {
    grid-template-columns: 1fr !important;
  }
  .create-attachment-final .field-spacer {
    display: none;
  }
  .attachment-final-check {
    width: fit-content;
    min-width: 96px;
  }
}

/* patch 20260609-09: unify editable/readonly issue title cell rendering */
.issue-table td.issue-title-col {
  vertical-align: middle !important;
}
.issue-table .inline-title,
.issue-table .inline-static-title,
.issue-table .inline-title-textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
.issue-table .inline-static-title {
  display: flex !important;
  align-items: center !important;
}
.issue-table .inline-title-textarea {
  display: block !important;
  resize: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.issue-table .inline-title-textarea:focus {
  background: rgba(255, 255, 255, .58) !important;
  box-shadow: inset 0 0 0 1px rgba(35, 87, 134, .22) !important;
}
.issue-table .inline-title.title-fit-1,
.issue-table .inline-static-title.title-fit-1,
.issue-table .inline-title-textarea.title-fit-1 {
  font-size: 11.7px !important;
}
.issue-table .inline-title.title-fit-2,
.issue-table .inline-static-title.title-fit-2,
.issue-table .inline-title-textarea.title-fit-2 {
  font-size: 10.9px !important;
}
.issue-table .inline-title.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  height: auto !important;
  min-height: 30px !important;
  max-height: 62px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
.issue-table .inline-static-title.title-fit-wrap {
  display: block !important;
}
.issue-table .inline-title-textarea.title-fit-wrap {
  overflow: auto !important;
}

/* patch 20260609-10: hide title textarea scrollbar in normal display mode */
.issue-table .inline-title-textarea:not(:focus),
.issue-table .inline-title-textarea.title-fit-wrap:not(:focus) {
  overflow: hidden !important;
  scrollbar-width: none !important;
}
.issue-table .inline-title-textarea:not(:focus)::-webkit-scrollbar,
.issue-table .inline-title-textarea.title-fit-wrap:not(:focus)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.issue-table .inline-title-textarea:focus.title-fit-wrap {
  overflow: auto !important;
  scrollbar-width: thin !important;
}

/* patch 20260609-11: mobile issue list layout */
@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    font-size: 14px;
  }
  .topbar {
    padding: 10px 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand a {
    font-size: 18px;
  }
  .brand span {
    font-size: 12px;
  }
  .nav {
    gap: 8px;
    font-size: 12.5px;
  }
  .nav .user {
    border-left: 0;
    padding-left: 0;
  }
  .logout-form button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 12px;
  }
  .container {
    width: 100%;
    margin: 0 auto 36px;
    padding: 14px 12px 32px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 12px;
  }
  .page-head h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  .page-head .muted {
    font-size: 13px;
    line-height: 1.45;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .actions .button,
  .actions button {
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .actions .primary {
    grid-column: 1 / -1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }
  .stat {
    min-height: 82px;
    padding: 12px;
    border-radius: 13px;
  }
  .stat span {
    font-size: 12px;
  }
  .stat strong {
    font-size: 25px;
  }
  .card,
  .auth-card {
    padding: 14px;
    border-radius: 14px;
  }
  .filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .filter-grid .wide {
    grid-column: 1;
  }
  .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .filter-actions button,
  .filter-actions .button {
    width: 100%;
  }

  .issue-list-card {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .issue-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 13px;
  }
  .issue-table thead {
    display: none;
  }
  .issue-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .issue-table tr {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(32, 48, 72, .055);
  }
  .issue-table tr:hover td {
    background: transparent !important;
  }
  .issue-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 39px;
    padding: 8px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(216, 222, 233, .62) !important;
    overflow: visible !important;
    text-align: left !important;
    background: #fff;
  }
  .issue-table td:last-child {
    border-bottom: 0 !important;
  }
  .issue-table td::before {
    flex: 0 0 72px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }
  .issue-table td:nth-child(1)::before { content: "문서번호"; }
  .issue-table td:nth-child(2)::before { content: "국가"; }
  .issue-table td:nth-child(3)::before { content: "프로젝트"; }
  .issue-table td:nth-child(4)::before { content: "아이템"; }
  .issue-table td:nth-child(5)::before { content: "제목"; }
  .issue-table td:nth-child(6)::before { content: "내용"; }
  .issue-table td:nth-child(7)::before { content: "작성자"; }
  .issue-table td:nth-child(8)::before { content: "작성일"; }
  .issue-table td:nth-child(9)::before { content: "이슈상태"; }
  .issue-table td:nth-child(10)::before { content: "문서상태"; }
  .issue-table td:nth-child(11)::before { content: "첨부"; }
  .issue-table td:nth-child(12)::before { content: "비고"; }
  .issue-table td[colspan]::before {
    display: none;
    content: "";
  }
  .issue-table .empty {
    display: block !important;
    padding: 24px !important;
    text-align: center !important;
  }

  .issue-table .doc-col,
  .issue-table .code-col,
  .issue-table .owner-col,
  .issue-table .date-col,
  .issue-table .status-col,
  .issue-table .file-col,
  .issue-table .issue-title-col,
  .issue-table .issue-content-col,
  .issue-table .issue-remark-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .issue-table td > *:not(.inline-save-state):not(.code-popover):not(.attachment-popover) {
    min-width: 0;
  }
  .issue-table .doc-col a {
    flex: 1 1 auto;
    max-width: calc(100% - 82px);
    line-height: 1.35;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .issue-table .code-pop,
  .issue-table .attachment-pop {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
  }
  .issue-table .code-chip {
    min-height: 26px;
    font-size: 13px;
  }
  .issue-table .owner-col {
    text-align: right !important;
  }
  .issue-table .owner-col,
  .issue-table .file-col {
    justify-content: space-between;
  }

  .issue-table .inline-title,
  .issue-table .inline-static-title,
  .issue-table .inline-title-textarea {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 82px) !important;
    height: auto !important;
    min-height: 28px !important;
    max-height: none !important;
    padding: 4px 6px !important;
    line-height: 1.38 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
  }
  .issue-table .inline-static-title {
    display: block !important;
  }
  .issue-table .inline-title-textarea:not(:focus) {
    overflow: hidden !important;
  }
  .issue-table .inline-title-textarea:focus {
    min-height: 64px !important;
    overflow: auto !important;
    text-align: left !important;
  }

  .issue-table .text-preview-button {
    flex: 1 1 auto;
    max-width: calc(100% - 82px);
    min-height: 30px;
    justify-content: flex-end;
    padding: 3px 0;
  }
  .issue-table .text-preview-label {
    text-align: right;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .issue-table .text-open-mark {
    margin-left: 4px;
  }

  .issue-table .date-control-wrap {
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
  }
  .issue-table .date-display {
    font-size: 12.5px;
    white-space: nowrap;
  }
  .issue-table .inline-pill-select,
  .issue-table .readonly-pill {
    max-width: 128px;
    min-width: 74px;
    margin-left: auto;
  }
  .issue-table .file-count-zero,
  .issue-table .attachment-count-chip {
    margin-left: auto;
  }
  .floating-code-popover,
  .floating-attachment-popover {
    max-width: calc(100vw - 24px) !important;
  }

  .text-modal-backdrop {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  .text-modal-card {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .text-modal-head {
    padding: 10px 12px;
  }
  .text-modal-input,
  .text-modal-rich,
  .text-modal-editor-shell {
    min-height: 0 !important;
  }
  .text-modal-actions {
    padding: 10px 12px;
    gap: 6px;
  }
  .text-modal-actions .button,
  .text-modal-actions button {
    min-height: 34px;
    padding: 7px 10px;
  }
}

@media (max-width: 420px) {
  .actions {
    grid-template-columns: 1fr;
  }
  .actions .primary {
    grid-column: auto;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    min-height: 74px;
    padding: 11px;
  }
  .issue-table td::before {
    flex-basis: 68px;
  }
  .issue-table .doc-col a,
  .issue-table .inline-title,
  .issue-table .inline-static-title,
  .issue-table .inline-title-textarea,
  .issue-table .text-preview-button {
    max-width: calc(100% - 78px) !important;
  }
}


/* 2026-06-10: list attachment indicator + form layout polish */
.issue-list-card,
.bordered-table-card {
  overflow: hidden;
}

.issue-table {
  border-top: 1px solid var(--line);
}

.issue-table thead th {
  border-top: 1px solid var(--line);
}

.issue-table tbody tr:first-child td {
  border-top: 0;
}

.content-attachment-inline {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-attachment-chip {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d7e4f4;
  background: #eff5fc;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.content-attachment-chip:hover {
  background: #e4eefb;
}

.issue-form-head,
.issue-form-card {
  max-width: 1180px;
}

.issue-form-card {
  margin-right: auto;
}

.issue-form-card .form-grid {
  gap: 16px;
}

.issue-form-card .create-attachment-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  padding: 14px 16px;
}

.issue-form-card .create-attachment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.issue-form-card .create-attachment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, .8fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.issue-form-card .create-attachment-final {
  min-width: 92px;
}

.issue-form-card .attachment-final-check {
  white-space: nowrap;
}

.issue-form-card .rich-editor-shell {
  min-height: 420px;
}

@media (max-width: 1180px) {
  .issue-form-head,
  .issue-form-card {
    max-width: none;
  }

  .issue-form-card .create-attachment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .issue-form-card .create-attachment-grid {
    grid-template-columns: 1fr;
  }
}


/* 2026-06-10: content popup attachment list + editable title clipping fix */
.content-attachment-inline {
  display: none !important;
}

.text-modal-attachments {
  margin: 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
}

.text-modal-attachments[hidden] {
  display: none !important;
}

.text-modal-attachments-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.text-modal-attachments-list {
  display: grid;
  gap: 7px;
}

.text-modal-attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: #fff;
}

.text-modal-attachment-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.text-modal-attachment-main .attachment-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.text-modal-attachment-main .attachment-file-meta {
  font-size: 12px;
  color: var(--muted);
}

.text-modal-attachment-item .attachment-file-actions {
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
}

.issue-table .inline-title-textarea {
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.34 !important;
  overflow: hidden !important;
}

.issue-table .inline-title-textarea:focus {
  padding: 3px 5px !important;
  border-color: #b9c9dc !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(31, 78, 120, .08) !important;
  overflow: auto !important;
}

.issue-table .inline-title.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.issue-table .inline-title-textarea.title-fit-wrap:focus {
  overflow: auto !important;
}

@media (max-width: 720px) {
  .text-modal-attachment-item {
    grid-template-columns: 1fr;
  }
  .text-modal-attachment-item .attachment-file-actions {
    flex-wrap: wrap;
  }
}

/* 2026-06-10 consolidated UI corrections */
.issue-table .issue-title-col {
  vertical-align: top;
}

.issue-table .issue-title-editable-cell {
  position: relative;
}

.issue-table .inline-title-display,
.issue-table .inline-static-title,
.issue-table .inline-title-textarea {
  width: 100%;
  margin: 0;
  text-align: left;
  line-height: 1.34;
  box-sizing: border-box;
}

.issue-table .inline-title-display {
  display: block;
  padding: 2px 0 1px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: text;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.issue-table .inline-title-textarea {
  display: block;
  min-height: 38px;
  padding: 2px 0 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font: inherit;
  font-weight: 700;
  box-shadow: none !important;
  resize: none;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden !important;
}

.issue-table .inline-title-textarea:focus {
  padding: 3px 5px !important;
  border: 1px solid #b9c9dc !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(31, 78, 120, .08) !important;
  overflow: auto !important;
}

.issue-table .inline-title-display.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  white-space: normal;
  max-height: none !important;
}

.text-modal-attachments {
  position: relative;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.text-modal-attachments-summary {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.text-modal-attachments-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-modal-attachments-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(560px, calc(100vw - 72px));
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.text-modal-attachments-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.text-modal-attachments-list {
  display: grid;
  gap: 10px;
}

.issue-list-card {
  border-top: 1px solid var(--line);
}

.issue-form-head,
.issue-form-card {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.issue-form-card .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.issue-form-card .form-field.span-2,
.issue-form-card .rich-form-field,
.issue-form-card .create-attachment-panel,
.issue-form-card .form-actions {
  grid-column: 1 / -1;
}

.issue-form-card .create-attachment-panel {
  padding: 14px 16px 16px;
}

.issue-form-card .create-attachment-grid {
  grid-template-columns: minmax(0, 2.2fr) minmax(160px, .9fr) minmax(110px, .6fr) minmax(0, 1.5fr);
  gap: 12px;
  align-items: end;
}

.issue-form-card .create-attachment-grid .form-field {
  min-width: 0;
}

.issue-form-card .create-attachment-grid input[type="file"],
.issue-form-card .create-attachment-grid select,
.issue-form-card .create-attachment-grid input[type="text"] {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

.issue-form-card .create-attachment-final {
  min-width: 0;
}

.issue-form-card .attachment-final-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  white-space: nowrap;
}

.issue-form-card .attachment-final-check input {
  margin: 0;
}

@media (max-width: 1180px) {
  .issue-form-card .form-grid {
    grid-template-columns: 1fr;
  }

  .issue-form-card .create-attachment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .text-modal-attachments-popover {
    width: min(92vw, 520px);
    left: 0;
  }

  .issue-form-card .create-attachment-grid {
    grid-template-columns: 1fr;
  }

  .issue-form-card .attachment-final-check {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 2026-06-10 hotfix 05: stabilize title rendering, inline attachment panel, create attachment alignment */
.issue-table td.issue-title-col {
  vertical-align: middle !important;
}

.issue-table .inline-title-display {
  display: none !important;
}

.issue-table .inline-static-title,
.issue-table .inline-title-textarea {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  min-height: 34px !important;
  height: auto !important;
  line-height: 1.34 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: none !important;
  overflow: hidden !important;
}

.issue-table .inline-title-textarea {
  cursor: text;
}

.issue-table .inline-title-textarea:focus {
  padding: 4px 6px !important;
  border: 1px solid #b9c9dc !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(31, 78, 120, .08) !important;
  overflow: auto !important;
}

.text-modal-attachments {
  margin: 12px 0 0 !important;
}

.text-modal-attachments-summary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 720px;
}

.text-modal-attachments-toggle {
  height: 36px;
  padding: 0 14px;
}

.text-modal-attachments-panel {
  width: 100%;
  max-width: 720px;
  max-height: 240px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
}

.issue-form-card .create-attachment-grid,
.create-attachment-grid.compact-create-attachment-grid {
  grid-template-columns: minmax(0, 2.2fr) minmax(140px, .8fr) minmax(110px, auto) minmax(0, 1.5fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

.issue-form-card .create-attachment-grid .form-field,
.create-attachment-grid.compact-create-attachment-grid .form-field {
  min-width: 0;
}

.issue-form-card .create-attachment-grid input[type="file"],
.issue-form-card .create-attachment-grid select,
.issue-form-card .create-attachment-grid input[type="text"],
.create-attachment-grid.compact-create-attachment-grid input[type="file"],
.create-attachment-grid.compact-create-attachment-grid select,
.create-attachment-grid.compact-create-attachment-grid input[type="text"] {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
}

.issue-form-card .create-attachment-final,
.create-attachment-final {
  min-width: 110px !important;
}

.issue-form-card .create-attachment-final .field-spacer,
.create-attachment-final .field-spacer {
  display: block !important;
  height: 22px !important;
  margin: 0 0 4px !important;
}

.issue-form-card .attachment-final-check,
.attachment-final-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 110px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.issue-form-card .attachment-final-check input,
.attachment-final-check input {
  margin: 0 !important;
}

@media (max-width: 980px) {
  .issue-form-card .create-attachment-grid,
  .create-attachment-grid.compact-create-attachment-grid {
    grid-template-columns: minmax(220px, 1fr) 132px 110px !important;
  }

  .issue-form-card .create-attachment-remark,
  .create-attachment-remark {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .issue-form-card .create-attachment-grid,
  .create-attachment-grid.compact-create-attachment-grid {
    grid-template-columns: 1fr !important;
  }

  .issue-form-card .create-attachment-final .field-spacer,
  .create-attachment-final .field-spacer {
    display: none !important;
  }

  .issue-form-card .attachment-final-check,
  .attachment-final-check {
    width: fit-content !important;
  }
}


/* 2026-06-10 hotfix 06: structural title/list popup/create attachment fixes */
.issue-table td {
  vertical-align: middle !important;
}

.issue-table .issue-title-col {
  vertical-align: middle !important;
}

.inline-title-editor {
  width: 100%;
  min-width: 0;
}

.issue-table .inline-title-view,
.issue-table .inline-static-title {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  min-height: 34px !important;
  line-height: 1.34 !important;
  text-align: left !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  cursor: text !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

.issue-table .inline-title-textarea[hidden],
.issue-table .inline-title-view[hidden] {
  display: none !important;
}

.issue-table .inline-title-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 34px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  line-height: 1.34 !important;
  text-align: left !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  overflow: hidden !important;
}

.issue-table .inline-title-textarea:focus {
  padding: 4px 6px !important;
  border: 1px solid #b9c9dc !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(31, 78, 120, .08) !important;
  overflow: auto !important;
}

.issue-table .inline-title-view.title-fit-1,
.issue-table .inline-static-title.title-fit-1,
.issue-table .inline-title-textarea.title-fit-1 {
  font-size: 12.2px !important;
}

.issue-table .inline-title-view.title-fit-2,
.issue-table .inline-static-title.title-fit-2,
.issue-table .inline-title-textarea.title-fit-2 {
  font-size: 11.5px !important;
}

.issue-table .inline-title-view.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  white-space: normal !important;
  max-height: none !important;
  overflow: visible !important;
}

.text-modal-card {
  max-width: min(1120px, calc(100vw - 48px)) !important;
}

.text-modal-rich,
.text-modal-editor-shell,
.text-modal-input {
  min-height: 180px !important;
}

.text-modal-attachments {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.text-modal-attachments-summary {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: auto !important;
  max-width: min(520px, 100%) !important;
  gap: 6px !important;
}

.text-modal-attachments-toggle {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #f7faff !important;
  color: var(--text) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.text-modal-attachments-panel {
  width: min(520px, calc(100vw - 96px)) !important;
  max-height: 190px !important;
  overflow: auto !important;
  padding: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12) !important;
}

.text-modal-attachment-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
}

.text-modal-attachment-item .attachment-file-name {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.text-modal-attachment-item .attachment-file-meta,
.text-modal-attachment-item .attachment-file-actions {
  font-size: 12px !important;
}

.issue-form-head,
.issue-form-card {
  width: min(1360px, calc(100% - 40px)) !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.issue-form-card .create-attachment-panel-v3 {
  margin-top: 18px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fbfcff !important;
}

.issue-form-card .create-attachment-grid-v3 {
  display: grid !important;
  grid-template-columns: minmax(0, 2.2fr) minmax(150px, .8fr) 122px minmax(0, 1.7fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

.issue-form-card .create-attachment-grid-v3 .form-field {
  min-width: 0 !important;
}

.issue-form-card .create-attachment-grid-v3 input[type="file"],
.issue-form-card .create-attachment-grid-v3 select,
.issue-form-card .create-attachment-grid-v3 input[type="text"] {
  height: 42px !important;
  min-height: 42px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.issue-form-card .attachment-final-label {
  display: block !important;
  height: 20px !important;
  line-height: 20px !important;
  margin: 0 0 6px !important;
}

.issue-form-card .attachment-final-check-v3 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 122px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

.issue-form-card .attachment-final-check-v3 input {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 1180px) {
  .issue-form-card .create-attachment-grid-v3 {
    grid-template-columns: minmax(220px, 1fr) 150px 122px !important;
  }
  .issue-form-card .create-attachment-grid-v3 .create-attachment-remark {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 720px) {
  .issue-form-head,
  .issue-form-card {
    width: min(100%, calc(100% - 24px)) !important;
  }
  .issue-form-card .create-attachment-grid-v3 {
    grid-template-columns: 1fr !important;
  }
  .issue-form-card .attachment-final-label {
    display: none !important;
  }
  .issue-form-card .attachment-final-check-v3 {
    width: fit-content !important;
  }
}

/* 2026-06-10 structural cleanup 07: title/modal/form/table final overrides */
.issue-list-card.table-card {
  overflow: hidden !important;
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  padding: 0 !important;
}

.issue-list-card .data-table,
.issue-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.issue-list-card .data-table thead th {
  border-top: 0 !important;
}

.issue-list-card .data-table thead th:first-child {
  border-top-left-radius: 13px !important;
}

.issue-list-card .data-table thead th:last-child {
  border-top-right-radius: 13px !important;
}

.issue-table th,
.issue-table td {
  vertical-align: middle !important;
}

.issue-table td.issue-title-col {
  vertical-align: middle !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.issue-table .inline-title-editor {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.issue-table .inline-title,
.issue-table .inline-title-view,
.issue-table .inline-static-title,
.issue-table .inline-title-textarea {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 34px !important;
  height: auto !important;
  padding: 4px 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.34 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  overflow: hidden !important;
  resize: none !important;
}

.issue-table .inline-title-view {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: text !important;
}

.issue-table .inline-title-textarea:focus {
  padding: 4px 6px !important;
  border: 1px solid #b9c9dc !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(31, 78, 120, .08) !important;
  overflow: auto !important;
}

.issue-table .inline-title.title-fit-1,
.issue-table .inline-title-view.title-fit-1,
.issue-table .inline-static-title.title-fit-1,
.issue-table .inline-title-textarea.title-fit-1 {
  font-size: 11.8px !important;
}

.issue-table .inline-title.title-fit-2,
.issue-table .inline-title-view.title-fit-2,
.issue-table .inline-static-title.title-fit-2,
.issue-table .inline-title-textarea.title-fit-2 {
  font-size: 11.2px !important;
}

.issue-table .inline-title.title-fit-wrap,
.issue-table .inline-title-view.title-fit-wrap,
.issue-table .inline-static-title.title-fit-wrap,
.issue-table .inline-title-textarea.title-fit-wrap {
  white-space: normal !important;
  overflow: hidden !important;
  max-height: none !important;
}

.text-modal-card {
  max-width: min(1120px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 56px) !important;
}

.text-modal-rich {
  min-height: 140px !important;
  max-height: 56vh !important;
  overflow: auto !important;
}

.text-modal-editor-shell {
  min-height: 220px !important;
  max-height: 66vh !important;
  overflow: hidden !important;
}

.text-modal-editor-shell .rich-editor-area {
  min-height: 180px !important;
  max-height: 52vh !important;
  overflow: auto !important;
}

.text-modal-editor-shell .ProseMirror {
  min-height: 170px !important;
}

.text-modal-input {
  min-height: 120px !important;
  max-height: 48vh !important;
  overflow: auto !important;
}

.text-modal-attachments {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.text-modal-attachments-summary {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  max-width: min(460px, 100%) !important;
  gap: 6px !important;
}

.text-modal-attachments-toggle {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #f7faff !important;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.text-modal-attachments-panel {
  width: min(460px, calc(100vw - 96px)) !important;
  max-height: 180px !important;
  overflow: auto !important;
  padding: 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12) !important;
}

.text-modal-attachments-title {
  margin: 0 0 6px !important;
  font-size: 12px !important;
}

.text-modal-attachments-list {
  display: grid !important;
  gap: 6px !important;
}

.text-modal-attachment-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
  align-items: center !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
}

.text-modal-attachment-item .attachment-file-name {
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}

.text-modal-attachment-item .attachment-file-meta,
.text-modal-attachment-item .attachment-file-actions {
  font-size: 11.5px !important;
}

.issue-form-head,
.issue-form-card {
  width: min(1360px, calc(100% - 40px)) !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.issue-form-card.narrow-form {
  max-width: 1360px !important;
}

.issue-form-card .create-attachment-panel-v7 {
  margin-top: 18px !important;
  padding: 14px 16px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fbfcff !important;
}

.issue-form-card .create-attachment-grid-v7 {
  display: grid !important;
  grid-template-columns: minmax(260px, 2.4fr) minmax(150px, .8fr) 96px minmax(260px, 1.7fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

.issue-form-card .create-attachment-grid-v7 > div {
  min-width: 0 !important;
}

.issue-form-card .create-attachment-grid-v7 label:not(.attachment-final-check-v7) {
  display: block !important;
  margin: 0 0 6px !important;
  height: 18px !important;
  line-height: 18px !important;
}

.issue-form-card .create-attachment-grid-v7 input[type="file"],
.issue-form-card .create-attachment-grid-v7 select,
.issue-form-card .create-attachment-grid-v7 input[type="text"] {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
}

.issue-form-card .create-attachment-final-v7 {
  padding-top: 24px !important;
}

.issue-form-card .attachment-final-check-v7 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 96px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.issue-form-card .attachment-final-check-v7 input {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 1180px) {
  .issue-form-card .create-attachment-grid-v7 {
    grid-template-columns: minmax(220px, 1fr) 150px 96px !important;
  }
  .issue-form-card .create-attachment-remark-v7 {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 720px) {
  .issue-form-head,
  .issue-form-card {
    width: min(100%, calc(100% - 24px)) !important;
  }
  .issue-form-card .create-attachment-grid-v7 {
    grid-template-columns: 1fr !important;
  }
  .issue-form-card .create-attachment-final-v7 {
    padding-top: 0 !important;
  }
  .issue-form-card .attachment-final-check-v7 {
    width: fit-content !important;
  }
}
