html, body {
  height: 100%;
}

.pm-wrapper {
  max-width: 100%;
  display: grid;
  grid-gap: 0;
  grid-template-areas: "header" "content" "footer";
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
  background: #F8F5EC;
  z-index: 0;
}

.pm-main {
  grid-area: content;
}

.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #fff;
  padding: 0 20px;
  grid-area: header;
  border-bottom: 2px solid #F97114;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  gap: 8px;
  min-height: 56px;
}
.pm-header .pm-header-left {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.pm-header .pm-header-left img {
  height: 44px;
  width: auto;
}
.pm-header .pm-header-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px 0;
}
@media (max-width: 767px) {
  .pm-header .pm-header-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 10px;
  }
}
.pm-header .pm-nav-links {
  display: flex;
  gap: 4px;
}
.pm-header .pm-nav-links a {
  text-decoration: none;
  color: #2D4A5E;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.15s, color 0.15s;
}
.pm-header .pm-nav-links a:hover {
  background: #FFF3EB;
  color: #F97114;
}
.pm-header .pm-search-box {
  position: relative;
}
@media (max-width: 599px) {
  .pm-header .pm-search-box {
    width: 100%;
  }
}
.pm-header .pm-search-box .pm-search-input {
  width: 250px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 0.75rem;
  color: #333;
}
@media (min-width: 920px) {
  .pm-header .pm-search-box .pm-search-input {
    width: 350px;
  }
}
@media (max-width: 599px) {
  .pm-header .pm-search-box .pm-search-input {
    width: 100%;
  }
}
.pm-header .pm-search-box .pm-search-input::placeholder {
  color: #767676;
}
.pm-header .pm-search-box .pm-search-input:focus {
  outline: none;
  border-color: #F97114;
  box-shadow: 0 0 0 2px rgba(249, 113, 20, 0.15);
}
.pm-header .pm-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.75rem;
}
.pm-header .pm-header-right .pm-user-greeting {
  color: #888;
}
.pm-header .pm-header-right .pm-user-greeting strong {
  color: #333;
}
.pm-header .pm-header-right a {
  color: #015587;
  text-decoration: none;
  font-weight: 600;
}
.pm-header .pm-header-right a:hover {
  color: #F97114;
}

.ui-autocomplete.ui-menu {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px 0;
}
.ui-autocomplete.ui-menu .ui-menu-item {
  padding: 0;
  margin: 0;
  border: none;
}
.ui-autocomplete.ui-menu .ui-menu-item .pm-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}
.ui-autocomplete.ui-menu .ui-menu-item.ui-state-active {
  background: #FFF3EB;
  color: #F97114;
  border: none;
  margin: 0;
}
.ui-autocomplete.ui-menu .pm-search-type {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.ui-autocomplete.ui-menu .pm-search-type--project {
  background: #0D7377;
  color: #fff;
}
.ui-autocomplete.ui-menu .pm-search-type--account {
  background: #2D4A5E;
  color: #fff;
}
.ui-autocomplete.ui-menu .pm-search-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.pm-content-wrap {
  padding: 20px 15px;
}
@media (min-width: 768px) {
  .pm-content-wrap {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
  }
}

.pm-mobile-nav-toggle-wrap {
  background: #F8F5EC;
  position: sticky;
  left: 0;
  top: 0;
  padding: 10px 0;
  margin-bottom: 10px;
  z-index: 99;
}
@media (min-width: 768px) {
  .pm-mobile-nav-toggle-wrap {
    display: none;
  }
}
.pm-mobile-menu-show .pm-mobile-nav-toggle-wrap {
  z-index: 100;
  margin-left: 200px;
}
.pm-mobile-nav-toggle-wrap .pm-mobile-nav-toggle {
  background: #fff;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #2D4A5E;
}
.pm-mobile-nav-toggle-wrap .pm-mobile-nav-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: #2D4A5E;
}
.pm-mobile-menu-show .pm-mobile-nav-toggle-wrap .pm-mobile-nav-toggle svg {
  transform: rotate(90deg);
}

