.hepta-app * {
  box-sizing: border-box;
}

.hepta-app {
  display: flex;
  min-height: 85vh;
  background: #f4f6fb;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
  color: #172033;
}

.hepta-mobile-toggle {
  display: none;
}

.hepta-sidebar {
  width: 235px;
  background: #fbfcfe;
  border-right: 1px solid #e6ebf2;
  padding: 18px 14px;
  flex-shrink: 0;
}

.hepta-sidebar-header {
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6ebf2;
}

.hepta-team-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
}

.hepta-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3f8;
  border: 1px solid #d9e4ef;
  font-size: 12px;
  font-weight: 500;
  color: #31445f;
}

.hepta-menu-section-title {
  padding: 12px 8px 8px;
  color: #8b96a8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hepta-menu-item,
.hepta-submenu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 11px 12px;
  color: #5b6678;
  cursor: pointer;
  margin-bottom: 4px;
  font-weight: 500;
}

.hepta-menu-item.active,
.hepta-submenu-item.active {
  background: #eef3f8;
  color: #172033;
}

.hepta-main-content {
  flex: 1;
  padding: 28px 30px;
}

.hepta-content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.hepta-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hepta-eyebrow {
  color: #8b96a8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.hepta-page-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
}

.hepta-page-subtitle {
  margin: 0;
  color: #667085;
  font-weight: 400;
}

.hepta-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hepta-view-section {
  display: none;
}

.hepta-view-section.active {
  display: block;
}

.hepta-status-toolbar,
.hepta-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hepta-status-toolbar-top {
  margin-bottom: 0;
}

.hepta-status-btn,
.hepta-btn {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: #172033;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500;
}

.hepta-status-btn.active {
  background: #001f3f;
  color: #fff;
  border-color: #001f3f;
}

.hepta-btn-primary {
  background: #001f3f;
  color: #fff;
  border-color: #001f3f;
}

.hepta-btn-danger {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.hepta-filter-row select,
.hepta-filter-row input,
.hepta-form-field input,
.hepta-form-field select {
  min-width: 220px;
  border: 1px solid #dbe3ec;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 400;
  width: 100%;
}

.hepta-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hepta-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hepta-form-field label {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
}

.hepta-form-field-full {
  grid-column: 1 / -1;
}

.hepta-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hepta-summary-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 14px;
}

.hepta-summary-card.danger {
  border-color: #f0d1d1;
  background: #fff8f8;
}

.hepta-summary-label {
  font-size: 11px;
  color: #667085;
  margin-bottom: 6px;
  font-weight: 400;
}

.hepta-summary-value {
  font-size: 24px;
  font-weight: 500;
  color: #172033;
}

.hepta-client-section {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.hepta-client-header {
  width: 100%;
  border: none;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
}

.hepta-client-body {
  display: none;
  padding: 0 16px 16px;
}

.hepta-client-body.open {
  display: block;
}

.hepta-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hepta-task-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e7eaf1;
  background: #fbfcff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.hepta-task-card.overdue {
  border-color: #efc4c4;
  background: #fff8f8;
}

.hepta-task-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #172033;
}

.hepta-task-meta {
  font-size: 12px;
  color: #667085;
  margin-bottom: 6px;
  font-weight: 400;
}

.hepta-task-meta strong,
.hepta-modal-grid strong,
.hepta-panel-header,
.hepta-modal-header h3 {
  font-weight: 500;
}

.hepta-empty-state,
.hepta-placeholder-box {
  text-align: center;
  background: #fff;
  border: 1px dashed #d7e0ea;
  border-radius: 16px;
  padding: 40px 20px;
  color: #98a2b3;
  font-weight: 400;
}

.hepta-empty-state {
  display: none;
}

.hepta-panel-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  overflow: hidden;
}

.hepta-panel-header {
  padding: 16px 18px;
  font-size: 16px;
  border-bottom: 1px solid #e5eaf2;
  background: #fafbfd;
}

.hepta-panel-body {
  padding: 18px;
}

.hepta-chart-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 20px;
}

.hepta-performance-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}

.hepta-performance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 12px;
}

.hepta-performance-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hepta-performance-label {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: #667085;
}

.hepta-performance-value {
  font-size: 14px;
  font-weight: 500;
  color: #172033;
}

.hepta-table-wrap {
  overflow: auto;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #fff;
}

.hepta-data-table {
  width: 100%;
  border-collapse: collapse;
}

.hepta-data-table th,
.hepta-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
}

.hepta-data-table th {
  font-weight: 500;
  background: #fafbfd;
  color: #667085;
}

.hepta-table-search {
  max-width: 320px;
}

.hepta-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.hepta-modal-backdrop.show {
  display: flex;
}

.hepta-modal {
  width: min(760px, 96vw);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.hepta-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 16px 18px;
  border-bottom: 1px solid #e5eaf2;
  background: #fafbfd;
}

.hepta-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.hepta-modal-body {
  padding: 18px 26px 18px 18px;
}

.hepta-modal-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.hepta-modal-grid div,
.hepta-modal-body label,
.hepta-modal-body textarea,
.hepta-modal-body select {
  font-weight: 400;
}

.hepta-modal-grid strong {
  color: #667085;
}

.hepta-modal-body textarea,
.hepta-modal-body select {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
}

.hepta-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hepta-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #edf3f8;
  color: #31445f;
  border: 1px solid #d7e2ee;
  padding: 12px 14px;
  border-radius: 14px;
  z-index: 100000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  font-weight: 400;
}

.hepta-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hepta-toast.success {
  background: #eaf8f1;
  color: #18734e;
  border-color: #cdeedc;
}

.hepta-toast.error {
  background: #fff1f1;
  color: #b04242;
  border-color: #f0d1d1;
}

