*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f5f2ef;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
/* Header */
.top-navigation {
  height: 64px;
  background: #f5f2ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.user-name-accent {
  color: #ff5501;
  font-weight: 400;
}

.logo-btn {
  width: 32px;
  height: 32px;
  border: none;
  background-color: #0c0c0a;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.user-menu {
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
.user-menu span {
  width: 32px;
  height: 32px;
  background-color: #e7e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.right-wrapper {
  display: flex;
  gap: 8px;
  background-color: transparent;
}
/* Base icon button — behavior + sizing */
.icon-btn {
  width: 40px;
  height: 40px;

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

  border-radius: 9999px;
  border: 1px solid transparent;

  background: transparent;
  color: #0c0c0a;

  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.05s ease;
}

/* Pressed feedback */
.icon-btn:active {
  transform: translateY(1px);
}

/* Keyboard accessibility */
.icon-btn:focus-visible {
  outline: 2px solid #0c0c0a;
  outline-offset: 2px;
}
/* Icon button for colored / beige surfaces */
.icon-btn--on-surface {
  background: #f5f2ef;
}

.icon-btn--on-surface:hover {
  background: #e8e2daa8;
}

.icon-btn--on-surface:active {
  background: #ddd6cd;
}
/* =========================
   LAYOUT
========================= */

.page-container {
  padding-inline: 16px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-date {
  font-family: "Satoshi";
  font-weight: 400;
  font-size: 28px;
  color: #0c0c0a;
}

.page-title {
  font-family: "Satoshi";
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  color: #0c0c0a;
}

.user-name {
  font-weight: 400;
  color: #ff5501;
}
.page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
}
.controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-tab {
  height: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: #e7e0d8;
  color: #0c0c0a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.status-tab.active {
  background: #0c0c0a;
  color: #fff;
}
.status-tab:hover:not(.active) {
  background: #ded6cc;
}
.status-tab:focus-visible {
  outline: 2px solid #0c0c0a;
  outline-offset: 2px;
}

.tab-count {
  padding: 2px 4px;

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

  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;
  background-color: #d1c9bf;
  color: #565351;
}
.status-tab.active .tab-count {
  background: #3c3938;
  color: #fff;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-dropdown {
  height: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: #e7e0d8;
  color: #0c0c0a;
  align-self: center; /* center horizontally */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.sort-dropdown:hover:not(.active) {
  background: #ded6cc;
}
.sort-dropdown:focus-visible {
  outline: 2px solid #0c0c0a;
  outline-offset: 2px;
}

.view-toggle.disabled {
  opacity: 0.4;
  cursor: default;
}
.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
  z-index: 20;
}
.sort-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Sort menu */
.sort-menu button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #0c0c0a;
  cursor: pointer;
}

.sort-menu button:hover {
  background: #f3efe9cd;
}
.sort-dropdown.active svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

/* .primary-btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
} */
.primary-btn {
  height: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: #0c0c0a;
  color: white;
  align-self: center; /* center horizontally */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.primary-btn:hover {
  background: #222222f6;
}

.plus-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.orders-table-section {
  margin-top: 24px;
}

.orders-table-section tbody tr {
  transition: background-color 0.15s ease;
}

.orders-table-section tbody tr:hover {
  /* background-color: #f1efedd1; subtle beige highlight */
  cursor: pointer;
}

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

  font-size: 12px;
  font-weight: 500;
  line-height: 1;

  padding: 4px 10px;
  border-radius: 999px;

  white-space: nowrap;
}

/* Status variants */

.badge--new {
  background: #ff5501;
  color: #ffffff;
  font-weight: 400;
}

.badge--in-progress {
  background: #e8f0ff;
  color: #1f4fd8;
  font-weight: 400;
}

.badge--in-review {
  background: #f3e8ff;
  color: #6d28d9;
  font-weight: 400;
}

.badge--completed {
  background: #e8f7ee;
  color: #1e7f4f;
  font-weight: 400;
}

.badge--closed {
  background: #ce4444;
  color: #fff;
  font-weight: 400;
}
.badge--draft {
  background: #6b7280;
  color: #fff;
  font-weight: 400;
}

