/*
Theme Name: Truva Is Takip
Theme URI: https://truvasoft.net/
Author: TruvaSoft
Description: WordPress izlerini gizleyen, girisli is takip yazilimi arayuzu.
Version: 1.0.27
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: truva-is-takip
*/

:root {
  --trv-bg: #f4f7fb;
  --trv-bg-2: #eaf1f8;
  --trv-surface: #ffffff;
  --trv-surface-2: #edf3f8;
  --trv-text: #172033;
  --trv-muted: #66748a;
  --trv-line: #d9e2ec;
  --trv-primary: #190c31;
  --trv-primary-dark: #27124f;
  --trv-accent: #ef6a3a;
  --trv-good: #24965a;
  --trv-warn: #b87912;
  --trv-purple: #7057d6;
  --trv-shadow: 0 18px 48px rgba(31, 45, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(25, 12, 49, 0.1), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(239, 106, 58, 0.1), transparent 30%),
    linear-gradient(135deg, var(--trv-bg), var(--trv-bg-2));
  color: var(--trv-text);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.5;
}

body:not(.logged-in) {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: #190c31;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.trv-shell {
  min-height: 100vh;
}

body:not(.logged-in) .trv-shell,
body:not(.logged-in) .trv-main {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.logged-in) .trv-topbar,
body:not(.logged-in) .trv-footer {
  display: none;
}

.trv-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 28px;
  background: #190c31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.trv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.trv-brand-logo {
  display: block;
  width: 142px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.trv-brand-text {
  display: grid;
}

.trv-brand-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.trv-brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.trv-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trv-notification-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.trv-top-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.trv-top-icon:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.trv-top-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trv-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #190c31;
  border-radius: 999px;
  background: #d71920;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.trv-notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: grid;
  width: min(340px, calc(100vw - 24px));
  gap: 8px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--trv-text);
  padding: 12px;
  box-shadow: var(--trv-shadow);
  text-align: left;
}

.trv-notification-popover[hidden] {
  display: none !important;
}

.trv-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--trv-line);
}

.trv-notification-head a {
  color: var(--trv-primary);
  font-size: 12px;
  text-decoration: none;
}

.trv-notification-item {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  color: inherit;
  padding: 10px;
  text-decoration: none;
}

.trv-notification-item:hover {
  background: rgba(25, 12, 49, 0.06);
}

.trv-notification-item span {
  color: var(--trv-accent);
  font-size: 11px;
  font-weight: 700;
}

.trv-notification-item strong {
  font-size: 13px;
}

.trv-notification-item small,
.trv-notification-empty {
  color: var(--trv-muted);
  font-size: 12px;
}

.trv-notification-empty {
  padding: 12px 4px 4px;
}

.trv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--trv-primary);
  color: #07111f;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.trv-button:hover {
  background: var(--trv-primary-dark);
  transform: translateY(-1px);
}

.trv-button.is-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--trv-text);
  border-color: var(--trv-line);
}

.trv-main {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.trv-login-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 410px);
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: clamp(10px, 2.5vh, 20px) 16px;
  overflow: hidden;
}

.trv-login-hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -2;
  background:
    radial-gradient(circle at 22% 18%, rgba(215, 25, 32, 0.24), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #190c31, #25124c 54%, #190c31);
}

.trv-login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 72%);
}

.trv-login-orbit {
  position: absolute;
  width: min(480px, 76vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: trvOrbit 16s linear infinite;
}

.trv-login-orbit::before,
.trv-login-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d71920;
  box-shadow: 0 0 24px rgba(215, 25, 32, 0.7);
}

.trv-login-orbit::before {
  top: 18%;
  right: 14%;
}

.trv-login-orbit::after {
  bottom: 20%;
  left: 13%;
  background: #ffffff;
}