@media (max-width: 1100px) {
  .hepta-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .hepta-app {
    flex-direction: column;
  }

  .hepta-mobile-toggle {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    border: none;
    background: #001f3f;
    color: #fff;
    padding: 12px 14px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
  }

  .hepta-sidebar {
    width: 100%;
    display: none;
    border-right: none;
    border-bottom: 1px solid #e6ebf2;
  }

  .hepta-sidebar.show {
    display: block;
  }

  .hepta-main-content {
    padding: 18px;
  }

  .hepta-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hepta-modal-grid,
  .hepta-form-grid {
    grid-template-columns: 1fr;
  }

  .hepta-top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hepta-performance-legend {
    grid-template-columns: 1fr;
  }
}


.hepta-modal .hepta-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  column-gap: 14px;
}

.hepta-modal .hepta-form-field {
  min-width: 0;
  width: 100%;
}

.hepta-modal .hepta-form-field-full {
  grid-column: 1 / -1;
  padding-right: 14px;
}

.hepta-modal .hepta-form-field input,
.hepta-modal .hepta-form-field select,
.hepta-modal .hepta-form-field textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.hepta-modal #hepta-modal-due {
  max-width: 92%;
}

.hepta-modal #hepta-modal-notes {
  width: calc(100% - 14px);
  max-width: calc(100% - 14px);
  margin-right: 14px;
}

.hepta-modal .hepta-modal-actions {
  padding-right: 18px;
}



.hepta-modal #hepta-modal-client {
  width: calc(100% - 22px);
  max-width: calc(100% - 22px);
  margin-right: 22px;
}


.hepta-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hepta-inline-actions input {
  flex: 1;
}

.hepta-success-box {
  border: 1px solid #cdeedc;
  background: #eaf8f1;
  color: #18734e;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}


.hepta-data-table td:last-child {
  white-space: nowrap;
}

.hepta-data-table td:last-child .hepta-btn {
  margin-right: 8px;
  margin-bottom: 6px;
}

.hepta-data-table td:last-child .hepta-btn:last-child {
  margin-right: 0;
}

#hepta-client-modal .hepta-modal {
  width: min(820px, 96vw);
}

#hepta-client-modal .hepta-modal-body {
  padding: 18px 30px 18px 18px;
  overflow-x: hidden;
}

#hepta-client-modal .hepta-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 14px;
}

#hepta-client-modal .hepta-form-field {
  min-width: 0;
}

#hepta-client-modal .hepta-form-field input,
#hepta-client-modal .hepta-form-field select,
#hepta-client-modal .hepta-form-field textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#hepta-client-modal .hepta-modal-actions {
  padding-right: 18px;
  justify-content: flex-start;
}

@media (max-width: 820px) {
  #hepta-client-modal .hepta-form-grid {
    grid-template-columns: 1fr;
  }
}


#hepta-client-modal .hepta-form-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr);
}

#hepta-client-modal #hepta-client-edit-name,
#hepta-client-modal #hepta-client-edit-email,
#hepta-client-modal #hepta-client-edit-contact,
#hepta-client-modal #hepta-client-edit-token {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#hepta-client-modal .hepta-form-field {
  overflow: hidden;
}


.hepta-report-table .hepta-report-row {
  cursor: pointer;
}

.hepta-report-table .hepta-report-row:hover td {
  background: #f8fafc;
}

.hepta-report-detail-row td {
  background: #fbfcff;
}

.hepta-report-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 0;
}

.hepta-report-task-card {
  margin: 0;
}

@media (max-width: 820px) {
  .hepta-report-task-grid {
    grid-template-columns: 1fr;
  }
}


.hepta-master-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hepta-master-tab.active {
  background: #001f3f;
  color: #fff;
  border-color: #001f3f;
}

.hepta-master-pane {
  display: none;
}

.hepta-master-pane.active {
  display: block;
}


#hepta-team-modal .hepta-modal {
  width: min(820px, 96vw);
}

#hepta-team-modal .hepta-modal-body {
  padding: 18px 30px 18px 18px;
  overflow-x: hidden;
}

#hepta-team-modal .hepta-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 14px;
}

#hepta-team-modal .hepta-form-field {
  min-width: 0;
}

#hepta-team-modal .hepta-form-field input,
#hepta-team-modal .hepta-form-field select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 820px) {
  #hepta-team-modal .hepta-form-grid {
    grid-template-columns: 1fr;
  }
}


/* Members board */
#hepta-master-pane-members .hepta-table-wrap {
  overflow-x: auto;
}

#hepta-master-pane-members .hepta-data-table {
  width: 100%;
  min-width: 760px;
}

#hepta-master-pane-members .hepta-data-table th:last-child,
#hepta-master-pane-members .hepta-data-table td:last-child {
  white-space: nowrap;
  width: 170px;
}

#hepta-master-pane-members .hepta-data-table td:last-child .hepta-btn {
  margin-right: 8px;
  margin-bottom: 6px;
}

#hepta-master-pane-members .hepta-data-table td:last-child .hepta-btn:last-child {
  margin-right: 0;
}

/* Team modal */
#hepta-team-modal .hepta-modal {
  width: min(860px, 96vw);
}

#hepta-team-modal .hepta-modal-body {
  padding: 18px 34px 18px 18px;
  overflow-x: hidden;
}

#hepta-team-modal .hepta-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 16px;
  align-items: start;
}

#hepta-team-modal .hepta-form-field {
  min-width: 0;
  overflow: hidden;
}

#hepta-team-modal .hepta-form-field input,
#hepta-team-modal .hepta-form-field select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#hepta-team-modal .hepta-modal-actions {
  padding-right: 18px;
  justify-content: flex-start;
}

@media (max-width: 820px) {
  #hepta-master-pane-members .hepta-data-table {
    min-width: 0;
  }

  #hepta-team-modal .hepta-form-grid {
    grid-template-columns: 1fr;
  }
}


