/* Utility class for hiding elements (CSP-compliant alternative to inline styles) */
.hidden {
  display: none !important;
}

.pad-top {
  padding-top: 60px;
}

/* Flash Message Alerts - Overlay style */
.alert {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1030;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

  .navbar-dark {
    background-color: #63A088; /* #35815C; #020202; */
    padding-bottom: 15px;
    height: 40;

    }
  .navbar-light {
    background-color: #ff89fd;
    padding-bottom: 15px;
    height: 40;
    }

  body {
    background-color: #34495E; /* #1a1919; */
    padding-bottom: 60px;
  }

  .img {
    max-width: 100%; /* Ensures image doesn't exceed its container's width */
    height: auto;    /* Maintains aspect ratio by adjusting height proportionally */
    display: block;  /* Removes extra space below the image, common for inline elements */
  }

  .page-text {
    font-size: 1.2rem;
    color: white;
    align-items: center;
  }

  .div_logo {
    height: 13px;
  }

  .navbar {
    max-height: 56px;
  }

  .btn-nav-logout {
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
  }

  .btn-nav-logout:hover {
    background-color: #ffffff;
    color: #63A088;
    text-decoration: none;
  }

  a.navbar-brand {
    position: relative;
    
    height: 40px;
    width: auto;
    padding: 0px, 0px;
  }

  .nav-logo {
    position: relative;
    height: 30px;
    width: auto;
    text-align: center;
  }

  a.logos {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  @media (max-width: 767.98px) { /* Adjust breakpoint as needed */
    .social-icons-container {
      padding-top: 50px; /* Adjust as needed */
    }
  }

  @media (max-width: 767.98px) { /* Adjust breakpoint as needed */
    .social-icons-container svg {
      fill: white !important;
    }
  }

  li.style {
    list-style-type: decimal;
  }


/* footer */
footer {
  background-color: #2C2C2C;
  color: #fff;
  padding: 15px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}



.dm-serif-text-regular {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-text-regular-italic {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: italic;
}

.gallery-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 8%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.gallery img {
  width: 100%;
}

/* Login Page Styles */
.login-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background-color: #2C2C2C;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  border: 1px solid rgba(99, 160, 136, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "DM Serif Text", serif;
}

.login-subtitle {
  color: #b0b0b0;
  font-size: 0.95rem;
  margin: 0;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-label {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.login-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 160, 136, 0.3);
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.login-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #63A088;
  box-shadow: 0 0 0 3px rgba(99, 160, 136, 0.1);
  color: #ffffff;
  outline: none;
}

.login-form .form-control::placeholder {
  color: #808080;
}

.login-form .form-check-label {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.login-form .form-check-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 160, 136, 0.3);
}

.login-form .form-check-input:checked {
  background-color: #63A088;
  border-color: #63A088;
}

.btn-login {
  background: linear-gradient(135deg, #63A088 0%, #4a7d66 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-login:hover {
  background: linear-gradient(135deg, #4a7d66 0%, #3d6854 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 160, 136, 0.3);
  color: #ffffff;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 160, 136, 0.2);
}

.register-text {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.btn-register {
  background-color: transparent;
  border: 2px solid #63A088;
  border-radius: 8px;
  color: #63A088;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: none;
  display: inline-block;
}

.btn-register:hover {
  background-color: rgba(99, 160, 136, 0.1);
  color: #63A088;
  transform: translateY(-2px);
  text-decoration: none;
}

.invalid-feedback {
  display: block;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-control.is-invalid,
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #ff6b6b !important;
}

/* Navbar link styles */
.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  vertical-align: middle;
}

.navbar-nav {
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .login-card {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 1.6rem;
  }
}

/* Pricing Page Styles */
.pricing-container {
  min-height: 80vh;
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-main-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: "DM Serif Text", serif;
}

.pricing-main-subtitle {
  color: #b0b0b0;
  font-size: 1.1rem;
  margin: 0;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.pricing-card {
  background-color: #2C2C2C;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  border: 2px solid rgba(99, 160, 136, 0.3);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: #63A088;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(99, 160, 136, 0.2);
}

.pricing-card-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "DM Serif Text", serif;
}

.pricing-card-subtitle {
  color: #b0b0b0;
  font-size: 0.95rem;
  margin: 0;
}

.pricing-amount-section {
  text-align: center;
  margin: 30px 0;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount .currency {
  color: #63A088;
  font-size: 2rem;
  font-weight: 600;
}

.pricing-amount .price {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  font-family: "DM Serif Text", serif;
}

.pricing-amount .period {
  color: #b0b0b0;
  font-size: 1.2rem;
  font-weight: 400;
}

.pricing-features {
  margin: 30px 0;
}

.features-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 0;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: #63A088;
  flex-shrink: 0;
}

.pricing-cta {
  margin-top: 30px;
  text-align: center;
}

.btn-pricing {
  background: linear-gradient(135deg, #63A088 0%, #4a7d66 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 32px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.btn-pricing:hover {
  background: linear-gradient(135deg, #4a7d66 0%, #3d6854 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 160, 136, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.pricing-note {
  color: #808080;
  font-size: 0.85rem;
  margin: 0;
}

.pricing-footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.info-card {
  background-color: rgba(99, 160, 136, 0.08);
  border: 1px solid rgba(99, 160, 136, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.info-title {
  color: #63A088;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.info-text {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive pricing adjustments */
@media (max-width: 768px) {
  .pricing-main-title {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-amount .price {
    font-size: 3rem;
  }

  .pricing-footer-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .pricing-container {
    padding: 40px 15px 30px;
  }

  .pricing-main-title {
    font-size: 1.6rem;
  }

  .pricing-main-subtitle {
    font-size: 0.95rem;
  }

  .pricing-card-title {
    font-size: 1.5rem;
  }
}

/* Dashboard Page Styles */
.dashboard-container {
  min-height: 80vh;
  padding: 60px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "DM Serif Text", serif;
}

.dashboard-subtitle {
  color: #b0b0b0;
  font-size: 1.1rem;
  margin: 0;
}

.dashboard-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  font-family: "DM Serif Text", serif;
}

.matters-table-container {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 630px; /* 15 rows at ~42px each */
}

/* Table controls - search input */
.table-controls {
  margin-bottom: 16px;
}

.matter-search-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.matter-search-input:focus {
  outline: none;
  border-color: #63A088;
  box-shadow: 0 0 0 3px rgba(99, 160, 136, 0.15);
}

.matter-search-input::placeholder {
  color: #999;
}

.matters-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.matters-table thead {
  background-color: #63A088;
  position: sticky;
  top: 0;
  z-index: 10;
}

.matters-table thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sortable column headers */
.matters-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 28px;
}

.matters-table thead th.sortable:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.matters-table thead th .sort-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  opacity: 0.5;
}

.matters-table thead th .sort-indicator::after {
  content: '⇅';
}

.matters-table thead th.sort-asc .sort-indicator::after {
  content: '▲';
  opacity: 1;
}

.matters-table thead th.sort-desc .sort-indicator::after {
  content: '▼';
  opacity: 1;
}

.matters-table thead th.sort-asc .sort-indicator,
.matters-table thead th.sort-desc .sort-indicator {
  opacity: 1;
}

/* Sortable column headers for data-table */
.data-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 28px;
}

.data-table thead th.sortable:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.data-table thead th .sort-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  opacity: 0.5;
}

.data-table thead th .sort-indicator::after {
  content: '⇅';
}

.data-table thead th.sort-asc .sort-indicator::after {
  content: '▲';
  opacity: 1;
}

.data-table thead th.sort-desc .sort-indicator::after {
  content: '▼';
  opacity: 1;
}

.data-table thead th.sort-asc .sort-indicator,
.data-table thead th.sort-desc .sort-indicator {
  opacity: 1;
}

.matters-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.matters-table tbody tr:last-child {
  border-bottom: none;
}

.matters-table tbody tr:hover {
  background-color: rgba(99, 160, 136, 0.08);
  cursor: pointer;
}

.matters-table tbody td {
  padding: 16px;
  color: #2C2C2C;
  font-size: 0.95rem;
}

.matter-name {
  font-weight: 600;
  color: #1a1a1a;
}

.matter-link {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.matter-link:hover {
  color: #63A088;
  text-decoration: underline;
}

.matter-date {
  color: #555555;
}

.matter-updated-by {
  color: #555555;
}

.no-matters-message {
  text-align: center;
  padding: 60px 20px;
  color: #555555;
  font-size: 1.1rem;
}

.no-matters-message p {
  margin: 0;
}

/* Responsive dashboard adjustments */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 40px 20px 30px;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .matters-table-container {
    padding: 15px;
  }

  .matters-table thead th,
  .matters-table tbody td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .dashboard-container {
    padding: 30px 15px 25px;
  }

  .dashboard-title {
    font-size: 1.6rem;
  }

  .dashboard-subtitle {
    font-size: 0.95rem;
  }

  .matters-table-container {
    padding: 10px;
  }

  .matters-table thead th {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .matters-table tbody td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
}

/* Profile Page Styles */
.profile-container {
  min-height: 80vh;
  padding: 60px 40px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 30px;
}

.profile-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "DM Serif Text", serif;
}

.profile-subtitle {
  color: #b0b0b0;
  font-size: 1.1rem;
  margin: 0;
}

.profile-card {
  background-color: #2C2C2C;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 40px;
  border: 1px solid rgba(99, 160, 136, 0.2);
}

.profile-form .form-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(99, 160, 136, 0.2);
}

.profile-form .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 15px;
  padding-bottom: 0;
}

.section-title-small {
  color: #63A088;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "DM Serif Text", serif;
}

.profile-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

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

.profile-form .form-label {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.profile-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 160, 136, 0.3);
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.profile-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #63A088;
  box-shadow: 0 0 0 3px rgba(99, 160, 136, 0.1);
  color: #ffffff;
  outline: none;
}

.profile-form .form-control::placeholder {
  color: #808080;
}

.profile-form select.form-control {
  padding: 10px 12px;
  height: auto;
}

.profile-form select.form-control {
  cursor: pointer;
}

.form-actions {
  margin-top: 30px;
  text-align: right;
}

.btn-profile-submit {
  background: linear-gradient(135deg, #63A088 0%, #4a7d66 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 32px;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-profile-submit:hover {
  background: linear-gradient(135deg, #4a7d66 0%, #3d6854 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 160, 136, 0.3);
}

.profile-info-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(99, 160, 136, 0.2);
}

.info-text {
  color: #e0e0e0;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.info-note {
  color: #808080;
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive profile adjustments */
@media (max-width: 768px) {
  .profile-container {
    padding: 40px 20px 30px;
  }

  .profile-title {
    font-size: 2rem;
  }

  .profile-card {
    padding: 30px 20px;
  }

  .profile-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-title-small {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .profile-container {
    padding: 30px 15px 25px;
  }

  .profile-title {
    font-size: 1.6rem;
  }

  .profile-subtitle {
    font-size: 0.95rem;
  }

  .profile-card {
    padding: 25px 15px;
  }

  .form-actions {
    text-align: center;
  }

  .btn-profile-submit {
    width: 100%;
  }
}

/* Case Dashboard Page Styles */
.case-dashboard-container {
  min-height: 80vh;
  padding: 60px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.case-dashboard-header {
  margin-bottom: 30px;
}

.case-dashboard-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  font-family: "DM Serif Text", serif;
  margin: 0;
}

.case-info-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.case-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}

.case-info-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.case-info-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #63A088;
  white-space: nowrap;
}

.case-info-value {
  font-size: 0.9rem;
  color: #2C2C2C;
  font-weight: 500;
}

/* Case Navigation Tabs */
.case-nav-tabs {
  display: flex;
  gap: 5px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
  justify-content: center;
}

.case-nav-tab {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #2C2C2C;
  background-color: #f5f5f5;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.case-nav-tab:hover {
  background-color: #e8e8e8;
  color: #63A088;
}

.case-nav-tab.active {
  background-color: #63A088;
  color: #ffffff;
}

.case-nav-tab.active:hover {
  background-color: #4f8c70;
  color: #ffffff;
}

/* Side by Side Tables */
.tables-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* Estate Form Styles */
.estate-form-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 15px;
}

.form-section-title {
  color: #63A088;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "DM Serif Text", serif;
}

.account-filter-field {
  width: fit-content;
}

.account-filter-field .form-input {
  width: auto;
  min-width: 150px;
  max-width: 400px;
}

.account-filter-title {
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
}

.checkbox-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2C2C2C;
}