@keyframes trvOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-height: 640px) {
  .trv-login-hero {
    min-height: 0;
    padding: 8px 12px;
  }

  .trv-login-panel {
    gap: 8px;
    padding: 16px;
  }

  .trv-login-panel h2 {
    font-size: 23px;
  }

  .trv-field {
    margin-bottom: 9px;
  }

  .trv-field input,
  .trv-login-panel .trv-button {
    min-height: 42px;
  }
}

.trv-login-hero .trv-hero-copy {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #190c31, #27124f);
  color: #ffffff;
  padding: 28px;
}

.trv-hero-copy h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.trv-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.trv-login-panel,
.trv-card {
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(18, 30, 49, 0.86);
  box-shadow: var(--trv-shadow);
}

.trv-login-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(410px, calc(100vw - 24px));
  max-height: calc(100dvh - 20px);
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.trv-login-panel h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.08;
  text-align: center;
}

.trv-login-panel p {
  margin: -6px 0 2px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.trv-login-panel .trv-field label,
.trv-login-panel .remember {
  color: #64748b;
}

.trv-login-panel .trv-field input {
  background: #ffffff;
  color: #172033;
}

.trv-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.trv-field label {
  color: var(--trv-muted);
  font-size: 13px;
  font-weight: 600;
}

.trv-field input,
.trv-field select,
.trv-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--trv-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--trv-text);
  padding: 10px 14px;
  outline: none;
}

.trv-field input:focus,
.trv-field select:focus,
.trv-field textarea:focus {
  border-color: var(--trv-primary);
  box-shadow: 0 0 0 3px rgba(25, 12, 49, 0.13);
}

.trv-login-panel .remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 2px;
  font-size: 13px;
}

.trv-login-panel .remember input {
  width: 17px;
  height: 17px;
  accent-color: #190c31;
}

.trv-login-panel .trv-button {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #190c31, #2b1554);
  color: #ffffff;
  font-weight: 650;
  box-shadow: 0 12px 24px rgba(25, 12, 49, 0.2);
}

.trv-login-error {
  margin: 0 0 14px;
  border: 1px solid rgba(217, 79, 48, 0.24);
  border-radius: 8px;
  background: rgba(217, 79, 48, 0.08);
  color: #8f2f1c;
  padding: 10px 12px;
}

.trv-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.trv-metric {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 30, 49, 0.94), rgba(26, 41, 64, 0.86));
}

.trv-metric span {
  display: block;
  color: var(--trv-muted);
  font-size: 13px;
  font-weight: 600;
}

.trv-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.trv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.trv-card {
  padding: 20px;
  box-shadow: none;
}

.trv-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.trv-chart {
  width: 100%;
  height: 280px;
}

.trv-table-wrap {
  overflow-x: auto;
}

.trv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.trv-table th,
.trv-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--trv-line);
  text-align: left;
  vertical-align: top;
}

.trv-table th {
  color: var(--trv-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.trv-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--trv-surface-2);
  color: var(--trv-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.trv-empty {
  border: 1px dashed var(--trv-line);
  border-radius: 8px;
  color: var(--trv-muted);
  padding: 24px;
}

.trv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 28px 30px;
  color: var(--trv-muted);
  font-size: 13px;
}

.trv-footer-actions {
  display: flex;
  gap: 10px;
}

.trv-footer-actions a {
  min-height: 34px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--trv-text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.68);
}

@media (max-width: 940px) {
  .trv-login-hero,
  .trv-grid {
    grid-template-columns: 1fr;
  }

  .trv-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .trv-topbar {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    min-height: 68px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #190c31, #27124f);
  }

  .trv-brand {
    grid-column: 2;
    justify-self: center;
  }

  .trv-brand-logo {
    width: 132px;
    height: 48px;
  }

  .trv-brand-text {
    display: none;
  }

  .trv-topbar-actions {
    grid-column: 3;
    justify-self: end;
    gap: 0;
  }

  .trv-notification-wrap {
    position: relative;
  }

  .trv-notification-count {
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    border-width: 1px;
    font-size: 9px;
  }

  .trv-topbar-actions .trv-top-icon[href*="/account/"] {
    display: none;
  }

  .trv-notification-popover {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    width: calc(100vw - 28px);
    max-width: none;
    max-height: min(420px, calc(100vh - 96px));
    overflow: auto;
    box-sizing: border-box;
  }

  .trv-button {
    width: 100%;
  }

  .trv-main {
    width: min(100% - 24px, 1480px);
    padding-top: 20px;
  }

  .trv-metrics {
    grid-template-columns: 1fr;
  }

  .trv-hero-copy h1 {
    font-size: 42px;
  }
}

