/* Inlined FieldSync design system */
/* FieldSync UI Design System -------------------------------------------------
   Palette tokens and component primitives derived from soft, neo-minimal
   productivity dashboards. Use these styles as a foundation for both mobile
   and desktop task management experiences with rounded geometry, layered depth,
   and vibrant accent highlights. */

:root {
  /* Color palette */
  --color-neutral-50: #f7fcfb;
  --color-neutral-100: #eff7f5;
  --color-neutral-200: #dff2f0;
  --color-neutral-300: #c7e2de;
  --color-neutral-500: #8ba9a7;
  --color-neutral-600: #5d7c79;
  --color-neutral-800: #234440;
  --color-neutral-900: #102b29;

  --color-primary-50: #ecfbf6;
  --color-primary-100: #c8f3e6;
  --color-primary-200: #9be6d3;
  --color-primary-300: #6fd9c2;
  --color-primary-400: #34ccb3;
  --color-primary-500: #04bf9d;
  --color-primary-600: #038c8c;
  --color-primary-700: #047074;
  --color-primary-800: #025e73;
  --color-primary-900: #034757;

  --color-accent-cool-200: #b7f0dc;
  --color-accent-cool-400: #64ddbc;
  --color-accent-cool-600: #04bf9d;

  --color-accent-warm-200: #eefbc7;
  --color-accent-warm-400: #dbf288;
  --color-accent-warm-600: #afd45d;

  --color-accent-deep-200: #7fcbd0;
  --color-accent-deep-400: #038c8c;
  --color-accent-deep-600: #025e73;

  --color-success: #04bf9d;
  --color-info: #038c8c;
  --color-warning: #dbf288;
  --color-danger: #f45b69;

  --color-surface-base: #ffffff;
  --color-surface-frosted: rgba(255, 255, 255, 0.85);
  --color-surface-alt: #dff2f0;

  --color-text-strong: var(--color-neutral-900);
  --color-text-default: #1f4041;
  --color-text-soft: var(--color-neutral-600);
  --color-text-inverse: #ffffff;
  --color-divider: #d2e6e2;
  --color-focus-ring: rgba(3, 140, 140, 0.32);

  /* Typography */
  --font-family-sans: "Source Sans Pro", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-weight-thin: 100;
  --font-weight-extra-light: 200;
  --font-weight-light: 300;
  --font-weight-regular: var(--font-weight-light);
  --font-weight-medium: var(--font-weight-extra-light);
  --font-weight-semibold: var(--font-weight-light);
  --font-weight-bold: var(--font-weight-light);

  --font-size-2xs: 0.7rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-display: clamp(2.3rem, 3vw + 1.5rem, 3.4rem);

  /* Spacing scale */
  --space-4xs: 0.125rem;
  --space-3xs: 0.25rem;
  --space-2xs: 0.375rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.75rem;
  --space-3xl: 3.5rem;

  /* Radius & depth */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 32px rgba(35, 68, 64, 0.12);
  --shadow-elevated: 0 26px 52px rgba(20, 60, 64, 0.18);
  --shadow-card: 0 18px 42px rgba(18, 60, 59, 0.16);
  --shadow-floating: 0 38px 54px rgba(9, 46, 51, 0.2);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --border-light: 1px solid rgba(255, 255, 255, 0.35);
  --border-strong: 1px solid rgba(35, 68, 64, 0.14);

  /* Motion */
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 240ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1080px;
  --bp-xl: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-default);
  background: linear-gradient(155deg, var(--color-neutral-200) 0%, #ffffff 48%, var(--color-neutral-50) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-700);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-strong);
  margin: 0;
  font-weight: var(--font-weight-semibold);
}

p {
  margin: 0;
  line-height: 1.55;
  color: var(--color-text-default);
}

/* Layout scaffolding ------------------------------------------------------ */

.app-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: var(--space-lg);
  padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
  max-width: 1200px;
  margin: 0 auto var(--space-3xl);
}

.app-shell--three-column {
  grid-template-columns: minmax(220px, 260px) minmax(320px, 1fr) minmax(260px, 320px);
}

.app-shell__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface-base);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.app-shell__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.app-shell__aux {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.surface-panel {
  background: var(--color-surface-base);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
}

.surface-panel--frosted {
  background: var(--color-surface-frosted);
  border: var(--border-light);
}

.surface-panel--gradient {
  background: linear-gradient(150deg, var(--color-primary-700) 0%, var(--color-primary-800) 60%, var(--color-primary-900) 100%);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-floating);
}

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface-base);
  box-shadow: var(--shadow-soft);
}

.topbar__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-neutral-100);
  color: var(--color-text-soft);
  box-shadow: var(--shadow-inset), var(--shadow-soft);
}

.search-field input {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  outline: none;
  min-width: 140px;
}

/* Navigation -------------------------------------------------------------- */

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-text-soft);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-item:hover {
  color: var(--color-text-strong);
  background: var(--color-neutral-100);
}

.nav-item.is-active {
  color: var(--color-text-inverse);
  background: linear-gradient(145deg, var(--color-primary-500), var(--color-primary-700));
  box-shadow: var(--shadow-soft);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-surface-base);
  box-shadow: var(--shadow-floating);
}

/* Card system ------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--color-surface-base);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-floating);
}

.card--compact {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.card--tinted {
  background: var(--color-neutral-100);
  box-shadow: none;
}

.card--primary {
  background: linear-gradient(150deg, var(--color-primary-500) 0%, var(--color-primary-600) 40%, var(--color-primary-800) 100%);
  color: var(--color-text-inverse);
}

.card--accent-cool {
  background: linear-gradient(150deg, var(--color-accent-cool-400), var(--color-accent-cool-600));
  color: var(--color-text-inverse);
}

.card--accent-warm {
  background: linear-gradient(150deg, var(--color-accent-warm-400), var(--color-accent-warm-600));
  color: var(--color-text-inverse);
}

.card--accent-deep {
  background: linear-gradient(160deg, var(--color-accent-deep-600), var(--color-accent-deep-400));
  color: var(--color-text-inverse);
}

.card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.card__meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  color: var(--color-text-soft);
  font-size: var(--font-size-sm);
}

.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Buttons & chips --------------------------------------------------------- */


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  outline: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  border-radius: 30px;
  border: 1px solid #8F9092;
  transition: all 0.2s ease;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #606060;
  text-shadow: 0 1px #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.04);
  background-color: transparent;
}

/* Split submit keeps squared inner edges */
.submit-main {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.submit-toggle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn .btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.btn:hover {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1;
  transform: none;
}

.btn:active,
.btn:focus {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Dark mode buttons */
html[data-theme="dark"] .btn {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  text-shadow: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .btn--primary {
  background: #0f2d37;
  border-color: rgba(95, 225, 221, 0.4);
  color: #e9fbff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .btn:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.55);
  border-color: rgba(95, 225, 221, 0.6);
}
html[data-theme="dark"] #submitBtn {
  background: linear-gradient(140deg, rgba(42, 93, 60, 0.95) 0%, rgba(29, 74, 45, 0.95) 100%);
  border-color: rgba(111, 212, 146, 0.62);
  color: #ecfff1;
  text-shadow: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(111, 212, 146, 0.2);
}
html[data-theme="dark"] #submitBtn:hover {
  background: linear-gradient(140deg, rgba(52, 108, 70, 0.98) 0%, rgba(36, 86, 53, 0.98) 100%);
  border-color: rgba(129, 224, 163, 0.72);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.65), 0 6px 10px rgba(111, 212, 146, 0.24);
}

html[data-theme="dark"] .btn:active,
html[data-theme="dark"] .btn:focus {
  box-shadow: 0 0 0 3px rgba(95, 225, 221, 0.28), 0 10px 22px rgba(0, 0, 0, 0.5);
  border-color: rgba(95, 225, 221, 0.7);
}
html[data-theme="dark"] #submitBtn:active,
html[data-theme="dark"] #submitBtn:focus {
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.65), inset 0 0 10px rgba(255, 255, 255, 0.06), 0 0 0 2px rgba(129, 224, 163, 0.25);
  border-color: rgba(129, 224, 163, 0.72);
}

#viewLogBtn{
  background-image:linear-gradient(to top,#fff4d6 0%,#fff9e8 85%,#fffdf5 100%);
  border-color:#e8c174;
  color:#725200;
}
#viewLogBtn .view-log-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:8px;
  padding:0 6px;
  border-radius:999px;
  background:#b42318;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,0.16);
}
#submitBtn{
  background-image:linear-gradient(to top,#d9f0d8 0%,#edf9ec 85%,#f8fef8 100%);
  border-color:#7fb98a;
  color:#235f2f;
  border-right:1px solid #7fb98a;
  border-radius:30px;
}
#submitBtn .submit-check{
  font-size:18px;
  font-weight:700;
  line-height:1;
}
#resetFormBtn{
  background-image:linear-gradient(to top,#fde4e7 0%,#fff1f2 85%,#fff8f8 100%);
  border-color:#e08a8f;
  color:#7a1f1f;
}

#uploadBtn{
  background-image:linear-gradient(to top,#e3f2ff 0%,#f2f8ff 85%,#f9fcff 100%);
  border-color:#8ab7e6;
  color:#0f3c6e;
  text-shadow:none;
  box-shadow:0 12px 24px rgba(60,119,173,0.16);
}
#uploadBtn:hover{
  box-shadow:0 14px 26px rgba(60,119,173,0.22);
}
#uploadBtn:active,
#uploadBtn:focus{
  box-shadow:0 0 0 3px rgba(60,119,173,0.22), 0 10px 22px rgba(60,119,173,0.2);
  transform: translateY(0);
}
#uploadBtn.upload-required{
  background-image:linear-gradient(to top,#ffbcbc 0%,#ffd8d8 85%,#ffeded 100%);
  border-color:#d12a3f;
  color:#7a0d1c;
  box-shadow:0 0 0 3px rgba(209,42,63,0.3), 0 12px 24px rgba(209,42,63,0.26);
}
#uploadBtn.upload-required:hover{
  box-shadow:0 0 0 3px rgba(209,42,63,0.34), 0 14px 26px rgba(209,42,63,0.3);
}
#uploadBtn.upload-required:active,
#uploadBtn.upload-required:focus{
  box-shadow:0 0 0 3px rgba(209,42,63,0.36), 0 10px 22px rgba(209,42,63,0.32);
}
html[data-theme="dark"] #uploadBtn{
  background-image:linear-gradient(135deg,#1f3b55,#305b85);
  border-color:rgba(138,183,230,0.6);
  color:#e9f3ff;
  box-shadow:0 12px 24px rgba(48,102,158,0.35);
}
html[data-theme="dark"] #uploadBtn:hover{
  box-shadow:0 16px 28px rgba(48,102,158,0.4);
}
html[data-theme="dark"] #uploadBtn:active,
html[data-theme="dark"] #uploadBtn:focus{
  box-shadow:0 0 0 3px rgba(48,102,158,0.32), 0 12px 24px rgba(48,102,158,0.35);
}
html[data-theme="dark"] #uploadBtn.upload-required{
  background-image:linear-gradient(135deg,#7c1a23,#b22431);
  border-color:rgba(255,154,165,0.82);
  color:#ffeef0;
  box-shadow:0 0 0 3px rgba(255,101,119,0.4), 0 12px 24px rgba(148,27,40,0.48);
}
html[data-theme="dark"] #uploadBtn.upload-required:hover{
  box-shadow:0 0 0 3px rgba(255,101,119,0.44), 0 14px 26px rgba(148,27,40,0.52);
}
html[data-theme="dark"] #uploadBtn.upload-required:active,
html[data-theme="dark"] #uploadBtn.upload-required:focus{
  box-shadow:0 0 0 3px rgba(255,101,119,0.48), 0 12px 24px rgba(148,27,40,0.56);
}

/* Dark mode split submit */
html[data-theme="dark"] .submit-main,
html[data-theme="dark"] .submit-toggle {
  background: #0f2d37 !important;
  background-image: none !important;
  border-color: rgba(95, 225, 221, 0.55);
  color: #e9fbff;
  box-shadow: none;
}

html[data-theme="dark"] .submit-toggle::before {
  background: rgba(95, 225, 221, 0.4);
}

html[data-theme="dark"] .submit-toggle svg {
  stroke: #e9fbff;
}

html[data-theme="dark"] .submit-main:hover,
html[data-theme="dark"] .submit-toggle:hover {
  background: #123544 !important;
  border-color: rgba(95, 225, 221, 0.75);
  box-shadow: none;
}

html[data-theme="dark"] .submit-main:focus,
html[data-theme="dark"] .submit-toggle:focus {
  box-shadow: 0 0 0 2px rgba(95, 225, 221, 0.24);
  border-color: rgba(95, 225, 221, 0.65);
}

html[data-theme="dark"] .submit-main,
html[data-theme="dark"] .submit-toggle,
html[data-theme="dark"] .submit-main .submit-label {
  color: #e9fbff !important;
}

html[data-theme="dark"] .submit-split .split-menu {
  background: var(--pgds-card);
  border-color: var(--pgds-border);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .submit-main .btn-icon svg,
html[data-theme="dark"] .submit-toggle svg {
  stroke: #e9fbff;
  fill: #e9fbff;
}

.btn.primary,
.btn--primary {
  background-image: linear-gradient(to top, #cfeeee 0%, #ffffff 85%, #fdfdfd 100%);
  border-color: #7fbcbc;
  color: #34585a;
}

.btn--secondary {
  background: var(--color-neutral-100);
  color: var(--color-text-strong);
  box-shadow: var(--shadow-inset), var(--shadow-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-default);
  border: 1px solid rgba(66, 79, 125, 0.16);
}

.btn--chip {
  padding: 0.4rem 1rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.02em;
}

.btn--cool {
  background: linear-gradient(135deg, var(--color-accent-cool-400), var(--color-accent-cool-600));
  color: var(--color-text-inverse);
}

.btn--warm {
  background: linear-gradient(135deg, var(--color-accent-warm-400), var(--color-accent-warm-600));
  color: var(--color-text-inverse);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4xs);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background: var(--color-neutral-100);
  color: var(--color-text-soft);
}

.chip--bold {
  color: var(--color-text-inverse);
  background: var(--color-primary-600);
}

.chip--cool {
  background: rgba(4, 191, 157, 0.12);
  color: var(--color-primary-600);
}

.chip--warm {
  background: rgba(219, 242, 136, 0.24);
  color: var(--color-accent-warm-600);
}

.chip--deep {
  background: rgba(2, 94, 115, 0.18);
  color: var(--color-accent-deep-600);
}

/* Tabs & filters ---------------------------------------------------------- */

.tab-strip {
  display: inline-flex;
  gap: var(--space-xs);
  padding: var(--space-4xs);
  border-radius: var(--radius-pill);
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-inset);
}

.tab-strip__item {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-soft);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.tab-strip__item.is-active {
  color: var(--color-text-inverse);
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  box-shadow: var(--shadow-soft);
}

.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

/* Data visualization ------------------------------------------------------ */

.progress {
  width: 100%;
  height: 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(109, 119, 164, 0.16);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  transition: width var(--transition-slow);
}

.progress__fill--cool {
  background: linear-gradient(135deg, var(--color-accent-cool-400), var(--color-accent-cool-600));
}

.progress__fill--warm {
  background: linear-gradient(135deg, var(--color-accent-warm-400), var(--color-accent-warm-600));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.metric-card {
  background: var(--color-surface-base);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-sm);
}

.metric-card__value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-strong);
}

.metric-card__spark {
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(103, 109, 255, 0.18), rgba(103, 109, 255, 0));
}

.radial-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.radial-stats__legend {
  display: grid;
  gap: var(--space-xs);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: currentColor;
}

/* Schedules & timeline ---------------------------------------------------- */

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.timeline__item {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: var(--space-sm);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary-500);
  box-shadow: 0 0 0 6px rgba(103, 109, 255, 0.2);
}

.timeline__item::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: calc(var(--space-sm) + 4px);
  width: 2px;
  height: calc(100% - 1.2rem);
  background: rgba(103, 109, 255, 0.15);
}

.timeline__time {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
  margin-bottom: var(--space-4xs);
}

.calendar-strip {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-inset);
}

.calendar-strip__day {
  display: grid;
  place-items: center;
  width: 48px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-surface-base);
  color: var(--color-text-soft);
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.calendar-strip__day.is-active {
  background: linear-gradient(140deg, var(--color-primary-500), var(--color-primary-700));
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-soft);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.schedule-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--color-surface-base);
  box-shadow: var(--shadow-card);
}

.schedule-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.schedule-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

/* Kanban-inspired board --------------------------------------------------- */

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.kanban__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  border: var(--border-light);
}

.kanban__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-soft);
}

.kanban-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-surface-base);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--space-xs);
}

.kanban-card__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-strong);
}

.kanban-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack__item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-surface-base);
  box-shadow: 0 6px 10px rgba(30, 47, 110, 0.18);
  margin-left: -12px;
  background-size: cover;
  background-position: center;
}

.avatar-stack__item:first-child {
  margin-left: 0;
}

/* Utility patterns -------------------------------------------------------- */

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.flow {
  display: grid;
  gap: var(--space-md);
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
}

.pill {
  border-radius: var(--radius-pill);
}

.text-soft {
  color: var(--color-text-soft);
}

.text-inverse {
  color: var(--color-text-inverse);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4xs);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background: rgba(255, 255, 255, 0.32);
  color: inherit;
}

.divider {
  height: 1px;
  background: var(--color-divider);
}

.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Media queries ----------------------------------------------------------- */

