/* Department, employee, leave and member views. Values inherit the user's appearance. */
.people-screen,.people-modal{font-size:1rem;min-width:0}
.people-screen .page-subtitle{font-size:1rem;line-height:1.8}
.people-screen .btn,.people-modal .btn{font-size:1rem;min-height:44px}
.people-screen .panel-head .btn{min-height:44px;padding:8px 10px;font-size:1rem}
.people-screen .field,.people-modal .field{font-size:1rem;gap:8px}
.people-screen .field>span,.people-modal .field>span{font-size:1rem;font-weight:600}
.people-screen .field input,.people-screen .field select,.people-screen .field textarea,.people-modal input,.people-modal select,.people-modal textarea{font-size:1rem;min-height:46px}
.people-screen .search-field,.people-modal .search-field{min-height:48px}
.people-screen .search-field input,.people-modal .search-field input{font-size:1rem}
.people-screen .search-field:focus-within,.people-modal .search-field:focus-within{outline:3px solid var(--primary);outline-offset:3px}
.people-screen .profile-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.people-screen .profile-summary>div{min-width:0;flex:1}
.people-screen .profile-summary h2,.people-screen .profile-summary h3{margin-bottom:4px}
.people-screen .profile-summary>.badge{margin-inline-start:auto}
.people-screen .info-grid,.people-modal .info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;margin-top:24px}
.people-screen .info-grid>div,.people-modal .info-grid>div{min-width:0}
.people-screen .info-grid>div>span,.people-modal .info-grid>div>span{font-size:1rem}
.people-screen .info-grid p,.people-modal .info-grid p{font-size:1rem;font-weight:600;margin-top:5px;overflow-wrap:anywhere}
.people-screen .section-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:26px 0 16px}
.people-screen .section-heading h2{font-size:1.15rem}
.people-screen .department-card{height:100%;text-align:right;transition:border-color .15s}
.people-screen button.department-card:hover{border-color:var(--primary);background:var(--surface-alt)}
.people-screen .department-card h3{margin-top:16px;margin-bottom:8px;font-size:1.125rem}
.people-screen .department-card p{line-height:1.8}
.people-screen .department-card .panel-body{height:100%;display:flex;flex-direction:column}
.people-screen .department-card .panel-body>div:last-child{margin-top:auto!important;padding-top:18px}
.people-screen .text-link{color:var(--primary);display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:600;margin-top:16px;min-height:30px}
.people-screen .list-row,.people-modal .list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.people-screen .list-row p,.people-modal .list-row p{margin-top:5px;overflow-wrap:anywhere}
.people-screen .avatar.small{width:34px;height:34px;font-size:.875rem}
.people-screen .people-identity{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.people-screen .people-table{font-size:1rem}
.people-screen .people-table th{font-size:1rem;padding:14px 16px;font-weight:600}
.people-screen .people-table td{padding:14px 16px}
.people-screen .people-table td:first-child{min-width:210px}
.people-screen .people-table td:last-child .btn{white-space:nowrap}
.people-screen .people-table .btn{font-size:1rem}
.people-screen .badge,.people-modal .badge{font-size:1rem;line-height:1.6;padding:5px 10px}
.people-screen .tabs{margin:0;border:0;min-width:0}
.people-screen .tabs .tab{font-size:1rem;min-height:48px;border-radius:0;padding:10px 14px}
.people-screen .tabs .tab.active{background:var(--primary-soft)}
.people-screen .count{display:inline-grid;place-items:center;background:var(--primary-soft);color:var(--primary);border-radius:5px;min-width:24px;padding:0 6px;font-size:1rem;margin-inline-start:6px}
.people-screen .timeline-item:last-child{padding-bottom:0!important;border-right-color:transparent!important}
.people-screen .timeline-item p{margin-top:7px}
.people-screen .timeline-item h3{line-height:1.8}
.people-screen .leave-list>.list-row:last-child{border-bottom:0!important;padding-bottom:0!important}
.people-screen .leave-list>.list-row:first-child{padding-top:0!important}
.people-screen .leave-list>.list-row>div:first-child{min-width:0;flex:1 1 260px}
.people-screen .leave-list .icon-box{align-self:flex-start;margin-top:3px}
.people-screen .leave-list h3{line-height:1.9}
.people-modal .field+.field{margin-top:16px}
.people-modal .form-grid>.field+.field{margin-top:0}
.people-modal #people-time-fields:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:16px;grid-column:1/-1}
.people-modal #people-time-fields .field{margin:0}
.people-modal .form-error{color:var(--danger);font-size:1rem;line-height:1.8}
.people-modal .form-error:empty{display:none}
.people-modal .info-grid{margin-top:0}
.people-modal .info-grid>div:last-child{grid-column:1/-1}
.people-screen .empty-state p{font-size:1rem}
@media(min-width:761px) and (max-width:1150px){.people-screen .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.people-screen .grid-2{grid-template-columns:1fr}.people-screen .department-card .btn{padding-inline:7px;font-size:.9375rem}}
@media(max-width:760px){
  .people-screen .page-heading{align-items:flex-start}
  .people-screen .page-heading>.btn{font-size:1rem;white-space:normal;max-width:100%}
  .people-screen .page-subtitle{line-height:1.9}
  .people-screen .panel-head{flex-wrap:wrap;gap:10px}
  .people-screen .panel-head>.tabs{width:100%}
  .people-screen .panel-head>.muted{font-size:1rem}
  .people-screen .info-grid,.people-modal .info-grid{grid-template-columns:1fr;gap:18px;margin-top:22px}
  .people-modal .info-grid{margin-top:0}
  .people-screen .profile-summary{gap:14px}
  .people-screen .profile-summary>.badge{margin-inline-start:0}
  .people-screen .profile-summary>div{flex-basis:calc(100% - 100px)}
  .people-screen .profile-summary h2{font-size:1.2rem}
  .people-screen .profile-summary p{font-size:1rem}
  .people-screen .actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}
  .people-screen .actions>.btn{font-size:1rem;white-space:normal;padding-inline:8px}
  .people-screen .department-card .btn{font-size:1rem}
  .people-screen .department-card .panel-body>div:last-child{gap:8px;flex-wrap:wrap}
  .people-screen .section-heading .muted{font-size:1rem}
  .people-screen .table-wrap{overflow:visible}
  .people-screen .table-wrap .people-table{display:block;min-width:0;width:100%}
  .people-screen .people-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .people-screen .people-table tbody{display:block}
  .people-screen .people-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:18px;border-bottom:1px solid var(--border);gap:12px}
  .people-screen .people-table tr:last-child{border-bottom:0}
  .people-screen .people-table td{border:0;padding:0;display:flex;justify-content:space-between;align-items:center;gap:14px;min-width:0}
  .people-screen .people-table td:first-child{min-width:0;display:block}
  .people-screen .people-table td:first-child>.btn{max-width:100%;justify-content:flex-start;white-space:normal;text-align:right;padding:0}
  .people-screen .people-table td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:1rem;flex-shrink:0}
  .people-screen .people-table td:last-child{justify-content:flex-end}
  .people-screen .people-table td:last-child:empty{display:none}
  .people-screen .people-table td:last-child>.btn{min-width:110px}
  .people-screen .leave-list>.list-row>div:last-child{width:100%;padding-right:51px}
  .people-screen .leave-list>.list-row>div:last-child>.badge{margin-left:auto}
  .people-screen .leave-list>.list-row>div:last-child>.btn{padding-inline:10px;flex-grow:1}
  .people-modal form>div:last-child{flex-wrap:wrap}
  .people-modal form>div:last-child>.btn{flex:1}
  .people-modal #people-time-fields:not([hidden]){grid-template-columns:1fr}
}
@media(max-width:390px){.people-screen .leave-list>.list-row>div:last-child{padding-right:0}.people-screen .actions{grid-template-columns:1fr}.people-screen .tabs .tab{padding-inline:10px}.people-screen .profile-summary>div{flex-basis:calc(100% - 90px)}}
@media(prefers-reduced-motion:reduce){.people-screen .department-card{transition:none}}

