input[type="submit"], input[type="reset"], input[type="button"] {
  border: 0;
  font: inherit;
  line-height: normal;
  overflow: visible; }

* {
  box-sizing: border-box;
  overflow-wrap: break-word;
  -ms-word-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.2; }

body {
  background-color: #ffffff;
  font-family: 'Arial', sans-serif; }

h1, h2, h3, h4, h5, h6 {
  font-weight: bold; }

.icon {
  margin: 5px; }

.red-button-icon {
  background-color: #b71c1c; }

.red-icon {
  color: #b71c1c; }

.text-center {
  text-align: center; }

.text-strike {
  text-decoration: line-through; }

.float-left {
  float: left; }

.float-right {
  float: right; }

.clear {
  clear: both; }




.container {
  margin: 2% auto;
  width: 350px; }

.login-container {
  position: relative;
  background-color: #0e1e33;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24); }
  .login-container h1 {
    font-size: 2em;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    color: white; }
  .login-container #logo {
    display: block;
    margin: 20px auto;
    height: 100px; }
  .login-container .form-container {
    clear: both;
    display: block;
    background-color: white;
    width: 100%;
    text-align: center;
    padding: 20px 10px;
    z-index: 5;
    overflow: hidden; }
    .login-container .form-container label {
      display: block;
      width: 90%;
      margin: 0 auto;
      padding: 10px 0; }
    .login-container .form-container input {
      width: 90%;
      font-size: 1em;
      padding: 5px;
      border: 1px solid black;
      border-radius: 5px; }
    .login-container .form-container .login-icon {
      font-size: 1.2em;
      color: #757575;
      margin-right: 5px; }
    .login-container .form-container input[type=submit] {
      padding: 5px;
      margin-top: 10px;
      width: 60%;
      color: #0e1e33;
      background-color: white;
      border: 1px solid #0e1e33;
      cursor: pointer;
      transition: all 0.2s ease-in-out; }
      .login-container .form-container input[type=submit]:hover {
        color: white;
        background-color: #0e1e33; }
      .login-container .form-container input[type=submit]:active {
        background-color: #000015; }

.multi-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: -1;
  color: #00000b;
  transform: scale(1.2); }

.error {
  font-weight: 700;
  color: #b71c1c;
  padding: 5px; }

.error-text {
  font-weight: 700;
  color: #b71c1c; }

header {
  width: 100%;
  border-bottom: 5px solid white; }

.topbar-container {
  color: whitesmoke;
  background-color: #1351d8;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 20px 0 0 0;
  -webkit-box-shadow: 0 8px 6px -6px black;
  -moz-box-shadow: 0 8px 6px -6px black;
  box-shadow: 0 8px 6px -6px black;
  position: relative; }
  @media (max-width: 1100px) {
    .topbar-container {
      width: 95%; } }
  @media (max-width: 620px) {
    .topbar-container {
      width: 100%; } }
  .topbar-container .logo img {
    height: 75px; }

.user {
  text-align: right;
  width: 50%;
  color: #ffffff;
  position: absolute;
  right: 5px;
  top: 10%; }
  .user .name-and-logout {
    padding: 0px;
    color: #FFFFFF;
  }
    .user .name-and-logout .username, .user .name-and-logout #logout {
      display: inline-block;
    }
  @media (max-width: 620px) {
    .user {
      position: relative;
      text-align: center;
      width: 100%;
    }
  }


nav {
  //padding: 10px 0;
  margin-bottom: -10px; }
  nav ul a {
    padding: 16px;
    margin: 0;
    display: inline-block;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease-in-out; }
    nav ul a:hover {
      color: #8dc63f; }
    nav ul a.active {
      background-color: #8dc63f;
      color: white; }
      nav ul a.active:hover {
        color: #E3F2FD; }
    nav ul a#admin-nav-item {
      float: right; }

.message-container {
  text-align: center;
  width: 70%;
  margin: 10px auto -5px auto;
  padding: 10px;
  background-color: #8dc63f;
  color: white; }
  @media (max-width: 1100px) {
    .message-container {
      width: 95%; } }
  @media (max-width: 620px) {
    .message-container {
      width: 100%; } }
  .message-container.error {
    background-color: #b71c1c; }

.button-link {
  color: white;
  text-decoration: none;
  width: max-content; }
  .button-link .icon {
    margin: 2px; }
  .button-link .button {
    background-color: #8dc63f;
    padding: 7px;
    width: max-content;
    transition: all 0.2s ease-in-out; }
    .button-link .button:hover {
      background-color: #7eb730; }
    .button-link .button.red-button {
      background-color: #b71c1c; }
      .button-link .button.red-button:hover {
        background-color: #a30808; }

.button-link-red {
  color: white;
  display:block;

  text-decoration: none;
  width: max-content; }
.button-link-red .icon {
  margin: 2px; }
.button-link-red .button {
  background-color: #b71c1c;
  padding: 7px;
  width: max-content;
  transition: all 0.2s ease-in-out; }
.button-link-red .button:hover {
  background-color: #a30808; }



.button {
  color: white;
  cursor: pointer;
  background-color: #0e1e33;
  padding: 7px;
  width: max-content;
  transition: all 0.2s ease-in-out; }
  .button:hover {
    background-color: #000a1f; }

.submit-button {
  padding: 7px;
  background-color: #0e1e33;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out; }
  .submit-button:hover {
    background-color: #1d2d42; }
  .submit-button:active {
    background-color: #000f24; }

.fieldset-container {
  text-align: center;
  margin: 0 auto; }
  @media (max-width: 810px) {
    .fieldset-container fieldset {
      display: block; }
      .fieldset-container fieldset input, .fieldset-container fieldset textarea {
        width: 100%; } }

.container-single-line {
  margin: 0 auto 10px auto;
  text-align: center; }

fieldset {
  display: inline-block;
  padding: 5px;
  margin: 10px;
  vertical-align: top;
  text-align: center; }
  fieldset label {
    display: block;
    margin-top: 5px;
    padding: 5px;
    background-color: #1351d8;
    color: white; }
  fieldset input[type="text"], fieldset textarea, fieldset select {
    width: 100%; }
  fieldset.submit-fieldset {
    display: block;
    width: 100%;
    text-align: center; }

.content-container {
  width: 95%;
  margin: 0 auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); }
  @media (max-width: 1100px) {
    .content-container {
      width: 95%; } }
  @media (max-width: 620px) {
    .content-container {
      width: 100%; } }
.content-equipment-header-bar {
  margin-top: 20px;
  padding: 10px;
  background-color: #1351d8;
  color: white; }
.content-equipment-header-bar h1 {
  font-size: 1.75em;
  display: inline-block; }
.content-equipment-header-bar h2 {
  font-size: 1.3em;
  cursor: pointer;
  display: inline-block; }
.content-equipment-header-bar .breadcrumbs {
  display: block; }
.content-equipment-header-bar .breadcrumbs a {
  color: white; }
.content-equipment-header-bar .breadcrumbs .breadcrumb-arrow {
  color: white; }
.content-equipment-header-bar .breadcrumbs p {
  display: inline-block;
  color: white; }

.content-header-bar {
  margin-top: 20px;
  padding: 10px;
  background-color: #1351d8;
  color: white; }
  .content-header-bar h1 {
    font-size: 1.75em;
    display: inline-block; }
  .content-header-bar h2 {
    font-size: 1.3em;
    cursor: pointer;
    display: inline-block; }
  .content-header-bar .breadcrumbs {
    display: block; }
    .content-header-bar .breadcrumbs a {
      color: white; }
    .content-header-bar .breadcrumbs .breadcrumb-arrow {
      color: white; }
    .content-header-bar .breadcrumbs p {
      display: inline-block;
      color: white; }

.content-header-addeqt-bar {
  margin-top: 20px;
  padding: 10px;
  background-color: #8dc63f;
  color: white; }
.content-header-addeqt-bar h1 {
  font-size: 1.75em;
  display: inline-block; }
.content-header-addeqt-bar h2 {
  font-size: 1.3em;
  cursor: pointer;
  display: inline-block; }
.content-header-addeqt-bar .breadcrumbs {
  display: block; }
.content-header-addeqt-bar .breadcrumbs a {
  color: white; }
.content-header-addeqt-bar .breadcrumbs .breadcrumb-arrow {
  color: white; }
.content-header-addeqt-bar .breadcrumbs p {
  display: inline-block;
  color: white; }


.content-header-bar-comment {
  margin-top: 20px;
  padding: 10px;
  background-color: #0e1e33;
  color: white; }
.content-header-bar h1 {
  font-size: 1.75em;
  display: inline-block; }
.content-header-bar h2 {
  font-size: 1.3em;
  cursor: pointer;
  display: inline-block; }
.content-header-bar .breadcrumbs {
  display: block; }
.content-header-bar .breadcrumbs a {
  color: white; }
.content-header-bar .breadcrumbs .breadcrumb-arrow {
  color: white; }
.content-header-bar .breadcrumbs p {
  display: inline-block;
  color: white; }

.content-area {
  clear: both;
  padding: 10px; }
  .content-area h2 {
    font-size: 1.6em;
    margin: 5px 0; }
  .content-area ul {
    margin: 5px; }

.dropdown {
  padding: 10px;
  margin: 0;
  display: inline-block;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease-in-out; }
  .dropdown:hover {
    color: #8dc63f; }
  .dropdown.active {
    background-color: #8dc63f;
    color: white; }
    .dropdown.active:hover {
      color: #E3F2FD; }

.dropbtn {
  color: white;
  background-color: #0e1e33;
  padding: 7px;
  width: max-content;
  transition: all 0.2s ease-in-out; }
  .dropbtn:hover {
    background-color: #7eb730; }
  .dropbtn.red-button {
    background-color: #b71c1c; }
    .dropbtn.red-button:hover {
      background-color: #a30808; }

.dropbtnn {
  background-color: #0e1e33;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none; }

.dropdownn {
  position: relative;
  display: inline-block; }

.dropdownn-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1; }

.dropdownn-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block; }

.dropdownn-content a:hover {
  background-color: #ddd; }

.dropdownn:hover .dropdownn-content {
  display: block; }

.dropdownn:hover .dropbtnn {
  background-color: #8dc63f;
}

.shadow {
  -moz-box-shadow:    3px 3px 5px 6px #ccc;
  -webkit-box-shadow: 3px 3px 5px 6px #ccc;
  box-shadow:         3px 3px 5px 6px #ccc;
}

.info-container {
  clear: both;
  text-align: center;
  margin: 0; }
  .info-container.no-button {
    margin: 20px 5px; }
  @media (max-width: 500px) {
    .info-container {
      margin: 40px 0 20px 0; } }
  .info-container .info-wrap {
    display: inline-block;
    margin: 5px;
    padding: 5px;
    width: 31.5%;
    vertical-align: top; }
    @media (max-width: 792px) {
      .info-container .info-wrap {
        display: block;
        width: 80%;
        margin: 5px auto; } }
    @media (max-width: 500px) {
      .info-container .info-wrap {
        width: 100%; } }
    .info-container .info-wrap.description {
      display: inline-block;
      width: 48.3%; }
      @media (max-width: 792px) {
        .info-container .info-wrap.description {
          display: block;
          width: 80%;
          margin: 5px auto; } }
      @media (max-width: 500px) {
        .info-container .info-wrap.description {
          width: 100%; } }
    .info-container .info-wrap .info-label {
      display: block;
      background-color: #1351d8 ;
      padding: 5px;
      margin: 3px;
      text-align: center;
      width: 100%;
      color: white; }
    .info-container .info-wrap .info-text {
      margin-left: 5px;
      text-align: center; }
    .info-container .info-wrap .info-text-left {
  margin-left: 5px;
  text-align: left; }

.dashboard-message-container {
  width: 60%;
  margin: 0 auto; }
  @media (max-width: 1100px) {
    .dashboard-message-container {
      width: 98%; } }
  .dashboard-message-container .content-area img {
    height: 350px;
    display: inline-block;
    margin: 5px auto; }

table.dataTable {
  margin: 20px auto;
  width: 100%; }
  table.dataTable.no-footer {
    border-bottom: 2px solid #0e1e33; }
  table.dataTable tr.even {
    background-color: #e9e9e9; }
  table.dataTable tr.odd {
    background-color: white; }

.table-container {
  margin: 50px auto;
  width: 95%; }
  @media (max-width: 620px) {
    .table-container {
      width: 98%; } }

.list-table {
  background-color: #1351d8;
  border: 2px solid #0e1e33; }
  .list-table thead > tr > th {
    text-align: left;
    background-color: #1351d8;
    color: white;
    border-bottom: none;
    padding: 8px; }
  .list-table a {
    color: black; }
    .list-table a:visited {
      text-decoration: none;
      color: black; }

#document-list {
  width: 100%; }
  @media (max-width: 765px) {
    #document-list {
      width: 100%; } }

#parts-select, #reference-select {
  width: 310px; }
  @media (max-width: 620px) {
    #parts-select, #reference-select {
      width: 80%;
      display: block; } }

#permissions-table {
  width: 90%;
  margin: 0 auto; }
  #permissions-table tr:nth-of-type(odd) {
    background-color: white; }
  #permissions-table tr:hover {
    background-color: #e5e5e5; }
  #permissions-table tr td {
    padding: 4px; }

#approval-table tr > td {
  padding: 3px;
  vertical-align: top; }
  #approval-table tr > td input[type="submit"] {
    padding: 3px; }
  #approval-table tr > td p {
    display: inline-block;
    vertical-align: top;
    margin-right: 5px; }

.upload-form {
  margin: 10px; }

.document-link > a {
  color: black; }
  .document-link > a i {
    text-decoration: none; }

.image-link {
  display: inline-block;
  margin: 5px;
  text-align: center;
  width: 400px;
  vertical-align: top; }
  .image-link a img {
    width: 400px; }
  .image-link a p {
    text-align: center; }

#maintenance-list tr th, #maintenance-list tr td {
  padding: 5px;
  text-align: left; }
#maintenance-list tr th {
  border-bottom: 1px solid #d3d3d3; }
#maintenance-list tr td a {
  color: black; }

.part-header {
  cursor: pointer; }

.related-part-item {
  display: inline-block;
  position: relative;
  margin: 5px;
  padding: 5px;
  transition: all 0.2s ease-in-out; }
  .related-part-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); }
  .related-part-item a {
    color: black;
    text-decoration: none; }

.menu-grid {
  width: 70%;
  margin: 30px auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center; }
  @media (max-width: 900px) {
    .menu-grid {
      width: 90%; } }
  .menu-grid a {
    text-decoration: none; }
    .menu-grid a:visited {
      text-decoration: none; }
    .menu-grid a .menu-item {
      margin: 5px;
      padding: 2em;
      text-align: center;
      background-color: white;
      color: black;
      border: 1px solid #0e1e33;
      border-radius: 5px;
      transition: all 0.2s ease-in-out; }
      .menu-grid a .menu-item:hover {
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24); }
      .menu-grid a .menu-item .menu-item-icon {
        margin: 10px; }

#pdf-viewer {
  width: 652px;
  height: 844px; }

footer {
  padding: 30px;
  text-align: center;
  color: black; }

#hard-hat {
  height: 25px; }

.hidden {
  display: none; }

#page-mask {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0,0,0,0.6);
}
a.logout:link
{
  color: #ffffff;

}
a.logout:visited
{
  color: #ffffff;

}
a.logout:hover
{
  color: #ffffff;

}
a.logout:active
{
  color: #ffffff;


}
a.nav-link:link
{
  color: #ffffff;

}
a.nav-link:visited
{
  color: #ffffff;

}
a.nav-link:hover
{
  color: #ffffff;
  text-decoration: underline;

}
a.nav-link:active
{
  color: #ffffff;

}

.input-detail-field
{
    width:100%;
}
/*# sourceMappingURL=layout.css.map */
.info-container label {
    display: block;
    background-color: #1351d8;
    padding: 5px;
    margin: 3px;
    text-align: center;
    width: 100%;
    color: white;
}
/*
input.parsley-success,
select.parsley-success,
textarea.parsley-success {
    color: #468847;
    background-color: #DFF0D8;
    border: 1px solid #D6E9C6;
}*/

input.parsley-error,
select.parsley-error,
textarea.parsley-error {
    color: #B94A48;
    background-color: #F2DEDE;
    border: 1px solid #EED3D7;
}

.parsley-errors-list {
    margin: 2px 0 3px;
    padding: 0;
    list-style-type: none;
    font-size: 0.9em;
    line-height: 0.9em;
    opacity: 0;
    color: #B94A48;

    transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
}

.parsley-errors-list.filled {
    opacity: 1;
}
/* Layout variables */
:root{
  --hh-bg: #ffffff;
  --hh-surface: #ffffff;
  --hh-border: #e6eaf2;
  --hh-text: #0f172a;
  --hh-muted: #64748b;
  --hh-primary: #1351d8;     /* matches your CMMS blue */
  --hh-primary-2: #0e1e33;   /* your dark navy */
  --hh-accent: #8dc63f;      /* your green accent */
  --hh-shadow: 0 10px 30px rgba(15,23,42,.12);

  --hh-sidebar-w: 280px;
  --hh-sidebar-w-collapsed: 86px;
  --hh-topbar-h: 80px;
}

/* Make room for sidebar and topbar */
body{
  background: var(--hh-bg);
}

/* If your pages already wrap content in .content, this makes it shift right */
.content{
  padding-left: var(--hh-sidebar-w);
}

/* Collapsed */
body.hh-sidebar-collapsed .content{
  padding-left: var(--hh-sidebar-w-collapsed);
}

/* Sidebar container */
.hh-sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--hh-sidebar-w);
  background: var(--hh-primary-2);
  color: #fff;
  z-index: 2000;
  box-shadow: var(--hh-shadow);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Collapsed sidebar width */
body.hh-sidebar-collapsed .hh-sidebar{
  width: var(--hh-sidebar-w-collapsed);
}

/* Brand block */
.hh-sidebar-brand{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hh-brand-logo{
  height: 46px;
  width: auto;
  display: block;
}

.hh-brand-title{
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 14px;
  line-height: 1;
}

.hh-brand-subtitle{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}

body.hh-sidebar-collapsed .hh-brand-right{
  display: none;
}

/* Site row with toggle */
.hh-site-row{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hh-site-menu{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.hh-site-menu:hover{
  background: rgba(255,255,255,.12);
}

.hh-site-pill{
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.hh-sidebar-collapsed .hh-site-pill{
  display: none;
}

/* Nav sections */
.hh-nav{
  padding: 10px 10px 16px 10px;
}

.hh-nav-section{
  margin-top: 12px;
}

.hh-nav-section-title{
  padding: 10px 10px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}

body.hh-sidebar-collapsed .hh-nav-section-title{
  display: none;
}

/* Nav item */
.hh-nav-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}

.hh-nav-item i{
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.hh-nav-item span{
  font-size: 13px;
  font-weight: 600;
}

.hh-nav-item:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.hh-nav-item:active{
  transform: translateY(1px);
}

.hh-nav-item.active{
  background: rgba(19,81,216,.35);
  border: 1px solid rgba(19,81,216,.55);
  color: #fff;
}

/* Collapsed keeps icons centered */
body.hh-sidebar-collapsed .hh-nav-item{
  justify-content: center;
  padding: 12px 10px;
}

/* Topbar */
.hh-topbar{
  position: sticky;
  top: 0;
  height: var(--hh-topbar-h);
  background: var(--hh-surface);
  border-bottom: 1px solid var(--hh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 1500;
}

/* If you have the old blue header still showing on some pages, this helps spacing */
.content .hh-topbar{
  margin-top: 0;
}

.hh-topbar-title{
  font-size: 18px;
  font-weight: 800;
  color: var(--hh-text);
  letter-spacing: .02em;
}

.hh-topbar-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* User pill */
.hh-user-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--hh-border);
  background: #fff;
  color: var(--hh-text);
  font-size: 13px;
  font-weight: 600;
}

.hh-user-pill i{
  color: var(--hh-primary);
}

/* Topbar links */
.hh-topbar-links{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hh-topbar-links a{
  color: var(--hh-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.hh-topbar-links a:hover{
  color: var(--hh-text);
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Small screens */
@media (max-width: 900px){
  .content{ padding-left: var(--hh-sidebar-w-collapsed); }
  .hh-sidebar{ width: var(--hh-sidebar-w-collapsed); }
}

/* Modal polish for your ContactUsModal */
.modal-content.hh-contact-card .modal-header{
  border-bottom: 1px solid var(--hh-border);
}

.modal-content.hh-contact-card .modal-footer{
  border-top: 1px solid var(--hh-border);
}
.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}



.cmms-page{ padding: 14px 0 30px 0; }

.cmms-header{
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 18px 18px;
  margin: 10px 0 18px 0;
}
.cmms-header-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.cmms-title{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
}
.cmms-subtitle{
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.cmms-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.cmms-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  user-select:none;
  transition: .15s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  text-decoration:none !important;
}
.cmms-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  border-color: #d1d5db;
}
.cmms-btn.primary{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.cmms-btn.primary:hover{
  background: var(--blue-2);
  border-color: var(--blue-2);
}

.cmms-section{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 0 0 14px 0;
  overflow:hidden;
}
.cmms-section-header{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(249,250,251,.9), rgba(255,255,255,1));
  flex-wrap:wrap;
}
.cmms-section-title{
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  display:flex;
  align-items:center;
  gap:10px;
}
.cmms-section-tools{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.cmms-mini{
  border-radius: 10px;
  border: 1px solid var(--border);
  background:#fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  cursor:pointer;
}
.cmms-mini:hover{ border-color:#d1d5db; }

.cmms-section-body{ padding: 12px 12px 14px 12px; }

/* Filters */
.cmms-form{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items:end;
}
@media (max-width: 1100px){
  .cmms-form{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cmms-form{ grid-template-columns: 1fr; }
}
.cmms-field{ display:flex; flex-direction:column; gap:6px; }
.cmms-label{
  font-weight: 900;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.cmms-input,
select.filter{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  outline:none;
  font-weight: 800;
  color: var(--text);
  background:#fff;
}
.cmms-input:focus,
select.filter:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Table container */
.table-container{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 12px;
}

div.dataTables_wrapper{ width: 100%; max-width: 100%; }

table.dataTable{
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow:hidden;
}

table.dataTable thead th{
  background: #f9fafb !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-bottom: 1px solid var(--border) !important;
  padding: 10px 10px !important;
  white-space: nowrap;
}

table.dataTable tbody td{
  padding: 10px 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: top;
  color: var(--text);
  font-size: 13px;
}

table.dataTable tbody tr:hover td{ background: #f8fafc !important; }

.dataTables_length label,
.dataTables_filter label{
  font-weight: 900;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing:.2px;
}
.dataTables_filter input{
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  outline:none;
  margin-left: 8px;
  min-width: 220px;
  font-weight: 700;
}
.dataTables_length select{
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  outline:none;
  margin: 0 8px;
  font-weight: 800;
}

.list-table{ border: 0; }


/* ===== KPI cards ===== */
.cmms-kpi-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
@media (max-width: 1100px){
  .cmms-kpi-grid{ grid-template-columns: 1fr; }
}
.cmms-kpi{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  cursor: pointer;
  user-select:none;
  transition: transform .08s ease, box-shadow .08s ease;
  position: relative;
  overflow:hidden;
}
.cmms-kpi:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.cmms-kpi .kpi-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.cmms-kpi .kpi-title{
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.cmms-kpi .kpi-value{
  font-size: 32px;
  font-weight: 1000;
  line-height: 1.05;
  margin-top: 6px;
  color: var(--text);
}
.cmms-kpi .kpi-sub{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.cmms-kpi.danger{
  background: linear-gradient(180deg, rgba(255,241,242,.9), rgba(255,255,255,1));
  border-color: var(--danger-bd);
}
.cmms-kpi.danger .kpi-value{ color: var(--danger-tx); }
.cmms-kpi.warn{
  background: linear-gradient(180deg, rgba(255,251,235,.95), rgba(255,255,255,1));
  border-color: var(--warn-bd);
}
.cmms-kpi.warn .kpi-value{ color: var(--warn-tx); }

.kpi-inline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 8px;
}
.kpi-inline label{
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing:.2px;
  margin: 0;
}
.kpi-inline input{
  width: 84px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-weight: 900;
  outline: none;
}
.kpi-inline .cmms-mini{
  padding: 6px 10px;
  border-radius: 10px;
}

/* ===== Modal chart ===== */
#invChartModal .modal-body{
  background: #fff;
}
.inv-chart-wrap{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.inv-chart-hint{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 2px 0 2px;
}
/* ===== Modal sizing guardrails ===== */
#invChartModal .modal-dialog{
  max-width: 980px;
}

#invChartModal .modal-body{
  padding: 14px 16px;
}

/* The key fix: constrain chart area height */
.inv-chart-wrap{
  height: 420px;          /* pick what feels right */
  max-height: 70vh;       /* never exceed viewport */
  overflow: hidden;       /* prevents runaway growth */
}

/* Make canvas obey the wrapper */
#invChartCanvas{
  display: block;
  width: 100% !important;
  height: 100% !important;
}



/* Work Order facelift */
/* Relies on your existing palette vars already in layout.css :contentReference[oaicite:1]{index=1} */

.wo-shell{
  width: 95%;
  margin: 0 auto;
}

.wo-header{
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--hh-border, #e6eaf2);
  border-radius: 14px;
  box-shadow: var(--hh-shadow, 0 10px 30px rgba(15,23,42,.12));
  overflow: hidden;
}

.wo-header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--hh-primary, #1351d8);
  color: #fff;
}

.wo-title{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wo-title h1{
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.wo-breadcrumbs{
  font-size: 12px;
  opacity: .92;
}
.wo-breadcrumbs a{
  color: #fff;
  text-decoration: none;
}
.wo-breadcrumbs a:hover{
  text-decoration: underline;
}

.wo-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wo-actions .button-link .button,
.wo-actions .btn{
  border-radius: 12px;
}

.wo-body{
  padding: 16px;
  background: #fff;
}

.wo-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.wo-card{
  background: #fff;
  border: 1px solid var(--hh-border, #e6eaf2);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  overflow: hidden;
}

.wo-card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--hh-border, #e6eaf2);
}
.wo-card-header h2{
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--hh-text, #0f172a);
}
.wo-card-body{
  padding: 14px;
}

.wo-meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wo-meta-item{
  border: 1px solid var(--hh-border, #e6eaf2);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.wo-meta-label{
  font-size: 11px;
  font-weight: 800;
  color: var(--hh-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wo-meta-value{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hh-text, #0f172a);
  word-break: break-word;
}

.wo-form{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.wo-col-3{ grid-column: span 3; }
.wo-col-4{ grid-column: span 4; }
.wo-col-5{ grid-column: span 5; }
.wo-col-6{ grid-column: span 6; }
.wo-col-7{ grid-column: span 7; }
.wo-col-12{ grid-column: span 12; }

.wo-form label{
  font-size: 12px;
  font-weight: 800;
  color: var(--hh-text, #0f172a);
  margin-bottom: 6px;
}
.wo-form .help-inline{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--hh-muted, #64748b);
}
.wo-form .form-control,
.wo-form select,
.wo-form input[type="text"],
.wo-form input[type="date"],
.wo-form input[type="datetime-local"],
.wo-form textarea{
  border-radius: 12px;
}

/* Attachments tabs */
.wo-tabs{
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--hh-border, #e6eaf2);
  flex-wrap: wrap;
}
.wo-tab{
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--hh-text, #0f172a);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.wo-tab.active{
  border-color: var(--hh-primary, #1351d8);
  box-shadow: 0 0 0 3px rgba(19,81,216,.12);
}

.wo-tabpanel{
  display: none;
  padding: 14px;
}
.wo-tabpanel.active{
  display: block;
}

/* Table wrapper that never overflows the page */
.wo-table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
.wo-table-wrap table{
  width: 100% !important;
  max-width: 100% !important;
}

/* Footer actions */
.wo-footer{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px 18px 16px;
  border-top: 1px solid var(--hh-border, #e6eaf2);
  background: #fff;
}

/* Responsive */
@media (max-width: 1100px){
  .wo-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .wo-col-3, .wo-col-4, .wo-col-5, .wo-col-6, .wo-col-7{ grid-column: span 12; }
  .wo-meta{ grid-template-columns: 1fr; }
}
@media print {

  /* Remove browser extra margins you do not control well otherwise */
  @page { margin: 12mm; }

  /* Hide nav and page chrome */
  .topbar,
  .sidebar,
  .navbar,
  .breadcrumbs,
  .wo-actions,
  .wo-tabs,
  .dataTables_length,
  .dataTables_filter,
  .dataTables_info,
  .dataTables_paginate,
  .DTE,
  .modal,
  .button-link,
  .btn,
  a.editor_edit,
  a.editor_remove,
  #page-mask,
  #partstableModal5 {
    display: none !important;
  }

  /* Make everything white and remove shadows */
  body, .content, .wo-shell, .wo-header, .wo-card, .wo-card-body, .wo-body {
    background: #fff !important;
    box-shadow: none !important;
  }

  /* Force all tab panels to print */
  .wo-tabpanel {
    display: block !important;
    page-break-inside: avoid;
  }

  /* Tighten spacing */
  .wo-header-top { background: #fff !important; color: #000 !important; }
  .wo-title h1 { color: #000 !important; }

  /* Make forms print like text */
  input, select, textarea {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* If CKEditor uses an iframe, print the content area nicely */
  .cke, .cke_inner, .cke_contents, iframe {
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Tables */
  table { border-collapse: collapse !important; }
  th, td {
    border: 1px solid #ccc !important;
    padding: 6px !important;
  }
  th { background: #f3f3f3 !important; }

  /* Prevent weird clipping */
  .wo-table-wrap { overflow: visible !important; }
}
/* Fix overflow on Work Order "Type" + "Created" + similar read-only form-control divs */
.wo-form .form-control{
  max-width: 100%;
  box-sizing: border-box;
}

/* specifically target the read-only display divs you use (div.form-control, not inputs) */
.wo-form .form-control[style*="background:#f8fafc"]{
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /* choose one behavior:
     A) wrap (recommended for Created) */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;

  /* prevent weird flex shrink issues if parent is flex somewhere */
  min-width: 0;
}

/* If you want Type to stay one line with ellipsis instead of wrapping */
.wo-form .wo-col-3:nth-of-type(2) .form-control{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* If those columns are inside a flex row anywhere, this prevents children from forcing overflow */
.wo-form .wo-col-3,
.wo-form .wo-col-4,
.wo-form .wo-col-12{
  min-width: 0;
}
.wo-readonly{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Type: one line */
.wo-type{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Created: wrap */
.wo-created{
  white-space: normal;
}
.status-filter{ min-width:240px; }
.stchk{ display:flex; align-items:center; gap:8px; margin:4px 0; font-size:13px; color:#374151; }
.stchk input{ width:16px; height:16px; }

/* Status KPI cards */
.kpi-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 14px 0;
}
.kpi-card{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:12px;
  padding:10px 12px;
  min-width:140px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  cursor:pointer;
  user-select:none;
}
.kpi-card .kpi-label{ font-size:12px; color:#6b7280; font-weight:600; }
.kpi-card .kpi-value{ font-size:22px; font-weight:800; color:#111827; margin-top:2px; }
.kpi-card.active{
  border-color:#2563eb;
  box-shadow:0 10px 25px rgba(37,99,235,.12);
}
.kpi-card:hover{ transform: translateY(-1px); }
/* If your topbar is fixed and very high, keep it reasonable */
.topbar,
.navbar,
.navbar-fixed-top,
.navbar-fixed{
  z-index: 1030; /* Bootstrap default for fixed nav */
}

/* Bootstrap modal layers */
.modal{
  z-index: 20000 !important;
}
.modal-backdrop{
  z-index: 19990 !important;
}

/* DataTables Editor lightbox */
div.DTE,
div.DTED_Lightbox_Wrapper,
div.DTED_Lightbox_Background{
  z-index: 21000 !important;
}
