body.modal-open { overflow: hidden; }
    .modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      width: 100vw; height: 100vh;
      background: rgba(0,0,0,0.3);
      backdrop-filter: blur(4px);
      display: none; align-items: center; justify-content: center;
      z-index: 9999;
    }
    .modal-overlay.active { display: flex; }
    .modal-content {
      background: #fff; width: 90vw; max-width: 1200px;
      border-radius: 18px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
      padding: 0; position: relative; font-family: Arial, sans-serif;
      border: 2px solid #033249; overflow: hidden;
    }
    .modal-header {
        position: relative;
        background: #033249;
        color: #fff;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 8px 16px;
        font-size: 18px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        min-height: 40px;
    }
    .modal-close {
        position: absolute;
        top: 8px;
        right: 16px;
        background: transparent;
        border: none;
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
        margin: 0;
        padding: 0;
        line-height: 1;
    }
    .rwd-table.modal-table tbody td {
        text-align: center;
    }
    .modal-status-table tbody td {
      text-align: center; 
    }
    .rwd-table.modal-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 0;
      table-layout: fixed;
    }
  .rwd-table.modal-table th, .rwd-table.modal-table td {
    border: 1px solid #bdbdbd;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
  }
  .rwd-table.modal-table th {
    background: #ff8038;
    color: #fff;
    font-weight: bold;
    text-align: center;
  }
    .modal-section { padding: 12px 18px; }
    .modal-green-row {
      background: #7fffa1; font-weight: bold; border: 1px solid #bdbdbd;
      display: flex; gap: 8px; margin-bottom: 8px; padding: 6px 0;
      border-radius: 4px; justify-content: space-between;
    }
    .modal-green-row > div { flex: 1; padding-left: 12px; }
    .modal-info-table, .modal-status-table {
      width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 15px;
    }
    .modal-info-table td, .modal-status-table td, .modal-status-table th {
      border: 1px solid #bdbdbd; padding: 6px 10px; vertical-align: top;
    }
    .modal-info-table .label { font-weight: bold; width: 25%; }
    .modal-status-table th {
      background: #ff8038; color: #fff; font-weight: bold; text-align: center;
    }
    .modal-status-history-title {
      font-size: 22px; font-weight: bold; margin: 18px 0 8px 0; color: #232b38;
    }
    .modal-footer {
      display: flex; justify-content: flex-end; gap: 12px;
      padding: 12px 18px 18px 18px; background: #f5f5f5;
      border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
    }
    .modal-btn {
      padding: 8px 24px; background: #ff8038; color: #fff;
      border: none; border-radius: 4px; cursor: pointer; font-size: 1rem;
    }
    .modal-btn.close { background: #bdbdbd; color: #232b38; }
    @media (max-width: 900px) {
      .modal-content { width: 99vw; max-width: 99vw; border-radius: 8px; }
      .modal-section, .modal-footer { padding: 8px; }
      .modal-status-history-title { font-size: 18px; }
    }
    .modal-section {
        max-height: 70vh;
        overflow-y: auto;
    }