/* Cabinet Page - Clean & Minimalist Design */

.cabinet-page {
  background: linear-gradient(135deg, var(--orange-50) 0%, #ffffff 50%, var(--amber-50) 100%);
}

/* Cabinet Page Layout - Fixed Sidebar + Scrollable Content */
.cabinet-layout {
  display: flex;
  min-height: 100vh;
  background: transparent;
}

/* Fixed Sidebar */
.cabinet-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 270px;
  height: 100vh;
  background: linear-gradient(135deg, var(--orange-50) 0%, #ffffff 50%, var(--amber-50) 100%);
  overflow-y: auto;
  overflow-x: hidden;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.cabinet-sidebar::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* Scrollable Main Content */
.cabinet-main {
  margin-left: 270px;
  flex: 1;
  background-color: white;
  min-height: 100vh;
  padding: 0.8rem 2rem 0;
  max-width: calc(100vw - 270px);
  display: flex;
  flex-direction: column;
}

/* Main content wrapper */
.cabinet-main > *:not(.cabinet-footer) {
  flex: 0 0 auto;
}

/* Push footer to bottom */
.cabinet-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.6875rem;
  color: #b5b5b5;
  width: 100%;
}

.cabinet-footer a {
  color: #b5b5b5;
  text-decoration: none;
  transition: color 0.15s;
}

.cabinet-footer a:hover {
  color: #7a7a7a;
}

.cabinet-footer-sep {
  color: #dbdbdb;
}

/* Mobile: No fixed sidebar */
@media screen and (max-width: 768px) {
  .cabinet-layout {
    display: block;
  }
  
  .cabinet-main {
    margin-left: 0;
    padding: 0.8rem 1rem 0;
    max-width: 100vw;
  }

}

.cabinet-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 100vh;
}

.cabinet-content {
  background-color: transparent;
  padding: 0;
}

/* Mobile header for cabinet */
/* Mobile menu button - fixed in top-right corner */
.cabinet-mobile-header {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 40;
}

.cabinet-mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cabinet-mobile-menu-button:hover {
  background: #fafafa;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.cabinet-mobile-menu-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cabinet-mobile-menu-button i {
  font-size: 20px;
  color: #363636;
}

/* Override app-sidebar sticky positioning for cabinet */
.cabinet-page .app-sidebar {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.cabinet-page .app-sidebar .menu {
  position: static;
  padding: 1.5rem;
  height: 100%;
  overflow: visible;
}

/* Ultra light italic font for H1-H3 in cabinet */
/* H1 styling in cabinet - normal weight, no italic */
.cabinet-content h1,
.cabinet-content .title.is-1,
.cabinet-content h1.title {
  font-weight: 400 !important;
  font-style: normal;
}

/* H2-H3 styling in cabinet - light weight with italic */
.cabinet-content h2,
.cabinet-content h3,
.cabinet-content .title.is-2,
.cabinet-content .title.is-3,
.cabinet-content h2.title,
.cabinet-content h3.title {
  font-weight: 100 !important;
  font-style: italic;
}

/* Lighter font weight for other titles in cabinet */
.cabinet-content h4,
.cabinet-content h5,
.cabinet-content h6,
.cabinet-content h4.title,
.cabinet-content h5.title,
.cabinet-content h6.title {
  font-weight: 400;
}

/* Flash notification animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Flash notifications container */
#flash-messages {
  position: fixed;
  top: 6rem; /* Под header */
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  pointer-events: none;
}

#flash-messages .notification {
  pointer-events: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding-right: 3rem; /* Отступ справа для кнопки закрытия */
  position: relative;
}

#flash-messages .notification .delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  #flash-messages {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* Cabinet Menu Styling */
.cabinet-menu {
  background-color: transparent;
}

/* Participant Info Card with integrated email */
.cabinet-menu-participant-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  margin-left: 0;
  margin-right: 0;
  background-color: rgba(245, 130, 32, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.cabinet-menu-participant-card.is-clickable:hover {
  background-color: rgba(245, 130, 32, 0.08);
}

/* Dropdown wrapper should not add extra width */
.cabinet-menu > .dropdown {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.cabinet-menu > .dropdown .dropdown-trigger {
  width: 100%;
  padding: 0;
}

/* Logo in menu */
.cabinet-menu-logo {
  padding: 0.5rem 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cabinet-menu-logo a {
  display: inline-block;
}

.cabinet-menu-logo img {
  max-height: 48px;
  width: auto;
}

.cabinet-menu-participant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f58220 0%, #ff9f4d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.cabinet-menu-participant-info {
  text-align: left;
  width: 100%;
  flex: 1;
}

.cabinet-menu-participant-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #363636;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.cabinet-menu-participant-inn {
  font-size: 0.75rem;
  color: #7a7a7a;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
}

.cabinet-menu-participant-email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #4a4a4a;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cabinet-menu-participant-email span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cabinet-menu-participant-email .icon {
  margin-left: 0.5rem;
  color: #7a7a7a;
}

.cabinet-menu .menu-label {
  color: #7a7a7a;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 1.25rem;
  margin-bottom: 0.375rem;
}

.cabinet-menu .menu-label:first-child {
  margin-top: 0;
}

.cabinet-menu .menu-list {
  margin-bottom: 0.25rem;
}

.cabinet-menu .menu-list:first-child {
  margin-bottom: 1rem;
}

.cabinet-menu .menu-list a {
  border-radius: 6px;
  padding: 0.4375rem 0.75rem;
  color: #4a4a4a;
  transition: all 0.2s ease;
  border: none;
  background-color: transparent;
  font-size: 0.8125rem;
  font-weight: 400;
}

.cabinet-menu .menu-list a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: #363636;
}

.cabinet-menu .menu-list a.is-active {
  background-color: rgba(245, 130, 32, 0.1);
  color: #f58220;
  font-weight: 500;
}

/* Cabinet Cards - No background, no borders */
.cabinet-card {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.cabinet-card:last-child {
  border-bottom: none;
}

.cabinet-card:hover {
  background-color: rgba(0, 0, 0, 0.01);
  border-radius: 8px;
}

/* Creative Card Specific */
.creative-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.creative-card:last-child {
  margin-bottom: 0;
  border-bottom: none;
}



@media screen and (max-width: 768px) {
  .creative-card {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.creative-card-image-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

/* Mobile version of image link - hidden on desktop */
.creative-card-image-link-mobile {
  display: none;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.creative-card-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
  transition: all 0.2s ease;
}

/* Mobile version of image - smaller and inline */
.creative-card-image-mobile {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.creative-card-image-link:hover .creative-card-image {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.creative-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creative-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbdbdb;
  font-size: 2rem;
}

.creative-card-image-mobile.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbdbdb;
  font-size: 1.5rem;
}

/* Contract PDF Icon */
.creative-card-image.contract-pdf-icon {
  background-color: #f5f5f5;
  color: #dbdbdb;
  transition: all 0.2s ease;
}

.creative-card-image.contract-pdf-icon.has-pdf {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.creative-card-image-link:hover .creative-card-image.contract-pdf-icon.has-pdf {
  background-color: rgba(220, 53, 69, 0.15);
  color: #c82333;
}

/* Mobile versions */
.creative-card-image-mobile.contract-pdf-icon {
  background-color: #f5f5f5;
  color: #dbdbdb;
  transition: all 0.2s ease;
}

.creative-card-image-mobile.contract-pdf-icon.has-pdf {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.creative-card-image-link-mobile:hover .creative-card-image-mobile.contract-pdf-icon.has-pdf {
  background-color: rgba(220, 53, 69, 0.15);
  color: #c82333;
}

/* Work Icon Styles */
.creative-card-image.work-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.2s ease;
}

.creative-card-image.work-icon.inactive {
  background: #f5f5f5;
  color: #dbdbdb;
}

.creative-card-image-link:hover .creative-card-image.work-icon.active {
  background: linear-gradient(135deg, #5568d3 0%, #63398d 100%);
  transform: scale(1.05);
}

/* Mobile versions */
.creative-card-image-mobile.work-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.2s ease;
}

.creative-card-image-mobile.work-icon.inactive {
  background: #f5f5f5;
  color: #dbdbdb;
}

.creative-card-image-link-mobile:hover .creative-card-image-mobile.work-icon.active {
  background: linear-gradient(135deg, #5568d3 0%, #63398d 100%);
  transform: scale(1.05);
}

/* Platform Icon Styles */
.creative-card-image.platform-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.2s ease;
}

.creative-card-image.platform-icon.unregistered {
  background: #f5f5f5;
  color: #dbdbdb;
}

.creative-card-image-link:hover .creative-card-image.platform-icon.registered {
  background: linear-gradient(135deg, #5568d3 0%, #63398d 100%);
  transform: scale(1.05);
}

/* Mobile versions */
.creative-card-image-mobile.platform-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.2s ease;
}

.creative-card-image-mobile.platform-icon.unregistered {
  background: #f5f5f5;
  color: #dbdbdb;
}

.creative-card-image-link-mobile:hover .creative-card-image-mobile.platform-icon.registered {
  background: linear-gradient(135deg, #5568d3 0%, #63398d 100%);
  transform: scale(1.05);
}

.contract-vat-badge-inline {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  background-color: rgba(72, 199, 116, 0.15);
  color: #48c774;
  border-radius: 3px;
  font-weight: 600;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Media Badge */
.creative-media-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.media-badge-item {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ERID Badge */
.erid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  background-color: rgba(72, 199, 116, 0.1);
  color: #48c774;
  border: 1px solid rgba(72, 199, 116, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.erid-badge:hover {
  background-color: rgba(72, 199, 116, 0.2);
}

.erid-badge i {
  font-size: 0.8125rem;
}

.creative-info-link {
  color: #4a4a4a;
  text-decoration: none;
}

.creative-info-link:hover {
  color: #363636;
  text-decoration: underline;
}

/* Creative Info Section */
.creative-card-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
}

/* Contract Card Info Grid - Two Columns */
.contract-card-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
}

.contract-card-info-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .contract-card-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.creative-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.creative-info-label {
  color: #7a7a7a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 120px;
}

.creative-info-label i {
  color: #b5b5b5;
  font-size: 0.875rem;
}

.creative-info-value {
  color: #4a4a4a;
  font-weight: 500;
}

.creative-info-action {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center;
}

/* Add Button */
.creative-add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  background-color: transparent;
  color: #b5b5b5;
  border: 1px solid rgba(181, 181, 181, 0.3);
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.creative-add-button:not(:disabled) {
  cursor: pointer;
  color: #4a4a4a;
  border-color: rgba(0, 0, 0, 0.2);
}

.creative-add-button:not(:disabled):hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.3);
  color: #363636;
}

.creative-card-content {
  flex: 1;
  min-width: 0;
}

.creative-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.creative-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #363636;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.creative-card-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.creative-card-title-link:hover .creative-card-title {
  color: #f58220;
}

.creative-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #7a7a7a;
  font-size: 0.875rem;
}

.contract-card-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.contract-card-header-body {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
}

.contract-card-title-group {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.contract-card-status {
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  margin-left: auto;
  white-space: nowrap;
}

.creative-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.creative-card-meta-item .icon {
  font-size: 0.875rem;
  color: #b5b5b5;
}

.work-card-price {
  text-align: right;
  min-width: 150px;
}

.work-card-price-label {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-bottom: 0.25rem;
}

.work-card-price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #363636;
  line-height: 1.2;
}

.work-favorite-toggle-form {
  display: inline;
}

.work-favorite-toggle {
  border: 1px solid #ededed;
  padding: 0.2rem 0.4rem;
  height: auto;
}

.work-favorite-toggle:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .work-card-price {
    text-align: left;
    min-width: 0;
  }
}

.work-description-toggle {
  border: 1px solid #ededed;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #fafafa;
  margin-bottom: 1rem;
}

.work-description-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #363636;
  list-style: none;
}

