/* ── MyPTProvider Design System ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --pt-red        : #C00000;
  --pt-red-bright : #FF0000;
  --pt-red-dark   : #990000;
  --pt-green      : #00B050;
  --pt-green-dark : #009040;
  --pt-blue       : #0078D4;
  --pt-blue-dark  : #005A9E;
  --pt-grey-tab   : #BFBFBF;
  --pt-grey-light : #E7E6E6;
  --pt-yellow     : #FFC000;
  --pt-text       : #333333;
  --sidebar-w     : 280px;
  --font-main     : 'Poppins', 'Segoe UI', Arial, sans-serif;
  --pt-ui-scale   : 0.8;
}

html {
  zoom: var(--pt-ui-scale);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  background: #fff;
  color: var(--pt-text);
}

.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: none;
  overflow-y: auto;
  z-index: 900;
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-frame {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-logo {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  line-height: 0;
}
.sidebar-logo img {
  display: block;
  width: 118.3%;
  max-width: none;
  height: auto;
  margin-left: -9.5%;
}

.sidebar-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
  margin-bottom: 14px;
}
.sidebar-welcome .welcome-label {
  flex: 1;
  font-size: 1.58rem;
  color: var(--pt-text);
  line-height: 1.25;
}
.sidebar-welcome .welcome-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}
.sidebar-welcome .welcome-icons img { width: 27px; height: 27px; opacity: .9; }
.sidebar-welcome .welcome-icons i { font-size: 1.5rem; color: #666; }
.sidebar-welcome .welcome-icons a {
  display: inline-flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  transition: color .15s;
}
.sidebar-welcome .welcome-icons a:hover { color: var(--pt-red); }

.sidebar-user { margin-bottom: 0; line-height: 1.55; width: 100%; }
.sidebar-user .user-name { color: var(--pt-red); font-weight: 700; font-size: .94rem; }
.sidebar-user .user-position { color: var(--pt-red); font-weight: 700; font-size: .98rem; }
.sidebar-user .user-meta { color: var(--pt-text); font-weight: 600; font-size: .90rem; }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}
.sidebar-nav .sidebar-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 6px;
  border-radius: 8px;
  background: var(--pt-grey-tab);
  color: #000;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  border: none;
  transition: background .15s;
}
.sidebar-nav .sidebar-btn:hover:not(.active) {
  background: #a8a8a8;
  color: #000;
  text-decoration: none;
}
.sidebar-nav .sidebar-btn.active {
  background: var(--pt-red);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-logout-link {
  display: inline-block;
  text-decoration: none;
}

/* ── Main ──────────────────────────────────────────────────── */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  padding-right: 48px;
  background: #fff;
}

/* ── Module navigation + content panel ─────────────────────── */
.module-tab-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 28px 28px;
  min-height: 0;
}

.module-tabs {
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
}
.module-tabs-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 0;
  min-width: 0;
}
.module-tabs-bar {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 6px 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
  align-content: start;
}
.module-tabs-bar::-webkit-scrollbar {
  display: none;
}
.module-tabs-scroll-btn {
  flex: 0 0 28px;
  width: 28px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
}
.module-tabs-scroll-btn:hover:not(:disabled) {
  background: #fafafa;
  color: var(--pt-red);
  border-color: #bbb;
}
.module-tabs-scroll-btn:disabled {
  opacity: .35;
  cursor: default;
}
.module-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 12px 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
  background: #dcdcdc;
  color: #333;
  border: 1px solid #bbb;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  transition: background .15s, color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.module-tab:hover:not(.active) {
  background: #ececec;
  color: var(--pt-text);
  text-decoration: none;
}
.module-tab.active {
  background: var(--pt-red);
  color: #fff;
  border-color: var(--pt-red-dark);
  border-bottom: 1px solid var(--pt-red);
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

/* Zone 2 — content card (connects to module tabs above) */
.module-tab-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-top: 3px solid var(--pt-red);
  border-radius: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  min-height: 280px;
  overflow: hidden;
}
.module-tab-panel-content {
  flex: 1;
  padding: 18px 22px 24px;
}
.module-tab-panel .pt-page-actions {
  padding: 0 22px 20px;
  margin-top: auto;
}

/* ── Sub tabs (secondary bar inside panel) ─────────────────── */
.sub-tabs {
  padding: 0;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.sub-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}
