/* === Main Content === */
.layout-main-documents {
  flex-grow: 1;
  padding-right: 10px;
  overflow-y: visible;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  background: var(--theme-bg-yellow);
  padding-top: 40px;
  min-height: 0;
}


/* === Navbar/Header === */
.brox-navbar,
.brox-navbar-loggedout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 40px;
  background: var(--theme-bg-yellow);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
  z-index: 1100;
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
}

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

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

.brox-img {
  height: 28px;
  margin-right: 0.5rem;
}

.brox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-green);
  letter-spacing: 1px;
}

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

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

.menu-link {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-green);
  background: none;
  border: none;
  padding: 0 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  height: 40px;
}

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

.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.4rem 0.9rem;
  margin-left: 0.5rem;
  transition: background .18s, color .18s, box-shadow .18s;
}

.login-link:hover {
  background: #274528;
  color: #fffbe6;
  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 {
  margin-right: 0.4em;
  font-size: 1.1em;
}

/* === 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: 40px;
  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: 1200;
}

.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 === */
.hamburger-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-right: 1rem;
}

.hamburger-bar {
  width: 22px;
  height: 3px;
  background: var(--theme-green);
  margin: 2px 0;
  border-radius: 2px;
}

.mobile-menu-modal {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 40px);
  background: rgba(0, 0, 0, 0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

.mobile-menu-content {
  background: var(--theme-bg-yellow);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.12);
  padding: 1rem;
  margin: 0 auto;
  width: 90vw;
  max-width: 340px;
}

.modal-backdrop {
  flex: 1 1 auto;
  width: 100vw;
  height: 100%;
  background: transparent;
}

/* === Sidebars === */
.SidebarMain {
  position: relative;
  top: 40px;
  width: var(--left-sidebar-width);
  min-width: 180px;
  max-width: 400px;
  transition: width 0.2s;
  background: var(--theme-bg-yellow);
  height: calc(100vh - 40px);
  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: 40px;
    left: 0;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: calc(100vh - 40px);
    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:40px;
  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;
  height: calc(100vh - 40px);
  overflow-y: hidden;
  flex-shrink: 0;
  position: relative;
  border-left: 10px solid var(--theme-green, #355c3a);
}

.RightSideBar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  /* gold width > green width */
  height: 100%;
  background: var(--theme-gold, #bfa76f);
  z-index: 0;
  border-radius: 0 0 0 0;
}

/* === 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,
.hide-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;
}

.toggle-btn:hover,
.hide-btn:hover {
  color: #4F5D75;
  background-color: #e9ecef;
}

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

/* === Sidebar Nav === */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.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 {
  position: fixed;
  top: 40px;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  z-index: 2000;
}



/* === 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: 0;
  bottom: 0;
  z-index: 9999;
}

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

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

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

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

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

  .login-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 500px) {
  .menu-link span {
    display: none !important;
  }
}

.sidebar-slide-enter-active,
.sidebar-slide-leave-active {
  transition: width 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
}

.sidebar-slide-enter,
.sidebar-slide-leave-to {
  opacity: 0;
  width: 0 !important;
}

/* === Layout Shell === */
.layout-root {
  display: flex;
  flex-direction: column;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  background: var(--theme-bg-yellow);
  background-color: var(--theme-bg-yellow);
}

.layout-body {
  display: flex;
  flex-grow: 1;
  width: 100vw;
  min-height: calc(100vh - 40px);
  overflow: hidden;
}

.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: 100;
}

/* This class is added by RightSideBar.vue when the overlay prop is true */
.RightSideBar.is-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  z-index: 1050;
  /* Ensures it's on top of everything */
}

/* === Show Sidebar Button === */
.show-sidebar-btn {
  position: fixed;
  top: 40px; 
  left: 0;
  z-index: 10;
  background: var(--theme-green);
  color: var(--theme-gold);
  border: none;
  border-radius: 0 20px 20px 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(80, 60, 30, 0.10);
  cursor: pointer;
  transition: background 0.2s;
}

.show-sidebar-btn:hover {
  background: #274528;
  color: #fffbe6;
}

/* === Layout Reflow Fix === */
:root {
  --left-sidebar-width: 260px;
  --right-sidebar-width: 0px;
}

.layout-root {
  width: 100%;
}

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

.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;
  height: calc(100vh - 40px);
}

.layout-body > .layout-main-documents {
  flex: 1 1 auto;
  width: auto !important;
  padding-top: 0;
  min-width: 0;
}

.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(100vh - 40px);
}

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

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

.layout-body > .layout-main-documents > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !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;
}

/* 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: center;
  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 Content */
.folder-left {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

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

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


.folder-icon {
  font-size: 1.5rem;
  color: #355c3a;
}

.folder-name {
  font-size: 1rem;
  font-weight: 500;
  color: #1b2519;
  transition: opacity 0.2s;
}

.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-66bce722] {
  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-66bce722] {
  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-66bce722] {
  padding: 1.5rem;
}
.modal-header[data-v-66bce722] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-header h3[data-v-66bce722] {
  margin: 0;
  color: #333;
}
.close-btn[data-v-66bce722] {
  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-66bce722]:hover {
  color: #000;
  background-color: #f5f5f5;
}
.folder-info[data-v-66bce722] {
  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-66bce722] {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: #333;
}
.share-form input[data-v-66bce722],
.share-form select[data-v-66bce722] {
  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-66bce722] {
  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-66bce722]:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}
.error-message[data-v-66bce722], .success-message[data-v-66bce722] {
  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-66bce722] {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}
.success-message[data-v-66bce722] {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}
.shared-list[data-v-66bce722] {
  margin-top: 2rem;
}
.shared-list ul[data-v-66bce722] {
  list-style: none;
  padding: 0;
}
.shared-list li[data-v-66bce722] {
  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-66bce722] {
  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-66bce722]: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-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%);
}

/* ==========================================
   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;
  }
}
/* ==========================================
   DOCUMENT MANAGEMENT CONTAINER
   ========================================== */
