/* =========================
   FIXED COSTS HEADER
========================= */

.fixed-cost-page-header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.fixed-cost-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.fixed-cost-header-actions .secondary-btn {
  background: #ffffff;
  border: 1px solid #dbe5f2;
  color: #2563eb;
}

.fixed-cost-header-actions .secondary-btn:hover {
  background: #f8fbff;
}

@media (max-width: 768px) {

  .fixed-cost-page-header-content {
    flex-direction: column;
  }

  .fixed-cost-header-actions {
    width: 100%;
  }

  .fixed-cost-header-actions button {
    flex: 1;
  }
}

/* =========================
   FIXED COST HEADER ACTIONS
========================= */

.fixed-cost-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  margin-top: 18px;
}

.fixed-cost-header-actions .secondary-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 12px 18px !important;

  background: #ffffff !important;
  color: #2563eb !important;

  border: 1px solid #dbe5f2 !important;
  border-radius: 14px !important;

  opacity: 1 !important;
  visibility: visible !important;
}

.fixed-cost-header-actions .secondary-btn:hover {
  background: #f8fbff !important;
}

@media (max-width: 768px) {

  .fixed-cost-header-actions {
    width: 100%;
  }

  .fixed-cost-header-actions button {
    flex: 1;
  }
}

.fixed-cost-assistant-category-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.fixed-cost-assistant-category-title{
  margin:0;
  font-size:22px;
  font-weight:700;
  color:#0f172a;
}

.fixed-cost-assistant-category-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.assistant-select-all-btn{
  border:none;
  background:#2563eb;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.assistant-select-all-btn.secondary{
  background:#e2e8f0;
  color:#334155;
}

.fixed-cost-suggested-items-grid{
  display:grid;
  grid-template-columns:repeat(
    auto-fit,
    minmax(280px,1fr)
  );
  gap:18px;
}

.fixed-cost-suggested-item-card{
  border:1px solid #dbe3f0;
  border-radius:20px;
  padding:18px;
  background:#fff;
}

.fixed-cost-suggested-item-check{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  font-size:16px;
  font-weight:700;
  color:#0f172a;
}

.fixed-cost-suggested-item-check input{
  width:18px;
  height:18px;
  cursor:pointer;
}

.fixed-cost-suggested-item-body{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.fixed-cost-suggested-item-body label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  font-weight:600;
  color:#475569;
}

.fixed-cost-suggested-item-body input,
.fixed-cost-suggested-item-body textarea{
  width:100%;
  border:1px solid #dbe3f0;
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  background:#fff;
  color:#0f172a;
}

.fixed-cost-suggested-item-body textarea{
  resize:vertical;
  min-height:72px;
}

.fixed-cost-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.fixed-cost-sidebar {
  position: sticky;
  top: 24px;

  padding: 22px;
  border-radius: 30px;

  border: 1px solid #e7edf5;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfdff 100%
    );

  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.04);
}

.fixed-cost-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;
}

.fixed-cost-sidebar-header h3 {
  margin: 0;

  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.fixed-cost-filter-btn {
  width: 40px;
  height: 40px;

  border: 1px solid #e2e8f0;
  border-radius: 14px;

  background: #ffffff;

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

  cursor: pointer;
}

.fixed-cost-filter-btn svg {
  width: 18px;
  height: 18px;

  stroke: #64748b;
  stroke-width: 2;
  fill: none;
}

.fixed-cost-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fixed-cost-category-card {
  width: 100%;

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

  background: #ffffff;

  padding: 18px;

  display: flex;
  align-items: center;
  gap: 16px;

  cursor: pointer;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.fixed-cost-category-card:hover {
  transform: translateY(-1px);

  border-color: #dbe7ff;

  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.08);
}

.fixed-cost-category-card.is-active {
  border-color: #bfd8ff;

  background:
    linear-gradient(
      135deg,
      #eef5ff 0%,
      #f7fbff 100%
    );

  box-shadow:
    0 14px 40px rgba(37, 99, 235, 0.10);
}

.fixed-cost-category-icon {
  width: 58px;
  height: 58px;

  border-radius: 18px;

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

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #edf4ff 100%
    );

  border: 1px solid #dce8ff;

  flex-shrink: 0;
}

.fixed-cost-category-icon svg {
  width: 24px;
  height: 24px;

  stroke: #2563eb;
  stroke-width: 2;

  fill: none;
}

.fixed-cost-category-content {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;

  text-align: left;
}

.fixed-cost-category-content strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.fixed-cost-category-content span {
  font-size: 13px;
  color: #64748b;
}

.fixed-cost-category-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed-cost-category-arrow svg {
  width: 18px;
  height: 18px;

  stroke: #94a3b8;
  stroke-width: 2;
  fill: none;
}

.fixed-cost-workspace-main {
  min-width: 0;
}

@media (max-width: 1080px) {

  .fixed-cost-workspace {
    grid-template-columns: 1fr;
  }

  .fixed-cost-sidebar {
    position: relative;
    top: auto;
  }

  .fixed-cost-sidebar-list {
    flex-direction: row;
    overflow-x: auto;

    padding-bottom: 6px;
  }

  .fixed-cost-category-card {
    min-width: 280px;
  }
}

.fixed-cost-row.is-pending-config {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fffdf8 100%
    );

  border-color: #f4ead2;
}

.fixed-cost-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;

  color: #9a6700;

  background:
    linear-gradient(
      180deg,
      #fff7db 0%,
      #fff1bf 100%
    );

  border: 1px solid #f4dea3;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7);
}

.fixed-cost-pending-dot {
  width: 10px;
  height: 10px;

  border-radius: 999px;

  background: #ef4444;

  box-shadow:
    0 0 0 6px rgba(239, 68, 68, 0.10);

  flex-shrink: 0;
}

.fixed-cost-row.is-pending-config {
  border-color: #f5d7d7;

  background:
    linear-gradient(
      180deg,
      #fffdfd 0%,
      #fff7f7 100%
    );
}

.fixed-cost-summary-card div {
  min-width: 0;
}

.fixed-cost-summary-card strong {
  display: block;

  max-width: 100%;

  overflow-wrap: anywhere;
  word-break: break-word;

  line-height: 1.05;
}

.fixed-cost-summary-card span {
  overflow-wrap: anywhere;
}

@media (max-width: 1380px) {

  .fixed-cost-row {
    grid-template-columns:
      minmax(180px, 1.4fr)
      minmax(100px, .7fr)
      minmax(140px, .9fr)
      auto;

    gap: 14px;
  }

  .procedure-actions {
    grid-column: 1 / -1;

    justify-content: flex-start;

    padding-top: 4px;
  }
}

.fixed-cost-summary-card{
  background:#fff;
  border:1px solid #dbe7ff;
  border-radius:28px;
  padding:26px;
  display:flex;
  align-items:center;
  gap:18px;
  min-height:132px;
}

.fixed-cost-summary-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  background:#eef4ff;
  color:#2563eb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:700;
  flex-shrink:0;
}

.fixed-cost-summary-content{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.fixed-cost-summary-title{
  font-size:14px;
  color:#64748b;
  font-weight:600;
}

.fixed-cost-summary-value{
  font-size:38px;
  line-height:1;
  color:#0f172a;
  font-weight:800;
}