.sub-tab-group { display: inline-flex; gap: 4px; }
.sub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  font-weight: 700;
  font-size: .8rem;
  text-decoration: none;
  background: #dcdcdc;
  color: #555;
  border: 1px solid #bbb;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  transition: background .15s, color .15s;
}
.sub-tab:hover:not(.active) {
  background: #ececec;
  color: var(--pt-text);
  text-decoration: none;
}
.sub-tab.active {
  background: #fff;
  color: var(--pt-red);
  border-color: #ddd;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

/* ── Page actions (Save / Add) ─────────────────────────────── */
.pt-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 28px 28px;
}

/* ── Main content (dashboard / standalone pages) ─────────────── */
#main-content:not(.module-tab-panel-content) { padding: 24px 28px 36px; flex: 1; }

.pt-form-body { max-width: 900px; }
.pt-validation { margin-bottom: 12px; }

/* Activities Create — aligned grid, buttons outside inputs */
.pt-form-create { max-width: none; }
.pt-form-create-grid {
  display: grid;
  grid-template-columns: 210px 480px 80px;
  column-gap: 12px;
  row-gap: 14px;
  align-items: center;
}
.task-list-contents,
.task-row { display: contents; }
.pt-form-create-grid .pt-field-label {
  flex: unset;
  width: 210px;
  min-height: 44px;
}
.pt-form-create-grid .pt-field-label-spacer {
  visibility: hidden;
}
.pt-form-create-grid .pt-field-input {
  flex: unset;
  width: 480px;
  max-width: 480px;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
.pt-form-action-cell {
  width: 80px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.pt-field-error-grid {
  margin-left: 222px;
}

/* ── Tables (List design) ──────────────────────────────────── */
.table-pt { border-collapse: collapse; width: 100%; font-size: .84rem; }
.table-pt th, .table-pt td {
  border: none;
  padding: 10px 12px;
  vertical-align: middle;
}
.table-pt thead tr {
  background-color: #dcdcdc;
}
.table-pt thead th {
  background-color: #dcdcdc;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
.table-pt thead tr:first-child th:first-child { border-top-left-radius: 8px; }
.table-pt thead tr:first-child th:last-child { border-top-right-radius: 8px; }
.table-pt tbody tr:nth-child(odd) { background: #fff; }
.table-pt tbody tr:nth-child(even) { background: #f8f9fa; }
.table-pt tbody tr:hover { background: #f8f9fa; }
.table-pt .col-no { width: 55px; text-align: center; }
.table-pt .col-actions { width: 170px; text-align: center; white-space: nowrap; }

/* Legacy class aliases (same as default List styling) */
.table-pt.table-pt-borderless th,
.table-pt.table-pt-borderless td { border: none; }
.table-pt-striped tbody tr:nth-child(odd),
.table-pt.table-pt-striped tbody tr:nth-child(odd) { background: #fff; }
.table-pt-striped tbody tr:nth-child(even),
.table-pt.table-pt-striped tbody tr:nth-child(even) { background: #f8f9fa; }
.table-pt-striped tbody tr:hover,
.table-pt.table-pt-striped tbody tr:hover { background: #f8f9fa; }
.pt-list-table thead,
.pt-list-table thead tr,
.pt-list-table thead th {
  background-color: #dcdcdc !important;
  color: #000 !important;
}
.pt-list-table.table-pt-striped.table-pt-borderless tbody tr:nth-child(odd),
.pt-list-table tbody tr:nth-child(odd) { background: #fff !important; }
.pt-list-table.table-pt-striped.table-pt-borderless tbody tr:nth-child(even),
.pt-list-table tbody tr:nth-child(even) { background: #f8f9fa !important; }
.pt-list-table.table-pt-striped.table-pt-borderless tbody tr:hover,
.pt-list-table tbody tr:hover { background: #f8f9fa !important; }

/* ── Pagination ────────────────────────────────────────────── */
.pt-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e3e3e3;
}
.pt-pagination-info {
  font-size: .84rem;
  font-weight: 600;
  color: #555;
}
.pt-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.pt-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--pt-text);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.pt-page-btn:hover:not(.disabled):not(.active) {
  background: #f5f5f5;
  color: var(--pt-red);
  border-color: #bbb;
  text-decoration: none;
}
.pt-page-btn.active {
  background: var(--pt-red);
  color: #fff;
  border-color: var(--pt-red-dark);
}
.pt-page-btn.disabled {
  opacity: .45;
  cursor: default;
}

/* ── Form fields (red label + white input, separate pills) ──── */
.pt-field-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 860px;
}
.pt-field-label {
  flex: 0 0 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  text-align: center;
  border-radius: 8px;
  border: none;
  margin: 0;
}
.pt-field-input {
  flex: 1;
  width: 100%;
  border: 2px solid #999;
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-main);
  font-size: .86rem;
  outline: none;
  background: #fff;
}
.pt-field-input:focus { border-color: #666; box-shadow: inset 0 0 0 1px #bbb; }
.pt-field-input:disabled {
  background: #f0f0f0;
  color: #555;
  cursor: not-allowed;
  border-color: #bbb;
}
select.pt-field-input { cursor: pointer; }
textarea.pt-field-input { resize: vertical; min-height: 44px; }
.pt-form-body .pt-field-input,
.pt-form-body select.pt-field-input,
.pt-form-body textarea.pt-field-input {
  min-height: 44px;
}
.pt-field-row-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .78rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.pt-field-row-btn.btn-row-add { background: var(--pt-blue); color: #fff; }
.pt-field-row-btn.btn-row-add:hover { background: var(--pt-blue-dark); color: #fff; }
.pt-field-row-btn.btn-row-remove { background: var(--pt-grey-tab); color: #000; }
.pt-field-row-btn.btn-row-remove:hover { background: #a8a8a8; color: #000; }
.pt-field-error { display: block; color: #c0392b; font-size: .78rem; margin: -8px 0 12px 222px; }

/* ── Document form ─────────────────────────────────────────── */
.pt-document-form .pt-field-input,
.pt-document-form select.pt-field-input,
.pt-document-form textarea.pt-field-input {
  border-color: var(--pt-red);
  border-width: 1px;
}
.pt-field-dual {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 14px;
  max-width: 860px;
}
.pt-field-dual .pt-field-group {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
  max-width: none;
}
.pt-field-dual .pt-field-label {
  flex: 0 0 210px;
}
.pt-field-dual .pt-field-input-date {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}
.pt-document-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 860px;
  margin-bottom: 14px;
}
.pt-reminder-toggle {
  flex: 0 0 210px;
  cursor: pointer;
  transition: filter .15s;
}
.pt-reminder-toggle.is-active {
  filter: brightness(.92);
}
.pt-reminder-section {
  max-width: 860px;
}
.btn-upload-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  margin-left: auto;
}
.btn-upload-doc:hover {
  background: #222;
  color: #fff;
}
.pt-document-file-note {
  max-width: 860px;
  margin: -6px 0 14px 222px;
  font-size: .8rem;
  color: #555;
  font-weight: 600;
}
.pt-document-save-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 860px;
  margin-top: 8px;
  padding-top: 4px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-pt-save, .btn-pt-add, .btn-pt-list {
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 28px;
  font-size: .84rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background .15s;
}
.btn-pt-save { background: var(--pt-green) !important; color: #fff !important; }
.btn-pt-save:hover { background: var(--pt-green-dark) !important; color: #fff !important; }
.btn-pt-add  { background: var(--pt-blue) !important; color: #fff !important; }
.btn-pt-add:hover  { background: var(--pt-blue-dark) !important; color: #fff !important; }
.btn-pt-list { background: var(--pt-grey-tab) !important; color: #000 !important; }
.btn-pt-list:hover { background: #a8a8a8 !important; color: #000 !important; }

.btn-edit, .btn-remove {
  font-size: .78rem;
  padding: 5px 12px;
  font-weight: 600;
  border-radius: 6px;
}
.btn-edit.btn-warning,
.btn-edit.btn-warning:hover {
  color: #fff !important;
}
.btn-remove.btn-danger,
.btn-remove.btn-danger:hover {
  color: #fff !important;
}
.btn-view-doc {
  font-size: .78rem;
  padding: 5px 12px;
  font-weight: 600;
  border-radius: 6px;
  background: #000;
  color: #fff !important;
  border: none;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
}
.btn-view-doc:hover {
  background: #222;
  color: #fff !important;
}

.pt-list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.pt-documents-table .col-actions {
  width: auto;
  white-space: nowrap;
  text-align: left;
}
.pt-documents-table .col-actions .pt-reminder-icon {
  margin-left: 2px;
}
.pt-reminder-icon {
  color: var(--pt-red);
  font-size: 1.05rem;
  vertical-align: middle;
}

.alert { border-radius: 8px; font-size: .86rem; }

/* ── Dashboard ─────────────────────────────────────────────── */
.dash-card {
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: var(--pt-red);
}
.dash-card.alt-green { background: var(--pt-green); }
.dash-card.alt-grey  { background: #888; }
.dash-card .dash-icon { font-size: 1.8rem; margin-bottom: 6px; }
.dash-card .dash-count { font-size: 1.9rem; font-weight: 700; }
.dash-card .dash-label { font-size: .82rem; font-weight: 600; }

.dash-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 8px;
  background: var(--pt-grey-tab);
  color: #fff;
  font-weight: 700;
  font-size: .76rem;
  text-decoration: none;
  text-align: center;
  min-height: 46px;
  border: none;
  transition: background .15s;
}
.dash-quick-link:hover {
  background: var(--pt-red);
  color: #fff;
  text-decoration: none;
}

/* ── Portal / Login ────────────────────────────────────────── */
.portal-page, .login-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}
.portal-top-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
}
.portal-top-btn:hover { background: var(--pt-red-dark); color: #fff; }
.portal-back-btn {
  position: absolute;
  top: 24px;
  left: 32px;
  background: #fff;
  color: var(--pt-red);
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid var(--pt-red);
  text-decoration: none;
}
.portal-back-btn:hover { background: #fdf0f0; color: var(--pt-red-dark); text-decoration: none; }
.portal-logo { text-align: center; margin-bottom: 36px; }
.portal-logo img { max-width: 320px; height: auto; }
.portal-actions { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; }
.portal-row { display: flex; align-items: stretch; height: 46px; }
.portal-row-label {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 23px 0 0 23px;
  border: 2px solid var(--pt-red);
}
.portal-row-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--pt-text);
  font-weight: 700;
  font-size: .88rem;
  border: 2px solid var(--pt-red);
  border-left: none;
  border-radius: 0 23px 23px 0;
  text-decoration: none;
}
.portal-row-action:hover { background: #fdf0f0; color: var(--pt-red); text-decoration: none; }
.portal-row-action.disabled { opacity: .55; pointer-events: none; }

.login-form-wrap { width: 100%; max-width: 520px; }
.login-admin-badge {
  display: inline-block;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 8px 28px;
  border-radius: 8px;
}
.login-forgot { text-align: right; margin-top: 14px; font-size: .85rem; font-weight: 600; }
.login-forgot a { color: var(--pt-red); text-decoration: none; }
.login-submit-wrap { display: flex; justify-content: flex-end; margin-top: 18px; }
.btn-pt-submit {
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.btn-pt-submit:hover { background: var(--pt-red-dark); }

.hamburger-btn {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1100;
  background: var(--pt-red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .dash-quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); transition: transform .3s; }
  #sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .hamburger-btn { display: block; }
  .dash-quick-grid { grid-template-columns: 1fr; }
  .module-tab-shell { padding: 12px 16px 20px; }
  .module-tabs-scroll-wrap { padding: 8px 8px 0; gap: 4px; }
  .module-tabs-bar {
    grid-template-columns: repeat(8, minmax(100px, 1fr));
  }
  .module-tab { padding: 10px 6px; font-size: .94rem; }
  .module-tabs-scroll-btn { width: 26px; height: 32px; flex-basis: 26px; }
  .module-tab-panel { border-radius: 8px; }
  .module-tab-panel-content { padding: 12px 14px 18px; }
  .sub-tabs-bar { padding: 8px 10px 0; gap: 4px; }
  .sub-tab { padding: 8px 14px; font-size: .76rem; }
  .module-tab-panel .pt-page-actions { padding: 0 14px 14px; }
  .pt-field-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .pt-field-label { flex: 0 0 auto; }
  .pt-field-error { margin-left: 0; }
  .pt-form-create-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .pt-form-create-grid .pt-field-label,
  .pt-form-create-grid .pt-field-input {
    width: 100%;
    max-width: 100%;
  }
  .pt-form-action-cell { width: auto; justify-content: flex-start; }
  .pt-field-dual { flex-direction: column; }
  .pt-field-dual .pt-field-input-date {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  .pt-document-file-note { margin-left: 0; }
}