.document-management-container {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   TAB CONTENT & NAVIGATION
   ========================================== */
.tab-content {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--theme-bg-yellow, #fffbe6);
}

.tab-pane-content {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-pane {
  display: none;
  height: 100%;
  overflow: hidden;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.tab-pane.active .document-preview,
.tab-pane.active .document-versions-container,
.tab-pane.active .share-document-container,
.tab-pane.active .document-comments {
  padding: 8px;
  /* was 20px */
}

/* ==========================================
   DOCUMENT HEADER
   ========================================== */
.RightSideBar,
.inline-document-header {
  background: #f5f2e6;
  /* or a darker shade, e.g. #ede6d2 */
}

.inline-document-header {
  min-height: 48px;
  /* was 72px */
  padding: 0.5rem 1rem 0.5rem 1rem;
  /* was 1.1rem 1.5rem 1.1rem 1.2rem */
  margin-bottom: 0.5rem;
  /* was 1.2rem */
}


.document-metadata {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.document-title-header {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--theme-green);
  margin: 0 0 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version-badge {
  background: var(--theme-gold);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.18em 0.7em;
  margin-left: 0.5em;
  box-shadow: 0 1px 4px rgba(191, 167, 111, 0.10);
}

.document-subtitle-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.97rem;
  color: var(--theme-dark, #222);
  background: var(--theme-bg, #f8f6f2);
  border-radius: 6px;
  padding: 0.4em 0.8em;
  margin-top: 0.5em;
  gap: 0.5em;
  font-weight: 500;
}

.doc-detail {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: var(--theme-gold, #bfa76f);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  padding: 0.1em 0.5em;
}

.separator {
  color: var(--theme-gold, #bfa76f);
  font-weight: bold;
  margin: 0 0.2em;
}

.document-subtitle-details .separator {
  margin: 0 0.5em;
  color: #bfa76f;
  font-weight: bold;
}

.document-version-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  /* Pushes to the right */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  z-index: 3;
}

.close-tab-item {
  margin-right: 0.5rem;
}

.close-tab-btn {
  background: var(--theme-gold, #bfa76f);
  color: var(--theme-green, #355c3a);
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
}

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


.menu-toggle-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  border: none;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s;
  background: var(--theme-green);
  color: #fffbe6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.45em 0.55em;
  box-shadow: none;
  margin-top: 2rem;
  margin-left: 1.1em;
  margin-right: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.menu-toggle-btn:hover,
.menu-toggle-btn:focus {
  background: #355c3a;
  /* slightly lighter green on hover */
  color: #fffbe6;
}

.menu-toggle-btn.active {
  background: var(--theme-gold);
  color: #fffbe6;
}

/* ==========================================
   DOCUMENT TABS OVERLAY
   ========================================== */
.document-tabs-overlay {
  position: relative;
  left: 0;
  right: 0;
  background: var(--theme-bg-yellow, #fffbe6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 var(--theme-radius) var(--theme-radius);
  z-index: 5;
  border: 1px solid #eee;
  border-top: none;
  overflow-y: auto;
  margin-top: 0;
  overflow-x: visible !important;
  overflow-y: auto;
}

/* Transition for the Menu */
.fade-down-enter-active,
.fade-down-leave-active {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fade-down-enter-from,
.fade-down-leave-to {
  transform: translateY(-20px);
  opacity: 0;
}

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

/* ==========================================
   FOLDER-STYLE TABS
   ========================================== */
.document-tabs {
  display: flex;
  background: var(--theme-bg-yellow);
  padding: 0 0 0 10px;
  border-bottom: 3px solid #bfa76f;
  box-shadow: 0 8px 32px rgba(191, 167, 111, 0.08), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  position: relative;
  z-index: 1;
}

.custom-tab-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  border-bottom: none;
  background: transparent;
  width: 100%;
  overflow-x: visible !important;
  max-width: 100%;
  padding-left: 0;
  padding-top:1rem;
  margin: 0;
}

.custom-tab-item {
  flex: 0 1 auto;
  margin-bottom: 0;
  margin: 0;
  padding: 0;
}


.custom-tab-link:not(:last-child) {
  border-right: none;
}

.custom-tab-link.active {
  background: linear-gradient(to bottom, #fdf6e3 80%, #fff 100%);
  color: #222;
  border-bottom: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(79, 93, 117, 0.12), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  z-index: 3;
}

.custom-tab-link:hover:not(.active) {
  background: linear-gradient(to bottom, #f8f9fa 80%, #e0e0e0 100%);
  color: #222;
}

.custom-tab-link:active {
  background: #e0e7ef;
  color: #222;
}

.custom-tab-link:focus {
  outline: 2px solid #355c3a;
  outline-offset: -2px;
}

.custom-tab-link {
  max-width: 100%;
  text-align: center;
  background: linear-gradient(to bottom, #fff 80%, #f6f8fa 100%);
  color: #355c3a;
  border: 1.5px solid #bfa76f;
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 93, 117, 0.04), 0 8px 0 -6px #e0e0e0 inset;
  position: relative;
  top: 2px;
  z-index: 2;
  transition:
    background 0.2s, color 0.2s, box-shadow 0.2s,
    min-width 0.2s, width 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  padding: 14px 0 14px 0;
}

.custom-tab-link span {
  opacity: 0;
  width: 0;
  margin-left: 0;
  transition: opacity 0.5s, width 0.5s, margin-left 0.5s;
  pointer-events: none;
  overflow: hidden;
  display: inline-block;
}

.custom-tab-link:hover,
.custom-tab-link.active {
  width: auto;
  background: linear-gradient(to bottom, #fdf6e3 80%, #fff 100%);
  color: #222;
  border-bottom: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(79, 93, 117, 0.12), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  z-index: 3;
  padding-left: 1rem;
  padding-right: 1rem;
}

.custom-tab-link:hover span,
.custom-tab-link.active span {
  opacity: 1;
  width: auto;
  margin-left: 0.5em;
  pointer-events: auto;
}

.sidebar-tab-text {
  padding: 0.5rem;
}

.custom-tab-link.only-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 44px !important;
  width: 44px;
  height: 44px;
}

.custom-tab-link.only-icon .sidebar-tab-text {
  display: none;
}

.custom-tab-link.only-icon .fa,
.custom-tab-link.only-icon svg {
  margin: 0;
  font-size: 1.3em;
}

/* ==========================================
   VERSION BADGES
   ========================================== */
.version-badge {
  background-color: #4F5D75;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 8px;
  font-weight: normal;
}

.latest-version-badge {
  display: inline-block;
  background: #4F5D75;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.latest-badge {
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* ==========================================
   DOCUMENT TABLE & FILES
   ========================================== */

.table-scroll-area {
  max-height: 70vh;
  /* or a px value that fits your layout */
  overflow-y: auto;
  overflow-x: auto;
}

.document-table-container:focus {
  outline: 2.5px solid var(--theme-gold) !important;
  outline-offset: 0;
}

@keyframes dragBorder {
  0% {
    outline-color: #1976d2;
  }

  50% {
    outline-color: #42a5f5;
  }

  100% {
    outline-color: #1976d2;
  }
}

.table-drag-over {
  animation: dragBorder 1s infinite;
  outline: 3px solid #1976d2;
  outline-offset: -2px;
  background-color: rgba(25, 118, 210, 0.12) !important;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.15);
  opacity: 0.85;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.drag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(25, 118, 210, 0.18) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 1;
}

.drag-message {
  text-align: center;
  padding: 2rem;
  border: 2px dashed #4F5D75;
  border-radius: 8px;
  background-color: white;
  max-width: 80%;
}

.drag-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #4F5D75;
}

.name-cell {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
  font-size: 1rem;
  font-weight: 500;
  color: #1b2519;
}

.filename-link {
  color: #4F5D75;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 4px 0;
}

.filename-link:hover {
  color: #2d3748;
}

.doc-filename {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.doc-filename:hover {
  background-color: rgba(79, 93, 117, 0.1);
}

.doc-filename:active {
  background-color: rgba(79, 93, 117, 0.2);
}

.file-logo {
  width: 2rem;
  margin-left: 0.5rem;
}

.mobile-filesize {
  display: none;
  margin-left: auto;
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

/* ==========================================
   DOCUMENT VERSIONS
   ========================================== */
.document-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4F5D75;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.back-link:hover {
  background-color: rgba(79, 93, 117, 0.1);
}

.versions-table-container {
  margin: 20px 0;
}

.versions-table {
  width: 100%;
}

.version-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-number {
  font-weight: 600;
  color: #4F5D75;
}

.version-content-container {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
  background-color: #f8f9fa;
}

.hide-content-btn {
  background-color: #4F5D75;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  cursor: pointer;
}

.hide-content-btn:hover {
  background-color: #3d4a5f;
}

.version-content {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  padding: 15px;
  border-radius: 4px;
  background-color: white;
}

.no-versions {
  text-align: center;
  padding: 30px 0;
  color: #6c757d;
}

.new-version-btn:hover,
.new-version-btn:focus {
  background-color: #0056b3;
  color: #fff;
}

/* ==========================================
   ACTION BUTTONS
   ========================================== */
.action-btn {
  background: none;
  border: none;
  color: #4F5D75;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.action-btn:hover:not(:disabled):not(.disabled-action) {
  background-color: rgba(79, 93, 117, 0.1);
}

.action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.disabled-action {
  cursor: pointer;
}

.greyed-out {
  opacity: 0.5;
  color: #999;
}

/* ==========================================
   MODALS
   ========================================== */
.add-document-modal {
  position: fixed;
  top: 0;
  left: var(--left-sidebar-width, 0);
  right: var(--right-sidebar-width, 0);
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  transition: left 0.3s ease, right 0.3s ease;
}

.add-document-modal .modal-content {
  background: var(--theme-bg, #fffef9);
  border-radius: 8px;
  padding: 24px;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.3s ease-out;
  z-index: 10000;
  border: 2px solid var(--theme-gold, #bfa76f);
}

.add-document-modal .modal-content.modal-content-wide {
  max-width: 700px;
}

.add-document-modal .modal-content.modal-content-xl {
  max-width: 900px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}

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

.add-document-modal h3 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.add-document-modal p {
  margin: 12px 0;
  color: #555;
  line-height: 1.5;
}

.add-document-modal strong {
  color: #333;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.add-document-modal .modal-actions {
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.add-document-modal .modal-actions .btn {
  min-width: 80px;
}

.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal {
  padding: 2rem;
  border-radius: 1rem;
  width: 90vw;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.app-h5 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  color: #222;
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

input.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   ERROR & MESSAGES
   ========================================== */
.error-message {
  padding: 10px;
  background-color: #f8d7da;
  color: #721c24;
  border-top: 1px solid #f5c6cb;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: 1em;
  text-align: center;
}

/* ==========================================
   DROPDOWNS
   ========================================== */
.styled-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 10;
  padding: 8px 0;
}

.styled-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: none;
  color: #333;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.15s;
}

.styled-dropdown .dropdown-item:hover {
  background: #f0f4fa;
  color: #1976d2;
}

.more-options-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 1.2em;
  cursor: pointer;
  color: #555;
}

.editor-more-options {
  position: relative;
  display: inline-block;
}

/* ==========================================
   COMMENT FEATURES
   ========================================== */
.comment-context-menu {
  background: #fff;
  border: 1.5px solid #355c3a;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(53, 92, 58, 0.12);
  padding: 0.5rem 1rem;
  min-width: 120px;
  position: absolute;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-context-menu button {
  background-color: #355c3a;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.comment-context-menu button:hover {
  background-color: #274528;
}

.comment-input-popup {
  background: #fff;
  border: 1.5px solid #355c3a;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(53, 92, 58, 0.12);
  padding: 1rem 1.2rem;
  min-width: 220px;
  position: absolute;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.comment-input-popup input {
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  padding: 0.5rem;
  font-size: 1rem;
  width: 100%;
}

.comment-input-popup .btn {
  background-color: #355c3a;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.comment-input-popup .btn-clear {
  background-color: #6c757d;
}

.comment-input-popup .btn:hover {
  background-color: #274528;
}

/* ==========================================
   BULK ACTIONS
   ========================================== */
.bulk-actions-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.bulk-actions-bar:not(.active) {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .bulk-actions-bar .btn {
    padding: 6px 8px !important;
    min-width: 0 !important;
    width: 36px;
    justify-content: center;
    font-size: 1.1em;
    gap: 0 !important;
  }

  .bulk-actions-bar .btn span {
    display: none !important;
  }
}

/* ==========================================
   PROGRESS & LOADING
   ========================================== */
.pdf-upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}

.pdf-upload-progress-bar-inner {
  height: 100%;
  background: #7c3aed;
  transition: width 0.2s;
}

.image-to-text-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.loading-bar {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.1em;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   TABLE NAVIGATION
   ========================================== */
.table-nav-btns {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 0 0;
}

.nav-btn {
  min-width: 90px;
  padding: 0.5rem 1.2rem;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

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

  .custom-tab-list,
  .document-tabs .nav-tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .custom-tab-link,
  .document-tabs .nav-link {
    font-size: 0.95rem;
    padding: 10px 0 8px 0;
  }
}

@media (max-width: 768px) {
  .document-management-container {
    height: 100vh;
  }

  .add-document-modal {
    left: 0;
    right: 0;
  }

  .add-document-modal .modal-content {
    max-width: 95%;
    padding: 20px;
  }

  .add-document-modal .modal-actions {
    flex-direction: column;
  }

  .add-document-modal .modal-actions .btn {
    width: 100%;
  }

  .document-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mobile-filesize {
    display: inline-block;
  }

  .file-logo {
    width: 1.5rem;
    margin-left: 0.3rem;
  }

  .action-btn {
    padding: 4px;
  }

  .editor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .editor-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .collaboration-status {
    order: 3;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  .inline-document-header {
    flex-wrap: wrap;
    padding: 0.5rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .doc-filename {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .action-btn {
    padding: 3px;
  }
}

.download-progress-bar {
  width: 100%;
  background: #eee;
  border-radius: 4px;
  margin: 8px 0;
  position: relative;
  height: 24px;
  overflow: hidden;
}

.progress-bar-inner {
  background: #0078d4;
  height: 100%;
  transition: width 0.2s;
}

.download-progress-bar span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: #222;
  font-weight: bold;
  line-height: 24px;
}

.slide-in-right-enter-active,
.slide-in-right-leave-active {
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.35s;
}

.slide-in-right-enter-from,
.slide-in-right-leave-to {
  transform: scaleX(0);
  opacity: 0;
}

.slide-in-right-enter-to,
.slide-in-right-leave-from {
  transform: scaleX(1);
  opacity: 1;
}


.document-count {
  margin: 8px 0 8px 8px;
  font-size: 0.95em;
  color: #555;
}
/* ==========================================
   DOCUMENT PREVIEW
   ========================================== */
.preview-container {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  background: white;
}

.preview-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.preview-container:hover .preview-overlay {
  opacity: 1;
}

.double-click-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}

.double-click-hint::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"white\"><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h6\"></path><polyline points=\"15 3 21 3 21 9\"></polyline><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"></line></svg>");
  background-repeat: no-repeat;
}

.document-preview {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.preview-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.preview-info {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  color: #6c757d;
  font-size: 0.9rem;
}

.preview-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}


.preview-content {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  margin-top:40px;
  margin-left:40px;
  margin-right:40px;
}
/* For document preview text content */
.document-preview .text-preview,
.document-preview .preview-content,
.document-preview .server-rendered-excel,
.document-preview .spreadsheet-preview,
.document-preview .pdf-preview,
.document-preview .image-preview {
  color: #222 !important; /* or #000 for black */
}

@media (max-width: 768px) {
  .preview-content {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
  }
}

.text-preview {
  overflow-y: auto;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  background: white;
}

.pdf-preview,
.image-preview,
.video-preview {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdf-preview object,
.image-preview img,
.video-preview video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.unsupported-format {
  padding: 40px;
  text-align: center;
  color: #6c757d;
}

.unsupported-format svg {
  margin-bottom: 15px;
  opacity: 0.5;
}

.preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.preview-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #dc3545;
  padding: 30px;
  text-align: center;
}

.preview-error svg {
  margin-bottom: 15px;
}


/* ==========================================
   SPREADSHEET STYLES
   ========================================== */
.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
  overflow-x: auto;
}

.sheet-tab {
  padding: 8px 16px;
  background: white;
  border: 1px solid #d0d0d0;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s;
  color: #555;
}

.sheet-tab:hover {
  background: #f9f9f9;
  color: #333;
}

.sheet-tab.active {
  background: var(--theme-bg-yellow, #fffbe6);
  border-color: var(--theme-gold, #bfa76f);
  color: var(--theme-green, #355c3a);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Spreadsheet Table - Normalized column widths and spreadsheet look */
.spreadsheet-table-container {
  overflow-x: auto;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 12px;
  margin: 0 auto;
  max-width: 100%;
}

.spreadsheet-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
  background: #fff;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(79, 93, 117, 0.06);
}

.spreadsheet-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.spreadsheet-table td,
.spreadsheet-table th {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  min-width: 100px;
  max-width: 220px;
  text-align: left;
  background: #fff;
  vertical-align: middle;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spreadsheet-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #355c3a;
  border-bottom: 2px solid #bfa76f;
}

.spreadsheet-table tr:nth-child(even) td {
  background: #f8fafc;
}

.spreadsheet-table tr:hover td {
  background: #e6f7ff;
}

.spreadsheet-table td:first-child,
.spreadsheet-table th:first-child {
  border-left: 2px solid #bfa76f;
}

.spreadsheet-table td:last-child,
.spreadsheet-table th:last-child {
  border-right: 2px solid #bfa76f;
}

/* Server-rendered Excel */
.server-rendered-excel {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.server-rendered-excel .excel-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.server-rendered-excel .sheet-tabs {
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  display: flex;
  gap: 5px;
}

.server-rendered-excel .sheet-tab {
  padding: 10px 20px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-size: 14px;
  transition: background 0.2s;
}

.server-rendered-excel .sheet-tab.active {
  background: #007cba;
  color: white;
}

.server-rendered-excel .sheet-tab:hover {
  background: #0096e6;
  color: white;
}

.server-rendered-excel .sheet-content {
  display: none;
  overflow-x: auto;
  position: relative;
}

.server-rendered-excel .sheet-content.active {
  display: block;
}

.server-rendered-excel .excel-table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  font-size: 13px;
}

.server-rendered-excel .excel-table td {
  border: 1px solid #d0d0d0;
  padding: 6px 8px;
  white-space: pre-wrap;
  vertical-align: top;
}

.server-rendered-excel .excel-table td.empty {
  background: #fafafa;
}

.server-rendered-excel .excel-image {
  position: absolute;
  max-width: 300px;
  max-height: 300px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.server-rendered-excel .excel-error {
  padding: 20px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
}

.server-rendered-excel .excel-error h2 {
  color: #c00;
  margin-top: 0;
}

.fullscreen-toggle-btn-wrapper {
  position: absolute;
  top: 32px;
  /* adjust as needed */
  right: 32px;
  /* adjust as needed */
  z-index: 10001;
  pointer-events: none;
  /* allow only the button to be clickable */
}

.fullscreen-toggle-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fullscreen-toggle-btn:hover {
  background: #ffe58f;
  color: #222;
}


.document-preview {
  position: relative;
}

.fullscreen-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #232323;
  /* dark background for side borders */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top:40px;
}

.fullscreen-preview .preview-container {
  background: white;
  width: 794px;
  min-height: 100vh;
  /* fill the viewport */
  max-width: 100vw;
  max-height: 100vh;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.18), 0 0 0 1px #bbb;
  border-radius: 6px;
  margin: 0;
  /* remove margin */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* only this scrolls */
  overflow-x: hidden;
  height: 100vh;
  /* ensure it fills the parent */
}

@media (max-width: 900px) {
  .fullscreen-preview .preview-container {
    width: 98vw;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }
}

.file-operations-container[data-v-485192e6] {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.file-operations-content h3[data-v-485192e6] {
  margin: 0 0 1rem 0;
}
.file-operations-content label[data-v-485192e6] {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.file-operations-content select[data-v-485192e6],
.file-operations-content input[data-v-485192e6] {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.modal-actions[data-v-485192e6] {
  display: flex;
  justify-content: flex-start;
}
.conversion-message[data-v-485192e6] {
  margin-top: 0.75rem;
}
.conversion-message.success[data-v-485192e6] {
  color: #28a745;
}
.conversion-message.error[data-v-485192e6] {
  color: #c00;
}


.notification[data-v-196f5cab] {
  padding: 1rem;
  border-radius: 0.3125rem; /* 5px to rem */
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.notification-success[data-v-196f5cab] {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.notification-error[data-v-196f5cab] {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.notification-info[data-v-196f5cab] {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.close-btn[data-v-196f5cab] {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}


.add-version-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: background 0.2s;
}
.modal-content {
  background: #fff;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 12px;
  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;
}
.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;
}
.modal-title {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  color: #222;
}
.drop-area {
  border: 2.5px dashed #174b2b;
  border-radius: 10px;
  background: #f7faff;
  min-height: 160px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  text-align: center;
  outline: none;
}
.drop-area.dragging {
  border-color: #0056b3;
  background: #e3f0ff;
}
.drop-area.ready {
  border-color: #28a745;
  background: #f6fff7;
}
.drop-area .drop-text {
  font-size: 1.1rem;
  color: #444;
  margin-top: 0.7em;
}
.drop-area .or {
  color: #888;
  font-size: 0.95em;
}
.drop-area .browse-link {
  color: #193b1f;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1em;
}
.file-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.5em;
}
.file-name {
  font-weight: 500;
  color: #222;
}
.file-size {
  color: #666;
  font-size: 0.95em;
}
.change-file-hint {
  color: #888;
  font-size: 0.95em;
}
.progress-section {
  margin-bottom: 1.2rem;
}
.progress-bar-bg {
  background: #e9ecef;
  border-radius: 4px;
  height: 10px;
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: #124919;
  border-radius: 4px;
  transition: width 0.2s;
}
.modal-actions {
  margin-top: 1.2em;
  display: flex;
  gap: 1em;
  justify-content: flex-end;
}


.version-history-dropdown[data-v-999d1e22] {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}
.history-table[data-v-999d1e22] {
  width: 100%;
  border-collapse: collapse;
}
.history-table th[data-v-999d1e22], .history-table td[data-v-999d1e22] {
  padding: 6px 10px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}
.history-loading[data-v-999d1e22], .no-history[data-v-999d1e22] {
  color: #888;
  padding: 1rem;
}


.document-versions {
  position: relative;
}
.versions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.refresh-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}
.refresh-btn:hover {
  background-color: #e9ecef;
}
.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.versions-loading,
.no-versions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6c757d;
  text-align: center;
}
.versions-loading svg,
.no-versions svg {
  margin-bottom: 1rem;
  opacity: 0.6;
}
.versions-table-container {
  width: 100%;
  overflow-x: auto;
}
.versions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.versions-table th,
.versions-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}
.versions-table th {
  background-color: #f8f9fa;
  font-weight: 500;
  color: #495057;
}
.versions-table tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
.version-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-badge {
  background-color: #4F5D75;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
}
.latest-version {
  background-color: rgba(79, 93, 117, 0.05);
}
.version-actions {
  display: flex;
  gap: 6px;
}
.action-btn {
  background: none;
  border: none;
  color: #4F5D75;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn:hover {
  background-color: #f8f9fa;
  color: #1a4a85;
}
.rollback-btn {
  color: #6c757d;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background-color: #fff;
  border-radius: 6px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}
.modal-header h4 {
  margin: 0;
  font-size: 1.1rem;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  padding: 1rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
.warning {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}



.export-modal[data-v-1f41f514] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: background 0.2s;
}
.modal-content[data-v-1f41f514] {
  background: #fff;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 12px;
  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;
}
.close-btn[data-v-1f41f514] {
  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[data-v-1f41f514]:hover { color: #333;
}
.modal-title[data-v-1f41f514] {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  color: #222;
}
.export-section[data-v-1f41f514] {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  margin-bottom: 1.5rem;
}
.btn[data-v-1f41f514] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.error-message[data-v-1f41f514] {
  color: #c00;
  margin-top: 1em;
  text-align: center;
}


.share-document-container[data-v-6d8da2ae] {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.share-form label[data-v-6d8da2ae] {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.share-form input[data-v-6d8da2ae],
.share-form select[data-v-6d8da2ae] {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1rem;
}
.share-form input.invalid-email[data-v-6d8da2ae] {
  border-color: #dc3545;
  background: #fff6f6;
}
.share-btn[data-v-6d8da2ae] {
  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;
  transition: background 0.2s, opacity 0.2s;
  opacity: 1;
}
.share-btn[data-v-6d8da2ae]:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}
.error-message[data-v-6d8da2ae] {
  color: #c00;
  margin-top: 1em;
  text-align: center;
  font-weight: 500;
}
.success-message[data-v-6d8da2ae] {
  color: #28a745;
  margin-top: 1em;
  text-align: center;
  font-weight: 500;
}
.shared-list[data-v-6d8da2ae] {
  margin-top: 2rem;
}
.shared-list ul[data-v-6d8da2ae] {
  list-style: none;
  padding: 0;
}
.shared-list li[data-v-6d8da2ae] {
  background: #fff;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.unshare-btn[data-v-6d8da2ae] {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  margin-left: 1rem;
}
.unshare-btn[data-v-6d8da2ae]:hover {
  background: #b71c1c;
}

.document-comments[data-v-6b3e54ab] {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--theme-green, #355c3a);
}
.comments-heading[data-v-6b3e54ab] {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--theme-green, #355c3a);
}
.comments-loading[data-v-6b3e54ab] {
  font-size: 0.9rem;
  color: #5c6f5f;
}
.comments-container[data-v-6b3e54ab] {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.2rem;
}
.comment-thread[data-v-6b3e54ab] {
  margin-bottom: 0.9rem;
  border-left: 3px solid #e8ddbf;
  padding-left: 0.5rem;
  border-radius: 6px;
}
.comment-thread.is-selected-thread[data-v-6b3e54ab] {
  border-left-color: var(--theme-gold, #bfa76f);
  background: #fff9eb;
}
.comment-item[data-v-6b3e54ab] {
  background: #ffffff;
  border: 1px solid #eadfbe;
  border-radius: 8px;
  padding: 0.7rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.comment-item[data-v-6b3e54ab]:hover {
  border-color: var(--theme-gold, #bfa76f);
  background: #fffcf3;
}
.main-comment[data-v-6b3e54ab] {
  margin-bottom: 0.45rem;
}
.reply-comment[data-v-6b3e54ab] {
  margin-left: 1rem;
  margin-top: 0.45rem;
  border-left: 2px solid #d8ccaa;
  font-size: 0.9rem;
}
.reply-comment.is-selected-thread[data-v-6b3e54ab] {
  border-left-color: var(--theme-gold, #bfa76f);
}
.replies-container[data-v-6b3e54ab] {
  margin-top: 0.4rem;
}
.comment-header[data-v-6b3e54ab] {
  font-size: 0.82rem;
  color: #6f7f73;
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  min-width: 0;
}
.comment-user[data-v-6b3e54ab] {
  font-weight: 700;
  color: var(--theme-green, #355c3a);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.comment-meta-row[data-v-6b3e54ab] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}
.comment-date[data-v-6b3e54ab],
.line-indicator[data-v-6b3e54ab] {
  flex: 0 0 auto;
}
.line-indicator[data-v-6b3e54ab] {
  background: #f8f2e2;
  color: #6b5b2e;
  border: 1px solid #e3d4a7;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.comment-content[data-v-6b3e54ab] {
  margin-bottom: 0.5rem;
  line-height: 1.45;
  color: #2f4732;
}
.comment-content input[data-v-6b3e54ab],
.reply-text-input[data-v-6b3e54ab],
.add-comment input[data-v-6b3e54ab] {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d9cda9;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  color: #2f4732;
}
.comment-content input[data-v-6b3e54ab]:focus,
.reply-text-input[data-v-6b3e54ab]:focus,
.add-comment input[data-v-6b3e54ab]:focus {
  outline: none;
  border-color: var(--theme-gold, #bfa76f);
  box-shadow: 0 0 0 3px rgba(191, 167, 111, 0.2);
}
.comment-actions[data-v-6b3e54ab] {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.comment-actions button[data-v-6b3e54ab],
.btn-send-reply[data-v-6b3e54ab],
.add-comment button[data-v-6b3e54ab] {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--theme-gold, #bfa76f);
  border-radius: 6px;
  background: #fff;
  color: var(--theme-green, #355c3a);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.comment-actions button[data-v-6b3e54ab]:hover,
.btn-send-reply[data-v-6b3e54ab]:hover:not(:disabled),
.add-comment button[data-v-6b3e54ab]:hover:not(:disabled) {
  background: #f8f4e8;
}
.btn-save[data-v-6b3e54ab],
.btn-send-reply[data-v-6b3e54ab],
.add-comment button[data-v-6b3e54ab] {
  background: var(--theme-green, #355c3a);
  border-color: var(--theme-green, #355c3a);
  color: #fff;
}
.btn-save[data-v-6b3e54ab]:hover,
.btn-send-reply[data-v-6b3e54ab]:hover:not(:disabled),
.add-comment button[data-v-6b3e54ab]:hover:not(:disabled) {
  background: #274528;
  border-color: #274528;
}
.btn-delete[data-v-6b3e54ab] {
  border-color: #cb8f8f;
  color: #9a2d2d;
}
.btn-delete[data-v-6b3e54ab]:hover {
  background: #fff3f3;
}
.reply-input[data-v-6b3e54ab] {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.add-comment[data-v-6b3e54ab] {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.selection-meta[data-v-6b3e54ab] {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e2d6b1;
  background: #fffaf0;
  color: #6b5b2e;
}
.selection-meta.missing[data-v-6b3e54ab] {
  border-style: dashed;
  color: #6a7f6d;
  background: #fbfbfb;
}
.btn-send-reply[data-v-6b3e54ab]:disabled,
.add-comment button[data-v-6b3e54ab]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.error-message[data-v-6b3e54ab] {
  color: #a33434;
  margin-top: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: #fff0f0;
  border: 1px solid #efc2c2;
  border-radius: 6px;
  font-size: 0.85rem;
}

.pdf-split-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: var(--theme-bg);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: none;
  margin: 0;
  z-index: 9999; /* ensures it's above other content */
  transform: none;
  flex-direction: column;
  box-shadow: var(--theme-shadow);
  border: 2px solid var(--theme-gold);
}

/* Header */
.split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--theme-green);
  color: var(--theme-gold);
  flex-shrink: 0;
}

.split-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--theme-font);
  color: var(--theme-gold);
}

.close-btn {
  background: rgba(191, 167, 111, 0.2);
  border: 1px solid var(--theme-gold);
  color: var(--theme-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s;
  font-weight: bold;
}

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

/* Content */
.split-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--theme-bg-yellow);
}

/* Document Info */
.document-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
}

.document-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.document-info p {
  margin: 0.25rem 0;
  color: var(--theme-green);
  opacity: 0.8;
  font-family: var(--theme-font);
}

/* Split Options */
.split-options,
.output-options {
  margin-bottom: 2rem;
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  box-shadow: var(--theme-shadow);
}

.split-options h4,
.output-options h4 {
  margin: 0 0 1rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--theme-green);
  font-family: var(--theme-font);
}

.option-group input[type="radio"] {
  width: auto; /* Ensure the radio button only takes up the space it needs */
  height: auto; /* Reset any inherited height */
  display: inline-block; /* Prevent block-level behavior */
  margin-right: 0.5rem; /* Keep the spacing */
  accent-color: var(--theme-green); /* Keep the custom color */
}

.option-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-green);
  margin-right: 0.5rem;
}

.sub-options {
  margin-left: 1.5rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--theme-bg-yellow);
  border: 1px solid var(--theme-gold);
  border-radius: 8px;
}

.sub-options label {
  color: var(--theme-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--theme-font);
}

.range-input,
.number-input,
.filename-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid var(--theme-gold);
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  font-family: var(--theme-font);
  color: var(--theme-green);
  transition: all 0.2s;
}

.range-input:focus,
.number-input:focus,
.filename-input:focus {
  outline: none;
  border-color: var(--theme-green);
  box-shadow: 0 0 0 3px rgba(53, 92, 58, 0.1);
}

.number-input {
  max-width: 120px;
}

small {
  display: block;
  color: var(--theme-green);
  opacity: 0.7;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-family: var(--theme-font);
  font-style: italic;
}

/* Preview */
.split-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
}

.split-preview h4 {
  margin: 0 0 1rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.preview-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--theme-gold);
  border-radius: 8px;
  background: white;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--theme-gold);
  transition: all 0.2s;
}

.preview-item:hover {
  background: var(--theme-bg-yellow);
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-filename {
  font-weight: 600;
  color: var(--theme-green);
  font-family: var(--theme-font);
}

.preview-pages {
  color: var(--theme-green);
  opacity: 0.7;
  font-size: 0.9rem;
  font-family: var(--theme-font);
}

/* Progress */
.split-progress {
  margin: 1.5rem 0;
  text-align: center;
  background: var(--theme-bg);
  padding: 1.5rem;
  border-radius: var(--theme-radius);
  border: 1px solid var(--theme-gold);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--theme-bg-yellow);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid var(--theme-gold);
}

.progress-fill {
  height: 100%;
  background: var(--theme-green);
  transition: width 0.3s;
}

.split-progress p {
  margin: 0;
  font-weight: 600;
  color: var(--theme-green);
  font-family: var(--theme-font);
}

/* Messages */
.error-message,
.success-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: var(--theme-radius);
  margin: 1rem 0;
  font-family: var(--theme-font);
  font-weight: 600;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.error-message button,
.success-message button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.error-message button:hover,
.success-message button:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Actions */
.split-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--theme-gold);
  background: var(--theme-bg);
  flex-shrink: 0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--theme-radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--theme-font);
  font-size: 1rem;
  transition: all 0.2s;
  min-width: 120px;
}

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

.btn-primary {
  background: var(--theme-green);
  color: var(--theme-gold);
  border: 2px solid var(--theme-gold);
}

.btn-primary:hover:not(:disabled) {
  background: #274528;
  color: var(--theme-bg-yellow);
  box-shadow: var(--theme-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--theme-green);
  border: 2px solid var(--theme-gold);
}

.btn-secondary:hover:not(:disabled) {
  background: #b5483d;
  color: white;
  border-color: #b5483d;
}

/* Responsive */
@media (max-width: 1024px) {
  .pdf-split-container {
    max-width: 95vw;
    top: 5vh;
    transform: none;
  }
}

@media (max-width: 768px) {
  .pdf-split-container {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    transform: none;
  }

  .split-header {
    padding: 1rem 1.5rem;
  }

  .split-content {
    padding: 1rem;
  }

  .split-actions {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .range-input,
  .number-input,
  .filename-input {
    max-width: 100%;
  }

  .preview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .split-content {
    padding: 0.5rem;
  }

  .document-info,
  .split-options,
  .output-options,
  .split-preview {
    padding: 1rem;
  }
}
.pdf-merge-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: var(--theme-bg);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: none;
  margin: 0;
  z-index: 9999; /* ensures it's above other content */
  transform: none;
  flex-direction: column;
  box-shadow: var(--theme-shadow);
  border: 2px solid var(--theme-gold);
}

/* Header */
.merge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--theme-green);
  color: var(--theme-gold);
  flex-shrink: 0;
}

.merge-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--theme-font);
  color: var(--theme-gold);
}

.close-btn {
  background: rgba(191, 167, 111, 0.2);
  border: 1px solid var(--theme-gold);
  color: var(--theme-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s;
  font-weight: bold;
}

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

/* Content */
.merge-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--theme-bg-yellow);
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two column layout */
  gap: 2rem;
}

/* Instructions */
.merge-instructions {
  grid-column: 1 / -1; /* Span full width */
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: var(--theme-bg);
  border: 1px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  text-align: center;
}

.merge-instructions p {
  margin: 0;
  color: var(--theme-green);
  font-weight: 600;
  font-family: var(--theme-font);
}

/* Current Document */
.current-document {
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  box-shadow: var(--theme-shadow);
}

.current-document h4 {
  margin: 0 0 1rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--theme-gold);
  border-radius: 8px;
  background: white;
  transition: all 0.2s;
}

.document-item.current {
  background: var(--theme-bg-yellow);
  border-color: var(--theme-green);
  box-shadow: 0 2px 8px rgba(53, 92, 58, 0.1);
}

.doc-preview {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--theme-gold);
}

.doc-info {
  flex: 1;
}

.doc-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--theme-green);
  font-family: var(--theme-font);
}

.doc-size {
  color: var(--theme-green);
  opacity: 0.7;
  font-size: 0.9rem;
}

.doc-status {
  background: var(--theme-green);
  color: var(--theme-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--theme-font);
}

/* Available PDFs */
.available-pdfs {
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  box-shadow: var(--theme-shadow);
}

.available-pdfs h4 {
  margin: 0 0 1rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.loading-message,
.no-pdfs-message {
  text-align: center;
  padding: 2rem;
  color: var(--theme-green);
  font-style: italic;
  font-family: var(--theme-font);
}

.pdf-selection-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--theme-gold);
  border-radius: 8px;
  background: white;
}

.selectable-pdf-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: all 0.2s;
}

.selectable-pdf-item:hover {
  background: var(--theme-bg-yellow);
}

.selectable-pdf-item.selected {
  background: var(--theme-bg-yellow);
  border-color: var(--theme-green);
  box-shadow: inset 2px 0 0 var(--theme-green);
}

.selectable-pdf-item:last-child {
  border-bottom: none;
}

.selection-checkbox {
  margin-right: 1rem;
}

.selection-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-green);
}

.pdf-preview-small {
  margin-right: 1rem;
}

.preview-placeholder-small {
  width: 40px;
  height: 50px;
  background: var(--theme-bg-yellow);
  border: 1px solid var(--theme-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 1.5rem;
  color: var(--theme-gold);
}

.pdf-info {
  flex: 1;
}

.pdf-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--theme-green);
  font-family: var(--theme-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-size {
  color: var(--theme-green);
  opacity: 0.7;
  font-size: 0.9rem;
}

.pdf-date {
  color: var(--theme-green);
  opacity: 0.6;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Selected PDFs */
.selected-pdfs {
  grid-column: 1 / -1; /* Span full width */
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  box-shadow: var(--theme-shadow);
  margin-top: 1rem;
}

.selected-pdfs h4 {
  margin: 0 0 0.5rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.merge-order-hint {
  color: var(--theme-green);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
  font-family: var(--theme-font);
}

.pdf-merge-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.merge-pdf-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid var(--theme-gold);
  border-radius: 8px;
  transition: all 0.2s;
  cursor: move;
}

.merge-pdf-item.current-doc {
  background: var(--theme-bg-yellow);
  border-color: var(--theme-green);
  cursor: default;
  box-shadow: 0 2px 4px rgba(53, 92, 58, 0.1);
}

.merge-pdf-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.merge-pdf-item:hover:not(.current-doc) {
  background: var(--theme-bg-yellow);
  transform: translateY(-1px);
  box-shadow: var(--theme-shadow);
}

.order-number {
  background: var(--theme-green);
  color: var(--theme-gold);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--theme-font);
  margin-right: 1rem;
  flex-shrink: 0;
}

.pdf-status {
  color: var(--theme-green);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--theme-font);
  margin-top: 0.25rem;
}

.move-controls {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 1rem;
}

.move-btn {
  background: var(--theme-bg);
  border: 1px solid var(--theme-gold);
  color: var(--theme-green);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.move-btn:hover:not(:disabled) {
  background: var(--theme-green);
  color: var(--theme-gold);
}

.move-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.remove-from-merge {
  background: #b5483d;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.2s;
}

.remove-from-merge:hover {
  background: #8b3530;
  transform: scale(1.1);
}

/* Merge Options */
.merge-options {
  grid-column: 1 / -1; /* Span full width */
  background: var(--theme-bg);
  border: 2px solid var(--theme-gold);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  box-shadow: var(--theme-shadow);
  margin-top: 1rem;
}

.merge-options h4 {
  margin: 0 0 1rem 0;
  color: var(--theme-green);
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 1.2rem;
}

.option-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--theme-green);
  font-family: var(--theme-font);
}

.option-group label[for] {
  flex-direction: column;
  align-items: flex-start;
}

.filename-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid var(--theme-gold);
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  font-family: var(--theme-font);
  color: var(--theme-green);
  transition: all 0.2s;
}

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