.trv-app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.trv-app-hero h1 {
  margin: 8px 0 10px;
  font-size: 52px;
  line-height: 1;
}

.trv-app-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--trv-muted);
  font-size: 17px;
}

.trv-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(25, 12, 49, 0.22);
  border-radius: 999px;
  background: rgba(25, 12, 49, 0.08);
  color: var(--trv-primary);
  font-size: 12px;
  font-weight: 600;
}

.trv-login-hero .trv-kicker {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.trv-hero-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 150px;
  border: 1px solid rgba(255, 122, 89, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 122, 89, 0.16), rgba(167, 139, 250, 0.14));
  padding: 20px;
}

.trv-hero-panel span,
.trv-hero-panel small {
  color: var(--trv-muted);
}

.trv-hero-panel strong {
  font-size: 44px;
  line-height: 1;
}

.trv-app-tabs {
  position: sticky;
  top: 74px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 8px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.76);
  backdrop-filter: blur(14px);
}

.trv-app-tabs a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 7px;
  color: var(--trv-muted);
  font-weight: 600;
  text-decoration: none;
}

.trv-app-tabs a:hover {
  background: rgba(25, 12, 49, 0.1);
  color: var(--trv-text);
}

.trv-notice {
  margin: 0 0 14px;
  border: 1px solid rgba(126, 231, 135, 0.34);
  border-radius: 8px;
  background: rgba(126, 231, 135, 0.1);
  color: var(--trv-good);
  padding: 12px 14px;
  font-weight: 600;
}

.trv-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.trv-form-card {
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(18, 30, 49, 0.88);
  overflow: hidden;
}

.trv-form-card summary {
  min-height: 48px;
  padding: 13px 16px;
  color: var(--trv-primary);
  font-weight: 600;
  cursor: pointer;
}

.trv-form-card form {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

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

.trv-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--trv-muted);
  font-size: 13px;
  font-weight: 600;
}

.trv-form-grid input,
.trv-form-grid select,
.trv-form-grid textarea,
.trv-inline-status input,
.trv-inline-status select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--trv-text);
  padding: 9px 11px;
  outline: none;
}

.trv-form-grid option,
.trv-inline-status option {
  color: #172033;
}

.trv-form-grid .is-wide {
  grid-column: 1 / -1;
}

.trv-grid-finance {
  margin-top: 18px;
}

.trv-insight-list {
  display: grid;
  gap: 12px;
}

.trv-insight-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--trv-line);
}

.trv-insight-list span {
  color: var(--trv-muted);
}

.trv-project-board {
  margin-top: 18px;
}

.trv-project-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.trv-project-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.trv-list-filter {
  margin: 0 0 14px;
}

.trv-list-filter input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--trv-text);
  padding: 10px 14px;
  outline: none;
}

