:root {
  --bg: #f6f7f8;
  --accent: #b90b0b;
  --deep: #9b0a0a;
  --muted: #6b6f73;
  --card: #ffffff;
  --sidebar: #ffffff;
  --sidebar-border: #f0efef;
  --red-ghost: rgba(185, 11, 11, 0.06);
}

.wrap {
  margin: 0px !important;
  max-width: 100% !important;
}

.dashboard-container {
  box-sizing: border-box;
  height: auto;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: #1f2933;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.padding {
  padding: 0px !important;
}


/* Top header */
.topbar {
  height: 120px;
  padding: 22px 40px;
  background: linear-gradient(90deg, #9d1b1b 10%, #b85a5a 40%, #6fcbd9 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
  position: relative;
  top: 82px;
}

.topbar .title .title-content {
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  gap: 0.75rem;
  align-items: center;
  display: flex;
  margin-bottom: 0.5rem;
  margin-top: 0px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
.topbar .subtitle p {
  color: rgb(255 255 255 / 0.9);
  margin: 0;
  opacity: 0.95;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  font-size: 18px;
  font-weight: 500;
}
.topbar .right {
  margin-left: auto;
}
.badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* layout */
.wrap-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-height: none !important;
  position: relative;
  left: 0;
  right: 0;
  top: 82px !important;
  bottom: 0;
  /* padding-bottom: 5rem !important; */
}
.sidebar {
  width: 15rem;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  border-radius: 6px;
  padding: 1rem;
  --tw-border-opacity: 1;
  border-right: 1px solid rgb(229 231 235 / var(--tw-border-opacity, 1));
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.nav-title {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 1rem;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 12rem;
}
.nav li {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  transition-property: color, background-color, border-color, fill, stroke,
    -webkit-text-decoration-color;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  text-align: left;
  cursor: pointer;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  gap: 0.75rem !important;
  align-items: center !important;
  width: 100%;
  display: flex;
  position: relative !important;
  border-radius: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  margin-bottom: 0px !important;
  line-height: 0px !important;
}

.nav li .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-decoration: none;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.nav li:before {
  content: none !important;
  position: static !important;
  left: 0;
  top: 0;
}
.nav li svg {
  flex: 0 0 20px;
  opacity: 0.9;
}
.nav li.active svg {
  flex: 0 0 20px;
  opacity: 0.9;
  --tw-text-opacity: 1;
  color: rgb(180 0 0 / var(--tw-text-opacity, 1));
}
.nav li:hover {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
.nav li.active {
  --tw-bg-opacity: 1;
  background-color: rgb(251 233 233 / var(--tw-bg-opacity, 1));
  border-left: 4px solid #b90b0b;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  padding-left: 1rem;
}

/* content */
.content {
  flex: 1;
  padding: 1rem;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  flex: 1 1 0%;
}
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h2 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 0px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
.page-header p {
  margin: 0;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
  font-size: 15px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  display: grid;
}

.card {
  animation-duration: 300ms;
  transition-duration: 300ms;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  color: hsl(var(--card-foreground));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-border-opacity: 1;
  border: 1px solid rgb(229 231 235 / var(--tw-border-opacity, 1));
  border-radius: 8px;
}

.card:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),
    0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  border-color: rgb(111 203 217 / 0.5);
}

.card-head {
  padding: 1.5rem 1.5rem 0.75rem 1.5rem;
  flex-direction: row;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.logo {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  display: flex;
  flex-shrink: 0;
}
.logo.eye {
  --tw-bg-opacity: 1;
  background-color: rgb(111 203 217 / var(--tw-bg-opacity, 1));
  width: 50px;
  flex-shrink: 0;
}
.logo.red {
  --tw-bg-opacity: 1;
  background-color: rgb(180 0 0 / var(--tw-bg-opacity, 1));
  width: 50px;
  flex-shrink: 0;
}
.logo.gray {
  --tw-bg-opacity: 1;
  background-color: rgb(71 85 105 / var(--tw-bg-opacity, 1));
  width: 50px;
  flex-shrink: 0;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  white-space: normal; /* allows wrapping */
  overflow-wrap: break-word; /* forces long words to wrap */
  word-break: break-word; /* extra support for breaking words */
  width: auto;
}
.card p {
  margin: 0;
  color: var(--muted) !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  white-space: normal; /* allows wrapping */
  overflow-wrap: break-word; /* forces long words to wrap */
  word-break: break-word; /* extra support for breaking words */
  width: auto;
}

.card .open-btn {
  transition-property: color, background-color, border-color, fill, stroke,
    -webkit-text-decoration-color;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  --tw-ring-offset-color: hsl(var(--background));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  --tw-bg-opacity: 1;
  background-color: rgb(180 0 0 / var(--tw-bg-opacity, 1));
  border-radius: 8px;
  white-space: nowrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  max-height: auto;
  display: inline-flex;
  cursor: pointer;
  border: none;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  white-space: normal; /* allows wrapping */
  overflow-wrap: break-word; /* forces long words to wrap */
  word-break: break-word; /* extra support for breaking words */
}

.card .open-btn:hover {
  background-color: rgb(180 0 0 / 0.9);
}

/* Make button full width like screenshot */
.card .open-row {
  padding: 0px 1.5rem 1.5rem 1.5rem;
}
.full-btn {
  width: 100%;
  text-align: left;
}

/* smaller row cards that contain two columns per row */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 768px) {
  .card h3 {
    white-space: normal; /* allows wrapping */
    overflow-wrap: break-word; /* forces long words to wrap */
    word-break: break-word; /* extra support for breaking words */
    width: auto;
  }

  .card p {
    white-space: normal; /* allows wrapping */
    overflow-wrap: break-word; /* forces long words to wrap */
    word-break: break-word; /* extra support for breaking words */
    width: auto;
  }

  .login-panel {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
  }

  .login-panel .panel-heading {
    width: 100% !important;
    padding-left: 28px !important;
  }

  .panel-body {
    width: 35rem !important;
  }
}

/* responsive */
@media (max-width: 1000px) {
  .wrap-container {
    padding: 0px;
    height: auto;
    max-height: 100vh;
    overflow-y: scroll;
    margin-bottom: 20px;
     top: 58px !important;
    content: "";
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: 220px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1 !important;
  }

  .button-small span {
    display: none;
  }

  .login-panel {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
  }

  .login-panel .panel-heading {
    width: 100% !important;
    padding-left: 28px !important;
  }

  .panel-body {
    width: 35rem !important;
  }
}

@media (max-width: 1024px) {
  footer .wrap .top .flex {
    padding: 0px 40px 0px 40px !important;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* hidden by default */
    width: 260px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    z-index: 111111 !important; /* above overlay */
    overflow: auto;
  }

  .sidebar.open {
    left: 0; /* slide in when open */
    display: block;
  }

  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* below sidebar */
    position: fixed;
  }

  .hamburger {
    position: relative;
    left: 16px;
    top: 86px !important; /* adjust if needed */
    z-index: 999999999 !important; /* above everything */
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* When sidebar is open — move hamburger to top-right */
  body.sidebar-open .hamburger {
    position: fixed;
    left: 217px;
    right: 0px;
    top: 8px !important;
    z-index: 999999999 !important;
  }

  .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    border-radius: 3px;
  }

  body.sidebar-open .hamburger-line {
    background: #000;
    width: 18px; /* ↓ reduced from 25px */
    height: 2px; /* ↓ reduced from 3px */
  }
  .topbar .title .title-content svg {
    width: 40px;
    height: 40px;
  }

  .content {
    padding: 1.5rem;
  }
}

