.twg-app {
  --ink:#0d1511;
  --green:#39e600;
  --muted:#52645b;
  --line:#dbe4de;
  color:var(--ink);
  max-width:1520px;
  margin:24px 22px 50px 2px;
  font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
.twg-app * {
  box-sizing:border-box
}
.twg-app h1,.twg-app h2,.twg-app h3 {
  line-height:1.2;
  color:inherit
}
.twg-app h2 {
  font-size:20px;
  margin:0 0 18px
}
.twg-app h3 {
  font-size:19px;
  margin:4px 0
}
.twg-app p {
  font-size:inherit
}
.twg-header {
  background:#0d1511;
  color:#f7f9f8;
  border-radius:20px 20px 0 0;
  padding:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px
}
.twg-eyebrow {
  font-size:11px;
  font-weight:800;
  letter-spacing:2px
}
.twg-header .twg-eyebrow {
  color:#78ee54
}
.twg-header h1 {
  font-size:34px;
  font-weight:750;
  margin:12px 0
}
.twg-header p {
  color:#c3d0c8;
  margin:0
}
.twg-actions,.twg-row-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}
.twg-app .twg-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:46px;
  padding:10px 17px;
  border-radius:9px;
  border:1px solid #c6d4cb;
  background:#fff;
  color:#17201e;
  font:inherit;
  font-weight:650;
  cursor:pointer;
  text-decoration:none;
  line-height:1.3
}
.twg-app .twg-primary {
  background:#39e600;
  border-color:#39e600;
  color:#0d1511
}
.twg-app .twg-light {
  background:#23382c;
  color:#f7f9f8;
  border-color:#52645b
}
.twg-app .twg-danger {
  color:#a22424;
  border-color:#e7bdbd
}
.twg-button:disabled {
  opacity:.65;
  cursor:wait
}
.twg-app :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid #227747;
  outline-offset:3px;
  box-shadow:0 0 0 5px #fff
}
.twg-nav {
  display:flex;
  gap:6px;
  background:#17201e;
  border-radius:0 0 16px 16px;
  padding:8px 24px;
  margin-bottom:24px;
  overflow-x:auto
}
.twg-nav a {
  color:#dbe4de;
  padding:13px 17px;
  text-decoration:none;
  font-weight:650;
  white-space:nowrap;
  border-radius:8px
}
.twg-nav a[aria-current] {
  background:#304638;
  color:#98ff77
}
.twg-panel,.twg-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:25px;
  margin-bottom:22px;
  min-width:0
}
.twg-cards {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:15px;
  margin-bottom:22px
}
.twg-card {
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px
}
.twg-card>span {
  color:#45574c;
  font-size:13px;
  font-weight:650
}
.twg-card strong {
  font-size:clamp(23px,2.1vw,32px);
  line-height:1.2;
  overflow-wrap:anywhere;
  letter-spacing:-.8px
}
.twg-card small {
  color:var(--muted);
  font-size:12px
}
.twg-card:nth-child(5) {
  background:#e8f9e3;
  border-color:#badfae
}
.twg-grid {
  display:grid;
  gap:20px
}
.twg-two {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.twg-three {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.twg-field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  margin-bottom:15px
}
.twg-field label {
  font-weight:650;
  font-size:14px
}
.twg-app .twg-field :is(input,select,textarea) {
  width:100%;
  max-width:none;
  min-height:48px;
  border:1px solid #a4b6aa;
  border-radius:8px;
  padding:10px 12px;
  background:#fcfdfc;
  color:#17201e;
  font:inherit;
  box-shadow:none
}
.twg-field small,.twg-muted {
  color:var(--muted)
}
.twg-save {
  position:sticky;
  bottom:0;
  z-index:3;
  padding:15px 20px;
  background:#f7f9f8;
  border:1px solid var(--line);
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 22px;
  box-shadow:0 -3px 18px #0d151108
}
.twg-save span {
  font-size:12px;
  color:var(--muted);
  margin-left:auto
}
.twg-calculations {
  display:flex;
  gap:40px;
  padding:20px;
  background:#f0f5f1;
  border-radius:10px
}
.twg-calculations strong {
  display:block;
  font-size:28px;
  line-height:1.5
}
.twg-calculations span {
  font-size:12px
}
.twg-healthy {
  color:#206b24!important
}
.twg-low {
  color:#825900!important
}
.twg-loss {
  color:#b42323!important
}
.twg-estimate {
  background:#17201e;
  color:#f7f9f8
}
.twg-quote {
  display:block;
  font-size:58px;
  letter-spacing:-2px;
  margin:16px 0;
  color:#7cf353;
  overflow-wrap:anywhere
}
.twg-estimate p {
  color:#cbd8ce
}
.twg-breakdown {
  margin:25px 0 0
}
.twg-breakdown>div {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:10px 0;
  border-bottom:1px solid #46534a
}
.twg-breakdown dd {
  margin:0;
  font-weight:700;
  white-space:nowrap
}
.twg-breakdown>div:last-child {
  margin-top:12px;
  border:0;
  color:#a3ff85
}
.twg-notice {
  background:#eaf6e5;
  border-left:4px solid #309917;
  padding:16px 20px;
  border-radius:8px;
  margin-bottom:22px
}
.twg-error {
  background:#fff0ed;
  border-color:#b42323;
  color:#8e2626
}
.twg-filters {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:end
}
.twg-filters .twg-field {
  margin:0
}
.twg-list-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:24px 0 16px;
  gap:12px
}
.twg-records {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.twg-record {
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  min-width:0
}
.twg-record-top {
  display:flex;
  justify-content:space-between;
  gap:12px
}
.twg-record-top>div {
  min-width:0
}
.twg-record-top h3,.twg-record-top p {
  overflow-wrap:anywhere
}
.twg-record-top span {
  font-size:12px;
  color:var(--muted)
}
.twg-record-top strong {
  font-size:21px;
  white-space:nowrap
}
.twg-record-top p {
  font-size:13px;
  margin:8px 0 15px;
  color:var(--muted)
}
.twg-record-metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  background:#f2f6f3;
  padding:12px;
  border-radius:8px;
  font-size:12px
}
.twg-record-metrics b {
  display:block;
  font-size:14px;
  overflow-wrap:anywhere
}
.twg-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:15px 0
}
.twg-tag {
  padding:4px 9px;
  border-radius:20px;
  background:#edf1ee;
  color:#46564b;
  font-size:12px;
  font-weight:650
}
.twg-tag-paid,.twg-tag-completed {
  background:#e1f5dc;
  color:#24641c
}
.twg-tag-unpaid,.twg-tag-part_paid,.twg-tag-quoted {
  background:#fff0c4;
  color:#715208
}
.twg-tag-cancelled {
  background:#fbe1de;
  color:#992925
}
.twg-row-actions {
  gap:6px
}
.twg-row-actions .twg-button {
  padding:9px 11px;
  font-size:13px
}
.twg-empty {
  text-align:center;
  padding:44px 20px;
  color:var(--muted)
}
.twg-empty .dashicons {
  font-size:32px;
  width:32px;
  height:32px;
  margin-bottom:15px
}
.twg-details summary {
  cursor:pointer;
  font-weight:700;
  font-size:18px;
  min-height:44px
}
.twg-details[open] summary {
  margin-bottom:22px
}
.twg-pagination ul {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  list-style:none
}
.twg-pagination a,.twg-pagination span {
  display:block;
  padding:10px 16px;
  border-radius:8px;
  border:1px solid var(--line)
}
.twg-progress {
  background:#e3ebe5;
  height:17px;
  border-radius:20px;
  overflow:hidden;
  margin:24px 0
}
.twg-progress span {
  display:block;
  height:100%;
  background:#309917
}
.twg-chart-key {
  display:flex;
  gap:20px;
  font-size:12px;
  margin-bottom:16px
}
.twg-chart-key span:before {
  content:'';
  display:inline-block;
  width:10px;
  height:10px;
  background:#287844;
  margin-right:6px
}
.twg-chart-key span+span:before {
  background:#70bc56
}
.twg-chart-row {
  display:grid;
  grid-template-columns:70px 1fr;
  gap:3px 12px;
  margin-bottom:7px
}
.twg-chart-row time {
  font-size:11px;
  grid-row:span 2
}
.twg-chart-row div {
  height:6px;
  background:#f0f4f1
}
.twg-chart-row i {
  display:block;
  height:100%;
  background:#287844
}
.twg-chart-row div+div i {
  background:#70bc56
}
.twg-danger-zone {
  margin-top:35px
}
.twg-trend-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px
}
.twg-trend-table th,.twg-trend-table td {
  text-align:left;
  padding:8px;
  border-bottom:1px solid var(--line)
}

