
.notification-inbox[data-v-f6a542e6] {
  position: relative;
}
.notification-inbox-trigger[data-v-f6a542e6] {
  position: relative;
  min-width: 38px;
  justify-content: center;
}
.notification-inbox-trigger-label[data-v-f6a542e6] {
  margin-left: 0.35rem;
}
.notification-inbox-badge[data-v-f6a542e6] {
  position: absolute;
  top: 4px;
  right: 0;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #b94a35;
  color: #fffdf6;
  font-size: 0.62rem;
  line-height: 1rem;
  text-align: center;
  padding: 0 0.2rem;
  font-weight: 700;
}
.notification-inbox-panel[data-v-f6a542e6] {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - var(--header-height) - 18px));
  overflow: auto;
  background: #fffdf6;
  border: 1px solid rgba(53, 92, 58, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(31, 56, 38, 0.18);
  z-index: 2147483642;
}
.notification-inbox-panel-header[data-v-f6a542e6] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: var(--theme-green);
  font-weight: 700;
  border-bottom: 1px solid rgba(191, 167, 111, 0.28);
}
.notification-inbox-text-btn[data-v-f6a542e6] {
  border: none;
  background: transparent;
  color: #355c3a;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.notification-inbox-empty[data-v-f6a542e6] {
  padding: 1rem;
  color: rgba(47, 71, 50, 0.72);
  font-size: 0.9rem;
}
.notification-inbox-list[data-v-f6a542e6] {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notification-inbox-item[data-v-f6a542e6] {
  display: grid;
  grid-template-columns: 1fr 36px;
  border-bottom: 1px solid rgba(191, 167, 111, 0.18);
}
.notification-inbox-item[data-v-f6a542e6]:last-child {
  border-bottom: none;
}
.notification-inbox-item.unread[data-v-f6a542e6] {
  background: rgba(191, 167, 111, 0.14);
}
.notification-inbox-item-main[data-v-f6a542e6] {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.75rem 0.85rem;
  color: #2f4732;
  cursor: pointer;
  min-width: 0;
}
.notification-inbox-item-main[data-v-f6a542e6]:hover {
  background: rgba(53, 92, 58, 0.08);
}
.notification-inbox-title[data-v-f6a542e6],
.notification-inbox-message[data-v-f6a542e6],
.notification-inbox-meta[data-v-f6a542e6] {
  display: block;
}
.notification-inbox-title[data-v-f6a542e6] {
  font-weight: 700;
  font-size: 0.9rem;
}
.notification-inbox-message[data-v-f6a542e6] {
  margin-top: 0.18rem;
  font-size: 0.82rem;
  color: rgba(47, 71, 50, 0.8);
  line-height: 1.35;
}
.notification-inbox-meta[data-v-f6a542e6] {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  color: rgba(47, 71, 50, 0.62);
}
.notification-inbox-dismiss[data-v-f6a542e6] {
  border: none;
  background: transparent;
  color: rgba(47, 71, 50, 0.62);
  cursor: pointer;
}
.notification-inbox-dismiss[data-v-f6a542e6]:hover {
  color: #7a3023;
  background: rgba(122, 48, 35, 0.08);
}
.notification-inbox--mobile[data-v-f6a542e6] {
  width: 100%;
}
.notification-inbox--mobile .notification-inbox-trigger[data-v-f6a542e6] {
  width: 100%;
  justify-content: flex-start;
}
.notification-inbox--mobile .notification-inbox-panel[data-v-f6a542e6] {
  position: static;
  width: 100%;
  max-height: 360px;
  margin-top: 0.4rem;
  box-shadow: 0 8px 20px rgba(31, 56, 38, 0.12);
}

/* === Main Content === */
.layout-main-documents {
  flex-grow: 1;
  padding-right: 10px;
  /* allow main document area to flow with the page (single master scrollbar) */
  overflow: visible;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: visible;
  position: relative;
  z-index: 1;
  background: var(--theme-bg-yellow);
  padding-top: var(--header-height);
  padding-bottom: 0;
  /* ensure the main documents area fills the viewport beneath the header */
  min-height: calc(100vh - var(--header-height));
}



.layout-main-documents.is-editor-canvas-route {
  padding-bottom: 0;
}


/* === Navbar/Header === */
.brox-navbar,
.brox-navbar-loggedout {
  position: fixed;
  top: 0;
  left: 0;
  /* use 100% to avoid horizontal scrollbar created by 100vw */
  width: 100%;
  height: var(--header-height);
  background: var(--theme-bg-yellow);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
  z-index: 1100;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0.75rem;
}

.brox-navbar {
  z-index: 2147483640;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.brox-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.brox-img {
  height: 36px;
  margin-right: 0.45rem;
}

.brox-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--theme-green);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* === Navbar Menu === */
.header-menu,
.brox-navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.brox-navbar-menu {
  justify-content: flex-end;
}

.brox-navbar-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-menu {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0.75rem;
  justify-content: flex-start;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.navbar-left {
  flex: 0 1 auto;
  min-width: 0;
}

.navbar-right {
  margin-left: auto;
  position: relative;
  z-index: 2147483641;
}

.navbar-global-search {
  position: relative;
  left: auto;
  transform: none;
  flex: 0 0 44px;
  width: 44px;
  margin: 0 0.15rem 0 auto;
  z-index: 3;
  transition: width 0.22s ease, flex-basis 0.22s ease, filter 0.18s ease;
}

.navbar-global-search--expanded {
  flex-basis: clamp(260px, 30vw, 440px);
  width: clamp(260px, 30vw, 440px);
  z-index: 2147483642;
}

.navbar-global-search-inner {
  position: relative;
  width: 100%;
}

.navbar-global-search--expanded .navbar-global-search-inner {
  filter: drop-shadow(0 8px 18px rgba(35, 66, 47, 0.14));
}

.navbar-global-search-inner--scoped .navbar-global-search-input {
  padding-left: 9rem;
}

.navbar-global-search-inner--scoped .navbar-global-search-icon {
  left: 7.6rem;
}

.navbar-global-search-scope-trigger {
  position: absolute;
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  min-width: 102px;
  border: 1px solid rgba(53, 92, 58, 0.28);
  border-radius: 999px;
  background: #f5efdd;
  color: #2f5233;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  cursor: pointer;
}

.navbar-global-search-scope-trigger:hover,
.navbar-global-search-scope-trigger:focus {
  background: #ecdfbd;
  outline: none;
}

.navbar-global-search-scope-label {
  white-space: nowrap;
}

.navbar-global-search-scope-caret {
  font-size: 0.68rem;
  transition: transform 0.18s ease;
}

.navbar-global-search-scope-caret.open {
  transform: rotate(180deg);
}

.navbar-global-search-scope-menu {
  position: absolute;
  top: calc(100% + 0.36rem);
  left: 0;
  right: 0;
  background: #fffdf6;
  border: 1px solid rgba(53, 92, 58, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(35, 66, 47, 0.14);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  z-index: 8;
}

.navbar-global-search-scope-option {
  border: none;
  background: transparent;
  border-radius: 9px;
  width: 100%;
  text-align: left;
  padding: 0.48rem 2rem 0.48rem 0.65rem;
  cursor: pointer;
  color: #2b4b2f;
  position: relative;
}

.navbar-global-search-scope-option:hover,
.navbar-global-search-scope-option.active {
  background: rgba(191, 167, 111, 0.2);
}

.navbar-global-search-scope-option-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
}

.navbar-global-search-scope-option-description {
  display: block;
  font-size: 0.73rem;
  margin-top: 0.08rem;
  color: rgba(40, 70, 46, 0.76);
}

.navbar-global-search-scope-option-check {
  position: absolute;
  right: 0.62rem;
  top: 50%;
  transform: translateY(-50%);
  color: #355c3a;
}

.navbar-global-search-input {
  width: 100%;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(53, 92, 58, 0.35);
  background: #fffef8;
  color: var(--theme-green);
  font-size: 0.92rem;
  padding: 0.45rem 2.2rem 0.45rem 2.2rem;
  transition: color 0.16s ease, padding 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input {
  padding: 0;
  color: transparent;
  caret-color: transparent;
  cursor: pointer;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::-moz-placeholder {
  color: transparent;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::placeholder {
  color: transparent;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-scope-trigger,
.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-clear {
  opacity: 0;
  pointer-events: none;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-icon {
  left: 50%;
  transform: translate(-50%, -50%);
}

.navbar-global-search-input:focus {
  outline: none;
  border-color: var(--theme-green);
  box-shadow: 0 0 0 2px rgba(53, 92, 58, 0.12);
}

.navbar-global-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(35, 66, 47, 0.72);
  pointer-events: none;
}

.navbar-global-search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(35, 66, 47, 0.72);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.navbar-global-search-clear:hover {
  background: rgba(53, 92, 58, 0.1);
  color: #1d3623;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-green);
  background: none;
  border: none;
  box-sizing: border-box;
  padding: 0 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  height: calc(var(--header-height) - 10px);
  line-height: 1;
  white-space: nowrap;
}

.menu-link:hover,
.menu-link.active {
  background: var(--theme-gold);
  color: var(--theme-green);
}

.login-link {
  background: var(--theme-green);
  color: var(--theme-gold);
  border: 2px solid var(--theme-gold);
  border-radius: 8px;
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 0.8rem;
  margin-left: 0.15rem;
  transition: background .18s, color .18s, box-shadow .18s;
}

.login-link:hover {
  background: #274528;
  color: var(--theme-gold);
  box-shadow: 0 4px 12px rgba(191, 167, 111, 0.18);
  border-color: #a68b5b;
}

.menu-link .enquiry-icon,
.menu-link .products-icon,
.menu-link .members-icon {
  font-size: 1.1em;
}

/* === Admin Dropdown === */
.admin-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.admin-menu-trigger {
  min-width: 88px;
  justify-content: center;
}

.admin-menu-trigger.active {
  background: var(--theme-gold);
  color: var(--theme-green);
}

.admin-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid rgba(191, 167, 111, 0.55);
  border-radius: 10px;
  background: #fffbe6;
  box-shadow: 0 14px 30px rgba(35, 66, 47, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 2147483642;
}

.admin-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--theme-green);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.admin-dropdown-link:hover,
.admin-dropdown-link.router-link-exact-active {
  background: var(--theme-gold);
  color: #fffbe6;
}

.admin-dropdown-link svg {
  width: 1rem;
  flex: 0 0 1rem;
}

/* === User Dropdown === */
.user-dropdown-btn {
  background: none;
  border: none;
  color: var(--theme-green);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.user-dropdown-menu {
  position: absolute;
  top: var(--header-height);
  right: 0;
  background: var(--theme-bg-yellow);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.12);
  border-radius: 8px;
  min-width: 140px;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  z-index: 2147483642;
}

.dropdown-link {
  padding: 0.5rem 1rem;
  color: var(--theme-green);
  text-decoration: none;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.dropdown-link:hover {
  background: var(--theme-gold);
  color: #fffbe6;
}

/* === Hamburger & Mobile Menu === */
.mobile-navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
  margin-left: auto;
  position: relative;
}

.mobile-navbar-actions .mobile-icon-btn,
.mobile-navbar-actions .hamburger-btn {
  background: #fffdf4;
  border: 1px solid rgba(53, 92, 58, 0.24);
  color: var(--theme-green);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 5px rgba(53, 92, 58, 0.08);
}

.mobile-navbar-actions .mobile-icon-btn:hover,
.mobile-navbar-actions .hamburger-btn:hover,
.mobile-navbar-actions .hamburger-btn.active {
  background: var(--theme-gold);
  color: var(--theme-green);
  border-color: rgba(53, 92, 58, 0.34);
}

.mobile-menu-modal {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(92vw, 360px);
  max-height: calc(100dvh - var(--header-height) - 0.75rem);
  overflow-y: auto;
  background: transparent;
  z-index: 2147483642;
  display: block;
}

.mobile-menu-content {
  background: #fffbe6;
  border: 1px solid rgba(191, 167, 111, 0.55);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(35, 66, 47, 0.18);
  padding: 0.55rem;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.mobile-menu-search {
  padding: 0.2rem 0.2rem 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(191, 167, 111, 0.35);
}

.mobile-menu-search .navbar-global-search {
  position: static;
  left: auto;
  transform: none;
  width: 100%;
  margin: 0;
  z-index: auto;
}

.mobile-menu-search .navbar-global-search-inner {
  filter: none;
}

.mobile-menu-search .navbar-global-search-input,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input {
  padding: 0.45rem 2.2rem 0.45rem 2.2rem;
  color: var(--theme-green);
  caret-color: auto;
  cursor: text;
}

.mobile-menu-search .navbar-global-search-input::-moz-placeholder, .mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::-moz-placeholder {
  color: rgba(35, 66, 47, 0.58);
}

.mobile-menu-search .navbar-global-search-input::placeholder,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::placeholder {
  color: rgba(35, 66, 47, 0.58);
}

.mobile-menu-search .navbar-global-search-inner--scoped .navbar-global-search-input,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-inner--scoped .navbar-global-search-input {
  padding-left: 9rem;
}

.mobile-menu-search .navbar-global-search-icon,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-icon {
  left: 0.8rem;
  transform: translateY(-50%);
}

.mobile-menu-search .navbar-global-search-inner--scoped .navbar-global-search-icon,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-inner--scoped .navbar-global-search-icon {
  left: 7.6rem;
}

.mobile-menu-search .navbar-global-search-scope-trigger,
.mobile-menu-search .navbar-global-search-clear,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-scope-trigger,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-clear {
  opacity: 1;
  pointer-events: auto;
}

.mobile-user-dropdown {
  top: calc(100% + 0.35rem);
  right: 2.95rem;
}

/* === Sidebars === */
.SidebarMain {
  position: relative;
  top: var(--header-height);
  width: var(--left-sidebar-width);
  min-width: 180px;
  max-width: 400px;
  transition: width 0.2s;
  background: var(--theme-bg-yellow);
  /* prefer flexible height to avoid creating a second scrollbar; allow natural flow */
  box-sizing: border-box;
  /* fill the available viewport height beneath the header so borders extend to bottom */
  height: calc(100vh - var(--header-height));
  box-shadow: 2px 0 8px rgba(80, 60, 30, 0.10);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

@media (max-width: 599px) {
  .SidebarMain {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: calc(100vh - var(--header-height));
    z-index: 1200;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(80, 60, 30, 0.10);
  }
}

.right-sidebar {
  z-index: 10000 !important;
  /* Above modals (9999) */
}

/* Left sidebar should be below modals */
.sidebar-main {
  z-index: 100 !important;
}

.RightSideBar {
  width: var(--right-sidebar-width);
  top:var(--header-height);
  min-width: 220px;
  max-width: 1700px;
  transition: width 0.2s;
  background: var(--theme-bg-yellow);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
  z-index: 100;
  /* allow content in this panel to scroll when necessary */
  height: auto;
  /* allow the sidebar to grow with page content so its left border extends to the bottom */
  max-height: none;
  align-self: stretch;
  overflow: visible;
  flex-shrink: 0;
  position: relative;
  border-left: 0;
}

.RightSideBar::before {
  content: none;
}

/* === Resize Handle === */
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  z-index: 10;
  background: transparent;
}

.enhanced-resize-handle {
  background: linear-gradient(90deg, #bfa76f 60%, #e7d9c4 100%);
  border-right: 2px solid #a68b5b;
}

.sidebar-resize-handle:hover,
.enhanced-resize-handle:hover {
  background: linear-gradient(90deg, #e7d9c4 0%, #bfa76f 100%);
}

.resize-grip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #355c3a;
  font-size: 1.7rem;
  opacity: 0.85;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* === Sidebar Internal === */
.folder-manager-wrapper {
  padding: 10px;
  border-top: 1px solid #dee2e6;
  margin-top: 10px;
}

.group-sidebar-title {
  margin: 1.5rem 0 0.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #234;
  letter-spacing: 0.01em;
}

/* === Sidebar Header === */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-header h3 {
  margin: 0;
  color: #4F5D75;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Sidebar Buttons === */
.toggle-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.toggle-btn {
  position: fixed;
  top: 50px;
  left: 10px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-green);
  color: var(--theme-gold);
  border: 2px solid var(--theme-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.hide-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: var(--theme-green);
  border: 1px solid var(--theme-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(80, 60, 30, 0.10);
  transition: background-color 0.2s, color 0.2s;
}

.toggle-btn:hover,
.hide-btn:hover {
  color: #fffbe6;
  background-color: #274528;
}

.show-sidebar-btn:hover {
  background-color: #3d4a5f;
}

/* === Sidebar Nav === */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  /* avoid internal sidebar scrollbar so the page provides the master scrollbar */
  overflow: visible;
}

.nav-item {
  display: block;
  width: 100%;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.2s;
  padding: 0;
  margin: 2px 0;
  border-radius: 4px;
}

.nav-item-content {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  width: 100%;
}

.nav-item:hover {
  background-color: #e9ecef;
  color: #212529;
}

.nav-item.active {
  background-color: #4F5D75;
  color: white;
}

.nav-item svg {
  width: 20px;
  min-width: 20px;
  margin-right: 10px;
}

.sidebar-footer {
  padding: 15px;
  border-top: 1px solid #dee2e6;
}

.new-doc-btn {
  width: 100%;
  padding: 8px 0;
  background-color: #4F5D75;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.new-doc-btn:hover {
  background-color: #3d4a5f;
}

/* === Sidebar Animations === */
.slide-enter-active,
.slide-leave-active {
  transition: transform 0.3s;
}

.slide-enter-from,
.slide-leave-to {
  transform: translateX(100%);
}

.slide-enter-to,
.slide-leave-from {
  transform: translateX(0);
}

/* === Overlay for mobile right sidebar === */
.RightSideBar.overlay,
.RightSideBar.is-overlay {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  z-index: 1304;
}



/* === UNIFIED MODAL STYLES === */
.modal-warning {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-info {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  margin: 12px 0;
}

.delete-modal-item {
  font-weight: 600;
  color: #333;
  margin: 8px 0;
}

/* Z-index hierarchy */
.modal-overlay {
  z-index: 10000 !important;
  /* Above sidebars (z-index: 100) */
}

.RightSideBar.is-fullscreen {
  transform-origin: right;
  width: 100vw;
  /* or whatever width you want for fullscreen */
  max-width: 100vw;
  position: fixed;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  z-index: 1304;
}

/* === Responsive === */
@media (max-width: 900px) {

  .brox-navbar,
  .brox-navbar-loggedout {
    padding: 0 0.5rem;
  }

  .brox-img {
    height: 36px;
    margin-right: 0.3rem;
  }

  .brox-title {
    font-size: 1.1rem;
  }

  .menu-link {
    font-size: 0.95rem;
    padding: 0 0.3rem;
    height: 48px;
  }

  .login-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.8rem;
  }

  .navbar-global-search {
    width: 44px;
  }

  .navbar-global-search--expanded {
    width: clamp(240px, 38vw, 360px);
  }

  .navbar-global-search-input {
    height: 34px;
  }
}

@media (max-width: 760px) {
  .navbar-global-search {
    display: block;
    width: 44px;
    z-index: 4;
  }

  .navbar-global-search--expanded {
    width: min(64vw, 360px);
  }

  .navbar-global-search-inner {
    filter: drop-shadow(0 4px 10px rgba(35, 66, 47, 0.2));
  }

  .navbar-global-search-input {
    height: 36px;
    border-width: 2px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fffdf4;
  }

  .menu-link span {
    display: none !important;
  }

  .menu-link {
    padding: 0 0.25rem;
  }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 500px) {
  .navbar-global-search {
    width: 44px;
  }

  .navbar-global-search--expanded {
    width: min(70vw, 320px);
  }
}

.sidebar-slide-enter-active,
.sidebar-slide-leave-active {
  transition: transform 0.24s cubic-bezier(.22, 1, .36, 1), opacity 0.2s ease;
}

.sidebar-slide-enter,
.sidebar-slide-enter-from,
.sidebar-slide-leave-to {
  opacity: 0;
  transform: translateX(-18px);
}

.sidebar-slide-enter-to,
.sidebar-slide-leave-from {
  opacity: 1;
  transform: translateX(0);
}

/* === Layout Shell === */
.layout-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  /* allow natural height growth instead of forcing 100vh which can create overflow issues */
  height: auto;
  overflow-x: hidden;
  background: var(--theme-bg-yellow);
  background-color: var(--theme-bg-yellow);
}

.layout-body {
  display: flex;
  flex-grow: 1;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  overflow: visible;
}

.broxtech-footer {
  flex-shrink: 0;
}

/* === Sidebar Base Styles === */
.SidebarMain,
.RightSideBar {
  flex-shrink: 0;
  /* Prevents sidebars from shrinking when the window is narrow */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.2s ease;
}


.RightSideBar {
  background-color: var(--theme-bg-yellow);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.08);
  z-index: 2147482500;
}

/* This class is added by RightSideBar.vue when the overlay prop is true */
.RightSideBar.is-overlay {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  max-width: 100vw;
  min-width: 0;
  z-index: 2147482502;
  /* Ensures it's on top of everything */
}

.left-sidebar-backdrop {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 34, 41, 0.35);
  z-index: 1300;
}

/* === Layout Reflow Fix === */
:root {
  --left-sidebar-width: 260px;
  --left-sidebar-rail-width: 52px;
  --right-sidebar-width: 0px;
  --layout-footer-height: 56px;
  --public-footer-height: 112px;
}

.layout-root {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout-root.has-public-footer {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.layout-body {
  flex: 1 1 auto;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  display: flex !important;
  align-items: stretch;
  overflow: hidden;
}

.layout-body.is-editor-canvas-layout {
  height: calc(100vh - var(--header-height));
  min-height: 0;
  overflow: hidden;
}

.left-sidebar-rail {
  flex: 0 0 var(--left-sidebar-rail-width);
  width: var(--left-sidebar-rail-width);
  min-width: var(--left-sidebar-rail-width);
  height: 100%;
  padding: 8px 7px;
  border-right: 1px solid rgba(104, 83, 35, 0.36);
  background: linear-gradient(180deg, #f4ecd4 0%, #e9ddbd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1303;
}

.left-sidebar-rail-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #9b7a2f;
  border-radius: 8px;
  background: #fffdf5;
  color: #28482e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.left-sidebar-rail-btn:hover,
.left-sidebar-rail-btn.is-active {
  border-color: #28482e;
  background: #28482e;
  color: #fff;
}

.left-sidebar-rail-btn:focus-visible {
  outline: 3px solid rgba(31, 122, 71, 0.28);
  outline-offset: 2px;
}

.layout-body > .SidebarMain {
  position: relative !important;
  left: auto !important;
  top: 0;
  flex: 0 0 var(--left-sidebar-width);
  width: var(--left-sidebar-width) !important;
  min-width: var(--left-sidebar-width) !important;
  max-width: var(--left-sidebar-width) !important;
  /* allow sidebar to grow with page so a single scrollbar can be used */
  height: auto;
}

.layout-body > .layout-main-documents {
  flex: 1 1 auto;
  width: auto !important;
  padding-top: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.layout-body.is-editor-canvas-layout > .layout-main-documents {
  min-height: 0;
  height: 100%;
  overflow: hidden !important;
}

.layout-body > .RightSideBar:not(.is-overlay):not(.is-fullscreen) {
  position: relative !important;
  right: auto !important;
  top: 0;
  flex: 0 0 var(--right-sidebar-width);
  width: var(--right-sidebar-width) !important;
  min-width: var(--right-sidebar-width) !important;
  max-width: var(--right-sidebar-width) !important;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  overflow: visible;
  z-index: 2147482501;
}

.layout-body.is-editor-canvas-layout > .RightSideBar:not(.is-overlay):not(.is-fullscreen) {
  height: 100%;
  min-height: 0;
}

.layout-body > .RightSideBar.is-overlay {
  position: fixed !important;
  top: var(--header-height) !important;
  right: 0 !important;
  height: calc(100dvh - var(--header-height)) !important;
  min-height: calc(100vh - var(--header-height)) !important;
}

@media (max-width: 599px) {
  .layout-body {
    display: flex !important;
  }
}

@media (max-width: 899px) {
  :root {
    --left-sidebar-rail-width: 44px;
  }

  .left-sidebar-rail {
    position: relative;
    flex-basis: var(--left-sidebar-rail-width);
    padding: 8px 4px;
  }

  .sidebar-slide-enter,
  .sidebar-slide-enter-from,
  .sidebar-slide-leave-to {
    transform: translateX(-100%);
  }

  .layout-body > .SidebarMain {
    position: fixed !important;
    top: var(--header-height) !important;
    left: var(--left-sidebar-rail-width) !important;
    width: min(calc(100vw - var(--left-sidebar-rail-width)), 360px) !important;
    min-width: min(calc(100vw - var(--left-sidebar-rail-width)), 360px) !important;
    max-width: calc(100vw - var(--left-sidebar-rail-width)) !important;
    height: calc(100vh - var(--header-height)) !important;
    z-index: 1301 !important;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.20);
    border-right: 1px solid rgba(191, 167, 111, 0.5);
  }

  .SidebarMain .sidebar-resize-handle {
    display: none !important;
  }

  .layout-body > .RightSideBar.is-overlay,
  .RightSideBar.is-overlay {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: calc(100dvh - var(--header-height)) !important;
    min-height: calc(100vh - var(--header-height)) !important;
    border-left: none !important;
    box-shadow: 0 -2px 0 rgba(191, 167, 111, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 1304 !important;
  }
}

/* Keep routed views constrained to available center-column width */
.layout-body > .layout-main-documents {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

.layout-body.is-editor-canvas-layout > .layout-main-documents.is-editor-canvas-route {
  overflow: hidden !important;
}

.layout-body > .layout-main-documents > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  /* Let routed views fill the viewport but still grow with content. */
  min-height: 100%;
  height: auto;
}

.layout-body.is-editor-canvas-layout > .layout-main-documents.is-editor-canvas-route > * {
  min-height: 0 !important;
  height: 100% !important;
}

.layout-body > .layout-main-documents .app-layout-centered {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
}

.layout-body > .layout-main-documents .main-container,
.layout-body > .layout-main-documents .card-container,
.layout-body > .layout-main-documents .documents-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 100%;
  height: auto;
}

.layout-root.has-public-footer .layout-body > .layout-main-documents {
  box-sizing: border-box;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  min-height: calc(100vh - var(--header-height) - var(--public-footer-height) - 1.5rem);
}

.layout-root.has-public-footer .layout-body > .layout-main-documents > *,
.layout-root.has-public-footer .layout-body > .layout-main-documents .main-container,
.layout-root.has-public-footer .layout-body > .layout-main-documents .card-container {
  min-height: 0 !important;
}

.layout-root.has-public-footer .layout-body > .layout-main-documents > * {
  box-sizing: border-box;
}

.layout-root.has-public-footer .layout-body > .layout-main-documents > *::after {
  content: "";
  display: block;
  height: var(--public-footer-height);
}

@media (max-width: 700px) {
  :root {
    --public-footer-height: 148px;
  }

  .layout-root.has-public-footer .layout-body > .layout-main-documents {
    min-height: calc(100vh - var(--header-height) - var(--public-footer-height) - 1.5rem);
  }
}

/* === Beta Badge & Homepage Banner === */
.beta-badge {
  display: inline-block;
  background: var(--theme-gold);
  color: var(--theme-bg-yellow, #fffbe6);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  margin-left: 0.45rem;
  border-radius: 6px;
  vertical-align: middle;
  transform: translateY(-0.08rem);
}

.beta-home-banner {
  margin-top: var(--header-height); /* below navbar */
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, rgba(191,167,111,0.06), rgba(191,167,111,0.02));
  color: var(--theme-green);
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(191,167,111,0.06);
  z-index: 1000;
  position: relative;
}



/* Folder tab styling for logged-out navbar - gold outline only on selected */
.brox-navbar-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fffbe6;
}
.brox-navbar-menu .menu-link {
  background: #f0efdf;
  border: none;
  border-radius: 4px 4px 0 0;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f4732;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.brox-navbar-menu .menu-link:hover {
  background: #e8e5d8;
  transform: translateY(-1px);
}
.brox-navbar-menu .menu-link.router-link-exact-active {
  background: #fffbe6;
  border: 1px solid var(--theme-gold, #bfa76f);
  border-bottom-color: #fffbe6;
  margin-bottom: -1px;
}

/* Mobile menu folder tabs */
.mobile-menu-content ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fffbe6;
}
.mobile-menu-content .menu-link {
  background: #f0efdf;
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  height: auto;
  color: #2f4732;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.mobile-menu-content .menu-link:hover {
  background: #e8e5d8;
}
.mobile-menu-content .menu-link.router-link-exact-active {
  background: #fffbe6;
  border: 1px solid var(--theme-gold, #bfa76f);
}
.navbar-task-link {
  position: relative;
}
.navbar-task-link.has-active-tasks {
  color: #7a4d00;
}
.navbar-task-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #9b5d00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

/* Mobile logged out navbar */
.mobile-navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f0efdf;
  border: none;
  border-radius: 4px;
  color: #2f4732;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.mobile-login-link:hover {
  background: #e8e5d8;
}
.hamburger-btn {
  background: #f0efdf;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  color: #2f4732;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}
.hamburger-btn:hover {
  background: #e8e5d8;
}
.hamburger-btn.active {
  background: #fffbe6;
  border: 1px solid var(--theme-gold, #bfa76f);
}
.mobile-menu-modal {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
}
.mobile-menu-content {
  padding: 12px;
}

/* Add Folder Form */
.add-folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 5px;
}

.add-folder>div {
  width: 100%;
  margin-bottom: 5px;
}

.add-folder .button-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Inputs */
.folder-name-input,
.group-select {
  width: 100%;
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons */

.btn-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-add:hover,
.btn-add:focus {
  background: #274528;
  color: #fffbe6;
}

.btn-cancel {
  background: transparent;
  color: var(--theme-green);
  border: 2px solid var(--theme-gold);
  border-radius: 8px;
  font-family: var(--theme-font, 'Roboto-Slab', serif);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.btn-cancel:hover,
.btn-cancel:focus {
  background: #fcf8ee;
  color: #bfa76f;
}

/* Folder Manager Container */
.folder-manager {
  padding-right: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.folder-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* Tree */
.folder-tree {
  border-left: 1px solid #dee2e6;
  padding-left: 10px;
}

.folder-list,
.subfolder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subfolder-list {
  background: #45647c;
}

.folder-item,
.subfolder-item {
  width: 100%;
  margin-bottom: 0.1rem;
  display: block;
}

.subfolder-item {
  background: #a1a1a1;
  padding-left: 20px;
}

/* Folder Row */
.folder-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: background-color 0.2s ease;
  width: 100%;
  border: 1px solid transparent;
  padding: 0.1rem 0.5rem;
  box-sizing: border-box;
  min-height: 40px;
  position: relative;
}

.folder-row:hover {
  background-color: #f8f9faf6;
  border-color: #bfa76f;
}

.folder-row.open {
  background-color: #e9ecef;
}

.folder-row.selected {
  background-color: #d0ebff;
}

.folder-row.drag-over-target {
  background-color: rgba(53, 92, 58, 0.16);
  border-color: #355c3a;
  outline: 2px dashed #355c3a;
  outline-offset: -2px;
}

/* Folder Row Content */
.folder-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
}

.folder-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  align-self: flex-start;
}

.folder-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Icons */
.folder-toggle-icon {
  font-size: 0.9rem;
  color: #6c757d;
}


.folder-icon {
  font-size: 1.5rem;
  color: #355c3a;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.folder-name {
  font-size: 1rem;
  font-weight: 500;
  color: #1b2519;
  transition: opacity 0.2s;
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.2;
  max-width: 100%;
}

.folder-row:hover .folder-name,
.folder-row.selected .folder-name {
  opacity: 1;
}

/* Add/Delete Icons */
.add-folder-icon,
.delete-folder-icon {
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.add-folder-icon {
  color: #28a745;
}

.add-folder-icon:hover {
  color: #218838;
  opacity: 1;
  box-shadow: 0 1px 4px #12491e;
}

.delete-folder-icon {
  color: #dc3545;
}

.delete-folder-icon:hover {
  color: #c82333;
  opacity: 1;
}

/* Folder Actions */
.folder-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 0.5rem;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.2s;
}

.folder-row:hover .folder-actions {
  opacity: 1;
}

.folder-row:hover .add-folder-icon,
.folder-row.selected .add-folder-icon,
.folder-row:hover .delete-folder-icon,
.folder-row.selected .delete-folder-icon {
  opacity: 1;
}

/* Fade folder name when hovering over actions */
.folder-actions:hover~.folder-left .folder-name,
.folder-row:hover .folder-actions:hover~.folder-left .folder-name {
  opacity: 0.4;
  transition: opacity 0.2s;
}

.folder-row:hover .folder-actions:hover+.folder-left .folder-name {
  opacity: 0.4;
  transition: opacity 0.2s;
}

/* Empty State */
.empty-state {
  text-align: center;
  color: #6c757d;
  margin-top: 20px;
}

/* Document List */
.document-list {
  margin: 0.5em 0 0.5em 2em;
  padding: 0.7em;
  list-style: none;
  background: #f4f8fb;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.document-list-item {
  margin-bottom: 0.3em;
  background: #f6faff;
}

.document-link {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
  transition: background 0.15s;
}

.document-link:hover {
  background: #e3f0ff;
}

/* Folder Title Row */
.folder-title-with-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: var(--theme-green);
}

.folder-title-with-add .router-link,
.folder-title-with-add a {
  text-decoration: none;
  color: inherit;
}

.folder-title-with-add .router-link:hover,
.folder-title-with-add a:hover {
  text-decoration: none;
  color: inherit;
}

.folder-title-with-add .add-folder-icon {
  opacity: 0;
  transition: opacity 0.2s;
}

.folder-title-with-add:hover .add-folder-icon {
  opacity: 1;
}

/* Dropdown Button */
.folder-actions-dropdown-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6c757d;
  box-shadow: none;
  outline: none;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}

.folder-actions-dropdown-btn:hover,
.folder-actions-dropdown-btn:focus {
  background: #f8f9fa;
  color: #355c3a;
}

/* Dropdown Menu */
.folder-actions-dropdown-menu {
  position: absolute;
  top: 28px;
  right: 0;
  min-width: 140px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(80, 60, 30, 0.18);
  z-index: 9999;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #eee;
}

.folder-actions-dropdown-item {
  background: none;
  border: none;
  color: #355c3a;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  padding: 8px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}

.folder-actions-dropdown-item:hover {
  background: #eaf2eb;
  color: #274528;
}

/* Dropdown Wrapper */
.folder-actions-dropdown-wrapper {
  position: relative;
  display: inline-block;
  min-width: 32px;
  min-height: 28px;
  z-index: 10;
}

/* Fade Transition */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.15s;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.fade-enter-to,
.fade-leave-from {
  opacity: 1;
}


/* Operations buttons in folder rows */
.folder-operations-btn {
  background: transparent;
  border: 1px solid var(--theme-gold);
  color: var(--theme-green);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  margin-left: 0.25rem;
}

.folder-operations-btn:hover {
  background: var(--theme-green);
  color: var(--theme-gold);
}

/* Update existing dropdown styles */
.folder-actions-dropdown-menu {
  position: absolute;
  top: 28px;
  right: 0;
  min-width: 160px; /* Increased width for operations */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(80, 60, 30, 0.18);
  z-index: 9999;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #eee;
}

.folder-actions-dropdown-item {
  background: none;
  border: none;
  color: #355c3a;
  font-family: 'Roboto Slab', serif;
  font-size: 0.9rem; /* Slightly smaller for more items */
  padding: 6px 12px; /* Reduced padding */
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}

.folder-actions-dropdown-item:hover {
  background: #eaf2eb;
  color: #274528;
}

/* Separator for dropdown sections */
.folder-actions-separator {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

.share-folder-modal-backdrop[data-v-3e0710b0] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.share-folder-modal[data-v-3e0710b0] {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.share-folder-container[data-v-3e0710b0] {
  padding: 1.5rem;
}
.modal-header[data-v-3e0710b0] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-header h3[data-v-3e0710b0] {
  margin: 0;
  color: #333;
}
.close-btn[data-v-3e0710b0] {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.close-btn[data-v-3e0710b0]:hover {
  color: #000;
  background-color: #f5f5f5;
}
.folder-info[data-v-3e0710b0] {
  background: #f8f9fa;
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
}
.share-form label[data-v-3e0710b0] {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: #333;
}
.share-form input[data-v-3e0710b0],
.share-form select[data-v-3e0710b0] {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1rem;
  box-sizing: border-box;
}
.share-btn[data-v-3e0710b0] {
  background: #1a4a85;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
.share-btn[data-v-3e0710b0]:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}
.error-message[data-v-3e0710b0], .success-message[data-v-3e0710b0] {
  margin-top: 1em;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
}
.error-message[data-v-3e0710b0] {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}
.success-message[data-v-3e0710b0] {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}
.shared-list[data-v-3e0710b0] {
  margin-top: 2rem;
}
.shared-list ul[data-v-3e0710b0] {
  list-style: none;
  padding: 0;
}
.shared-list li[data-v-3e0710b0] {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.unshare-btn[data-v-3e0710b0] {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 1rem;
}
.unshare-btn[data-v-3e0710b0]:hover {
  background: #c82333;
}

/* ==========================================
   MODAL OVERLAY & CONTENT (Legacy - kept for backwards compatibility)
   ========================================== */
.add-document-modal-overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(30, 40, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.add-document-modal-content {
  background: var(--theme-bg, #fdfbf7); /* Light yellow theme background */
  padding: 2rem 2rem 1.5rem 2rem;
  border-radius: 14px;
  min-width: 340px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ==========================================
   OPERATIONS MODAL (Standard - Used by Move/Copy)
   ========================================== */
.operations-modal-overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(53, 92, 58, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}

.operations-modal-content {
  background: var(--theme-bg, #fdfbf7); /* Light yellow theme background */
  padding: 2rem;
  border-radius: var(--theme-radius, 12px);
  min-width: 500px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--theme-shadow, 0 8px 32px rgba(0,0,0,0.18));
  border: 2px solid var(--theme-gold, #bfa76f);
  position: relative;
}

/* ==========================================
   FORM CONTAINERS (No wrapper - just content)
   ========================================== */
.add-document-form,
.add-folder-form,
.folder-info-form,
.operations-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================
   MODAL HEADER & TITLE
   ========================================== */
.operations-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--theme-gold, #bfa76f);
}

.modal-title,
.operations-modal-title {
  color: var(--theme-green, #355c3a);
  font-family: var(--theme-font, 'Roboto Slab', serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

/* ==========================================
   CLOSE BUTTONS
   ========================================== */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.close-btn:hover { 
  color: #333; 
}

.operations-close-btn {
  background: transparent;
  border: 1px solid var(--theme-gold, #bfa76f);
  color: var(--theme-green, #355c3a);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.operations-close-btn:hover {
  background: var(--theme-gold, #bfa76f);
  color: var(--theme-green, #355c3a);
}

/* ==========================================
   FORM GROUPS & INPUTS
   ========================================== */
.operations-form-group {
  margin-bottom: 1.5rem;
}

.operations-form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--theme-green, #355c3a);
  font-family: var(--theme-font, 'Roboto Slab', serif);
  font-weight: 600;
}

.folder-name-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--theme-gold, #bfa76f);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--theme-font, 'Roboto Slab', serif);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.folder-name-input:focus {
  outline: none;
  border-color: var(--theme-green, #355c3a);
  box-shadow: 0 0 0 3px rgba(53, 92, 58, 0.1);
}

.operations-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--theme-green, #355c3a);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ==========================================
   ACTION BUTTONS ROW
   ========================================== */
.actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

/* ==========================================
   CREATE BUTTONS (Word, Text, HTML)
   ========================================== */
.create-btn {
  background: linear-gradient(135deg, var(--theme-green, #355c3a) 0%, #274528 100%);
  color: var(--theme-gold, #bfa76f);
  border: 2px solid var(--theme-gold, #bfa76f);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: var(--theme-font, 'Roboto Slab', serif);
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(53, 92, 58, 0.2);
  background: linear-gradient(135deg, #274528 0%, var(--theme-green, #355c3a) 100%);
}

.create-btn svg {
  font-size: 1.5rem;
  color: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* Document type specific colors */
.create-docx {
  background: linear-gradient(135deg, #2b579a 0%, #1e3c6b 100%);
  border-color: #4a90e2;
  color: white;
}

.create-docx:hover {
  background: linear-gradient(135deg, #1e3c6b 0%, #163059 100%);
}

.create-txt {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border-color: #333;
  color: #000;
}

.create-txt:hover {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
}

.create-html {
  background: linear-gradient(135deg, #e34f26 0%, #c43e22 100%);
  border-color: #f06529;
  color: white;
}

.create-html:hover {
  background: linear-gradient(135deg, #c43e22 0%, #a12d1e 100%);
}

.create-pdf {
  background: linear-gradient(135deg, #c62828 0%, #9b1d1d 100%);
  border-color: #ef5350;
  color: #ffffff;
}

.create-pdf:hover {
  background: linear-gradient(135deg, #9b1d1d 0%, #7f1717 100%);
}

.create-xlsx {
  background: linear-gradient(135deg, #1d6f42 0%, #185c37 100%);
  border-color: #2f8f57;
  color: #ffffff;
}

.create-xlsx:hover {
  background: linear-gradient(135deg, #185c37 0%, #14502f 100%);
}

.create-csv {
  background: linear-gradient(135deg, #0c7c90 0%, #096374 100%);
  border-color: #10a6bf;
  color: #ffffff;
}

.create-csv:hover {
  background: linear-gradient(135deg, #096374 0%, #074f5d 100%);
}

.create-md {
  background: linear-gradient(135deg, #5a3d7a 0%, #452f5e 100%);
  border-color: #7b55a6;
  color: #ffffff;
}

.create-md:hover {
  background: linear-gradient(135deg, #452f5e 0%, #352447 100%);
}

.create-freehand {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #f59e0b;
  color: #fff7ed;
}

.create-freehand:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

/* ==========================================
   DRAG & DROP AREA
   ========================================== */
.drag-drop-area {
  border: 2px dashed var(--theme-gold, #bfa76f);
  border-radius: 8px;
  background: rgba(191, 167, 111, 0.05);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.drag-drop-area:hover {
  background: rgba(191, 167, 111, 0.1);
  border-color: var(--theme-green, #355c3a);
}

.drag-drop-area.dragging {
  background: rgba(191, 167, 111, 0.2);
  border-color: var(--theme-green, #355c3a);
  border-width: 3px;
}

.drag-icon {
  font-size: 2.5rem;
  color: var(--theme-gold, #bfa76f);
  margin-bottom: 0.5rem;
}

.or {
  color: #888;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.upload-link {
  color: var(--theme-green, #355c3a);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

/* ==========================================
   FILE LIST
   ========================================== */
.selected-files-list {
  margin-top: 1rem;
}

.selected-files-list h4 {
  color: var(--theme-green, #355c3a);
  font-family: var(--theme-font, 'Roboto Slab', serif);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.selected-files-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.selected-files-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(191, 167, 111, 0.1);
  border: 1px solid rgba(191, 167, 111, 0.3);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.selected-files-list li:hover {
  background: rgba(191, 167, 111, 0.15);
}

.selected-files-list li span {
  color: #333;
  flex: 1;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.remove-file-btn:hover {
  color: #a71d2a;
}

/* ==========================================
   FOLDER TREE
   ========================================== */
.operations-folder-tree {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid var(--theme-gold, #bfa76f);
  border-radius: 8px;
  background: white;
  padding: 1rem;
}

.operations-folder-item {
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.operations-folder-item:hover {
  background: rgba(191, 167, 111, 0.15);
}

.operations-folder-item.selected {
  background: var(--theme-green, #355c3a);
  color: var(--theme-gold, #bfa76f);
}

.operations-folder-icon {
  color: var(--theme-gold, #bfa76f);
  font-size: 1.2rem;
}

.folder-expand-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.folder-expand-toggle:hover {
  background: rgba(191, 167, 111, 0.2);
}

.folder-toggle-icon {
  font-size: 0.8rem;
  color: var(--theme-green, #355c3a);
}

/* ==========================================
   MODAL ACTION BUTTONS
   ========================================== */
.operations-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(191, 167, 111, 0.3);
}

.operations-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--theme-radius, 8px);
  font-family: var(--theme-font, 'Roboto Slab', serif);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--theme-gold, #bfa76f);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.operations-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.operations-btn-primary {
  background: var(--theme-green, #355c3a);
  color: var(--theme-gold, #bfa76f);
}

.operations-btn-primary:hover:not(:disabled) {
  background: #274528;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(53, 92, 58, 0.3);
}

.operations-btn-secondary {
  background: transparent;
  color: var(--theme-green, #355c3a);
}

.operations-btn-secondary:hover:not(:disabled) {
  background: rgba(191, 167, 111, 0.1);
}

.upload-btn {
  background: var(--theme-green, #355c3a);
  color: var(--theme-gold, #bfa76f);
  border: 2px solid var(--theme-gold, #bfa76f);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--theme-font, 'Roboto Slab', serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.upload-btn:hover:not(:disabled) {
  background: #274528;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(53, 92, 58, 0.3);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.operations-progress {
  margin: 1rem 0;
  text-align: center;
  color: var(--theme-green, #355c3a);
  font-family: var(--theme-font, 'Roboto Slab', serif);
}

.operations-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(191, 167, 111, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.operations-progress-fill {
  height: 100%;
  background: var(--theme-green, #355c3a);
  transition: width 0.3s ease;
}

/* ==========================================
   FOLDER INFO SPECIFIC STYLES
   ========================================== */
.folder-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section h4 {
  color: var(--theme-green, #355c3a);
  font-family: var(--theme-font, 'Roboto Slab', serif);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--theme-gold, #bfa76f);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(191, 167, 111, 0.2);
}

.detail-row strong {
  color: var(--theme-green, #355c3a);
  font-weight: 600;
  min-width: 140px;
}

.detail-row span {
  color: #333;
  text-align: right;
  flex: 1;
}

.shares-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(191, 167, 111, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(191, 167, 111, 0.3);
}

.share-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-email {
  font-weight: 500;
  color: var(--theme-green, #355c3a);
}

.share-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.share-level {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-level.level-read {
  background: #e3f2fd;
  color: #1976d2;
}

.share-level.level-edit {
  background: #fff3e0;
  color: #f57c00;
}

.share-date {
  font-size: 0.8rem;
  color: #666;
}

/* ==========================================
   MESSAGES & STATES
   ========================================== */
.error-message {
  color: #dc3545;
  background: var(--theme-bg, #fdfbf7); /* Light yellow theme background */
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 4px solid #dc3545;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.file-exists-warning {
  color: #b85c00;
  font-size: 0.85em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.success-message {
  color: #28a745;
  background: var(--theme-bg, #fdfbf7); /* Light yellow theme background */
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 4px solid #28a745;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--theme-green, #355c3a);
  font-size: 1.1rem;
  font-family: var(--theme-font, 'Roboto Slab', serif);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .operations-modal-content {
    min-width: auto;
    width: 95vw;
    padding: 1.5rem;
  }

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

  .operations-modal-actions {
    flex-direction: column;
  }

  .operations-btn {
    width: 100%;
    justify-content: center;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .detail-row span {
    text-align: left;
  }
}

.documents-root-link[data-v-17c75964] {
  display: block;
  margin: 0.5rem 0 0.25rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(37, 65, 46, 0.75);
  text-decoration: none;
}
.documents-root-link[data-v-17c75964]:hover,
.documents-root-link[data-v-17c75964]:focus-visible {
  color: #1b3724;
  text-decoration: underline;
}
.organisation-group[data-v-17c75964] {
  margin-top: 0.5rem;
}
.organisation-group-label[data-v-17c75964] {
  margin: 0.5rem 0 0.25rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(37, 65, 46, 0.75);
}


.RightSideBar[data-v-4e099c22] {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: visible;
  height: 100%;
  min-height: 0;
  z-index: 2147482501;
}
.document-panel-resize-handle[data-v-4e099c22] {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18px;
  border: none;
  background: transparent;
  cursor: col-resize !important;
  z-index: 4;
  padding: 0;
  pointer-events: auto;
  touch-action: none;
}
.document-panel-resize-handle[data-v-4e099c22]::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 6px;
  width: 2px;
  background: rgba(53, 92, 58, 0.35);
  border-radius: 2px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.document-panel-resize-handle[data-v-4e099c22]:hover::before,
.document-panel-resize-handle[data-v-4e099c22]:focus-visible::before {
  background: rgba(53, 92, 58, 0.72);
  box-shadow: 0 0 0 2px rgba(191, 167, 111, 0.2);
}
.sidebar-rail[data-v-4e099c22] {
  width: 52px;
  min-width: 52px;
  box-sizing: border-box;
  border-left: 1px solid rgba(104, 83, 35, 0.36);
  border-right: 1px solid rgba(104, 83, 35, 0.24);
  background: linear-gradient(180deg, #f4ecd4 0%, #e9ddbd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  z-index: 2;
  height: 100%;
  overflow: hidden;
}
.sidebar-nav-group[data-v-4e099c22],
.sidebar-utility-group[data-v-4e099c22] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sidebar-editor-exit-group[data-v-4e099c22] {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 8px;
}
.sidebar-exit-btn[data-v-4e099c22] {
  color: #ffffff;
  border-color: #176b3a;
  background: #1f7a47;
  box-shadow: inset 0 0 0 2px #ffffff, 0 2px 8px rgba(0, 0, 0, 0.18);
}
.sidebar-exit-btn[data-v-4e099c22]:hover {
  color: #ffffff;
  border-color: #0f542c;
  background: #145f36;
}
.sidebar-nav-group[data-v-4e099c22] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.sidebar-utility-group[data-v-4e099c22] {
  margin-top: auto;
  flex: 0 0 auto;
}
.sidebar-content[data-v-4e099c22] {
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-content.allows-overflow[data-v-4e099c22] {
  overflow-x: visible;
}
.sidebar-content.is-hidden-panel[data-v-4e099c22] {
  overflow: hidden;
}
.sidebar-blank-canvas[data-v-4e099c22] {
  flex: 1 1 auto;
  min-height: 0;
  background: linear-gradient(180deg, rgba(245, 240, 224, 0.92) 0%, rgba(239, 233, 214, 0.95) 100%);
}
.sidebar-control-btn[data-v-4e099c22] {
  background: #fffdf5;
  border: 1px solid #9b7a2f;
  color: #28482e;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  padding: 0;
}
.sidebar-control-btn[data-v-4e099c22] svg {
  color: currentColor;
  opacity: 1;
  width: 1rem;
  height: 1rem;
}
.sidebar-control-btn[data-v-4e099c22]:hover {
  background: #9b7a2f;
  color: #fff;
}
.sidebar-control-btn.is-active[data-v-4e099c22] {
  background: #28482e;
  border-color: #28482e;
  color: #fff;
}
.sidebar-control-btn[data-v-4e099c22]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.RightSideBar.is-blank[data-v-4e099c22] {
  box-shadow: none;
}
.RightSideBar.is-blank .sidebar-content[data-v-4e099c22] {
  display: none;
}
.RightSideBar.is-overlay[data-v-4e099c22] {
  width: min(100vw, 440px) !important;
}
.RightSideBar.is-overlay.is-blank[data-v-4e099c22] {
  left: auto !important;
  right: 0 !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
}
.RightSideBar.is-overlay .sidebar-rail[data-v-4e099c22] {
  width: 48px;
  min-width: 48px;
}
@media (max-width: 899px) {
.RightSideBar.is-overlay[data-v-4e099c22] {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
}
.RightSideBar.is-overlay.is-blank[data-v-4e099c22] {
    left: auto !important;
    right: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
}
.RightSideBar.is-overlay .sidebar-rail[data-v-4e099c22] {
    width: 44px;
    min-width: 44px;
    padding: 8px 4px;
}
}


.broxtech-footer[data-v-67e07143] {
  width: 100%;
  background: var(--theme-green);
  color: var(--theme-bg-yellow);
  text-align: center;
  padding: 0.65rem 1rem;
  font-family: var(--theme-font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 -2px 8px rgba(191, 167, 111, 0.08);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
}
body.has-gdpr-banner {
  bottom: 86px;
}
@media (max-width: 700px) {
body.has-gdpr-banner {
    bottom: 120px;
}
}
.footer-content[data-v-67e07143] {
  margin: 0 auto;
  max-width: 900px;
}
.footer-line[data-v-67e07143] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.footer-links[data-v-67e07143] {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}
.footer-links a[data-v-67e07143],
.footer-line a[data-v-67e07143] {
  color: var(--theme-bg-yellow);
  text-decoration: underline;
  font-weight: 700;
}
.footer-links a[data-v-67e07143]:hover,
.footer-line a[data-v-67e07143]:hover {
  color: #fffbe6;
}
.footer-trust[data-v-67e07143] {
  margin: 0.35rem auto 0;
  max-width: 880px;
  font-size: 0.82rem;
}
.footer-hamburger[data-v-67e07143] {
  background: transparent;
  border: none;
  color: var(--theme-bg-yellow);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-hamburger[data-v-67e07143]:hover {
  color: #fffbe6;
}
.footer-links.mobile-hidden[data-v-67e07143] {
  display: none;
}
@media (min-width: 800px) {
.footer-hamburger[data-v-67e07143] {
    display: none;
}
.footer-links.mobile-hidden[data-v-67e07143] {
    display: flex;
}
}


.notification[data-v-b25a2d5e] {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--theme-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--theme-green);
  background: linear-gradient(135deg, var(--theme-bg-yellow) 0%, var(--theme-bg) 100%);
  border: 1px solid rgba(191, 167, 111, 0.55);
  box-shadow: var(--theme-shadow, 0 2px 12px rgba(191, 167, 111, 0.08));
}
.notification-main[data-v-b25a2d5e] {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}
.notification-message[data-v-b25a2d5e] {
  overflow-wrap: anywhere;
}
.notification-actions[data-v-b25a2d5e] {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
[data-v-b25a2d5e] .notification-action {
  color: var(--theme-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
.notification-overlay[data-v-b25a2d5e] {
  position: fixed;
  top: calc(var(--header-height, 48px) + 12px);
  left: calc(var(--left-sidebar-rail-width, 52px) + var(--left-sidebar-width, 0px) + 12px);
  right: calc(var(--right-sidebar-width, 0px) + 12px);
  z-index: 1500;
  margin: 0;
  box-shadow: 0 12px 28px rgba(53, 92, 58, 0.22);
}
@media (max-width: 700px) {
.notification-overlay[data-v-b25a2d5e] {
    left: 12px;
    right: 12px;
}
}
.notification-success[data-v-b25a2d5e] {
  color: var(--theme-green);
  border-color: var(--theme-green);
  border-left: 5px solid var(--theme-green);
}
.notification-error[data-v-b25a2d5e] {
  color: #6f2d22;
  background: linear-gradient(135deg, #fff8ee 0%, var(--theme-bg-yellow) 100%);
  border-color: rgba(111, 45, 34, 0.42);
  border-left: 5px solid #6f2d22;
}
.notification-info[data-v-b25a2d5e] {
  color: var(--theme-green);
  border-color: var(--theme-gold);
  border-left: 5px solid var(--theme-gold);
}
.close-btn[data-v-b25a2d5e] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  background: rgba(191, 167, 111, 0.12);
  border: 1px solid rgba(191, 167, 111, 0.28);
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.close-btn[data-v-b25a2d5e]:hover {
  background: var(--theme-gold);
  border-color: var(--theme-gold);
  color: var(--theme-green);
}

/* --- Theme Variables --- */
:root {
  --theme-bg: #fcf8ee;
  --theme-bg-yellow: #fffbe6;
  --theme-green: #355c3a;
  --theme-gold: #bfa76f;
  --theme-radius: 1rem;
  --theme-font: 'Roboto-Slab', serif;
  --theme-shadow: 0 2px 12px rgba(191, 167, 111, 0.08);
  /* Height of the top navigation/header; adjust centrally to change layout spacing */
  --header-height: 48px;
}

/* --- Global Styles --- */

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--theme-font);
  background: var(--theme-bg-yellow);
  color: var(--theme-green);
  letter-spacing: 0.01em;
  overflow-x: hidden;
  overflow-y: auto;
}

body,
.main-container,
.section-container,
.card-container {
  color: var(--theme-green);
}


.card {
  background-color: var(--theme-bg, #fde258); /* Almost white with very subtle warm tint */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.15);
  padding: 1.5rem;
  border: 2px solid var(--theme-gold, #bfa76f);
}

.container-padded{
  padding:20px
}

body {
  background:
    linear-gradient(135deg, #fffbe6 0%, #f7ecd2 100%),
    url("data:image/svg+xml;utf8,<svg width=\"120\" height=\"120\" xmlns=\"http://www.w3.org/2000/svg\"><ellipse cx=\"60\" cy=\"60\" rx=\"40\" ry=\"20\" fill=\"rgba%28191,167,111,0.13%29\" /><ellipse cx=\"30\" cy=\"90\" rx=\"18\" ry=\"8\" fill=\"rgba%28191,167,111,0.09%29\" /><ellipse cx=\"90\" cy=\"30\" rx=\"12\" ry=\"6\" fill=\"rgba%28191,167,111,0.11%29\" /></svg>");
  background-repeat: repeat;
  background-size: auto, 180px 180px;
}

body.has-gdpr-banner {
  padding-bottom: 86px;
}

body.is-editor-canvas-route {
  overflow: hidden;
  padding-bottom: 0 !important;
}

body.is-editor-canvas-route.has-gdpr-banner {
  padding-bottom: 0 !important;
}

@media (max-width: 700px) {
  body.has-gdpr-banner {
    padding-bottom: 120px;
  }

  body.is-editor-canvas-route,
  body.is-editor-canvas-route.has-gdpr-banner {
    padding-bottom: 0 !important;
  }
}

/* --- Layout --- */

.main-container {
  width: 100%;
  background: var(--theme-bg-yellow);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  
}

/* --- Card & Section --- */
.card-container {
  background: var(--theme-bg-yellow);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  border: 1px solid #eaeaea;
  margin-bottom: 1.2rem;
}

.section-container {
  background: var(--theme-bg-yellow);
  border-radius: 0.7rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Headings --- */
.app-h1 {
  text-align: center;
  background: var(--theme-bg);
  border-radius: 0.5rem;
  color: var(--theme-green);
  padding: 0.7rem;
  margin-bottom: 1.2rem;
  font-family: var(--theme-font);
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
  border-bottom: 2px solid var(--theme-gold);
}

.app-h2 {
  color: var(--theme-green);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

/* --- Navbar --- */
.navbar {
  background: var(--theme-bg-yellow) !important;
  border-bottom: 2px solid var(--theme-gold);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
  max-height: 3rem;
}

.navbar-container {
  width: 100%;
}

.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--theme-green);
  font-family: var(--theme-font);
  padding: 0.5rem 1rem;
  background: none;
  border: none;
}

.brox-img {
  height: 32px;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Tabs & Actions --- */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0.3rem;
  text-decoration: none;
}

.actions-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* --- Card Header & Tab Header --- */
.card-header {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 0.75rem;
}

.tab-header {
  background: var(--theme-bg-yellow);
  border: 2px solid var(--theme-gold);
  border-bottom: 3px solid var(--theme-gold);
  border-radius: 12px 12px 0 0;
  padding: 0.55rem 1.25rem 0.45rem;
  font-weight: 600;
  color: var(--theme-green);
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 4px 10px rgba(191, 167, 111, 0.18);
  font-size: 1.05rem;
}

/* --- Forms --- */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-green);
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: .35rem;
}

.form-input,
input,
.form-control,
.login-input,
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #c9b993;
  border-radius: 8px;
  background: #fdfbf6;
  font-size: 0.95rem;
  font-family: var(--theme-font);
  color: #2f4732;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.form-input:focus,
input:focus,
.form-control:focus,
.login-input:focus,
textarea:focus {
  outline: none;
  border-color: var(--theme-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(191, 167, 111, 0.25);
}

.form-input:hover,
input:hover,
.form-control:hover,
.login-input:hover,
textarea:hover {
  border-color: var(--theme-gold);
}

.form-actions {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Buttons --- */
.btn,
.login-btn,
.brox-primary-btn {
  background: var(--theme-green) !important;
  color: var(--theme-gold) !important;
  border: 2px solid var(--theme-gold) !important;
  border-radius: 10px;
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(191, 167, 111, 0.22);
  transition: background .22s, box-shadow .22s, transform .12s, color .18s;
}

.btn:hover,
.login-btn:hover,
.brox-primary-btn:hover {
  background: #274528;
  /* even darker green on hover */
  color: #fffbe6;
  /* light yellow text on hover */
  box-shadow: 0 6px 18px rgba(191, 167, 111, 0.32);
  border-color: #a68b5b;
}

.btn:active,
.login-btn:active,
.brox-primary-btn:active {
  background: #1c331c;
  /* darkest green on active */
  color: #fffbe6;
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(191, 167, 111, 0.24);
}

.btn:disabled,
.login-btn:disabled,
.brox-primary-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--theme-green);
  color: #fff;
  border: 2px solid var(--theme-gold);
  border-radius: 10px;
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(191, 167, 111, 0.18);
  transition: background .22s, box-shadow .22s, transform .12s, color .18s;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #274528;
  color: #fffbe6;
  box-shadow: 0 6px 18px rgba(191, 167, 111, 0.28);
  border-color: #a68b5b;
}

.btn-secondary:active {
  background: #1c331c;
  color: #fffbe6;
  box-shadow: 0 4px 12px rgba(191, 167, 111, 0.24);
}

.btn-secondary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-secondary-soft {
  background: var(--theme-bg-yellow) !important;
  color: var(--theme-green) !important;
  border: 2px solid var(--theme-gold) !important;
  box-shadow: 0 2px 10px rgba(53, 92, 58, 0.18) !important;
}

.btn-secondary-soft:hover,
.btn-secondary-soft:focus {
  background: #f4edcc !important;
  color: #274528 !important;
  border-color: var(--theme-gold) !important;
  box-shadow: 0 6px 16px rgba(53, 92, 58, 0.24) !important;
}

.btn-secondary-soft:active {
  background: #ece2b8 !important;
  color: #1f3a23 !important;
  border-color: var(--theme-gold) !important;
}

.btn-secondary-soft:disabled {
  opacity: .65;
  cursor: not-allowed;
}



/* --- Alerts & Errors --- */
.error-feedback {
  color: #b5483d;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

.alert-msg,
.alert-success,
.alert-danger {
  margin-top: .75rem;
  background: #fff3f3;
  border: 1px solid #e2b1b1;
  padding: 0.65rem .9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #822c2c;
  box-shadow: 0 2px 6px rgba(130, 44, 44, 0.12);
}

.alert-success {
  background: #eaf2eb;
  border-color: #bfa76f;
  color: var(--theme-green);
}

.alert-danger {
  background: #fff3f3;
  border-color: #e2b1b1;
  color: #822c2c;
}

/* --- Utility --- */
.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Responsive --- */
/* Remove underlines from all links */
a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

a:focus {
  text-decoration: none !important;
}

a:active {
  text-decoration: none !important;
}

a:visited {
  text-decoration: none !important;
}

/* Update existing link styles to ensure no underlines */
.tab-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0.3rem;
  text-decoration: none !important;
}

.action-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-decoration: none !important;
  justify-content: flex-start;
  gap: 0.5rem;
}
/* === Main Content === */
.layout-main-documents {
  flex-grow: 1;
  padding-right: 10px;
  /* allow main document area to flow with the page (single master scrollbar) */
  overflow: visible;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: visible;
  position: relative;
  z-index: 1;
  background: var(--theme-bg-yellow);
  padding-top: var(--header-height);
  padding-bottom: 0;
  /* ensure the main documents area fills the viewport beneath the header */
  min-height: calc(100vh - var(--header-height));
}



.layout-main-documents.is-editor-canvas-route {
  padding-bottom: 0;
}


/* === Navbar/Header === */
.brox-navbar,
.brox-navbar-loggedout {
  position: fixed;
  top: 0;
  left: 0;
  /* use 100% to avoid horizontal scrollbar created by 100vw */
  width: 100%;
  height: var(--header-height);
  background: var(--theme-bg-yellow);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
  z-index: 1100;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0.75rem;
}

.brox-navbar {
  z-index: 2147483640;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.brox-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.brox-img {
  height: 36px;
  margin-right: 0.45rem;
}

.brox-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--theme-green);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* === Navbar Menu === */
.header-menu,
.brox-navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.brox-navbar-menu {
  justify-content: flex-end;
}

.brox-navbar-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-menu {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0.75rem;
  justify-content: flex-start;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.navbar-left {
  flex: 0 1 auto;
  min-width: 0;
}

.navbar-right {
  margin-left: auto;
  position: relative;
  z-index: 2147483641;
}

.navbar-global-search {
  position: relative;
  left: auto;
  transform: none;
  flex: 0 0 44px;
  width: 44px;
  margin: 0 0.15rem 0 auto;
  z-index: 3;
  transition: width 0.22s ease, flex-basis 0.22s ease, filter 0.18s ease;
}

.navbar-global-search--expanded {
  flex-basis: clamp(260px, 30vw, 440px);
  width: clamp(260px, 30vw, 440px);
  z-index: 2147483642;
}

.navbar-global-search-inner {
  position: relative;
  width: 100%;
}

.navbar-global-search--expanded .navbar-global-search-inner {
  filter: drop-shadow(0 8px 18px rgba(35, 66, 47, 0.14));
}

.navbar-global-search-inner--scoped .navbar-global-search-input {
  padding-left: 9rem;
}

.navbar-global-search-inner--scoped .navbar-global-search-icon {
  left: 7.6rem;
}

.navbar-global-search-scope-trigger {
  position: absolute;
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  min-width: 102px;
  border: 1px solid rgba(53, 92, 58, 0.28);
  border-radius: 999px;
  background: #f5efdd;
  color: #2f5233;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  cursor: pointer;
}

.navbar-global-search-scope-trigger:hover,
.navbar-global-search-scope-trigger:focus {
  background: #ecdfbd;
  outline: none;
}

.navbar-global-search-scope-label {
  white-space: nowrap;
}

.navbar-global-search-scope-caret {
  font-size: 0.68rem;
  transition: transform 0.18s ease;
}

.navbar-global-search-scope-caret.open {
  transform: rotate(180deg);
}

.navbar-global-search-scope-menu {
  position: absolute;
  top: calc(100% + 0.36rem);
  left: 0;
  right: 0;
  background: #fffdf6;
  border: 1px solid rgba(53, 92, 58, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(35, 66, 47, 0.14);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  z-index: 8;
}

.navbar-global-search-scope-option {
  border: none;
  background: transparent;
  border-radius: 9px;
  width: 100%;
  text-align: left;
  padding: 0.48rem 2rem 0.48rem 0.65rem;
  cursor: pointer;
  color: #2b4b2f;
  position: relative;
}

.navbar-global-search-scope-option:hover,
.navbar-global-search-scope-option.active {
  background: rgba(191, 167, 111, 0.2);
}

.navbar-global-search-scope-option-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
}

.navbar-global-search-scope-option-description {
  display: block;
  font-size: 0.73rem;
  margin-top: 0.08rem;
  color: rgba(40, 70, 46, 0.76);
}

.navbar-global-search-scope-option-check {
  position: absolute;
  right: 0.62rem;
  top: 50%;
  transform: translateY(-50%);
  color: #355c3a;
}

.navbar-global-search-input {
  width: 100%;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(53, 92, 58, 0.35);
  background: #fffef8;
  color: var(--theme-green);
  font-size: 0.92rem;
  padding: 0.45rem 2.2rem 0.45rem 2.2rem;
  transition: color 0.16s ease, padding 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input {
  padding: 0;
  color: transparent;
  caret-color: transparent;
  cursor: pointer;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::-moz-placeholder {
  color: transparent;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::placeholder {
  color: transparent;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-scope-trigger,
.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-clear {
  opacity: 0;
  pointer-events: none;
}

.navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-icon {
  left: 50%;
  transform: translate(-50%, -50%);
}

.navbar-global-search-input:focus {
  outline: none;
  border-color: var(--theme-green);
  box-shadow: 0 0 0 2px rgba(53, 92, 58, 0.12);
}

.navbar-global-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(35, 66, 47, 0.72);
  pointer-events: none;
}

.navbar-global-search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(35, 66, 47, 0.72);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.navbar-global-search-clear:hover {
  background: rgba(53, 92, 58, 0.1);
  color: #1d3623;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-green);
  background: none;
  border: none;
  box-sizing: border-box;
  padding: 0 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  height: calc(var(--header-height) - 10px);
  line-height: 1;
  white-space: nowrap;
}

.menu-link:hover,
.menu-link.active {
  background: var(--theme-gold);
  color: var(--theme-green);
}

.login-link {
  background: var(--theme-green);
  color: var(--theme-gold);
  border: 2px solid var(--theme-gold);
  border-radius: 8px;
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 0.8rem;
  margin-left: 0.15rem;
  transition: background .18s, color .18s, box-shadow .18s;
}

.login-link:hover {
  background: #274528;
  color: var(--theme-gold);
  box-shadow: 0 4px 12px rgba(191, 167, 111, 0.18);
  border-color: #a68b5b;
}

.menu-link .enquiry-icon,
.menu-link .products-icon,
.menu-link .members-icon {
  font-size: 1.1em;
}

/* === Admin Dropdown === */
.admin-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.admin-menu-trigger {
  min-width: 88px;
  justify-content: center;
}

.admin-menu-trigger.active {
  background: var(--theme-gold);
  color: var(--theme-green);
}

.admin-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid rgba(191, 167, 111, 0.55);
  border-radius: 10px;
  background: #fffbe6;
  box-shadow: 0 14px 30px rgba(35, 66, 47, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 2147483642;
}

.admin-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--theme-green);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.admin-dropdown-link:hover,
.admin-dropdown-link.router-link-exact-active {
  background: var(--theme-gold);
  color: #fffbe6;
}

.admin-dropdown-link svg {
  width: 1rem;
  flex: 0 0 1rem;
}

/* === User Dropdown === */
.user-dropdown-btn {
  background: none;
  border: none;
  color: var(--theme-green);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.user-dropdown-menu {
  position: absolute;
  top: var(--header-height);
  right: 0;
  background: var(--theme-bg-yellow);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.12);
  border-radius: 8px;
  min-width: 140px;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  z-index: 2147483642;
}

.dropdown-link {
  padding: 0.5rem 1rem;
  color: var(--theme-green);
  text-decoration: none;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.dropdown-link:hover {
  background: var(--theme-gold);
  color: #fffbe6;
}

/* === Hamburger & Mobile Menu === */
.mobile-navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
  margin-left: auto;
  position: relative;
}

.mobile-navbar-actions .mobile-icon-btn,
.mobile-navbar-actions .hamburger-btn {
  background: #fffdf4;
  border: 1px solid rgba(53, 92, 58, 0.24);
  color: var(--theme-green);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 5px rgba(53, 92, 58, 0.08);
}

.mobile-navbar-actions .mobile-icon-btn:hover,
.mobile-navbar-actions .hamburger-btn:hover,
.mobile-navbar-actions .hamburger-btn.active {
  background: var(--theme-gold);
  color: var(--theme-green);
  border-color: rgba(53, 92, 58, 0.34);
}

.mobile-menu-modal {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(92vw, 360px);
  max-height: calc(100dvh - var(--header-height) - 0.75rem);
  overflow-y: auto;
  background: transparent;
  z-index: 2147483642;
  display: block;
}

.mobile-menu-content {
  background: #fffbe6;
  border: 1px solid rgba(191, 167, 111, 0.55);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(35, 66, 47, 0.18);
  padding: 0.55rem;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.mobile-menu-search {
  padding: 0.2rem 0.2rem 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(191, 167, 111, 0.35);
}

.mobile-menu-search .navbar-global-search {
  position: static;
  left: auto;
  transform: none;
  width: 100%;
  margin: 0;
  z-index: auto;
}

.mobile-menu-search .navbar-global-search-inner {
  filter: none;
}

.mobile-menu-search .navbar-global-search-input,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input {
  padding: 0.45rem 2.2rem 0.45rem 2.2rem;
  color: var(--theme-green);
  caret-color: auto;
  cursor: text;
}

.mobile-menu-search .navbar-global-search-input::-moz-placeholder, .mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::-moz-placeholder {
  color: rgba(35, 66, 47, 0.58);
}

.mobile-menu-search .navbar-global-search-input::placeholder,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-input::placeholder {
  color: rgba(35, 66, 47, 0.58);
}

.mobile-menu-search .navbar-global-search-inner--scoped .navbar-global-search-input,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-inner--scoped .navbar-global-search-input {
  padding-left: 9rem;
}

.mobile-menu-search .navbar-global-search-icon,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-icon {
  left: 0.8rem;
  transform: translateY(-50%);
}

.mobile-menu-search .navbar-global-search-inner--scoped .navbar-global-search-icon,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-inner--scoped .navbar-global-search-icon {
  left: 7.6rem;
}

.mobile-menu-search .navbar-global-search-scope-trigger,
.mobile-menu-search .navbar-global-search-clear,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-scope-trigger,
.mobile-menu-search .navbar-global-search:not(.navbar-global-search--expanded) .navbar-global-search-clear {
  opacity: 1;
  pointer-events: auto;
}

.mobile-user-dropdown {
  top: calc(100% + 0.35rem);
  right: 2.95rem;
}

/* === Sidebars === */
.SidebarMain {
  position: relative;
  top: var(--header-height);
  width: var(--left-sidebar-width);
  min-width: 180px;
  max-width: 400px;
  transition: width 0.2s;
  background: var(--theme-bg-yellow);
  /* prefer flexible height to avoid creating a second scrollbar; allow natural flow */
  box-sizing: border-box;
  /* fill the available viewport height beneath the header so borders extend to bottom */
  height: calc(100vh - var(--header-height));
  box-shadow: 2px 0 8px rgba(80, 60, 30, 0.10);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

@media (max-width: 599px) {
  .SidebarMain {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: calc(100vh - var(--header-height));
    z-index: 1200;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(80, 60, 30, 0.10);
  }
}

.right-sidebar {
  z-index: 10000 !important;
  /* Above modals (9999) */
}

/* Left sidebar should be below modals */
.sidebar-main {
  z-index: 100 !important;
}

.RightSideBar {
  width: var(--right-sidebar-width);
  top:var(--header-height);
  min-width: 220px;
  max-width: 1700px;
  transition: width 0.2s;
  background: var(--theme-bg-yellow);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
  z-index: 100;
  /* allow content in this panel to scroll when necessary */
  height: auto;
  /* allow the sidebar to grow with page content so its left border extends to the bottom */
  max-height: none;
  align-self: stretch;
  overflow: visible;
  flex-shrink: 0;
  position: relative;
  border-left: 0;
}

.RightSideBar::before {
  content: none;
}

/* === Resize Handle === */
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  z-index: 10;
  background: transparent;
}

.enhanced-resize-handle {
  background: linear-gradient(90deg, #bfa76f 60%, #e7d9c4 100%);
  border-right: 2px solid #a68b5b;
}

.sidebar-resize-handle:hover,
.enhanced-resize-handle:hover {
  background: linear-gradient(90deg, #e7d9c4 0%, #bfa76f 100%);
}

.resize-grip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #355c3a;
  font-size: 1.7rem;
  opacity: 0.85;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* === Sidebar Internal === */
.folder-manager-wrapper {
  padding: 10px;
  border-top: 1px solid #dee2e6;
  margin-top: 10px;
}

.group-sidebar-title {
  margin: 1.5rem 0 0.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #234;
  letter-spacing: 0.01em;
}

/* === Sidebar Header === */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-header h3 {
  margin: 0;
  color: #4F5D75;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Sidebar Buttons === */
.toggle-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.toggle-btn {
  position: fixed;
  top: 50px;
  left: 10px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-green);
  color: var(--theme-gold);
  border: 2px solid var(--theme-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.hide-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: var(--theme-green);
  border: 1px solid var(--theme-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(80, 60, 30, 0.10);
  transition: background-color 0.2s, color 0.2s;
}

.toggle-btn:hover,
.hide-btn:hover {
  color: #fffbe6;
  background-color: #274528;
}

.show-sidebar-btn:hover {
  background-color: #3d4a5f;
}

/* === Sidebar Nav === */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  /* avoid internal sidebar scrollbar so the page provides the master scrollbar */
  overflow: visible;
}

.nav-item {
  display: block;
  width: 100%;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.2s;
  padding: 0;
  margin: 2px 0;
  border-radius: 4px;
}

.nav-item-content {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  width: 100%;
}

.nav-item:hover {
  background-color: #e9ecef;
  color: #212529;
}

.nav-item.active {
  background-color: #4F5D75;
  color: white;
}

.nav-item svg {
  width: 20px;
  min-width: 20px;
  margin-right: 10px;
}

.sidebar-footer {
  padding: 15px;
  border-top: 1px solid #dee2e6;
}

.new-doc-btn {
  width: 100%;
  padding: 8px 0;
  background-color: #4F5D75;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.new-doc-btn:hover {
  background-color: #3d4a5f;
}

/* === Sidebar Animations === */
.slide-enter-active,
.slide-leave-active {
  transition: transform 0.3s;
}

.slide-enter-from,
.slide-leave-to {
  transform: translateX(100%);
}

.slide-enter-to,
.slide-leave-from {
  transform: translateX(0);
}

/* === Overlay for mobile right sidebar === */
.RightSideBar.overlay,
.RightSideBar.is-overlay {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  z-index: 1304;
}



/* === UNIFIED MODAL STYLES === */
.modal-warning {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-info {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  margin: 12px 0;
}

.delete-modal-item {
  font-weight: 600;
  color: #333;
  margin: 8px 0;
}

/* Z-index hierarchy */
.modal-overlay {
  z-index: 10000 !important;
  /* Above sidebars (z-index: 100) */
}

.RightSideBar.is-fullscreen {
  transform-origin: right;
  width: 100vw;
  /* or whatever width you want for fullscreen */
  max-width: 100vw;
  position: fixed;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  z-index: 1304;
}

/* === Responsive === */
@media (max-width: 900px) {

  .brox-navbar,
  .brox-navbar-loggedout {
    padding: 0 0.5rem;
  }

  .brox-img {
    height: 36px;
    margin-right: 0.3rem;
  }

  .brox-title {
    font-size: 1.1rem;
  }

  .menu-link {
    font-size: 0.95rem;
    padding: 0 0.3rem;
    height: 48px;
  }

  .login-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.8rem;
  }

  .navbar-global-search {
    width: 44px;
  }

  .navbar-global-search--expanded {
    width: clamp(240px, 38vw, 360px);
  }

  .navbar-global-search-input {
    height: 34px;
  }
}

@media (max-width: 760px) {
  .navbar-global-search {
    display: block;
    width: 44px;
    z-index: 4;
  }

  .navbar-global-search--expanded {
    width: min(64vw, 360px);
  }

  .navbar-global-search-inner {
    filter: drop-shadow(0 4px 10px rgba(35, 66, 47, 0.2));
  }

  .navbar-global-search-input {
    height: 36px;
    border-width: 2px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fffdf4;
  }

  .menu-link span {
    display: none !important;
  }

  .menu-link {
    padding: 0 0.25rem;
  }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 500px) {
  .navbar-global-search {
    width: 44px;
  }

  .navbar-global-search--expanded {
    width: min(70vw, 320px);
  }
}

.sidebar-slide-enter-active,
.sidebar-slide-leave-active {
  transition: transform 0.24s cubic-bezier(.22, 1, .36, 1), opacity 0.2s ease;
}

.sidebar-slide-enter,
.sidebar-slide-enter-from,
.sidebar-slide-leave-to {
  opacity: 0;
  transform: translateX(-18px);
}

.sidebar-slide-enter-to,
.sidebar-slide-leave-from {
  opacity: 1;
  transform: translateX(0);
}

/* === Layout Shell === */
.layout-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  /* allow natural height growth instead of forcing 100vh which can create overflow issues */
  height: auto;
  overflow-x: hidden;
  background: var(--theme-bg-yellow);
  background-color: var(--theme-bg-yellow);
}

.layout-body {
  display: flex;
  flex-grow: 1;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  overflow: visible;
}

.broxtech-footer {
  flex-shrink: 0;
}

/* === Sidebar Base Styles === */
.SidebarMain,
.RightSideBar {
  flex-shrink: 0;
  /* Prevents sidebars from shrinking when the window is narrow */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.2s ease;
}


.RightSideBar {
  background-color: var(--theme-bg-yellow);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.08);
  z-index: 2147482500;
}

/* This class is added by RightSideBar.vue when the overlay prop is true */
.RightSideBar.is-overlay {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  max-width: 100vw;
  min-width: 0;
  z-index: 2147482502;
  /* Ensures it's on top of everything */
}

.left-sidebar-backdrop {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 34, 41, 0.35);
  z-index: 1300;
}

/* === Layout Reflow Fix === */
:root {
  --left-sidebar-width: 260px;
  --left-sidebar-rail-width: 52px;
  --right-sidebar-width: 0px;
  --layout-footer-height: 56px;
  --public-footer-height: 112px;
}

.layout-root {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout-root.has-public-footer {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.layout-body {
  flex: 1 1 auto;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  display: flex !important;
  align-items: stretch;
  overflow: hidden;
}

.layout-body.is-editor-canvas-layout {
  height: calc(100vh - var(--header-height));
  min-height: 0;
  overflow: hidden;
}

.left-sidebar-rail {
  flex: 0 0 var(--left-sidebar-rail-width);
  width: var(--left-sidebar-rail-width);
  min-width: var(--left-sidebar-rail-width);
  height: 100%;
  padding: 8px 7px;
  border-right: 1px solid rgba(104, 83, 35, 0.36);
  background: linear-gradient(180deg, #f4ecd4 0%, #e9ddbd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1303;
}

.left-sidebar-rail-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #9b7a2f;
  border-radius: 8px;
  background: #fffdf5;
  color: #28482e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.left-sidebar-rail-btn:hover,
.left-sidebar-rail-btn.is-active {
  border-color: #28482e;
  background: #28482e;
  color: #fff;
}

.left-sidebar-rail-btn:focus-visible {
  outline: 3px solid rgba(31, 122, 71, 0.28);
  outline-offset: 2px;
}

.layout-body > .SidebarMain {
  position: relative !important;
  left: auto !important;
  top: 0;
  flex: 0 0 var(--left-sidebar-width);
  width: var(--left-sidebar-width) !important;
  min-width: var(--left-sidebar-width) !important;
  max-width: var(--left-sidebar-width) !important;
  /* allow sidebar to grow with page so a single scrollbar can be used */
  height: auto;
}

.layout-body > .layout-main-documents {
  flex: 1 1 auto;
  width: auto !important;
  padding-top: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.layout-body.is-editor-canvas-layout > .layout-main-documents {
  min-height: 0;
  height: 100%;
  overflow: hidden !important;
}

.layout-body > .RightSideBar:not(.is-overlay):not(.is-fullscreen) {
  position: relative !important;
  right: auto !important;
  top: 0;
  flex: 0 0 var(--right-sidebar-width);
  width: var(--right-sidebar-width) !important;
  min-width: var(--right-sidebar-width) !important;
  max-width: var(--right-sidebar-width) !important;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  overflow: visible;
  z-index: 2147482501;
}

.layout-body.is-editor-canvas-layout > .RightSideBar:not(.is-overlay):not(.is-fullscreen) {
  height: 100%;
  min-height: 0;
}

.layout-body > .RightSideBar.is-overlay {
  position: fixed !important;
  top: var(--header-height) !important;
  right: 0 !important;
  height: calc(100dvh - var(--header-height)) !important;
  min-height: calc(100vh - var(--header-height)) !important;
}

@media (max-width: 599px) {
  .layout-body {
    display: flex !important;
  }
}

@media (max-width: 899px) {
  :root {
    --left-sidebar-rail-width: 44px;
  }

  .left-sidebar-rail {
    position: relative;
    flex-basis: var(--left-sidebar-rail-width);
    padding: 8px 4px;
  }

  .sidebar-slide-enter,
  .sidebar-slide-enter-from,
  .sidebar-slide-leave-to {
    transform: translateX(-100%);
  }

  .layout-body > .SidebarMain {
    position: fixed !important;
    top: var(--header-height) !important;
    left: var(--left-sidebar-rail-width) !important;
    width: min(calc(100vw - var(--left-sidebar-rail-width)), 360px) !important;
    min-width: min(calc(100vw - var(--left-sidebar-rail-width)), 360px) !important;
    max-width: calc(100vw - var(--left-sidebar-rail-width)) !important;
    height: calc(100vh - var(--header-height)) !important;
    z-index: 1301 !important;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.20);
    border-right: 1px solid rgba(191, 167, 111, 0.5);
  }

  .SidebarMain .sidebar-resize-handle {
    display: none !important;
  }

  .layout-body > .RightSideBar.is-overlay,
  .RightSideBar.is-overlay {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: calc(100dvh - var(--header-height)) !important;
    min-height: calc(100vh - var(--header-height)) !important;
    border-left: none !important;
    box-shadow: 0 -2px 0 rgba(191, 167, 111, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 1304 !important;
  }
}

/* Keep routed views constrained to available center-column width */
.layout-body > .layout-main-documents {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

.layout-body.is-editor-canvas-layout > .layout-main-documents.is-editor-canvas-route {
  overflow: hidden !important;
}

.layout-body > .layout-main-documents > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  /* Let routed views fill the viewport but still grow with content. */
  min-height: 100%;
  height: auto;
}

.layout-body.is-editor-canvas-layout > .layout-main-documents.is-editor-canvas-route > * {
  min-height: 0 !important;
  height: 100% !important;
}

.layout-body > .layout-main-documents .app-layout-centered {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
}

.layout-body > .layout-main-documents .main-container,
.layout-body > .layout-main-documents .card-container,
.layout-body > .layout-main-documents .documents-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 100%;
  height: auto;
}

.layout-root.has-public-footer .layout-body > .layout-main-documents {
  box-sizing: border-box;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  min-height: calc(100vh - var(--header-height) - var(--public-footer-height) - 1.5rem);
}

.layout-root.has-public-footer .layout-body > .layout-main-documents > *,
.layout-root.has-public-footer .layout-body > .layout-main-documents .main-container,
.layout-root.has-public-footer .layout-body > .layout-main-documents .card-container {
  min-height: 0 !important;
}

.layout-root.has-public-footer .layout-body > .layout-main-documents > * {
  box-sizing: border-box;
}

.layout-root.has-public-footer .layout-body > .layout-main-documents > *::after {
  content: "";
  display: block;
  height: var(--public-footer-height);
}

@media (max-width: 700px) {
  :root {
    --public-footer-height: 148px;
  }

  .layout-root.has-public-footer .layout-body > .layout-main-documents {
    min-height: calc(100vh - var(--header-height) - var(--public-footer-height) - 1.5rem);
  }
}

/* === Beta Badge & Homepage Banner === */
.beta-badge {
  display: inline-block;
  background: var(--theme-gold);
  color: var(--theme-bg-yellow, #fffbe6);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  margin-left: 0.45rem;
  border-radius: 6px;
  vertical-align: middle;
  transform: translateY(-0.08rem);
}

.beta-home-banner {
  margin-top: var(--header-height); /* below navbar */
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, rgba(191,167,111,0.06), rgba(191,167,111,0.02));
  color: var(--theme-green);
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(191,167,111,0.06);
  z-index: 1000;
  position: relative;
}


.brox-table-container[data-v-468ed023] {
  width: 100%;
  font-family: inherit;
  margin-bottom: 0.1rem;
  max-width: 100%;
  /* Ensure container doesn't restrict width */
  background: var(--theme-bg, #fffef9);
  /* Almost white with subtle warm tint */
  border-radius: 8px;
}
.brox-table-top-controls[data-v-468ed023] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.brox-table[data-v-468ed023] {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  position: relative;
  min-height: 80px;
  table-layout: fixed;
}
[data-v-468ed023] .brox-table-cell {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-v-468ed023] .brox-table-header {
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
}
.brox-table-empty[data-v-468ed023] {
  text-align: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  margin: 0.75rem 0;
}
@media (max-width: 768px) {
.brox-table-top-controls[data-v-468ed023] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.brox-table-top-controls[data-v-468ed023] > * {
    width: 100%;
}
[data-v-468ed023] .brox-table-search {
    width: 100%;
    order: -1;
}
[data-v-468ed023] .brox-table-search .search-container {
    width: 100%;
}
[data-v-468ed023] .brox-table-search .search-input {
    height: 2.5rem;
    border-width: 2px;
    border-color: #8ca0bd;
    font-size: 0.98rem;
    font-weight: 600;
    background: #fff;
}
.brox-table[data-v-468ed023] {
    display: block;
    overflow-x: auto;
    table-layout: auto;
    white-space: normal;
}
.brox-table thead th[data-v-468ed023],
  .brox-table td[data-v-468ed023],[data-v-468ed023] .brox-table-cell {
    min-width: 118px;
    padding: 0.45rem 0.5rem;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-overflow: clip;
    line-height: 1.35;
    vertical-align: top;
}
.brox-table td.select-col[data-v-468ed023],
  .brox-table th.select-col[data-v-468ed023] {
    min-width: 44px;
}
}

/* Additional styles for making table container wider */
@media (min-width: 769px) {
.brox-table-container[data-v-468ed023] {
    width: 100%;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0 0.25rem;
}
}

/* Table body styles */
tbody[data-v-468ed023] {
  position: relative;
}


/* Highlight row on hover */
.brox-table tbody tr[data-v-468ed023]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  /* Slightly darker than default */
  transition: background-color 0.18s;
}

/* Optional: Make the cursor a pointer for interactive rows */
.brox-table tbody tr[data-v-468ed023] {
  cursor: pointer;
}
.brox-table-cell[data-v-468ed023] {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.25;
  text-overflow: ellipsis;
}

/* Alignment classes */
.align-left[data-v-468ed023] {
  text-align: left;
}
.align-center[data-v-468ed023] {
  text-align: center;
}
.align-right[data-v-468ed023] {
  text-align: right;
}

/* Loading overlay */
.loading-overlay-active[data-v-468ed023] {
  opacity: 0.6;
  pointer-events: none;
}
.table-loading-overlay[data-v-468ed023] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.loading-spinner-container[data-v-468ed023] {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.loading-spinner[data-v-468ed023] {
  font-size: 2rem;
  color: #4F5D75;
  margin-bottom: 0.5rem;
}
.brox-table-controls[data-v-468ed023] {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.limit-container[data-v-468ed023] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.limit-label[data-v-468ed023] {
  color: #555;
}
.limit-select[data-v-468ed023] {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  cursor: pointer;
}
.limit-select[data-v-468ed023]:focus {
  outline: none;
  border-color: #4F5D75;
  box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.limit-text[data-v-468ed023] {
  color: #555;
}
.select-col[data-v-468ed023] {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}
.select-col input[type="checkbox"][data-v-468ed023] {
  height: 18px;
  cursor: pointer;
  accent-color: #355c3a;
}
.brox-table tbody tr[data-v-468ed023]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

/* Highlight row on hover */
[data-v-468ed023] tr:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

/* Highlight row when selected (darker than hover) */
[data-v-468ed023] tr.selected-row {
  background-color: rgba(79, 93, 117, 0.22);
}

/* If you want selected+hover to be even darker */
[data-v-468ed023] tr.selected-row:hover {
  background-color: rgba(79, 93, 117, 0.28);
}
[data-v-468ed023] tr.keyboard-focused-row {
  outline: 2.5px solid var(--theme-green);
  /* or your preferred green */
  outline-offset: -2px;
  z-index: 2;
  position: relative;
}
.locked-row[data-v-468ed023] {
  background-color: #f5f5f5 !important;
  color: #888 !important;
}
.locked-icon[data-v-468ed023] {
  margin-left: 8px;
  color: #b71c1c;
  font-size: 1em;
  vertical-align: middle;
}

thead[data-v-98648164] {
    background-color: #f8f9fa;
}
.select-col[data-v-98648164] {
    text-align: center;
    padding: 0;
    border-bottom: 2px solid #dee2e6;
}
.select-col input[type="checkbox"][data-v-98648164] {
    height: 18px;
    cursor: pointer;
    accent-color: #355c3a;
}
.brox-table-header[data-v-98648164] {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    position: relative;
    height: 2.5rem;
}
.header-content[data-v-98648164] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sortable[data-v-98648164] {
    cursor: pointer;
}
.sortable[data-v-98648164]:hover {
    background-color: #f1f3f5;
}
.sort-icon[data-v-98648164] {
    margin-left: 0.5rem;
    color: #4F5D75;
}
th.sorted[data-v-98648164] {
    background-color: rgba(79, 93, 117, 0.05);
}
.brox-table-header[data-v-98648164]:hover {
  cursor: pointer;
  background-color: #f1f3f5;
}

.brox-table-container[data-v-1fbb1e11] {
  width: 100%;
  font-family: inherit;
  margin-bottom: 0.1rem;
  max-width: 100%;
  /* Ensure container doesn't restrict width */
  background: var(--theme-bg, #fffef9);
  /* Almost white with subtle warm tint */
  border-radius: 8px;
}
.brox-table-top-controls[data-v-1fbb1e11] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.brox-table[data-v-1fbb1e11] {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  position: relative;
  min-height: 80px;
  table-layout: fixed;
}
[data-v-1fbb1e11] .brox-table-cell {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-v-1fbb1e11] .brox-table-header {
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
}
.brox-table-empty[data-v-1fbb1e11] {
  text-align: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  margin: 0.75rem 0;
}
@media (max-width: 768px) {
.brox-table-top-controls[data-v-1fbb1e11] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.brox-table-top-controls[data-v-1fbb1e11] > * {
    width: 100%;
}
[data-v-1fbb1e11] .brox-table-search {
    width: 100%;
    order: -1;
}
[data-v-1fbb1e11] .brox-table-search .search-container {
    width: 100%;
}
[data-v-1fbb1e11] .brox-table-search .search-input {
    height: 2.5rem;
    border-width: 2px;
    border-color: #8ca0bd;
    font-size: 0.98rem;
    font-weight: 600;
    background: #fff;
}
.brox-table[data-v-1fbb1e11] {
    display: block;
    overflow-x: auto;
    table-layout: auto;
    white-space: normal;
}
.brox-table thead th[data-v-1fbb1e11],
  .brox-table td[data-v-1fbb1e11],[data-v-1fbb1e11] .brox-table-cell {
    min-width: 118px;
    padding: 0.45rem 0.5rem;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-overflow: clip;
    line-height: 1.35;
    vertical-align: top;
}
.brox-table td.select-col[data-v-1fbb1e11],
  .brox-table th.select-col[data-v-1fbb1e11] {
    min-width: 44px;
}
}

/* Additional styles for making table container wider */
@media (min-width: 769px) {
.brox-table-container[data-v-1fbb1e11] {
    width: 100%;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0 0.25rem;
}
}

/* Table body styles */
tbody[data-v-1fbb1e11] {
  position: relative;
}


/* Highlight row on hover */
.brox-table tbody tr[data-v-1fbb1e11]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  /* Slightly darker than default */
  transition: background-color 0.18s;
}

/* Optional: Make the cursor a pointer for interactive rows */
.brox-table tbody tr[data-v-1fbb1e11] {
  cursor: pointer;
}
.brox-table-cell[data-v-1fbb1e11] {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.25;
  text-overflow: ellipsis;
}

/* Alignment classes */
.align-left[data-v-1fbb1e11] {
  text-align: left;
}
.align-center[data-v-1fbb1e11] {
  text-align: center;
}
.align-right[data-v-1fbb1e11] {
  text-align: right;
}

/* Loading overlay */
.loading-overlay-active[data-v-1fbb1e11] {
  opacity: 0.6;
  pointer-events: none;
}
.table-loading-overlay[data-v-1fbb1e11] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.loading-spinner-container[data-v-1fbb1e11] {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.loading-spinner[data-v-1fbb1e11] {
  font-size: 2rem;
  color: #4F5D75;
  margin-bottom: 0.5rem;
}
.brox-table-controls[data-v-1fbb1e11] {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.limit-container[data-v-1fbb1e11] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.limit-label[data-v-1fbb1e11] {
  color: #555;
}
.limit-select[data-v-1fbb1e11] {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  cursor: pointer;
}
.limit-select[data-v-1fbb1e11]:focus {
  outline: none;
  border-color: #4F5D75;
  box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.limit-text[data-v-1fbb1e11] {
  color: #555;
}
.select-col[data-v-1fbb1e11] {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}
.select-col input[type="checkbox"][data-v-1fbb1e11] {
  height: 18px;
  cursor: pointer;
  accent-color: #355c3a;
}
.brox-table tbody tr[data-v-1fbb1e11]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

/* Highlight row on hover */
[data-v-1fbb1e11] tr:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

/* Highlight row when selected (darker than hover) */
[data-v-1fbb1e11] tr.selected-row {
  background-color: rgba(79, 93, 117, 0.22);
}

/* If you want selected+hover to be even darker */
[data-v-1fbb1e11] tr.selected-row:hover {
  background-color: rgba(79, 93, 117, 0.28);
}
[data-v-1fbb1e11] tr.keyboard-focused-row {
  outline: 2.5px solid var(--theme-green);
  /* or your preferred green */
  outline-offset: -2px;
  z-index: 2;
  position: relative;
}
.locked-row[data-v-1fbb1e11] {
  background-color: #f5f5f5 !important;
  color: #888 !important;
}
.locked-icon[data-v-1fbb1e11] {
  margin-left: 8px;
  color: #b71c1c;
  font-size: 1em;
  vertical-align: middle;
}

.infinite-scroll-pagination[data-v-53c662d1] {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0 0 0;
}
.load-more-btn[data-v-53c662d1] {
  padding: 0.6rem 1.2rem;
  margin: 0.5rem 0;
  background: #4F5D75;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.load-more-btn[data-v-53c662d1]:hover {
  background: #2d3a4d;
}
.loading-indicator[data-v-53c662d1] {
  color: #4F5D75;
  font-size: 1rem;
  margin: 0.5rem 0;
}
.end-indicator[data-v-53c662d1] {
  color: #888;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.brox-table-container[data-v-96a3dd96] {
  width: 100%;
  font-family: inherit;
  margin-bottom: 0.1rem;
  max-width: 100%;
  /* Ensure container doesn't restrict width */
  background: var(--theme-bg, #fffef9);
  /* Almost white with subtle warm tint */
  border-radius: 8px;
}
.brox-table-top-controls[data-v-96a3dd96] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.brox-table[data-v-96a3dd96] {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  position: relative;
  min-height: 80px;
  table-layout: fixed;
}
[data-v-96a3dd96] .brox-table-cell {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-v-96a3dd96] .brox-table-header {
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
}
.brox-table-empty[data-v-96a3dd96] {
  text-align: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  margin: 0.75rem 0;
}
@media (max-width: 768px) {
.brox-table-top-controls[data-v-96a3dd96] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.brox-table-top-controls[data-v-96a3dd96] > * {
    width: 100%;
}
[data-v-96a3dd96] .brox-table-search {
    width: 100%;
    order: -1;
}
[data-v-96a3dd96] .brox-table-search .search-container {
    width: 100%;
}
[data-v-96a3dd96] .brox-table-search .search-input {
    height: 2.5rem;
    border-width: 2px;
    border-color: #8ca0bd;
    font-size: 0.98rem;
    font-weight: 600;
    background: #fff;
}
.brox-table[data-v-96a3dd96] {
    display: block;
    overflow-x: auto;
    table-layout: auto;
    white-space: normal;
}
.brox-table thead th[data-v-96a3dd96],
  .brox-table td[data-v-96a3dd96],[data-v-96a3dd96] .brox-table-cell {
    min-width: 118px;
    padding: 0.45rem 0.5rem;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-overflow: clip;
    line-height: 1.35;
    vertical-align: top;
}
.brox-table td.select-col[data-v-96a3dd96],
  .brox-table th.select-col[data-v-96a3dd96] {
    min-width: 44px;
}
}

/* Additional styles for making table container wider */
@media (min-width: 769px) {
.brox-table-container[data-v-96a3dd96] {
    width: 100%;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0 0.25rem;
}
}

/* Table body styles */
tbody[data-v-96a3dd96] {
  position: relative;
}


/* Highlight row on hover */
.brox-table tbody tr[data-v-96a3dd96]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  /* Slightly darker than default */
  transition: background-color 0.18s;
}

/* Optional: Make the cursor a pointer for interactive rows */
.brox-table tbody tr[data-v-96a3dd96] {
  cursor: pointer;
}
.brox-table-cell[data-v-96a3dd96] {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.25;
  text-overflow: ellipsis;
}

/* Alignment classes */
.align-left[data-v-96a3dd96] {
  text-align: left;
}
.align-center[data-v-96a3dd96] {
  text-align: center;
}
.align-right[data-v-96a3dd96] {
  text-align: right;
}

/* Loading overlay */
.loading-overlay-active[data-v-96a3dd96] {
  opacity: 0.6;
  pointer-events: none;
}
.table-loading-overlay[data-v-96a3dd96] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.loading-spinner-container[data-v-96a3dd96] {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.loading-spinner[data-v-96a3dd96] {
  font-size: 2rem;
  color: #4F5D75;
  margin-bottom: 0.5rem;
}
.brox-table-controls[data-v-96a3dd96] {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.limit-container[data-v-96a3dd96] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.limit-label[data-v-96a3dd96] {
  color: #555;
}
.limit-select[data-v-96a3dd96] {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  cursor: pointer;
}
.limit-select[data-v-96a3dd96]:focus {
  outline: none;
  border-color: #4F5D75;
  box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.limit-text[data-v-96a3dd96] {
  color: #555;
}
.select-col[data-v-96a3dd96] {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}
.select-col input[type="checkbox"][data-v-96a3dd96] {
  height: 18px;
  cursor: pointer;
  accent-color: #355c3a;
}
.brox-table tbody tr[data-v-96a3dd96]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

/* Highlight row on hover */
[data-v-96a3dd96] tr:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

/* Highlight row when selected (darker than hover) */
[data-v-96a3dd96] tr.selected-row {
  background-color: rgba(79, 93, 117, 0.22);
}

/* If you want selected+hover to be even darker */
[data-v-96a3dd96] tr.selected-row:hover {
  background-color: rgba(79, 93, 117, 0.28);
}
[data-v-96a3dd96] tr.keyboard-focused-row {
  outline: 2.5px solid var(--theme-green);
  /* or your preferred green */
  outline-offset: -2px;
  z-index: 2;
  position: relative;
}
.locked-row[data-v-96a3dd96] {
  background-color: #f5f5f5 !important;
  color: #888 !important;
}
.locked-icon[data-v-96a3dd96] {
  margin-left: 8px;
  color: #b71c1c;
  font-size: 1em;
  vertical-align: middle;
}

.search-container[data-v-7e92e90a] {
    position: relative;
    width: 300px;
}
.search-input[data-v-7e92e90a] {
    width: 100%;
    padding: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.search-input[data-v-7e92e90a]:focus {
    outline: none;
    border-color: #4F5D75;
    box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.search-icon[data-v-7e92e90a] {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.clear-search-button[data-v-7e92e90a] {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
}
.clear-search-button[data-v-7e92e90a]:hover {
    color: #333;
    background-color: #f0f0f0;
}
.sr-only[data-v-7e92e90a] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
  

.brox-table-cell-content[data-v-361b83aa] {
    padding: 0.15rem 0;
}
.clickable[data-v-361b83aa] {
    cursor: pointer;
    color: #1a4a85;
    text-decoration: underline;
}
.truncate[data-v-361b83aa] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
  