/* Hide hamburger on desktop */
@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }
  .sidebar {
    position: static;
    left: 0;
    height: auto;
    box-shadow: none;
    z-index: auto;
  }
}

/* little icon styles for left navigation */
.icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ud-sidebar {
  width: 220px;
  border-right: 1px solid #eee;
}
.ud-content {
  flex: 1;
}
.ud-menu {
  list-style: none;
  padding: 0;
}
.ud-menu li {
  margin-bottom: 10px;
}
.ud-menu a {
  text-decoration: none;
  color: #0073aa;
}
.ud-menu a:hover {
  text-decoration: underline;
}
.ud-order-table {
  width: 100%;
  border-collapse: collapse;
}
.ud-order-table th,
.ud-order-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.ud-order-table th {
  background: #f8f8f8;
}

.mialab-documents-container {
  max-width: 100%;
  margin: 0px;
  font-family: "Inter", system-ui, sans-serif;
}

.mialab-doc-section {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.mialab-doc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0b1220;
  margin-bottom: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  white-space: normal; /* allows wrapping */
  overflow-wrap: break-word; /* forces long words to wrap */
  word-break: break-word;
}

.mialab-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 28rem;
  overflow: auto;
}

.mialab-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  padding: 14px 18px;
}

.mialab-doc-item:hover {
  background-color: rgb(239 246 255 / 0.5);
}

