
  @page {
    size: A4;
    margin: 2cm 2cm;
  }
  * { box-sizing: border-box; }
  body {
    font-family: "Times New Roman", Times, serif;
    font-size: 11.5pt;
    color: #000;
    max-width: 800px;
    margin: 20px auto;
    padding: 24px 40px;
    background: #fff;
    line-height: 1.35;
  }
  .toolbar {
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: right;
  }
  .toolbar button {
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 8px 16px;
    margin-left: 8px;
    border: none;
    border-radius: 5px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
  }
  .toolbar button:hover { background: #1d4ed8; }

  .kop {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 1px;
  }
  .kop .logo {
    width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .kop .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .kop-text {
    font-family: "Times New Roman", Times, serif;
    text-align: center;
    flex: 1;
  }
  .kop-text .k1 { font-family: inherit; font-size: 12pt; font-weight: bold; letter-spacing: 0.3px; }
  .kop-text .k2 { font-family: inherit; font-size: 14pt; font-weight: bold; letter-spacing: 0.3px; }
  .kop-text .k3 { font-family: inherit; font-size: 14pt; font-weight: bold; letter-spacing: 0.3px; }
  .kop-text .addr { font-family: inherit; font-size: 9pt; margin-top: 3px; font-weight: normal; }

  .double-line {
    border-bottom: 4px solid #000;
    margin-bottom: 10px;
  }

  h2.title {
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
    margin: 4px 0 0 0;
    text-transform: uppercase;
  }
  p.subtitle {
    text-align: center;
    font-weight: bold;
    margin: 2px 0 0 0;
  }
  p.nomor {
    text-align: center;
    font-weight: bold;
    margin: 3px 0 12px 0;
  }
  p.nomor span[contenteditable] {
    display: inline-block;
    text-align: left;
  }

  .intro { margin-bottom: 8px; }

  table.data {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 6px 24px;
    width: calc(100% - 24px);
  }
  table.data td {
    padding: 1px 4px;
    vertical-align: top;
  }
  table.data td.label {
    width: 150px;
    white-space: nowrap;
  }
  table.data td.colon {
    width: 15px;
  }
  table.data td.value[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #aaa;
    font-style: italic;
  }

  .pihak-label {
    margin: 2px 0 10px 0;
  }

  .paragraf {
    text-align: justify;
    margin: 10px 0;
  }

  .closing {
    margin: 14px 0 20px 0;
  }

  .tempat-tanggal {
    text-align: left;
    margin: 0 0 6px 68%;
  }

  .ttd-section {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  .ttd-block {
    width: 50%;
  }
  .ttd-block.kanan {
    text-align: left;
  }
  .ttd-block .jabatan-line {
    min-height: 20px;
  }
  .ttd-space {
    height: 60px;
  }
  .ttd-block .nama-ttd {
    font-weight: bold;
    text-decoration: underline;
    min-height: 20px;
  }
  .ttd-block .nip-ttd {
    min-height: 20px;
  }

  [contenteditable="true"] {
    outline: none;
    cursor: text;
  }
  [contenteditable="true"][data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #aaa;
    font-style: italic;
  }
  [contenteditable="true"]:hover {
    background: #fffbea;
  }
  [contenteditable="true"]:focus {
    background: #fff3c4;
  }

  @media print {
    body {
      margin: 0 auto;
      padding: 0;
    }
    .toolbar { display: none !important; }
    [contenteditable="true"]:hover,
    [contenteditable="true"]:focus {
      background: transparent;
    }
  }