.form-input {
  padding: 7px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  font-size: 0.85rem;
  color: #2C2C2C;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #63A088;
  box-shadow: 0 0 0 2px rgba(99, 160, 136, 0.1);
}

.form-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Date Input Styles */
input[type="date"].form-input {
  max-width: 160px;
  width: auto;
}

/* Narrow Input Styles (for salutation, suffix, etc.) */
.form-input-narrow {
  max-width: 80px;
  width: auto;
}

/* Checkbox Styles */
.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #63A088;
}

.form-checkbox-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2C2C2C;
  cursor: pointer;
  margin: 0;
}

/* Radio Button Styles */
.radio-field {
  flex-direction: column;
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #63A088;
}

.form-radio-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2C2C2C;
  cursor: pointer;
  margin: 0;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.form-buttons-top {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #63A088;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4f8c70;
}

.btn-secondary {
  background-color: #e8e8e8;
  color: #2C2C2C;
}

.btn-secondary:hover {
  background-color: #d0d0d0;
}

.btn-sm {
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
}

/* Asset Type Buttons */
.asset-type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.asset-type-label {
  font-weight: 600;
  color: #2C2C2C;
  margin-right: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-asset-type {
  background-color: transparent;
  color: #63A088;
  border: 1px solid #63A088 !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  white-space: nowrap;
}

.btn-asset-type:hover {
  background-color: #63A088;
  color: #ffffff;
}

.table-section {
  display: flex;
  flex-direction: column;
}

.table-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.table-section-header .table-section-title {
  margin-bottom: 0;
}

.table-section-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "DM Serif Text", serif;
}

