/* Compact controls reuse the existing page colors. */
html body #app :is(#attendance,#advances) .awp-action-layout{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;margin:7px 0!important}
html body #app .awp-choice-actions,html body #app .awp-save-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
html body #app :is(.awp-choice-actions,.awp-save-actions)>button{width:100%!important;min-width:0!important;min-height:36px!important;box-sizing:border-box!important;padding:7px 6px!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important;font-size:12px!important;border-radius:7px!important;text-shadow:none!important;box-shadow:none!important}
html body #app :is(#addAtt,#addAdv,#saveBulkAttendance,#saveBulkAdv){background:#187044!important;color:#fff!important;border:1px solid #126039!important}
html body #app :is(#selectAllAtt,#selectAllAdv){background:#17639a!important;color:#fff!important;border:1px solid #125383!important}
html body #app :is(#clearAllAtt,#clearAllAdv){background:#edf1f5!important;color:#354657!important;border:1px solid #b5c1ce!important}
html body.dark-theme #app :is(#clearAllAtt,#clearAllAdv){background:#34465b!important;color:#f0f5fa!important;border-color:#7b90a7!important}
html body #app :is(#addAtt,#addAdv,#saveBulkAttendance,#saveBulkAdv)::before{content:'✓';margin-right:5px}
html body #app :is(#selectAllAtt,#selectAllAdv)::before{content:'☑';margin-right:5px}
html body #app :is(#clearAllAtt,#clearAllAdv)::before{content:'☐';margin-right:5px}
html body #app .awp-delete-action{align-self:flex-end!important;min-height:32px!important;padding:6px 9px!important;font-size:11px!important;margin:0!important;white-space:normal!important}
html body #app :is(#bulkCount,#advBulkCount){display:block!important;width:100%!important;box-sizing:border-box!important;color:#41586d!important;font-size:11px!important;line-height:1.4!important;padding:3px 0!important;margin:0!important}
html body.dark-theme #app :is(#bulkCount,#advBulkCount){color:#c4d4e5!important}
#awpTodaySummary{margin:5px 0 7px;padding:8px 9px;border:1px solid #9eb7c9;border-radius:8px;background:transparent;color:inherit}
#awpTodaySummary[hidden],#awpSaveNotice[hidden]{display:none!important}
.awp-today-head{display:flex;justify-content:space-between;align-items:baseline;gap:7px;margin-bottom:6px;font-size:12px}.awp-today-head>span{font-size:10px;text-align:right;overflow-wrap:anywhere}
.awp-today-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.awp-today-grid>div{display:flex;flex-direction:column;gap:2px;min-width:0}.awp-today-grid strong{font-size:16px;line-height:1.2;overflow-wrap:anywhere}.awp-today-grid>div:last-child strong{font-size:13px}.awp-today-grid span{font-size:10px;line-height:1.25}
#awpSaveNotice{position:fixed;left:50%;bottom:70px;transform:translateX(-50%);z-index:10050;width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box;display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #368a60;border-radius:10px;background:#eaf7ef;color:#15482c;box-shadow:0 4px 16px #0002;font-size:13px;line-height:1.4}
.awp-save-check{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:#187044;color:#fff;font-size:17px}#awpSaveNoticeText{overflow-wrap:anywhere}#awpSaveNotice>button{flex:none;background:transparent!important;color:inherit!important;border:0!important;padding:3px 5px!important;font-size:21px!important;box-shadow:none!important}
body.dark-theme #awpSaveNotice{background:#163d2b;color:#eaf8ef;border-color:#63b388}
@media(prefers-reduced-motion:no-preference){#app .panel.active{animation:awpPanelIn .16s ease-out}#app button{transition:filter .12s ease,transform .12s ease}#app button:active:not(:disabled){transform:scale(.98)}#awpSaveNotice:not([hidden]){animation:awpNoticeIn .18s ease-out}@keyframes awpPanelIn{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes awpNoticeIn{from{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%,0)}}}
@media print{#awpTodaySummary,#awpSaveNotice{display:none!important}}

/* R566: match worker-input actions to the existing green Save buttons. */
html body #app #workers :is(#awpVoiceWorker,#awpPhotoWorker,#pickWorkerContact,#addWorker,#openOcrImport){background:#187044!important;background-image:none!important;background-color:#187044!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #126039!important;text-shadow:none!important}
html body #app #workers :is(#awpVoiceWorker,#awpPhotoWorker,#pickWorkerContact,#addWorker,#openOcrImport):hover:not(:disabled){background:#145d39!important;background-image:none!important}

/* R567: selected division centered above the toolbar. */
#awpTodaySummary .awp-today-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px}
#awpTodaySummary .awp-today-head>strong:first-child,#awpTodaySummary #awpTodayCaption{white-space:nowrap}
#awpTodaySummary #awpTodayDivision{min-width:0;text-align:center;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
html body #app #projectHeaderInfo{display:none!important}

/* R581: distinguish summary headings from data, with explicit theme contrast. */
html body #app#app #awpTodaySummary{--awp-today-heading:#12685e}
html body.dark-theme #app#app #awpTodaySummary{--awp-today-heading:#80e0d0}
html body #app#app #awpTodaySummary .awp-today-head,html body #app#app #awpTodaySummary .awp-today-head>*{color:var(--awp-today-heading)!important;-webkit-text-fill-color:var(--awp-today-heading)!important;text-shadow:none!important;opacity:1!important}

/* R603: ikon ringkasan dan navigasi, konsisten dan hemat ruang di HP. */
.awp-today-worker-value{display:flex!important;align-items:center;gap:4px}.awp-today-worker-value>span{font-size:inherit!important;line-height:inherit!important}.awp-worker-icon,.awp-nav-icon{width:15px;height:15px;flex:0 0 15px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.awp-worker-icon{width:14px;height:14px;flex-basis:14px;color:#1b9b83}html body #app .project-tabs>button[data-tab="workers"],html body #app .project-tabs>button[data-tab="attendance"],html body #app .project-tabs>button[data-tab="advances"],html body #app .project-tabs>button[data-tab="report"],html body #app .project-tabs>button#awpDivisionMenu{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important}

/* R604: hilangkan hanya ikon tombol teks pada tampilan HP; label tetap di tengah. */
@media(max-width:650px){html body #app .project-tabs>button[data-tab="workers"]>svg.awp-nav-icon,html body #app .project-tabs>button[data-tab="attendance"]>svg.awp-nav-icon,html body #app .project-tabs>button[data-tab="advances"]>svg.awp-nav-icon,html body #app .project-tabs>button[data-tab="report"]>svg.awp-nav-icon{display:none!important}html body #app .project-tabs>button[data-tab="workers"],html body #app .project-tabs>button[data-tab="attendance"],html body #app .project-tabs>button[data-tab="advances"],html body #app .project-tabs>button[data-tab="report"]{justify-content:center!important;text-align:center!important}}

/* R605: compact only toolbar spacing on mobile */
@media(max-width:650px){html body #app #awpTodaySummary{margin-bottom:3px!important}html body #app .project-tabs{margin-top:2px!important;margin-bottom:3px!important;row-gap:4px!important}html body #app .project-tabs+.panel{margin-top:3px!important}}
/* R605: contrast for translated worker search button */
html body #app #searchWorkerTop.worker-search-top{color:#172c3d!important;-webkit-text-fill-color:#172c3d!important;background:#ffe9b7!important;border-color:#d5aa59!important;text-shadow:none!important;opacity:1!important}
html body #app #searchWorkerTop.worker-search-top .awp-i18n-text::after{color:#172c3d!important;-webkit-text-fill-color:#172c3d!important;text-shadow:none!important;opacity:1!important}