@media(min-width:1500px) {
  .twg-records {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

}

@media(max-width:1200px) {
  .twg-cards {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.twg-records {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.twg-header {
  padding:25px
}
.twg-header h1 {
  font-size:29px
}

}

@media(max-width:782px) {
  .twg-app {
  margin:15px 10px 30px 0
}
.twg-header {
  flex-direction:column;
  align-items:flex-start;
  padding:25px 20px
}
.twg-header h1 {
  font-size:28px
}
.twg-nav {
  padding:7px
}
.twg-nav a {
  padding:12px
}
.twg-cards {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.twg-card {
  padding:17px
}
.twg-grid.twg-three,.twg-grid.twg-two {
  grid-template-columns:1fr
}
.twg-panel {
  padding:20px
}
.twg-filters {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.twg-records {
  grid-template-columns:1fr
}
.twg-save {
  padding:12px;
  bottom:0
}
.twg-save span {
  display:none
}
.twg-save .twg-primary {
  flex:1
}
.twg-calculations {
  gap:20px;
  flex-wrap:wrap
}
.twg-quote {
  font-size:49px
}
.twg-field :is(input,select,textarea) {
  font-size:16px!important
}

}

@media(max-width:380px) {
  .twg-cards,.twg-filters {
  grid-template-columns:1fr
}
.twg-record-top {
  flex-direction:column
}
.twg-list-head {
  align-items:flex-start;
  flex-direction:column
}

}

@media(max-width:600px) {
  .twg-nav {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:visible;
  gap:2px
}
.twg-nav a {
  text-align:center;
  padding:12px 5px;
  font-size:13px
}

}

/* Standalone staff homepage; WordPress/theme styles are not loaded here. */
.twg-home { margin: 0; padding: 28px; background: #edf2ee; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.twg-home .twg-app { margin: 0 auto 30px; }
.twg-home .twg-login { max-width: 540px; margin-top: 6vh; }
.twg-home .twg-login .twg-header { border-radius: 20px 20px 0 0; }
.twg-home .twg-login .twg-panel { border-radius: 0 0 20px 20px; padding: 30px; }
.twg-home .twg-login button { width: 100%; }
.twg-home .twg-session { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; color: #52645b; }
.twg-home .twg-field input[type=password] { font-size: 20px; letter-spacing: 3px; }
.twg-home-error { max-width: 1520px; margin: auto; }
@media (max-width: 600px) {
  .twg-home { padding: 12px; }
  .twg-home .twg-login { margin-top: 15px; }
  .twg-home .twg-login .twg-panel { padding: 22px; }
}