@media (max-width: 1120px) {
  .app-shell,
  .app-shell--three-column {
    grid-template-columns: 1fr;
  }

  .app-shell__sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .bottom-nav {
    position: static;
    transform: none;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.95rem;
  }

  .app-shell {
    padding: var(--space-lg);
  }

  .surface-panel,
  .card {
    border-radius: var(--radius-lg);
    padding: var(--space-md);
  }

  .topbar {
    padding: var(--space-sm) var(--space-md);
  }

  .calendar-strip__day {
    width: 42px;
    height: 58px;
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid,
  .kanban {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    bottom: var(--space-sm);
  }
}

@media (max-width: 560px) {
  .table-wrap.no-print .mobile-add-row{
    display:block;
    width:100%;
    padding:var(--space-md) 0 0;
    text-align:center;
  }

  .table-wrap.no-print .mobile-add-btn,
  .table-wrap.no-print .mobile-add-btn:hover,
  .table-wrap.no-print .mobile-add-btn:focus,
  .table-wrap.no-print .mobile-add-btn:active{
    width:100%;
    max-width:320px;
    margin:0 auto;
    justify-content:center;
    gap:8px;
    font-weight:700;
    text-transform:uppercase;
    border-radius:18px;
    transition:none!important;
    text-shadow:none!important;
    background-image:none!important;
    background-color:#1dd18a!important;
    border:2px solid #0f8f5c!important;
    color:#05311c!important;
    box-shadow:none!important;
    padding:14px 16px;
  }

  #pdfExportRoot {
    padding: var(--space-md);
  }

  .panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .card {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: var(--space-lg);
  }

  main.card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .card .header {
    padding: 0 var(--space-xs);
  }

  .table-wrap.no-print {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap.no-print .table-content {
    padding: 0;
  }

  #screenTable,
  #screenTable tbody,
  #screenTable tbody tr,
  #screenTable tfoot {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #screenTable,
  #screenTable tbody,
  #screenTable tr,
  #screenTable td {
    display: block;
    width: 100%;
  }

  #screenTable {
    border: 0;
  }

  #screenTable colgroup,
  #screenTable thead {
    display: none;
  }

  #screenTable tfoot {
    display: none;
  }

  #expenseBody {
    counter-reset: expense-row;
  }

  #expenseBody > tr.expense-row::before {
    content: "Expense #" counter(expense-row);
    counter-increment: expense-row;
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(4, 112, 116, 0.1);
    color: var(--color-text-strong);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
  }

  html[data-theme="dark"] #expenseBody > tr.expense-row::before {
    background: rgba(95, 225, 221, 0.16);
    color: rgba(255, 255, 255, 0.85);
  }

  #screenTable tbody tr.expense-row {
    padding-top: calc(var(--space-md) + 24px);
  }

  #screenTable tbody tr.expense-row.has-mobile-tip {
    padding-top: calc(var(--space-md) + 24px + 32px);
  }

  #screenTable tfoot td {
    border: 0;
    padding: var(--space-2xs) 0;
    text-align: center;
    font-weight: var(--font-weight-semibold);
  }

  #screenTable tfoot td::before {
    content: none;
  }

  #screenTable tfoot .totals-spacer {
    display: none;
  }

  #screenTable tfoot tr.expense-summary {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    background: rgba(4, 112, 116, 0.08);
    border: 1px solid var(--pgds-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    padding: var(--space-md);
    width: 100%;
    margin: var(--space-lg) 0 0;
    justify-content: space-between;
  }

  html[data-theme="dark"] #screenTable tfoot tr.expense-summary {
    background: rgba(95, 225, 221, 0.12);
    border: 1px solid rgba(95, 225, 221, 0.35);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.55);
  }

  #screenTable tfoot tr.expense-summary td {
    flex: 1 1 calc(50% - var(--space-sm));
    min-width: 160px;
    background: transparent;
    padding: var(--space-2xs) 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4xs);
  }

  #screenTable tfoot tr.expense-summary #totReimburse,
  #screenTable tfoot tr.expense-summary #totTotal {
    flex: 1 1 100%;
  }

  #screenTable tfoot tr.expense-summary #totReimburse { order: 1; }
  #screenTable tfoot tr.expense-summary #totAir { order: 2; }
  #screenTable tfoot tr.expense-summary #totLodge { order: 3; }
  #screenTable tfoot tr.expense-summary #totFuel { order: 4; }
  #screenTable tfoot tr.expense-summary #totMeals { order: 5; }
  #screenTable tfoot tr.expense-summary #totOther { order: 6; }
  #screenTable tfoot tr.expense-summary #totTotal { order: 99; }

  #screenTable tbody tr {
    margin: 0 0 var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(4, 112, 116, 0.15);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    text-align: center;
    position: relative;
  }

  html[data-theme="dark"] #screenTable tbody tr {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(95, 225, 221, 0.35);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.55);
  }

  #screenTable tbody tr:last-child {
    margin-bottom: 0;
  }

  #screenTable tbody tr td {
    border: 0;
    padding: var(--space-xs) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4xs);
    text-align: center;
    background: transparent;
  }

  #screenTable tbody tr.expense-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  #screenTable tbody tr.expense-row > td {
    flex: 1 1 100%;
  }

  #screenTable tbody tr.expense-row > td.cell-amt.air,
  #screenTable tbody tr.expense-row > td.cell-amt.lodge,
  #screenTable tbody tr.expense-row > td.cell-amt.fuel {
    flex: 1 1 calc(33.333% - var(--space-xs));
    min-width: calc(33.333% - var(--space-xs));
  }

  #screenTable tbody tr.expense-row > td.cell-amt.meals,
  #screenTable tbody tr.expense-row > td.cell-amt.other {
    flex: 1 1 calc(50% - var(--space-xs));
    min-width: calc(50% - var(--space-xs));
  }

  #screenTable tbody tr.expense-row > td.xcell {
    flex: 1 1 100%;
    min-width: 100%;
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding-top: var(--space-xs);
    text-align: center!important;
    display: flex;
    justify-content: center!important;
    align-items: center;
  }

  #screenTable tbody tr.expense-row > td.xcell .xbtn {
    margin-left: auto;
    margin-right: auto;
  }

  #screenTable tbody tr:hover td,
  #screenTable tbody tr:active td {
    background: transparent;
  }

  #screenTable tbody tr td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-soft);
    margin-bottom: var(--space-4xs);
  }

  #screenTable tfoot tr.add-line-row {
    order: 0;
    border-top: 1px solid rgba(4, 112, 116, 0.18);
    margin-top: var(--space-sm);
    padding: var(--space-xs) 0 var(--space-sm);
    background: transparent;
    box-shadow: none;
  }

  #screenTable tfoot tr.add-line-row td {
    border: 0;
    background: transparent;
    padding: 0 0 var(--space-2xs);
  }

  #screenTable tfoot tr.add-line-row .add-line-cell {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-md);
    border-top: 0;
  }

  #screenTable tfoot tr.add-line-row td::before {
    content: none;
    display: none;
  }

  html[data-theme="dark"] #screenTable tbody tr td::before {
    color: rgba(226, 232, 240, 0.8);
  }

  html[data-theme="dark"] #screenTable tbody tr td.total {
    background: rgba(4, 112, 116, 0.22);
    border-top-color: rgba(95, 225, 221, 0.38);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(95, 225, 221, 0.4);
  }

  #screenTable tbody tr td.reimburse {
    flex-direction: column;
    gap: var(--space-3xs);
  }

  #screenTable tbody tr td .date-range-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #screenTable tbody tr td .amt-cell {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
  }

  #screenTable tbody tr td .date-range-display {
    width: 100%;
    justify-content: center;
  }

  #screenTable tbody tr td .amt-display {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
  }

  #screenTable tbody tr td.total {
    border-top: 1px solid rgba(4, 112, 116, 0.12);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-md);
    background: rgba(4, 112, 116, 0.06);
    box-shadow: 0 10px 28px rgba(4, 112, 116, 0.18);
    transition: box-shadow 0.25s ease, background 0.25s ease;
  }

  #screenTable tbody tr td.total::before {
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
  }

  #screenTable tbody tr td.xcell {
    display: flex;
    justify-content: center;
    padding-top: var(--space-sm);
  }

  #screenTable tbody tr td.xcell::before {
    content: none;
    display: none;
  }

  html[data-theme="dark"] #screenTable tfoot {
    background: rgba(4, 191, 157, 0.14);
    border-color: rgba(95, 225, 221, 0.45);
  }

  html[data-theme="dark"] #screenTable tfoot td::before {
    color: rgba(226, 232, 240, 0.85);
  }

  #pdfExportRoot,
  #pdfExportRoot > main.card,
  main.card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  #pdfExportRoot {
    margin: 0;
  }

  #pdfExportRoot {
    gap: var(--space-lg);
  }

  .pgds-menu {
    width: min(420px, calc(100vw - 32px));
    min-width: auto;
    max-height: 65vh;
    padding: 12px 14px 16px;
    margin-top: 8px;
    transform: translateY(0) !important;
    overflow-y: auto;
  }

  .pgds-menu.project button,
  .pgds-menu.period button,
  .pgds-menu.timesheet button {
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.35;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 16px;
  }

  .pgds-menu.project .project-option-name,
  .pgds-menu.project .project-option-wo {
    width: 100%;
  }

  .pgds-menu.project .dept-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .pgds-menu.project .project-option-wo {
    margin-left: 0;
    margin-top: 2px;
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(3, 140, 140, 0.12);
    font-size: 0.8rem;
    line-height: 1.2;
  }
}


:root{
  --ink:#111111;
  --ink-subtle:#3d4045;
  --muted:#6f7378;
  --border:rgba(209,214,219,0.85);
  --border-strong:rgba(52,56,60,0.16);
  --accent:#5a5e63;
  --accent-strong:#3d4045;
  --accent-rgb:90,94,99;
  --accent-soft:rgba(90,94,99,0.16);
  --surface:rgba(255,255,255,0.94);
  --card-gradient:linear-gradient(150deg,rgba(255,255,255,0.97),rgba(210,212,216,0.18));
  --shadow:0 24px 48px rgba(18,22,24,0.14);
  --ring:0 0 0 4px rgba(90,94,99,0.2);
  --h:38px;
  --pad:10px;
}
*{box-sizing:border-box}
*:focus,*:focus-visible{outline:none!important}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none!important}
input::-moz-focus-inner,select::-moz-focus-inner,button::-moz-focus-inner{border:0;padding:0;margin:0}
.input:-moz-focusring,select.input:-moz-focusring,input[type="date"]:-moz-focusring,textarea:-moz-focusring,.pgds-display:-moz-focusring,.date-range-display:-moz-focusring,button:-moz-focusring{outline:none!important}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family:"Source Sans Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:40px 18px;
  gap:22px;
  background:
    radial-gradient(180% 160% at 12% 10%,rgba(var(--accent-rgb),0.18) 0%,rgba(255,255,255,0) 55%),
    linear-gradient(140deg,rgba(142,146,152,0.16) 0%,rgba(222,224,228,0.78) 48%,rgba(245,246,248,0.95) 100%),
    url('https://static.wixstatic.com/media/3f5088_b588babd00c3494289ce6273f1999521~mv2.png');
  background-position:center;
  background-size:cover;
  background-attachment:fixed;
  background-repeat:no-repeat;
}

input::placeholder,
textarea::placeholder{
  color:var(--muted);
  opacity:0.78;
}
.card{
  width:100%;max-width:900px;
  background:var(--card-gradient);
  border:var(--border-light);
  border-radius:34px;
  box-shadow:var(--shadow);
  padding:28px 32px;
  backdrop-filter:blur(30px);
  background-blend-mode:overlay;
}
.header{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  text-align:center;
  margin-bottom:28px;
}
.header-brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
}
.header-brand .logo-img{
  width:190px;
  height:auto;
  filter:drop-shadow(0 12px 24px rgba(18, 38, 49, 0.18));
}
.header-brand .title{
  font-size:2rem;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--color-text-strong);
}
.header-brand .meta{
  font-size:0.95rem;
  color:var(--color-text-soft);
}
html[data-theme="dark"] .header-brand .title,
html[data-theme="dark"] .header-brand .meta{
  color:#fff;
}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.nav-menu{position:relative;display:flex;align-items:center}
.uiverse-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  outline:none;
  cursor:pointer;
  min-height:42px;
  padding:0 16px;
  background-image:linear-gradient(to top,#D8D9DB 0%,#fff 80%,#FDFDFD 100%);
  border-radius:30px;
  border:1px solid #8F9092;
  transition:all 0.2s ease;
  font-family:"Source Sans Pro",sans-serif;
  font-size:14px;
  font-weight:600;
  color:#606060;
  text-shadow:0 1px #fff;
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
  background-color:transparent;
  text-decoration:none;
}
.uiverse-button:hover{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 3px 3px #CECFD1;
}
.uiverse-button:active,
.uiverse-button:focus{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 5px 3px #999,inset 0 0 30px #aaa;
}
.uiverse-button--nav{
  padding:0 18px;
  min-height:44px;
  gap:12px;
  justify-content:flex-start;
}
.uiverse-button--account{
  min-height:36px;
  padding:4px 12px;
  gap:8px;
  justify-content:flex-start;
}
.uiverse-button--menu{
  width:100%;
  justify-content:flex-start;
  min-height:40px;
  padding:10px 18px;
}

.nav-menu-btn .nav-icon,
#uploadBtn .nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:12px;
  background:rgba(126,132,134,0.12);
  color:var(--accent-strong);
}
.nav-menu-btn .nav-icon svg,
#uploadBtn .nav-icon svg,
.nav-menu-btn .nav-caret{
  width:18px;
  height:18px;
}
.nav-menu-btn .nav-caret{
  margin-left:4px;
  color:var(--muted);
  transition:transform 0.2s ease;
}
.nav-menu-btn[aria-expanded="true"] .nav-caret{transform:rotate(180deg);}
.nav-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  display:none;
  min-width:220px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(26,30,32,0.1);
  background:linear-gradient(135deg,rgba(255,255,255,0.96) 0%,rgba(126,132,134,0.2) 100%);
  box-shadow:0 20px 40px rgba(18,22,24,0.24);
  backdrop-filter:blur(18px);
  z-index:1000;
}
.nav-dropdown.show{display:block;}
.nav-dropdown-item{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
  text-decoration:none;
}
.nav-dropdown-item:last-child{margin-bottom:0;}
.nav-dropdown-item .nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:12px;
  background:rgba(126,132,134,0.12);
  color:var(--accent-strong);
  flex-shrink:0;
}
.nav-dropdown-item .nav-icon svg{width:18px;height:18px;}