.mialab-doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mialab-file-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(12, 125, 125, 0.06);
  color: #0ea5a4;
}

.mialab-meta .mialab-title {
  font-weight: 600;
  font-size: 15px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  white-space: normal; /* allows wrapping */
  overflow-wrap: break-word; /* forces long words to wrap */
  word-break: break-word;
}

.mialab-meta .mialab-sub {
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  white-space: normal; /* allows wrapping */
  overflow-wrap: break-word; /* forces long words to wrap */
  word-break: break-word;
}

.mialab-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6e9ee;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mialab-download-btn:hover {
  background: #f4f6f8;
}

.mialab-no-docs {
  color: #888 !important;
  font-style: italic;
  font-size: 14px !important;
  padding-left: 4px !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
.mialab-doc-icon {
  color: #0ea5a4;
}

.mialab-doc-item:before {
  content: none !important;
  position: static !important;
  left: 0;
  top: 0;
}
/*.wysiwyg ul li {*/
/*  padding-left: 18px !important;*/
/*  margin-bottom: 0px !important;*/
/*}*/

header {
  padding: 17px 17px !important;
}

.mialab-documents-header {
  margin-bottom: 1.5rem;
}

.mialab-documents-title {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.5rem;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.mialab-documents-sub-title {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.wysiwyg ul {
  margin-left: 0px !important;
  margin-bottom: 0px !important;
}

header .login-sign-up span {
  display: inline-block !important;
  margin: 0 5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 120px !important;
}

.mialab-doc-right {
  flex-shrink: 0;
}

/* Common button styles */
.mialab-doc-right button,
.mialab-doc-right a.button.button-small {
  --tw-ring-offset-color: hsl(var(--background));
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  --tw-border-opacity: 1;
  border: 1px solid rgb(209 213 219 / var(--tw-border-opacity, 1));
  white-space: nowrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  height: 2.25rem;
  display: inline-flex;
  cursor: pointer;
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  text-transform: none;
  font-family: "Inter", sans-serif;
  border-radius: 0.5rem;
  text-decoration: none; /* important for <a> links */
}

/* Hover effect for both */
.mialab-doc-right button:hover,
.mialab-doc-right a.button.button-small:hover {
  color: hsl(var(--accent-foreground));
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.dashboard-svg-icon-class {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

footer .top {
  padding: 55px 47px !important;
}

.section-above-footer .wrap .flex {
  padding: 55px 47px !important;
}

.section-above-footer {
  position: relative;
  top: 82px;
}

.content-section h3 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0rem;
  font-family: "Inter", sans-serif;
}

.content-section p {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1)) !important;
  font-family: "Inter", sans-serif;
  font-size: 14px !important;
}

.content-section .pricelist-content .price-table h4 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0rem;
  font-family: "Inter", sans-serif;
}

.content-section .pricelist-content .price-table p {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1)) !important;
  font-family: "Inter", sans-serif;
  font-size: 14px !important;
}

.content-section
  .pricelist-content
  .price-table
  .tablepress-scroll-wrapper
  .dt-container
  .dt-layout-row
  .dt-layout-start
  .dt-length
  .dt-input {
}

.content-section
  .pricelist-content
  .price-table
  .tablepress-scroll-wrapper
  .dt-container
  .dt-layout-row
  .dt-layout-start
  .dt-length
  .dt-length-0 {
}

.content-section
  .pricelist-content
  .price-table
  .tablepress-scroll-wrapper
  .dt-container
  .dt-layout-row
  .dt-layout-start
  .dt-search
  label {
}

.content-section
  .pricelist-content
  .price-table
  .tablepress-scroll-wrapper
  .dt-container
  .dt-layout-row
  .dt-layout-start
  .dt-search
  .dt-input {
}