.option-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-green);
}

/* Progress */
.merge-progress {
  grid-column: 1 / -1; /* Span full width */
  margin: 1.5rem 0;
  text-align: center;
  background: var(--theme-bg);
  padding: 1.5rem;
  border-radius: var(--theme-radius);
  border: 1px solid var(--theme-gold);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--theme-bg-yellow);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid var(--theme-gold);
}

.progress-fill {
  height: 100%;
  background: var(--theme-green);
  transition: width 0.3s;
}

.merge-progress p {
  margin: 0;
  font-weight: 600;
  color: var(--theme-green);
  font-family: var(--theme-font);
}

/* Messages */
.error-message,
.success-message {
  grid-column: 1 / -1; /* Span full width */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: var(--theme-radius);
  margin: 1rem 0;
  font-family: var(--theme-font);
  font-weight: 600;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.error-message button,
.success-message button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.error-message button:hover,
.success-message button:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Actions */
.merge-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--theme-gold);
  background: var(--theme-bg);
  flex-shrink: 0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--theme-radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--theme-font);
  font-size: 1rem;
  transition: all 0.2s;
  min-width: 120px;
}

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

.btn-primary {
  background: var(--theme-green);
  color: var(--theme-gold);
  border: 2px solid var(--theme-gold);
}

