.orders-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .order-block {
    border: 1px solid #ccc;
    padding: 0.5rem;
    background: #f8f8f8;
    border-radius: var(--radius);
  }
  .order-block h3 {
    margin-top: 0;
    color: #333;
  }
  



  .task-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-sm);
    background: #fff;
    border: 1px solid #ddd;
  }
  
  .task-table th, .task-table td {
    padding: var(--space-sm);
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
  }
  /*   For moderator page */
  .task-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border: 1px solid #ddd;
  }
  
  .task-table th, .task-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
  }
  
  .task-table th {
    background-color: #f4f4f4;
    font-weight: 600;
  }
  
  .task-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
.order-card {

  /* width: 100%; */

  background: #ffffff;
    border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  /* box-shadow: 0 0 0 2px red; тимчасово */

  max-width: 700px;
  margin: 0.5rem;
  font-family: "Segoe UI", sans-serif;
}

.order-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #333;
}

.order-details {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.order-details li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.order-details span {
  font-weight: 600;
  color: #555;
  margin-right: 8px;
}

.apply-form textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 12px;
  resize: vertical;
}


.badge-draft {
  background: #f0f0f0;
  color: #333;
}

.badge-published {
  background: #d4edda;
  color: #155724;
}

.badge-rejected {
  background: #f8d7da;
  color: #721c24;
}

.badge-completed {
  background: #cce5ff;
  color: #004085;
}

.badge-in_progress {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-expired {
  background: #fff3cd;
  color: #856404;
}

.badge-reviewed {
  background: #b3e5fc;
  color: #01579b;
}

.badge-revision {
  background: #ffe5b4;
  color: #8a6d3b;
}

.badge-checked,
.badge-deleted {
  background: #e2e3e5;
  color: #6c757d;
}

/* my assigned orders */

.info.success {
  color: green;
}

.info.danger {
  color: red;
  font-weight: bold;
}

.info.working {
  color: orange;
}


/* ордер кард */
.order-card.urgent {
  background-color: #ffe5e5;
  border-left: 4px solid #e00;
}

.order-card.warning {
  background-color: #fff4cc;
  border-left: 4px solid #f90;
}

.order-card.expired {
  background-color: #eeeeee;
  border-left: 4px solid #999;
}


/* Ордер детейлс  */
.application-card {
  
  padding: 1em;
  margin: 0.5em 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  position: relative;

}



.application-card.pro-highlight {
  border: 2px solid #ffc107;
  background: #fff8e1;
}

.application-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  position: relative;
}

.app-author {
  width: 120px;
  text-align: center;
}

.app-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.app-name {
  display: block;
  margin-top: 0.5em;
  font-weight: 500;
}

.app-cover {
  flex: 1;
  margin-top: 0.5em;
}

.app-cover blockquote {
  margin: 0;
  padding-left: 1em;
  border-left: 3px solid #ccc;
   white-space: pre-wrap;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;   

}
.application-flex {
  display: flex;
  align-items: center;   /* центрує всі дочірні блоки */
  gap: 1em;
}


.app-controls {
  white-space: nowrap;
  margin-top: 0.2em;
}

.assigned-label {
  font-weight: bold;
  color: #28a745;
}


/* блюр в замовленнях для замовника */
.blur-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}




/* Бейдж для виконаних замовлень в ордер кардс */
.badge.pulse {
  animation: pulse 2s infinite;
  background-color: #3498db;
  color: white;
  padding: 3px 8px;
  border-radius: 7px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(52, 152, 219, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}


/* Дата в замовленні */
.order-date {
  position: absolute;
  /* top: 12px; */
  right: 16px; 
  font-size: 0.65rem;
  color: #888;
  font-style: italic;
  pointer-events: none;

}

.order-date-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 5px;
}

.order-card {
  position: relative;
}


/* в сабмішіон-ордер-інфо */
.submitted-work {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  background: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}


/* Скриття виконаної роботи до ревювінг */
.reviewing-hidden {
  display: none;
}

/* сторінка ордерс */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corner-budget {
  font-size: 1rem;
  color: #28a745;
  font-weight: bold;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* .author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
} */

.author-link {
  text-decoration: none;       /* Прибирає підкреслення */
  color: inherit;              /* Наслідує колір від внутрішніх елементів */
  cursor: pointer;             /* Змінює курсор на "руку" при наведенні */
  display: inline-flex;        /* Щоб аватар і ім’я були в одному рядку */
  align-items: center;
  gap: 0.4rem;                 /* Відступ між аватаром і ім’ям */
}

.author-name {
  font-size: 0.775rem;
  font-weight: 500;
  
  color: #333;
}

.task-date {
  font-size: 0.65rem;
  color: #666;
  margin-left: auto;
  text-align: right;

}


.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* на сторінці ордер */
.task-budget {
  font-size: 1rem;
  color: #28a745;
  font-weight: bold;
  
}

.task-type {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #666;
}

.task-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* якщо потрібно переносити на мобільних */
}

.task-title {
  margin: 0;
  font-size: 1.1em;
  flex: 1;
  word-break: break-word;
  text-align: center;
}



/* Виправлення стилів в createOrder.ejs */
.visible {
  display: block;
}

.hidden {
  display: none;
}



/* ордер кардс */
.btn.btn-primary {
  background: #0078d4;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn.btn-primary:hover {
  background: #005fa3;
}

.login-prompt {
  text-align: center;
  margin-top: 20px;
}

.login-prompt a {
  color: #0078d4;
  text-decoration: underline;
}

.task {
  padding: var(--space-sm);
  margin: var(--space-sm);
}

.task-list  {
  padding: var(--space-none);
  margin: var(--space-none);
  margin-top: 0.5rem;
border: 1px solid #d9cbbb;
background: var(--beige);
  border-radius: var(--radius);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  
}

.task-desc-short,
.task-desc-full {
  cursor: pointer;
  
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  
}

.sort-btn {
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
  vertical-align:sub;
}

.toggleable {
  cursor: pointer;
}

/* селект в ордерс */
select.task {
  padding: 5px 10px;
  font-size: 0.775rem;
  line-height: 1.2;
  height: auto;
  box-sizing: border-box;
}
select.task {
  appearance: none; /* для кросбраузерної стабільності */
}

/* комісія */
.commission-note {
  display: block;
  font-size: 0.65rem;
  color: #666;
  margin-top: 0rem;
  text-align: right;
}