/* Search wrapper */
.search-field {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #e7e0d8;
  border-radius: 9999px;
  border: 1px solid transparent;

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

/* Input itself */
.search-input {
  width: 220px;
  border: none;
  background: transparent;

  font-size: 14px;
  font-weight: 500;
  color: #0c0c0a;

  outline: none;
}

/* Placeholder */
.search-input::placeholder {
  color: #918d8a;
  font-weight: 400;
}

/* Icon */
.search-icon {
  color: #918d8a;
}

/* Hover */
.search-field:hover {
  background: #ded6cc;
}

/* Focus (keyboard + click) */
.search-field:focus-within {
  border-color: #0c0c0a;
}
/* SEGMENT */
.view-segment {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #e7e0d8;
}
.segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  height: 32px;
  padding: 0 10px;

  border: none;
  background: transparent;
  border-radius: 999px;

  color: #8f8c8b;
  cursor: pointer;
}

.segment-btn.active {
  background: #fff; /* bluish active */
  color: #0c0c0a;
}
.segment-btn .icon-check {
  display: none;
}
.segment-btn.active .icon-check {
  display: block;
}

.orders-grid-section {
  display: block;
}

/* TABLE */
.table-wrapper {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  /* overflow-x: auto; 
  -webkit-overflow-scrolling: touch; */
}
.orders-table-section {
  display: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px; /* KEY */
}
.title-cell {
  max-width: 120px; /* pick what fits your layout */
  white-space: nowrap; /* force one line */
  overflow: hidden; /* hide overflow */
  text-overflow: ellipsis; /* show ... */
}

thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  padding: 16px;
  opacity: 0.6;
}

tbody td {
  padding: 16px;
  font-size: 14px;
  white-space: nowrap;
  /* min-width: 120px;  */
}

.orders-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.order-card {
  width: 100%;
  max-width: 320px;
  height: 224px;

  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  cursor: pointer;
  border: 1px solid #ffffff;

  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.order-card:hover {
  /* background-color: #efece8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); */
  cursor: pointer;
  border: 1px solid #0c0c0a;
}
.order-card:active {
  transform: translateY(0);
  box-shadow: none;
}
.order-card:focus-visible {
  outline: 2px solid #0c0c0a;
  outline-offset: 3px;
}

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

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card-menu {
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;

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

  border-radius: 9999px;

  background: transparent;
  color: #0c0c0a;

  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.05s ease;
}
.card-menu:hover {
  background: #b9b9b93d;
}
/* Pressed / active */
.card-menu:active {
  background: #b9b9b96a; /* slightly darker */
  transform: scale(0.96); /* subtle press feedback */
}

/* Keyboard accessibility (optional but recommended) */
.card-menu:focus-visible {
  outline: 2px solid #0c0c0a;
  outline-offset: 2px;
}
.card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;

  line-clamp: 2; /* linter wants this */
  -webkit-line-clamp: 2; /* actually works in Chrome/Safari/Edge */

  overflow: hidden;
}
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}

.deadline {
  color: #ff3b30;
  font-weight: 500;
}
.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7e1d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
/* Floating dropdown – used for BOTH grid & table */
.floating-menu {
  position: absolute;
  z-index: 9999;

  width: 220px;
  max-width: 220px;

  padding: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  display: none;
}

/* Open state */
.floating-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Menu items */
.floating-menu .menu-item {
  width: 100%;
  padding: 12px 14px;

  border: none;
  background: transparent;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.floating-menu .menu-item:hover {
  background: #f3efe9;
}

/* Destructive */
.floating-menu .menu-item.danger {
  color: #c93636;
}
.orders-empty-state:not([hidden]) {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: calc(100vh - 380px);
  /* header + page header + controls */

  text-align: center;
}
.orders-empty-state .empty-content {
  transform: translateY(-40px);
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px; /* controls spacing between icon, title, subtext */
}
.empty-title {
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 500;
}
.meta-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.deadline {
  white-space: nowrap;
  font-weight: 500;
}
.doc-icon {
  width: 52px;
  height: 52px;
  background-color: #e7e1d891;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.empty-description {
  font-size: 14px;
  color: #8f8c8b;
  margin-bottom: 12px;
}

.notifications-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 2000;

  display: flex;
  justify-content: flex-end;

  opacity: 1;
  transition: opacity 0.25s ease;
}

.notifications-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* The actual panel */
.notifications-drawer {
  width: 420px; /* ← size of the block */
  max-width: 90vw;
  height: 100%;
  background: #fff;
  border-radius: 16px;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
}