.trv-list-filter input:focus {
  border-color: var(--trv-primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.trv-project-row {
  grid-template-columns: minmax(260px, 1fr) 150px minmax(180px, 0.6fr);
  align-items: center;
}

.trv-project-row footer {
  grid-column: auto;
}

.trv-client-projects {
  margin-top: 18px;
}

.trv-client-groups {
  display: grid;
  gap: 12px;
}

.trv-client-group {
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.trv-client-group summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.trv-client-group summary::-webkit-details-marker {
  display: none;
}

.trv-client-group summary > span:first-child {
  display: grid;
  gap: 4px;
}

.trv-client-group summary strong {
  color: var(--trv-text);
  font-size: 18px;
  font-weight: 650;
}

.trv-client-group summary small {
  color: var(--trv-muted);
  font-size: 12px;
}

.trv-client-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trv-client-stats b {
  display: grid;
  gap: 3px;
  min-height: 48px;
  justify-content: end;
  border-left: 1px solid var(--trv-line);
  color: var(--trv-text);
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.trv-client-stats small {
  color: var(--trv-muted);
  font-size: 11px;
  font-weight: 500;
}

.trv-client-service-groups {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--trv-line);
  padding: 16px;
}

.trv-client-service-group {
  display: grid;
  gap: 8px;
}

.trv-client-service-group h3 {
  margin: 0;
  color: var(--trv-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.trv-client-project-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.trv-client-project-row h4 {
  margin: 8px 0 4px;
  font-size: 15px;
}

.trv-client-project-row h4 a,
.trv-row-link {
  color: var(--trv-text);
  text-decoration: none;
}

.trv-client-project-row small {
  color: var(--trv-muted);
}

.trv-client-project-money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trv-client-project-money span {
  display: grid;
  gap: 3px;
  color: var(--trv-muted);
  font-size: 11px;
}

.trv-client-project-money b {
  color: var(--trv-text);
  font-size: 13px;
}

.trv-row-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 600;
}

.trv-year-switch {
  display: flex;
  align-items: end;
  gap: 10px;
}

.trv-year-switch label {
  display: grid;
  gap: 6px;
  color: var(--trv-muted);
  font-size: 12px;
  font-weight: 600;
}

.trv-year-switch input {
  width: 110px;
  min-height: 42px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--trv-text);
  padding: 8px 10px;
}

.trv-calendar-year {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.trv-calendar-month {
  display: grid;
  gap: 10px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.trv-calendar-month header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--trv-line);
  padding-bottom: 10px;
}

.trv-calendar-month header strong {
  color: var(--trv-text);
  font-size: 16px;
}

.trv-calendar-month header span,
.trv-calendar-empty {
  color: var(--trv-muted);
  font-size: 12px;
}

.trv-calendar-weekdays,
.trv-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.trv-calendar-weekdays span {
  color: var(--trv-muted);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.trv-calendar-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 42px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--trv-text);
  padding: 6px;
}

.trv-calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.trv-calendar-day.has-items {
  border-color: rgba(25, 12, 49, 0.24);
  background: linear-gradient(180deg, #ffffff, #f7f3ff);
  box-shadow: inset 0 -2px 0 #d71920;
  cursor: pointer;
}

.trv-calendar-day > span {
  color: var(--trv-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.trv-calendar-day > small {
  color: #d71920;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.1;
}

.trv-calendar-items {
  display: grid;
  gap: 8px;
}

.trv-calendar-pop {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: min(260px, calc(100vw - 42px));
  border: 1px solid rgba(25, 12, 49, 0.18);
  border-radius: 8px;
  background: #190c31;
  color: #ffffff;
  padding: 12px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  font-style: normal;
}

.trv-calendar-day:hover .trv-calendar-pop,
.trv-calendar-day:focus-visible .trv-calendar-pop {
  display: grid;
  gap: 8px;
}

.trv-calendar-pop a {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.trv-calendar-pop b,
.trv-calendar-pop span,
.trv-calendar-pop small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trv-calendar-pop b {
  font-size: 13px;
}

.trv-calendar-pop span,
.trv-calendar-pop small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.trv-calendar-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trv-calendar-item strong,
.trv-calendar-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trv-calendar-item strong {
  font-size: 13px;
}

.trv-calendar-item small {
  color: var(--trv-muted);
  font-size: 11px;
}

.trv-compact-progress {
  height: 8px;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
}

.trv-compact-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--trv-primary), var(--trv-good));
}

.trv-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trv-project-head h3 {
  margin: 8px 0 2px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.trv-project-head h3 a {
  color: inherit;
  text-decoration: none;
}

.trv-project-head h3 a:hover {
  color: var(--trv-primary);
}

.trv-project-head p,
.trv-project-note,
.trv-project-card footer,
.trv-activity-row small {
  color: var(--trv-muted);
}

.trv-status-dot {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.14);
  color: var(--trv-purple);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.trv-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.trv-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--trv-primary), var(--trv-good));
}

.trv-project-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trv-project-numbers span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--trv-muted);
  font-size: 12px;
}