.work-description-summary::-webkit-details-marker {
  display: none;
}

.work-description-hint {
  font-size: 0.75rem;
  color: #7a7a7a;
  font-weight: 400;
}

.work-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.work-summary-item {
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #ffffff;
}

.work-summary-label {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-bottom: 0.35rem;
}

.work-summary-value {
  font-size: 0.95rem;
  color: #363636;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.work-summary-price {
  font-size: 1.4rem;
  font-weight: 700;
}

.work-summary-meta {
  margin-top: 0.5rem;
}

.work-summary-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.work-summary-platform-avatar,
.work-summary-platform-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #b5b5b5;
  font-size: 0.75rem;
}

.work-summary-platform-avatar {
  object-fit: cover;
}

.price-list-date-fields .control.has-icons-left .icon {
  top: 50%;
  transform: translateY(-50%);
}

.work-quick-fill {
  position: sticky;
  top: 1rem;
}

.work-quick-fill-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 520px;
  overflow: auto;
  padding-right: 0.25rem;
}

.work-quick-fill-item {
  width: 100%;
  text-align: left;
  border: 1px solid #ededed;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.work-quick-fill-item:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: #fafafa;
}

.work-quick-fill-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.25rem;
}

.work-quick-fill-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #7a7a7a;
}

.platform-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-select-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f2f2;
  flex-shrink: 0;
}

.platform-select-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-select-avatar-placeholder {
  color: #b5b5b5;
  font-size: 0.75rem;
}

.platform-select-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.platform-select-name {
  font-weight: 600;
  color: #363636;
}

.platform-select-meta {
  font-size: 0.75rem;
  color: #7a7a7a;
}

.platform-select-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-dropdown .option.active .platform-select-name,
.ts-dropdown .option.active .platform-select-meta {
  color: #ffffff;
}

.cabinet-calendar-page {
  margin-top: 1rem;
}

.cabinet-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.cabinet-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.cabinet-calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
}

.cabinet-calendar-dot.creative { background: #f59e0b; }
.cabinet-calendar-dot.contract { background: #3b82f6; }
.cabinet-calendar-dot.act { background: #10b981; }

.cabinet-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.85rem;
  align-items: start;
}

.cabinet-calendar-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.55rem;
}

.cabinet-calendar-page .fc {
  font-size: 0.8125rem;
  color: #363636;
}

.cabinet-calendar-page .fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 0.65rem;
  gap: 0.35rem;
}

.cabinet-calendar-page .fc .fc-toolbar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.cabinet-calendar-page .fc .fc-button {
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.28rem 0.5rem;
}

.cabinet-calendar-page .fc .fc-col-header-cell-cushion {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
}

.cabinet-calendar-page .fc .fc-daygrid-day-number {
  font-size: 0.75rem;
  font-weight: 500;
  color: #363636;
  padding: 0.1rem 0.2rem 0;
}

.cabinet-calendar-page .fc .fc-multimonth {
  border: none;
  background: transparent;
  gap: 0.5rem;
  padding: 0;
}

.cabinet-calendar-page .fc .fc-multimonth-multicol .fc-multimonth-month,
.cabinet-calendar-page .fc .fc-multimonth-singlecol .fc-multimonth-month {
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
}

.cabinet-calendar-page .fc .fc-multimonth-header {
  background: #ffffff;
  padding: 0.2rem 0.35rem 0;
}

.cabinet-calendar-page .fc .fc-multimonth-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  padding: 0.2rem 0 0.3rem;
}

.cabinet-calendar-page .fc .fc-multimonth-daygrid {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0 !important;
}

.cabinet-calendar-page .fc .fc-multimonth-daygrid-table,
.cabinet-calendar-page .fc .fc-multimonth-header-table {
  border-collapse: separate;
  border-spacing: 0;
}

.cabinet-calendar-page .fc .fc-daygrid-day-frame {
  min-height: 48px;
  border-radius: 6px;
  padding: 0.1rem;
}

.cabinet-calendar-page .fc .fc-daygrid-day {
  cursor: pointer;
}

.cabinet-calendar-page .fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
  background: rgba(15, 23, 42, 0.03);
}

.cabinet-calendar-page .fc .fc-daygrid-day.cabinet-calendar-day-selected .fc-daygrid-day-frame {
  background: rgba(59, 130, 246, 0.11);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}

.cabinet-calendar-day-meta {
  margin-top: 0.12rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem;
}

.cabinet-calendar-day-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.02rem 0.15rem;
  border-radius: 4px;
  font-size: 0.58rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cabinet-calendar-day-count.creative {
  color: #92400e;
  background: rgba(245, 158, 11, 0.18);
}

.cabinet-calendar-day-count.contract {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.16);
}

.cabinet-calendar-day-count.act {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
}

.cabinet-calendar-drawer {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.9rem;
  position: sticky;
  top: 1rem;
}

.cabinet-calendar-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.cabinet-calendar-drawer-kicker {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cabinet-calendar-drawer-title {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #1f2937;
}

.cabinet-calendar-drawer-summary {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cabinet-calendar-drawer-body {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cabinet-calendar-drawer-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 600;
}

.cabinet-calendar-drawer-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.35rem;
}

.cabinet-calendar-drawer-row:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.01);
}

.cabinet-calendar-drawer-row-title {
  font-size: 0.8rem;
  color: #111827;
  line-height: 1.35;
}

.cabinet-calendar-drawer-row-status {
  font-size: 0.7rem;
  color: #6b7280;
}

.cabinet-calendar-drawer-backdrop {
  display: none;
}

@media (max-width: 1200px) {
  .cabinet-calendar-layout {
    grid-template-columns: 1fr;
  }

  .cabinet-calendar-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    border-radius: 14px 14px 0 0;
    z-index: 70;
    max-height: 72vh;
    overflow-y: auto;
    transform: translateY(102%);
    transition: transform 0.2s ease;
  }

  .cabinet-calendar-drawer.is-active {
    transform: translateY(0);
  }

  .cabinet-calendar-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 65;
  }

  .cabinet-calendar-drawer-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}

.creative-card-description {
  color: #4a4a4a;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.creative-card-description-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color 0.2s ease;
}

.creative-card-description-link:hover .creative-card-description {
  color: #363636;
}

.creative-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.creative-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Role Badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  background-color: transparent;
  border: 1px solid currentColor;
}

.role-badge.contractor {
  color: #3273dc;
  border-color: rgba(50, 115, 220, 0.3);
}

.role-badge.client {
  color: #48c774;
  border-color: rgba(72, 199, 116, 0.3);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  background-color: transparent;
  border: 1px solid currentColor;
}

.status-badge.draft {
  color: #b5b5b5;
  border-color: rgba(181, 181, 181, 0.3);
}

.status-badge.approved {
  color: #3273dc;
  border-color: rgba(50, 115, 220, 0.3);
}

.status-badge.signed {
  color: #00b89c;
  border-color: rgba(0, 184, 156, 0.3);
}

.status-badge.registered {
  color: #48c774;
  border-color: rgba(72, 199, 116, 0.3);
}

.status-badge.completed {
  color: #23d160;
  border-color: rgba(35, 209, 96, 0.3);
}

.status-badge.canceled {
  color: #f14668;
  border-color: rgba(241, 70, 104, 0.3);
}

.status-badge.published {
  color: #48c774;
  border-color: rgba(72, 199, 116, 0.3);
}

.status-badge.archived {
  color: #f14668;
  border-color: rgba(241, 70, 104, 0.3);
}

.status-badge.planning {
  color: #3273dc;
  border-color: rgba(50, 115, 220, 0.3);
}

.status-badge.in_progress {
  color: #00b89c;
  border-color: rgba(0, 184, 156, 0.3);
}

.status-badge.review {
  color: #ff9800;
  border-color: rgba(255, 152, 0, 0.35);
}

.status-badge.cancelled {
  color: #f14668;
  border-color: rgba(241, 70, 104, 0.3);
}

.status-badge.active {
  color: #48c774;
  border-color: rgba(72, 199, 116, 0.3);
}

.status-badge.warning {
  color: #ff9800;
  border-color: rgba(255, 152, 0, 0.35);
}

.status-badge.error {
  color: #ff3860;
  border-color: rgba(255, 56, 96, 0.3);
}

.creative-error-status-details {
  position: relative;
  display: inline-block;
}

.creative-error-status-summary {
  list-style: none;
  cursor: pointer;
}

.creative-error-status-summary::-webkit-details-marker {
  display: none;
}

