html,
body {
  background-color: #d5d7e1;
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #21367a;
  /* margin: 15px 0; */
}

.caret {
  color: #21367a;
}

h1 {
  font-size: 2em;
  line-height: 30px;
}
h2 {
  font-size: 1.5em;
  line-height: 25px;
}
h3 {
  font-size: 1.17em;
  line-height: 20px;
}
h4 {
  font-size: 1.12em;
  line-height: 20px;
}
h5 {
  font-size: 0.83em;
  line-height: 20px;
}
h6 {
  font-size: 0.75em;
  line-height: 20px;
}

b {
  color: #21367a;
}
a {
  text-decoration: none;
  color: #21367a;
}
a:hover {
  text-decoration: none;
  color: #673d99;
}

.header-margin {
  height: 85px;
}

.frontEnd-wrapper {
  padding: 50px 15px;
  background-color: white;
}

.backEnd-wrapper {
  padding: 100px 15px;
  background-image: url("../_images/card-ro.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.buffer {
  /* padding: 100px 15px; */
  background-image: url("../_images/card-ro.jpg");

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

hr {
  width: 100%;
  /* height: 30px; */
  /* margin-left: auto;
    margin-right: auto; */
  background-color: #936fbd;
  margin: 30px auto;
}
nav {
  background-color: #ffffff;
}
#main-wrapper {
  position: relative;
  height: 100%;
  margin-top: 75px;
}

#openLead .card-header {
  background-color: #21367a;
}
#openLead .card-header a {
  color: #ffffff;
}
#openLead .card-header a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.btn-link {
  color: #21367a;
}
.btn-link:hover {
  color: #673d99;
}

.header-menu {
  /* padding: 15px; */
  background-color: #ffffff;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.25);
  position: relative;
}

.navbar {
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.25);
}
.menuButton {
  border-right: 1px solid #cecece;
}

.home-footer-styles {
  font-style: italic;
  color: #888888;
  font-size: 12px;
  padding: 15px 15px 400px;
  background-color: #ffffff;
  border-top: 1px solid #cecece;
  /* line-height: 30px; */
}

.page-title {
  padding: 20px;
  background-color: purple;
}

.footer-styles {
  font-style: italic;
  color: #cecece;
  font-size: 12px;
  padding: 20px 40px 400px;
  border-top: 1px solid #016aad;
  /* line-height: 30px; */
  /* margin-top: 50px; */
  background-color: #0f193b;
}

/**
 
NAV

*/

.navbar-company-fallback {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #e4e7ea;
  background: #f8f9fa;
  color: #8a929a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.company-logo-fallback {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e4e7ea;
  background: #f8f9fa;
  color: #8a929a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.navbar-logout-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e4e7ea;
  background: #fff;
  color: #777f87;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.navbar-logout-button:hover {
  background: #fff2f2;
  border-color: #efcaca;
  color: #dc3545;
}

.profile-switcher {
  min-width: 210px;
  max-width: 280px;
  padding: 6px 9px;
  border-radius: 10px;
  color: #343a40;
  transition: background 0.15s ease;
}

.profile-switcher:hover {
  background: #f7f8fa;
  color: #212529;
}

.profile-switcher[aria-expanded="true"] {
  background: #f3f5f7;
}

/* Logo */

.profile-switcher-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e4e7ea;
  background: #fff;
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}

.profile-switcher-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #8a929a;
  font-size: 1rem;
}

/* Text */

.profile-switcher-text {
  min-width: 0;
  flex-grow: 1;
  line-height: 1.2;
}

.profile-switcher-name {
  color: #343a40;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-switcher-company {
  margin-top: 3px;
  color: #9299a1;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Caret */

.profile-switcher-caret {
  margin-left: 10px;
  color: #a0a6ac;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/**
FILE LIST
*/

#drop-area {
  padding: 20px;
}

#drop-area.highlight {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 100%;
  border-color: purple;
}

#fileElem {
  display: none;
}

.file-manager-card {
  overflow: hidden;
  border-radius: 10px;
}

/* Header */

.folder-back-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f3f5;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.folder-back-button:hover {
  background: #e5e8eb;
  color: #212529;
}

/* Upload */

.upload-progress {
  display: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
}