.trv-project-numbers b {
  color: var(--trv-text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.trv-inline-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 44px;
  gap: 8px;
}

.trv-icon-button {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--trv-primary);
  color: #07111f;
  font-weight: 600;
  cursor: pointer;
}

.trv-project-note {
  margin: 0;
  min-height: 44px;
  border-left: 3px solid var(--trv-accent);
  padding-left: 10px;
}

.trv-project-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}

.trv-project-card footer a {
  color: var(--trv-primary);
  text-decoration: none;
}

.trv-mobile-summary {
  display: none;
}

.trv-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.trv-detail-summary {
  display: grid;
  gap: 14px;
}

.trv-renewals {
  margin-top: 18px;
}

.trv-renewal-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--trv-line);
  color: inherit;
  text-decoration: none;
}

.trv-renewal-row > span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #fff4ec;
  color: var(--trv-accent);
  font-size: 12px;
  font-weight: 600;
}

.trv-renewal-row div {
  display: grid;
  min-width: 0;
}

.trv-renewal-row strong,
.trv-renewal-row small {
  overflow-wrap: anywhere;
}

.trv-renewal-row small {
  color: var(--trv-muted);
}

.trv-renewal-row b {
  color: var(--trv-accent);
  font-weight: 600;
}

.trv-pill.is-kritik {
  background: rgba(255, 122, 89, 0.14);
  color: var(--trv-accent);
}

.trv-pill.is-normal {
  background: rgba(25, 12, 49, 0.1);
  color: var(--trv-primary);
}

.trv-pill.is-dusuk {
  background: rgba(159, 176, 200, 0.12);
  color: var(--trv-muted);
}

.trv-activity {
  margin-top: 18px;
}

.trv-activity-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--trv-line);
}

.trv-activity-row span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--trv-primary);
  font-size: 12px;
  font-weight: 600;
}

.trv-activity-row div {
  display: grid;
  min-width: 0;
}

.trv-activity-row strong {
  overflow-wrap: anywhere;
}

.trv-login-chip {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--trv-primary), var(--trv-accent));
  color: #07111f;
  font-weight: 600;
}

.trv-app-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.trv-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 128px);
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.72);
  padding: 16px;
  backdrop-filter: blur(16px);
}

.trv-menu-toggle,
.trv-sidebar-backdrop,
.trv-sidebar-close {
  display: none;
}

.trv-sidebar-brand {
  display: none;
}

.trv-sidebar-brand::before {
  content: none;
}

.trv-sidebar-brand span,
.trv-sidebar-brand strong {
  display: none;
}

.trv-sidebar nav {
  display: grid;
  gap: 6px;
}

.trv-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  color: var(--trv-muted);
  padding: 0 12px;
  font-weight: 600;
  text-decoration: none;
}

.trv-sidebar nav a:hover,
.trv-sidebar nav a.is-active {
  background: rgba(25, 12, 49, 0.1);
  color: var(--trv-text);
}

.trv-sidebar-card {
  align-self: end;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(25, 12, 49, 0.18);
  border-radius: 8px;
  background: rgba(25, 12, 49, 0.06);
  padding: 14px;
}

.trv-sidebar-card span,
.trv-sidebar-card small {
  color: var(--trv-muted);
}

.trv-page {
  min-width: 0;
}

.trv-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.trv-page-head h1 {
  margin: 8px 0 8px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.08;
}

