.ttmt-tf-app, .ttmt-tf-access, .ttmt-tf-checkin {
  --ttmt-tf-primary: #ef6c2c;
  --tf-ink: #152f43;
  --tf-muted: #6b7e8d;
  box-sizing: border-box;
  color: var(--tf-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ttmt-tf-app *, .ttmt-tf-access *, .ttmt-tf-checkin * { box-sizing: border-box; }
.ttmt-tf-app { background: #f4f7f9; border: 1px solid #e1e8ed; border-radius: 18px; box-shadow: 0 18px 45px rgba(25,52,71,.08); overflow: hidden; }
.ttmt-tf-app__header { align-items: center; background: linear-gradient(135deg, var(--ttmt-tf-primary), #d9531b); color: #fff; display: flex; justify-content: space-between; padding: 28px 32px; }
.ttmt-tf-app__header h2 { color: #fff; font-size: clamp(25px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 3px 0 5px; }
.ttmt-tf-app__header p { color: rgba(255,255,255,.86); margin: 0; }
.ttmt-tf-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; opacity: .82; }
.ttmt-tf-month-filter { align-items: end; display: flex; gap: 8px; }
.ttmt-tf-month-filter label { color: rgba(255,255,255,.8); display: grid; font-size: 11px; font-weight: 700; gap: 4px; letter-spacing: .08em; text-transform: uppercase; }
.ttmt-tf-month-filter input { background: #fff; border: 0; border-radius: 8px; color: #284152; font: inherit; min-height: 40px; padding: 0 10px; }
.ttmt-tf-month-filter button { background: #17374a; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 750; min-height: 40px; padding: 0 15px; }

.ttmt-tf-nav { background: #fff; border-bottom: 1px solid #e0e7ec; display: flex; gap: 8px; padding: 0 24px; }
.ttmt-tf-nav a { border-bottom: 3px solid transparent; color: #637687; font-size: 14px; font-weight: 700; padding: 15px 12px 12px; text-decoration: none !important; }
.ttmt-tf-nav a:hover, .ttmt-tf-nav a.is-active { border-bottom-color: var(--ttmt-tf-primary); color: var(--ttmt-tf-primary); }

.ttmt-tf-front-kpis { display: grid; gap: 15px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 24px 0; }
.ttmt-tf-front-kpis article { background: #fff; border: 1px solid #e2e8ed; border-radius: 13px; box-shadow: 0 8px 22px rgba(26,52,70,.04); display: grid; gap: 5px; min-width: 0; padding: 18px; position: relative; }
.ttmt-tf-front-kpis article::before { border-radius: 10px; content: ''; inset: 10px auto 10px 0; position: absolute; width: 4px; }
.ttmt-tf-front-kpis article > span { color: #718291; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ttmt-tf-front-kpis strong { color: var(--tf-ink); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttmt-tf-front-kpis small { color: #82909b; font-size: 12px; }
.ttmt-tf-front-kpis .is-orange::before { background: #ef7430; }
.ttmt-tf-front-kpis .is-green::before { background: #2e9c55; }
.ttmt-tf-front-kpis .is-blue::before { background: #2589bd; }
.ttmt-tf-front-kpis .is-pink::before { background: #c34bb3; }

.ttmt-tf-front-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); padding: 18px 24px 24px; }
.ttmt-tf-front-card { background: #fff; border: 1px solid #e2e8ed; border-radius: 14px; box-shadow: 0 8px 22px rgba(26,52,70,.04); min-width: 0; padding: 20px; }
.ttmt-tf-front-card--full { margin: 22px 24px 24px; }
.ttmt-tf-section-title { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 18px; }
.ttmt-tf-section-title span { color: var(--ttmt-tf-primary); display: block; font-size: 10px; font-weight: 850; letter-spacing: .12em; margin-bottom: 3px; }
.ttmt-tf-section-title h3 { color: var(--tf-ink); font-size: 18px; font-weight: 800; line-height: 1.25; margin: 0; }
.ttmt-tf-section-title > b { background: #fff1e9; border-radius: 999px; color: #b94a18; font-size: 12px; padding: 6px 10px; white-space: nowrap; }

.ttmt-tf-front-ranking { display: grid; gap: 15px; }
.ttmt-tf-front-ranking article { align-items: center; display: flex; gap: 12px; }
.ttmt-tf-front-ranking .rank { align-items: center; background: #fff0e7; border-radius: 50%; color: #c8531f; display: flex; flex: 0 0 31px; font-size: 13px; font-weight: 850; height: 31px; justify-content: center; }
.ttmt-tf-front-ranking article:first-child .rank { background: #ffe6a6; color: #8a5b00; }
.ttmt-tf-front-ranking article > div { flex: 1; min-width: 0; }
.ttmt-tf-front-ranking header { display: flex; gap: 12px; justify-content: space-between; }
.ttmt-tf-front-ranking strong { color: #263e50; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttmt-tf-front-ranking em { color: #365266; font-size: 13px; font-style: normal; font-weight: 750; white-space: nowrap; }
.ttmt-tf-front-ranking p { color: #80909d; font-size: 11px; margin: 2px 0 6px; }
.ttmt-tf-front-ranking article > div > i { background: #eef2f5; border-radius: 5px; display: block; height: 6px; overflow: hidden; }
.ttmt-tf-front-ranking i b { background: linear-gradient(90deg, var(--ttmt-tf-primary), #f1b04c); border-radius: inherit; display: block; height: 100%; }

.ttmt-tf-donut-row { align-items: center; display: flex; gap: 24px; justify-content: center; padding: 12px 0; }
.ttmt-tf-donut { align-items: center; background: conic-gradient(#2fa25a 0 var(--present), #edf1f4 var(--present) 360deg); border-radius: 50%; display: flex; flex: 0 0 126px; flex-direction: column; height: 126px; justify-content: center; position: relative; }
.ttmt-tf-donut::after { background: #fff; border-radius: 50%; content: ''; inset: 13px; position: absolute; }
.ttmt-tf-donut strong, .ttmt-tf-donut span { position: relative; z-index: 1; }
.ttmt-tf-donut strong { color: #1d3a4e; font-size: 26px; line-height: 1; }
.ttmt-tf-donut span { color: #7a8b97; font-size: 11px; margin-top: 4px; }
.ttmt-tf-donut-row ul { display: grid; gap: 7px; list-style: none; margin: 0; min-width: 140px; padding: 0; }
.ttmt-tf-donut-row li { align-items: center; color: #607483; display: flex; font-size: 12px; gap: 7px; }
.ttmt-tf-donut-row li i { border-radius: 50%; height: 8px; width: 8px; }
.ttmt-tf-donut-row li b { color: #2a4558; margin-left: auto; }
.ttmt-tf-donut-row .is-present { background: #2fa25a; }
.ttmt-tf-donut-row .is-late { background: #e37b33; }
.ttmt-tf-donut-row .is-remote { background: #2789c0; }
.ttmt-tf-donut-row .is-absent { background: #d94747; }
.ttmt-tf-donut-row .is-leave { background: #d5a327; }

.ttmt-tf-front-table-wrap { overflow-x: auto; width: 100%; }
.ttmt-tf-front-table-wrap table { border-collapse: collapse; font-size: 12px; min-width: 1050px; width: 100%; }
.ttmt-tf-front-table-wrap th { background: #176b2a; color: #fff; font-weight: 750; padding: 11px 9px; text-align: left; white-space: nowrap; }
.ttmt-tf-front-table-wrap td { border-bottom: 1px solid #e4e9ed; color: #405767; padding: 10px 9px; vertical-align: top; }
.ttmt-tf-front-table-wrap tbody tr:nth-child(even) { background: #fafcfd; }
.ttmt-tf-front-table-wrap tbody tr:hover { background: #fff7f1; }
.ttmt-tf-front-table-wrap .is-number { font-weight: 750; text-align: right; white-space: nowrap; }
.ttmt-tf-front-attendance { min-width: 1500px !important; }
.ttmt-tf-front-attendance th { background: #18617c; text-align: center; }
.ttmt-tf-front-attendance th small { display: block; font-weight: 500; opacity: .78; }
.ttmt-tf-front-attendance td { text-align: center; }
.ttmt-tf-front-attendance td:nth-child(3) { text-align: left; white-space: nowrap; }
.ttmt-tf-mark { align-items: center; background: #f0f3f5; border-radius: 6px; color: #93a0a9; display: inline-flex; font-size: 11px; font-weight: 850; height: 25px; justify-content: center; width: 25px; }
.ttmt-tf-mark.status-present { background: #dff4e6; color: #19783d; }
.ttmt-tf-mark.status-absent { background: #fde5e5; color: #ab2e2e; }
.ttmt-tf-mark.status-leave { background: #fff0c9; color: #8a6207; }
.ttmt-tf-mark.status-late { background: #ffe9db; color: #a64918; }
.ttmt-tf-mark.status-remote { background: #dff1ff; color: #176a98; }
.ttmt-tf-front-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ttmt-tf-front-legend span { align-items: center; color: #6d7f8c; display: flex; font-size: 11px; gap: 4px; }
.ttmt-tf-front-legend i { border-radius: 50%; height: 8px; width: 8px; }
.ttmt-tf-front-legend .present { background: #2fa25a; }
.ttmt-tf-front-legend .absent { background: #d94747; }
.ttmt-tf-front-legend .leave { background: #d5a327; }
.ttmt-tf-front-legend .late { background: #e37b33; }
.ttmt-tf-front-legend .remote { background: #2789c0; }

.ttmt-tf-checkin { align-items: center; background: #fff7f1; border: 1px solid #f3d8c7; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 16px; padding: 14px; }
.ttmt-tf-checkin > div { display: grid; }
.ttmt-tf-checkin > div span { color: var(--ttmt-tf-primary); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.ttmt-tf-checkin > div strong { font-size: 14px; }
.ttmt-tf-checkin > div small { color: #758794; }
.ttmt-tf-checkin p { color: #5a6d7a; font-size: 12px; margin: 0; }
.ttmt-tf-checkin button { background: var(--ttmt-tf-primary); border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 750; padding: 10px 14px; }
.ttmt-tf-checkin-done, .ttmt-tf-checkin-success { color: #18753b !important; font-weight: 700; }
.ttmt-tf-checkin-inline .ttmt-tf-checkin { margin-top: 18px; }
.ttmt-tf-access { background: #fff; border: 1px solid #dce5eb; border-radius: 14px; margin: 20px auto; max-width: 460px; padding: 24px; }
.ttmt-tf-access h3 { color: #1d3b50; margin-top: 0; }
.ttmt-tf-access label { display: grid; margin-bottom: 10px; }
.ttmt-tf-access input[type="text"], .ttmt-tf-access input[type="password"] { border: 1px solid #c9d5dd; border-radius: 7px; min-height: 40px; width: 100%; }
.ttmt-tf-access input[type="submit"] { background: var(--ttmt-tf-primary); border: 0; border-radius: 7px; color: #fff; cursor: pointer; padding: 10px 16px; }
.ttmt-tf-empty { color: #718391; font-size: 13px; padding: 20px 0; }
.ttmt-tf-app__footer { background: #fff; border-top: 1px solid #e3e9ee; color: #83919b; display: flex; font-size: 10px; justify-content: space-between; padding: 11px 24px; }

@media (max-width: 900px) {
  .ttmt-tf-front-kpis { grid-template-columns: repeat(2, 1fr); }
  .ttmt-tf-front-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ttmt-tf-app__header { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px 18px; }
  .ttmt-tf-month-filter { width: 100%; }
  .ttmt-tf-month-filter label { flex: 1; }
  .ttmt-tf-month-filter input { width: 100%; }
  .ttmt-tf-nav { overflow-x: auto; padding: 0 12px; }
  .ttmt-tf-front-kpis { grid-template-columns: 1fr; padding: 16px 14px 0; }
  .ttmt-tf-front-grid { padding: 14px; }
  .ttmt-tf-front-card--full { margin: 16px 14px; }
  .ttmt-tf-section-title { align-items: flex-start; flex-direction: column; }
  .ttmt-tf-donut-row { align-items: flex-start; flex-direction: column; }
  .ttmt-tf-app__footer { gap: 7px; }
}