.btn-primary:hover:not(:disabled) {
  background: #274528;
  color: var(--theme-bg-yellow);
  box-shadow: var(--theme-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--theme-green);
  border: 2px solid var(--theme-gold);
}

.btn-secondary:hover:not(:disabled) {
  background: #b5483d;
  color: white;
  border-color: #b5483d;
}

/* Responsive */
@media (max-width: 1024px) {
  .pdf-merge-container {
    max-width: 95vw;
  }
  
  .merge-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pdf-merge-container {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .merge-header {
    padding: 1rem 1.5rem;
  }
  
  .merge-content {
    padding: 1rem;
    gap: 1rem;
  }
  
  .merge-actions {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .merge-pdf-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .move-controls {
    flex-direction: row;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .selectable-pdf-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .pdf-info {
    width: 100%;
  }
  
  .filename-input {
    max-width: 100%;
  }
}

/* Modal Overlay */
.modal-overlay[data-v-02cb1f63] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

/* Modal Container */
.modal-container[data-v-02cb1f63] {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn-02cb1f63 0.3s ease-out;
}

/* Size variants */
.modal-xs[data-v-02cb1f63] { max-width: 400px;
}
.modal-sm[data-v-02cb1f63] { max-width: 500px;
}
.modal-md[data-v-02cb1f63] { max-width: 600px;
}
.modal-lg[data-v-02cb1f63] { max-width: 800px;
}
.modal-xl[data-v-02cb1f63] { max-width: 1200px;
}
.modal-full[data-v-02cb1f63] { 
  max-width: 95vw; 
  max-height: 95vh;
}
@keyframes modalSlideIn-02cb1f63 {
from {
    opacity: 0;
    transform: translateY(-20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

/* Modal Header */
.modal-header[data-v-02cb1f63] {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h3[data-v-02cb1f63] {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}
.modal-close-btn[data-v-02cb1f63] {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-close-btn[data-v-02cb1f63]:hover {
  background: #f5f5f5;
  color: #333;
}

/* Modal Body */
.modal-body[data-v-02cb1f63] {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal-body.no-padding[data-v-02cb1f63] {
  padding: 0;
}

/* Modal Footer */
.modal-footer[data-v-02cb1f63] {
  padding: 16px 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Transitions */
.modal-fade-enter-active[data-v-02cb1f63],
.modal-fade-leave-active[data-v-02cb1f63] {
  transition: opacity 0.3s ease;
}
.modal-fade-enter-from[data-v-02cb1f63],
.modal-fade-leave-to[data-v-02cb1f63] {
  opacity: 0;
}
.modal-fade-enter-active .modal-container[data-v-02cb1f63],
.modal-fade-leave-active .modal-container[data-v-02cb1f63] {
  transition: transform 0.3s ease;
}
.modal-fade-enter-from .modal-container[data-v-02cb1f63],
.modal-fade-leave-to .modal-container[data-v-02cb1f63] {
  transform: translateY(-20px);
}

/* Responsive */
@media (max-width: 768px) {
.modal-container[data-v-02cb1f63] {
    max-width: 95%;
    margin: 10px;
}
.modal-header[data-v-02cb1f63],
  .modal-body[data-v-02cb1f63],
  .modal-footer[data-v-02cb1f63] {
    padding: 16px;
}
.modal-footer[data-v-02cb1f63] {
    flex-direction: column;
}
.modal-footer .btn[data-v-02cb1f63] {
    width: 100%;
}
}


.progress-bar[data-v-2165d5a8] {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-inner[data-v-2165d5a8] {
  height: 100%;
  background: #007bff;
  transition: width 0.3s ease;
}


.lock-document-container[data-v-72542aaa] {
  text-align: center;
}
.actions[data-v-72542aaa] {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}


.document-metadata[data-v-3682b108] {
  margin-bottom: 1rem;
}
.document-subtitle-details[data-v-3682b108] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95em;
  color: #666;
  margin-bottom: 0.8rem;
}
.doc-detail[data-v-3682b108] {
  display: flex;
  align-items: center;
  gap: 0.25em;
}
.separator[data-v-3682b108] {
  color: #bbb;
}
.document-metadata-grid[data-v-3682b108] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  background: #f8f9fa;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0.75rem;
}
.meta-row[data-v-3682b108] {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.meta-label[data-v-3682b108] {
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}
.meta-value[data-v-3682b108] {
  color: #222;
  text-align: right;
  word-break: break-word;
}

/* ==========================================
   DOCUMENT MANAGEMENT CONTAINER
   ========================================== */
.document-management-container[data-v-3769a15e] {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   TAB CONTENT & NAVIGATION
   ========================================== */
.tab-content[data-v-3769a15e] {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--theme-bg-yellow, #fffbe6);
}
.tab-pane-content[data-v-3769a15e] {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tab-pane[data-v-3769a15e] {
  display: none;
  height: 100%;
  overflow: hidden;
}
.tab-pane.active[data-v-3769a15e] {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.tab-pane.active .document-preview[data-v-3769a15e],
.tab-pane.active .document-versions-container[data-v-3769a15e],
.tab-pane.active .share-document-container[data-v-3769a15e],
.tab-pane.active .document-comments[data-v-3769a15e] {
  padding: 8px;
  /* was 20px */
}

/* ==========================================
   DOCUMENT HEADER
   ========================================== */
.RightSideBar[data-v-3769a15e],
.inline-document-header[data-v-3769a15e] {
  background: #f5f2e6;
  /* or a darker shade, e.g. #ede6d2 */
}
.inline-document-header[data-v-3769a15e] {
  min-height: 48px;
  /* was 72px */
  padding: 0.5rem 1rem 0.5rem 1rem;
  /* was 1.1rem 1.5rem 1.1rem 1.2rem */
  margin-bottom: 0.5rem;
  /* was 1.2rem */
}
.document-metadata[data-v-3769a15e] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.document-title-header[data-v-3769a15e] {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--theme-green);
  margin: 0 0 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.version-badge[data-v-3769a15e] {
  background: var(--theme-gold);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.18em 0.7em;
  margin-left: 0.5em;
  box-shadow: 0 1px 4px rgba(191, 167, 111, 0.10);
}
.document-subtitle-details[data-v-3769a15e] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.97rem;
  color: var(--theme-dark, #222);
  background: var(--theme-bg, #f8f6f2);
  border-radius: 6px;
  padding: 0.4em 0.8em;
  margin-top: 0.5em;
  gap: 0.5em;
  font-weight: 500;
}
.doc-detail[data-v-3769a15e] {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: var(--theme-gold, #bfa76f);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  padding: 0.1em 0.5em;
}
.separator[data-v-3769a15e] {
  color: var(--theme-gold, #bfa76f);
  font-weight: bold;
  margin: 0 0.2em;
}
.document-subtitle-details .separator[data-v-3769a15e] {
  margin: 0 0.5em;
  color: #bfa76f;
  font-weight: bold;
}
.document-version-options[data-v-3769a15e] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  /* Pushes to the right */
}
.header-actions[data-v-3769a15e] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  z-index: 3;
}
.close-tab-item[data-v-3769a15e] {
  margin-right: 0.5rem;
}
.close-tab-btn[data-v-3769a15e] {
  background: var(--theme-gold, #bfa76f);
  color: var(--theme-green, #355c3a);
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
}
.close-tab-btn[data-v-3769a15e]:hover {
  background: var(--theme-green, #355c3a);
  color: var(--theme-gold, #bfa76f);
}
.menu-toggle-btn[data-v-3769a15e] {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  border: none;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s;
  background: var(--theme-green);
  color: #fffbe6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.45em 0.55em;
  box-shadow: none;
  margin-top: 2rem;
  margin-left: 1.1em;
  margin-right: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.menu-toggle-btn[data-v-3769a15e]:hover,
.menu-toggle-btn[data-v-3769a15e]:focus {
  background: #355c3a;
  /* slightly lighter green on hover */
  color: #fffbe6;
}
.menu-toggle-btn.active[data-v-3769a15e] {
  background: var(--theme-gold);
  color: #fffbe6;
}

/* ==========================================
   DOCUMENT TABS OVERLAY
   ========================================== */
.document-tabs-overlay[data-v-3769a15e] {
  position: relative;
  left: 0;
  right: 0;
  background: var(--theme-bg-yellow, #fffbe6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 var(--theme-radius) var(--theme-radius);
  z-index: 5;
  border: 1px solid #eee;
  border-top: none;
  overflow-y: auto;
  margin-top: 0;
  overflow-x: visible !important;
  overflow-y: auto;
}

/* Transition for the Menu */
.fade-down-enter-active[data-v-3769a15e],
.fade-down-leave-active[data-v-3769a15e] {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.fade-down-enter-from[data-v-3769a15e],
.fade-down-leave-to[data-v-3769a15e] {
  transform: translateY(-20px);
  opacity: 0;
}
.fade-down-enter-to[data-v-3769a15e],
.fade-down-leave-from[data-v-3769a15e] {
  opacity: 1;
}

/* ==========================================
   FOLDER-STYLE TABS
   ========================================== */
.document-tabs[data-v-3769a15e] {
  display: flex;
  background: var(--theme-bg-yellow);
  padding: 0 0 0 10px;
  border-bottom: 3px solid #bfa76f;
  box-shadow: 0 8px 32px rgba(191, 167, 111, 0.08), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  position: relative;
  z-index: 1;
}
.custom-tab-list[data-v-3769a15e] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  border-bottom: none;
  background: transparent;
  width: 100%;
  overflow-x: visible !important;
  max-width: 100%;
  padding-left: 0;
  padding-top:1rem;
  margin: 0;
}
.custom-tab-item[data-v-3769a15e] {
  flex: 0 1 auto;
  margin-bottom: 0;
  margin: 0;
  padding: 0;
}
.custom-tab-link[data-v-3769a15e]:not(:last-child) {
  border-right: none;
}
.custom-tab-link.active[data-v-3769a15e] {
  background: linear-gradient(to bottom, #fdf6e3 80%, #fff 100%);
  color: #222;
  border-bottom: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(79, 93, 117, 0.12), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  z-index: 3;
}
.custom-tab-link[data-v-3769a15e]:hover:not(.active) {
  background: linear-gradient(to bottom, #f8f9fa 80%, #e0e0e0 100%);
  color: #222;
}
.custom-tab-link[data-v-3769a15e]:active {
  background: #e0e7ef;
  color: #222;
}
.custom-tab-link[data-v-3769a15e]:focus {
  outline: 2px solid #355c3a;
  outline-offset: -2px;
}
.custom-tab-link[data-v-3769a15e] {
  max-width: 100%;
  text-align: center;
  background: linear-gradient(to bottom, #fff 80%, #f6f8fa 100%);
  color: #355c3a;
  border: 1.5px solid #bfa76f;
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 93, 117, 0.04), 0 8px 0 -6px #e0e0e0 inset;
  position: relative;
  top: 2px;
  z-index: 2;
  transition:
    background 0.2s, color 0.2s, box-shadow 0.2s,
    min-width 0.2s, width 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  padding: 14px 0 14px 0;
}
.custom-tab-link span[data-v-3769a15e] {
  opacity: 0;
  width: 0;
  margin-left: 0;
  transition: opacity 0.5s, width 0.5s, margin-left 0.5s;
  pointer-events: none;
  overflow: hidden;
  display: inline-block;
}
.custom-tab-link[data-v-3769a15e]:hover,
.custom-tab-link.active[data-v-3769a15e] {
  width: auto;
  background: linear-gradient(to bottom, #fdf6e3 80%, #fff 100%);
  color: #222;
  border-bottom: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(79, 93, 117, 0.12), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  z-index: 3;
  padding-left: 1rem;
  padding-right: 1rem;
}
.custom-tab-link:hover span[data-v-3769a15e],
.custom-tab-link.active span[data-v-3769a15e] {
  opacity: 1;
  width: auto;
  margin-left: 0.5em;
  pointer-events: auto;
}
.sidebar-tab-text[data-v-3769a15e] {
  padding: 0.5rem;
}
.custom-tab-link.only-icon[data-v-3769a15e] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 44px !important;
  width: 44px;
  height: 44px;
}
.custom-tab-link.only-icon .sidebar-tab-text[data-v-3769a15e] {
  display: none;
}
.custom-tab-link.only-icon .fa[data-v-3769a15e],
.custom-tab-link.only-icon svg[data-v-3769a15e] {
  margin: 0;
  font-size: 1.3em;
}

/* ==========================================
   VERSION BADGES
   ========================================== */
.version-badge[data-v-3769a15e] {
  background-color: #4F5D75;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 8px;
  font-weight: normal;
}
.latest-version-badge[data-v-3769a15e] {
  display: inline-block;
  background: #4F5D75;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.latest-badge[data-v-3769a15e] {
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* ==========================================
   DOCUMENT TABLE & FILES
   ========================================== */
.table-scroll-area[data-v-3769a15e] {
  max-height: 70vh;
  /* or a px value that fits your layout */
  overflow-y: auto;
  overflow-x: auto;
}
.document-table-container[data-v-3769a15e]:focus {
  outline: 2.5px solid var(--theme-gold) !important;
  outline-offset: 0;
}
@keyframes dragBorder-3769a15e {
0% {
    outline-color: #1976d2;
}
50% {
    outline-color: #42a5f5;
}
100% {
    outline-color: #1976d2;
}
}
.table-drag-over[data-v-3769a15e] {
  animation: dragBorder-3769a15e 1s infinite;
  outline: 3px solid #1976d2;
  outline-offset: -2px;
  background-color: rgba(25, 118, 210, 0.12) !important;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.15);
  opacity: 0.85;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.drag-overlay[data-v-3769a15e] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(25, 118, 210, 0.18) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 1;
}
.drag-message[data-v-3769a15e] {
  text-align: center;
  padding: 2rem;
  border: 2px dashed #4F5D75;
  border-radius: 8px;
  background-color: white;
  max-width: 80%;
}
.drag-icon[data-v-3769a15e] {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #4F5D75;
}
.name-cell[data-v-3769a15e] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
  font-size: 1rem;
  font-weight: 500;
  color: #1b2519;
}
.filename-link[data-v-3769a15e] {
  color: #4F5D75;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 4px 0;
}
.filename-link[data-v-3769a15e]:hover {
  color: #2d3748;
}
.doc-filename[data-v-3769a15e] {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.doc-filename[data-v-3769a15e]:hover {
  background-color: rgba(79, 93, 117, 0.1);
}
.doc-filename[data-v-3769a15e]:active {
  background-color: rgba(79, 93, 117, 0.2);
}
.file-logo[data-v-3769a15e] {
  width: 2rem;
  margin-left: 0.5rem;
}
.mobile-filesize[data-v-3769a15e] {
  display: none;
  margin-left: auto;
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

/* ==========================================
   DOCUMENT VERSIONS
   ========================================== */
.document-info[data-v-3769a15e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}
.back-link[data-v-3769a15e] {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4F5D75;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.back-link[data-v-3769a15e]:hover {
  background-color: rgba(79, 93, 117, 0.1);
}
.versions-table-container[data-v-3769a15e] {
  margin: 20px 0;
}
.versions-table[data-v-3769a15e] {
  width: 100%;
}
.version-indicator[data-v-3769a15e] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.version-number[data-v-3769a15e] {
  font-weight: 600;
  color: #4F5D75;
}
.version-content-container[data-v-3769a15e] {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
  background-color: #f8f9fa;
}
.hide-content-btn[data-v-3769a15e] {
  background-color: #4F5D75;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  cursor: pointer;
}
.hide-content-btn[data-v-3769a15e]:hover {
  background-color: #3d4a5f;
}
.version-content[data-v-3769a15e] {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  padding: 15px;
  border-radius: 4px;
  background-color: white;
}
.no-versions[data-v-3769a15e] {
  text-align: center;
  padding: 30px 0;
  color: #6c757d;
}
.new-version-btn[data-v-3769a15e]:hover,
.new-version-btn[data-v-3769a15e]:focus {
  background-color: #0056b3;
  color: #fff;
}

/* ==========================================
   ACTION BUTTONS
   ========================================== */
.action-btn[data-v-3769a15e] {
  background: none;
  border: none;
  color: #4F5D75;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.action-btn[data-v-3769a15e]:hover:not(:disabled):not(.disabled-action) {
  background-color: rgba(79, 93, 117, 0.1);
}
.action-btn[data-v-3769a15e]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.disabled-action[data-v-3769a15e] {
  cursor: pointer;
}
.greyed-out[data-v-3769a15e] {
  opacity: 0.5;
  color: #999;
}

/* ==========================================
   MODALS
   ========================================== */
.add-document-modal[data-v-3769a15e] {
  position: fixed;
  top: 0;
  left: var(--left-sidebar-width, 0);
  right: var(--right-sidebar-width, 0);
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  transition: left 0.3s ease, right 0.3s ease;
}
.add-document-modal .modal-content[data-v-3769a15e] {
  background: var(--theme-bg, #fffef9);
  border-radius: 8px;
  padding: 24px;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn-3769a15e 0.3s ease-out;
  z-index: 10000;
  border: 2px solid var(--theme-gold, #bfa76f);
}
.add-document-modal .modal-content.modal-content-wide[data-v-3769a15e] {
  max-width: 700px;
}
.add-document-modal .modal-content.modal-content-xl[data-v-3769a15e] {
  max-width: 900px;
}
@keyframes modalSlideIn-3769a15e {
from {
    opacity: 0;
    transform: translateY(-20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
.close-btn[data-v-3769a15e] {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}
.close-btn[data-v-3769a15e]:hover {
  background: #f5f5f5;
  color: #333;
}
.add-document-modal h3[data-v-3769a15e] {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}
.add-document-modal p[data-v-3769a15e] {
  margin: 12px 0;
  color: #555;
  line-height: 1.5;
}
.add-document-modal strong[data-v-3769a15e] {
  color: #333;
  font-weight: 600;
}
.modal-actions[data-v-3769a15e] {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.add-document-modal .modal-actions[data-v-3769a15e] {
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}
.add-document-modal .modal-actions .btn[data-v-3769a15e] {
  min-width: 80px;
}
.custom-modal-backdrop[data-v-3769a15e] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-modal[data-v-3769a15e] {
  padding: 2rem;
  border-radius: 1rem;
  width: 90vw;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.app-h5[data-v-3769a15e] {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  color: #222;
}
.form-group[data-v-3769a15e] {
  margin-bottom: 15px;
}
label[data-v-3769a15e] {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}
input.form-control[data-v-3769a15e] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button.btn[data-v-3769a15e] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   ERROR & MESSAGES
   ========================================== */
.error-message[data-v-3769a15e] {
  padding: 10px;
  background-color: #f8d7da;
  color: #721c24;
  border-top: 1px solid #f5c6cb;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: 1em;
  text-align: center;
}

/* ==========================================
   DROPDOWNS
   ========================================== */
.styled-dropdown[data-v-3769a15e] {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 10;
  padding: 8px 0;
}
.styled-dropdown .dropdown-item[data-v-3769a15e] {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: none;
  color: #333;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.15s;
}
.styled-dropdown .dropdown-item[data-v-3769a15e]:hover {
  background: #f0f4fa;
  color: #1976d2;
}
.more-options-btn[data-v-3769a15e] {
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 1.2em;
  cursor: pointer;
  color: #555;
}
.editor-more-options[data-v-3769a15e] {
  position: relative;
  display: inline-block;
}

/* ==========================================
   COMMENT FEATURES
   ========================================== */
.comment-context-menu[data-v-3769a15e] {
  background: #fff;
  border: 1.5px solid #355c3a;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(53, 92, 58, 0.12);
  padding: 0.5rem 1rem;
  min-width: 120px;
  position: absolute;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.comment-context-menu button[data-v-3769a15e] {
  background-color: #355c3a;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.comment-context-menu button[data-v-3769a15e]:hover {
  background-color: #274528;
}
.comment-input-popup[data-v-3769a15e] {
  background: #fff;
  border: 1.5px solid #355c3a;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(53, 92, 58, 0.12);
  padding: 1rem 1.2rem;
  min-width: 220px;
  position: absolute;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.comment-input-popup input[data-v-3769a15e] {
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  padding: 0.5rem;
  font-size: 1rem;
  width: 100%;
}
.comment-input-popup .btn[data-v-3769a15e] {
  background-color: #355c3a;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.comment-input-popup .btn-clear[data-v-3769a15e] {
  background-color: #6c757d;
}
.comment-input-popup .btn[data-v-3769a15e]:hover {
  background-color: #274528;
}

/* ==========================================
   BULK ACTIONS
   ========================================== */
.bulk-actions-bar[data-v-3769a15e] {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}
.bulk-actions-bar[data-v-3769a15e]:not(.active) {
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 768px) {
.bulk-actions-bar .btn[data-v-3769a15e] {
    padding: 6px 8px !important;
    min-width: 0 !important;
    width: 36px;
    justify-content: center;
    font-size: 1.1em;
    gap: 0 !important;
}
.bulk-actions-bar .btn span[data-v-3769a15e] {
    display: none !important;
}
}

/* ==========================================
   PROGRESS & LOADING
   ========================================== */
.pdf-upload-progress-bar[data-v-3769a15e] {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}
.pdf-upload-progress-bar-inner[data-v-3769a15e] {
  height: 100%;
  background: #7c3aed;
  transition: width 0.2s;
}
.image-to-text-loading[data-v-3769a15e] {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}
.loading-bar[data-v-3769a15e] {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.1em;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   TABLE NAVIGATION
   ========================================== */
.table-nav-btns[data-v-3769a15e] {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 0 0;
}
.nav-btn[data-v-3769a15e] {
  min-width: 90px;
  padding: 0.5rem 1.2rem;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 900px) {
.custom-tab-list[data-v-3769a15e],
  .document-tabs .nav-tabs[data-v-3769a15e] {
    flex-direction: row;
    overflow-x: auto;
}
.custom-tab-link[data-v-3769a15e],
  .document-tabs .nav-link[data-v-3769a15e] {
    font-size: 0.95rem;
    padding: 10px 0 8px 0;
}
}
@media (max-width: 768px) {
.document-management-container[data-v-3769a15e] {
    height: 100vh;
}
.add-document-modal[data-v-3769a15e] {
    left: 0;
    right: 0;
}
.add-document-modal .modal-content[data-v-3769a15e] {
    max-width: 95%;
    padding: 20px;
}
.add-document-modal .modal-actions[data-v-3769a15e] {
    flex-direction: column;
}
.add-document-modal .modal-actions .btn[data-v-3769a15e] {
    width: 100%;
}
.document-info[data-v-3769a15e] {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.mobile-filesize[data-v-3769a15e] {
    display: inline-block;
}
.file-logo[data-v-3769a15e] {
    width: 1.5rem;
    margin-left: 0.3rem;
}
.action-btn[data-v-3769a15e] {
    padding: 4px;
}
.editor-header[data-v-3769a15e] {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.editor-actions[data-v-3769a15e] {
    width: 100%;
    flex-wrap: wrap;
}
.collaboration-status[data-v-3769a15e] {
    order: 3;
    margin-top: 8px;
}
}
@media (max-width: 576px) {
.inline-document-header[data-v-3769a15e] {
    flex-wrap: wrap;
    padding: 0.5rem;
}
.header-actions[data-v-3769a15e] {
    width: 100%;
    justify-content: flex-end;
}
.doc-filename[data-v-3769a15e] {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.action-btn[data-v-3769a15e] {
    padding: 3px;
}
}
.download-progress-bar[data-v-3769a15e] {
  width: 100%;
  background: #eee;
  border-radius: 4px;
  margin: 8px 0;
  position: relative;
  height: 24px;
  overflow: hidden;
}
.progress-bar-inner[data-v-3769a15e] {
  background: #0078d4;
  height: 100%;
  transition: width 0.2s;
}
.download-progress-bar span[data-v-3769a15e] {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: #222;
  font-weight: bold;
  line-height: 24px;
}
.slide-in-right-enter-active[data-v-3769a15e],
.slide-in-right-leave-active[data-v-3769a15e] {
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.35s;
}
.slide-in-right-enter-from[data-v-3769a15e],
.slide-in-right-leave-to[data-v-3769a15e] {
  transform: scaleX(0);
  opacity: 0;
}
.slide-in-right-enter-to[data-v-3769a15e],
.slide-in-right-leave-from[data-v-3769a15e] {
  transform: scaleX(1);
  opacity: 1;
}
.document-count[data-v-3769a15e] {
  margin: 8px 0 8px 8px;
  font-size: 0.95em;
  color: #555;
}

.comments-panel-root[data-v-18b8493e] {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.comments-panel-header[data-v-18b8493e] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--theme-gold, #bfa76f);
  background: var(--theme-bg-yellow, #fffbe6);
}
.comments-panel-header h4[data-v-18b8493e] {
  margin: 0;
  font-size: 1rem;
  color: var(--theme-green, #355c3a);
}
.close-tab-btn[data-v-18b8493e] {
  background: #fff;
  border: 1px solid var(--theme-gold, #bfa76f);
  border-radius: 6px;
  cursor: pointer;
  color: var(--theme-green, #355c3a);
  padding: 0.25rem 0.4rem;
}
.close-tab-btn[data-v-18b8493e]:hover {
  background: #f8f4e8;
}


.sidebar-content[data-v-8283be08] {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  /* was 20px */
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.resize-handle[data-v-8283be08] {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  /* wider for button */
  cursor: col-resize;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.resize-handle-btn[data-v-8283be08] {
  position: absolute;
  left: 0;
  top: 45%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--theme-gold, #bfa76f);
  color: var(--theme-green, #355c3a);
  border-radius: 0 16px 16px 0;
  width: 32px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: background 0.18s;
  z-index: 2;
  padding: 0;
}
.resize-handle-btn[data-v-8283be08]:hover {
  background: var(--theme-gold, #bfa76f);
  color: #fff;
}
.sidebar-actions[data-v-8283be08] {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}
.action-btn[data-v-8283be08] {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 5px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-btn[data-v-8283be08]:hover {
  color: #333;
  background-color: #f0f0f0;
}
.slide-fade-enter-active[data-v-8283be08],
.slide-fade-leave-active[data-v-8283be08] {
  transition: transform 0.3s ease;
}
.slide-fade-enter-from[data-v-8283be08],
.slide-fade-leave-to[data-v-8283be08] {
  transform: translateX(100%);
}
.reset-width-btn[data-v-8283be08] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--theme-green, #355c3a);
  color: var(--theme-green, #355c3a);
  border-radius: 0 20px 20px 0;
  width: 36px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: background 0.18s;
  padding: 0;
}
.reset-width-btn[data-v-8283be08]:hover {
  background: var(--theme-green, #355c3a);
  border-color: var(--theme-green, #355c3a);
  color: var(--theme-yellow, white)
}
.arrow-icon[data-v-8283be08] {
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1;
}


.broxtech-footer[data-v-1ef8e0b9] {
  width: 100%;
  background: var(--theme-green);
  color: var(--theme-bg-yellow);
  text-align: center;
  padding: 1rem 0;
  font-family: var(--theme-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 -2px 8px rgba(191, 167, 111, 0.08);
  position: relative;
  z-index: 10;
}
.footer-content[data-v-1ef8e0b9] {
  margin: 0 auto;
  max-width: 900px;
}

/* --- 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);
}

/* --- 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;
}

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;
}

/* --- 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;
}



/* --- 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;
  overflow-y: visible;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  background: var(--theme-bg-yellow);
  padding-top: 40px;
  min-height: 0;
}


/* === Navbar/Header === */
.brox-navbar,
.brox-navbar-loggedout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 40px;
  background: var(--theme-bg-yellow);
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.07);
  z-index: 1100;
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
}

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

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

.brox-img {
  height: 28px;
  margin-right: 0.5rem;
}

.brox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-green);
  letter-spacing: 1px;
}

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

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

.menu-link {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-green);
  background: none;
  border: none;
  padding: 0 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  height: 40px;
}

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

.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.4rem 0.9rem;
  margin-left: 0.5rem;
  transition: background .18s, color .18s, box-shadow .18s;
}

.login-link:hover {
  background: #274528;
  color: #fffbe6;
  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 {
  margin-right: 0.4em;
  font-size: 1.1em;
}

/* === 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: 40px;
  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: 1200;
}

.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 === */
.hamburger-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-right: 1rem;
}

.hamburger-bar {
  width: 22px;
  height: 3px;
  background: var(--theme-green);
  margin: 2px 0;
  border-radius: 2px;
}

.mobile-menu-modal {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 40px);
  background: rgba(0, 0, 0, 0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

.mobile-menu-content {
  background: var(--theme-bg-yellow);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(191, 167, 111, 0.12);
  padding: 1rem;
  margin: 0 auto;
  width: 90vw;
  max-width: 340px;
}

.modal-backdrop {
  flex: 1 1 auto;
  width: 100vw;
  height: 100%;
  background: transparent;
}

/* === Sidebars === */
.SidebarMain {
  position: relative;
  top: 40px;
  width: var(--left-sidebar-width);
  min-width: 180px;
  max-width: 400px;
  transition: width 0.2s;
  background: var(--theme-bg-yellow);
  height: calc(100vh - 40px);
  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: 40px;
    left: 0;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: calc(100vh - 40px);
    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:40px;
  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;
  height: calc(100vh - 40px);
  overflow-y: hidden;
  flex-shrink: 0;
  position: relative;
  border-left: 10px solid var(--theme-green, #355c3a);
}

.RightSideBar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  /* gold width > green width */
  height: 100%;
  background: var(--theme-gold, #bfa76f);
  z-index: 0;
  border-radius: 0 0 0 0;
}

/* === 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,
.hide-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;
}

.toggle-btn:hover,
.hide-btn:hover {
  color: #4F5D75;
  background-color: #e9ecef;
}

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

/* === Sidebar Nav === */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.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 {
  position: fixed;
  top: 40px;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  z-index: 2000;
}



/* === 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: 0;
  bottom: 0;
  z-index: 9999;
}

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

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

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

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

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

  .login-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 500px) {
  .menu-link span {
    display: none !important;
  }
}

.sidebar-slide-enter-active,
.sidebar-slide-leave-active {
  transition: width 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
}

.sidebar-slide-enter,
.sidebar-slide-leave-to {
  opacity: 0;
  width: 0 !important;
}

/* === Layout Shell === */
.layout-root {
  display: flex;
  flex-direction: column;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  background: var(--theme-bg-yellow);
  background-color: var(--theme-bg-yellow);
}

.layout-body {
  display: flex;
  flex-grow: 1;
  width: 100vw;
  min-height: calc(100vh - 40px);
  overflow: hidden;
}

.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: 100;
}

/* This class is added by RightSideBar.vue when the overlay prop is true */
.RightSideBar.is-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  z-index: 1050;
  /* Ensures it's on top of everything */
}

/* === Show Sidebar Button === */
.show-sidebar-btn {
  position: fixed;
  top: 40px; 
  left: 0;
  z-index: 10;
  background: var(--theme-green);
  color: var(--theme-gold);
  border: none;
  border-radius: 0 20px 20px 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(80, 60, 30, 0.10);
  cursor: pointer;
  transition: background 0.2s;
}

.show-sidebar-btn:hover {
  background: #274528;
  color: #fffbe6;
}

/* === Layout Reflow Fix === */
:root {
  --left-sidebar-width: 260px;
  --right-sidebar-width: 0px;
}

.layout-root {
  width: 100%;
}

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

.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;
  height: calc(100vh - 40px);
}

.layout-body > .layout-main-documents {
  flex: 1 1 auto;
  width: auto !important;
  padding-top: 0;
  min-width: 0;
}

.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(100vh - 40px);
}

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

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

.layout-body > .layout-main-documents > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !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;
}


.search-container[data-v-b504ac60] {
    position: relative;
    width: 300px;
}
.search-input[data-v-b504ac60] {
    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-b504ac60]:focus {
    outline: none;
    border-color: #4F5D75;
    box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.search-icon[data-v-b504ac60] {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.clear-search-button[data-v-b504ac60] {
    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-b504ac60]:hover {
    color: #333;
    background-color: #f0f0f0;
}
.sr-only[data-v-b504ac60] {
    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-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;
  /* Reduced from 1rem */
  flex-wrap: wrap;
  gap: 0.25rem;
  /* Reduced from 1rem */
}
.brox-table[data-v-468ed023] {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  position: relative;
  min-height: 80px;
  /* Reduced from 100px */
  table-layout: fixed;
  /* Helps with column width control */
}

/* Make rows more compact */
[data-v-468ed023] .brox-table-cell {
  padding: 0.25rem 0.5rem;
  /* Reduced from 0.75rem */
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.0;
  /* Tighter line height */
  white-space: nowrap;
  text-overflow: ellipsis;
}
[data-v-468ed023] .brox-table-header {
  padding: 0.25rem 0.5rem;
  /* Reduced from 0.75rem */
  font-size: 0.95rem;
  /* Slightly smaller header text */
}
.brox-table-empty[data-v-468ed023] {
  text-align: center;
  padding: 0.5rem;
  /* Reduced from 2rem */
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  margin: 0.75rem 0;
  /* Reduced from 1rem */
}

/* Responsive styles */
@media (max-width: 768px) {
.brox-table-top-controls[data-v-468ed023] {
    flex-direction: column;
    align-items: stretch;
}
.brox-table[data-v-468ed023] {
    overflow-x: auto;
    white-space: nowrap;
}
[data-v-468ed023] .brox-table-search .search-container {
    width: 100%;
}
}

/* 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;
  /* Reduced padding for more compact rows */
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1;
  /* Compact line height */
  height: 1rem;
  /* Fixed height for rows */
  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-1b800fe4] {
  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-1b800fe4] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Reduced from 1rem */
  flex-wrap: wrap;
  gap: 0.25rem;
  /* Reduced from 1rem */
}
.brox-table[data-v-1b800fe4] {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  position: relative;
  min-height: 80px;
  /* Reduced from 100px */
  table-layout: fixed;
  /* Helps with column width control */
}

/* Make rows more compact */
[data-v-1b800fe4] .brox-table-cell {
  padding: 0.25rem 0.5rem;
  /* Reduced from 0.75rem */
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.0;
  /* Tighter line height */
  white-space: nowrap;
  text-overflow: ellipsis;
}
[data-v-1b800fe4] .brox-table-header {
  padding: 0.25rem 0.5rem;
  /* Reduced from 0.75rem */
  font-size: 0.95rem;
  /* Slightly smaller header text */
}
.brox-table-empty[data-v-1b800fe4] {
  text-align: center;
  padding: 0.5rem;
  /* Reduced from 2rem */
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  margin: 0.75rem 0;
  /* Reduced from 1rem */
}

/* Responsive styles */
@media (max-width: 768px) {
.brox-table-top-controls[data-v-1b800fe4] {
    flex-direction: column;
    align-items: stretch;
}
.brox-table[data-v-1b800fe4] {
    overflow-x: auto;
    white-space: nowrap;
}
[data-v-1b800fe4] .brox-table-search .search-container {
    width: 100%;
}
}

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

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


/* Highlight row on hover */
.brox-table tbody tr[data-v-1b800fe4]: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-1b800fe4] {
  cursor: pointer;
}
.brox-table-cell[data-v-1b800fe4] {
  padding: 0.25rem 0.5rem;
  /* Reduced padding for more compact rows */
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1;
  /* Compact line height */
  height: 1rem;
  /* Fixed height for rows */
  text-overflow: ellipsis;
}

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

/* Loading overlay */
.loading-overlay-active[data-v-1b800fe4] {
  opacity: 0.6;
  pointer-events: none;
}
.table-loading-overlay[data-v-1b800fe4] {
  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-1b800fe4] {
  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-1b800fe4] {
  font-size: 2rem;
  color: #4F5D75;
  margin-bottom: 0.5rem;
}
.brox-table-controls[data-v-1b800fe4] {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.limit-container[data-v-1b800fe4] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.limit-label[data-v-1b800fe4] {
  color: #555;
}
.limit-select[data-v-1b800fe4] {
  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-1b800fe4]:focus {
  outline: none;
  border-color: #4F5D75;
  box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.limit-text[data-v-1b800fe4] {
  color: #555;
}
.select-col[data-v-1b800fe4] {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}
.select-col input[type="checkbox"][data-v-1b800fe4] {
  height: 18px;
  cursor: pointer;
  accent-color: #355c3a;
}
.brox-table tbody tr[data-v-1b800fe4]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

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

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

/* If you want selected+hover to be even darker */
[data-v-1b800fe4] tr.selected-row:hover {
  background-color: rgba(79, 93, 117, 0.28);
}
[data-v-1b800fe4] 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-1b800fe4] {
  background-color: #f5f5f5 !important;
  color: #888 !important;
}
.locked-icon[data-v-1b800fe4] {
  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-39225f8c] {
  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-39225f8c] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Reduced from 1rem */
  flex-wrap: wrap;
  gap: 0.25rem;
  /* Reduced from 1rem */
}
.brox-table[data-v-39225f8c] {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  position: relative;
  min-height: 80px;
  /* Reduced from 100px */
  table-layout: fixed;
  /* Helps with column width control */
}

/* Make rows more compact */
[data-v-39225f8c] .brox-table-cell {
  padding: 0.25rem 0.5rem;
  /* Reduced from 0.75rem */
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1.0;
  /* Tighter line height */
  white-space: nowrap;
  text-overflow: ellipsis;
}
[data-v-39225f8c] .brox-table-header {
  padding: 0.25rem 0.5rem;
  /* Reduced from 0.75rem */
  font-size: 0.95rem;
  /* Slightly smaller header text */
}
.brox-table-empty[data-v-39225f8c] {
  text-align: center;
  padding: 0.5rem;
  /* Reduced from 2rem */
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  margin: 0.75rem 0;
  /* Reduced from 1rem */
}

/* Responsive styles */
@media (max-width: 768px) {
.brox-table-top-controls[data-v-39225f8c] {
    flex-direction: column;
    align-items: stretch;
}
.brox-table[data-v-39225f8c] {
    overflow-x: auto;
    white-space: nowrap;
}
[data-v-39225f8c] .brox-table-search .search-container {
    width: 100%;
}
}

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

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


/* Highlight row on hover */
.brox-table tbody tr[data-v-39225f8c]: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-39225f8c] {
  cursor: pointer;
}
.brox-table-cell[data-v-39225f8c] {
  padding: 0.25rem 0.5rem;
  /* Reduced padding for more compact rows */
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  line-height: 1;
  /* Compact line height */
  height: 1rem;
  /* Fixed height for rows */
  text-overflow: ellipsis;
}

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

/* Loading overlay */
.loading-overlay-active[data-v-39225f8c] {
  opacity: 0.6;
  pointer-events: none;
}
.table-loading-overlay[data-v-39225f8c] {
  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-39225f8c] {
  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-39225f8c] {
  font-size: 2rem;
  color: #4F5D75;
  margin-bottom: 0.5rem;
}
.brox-table-controls[data-v-39225f8c] {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.limit-container[data-v-39225f8c] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.limit-label[data-v-39225f8c] {
  color: #555;
}
.limit-select[data-v-39225f8c] {
  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-39225f8c]:focus {
  outline: none;
  border-color: #4F5D75;
  box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.2);
}
.limit-text[data-v-39225f8c] {
  color: #555;
}
.select-col[data-v-39225f8c] {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}
.select-col input[type="checkbox"][data-v-39225f8c] {
  height: 18px;
  cursor: pointer;
  accent-color: #355c3a;
}
.brox-table tbody tr[data-v-39225f8c]:hover {
  background-color: rgba(79, 93, 117, 0.12);
  transition: background-color 0.18s;
}

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

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

/* If you want selected+hover to be even darker */
[data-v-39225f8c] tr.selected-row:hover {
  background-color: rgba(79, 93, 117, 0.28);
}
[data-v-39225f8c] 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-39225f8c] {
  background-color: #f5f5f5 !important;
  color: #888 !important;
}
.locked-icon[data-v-39225f8c] {
  margin-left: 8px;
  color: #b71c1c;
  font-size: 1em;
  vertical-align: middle;
}

.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%;
}
  