.creative-error-status-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  min-width: 280px;
  max-width: 420px;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 56, 96, 0.25);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
  color: #4a4a4a;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.creative-error-status-title {
  margin-bottom: 0.375rem;
  font-weight: 600;
  color: #363636;
}

.creative-error-status-detail {
  margin-top: 0.25rem;
  color: #6b7280;
}

.contract-pdf-link {
  display: inline-flex;
  align-items: center;
}

.contract-pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.contract-status-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.contract-card-title-row .contract-status-control {
  margin-left: auto;
}

.contract-card-header .creative-card-meta {
  margin-top: 0.5rem;
}

.contract-card-actions .contract-status-control {
  margin-left: 0;
  align-items: flex-start;
}

.contract-card-actions .contract-status-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.contract-card-actions .contract-status-confirm {
  justify-content: flex-start;
}

@media screen and (max-width: 768px) {
  .creative-card-image-link-mobile {
    display: none !important;
  }
}

.contract-status-header {
  margin-left: auto;
}

.contract-status-control.is-compact {
  gap: 0.35rem;
}

.contract-status-actions,
.contract-status-confirm {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.contract-status-action .icon-text,
.contract-status-confirm .icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contract-status-action .icon,
.contract-status-confirm .icon {
  display: inline-flex;
  align-items: center;
}

.contract-status-control.is-compact .button.contract-status-action {
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
  height: auto;
  min-height: 0;
}

.contract-status-control.is-compact .status-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.contract-status-publish-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 1000;
  display: none;
}

.contract-status-publish-backdrop.is-active {
  display: block;
}

.contract-status-publish-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  z-index: 1001;
  opacity: 0;
  display: none;
  transition: all 0.2s ease;
}

.contract-status-publish-modal.is-active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.contract-status-publish-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contract-status-publish-modal-header h3 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a1a;
}

.contract-status-publish-close {
  border: 0;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.contract-status-publish-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #363636;
}

.contract-status-publish-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.contract-status-publish-modal-inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contract-status-publish-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .contract-status-publish-modal-footer {
    justify-content: stretch;
  }

  .contract-status-publish-modal-footer .button {
    width: 100%;
  }
}

