.pm-wrap{box-sizing:border-box;width:100%;margin:18px auto;padding:30px;background:#fff;border-radius:12px;box-shadow:0 2px 22px rgba(0,0,0,.055);color:#101828;font-family:inherit}.pm-wrap *{box-sizing:border-box}.pm-main-tabs,.pm-sub-tabs{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 26px}.pm-tab,.pm-sub-tab{border:1px solid #242424;border-radius:10px;background:#fff;color:#111827;padding:15px 24px;min-width:120px;cursor:pointer;font:inherit}.pm-tab.is-active,.pm-sub-tab.is-active{background:#1746ad;border-color:#1746ad;color:#fff}.pm-tab-panel[hidden],.pm-sub-panel[hidden],.pm-company-docs[hidden]{display:none!important}.pm-sub-tabs{gap:10px;margin:0 0 20px}.pm-sub-tab{min-width:100px;padding:11px 18px}.pm-company-list{border:1px solid #e5e7eb;border-radius:3px;overflow:hidden}.pm-company{border-bottom:1px solid #e5e7eb}.pm-company:last-child{border-bottom:0}.pm-company-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px}.pm-company-name{font-weight:500}.pm-details,.pm-action{display:inline-block;background:#1746ad;color:#fff!important;border:0;border-radius:4px;padding:8px 14px;text-decoration:none!important;cursor:pointer;font:inherit;font-size:14px}.pm-company-docs{padding:0 12px 12px}.pm-table-title{padding:22px 16px;background:#f0f0f0;text-align:center;font-size:17px}.pm-table-scroll{width:100%;overflow-x:auto}.pm-table{width:100%;border-collapse:collapse;margin:0;font-size:14px}.pm-table th,.pm-table td{border:1px solid #e5e7eb;padding:12px 14px;text-align:left;vertical-align:middle}.pm-table thead th{background:#e4edff;font-weight:600;color:#10213e}.pm-table td:first-child{white-space:nowrap}.pm-icon-link{display:inline-flex;align-items:center;justify-content:center;color:#1746ad;text-decoration:none;font-size:20px;min-width:26px}.pm-empty,.pm-no-results{padding:18px;color:#596579}.pm-empty{background:#f7f8fa;border-radius:4px}.pm-list-view{padding:30px 40px}.pm-list-view .pm-table-title{border-radius:3px 3px 0 0}.pm-list-view .pm-table td:nth-child(3),.pm-list-view .pm-table td:nth-child(4),.pm-list-view .pm-table th:nth-child(3),.pm-list-view .pm-table th:nth-child(4){text-align:center}.pm-tabs-view .pm-tab-panel{min-width:0}@media(max-width:640px){.pm-wrap{padding:14px;border-radius:7px}.pm-main-tabs{gap:8px;margin-bottom:18px}.pm-tab{flex:1 1 calc(50% - 8px);min-width:0;padding:11px 9px;font-size:14px}.pm-sub-tab{padding:9px 12px;min-width:0}.pm-company-row{align-items:flex-start;padding:12px;flex-direction:column}.pm-list-view{padding:14px}.pm-table th,.pm-table td{padding:9px 8px;font-size:13px}.pm-table{min-width:520px}.pm-company-docs .pm-table{min-width:420px}}.pm-banner{display:block;width:100%;height:auto;max-height:300px;object-fit:cover;border-radius:12px;margin:0 0 26px}

/* Keep the first and last child-category tabs aligned to opposite ends. */
.pm-tabs-view .pm-sub-tabs{justify-content:left;width:100%;}
.pm-tabs-view .pm-sub-tab{flex:0 1 auto;}

/* Media-specific controls and accessible image/video preview popup. */
.pm-audio-player{display:block;width:100%;max-width:360px;min-width:180px;height:40px}
.pm-media-popup{font-family:inherit}
.pm-media-modal{display:none;position:fixed;z-index:999999;inset:0;align-items:center;justify-content:center;padding:24px;background:rgba(8,16,32,.82)}
.pm-media-modal.is-open{display:flex}
.pm-media-modal__panel{position:relative;width:min(100%,1000px);max-height:90vh;overflow:auto;padding:24px;background:#fff;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.35)}
.pm-media-modal__close{position:sticky;top:0;float:right;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:#1746ad;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.pm-media-modal__title{margin:0 52px 16px 0;font-size:18px;color:#10213e}
.pm-media-modal__content img,.pm-media-modal__content video{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;margin:0 auto;object-fit:contain}
.pm-modal-open{overflow:hidden}
@media(max-width:640px){.pm-media-modal{padding:12px}.pm-media-modal__panel{padding:16px}.pm-audio-player{max-width:260px}}

.pm-audio-player[hidden]{display:none!important}

/* Mobile-friendly document rows: keep the title first and move actions beneath it. */
@media (max-width: 640px) {
  .pm-table-scroll { overflow: visible; }
  .pm-table,
  .pm-company-docs .pm-table { width: 100%; min-width: 0; display: block; border-collapse: separate; border-spacing: 0; }
  .pm-table thead { display: none; }
  .pm-table tbody { display: block; width: 100%; }
  .pm-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-bottom: 0; background: #fff; }
  .pm-table tbody tr:last-child { border-bottom: 1px solid #e5e7eb; }
  .pm-table tbody td { display: block; border: 0; padding: 5px 6px; white-space: normal; overflow-wrap: anywhere; }
  .pm-table tbody td.pm-document-title { order: 0; flex: 1 0 100%; width: 100%; padding: 4px 6px 9px; font-weight: 500; }
  .pm-table tbody td.pm-serial-cell { order: 1; flex: 0 0 auto; color: #596579; padding-left: 6px; }
  .pm-table tbody td.pm-view-cell,
  .pm-table tbody td.pm-download-cell { order: 2; flex: 0 0 auto; width: auto; text-align: left; padding: 4px 6px; }
  .pm-table tbody td.pm-view-cell .pm-action,
  .pm-table tbody td.pm-download-cell .pm-action { max-width: 100%; white-space: normal; }
  .pm-table tbody td.pm-no-results { flex: 1 0 100%; }
  .pm-list-view .pm-table td:nth-child(3),
  .pm-list-view .pm-table td:nth-child(4) { text-align: left; }
  .pm-audio-player { max-width: 100%; width: 240px; }
}
