
/* Maharlika IX responsive theme v1. Keep routing data and desktop columns intact. */
.page, .page-body, .page-content, .main-content-wrapper { min-width: 0; }
.page-body { flex: 1 1 0%; }
.page-content { flex: 1 1 0%; max-width: 100%; }
.details-main > .col-main, .details-main > .col-aside-details { min-width: 0; }
.page-header { height: auto; min-height: 59px; line-height: 1.5; padding: 17px 20px; overflow-wrap: anywhere; }
.table-routes, .table-protocols { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-routes > thead, .table-protocols > thead { white-space: nowrap; }
.table-routes:focus-visible, .table-protocols:focus-visible, .mci-nav-toggle:focus-visible { outline: 3px solid #337ab7; outline-offset: 2px; }
.modal-dialog { max-width: calc(100% - 20px); }
.bgp-attributes-modal .modal-body { overflow-wrap: anywhere; }
.bgp-attributes-modal .table { table-layout: fixed; width: 100%; }
.bgp-attributes-modal .table td { overflow-wrap: anywhere; word-break: normal; }
.bgp-attributes-modal .label-bgp-community { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; margin-bottom: 5px; }
.mci-nav-toggle { display: none; }
@media (max-width: 767px) {
  .page { flex-direction: column; }
  .page-sidebar { flex: 0 0 auto; width: 100%; }
  .page-body, .page-content { width: 100%; }
  .page-sidebar .sidebar-header { height: auto; min-height: 64px; align-items: center; }
  .page-sidebar .sidebar-header .title { min-width: 0; overflow-wrap: anywhere; }
  .page-sidebar .sidebar-header .title h1 { font-size: 16px; }
  .page-sidebar .routeservers-list { margin-top: 0; padding: 8px 0; }
  .page-sidebar .routeservers-list > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-sidebar .routeservers-list > ul li { min-width: 0; padding: 8px 15px; }
  .page-sidebar .routeserver-id { min-height: 32px; overflow-wrap: anywhere; }
  .page-sidebar .routeservers-list .routeserver-id { font-size: 15px; }
  .page-sidebar .routeservers-list .routeserver-status .bird-version { font-size: 12px; }
  .mci-nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; margin: 8px 12px; border: 1px solid #7d91a7; border-radius: 5px; background: #222; color: #fff; font: inherit; }
  .page-sidebar.mci-nav-ready:not(.mci-nav-open) .routeservers-list { display: none; }
  .page-header { min-height: 52px; padding: 14px 12px; }
  .details-main { margin-top: 8px; }
  .details-main > .col-main, .details-main > .col-aside-details { padding-left: 10px; padding-right: 10px; width: 100%; }
  .card { padding: 12px; margin: 12px 0; }
  .routes-quick-links, .neighbors-quick-links { margin: 8px 0; text-align: left; line-height: 2; }
  .routes-quick-links li, .neighbors-quick-links li { margin-left: 0; margin-right: 8px; }
  input.form-control, select.form-control, textarea.form-control { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; white-space: normal; }
  .modal-dialog { margin: 10px; }
  .modal-dialog .modal-body { max-height: 65vh; padding: 12px; }
  .bgp-attributes-modal .table th { width: 34%; }
  .modal-header .close { min-width: 44px; min-height: 44px; margin-top: -10px; }
  .related-peers { position: static; display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; }
  .related-peers li { height: auto; margin: 0; }
  .has-related-peers .details-main { padding-top: 0; }
}
@media (max-width: 359px) {
  .page-sidebar .routeservers-list > ul { grid-template-columns: minmax(0, 1fr); }
}