/* Filter Bar */
.cabinet-filter-bar {
  background-color: transparent;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cabinet-filter-buttons {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.cabinet-filter-dropdown .dropdown-trigger {
  width: 100%;
}

.cabinet-filter-dropdown .dropdown-menu {
  min-width: max-content;
  width: max-content;
  padding-right: 5px;
}

.cabinet-filter-dropdown .dropdown-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cabinet-filter-button,
.cabinet-filter-dropdown .dropdown-item {
  white-space: nowrap;
}

.cabinet-filter-button .icon-text,
.cabinet-filter-dropdown .dropdown-item .icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.cabinet-filter-dropdown .dropdown-item {
  color: #4a4a4a;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cabinet-filter-button {
  padding: 0.3125rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
  color: #4a4a4a;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cabinet-filter-button:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

.cabinet-filter-button.is-active {
  background-color: rgba(245, 130, 32, 0.1);
  color: #f58220;
  border-color: rgba(245, 130, 32, 0.3);
  font-weight: 500;
}

/* Page Header -- compact breadcrumb style */
.cabinet-page-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cabinet-page-title {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: normal;
  color: #363636;
  margin: 0;
  line-height: 1.4;
  min-width: 0;
  padding: 0.3125rem 0.75rem;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
}

.cabinet-page-breadcrumb {
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 400;
  transition: color 0.15s;
}

.cabinet-page-breadcrumb:hover {
  color: #363636;
  text-decoration: none;
}

.cabinet-page-breadcrumb-sep {
  color: #ccc;
  margin: 0 0.375rem;
  user-select: none;
  font-weight: 300;
}

.cabinet-page-current {
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-page-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cabinet-page-meta .status-badge {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
}

.cabinet-page-meta .tag {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.75rem;
  line-height: 1.4;
  border-radius: 6px;
  height: auto;
}

.cabinet-page-meta .role-badge {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.75rem;
  line-height: 1.4;
}

.cabinet-page-meta .erid-badge {
  padding: 0.3125rem 0.75rem;
  line-height: 1.4;
}

.cabinet-page-meta .contract-pdf-badge {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
}

.cabinet-page-meta .button,
.cabinet-page-meta .button.is-small {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  height: auto;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .cabinet-page-header {
    margin-bottom: 0.5rem;
  }

  .cabinet-page-header + .cabinet-creatives-list,
  .cabinet-page-header + .cabinet-participants-list,
  .cabinet-page-header + .cabinet-empty-state {
    margin-top: 0;
  }

  .cabinet-page-title {
    font-size: 0.75rem;
  }

  .cabinet-page-current {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* Marker Search */
.marker-search-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.marker-search-toggle {
  color: #363636 !important;
  border: 1px solid rgba(0, 0, 0, 0.4) !important;
  background-color: white !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.marker-search-toggle:hover {
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.5) !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.marker-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  z-index: 90;
}

.marker-search-form.is-hidden {
  display: none !important;
}

.marker-search-form .input {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #fafafa;
  font-size: 0.875rem;
  height: 2rem;
  padding: 0.375rem 0.75rem;
  transition: all 0.2s ease;
}

.marker-search-form .input.marker-search-input {
  width: 240px;
}

.marker-search-form .input:focus {
  border-color: #4a4a4a;
  box-shadow: 0 0 0 0.125em rgba(74, 74, 74, 0.1);
  background-color: white;
}

.marker-search-form .button {
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 1rem;
  border-color: rgba(0, 0, 0, 0.15);
  background-color: #fafafa;
  color: #4a4a4a;
  transition: all 0.2s ease;
}

.marker-search-form .button:hover {
  background-color: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.25);
  color: #363636;
}

.marker-search-form .button.is-text {
  border: none;
  background-color: transparent;
  color: #b5b5b5;
  padding: 0 0.5rem;
}

.marker-search-form .button.is-text:hover {
  color: #4a4a4a;
  background-color: rgba(0, 0, 0, 0.03);
}

/* Marker search backdrop */
.marker-search-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 70;
  transition: opacity 0.2s ease;
  opacity: 1;
}

.marker-search-backdrop.is-hidden {
  display: none !important;
  opacity: 0;
}

.cabinet-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 85;
  transition: opacity 0.2s ease;
  opacity: 1;
}

.cabinet-filter-backdrop.is-hidden {
  display: none !important;
  opacity: 0;
}

/* Mobile styles for marker search */
@media screen and (max-width: 768px) {
  .marker-search-container {
    position: static;
  }

  .marker-search-form {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
    width: calc(100vw - 2rem);
    max-width: 400px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .marker-search-form .input.marker-search-input {
    flex: 1;
    min-width: 0;
    width: auto !important;
  }

  .marker-search-form .button:not(.is-text) {
    flex-shrink: 0;
  }

  .marker-search-form .button.is-text {
    flex-shrink: 0;
  }
}

/* Desktop styles for marker search */
@media screen and (min-width: 769px) {
  .marker-search-container {
    position: static;
  }

  .marker-search-form {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
}

/* Empty State */
.cabinet-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: transparent;
}

.cabinet-empty-state-icon {
  font-size: 4rem;
  color: #dbdbdb;
  margin-bottom: 1.5rem;
}

.cabinet-empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 0.75rem;
}

.cabinet-empty-state-text {
  font-size: 1rem;
  color: #7a7a7a;
  margin-bottom: 1.5rem;
}

/* Stats Widget */
.cabinet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cabinet-stat-card {
  padding: 1.5rem;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cabinet-stat-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cabinet-stat-label {
  font-size: 0.8125rem;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.cabinet-stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: #363636;
  line-height: 1.2;
}

.cabinet-stat-icon {
  float: right;
  font-size: 1.5rem;
  color: #dbdbdb;
}

/* Dashboard Attention Cards */
.dashboard-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-attention-card {
  display: block;
  padding: 1.5rem;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.dashboard-attention-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Success state for cards with no tasks */
.dashboard-attention-card.is-success {
  background-color: #f0fdf4;
  border-color: #86efac;
  cursor: default;
}

.dashboard-attention-card.is-success:hover {
  transform: none;
  border-color: #86efac;
}

.dashboard-attention-card-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dashboard-attention-card-count {
  font-size: 2rem;
  font-weight: 600;
  color: #363636;
  line-height: 1.2;
}

.dashboard-attention-card-icon {
  font-size: 2rem;
  color: #22c55e;
  line-height: 1.2;
}

.dashboard-attention-card-title {
  font-size: 0.8125rem;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.dashboard-attention-card.is-success .dashboard-attention-card-title {
  color: #16a34a;
}

.dashboard-attention-card-description {
  font-size: 0.75rem;
  color: #b5b5b5;
  line-height: 1.4;
}

.dashboard-attention-card.is-success .dashboard-attention-card-description {
  color: #4ade80;
}

/* Button Overrides for Cabinet */
.cabinet-content .button {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cabinet-content .button.is-primary {
  background-color: #f58220;
  border-color: #f58220;
}

.cabinet-content .button.is-primary:hover {
  background-color: #e07419;
}

.cabinet-content .button.is-text {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #4a4a4a;
  text-decoration: none;
}

.cabinet-content .button.is-text:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
  color: #363636;
}

/* Pagination */
.cabinet-content .pagination-list {
  justify-content: center;
  margin-top: 2rem;
}

.cabinet-content .pagination-link,
.cabinet-content .pagination-previous,
.cabinet-content .pagination-next {
  border-radius: 8px;
  border-color: rgba(0, 0, 0, 0.1);
  background-color: transparent;
}

.cabinet-content .pagination-link:hover,
.cabinet-content .pagination-previous:hover,
.cabinet-content .pagination-next:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

.cabinet-content .pagination-link.is-current {
  background-color: #f58220;
  border-color: #f58220;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cabinet-content {
    padding: 1rem;
  }

  .cabinet-main {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .cabinet-main > * {
    grid-column: 1 / -1;
  }
  
  .creative-card {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .creative-card-content {
    margin-bottom: 0.75rem;
  }

  .creative-card-header {
    margin-bottom: 0.2rem;
    gap: 0.35rem;
  }

  .creative-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
  }

  .contract-card-header .creative-card-meta {
    display: none;
  }

  .contract-card-title-row {
    margin-bottom: 0.1rem;
  }

  .contract-card-status-mobile .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .creative-card-title .contract-card-status-mobile {
    display: inline-flex;
    margin-left: 0.4rem;
    vertical-align: middle;
  }

  .cabinet-filter-bar {
    display: none;
  }

  .cabinet-filter-bar.is-active {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    border-bottom: none;
  }

  .cabinet-filter-buttons {
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    max-width: min(100%, 420px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
    justify-content: center;
  }

  .cabinet-filter-button {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
  }

  .cabinet-filter-button .icon-text {
    gap: 0.35rem;
  }

  .cabinet-filter-dropdown .dropdown-content {
    padding: 0.4rem;
    gap: 0.35rem;
  }

  .cabinet-filter-dropdown .dropdown-item {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
  }

  .cabinet-filter-dropdown .dropdown-menu {
    left: auto;
    right: 0;
  }

  .contract-client-inline {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .contract-client-inline .control {
    width: 100%;
  }

  .contract-client-inline .control.is-expanded {
    flex: 1 1 100%;
  }

  .contract-client-inline__or {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .contract-client-inline__button {
    width: 100%;
    justify-content: center;
  }

  .cabinet-filter-dropdown .dropdown-menu {
    left: auto;
    right: 0;
  }
  
  /* Show mobile version of image link */
  .creative-card-image-link-mobile {
    display: block;
  }
  
  .creative-card-image {
    width: 100%;
    height: 200px;
  }
  
  /* Hide image placeholder on mobile if no images (for creatives) */
  .creative-card-image-link.is-hidden-mobile {
    display: none !important;
  }
  
  .creative-card-header {
    flex-direction: column;
  }
  
  /* Convert two-column grid to single column on mobile */
  .contract-card-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cabinet-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .creative-sidebar {
    position: static !important;
  }
}

/* Creative Show Page Styles */
.creative-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.creative-section:last-child {
  border-bottom: none;
}

.creative-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding: 0.3125rem 0.75rem;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  line-height: 1.4;
}

.creative-media-item {
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  aspect-ratio: 1;
}

.creative-media-count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 0.125rem;
}

.creative-media-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
}

.creative-media-strip.is-expanded {
  flex-wrap: wrap;
}

.creative-media-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
  cursor: pointer;
}

.creative-media-thumb img,
.creative-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creative-media-thumb.is-hidden {
  display: none;
}

.creative-media-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  pointer-events: none;
}

.creative-media-overflow {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.creative-media-overflow:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.creative-text-content {
  color: #4a4a4a;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.creative-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #b5b5b5;
}

.creative-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.creative-empty-state p {
  font-size: 0.9375rem;
  margin: 0;
}

.creative-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creative-link-item {
  padding: 0.75rem 0.9rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.creative-link-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.creative-link-label {
  font-size: 0.8125rem;
  color: #7a7a7a;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.creative-publication-refresh-form {
  margin: 0;
}

.creative-publication-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.creative-publication-health-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.creative-publication-health-icon.is-ok {
  color: #22c55e;
}

.creative-publication-health-icon.is-error {
  color: #ef4444;
}

.creative-publication-meta-row {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.creative-publication-check-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-left: auto;
  position: relative;
}

.creative-publication-check-updated-at {
  font-size: 0.75rem;
  color: #6b7280;
}

.creative-publication-error-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-size: 0.85rem;
  cursor: help;
}

.creative-publication-check-statuses.has-errors-tooltip::after,
.creative-publication-check-statuses.has-errors-tooltip::before {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease;
  position: absolute;
  left: 100%;
  z-index: 40;
}

.creative-publication-check-statuses.has-errors-tooltip::after {
  content: attr(data-publication-tooltip);
  top: 50%;
  transform: translate(0.35rem, -50%);
  max-width: 360px;
  width: max-content;
  white-space: normal;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.creative-publication-check-statuses.has-errors-tooltip::before {
  content: "";
  top: 50%;
  transform: translate(0, -50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent rgba(17, 24, 39, 0.96) transparent transparent;
}

.creative-publication-check-statuses.has-errors-tooltip:hover::after,
.creative-publication-check-statuses.has-errors-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.creative-link {
  color: #f58220;
  text-decoration: none;
  word-break: break-all;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.creative-link:hover {
  color: #e07419;
  text-decoration: underline;
}

/* Document Cards */
.creative-documents-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.creative-document-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.creative-document-card:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.creative-document-card--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.creative-document-card--stacked .creative-document-info {
  flex: none;
}

.creative-document-actions-row--stacked {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-self: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.creative-document-actions-row--stacked .creative-document-secondary {
  flex: none;
}

.creative-document-actions-row--stacked .creative-document-primary-action {
  flex: 1 1 auto;
  margin-left: 0;
  min-width: 0;
}

.creative-document-actions-row--stacked .creative-document-primary-action .contract-status-control {
  align-items: flex-start;
}

.creative-document-actions-row--stacked .creative-document-primary-action .contract-status-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.creative-document-info {
  flex: 1;
  min-width: 0;
}

.creative-document-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.creative-document-link {
  color: #363636;
  text-decoration: none;
  transition: color 0.2s ease;
}

.creative-document-link:hover {
  color: #f58220;
}

.creative-document-meta {
  font-size: 0.8125rem;
  color: #7a7a7a;
}

.creative-document-amount {
  font-size: 0.8125rem;
  color: #7a7a7a;
  margin-top: 0.2rem;
}

.creative-document-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-self: flex-end;
}

.creative-document-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.creative-document-pdf-button {
  margin-left: auto;
  white-space: nowrap;
}

.creative-document-actions-row--stacked .creative-document-pdf-button {
  margin-left: 0;
}

.creative-document-pdf-trailing {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.creative-document-primary-action {
  margin-left: auto;
}

@media screen and (max-width: 768px) {
  .creative-document-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .creative-document-title,
  .creative-document-meta,
  .creative-document-amount {
    width: 100%;
  }

  .creative-document-actions-row {
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-self: stretch;
  }

  .creative-document-secondary {
    flex: 1 1 auto;
    min-width: 0;
  }

  .creative-document-primary-action {
    flex: 0 0 auto;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
  }

  .creative-document-primary-action .contract-status-actions,
  .creative-document-primary-action .contract-status-confirm {
    justify-content: flex-end;
  }
}

/* Statistics */
.creative-statistics-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creative-stat-card {
  padding: 1.25rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.creative-stat-period {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.creative-stat-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.creative-stat-item {
  
}

.creative-stat-label {
  font-size: 0.8125rem;
  color: #7a7a7a;
  margin-bottom: 0.25rem;
}

.creative-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #363636;
}

/* Related Creatives */
.creative-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.creative-related-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.creative-related-card:hover {
  background-color: rgba(0, 0, 0, 0.03);
  transform: translateX(4px);
}

.creative-related-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.creative-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creative-related-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbdbdb;
  font-size: 1.25rem;
}

.creative-related-content {
  flex: 1;
  min-width: 0;
}

.creative-related-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creative-related-erid {
  font-size: 0.75rem;
  font-weight: 500;
  color: #48c774;
}

.creative-related-meta {
  font-size: 0.8125rem;
  color: #7a7a7a;
}

/* Sidebar */
.creative-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  max-width: 290px;
  width: 100%;
}

.creative-detail-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
}

.creative-detail-block:last-child {
  border-bottom: none;
}

.creative-sidebar .button.is-fullwidth {
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
}

.creative-sidebar .button .icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.cabinet-actions-divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cabinet-actions-legacy {
  display: none !important;
}

.cabinet-floating-actions-spacer {
  height: 4.5rem;
}

.cabinet-floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 80;
  pointer-events: none;
}

.cabinet-floating-actions__glass {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
  position: relative;
  max-width: calc(100vw - 2rem);
  pointer-events: auto;
}

.cabinet-floating-actions__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 0;
  pointer-events: none;
}

.cabinet-floating-actions__glass > * {
  position: relative;
  z-index: 1;
}

.cabinet-floating-actions__button {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #363636;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}

.cabinet-floating-actions__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-floating-actions__button:hover,
.cabinet-floating-actions__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.cabinet-floating-actions__button:focus-visible {
  outline: 2px solid rgba(72, 95, 199, 0.35);
  outline-offset: 2px;
}

.cabinet-floating-actions__button.is-primary {
  color: #485fc7;
}

.cabinet-floating-actions__button.is-info {
  color: #3e8ed0;
}

.cabinet-floating-actions__button.is-warning {
  color: #b7791f;
}

.cabinet-floating-actions__button.is-danger {
  color: #f14668;
}

.cabinet-floating-actions__button.is-link {
  color: #485fc7;
}

.cabinet-floating-actions__divider {
  width: 1px;
  height: 1.75rem;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  flex: 0 0 auto;
}

.cabinet-floating-actions__button[data-tooltip]::after,
.cabinet-floating-actions__button[data-tooltip]::before {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cabinet-floating-actions__button[data-tooltip]::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, 6px);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.24);
  z-index: 1;
}

.cabinet-floating-actions__button[data-tooltip]::before {
  content: "";
  bottom: calc(100% + 0.3rem);
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(17, 24, 39, 0.9);
  transform: translate(-50%, 10px) rotate(45deg);
  border-radius: 2px;
}

.cabinet-floating-actions__button[data-tooltip]:hover::after,
.cabinet-floating-actions__button[data-tooltip]:focus-visible::after,
.cabinet-floating-actions__button[data-tooltip]:hover::before,
.cabinet-floating-actions__button[data-tooltip]:focus-visible::before {
  opacity: 1;
}

.cabinet-floating-actions__button[data-tooltip]:hover::after,
.cabinet-floating-actions__button[data-tooltip]:focus-visible::after {
  transform: translate(-50%, 0);
}

.cabinet-floating-actions__button[data-tooltip]:hover::before,
.cabinet-floating-actions__button[data-tooltip]:focus-visible::before {
  transform: translate(-50%, 4px) rotate(45deg);
}

@media (max-width: 768px) {
  .cabinet-floating-actions {
    right: 0;
    left: 0;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    padding: 0 1rem;
  }

  .cabinet-floating-actions__glass {
    padding: 0.4rem 0.6rem;
    gap: 0.35rem;
  }

  .cabinet-floating-actions__button {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
  }
}


.status-hint-icon {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.status-hint-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: normal;
  max-width: 240px;
  width: max-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.status-hint-icon[data-tooltip]:hover::after,
.status-hint-icon[data-tooltip]:focus::after {
  opacity: 1;
}

.creative-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7a7a7a;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.creative-detail-value {
  font-size: 0.9375rem;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.creative-detail-value i {
  color: #b5b5b5;
  font-size: 0.875rem;
}

.creative-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #363636;
}

.creative-detail-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color 0.2s ease;
}

.creative-detail-link:hover {
  color: #f58220;
}

.creative-detail-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.25rem;
}

.creative-detail-inn {
  font-size: 0.8125rem;
  color: #7a7a7a;
}

.creative-detail-meta {
  font-size: 0.8125rem;
  color: #7a7a7a;
  margin-top: 0.25rem;
}

.creative-detail-empty {
  font-size: 0.875rem;
  color: #b5b5b5;
  font-style: italic;
}

/* Contract Show Page */
.contract-text-block {
  margin-bottom: 2rem;
}

.contract-text-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 0.75rem;
}

/* Contract Content Block (Full Text Display) */
.contract-content-block {
  margin-bottom: 2rem;
}

.contract-content-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7a7a7a;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contract-content-text {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  color: #4a4a4a;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.contract-content-text p {
  margin-bottom: 1rem;
}

.contract-content-text p:last-child {
  margin-bottom: 0;
}

/* Contract HTML Content */
.contract-content-html {
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 13px;
}

.contract-content-html h1 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 24px 0;
  color: #111827;
}

.contract-content-html h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 12px 0;
  color: #111827;
}