.trv-page-head p {
  max-width: 720px;
  margin: 0;
  color: var(--trv-muted);
  font-size: 17px;
}

.trv-head-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #190c31, #27124f);
  color: #ffffff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.trv-form-stage {
  margin-bottom: 18px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(18, 30, 49, 0.72);
  padding: 20px;
}

.trv-wide-form {
  display: grid;
  gap: 16px;
}

.trv-form-grid.is-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trv-form-grid.is-large .is-wide {
  grid-column: 1 / -1;
}

.trv-service-picker {
  display: inline-flex;
  gap: 6px;
  width: fit-content;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: #eef3f8;
  padding: 5px;
}

.trv-service-picker button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--trv-muted);
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}

.trv-service-picker button.is-active {
  background: #ffffff;
  color: var(--trv-text);
  box-shadow: 0 8px 20px rgba(31, 45, 61, 0.08);
}

.trv-service-panels {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.trv-service-panels > div {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trv-service-panels > div[hidden] {
  display: none !important;
}

.trv-service-panels h2 {
  margin: 0;
  font-size: 18px;
}

.trv-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trv-account-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.trv-account-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--trv-primary), var(--trv-accent));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.trv-dashboard-chart {
  min-height: 340px;
}

.trv-project-board {
  margin-top: 18px;
}

