/* Shared screen design tokens. Contract pages must not load this file.
   Print/PDF layouts retain their existing size and spacing rules. */
@media screen {
  :root {
    --hr-text-size: 14px;
    --hr-caption-size: 12px;
    --hr-title-size: 24px;
    --hr-section-size: 20px;
    --hr-subtitle-size: 16px;
    --hr-control-radius: 8px;
    --hr-focus-color: #1677ff;
  }
  body { font-size: var(--hr-text-size); line-height: 1.6; }
  h1, .page-title, .page-header h1, .announcement-header h1 {
    font-size: var(--hr-title-size) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0;
  }
  h2, .section-title, .view-toolbar h2 {
    font-size: var(--hr-section-size) !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
  }
  h3, h4, h5, h6, .card-title {
    font-size: var(--hr-subtitle-size) !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
  }
  p, label, th, td { line-height: 1.6; }
  table { font-size: var(--hr-text-size); font-variant-numeric: tabular-nums; }
  th { font-weight: 600; }
  button, .btn, input, select, textarea {
    font-size: var(--hr-text-size);
    border-radius: var(--hr-control-radius);
  }
  button, .btn { font-weight: 600; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select, textarea {
    line-height: 1.5;
  }
  textarea { resize: vertical; }
  :where(button, a, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--hr-focus-color);
    outline-offset: 2px;
  }
  .muted, .help-text, .form-hint, .eyebrow {
    font-size: var(--hr-caption-size);
    line-height: 1.6;
  }
  .money, .amount, [data-hr-amount] { font-variant-numeric: tabular-nums; }
}

@media screen and (max-width: 600px) {
 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { font-size: 16px !important; }
}