.contract-content-html p {
  margin: 10px 0;
  text-align: justify;
}

/* Table wrapper for horizontal scroll on mobile */
.contract-content-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 12px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Ensure table body and rows display properly with overflow */
.contract-content-html table tbody,
.contract-content-html table thead {
  display: table;
  width: 100%;
}

.contract-content-html table th,
.contract-content-html table td {
  border: 1px solid #374151;
  padding: 10px;
}

.contract-content-html table th {
  background-color: #f3f4f6;
  font-weight: 700;
  text-align: center;
}

.contract-content-html table td {
  vertical-align: top;
}

.contract-content-html table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Таблица без границ для реквизитов */
.contract-content-html table[style*="border: none"] td {
  border: none !important;
  padding: 15px;
  vertical-align: top;
}

.contract-content-html table[style*="border: none"] p {
  margin: 5px 0;
}

/* Act PDF Preview Styles */
.contract-content-html .pdf-preview-notice {
  display: none; /* Hide in cabinet view */
}

.contract-content-html .pdf-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.contract-content-html .pdf-header-center {
  text-align: center;
  margin-bottom: 1rem;
}

.contract-content-html .pdf-logo {
  max-width: 110px;
  height: auto;
  margin-bottom: 1rem;
}

.contract-content-html .pdf-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.contract-content-html .pdf-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}

.contract-content-html .pdf-section {
  margin-bottom: 1.5rem;
}

.contract-content-html .pdf-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contract-content-html .pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.contract-content-html .pdf-table tbody,
.contract-content-html .pdf-table thead,
.contract-content-html .pdf-table tfoot {
  display: table;
  width: 100%;
}

.contract-content-html .pdf-table th,
.contract-content-html .pdf-table td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
}

.contract-content-html .pdf-table th {
  background-color: #f9fafb;
  font-weight: 600;
  text-align: center;
  font-size: 12px;
}

.contract-content-html .pdf-table td.center {
  text-align: center;
}

.contract-content-html .pdf-table td.right {
  text-align: right;
}

.contract-content-html .pdf-table tfoot {
  background-color: #f0f9ff;
  font-weight: 600;
}

.contract-content-html .pdf-table tfoot th {
  background-color: transparent;
}

.contract-content-html .pdf-conclusion {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.contract-content-html .pdf-signatures {
  margin-top: 2rem;
}

.contract-content-html .pdf-signatures-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 2rem;
  overflow-x: auto; /* На случай очень узких экранов */
}

.contract-content-html .pdf-signature-block {
  padding: 1rem;
  border-radius: 6px;
  min-width: 280px; /* Минимальная ширина блока подписи */
}

.contract-content-html .pdf-signature-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contract-content-html .pdf-company-info {
  margin-bottom: 1.5rem;
  font-size: 12px;
  color: #6b7280;
}

.contract-content-html .pdf-company-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.contract-content-html .pdf-signature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contract-content-html .pdf-signature-seal {
  font-weight: 700;
  font-size: 18px;
  color: #6b7280;
}

.contract-content-html .pdf-signature-details {
  flex: 1;
}

.contract-content-html .pdf-signature-position {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.contract-content-html .pdf-signature-line-with-name {
  border-bottom: 1px solid #374151;
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

.contract-content-html .pdf-signature-name {
  font-weight: 600;
  color: #111827;
}

.contract-content-html .pdf-signature-note {
  font-size: 10px;
  color: #9ca3af;
  font-style: italic;
}

.contract-content-html .pdf-notes {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
}

.contract-content-html .pdf-description {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}


.contract-work-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.work-items-header.is-right {
  justify-content: flex-end;
}

.work-items-header .creative-section-title {
  margin-bottom: 0;
}

.contract-work-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  align-items: flex-start;
}

.contract-work-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: #7a7a7a;
  flex-shrink: 0;
  width: 30px;
}

.contract-work-details {
  flex: 1;
  min-width: 0;
}

.contract-work-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.25rem;
}

.contract-work-meta {
  font-size: 0.8125rem;
  color: #7a7a7a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contract-discount-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background-color: rgba(255, 221, 87, 0.3);
  color: #947600;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.contract-work-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #7a7a7a;
}

.contract-work-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  text-align: right;
  min-width: 100px;
}

.contract-work-amount-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #363636;
}

.contract-work-actions .button {
  padding: 0.25rem 0.5rem;
  height: auto;
}

.contract-work-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.work-item-modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1rem 0;
}

.work-item-modal-divider::before,
.work-item-modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.work-item-modal-custom .field {
  margin-bottom: 0.75rem;
}

.work-item-modal-custom .label.is-small {
  margin-bottom: 0.25rem;
  color: #7a7a7a;
}

.work-item-modal-custom.columns {
  margin-top: 0.25rem;
}

.work-item-modal-custom .column {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.inline-editor-actions .button.is-primary {
  color: #fff;
}

.contract-work-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(245, 130, 32, 0.1);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.contract-work-items-section .contract-work-total {
  margin-bottom: 0.75rem;
}

#contract_work_items_section {
  margin-bottom: 40px;
}

.contract-total-amount {
  color: #f58220;
  font-size: 1.25rem;
}

/* PDF Archive */
.contract-pdf-archive {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contract-pdf-archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

.contract-pdf-archive-date {
  font-size: 0.8125rem;
  color: #4a4a4a;
  font-weight: 500;
}

.contract-pdf-archive-size {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-top: 0.125rem;
}

.contract-pdf-archive-more {
  text-align: center;
  font-size: 0.8125rem;
  color: #7a7a7a;
  font-style: italic;
  padding: 0.5rem;
}

/* Tom Select Styling for Header in Cabinet */
.cabinet-page .app-header .ts-wrapper {
  border: none !important;
  background-color: transparent !important;
}

.cabinet-page .app-header .ts-control {
  border: none !important;
  border-radius: 6px !important;
  background-color: #f9fafb !important;
  font-size: 0.875rem !important;
  padding: 0.375rem 0.75rem !important;
  min-height: 2rem !important;
  color: #4a4a4a !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.cabinet-page .app-header .ts-wrapper:hover .ts-control,
.cabinet-page .app-header .ts-wrapper.focus .ts-control {
  background-color: rgba(0, 0, 0, 0.03) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

.cabinet-page .app-header .ts-dropdown {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-top: 0.25rem !important;
  padding: 0.25rem !important;
}

.cabinet-page .app-header .ts-dropdown .option {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  border-radius: 4px !important;
  margin: 0.125rem 0 !important;
  transition: all 0.15s ease !important;
}

.cabinet-page .app-header .ts-dropdown .option:hover,
.cabinet-page .app-header .ts-dropdown .option.active {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #363636 !important;
}

.cabinet-page .app-header .ts-dropdown .option.selected {
  background-color: rgba(245, 130, 32, 0.1) !important;
  color: #f58220 !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
}

/* Orders List Styles */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.order-card:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.order-card-main {
  flex: 1;
  min-width: 0;
}

.order-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #7a7a7a;
}

.order-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.order-meta-item i {
  font-size: 0.75rem;
  color: #b5b5b5;
}

.order-meta-item.has-text-success {
  color: #48c774;
}

.order-meta-item.has-text-success i {
  color: #48c774;
}

.order-card-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

.order-card-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #363636;
  white-space: nowrap;
}

.order-card-quantity {
  font-size: 0.75rem;
  color: #7a7a7a;
  white-space: nowrap;
}

.order-card-description {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: #4a4a4a;
  line-height: 1.5;
}

/* Responsive Orders */
@media (max-width: 768px) {
  .order-card-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .order-card-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .order-card-price {
    font-size: 1rem;
  }
}

/* Inline Editor Styles */
.inline-editor-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}

.inline-editor-backdrop.is-active {
  opacity: 1;
  display: block;
}

.inline-editor-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.inline-editor-modal.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  display: block;
}

.inline-editor-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
}

.inline-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.inline-editor-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

.inline-editor-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #ccc;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.inline-editor-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #363636;
}

.inline-editor-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.inline-editor-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inline-editor-form .field:last-of-type {
  margin-bottom: 0;
}

.inline-editor-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
}

.inline-editor-actions .button {
  min-width: 100px;
}

/* Responsive Inline Editor */
@media (max-width: 768px) {
  .inline-editor-modal {
    width: 95%;
    max-width: none;
    max-height: 95vh;
  }

  .inline-editor-header,
  .inline-editor-body {
    padding: 0.75rem 1rem;
  }

  .inline-editor-title {
    font-size: 0.8125rem;
  }

  .inline-editor-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .inline-editor-actions .button {
    width: 100%;
  }
}