.pm-navleft {
  width: 190px;
  flex-shrink: 0;
  position: relative;
  z-index: 99;
  display: none;
}
@media (max-width: 767px) {
  .pm-mobile-menu-show .pm-navleft {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    height: 100%;
    overflow: auto;
    display: block;
    width: 220px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    padding: 10px;
  }
}
@media (min-width: 768px) {
  .pm-navleft {
    display: block;
  }
}
.pm-navleft a {
  text-decoration: none;
}
.pm-navleft ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-navleft li {
  margin: 0;
}
.pm-navleft > .left_navbar {
  background: #fff;
  padding: 8px 0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.pm-navleft.lm-nav-activeitem {
  font-style: normal;
}
.pm-navleft .lm-nav-label {
  display: block;
}
.pm-navleft > ul > li {
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.pm-navleft > ul > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.pm-navleft > ul > li > .lm-nav-label {
  line-height: 1.3;
  font-weight: 700;
  padding: 10px 14px 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2D4A5E;
}
.pm-navleft ul li.lm-nav-selecteditem {
  margin-left: 0;
}
.pm-navleft ul ul {
  margin-top: 0;
  margin-bottom: 12px;
}
.pm-navleft ul ul li {
  line-height: 1.5;
}
.pm-navleft ul ul li .lm-nav-label {
  padding: 4px 14px 4px 22px;
  font-weight: normal;
  font-size: 0.75rem;
  color: #015587;
  border-radius: 3px;
  transition: background 0.1s;
}
.pm-navleft ul ul li .lm-nav-label:hover {
  background: #FFF3EB;
  color: #F97114;
}
.pm-navleft ul ul .lm-nav-selecteditem .lm-nav-label {
  padding-left: 19px;
  border-left: 3px solid #F97114;
  background: #FFF3EB;
  color: #e56510;
  font-weight: 600;
}
.pm-navleft .lm-nav-selecteditem .lm-nav-label {
  display: block;
  background: #FFF3EB;
  color: #e56510;
  font-weight: 600;
  padding: 3px 14px 3px 19px;
  margin: 0;
  border-left: 3px solid #F97114;
}

.pm-history {
  margin-bottom: 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  overflow: hidden;
}
.pm-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-history li {
  margin: 0;
}
.pm-history li.header {
  font-weight: 700;
  padding: 8px 12px;
  background: #2D4A5E;
  color: #fff;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pm-history .pm-history-list {
  max-height: 20ex;
  overflow: auto;
  background: #fff;
  padding-bottom: 4px;
}
.pm-history .pm-history-list li {
  white-space: nowrap;
  font-size: 0.6875rem;
  overflow: hidden;
  padding: 2px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.pm-history .pm-history-list li:last-child {
  border-bottom: none;
}
.pm-history .pm-history-list a {
  color: #015587;
}
.pm-history .pm-history-list a:hover {
  color: #F97114;
}

.pm-content-block {
  background: white;
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  width: calc(100vw - 30px);
  min-width: 0;
}
.pm-content-block .lm-tab-selector {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  height: unset;
  padding: 0;
  border-bottom: 1px solid #ddd;
  margin-top: 0;
  margin-bottom: 8px;
}
.pm-content-block .lm-tab-selector:has(.lm-tab-option:only-child) {
  display: none;
}
.pm-content-block .lm-tab-selector .lm-tab-option {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .pm-content-block .lm-tab-selector .lm-tab-option {
    padding: 4px 5px;
    margin-right: 3px;
  }
}
.pm-content-block .lm-tab-selector + form {
  margin-top: 0;
}

@media (min-width: 768px) {
  .pm-content-block {
    width: calc(100vw - 190px - 20px - 60px);
  }
}
.page-content {
  padding: 15px;
  padding-top: 5px;
  overflow-x: auto;
}

hr {
  clear: both;
  height: 1px;
  margin: 12px 0;
  border: none;
  background: #ddd;
}

table.lm-contentlist {
  width: 100%;
}

.lm-contentlist th {
  text-align: left;
}
.lm-contentlist-top {
  background: #2D4A5E;
  color: white;
  padding: 6px 10px;
  margin: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-size: 0.75rem;
}
.lm-contentlist-top + .lm-contentlist {
  margin: 0;
}
.lm-contentlist-top .lm-tab-selector {
  border-bottom: none;
  margin-bottom: 0;
  padding: 0;
}
.lm-contentlist-top .lm-tab-selector a {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-bottom: none;
  padding: 2px 5px;
  font-size: 0.6875rem;
}
.lm-contentlist-top .lm-tab-selector a.lm-tab-option-active {
  color: #fff;
  font-weight: 700;
  border-bottom: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lm-contentlist-top .lm-tab-selector a:hover {
  color: #fff;
  background: transparent;
}
.lm-contentlist-top-section, .lm-contentlist-bottom-section {
  margin: 4px 0;
}
.lm-contentlist-top-section input, .lm-contentlist-bottom-section input {
  margin: 2px;
}
.lm-contentlist-top-section a, .lm-contentlist-bottom-section a {
  color: #FFF;
}
.lm-contentlist-top-section a:hover, .lm-contentlist-bottom-section a:hover {
  color: #FFF3EB;
}
.lm-contentlist-top-section a.buttonlink,
.lm-contentlist-top-section input[type=submit], .lm-contentlist-bottom-section a.buttonlink,
.lm-contentlist-bottom-section input[type=submit] {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.lm-contentlist-top-section a.buttonlink:hover,
.lm-contentlist-top-section input[type=submit]:hover, .lm-contentlist-bottom-section a.buttonlink:hover,
.lm-contentlist-bottom-section input[type=submit]:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}
.lm-contentlist-bottom {
  background: #2D4A5E;
  color: white;
  padding: 6px 10px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  font-size: 0.75rem;
}

.lm-contentlist-wrapper,
.mceEditor {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.lm-contentlist-wrapper table.lm-contentlist {
  width: 100%;
  max-width: 100%;
}

table.lm-contentlist {
  margin-top: 0;
  margin-bottom: 0;
}

.lm-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  z-index: 100;
}

.lm-modal-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1500;
}

.lm-modal-dialog {
  border: 1px solid #d4d4d4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.lm-page-control {
  display: inline;
}
.lm-page-control ul {
  display: inline;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lm-page-control li {
  display: inline;
  margin: 0;
  padding: 0;
}
.lm-page-control li.lm-page-active {
  font-weight: bold;
}
.lm-page-control li:not(:last-child):after {
  content: " ";
  white-space: pre;
}

img.lm-image-preview {
  max-width: 100%;
  height: auto;
}

.pm-footer {
  grid-area: footer;
  border-top: 1px solid #ddd;
  position: relative;
  z-index: 1;
  padding: 16px 0;
  text-align: center;
  background: #fff;
}
.pm-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
}
