.dc-admin-page { min-height: 100vh; background: #f3f6f5; }
.dc-header { border-bottom: 1px solid var(--line); background: white; }
.dc-header-inner { max-width: 1440px; margin: auto; padding: .8rem clamp(1rem, 3vw, 2.5rem); min-height: 4.3rem; display: flex; align-items: center; gap: 1rem; }
.dc-header-name { border-left: 1px solid var(--line); padding-left: 1rem; color: var(--muted); font-size: .88rem; font-weight: 650; }
.dc-back { margin-left: auto; color: var(--accent); font-weight: 680; text-decoration: none; font-size: .88rem; }
.dc-back:hover { text-decoration: underline; }
.dc-loading { margin: 2rem auto; max-width: 42rem; padding: 1rem; color: var(--muted); text-align: center; }
.dc-auth { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 58rem; width: calc(100% - 2rem); margin: clamp(1.25rem, 5vw, 4.5rem) auto; min-height: 33.5rem; border: 1px solid var(--line); border-radius: 1.4rem; overflow: hidden; box-shadow: 0 18px 70px #09283a0d; background: white; }
.dc-auth-intro { background: radial-gradient(ellipse at 108% 100%, #116448 0%, transparent 65%), linear-gradient(150deg, #071b2b, #0a2d45); color: white; padding: clamp(1.7rem, 4.2vw, 3rem); position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.dc-auth-intro::before, .dc-auth-intro::after { position: absolute; content: ""; width: 24rem; height: 24rem; border-radius: 50%; border: 1px solid #a2e5d23a; right: -15rem; bottom: -18rem; pointer-events: none; z-index: -1; }
.dc-auth-intro::after { width: 33rem; height: 33rem; right: -19rem; bottom: -22rem; }
.dc-auth-intro .kicker { color: #9ce0c0; }
.dc-auth-intro h1 { margin: 0; max-width: 12ch; font-size: clamp(2.25rem, 4.3vw, 4rem); line-height: 1.02; letter-spacing: -.065em; }
.dc-auth-intro > p:not(.kicker) { margin: 1rem 0 0; color: #d7e7ef; max-width: 29ch; line-height: 1.55; }
.dc-auth-stack { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; gap: .6rem; color: #e5f3f4; font-size: .94rem; }
.dc-auth-stack li { display: flex; align-items: center; gap: .63rem; }
.dc-auth-stack li::before { width: .42rem; height: .42rem; background: #53e3a3; border-radius: 50%; content: ""; flex: none; }
.dc-auth-main { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.25rem, 4.3vw, 3.25rem); min-width: 0; }
.dc-auth-main h2 { margin: 0; font-size: clamp(1.65rem, 3.6vw, 2.25rem); line-height: 1.13; letter-spacing: -.05em; }
.dc-auth-main p { line-height: 1.5; }
.dc-muted { color: var(--muted); }
.dc-auth-main form { margin-top: 1rem; }
.dc-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.dc-divider { margin: 1.05rem 0 .9rem; display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .8rem; }
.dc-divider::before, .dc-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.dc-page { display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr); max-width: 1440px; min-height: calc(100vh - 4.3rem); margin: auto; background: white; border-inline: 1px solid var(--line); }
.dc-sidebar { background: var(--ink); color: white; min-width: 0; padding: 1.3rem 1rem; display: flex; flex-direction: column; }
.dc-sidebar-label { font-size: .78rem; font-weight: 750; color: #a9c4d4; margin: .65rem .7rem; }
.dc-sidebar nav { display: grid; gap: .3rem; }
.dc-nav-button { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; color: #d8e7ed; min-height: 2.55rem; padding: .45rem .65rem; border-radius: .55rem; font-weight: 640; font-size: .91rem; }
.dc-nav-button:hover { background: #133650; }
.dc-nav-button:focus-visible { outline-color: #a5d8fb; outline-offset: 1px; }
.dc-nav-button[aria-current="page"] { background: #16435d; color: white; border-color: #256388; box-shadow: inset 3px 0 #75d9b5; }
.dc-sidebar-tail { margin-top: auto; padding: 1rem .7rem .25rem; display: grid; gap: .32rem; }
.dc-sidebar-tail strong { font-size: .9rem; overflow-wrap: anywhere; }
.dc-sidebar-tail small { color: #b4d3e2; }
.dc-sidebar-tail .dc-link-button { justify-self: start; padding-left: 0; color: #d5efff; font-size: .81rem; }
.dc-content { padding: clamp(1rem, 3vw, 2.35rem); background: #f5f7f6; min-width: 0; }
.dc-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .9rem; margin: 0 0 clamp(1.25rem, 3vw, 2.1rem); }
.dc-toolbar h1 { font-size: clamp(1.95rem, 4.4vw, 3rem); letter-spacing: -.065em; line-height: 1; margin: .2rem 0 0; }
.dc-toolbar p { margin: 0; font-size: .85rem; }
.dc-company-select { flex-basis: 17rem; max-width: 100%; }
.dc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .85rem; }
.dc-metric { display: flex; flex-direction: column; justify-content: space-between; background: white; border: 1px solid var(--line); border-radius: .85rem; padding: .95rem 1.05rem; min-height: 7rem; }
.dc-metric span { font-size: .83rem; font-weight: 680; color: var(--muted); }
.dc-metric strong { font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.045em; }
.dc-metric small { font-size: .77rem; color: var(--muted); }
.dc-metric:nth-child(2) { border-top: 3px solid #1f9b69; }
.dc-metric:nth-child(3) { border-top: 3px solid var(--orange); }
.dc-panels { display: grid; gap: .9rem; }
.dc-summary + .dc-card, .dc-summary + .dc-panels { margin-top: .9rem; }
.dc-card { padding: clamp(.95rem, 2.5vw, 1.55rem); background: white; border: 1px solid var(--line); border-radius: .85rem; min-width: 0; }
.dc-card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-bottom: .9rem; }
.dc-card h2, .dc-card h3 { margin: 0; letter-spacing: -.025em; }
.dc-card h2 { font-size: 1.25rem; }
.dc-card p { margin: .45rem 0 .8rem; line-height: 1.5; }
.dc-card-heading p { margin-bottom: 0; font-size: .87rem; }
.dc-table-wrap { overflow-x: auto; }
.dc-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
.dc-table th { font-size: .74rem; letter-spacing: .045em; color: var(--muted); background: #eff4f5; font-weight: 760; }
.dc-table th, .dc-table td { padding: .72rem .6rem; vertical-align: middle; }
.dc-table tr + tr td { border-top: 1px solid var(--line); }
.dc-cell-main { display: block; font-weight: 700; overflow-wrap: anywhere; }
.dc-cell-sub { display: block; margin-top: .19rem; color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.dc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.dc-actions .button { gap: .4rem; }
.dc-empty { color: var(--muted); margin: 0 !important; padding: .8rem; border: 1px dashed #c2d3df; border-radius: .65rem; background: #f8fbfb; font-size: .88rem; }
.dc-pill { display: inline-block; padding: .27rem .5rem; border-radius: .35rem; white-space: nowrap; font-size: .75rem; font-weight: 780; color: #285471; background: #e6f0f7; }
.dc-pill-active, .dc-pill-approved { color: #0a6241; background: #e2f7ec; }
.dc-pill-pending, .dc-pill-paused { color: #815019; background: #fdf1dd; }
.dc-pill-inactive, .dc-pill-rejected { color: #873921; background: #fae9df; }
.dc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.dc-form { display: grid; gap: .8rem; }
.dc-span { grid-column: 1 / -1; }
.dc-field { display: grid; align-content: start; gap: .35rem; font-weight: 700; font-size: .88rem; min-width: 0; }
.dc-field small, .dc-hint { color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.45; }
.dc-admin-page :is(input:not([type="checkbox"]), select, textarea) { width: 100%; max-width: 100%; min-width: 0; min-height: 2.65rem; padding: .52rem .65rem; color: var(--ink); border: 1px solid #92a8b4; border-radius: .55rem; font: inherit; font-weight: 500; background: white; }
.dc-admin-page textarea { resize: vertical; }
.dc-job-profile { white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-admin-page input::placeholder { color: #657a88; }
.dc-admin-page input[type="file"] { padding: .42rem; }
.dc-admin-page select { appearance: none; padding-right: 1.9rem; background: linear-gradient(45deg, transparent 50%, #536473 50%) calc(100% - .95rem) 50% / 5px 5px no-repeat, linear-gradient(135deg, #536473 50%, transparent 50%) calc(100% - .64rem) 50% / 5px 5px no-repeat, white; }
.dc-check { display: flex; align-items: center; gap: .4rem; font-size: .87rem; font-weight: 620; }
.dc-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }
.dc-check-list { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; }
.dc-fieldset { margin: 0; padding: 0; border: 0; }
.dc-fieldset legend { margin-bottom: .5rem; font-size: .87rem; font-weight: 710; }
.dc-location { display: grid; gap: .7rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8fbfb; }
.dc-location legend { padding-inline: .3rem; }
.dc-location p { margin: 0; }
.dc-geo-status { margin-bottom: .8rem; }
.dc-site-feedback:empty { position: absolute; }
.dc-site-feedback-error { color: #873921; }
.dc-site-map-panel { display: grid; gap: .5rem; }
.dc-site-map {
  position: relative; z-index: 0; width: 100%; height: clamp(14rem, 36vw, 22rem);
  border: 1px solid var(--line); border-radius: .65rem; background: #e9f0f2;
}
.dc-link-button { padding: .35rem .35rem; border: 0; background: transparent; color: var(--accent); text-align: left; font-weight: 680; text-decoration: none; font-size: .84rem; }
.dc-link-button:hover { text-decoration: underline; }
.dc-outline { color: var(--accent); background: white; border-color: #a9c4d6; }
.dc-outline:not(:disabled):hover { color: var(--ink); background: var(--blue-pale); }
.dc-outline:disabled { color: #415c6b; opacity: .65; }
.dc-message { border: 1px solid #b8d3e5; border-radius: .6rem; padding: .65rem .75rem; color: #173f5a; background: #edf6fc; margin: 0 0 .85rem; font-size: .86rem; line-height: 1.45; }
.dc-message-error { border-color: #e4bbab; background: #fff3ed; color: #873921; }
.dc-mfa-qr { display: grid; grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr); align-items: center; gap: .85rem; margin-top: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: #f4f8f7; }
.dc-mfa-qr img { width: 100%; max-width: 10rem; height: auto; aspect-ratio: 1; justify-self: center; border: 1px solid var(--line); border-radius: .4rem; background: white; image-rendering: pixelated; }
.dc-mfa-scan { margin: 0 0 .45rem; font-size: .94rem; font-weight: 750; }
.dc-mfa-apps { margin: 0; padding-left: 1.05rem; display: grid; gap: .35rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.dc-mfa-manual { margin-top: .8rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .55rem; }
.dc-mfa-manual summary { color: var(--accent); font-size: .87rem; font-weight: 700; cursor: pointer; }
.dc-mfa-manual p { margin: .6rem 0; color: var(--muted); font-size: .86rem; }
.dc-secret { display: block; overflow-wrap: anywhere; padding: .65rem; border-radius: .5rem; background: #e9f5fb; font-family: ui-monospace, monospace; font-size: .92rem; user-select: all; }
.dc-note { font-size: .86rem; color: var(--muted); }
.dc-payroll-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-items: stretch; }
.dc-payroll-list { display: grid; gap: .55rem; }
.dc-payroll-employee, .dc-payroll-send { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; }
.dc-payroll-employee summary, .dc-payroll-send summary {
  padding: .75rem .85rem; color: var(--accent); cursor: pointer; font-size: .88rem; font-weight: 750;
}
.dc-payroll-employee[open] summary, .dc-payroll-send[open] summary { border-bottom: 1px solid var(--line); background: #f4f8fa; }
.dc-payroll-name, .dc-payroll-total { margin-right: .55rem; overflow-wrap: anywhere; }
.dc-payroll-total { color: var(--ink); white-space: nowrap; }
.dc-payroll-detail { display: grid; gap: .85rem; padding: .85rem; }
.dc-payroll-detail h3 { margin: 0 0 .48rem; font-size: .94rem; }
.dc-payroll-send .dc-check { margin: 0 .85rem .7rem; }
.dc-payroll-send .dc-note, .dc-payroll-send .button { margin: .75rem .85rem; overflow-wrap: anywhere; }
.dc-payroll-send .dc-check + .button { margin-top: 0; }
.dc-card .dc-payroll-alert {
  margin: 0; padding: .62rem .72rem; color: #815019; border: 1px solid #ead3a8;
  border-radius: .55rem; background: #fdf1dd; font-size: .86rem;
}

@media(max-width: 820px) {
  .dc-page { display: block; border: 0; }
  .dc-sidebar { padding: .55rem .75rem; flex-direction: row; align-items: center; gap: .55rem; }
  .dc-sidebar-label { display: none; }
  .dc-sidebar nav { display: flex; overflow-x: auto; max-width: 100%; scrollbar-color: #799bb0 var(--ink); }
  .dc-nav-button { white-space: nowrap; }
  .dc-sidebar-tail { flex: none; margin: 0 0 0 auto; padding: 0; }
  .dc-sidebar-tail :is(strong, small) { display: none; }
  .dc-sidebar-tail .dc-link-button { text-align: right; padding: .15rem; }
}
@media(max-width: 650px) {
  .dc-header-name { display: none; }
  .dc-header .brand-logo { width: 112px; }
  .dc-header .brand-app-icon { width: 29px; height: 29px; }
  .dc-auth { grid-template-columns: 1fr; }
  .dc-auth-intro h1 { max-width: none; }
  .dc-auth-intro > p:not(.kicker) { max-width: none; margin-top: .65rem; }
  .dc-auth-stack { display: none; }
  .dc-company-select { flex: 1 1 100%; }
  .dc-table th, .dc-table td { padding-inline: .4rem; }
  .dc-payroll-controls { grid-template-columns: 1fr; }
}
@media(max-width: 475px) {
  .dc-form-grid { grid-template-columns: 1fr; }
  .dc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-auth-main { padding: 1rem; }
  .dc-auth-intro { padding: 1.2rem; }
  .dc-auth-intro h1 { font-size: 2.05rem; }
  .dc-sidebar { align-items: flex-start; }
  .dc-mfa-qr { grid-template-columns: minmax(0, 1fr); }
}