/* Tom Select Styling in Inline Editor */
.inline-editor-form .ts-wrapper {
  width: 100%;
}

.inline-editor-form .ts-control {
  border-radius: 8px !important;
  border: 1px solid #dbdbdb !important;
  min-height: 2.5rem !important;
  padding: 0.5rem 0.75rem !important;
  background-color: white !important;
}

.inline-editor-form .control.has-icons-left .ts-wrapper .ts-control {
  padding-left: 2.5rem !important;
}

.inline-editor-form .ts-control:focus,
.inline-editor-form .ts-control:focus-within {
  border-color: #48c78e !important;
  box-shadow: 0 0 0 0.125em rgba(72, 199, 142, 0.25) !important;
}

/* Tom Select dropdown in body (modal overflow fix) — выше модалки */
body > .ts-dropdown {
  z-index: 10010 !important;
}

.inline-editor-form .ts-dropdown {
  border-radius: 8px !important;
  border: 1px solid #dbdbdb !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
  margin-top: 0.25rem;
}

.inline-editor-form .ts-dropdown .option {
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  margin: 0.25rem 0.5rem;
  color: #363636 !important;
}

.inline-editor-form .ts-dropdown .option:hover,
.inline-editor-form .ts-dropdown .option.active {
  background-color: rgba(72, 199, 142, 0.1) !important;
  color: #363636 !important;
}

.inline-editor-form .ts-dropdown .option:first-child {
  margin-top: 0.5rem;
}

.inline-editor-form .ts-dropdown .option:last-child {
  margin-bottom: 0.5rem;
}

/* Hide duplicate dropdown arrow */
.inline-editor-form .ts-wrapper.single .ts-control:after {
  border: none !important;
  content: '\f078' !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  position: absolute !important;
  right: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #7a7a7a !important;
  pointer-events: none !important;
}

.inline-editor-form .ts-wrapper.single.dropdown-active .ts-control:after {
  transform: translateY(-50%) rotate(180deg) !important;
}


/* Cabinet Menu - Flexbox layout for logo at bottom */
.cabinet-menu {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 0;
}

.cabinet-menu > .menu-label:first-of-type {
  margin-top: 0;
}

/* Logo at bottom of menu */
.cabinet-menu-logo-bottom {
  margin-top: auto;
  padding: 1rem 0.75rem;
  text-align: center;
  position: sticky;
  bottom: 0;
  background: transparent;
}

.cabinet-menu-logo-bottom a {
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cabinet-menu-logo-bottom a:hover {
  opacity: 1;
}

.cabinet-menu-logo-bottom img {
  max-height: 24px;
  width: auto;
}

/* Orange buttons for cabinet main content */
.cabinet-main .button.is-primary {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: white;
}

.cabinet-main .button.is-primary:hover {
  background: var(--orange-700);
  border-color: var(--orange-700);
}

.cabinet-main .button.is-primary:active,
.cabinet-main .button.is-primary:focus {
  background: var(--orange-700);
  border-color: var(--orange-700);
}

/* Orange link color */
.cabinet-main a:not(.button) {
  color: var(--orange-600);
}

.cabinet-main a:not(.button):hover {
  color: var(--orange-700);
}

/* Keep creative-card entity links neutral (client/contract/act). */
.cabinet-main .creative-card .contract-card-info-grid a.creative-info-link:not(.button),
.cabinet-main .creative-card .contract-card-info-grid a.creative-info-link:not(.button):visited {
  color: #4a4a4a;
}

.cabinet-main .creative-card .contract-card-info-grid a.creative-info-link:not(.button):hover {
  color: #363636;
  text-decoration: underline;
}

/* Orange tags and badges */
.cabinet-main .tag.is-primary {
  background-color: var(--orange-600);
  color: white;
}

.cabinet-main .status-badge.published {
  background-color: rgba(245, 130, 32, 0.1);
  color: var(--orange-700);
  border: 1px solid rgba(245, 130, 32, 0.2);
}

/* H2-H6 font weight in cabinet main content */
.cabinet-main h2,
.cabinet-main h3,
.cabinet-main h4,
.cabinet-main h5,
.cabinet-main h6,
.cabinet-main h2.title,
.cabinet-main h3.title,
.cabinet-main h4.title,
.cabinet-main h5.title,
.cabinet-main h6.title,
.cabinet-main .title.is-2,
.cabinet-main .title.is-3,
.cabinet-main .title.is-4,
.cabinet-main .title.is-5,
.cabinet-main .title.is-6 {
  font-weight: 400;
}

/* Floating Action Button (FAB) for mobile - bottom right corner */
.cabinet-fab {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 35;
  display: none; /* Hidden by default */
}

/* Show FAB only on mobile */
@media screen and (max-width: 768px) {
  .cabinet-fab {
    display: flex;
  }
}

.cabinet-fab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--orange-100);
  color: var(--orange-600);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cabinet-fab-button:hover,
.cabinet-fab-button:focus {
  background: var(--orange-200);
  color: var(--orange-700);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.cabinet-fab-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cabinet-fab-button i {
  font-size: 20px;
}

/* DaData search field - responsive layout */
@media screen and (max-width: 768px) {
  .dadata-search-field.has-addons {
    display: block !important;
  }
  
  .dadata-search-field .control {
    width: 100% !important;
    margin-right: 0 !important;
  }
  
  .dadata-search-field .control:not(:last-child) {
    margin-bottom: 0.75rem;
  }
  
  .dadata-search-field .control .button {
    width: 100%;
  }
}

/* Participants list - hide icons on mobile */
@media screen and (max-width: 768px) {
  .cabinet-participants-list .creative-card-image-link {
    display: none;
  }
}

/* Count badge in page titles */
.cabinet-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  vertical-align: middle;
}

/* Slightly smaller on mobile */
@media screen and (max-width: 768px) {
  .cabinet-count-badge {
    min-width: 1.125rem;
    height: 1.125rem;
    font-size: 0.625rem;
    margin-left: 0.25rem;
  }
}

/* Platform header info - responsive layout */
.platform-header-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

@media screen and (max-width: 768px) {
  .platform-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  
  /* Avatar goes after the title on mobile */
  .platform-header-info > div:first-child {
    order: 2;
  }
  
  .platform-header-info > div:last-child {
    order: 1;
  }
  
  .platform-header-info .creative-card-image {
    width: 80px;
    height: 80px;
  }
}

/* (back-button-inline removed -- replaced by breadcrumb navigation) */

/* Modern Error Notification Styles for Cabinet */
.cabinet-main .notification.is-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
  color: #991b1b;
  font-size: 0.9375rem;
  line-height: 1.6;
  position: relative;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-danger:hover {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.18);
  transform: translateY(-1px);
}

