.portal-body {
  margin: 0;
  background: #f3f5f9;
  color: #122033;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.portal-topbar {
  background: #0f1d3a;
  color: #fff;
  border-bottom: 1px solid #1c2e58;
}

.portal-topbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portal-topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.portal-badge {
  background: #213b70;
  color: #e7efff;
  border: 1px solid #2e4b84;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.portal-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: calc(100vh - 58px);
}

.portal-sidebar {
  background: #fff;
  border-right: 1px solid #dbe1ea;
  padding: 20px;
  overflow-y: auto;
}

.portal-nav-title {
  margin: 0 0 12px;
  color: #0f1d3a;
  font-size: 18px;
  font-weight: 700;
}

.portal-nav-section {
  margin: 16px 0 8px;
  color: #5b6d8f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.portal-nav-section::-webkit-details-marker {
  display: none;
}

.portal-nav-accordion {
  margin-bottom: 4px;
}

.portal-nav-accordion .portal-nav-section::after {
  content: "▾";
  float: right;
  color: #8aa0c3;
  font-size: 11px;
}

.portal-nav-accordion:not([open]) .portal-nav-section::after {
  content: "▸";
}

.portal-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-nav-link {
  border-radius: 8px;
  color: #2d3f5f;
  padding: 8px 10px;
  font-weight: 500;
}

.portal-nav-link:hover {
  color: #10244b;
  background: #eef3fb;
}

.portal-nav-link.active {
  background: #e7eefb;
  color: #10244b;
  font-weight: 600;
}

.portal-nav-link-child {
  margin-left: 12px;
  font-size: 14px;
}

.portal-content {
  padding: 24px;
  min-width: 0;
}

.portal-page-header {
  margin-bottom: 16px;
}

.portal-page-header h2 {
  margin: 0;
  color: #101f3c;
  font-size: 28px;
  font-weight: 700;
}

.portal-page-header p {
  color: #4e5f7f;
  margin: 6px 0 0;
}

.portal-panel {
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 31, 60, 0.05);
  margin-bottom: 16px;
}

.portal-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
}

.portal-panel-body {
  padding: 16px;
}

.portal-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.portal-filter-field {
  min-width: 220px;
  flex: 1;
}

.portal-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.portal-data-table {
  width: 100% !important;
}

.portal-data-table thead th {
  white-space: nowrap;
  background: #f8fbff;
  color: #253858;
  border-bottom-width: 1px;
}

.portal-data-table td {
  vertical-align: middle;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  min-width: 260px;
}

.portal-actions form {
  margin: 0;
}

.portal-data-table th:last-child,
.portal-data-table td:last-child {
  min-width: 260px;
}

.portal-data-table a {
  text-decoration: none;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.portal-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portal-card {
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 31, 60, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.portal-card-link:hover .portal-card,
.portal-card-link:focus-visible .portal-card {
  border-color: #a9bfdc;
  box-shadow: 0 6px 14px rgba(16, 31, 60, 0.12);
  transform: translateY(-1px);
}

.portal-card-link:focus-visible {
  outline: none;
}

.portal-card h3 {
  margin: 0;
  color: #3a4b6d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-card p {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 0;
  color: #10244b;
}

.portal-card-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #2f66d5;
}

.portal-flash {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c9d4e6;
  background: #fff;
}

.portal-flash-notice {
  border-color: #9ac2ff;
  background: #eff6ff;
}

.portal-flash-alert {
  border-color: #f2b3b3;
  background: #fff1f1;
}

.portal-file-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.portal-file-meta-card p {
  margin-bottom: 0;
}

.portal-kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.portal-kv-table th,
.portal-kv-table td {
  font-size: 14px;
  padding: 8px 4px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: top;
}

.portal-kv-table th {
  width: 180px;
  color: #4e5f7f;
  font-weight: 600;
}

.portal-kv-table td {
  color: #15284d;
  font-weight: 500;
}

.portal-kv-table tr:last-child th,
.portal-kv-table tr:last-child td {
  border-bottom: 0;
}

.portal-file-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-inline-form .form-control {
  min-width: 280px;
}

.portal-code-block {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

.portal-callout {
  background: #eef6ff;
  border: 1px solid #c7ddff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #143766;
  font-size: 14px;
}

.portal-muted {
  color: #5c6e8f;
}

@media (max-width: 1200px) {
  .portal-file-meta-grid {
    grid-template-columns: 1fr;
  }
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 8px;
  border-radius: 8px;
  border: 1px solid #ccd5e5;
  padding: 5px 10px;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid #ccd5e5;
}

.portal-autocomplete-list {
  border: 1px solid #ced4da;
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(22, 26, 29, 0.08);
}

.portal-autocomplete-item {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 9px 11px;
  font-size: 14px;
}

.portal-autocomplete-item:hover,
.portal-autocomplete-item:focus {
  background: #f4f8fb;
  outline: none;
}

@media (max-width: 980px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dbe1ea;
  }

  .portal-content {
    padding: 16px;
  }

  .portal-page-header h2 {
    font-size: 24px;
  }
}

.guide-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.guide-shot {
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin: 0;
}

.guide-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #e6ecf5;
}

.guide-shot figcaption {
  margin-top: 8px;
  color: #4e5f7f;
  font-size: 13px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