.info-bar{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.78);
  border:1px solid rgba(214,219,226,0.9);
  box-shadow:0 18px 36px rgba(15,23,42,0.05);
  margin-bottom:18px;
}
.info-bar > div{display:flex;flex-direction:column;gap:8px;}
.info-bar label{display:block;font-size:.82rem;font-weight:600;color:var(--ink-subtle);margin-bottom:4px;letter-spacing:.01em}
.input,
textarea,
select,
input[type='number'],
input[type='date'],
input[type='time'],
input[type='text']{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  min-height:44px;
  border:1px solid #8F9092;
  border-radius:14px;
  padding:12px 18px;
  background:linear-gradient(135deg,rgba(255,255,255,0.94) 0%,rgba(126,132,134,0.22) 100%);
  color:#606060;
  outline:none;
  font-size:.95rem;
  line-height:1.4;
  text-shadow:0 1px #fff;
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 3px 3px #CECFD1;
  transition:box-shadow 0.2s ease,border-color 0.2s ease;
  box-sizing:border-box;
}
textarea{
  min-height:140px;
  padding:20px;
  line-height:1.5;
  resize:vertical;
}
.input:hover,
textarea:hover,
select:hover,
input[type='number']:hover,
input[type='date']:hover,
input[type='time']:hover,
input[type='text']:hover{border-color:#7fbcbc;}
.input:focus,
textarea:focus,
select:focus,
input[type='number']:focus,
input[type='date']:focus,
input[type='time']:focus,
input[type='text']:focus{border-color:#7fbcbc;box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 5px 3px #999,inset 0 0 30px #aaa;background:#fff;}
.input:read-only{background:rgba(240,241,244,0.8);cursor:not-allowed;color:#4f545c;}
input[type='date']{text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.2px;}

.controls{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  margin:10px 0 16px;
  position:relative;
  z-index:1;
}
.control-top{
  width:100%;
  max-width:840px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  justify-content:center;
}
.control-pay-period{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:240px;
  flex:1 1 300px;
  max-width:380px;
  gap:10px;
}
.control-pay-period > label{
  align-self:stretch;
  text-align:center;
  display:block;
  font-size:.82rem;
  font-weight:600;
  color:var(--ink-subtle);
  margin:0;
  letter-spacing:.01em;
}
.control-pay-period #ppSelect{
  width:100%;
  display:flex;
  justify-content:center;
}
.expense-period-mode{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:4px;
  border:1px solid rgba(124,58,237,.24);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(233,213,255,.82),rgba(196,181,253,.58),rgba(251,207,232,.52));
  box-shadow:0 10px 22px rgba(124,58,237,.14);
}
.expense-period-mode[hidden]{
  display:none!important;
}
.expense-period-mode__btn{
  appearance:none;
  border:0;
  border-radius:999px;
  min-height:30px;
  padding:0 14px;
  background:transparent;
  color:#5b21b6;
  font:700 .78rem/1 "Source Sans Pro",sans-serif;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.expense-period-mode__btn:hover,
.expense-period-mode__btn:focus-visible{
  background:rgba(255,255,255,.58);
  outline:none;
  box-shadow:0 0 0 2px rgba(124,58,237,.18);
}
.expense-period-mode__btn.is-active{
  color:#fff;
  background:linear-gradient(135deg,#7c3aed,#a855f7 58%,#d946ef);
  box-shadow:0 8px 16px rgba(124,58,237,.28);
}
@media (max-width:640px){
  .control-top{
    gap:12px;
  }
  .control-pay-period{
    flex-basis:100%;
    max-width:min(100%,380px);
  }
  .control-pay-period .pgds-display{
    width:100%;
    min-width:0;
  }
  .expense-period-mode{
    width:100%;
  }
  .expense-period-mode__btn{
    flex:1 1 0;
    min-height:34px;
  }
}
.control-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}
.control-actions .btn{
  min-width:150px;
}
.table-actions{
  margin:12px auto 24px auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:16px;
  width:100%;
  max-width:560px;
}
.table-actions .btn{min-width:140px;}
.table-actions__signature{
  width:100%;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--pgds-border);
  background:var(--pgds-surface);
  box-shadow:var(--pgds-shadow);
  text-align:center;
}
.table-actions__signature-title{
  margin:0 0 10px 0;
  font-weight:600;
  color:var(--pgds-text);
  text-align:center;
}
.table-actions__signature-display{
  width:100%;
  min-height:72px;
  border:1px dashed rgba(4,112,116,0.35);
  border-radius:14px;
  padding:12px 16px;
  margin-bottom:10px;
  background:var(--pgds-card);
  font-family:'Great Vibes',cursive;
  font-size:1.9rem;
  color:var(--pgds-text);
  display:flex;
  align-items:center;
  justify-content:center;
}
.table-actions__signature-display.empty{
  font-family:var(--pgds-font,"Source Sans Pro",sans-serif);
  font-size:0.95rem;
  color:var(--pgds-text-muted);
}
.table-actions__signature-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:0.9rem;
  color:var(--pgds-text);
  line-height:1.4;
  margin-bottom:12px;
  justify-content:center;
}
.table-actions__signature-check input[type='checkbox']{
  width:18px;
  height:18px;
  margin-top:2px;
  flex-shrink:0;
  accent-color:var(--color-primary-600);
}
.table-actions__button-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:12px;
}
.table-actions__button-row-left,
.table-actions__button-row-right{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.table-actions__button-row-right{
  justify-content:center;
  width:100%;
}
.submit-split{
  position:relative;
  display:inline-flex;
  align-items:stretch;
  border-radius:30px;
  border:1px solid #7fbcbc;
  background-image:linear-gradient(to top,#cfeeee 0%,#ffffff 85%,#fdfdfd 100%);
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
}
.submit-split:hover{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 3px 3px rgba(4,191,157,0.18);
}
.submit-split:focus-within{
  box-shadow:0 0 0 3px rgba(3,140,140,0.2),0 6px 16px rgba(4,191,157,0.24),inset 0 0 3px 3px rgba(4,191,157,0.18);
}
.submit-split:active{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 5px 3px rgba(4,191,157,0.24),inset 0 0 30px rgba(4,191,157,0.3);
}
.submit-split .btn{
  margin:0;
  border:none;
  border-radius:0;
  background:none;
  background-image:none;
  box-shadow:none;
  color:#34585a;
  text-shadow:none;
  transition:background 0.2s ease,color 0.2s ease;
}
.submit-split .btn:hover,
.submit-split .btn:focus,
.submit-split .btn:active{
  box-shadow:none;
}
.submit-main{display:inline-flex;align-items:center;gap:10px;padding:0 18px;min-width:140px;color:#2f5758;font-weight:600;}
.submit-main:hover{background:transparent;}
.submit-main:focus,
.submit-main:active{background:transparent;}
.submit-main .submit-label{display:inline-flex;align-items:center;gap:8px;}
.submit-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0 16px;min-width:auto!important;position:relative;border-left:1px solid rgba(52,88,90,0.18);}
.submit-toggle::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:28px;background:rgba(52,88,90,0.28);}
.submit-toggle svg{width:16px;height:16px;transition:transform .18s ease;stroke:#2f5758;}
.submit-toggle:hover{background:rgba(4,191,157,0.12);}
.submit-toggle:focus,
.submit-toggle:active{background:rgba(4,191,157,0.18);}
.submit-split.open .submit-toggle svg{transform:rotate(180deg);}
.submit-split .split-menu{position:absolute;right:0;top:calc(100% + 6px);background:linear-gradient(135deg,rgba(255,255,255,0.96) 0%,rgba(126,132,134,0.2) 100%);border:1px solid rgba(26,30,32,0.1);border-radius:14px;box-shadow:0 20px 40px rgba(18,22,24,0.24);padding:8px;display:none;min-width:180px;z-index:30;backdrop-filter:blur(18px);}
.submit-split.open .split-menu{display:block;}
.split-menu button{display:flex;align-items:center;gap:10px;width:100%;border:none;background:linear-gradient(135deg,rgba(126,132,134,0.22) 0%,rgba(126,132,134,0.08) 65%,rgba(126,132,134,0.04) 100%);padding:10px 12px;border-radius:10px;font-size:.9rem;font-weight:600;color:var(--ink);cursor:pointer;box-shadow:0 4px 10px rgba(18,22,24,0.08);transition:background 0.2s ease,box-shadow 0.2s ease,transform 0.2s ease,color 0.2s ease;}
.split-menu button{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:44px;
  padding:12px 18px;
  border:1px solid #8F9092;
  border-radius:18px;
  background-image:linear-gradient(to top,#D8D9DB 0%,#fff 80%,#FDFDFD 100%);
  font-size:.9rem;
  font-weight:600;
  color:#606060;
  cursor:pointer;
  text-shadow:0 1px #fff;
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
  transition:all 0.2s ease;
}
.split-menu button:hover{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 3px 3px #CECFD1;
  border-color:#7fbcbc;
}

/* Dark mode overrides for split submit control */
html[data-theme="dark"] .submit-split {
  box-shadow: none;
}
html[data-theme="dark"] .submit-split .btn {
  background: #0f2d37 !important;
  border: 1px solid rgba(95, 225, 221, 0.45) !important;
  text-shadow: none !important;
  color: #e9fbff !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .submit-main {
  border-right: none !important;
  border-top-left-radius: 26px !important;
  border-bottom-left-radius: 26px !important;
}
html[data-theme="dark"] .submit-toggle {
  border-left: 1px solid rgba(95, 225, 221, 0.45) !important;
  border-top-right-radius: 26px !important;
  border-bottom-right-radius: 26px !important;
}
html[data-theme="dark"] .submit-toggle::before {
  background: rgba(95, 225, 221, 0.4);
}
html[data-theme="dark"] .submit-split .btn:hover,
html[data-theme="dark"] .submit-split .btn:focus,
html[data-theme="dark"] .submit-split .btn:active {
  background: #123544 !important;
  border-color: rgba(95, 225, 221, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(95, 225, 221, 0.2);
}
html[data-theme="dark"] #submitBtn{
  border-right:1px solid rgba(111, 212, 146, 0.62) !important;
  border-top-left-radius:30px !important;
  border-bottom-left-radius:30px !important;
  border-top-right-radius:30px !important;
  border-bottom-right-radius:30px !important;
}
html[data-theme="dark"] .submit-split .split-menu {
  background: var(--pgds-card);
  border-color: var(--pgds-border);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .split-menu button {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: none;
  text-shadow: none;
}
.control-toggles{
  width:100%;
  max-width:840px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px;
}
.per-diem-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:220px;
}
.per-diem-rowline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.per-diem-card label{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-weight:600;
  font-size:0.9rem;
  margin:0;
  flex:1 1 auto;
}
.per-diem-card label span{white-space:nowrap;}
.per-diem-status{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(210,215,223,0.9);
  background:rgba(255,255,255,0.95);
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,border .18s ease,color .18s ease,background .18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  box-shadow:0 6px 14px rgba(15,23,42,0.08);
  color:#6b7280;
  font-size:0.85rem;
  line-height:1;
  position:relative;
  overflow:visible;
}
.per-diem-status::before{
  content:"✎";
  display:inline-block;
}
.per-diem-status:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,0.12);border-color:rgba(var(--accent-rgb),0.35);color:var(--accent-strong);}
.per-diem-status:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--accent-rgb),0.28);}
.per-diem-status.is-loading::before{
  content:"";
  width:12px;
  height:12px;
  border:2px solid rgba(209,162,58,0.25);
  border-top-color:rgba(209,162,58,0.9);
  border-radius:50%;
  animation:perDiemSpin 0.8s linear infinite;
}
.per-diem-status.active{
  background:rgba(34,197,94,0.16);
  border-color:rgba(22,163,74,0.65);
  color:#166534;
  box-shadow:0 0 0 2px rgba(34,197,94,0.2);
}
.per-diem-card.per-diem-guidance-highlight{
  background:linear-gradient(135deg,rgba(255,235,120,0.38),rgba(255,248,196,0.72));
  border-radius:14px;
  padding:8px 10px;
  box-shadow:0 0 0 2px rgba(220,170,20,0.5),0 10px 24px rgba(220,170,20,0.26);
}
.per-diem-status.per-diem-guidance-highlight{
  border-color:#d8a318;
  background:#fff6be;
  color:#7a5900;
  box-shadow:0 0 0 3px rgba(220,170,20,0.34),0 10px 20px rgba(220,170,20,0.26);
}
@keyframes perDiemSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){
  .per-diem-status.is-loading::before{animation:none;}
}
.per-diem-inline{
  display:none;
}
.per-diem-card label input{
  width:18px;
  height:18px;
  cursor:pointer;
}
.amt-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
}
.amt-edit{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(210,215,223,0.9);
  background:rgba(255,255,255,0.95);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease,box-shadow .18s ease,border .18s ease,color .18s ease,background .18s ease;
  box-shadow:0 6px 12px rgba(15,23,42,0.08);
  color:#6b7280;
  font-size:0.85rem;
  line-height:1;
  position:relative;
  overflow:visible;
}
.amt-edit::before{
  content:"✎";
}
.amt-edit:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(15,23,42,0.12);
  border-color:rgba(var(--accent-rgb),0.35);
  color:var(--accent-strong);
}
.amt-edit:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(var(--accent-rgb),0.28);
}
.amt-edit.active{
  background:rgba(34,197,94,0.2);
  border-color:rgba(22,163,74,0.7);
  color:#166534;
  box-shadow:0 0 0 2px rgba(34,197,94,0.22);
}
.amt-display{
  display:none;
}
.stacked-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  line-height:1.1;
  font-size:.78rem;
}
.stacked-label .stacked-divider{
  width:16px;
  height:1px;
  background:rgba(99,102,241,0.18);
}
.per-diem-inputs{
  display:none;
  flex-direction:row;
  gap:12px;
  align-items:center;
}
.per-diem-row{
  display:flex;
  align-items:center;
  gap:6px;
}
.per-diem-field{
  width:64px;
  height:36px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:0 8px;
  background:#fff;
  color:var(--ink);
  text-align:center;
  outline:none;
}
.per-diem-rate{
  text-align:right;
}
.per-diem-inputs input[type="text"]{
  width:64px;
}
.per-diem-inputs input[type="number"]{
  width:52px;
}
.per-diem-field[readonly]{
  background:#f3f4f6;
  color:var(--muted);
}
.per-diem-hint{
  font-size:0.82rem;
  color:var(--muted);
}
.per-diem-training{
  display:none;
  margin-top:8px;
  padding-left:30px;
  gap:6px;
  align-items:center;
}
.per-diem-training label{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  font-weight:600;
  font-size:0.9rem;
  color:#dc2626;
}
.control-pay-period .pgds-display{
  min-width:220px;
  padding:0 44px 0 12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  outline:none;
  cursor:pointer;
  min-height:44px;
  padding:0 18px;
  background-image:linear-gradient(to top,#D8D9DB 0%,#fff 80%,#FDFDFD 100%);
  border-radius:30px;
  border:1px solid #8F9092;
  transition:all 0.2s ease;
  font-family:"Source Sans Pro",sans-serif;
  font-size:14px;
  font-weight:600;
  color:#606060;
  text-shadow:0 1px #fff;
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
  background-color:transparent;
}
.pgds-select{position:relative;display:block;width:100%;min-width:0;}
.info-bar .pgds-select{width:100%}
.pgds-display{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:100%;
  min-height:42px;
  padding:0 44px 0 18px;
  flex-wrap:nowrap;
  border-radius:26px;
  border:1px solid #8F9092;
  background-image:linear-gradient(to top,#D8D9DB 0%,#fff 80%,#FDFDFD 100%);
  color:#55595f;
  font-weight:600;
  font-size:.92rem;
  letter-spacing:.01em;
  text-shadow:0 1px #fff;
  cursor:pointer;
  user-select:none;
  line-height:1.1;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:border-color 0.18s ease,box-shadow 0.18s ease,color 0.18s ease;
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
  box-sizing:border-box;
}
.pgds-display:hover{border-color:#7fbcbc;box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 3px 3px #CECFD1;}
.pgds-display:focus,
.pgds-display:focus-visible{outline:none;border-color:#7fbcbc;box-shadow:0 0 0 3px rgba(127,188,188,0.35);}
.info-bar .pgds-display{width:100%}
.pgds-display.is-placeholder,
.pgds-display.placeholder{color:#6f7378;border-color:#aeb0b4;}
.pgds-display .dept-chip.placeholder,
.pgds-display .mgr-chip.placeholder{color:#6f7378;}
.pgds-display::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:7px solid rgba(31,41,55,0.45);
  transition:transform 0.18s ease;
}
.pgds-display[aria-expanded="true"]::after{transform:translateY(-50%) rotate(180deg);}
.pgds-display .chip-text,
.pgds-display .dept-chip,
.pgds-display .mgr-chip,
.pgds-display .pp-chip,
.pgds-display .work-chip{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  min-width:0;
  background:none;
  border:none;
  padding:0;
  margin:0;
  color:inherit;
  font-weight:600;
  text-shadow:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  position:relative;
  padding-right:38px;
}
.pgds-display .chip-text::before,
.pgds-display .dept-chip::before,
.pgds-display .mgr-chip::before,
.pgds-display .pp-chip::before,
.pgds-display .work-chip::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg,#f28d97,#a5424c);
  box-shadow:0 0 0 2px rgba(244,118,127,0.25);
  position:absolute;
  right:30px;
  top:50%;
  transform:translateY(-50%) scale(0.4);
  opacity:0;
  transition:opacity var(--transition-fast,0.18s ease),transform var(--transition-fast,0.18s ease);
}
.pgds-display .chip-text.is-placeholder::before,
.pgds-display .chip-text.placeholder::before,
.pgds-display .dept-chip.is-placeholder::before,
.pgds-display .dept-chip.placeholder::before,
.pgds-display .mgr-chip.is-placeholder::before,
.pgds-display .mgr-chip.placeholder::before,
.pgds-display .pp-chip.is-placeholder::before,
.pgds-display .pp-chip.placeholder::before,
.pgds-display .work-chip.placeholder::before{
  opacity:1;
  transform:translateY(-50%) scale(1);
}
.pgds-display .chip-text.is-placeholder,
.pgds-display .chip-text.placeholder,
.pgds-display .dept-chip.is-placeholder,
.pgds-display .dept-chip.placeholder,
.pgds-display .mgr-chip.is-placeholder,
.pgds-display .mgr-chip.placeholder,
.pgds-display .pp-chip.is-placeholder,
.pgds-display .pp-chip.placeholder,
.pgds-display .work-chip.placeholder{color:#6f7378;}
.pgds-display .chip-text{line-height:1.1;}
#pgds-portal{position:fixed;inset:0;pointer-events:none;z-index:9999}
.pgds-menu{
  position:fixed;
  pointer-events:auto;
  background:linear-gradient(135deg,rgba(255,255,255,0.96) 0%,rgba(126,132,134,0.2) 100%);
  border:1px solid #8F9092;
  border-radius:18px;
  box-shadow:0 24px 44px rgba(18,22,24,0.22);
  padding:10px;
  max-height:320px;
  overflow:hidden auto;
  min-width:220px;
  backdrop-filter:blur(18px);
  z-index:9999;
}
.pgds-menu-search{
  position:static;
  background:transparent;
  padding:2px 2px 8px;
}
.pgds-menu-search input{
  width:100%;
  border:1px solid #8F9092;
  border-radius:14px;
  padding:8px 12px;
  font-size:.9rem;
  color:var(--pgds-text);
  background:rgba(255,255,255,0.92);
  outline:none;
}
.pgds-menu-search input::placeholder{
  color:var(--pgds-muted);
}
.pgds-menu-empty{
  padding:10px 12px;
  font-size:.88rem;
  font-weight:600;
  color:var(--pgds-muted);
}
.pgds-menu--scrollable::after{
  content:none;
  display:none;
}
.pgds-menu--scrollable::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:12px;
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:8px solid rgba(16,24,42,0.55);
  transform:translateX(-50%);
  animation:pgdsMenuScrollHint 1.4s ease-in-out infinite;
  pointer-events:none;
}
.pgds-menu--scrollable.pgds-menu--at-bottom::before,
.pgds-menu--scrollable.pgds-menu--at-bottom::after{
  opacity:0;
  animation:none;
}
.pgds-menu--scrollable.pgds-menu--scrolled::before,
.pgds-menu--scrollable.pgds-menu--scrolled::after{
  opacity:0;
  animation:none;
}
@keyframes pgdsMenuScrollHint{
  0%{transform:translate(-50%,0);opacity:0.35;}
  50%{transform:translate(-50%,4px);opacity:0.85;}
  100%{transform:translate(-50%,0);opacity:0.35;}
}
.pgds-menu::-webkit-scrollbar{width:0;height:0;}
.pgds-menu{scrollbar-width:none;}
.pgds-menu.project{min-width:320px;}
@media (min-width:900px){
  .pgds-menu.project{
    min-width:360px!important;
    width:min(540px,calc(100vw - 48px))!important;
  }
}
.pgds-menu.project .project-option-name{min-width:0;}
.pgds-menu.project .project-option-wo{flex-shrink:0;}
@media (min-width:900px){
  .pgds-menu.project button{
    flex-direction:row;
    align-items:center;
    gap:10px;
  }
  .pgds-menu.project .dept-chip{
    flex-direction:row;
    align-items:center;
    gap:8px;
  }
  .pgds-menu.project .project-option-wo{
    margin-left:auto;
  }
}
.pgds-menu-heading{
  margin:8px 2px 4px 2px;
  padding:2px 4px;
  font-size:0.82rem;
  font-weight:700;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:0.05em;
  pointer-events:none;
  user-select:none;
}
.pgds-menu.period .pgds-menu-heading{
  margin:8px 0 4px;
  padding:0 2px;
  font-size:0.72rem;
  letter-spacing:0.04em;
  text-align:center;
}
.pgds-menu.lunch{max-height:220px!important;width:140px!important;}
.pgds-menu button{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:40px;
  padding:10px 16px;
  margin:2px 0;
  border:1px solid #8F9092;
  border-radius:18px;
  background-image:linear-gradient(to top,#D8D9DB 0%,#fff 80%,#FDFDFD 100%);
  cursor:pointer;
  text-align:left;
  font-size:.92rem;
  color:#606060;
  font-weight:600;
  text-shadow:0 1px #fff;
  transition:all 0.2s ease;
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
  white-space:nowrap;
}
.pgds-menu button:hover{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 3px 3px #CECFD1;
  border-color:#7fbcbc;
}
.pgds-menu button[aria-selected="true"]{
  border-color:#7fbcbc;
  box-shadow:0 0 0 2px rgba(127,188,188,0.25);
}
.pgds-menu button:focus{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE,inset 0 0 5px 3px #999,inset 0 0 30px #aaa;
  border-color:#7fbcbc;
  outline:none;
}
.pgds-menu.time{min-width:220px;}
.pgds-menu.time .time-custom{display:flex;gap:8px;align-items:center;margin-bottom:8px;}
.pgds-menu.time .time-custom input{
  flex:1;
  min-height:36px;
  border:1px solid #8F9092;
  border-radius:12px;
  padding:8px 12px;
  font-size:.9rem;
  color:#374151;
  background:linear-gradient(135deg,rgba(255,255,255,0.96),rgba(222,224,228,0.32));
}
.pgds-menu.time .time-custom button{
  min-height:36px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid #7fbcbc;
  background-image:linear-gradient(to top,#cfeeee 0%,#ffffff 85%,#fdfdfd 100%);
  font-size:.85rem;
  font-weight:600;
  color:#0f4c4c;
  cursor:pointer;
  text-shadow:0 1px #fff;
  transition:all 0.2s ease;
}
.pgds-menu.time .time-custom button:hover{
  box-shadow:0 4px 3px 1px #FCFCFC,0 6px 8px #D6D7D9,0 -4px 4px #CECFD1,0 -6px 4px #FEFEFE;
}
.pgds-menu.time .time-options{
  max-height:200px;
  overflow-y:auto;
  margin:0 -2px;
  padding:2px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.pgds-menu.time .time-options button{
  margin:0;
  min-height:36px;
  padding:8px 10px;
  font-size:.85rem;
  justify-content:center;
}
.pgds-menu.time .time-options button.is-pending{
  border-color:#7fbcbc;
  box-shadow:0 4px 10px rgba(15,118,110,0.18);
}
.pgds-menu.project button,
.pgds-menu.period button,
.pgds-menu.timesheet button{
  border-color:#aeb0b4;
  color:#3d4045;
  box-shadow:0 2px 2px rgba(0,0,0,0.04);
}
.pgds-menu.project button.is-accent{
  background-image:linear-gradient(to top,#ecfbf6 0%,#ffffff 85%,#fdfdfd 100%);
  border-color:#7fbcbc;
  box-shadow:0 8px 18px rgba(15,118,110,0.18),0 2px 2px rgba(0,0,0,0.06);
}
.pgds-menu.project button.is-accent .dept-chip{
  background:transparent;
  border:none;
  box-shadow:none;
  color:#035c5c;
  font-weight:700;
}
.pgds-menu.project .dept-chip,
.pgds-menu.project .work-chip,
.pgds-menu.project .chip-text{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}
.pgds-menu.project .dept-chip.is-accent{
  background:#e6f6f3;
  border:1px solid #7fbcbc;
  box-shadow:0 6px 16px rgba(15,118,110,0.18);
  color:#035c5c;
}
.project-option-name{
  flex:1;
  min-width:0;
  font-weight:600;
}
.project-option-wo{
  font-size:0.82rem;
  color:#036666;
  font-weight:600;
  margin-left:auto;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(3,140,140,0.12);
}
.pgds-menu .dept-chip,
.pgds-menu .work-chip,
.pgds-menu .chip-text{
  border:none;
  background:none;
  padding:0;
  color:inherit;
}
.pgds-menu.timesheet button.tone-siemens{
  border-color:#0f766e;
  color:#0f766e;
  box-shadow:0 8px 18px rgba(15,118,110,0.18);
}
.pgds-menu.timesheet button.tone-siemens .dept-chip{color:inherit;}
.pgds-menu.timesheet button.tone-pgds{
  border-color:#b64852;
  color:#7f2832;
  box-shadow:0 8px 18px rgba(182,72,82,0.18);
}
.pgds-menu.timesheet button.tone-pgds .dept-chip{color:inherit;}

.pp-chip{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:.92rem;
  line-height:1.1;
  color:#55595f;
}
.pp-chip.placeholder{
  color:#6f7378;
}

/* Dark mode for inputs and select controls */
html[data-theme="dark"] .info-bar .input,
html[data-theme="dark"] .info-bar input,
html[data-theme="dark"] .info-bar select,
html[data-theme="dark"] .info-bar textarea,
html[data-theme="dark"] .control-pay-period .pgds-display {
  background: var(--pgds-surface);
  background-image: none;
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

/* Override inline readonly styling (Name field) in dark mode */
html[data-theme="dark"] .info-bar input[readonly] {
  background: var(--pgds-card) !important;
  color: var(--pgds-text-muted) !important;
  border-color: var(--pgds-border) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .info-bar .input::placeholder,
html[data-theme="dark"] .info-bar input::placeholder,
html[data-theme="dark"] .info-bar textarea::placeholder {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .control-pay-period > label{
  color: #c8d4de;
}

html[data-theme="dark"] .expense-period-mode{
  border-color:rgba(196,181,253,.26);
  background:linear-gradient(135deg,rgba(88,28,135,.62),rgba(76,29,149,.56),rgba(131,24,67,.42));
  box-shadow:0 12px 24px rgba(0,0,0,.36);
}

html[data-theme="dark"] .expense-period-mode__btn{
  color:#e9d5ff;
}

html[data-theme="dark"] .expense-period-mode__btn:hover,
html[data-theme="dark"] .expense-period-mode__btn:focus-visible{
  background:rgba(255,255,255,.1);
  box-shadow:0 0 0 2px rgba(216,180,254,.18);
}

html[data-theme="dark"] .expense-period-mode__btn.is-active{
  color:#fff;
  background:linear-gradient(135deg,#6d28d9,#9333ea 58%,#c026d3);
  box-shadow:0 10px 20px rgba(0,0,0,.34);
}

html[data-theme="dark"] .pgds-display {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  text-shadow: none;
}

html[data-theme="dark"] #jobNameSelectWrap .pgds-display {
  border-color: rgba(242, 141, 151, 0.85);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(242, 141, 151, 0.25);
}

html[data-theme="dark"] #jobNameSelectWrap .pgds-display:hover {
  box-shadow: 0 0 0 3px rgba(242, 141, 151, 0.3), 0 26px 52px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .pgds-display::after {
  border-top-color: var(--pgds-text-muted);
}

html[data-theme="dark"] .pgds-display.is-placeholder,
html[data-theme="dark"] .pgds-display.placeholder,
html[data-theme="dark"] .pgds-display .dept-chip.placeholder,
html[data-theme="dark"] .pgds-display .mgr-chip.placeholder {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .pgds-menu {
  background: var(--pgds-card);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .pgds-menu-search{
  background: transparent;
}
html[data-theme="dark"] .pgds-menu-search input{
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .pgds-menu-search input::placeholder{
  color: var(--pgds-text-muted);
}
html[data-theme="dark"] .pgds-menu--scrollable::after{
  background:linear-gradient(to bottom, rgba(15,24,24,0), rgba(15,24,24,0.9));
}
html[data-theme="dark"] .pgds-menu--scrollable::before{
  border-top-color:rgba(255,255,255,0.6);
}

html[data-theme="dark"] .pgds-menu-heading {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .pgds-menu button {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

html[data-theme="dark"] .pgds-menu.period button {
  color: #fff;
}

html[data-theme="dark"] .pgds-menu.period .pp-chip {
  color: #fff;
  text-shadow: none;
}

html[data-theme="dark"] .pgds-menu.period .pp-chip.is-placeholder,
html[data-theme="dark"] .pgds-menu.period .pp-chip.placeholder {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .pgds-menu.period button:hover .pp-chip,
html[data-theme="dark"] .pgds-menu.period button[aria-selected="true"] .pp-chip {
  color: var(--pgds-primary);
}

html[data-theme="dark"] .pgds-menu button:hover {
  border-color: rgba(95, 225, 221, 0.65);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .pgds-menu button[aria-selected="true"] {
  border-color: rgba(95, 225, 221, 0.65);
  box-shadow: 0 0 0 2px rgba(95, 225, 221, 0.3);
}

/* Accent/Cost Center option styling in dark mode */
html[data-theme="dark"] .pgds-menu.project button.is-accent {
  background: radial-gradient(circle at 20% 20%, rgba(95, 225, 221, 0.2), rgba(4, 191, 157, 0.08)) ,
              var(--pgds-card);
  border-color: rgba(95, 225, 221, 0.7);
  color: var(--pgds-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(95, 225, 221, 0.35);
}

html[data-theme="dark"] .pgds-menu.project button.is-accent .dept-chip,
html[data-theme="dark"] .pgds-menu.project button.is-accent .chip-text {
  color: var(--pgds-text);
}

html[data-theme="dark"] .pgds-menu.project .dept-chip.is-accent {
  background: rgba(95, 225, 221, 0.14);
  border-color: rgba(95, 225, 221, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  color: var(--pgds-text);
}

html[data-theme="dark"] .project-option-wo {
  background: rgba(95, 225, 221, 0.16);
  color: var(--pgds-text);
}

html[data-theme="dark"] .pgds-menu .dept-chip,
html[data-theme="dark"] .pgds-menu .work-chip,
html[data-theme="dark"] .pgds-menu .chip-text {
  color: inherit;
}

/* Preserve department accent colors in dark dropdown */
html[data-theme="dark"] .pgds-menu .dept-chip.tone-siemens { color: #5fe1dd; }
html[data-theme="dark"] .pgds-menu .dept-chip.tone-pgds { color: #f28d97; }
html[data-theme="dark"] .pgds-menu .dept-chip.electrical { color: #9fb6ff; }
html[data-theme="dark"] .pgds-menu .dept-chip.it { color: #c8a6ff; }
html[data-theme="dark"] .pgds-menu .dept-chip.hr { color: #f9a4b4; }
html[data-theme="dark"] .pgds-menu .dept-chip.admin { color: #f3c067; }
html[data-theme="dark"] .pgds-menu .dept-chip.shop { color: #5fe1dd; }

.chip-text{font-weight:600;letter-spacing:.01em;}
.chip-text.is-placeholder,
.chip-text.placeholder{color:#6f7378;}

.dept-chip{
  font-size:.92rem;
  flex-shrink:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#55595f;
  position:relative;
}
.dept-chip::before{content:none;}
.dept-chip.is-placeholder,
.dept-chip.placeholder{color:#6f7378;}
.dept-chip.is-placeholder::before,
.dept-chip.placeholder::before{display:none;}
.dept-chip.tone-siemens{color:#0f524c;}
.dept-chip.tone-pgds{color:#7f2832;}
.dept-chip.shop{color:#047074;}
.dept-chip.electrical{color:#3554d1;}
.dept-chip.it{color:#6f3ec7;}
.dept-chip.hr{color:#b5284a;}
.dept-chip.admin{color:#a6680f;}

.print-value{
  display:none;
  font-size:.9rem;
  font-weight:600;
  color:#1f2933;
  word-break:break-word;
  white-space:normal;
}

.work-chip{
  position:relative;
  display:flex;
  align-items:center;
  font-size:.9rem;
  letter-spacing:.01em;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.work-chip::before{
  content:"";
  display:inline-flex;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--chip-color,#6f7378);
  box-shadow:0 0 0 2px rgba(17,24,39,0.1);
  flex-shrink:0;
  margin-right:8px;
}
.work-chip.placeholder{--chip-color:#9ca3af;color:#6f7378;}
.wt-required{--chip-color:#d97706;color:#7a3b06;}
.wt-work{--chip-color:#2563eb;color:#173f9a;}
.wt-standby{--chip-color:#ca8a04;color:#7a5206;}
.wt-training{--chip-color:#16a34a;color:#0d5c2a;}
.wt-report{--chip-color:#475569;color:#1f2937;}
.wt-nonsite{--chip-color:#ea580c;color:#7c2d12;}
.wt-travel{--chip-color:#dc2626;color:#7f1d1d;}
.wt-weekend{--chip-color:#ef4444;color:#7f1d1d;}

.project-chip{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.project-chip::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  flex-shrink:0;
  background:var(--project-chip-color,#94a3b8);
  box-shadow:0 0 0 2px rgba(148,163,184,0.25);
}
.project-chip.is-placeholder{--project-chip-color:#cbd5f5;}
.project-chip.is-placeholder::before{
  background:linear-gradient(135deg,#f28d97,#a5424c);
  box-shadow:0 0 0 2px rgba(244,118,127,0.25);
}
.proj-chip-a{--project-chip-color:#0ea5e9;}
.proj-chip-b{--project-chip-color:#6366f1;}
.proj-chip-c{--project-chip-color:#22c55e;}
.proj-chip-d{--project-chip-color:#f97316;}
.proj-chip-e{--project-chip-color:#a855f7;}
.proj-chip-f{--project-chip-color:#ef4444;}
.project-chip-name{
  font-weight:600;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.project-chip-wo{
  margin-left:auto;
  flex-shrink:0;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(3,140,140,0.12);
  color:#036666;
  font-size:0.85em;
  font-weight:600;
}
.pgds-select .pgds-display .project-chip-wo{
  display:none;
}
.wo-field{
  position:relative;
}
.wo-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.wo-field input{
  width:100%;
}
.wo-tip-trigger{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  height:26px;
  width:26px;
  border:none;
  border-radius:0;
  background:transparent;
  color:#92400e;
  font-size:1rem;
  line-height:1;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:help;
  box-shadow:none;
}
.wo-tip-trigger:focus-visible{
  outline:2px solid #92400e;
  outline-offset:2px;
}
.wo-tip-trigger .wo-tip-bubble{
  position:absolute;
  white-space:nowrap;
  right:100%;
  top:50%;
  transform:translate(-8px,-50%);
  background:rgba(248,249,250,0.97);
  color:#92400e;
  padding:6px 10px;
  border-radius:8px;
  font-size:0.78rem;
  box-shadow:0 12px 28px rgba(31,41,55,0.2),0 0 0 1px rgba(143,144,146,0.35);
  display:none;
  z-index:20;
}
.wo-tip-trigger .wo-tip-bubble::after{
  content:"";
  position:absolute;
  left:100%;
  top:50%;
  transform:translateY(-50%);
  border-width:6px;
  border-style:solid;
  border-color:transparent transparent transparent rgba(248,249,250,0.97);
}
.wo-tip-trigger .wo-tip-bubble{
  transition:background 120ms ease,color 120ms ease,border-color 120ms ease,box-shadow 120ms ease;
}
.wo-tip-trigger .wo-tip-bubble::after{
  transition:border-color 120ms ease,filter 120ms ease;
}
.wo-tip-trigger:hover .wo-tip-bubble,
.wo-tip-trigger:focus .wo-tip-bubble{
  display:block;
}
.wo-field.has-multi .wo-tip-trigger{
  display:flex;
}
.wo-field.has-multi input{
  padding-right:48px;
}
@media (max-width:768px){
  .wo-tip-trigger{
    right:10px;
  }
}

html[data-theme="dark"] .wo-tip-trigger .wo-tip-bubble{
  background:rgba(12,17,26,0.95);
  color:#fecaca;
  border:1px solid rgba(252,165,165,0.35);
  box-shadow:0 18px 32px rgba(0,0,0,0.65);
}

html[data-theme="dark"] .wo-tip-trigger .wo-tip-bubble::after{
  border-color:transparent transparent transparent rgba(12,17,26,0.95);
  filter:drop-shadow(0 4px 8px rgba(0,0,0,0.45));
}

.period-chip{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.period-chip::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  flex-shrink:0;
  background:var(--period-chip-color,#94a3b8);
  box-shadow:0 0 0 2px rgba(148,163,184,0.25);
}
.period-chip.is-placeholder{--period-chip-color:#cbd5f5;}
.period-chip.is-placeholder::before{
  background:linear-gradient(135deg,#f28d97,#a5424c);
  box-shadow:0 0 0 2px rgba(244,118,127,0.25);
}
.per-chip-a{--period-chip-color:#0f9d58;} /* current week */
.per-chip-b{--period-chip-color:#facc15;} /* last week */
.per-chip-c{--period-chip-color:#f97316;} /* week before */
.per-chip-d{--period-chip-color:#fb7185;}
.per-chip-e{--period-chip-color:#a855f7;}
.per-chip-f{--period-chip-color:#ef4444;}
.pgds-select--period .pgds-display{
  position:relative;
  animation:payWeekGlow 3.6s ease-in-out infinite;
  box-shadow:0 14px 30px rgba(5,73,55,0.14),0 0 0 1px rgba(15,157,88,0.18);
}
.pgds-select--period .pgds-display:hover{
  box-shadow:0 0 0 3px rgba(15,157,88,0.24),0 18px 36px rgba(5,73,55,0.22);
  border-color:rgba(15,157,88,0.65);
}
.pgds-select--period .pgds-display:focus-visible{
  box-shadow:0 0 0 4px rgba(15,157,88,0.28),0 18px 36px rgba(5,73,55,0.22);
  border-color:rgba(15,157,88,0.75);
}
@keyframes payWeekGlow{
  0%{
    box-shadow:0 14px 30px rgba(5,73,55,0.12),0 0 0 1px rgba(15,157,88,0.2),0 0 0 0 rgba(15,157,88,0.12);
    background:linear-gradient(135deg,rgba(15,157,88,0.06),var(--pgds-surface));
  }
  50%{
    box-shadow:0 18px 38px rgba(5,73,55,0.18),0 0 0 1px rgba(15,157,88,0.26),0 0 0 10px rgba(15,157,88,0.14);
    background:linear-gradient(135deg,rgba(15,157,88,0.1),var(--pgds-surface));
  }
  100%{
    box-shadow:0 14px 30px rgba(5,73,55,0.12),0 0 0 1px rgba(15,157,88,0.2),0 0 0 0 rgba(15,157,88,0.12);
    background:linear-gradient(135deg,rgba(15,157,88,0.06),var(--pgds-surface));
  }
}
.pgds-menu.period button .period-chip{
  color:var(--period-chip-color,#0f9d58);
  text-shadow:0 0 6px rgba(0,0,0,0.08);
  width:100%;
  justify-content:center;
  text-align:center;
}
.pgds-menu.period button{
  justify-content:center;
  text-align:center;
}
.pgds-menu.period button .period-chip.is-placeholder{
  color:var(--pgds-text-muted);
}
.pgds-menu.period button[aria-selected="true"] .period-chip{
  color:inherit;
  text-shadow:none;
}
.pgds-menu.period button .period-chip.per-chip-a{color:#0f9d58;}
.pgds-menu.period button .period-chip.per-chip-b{color:#c38b03;}
.pgds-menu.period button .period-chip.per-chip-c{color:#d4550a;}
.group-choice-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(12,20,33,0.4);
  backdrop-filter:blur(6px);
  z-index:12000;
}
.group-choice-modal{
  width:min(480px,92vw);
  max-width:480px;
  background:var(--pgds-surface);
  border:1px solid var(--pgds-border);
  border-radius:18px;
  box-shadow:0 28px 60px rgba(0,0,0,0.24);
  padding:22px 22px 18px;
}
.group-choice-modal h3{
  margin:0 0 8px;
  font-size:1.05rem;
  font-weight:700;
  color:var(--pgds-text);
}
.group-choice-modal p{
  margin:0 0 12px;
  color:var(--pgds-text-muted);
  line-height:1.4;
}
.range-warning-img{
  width:clamp(180px,65vw,260px);
  max-width:100%;
  display:block;
  margin:0 auto 12px;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,0.18);
}
.group-choice-modal .mobile-note{
  font-size:0.92rem;
}
.per-diem-guidance-modal{
  position:relative;
  width:min(560px,94vw);
  max-width:560px;
}
.per-diem-guidance-modal h3{
  padding-right:32px;
}
.per-diem-guidance-close{
  position:absolute;
  top:12px;
  right:12px;
  border:none;
  background:transparent;
  width:30px;
  height:30px;
  border-radius:50%;
  cursor:pointer;
  color:var(--pgds-text-muted);
  font-size:1.25rem;
  line-height:1;
}
.per-diem-guidance-close:hover{
  background:rgba(15,23,42,0.08);
  color:var(--pgds-text);
}
.per-diem-guidance-warning{
  color:#b91c1c !important;
  font-weight:700;
}
.per-diem-guidance-actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
}
.per-diem-guidance-company-btn{
  background:#1d4ed8;
  border-color:#1e40af;
  color:#fff;
}
.per-diem-guidance-company-btn:hover{
  background:#1e40af;
  border-color:#1e3a8a;
  color:#fff;
}
@media (max-width:640px){
  .group-choice-modal{
    padding:18px 16px 16px;
    border-radius:16px;
  }
  .group-choice-modal h3{
    font-size:1rem;
  }
  .group-choice-modal p{
    font-size:0.92rem;
  }
}
.group-choice-options{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}
.group-choice-option{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--pgds-border);
  border-radius:14px;
  background:var(--pgds-card);
  cursor:pointer;
}
.group-choice-option.is-disabled{
  opacity:0.55;
  cursor:not-allowed;
  box-shadow:none;
}
.group-choice-option.is-disabled:hover{
  border-color:var(--pgds-border);
  box-shadow:none;
}
.group-choice-option:hover{
  border-color:rgba(4,112,116,0.45);
  box-shadow:0 0 0 2px rgba(4,112,116,0.12);
}
.group-choice-option input{
  accent-color:var(--color-primary-600);
}
.group-choice-label{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.group-choice-label .title{
  font-weight:700;
  color:var(--pgds-text);
}
.group-choice-label .hint{
  color:var(--pgds-text-muted);
  font-size:.9rem;
}
.group-choice-actions{
  display:flex;
  justify-content:center;
  gap:10px;
}
.group-choice-actions .btn{min-width:120px;}
.group-choice-warning{
  display:none;
  align-items:flex-start;
  gap:8px;
  margin:4px 0 14px;
  padding:10px 12px;
  background:var(--color-accent-warm-200);
  border:1px solid rgba(181, 189, 92, 0.8);
  border-radius:12px;
  color:var(--color-neutral-900);
  font-size:0.93rem;
  line-height:1.4;
}
.group-choice-warning.is-visible{display:flex;}

.pgds-select--project .pgds-display{justify-content:flex-start;}
.pgds-select--project .dept-chip,
.pgds-select--manager .mgr-chip,
.pgds-select--period .pp-chip{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  min-width:0;
}
.pgds-select--period .pgds-display{
  justify-content:center;
  text-align:center;
}
.pgds-select--period .pp-chip{
  justify-content:center;
  text-align:center;
}
.pgds-select--period .pgds-display .pp-chip,
.pgds-select--period .pgds-display .period-chip{
  padding-right:0;
}
.pgds-select--period .pgds-display .period-chip::before{
  position:static;
  right:auto;
  top:auto;
  transform:none;
  opacity:1;
}
.pgds-select--project .dept-chip::after{content:none;}
.pgds-select--period .pp-chip::after{content:none;}
.pgds-select.tone-pgds .dept-chip::after,
.pgds-select.tone-siemens .dept-chip::after{
  content:"";
  flex-shrink:0;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-left:auto;
}
.pgds-select.tone-pgds .dept-chip::after{
  background:linear-gradient(135deg,#f28d97,#a5424c);
  box-shadow:0 0 0 2px rgba(244,118,127,0.25);
}
.pgds-select.tone-siemens .dept-chip::after{
  background:linear-gradient(135deg,#34ccb3,#047074);
  box-shadow:0 0 0 2px rgba(4,191,157,0.25);
}

.mgr-chip{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:.92rem;
  color:#55595f;
}
.mgr-chip.placeholder{color:#6f7378;}
.mgr-chip.stewart{color:#1d7a45;}
.mgr-chip.erica{color:#b91c1c;}
.mgr-chip.guy{color:#1d4ed8;}
.mgr-chip.kevin{color:#8b0d1a;}

.table-wrap{
  border-radius:20px;
  border:1px solid rgba(214,219,226,0.85);
  overflow-x:auto;
  background:rgba(255,255,255,0.94);
  margin:0 0 20px 0; /* Align to left */
  box-shadow:0 22px 44px rgba(15,23,42,0.07);
  max-width:900px; /* Match info-bar width */
  padding:0;
  background-clip:padding-box;
}
.table-content{
  padding:0;
  box-sizing:border-box;
}
.itemized-summary .itemized-total{
  font-variant-numeric:tabular-nums;
}
#itemizedScreenTable .date-range-wrap{
  max-width:none;
  margin:0;
}
#itemizedScreenTable .date-range-display{
  height:32px;
  padding:0 10px;
  font-size:.82rem;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(15,23,42,0.05);
  line-height:32px;
}
#itemizedScreenTable .date-range-display:hover{
  box-shadow:0 8px 16px rgba(var(--accent-rgb),0.14);
  transform:translateY(-1px);
}
#itemizedScreenTable .date-range-display:focus,
#itemizedScreenTable .date-range-display:focus-visible{
  box-shadow:0 10px 20px rgba(var(--accent-rgb),0.18);
  transform:translateY(-1px);
}
#itemizedScreenTable .date-range-display.empty::before{
  margin-right:6px;
  font-size:.9rem;
}
#itemizedScreenTable .date-range-display.empty{
  gap:4px;
}
#itemizedScreenTable .input.itemized-amount{
  min-height:0;
  height:32px;
  padding:4px 10px;
  border-radius:10px;
  font-size:.82rem;
  line-height:1.25;
}
#itemizedScreenTable .notes-cell{
  justify-content:center;
  gap:6px;
}
#itemizedScreenTable tbody td{
  padding:6px 4px;
}
#itemizedScreenTable tbody td:nth-child(3){
  padding:6px 8px;
}
.itemized-summary-row td{
  background:var(--pgds-card);
  padding:12px 10px;
}
.itemized-summary-row td:first-child{
  border-bottom-left-radius:20px;
}
.itemized-summary-row td:last-child{
  border-bottom-right-radius:20px;
}
.itemized-spacer{background:rgba(243,245,248,0.82);}
.itemized-summary__label{
  text-align:center;
  font-weight:600;
  color:var(--pgds-text);
}
.itemized-summary__value{
  text-align:right;
  font-variant-numeric:tabular-nums;
  font-weight:700;
}
.itemized-summary__actions{text-align:center;}
.expense-summary td{
  background:rgba(4,112,116,0.08);
  padding:12px 10px;
  color:var(--pgds-text);
}
.expense-summary td:first-child{
  border-bottom-left-radius:20px;
}
.expense-summary td:last-child{
  border-bottom-right-radius:20px;
}
.expense-summary .reimburse-label{
  text-align:right;
  font-weight:600;
  color:var(--pgds-text);
  padding-right:12px;
}
.expense-summary .reimburse-label.totals-cell{
  justify-content:center;
  text-align:center;
  padding-right:0;
}
.expense-summary .reimburse-label.totals-cell .totals-label{
  width:auto;
}
.expense-summary .totals-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 12px;
  text-align:center;
  width:100%;
}
.totals-cell .totals-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.totals-cell .totals-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  letter-spacing:.02em;
  width:100%;
  text-align:center;
}
.totals-spacer{
  background:var(--pgds-card);
  padding:12px 10px;
  color:var(--pgds-text);
}
.expense-summary .xcell{
  background:rgba(4,112,116,0.08);
}



.add-line-row td{
  background:transparent;
  border:0;
  padding:var(--space-sm) 0;
}

.add-line-cell{
  text-align:center;
  padding-top:var(--space-md);
  padding-bottom:var(--space-lg);
}

.add-line-row .add-line-cell{
  border-top:1px solid rgba(4, 112, 116, 0.18);
}

.add-line-cell::before{
  content:none;
}

.add-line-cell .add-row-btn{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:var(--space-4xs);
  padding:10px 18px;
  border-radius:var(--radius-pill);
  font-weight:600;
  text-transform:uppercase;
}

.add-line-caption{
  display:block;
  margin-top:var(--space-2xs);
  font-size:var(--font-size-xs);
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--color-text-soft);
}
table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}
#screenTable col{width:auto}
#screenTable col.col-reimburse{width:50px}
#screenTable col.col-date{width:120px}
#screenTable col.col-details{width:50px}
#screenTable col.col-air,
#screenTable col.col-lodge,
#screenTable col.col-fuel,
#screenTable col.col-meals,
#screenTable col.col-other{width:76px}
#screenTable col.col-total{width:76px}
#screenTable col.col-delete{width:54px}
thead th{
  background:transparent;
  color:var(--ink-subtle);
  font-weight:600;
  font-size:.82rem;
  text-align:center;
  padding:6px 2px;
  border-bottom:1px solid rgba(214,219,226,0.9);
  letter-spacing:.003em;
}
tfoot td{
  padding:9px 6px;
  font-weight:600;
  background:transparent;
  border-bottom:0;
  color:var(--ink);
  font-size:.82rem;
  text-align:center;
}
tfoot td:first-child{padding-right:0;text-align:center;}
tfoot td.reimburse-label{padding-right:12px;text-align:right;font-weight:600;}
tfoot td.reimburse-label.totals-cell{
  padding-right:0;
  text-align:center;
}
tbody td{
  padding:6px 2px;
  border-bottom:1px solid rgba(231,234,238,0.9);
  text-align:center;
  vertical-align:middle;
  background:rgba(255,255,255,0.98);
  font-size:.82rem;
}
tbody td input{width:100%;font-size:.82rem;border:1px solid rgba(204,210,219,0.9);border-radius:10px;padding:8px;background:rgba(255,255,255,0.92);color:var(--ink);transition:border .18s ease,box-shadow .18s ease,transform .18s ease;box-shadow:0 4px 10px rgba(15,23,42,0.05)}
tbody td input:hover{border-color:rgba(var(--accent-rgb),0.45);box-shadow:0 10px 20px rgba(var(--accent-rgb),0.18);transform:translateY(-2px)}
tbody td input:focus{border-color:var(--accent);box-shadow:0 12px 24px rgba(var(--accent-rgb),0.26);transform:translateY(-2px);outline:none!important;background:#fff}
tbody td input:focus-visible{outline:none!important}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover td{background:rgba(var(--accent-rgb),0.08)}
#screenTable tbody#expenseBody > tr.expense-row{
  cursor:default;
  transition:box-shadow 120ms ease,transform 120ms ease,border-color 120ms ease,outline-color 120ms ease,opacity 120ms ease;
}
tfoot tr{background:transparent}
#screenTable th:nth-child(3),
#screenTable td:nth-child(3){text-align:center}
#screenTable td:nth-child(3){padding:0}
#screenTable th:nth-child(9),
#screenTable td:nth-child(9){text-align:center}
#screenTable td:nth-child(9){padding:0 6px}
#screenTable th:nth-child(n+4):nth-child(-n+9){padding:6px 4px}
#screenTable td:nth-child(n+4):nth-child(-n+9){padding:4px 2px}
#screenTable td:nth-child(10){text-align:center}
#screenTable .notes-cell{justify-content:center;gap:4px}
#screenTable .note-icon{font-size:12px}
.reimburse{text-align:center;}
.reimburse-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  position:relative;
}
.reimburse-toggle input{
  width:18px;
  height:18px;
  accent-color:var(--color-primary-600);
}
.reimburse-auto-tip{
  position:absolute;
  left:50%;
  top:-8px;
  transform:translate(-50%,-100%);
  background:rgba(16,43,41,0.96);
  color:#f0fdf4;
  padding:4px 8px;
  border-radius:999px;
  font-size:0.66rem;
  font-weight:700;
  letter-spacing:0.01em;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 10px 18px rgba(15,23,42,0.22);
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
  z-index:30;
}
.reimburse-auto-tip::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-4px;
  width:8px;
  height:8px;
  background:inherit;
  transform:translateX(-50%) rotate(45deg);
}
.reimburse-auto-tip.visible{
  opacity:1;
  transform:translate(-50%,-122%);
}
html[data-theme="dark"] .reimburse-auto-tip{
  background:rgba(230,247,244,0.96);
  color:#12312f;
}
.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cell-amt{
  font-variant-numeric:tabular-nums;
  text-align:center;
  position:relative;
}

.summary-label{
  display:none;
  font-size:var(--font-size-xs);
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--color-text-soft);
  margin-bottom:var(--space-4xs);
}

.summary-value{
  display:block;
  width:100%;
}

@media (max-width:560px){
  .summary-label{
    display:block;
  }
}

.xcell{
  width:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  text-align:center!important;
  vertical-align:middle!important;
  padding:6px 6px!important;
}
.xbtn{
  border:none;background:transparent;color:#d32f2f;font-size:18px;font-weight:bold;
  line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:14px;transition:background .16s ease,transform .16s ease,box-shadow .16s ease;
  box-shadow:0 8px 18px rgba(239,68,68,0.16);
  margin:0 auto;
}
.xbtn:hover{background:rgba(239,68,68,0.12);transform:translateY(-1px);box-shadow:0 14px 26px rgba(239,68,68,0.2)}
.add-row-btn{
  color:#166534;
  background:rgba(34,197,94,0.18);
  box-shadow:0 8px 18px rgba(34,197,94,0.16);
}
.add-row-btn:hover{
  background:rgba(34,197,94,0.24);
  box-shadow:0 14px 26px rgba(34,197,94,0.2);
  color:#14532d;
}
html[data-theme="dark"] .xbtn{
  color:#fca5a5;
  box-shadow:0 10px 20px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .xbtn:hover{
  background:rgba(252,165,165,0.18);
  box-shadow:0 12px 22px rgba(0,0,0,0.55);
}
html[data-theme="dark"] .add-row-btn{
  color:#a7f3d0;
  background:rgba(95,225,221,0.12);
  box-shadow:0 10px 20px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .add-row-btn:hover{
  background:rgba(95,225,221,0.2);
  box-shadow:0 12px 22px rgba(0,0,0,0.55);
  color:#c7fcec;
}

.mobile-add-row{display:none;}

.date-range-wrap{position:relative;width:100%;max-width:280px;margin:0 auto}
.date-range-display{
  height:var(--h);width:100%;max-width:280px;border:1px solid rgba(210,215,223,0.9);border-radius:12px;
  padding:0 18px;background:rgba(255,255,255,0.9);color:var(--ink);outline:none;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  font-size:0.87rem;user-select:none;
  transition:border .18s ease,box-shadow .18s ease,transform .18s ease;
  box-shadow:0 6px 14px rgba(15,23,42,0.06);
}
.date-range-display.out-of-range{border-color:#f45b69;color:#b91c1c;box-shadow:0 12px 22px rgba(244,91,105,0.2);}
.date-range-display:hover{border-color:var(--accent);box-shadow:0 14px 24px rgba(var(--accent-rgb),0.2);transform:translateY(-1px)}
.date-range-display:focus,.date-range-display:focus-visible{border-color:var(--accent);box-shadow:0 16px 28px rgba(var(--accent-rgb),0.24);transform:translateY(-2px);outline:none}
.date-range-display.empty{color:var(--muted);display:flex;align-items:center;justify-content:center;gap:0;}
.date-range-display.empty::before{
  content:"\1F4C5";
  font-size:1rem;
  display:block;
  opacity:0.75;
}
.date-fill-handle{
  position:absolute;
  right:6px;
  top:50%;
  width:12px;
  height:12px;
  border-radius:3px;
  background:rgba(var(--accent-rgb),0.12);
  border:1px solid rgba(var(--accent-rgb),0.3);
  box-shadow:0 4px 10px rgba(0,0,0,0.07);
  cursor:crosshair;
  opacity:0;
  transform:translateY(-50%);
  transition:opacity 120ms ease,background 120ms ease,border-color 120ms ease,transform 120ms ease;
}
.date-range-wrap:hover .date-fill-handle,
.date-range-wrap.date-fill-dragging .date-fill-handle{opacity:1;}
.date-range-wrap.date-fill-dragging .date-fill-handle{background:rgba(var(--accent-rgb),0.2);border-color:rgba(var(--accent-rgb),0.5);transform:translateY(-50%) scale(1.05);}
.date-range-wrap.date-fill-target .date-range-display{border-color:var(--accent);box-shadow:0 12px 22px rgba(var(--accent-rgb),0.24);}
.date-range-popup{
  position:fixed;z-index:100000;background:rgba(255,255,255,0.96);border:1px solid rgba(214,219,226,0.9);
  border-radius:18px;box-shadow:0 28px 60px rgba(15,23,42,0.18);padding:16px;
  display:flex;flex-direction:column;gap:12px;min-width:220px;
  backdrop-filter:blur(16px);
}
.date-range-popup label{font-size:0.78rem;font-weight:600;margin-bottom:4px;display:block;color:var(--ink-subtle)}
.date-range-popup input[type="date"]{
  width:100%;height:38px;border:1px solid rgba(210,215,223,0.9);border-radius:10px;
  padding:0 10px;font-size:0.85rem;background:#fff;
}
.date-range-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.date-range-actions .btn{padding:8px 14px;border-radius:10px;font-size:0.85rem}

.notes-cell{display:flex;align-items:center;justify-content:center;gap:8px;position:relative}
.note-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--pgds-border);
  background:var(--pgds-surface);
  border-radius:10px;
  height:38px;
  min-width:38px;
  cursor:pointer;
  color:var(--pgds-text);
  transition:border .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease,background .18s ease;
  box-shadow:var(--pgds-shadow);
  position:relative;
}
.note-btn .note-icon{
  width:22px;
  height:22px;
  color:inherit;
  pointer-events:none;
  display:block;
}
.note-btn:hover{border-color:rgba(4,112,116,0.45);box-shadow:0 0 0 2px rgba(4,112,116,0.12);transform:translateY(-1px);}
.per-diem-note-tip{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translate(-50%,-110%);
  background:var(--pgds-surface);
  color:#b91c1c;
  padding:5px 10px;
  border-radius:10px;
  font-size:0.72rem;
  font-family:"Source Sans Pro","Segoe UI",sans-serif;
  border:1px solid var(--pgds-border);
  box-shadow:var(--pgds-shadow,0 10px 22px rgba(15,23,42,0.18));
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
  z-index:1000;
}
.per-diem-note-tip::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-6px;
  transform:translateX(-50%);
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:6px solid var(--pgds-surface);
  filter:drop-shadow(0 2px 2px rgba(0,0,0,0.12));
}
.per-diem-note-tip::before{
  content:'⚠';
  display:inline-block;
  margin-right:6px;
  font-size:0.85em;
}
.per-diem-note-tip.visible{
  opacity:1;
  transform:translate(-50%,-140%);
}
html[data-theme="dark"] .per-diem-note-tip{
  background:var(--pgds-surface);
  color:#fecaca;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 28px rgba(0,0,0,0.55);
}
html[data-theme="dark"] .per-diem-note-tip::after{
  border-top-color:var(--pgds-surface);
}

.per-diem-mobile-tip{
  position:absolute;
  top:var(--space-sm);
  left:50%;
  transform:translate(-50%,-50%);
  background:rgba(16,43,41,0.95);
  color:#f0fdf4;
  border:1px solid rgba(4,112,116,0.3);
  border-radius:18px;
  padding:6px 16px;
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.02em;
  box-shadow:0 14px 24px rgba(15,23,42,0.3);
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:normal;
  flex-wrap:wrap;
  row-gap:4px;
  text-align:center;
  pointer-events:auto;
  z-index:40;
}

.per-diem-mobile-tip__close{
  border:0;
  background:rgba(255,255,255,0.12);
  color:inherit;
  width:20px;
  height:20px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.9rem;
  cursor:pointer;
}

.per-diem-mobile-tip__close:focus-visible{
  outline:2px solid rgba(255,255,255,0.5);
  outline-offset:2px;
}

@media (max-width:560px){
  .per-diem-mobile-tip{
    display:flex;
    max-width:calc(100% - 32px);
  }
}

html[data-theme="dark"] .per-diem-mobile-tip{
  background:rgba(4,26,28,0.92);
  border-color:rgba(95,225,221,0.35);
  color:#e0f2f1;
  box-shadow:0 18px 28px rgba(0,0,0,0.55);
}
.notes-cell.notes-required .note-btn{
  border-color:#f45b69;
  color:#b91c1c;
  box-shadow:0 0 0 2px rgba(244,91,105,0.16);
}
.notes-cell.notes-required .note-btn::after{
  content:'!';
  position:absolute;
  top:-6px;
  left:50%;
  transform:translateX(-50%);
  width:18px;
  height:18px;
  border-radius:50%;
  background:#f45b69;
  color:#fff;
  font-size:0.75rem;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(244,91,105,0.35);
}
.notes-cell.notes-required .note-btn:hover{
  background:rgba(244,91,105,0.08);
  color:#b91c1c;
}
.amt-edit.amount-required{
  border-color:#f45b69;
  color:#b91c1c;
  box-shadow:0 0 0 2px rgba(244,91,105,0.16);
}
.amt-edit.amount-required:hover{
  background:rgba(244,91,105,0.08);
  color:#b91c1c;
}
input.date-required{
  border-color:#f45b69 !important;
  box-shadow:0 0 0 2px rgba(244,91,105,0.16);
}
.notes-cell.has-note .note-btn{background:rgba(4,112,116,0.12);border-color:rgba(4,112,116,0.45);color:var(--pgds-text);box-shadow:0 8px 18px rgba(4,112,116,0.16);}
.notes-cell.has-note .note-btn:hover{box-shadow:0 12px 24px rgba(4,112,116,0.2);}
.note-pop{
  position:fixed;z-index:100000;background:rgba(255,255,255,0.97);
  border:1px solid rgba(214,219,226,0.9);border-radius:18px;
  box-shadow:0 28px 60px rgba(15,23,42,0.18),0 6px 18px rgba(15,23,42,0.12);
  width:min(420px,90vw);padding:18px;
  backdrop-filter:blur(18px);
}
.note-pop textarea{
  width:100%;height:130px;border:1px solid rgba(210,215,223,0.9);
  border-radius:12px;padding:10px;resize:vertical;font-family:inherit;
  background:rgba(255,255,255,0.94);
}
.note-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}
.note-actions .note-action-spacer{flex:1}
.amount-pop{
  position:fixed;
  z-index:100000;
  background:rgba(255,255,255,0.97);
  border:1px solid rgba(214,219,226,0.9);
  border-radius:18px;
  box-shadow:0 28px 60px rgba(15,23,42,0.2),0 6px 18px rgba(15,23,42,0.12);
  width:min(240px,90vw);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  backdrop-filter:blur(16px);
}
.amount-pop-title{
  font-weight:600;
  font-size:0.9rem;
  color:var(--ink);
}
.amount-pop .amount-input-wrap{
  position:relative;
}
.amount-pop .amount-input-wrap .currency-symbol{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-weight:600;
  pointer-events:none;
}
.amount-pop .amount-input-wrap input[type="number"]{
  padding-left:32px;
}
.amount-pop input[type="number"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:38px;
  border:1px solid rgba(210,215,223,0.9);
  border-radius:10px;
  padding:0 10px;
  font-size:0.95rem;
  background:#fff;
  color:var(--ink);
  box-shadow:0 4px 10px rgba(15,23,42,0.05);
}
.amount-pop input[type="number"]:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(var(--accent-rgb),0.24);
  outline:none!important;
}
.amount-pop input[type="number"]:focus-visible{outline:none!important}
.amount-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.per-diem-pop{
  position:fixed;z-index:100000;background:rgba(255,255,255,0.97);
  border:1px solid rgba(214,219,226,0.9);border-radius:18px;
  box-shadow:0 28px 60px rgba(15,23,42,0.18),0 6px 18px rgba(15,23,42,0.12);
  width:min(320px,90vw);padding:18px;
  backdrop-filter:blur(18px);
}
.per-diem-pop h3{
  margin:0 0 12px 0;font-size:1rem;font-weight:600;color:var(--ink);
}
.per-diem-pop form{display:flex;flex-direction:column;gap:12px}
.per-diem-pop label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:0.85rem;color:var(--ink-subtle)}
.per-diem-pop label.per-diem-training-inline{flex-direction:row;align-items:center;font-size:0.9rem;color:#dc2626}
.per-diem-pop label.per-diem-training-inline span{display:flex;align-items:center;gap:6px}
.per-diem-pop input[type="number"]{
  -webkit-appearance:none;
  appearance:none;
  height:40px;border:1px solid rgba(210,215,223,0.9);border-radius:10px;padding:0 10px;font-size:0.95rem;box-shadow:0 4px 10px rgba(15,23,42,0.05);
}
.per-diem-pop input[type="number"]:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),0.24);outline:none!important}
.per-diem-pop input[type="number"]:focus-visible{outline:none!important}
.per-diem-pop .per-diem-note{font-size:0.78rem;color:var(--muted)}
.per-diem-pop .per-diem-input-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}
.per-diem-pop .per-diem-helper{
  font-size:0.75rem;
  font-weight:600;
  color:rgba(15,23,42,0.55);
}
.per-diem-pop .per-diem-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}
.per-diem-pop .per-diem-actions .note-action-spacer{flex:1}
.per-diem-tag{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:0.7rem;
  font-weight:600;
  color:#047074;
  background:rgba(4,191,157,0.15);
  border:1px solid rgba(4,191,157,0.2);
}

.section-title{
  font-size:1.18rem;
  font-weight:600;
  color:var(--ink);
  margin:26px 0 14px 0;
  letter-spacing:-0.005em;
}
.section-title.centered{text-align:center;}

.modal-overlay{
  position:fixed;inset:0;background:rgba(15,23,42,0.42);z-index:100000;
  display:flex;align-items:center;justify-content:center;padding:24px;
  animation:fadeIn 0.2s ease;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal-content{
  background:rgba(255,255,255,0.96);border-radius:26px;box-shadow:0 36px 80px rgba(15,23,42,0.3);
  width:100%;max-width:720px;max-height:90vh;display:flex;flex-direction:column;
  animation:slideUp 0.3s ease;
  backdrop-filter:blur(20px);
}
@keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-header{
  padding:24px 28px;border-bottom:1px solid rgba(214,219,226,0.8);
  display:flex;align-items:center;justify-content:space-between;
}
.modal-title{font-size:1.32rem;font-weight:600;color:var(--ink)}
.modal-close{
  border:none;background:transparent;font-size:1.5rem;color:var(--muted);
  cursor:pointer;width:36px;height:36px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;transition:background .18s ease,color .18s ease;
}
.modal-close:hover{background:rgba(15,23,42,0.08);color:var(--ink)}
.modal-body{padding:26px;overflow-y:auto;flex:1}

.dropzone{
  border:1px dashed rgba(var(--accent-rgb),0.3);border-radius:20px;padding:44px 24px;
  text-align:center;background:rgba(223,242,240,0.58);cursor:pointer;transition:all .22s;
  margin-bottom:22px;
  box-shadow:0 20px 38px rgba(15,23,42,0.05);
}
.dropzone:hover,.dropzone.drag-over{border-color:var(--accent);background:rgba(var(--accent-rgb),0.16);box-shadow:0 24px 48px rgba(var(--accent-rgb),0.28);transform:translateY(-2px)}
.dropzone-icon{font-size:3rem;margin-bottom:12px}
.dropzone-text{font-size:1.02rem;font-weight:600;color:var(--ink);margin-bottom:6px;letter-spacing:.01em}
.dropzone-hint{font-size:0.86rem;color:var(--muted);letter-spacing:.01em}

.files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-bottom:24px}
.file-card{
  border:1px solid rgba(214,219,226,0.85);border-radius:18px;padding:14px;
  background:rgba(255,255,255,0.95);position:relative;transition:box-shadow .18s ease,transform .18s ease;
  box-shadow:0 16px 32px rgba(15,23,42,0.08);
}
.file-card:hover{box-shadow:0 24px 48px rgba(15,23,42,0.15);transform:translateY(-3px)}
.file-preview{
  width:100%;height:110px;border-radius:12px;margin-bottom:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(244,246,250,0.92);overflow:hidden;
}
.file-preview img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.submission-log-list{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.submission-log-item{width:100%;text-align:left;border:1px solid rgba(214,219,226,0.9);border-radius:16px;padding:14px 16px;background:rgba(255,255,255,0.98);cursor:pointer;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.submission-log-item:hover{border-color:rgba(var(--accent-rgb),0.5);box-shadow:0 18px 34px rgba(15,23,42,0.12);transform:translateY(-2px)}
.submission-log-title{font-weight:700;font-size:0.96rem;color:var(--ink);margin-bottom:6px;display:flex;align-items:center;gap:8px}
.submission-log-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:0.86rem;color:var(--ink-subtle)}
.submission-log-meta span{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(15,23,42,0.04);border:1px solid rgba(214,219,226,0.9)}
.submission-log-hint{margin:0 0 12px 0;font-size:0.9rem;color:var(--ink-subtle)}
.submission-log-empty{padding:18px;border:1px dashed rgba(214,219,226,0.9);border-radius:14px;color:var(--ink-subtle);background:rgba(249,250,251,0.8);text-align:center;font-weight:600}

/* Dark mode for upload modal */
html[data-theme="dark"] .modal-overlay{
  background:rgba(8,13,20,0.7);
}
html[data-theme="dark"] .modal-content{
  background:var(--pgds-surface);
  border:1px solid var(--pgds-border);
  box-shadow:0 30px 60px rgba(0,0,0,0.65);
}
html[data-theme="dark"] .modal-header{
  border-color:var(--pgds-border);
}
html[data-theme="dark"] .modal-title{
  color:var(--pgds-text);
}
html[data-theme="dark"] .modal-close{
  color:var(--pgds-text-muted);
}
html[data-theme="dark"] .modal-close:hover{
  background:rgba(95,225,221,0.12);
  color:var(--pgds-text);
}
html[data-theme="dark"] .modal-body{
  color:var(--pgds-text);
}
html[data-theme="dark"] .dropzone{
  background:rgba(15,45,55,0.6);
  border-color:rgba(95,225,221,0.45);
  box-shadow:0 18px 36px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .dropzone:hover,
html[data-theme="dark"] .dropzone.drag-over{
  background:rgba(18,53,68,0.75);
  border-color:rgba(95,225,221,0.65);
  box-shadow:0 20px 40px rgba(0,0,0,0.55);
}
html[data-theme="dark"] .dropzone-text{
  color:var(--pgds-text);
}
html[data-theme="dark"] .dropzone-hint{
  color:var(--pgds-text-muted);
}
html[data-theme="dark"] .submission-log-item{
  background:var(--pgds-surface);
  border-color:var(--pgds-border);
  color:var(--pgds-text);
}
html[data-theme="dark"] .submission-log-title{
  color:var(--pgds-text);
}
html[data-theme="dark"] .submission-log-meta span{
  background:rgba(95,225,221,0.12);
  border-color:rgba(95,225,221,0.4);
  color:var(--pgds-text);
}
html[data-theme="dark"] .submission-log-meta{
  color:var(--pgds-text-muted);
}
html[data-theme="dark"] .submission-log-hint{
  color:var(--pgds-text-muted);
}
html[data-theme="dark"] .submission-log-empty{
  border-color:var(--pgds-border);
  color:var(--pgds-text-muted);
  background:rgba(15,45,55,0.5);
}
html[data-theme="dark"] .file-card{
  background:var(--pgds-card);
  border-color:var(--pgds-border);
  box-shadow:0 16px 32px rgba(0,0,0,0.45);
}
html[data-theme="dark"] .file-card:hover{
  box-shadow:0 20px 40px rgba(0,0,0,0.55);
}
html[data-theme="dark"] .file-preview{
  background:rgba(18,36,46,0.85);
}
.file-preview-icon{font-size:2.4rem;color:var(--accent)}
.file-card-name{
  font-size:0.85rem;font-weight:600;color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  margin-bottom:4px;letter-spacing:.01em;
}
html[data-theme="dark"] .file-card-name{
  color:var(--pgds-text);
}
.file-card-size{font-size:0.75rem;color:var(--muted)}
.file-card-remove{
  position:absolute;top:10px;right:10px;
  width:26px;height:26px;border-radius:50%;
  background:rgba(239,68,68,0.88);color:#fff;border:none;
  cursor:pointer;font-size:15px;font-weight:bold;
  display:flex;align-items:center;justify-content:center;
  transition:background .18s ease,transform .18s ease;
}
.file-card-remove:hover{background:rgba(220,38,38,0.95);transform:translateY(-1px)}

.modal-footer{
  padding:18px 26px;border-top:1px solid rgba(214,219,226,0.8);
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(248,250,252,0.92);
  border-radius:0 0 26px 26px;
}
.file-count{font-size:0.92rem;color:var(--muted);font-weight:600;letter-spacing:.01em}
.modal-actions{display:flex;gap:12px}

html[data-theme="dark"] .modal-footer{
  border-color:var(--pgds-border);
  background:rgba(15,31,42,0.9);
}
html[data-theme="dark"] .file-count{
  color:var(--pgds-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-content{
    animation:none!important;
  }
}

@media (max-width: 720px) {
  .upload-modal{padding:12px;}
  .upload-modal.upload-modal--mobile{
    align-items:flex-end;
    justify-content:flex-end;
    padding:0;
    animation:none;
  }
  .upload-modal.upload-modal--mobile .modal-content{
    max-width:100%;
    width:100%;
    max-height:82vh;
    border-radius:20px 20px 0 0;
    animation:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    box-shadow:0 18px 36px rgba(15,23,42,0.35);
  }
  .upload-modal.upload-modal--mobile .modal-body{
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .upload-modal.upload-modal--mobile .dropzone{
    box-shadow:none;
    background:rgba(223,242,240,0.9);
    transform:none!important;
  }
  .upload-modal.upload-modal--mobile .files-grid{
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  }
}

.sig-btm{margin-top:40px;text-align:center}
.sig-row{display:flex;justify-content:center;gap:60px;flex-wrap:wrap}
.sig-slot{text-align:center;min-width:200px;position:relative;padding-bottom:6px}
.sig-box{
  width:200px;
  height:50px;
  border-bottom:2px solid #333;
  margin:0 auto 8px auto;
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.sig-print-name{
  font-family:'Great Vibes',cursive;
  font-size:2rem;
  color:#000;
  line-height:1;
  position:absolute;
  bottom:-2px;
  left:0;
  right:0;
  white-space:nowrap;
  padding:0 8px;
}
.sig-print-name.is-long{font-size:1.65rem;}
.sig-print-name.is-very-long{font-size:1.45rem;}
.sig-date{
  font-size:.85rem;
  color:#4b5563;
  margin-top:4px;
}
.sig-date span{font-weight:600;}
.sig-cap{display:block;font-size:.9rem;font-weight:600;color:#333;margin-top:4px}

.print-header,.print-only{display:none!important}
.project-print{display:none;}
.date-print{display:none}
.print-table{display:none!important}
#itemizedScreenTable{display:table!important}

.pac-container{
  background:rgba(255,255,255,0.95);
  border:1px solid rgba(214,219,226,0.85);
  border-radius:16px;
  box-shadow:0 24px 48px rgba(15,23,42,0.18),0 6px 18px rgba(15,23,42,0.12);
  margin-top:6px;
  font-family:var(--font-family-sans);
  backdrop-filter:blur(16px);
}
.pac-item{
  padding:10px 14px;
  cursor:pointer;
  font-size:0.92rem;
  border:none;
  line-height:1.4;
  color:var(--ink-subtle);
}
.pac-item:hover{
  background:var(--accent-soft);
  color:var(--accent);
}
.pac-icon{
  display:none;
}
.pac-item-query{
  font-weight:600;
  color:var(--ink);
}

@media print{
  @page{size:letter portrait;margin:0.5in;}
  html,body{width:100%!important;height:auto!important;min-height:auto!important;margin:0!important;padding:0!important;background:white!important;display:block!important;overflow:visible!important;font-size:10pt!important;line-height:1.2!important;color:#000!important;}
  .header,.controls,.no-print{display:none!important;}
  .sidebar,
  .app-header,
  .screen-only,
  .change-name-checkbox,
  .mobile-nav-trigger,
  .mobile-toggle,
  #mobileNavToggle,
  .wo-tip-trigger,
  .date-fill-handle,
  .loading-overlay{display:none!important;}
  #screenTable{display:none!important;}
  .print-table{display:block!important;}
  .ph-generated{display:block!important;font-size:9pt!important;color:#000!important;margin:4px 0 0 0!important;}
  .pgds-select .pgds-display{display:none!important;}
  .pgds-select .work-print,
  .pgds-select .lunch-print,
  .pgds-select .period-print,
  .pgds-select .timesheet-print{display:block!important;font-size:9pt!important;font-weight:600!important;color:#000!important;text-align:left!important;padding:1px 0!important;}
  .panel{box-shadow:none!important;background:transparent!important;border:none!important;}
  .app-body{margin-left:0!important;}
  .table-wrap{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-shadow:none!important;border:1px solid #333!important;border-radius:8px!important;background:white!important;}
  .table-wrap .table-content{padding:0!important;}
  .table-wrap.print-table{overflow:hidden!important;}
.print-itemized{max-width:100%!important;}
  .print-header{display:grid!important;grid-template-columns:1fr;grid-template-rows:auto auto auto;row-gap:6px;align-items:center;justify-items:center;text-align:center;margin:0 0 18px 0!important;width:100%!important;page-break-inside:avoid;}
.ph-logo{width:180px!important;height:auto!important;}
.ph-subtitle{font-size:10pt!important;color:#1d4ed8!important;margin:0!important;}
.ph-payperiod{font-size:9pt!important;font-weight:700!important;color:#000!important;margin:0!important;}
.ph-payperiod .ph-pay-label{font-weight:700!important;margin-right:4px!important;}
.ph-submitted{font-size:9pt!important;font-weight:700!important;color:#000!important;margin:0!important;}
.ph-submitted .ph-submitted-label{margin-right:4px!important;}
.card{margin:0!important;padding:0!important;border:none!important;border-radius:0!important;box-shadow:none!important;background:white!important;max-width:none!important;width:100%!important;}
.pdf-submitted{display:flex!important;justify-content:flex-start!important;gap:6px!important;font-size:8pt!important;font-weight:600!important;color:#000!important;margin:0 0 6px!important;}
.pdf-submitted .pdf-submitted-label{font-weight:700!important;}
.info-bar{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;padding:8px!important;border:1px solid #333!important;border-radius:8px!important;background:white!important;margin-bottom:12px!important;page-break-inside:avoid;box-shadow:none!important;}
  .info-bar > div{display:flex!important;flex-direction:column!important;gap:2px!important;padding:0!important;padding-bottom:4px!important;background:none!important;box-shadow:none!important;border-bottom:1px solid #333!important;min-height:0!important;height:auto!important;align-self:start!important;}
  .info-bar label{font-size:8pt!important;font-weight:600!important;margin:0!important;color:#000!important;}
  .info-bar .input,
  .info-bar input{display:none!important;}
  .info-bar .print-value{display:block!important;font-size:9pt!important;font-weight:600!important;color:#000!important;margin:2px 0 0 0!important;}
  .info-bar #jobNameSelect,
  .info-bar #deptSelect,
  .info-bar #mgrSelect,
  .info-bar .wo-input-wrap{display:none!important;}
  .info-bar #jobNameSelectWrap,
  .info-bar #deptSelect,
  .info-bar #mgrSelect,
  .info-bar .wo-input-wrap,
  .info-bar .pgds-select{min-height:0!important;height:auto!important;}
  .info-bar .pgds-select{display:block!important;border:none!important;background:none!important;padding:0!important;margin:0!important;}
  .info-bar .pgds-display,
  .info-bar .pgds-display:after{display:none!important;}
.pgds-select .dept-chip::after,
.pgds-select .dept-chip::before,
.pgds-select .work-chip::before,
.pgds-select .project-chip::before,
.pgds-select .period-chip::before{display:none!important;}
.pgds-select .dept-chip,
.pgds-select .work-chip,
  .pgds-select .chip-text{color:#000!important;box-shadow:none!important;}
  .pgds-select .work-chip::before{box-shadow:none!important;background:#000!important;}
  .table-wrap{border:1px solid #333!important;border-radius:12px!important;background:white!important;box-shadow:none!important;}
  .table-wrap table{table-layout:auto!important;width:100%!important;border-collapse:collapse!important;border-spacing:0!important;}
  /* Avoid Chrome print border glitches with positioned table cells. */
  #printTable .cell-amt,
  #itemizedPrintTable .cell-amt{position:static!important;}
  #printTable th,
  #printTable td,
  #itemizedPrintTable th,
  #itemizedPrintTable td{border:1px solid #333!important;}
  thead th{background:white!important;color:#000!important;border:1px solid #333!important;padding:4px 2px!important;font-size:8pt!important;font-weight:700!important;text-align:center!important;}
	  tbody td{border:1px solid #333!important;padding:3px 1px!important;background:white!important;text-align:center!important;vertical-align:middle!important;font-size:8pt!important;}
	  #printTable .print-expense-note-row td{
	    border:1px solid #333!important;
	    border-top:0!important;
	    padding:3px 4px 5px!important;
	    background:white!important;
	    color:#000!important;
	    font-size:7.5pt!important;
	    line-height:1.25!important;
	    vertical-align:top!important;
	  }
	  #printTable .print-expense-note-lead{
	    text-align:center!important;
	  }
	  #printTable .print-expense-note-cell{
	    text-align:left!important;
	    font-weight:600!important;
	    white-space:normal!important;
	    word-break:normal!important;
	    overflow-wrap:anywhere!important;
	  }
	  #printTable .print-expense-note-cell.is-empty{
	    color:transparent!important;
	  }
	  tfoot td{border:1px solid #333!important;padding:4px 2px!important;background:#f5f5f5!important;font-weight:700!important;font-size:9pt!important;text-align:center!important;}
	  .print-notes-summary{text-align:center!important;font-size:8pt!important;margin:12px 0 8px 0!important;line-height:1.3!important;}
	  .print-notes-section{display:none!important;}
	  .print-notes-title{font-size:9pt!important;font-weight:700!important;margin-bottom:4px!important;}
  .print-daily-notes{margin:8px 0 12px 0!important;font-size:8pt!important;}
  .daily-note-item{margin:4px 0!important;padding:2px 8px!important;text-align:left!important;background:transparent!important;border:none!important;}
  .daily-note-date{display:inline!important;color:#000!important;}
  .daily-note-text{display:inline!important;color:#333!important;}
	  .print-note-date{display:inline!important;font-weight:700!important;color:#000!important;}
	  .print-only{display:block!important;margin-top:15px!important;}
	  .print-only.print-notes-section{display:none!important;}
	  .sig-btm{margin-top:25px!important;page-break-inside:avoid;}
  .sig-row{display:flex!important;justify-content:center!important;gap:60px!important;}
  .sig-slot{text-align:center!important;min-width:160px!important;position:relative!important;padding-bottom:6px!important;}
  .sig-box{width:160px!important;height:35px!important;border-bottom:2px solid #000!important;margin:15px auto 6px auto!important;position:relative!important;}
  .sig-print-name{font-size:1.55rem!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;padding:0 6px!important;}
  .sig-print-name.is-long{font-size:1.35rem!important;}
  .sig-print-name.is-very-long{font-size:1.2rem!important;}
  .sig-cap{display:block!important;margin-top:4px!important;font-size:9pt!important;font-weight:600!important;color:#000!important;}
}

html.pdf-export,
body.pdf-export{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  background:white!important;
  display:block!important;
  overflow:visible!important;
  font-size:9pt!important;
  line-height:1.15!important;
  color:#000!important;
}

body.pdf-export .header,
body.pdf-export .controls,
body.pdf-export .no-print{display:none!important}
body.pdf-export #screenTable,
body.pdf-export #itemizedScreenTable{display:none!important}
body.pdf-export .print-table{display:block!important}
body.pdf-export .change-name-checkbox{display:none!important}
body.pdf-export .bottom-nav{display:none!important}

body.pdf-export .print-header{
  display:grid!important;
  grid-template-columns:1fr;
  grid-template-rows:auto auto auto auto auto;
  row-gap:4px;
  align-items:center;
  justify-items:center;
  text-align:center;
  margin-bottom:12px;
  margin-top:0;
}
body.pdf-export .ph-logo{width:140px!important;height:auto!important}
body.pdf-export .ph-title{font-size:12pt!important;font-weight:700!important;margin:0!important}
body.pdf-export .ph-subtitle{font-size:9pt!important;color:#1d4ed8!important;margin:0!important}
body.pdf-export .ph-payperiod{font-size:9pt!important;font-weight:700!important;color:#000!important;margin:0!important}
body.pdf-export .ph-payperiod .ph-pay-label{font-weight:700!important;margin-right:4px!important}
body.pdf-export .ph-submitted{font-size:9pt!important;font-weight:700!important;color:#000!important;margin:0!important}
body.pdf-export .ph-submitted .ph-submitted-label{margin-right:4px!important}

body.pdf-export .card{
  margin:0!important;
  padding:0!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:white!important;
  max-width:none!important;
  width:100%!important;
}

body.pdf-export .app-shell{
  display:block!important;
  grid-template-columns:1fr!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
}
body.pdf-export .sidebar{
  display:none!important;
}
body.pdf-export .app-body{
  margin-left:0!important;
  padding:0!important;
}
body.pdf-export .app-shell__sidebar,
body.pdf-export .app-shell__aux{display:none!important}
body.pdf-export .app-shell__main{
  margin:0!important;
  padding:0!important;
}
body.pdf-export #pdfExportRoot{
  width:calc(8.5in - 1in)!important;
  max-width:90%!important;
  margin:0 auto!important;
  padding:0 0 12px 0!important;
  box-sizing:border-box!important;
}
body.pdf-export .mobile-nav-trigger,
body.pdf-export .mobile-toggle,
body.pdf-export #mobileNavToggle{
  display:none!important;
}

body.pdf-export .info-bar{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:4px!important;
  padding:6px!important;
  border:1px solid #333!important;
  border-radius:6px!important;
  background:white!important;
  margin-bottom:8px!important;
}
body.pdf-export .info-bar label{
  font-size:7pt!important;
  font-weight:600!important;
  margin-bottom:1px!important;
  color:#000!important;
}
body.pdf-export .info-bar > div{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  padding:0!important;
  padding-bottom:4px!important;
  background:none!important;
  box-shadow:none!important;
  border-bottom:1px solid #333!important;
  min-height:0!important;
  height:auto!important;
  align-self:start!important;
}
body.pdf-export .info-bar .input{
  border:none!important;
  border-bottom:1px solid #333!important;
  border-radius:0!important;
  background:white!important;
  background-image:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
  color:#000!important;
  padding:1px 0!important;
  font-size:8pt!important;
  height:auto!important;
  display:none!important;
}
body.pdf-export .info-bar .print-value{
  display:block!important;
  font-size:9pt!important;
  font-weight:600!important;
  color:#000!important;
  margin:2px 0 0 0!important;
}
body.pdf-export .info-bar #jobNameSelect,
body.pdf-export .info-bar #deptSelect,
body.pdf-export .info-bar #mgrSelect,
body.pdf-export .info-bar .wo-input-wrap{
  display:none!important;
}
body.pdf-export .info-bar #jobNameSelectWrap,
body.pdf-export .info-bar #deptSelect,
body.pdf-export .info-bar #mgrSelect,
body.pdf-export .info-bar .wo-input-wrap,
body.pdf-export .info-bar .pgds-select{
  min-height:0!important;
  height:auto!important;
}
body.pdf-export .info-bar .pgds-display{
  display:none!important;
}
body.pdf-export .info-bar .pgds-display:after{display:none!important}
body.pdf-export .info-bar .pp-chip{
  border:none!important;
  background:transparent!important;
  padding:0!important;
  font-size:8pt!important;
  font-weight:400!important;
  color:#000!important;
}
body.pdf-export .info-bar .dept-chip,
body.pdf-export .info-bar .mgr-chip{
  border:none!important;
  background:transparent!important;
  padding:0!important;
  font-size:8pt!important;
  font-weight:400!important;
  color:#000!important;
}
body.pdf-export .info-bar .pgds-select{
  display:block!important;
  border:none!important;
  background:none!important;
  padding:0!important;
  margin:0!important;
}

body.pdf-export .print-table{border-radius:8px!important;overflow:hidden!important}
body.pdf-export .table-wrap.print-table{
  border:1px solid #333!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background:white!important;
  margin-bottom:8px!important;
  padding:0!important;
}
body.pdf-export .table-wrap{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.pdf-export .table-wrap.print-table .table-content{padding:0!important}
body.pdf-export .print-table table{
  table-layout:auto!important;
  width:100%!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
}
body.pdf-export .print-table thead th{
  background:white!important;
  color:#000!important;
  border:1px solid #333!important;
  padding:3px 2px!important;
  font-size:6.5pt!important;
  font-weight:700!important;
  text-align:center!important;
}
body.pdf-export .print-table tbody td{
  border:1px solid #333!important;
  padding:2px 1px!important;
  background:white!important;
  text-align:center!important;
  vertical-align:middle!important;
  font-size:7pt!important;
}
body.pdf-export #printTable .print-expense-note-row td{
  border:1px solid #333!important;
  border-top:0!important;
  padding:2px 4px 4px!important;
  background:white!important;
  color:#000!important;
  font-size:7pt!important;
  line-height:1.25!important;
  vertical-align:top!important;
}
body.pdf-export #printTable .print-expense-note-lead{
  text-align:center!important;
}
body.pdf-export #printTable .print-expense-note-cell{
  text-align:left!important;
  font-weight:600!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
body.pdf-export #printTable .print-expense-note-cell.is-empty{
  color:transparent!important;
}
body.pdf-export .pdf-submitted{
  display:flex!important;
  justify-content:flex-start!important;
  gap:6px!important;
  font-size:8pt!important;
  font-weight:600!important;
  color:#000!important;
  margin:0 0 6px!important;
}
body.pdf-export .pdf-submitted .pdf-submitted-label{font-weight:700!important;}
body.pdf-export .print-meta table tbody th{
  border:1px solid #333!important;
  background:#f5f5f5!important;
  padding:3px 2px!important;
  font-size:7pt!important;
  font-weight:700!important;
  text-align:left!important;
  width:22%!important;
}
body.pdf-export .print-meta table tbody td{
  border:1px solid #333!important;
  padding:3px 2px!important;
  font-size:7pt!important;
  text-align:left!important;
  vertical-align:middle!important;
}

body.pdf-export .print-itemized{
  display:block!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

body.pdf-export #itemizedPrintTable thead th{
  padding:6px 8px!important;
  font-size:8pt!important;
  line-height:1.4!important;
}
body.pdf-export #itemizedPrintTable tbody td{
  padding:6px 8px!important;
  font-size:8pt!important;
  line-height:1.4!important;
  height:auto!important;
  min-height:24px!important;
}

body.pdf-export input[type="date"]:not(.info-bar input),
body.pdf-export input[type="text"]:not(.info-bar input),
body.pdf-export input[type="number"]:not(.info-bar input){display:none!important}
body.pdf-export .date-print{display:inline!important;font-size:8pt!important}

body.pdf-export .print-table tfoot{display:table-footer-group!important}
body.pdf-export .print-table tfoot td{
  border:1px solid #333!important;
  padding:3px 2px!important;
  background:#f5f5f5!important;
  font-weight:700!important;
  font-size:7pt!important;
  text-align:center!important;
  color:#000!important;
}

body.pdf-export .itemized-summary-row td{
  background:white!important;
  border:1px solid #333!important;
  border-radius:0!important;
  padding:3px 2px!important;
  box-shadow:none!important;
}
body.pdf-export .itemized-summary-row td:first-child,
body.pdf-export .itemized-summary-row td:last-child{
  border-radius:0!important;
}
body.pdf-export .itemized-summary__value{
  display:block!important;
  text-align:right!important;
  gap:0!important;
  color:#000!important;
}
body.pdf-export .itemized-summary__actions{display:none!important;}

body.pdf-export .section-title{
  font-size:9pt!important;
  font-weight:700!important;
  margin:8px 0 4px 0!important;
}

body.pdf-export .print-notes-section{
  display:none!important;
  margin:8px 0!important;
}
body.pdf-export .print-notes-title{
  font-size:9pt!important;
  font-weight:700!important;
  margin-bottom:4px!important;
}
body.pdf-export .print-note-item{
  margin-bottom:3px!important;
  font-size:7pt!important;
  line-height:1.3!important;
}
body.pdf-export .print-note-date{font-weight:700!important}

body.pdf-export .print-only{display:block!important;margin-top:10px!important}
body.pdf-export .print-only.print-notes-section{display:none!important}
body.pdf-export .sig-btm{
  margin-top:15px!important;
  page-break-inside:avoid!important;
  break-inside:avoid-page!important;
}
body.pdf-export .sig-row{
  display:flex!important;
  justify-content:center!important;
  gap:50px!important;
}
body.pdf-export .sig-slot{text-align:center!important;min-width:140px!important;position:relative!important;padding-bottom:6px!important}
body.pdf-export .sig-box{
  width:140px!important;
  height:30px!important;
  border-bottom:2px solid #000!important;
  margin:10px auto 4px auto!important;
  position:relative!important;
}
body.pdf-export .sig-print-name{font-size:1.55rem!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;padding:0 6px!important;}
body.pdf-export .sig-print-name.is-long{font-size:1.35rem!important;}
body.pdf-export .sig-print-name.is-very-long{font-size:1.2rem!important;}
body.pdf-export .sig-date{
  display:block!important;
  margin-top:4px!important;
  font-size:8pt!important;
  font-weight:600!important;
  color:#000!important;
}
body.pdf-export .sig-date span{font-weight:700!important;}
body.pdf-export .sig-cap{
  display:block!important;
  margin-top:4px!important;
  font-size:8pt!important;
  font-weight:600!important;
  color:#000!important;
}
.sig-page-break{
  display:none;
}
body.force-sig-page .sig-page-break{
  display:block!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  page-break-before:always!important;
  break-before:page!important;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 34px 40px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(214, 219, 226, 0.85);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.4);
  color: var(--ink);
  text-align: center;
  max-width: 280px;
  position:relative;
}

.loader {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 6px solid rgba(245, 158, 11, 0.18);
  border-top-color: #ef4444;
  animation: loadingSpin 0.9s linear infinite;
}

.loading-message {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.loading-close{
  position:absolute;
  top:12px;
  right:12px;
  width:32px;
  height:32px;
  border:none;
  border-radius:50%;
  background:rgba(15,23,42,0.12);
  color:#0f172a;
  font-size:1.1rem;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease,transform .2s ease;
  display:none;
}
.loading-close.visible{display:block;}
.loading-close:hover{
  background:rgba(15,23,42,0.2);
  transform:scale(1.05);
}
.loading-progress{
  width:100%;
  margin-top:14px;
}
.loading-progress__track{
  width:100%;
  height:8px;
  background:rgba(15,23,42,0.15);
  border-radius:999px;
  overflow:hidden;
}
.loading-progress__bar{
  width:0%;
  height:100%;
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  transition:width .2s ease;
}

@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}

:root {
  color-scheme: light;
  --pgds-primary: #047074;
  --pgds-primary-dark: #025e73;
  --pgds-accent: #04bf9d;
  --pgds-background: #f5fbfa;
  --pgds-surface: #ffffff;
  --pgds-muted: #6f7685;
  --pgds-border: rgba(12, 28, 40, 0.12);
  --pgds-card: rgba(255, 255, 255, 0.85);
  --pgds-shadow: 0 16px 40px rgba(6, 32, 43, 0.12);
  --pgds-text: #1f2a33;
  --pgds-text-muted: #5b616d;
  --pgds-font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --pgds-primary: #5fe1dd;
  --pgds-primary-dark: #3cbab6;
  --pgds-accent: #f3b33d;
  --pgds-background: #0f1c28;
  --pgds-surface: #142433;
  --pgds-muted: #9da7b6;
  --pgds-border: rgba(255, 255, 255, 0.08);
  --pgds-card: rgba(20, 36, 51, 0.75);
  --pgds-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  --pgds-text: #f7fbff;
  --pgds-text-muted: #b0bac9;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--pgds-background);
  color: var(--pgds-text);
  display: block;
  padding: 0;
  background-attachment: scroll;
  font: 400 16px/1.45 var(--pgds-font);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  position: relative;
  gap: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 250px;
}

.app-main {
  padding: 15px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.panel {
  background: var(--pgds-card);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--pgds-border);
  box-shadow: var(--pgds-shadow);
  width: 100%;
}

#pdfExportRoot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 14px 12px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}
#pdfExportRoot > main.card{
  position: relative;
}

.card {
  border-radius: 24px;
  padding: 24px 28px 28px;
  border: 1px solid var(--pgds-border);
  background: var(--pgds-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease;
  box-shadow: var(--pgds-shadow);
  width: 100%;
  max-width: none;
}

.card:hover {
  box-shadow: var(--pgds-shadow);
}

.info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--pgds-surface);
  border: 1px solid var(--pgds-border);
  box-shadow: var(--pgds-shadow);
  margin-bottom: 18px;
}

.info-bar > div {
  min-height: 86px;
}

.info-bar label {
  color: var(--pgds-text-muted);
}

.input,
textarea,
select,
input[type='number'],
input[type='date'],
input[type='time'],
input[type='text'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pgds-border);
  border-radius: 14px;
  padding: 12px 18px;
  background: var(--pgds-surface);
  color: var(--pgds-text);
  outline: none;
  font-family: "Source Sans Pro","Segoe UI",sans-serif;
  font-size: .95rem;
  line-height: 1.4;
  text-shadow: none;
  box-shadow: var(--pgds-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.input:hover,
textarea:hover,
select:hover,
input[type='number']:hover,
input[type='date']:hover,
input[type='time']:hover,
input[type='text']:hover {
  border-color: rgba(4, 112, 116, 0.35);
}

.input:focus,
textarea:focus,
select:focus,
input[type='number']:focus,
input[type='date']:focus,
input[type='time']:focus,
input[type='text']:focus {
  border-color: rgba(4, 112, 116, 0.55);
  box-shadow: 0 0 0 3px rgba(4, 112, 116, 0.2);
  background: var(--pgds-surface);
}

.input:read-only {
  background: var(--pgds-card);
  cursor: text;
  color: var(--pgds-text-muted);
}

.table-wrap {
  border-radius: 20px;
  border: 1px solid var(--pgds-border);
  overflow: visible;
  background: var(--pgds-surface);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.07);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.table-wrap.print-table {
  overflow: hidden;
}

.table-wrap:not(.print-table) {
  padding: 0;
}

.table-wrap.no-print .table-content {
  min-height: 0;
  height: auto;
}

.table-wrap:not(.print-table) table {
  border-radius: 20px;
  background: var(--pgds-surface);
}

.table-wrap:not(.print-table) thead th:first-child { border-top-left-radius: 20px; }
.table-wrap:not(.print-table) thead th:last-child { border-top-right-radius: 20px; }
.table-wrap:not(.print-table) tfoot td:first-child { border-bottom-left-radius: 20px; }
.table-wrap:not(.print-table) tfoot td:last-child { border-bottom-right-radius: 20px; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

#screenTable,
#printTable {
  table-layout: fixed;
}

.print-table .line-col,
.print-table .print-line-number{
  width:36px;
  text-align:center;
  font-weight:600;
}
.print-table .reimb-col,
.print-table .print-reimburse{
  width:34px;
  text-align:center;
  font-weight:700;
}
.print-table .print-reimburse{
  font-size:.9rem;
  letter-spacing:.02em;
}

.table-wrap:not(.print-table) table th:nth-child(5),
.table-wrap:not(.print-table) table td:nth-child(5) {
  min-width: 150px;
}

.table-wrap table input[type="text"],
.table-wrap table input[type="date"],
.table-wrap table input[type="number"] {
  width: 100%;
  max-width: 100%;
}

thead th {
  background: rgba(4, 112, 116, 0.08);
  color: var(--pgds-text);
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--pgds-border);
  letter-spacing: .02em;
}

tbody td,
tfoot td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--pgds-border);
  text-align: center;
  vertical-align: middle;
  background: var(--pgds-surface);
  font-size: .9rem;
  line-height: 1.35;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(4, 112, 116, 0.06); }
tfoot td {
  font-weight: 700;
  background: var(--pgds-card);
  border-bottom: 0;
  font-size: .95rem;
  color: var(--pgds-text);
}
tfoot tr { background: var(--pgds-card); }

.pgds-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.pgds-display {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 0 44px 0 18px;
  flex-wrap: nowrap;
  border-radius: 26px;
  border: 1px solid var(--pgds-border);
  background: var(--pgds-surface);
  color: var(--pgds-text);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  text-shadow: none;
  cursor: pointer;
  user-select: none;
  line-height: 1.1;
  overflow: visible;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
  box-shadow: var(--pgds-shadow);
  box-sizing: border-box;
}

.pgds-display::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--pgds-text-muted);
  transition: transform 0.18s ease;
}

.pgds-display[aria-expanded="true"]::after { transform: translateY(-50%) rotate(180deg); }

.pgds-display:hover { border-color: rgba(4, 112, 116, 0.45); box-shadow: 0 0 0 2px rgba(4, 112, 116, 0.12); }
.pgds-display:focus { outline: none; }
.pgds-display:focus-visible {
  border-color: rgba(4, 112, 116, 0.65);
  box-shadow: 0 0 0 3px rgba(4, 112, 116, 0.2);
}
.pgds-display:active {
  border-color: rgba(4, 112, 116, 0.65);
  box-shadow: 0 0 0 2px rgba(4, 112, 116, 0.15);
}

#jobNameSelectWrap {
  position: relative;
  isolation: isolate;
}

#jobNameSelectWrap .pgds-display {
  border-color: rgba(127, 40, 50, 0.65);
  box-shadow: 0 20px 46px rgba(127, 40, 50, 0.32), 0 0 0 3px rgba(242, 141, 151, 0.2);
  animation: jobFieldGlow 2.6s ease-out 1;
}

#jobNameSelectWrap .pgds-display:hover {
  box-shadow: 0 0 0 3px rgba(242, 141, 151, 0.28), 0 18px 30px rgba(127, 40, 50, 0.32);
}

@keyframes jobFieldGlow {
  0% {
    box-shadow: 0 28px 56px rgba(127, 40, 50, 0.38), 0 0 0 0 rgba(242, 141, 151, 0.32);
  }
  60% {
    box-shadow: 0 32px 60px rgba(127, 40, 50, 0.45), 0 0 0 10px rgba(242, 141, 151, 0.22);
  }
  100% {
    box-shadow: 0 20px 46px rgba(127, 40, 50, 0.32), 0 0 0 3px rgba(242, 141, 151, 0.2);
  }
}

.pgds-display .chip-text,
.pgds-display .dept-chip,
.pgds-display .work-chip,
.pgds-display .period-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-weight: 600;
  text-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgds-display .chip-text.is-placeholder,
.pgds-display .dept-chip.is-placeholder,
.pgds-display .work-chip.placeholder,
.pgds-display .period-chip.is-placeholder { color: var(--pgds-text-muted); }

.table-actions {
  margin: 12px auto 24px auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 560px;
}

.table-actions .btn { min-width: 170px; }

.expense-mobile-view {
  display: none;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  gap: 14px;
}

.expense-mobile-view__header {
  display: grid;
  gap: 6px;
  padding: 4px 4px 0;
  justify-items: center;
  text-align: center;
  order: 0;
}

.expense-mobile-view__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pgds-text-muted);
}

.expense-mobile-view__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--pgds-text);
}

.expense-mobile-view__copy {
  margin: 0;
  max-width: 38ch;
  font-size: 0.88rem;
  color: var(--pgds-text-muted);
}

.expense-mobile-view__cards {
  display: grid;
  gap: 14px;
  order: 1;
}

.expense-mobile-view__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--pgds-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--pgds-text-muted);
  text-align: center;
  order: 2;
}

.expense-mobile-card {
  --expense-mobile-card-border: rgba(4, 112, 116, 0.18);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 3px solid var(--expense-mobile-card-border);
  border-radius: 24px;
  background: var(--pgds-surface);
  box-shadow: var(--pgds-shadow);
  text-align: center;
}

.expense-mobile-card:nth-child(12n+1) {
  --expense-mobile-card-border: rgba(4, 112, 116, 0.24);
}

.expense-mobile-card:nth-child(12n+2) {
  --expense-mobile-card-border: rgba(153, 92, 53, 0.2);
}

.expense-mobile-card:nth-child(12n+3) {
  --expense-mobile-card-border: rgba(84, 103, 45, 0.2);
}

.expense-mobile-card:nth-child(12n+4) {
  --expense-mobile-card-border: rgba(88, 93, 168, 0.18);
}

.expense-mobile-card:nth-child(12n+5) {
  --expense-mobile-card-border: rgba(145, 74, 108, 0.18);
}

.expense-mobile-card:nth-child(12n+6) {
  --expense-mobile-card-border: rgba(120, 98, 46, 0.2);
}

.expense-mobile-card:nth-child(12n+7) {
  --expense-mobile-card-border: rgba(58, 96, 86, 0.2);
}

.expense-mobile-card:nth-child(12n+8) {
  --expense-mobile-card-border: rgba(124, 79, 59, 0.18);
}

.expense-mobile-card:nth-child(12n+9) {
  --expense-mobile-card-border: rgba(98, 83, 142, 0.16);
}

.expense-mobile-card:nth-child(12n+10) {
  --expense-mobile-card-border: rgba(84, 96, 112, 0.22);
}

.expense-mobile-card:nth-child(12n+11) {
  --expense-mobile-card-border: rgba(112, 56, 85, 0.16);
}

.expense-mobile-card:nth-child(12n+12) {
  --expense-mobile-card-border: rgba(33, 104, 143, 0.18);
}

.expense-mobile-card--revealed {
  animation: expenseMobileCardReveal 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-color: rgba(4, 112, 116, 0.42);
  box-shadow: 0 0 0 4px rgba(4, 112, 116, 0.12), 0 18px 36px rgba(15, 23, 42, 0.14);
}

@keyframes expenseMobileCardReveal {
  0% {
    opacity: 0.45;
    transform: translateY(22px) scale(0.985);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.expense-mobile-card__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.expense-mobile-card__top > div:first-child {
  width: 100%;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.expense-mobile-card__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pgds-text-muted);
}

.expense-mobile-card__row-number {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--pgds-text);
}

.expense-mobile-card__reimburse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--pgds-border);
  background: rgba(4, 112, 116, 0.08);
  color: var(--pgds-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.expense-mobile-card__reimburse input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.expense-mobile-card__date {
  width: 100%;
}

.expense-mobile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.expense-mobile-action,
.expense-mobile-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--pgds-border);
  border-radius: 18px;
  background: var(--pgds-surface);
  color: var(--pgds-text);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.expense-mobile-action:hover,
.expense-mobile-action:focus-visible,
.expense-mobile-card__date:hover,
.expense-mobile-card__date:focus-visible {
  border-color: rgba(4, 112, 116, 0.45);
  box-shadow: 0 0 0 3px rgba(4, 112, 116, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.expense-mobile-action:disabled,
.expense-mobile-card__date:disabled {
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.08);
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}

.expense-mobile-action__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pgds-text-muted);
}

.expense-mobile-action__value {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pgds-text);
  max-width: 16ch;
}

.expense-mobile-action__value.is-empty {
  color: var(--pgds-text-muted);
  font-weight: 600;
}

.expense-mobile-action__value.is-disabled {
  color: var(--pgds-text-muted);
  font-weight: 600;
}

.expense-mobile-action--wide {
  grid-column: 1 / -1;
}

.expense-mobile-card__tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 2px solid rgba(34, 197, 94, 0.72);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.12);
  color: #166534;
  text-align: center;
}

.expense-mobile-card__tip-text {
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 600;
}

.expense-mobile-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.expense-mobile-card__total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(4, 112, 116, 0.12), rgba(4, 191, 157, 0.12));
  border: 1px solid rgba(4, 112, 116, 0.18);
}

.expense-mobile-card__total-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pgds-text-muted);
}

.expense-mobile-card__total-value {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--pgds-text);
}

.expense-mobile-card__delete {
  width: 100%;
  justify-content: center;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(185, 28, 28, 0.9);
  color: #fff;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22);
}

.expense-mobile-card__delete:hover,
.expense-mobile-card__delete:focus-visible {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  border-color: rgba(153, 27, 27, 0.95);
  color: #fff;
}

.expense-mobile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  order: 4;
}

.expense-mobile-summary__item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--pgds-border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  justify-items: center;
  text-align: center;
}

.expense-mobile-summary__item--wide {
  grid-column: 1 / -1;
}

.expense-mobile-summary__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pgds-text-muted);
}

.expense-mobile-summary__value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--pgds-text);
}

.expense-mobile-view__footer {
  display: flex;
  justify-content: center;
  order: 3;
}

.expense-mobile-view__add {
  width: 100%;
  max-width: none;
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: rgba(21, 128, 61, 0.9);
  color: #f0fdf4;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2);
}

.expense-mobile-view__add:hover,
.expense-mobile-view__add:focus-visible {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: rgba(22, 101, 52, 0.95);
  color: #f0fdf4;
}

.expense-mobile-view__add:focus:not(:focus-visible) {
  box-shadow: none;
}

html[data-theme="dark"] .expense-mobile-view__empty,
html[data-theme="dark"] .expense-mobile-summary__item,
html[data-theme="dark"] .expense-mobile-card__reimburse,
html[data-theme="dark"] .expense-mobile-card__total,
html[data-theme="dark"] .expense-mobile-action,
html[data-theme="dark"] .expense-mobile-card__date,
html[data-theme="dark"] .expense-mobile-card {
  background: var(--pgds-surface);
  color: var(--pgds-text);
  border-color: var(--expense-mobile-card-border, var(--pgds-border));
}

html[data-theme="dark"] .expense-mobile-card__tip {
  border-color: rgba(74, 222, 128, 0.84);
  background: rgba(22, 101, 52, 0.28);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
  color: #dcfce7;
}

html[data-theme="dark"] .expense-mobile-card__delete {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fff5f5;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .expense-mobile-card__delete:hover,
html[data-theme="dark"] .expense-mobile-card__delete:focus-visible {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-color: rgba(252, 165, 165, 0.48);
}

html[data-theme="dark"] .expense-mobile-view__add {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border-color: rgba(134, 239, 172, 0.34);
  color: #f0fdf4;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .expense-mobile-view__add:hover,
html[data-theme="dark"] .expense-mobile-view__add:focus-visible {
  background: linear-gradient(180deg, #16a34a 0%, #166534 100%);
  border-color: rgba(187, 247, 208, 0.42);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+1) {
  --expense-mobile-card-border: rgba(95, 225, 221, 0.34);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+2) {
  --expense-mobile-card-border: rgba(245, 177, 132, 0.3);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+3) {
  --expense-mobile-card-border: rgba(201, 229, 139, 0.28);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+4) {
  --expense-mobile-card-border: rgba(173, 180, 255, 0.26);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+5) {
  --expense-mobile-card-border: rgba(239, 174, 201, 0.28);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+6) {
  --expense-mobile-card-border: rgba(253, 230, 138, 0.28);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+7) {
  --expense-mobile-card-border: rgba(151, 220, 201, 0.26);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+8) {
  --expense-mobile-card-border: rgba(229, 180, 154, 0.26);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+9) {
  --expense-mobile-card-border: rgba(206, 189, 255, 0.24);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+10) {
  --expense-mobile-card-border: rgba(191, 219, 254, 0.28);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+11) {
  --expense-mobile-card-border: rgba(228, 167, 196, 0.26);
}

html[data-theme="dark"] .expense-mobile-card:nth-child(12n+12) {
  --expense-mobile-card-border: rgba(125, 211, 252, 0.3);
}

html[data-theme="dark"] .expense-mobile-card--revealed {
  border-color: rgba(95, 225, 221, 0.52);
  box-shadow: 0 0 0 4px rgba(95, 225, 221, 0.16), 0 18px 36px rgba(0, 0, 0, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .expense-mobile-card--revealed {
    animation: none;
  }
}

@media (max-width: 720px) {
  .table-wrap.no-print {
    display: none;
  }

  .expense-mobile-view {
    display: grid;
  }
}

@media (max-width: 460px) {
  .expense-mobile-action-grid {
    grid-template-columns: 1fr;
  }
}

.controls {
  min-height: 168px;
}

#jobNameSelectWrap,
.wo-input-wrap {
  min-height: 44px;
}

.submit-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.submit-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  min-width: 170px;
  border-radius: 30px;
  border-right: 1px solid #8F9092;
}

@media (min-width: 900px){
  .table-actions__button-row-right{
    display:grid;
    grid-template-columns:repeat(3,minmax(170px,1fr));
    gap:12px;
    justify-content:center;
    align-items:stretch;
    max-width:534px;
    margin:0 auto;
    width:100%;
  }
  .table-actions__button-row-right .btn{
    width:100%;
    min-width:170px;
  }
  .table-actions__button-row-right #resetFormBtn{
    grid-column:1;
    grid-row:1;
  }
  .table-actions__button-row-right #viewLogBtn{
    grid-column:2;
    grid-row:1;
  }
  .table-actions__button-row-right #uploadBtn{
    grid-column:3;
    grid-row:1;
  }
  .table-actions__button-row-right #submitBtn{
    grid-column:2;
    grid-row:2;
  }
  .table-actions__button-row-right .btn > span:not(.btn-icon):not(.view-log-count){
    white-space:nowrap;
  }
}

.submit-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-width: auto !important;
  border-radius: 0 30px 30px 0;
  border-left: none;
  position: relative;
}

.submit-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

.submit-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
  stroke: #4b5563;
}

.submit-toggle:hover { background: rgba(4, 191, 157, 0.14); }
.submit-split.open .submit-toggle svg { transform: rotate(180deg); }

.submit-split .split-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(126,132,134,0.2) 100%);
  border: 1px solid rgba(26,30,32,0.1);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(18,22,24,0.24);
  padding: 8px;
  display: none;
  min-width: 180px;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.submit-split.open .split-menu { display: block; }

/* Dark mode refinements for inline editors and popups */
html[data-theme="dark"] .date-range-display,
html[data-theme="dark"] #itemizedScreenTable .date-range-display {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .date-range-display:hover,
html[data-theme="dark"] #itemizedScreenTable .date-range-display:hover {
  border-color: rgba(95, 225, 221, 0.5);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .date-range-display:focus,
html[data-theme="dark"] .date-range-display:focus-visible,
html[data-theme="dark"] #itemizedScreenTable .date-range-display:focus,
html[data-theme="dark"] #itemizedScreenTable .date-range-display:focus-visible {
  border-color: rgba(95, 225, 221, 0.65);
  box-shadow: 0 0 0 3px rgba(95, 225, 221, 0.28);
  transform: translateY(-1px);
}

html[data-theme="dark"] .date-range-display.empty,
html[data-theme="dark"] #itemizedScreenTable .date-range-display.empty {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .date-range-display.empty::before,
html[data-theme="dark"] #itemizedScreenTable .date-range-display.empty::before {
  opacity: 0.85;
}
html[data-theme="dark"] .date-range-display.out-of-range,
html[data-theme="dark"] #itemizedScreenTable .date-range-display.out-of-range {
  border-color: #fca5a5;
  color: #fecdd3;
  box-shadow: 0 14px 26px rgba(252, 165, 165, 0.35);
}

html[data-theme="dark"] .date-fill-handle {
  background: rgba(95, 225, 221, 0.18);
  border-color: rgba(95, 225, 221, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .date-range-popup {
  background: var(--pgds-card);
  border-color: var(--pgds-border);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
  color: var(--pgds-text);
}

html[data-theme="dark"] .date-range-popup label {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .date-range-popup input[type="date"] {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .note-btn,
html[data-theme="dark"] .per-diem-status,
html[data-theme="dark"] .amt-edit {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text-muted);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .note-btn:hover,
html[data-theme="dark"] .per-diem-status:hover,
html[data-theme="dark"] .amt-edit:hover {
  background: rgba(95, 225, 221, 0.08);
  border-color: rgba(95, 225, 221, 0.6);
  color: var(--pgds-primary);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .note-btn.active,
html[data-theme="dark"] .per-diem-status.active,
html[data-theme="dark"] .amt-edit.active {
  background: rgba(95, 225, 221, 0.16);
  border-color: rgba(95, 225, 221, 0.7);
  color: var(--pgds-primary);
  box-shadow: 0 0 0 2px rgba(95, 225, 221, 0.24);
}
html[data-theme="dark"] .per-diem-card.per-diem-guidance-highlight{
  background:linear-gradient(135deg,rgba(147,112,5,0.34),rgba(94,70,0,0.28));
  box-shadow:0 0 0 2px rgba(250,204,21,0.56),0 10px 24px rgba(0,0,0,0.34);
}
html[data-theme="dark"] .per-diem-status.per-diem-guidance-highlight{
  border-color:#facc15;
  background:#3d3206;
  color:#fde68a;
  box-shadow:0 0 0 3px rgba(250,204,21,0.42),0 10px 20px rgba(0,0,0,0.32);
}
html[data-theme="dark"] .per-diem-guidance-close{
  color:#d1d5db;
}
html[data-theme="dark"] .per-diem-guidance-close:hover{
  background:rgba(248,250,252,0.08);
  color:#f8fafc;
}
html[data-theme="dark"] .per-diem-guidance-warning{
  color:#fca5a5 !important;
}
html[data-theme="dark"] .per-diem-guidance-company-btn{
  background:#2563eb;
  border-color:#3b82f6;
  color:#eff6ff;
}
html[data-theme="dark"] .per-diem-guidance-company-btn:hover{
  background:#1d4ed8;
  border-color:#60a5fa;
  color:#eff6ff;
}

html[data-theme="dark"] .note-pop,
html[data-theme="dark"] .amount-pop,
html[data-theme="dark"] .per-diem-pop {
  background: var(--pgds-card);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .note-pop textarea,
html[data-theme="dark"] .amount-pop input[type="number"],
html[data-theme="dark"] .per-diem-pop input[type="number"] {
  background: var(--pgds-surface);
  border-color: var(--pgds-border);
  color: var(--pgds-text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .note-pop textarea::placeholder,
html[data-theme="dark"] .date-range-popup input[type="date"]::placeholder {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .note-pop label,
html[data-theme="dark"] .per-diem-pop label,
html[data-theme="dark"] .date-range-popup label {
  color: var(--pgds-text);
}
html[data-theme="dark"] .per-diem-pop h3{
  color: var(--pgds-text);
}
html[data-theme="dark"] .amount-pop-title{
  color: var(--pgds-text);
}

html[data-theme="dark"] .per-diem-pop .per-diem-helper,
html[data-theme="dark"] .amount-pop .currency-symbol {
  color: var(--pgds-text-muted);
}

html[data-theme="dark"] .note-pop textarea:focus,
html[data-theme="dark"] .amount-pop input[type="number"]:focus,
html[data-theme="dark"] .per-diem-pop input[type="number"]:focus,
html[data-theme="dark"] .date-range-popup input[type="date"]:focus {
  border-color: var(--pgds-primary);
  box-shadow: 0 0 0 3px rgba(95, 225, 221, 0.26);
}

@media (max-width: 1100px) {
  .app-body { margin-left: 0; }
  .app-main { padding: 15px 18px 18px; }
  .panel { padding: 22px; }
}

@media (max-width: 768px) {
  .panel { padding: 22px; }
  .card { padding: 20px; }
  .controls { min-height: 0; }
  .info-bar > div { min-height: 0; }
}

/* Keep sidebar typography/layout consistent with shared shell */
.sidebar {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.3;
  font-size: 14px;
}
