/* =====================================================
   BIVA TALENT — VIEW WORK LOG
   FULL REPLACEMENT
===================================================== */


/* =====================================================
   PAGE
===================================================== */

.associate-work-log-detail-page {
  min-height: 100vh;

  padding: 24px;

  background:
    linear-gradient(
      180deg,
      #f5f7fb,
      #eef3f8
    );
}

.associate-work-log-detail-container {
  width: min(1240px, 100%);

  margin: 0 auto;
}


/* =====================================================
   BACK BUTTON
===================================================== */

.associate-work-log-detail-back-btn {
  width: fit-content;
  min-height: 41px;

  margin-bottom: 16px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border:
    1px solid #dbe4ee;

  border-radius: 11px;

  color:
    #334155;

  background:
    #ffffff;

  box-shadow:
    0 5px 15px
    rgba(15, 23, 42, 0.045);

  font: inherit;

  font-size: 11px;
  font-weight: 830;

  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.associate-work-log-detail-back-btn:hover {
  border-color:
    #bfdbfe;

  color:
    #1d4ed8;

  background:
    #eff6ff;

  transform:
    translateX(-2px);

  box-shadow:
    0 7px 18px
    rgba(37, 99, 235, 0.08);
}

.associate-work-log-detail-back-btn svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   PAGE MESSAGE
===================================================== */

.associate-work-log-detail-message {
  margin-bottom: 15px;
  padding: 12px 14px;

  border:
    1px solid #fecaca;

  border-radius: 11px;

  color:
    #b91c1c;

  background:
    #fff1f2;

  font-size: 11px;
  font-weight: 740;
  line-height: 1.5;
}

.associate-work-log-detail-message[hidden] {
  display: none;
}

.associate-work-log-detail-message[data-type="success"] {
  border-color:
    #bbf7d0;

  color:
    #047857;

  background:
    #ecfdf5;
}

.associate-work-log-detail-message[data-type="info"] {
  border-color:
    #bfdbfe;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}


/* =====================================================
   HERO
===================================================== */

.associate-work-log-detail-hero {
  position: relative;

  min-height: 205px;

  padding: 30px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  color:
    #ffffff;

  background:
    radial-gradient(
      circle at 94% 4%,
      rgba(37, 99, 235, 0.35),
      transparent 36%
    ),
    radial-gradient(
      circle at 4% 100%,
      rgba(251, 191, 36, 0.08),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      #071324,
      #10233f 58%,
      #173675
    );

  box-shadow:
    0 22px 58px
    rgba(7, 19, 36, 0.17);

  overflow: hidden;
}

.associate-work-log-detail-hero::before {
  content: "";

  position: absolute;

  inset:
    0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #fbbf24,
      transparent 84%
    );
}

.associate-work-log-detail-hero::after {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  right: -95px;
  bottom: -170px;

  border:
    1px solid
    rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  box-shadow:
    0 0 0 42px
    rgba(255, 255, 255, 0.018),

    0 0 0 84px
    rgba(255, 255, 255, 0.009);

  pointer-events: none;
}

.associate-work-log-detail-hero > * {
  position: relative;

  z-index: 1;
}

.associate-work-log-detail-hero > div:first-child {
  min-width: 0;
}

.associate-work-log-detail-kicker {
  display: block;

  margin-bottom: 8px;

  color:
    #fbbf24;

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.associate-work-log-detail-hero h1 {
  max-width: 760px;

  margin: 0;

  overflow-wrap: anywhere;

  color:
    #ffffff;

  font-size:
    clamp(2.25rem, 4.2vw, 4rem);

  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.associate-work-log-detail-hero p {
  margin:
    13px 0 0;

  color:
    rgba(255, 255, 255, 0.65);

  font-size: 13px;
  line-height: 1.55;
}


/* =====================================================
   HERO ACTIONS
===================================================== */

.associate-work-log-detail-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 9px;
}


/* =====================================================
   BUTTONS
===================================================== */

.associate-work-log-detail-primary-btn,
.associate-work-log-detail-secondary-btn {
  min-height: 43px;

  padding:
    0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 11px;

  font: inherit;

  font-size: 11px;
  font-weight: 840;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.associate-work-log-detail-primary-btn {
  border:
    1px solid #2563eb;

  color:
    #ffffff;

  background:
    #2563eb;

  box-shadow:
    0 8px 20px
    rgba(37, 99, 235, 0.22);
}

.associate-work-log-detail-primary-btn:hover {
  background:
    #1d4ed8;

  transform:
    translateY(-1px);
}

.associate-work-log-detail-secondary-btn {
  border:
    1px solid #dbe4ee;

  color:
    #334155;

  background:
    #ffffff;
}

.associate-work-log-detail-hero
.associate-work-log-detail-secondary-btn {
  border-color:
    rgba(255, 255, 255, 0.16);

  color:
    #ffffff;

  background:
    rgba(255, 255, 255, 0.08);
}

.associate-work-log-detail-secondary-btn:hover {
  border-color:
    #bfdbfe;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.associate-work-log-detail-hero
.associate-work-log-detail-secondary-btn:hover {
  border-color:
    rgba(255, 255, 255, 0.28);

  color:
    #ffffff;

  background:
    rgba(255, 255, 255, 0.14);
}

.associate-work-log-detail-primary-btn:disabled,
.associate-work-log-detail-secondary-btn:disabled {
  opacity: 0.55;

  cursor: wait;

  transform: none;
}

.associate-work-log-detail-primary-btn svg,
.associate-work-log-detail-secondary-btn svg {
  width: 16px;
  height: 16px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   LOCK NOTICE
===================================================== */

.associate-work-log-detail-lock {
  margin-top: 16px;
  padding: 15px 17px;

  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr);

  align-items: center;

  gap: 13px;

  border:
    1px solid #dbe4ee;

  border-radius: 14px;

  color:
    #475569;

  background:
    #f8fafc;
}

.associate-work-log-detail-lock > span {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color:
    #475569;

  background:
    #e2e8f0;
}

.associate-work-log-detail-lock svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-work-log-detail-lock strong {
  display: block;

  color:
    #0f172a;

  font-size: 12px;
  font-weight: 870;
}

.associate-work-log-detail-lock p {
  margin:
    4px 0 0;

  color:
    #64748b;

  font-size: 10px;
  line-height: 1.5;
}


/* =====================================================
   REVISION NOTICE
===================================================== */

.associate-work-log-revision-notice {
  margin-top: 16px;
  padding: 15px 17px;

  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr);

  align-items: center;

  gap: 13px;

  border:
    1px solid #fed7aa;

  border-radius: 14px;

  background:
    #fff7ed;
}

.associate-work-log-revision-notice > span {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color:
    #c2410c;

  background:
    #ffedd5;
}

.associate-work-log-revision-notice svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-work-log-revision-notice strong {
  display: block;

  color:
    #9a3412;

  font-size: 12px;
  font-weight: 880;
}

.associate-work-log-revision-notice p {
  margin:
    4px 0 0;

  color:
    #c2410c;

  font-size: 10px;
  line-height: 1.5;
}


/* =====================================================
   SUMMARY GRID
===================================================== */

.associate-work-log-detail-summary {
  margin-top: 18px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;
}

.associate-work-log-detail-summary article {
  min-width: 0;
  min-height: 102px;

  padding: 16px;

  display: grid;

  grid-template-columns:
    43px
    minmax(0, 1fr);

  align-items: center;

  gap: 12px;

  border:
    1px solid #dce5ef;

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fafc
    );

  box-shadow:
    0 7px 22px
    rgba(15, 23, 42, 0.05);
}

.associate-work-log-summary-icon {
  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.associate-work-log-summary-icon svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-work-log-detail-summary article > div {
  min-width: 0;

  display: grid;

  gap: 6px;
}

.associate-work-log-detail-summary small {
  color:
    #64748b;

  font-size: 9px;
  font-weight: 790;
}

.associate-work-log-detail-summary strong {
  overflow-wrap: anywhere;

  color:
    #0f172a;

  font-size: 12px;
  font-weight: 870;
  line-height: 1.4;
}


/* =====================================================
   STATUS
===================================================== */

.associate-work-log-detail-status {
  width: fit-content;
  min-height: 28px;

  padding:
    4px 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid #e2e8f0;

  border-radius: 999px;

  color:
    #475569;

  background:
    #f8fafc;

  font-size: 9px;
  font-weight: 850;

  white-space: nowrap;
}

.associate-work-log-detail-status[data-status="draft"] {
  border-color:
    #e2e8f0;

  color:
    #475569;

  background:
    #f8fafc;
}

.associate-work-log-detail-status[data-status="submitted"] {
  border-color:
    #bfdbfe;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.associate-work-log-detail-status[data-status="revision_required"] {
  border-color:
    #fed7aa;

  color:
    #c2410c;

  background:
    #fff7ed;
}

.associate-work-log-detail-status[data-status="reviewed"] {
  border-color:
    #bbf7d0;

  color:
    #047857;

  background:
    #ecfdf5;
}

.associate-work-log-detail-status[data-status="rejected"] {
  border-color:
    #fecaca;

  color:
    #b91c1c;

  background:
    #fff1f2;
}

.associate-work-log-detail-status[data-status="cancelled"] {
  border-color:
    #e2e8f0;

  color:
    #64748b;

  background:
    #f1f5f9;
}


/* =====================================================
   DETAIL CARD
===================================================== */

.associate-work-log-detail-card {
  margin-top: 18px;
  padding: 22px;

  border:
    1px solid #dce5ef;

  border-radius: 18px;

  background:
    #ffffff;

  box-shadow:
    0 9px 28px
    rgba(15, 23, 42, 0.06);
}

.associate-work-log-detail-card > header {
  margin-bottom: 18px;

  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr);

  align-items: center;

  gap: 12px;
}

.associate-work-log-detail-card
> header > span {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.associate-work-log-detail-card
> header svg {
  width: 21px;
  height: 21px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-work-log-detail-card
> header > div {
  min-width: 0;
}

.associate-work-log-detail-card
> header small {
  display: block;

  margin-bottom: 4px;

  color:
    #2563eb;

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.associate-work-log-detail-card h2 {
  margin: 0;

  color:
    #0f172a;

  font-size:
    clamp(1.25rem, 2vw, 1.7rem);

  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}


/* =====================================================
   ORDER SUMMARY
===================================================== */

.associate-work-log-order-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.associate-work-log-order-grid article {
  min-width: 0;
  min-height: 92px;

  padding: 15px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 7px;

  border:
    1px solid #e2e8f0;

  border-radius: 14px;

  background:
    #f8fafc;
}

.associate-work-log-order-grid span {
  color:
    #64748b;

  font-size: 9px;
  font-weight: 790;
}

.associate-work-log-order-grid strong {
  color:
    #0f172a;

  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.associate-work-log-order-grid
.is-completed {
  border-color:
    #bbf7d0;

  background:
    #ecfdf5;
}

.associate-work-log-order-grid
.is-completed strong {
  color:
    #047857;
}

.associate-work-log-order-grid
.is-cancelled {
  border-color:
    #fecaca;

  background:
    #fff1f2;
}

.associate-work-log-order-grid
.is-cancelled strong {
  color:
    #b91c1c;
}

.associate-work-log-order-grid
.is-pending {
  border-color:
    #fde68a;

  background:
    #fffbeb;
}

.associate-work-log-order-grid
.is-pending strong {
  color:
    #92400e;
}


/* =====================================================
   ACTIVITIES
===================================================== */

.associate-work-log-activity-list {
  margin: 0;
  padding: 0;

  display: grid;

  gap: 9px;

  list-style: none;
}

.associate-work-log-activity-list li {
  min-width: 0;

  padding: 12px 14px;

  display: grid;

  grid-template-columns:
    28px
    minmax(0, 1fr);

  align-items: start;

  gap: 10px;

  border:
    1px solid #dcfce7;

  border-radius: 12px;

  background:
    #f0fdf4;
}

.associate-work-log-activity-list
li > span {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  color:
    #047857;

  background:
    #dcfce7;

  font-size: 11px;
  font-weight: 900;
}

.associate-work-log-activity-list p {
  margin: 4px 0 0;

  overflow-wrap: anywhere;

  color:
    #334155;

  font-size: 11px;
  line-height: 1.55;
}


/* =====================================================
   EMPTY CONTENT
===================================================== */

.associate-work-log-detail-empty {
  min-height: 90px;

  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px dashed #cbd5e1;

  border-radius: 13px;

  color:
    #64748b;

  background:
    #f8fafc;

  font-size: 11px;
  text-align: center;
}


/* =====================================================
   REPORT GRID
===================================================== */

.associate-work-log-report-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.associate-work-log-report-block {
  min-width: 0;

  padding: 16px;

  border:
    1px solid #e2e8f0;

  border-radius: 14px;

  background:
    #f8fafc;
}

.associate-work-log-report-block h3 {
  margin: 0;

  color:
    #0f172a;

  font-size: 11px;
  font-weight: 860;
}

.associate-work-log-report-block p {
  margin:
    8px 0 0;

  overflow-wrap: anywhere;

  color:
    #526176;

  font-size: 11px;
  line-height: 1.7;

  white-space: pre-line;
}


/* =====================================================
   REVIEW CARD
===================================================== */

.associate-work-log-review-card {
  border-color:
    #fed7aa;

  background:
    linear-gradient(
      145deg,
      #fff7ed,
      #ffffff
    );
}

.associate-work-log-review-card
> header > span {
  color:
    #c2410c;

  background:
    #ffedd5;
}

.associate-work-log-review-card
> header small {
  color:
    #c2410c;
}

.associate-work-log-review-card > p {
  margin: 0;
  padding: 15px;

  border:
    1px solid #fed7aa;

  border-radius: 13px;

  color:
    #9a3412;

  background:
    rgba(255, 255, 255, 0.72);

  font-size: 11px;
  line-height: 1.7;

  white-space: pre-line;
}


/* =====================================================
   FOOTER
===================================================== */

.associate-work-log-detail-footer {
  margin-top: 18px;
  padding: 17px 0 5px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}


/* =====================================================
   LOADING
===================================================== */

.associate-work-log-detail-loading {
  min-height:
    calc(100vh - 105px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.associate-work-log-detail-spinner {
  width: 38px;
  height: 38px;

  margin-bottom: 15px;

  border:
    3px solid
    rgba(37, 99, 235, 0.14);

  border-top-color:
    #2563eb;

  border-radius: 50%;

  animation:
    associate-work-log-detail-spin
    760ms linear infinite;
}

@keyframes associate-work-log-detail-spin {

  to {
    transform:
      rotate(360deg);
  }

}

.associate-work-log-detail-loading strong {
  color:
    #0f172a;

  font-size: 14px;
  font-weight: 880;
}

.associate-work-log-detail-loading p {
  margin:
    7px 0 0;

  color:
    #64748b;

  font-size: 11px;
}


/* =====================================================
   ERROR
===================================================== */

.associate-work-log-detail-error {
  min-height:
    calc(100vh - 105px);

  padding: 42px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.associate-work-log-detail-error
> div:first-child {
  width: 62px;
  height: 62px;

  margin-bottom: 16px;

  display: grid;
  place-items: center;

  border-radius: 19px;

  color:
    #b91c1c;

  background:
    #fff1f2;

  font-size: 24px;
  font-weight: 900;
}

.associate-work-log-detail-error h1 {
  margin: 0;

  color:
    #0f172a;

  font-size:
    clamp(1.6rem, 3vw, 2.5rem);

  font-weight: 900;
  letter-spacing: -0.04em;
}

.associate-work-log-detail-error p {
  max-width: 560px;

  margin:
    10px auto 0;

  color:
    #64748b;

  font-size: 12px;
  line-height: 1.65;
}

.associate-work-log-detail-error
> .associate-work-log-detail-primary-btn {
  margin-top: 20px;
}

.associate-work-log-detail-error-actions {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
}


/* =====================================================
   FOCUS
===================================================== */

.associate-work-log-detail-page
button:focus-visible {
  outline: 0;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.18);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .associate-work-log-detail-page {
    padding: 16px;
  }

  .associate-work-log-detail-hero {
    min-height: auto;

    padding:
      27px 23px;

    align-items: stretch;
    flex-direction: column;

    gap: 20px;
  }

  .associate-work-log-detail-hero-actions {
    justify-content: flex-start;
  }

  .associate-work-log-detail-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .associate-work-log-order-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 700px) {

  .associate-work-log-detail-hero-actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100%;
  }

  .associate-work-log-detail-hero-actions
  .associate-work-log-detail-primary-btn,
  .associate-work-log-detail-hero-actions
  .associate-work-log-detail-secondary-btn {
    width: 100%;
  }

  .associate-work-log-report-grid {
    grid-template-columns: 1fr;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 560px) {

  .associate-work-log-detail-page {
    padding: 11px;
  }

  .associate-work-log-detail-back-btn {
    width: 100%;

    margin-bottom: 11px;
  }

  .associate-work-log-detail-hero {
    padding:
      23px 17px;

    border-radius: 18px;
  }

  .associate-work-log-detail-hero h1 {
    font-size:
      clamp(2rem, 11vw, 3.1rem);
  }

  .associate-work-log-detail-hero p {
    font-size: 12px;
  }

  .associate-work-log-detail-hero-actions {
    grid-template-columns: 1fr;
  }

  .associate-work-log-detail-summary {
    margin-top: 12px;

    grid-template-columns: 1fr;
  }

  .associate-work-log-detail-summary article {
    min-height: 90px;

    padding: 14px;
  }

  .associate-work-log-detail-lock,
  .associate-work-log-revision-notice {
    grid-template-columns:
      38px
      minmax(0, 1fr);

    padding: 13px;
  }

  .associate-work-log-detail-lock
  > span,
  .associate-work-log-revision-notice
  > span {
    width: 38px;
    height: 38px;
  }

  .associate-work-log-detail-card {
    margin-top: 12px;
    padding: 17px;

    border-radius: 16px;
  }

  .associate-work-log-order-grid {
    grid-template-columns: 1fr;
  }

  .associate-work-log-activity-list li {
    grid-template-columns:
      26px
      minmax(0, 1fr);

    padding: 11px;
  }

  .associate-work-log-activity-list
  li > span {
    width: 26px;
    height: 26px;
  }

  .associate-work-log-detail-footer
  .associate-work-log-detail-secondary-btn {
    width: 100%;
  }

  .associate-work-log-detail-error-actions {
    width: 100%;

    flex-direction: column;
  }

  .associate-work-log-detail-error-actions
  .associate-work-log-detail-primary-btn,
  .associate-work-log-detail-error-actions
  .associate-work-log-detail-secondary-btn {
    width: 100%;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .associate-work-log-detail-back-btn,
  .associate-work-log-detail-primary-btn,
  .associate-work-log-detail-secondary-btn {
    transition: none;
  }

  .associate-work-log-detail-spinner {
    animation: none;
  }

}