.deadline-overdue {
  background-color: rgba(220, 53, 69, 0.1);
}

.deadline-overdue td {
  color: #dc3545;
}

.btn-delete-sm {
  background: none;
  border: none;
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.btn-delete-sm:hover {
  color: #dc3545;
}

.task-completed {
  background-color: rgba(0, 0, 0, 0.03);
}

.task-item-done {
  text-decoration: line-through;
  color: #999;
}

.btn-link-action {
  background: none;
  border: none;
  color: #63A088;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  text-decoration: underline;
}

.btn-link-action:hover {
  color: #4a7a66;
}

.btn-link-undo {
  color: #999;
}

.btn-link-undo:hover {
  color: #666;
}

.btn-add-table {
  background-color: #ffffff;
  color: #63A088;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-table:hover {
  background-color: #63A088;
  color: #ffffff;
}

.small-table th:first-child,
.small-table td:first-child {
  width: 50%;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-table th:nth-child(2),
.small-table td:nth-child(2) {
  white-space: nowrap;
}

.small-table th:last-child,
.small-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.small-table-container {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  flex-grow: 1;
  max-height: 400px;
  overflow-y: auto;
}

.small-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.small-table thead {
  background-color: #63A088;
}

.small-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.small-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.small-table tbody tr:last-child {
  border-bottom: none;
}

.small-table tbody tr:hover {
  background-color: rgba(99, 160, 136, 0.08);
}

.small-table tbody td {
  padding: 12px 16px;
  color: #2C2C2C;
  font-size: 0.9rem;
}

.no-data-message {
  text-align: center;
  color: #808080;
  font-style: italic;
  padding: 20px !important;
}

/* ===========================================
   RESPONSIVE STYLES - STANDARDIZED
   =========================================== */

/* Large tablets and small desktops */
@media (max-width: 992px) {
  .tables-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Tablets and smaller */
@media (max-width: 768px) {
  /* Form grids collapse to single column */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Case dashboard spacing */
  .case-dashboard-container {
    padding: 40px 20px 30px;
  }

  .case-info-box {
    padding: 20px;
  }

  .case-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Table adjustments */
  .table-section-title {
    font-size: 1.2rem;
  }

  .small-table-container {
    padding: 12px;
  }

  /* Data table horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Radio groups stack on tablet */
  .radio-group {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Form buttons wrap if needed */
  .form-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-buttons-top {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Modal adjustments */
  .modal-content {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
  }

  /* Asset type buttons */
  .asset-type-buttons {
    justify-content: center;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  /* Case dashboard compact spacing */
  .case-dashboard-container {
    padding: 30px 15px 25px;
  }

  .case-info-box {
    padding: 15px;
  }

  /* Small table compact */
  .small-table thead th,
  .small-table tbody td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Form container compact */
  .estate-form-container {
    padding: 15px;
  }

  /* ALL form inputs - full width on mobile */
  .form-input,
  .form-textarea,
  select.form-input {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }

  /* Date inputs also full width on mobile */
  input[type="date"].form-input {
    max-width: none;
    width: 100%;
  }

  /* Narrow inputs stay narrow on mobile */
  .form-input-narrow {
    max-width: 80px;
    width: auto;
  }

  /* Form labels */
  .form-label {
    font-size: 0.8rem;
  }

  /* Radio groups vertical on mobile */
  .radio-group {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .radio-option {
    width: 100%;
  }

  /* Checkbox fields */
  .checkbox-field {
    gap: 8px;
  }

  .form-checkbox-label {
    font-size: 0.85rem;
  }

  /* Distribution rows stack */
  .distribution-row {
    flex-direction: column;
    align-items: stretch;
  }

  .distribution-row select,
  .distribution-row .share-input {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  /* Form buttons - full width on small mobile */
  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .form-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .form-buttons-top {
    flex-direction: column;
    gap: 10px;
  }

  .form-buttons-top .btn {
    width: 100%;
    text-align: center;
  }

  /* Modal full width */
  .modal-content {
    max-width: 95%;
    padding: 15px;
    margin: 10px auto;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-buttons .btn,
  .modal-buttons .btn-danger {
    width: 100%;
  }

  /* Asset type buttons wrap */
  .asset-type-buttons {
    padding: 6px 8px;
    gap: 6px;
  }

  .asset-type-label {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .btn-asset-type {
    flex: 1 1 auto;
    min-width: calc(33% - 6px);
    text-align: center;
  }

  /* Data table - smaller padding */
  .data-table thead th,
  .data-table tbody td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Action columns */
  .action-column {
    width: auto;
    min-width: 80px;
  }

  /* Table titles */
  .table-title {
    font-size: 1.1rem;
  }

  /* Section headers stack */
  .table-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Interested parties container */
  .interested-parties-container {
    padding: 15px;
  }

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

/* Interested Parties Styles */
.interested-parties-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-title {
  color: #63A088;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  font-family: "DM Serif Text", serif;
}

.table-actions {
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

.data-table thead {
  background-color: #63A088;
  color: #ffffff;
}

.data-table thead th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #2C2C2C;
}

.data-table tbody tr:hover {
  background-color: #f8f8f8;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.name-link {
  color: #63A088;
  text-decoration: none;
  font-weight: 600;
}

.name-link:hover {
  text-decoration: underline;
}

.action-column {
  width: 120px;
  text-align: right;
}

.delete-form {
  margin: 0;
}

.btn-delete {
  background-color: #dc3545;
  color: #ffffff;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete:hover {
  background-color: #c82333;
}

.btn-delete-asset {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.btn-delete-asset:hover {
  color: #c82333;
}

.btn-delete-disbursement {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.btn-delete-disbursement:hover {
  color: #c82333;
}

.delete-column {
  width: 70px;
  text-align: center;
}

td.delete-column-sticky {
  width: 70px;
  text-align: center;
  position: sticky;
  right: 0;
  background: #ffffff;
  z-index: 1;
}

th.delete-column-sticky {
  width: 70px;
  text-align: center;
  position: sticky;
  right: 0;
  background: #63A088;
  z-index: 11;
}

.letter-upload-form .form-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.letter-upload-form .form-actions {
  margin-top: 15px;
  padding-bottom: 0;
}

.btn-delete-letter {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.btn-delete-letter:hover {
  color: #c82333;
}

.no-data-message {
  text-align: center;
  color: #999999;
  font-style: italic;
}

.form-field-full {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-column: 1 / -1;
  margin-top: 12px;
}

.form-textarea {
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  font-size: 0.85rem;
  color: #2C2C2C;
  background-color: #ffffff;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: #63A088;
}

/* Modal Styles */
/* Bootstrap modal z-index fix */
.modal {
  z-index: 1050;
}

.modal-backdrop {
  z-index: 1040;
}

.modal-dialog {
  z-index: 1060;
}

.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  text-align: center;
}

.modal-title {
  color: #2C2C2C;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  font-family: "DM Serif Text", serif;
}

.modal-message {
  color: #555555;
  font-size: 1rem;
  margin: 0 0 10px 0;
}

.modal-party-name {
  color: #63A088;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 25px 0;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-buttons form {
  display: flex;
  gap: 12px;
}

.btn-danger {
  background-color: #dc3545;
  color: #ffffff;
  padding: 9px 24px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Drag and Drop Styles */
.drag-handle {
  cursor: grab;
  color: #999999;
  text-align: center;
  padding: 12px 8px !important;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle i {
  font-size: 1rem;
}

.sortable-ghost {
  opacity: 0.4;
  background-color: #f0f0f0;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover .drag-handle {
  color: #63A088;
}

.data-table th.drag-handle-column {
  width: 40px;
}

.matters-section-spacing {
  margin-top: 30px;
}

/* Scrollable table container - limits height and enables scroll after 15 rows */
.table-container-scrollable {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 630px; /* 15 rows at ~42px each */
}

.table-container-scrollable .data-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Staff boxes layout */
.staff-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.staff-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.staff-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.staff-box-title {
  color: #63A088;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  font-family: "DM Serif Text", serif;
}

.staff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 450px;
  overflow-y: auto;
}

.staff-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  color: #2C2C2C;
  font-size: 0.9rem;
}

.staff-list li:last-child {
  border-bottom: none;
}

.staff-list li:hover {
  background-color: #f8f8f8;
  padding-left: 10px;
  transition: all 0.2s ease;
}

.no-staff-message {
  color: #999999;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* Pending invitations collapsible section */
.pending-invites-container {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.pending-invites-toggle {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.pending-invites-toggle:hover {
  background-color: #f8f8f8;
}

.pending-toggle-icon {
  color: #63A088;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: transform 0.2s ease;
}

.pending-invites-title {
  color: #63A088;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  font-family: "DM Serif Text", serif;
}

.pending-invites-content {
  padding: 0 25px 25px 25px;
  display: none;
}

.pending-invites-content table {
  width: 100%;
}

.pending-invites-content .btn-action {
  margin: 0 4px;
}

.btn-action {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-resend {
  background-color: #63A088;
  color: white;
}

.btn-resend:hover {
  background-color: #528775;
  color: white;
  text-decoration: none;
}

.btn-revoke {
  background-color: #dc3545;
  color: white;
}

.btn-revoke:hover {
  background-color: #c82333;
  color: white;
  text-decoration: none;
}

/* Firm Settings Section */
.firm-settings-container {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.firm-settings-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e0e0e0;
}

.firm-settings-title {
  color: #63A088;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  font-family: "DM Serif Text", serif;
}

.firm-settings-links {
  display: flex;
  flex-direction: column;
  padding: 15px 25px 25px 25px;
}

.firm-settings-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.firm-settings-link:hover {
  background-color: #63A088;
  color: white;
  text-decoration: none;
  transform: translateX(5px);
}

.firm-settings-link i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.form-divider {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 30px 0;
}

.form-field-checkbox {
  margin-bottom: 15px;
}

.form-checkbox {
  margin-right: 10px;
}

.form-checkbox-label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

/* Toggle Switch Styles */
.form-field-toggle {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-right: 15px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
  background-color: #63A088;
}

.toggle-input:focus + .toggle-slider {
  box-shadow: 0 0 1px #63A088;
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.form-field-toggle-with-input {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.form-field-toggle-with-input .form-field-toggle {
  margin-bottom: 0;
  padding-top: 8px;
}

.inline-input-wrapper {
  flex: 1;
  max-width: 400px;
}

.inline-input {
  width: 100%;
}

@media (max-width: 768px) {
  .staff-boxes-grid {
    grid-template-columns: 1fr;
  }

  .pending-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

/* Matter Access Checkboxes */
.staff-list-item-checkbox {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.staff-list-item-checkbox:last-child {
  border-bottom: none;
}

.staff-list-item-checkbox:hover {
  background-color: #f8f8f8;
  padding-left: 10px;
}

.staff-checkbox {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #63A088;
}

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

.staff-label {
  color: #2C2C2C;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.staff-label-disabled {
  color: #666666;
  font-size: 0.9rem;
  cursor: not-allowed;
  user-select: none;
  flex: 1;
}

.matter-attorney-badge {
  color: #63A088;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 8px;
}

/* Form Actions for Matter Access */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-start;
  padding: 20px 0;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #63A088;
  color: white;
}

.btn-primary:hover {
  background-color: #4f8c70;
}

.btn-secondary {
  background-color: #e8e8e8;
  color: #2C2C2C;
}

.btn-secondary:hover {
  background-color: #d0d0d0;
}

/* Table header buttons container */
.table-header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Notice & Waiver page styles */
.notice-parties-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-party-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px 20px;
}

.notice-party-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.notice-party-info {
  flex: 1;
}

.notice-party-name {
  font-weight: 600;
  font-size: 1rem;
  color: #2C2C2C;
  margin-bottom: 3px;
}

.notice-party-relationship {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 5px;
}

.notice-party-address {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 5px;
}

.notice-party-email {
  font-size: 0.9rem;
  color: #63A088;
}

.notice-party-action {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* filling_test - PDF Editor Styles */
.pdf-editor-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pdf-toolbar-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #2C2C2C;
}

.pdf-toolbar-buttons {
  display: flex;
  gap: 10px;
}

.pdf-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.pdf-loading .error {
  color: #dc3545;
}

.pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pdf-page {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* filling_test - Pleadings list styles */
.pleadings-section {
  margin-bottom: 30px;
}

.pleadings-section .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.pleadings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pleading-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.pleading-code {
  font-weight: 600;
  color: #63A088;
  min-width: 80px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pleading-code:hover {
  color: #4f8c70;
  text-decoration: underline;
}

.pleading-name {
  color: #2C2C2C;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pleading-name:hover {
  color: #63A088;
  text-decoration: underline;
}
/* filling_test - End PDF Editor Styles */

/* Distribution Shares Styles */
.distribution-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.distribution-row select {
  flex: 2;
  min-width: 200px;
}

.distribution-row .share-input {
  flex: 1;
  max-width: 120px;
  text-align: center;
}

.distribution-row .btn-remove-row {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.distribution-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#add-distribution-row {
  margin: 0;
}

.distribution-total {
  font-weight: 600;
  font-size: 1.1rem;
}

.distribution-error {
  color: #dc3545;
  margin-top: 0.5rem;
  font-weight: 500;
  padding: 0.5rem;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

.form-hint {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
/* End Distribution Shares Styles */

/* Terms of Service Styles */
.terms-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px 50px;
  max-width: 900px;
  margin: 30px auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  line-height: 1.7;
  color: #2C2C2C;
}

.terms-title {
  font-family: "DM Serif Text", serif;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.terms-effective {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.terms-section {
  margin-bottom: 25px;
}

.terms-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.terms-section p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.terms-section ul {
  font-size: 0.9rem;
  padding-left: 25px;
  margin-bottom: 10px;
}

.terms-section ul li {
  margin-bottom: 5px;
}

.terms-section a {
  color: #63A088;
}

/* Footer Link */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}