/* When open */
.notifications-overlay:not(.hidden) .notifications-drawer {
  transform: translateX(0);
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notifications-header h3 {
  font-family: "Satoshi";
  font-size: 18px;
  font-weight: 500;
}

.notifications-close {
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;

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

  border-radius: 9999px;

  background: transparent;
  color: #0c0c0a;

  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.05s ease;
}
.notifications-close:hover {
  background: #b9b9b93d;
}
/* Pressed / active */
.notifications-close:active {
  background: #b9b9b96a; /* slightly darker */
  transform: scale(0.96); /* subtle press feedback */
}

/* Keyboard accessibility (optional but recommended) */
.notifications-close:focus-visible {
  outline: 2px solid #0c0c0a;
  outline-offset: 2px;
}

.notifications-content {
  display: flex;
}
.notifications-list {
  display: flex;
  flex-direction: column;
}

/* Single notification */
.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;

  transition: background 0.15s ease;
}

.notification-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Unread indicator */
.notification-item.unread {
  background: rgba(255, 85, 1, 0.06); /* orange tint */
}

.notification-item.unread::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ff5501; /* orange */
  border-radius: 50%;
  align-self: center;
  margin-right: 6px;
}

.notification-icon {
  width: 36px;
  height: 36px;
  color: #0c0c0a;
  stroke-width: 1;
  border-radius: 9999px;
  background: #e7e1d8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Text */
.notification-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-text {
  font-size: 14px;
  color: #0c0c0a;
  line-height: 1.4;
}

.notification-text strong {
  font-weight: 500;
}

.notification-time {
  font-size: 12px;
  color: #8f8c8b;
}
/* DROPDOWN FILTER */
/* FILTER DROPDOWN PANEL */
.orders-filter {
  position: relative;
}
.orders-tabs {
  display: flex;
  gap: 12px;
}

/* PANEL */
.orders-filter-menu {
  position: absolute;
  top: 48px;
  left: 0;

  width: 320px;
  height: 430px;

  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  padding: 16px;

  overflow-y: auto;
  overflow-x: hidden;

  z-index: 1000;
}

/* GROUP SPACING */
.filter-group {
  margin-bottom: 16px;
}

/* GRAY CATEGORY TITLES */
.filter-title {
  font-family: "Satoshi";
  font-size: 14px;
  font-weight: 500;
  color: #8f8f8f;
  margin-bottom: 8px;
}

/* ROWS */
.orders-filter-menu label {
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 16px;
  color: #0c0c0a;
  font-weight: 400;

  padding: 10px;
  border-radius: 10px;

  cursor: pointer;
}

.orders-filter-menu label:hover {
  background: #f5f5f5;
}
/* Hide default checkbox */
.custom-checkbox input {
  display: none;
}
/* CHECKBOX */

.check {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1px solid #0c0c0a;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon {
  opacity: 0;
}
.option.selected .check {
  background: #0c0c0a;
}
.option.selected .check-icon {
  opacity: 1;
}
.check svg {
  width: 16px;
  height: 16px;
}

.option.selected .check-icon path {
  stroke: #ffffff;
}
#ordersFilterBtn svg {
  transition: transform 0.2s ease;
}

#ordersFilterBtn.open svg {
  transform: rotate(180deg);
}

/* NICE SCROLLBAR */
.orders-filter-menu {
  overflow-y: auto;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
}

/* Chrome / Edge / Safari */
.orders-filter-menu::-webkit-scrollbar {
  width: 4px;
}

.orders-filter-menu::-webkit-scrollbar-track {
  background: transparent;
}

.orders-filter-menu::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 10px;
}

.orders-filter-menu::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}

.page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.controls-group-left,
.controls-group-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 1200px) {
  .page-controls {
    flex-wrap: wrap;
  }

  /* Row 1 */
  .controls-right {
    order: 1;
    flex: 0 0 100%;
    justify-content: space-between;
  }

  /* Row 2 */
  .controls-left {
    order: 2;
    flex: 0 0 100%;
  }
}
@media (max-width: 980px) {
  .search-field {
    display: none;
  }

  .sort-wrapper {
    display: none;
  }
}
@media (max-width: 600px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .page-title {
    font-size: 36px;
  }
}
@media (min-width: 980px) {
  .page-container {
    padding-inline: 10vw;
  }
}