.file-drop-area {
  min-height: 400px;
  max-height: 800px;
  overflow-y: auto;
  padding: 12px 20px 20px;
  transition: background-color 0.15s ease;
}

/* Useful if your drag/drop JS adds a class */

.file-drop-area.dragover {
  background: #f5f9ff;
}

/* File Rows */

.file-list {
  border-radius: 8px;
  overflow: hidden;
}

.file-row {
  padding: 14px 12px;
  border-color: #edf0f2;
  transition: background-color 0.12s ease;
}

.file-row:hover {
  background: #fafbfc;
}

/* Icon */

.file-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f1f5fa;
  color: #54749a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* File Info */

.file-name {
  display: inline-block;
  max-width: 100%;
  color: #273444;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.file-name:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

.file-description {
  margin-top: 3px;
  color: #7b838c;
  font-size: 0.75rem;
}

.file-inline-action {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  color: #a0a6ad;
  font-size: 0.75rem;
  border-radius: 4px;
}

.file-inline-action:hover {
  background: #eef0f2;
  color: #495057;
}

/* Metadata */

.file-meta-area {
  gap: 24px;
}

.file-meta-item {
  min-width: 100px;
}

.file-meta-label {
  margin-bottom: 2px;
  color: #adb5bd;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.file-meta-value {
  color: #555d66;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* Actions */

.file-actions {
  min-width: 85px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.file-action-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e4e7ea;
  border-radius: 6px;
  background: #fff;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.file-action-button:hover {
  background: #f4f6f8;
  border-color: #ced4da;
  color: #343a40;
}

.file-delete-button {
  color: #c65a5a;
}

.file-delete-button:hover {
  background: #fff1f1;
  border-color: #f0caca;
  color: #dc3545;
}

/* Sharing */

.share-controls {
  white-space: nowrap;
}

/* Smaller screens */

@media (max-width: 991.98px) {
  .file-meta-area {
    gap: 12px;
  }

  .file-meta-item {
    min-width: auto;
  }

  .file-meta-label {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .file-row > .d-flex {
    align-items: flex-start !important;
  }

  .file-meta-item {
    display: none;
  }

  .file-meta-area {
    margin-left: 10px !important;
  }
}

/**

SIDE BAR

*/

.sidebar-panel {
  min-height: 300px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Header */

.sidebar-title {
  padding: 3px 5px;
  font-size: 1rem;
}

.sidebar-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef4ff;
  color: #3973d6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar-divider {
  height: 1px;
  background: #edf0f2;
  margin: 12px 0;
}

/* Main navigation */

.sidebar-nav {
  gap: 4px;
}

.sidebar-nav .nav-link,
.sidebar-project-toggle {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #525960 !important;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-project-toggle:hover {
  background: #f5f7f9;
  color: #212529 !important;
}

.sidebar-nav .nav-link.active {
  background: #eef4ff;
  color: #316cc7 !important;
  font-weight: 600;
}

.sidebar-nav-icon {
  width: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.sidebar-nav .nav-link.active .sidebar-nav-icon {
  color: #316cc7;
}

/* Projects */

.sidebar-project-toggle {
  background: transparent;
}

.sidebar-project-toggle:focus {
  box-shadow: none;
}

.sidebar-project-toggle.project-open {
  color: #212529 !important;
}

.sidebar-caret {
  color: #a1a6ac;
  font-size: 0.8rem;
}

/* Sub navigation */

.sidebar-subnav {
  margin: 3px 0 5px 24px;
  padding-left: 12px;
  border-left: 1px solid #e6e9ec;
}

.sidebar-subnav .nav-link {
  min-height: auto;
  padding: 7px 9px;
  font-size: 0.78rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.sidebar-subnav .nav-link.active {
  background: #f0f5ff;
  color: #316cc7 !important;
}

.sidebar-subnav-dot {
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: #adb5bd;
  flex-shrink: 0;
}

.sidebar-subnav .nav-link.active .sidebar-subnav-dot {
  background: #316cc7;
}

/* User section */

.sidebar-user {
  padding: 8px;
  border-radius: 9px;
  transition: background 0.15s ease;
}

.sidebar-user:hover {
  background: #f7f8fa;
}

.sidebar-user::after {
  margin-left: 8px;
  color: #adb5bd;
}

.sidebar-company-logo {
  border-radius: 8px;
  border: 1px solid #e4e7ea;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.sidebar-company-fallback {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e4e7ea;
  background: #f8f9fa;
  color: #8a929a;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-user-name {
  color: #343a40;
  font-size: 0.8rem;
}

.sidebar-company-name {
  margin-top: 2px;
  color: #9299a1;
  font-size: 0.68rem;
}

/* Dropdown */

.sidebar-panel .dropdown-menu {
  min-width: 175px;
  padding: 5px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.sidebar-panel .dropdown-item {
  padding: 7px 9px;
  border-radius: 5px;
}

.sidebar-panel .dropdown-item:hover {
  background: #f5f6f8;
}

.sidebar-panel .dropdown-item.text-danger:hover {
  background: #fff2f2;
  color: #dc3545 !important;
}

/**

DASHBOARD

*/

.action-table tr {
  text-align: center;
}

.action-table .title-span {
  color: #21367a;
  vertical-align: middle;
  font-weight: 600;
}

.activity-card {
  border-radius: 10px;
  overflow: hidden;
}

.activity-table td {
  padding: 15px 12px;
  border-color: #edf0f2;
}

.activity-row {
  transition: background-color 0.12s ease;
}

.activity-row:hover {
  background: #fafbfc;
}

/* Activity icon */

.activity-icon-column {
  width: 65px;
  padding-left: 20px !important;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.activity-icon:hover {
  transform: translateY(-1px);
}

.activity-folder {
  background: #fff7e6;
  color: #c58b24;
}

.activity-file {
  background: #eef4ff;
  color: #3973d6;
}

.activity-project {
  background: #f2efff;
  color: #7254c7;
}

.activity-comment {
  background: #edf8f1;
  color: #2d8b57;
}

.activity-survey {
  background: #edf8fa;
  color: #2c8390;
}

.activity-task {
  background: #eef8ee;
  color: #438844;
}

.activity-default {
  background: #f1f3f5;
  color: #687078;
}

/* Text */

.activity-title {
  margin-bottom: 3px;
  color: #2d3339;
  font-size: 0.86rem;
  font-weight: 600;
}

.activity-description {
  max-width: 500px;
  color: #777f87;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* User */

.activity-user-column {
  width: 180px;
}

.activity-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f3f5;
  border: 1px solid #e2e5e8;
  color: #69717a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
}

.activity-user-name {
  color: #444b52;
  font-size: 0.77rem;
  font-weight: 500;
}

.activity-user-you {
  margin-top: 1px;
  color: #9ba1a7;
  font-size: 0.65rem;
}

/* Time */

.activity-time-column {
  width: 180px;
  text-align: right;
}

.activity-relative-time {
  color: #555d65;
  font-size: 0.74rem;
  font-weight: 500;
}

.activity-date {
  margin-top: 2px;
  color: #a0a6ac;
  font-size: 0.66rem;
}

/* Menu */

.activity-menu-column {
  width: 45px;
  padding-right: 18px !important;
}

.activity-menu-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a0a6ac;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-menu-button:hover {
  background: #f1f3f5;
  color: #495057;
}

.activity-card .dropdown-menu {
  min-width: 140px;
  padding: 5px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.activity-card .dropdown-item {
  padding: 7px 9px;
  border-radius: 5px;
}

.activity-card .dropdown-item.text-danger:hover {
  background: #fff2f2;
  color: #dc3545 !important;
}

/* Empty state */

.activity-empty-state {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.activity-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f3f5;
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Responsive */

@media (max-width: 991.98px) {
  .activity-user-column {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .activity-time-column {
    width: 110px;
  }

  .activity-date {
    display: none;
  }

  .activity-description {
    max-width: 260px;
  }
}

/**

STATISTICS

*/

.dashboard-stat-card {
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07) !important;
}

/* Text */

.dashboard-stat-label {
  color: #7e8790;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-stat-value {
  margin-top: 4px;
  color: #242a30;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
}

.dashboard-stat-subtext {
  margin-top: 5px;
  color: #a0a6ac;
  font-size: 0.72rem;
}

/* Icon */

.dashboard-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Individual icon styles */

.dashboard-stat-folder {
  background: #fff7e6;
  color: #c78b22;
}

.dashboard-stat-file {
  background: #eef4ff;
  color: #3973d6;
}

.dashboard-stat-project {
  background: #f2efff;
  color: #7254c7;
}

/**

ADMIN

*/
.log-filter-bar {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.log-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  font-weight: 600;
  border-bottom-width: 1px;
  white-space: nowrap;
}

.log-table tbody td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.log-row {
  transition: background-color 0.12s ease;
}

.log-row:hover {
  background: #fafbfc;
}

.log-time {
  font-size: 0.72rem;
}

.log-subtext {
  font-size: 0.72rem;
}

.log-description {
  font-size: 0.86rem;
}

.log-user-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f3f5;
  border: 1px solid #e5e7e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6c757d;
}

/* Activity Badge */

.log-action {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.log-primary {
  background: #eef4ff;
  color: #3267c8;
}

.log-success {
  background: #edf8f1;
  color: #278653;
}

.log-danger {
  background: #fff0f0;
  color: #c44747;
}

.log-warning {
  background: #fff7e6;
  color: #9b6b16;
}

.log-info {
  background: #edf8fa;
  color: #277b87;
}

.log-secondary {
  background: #f1f3f5;
  color: #59636d;
}

.log-ip {
  display: inline-block;
  font-family: monospace;
  font-size: 0.72rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 2px 5px;
  cursor: help;
}

/**

 FOLDERS

*/

.folder-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  background: #fff;
  border: 1px solid #e7e9ec;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.folder-card:hover {
  border-color: #cfd7e2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.folder-card {
  position: relative;
  z-index: 1;
}

.folder-card:hover {
  z-index: 10;
}

.folder-card:has(.dropdown-menu.show) {
  z-index: 1000;
}

.folder-card .dropdown-menu {
  z-index: 1050;
}

.folder-main-link {
  display: flex;
  align-items: center;
  flex-grow: 1;
  min-width: 0;
  padding: 17px 45px 17px 17px;
  text-decoration: none;
}

.folder-icon {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: #eef4ff;
  color: #3973d6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
}

.folder-info {
  min-width: 0;
  margin-left: 13px;
}

.folder-name {
  color: #292f36;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  /* white-space: nowrap; */
  /* text-overflow: ellipsis; */
}

.folder-status {
  color: #8a929b;
  font-size: 0.7rem;
  margin-top: 3px;
}

.folder-actions {
  position: absolute;
  /* top: 10px; */
  right: 9px;
}

.folder-action-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b9198;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.folder-action-button:hover,
.folder-action-button:focus {
  background: #f2f3f5;
  color: #343a40;
}

.folder-card-archived {
  background: #fafafa;
  border-color: #ececec;
}

.folder-card-archived .folder-name {
  color: #6c757d;
}

.folder-icon-archived {
  background: #f1f1f1;
  color: #8b9299;
}

.folder-section-divider {
  height: 1px;
  background: #eceef0;
  margin: 32px 0 24px;
}

/* Empty state */

.folder-empty-state {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #d9dde2;
  border-radius: 10px;
  background: #fafbfc;
  color: #6c757d;
}

.folder-empty-state > i {
  font-size: 1.7rem;
  color: #adb5bd;
}

/* Dropdown */

.folder-card .dropdown-menu {
  min-width: 155px;
  padding: 5px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.folder-card .dropdown-item {
  border-radius: 5px;
  padding: 7px 10px;
}

.folder-card .dropdown-item:hover {
  background: #f5f6f8;
}

.folder-card .dropdown-item.text-danger:hover {
  background: #fff2f2;
}

/**

COMPANY SEARCH

*/
.company-search {
  max-width: 320px;
}

.c-company-table > tbody > tr > td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.c-company-row {
  transition: background-color 0.15s ease;
}

.c-company-row:hover {
  background: #fafafa;
}

.c-company-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #e4e7ea;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.c-company-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #8a929a;
  font-size: 1.1rem;
}

.c-company-name {
  font-size: 0.95rem;
}

/**

ADMIN STORAGE / ACTIVITY LOG

*/

/* =========================================================
   STORAGE SUMMARY
   ========================================================= */

.storage-summary-card,
.storage-card {
  border-radius: 12px;
  overflow: hidden;
}

.storage-summary-card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.storage-summary-card:hover {
  transform: translateY(-2px);
}

.storage-summary-label {
  color: #7e8790;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.storage-summary-value {
  margin-top: 5px;
  color: #272d33;
  font-size: 1.8rem;
  font-weight: 700;
}

.storage-summary-subtext {
  margin-top: 3px;
  color: #a0a6ac;
  font-size: 0.7rem;
}

.storage-summary-icon {
  width: 50px;
  height: 50px;
  border-radius: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.25rem;
}

.storage-icon-primary {
  background: #eef4ff;
  color: #3973d6;
}

.storage-icon-files {
  background: #edf8f1;
  color: #2d8b57;
}

.storage-icon-companies {
  background: #f2efff;
  color: #7254c7;
}

/* =========================================================
   DASHBOARD PANELS
   ========================================================= */

.dashboard-panel,
.activity-log-card {
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
}

/* =========================================================
   STORAGE COMPANY LIST
   ========================================================= */

.storage-company-list {
  height: calc(620px - 78px);
  overflow-y: auto;
}

.storage-company-item {
  display: block;
  padding: 16px 20px;

  color: inherit;
  border-bottom: 1px solid #eef0f2;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.storage-company-item:last-child {
  border-bottom: 0;
}

.storage-company-item:hover {
  background: #fafbfc;
}

/* Company Logo */

.storage-company-logo {
  width: 42px;
  height: 42px;

  border-radius: 8px;
  border: 1px solid #e4e7ea;

  background: #f8f9fa;
  color: #8a929a;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  overflow: hidden;

  font-size: 1rem;
}

.storage-company-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  padding: 3px;

  background: #fff;
}

/* Company Content */

.storage-company-content {
  min-width: 0;
  flex-grow: 1;
}

.storage-company-name {
  max-width: 220px;

  color: #343a40;

  font-size: 0.82rem;
  font-weight: 600;
}

.storage-company-size {
  color: #343a40;

  font-size: 0.78rem;
  font-weight: 600;

  white-space: nowrap;
}

.storage-company-meta,
.storage-company-percent {
  color: #969da4;
  font-size: 0.67rem;
}

/* Progress */

.storage-progress {
  height: 4px;

  background: #edf0f2;
  border-radius: 20px;

  overflow: hidden;
}

.storage-progress .progress-bar {
  border-radius: 20px;
}

/* Company Arrow */

.storage-company-arrow {
  color: #b1b6bb;
  font-size: 0.7rem;

  flex-shrink: 0;

  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.storage-company-item:hover .storage-company-arrow {
  color: #3973d6;
  transform: translateX(2px);
}

/* =========================================================
   STORAGE FILE DETAILS
   Used when clicking into a company
   ========================================================= */

.storage-file-table thead th {
  padding: 12px 20px;

  background: #fafbfc;
  color: #8a929a;

  border-bottom: 1px solid #eceff2;

  font-size: 0.68rem;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.storage-file-table td {
  padding: 14px 20px;
  border-color: #edf0f2;
}

.storage-file-row {
  transition: background-color 0.12s ease;
}

.storage-file-row:hover {
  background: #fafbfc;
}

.storage-rank {
  color: #adb5bd;
  font-size: 0.72rem;
  font-weight: 600;
}

.storage-file-icon {
  width: 36px;
  height: 36px;

  border-radius: 7px;

  background: #f1f5fa;
  color: #54749a;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  font-size: 1rem;
}

.storage-file-name {
  max-width: 500px;

  color: #343a40;

  font-size: 0.82rem;
  font-weight: 600;
}

.storage-file-id {
  margin-top: 2px;

  color: #a0a6ac;
  font-size: 0.65rem;
}

.storage-folder-badge {
  display: inline-flex;
  align-items: center;

  max-width: 200px;

  padding: 4px 7px;

  border-radius: 5px;

  background: #f5f6f7;
  color: #707880;

  font-size: 0.7rem;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storage-file-size {
  color: #343a40;
  font-size: 0.8rem;
}

.storage-file-date {
  color: #777f87;
  font-size: 0.72rem;
}

/* Storage Detail Controls */

.storage-view-button,
.storage-back-button {
  width: 34px;
  height: 34px;

  border-radius: 7px;

  background: #f6f7f8;
  color: #7a828a;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.storage-view-button:hover,
.storage-back-button:hover {
  background: #eef4ff;
  color: #3973d6;
}

/* =========================================================
   ACTIVITY LOG
   ========================================================= */

.activity-log-card {
  display: flex;
  flex-direction: column;
}

.activity-log-card .card-header {
  position: relative;
  z-index: 5;

  flex-shrink: 0;

  background: #fff;
}

/* Remaining space belongs to the table */

.activity-log-body {
  min-height: 0;
  flex: 1;

  overflow: hidden;
}

/* Only the table scrolls */

.activity-log-scroll {
  height: 100%;
  overflow-y: auto;
}

/* Keep column headings visible */

.activity-log-scroll .log-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;

  background: #fafbfc;
}

.activity-log-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/*
|--------------------------------------------------------------------------
| Table
|--------------------------------------------------------------------------
*/

.log-table {
  width: 100%;
  table-layout: fixed;
}

.log-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;

  background: #fafbfc;

  color: #667085;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.04em;
  text-transform: uppercase;

  border-bottom: 1px solid #e9edf2;

  padding: 11px 12px;
}

.log-table tbody td {
  padding: 12px;

  vertical-align: middle;

  border-bottom: 1px solid #f0f2f5;

  color: #344054;

  font-size: 13px;

  overflow: hidden;
}

.log-table tbody tr:last-child td {
  border-bottom: 0;
}

.log-row {
  transition: background 0.15s ease;
}

.log-row:hover {
  background: #fafbfc;
}

/*
|--------------------------------------------------------------------------
| Column Widths
|--------------------------------------------------------------------------
*/

.log-date-col {
  width: 85px;
}

.log-user-col {
  width: 165px;
}

.log-action-col {
  width: 135px;
}

/*
|--------------------------------------------------------------------------
| Date
|--------------------------------------------------------------------------
*/

.log-date {
  color: #344054;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
}

.log-time {
  margin-top: 2px;

  color: #98a2b3;

  font-size: 11px;

  white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| User
|--------------------------------------------------------------------------
*/

.log-user-icon {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 9px;

  border-radius: 8px;

  background: #f1f4f8;

  color: #667085;

  font-size: 11px;
  font-weight: 700;
}

.log-user-info {
  min-width: 0;
}

.log-user-name {
  color: #344054;

  font-size: 12px;
  font-weight: 600;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-company {
  margin-top: 3px;

  color: #98a2b3;

  font-size: 10px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-company i {
  margin-right: 3px;
}

/*
|--------------------------------------------------------------------------
| Action
|--------------------------------------------------------------------------
*/

.log-action {
  display: inline-flex;
  align-items: center;

  max-width: 100%;

  gap: 5px;

  padding: 4px 8px;

  border-radius: 6px;

  font-size: 10px;
  font-weight: 700;

  white-space: nowrap;
}

.log-action i {
  flex-shrink: 0;
}

.log-action span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Details
|--------------------------------------------------------------------------
*/

.log-description {
  color: #475467;

  font-size: 12px;
  line-height: 1.4;

  overflow-wrap: anywhere;
  word-break: normal;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  font-size: 10px;
}

.log-meta i {
  width: 11px;
  flex-shrink: 0;
  text-align: center;
}

.log-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-ip {
  opacity: 0.95;
}

.log-meta.log-ip {
  display: inline-flex;
  width: auto;
}

/*
|--------------------------------------------------------------------------
| Slightly Smaller Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 1399px) {
  .log-table thead th,
  .log-table tbody td {
    padding-left: 9px;
    padding-right: 9px;
  }

  .log-date-col {
    width: 78px;
  }

  .log-user-col {
    width: 145px;
  }

  .log-action-col {
    width: 115px;
  }

  .log-action {
    padding: 4px 6px;
  }
}

/*
|--------------------------------------------------------------------------
| Very Narrow
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
  .log-user-col {
    width: 130px;
  }

  .log-action-col {
    width: 105px;
  }

  .log-user-icon {
    display: none;
  }
}