.hepta-master-pane .hepta-data-table td,
.hepta-master-pane .hepta-data-table th {
  vertical-align: top;
}

.hepta-master-pane .hepta-data-table td {
  word-break: break-word;
}


.hepta-updates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hepta-update-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.hepta-update-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
}

.hepta-update-action {
  font-weight: 500;
  margin-top: 6px;
}

.hepta-update-content {
  margin-top: 6px;
  font-size: 13px;
  color: #444;
}


/* === Minimal UI Mode (Underline Style) === */

/* Inputs, selects, textareas */
.hepta-form-field input,
.hepta-form-field select,
.hepta-form-field textarea,
.hepta-table-search,
.hepta-filter-row select {
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 6px 2px !important;
  outline: none !important;
}

.hepta-form-field input:focus,
.hepta-form-field select:focus,
.hepta-form-field textarea:focus,
.hepta-table-search:focus {
  border-bottom: 1px solid #111 !important;
}

/* Buttons */
.hepta-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  padding: 6px 4px !important;
}

.hepta-btn:hover {
  border-bottom: 1px solid #111 !important;
}

/* Danger button (keep color but still minimal) */
.hepta-btn-danger {
  color: #c0392b !important;
  border-bottom: 1px solid #c0392b !important;
}

/* Dropdown arrows clean */
.hepta-form-field select {
  appearance: none;
  background-image: none;
}

