/* Monthly attendance and leave management. Brand/layout foundations live in styles.css. */
.attendance-filters{align-items:end;margin-bottom:20px}.attendance-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}.attendance-summary .stat{padding:18px 16px}.attendance-summary .stat-value{font-size:26px}.attendance-summary .stat-foot{line-height:1.6}.attendance-summary .stat-icon{display:none}.attendance-summary .stat-value small{display:block;margin:5px 0 0}.leave-list{display:grid;gap:15px}.leave-card{padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:white}.leave-card-top,.leave-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.leave-card h3{font-size:15px}.leave-date{font-size:17px;font-weight:550;margin:17px 0 9px;font-variant-numeric:tabular-nums}.leave-reason{font-size:12px;line-height:1.8;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.leave-review{background:var(--pale);border-radius:8px;padding:11px 13px;font-size:12px;line-height:1.8;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.leave-card-bottom{border-top:1px solid var(--line);padding-top:14px;margin-top:15px}.leave-card-bottom .head-actions{justify-content:flex-end}.account-role-note{min-height:55px}.role-field[hidden]{display:none}.monthly-hours{font-variant-numeric:tabular-nums}.attendance-summary .stat-foot,.leave-summary .stat-foot{font-size:10px}.leave-filters{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}.profile-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.profile-links .btn{flex:1}
@media(max-width:900px){.attendance-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-summary .stat:nth-child(4),.attendance-summary .stat:nth-child(5){grid-column:auto}.leave-card{padding:20px}.mobile-nav a{min-width:0;flex:1;padding-left:4px;padding-right:4px}}
@media(max-width:520px){.attendance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.attendance-summary .stat{padding:15px}.attendance-summary .stat:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}.attendance-summary .stat:first-child .stat-value{grid-column:2;grid-row:1/3;margin:0}.attendance-summary .stat:first-child .stat-foot{grid-column:1}.attendance-summary .stat-value{font-size:24px}.leave-card{padding:18px 16px}.leave-card-top{align-items:flex-start}.leave-card-bottom{align-items:flex-start;flex-direction:column}.leave-card-bottom .head-actions{width:100%;justify-content:flex-start}.leave-date{font-size:15px}.leave-filters{grid-template-columns:1fr}.attendance-filters{grid-template-columns:1fr}.mobile-nav a{font-size:9px}.mobile-nav svg{width:20px;height:20px}}

/* Attendance calendar: seven weekday columns remain visible on phones. */
.attendance-controlbar{display:flex;align-items:end;gap:20px;margin-bottom:14px}.attendance-controlbar .attendance-filters{flex:1;margin:0;grid-template-columns:repeat(3,minmax(120px,1fr))}.attendance-controlbar .head-actions{padding-bottom:1px;flex-shrink:0}.calendar-title{align-items:flex-start}.calendar-title h2{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.calendar-month{font-size:14px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}.calendar-navigation{display:flex;gap:7px;flex-wrap:wrap}.calendar-legend{display:flex;flex-wrap:wrap;gap:16px;padding:0 24px 18px;color:var(--muted);font-size:11px}.calendar-legend>span{display:flex;align-items:center;gap:5px}.calendar-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none}.calendar-dot.attendance{background:#4d8875}.calendar-dot.shift{background:#5b80ae}.calendar-dot.leave{background:#b57c42}.holiday-legend{color:#b4483f}.weekend-legend{color:#57728d}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:stretch;border-top:1px solid var(--line)}.calendar-month-view{padding:18px 20px 20px;min-width:0}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{padding:0 0 9px;font-size:11px;text-align:center;color:var(--muted)}.calendar-weekdays .is-weekend{color:#57728d}.calendar-grid{gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}.calendar-day{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:100px;padding:8px 7px;background:#fff;text-align:left;color:var(--ink);border:0;border-radius:0;transition:background .12s;outline-offset:-3px}.calendar-day.is-weekend{background:#f3f6f8}.calendar-day.outside-month{background:#f7f8f5;color:#a1aaa3}.calendar-day.outside-month .calendar-day-events{opacity:.65}.calendar-day:hover{background:#eef4e9}.calendar-day.is-selected{background:#e9f2e6;box-shadow:inset 0 0 0 2px #4e7b60;z-index:1}.calendar-day-top{display:flex;align-items:center;justify-content:space-between;gap:2px;min-height:23px}.calendar-number{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;border-radius:50%}.calendar-day.is-today .calendar-number{background:#234b40;color:#fff}.calendar-day.is-holiday:not(.is-today) .calendar-number{color:#b4483f}.calendar-today-label{font-size:8px;color:#4b725d}.calendar-holiday{font-size:9px;color:#b4483f;line-height:1.4;margin:3px 0;overflow-wrap:anywhere}.calendar-day-events{display:flex;flex-wrap:wrap;gap:3px;margin-top:5px}.calendar-event{display:inline-flex;align-items:center;gap:3px;padding:3px 4px;border-radius:4px;font-size:9px;line-height:1.1;max-width:100%;white-space:nowrap}.calendar-event b{font-weight:650}.calendar-event.attendance{color:#326853;background:#e8f1e8}.calendar-event.shift{color:#3e6494;background:#e8eef7}.calendar-event.leave{color:#94602e;background:#f7eddf}.calendar-event.open{color:#a56a2c;background:#fff0d9}.calendar-footnote,.calendar-source,.calendar-coverage{font-size:10px;color:var(--muted);line-height:1.7;margin-top:12px}.calendar-source a{text-decoration:underline;text-underline-offset:2px}.calendar-coverage{color:#956437;background:#fbf1e5;padding:9px 11px;border-radius:6px}.calendar-detail{background:#fafcf8;border-left:1px solid var(--line);padding:21px 20px;min-width:0;max-height:820px;overflow:auto}.calendar-detail-head h3{font-size:18px;font-variant-numeric:tabular-nums;margin-bottom:7px}.calendar-detail-head .meta{font-size:10px;color:var(--muted);line-height:1.7;margin-top:8px}.calendar-holiday-name{font-size:12px;color:#b4483f;line-height:1.6}.calendar-detail-group{margin-top:21px}.calendar-detail-group h4{display:flex;gap:7px;align-items:center;margin:0 0 10px;font-size:12px;font-weight:600}.calendar-record{padding:11px 0;border-bottom:1px solid var(--line);font-size:11px}.calendar-record:last-child{border-bottom:0}.calendar-record strong{font-size:11px;font-weight:600;display:block;margin-bottom:6px;overflow-wrap:anywhere}.calendar-record p{font-size:10px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.calendar-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:8px}.calendar-record-meta small{font-size:10px;color:var(--muted)}.calendar-no-record{font-size:11px;color:#9ca89c;line-height:1.6}.calendar-detail-action{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.rule-actions{display:flex;gap:7px;flex-wrap:wrap}.rule-review{background:#f4f7f0;padding:17px 18px;border-radius:10px;margin-bottom:18px}.rule-review p{font-size:12px;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:1250px){.attendance-controlbar{align-items:stretch;flex-direction:column;gap:14px}.attendance-controlbar .head-actions{justify-content:flex-start}.calendar-layout{grid-template-columns:minmax(0,1fr) 255px}.calendar-month-view{padding:15px 13px}.calendar-day{padding:7px 5px}.calendar-detail{padding:20px 16px}}
@media(max-width:1050px){.calendar-layout{grid-template-columns:1fr}.calendar-detail{border-left:0;border-top:1px solid var(--line);max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}.calendar-detail-head{grid-column:1/-1}.calendar-detail-group{margin-top:10px}.calendar-detail-action{grid-column:1/-1}.calendar-day{min-height:105px}}
@media(max-width:600px){.attendance-controlbar .attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.attendance-controlbar .attendance-filters .field:last-child:nth-child(3){grid-column:1/-1}.attendance-controlbar .head-actions{width:100%;display:flex;gap:9px}.attendance-controlbar .head-actions .btn{flex:1}.calendar-title{flex-direction:column;gap:15px;padding:18px 15px 15px}.calendar-navigation{width:100%;justify-content:space-between}.calendar-navigation .btn{flex:1;min-height:36px;font-size:10px;padding:7px 9px}.calendar-legend{padding:0 15px 15px;gap:10px;font-size:10px}.calendar-month-view{padding:13px 7px 15px}.calendar-weekdays{font-size:9px}.calendar-day{min-height:100px;padding:6px 3px}.calendar-number{font-size:12px;min-width:21px;min-height:21px}.calendar-today-label{display:none}.calendar-holiday{font-size:8px;line-height:1.45;letter-spacing:-.1px}.calendar-day-events{gap:3px;flex-direction:column;align-items:flex-start;margin-top:4px}.calendar-event{font-size:8px;padding:3px;gap:2px}.calendar-footnote,.calendar-source,.calendar-coverage{font-size:9px;margin-left:5px;margin-right:5px}.calendar-detail{padding:20px 16px;grid-template-columns:1fr;gap:5px}.calendar-detail-head,.calendar-detail-action{grid-column:1}.calendar-detail-group{margin-top:17px}.calendar-record p{font-size:11px}.calendar-record strong{font-size:12px}}

/* Personal information: compact entry, local avatar preview, independent form. */
.profile-top-button{width:32px;height:32px;min-width:32px;padding:0;border:1px solid #d7e1d4;border-radius:50%;background:#edf3e9;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none}.user-avatar{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e5eee0;color:#355844;position:relative;overflow:hidden;flex:none;font-size:17px;font-weight:600;vertical-align:middle}.user-avatar.small{width:30px;height:30px;font-size:12px}.user-avatar.large{width:112px;height:112px;font-size:40px;box-shadow:0 0 0 7px #f2f6ee}.user-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.user-avatar.has-image .avatar-initial{visibility:hidden}.profile-user-link{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;vertical-align:bottom}.profile-panel{max-width:860px;margin-right:auto}.profile-intro{padding:32px;display:flex;align-items:center;gap:30px;background:linear-gradient(115deg,#f2f6ee,#fbfcf9);border-bottom:1px solid var(--line)}.profile-avatar-copy{min-width:0}.profile-avatar-copy h2{font-size:18px}.profile-avatar-copy>p{font-size:12px;line-height:1.8;color:var(--muted);margin:9px 0 14px}.profile-avatar-copy>.mini-label{font-size:10px;margin-bottom:0}.profile-avatar-copy .head-actions{justify-content:flex-start}.profile-upload{position:relative;overflow:hidden;cursor:pointer}.profile-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}.profile-upload.disabled{opacity:.5;pointer-events:none}.profile-fields{padding:30px 32px}.profile-field-help{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0 20px}.profile-fields .notice p+p{margin-top:6px}.profile-fields .notice p{font-size:12px;line-height:1.8}.profile-save-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-top:22px;margin-top:10px;border-top:1px solid var(--line)}.profile-save-row .mini-label{line-height:1.8}.profile-success{background:#edf6e9;color:#426937;border:1px solid #d1e3c8}.profile-loading{font-size:13px;line-height:1.9;color:var(--muted)}.profile-loading .btn{margin-top:15px}.account-profile-identity{display:flex;align-items:center;gap:10px;min-width:0}.account-profile-identity>div{overflow-wrap:anywhere;min-width:0}.account-profile-identity .user-avatar{flex-shrink:0}
@media(max-width:700px){.profile-intro{padding:26px 22px;gap:23px}.profile-fields{padding:24px 22px}.user-avatar.large{width:94px;height:94px;font-size:34px}.top-actions .profile-top-button{width:28px;height:28px;min-width:28px}.profile-top-button .user-avatar.small{width:26px;height:26px}.top-actions{gap:6px}.profile-save-row{align-items:flex-start;flex-direction:column;gap:12px}.profile-save-row .btn{width:100%}}
@media(max-width:420px){.profile-intro{flex-direction:column;align-items:flex-start;gap:23px}.profile-avatar-copy .head-actions{width:auto}.profile-fields .form-grid{grid-template-columns:1fr}.topbar .top-actions{gap:5px}.topbar .demo-pill{display:none}.profile-fields{padding:22px 18px}.profile-intro{padding:26px 20px}}

/* Whole-store monthly GMV: independent operational totals, visible to the team. */
.gmv-goal-card{margin:0 0 26px;border-color:#d8e3d4;box-shadow:0 8px 28px #243b2b05}.gmv-goal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;padding:25px 27px 20px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#fbfcf7,#f5f8ef)}.gmv-goal-header h2{font-size:19px}.gmv-goal-header p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:8px}.gmv-goal-controls{display:flex;align-items:end;gap:9px;flex:none}.gmv-goal-controls .field{min-width:145px}.gmv-goal-controls .btn{min-height:38px;margin-bottom:1px}.gmv-goal-body{padding:22px 27px 23px}.gmv-goal-status{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:22px}.gmv-goal-status p{font-size:11px;line-height:1.7;color:var(--muted)}.gmv-status{display:inline-flex;align-items:center;border-radius:20px;padding:6px 11px;font-size:10px;font-weight:600;background:#eef2eb;color:#66815b}.gmv-status.not_set{background:#f2f2ed;color:#8b927d}.gmv-status.near_target{background:#fcf0dd;color:#96662f}.gmv-status.achieved{background:#e6f2e4;color:#3b7947}.gmv-goal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px}.gmv-goal-metrics>div{min-width:0;border-right:1px solid var(--line);padding-right:12px}.gmv-goal-metrics>div:last-child{border-right:0;padding-right:0}.gmv-goal-metrics>div>span{display:block;font-size:10px;color:var(--muted);margin-bottom:10px}.gmv-goal-metrics strong{display:block;min-width:0;font-weight:550;font-size:clamp(18px,1.8vw,27px);line-height:1.4;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.gmv-goal-metrics strong .gmv-unset{font-size:17px;color:#8a9684;font-weight:400}.gmv-negative{color:var(--danger)}.gmv-progress-track{height:10px;background:#edf1e8;border-radius:10px;overflow:hidden;box-shadow:inset 0 1px 2px #193b1e08}.gmv-progress-track>span{display:block;max-width:100%;height:100%;background:linear-gradient(90deg,#688c6a,#3a6852);border-radius:10px;transition:width .3s ease}.gmv-goal-card.near_target .gmv-progress-track>span{background:linear-gradient(90deg,#d3a66b,#e09c51)}.gmv-goal-card.achieved .gmv-progress-track>span{background:linear-gradient(90deg,#80a575,#2e7451)}.gmv-progress-track.unset{background:repeating-linear-gradient(45deg,#f0f2ec,#f0f2ec 5px,#f8faf4 5px,#f8faf4 10px)}.gmv-data-freshness{display:flex;gap:17px;align-items:center;flex-wrap:wrap;margin-top:17px;color:var(--muted);font-size:10px;line-height:1.8}.gmv-data-freshness b{font-weight:600;color:var(--ink)}.gmv-today-missing{color:#986d3e}.gmv-missing-notice,.gmv-negative-note,.gmv-empty-note{margin-top:15px;font-size:11px;line-height:1.8;padding:10px 12px;border-radius:7px;background:#fbf5e9;color:#8c6a37}.gmv-negative-note{color:#a15645;background:#fcf1eb}.gmv-empty-note{background:#f4f7ef;color:#78886e}.gmv-goal-footer{padding:17px 27px;background:#fafcf7;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.gmv-goal-footer>small{font-size:10px;line-height:1.8;color:var(--muted)}.gmv-data-note{display:block;font-size:9px;color:#91a08a;margin-top:3px}.gmv-goal-footer .head-actions{flex-shrink:0;justify-content:flex-end}.gmv-goal-empty{padding:30px 27px;font-size:12px;line-height:1.8;color:var(--muted)}.gmv-form-month{font-size:18px!important;margin-bottom:22px!important;color:var(--ink)!important;font-variant-numeric:tabular-nums}.gmv-existing-day,.gmv-current-server{font-size:11px;margin-top:17px;line-height:1.8;padding:11px 13px;background:#f2f6ed;border-radius:7px;color:var(--muted)}.gmv-entry-table td,.gmv-entry-table th{padding-left:12px;padding-right:12px;font-size:11px}.gmv-entry-table .btn{font-size:10px;padding:6px 8px}.gmv-entry-table td:first-child{white-space:nowrap}
@media(max-width:1150px){.gmv-goal-header{flex-wrap:wrap;gap:17px}.gmv-goal-controls{margin-left:auto}.gmv-goal-footer{align-items:flex-start;flex-direction:column;gap:13px}.gmv-goal-footer .head-actions{justify-content:flex-start}.gmv-goal-metrics{gap:15px}}
@media(max-width:600px){.gmv-goal-header{padding:21px 19px 18px}.gmv-goal-header h2{font-size:17px}.gmv-goal-controls{width:100%;margin:0;justify-content:space-between}.gmv-goal-controls .field{flex:1;min-width:0}.gmv-goal-controls .field input{font-size:14px}.gmv-goal-controls .btn{min-height:40px}.gmv-goal-body{padding:20px 19px}.gmv-goal-status{margin-bottom:20px;gap:8px}.gmv-goal-status p{font-size:10px}.gmv-goal-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 15px}.gmv-goal-metrics>div:nth-child(2){border-right:0;padding-right:0}.gmv-goal-metrics strong{font-size:22px;letter-spacing:-.5px}.gmv-goal-metrics>div>span{font-size:10px;margin-bottom:7px}.gmv-goal-footer{padding:17px 19px}.gmv-goal-footer .head-actions{width:100%;display:flex;gap:7px}.gmv-goal-footer .head-actions .btn{flex:1;min-width:0;white-space:normal;font-size:10px;padding:8px 9px;line-height:1.6}.gmv-data-freshness{gap:6px 14px}.gmv-goal-empty{padding:25px 19px}.gmv-entry-table td{min-width:85px}.gmv-entry-table td:last-child{min-width:100px}}
@media(prefers-reduced-motion:reduce){.gmv-progress-track>span{transition:none}}
.personal-attendance-panel{margin-bottom:20px}
.personal-attendance-panel .page-head{margin-bottom:14px;gap:14px}
.personal-attendance-panel .head-actions{justify-content:flex-start;flex-wrap:wrap}
.account-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:160px}
#employee-pay-fields[hidden],#account-attendance-existing[hidden],#account-attendance-create[hidden],#account-attendance-none[hidden]{display:none}
@media(max-width:600px){.personal-attendance-panel .head-actions .btn{flex:1 1 42%;white-space:normal;text-align:center}.personal-attendance-panel .page-head{align-items:flex-start}.personal-attendance-panel .page-head h2{font-size:18px}}
.pill.dual-role{background:#e8e4f6;color:#604c88}
.clock-mode-notice{font-size:12px;line-height:1.6;color:var(--muted,#72806e);margin:8px 0 0}
#clock-mode-field{min-width:0}
#clock-mode-field select{width:100%;min-width:0}
#shift-control-field[hidden]{display:none}
.pay-work-split{white-space:normal;min-width:150px}