.trv-project-board > h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.trv-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.trv-report-grid div {
  display: grid;
  gap: 8px;
  min-height: 112px;
  border: 1px solid var(--trv-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.trv-report-grid span {
  color: var(--trv-muted);
  font-weight: 600;
}

.trv-report-grid strong {
  font-size: 24px;
}

@media (max-width: 1120px) {
  .trv-quick-actions,
  .trv-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trv-project-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .trv-client-group summary,
  .trv-client-project-row,
  .trv-calendar-year {
    grid-template-columns: minmax(0, 1fr);
  }

  .trv-client-stats b {
    justify-content: start;
    border-left: 0;
    border-top: 1px solid var(--trv-line);
    padding-top: 8px;
    text-align: left;
  }

  .trv-app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .trv-form-grid.is-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .trv-app-hero {
    grid-template-columns: 1fr;
  }

  .trv-app-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 76px;
  }

  .trv-brand-subtitle {
    display: none;
  }

  .trv-topbar {
    position: sticky;
  }

  .trv-app-layout {
    display: block;
  }

  .trv-menu-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 42;
    display: flex;
    flex-direction: column;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.16);
    gap: 3px;
    padding: 0;
  }

  .trv-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transform-origin: center;
  }

  .trv-menu-toggle span:nth-child(2) {
    width: 13px;
  }

  .trv-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 38;
    display: block;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .trv-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-rows: 52px minmax(0, 1fr) auto;
    width: min(82vw, 320px);
    min-height: 100vh;
    margin: 0;
    padding: 18px 16px 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--trv-shadow);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .trv-sidebar-close {
    justify-self: end;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--trv-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--trv-text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .trv-sidebar-card {
    display: flex;
  }

  .trv-sidebar-card {
    display: grid;
  }

  .trv-sidebar nav {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4px;
    overflow: visible;
  }

  .trv-sidebar nav a {
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  body.trv-menu-open {
    overflow: hidden;
  }

  body.trv-menu-open .trv-sidebar {
    transform: translateX(0);
  }

  body.trv-menu-open .trv-menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  body.trv-menu-open .trv-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .trv-quick-actions,
  .trv-project-cards,
  .trv-service-panels,
  .trv-form-grid,
  .trv-form-grid.is-large,
  .trv-report-grid,
  .trv-detail-grid {
    grid-template-columns: 1fr;
  }

  .trv-project-row {
    grid-template-columns: 1fr;
  }

  .trv-client-group summary {
    min-height: auto;
    padding: 14px;
  }

  .trv-client-stats,
  .trv-client-project-money {
    grid-template-columns: 1fr;
  }

  .trv-client-service-groups {
    padding: 12px;
  }

  .trv-client-project-row {
    gap: 10px;
  }

  .trv-year-switch {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .trv-year-switch input {
    width: 100%;
  }

  .trv-calendar-pop {
    position: static;
    display: grid;
    width: 100%;
    margin-top: 6px;
    background: rgba(25, 12, 49, 0.06);
    color: var(--trv-text);
    box-shadow: none;
  }

  .trv-calendar-pop span,
  .trv-calendar-pop small {
    color: var(--trv-muted);
  }

  .trv-row-link {
    width: 100%;
  }

  .trv-grid {
    gap: 12px;
  }

  .trv-dashboard-chart {
    min-height: 260px;
  }

  .trv-chart {
    height: 220px;
  }

  .trv-mobile-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
  }

  .trv-dashboard-metrics {
    display: none;
  }

  .trv-mobile-summary div {
    display: grid;
    gap: 4px;
    min-height: 76px;
    border: 1px solid var(--trv-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
  }

  .trv-mobile-summary span {
    color: var(--trv-muted);
    font-size: 11px;
    font-weight: 600;
  }

  .trv-mobile-summary strong {
    color: var(--trv-text);
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .trv-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trv-metric {
    min-height: 82px;
    padding: 10px;
  }

  .trv-metric span {
    font-size: 11px;
  }

  .trv-metric strong {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .trv-page-head {
    display: grid;
  }

  .trv-page-head h1 {
    font-size: 34px;
  }

  .trv-project-numbers {
    grid-template-columns: 1fr;
  }

  .trv-activity-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .trv-renewal-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .trv-renewal-row b {
    grid-column: 2;
  }

  .trv-activity-row b {
    grid-column: 2;
  }

  .trv-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .trv-footer-actions {
    width: 100%;
  }

  .trv-footer-actions a {
    flex: 1;
    text-align: center;
  }
}

/* Light application theme */
:root {
  --trv-bg: #f4f7fb;
  --trv-bg-2: #eaf1f8;
  --trv-surface: #ffffff;
  --trv-surface-2: #edf3f8;
  --trv-text: #172033;
  --trv-muted: #66748a;
  --trv-line: #d9e2ec;
  --trv-primary: #190c31;
  --trv-primary-dark: #27124f;
  --trv-accent: #ef6a3a;
  --trv-good: #24965a;
  --trv-warn: #b87912;
  --trv-purple: #7057d6;
  --trv-shadow: 0 18px 48px rgba(31, 45, 61, 0.12);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(25, 12, 49, 0.12), transparent 27%),
    radial-gradient(circle at 92% 8%, rgba(239, 106, 58, 0.1), transparent 30%),
    linear-gradient(135deg, var(--trv-bg), var(--trv-bg-2));
}

.trv-sidebar {
  background: rgba(255, 255, 255, 0.9);
}

.trv-button,
.trv-icon-button {
  color: #ffffff;
}

.trv-login-chip,
.trv-sidebar-brand span {
  color: #ffffff;
}

.trv-top-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.trv-button.is-secondary {
  background: #ffffff;
  color: var(--trv-text);
}

.trv-login-panel,
.trv-card,
.trv-form-card,
.trv-form-stage {
  background: rgba(255, 255, 255, 0.92);
}

.trv-metric {
  background: linear-gradient(145deg, #ffffff, #f3f7fb);
}

.trv-field input,
.trv-field select,
.trv-field textarea,
.trv-form-grid input,
.trv-form-grid select,
.trv-form-grid textarea,
.trv-inline-status input,
.trv-inline-status select {
  background: #ffffff;
}

.trv-project-card,
.trv-report-grid div {
  background: #ffffff;
}

.trv-progress {
  background: #e7edf4;
}

.trv-activity-row span {
  background: #edf6f4;
}

.trv-sidebar-card {
  background: #eefaf8;
}

.trv-menu-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.trv-menu-toggle span {
  background: #ffffff;
}