/* Remove card heaviness */
.hepta-panel-card {
  border: 1px solid #eee !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Remove heavy modal feel */
.hepta-modal {
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Update cards minimal */
.hepta-update-card {
  border: none !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
}

/* PIC buttons cleaner */
.hepta-filter-btn,
.hepta-pic-btn {
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.hepta-filter-btn.active,
.hepta-pic-btn.active {
  border-bottom: 2px solid #111 !important;
}


/* === Fix Button Text Visibility === */

/* Reset all button text to dark */
.hepta-btn {
  color: #111 !important;
}

/* Primary actions */
.hepta-btn-primary {
  color: #111 !important;
  border-bottom: 1px solid #111 !important;
}

/* Secondary buttons */
.hepta-btn-secondary {
  color: #666 !important;
  border-bottom: 1px solid #ccc !important;
}

/* Danger buttons */
.hepta-btn-danger {
  color: #c0392b !important;
  border-bottom: 1px solid #c0392b !important;
}

/* Hover clarity */
.hepta-btn:hover {
  color: #000 !important;
}

/* Disabled state */
.hepta-btn:disabled {
  color: #bbb !important;
  border-bottom: 1px solid #ddd !important;
  cursor: not-allowed;
}

/* Fix inline buttons (Cancel, Close, etc.) */
button,
button span {
  color: inherit !important;
}


/* === Minimal menu + toolbar cleanup === */

/* Sidebar menu */
.hepta-sidebar .hepta-menu-link,
.hepta-sidebar .hepta-submenu-link,
.hepta-sidebar .menu-item,
.hepta-sidebar .submenu-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #5f6b7a !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove old active box look */
.hepta-sidebar .hepta-menu-link.active,
.hepta-sidebar .hepta-submenu-link.active,
.hepta-sidebar .menu-item.active,
.hepta-sidebar .submenu-item.active,
.hepta-sidebar .hepta-menu-link:hover,
.hepta-sidebar .hepta-submenu-link:hover,
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .submenu-item:hover {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Underline style for menu text */
.hepta-sidebar .hepta-menu-link > span,
.hepta-sidebar .hepta-submenu-link > span,
.hepta-sidebar .menu-item,
.hepta-sidebar .submenu-item {
  text-decoration: none !important;
}

.hepta-sidebar .hepta-menu-link.active,
.hepta-sidebar .hepta-submenu-link.active,
.hepta-sidebar .menu-item.active,
.hepta-sidebar .submenu-item.active {
  color: #111 !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
}

.hepta-sidebar .hepta-menu-link:hover,
.hepta-sidebar .hepta-submenu-link:hover,
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .submenu-item:hover {
  color: #111 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
}

/* Remove icon box feeling */
.hepta-sidebar .menu-item i,
.hepta-sidebar .hepta-menu-link i {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Top toolbar buttons: Active / On Hold / Done / Refresh */
.hepta-btn,
.hepta-filter-btn,
.hepta-status-btn,
.hepta-toolbar .hepta-btn,
.hepta-toolbar button {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #bfc7d1 !important;
  border-radius: 0 !important;
  color: #4f5b68 !important;
  box-shadow: none !important;
  padding: 6px 2px !important;
}

/* Fix old dark active button */
.hepta-btn.active,
.hepta-filter-btn.active,
.hepta-status-btn.active,
.hepta-toolbar .hepta-btn.active,
.hepta-toolbar button.active,
.hepta-toolbar button[aria-pressed="true"] {
  background: transparent !important;
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
}

/* Hover */
.hepta-btn:hover,
.hepta-filter-btn:hover,
.hepta-status-btn:hover,
.hepta-toolbar .hepta-btn:hover,
.hepta-toolbar button:hover {
  color: #111 !important;
  border-bottom: 1px solid #111 !important;
}

/* Refresh button visibility */
.hepta-toolbar .hepta-btn,
.hepta-toolbar button,
button.hepta-btn {
  color: #111 !important;
}

/* Remove thick outline look from sidebar wrappers if present */
.hepta-sidebar .menu-item,
.hepta-sidebar .submenu-item {
  outline: none !important;
}

/* Optional: cleaner section titles */
.hepta-sidebar .menu-section-title,
.hepta-sidebar .hepta-menu-group-title {
  border: none !important;
  background: transparent !important;
}


/* === Sidebar aligned to minimal underline theme === */

.hepta-sidebar,
.sidebar {
  background: transparent !important;
  border-right: 1px solid #e6e9ee !important;
  box-shadow: none !important;
}

/* Section labels */
.hepta-sidebar .hepta-menu-group-title,
.hepta-sidebar .menu-section-title,
.sidebar .menu-section-title {
  background: transparent !important;
  border: none !important;
  color: #8b95a1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Main menu items */
.hepta-sidebar .hepta-menu-link,
.hepta-sidebar .menu-item,
.sidebar .menu-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #5d6977 !important;
  text-decoration: none !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Submenu items */
.hepta-sidebar .hepta-submenu-link,
.hepta-sidebar .submenu-item,
.sidebar .submenu-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #6c7785 !important;
  text-decoration: none !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  padding-left: 12px !important;
  padding-right: 0 !important;
}

/* Remove active pill / hover box */
.hepta-sidebar .hepta-menu-link.active,
.hepta-sidebar .hepta-submenu-link.active,
.hepta-sidebar .menu-item.active,
.hepta-sidebar .submenu-item.active,
.sidebar .menu-item.active,
.sidebar .submenu-item.active,
.hepta-sidebar .hepta-menu-link:hover,
.hepta-sidebar .hepta-submenu-link:hover,
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .submenu-item:hover,
.sidebar .menu-item:hover,
.sidebar .submenu-item:hover {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Underline behavior */
.hepta-sidebar .hepta-menu-link.active,
.hepta-sidebar .hepta-submenu-link.active,
.hepta-sidebar .menu-item.active,
.hepta-sidebar .submenu-item.active,
.sidebar .menu-item.active,
.sidebar .submenu-item.active {
  color: #111 !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
}

.hepta-sidebar .hepta-menu-link:hover,
.hepta-sidebar .hepta-submenu-link:hover,
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .submenu-item:hover,
.sidebar .menu-item:hover,
.sidebar .submenu-item:hover {
  color: #111 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
}

/* Icons minimal */
.hepta-sidebar .hepta-menu-link i,
.hepta-sidebar .menu-item i,
.sidebar .menu-item i {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  width: auto !important;
  min-width: 14px !important;
}

/* Arrows minimal */
.hepta-sidebar .menu-arrow,
.sidebar .menu-arrow {
  color: #8b95a1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Role badge simplify a bit */
.hepta-sidebar .role-badge,
.sidebar .role-badge {
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #c8ced6 !important;
  background: transparent !important;
  color: #31445f !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}


/* === Force remove sidebar active pill (hard override) === */

.hepta-sidebar * {
  border-radius: 0 !important;
}

/* Kill active box completely */
.hepta-sidebar .active,
.hepta-sidebar .menu-item.active,
.hepta-sidebar .hepta-menu-link.active,
.hepta-sidebar .submenu-item.active,
.hepta-sidebar .hepta-submenu-link.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Remove any border around items */
.hepta-sidebar .menu-item,
.hepta-sidebar .hepta-menu-link,
.hepta-sidebar .submenu-item,
.hepta-sidebar .hepta-submenu-link {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Apply underline ONLY */
.hepta-sidebar .menu-item.active,
.hepta-sidebar .hepta-menu-link.active,
.hepta-sidebar .submenu-item.active,
.hepta-sidebar .hepta-submenu-link.active {
  color: #111 !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

/* Hover behavior */
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .hepta-menu-link:hover,
.hepta-sidebar .submenu-item:hover,
.hepta-sidebar .hepta-submenu-link:hover {
  background: transparent !important;
  text-decoration: underline !important;
}

/* Remove padding illusion of button */
.hepta-sidebar .menu-item,
.hepta-sidebar .hepta-menu-link {
  padding: 6px 0 !important;
}


/* === Sidebar hover underline (clean) === */

/* Target text inside links (important for WordPress structures) */
.hepta-sidebar a:hover,
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .hepta-menu-link:hover,
.hepta-sidebar .submenu-item:hover,
.hepta-sidebar .hepta-submenu-link:hover {
  color: #111 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
}

/* Ensure inner spans also respond */
.hepta-sidebar a:hover span,
.hepta-sidebar .menu-item:hover span,
.hepta-sidebar .hepta-menu-link:hover span {
  text-decoration: underline !important;
}

/* Remove any hover background leftovers */
.hepta-sidebar a:hover,
.hepta-sidebar .menu-item:hover,
.hepta-sidebar .hepta-menu-link:hover {
  background: transparent !important;
}


/* === Sidebar final interaction cleanup === */

/* Remove click outline / black focus box */
.sidebar .menu-item,
.sidebar .submenu-item,
.sidebar .menu-item:focus,
.sidebar .submenu-item:focus,
.sidebar .menu-item:active,
.sidebar .submenu-item:active,
.sidebar .menu-item:focus-visible,
.sidebar .submenu-item:focus-visible,
.sidebar a,
.sidebar a:focus,
.sidebar a:active,
.sidebar a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Make underline appear on hover and active */
.sidebar .menu-item:hover,
.sidebar .submenu-item:hover,
.sidebar .menu-item.active,
.sidebar .submenu-item.active,
.sidebar .menu-item:hover *,
.sidebar .submenu-item:hover *,
.sidebar .menu-item.active *,
.sidebar .submenu-item.active * {
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
}

/* Keep hover / active visually clean */
.sidebar .menu-item,
.sidebar .submenu-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Kill any weird black border from inherited styles */
.sidebar .menu-item::before,
.sidebar .menu-item::after,
.sidebar .submenu-item::before,
.sidebar .submenu-item::after {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Keep active item simple */
.sidebar .menu-item.active,
.sidebar .submenu-item.active {
  color: #111 !important;
  font-weight: 500 !important;
}

/* Keep hover readable */
.sidebar .menu-item:hover,
.sidebar .submenu-item:hover {
  color: #111 !important;
}


/* === FINAL SIDEBAR FIX (correct class targeting) === */

/* Target REAL classes */
.hepta-sidebar .hepta-menu-item,
.hepta-sidebar .hepta-submenu-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #5d6977 !important;
  padding: 6px 0 !important;
  text-decoration: none !important;
}

/* Kill active box */
.hepta-sidebar .hepta-menu-item.active,
.hepta-sidebar .hepta-submenu-item.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #111 !important;
  font-weight: 500 !important;
}

/* Hover underline (THIS is what you wanted) */
.hepta-sidebar .hepta-menu-item:hover,
.hepta-sidebar .hepta-submenu-item:hover,
.hepta-sidebar .hepta-menu-item.active,
.hepta-sidebar .hepta-submenu-item.active {
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 1px !important;
  color: #111 !important;
}

/* Remove click black box (focus ring) */
.hepta-sidebar .hepta-menu-item:focus,
.hepta-sidebar .hepta-submenu-item:focus,
.hepta-sidebar .hepta-menu-item:focus-visible,
.hepta-sidebar .hepta-submenu-item:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove pseudo borders */
.hepta-sidebar .hepta-menu-item::before,
.hepta-sidebar .hepta-menu-item::after,
.hepta-sidebar .hepta-submenu-item::before,
.hepta-sidebar .hepta-submenu-item::after {
  display: none !important;
}


/* === Delete buttons global style === */

/* Standard delete buttons */
.hepta-btn-danger,
button[data-hepta-delete-task],
button[data-hepta-delete-client],
button[data-hepta-delete-team],
button[data-hepta-delete],
.hepta-delete-btn {
  color: #e53935 !important;
  border-bottom: 1px solid #e53935 !important;
}

/* Hover state */
.hepta-btn-danger:hover,
button[data-hepta-delete-task]:hover,
button[data-hepta-delete-client]:hover,
button[data-hepta-delete-team]:hover,
button[data-hepta-delete]:hover,
.hepta-delete-btn:hover {
  color: #b71c1c !important;
  border-bottom: 1px solid #b71c1c !important;
}


/* === Task cards transformed into row view === */

.cards {
  display: block !important;
  gap: 0 !important;
}

.card {
  display: grid !important;
  grid-template-columns: minmax(220px, 2.2fr) minmax(140px, 1fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(130px, 1fr);
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  min-height: auto !important;
}

.card::before {
  display: none !important;
}

.card:hover {
  background: rgba(0,0,0,0.015) !important;
  border-bottom: 1px solid #cfd6df !important;
  box-shadow: none !important;
  transform: none !important;
}

.card h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.card .meta {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  min-width: 0 !important;
  color: #5f6b7a !important;
}

.card .meta b {
  display: none !important;
}

.card .meta span {
  display: inline !important;
}

.card .meta:nth-of-type(1) {
  display: none !important; /* hide duplicate client line inside client accordion */
}

.card .meta:nth-of-type(2),
.card .meta:nth-of-type(3),
.card .meta:nth-of-type(4),
.card .meta:nth-of-type(5) {
  font-size: 10px !important;
}

.card .card-actions {
  display: none !important;
}

/* If a status select exists inside the row, keep it light */
.card .status-select,
.card select {
  width: auto !important;
  min-width: 100px !important;
  max-width: 120px !important;
  padding: 4px 2px !important;
  border: none !important;
  border-bottom: 1px solid #c8cfd8 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Section body should feel like a table */
.client-section-content .cards {
  border-top: 1px solid #eef1f5 !important;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 10px 0 !important;
  }

  .card .meta:nth-of-type(1) {
    display: block !important;
  }
}


/* === Convert task cards into row-style list (REAL STRUCTURE) === */

/* Container becomes simple list */
.hepta-task-grid {
  display: block !important;
  gap: 0 !important;
}

/* Each task becomes a row */
.hepta-task-card {
  display: grid !important;
  grid-template-columns: 2.5fr 1.2fr 1fr 1fr 1.2fr;
  align-items: center !important;
  gap: 12px !important;

  width: 100% !important;
  text-align: left !important;

  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  padding: 10px 0 !important;
  margin: 0 !important;
}

/* Remove button look */
.hepta-task-card:hover {
  background: rgba(0,0,0,0.02) !important;
  border-bottom: 1px solid #cfd6df !important;
  transform: none !important;
}

/* Remove inner grid complexity */
.hepta-task-grid .hepta-task-card > div {
  padding: 0 !important;
}

/* Task title */
.hepta-task-card strong,
.hepta-task-card .task-title {
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Meta fields */
.hepta-task-card span,
.hepta-task-card small {
  font-size: 11px !important;
  color: #5f6b7a !important;
}

/* Status dropdown simplified */
.hepta-task-card select {
  border: none !important;
  border-bottom: 1px solid #c8cfd8 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 4px 2px !important;
  min-width: 100px !important;
}

/* Hide extra clutter if exists */
.hepta-task-card .hepta-task-actions {
  display: none !important;
}

/* Section spacing cleaner */
.hepta-client-section {
  margin-bottom: 16px !important;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .hepta-task-card {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 10px 0 !important;
  }
}


/* === Remove click outline / focus box globally === */

/* All buttons */
button,
button:focus,
button:active,
button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Task rows */
.hepta-task-card,
.hepta-task-card:focus,
.hepta-task-card:active,
.hepta-task-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Top toolbar buttons */
.hepta-btn,
.hepta-btn:focus,
.hepta-btn:active,
.hepta-btn:focus-visible,
.hepta-filter-btn,
.hepta-filter-btn:focus,
.hepta-filter-btn:active,
.hepta-filter-btn:focus-visible,
.hepta-status-btn,
.hepta-status-btn:focus,
.hepta-status-btn:active,
.hepta-status-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove browser default highlight */
* {
  -webkit-tap-highlight-color: transparent;
}


/* === Client headers: remove pill, use underline only === */
.hepta-client-section {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 14px !important;
}

.hepta-client-section > button,
.hepta-client-section > .hepta-client-section__toggle,
.hepta-client-section > .hepta-client-section__header,
.hepta-client-section > .hepta-client-section__header button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #d7dde6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #111 !important;
  padding: 8px 0 !important;
  text-align: left !important;
  font-weight: 500 !important;
}

.hepta-client-section > button:hover,
.hepta-client-section > .hepta-client-section__toggle:hover,
.hepta-client-section > .hepta-client-section__header:hover,
.hepta-client-section > .hepta-client-section__header button:hover {
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

.hepta-client-section > button:focus,
.hepta-client-section > button:active,
.hepta-client-section > .hepta-client-section__toggle:focus,
.hepta-client-section > .hepta-client-section__toggle:active,
.hepta-client-section > .hepta-client-section__header:focus,
.hepta-client-section > .hepta-client-section__header:active,
.hepta-client-section > .hepta-client-section__header button:focus,
.hepta-client-section > .hepta-client-section__header button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* === My Tasks / All Tasks: force one task per line === */
.hepta-task-grid {
  display: block !important;
}

.hepta-task-card {
  display: grid !important;
  grid-template-columns: minmax(280px, 2.4fr) minmax(130px, 1fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(120px, 1fr);
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;

  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  padding: 10px 0 !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.hepta-task-card:hover {
  background: rgba(0,0,0,0.02) !important;
  box-shadow: none !important;
  transform: none !important;
}

.hepta-task-card:focus,
.hepta-task-card:active,
.hepta-task-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Inner content should not stack weirdly */
.hepta-task-card * {
  white-space: normal !important;
  word-break: break-word !important;
}

.hepta-task-card .hepta-task-actions {
  display: none !important;
}

/* === Tasks Report / Workload: one task per line, no overlap === */
.hepta-report-task-grid {
  display: block !important;
}

.hepta-report-task-card {
  display: block !important;
  width: 100% !important;

  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  padding: 10px 0 !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.hepta-report-task-card:hover {
  background: rgba(0,0,0,0.02) !important;
  box-shadow: none !important;
  transform: none !important;
}

.hepta-report-task-card:focus,
.hepta-report-task-card:active,
.hepta-report-task-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hepta-report-task-card *,
.hepta-report-task-grid * {
  white-space: normal !important;
  word-break: break-word !important;
}

/* In case report rows use a nested grid, collapse it to one line block */
.hepta-report-task-card .hepta-report-task-grid,
.hepta-report-task-grid .hepta-report-task-grid {
  display: block !important;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .hepta-task-card {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}



/* === Client headers: remove pill, use underline only === */
.hepta-client-section {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 14px !important;
}

.hepta-client-section > button,
.hepta-client-section > .hepta-client-section__toggle,
.hepta-client-section > .hepta-client-section__header,
.hepta-client-section > .hepta-client-section__header button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #d7dde6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #111 !important;
  padding: 8px 0 !important;
  text-align: left !important;
  font-weight: 500 !important;
}

.hepta-client-section > button:hover,
.hepta-client-section > .hepta-client-section__toggle:hover,
.hepta-client-section > .hepta-client-section__header:hover,
.hepta-client-section > .hepta-client-section__header button:hover {
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

.hepta-client-section > button:focus,
.hepta-client-section > button:active,
.hepta-client-section > .hepta-client-section__toggle:focus,
.hepta-client-section > .hepta-client-section__toggle:active,
.hepta-client-section > .hepta-client-section__header:focus,
.hepta-client-section > .hepta-client-section__header:active,
.hepta-client-section > .hepta-client-section__header button:focus,
.hepta-client-section > .hepta-client-section__header button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* === My Tasks / All Tasks: force one task per line === */
.hepta-task-grid {
  display: block !important;
}

.hepta-task-card {
  display: grid !important;
  grid-template-columns: minmax(280px, 2.4fr) minmax(130px, 1fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(120px, 1fr);
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;

  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  padding: 10px 0 !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.hepta-task-card:hover {
  background: rgba(0,0,0,0.02) !important;
  box-shadow: none !important;
  transform: none !important;
}

.hepta-task-card:focus,
.hepta-task-card:active,
.hepta-task-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Inner content should not stack weirdly */
.hepta-task-card * {
  white-space: normal !important;
  word-break: break-word !important;
}

.hepta-task-card .hepta-task-actions {
  display: none !important;
}

/* === Tasks Report / Workload: one task per line, no overlap === */
.hepta-report-task-grid {
  display: block !important;
}

.hepta-report-task-card {
  display: block !important;
  width: 100% !important;

  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  padding: 10px 0 !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.hepta-report-task-card:hover {
  background: rgba(0,0,0,0.02) !important;
  box-shadow: none !important;
  transform: none !important;
}

.hepta-report-task-card:focus,
.hepta-report-task-card:active,
.hepta-report-task-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hepta-report-task-card *,
.hepta-report-task-grid * {
  white-space: normal !important;
  word-break: break-word !important;
}

/* In case report rows use a nested grid, collapse it to one line block */
.hepta-report-task-card .hepta-report-task-grid,
.hepta-report-task-grid .hepta-report-task-grid {
  display: block !important;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .hepta-task-card {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}


/* === Latest Updates notes feed === */
.hepta-inline-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hepta-latest-client-section {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hepta-latest-client-title {
  padding: 8px 0;
  border-bottom: 1px solid #d7dde6;
  color: #111;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hepta-latest-updates-table {
  display: block;
  margin-top: 8px;
}

.hepta-latest-update-row {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) minmax(320px, 2fr);
  gap: 14px;
  width: 100%;
  text-align: left;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 10px 0 !important;
  white-space: normal;
}

.hepta-latest-update-row:hover {
  background: rgba(0,0,0,0.02) !important;
}

.hepta-latest-update-row:focus,
.hepta-latest-update-row:active,
.hepta-latest-update-row:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hepta-latest-update-time {
  font-size: 10px;
  color: #667085;
}

.hepta-latest-update-task {
  font-size: 11px;
  font-weight: 500;
  color: #111;
}

.hepta-latest-update-note {
  font-size: 10px;
  color: #3f4b59;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .hepta-latest-update-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* === White dashboard background + Latest Updates PIC buttons === */

.hepta-app,
.hepta-main-content,
.hepta-content-wrapper,
.hepta-view-section {
  background: #ffffff !important;
}

.hepta-panel-card,
.hepta-panel-body,
.hepta-client-section,
.hepta-summary-card {
  background: #ffffff !important;
}

.hepta-panel-header {
  background: #ffffff !important;
}

.hepta-inline-filter {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.hepta-pic-btn {
  color: #4f5b68 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #bfc7d1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 6px 2px !important;
}

.hepta-pic-btn.active,
.hepta-pic-btn:hover {
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
}

.hepta-latest-client-title {
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-bottom: 1px solid #d7dde6 !important;
  padding: 10px 0 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

.hepta-latest-update-row {
  grid-template-columns: 140px minmax(240px, 1fr) minmax(360px, 2fr) !important;
}


/* === Latest Updates fixed PIC bar + white views === */
.hepta-app,
.hepta-main-content,
.hepta-content-wrapper,
.hepta-view-section,
.hepta-panel-card,
.hepta-panel-header,
.hepta-panel-body,
.hepta-client-section {
  background: #fff !important;
}

.hepta-latest-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.hepta-latest-pic-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.hepta-latest-pic-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #bfc7d1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #4f5b68 !important;
  padding: 6px 2px !important;
  cursor: pointer !important;
}

.hepta-latest-pic-btn:hover,
.hepta-latest-pic-btn.active {
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
}

.hepta-latest-client-title {
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #d7dde6 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

.hepta-latest-update-row {
  display: grid !important;
  grid-template-columns: 140px minmax(240px, 1fr) minmax(360px, 2fr) !important;
  gap: 14px !important;
}


/* === Latest Updates clean rebuild === */
.hepta-latest-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #fff !important;
}

.hepta-latest-pic-bar {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}

.hepta-latest-pic-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #bfc7d1 !important;
  border-radius: 0 !important;
  color: #4f5b68 !important;
  padding: 6px 2px !important;
  cursor: pointer !important;
}

.hepta-latest-pic-btn.active,
.hepta-latest-pic-btn:hover {
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
}

.hepta-latest-client-section {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.hepta-latest-client-title {
  padding: 10px 0 !important;
  border-bottom: 1px solid #d7dde6 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  font-weight: 500 !important;
}

.hepta-latest-update-row {
  display: grid !important;
  grid-template-columns: 140px minmax(260px, 1fr) minmax(360px, 2fr) !important;
  gap: 14px !important;
  width: 100% !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  cursor: pointer !important;
}

.hepta-latest-update-row:hover {
  background: rgba(0,0,0,0.02) !important;
}

.hepta-latest-update-row:focus,
.hepta-latest-update-row:active {
  outline: none !important;
  box-shadow: none !important;
}

/* === Latest Updates separated view === */
.hepta-latest-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #fff !important;
}

.hepta-latest-pic-bar {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}

.hepta-latest-pic-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #bfc7d1 !important;
  border-radius: 0 !important;
  color: #4f5b68 !important;
  padding: 6px 2px !important;
  cursor: pointer !important;
}

.hepta-latest-pic-btn.active,
.hepta-latest-pic-btn:hover {
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
}

.hepta-latest-client-section {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.hepta-latest-client-title {
  padding: 10px 0 !important;
  border-bottom: 1px solid #d7dde6 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  font-weight: 500 !important;
}

.hepta-latest-update-row {
  display: grid !important;
  grid-template-columns: 140px minmax(260px, 1fr) minmax(360px, 2fr) !important;
  gap: 14px !important;
  width: 100% !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  cursor: pointer !important;
}

.hepta-latest-update-row:hover {
  background: rgba(0,0,0,0.02) !important;
}

/* === Latest Updates separated view === */
.hepta-latest-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #fff !important;
}

.hepta-latest-pic-bar {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}

.hepta-latest-pic-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #bfc7d1 !important;
  border-radius: 0 !important;
  color: #4f5b68 !important;
  padding: 6px 2px !important;
  cursor: pointer !important;
}

.hepta-latest-pic-btn.active,
.hepta-latest-pic-btn:hover {
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
}

.hepta-latest-client-section {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.hepta-latest-client-title {
  padding: 10px 0 !important;
  border-bottom: 1px solid #d7dde6 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  font-weight: 500 !important;
}

.hepta-latest-update-row {
  display: grid !important;
  grid-template-columns: 140px minmax(260px, 1fr) minmax(360px, 2fr) !important;
  gap: 14px !important;
  width: 100% !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e6e9ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  cursor: pointer !important;
}

.hepta-latest-update-row:hover {
  background: rgba(0,0,0,0.02) !important;
}

/* === Latest Updates clean table view === */
.hepta-latest-filters {
  display: grid !important;
  grid-template-columns: 1.1fr 1.4fr 150px 150px auto !important;
  gap: 14px !important;
  align-items: end !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #e6e9ee !important;
  background: #fff !important;
}

.hepta-latest-filters select,
.hepta-latest-filters input,
.hepta-latest-filters button {
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid #c8cfd8 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  padding: 7px 2px !important;
  outline: none !important;
}

.hepta-latest-count {
  padding: 10px 0 !important;
  color: #667085 !important;
}

.hepta-latest-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
}

.hepta-latest-table th,
.hepta-latest-table td {
  text-align: left !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid #e6e9ee !important;
  vertical-align: top !important;
}

.hepta-latest-row {
  cursor: pointer !important;
}

.hepta-latest-row:hover td {
  background: rgba(0,0,0,0.03) !important;
}

.hepta-latest-note {
  white-space: pre-wrap !important;
  line-height: 1.5 !important;
}

/* === Latest Updates clean table view === */
.hepta-latest-filters {
  display: grid !important;
  grid-template-columns: 1.1fr 1.4fr 150px 150px auto !important;
  gap: 14px !important;
  align-items: end !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #e6e9ee !important;
  background: #fff !important;
}

.hepta-latest-filters select,
.hepta-latest-filters input,
.hepta-latest-filters button {
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid #c8cfd8 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  padding: 7px 2px !important;
  outline: none !important;
}

.hepta-latest-count {
  padding: 10px 0 !important;
  color: #667085 !important;
}

.hepta-latest-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
}

.hepta-latest-table th,
.hepta-latest-table td {
  text-align: left !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid #e6e9ee !important;
  vertical-align: top !important;
}

.hepta-latest-row {
  cursor: pointer !important;
}

.hepta-latest-row:hover td {
  background: rgba(0,0,0,0.03) !important;
}

.hepta-latest-note {
  white-space: pre-wrap !important;
  line-height: 1.5 !important;
}

/* === Layout cleanup: Latest Updates + task rows === */
.hepta-latest-table {
  table-layout: fixed !important;
  width: 100% !important;
  font-size: 11px !important;
}

.hepta-latest-table th,
.hepta-latest-table td {
  font-size: 11px !important;
  line-height: 1.45 !important;
  padding: 9px 8px !important;
  color: #172033 !important;
  vertical-align: top !important;
}

.hepta-latest-table th {
  font-weight: 500 !important;
  color: #667085 !important;
}

.hepta-latest-table th:nth-child(1),
.hepta-latest-table td:nth-child(1) {
  width: 130px !important;
}

.hepta-latest-table th:nth-child(2),
.hepta-latest-table td:nth-child(2) {
  width: 170px !important;
}

.hepta-latest-table th:nth-child(3),
.hepta-latest-table td:nth-child(3) {
  width: 260px !important;
}

.hepta-latest-table th:nth-child(4),
.hepta-latest-table td:nth-child(4) {
  width: auto !important;
}

.hepta-latest-count {
  font-size: 11px !important;
  color: #667085 !important;
  padding: 10px 0 !important;
}

.hepta-latest-note {
  font-size: 11px !important;
  line-height: 1.5 !important;
  white-space: pre-wrap !important;
}

.hepta-task-table,
.hepta-tasks-table,
.hepta-client-task-table {
  font-size: 11px !important;
}

.hepta-task-table th,
.hepta-task-table td,
.hepta-tasks-table th,
.hepta-tasks-table td,
.hepta-client-task-table th,
.hepta-client-task-table td {
  font-size: 11px !important;
  line-height: 1.45 !important;
  padding: 8px 8px !important;
}

.hepta-task-row,
.hepta-task-line {
  font-size: 11px !important;
}

/* === Latest Updates grouped layout === */
.hepta-latest-client-group {
  margin: 14px 0 24px !important;
}

.hepta-latest-client-heading {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #172033 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #d7dde6 !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
}

.hepta-latest-task-group {
  margin: 12px 0 18px !important;
}

.hepta-latest-task-heading {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #31445f !important;
  padding: 6px 0 !important;
}

.hepta-latest-table th,
.hepta-latest-table td {
  font-size: 11px !important;
}

.hepta-latest-table th:nth-child(1),
.hepta-latest-table td:nth-child(1) {
  width: 130px !important;
}

.hepta-latest-table th:nth-child(2),
.hepta-latest-table td:nth-child(2) {
  width: 170px !important;
}

.hepta-latest-table th:nth-child(3),
.hepta-latest-table td:nth-child(3) {
  width: 240px !important;
}

.hepta-latest-table th:nth-child(4),
.hepta-latest-table td:nth-child(4) {
  width: auto !important;
}

/* === Latest Updates grouped layout === */
.hepta-latest-client-group {
  margin: 14px 0 24px !important;
}

.hepta-latest-client-heading {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #172033 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #d7dde6 !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
}

.hepta-latest-task-group {
  margin: 12px 0 18px !important;
}

.hepta-latest-task-heading {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #31445f !important;
  padding: 6px 0 !important;
}

.hepta-latest-table th,
.hepta-latest-table td {
  font-size: 11px !important;
}

.hepta-latest-table th:nth-child(1),
.hepta-latest-table td:nth-child(1) {
  width: 130px !important;
}

.hepta-latest-table th:nth-child(2),
.hepta-latest-table td:nth-child(2) {
  width: 170px !important;
}

.hepta-latest-table th:nth-child(3),
.hepta-latest-table td:nth-child(3) {
  width: 240px !important;
}

.hepta-latest-table th:nth-child(4),
.hepta-latest-table td:nth-child(4) {
  width: auto !important;
}

/* Latest Updates grouped table: Date + Note only */
.hepta-latest-table th:nth-child(1),
.hepta-latest-table td:nth-child(1) {
  width: 130px !important;
}

.hepta-latest-table th:nth-child(2),
.hepta-latest-table td:nth-child(2) {
  width: auto !important;
}

.hepta-latest-table th:nth-child(3),
.hepta-latest-table td:nth-child(3),
.hepta-latest-table th:nth-child(4),
.hepta-latest-table td:nth-child(4) {
  display: none !important;
}