/* Error notification with light style */
.cabinet-main .notification.is-danger.is-light {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* Error icon styling */
.cabinet-main .notification.is-danger .icon {
  color: #ef4444;
}

/* Error notification title */
.cabinet-main .notification.is-danger .title {
  color: #991b1b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Error list styling */
.cabinet-main .notification.is-danger ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.cabinet-main .notification.is-danger ul li {
  margin: 0.375rem 0;
  color: #991b1b;
}

/* Delete button for error notifications */
.cabinet-main .notification.is-danger .delete {
  background-color: rgba(239, 68, 68, 0.15);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-danger .delete:hover {
  background-color: rgba(239, 68, 68, 0.25);
}

.cabinet-main .notification.is-danger .delete::before,
.cabinet-main .notification.is-danger .delete::after {
  background-color: #991b1b;
}

/* Success notification modern style */
.cabinet-main .notification.is-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-left: 4px solid #22c55e;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-success:hover {
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.18);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-success .icon {
  color: #22c55e;
}

/* Warning notification modern style */
.cabinet-main .notification.is-warning {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border: 1px solid #fde047;
  border-left: 4px solid #eab308;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.12);
  color: #854d0e;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-warning:hover {
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.18);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-warning .icon {
  color: #eab308;
}

/* Info notification modern style */
.cabinet-main .notification.is-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
  color: #1e40af;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-info:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-info .icon {
  color: #3b82f6;
}

/* Primary notification modern style */
.cabinet-main .notification.is-primary {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1px solid #d8b4fe;
  border-left: 4px solid #a855f7;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.12);
  color: #6b21a8;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-primary:hover {
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.18);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-primary .icon {
  color: #a855f7;
}

.cabinet-main .notification.is-primary .title {
  color: #6b21a8;
  font-weight: 600;
}

/* Link notification modern style */
.cabinet-main .notification.is-link {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
  color: #1e40af;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-link:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-link .icon {
  color: #3b82f6;
}

/* Light/neutral notification modern style */
.cabinet-main .notification.is-light,
.cabinet-main .notification:not([class*="is-"]) {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid #e5e5e5;
  border-left: 4px solid #737373;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #404040;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-light:hover,
.cabinet-main .notification:not([class*="is-"]):hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-light .icon,
.cabinet-main .notification:not([class*="is-"]) .icon {
  color: #737373;
}

.cabinet-main .notification.is-light .title,
.cabinet-main .notification:not([class*="is-"]) .title {
  color: #404040;
  font-weight: 600;
}

/* Dark notification modern style */
.cabinet-main .notification.is-dark {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border: 1px solid #3f3f46;
  border-left: 4px solid #71717a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #e4e4e7;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.cabinet-main .notification.is-dark:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.cabinet-main .notification.is-dark .icon {
  color: #a1a1aa;
}

.cabinet-main .notification.is-dark .title {
  color: #fafafa;
  font-weight: 600;
}

.cabinet-main .notification.is-dark .delete {
  background-color: rgba(255, 255, 255, 0.15);
}

.cabinet-main .notification.is-dark .delete:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.cabinet-main .notification.is-dark .delete::before,
.cabinet-main .notification.is-dark .delete::after {
  background-color: #e4e4e7;
}

/* Success notification with light modifier */
.cabinet-main .notification.is-success.is-light {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  border-left-color: #22c55e;
  color: #166534;
}

/* Warning notification with light modifier */
.cabinet-main .notification.is-warning.is-light {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-color: #fde047;
  border-left-color: #eab308;
  color: #854d0e;
}

/* Info notification with light modifier */
.cabinet-main .notification.is-info.is-light {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  border-left-color: #3b82f6;
  color: #1e40af;
}

/* Primary notification with light modifier */
.cabinet-main .notification.is-primary.is-light {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-color: #d8b4fe;
  border-left-color: #a855f7;
  color: #6b21a8;
}

/* Link notification with light modifier */
.cabinet-main .notification.is-link.is-light {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  border-left-color: #3b82f6;
  color: #1e40af;
}

/* Notification delete button improvements */
.cabinet-main .notification .delete {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 20px;
  min-width: 20px;
  max-height: 20px;
  max-width: 20px;
  background-color: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cabinet-main .notification .delete:hover {
  background-color: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.cabinet-main .notification .delete::before,
.cabinet-main .notification .delete::after {
  background-color: currentColor;
}

/* Success notification delete button */
.cabinet-main .notification.is-success .delete {
  background-color: rgba(34, 197, 94, 0.15);
}

.cabinet-main .notification.is-success .delete:hover {
  background-color: rgba(34, 197, 94, 0.25);
}

.cabinet-main .notification.is-success .delete::before,
.cabinet-main .notification.is-success .delete::after {
  background-color: #166534;
}

/* Warning notification delete button */
.cabinet-main .notification.is-warning .delete {
  background-color: rgba(234, 179, 8, 0.15);
}

.cabinet-main .notification.is-warning .delete:hover {
  background-color: rgba(234, 179, 8, 0.25);
}

.cabinet-main .notification.is-warning .delete::before,
.cabinet-main .notification.is-warning .delete::after {
  background-color: #854d0e;
}

/* Info notification delete button */
.cabinet-main .notification.is-info .delete,
.cabinet-main .notification.is-link .delete {
  background-color: rgba(59, 130, 246, 0.15);
}

.cabinet-main .notification.is-info .delete:hover,
.cabinet-main .notification.is-link .delete:hover {
  background-color: rgba(59, 130, 246, 0.25);
}

.cabinet-main .notification.is-info .delete::before,
.cabinet-main .notification.is-info .delete::after,
.cabinet-main .notification.is-link .delete::before,
.cabinet-main .notification.is-link .delete::after {
  background-color: #1e40af;
}

/* Primary notification delete button */
.cabinet-main .notification.is-primary .delete {
  background-color: rgba(168, 85, 247, 0.15);
}

.cabinet-main .notification.is-primary .delete:hover {
  background-color: rgba(168, 85, 247, 0.25);
}

.cabinet-main .notification.is-primary .delete::before,
.cabinet-main .notification.is-primary .delete::after {
  background-color: #6b21a8;
}

/* Common title styling for all notification types */
.cabinet-main .notification .title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Success notification title and list */
.cabinet-main .notification.is-success .title {
  color: #166534;
}

.cabinet-main .notification.is-success ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.cabinet-main .notification.is-success ul li {
  margin: 0.375rem 0;
  color: #166534;
}

/* Warning notification title and list */
.cabinet-main .notification.is-warning .title {
  color: #854d0e;
}

.cabinet-main .notification.is-warning ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.cabinet-main .notification.is-warning ul li {
  margin: 0.375rem 0;
  color: #854d0e;
}

/* Info notification title and list */
.cabinet-main .notification.is-info .title,
.cabinet-main .notification.is-link .title {
  color: #1e40af;
}

.cabinet-main .notification.is-info ul,
.cabinet-main .notification.is-link ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.cabinet-main .notification.is-info ul li,
.cabinet-main .notification.is-link ul li {
  margin: 0.375rem 0;
  color: #1e40af;
}

/* Light notification title and list */
.cabinet-main .notification.is-light ul,
.cabinet-main .notification:not([class*="is-"]) ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.cabinet-main .notification.is-light ul li,
.cabinet-main .notification:not([class*="is-"]) ul li {
  margin: 0.375rem 0;
  color: #404040;
}

.contract-text-editor {
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  background: #fff;
  padding: 0.75rem;
  max-width: 840px;
  margin: 0 auto;
}

.contract-text-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0.5rem;
  z-index: 3;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.contract-text-editor__toolbar .button.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.contract-text-editor__toolbar .button.is-static {
  opacity: 0.5;
  pointer-events: none;
}

.contract-text-editor__input {
  min-height: 420px;
}

.contract-text-editor__editor {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  min-height: 420px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.contract-text-editor__editor.is-hidden {
  display: none;
}

.contract-text-editor__html {
  display: none;
}

.contract-text-editor__html.is-active {
  display: block;
}

.contract-text-editor__html-input {
  font-family: "SF Mono", "JetBrains Mono", "Menlo", "Monaco", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contract-text-editor__editor .ProseMirror {
  min-height: 380px;
  outline: none;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  max-width: 720px;
  margin: 0 auto;
}

.contract-text-editor__editor .ProseMirror h1 {
  font-size: 1.5rem;
  margin: 0.75rem 0 0.5rem;
}

.contract-text-editor__editor .ProseMirror h2 {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}

.contract-text-editor__editor .ProseMirror h3 {
  font-size: 1.1rem;
  margin: 0.65rem 0 0.4rem;
}

.contract-text-editor__editor .ProseMirror p {
  margin: 0.4rem 0;
}

.contract-text-editor__editor .ProseMirror ul,
.contract-text-editor__editor .ProseMirror ol {
  padding-left: 1.5rem;
  margin: 0.4rem 0;
}

.contract-text-editor__editor .ProseMirror blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 0.75rem;
  color: #6b7280;
  margin: 0.5rem 0;
}

.contract-text-editor__editor .liquid-tag {
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 0 2px;
}

.contract-text-editor__editor .ProseMirror table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

.contract-text-editor__editor .ProseMirror th,
.contract-text-editor__editor .ProseMirror td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  vertical-align: top;
}

.contract-text-editor__html {
  margin-top: 0.75rem;
}

.contract-text-editor__html.has-codemirror .contract-text-editor__html-input {
  display: none;
}

.contract-text-editor__html-editor .cm-editor {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-height: 420px;
  font-size: 0.85rem;
  line-height: 1.5;
  font-family: "SF Mono", "JetBrains Mono", "Menlo", "Monaco", monospace;
}

.contract-text-editor__html-editor .cm-scroller {
  padding: 0.5rem 0.75rem;
}

.contract-text-editor__html-input {
  max-width: 720px;
  margin: 0 auto;
}

.contract-text-editor__suggestions {
  position: absolute;
  min-width: 220px;
  max-width: 320px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.25rem;
  display: none;
  z-index: 10;
}

.contract-text-editor__suggestions.is-active {
  display: block;
}

.contract-text-editor__suggestion-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.contract-text-editor__suggestion-item:hover,
.contract-text-editor__suggestion-item.is-active {
  background: #eef2ff;
  color: #1e3a8a;
}

.cabinet-contract-form .box {
  border: none;
  box-shadow: none;
}

.cabinet-contract-form .box + .box {
  margin-top: 1.5rem;
}

.cabinet-creative-form .box {
  border: none;
  box-shadow: none;
}

.cabinet-creative-form .box + .box {
  margin-top: 1.5rem;
}

.contract-client-inline .button {
  white-space: nowrap;
}

.contract-client-inline {
  gap: 0.5rem;
}

.contract-client-inline__or {
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  color: #7a7a7a;
  white-space: nowrap;
}

.contract-client-inline__button {
  height: 2.5rem;
  padding: 0 0.75rem;
}

.contract-vars-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contract-vars-item {
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed #f0f0f0;
}

.contract-vars-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contract-vars-item .creative-detail-label {
  margin-bottom: 0.1rem;
}

.contract-vars-item .creative-detail-value {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-top: 0.1rem;
  line-height: 1.35;
}

/* --- Cabinet Creatives refresh --- */
.cabinet-list-footnote {
  text-align: center;
  margin-top: 1rem;
  color: #7a7a7a;
  font-size: 0.8125rem;
}

.creative-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.creative-info-empty {
  color: #9ca3af;
  font-size: 0.875rem;
}

.creative-card-cta {
  margin-bottom: 0.75rem;
}

.creative-form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.creative-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.creative-form-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.creative-form-media-item {
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  aspect-ratio: 1/1;
  position: relative;
}

.creative-form-media-item img,
.creative-form-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creative-form-media-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.creative-form-media-remove input {
  margin: 0;
}

.creative-form-media-remove input:checked + span {
  color: #fca5a5;
}

.file-upload-previews {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.625rem;
}

.file-upload-preview-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.file-upload-preview-thumb {
  background: #f3f4f6;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.file-upload-preview-thumb img,
.file-upload-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-upload-preview-meta {
  font-size: 0.75rem;
  color: #4b5563;
  padding: 0.45rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload-preview-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.file-upload-preview-remove:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: scale(1.05);
}

.creative-sources-panel {
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(245, 130, 32, 0.12), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.creative-sources-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.creative-sources-header__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  flex-shrink: 0;
}

.creative-sources-header__icon i {
  font-size: 1rem;
}

.creative-sources-header__text {
  min-width: 0;
}

.creative-sources-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.creative-sources-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.45;
}

.creative-sources-actions {
  margin-bottom: 0.75rem;
}

.creative-sources-empty,
.creative-sources-locked {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.8125rem;
}

.creative-sources-empty {
  background: rgba(15, 23, 42, 0.04);
  color: #4b5563;
}

.creative-sources-locked {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.creative-source-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.7rem;
  background-color: #fff;
  margin-bottom: 0.625rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.creative-source-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 130, 32, 0.35);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.creative-source-card:last-child {
  margin-bottom: 0;
}

.creative-source-card__media {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
  overflow: hidden;
}

.creative-source-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creative-source-card__content h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.creative-source-card__content p {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.35rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.source-badge.bot {
  background-color: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

@media screen and (max-width: 768px) {
  .creative-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Statistics Calendar */
.stats-calendar {
  margin-bottom: 1.25rem;
}

.stats-calendar-row {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.stats-calendar-year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  align-self: flex-end;
}

.stats-calendar-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 0.125rem;
}

.stats-calendar-views {
  font-size: 0.5625rem;
  font-weight: 600;
  color: #16a34a;
  line-height: 1;
  white-space: nowrap;
}

.stats-calendar-pub-marker {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  font-size: 0.5rem;
  color: #3b82f6;
  line-height: 1;
}

.stats-calendar-month {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2rem;
  padding: 0 0.375rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-transform: capitalize;
}

.stats-calendar-cell.is-muted .stats-calendar-month {
  background: #f3f4f6;
  color: #d1d5db;
  cursor: default;
}

.stats-calendar-cell.is-future .stats-calendar-month {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: default;
}

.stats-calendar-cell.is-submitted .stats-calendar-month {
  background: #dcfce7;
  color: #16a34a;
  cursor: default;
}

.stats-calendar-cell.is-submitted .stats-calendar-month i {
  font-size: 0.625rem;
}

.stats-calendar-cell.is-draft .stats-calendar-month {
  background: #fef9c3;
  color: #a16207;
  border-color: #facc15;
  cursor: pointer;
}

.stats-calendar-cell.is-draft .stats-calendar-month i {
  font-size: 0.5625rem;
}

.stats-calendar-cell.is-draft button.stats-calendar-month:hover {
  background: #fef08a;
  border-color: #eab308;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(161, 98, 7, 0.15);
}

.stats-calendar-cell.is-pending .stats-calendar-month {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
  cursor: pointer;
}

.stats-calendar-cell.is-pending button.stats-calendar-month:hover {
  background: #fde68a;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
}

.stats-calendar-cell.is-publication .stats-calendar-month {
  border-color: #93c5fd;
}

/* Statistics Modal */
.stats-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}

.stats-modal-backdrop.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-modal {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.2s ease;
}

.stats-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stats-modal-header h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

.stats-modal-close {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s;
}

.stats-modal-close:hover {
  color: #363636;
}

.stats-modal-body {
  padding: 1.5rem;
}

.stats-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Unpublish Modal */
.unpublish-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.unpublish-check-item.is-success {
  background: #dcfce7;
}

.unpublish-check-item.is-warning {
  background: #fef3c7;
}

.unpublish-check-item.is-danger {
  background: #fee2e2;
}

.unpublish-check-item.is-loading {
  background: #f3f4f6;
}

.unpublish-check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.unpublish-check-content {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.unpublish-check-content strong {
  display: block;
  margin-bottom: 0.125rem;
}

.unpublish-missing-periods {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.unpublish-missing-periods .tag {
  font-size: 0.75rem;
}

/* --- Project Services Selector --- */
.project-services-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(50, 115, 220, 0.05);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4a4a4a;
}

.project-services-platform-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #363636;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  margin-top: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-services-platform-label i {
  color: #3273dc;
  font-size: 0.75rem;
}

.project-services-platform-type {
  font-weight: 400;
  color: #b5b5b5;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  margin-left: auto;
}

.project-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.project-service-card {
  display: block;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.project-service-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-service-card.is-selected {
  border-color: #3273dc;
  background: rgba(50, 115, 220, 0.04);
}

.project-service-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-service-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.project-service-check {
  color: #d1d5db;
  font-size: 1.125rem;
  opacity: 0.3;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 1px;
}

.project-service-card.is-selected .project-service-check {
  color: #3273dc;
  opacity: 1;
}

.project-service-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #363636;
  line-height: 1.4;
  flex: 1;
}

.project-service-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-service-price {
  font-size: 1rem;
  font-weight: 600;
  color: #3273dc;
}

.project-service-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-service-qty .input {
  height: 28px;
  padding: 0 0.25rem;
  border-radius: 6px;
}

.project-service-qty-label {
  font-size: 0.8125rem;
  color: #7a7a7a;
}

@media screen and (max-width: 768px) {
  .project-services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Project Template Selector --- */
.template-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.template-card {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.template-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.template-card.is-selected {
  border-color: #3273dc;
  background: rgba(50, 115, 220, 0.04);
}

.template-card-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.template-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-card-check {
  color: #d1d5db;
  font-size: 1.125rem;
  opacity: 0.3;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.template-card.is-selected .template-card-check {
  color: #3273dc;
  opacity: 1;
}

.template-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #363636;
  flex: 1;
}

.template-card-desc {
  font-size: 0.8125rem;
  color: #7a7a7a;
  line-height: 1.4;
}

.template-card-preview {
  background: none;
  border: none;
  padding: 0.25rem;
  margin-left: auto;
  cursor: pointer;
  color: #b5b5b5;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.template-card-preview:hover {
  color: #3273dc;
}

.template-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #b5b5b5;
  margin-top: 0.25rem;
}

@media screen and (max-width: 768px) {
  .template-selector-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Creative Selector (project attach modal) --- */
.creative-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creative-selector-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.creative-selector-item:hover {
  border-color: rgba(50, 115, 220, 0.3);
  background: rgba(50, 115, 220, 0.02);
}

.creative-selector-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.creative-selector-info {
  flex: 1;
  min-width: 0;
}

.creative-selector-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #363636;
  line-height: 1.3;
  word-break: break-word;
}

.creative-selector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #7a7a7a;
  align-items: center;
}

.creative-selector-meta i {
  font-size: 0.75rem;
}

/* --- Project multi-contracts blocks --- */
.project-contracts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-contract-block {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-contract-block.is-primary {
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--info, #3b82f6);
}

.project-contract-primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.project-contract-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-acts-by-contract,
.project-invoices-by-contract {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-contract-acts-block,
.project-contract-invoices-block {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-contract-acts-header,
.project-contract-invoices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-acts-status-bar {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-acts-status-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.project-acts-status-bar-label {
  color: #6b7280;
  font-weight: 500;
}

.project-acts-status-bar-value {
  color: #374151;
  font-weight: 500;
}

.project-acts-status-bar .progress {
  margin-bottom: 0;
  height: 0.5rem;
}

.creative-empty-state.is-compact {
  padding: 0.75rem 1rem;
  min-height: auto;
}

.creative-empty-state.is-compact p {
  margin: 0;
  font-size: 0.875rem;
  color: #7a7a7a;
}

/* Project statistics: hint icons, collapsed block */
.project-stats-creative-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.project-stats-hint-icon {
  display: inline-flex;
  cursor: help;
  font-size: 0.875rem;
}

.project-stats-collapsed {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.02);
}

.project-stats-collapsed-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  user-select: none;
}

.project-stats-collapsed-summary::-webkit-details-marker {
  display: none;
}

.project-stats-collapsed-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.project-stats-collapsed[open] .project-stats-collapsed-chevron {
  transform: rotate(90deg);
}

.project-stats-collapsed-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-creative-statistics-block + .project-creative-statistics-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-creative-statistics-collapsed {
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Project icon (card) --- */
.project-icon {
  background: linear-gradient(135deg, #3273dc 0%, #5a8eef 100%);
}

.project-icon i {
  color: white;
}

/* ===== Project Card (dashboard & index) ===== */
.project-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  color: #363636;
  text-decoration: none;
}

.project-card:hover {
  border-color: rgba(50, 115, 220, 0.25);
  box-shadow: 0 4px 16px rgba(50, 115, 220, 0.08);
  color: #363636;
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.project-card-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3273dc 0%, #5a8eef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  overflow: hidden;
}

.project-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-title-block {
  flex: 1;
  min-width: 0;
}

.project-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-title-row .status-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  flex-shrink: 0;
}

.project-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.project-card-parties {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-parties i {
  font-size: 0.625rem;
  margin-right: 0.125rem;
  opacity: 0.6;
}

.project-card-dot {
  margin: 0 0.375rem;
  opacity: 0.4;
}

.project-card-budget {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2c3e50;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Pipeline stepper with integrated counters --- */
.project-card-pipeline {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.project-card-stage-count {
  font-size: 0.625rem;
  font-weight: 600;
  color: inherit;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.project-card-stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: #ccc;
  transition: color 0.2s;
}

.project-card-stage-line {
  position: absolute;
  top: 22px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #e8e8e8;
  z-index: 0;
  transition: background 0.2s;
}

.project-card-stage-label {
  font-size: 0.5625rem;
  color: #ccc;
  margin-top: 0.25rem;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
  transition: color 0.2s;
}

/* State: none (gray) */
.project-card-stage.is-none .project-card-stage-icon { color: #ccc; }
.project-card-stage.is-none .project-card-stage-line { background: #e8e8e8; }
.project-card-stage.is-none .project-card-stage-label { color: #ccc; }

/* State: pending (amber) */
.project-card-stage.is-pending .project-card-stage-icon { color: #f59e0b; }
.project-card-stage.is-pending .project-card-stage-line { background: #fcd34d; }
.project-card-stage.is-pending .project-card-stage-label { color: #d97706; }

/* State: completed (blue) */
.project-card-stage.is-completed .project-card-stage-icon { color: #3273dc; }
.project-card-stage.is-completed .project-card-stage-line { background: #3273dc; }
.project-card-stage.is-completed .project-card-stage-label { color: #3273dc; }

/* Gradient lines between stages of different colors */
.project-card-stage.is-completed + .project-card-stage.is-pending .project-card-stage-line { background: linear-gradient(to right, #3273dc, #fcd34d); }
.project-card-stage.is-completed + .project-card-stage.is-none .project-card-stage-line    { background: linear-gradient(to right, #3273dc, #e8e8e8); }
.project-card-stage.is-pending + .project-card-stage.is-completed .project-card-stage-line { background: linear-gradient(to right, #fcd34d, #3273dc); }
.project-card-stage.is-pending + .project-card-stage.is-none .project-card-stage-line      { background: linear-gradient(to right, #fcd34d, #e8e8e8); }
.project-card-stage.is-none + .project-card-stage.is-completed .project-card-stage-line    { background: linear-gradient(to right, #e8e8e8, #3273dc); }
.project-card-stage.is-none + .project-card-stage.is-pending .project-card-stage-line      { background: linear-gradient(to right, #e8e8e8, #fcd34d); }

/* --- Project form sections --- */
.project-form-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.project-form-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-form-section-title i {
  color: #3273dc;
  font-size: 0.75rem;
}

.project-form-section .field:last-child {
  margin-bottom: 0;
}

.project-form-section .columns:last-child {
  margin-bottom: 0;
}

.project-form-section .columns:last-child .field {
  margin-bottom: 0;
}