/* Internal application surfaces. Families are opted in in HTML; no print, contract or public client rules. */
@media screen {
 html[data-hr-view]{--hr-page:#f3f5f5;--hr-paper:#fff;--hr-edge:#d6dfe1;--hr-quiet:#4f6571;--hr-strong:#182f39;--hr-action:#205b61;--hr-soft:#eef4f3;--hr-focus-color:#19728c}
 html[data-hr-view] body{background-color:var(--hr-page);color:var(--hr-strong)}
 html[data-hr-view] :where(main,.main-content,.att-content) :is(h1,h2,h3){text-wrap:pretty;overflow-wrap:anywhere}
 html[data-hr-view] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--hr-focus-color);outline-offset:2px}
 html[data-hr-view] :is(.table-wrap,.table-scroll,.att-table-wrap,.scroll){min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
 html[data-hr-view] :where(.main-content,main,.att-content,.w) :is(.panel,.card,.records-panel,.care-panel,.att-card,.clock-block,.request-card){border:1px solid var(--hr-edge);border-radius:12px;box-shadow:0 1px 3px #1835390a}
 html[data-hr-view] :where(.main-content,main,.att-content,.w) thead th{background:var(--hr-soft);border-bottom:1px solid #ccd8d9;color:#3d565e;font-weight:600}
 html[data-hr-view] :is(.filters,.filter-bar,.search-bar,.toolbar,.form-grid,.att-form-grid,.fields,.field,.att-field,.request-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;border-color:#afc0c5}
 html[data-hr-view] :is(.btn-primary,button.primary,.btn.primary):not(.danger,.success,.warning,.error,[disabled]){background:var(--hr-action);border-color:var(--hr-action);color:white}
 html[data-hr-view] :is(.btn-primary,button.primary,.btn.primary):not(.danger,.success,.warning,.error,[disabled]):hover{background:#17484b}
 html[data-hr-view=desk] .main-content>.card:first-child .card-header{padding-block:16px;border-bottom:1px solid var(--hr-edge)}
 html[data-hr-view=desk] .main-content .search-bar{background:#f8faf9;border-radius:8px;row-gap:12px}
 html[data-hr-view=desk] .recruit-list-heading h1,html[data-hr-view=desk] .role-home-heading h2{color:var(--hr-strong);letter-spacing:-.02em}
 html[data-hr-view=desk] :is(.stat-card,.role-home-panel):not(.business-overview){box-shadow:none;border:1px solid var(--hr-edge)}
 html[data-hr-view=office] :is(.page,.wrap,.w)>.hero,html[data-hr-view=attendance] .att-content>.att-hero,html[data-hr-view=reference] main>.hero{background:#fff;color:var(--hr-strong);border:1px solid var(--hr-edge);border-inline-start:4px solid var(--hr-action);border-radius:10px;box-shadow:none;padding:14px 20px}
 html[data-hr-view=office] :is(.stats,.cards):has(>.stat,>#total,>.card>b),html[data-hr-view=attendance] .att-stats{gap:1px;background:var(--hr-edge);border:1px solid var(--hr-edge);border-radius:10px;overflow:hidden}
 html[data-hr-view=office] :is(.stats>.stat,.cards>.card:has(>b)),html[data-hr-view=attendance] .att-stats>.att-stat{box-shadow:none;border:0;border-radius:0;background:white;padding:14px 17px;min-width:0}
 html[data-hr-view=office] .stat b{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
 html[data-hr-view=attendance] .att-subnav{padding-block:6px;gap:6px}
 html[data-hr-view=attendance] :is(.att-section-head,.clock-head,.request-head){gap:12px;align-items:center}
 html[data-hr-view=ledger] main>h1:first-of-type,html[data-hr-view=reference] main>h1:first-of-type{padding-inline-start:13px;border-inline-start:3px solid var(--hr-action);margin-block:16px 6px}
 html[data-hr-view=ledger] main>h1+p,html[data-hr-view=reference] main>h1+p{max-width:85ch;line-height:1.75;overflow-wrap:anywhere}
 html[data-hr-view=ledger] body:not(.slip-personal) main>.heading{background:white;color:var(--hr-strong);border:1px solid var(--hr-edge);border-inline-start:4px solid var(--hr-action);padding:16px 20px;border-radius:10px}
 html[data-hr-view=reference] .tools{border-color:var(--hr-edge);border-radius:10px;background:white}
 html[data-hr-view=reference] .directory button{border-radius:6px;text-align:start;padding:9px 12px}
 html[data-hr-view=reference] .directory button[aria-current=true]{background:var(--hr-soft);border-inline-start:3px solid var(--hr-action);color:var(--hr-strong)}
 html[data-hr-view=account] :is(main:not(.page),.page .panel,.wrap .card){border-radius:14px;border:1px solid var(--hr-edge);box-shadow:0 4px 18px #243b4110}
 html[data-hr-view=account] :is(.field,label) :is(input:not([type=checkbox]),select){border-color:#afc0c5}
}
@media screen and (max-width:768px){
 html[data-hr-view] :is(.filters,.filter-bar,.toolbar,.search-bar,.actions,.att-actions,.section-head,.card-actions,.pagination){max-width:100%;flex-wrap:wrap;row-gap:8px}
 html[data-hr-view] :is(main,.main-content,.att-content,.w) :where(button,.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color])):not(.eye){min-height:44px}
 html[data-hr-view] :is(main,.main-content,.att-content,.w) :where(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-inline-size:0;max-inline-size:100%}
 html[data-hr-view] :is(main,.main-content,.att-content,.w) :is(.panel,.card,.section-head,.filters,.field,fieldset,.att-field){min-width:0;box-sizing:border-box}
 html[data-hr-view=office] :is(.stat,.cards>.card)>b{overflow-wrap:anywhere}
 html[data-hr-view=ledger] body>header{height:auto;flex-wrap:wrap;gap:6px 14px;padding:10px 14px}
 html[data-hr-view=ledger] body>header a{display:inline-flex;align-items:center;min-height:44px}
 html[data-hr-view=reference] .tools label,html[data-hr-view=reference] .rule-table th{overflow-wrap:anywhere}
 html[data-hr-view=desk] #managementPanels{grid-template-columns:minmax(0,1fr)!important}
}
@media screen{
 html[data-hr-view=account] body:has(#passwordView){background:#eef2f2;padding:clamp(12px,5vh,52px) 0}
 html[data-hr-view=account] .page:has(#passwordView){width:min(970px,calc(100% - 32px));min-height:0;margin:0 auto;background:white;border:1px solid var(--hr-edge);border-radius:16px;box-shadow:0 8px 36px #19373d0c;grid-template-columns:0.82fr 1.18fr}
 html[data-hr-view=account] .page:has(#passwordView) .hero{min-height:0;background:#183d46;color:#fff;padding:clamp(24px,4vw,48px);justify-content:space-between}
 html[data-hr-view=account] .page:has(#passwordView) .hero::after,html[data-hr-view=account] .page:has(#passwordView) .panel-wrap::before{content:none}
 html[data-hr-view=account] .page:has(#passwordView) .company-login-logo{width:min(210px,100%);border-radius:7px}
 html[data-hr-view=account] .page:has(#passwordView) .panel-wrap{padding:clamp(20px,4vw,46px);background:white}
 html[data-hr-view=account] .page:has(#passwordView) .panel{border:0;box-shadow:none;padding:0}
 html[data-hr-view=account] .page:has(#passwordView) .primary{box-shadow:none}
 html[data-hr-view=account] .page:has(#passwordView) .tip{background:#f1f5f5;color:#465d65}
 html[data-hr-view=office] .w:has(#doneLabel) .head{margin-bottom:18px}
 html[data-hr-view=office] .w:has(#doneLabel) .filters{align-items:end}
 html[data-hr-view=office] .w:has(#doneLabel) .filters label{display:grid;gap:4px;min-width:0;font-weight:600;color:#485d67}
 html[data-hr-view=office] .w:has(#doneLabel) :is(.tab.on,#query){background:var(--hr-action);border-color:var(--hr-action)}
 html[data-hr-view=office] .w:has(#doneLabel) .cards{background:white;border:1px solid var(--hr-edge);overflow:hidden;border-radius:10px;gap:0}
 html[data-hr-view=office] .w:has(#doneLabel) .cards>.card{border:0;border-inline-end:1px solid var(--hr-edge);border-radius:0;box-shadow:none}
 html[data-hr-view=office] .w:has(#doneLabel) .trace{color:var(--hr-action);background:white;border:1px solid #afc0c5;padding:5px 10px;white-space:nowrap;border-radius:6px;cursor:pointer}
}
@media screen and (max-width:850px){
 html[data-hr-view=account] .page:has(#passwordView) .hero{padding:16px 20px}
 html[data-hr-view=account] .page:has(#passwordView) .company-login-logo{width:132px}
 html[data-hr-view=account] .page:has(#passwordView) .hero>div:nth-child(2){margin-top:12px}
 html[data-hr-view=office] .w:has(#doneLabel) .review-key{grid-column:1/-1}
 html[data-hr-view=office] .w:has(#doneLabel) .filters label:has(#status){grid-column:1/-1}
 html[data-hr-view=office] .w:has(#doneLabel) .cards>.card{border-bottom:1px solid var(--hr-edge);padding:9px 14px}
 html[data-hr-view=office] .w:has(#doneLabel) .cards>.card:last-child{grid-column:1/-1;border-bottom:0}
}