.people-screen #department-grid>.empty-state{grid-column:1/-1}
/* Complete personnel, structure and leave workflows. */
.people-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.people-screen .department-card h2{font-size:1.2rem;margin:20px 0 8px}
.people-screen .department-manager{border-top:1px solid var(--border);padding-top:16px;margin:20px 0 12px}
.people-screen .people-search-panel,.people-section-bottom{margin-bottom:22px}
.people-section-space{margin-top:24px}
.people-panel-stack{display:grid;gap:24px;align-content:start}
.people-screen .people-profile-avatar{width:72px;height:72px;font-size:1.4rem}
.people-screen .actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:20px;margin-top:22px}
.people-divided-row{padding:18px 0;border-bottom:1px solid var(--border)}
.people-divided-row:last-child{border-bottom:0}
.people-divided-row p{margin-top:6px;overflow-wrap:anywhere}
.people-leave-title{display:flex;align-items:flex-start;gap:13px;flex:1;min-width:220px}
.people-leave-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.people-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.people-modal .form-error{color:var(--danger);margin-top:10px}
.people-modal .form-error:empty{display:none}
.people-modal .notice{margin-top:18px}
.people-modal form>.field{margin-top:18px}
.people-modal form>.field:first-child{margin-top:0}
.people-modal [hidden]{display:none!important}
.people-screen .timeline-item{position:relative;border-right:2px solid var(--border);padding:0 20px 26px 0}
.people-screen .people-timeline-dot{position:absolute;right:-6px;top:7px;width:10px;height:10px;background:var(--primary);border-radius:50%}
.people-screen .people-recommendation .people-heading-actions{margin-top:16px}
.people-screen .badge.danger{border:1px solid color-mix(in srgb,var(--danger) 20%,transparent)}
@media(max-width:760px){
 .people-screen .page-heading .people-heading-actions{width:100%}
 .people-screen .section-heading{align-items:flex-start}
 .people-screen .section-heading .people-heading-actions{width:100%}
 .people-screen .people-heading-actions>.btn{flex:1;white-space:normal}
 .people-screen .people-leave-controls{width:100%;padding-right:0!important}
 .people-screen .people-leave-controls>.badge{margin-left:auto}
 .people-screen .people-leave-controls>.btn{flex:1}
 .people-modal .people-form-actions>.btn{flex:1}
 .people-screen .people-panel-stack{gap:20px}
}
