.staffworks-app,
.staffworks-public {
    --sw-bg: #f7f7f4;
    --sw-panel: #ffffff;
    --sw-line: #d9ded6;
    --sw-text: #17211b;
    --sw-muted: #667067;
    --sw-accent: #146c53;
    --sw-accent-2: #f2b84b;
    color: var(--sw-text);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
    font-size: var(--sw-font-size, 16px) !important;
    line-height: 1.55 !important;
}

.staffworks-app *,
.staffworks-public * {
    box-sizing: border-box;
    font-family: inherit !important;
    line-height: inherit !important;
}

.staffworks-app h1,
.staffworks-app h2,
.staffworks-app h3,
.staffworks-app h4,
.staffworks-app h5,
.staffworks-app h6,
.staffworks-public h1,
.staffworks-public h2,
.staffworks-public h3,
.staffworks-public h4,
.staffworks-public h5,
.staffworks-public h6 {
    line-height: 1.35 !important;
}

.staffworks-app button,
.staffworks-app input,
.staffworks-app select,
.staffworks-app textarea,
.staffworks-app label,
.staffworks-public button,
.staffworks-public input,
.staffworks-public select,
.staffworks-public textarea,
.staffworks-public label {
    line-height: 1.4 !important;
}

.staffworks-app table,
.staffworks-app th,
.staffworks-app td,
.staffworks-public table,
.staffworks-public th,
.staffworks-public td {
    line-height: 1.45 !important;
}

.staffworks-app small,
.staffworks-public small {
    line-height: 1.4 !important;
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6,
.post-content .staffworks-app p,
.post-content .staffworks-public p,
.post-content .staffworks-app dt,
.post-content .staffworks-public dt,
.post-content .staffworks-app dd,
.post-content .staffworks-public dd,
.post-content .staffworks-app th,
.post-content .staffworks-public th,
.post-content .staffworks-app td,
.post-content .staffworks-public td {
    margin: 0 !important;
    padding: 0 !important;
}

.staffworks-topbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 6px;
    margin: 0 0 12px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--sw-bg);
    padding: 8px 0;
}

.staffworks-segmented {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 0;
    margin: 0 0 10px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    overflow: hidden;
}

.staffworks-segmented button {
    border: 0;
    border-radius: 0;
}

.staffworks-segmented button.is-active {
    background: var(--sw-accent);
    color: #fff;
}

.staffworks-tab,
.staffworks-app button,
.staffworks-app input,
.staffworks-app select,
.staffworks-app textarea {
    font: inherit;
    font-size: 16px;
}

.staffworks-tab,
.staffworks-app button {
    min-height: 44px;
    border: 1px solid var(--sw-line);
    background: #fff;
    color: var(--sw-text);
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 700;
    position: relative;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.staffworks-app button:not(:disabled):hover,
.staffworks-button-link:hover {
    border-color: var(--sw-accent);
    background: #e8f3ee;
    color: #0d523e;
}

.staffworks-app button.staffworks-primary:not(:disabled):hover,
.staffworks-app button.staffworks-approve:not(:disabled):hover,
.staffworks-app button.staffworks-reject:not(:disabled):hover,
.staffworks-app button.staffworks-publish:not(:disabled):hover {
    filter: brightness(0.88);
}

.staffworks-app button:not(:disabled):active {
    transform: translateY(1px);
}

.staffworks-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    padding: 9px 12px;
    background: #fff;
    color: var(--sw-text);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.staffworks-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    line-height: 1 !important;
    padding: 0 5px;
}

.staffworks-tab.is-active,
.staffworks-primary {
    background: var(--sw-accent) !important;
    border-color: var(--sw-accent) !important;
    color: #fff !important;
}

.staffworks-panel {
    display: none;
}

.staffworks-panel.is-active {
    display: block;
}

.staffworks-toolbar,
.staffworks-monthnav,
.staffworks-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.staffworks-admin-quicktools {
    justify-content: flex-end;
    margin: 8px 0 12px;
}

.staffworks-actions {
    margin: 8px 0 0;
}

.staffworks-monthnav {
    justify-content: center;
}

.staffworks-iconbtn {
    width: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 1 !important;
}

.staffworks-iconbtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.staffworks-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--sw-panel);
}

.staffworks-weekday,
.staffworks-day {
    min-width: 0;
    border-right: 1px solid var(--sw-line);
    border-bottom: 1px solid var(--sw-line);
}

.staffworks-weekday {
    padding: 8px 2px;
    text-align: center;
    background: #eef3ee;
    color: var(--sw-muted);
    font-size: 12px;
    font-weight: 800;
}

.staffworks-day {
    min-height: 92px;
    padding: 5px;
    background: #fff;
}

.staffworks-day {
    cursor: pointer;
}

.staffworks-day:focus,
.staffworks-day:hover {
    outline: 2px solid var(--sw-accent);
    outline-offset: -2px;
}

.staffworks-day.is-outside {
    background: #f4f4f1;
    color: #8b938d;
}

.staffworks-calendar > .staffworks-weekday:first-child {
    background: #f8e8e8;
    color: #a33a3a;
}

.staffworks-day.is-sunday,
.staffworks-day.is-holiday,
.staffworks-day.is-outside.is-sunday,
.staffworks-day.is-outside.is-holiday {
    background: #fff0f0;
}

.staffworks-day.is-sunday .staffworks-date,
.staffworks-day.is-holiday .staffworks-date {
    color: #b23535;
}

.staffworks-day.is-closed,
.staffworks-day.is-outside.is-closed {
    background: #fff7d6;
}

.staffworks-day.is-closed .staffworks-date {
    color: #806300;
}

/* 過ぎた日（前日以前）は薄いグレーにして選択不可であることを示す。 */
.staffworks-calendar .staffworks-day.is-past {
    background: #ededed;
    cursor: default;
}

.staffworks-calendar .staffworks-day.is-past:hover,
.staffworks-calendar .staffworks-day.is-past:focus {
    outline: none;
}

.staffworks-day.is-past .staffworks-date {
    color: #a2a8ac;
}

.staffworks-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.staffworks-event {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-left: 3px solid var(--sw-accent);
    background: #edf7f2;
    border-radius: 6px;
    padding: 4px 5px;
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.staffworks-event-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-width: 0;
}

.staffworks-event-head b {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.staffworks-shift-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
}

.staffworks-shift-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 2px 6px;
    background: #fff1c7;
    color: #7a5700;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.staffworks-shift-status.is-approved {
    background: #dff3e7;
    color: #12623f;
}

.staffworks-visibility-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 1px 5px;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.staffworks-visibility-status.is-public {
    border-color: #79b89b;
    background: #e3f5eb;
    color: #0e6541;
}

.staffworks-visibility-status.is-private {
    border-color: #aeb6bf;
    background: #f0f2f4;
    color: #4e5964;
}

.staffworks-event.is-public,
.staffworks-shift-list-event.is-public {
    box-shadow: inset 0 0 0 1px #9ccdb5;
}

.staffworks-event.is-private,
.staffworks-shift-list-event.is-private {
    border-right: 1px dashed #9ca6b0;
    box-shadow: inset 0 0 0 1px #d1d6db;
}

.staffworks-notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d62828;
    box-shadow: 0 0 0 2px #fff;
}

.staffworks-event.is-pending {
    border-left-color: var(--sw-accent-2);
    background: #fff7df;
}

.staffworks-event:not(.can-edit) {
    cursor: default;
}

.staffworks-event small {
    display: block;
    color: var(--sw-muted);
}

.staffworks-shift-table {
    display: grid;
    border-top: 1px solid var(--sw-line);
}

.staffworks-shift-list-day {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--sw-line);
    background: #fff;
    cursor: pointer;
}

.staffworks-shift-list-day:hover,
.staffworks-shift-list-day:focus {
    background: #f3f8f5;
    outline: 2px solid var(--sw-accent);
    outline-offset: -2px;
}

.staffworks-shift-list-date {
    align-self: start;
    padding: 6px 4px;
}

.staffworks-shift-list-weekday {
    margin-left: 3px;
    font-size: 0.9em;
}

.staffworks-shift-list-date small {
    display: block;
    margin-top: 3px;
    color: #a33a3a;
    font-size: 12px;
}

.staffworks-shift-list-day.is-sunday,
.staffworks-shift-list-day.is-holiday {
    background: #fff5f5;
}

.staffworks-shift-list-day.is-sunday .staffworks-shift-list-date strong,
.staffworks-shift-list-day.is-holiday .staffworks-shift-list-date strong {
    color: #b23535;
}

.staffworks-shift-list-day.is-closed {
    background: #fff7d6;
}

.staffworks-shift-list-day.is-closed .staffworks-shift-list-date strong {
    color: #806300;
}

.staffworks-shift-list-day.is-sunday:hover,
.staffworks-shift-list-day.is-sunday:focus,
.staffworks-shift-list-day.is-holiday:hover,
.staffworks-shift-list-day.is-holiday:focus {
    background: #fff5f5;
}

.staffworks-shift-list-day.is-closed:hover,
.staffworks-shift-list-day.is-closed:focus {
    background: #fff7d6;
}

/* 過ぎた日（前日以前）は薄いグレーにして選択不可であることを示す。 */
.staffworks-shift-list-day.is-past {
    background: #ededed;
    cursor: default;
}

.staffworks-shift-list-day.is-past:hover,
.staffworks-shift-list-day.is-past:focus {
    outline: none;
    background: #ededed;
}

.staffworks-closed-label {
    color: #806300 !important;
}

.staffworks-shift-list-events {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.staffworks-shift-list-event {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 2px 8px;
    align-items: center;
    width: auto;
    min-height: 38px !important;
    padding: 4px 8px !important;
    text-align: left;
    cursor: grab !important;
}

.staffworks-shift-list-event span:last-child {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--sw-muted);
}

.staffworks-shift-list-event .staffworks-shift-status {
    align-self: center;
}

.staffworks-shift-list-event .staffworks-shift-badges {
    justify-self: end;
}

.staffworks-shift-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 12px;
    margin: 6px 0 8px;
    color: var(--sw-muted);
    font-size: 11px;
    line-height: 1.4 !important;
}

.staffworks-shift-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 公開設定が「公開／非公開」に固定されているときは、各シフトの公開pillと凡例を隠す。 */
.staffworks-app.sw-visibility-fixed .staffworks-visibility-status,
.staffworks-app.sw-visibility-fixed .staffworks-shift-legend {
    display: none !important;
}

.staffworks-shift-list-empty {
    display: flex;
    align-items: center;
    min-height: 32px;
    color: var(--sw-muted);
}

.staffworks-modal[hidden] {
    display: none;
}

.staffworks-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.staffworks-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 12, 0.42);
}

.staffworks-modal-box {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.staffworks-public-status {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.staffworks-public-status legend {
    margin: 0 0 5px;
    padding: 0;
    color: var(--sw-muted);
    font-size: 13px;
    font-weight: 800;
}

.staffworks-choice-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 44px;
    overflow: hidden;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #fff;
}

.staffworks-choice-segment label {
    display: block;
    min-width: 0;
    color: var(--sw-muted);
    cursor: pointer;
}

.staffworks-choice-segment label + label {
    border-left: 1px solid var(--sw-line);
}

.staffworks-choice-segment input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.staffworks-choice-segment span {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 800;
}

.staffworks-choice-segment input:focus-visible + span {
    outline: 2px solid rgba(20, 108, 83, 0.35);
    outline-offset: -2px;
}

.staffworks-choice-segment input:checked + span {
    background: #edf1ee;
    color: #39433d;
}

.staffworks-choice-segment input[value="public"]:checked + span {
    background: var(--sw-accent);
    color: #fff;
}

.staffworks-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.staffworks-modal-head-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.staffworks-modal-head-tools button:not(.staffworks-iconbtn) {
    min-height: 32px;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.staffworks-danger-link {
    border-color: #e2bcbc !important;
    color: #9d2929 !important;
}

.staffworks-danger-link:hover {
    background: #fff0f0 !important;
    border-color: #c94b4b !important;
}

.staffworks-modal-head h3 {
    margin: 0;
    font-size: 18px;
}

@media (max-width: 520px) {
    .staffworks-modal-head {
        align-items: flex-start;
    }

    .staffworks-modal-head-tools {
        max-width: 70%;
    }

    .staffworks-modal-head-tools button:not(.staffworks-iconbtn) {
        min-height: 30px;
        padding: 3px 7px;
        font-size: 11px;
    }
}

.staffworks-form label {
    display: grid;
    gap: 5px;
    font-size: 13px;
    font-weight: 800;
    color: var(--sw-muted);
}

.staffworks-form {
    display: grid;
    gap: 8px;
}

.staffworks-form [data-reject-reason] {
    min-height: 40px;
    border-color: #d89a9a;
    background: #fffafa;
}

.staffworks-modal-open {
    overflow: hidden;
}

.staffworks-card {
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: var(--sw-panel);
    padding: 14px;
    margin: 10px 0;
    box-shadow: 0 1px 2px rgba(20, 40, 30, 0.04);
}

.staffworks-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.staffworks-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0;
}

/* スタッフ管理の入力欄。スマホでも2列を維持し、is-full の項目だけ全幅にする。 */
.staffworks-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0;
}

.staffworks-staff-grid > .is-full {
    grid-column: 1 / -1;
}

.staffworks-app input,
.staffworks-app select,
.staffworks-app textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
    color: var(--sw-text);
    font-size: 16px;
    line-height: 1.45 !important;
}

/* プルダウン（select）であることが分かるよう、右端に下向き矢印を表示する。 */
.staffworks-app select,
.staffworks-public select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 16px 16px;
}

.staffworks-app input:focus,
.staffworks-app select:focus,
.staffworks-app textarea:focus {
    border-color: var(--sw-accent);
    outline: 2px solid rgba(20, 108, 83, 0.18);
    outline-offset: 1px;
}

.staffworks-app textarea {
    min-height: 84px;
}

.staffworks-clock {
    margin: 12px 0 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.staffworks-clock-hm {
    font-size: 56px;
    font-weight: 900;
}

.staffworks-clock-sec {
    margin-left: 10px;
    font-size: 28px;
    font-weight: normal;
}

.staffworks-punch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 14px auto;
}

.staffworks-punch-actions button {
    width: 100%;
    min-height: 104px;
    font-size: 50px;
    line-height: 1 !important;
}

.staffworks-punch-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    filter: grayscale(1);
    background: #d6d9d6 !important;
    border-color: #c5c9c5 !important;
    color: #687068 !important;
}

.staffworks-app p.staffworks-station-notice,
.staffworks-public p.staffworks-station-notice {
    text-align: center;
    color: var(--sw-muted);
    /* .staffworks-app/.staffworks-public の font-size(!important) に勝てるよう指定。 */
    font-size: 14px !important;
}

[data-timecard-status] {
    text-align: center;
    font-size: 17px;
}

.staffworks-shift-readonly dl {
    display: grid;
    gap: 0;
    margin: 0 0 14px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    overflow: hidden;
}

.staffworks-shift-readonly dl > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    border-bottom: 1px solid var(--sw-line);
}

.staffworks-shift-readonly dl > div:last-child {
    border-bottom: 0;
}

.staffworks-shift-readonly dt,
.staffworks-shift-readonly dd {
    margin: 0;
    padding: 10px !important;
}

.staffworks-shift-readonly dt {
    background: #eef3ee;
    font-weight: 800;
}

.staffworks-shift-readonly dd {
    overflow-wrap: anywhere;
}

.staffworks-message {
    color: var(--sw-muted);
    min-height: 1.4em;
}

.staffworks-modal-box .staffworks-message {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.staffworks-modal-box .staffworks-message.is-alert {
    display: grid;
    gap: 4px;
    margin: 0 !important;
    min-height: 0;
    border: 1px solid #e2a3a3;
    border-left: 4px solid #c53d3d;
    border-radius: 7px;
    padding: 10px 12px !important;
    background: #fff2f2;
    color: #702323;
    white-space: normal;
}

.staffworks-modal-box .staffworks-message.is-alert strong,
.staffworks-modal-box .staffworks-message.is-alert span,
.staffworks-modal-box .staffworks-message.is-alert small {
    display: block;
    margin: 0;
}

.staffworks-modal-box .staffworks-message.is-alert strong {
    font-size: 14px;
}

.staffworks-modal-box .staffworks-message.is-alert small {
    color: #7b4a4a;
    font-size: 12px;
}

.staffworks-message:empty {
    display: none;
}

.staffworks-list {
    display: grid;
    gap: 8px;
}

.staffworks-inline-adjust {
    display: grid;
    grid-template-columns: 110px 100px minmax(0, 1fr) 110px auto;
    gap: 6px;
    margin-top: 10px;
}

.staffworks-row {
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.staffworks-row-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-weight: 800;
}

.staffworks-row-meta {
    color: var(--sw-muted);
    font-size: 13px;
    margin-top: 4px;
}

.staffworks-request-card {
    text-align: center;
    padding: 18px;
}

.staffworks-request-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.staffworks-request-change {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    font-size: 22px;
}

.staffworks-request-change div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--sw-line);
    background: #f7f9f7;
}

.staffworks-request-change .is-before {
    background: #f2f4f6;
    border-color: #cdd4da;
}

.staffworks-request-change .is-after {
    background: #eaf7ef;
    border-color: #9cccae;
}

.staffworks-request-reason {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px;
    border-left: 4px solid #d89b24;
    background: #fff8e7;
    text-align: left;
}

.staffworks-approve {
    background: #19724f !important;
    border-color: #19724f !important;
    color: #fff !important;
}

.staffworks-reject {
    background: #b83232 !important;
    border-color: #b83232 !important;
    color: #fff !important;
}

.staffworks-request-change small {
    font-size: 13px;
    color: var(--sw-muted);
}

.staffworks-payroll-row {
    width: 100%;
    text-align: left;
}

/* 給与明細詳細の最下部・左端に置く「印刷する」ボタン（右端は閉じる）。 */
.staffworks-payslip-print {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1;
    border: 1px solid var(--sw-line);
    border-radius: 6px;
    background: #fff;
    color: var(--sw-accent);
    cursor: pointer;
}

.staffworks-payslip-print:hover,
.staffworks-payslip-print:focus {
    background: var(--sw-accent);
    color: #fff;
    border-color: var(--sw-accent);
}

.staffworks-payslip-print svg {
    width: 1.1em;
    height: 1.1em;
}

.staffworks-status-pill {
    display: inline-flex;
    width: fit-content;
    /* margin-top: 7px; */
    border-radius: 999px;
    padding: 3px 9px;
    background: #e4e8e5;
    color: #4d5750;
    font-size: 12px;
    font-weight: 800;
}

.staffworks-status-pill.is-published {
    background: #dff3e7;
    color: #12623f;
}

.staffworks-payroll-detail {
    width: min(1180px, 100%);
}

.staffworks-payroll-detail > .staffworks-modal-head {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sw-line);
}

.staffworks-payroll-summary {
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0 16px !important;
}

.staffworks-payroll-summary > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    border-bottom: 1px solid var(--sw-line);
}

.staffworks-payroll-summary > div:last-child {
    border-bottom: 0;
}

.staffworks-payroll-summary dt,
.staffworks-payroll-summary dd {
    margin: 0;
    padding: 11px 14px !important;
}

.post-content .staffworks-app .staffworks-payroll-summary dt,
.post-content .staffworks-app .staffworks-payroll-summary dd {
    padding: 11px 14px !important;
}

.staffworks-payroll-summary dd {
    display: flex;
    align-items: center;
}

.staffworks-payroll-summary dt {
    background: #eef3ee;
    font-weight: 800;
}

.staffworks-payroll-person dd {
    font-size: 26px;
    font-weight: 900;
}

.staffworks-payroll-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.staffworks-payroll-totals > div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #f7f9f7;
}

.staffworks-payroll-totals span {
    color: var(--sw-muted);
    font-size: 12px;
    font-weight: 800;
}

.staffworks-payroll-totals strong {
    font-size: 20px;
}

.staffworks-payroll-totals .is-net {
    border-color: #d3a329;
    background: #fff6d8;
}

.staffworks-publish {
    background: #e6ad24 !important;
    border-color: #c89114 !important;
    color: #231b08 !important;
}

.staffworks-table-scroll {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    margin: 0 0 16px !important;
}

.staffworks-payroll-table-title {
    margin: 20px 0 10px !important;
    font-size: 18px;
}

.staffworks-payroll-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: auto;
    margin: 0 !important;
}

.staffworks-payroll-table th,
.staffworks-payroll-table td {
    padding: 8px 9px !important;
    border: 1px solid var(--sw-line);
    white-space: nowrap;
    line-height: 1.45 !important;
}

.post-content .staffworks-app .staffworks-payroll-table th,
.post-content .staffworks-app .staffworks-payroll-table td {
    padding: 8px 9px !important;
}

.staffworks-payroll-table th {
    background: #eef3ee;
}

.staffworks-payroll-table tbody tr:nth-child(even) {
    background: #fafbf9;
}

.staffworks-payroll-table tbody tr:hover {
    background: #f1f7f3;
}

.staffworks-payroll-table input {
    box-sizing: border-box;
    width: 80px !important;
    min-width: 0 !important;
    min-height: 36px !important;
    margin: 0 !important;
    border: 1px solid #cbd4ce !important;
    border-radius: 5px !important;
    padding: 6px 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.staffworks-payroll-table .staffworks-payroll-cell.staffworks-payroll-allowance input {
    text-align: right;
}

.staffworks-payroll-table input[data-day-memo] {
    width: 180px !important;
}

.staffworks-app[data-staffworks-view="staff"] .staffworks-payroll-detail input[readonly] {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    cursor: default;
    outline: 0;
    line-height: 1.45 !important;
}

.staffworks-app[data-staffworks-view="staff"] .staffworks-payroll-table {
    font-size: 14px;
}

.staffworks-app[data-staffworks-view="staff"] .staffworks-payroll-table input[readonly] {
    text-align: right;
}

.staffworks-app[data-staffworks-view="staff"] .staffworks-payroll-table input[type="text"][readonly] {
    text-align: left;
}

.staffworks-payroll-date strong,
.staffworks-payroll-date small,
.staffworks-work-display strong,
.staffworks-work-display small,
.staffworks-work-override strong,
.staffworks-work-override small {
    display: inline;
}

.staffworks-work-display {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.staffworks-payroll-date {
    display: table-cell;
}

.staffworks-payroll-date strong {
    margin: 0 5px 0 0 !important;
}

.staffworks-payroll-date small,
.staffworks-work-display small,
.staffworks-work-override small {
    color: var(--sw-muted);
    font-size: 12px;
}

.staffworks-work-display small,
.staffworks-work-override small {
    margin-left: 5px;
}

.staffworks-time-range {
    display: inline;
}

.staffworks-time-range + .staffworks-time-range::before {
    content: " / ";
    color: var(--sw-muted);
}

.staffworks-work-override {
    width: 150px;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left;
}

.staffworks-app .staffworks-work-override:not(:disabled):hover,
.staffworks-app .staffworks-work-override:focus-visible {
    border-color: transparent !important;
    background: #e8f3ee !important;
    color: var(--sw-text);
    outline: 2px solid #87bca8;
    outline-offset: -2px;
}

.staffworks-payroll-table td[data-day-base] {
    min-width: 82px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.staffworks-payroll-table .staffworks-payroll-work {
    min-width: 240px;
    white-space: normal;
}

.staffworks-payroll-table .staffworks-payroll-work .staffworks-work-display,
.staffworks-payroll-table .staffworks-payroll-work .staffworks-work-override {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.staffworks-payroll-table .staffworks-payroll-work .staffworks-work-override {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.staffworks-payroll-table .staffworks-payroll-work small {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 100%;
}

.staffworks-payroll-table tbody tr {
    height: auto !important;
}

.staffworks-payroll-table tbody td > *:first-child {
    margin-top: 0 !important;
}

.staffworks-payroll-table tbody td > *:last-child {
    margin-bottom: 0 !important;
}

.staffworks-app[data-staffworks-view="staff"] .staffworks-payroll-table td[data-day-base] {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.staffworks-payroll-monthly-section {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #f8faf8;
}

.staffworks-payroll-monthly-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.staffworks-payroll-monthly {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.staffworks-payroll-monthly label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--sw-line);
    border-radius: 6px;
    background: #fff;
    font-weight: 800;
}

.staffworks-payroll-monthly input {
    width: 150px !important;
    min-width: 0 !important;
    min-height: 38px !important;
    margin: 0 !important;
    border: 1px solid #cbd4ce !important;
    border-radius: 5px !important;
    padding: 7px 9px !important;
    box-shadow: none !important;
}

.staffworks-app[data-staffworks-view="staff"] .staffworks-payroll-monthly input[readonly] {
    width: auto;
    min-width: 72px;
    text-align: right;
    font-weight: 800;
}

.staffworks-payroll-detail > .staffworks-actions {
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sw-line);
}

.staffworks-staff-profile textarea {
    min-height: 72px;
}

.staffworks-staff-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.staffworks-staff-title strong {
    font-size: 21px;
}

.staffworks-staff-title small {
    color: var(--sw-muted);
    font-size: 12px;
}

.staffworks-staff-order {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}

.staffworks-staff-order .staffworks-iconbtn {
    width: 36px;
    min-height: 36px;
    font-size: 18px;
}

.staffworks-staff-order .staffworks-iconbtn:disabled {
    cursor: default;
    opacity: 0.35;
}

.staffworks-staff-profile label,
.staffworks-inline-adjust label {
    display: grid;
    gap: 5px;
    font-size: 13px;
    font-weight: 800;
    color: var(--sw-muted);
}

.staffworks-money {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.staffworks-public {
    display: grid;
    gap: 10px;
}

.staffworks-public-head {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
}

.staffworks-public-nav {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #fff;
    color: var(--sw-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1 !important;
    text-decoration: none;
}

.staffworks-public-nav:hover {
    border-color: var(--sw-accent);
    background: #e8f3ee;
    color: var(--sw-accent);
}

.staffworks-public-calendar .staffworks-day {
    cursor: default;
}

.staffworks-public-week-table {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #fff;
}

.staffworks-public-week-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    border-bottom: 1px solid var(--sw-line);
}

.staffworks-public-week-row:last-child {
    border-bottom: 0;
}

.staffworks-public-week-row h3 {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    margin: 0;
    padding: 14px 18px;
    background: #eef3ee;
    text-align: center;
}

.staffworks-public-week-row h3 strong {
    font-size: 20px;
}

.staffworks-public-week-row h3 span {
    color: var(--sw-muted);
    font-size: 13px;
}

.staffworks-public-week-row h3 small {
    color: #a33a3a;
    font-size: 11px;
    font-weight: 700;
}

.staffworks-public-week-row.is-sunday h3,
.staffworks-public-week-row.is-holiday h3 {
    background: #fbe9e9;
}

.staffworks-public-week-row.is-sunday h3 strong,
.staffworks-public-week-row.is-sunday h3 span,
.staffworks-public-week-row.is-holiday h3 strong,
.staffworks-public-week-row.is-holiday h3 span {
    color: #a83232;
}

.staffworks-public-week-row.is-closed h3 {
    background: #fff7d6;
}

.staffworks-public-week-row.is-closed h3 strong,
.staffworks-public-week-row.is-closed h3 span {
    color: #806300;
}

.staffworks-public-week-shifts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 10px;
}

.staffworks-public-shift {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    border: 1px solid #b8d8c7;
    border-left: 4px solid var(--sw-accent);
    border-radius: 7px;
    padding: 6px 10px 6px 7px;
    background: #edf7f2;
}

.staffworks-public-shift > div {
    display: grid;
    gap: 1px;
}

.staffworks-public-shift span {
    color: var(--sw-muted);
    font-size: 13px;
}

.staffworks-public-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.staffworks-public-event-person {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.staffworks-public-event-person .staffworks-public-avatar {
    width: 28px;
    height: 28px;
}

.staffworks-public-empty {
    margin: 0;
    color: var(--sw-muted);
}

.staffworks-public-day {
    border-bottom: 1px solid #d9ded6;
    padding-bottom: 10px;
}

.staffworks-public-day h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.staffworks-public-day ul {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.staffworks-public-day li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.staffworks-worktime {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    padding: 11px 14px;
    border: 1px solid #9ccdb5;
    border-radius: 10px;
    background: #e8f3ee;
}

.staffworks-worktime[hidden] {
    display: none;
}

.staffworks-worktime-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a8a5f;
    animation: staffworks-pulse 1.8s ease-out infinite;
}

.staffworks-worktime-body {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.staffworks-worktime-label {
    font-weight: 800;
    color: #0e6541;
    font-size: 14px;
}

.staffworks-worktime-elapsed {
    font-size: 24px;
    font-weight: 900;
    color: #0d4f3a;
    font-variant-numeric: tabular-nums;
}

.staffworks-worktime-since {
    margin-left: auto;
    color: var(--sw-muted);
    font-size: 13px;
    font-weight: 700;
}

@keyframes staffworks-pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 138, 95, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(26, 138, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 138, 95, 0); }
}

.staffworks-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 12px;
    color: var(--sw-muted);
    font-weight: 700;
}

.staffworks-spinner {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 3px solid #cfe0d7;
    border-top-color: var(--sw-accent);
    border-radius: 50%;
    animation: staffworks-spin 0.8s linear infinite;
}

@keyframes staffworks-spin {
    to { transform: rotate(360deg); }
}

.staffworks-push-desc {
    margin: 0 0 10px;
    color: var(--sw-muted);
    font-size: 14px;
}

.staffworks-notify-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.staffworks-notify-row > span {
    font-weight: 800;
    color: var(--sw-text);
    font-size: 15px;
}

.staffworks-notify-row select {
    width: auto !important;
    min-width: 150px;
}

.staffworks-notify-kinds {
    margin: 4px 0 0;
    padding: 12px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #fbfcfb;
}

.staffworks-notify-kinds legend {
    padding: 0 6px;
    color: var(--sw-muted);
    font-size: 13px;
    font-weight: 800;
}

.staffworks-notify-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    color: var(--sw-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.staffworks-notify-check + .staffworks-notify-check {
    border-top: 1px solid var(--sw-line);
}

.staffworks-notify-check input {
    width: 22px !important;
    height: 22px;
    min-height: 22px !important;
    flex: 0 0 auto;
    margin: 0 !important;
}

.staffworks-push-setting {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sw-line);
}

.staffworks-push-setting[hidden] {
    display: none;
}

.staffworks-push-setting .staffworks-notify-row button {
    width: auto;
}

.staffworks-request-modal-box {
    width: min(480px, 100%);
}

.staffworks-request-summary {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
    background: #f3f8f5;
    color: var(--sw-text);
    font-size: 14px;
    line-height: 1.6 !important;
}

.staffworks-request-reason-label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--sw-muted);
}

.staffworks-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 22px 16px;
    border: 1px dashed var(--sw-line);
    border-radius: 10px;
    background: #fbfcfb;
    color: var(--sw-muted);
    font-weight: 700;
    text-align: center;
    line-height: 1.5 !important;
}

@media (prefers-reduced-motion: reduce) {
    .staffworks-worktime-dot,
    .staffworks-spinner {
        animation: none;
    }
}

.staffworks-install {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid #c9b66a;
    border-radius: 10px;
    background: #fff8e6;
}

.staffworks-install[hidden] {
    display: none;
}

.staffworks-install-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.staffworks-install-body strong {
    font-size: 15px;
    color: #6b5310;
}

.staffworks-install-body span {
    color: var(--sw-muted);
    font-size: 13px;
}

.staffworks-install-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.staffworks-install-actions .staffworks-iconbtn,
.staffworks-install > .staffworks-iconbtn {
    flex: 0 0 auto;
    width: 36px;
    min-height: 36px;
    margin-left: auto;
    font-size: 20px;
}

.staffworks-app .staffworks-help-fab {
    position: fixed !important;
    /* 既定は左下（右下のトップへ戻るボタンと重なりにくい）。位置・余白は設定で変更可。 */
    left: var(--sw-fab-left, 16px);
    right: var(--sw-fab-right, auto);
    bottom: calc(var(--sw-fab-bottom, 16px) + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: grid;
    place-items: center;
    gap: 0;
    width: 58px;
    height: 58px;
    min-height: 58px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--sw-accent) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(10, 60, 44, 0.34);
}

.staffworks-app .staffworks-help-fab .staffworks-help-fab-mark {
    font-size: 22px;
    font-weight: 900;
    line-height: 1 !important;
}

.staffworks-app .staffworks-help-fab small {
    font-size: 10px;
    font-weight: 800;
    line-height: 1 !important;
}

/* PWA（ホーム画面から起動）時は画面下部に余白（ホームバー領域）ができるため、ボタンを少し上げる。 */
@media all and (display-mode: standalone) {
    .staffworks-app .staffworks-help-fab {
        bottom: calc(var(--sw-fab-bottom, 16px) + env(safe-area-inset-bottom, 0px) + 28px);
    }
}

.staffworks-guide-box {
    width: min(620px, 100%);
}

.staffworks-guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.staffworks-guide-tab {
    min-height: 38px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 13px;
}

.staffworks-guide-tab.is-active {
    background: var(--sw-accent) !important;
    border-color: var(--sw-accent) !important;
    color: #fff !important;
}

.staffworks-guide-panel {
    display: none;
}

.staffworks-guide-panel.is-active {
    display: block;
}

.staffworks-guide-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--sw-line);
}

.staffworks-guide-section:last-child {
    border-bottom: 0;
}

.staffworks-guide-section h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--sw-accent);
}

.staffworks-guide-section p {
    margin: 0 0 5px;
    color: var(--sw-text);
    font-size: 14px;
}

.staffworks-guide-section p:last-child {
    margin-bottom: 0;
}

.staffworks-app-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 8px;
}

.staffworks-text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sw-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.staffworks-text-link:hover {
    color: var(--sw-accent);
    text-decoration: underline;
}

.staffworks-icon {
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.15em;
}

.staffworks-tab,
.staffworks-segmented button,
.staffworks-app button.staffworks-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.staffworks-choice-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.staffworks-reject-area {
    margin-top: 10px;
    text-align: left;
}

.staffworks-reject-area[hidden] {
    display: none;
}

.staffworks-reject-area textarea {
    min-height: 64px;
}

.staffworks-reject-area .staffworks-actions {
    justify-content: flex-end;
}

@media (max-width: 680px) {
    .staffworks-topbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staffworks-toolbar button.staffworks-primary {
        width: 100%;
    }

    .staffworks-segmented {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .staffworks-tab {
        padding: 8px 4px;
        font-size: 13px;
    }

    .staffworks-day {
        min-height: 78px;
        padding: 3px;
    }

    .staffworks-event {
        font-size: 11px;
        padding: 3px;
    }

    .staffworks-event-head {
        gap: 3px;
    }

    .staffworks-shift-badges {
        gap: 2px;
    }

    .staffworks-event .staffworks-shift-status {
        padding: 1px 4px;
        font-size: 9px;
    }

    .staffworks-event .staffworks-visibility-status {
        padding: 1px 4px;
        font-size: 8px;
    }

    .staffworks-grid2 {
        grid-template-columns: 1fr;
    }

    .staffworks-inline-adjust {
        grid-template-columns: 1fr;
    }

    .staffworks-shift-list-day {
        grid-template-columns: 1fr;
    }

    .staffworks-shift-list-event {
        grid-template-columns: auto auto;
    }

    .staffworks-request-change {
        grid-template-columns: 1fr;
        font-size: 18px;
    }

    .staffworks-request-arrow {
        font-size: 0;
    }

    .staffworks-request-arrow::before {
        content: "↓";
        font-size: 24px;
    }

    .staffworks-payroll-summary > div {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .staffworks-payroll-summary {
        margin: 8px 0 14px !important;
    }

    .staffworks-payroll-summary dt,
    .staffworks-payroll-summary dd {
        padding: 9px 10px !important;
    }

    .post-content .staffworks-app .staffworks-payroll-summary dt,
    .post-content .staffworks-app .staffworks-payroll-summary dd {
        padding: 9px 10px !important;
    }

    .staffworks-payroll-person dd {
        font-size: 22px;
    }

    .staffworks-payroll-totals .is-net {
        grid-column: 1 / -1;
    }

    .staffworks-payroll-table-title {
        margin: 16px 0 8px !important;
    }

    .staffworks-payroll-table {
        min-width: initial;
    }

    .staffworks-payroll-table th,
    .staffworks-payroll-table td {
        padding: 7px 8px !important;
    }

    .staffworks-payroll-date strong,
    .staffworks-payroll-date small,
    .staffworks-work-display strong,
    .staffworks-work-display small,
    .staffworks-work-override strong,
    .staffworks-work-override small,
    .staffworks-time-range {
        display: block;
    }

    .staffworks-payroll-date strong {
        margin: 0 0 3px !important;
    }

    .staffworks-work-display,
    .staffworks-work-override {
        display: block;
    }

    .staffworks-payroll-table .staffworks-payroll-work {
        min-width: 120px;
    }

    .staffworks-payroll-table.staffworks-payroll-table-staff .staffworks-payroll-work {
        min-width: 96px;
    }

    .staffworks-payroll-table.staffworks-payroll-table-staff input[type="number"] {
        width: 65px !important;
    }

    .staffworks-payroll-table .staffworks-payroll-work .staffworks-work-override {
        display: block;
    }

    .staffworks-payroll-table .staffworks-payroll-work small {
        display: block;
    }

    .staffworks-work-display small,
    .staffworks-work-override small {
        margin: 3px 0 0;
    }

    .staffworks-time-range + .staffworks-time-range::before {
        content: none;
    }

    .post-content .staffworks-app .staffworks-payroll-table th,
    .post-content .staffworks-app .staffworks-payroll-table td {
        padding: 7px 8px !important;
    }

    .staffworks-public-head {
        gap: 7px;
        font-size: 15px;
    }

    .staffworks-public-week-row {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .staffworks-public-week-row h3 {
        padding: 10px 12px;
    }

    .staffworks-public-week-row h3 strong {
        font-size: 17px;
    }

    .staffworks-public-week-shifts {
        display: grid;
        min-height: 64px;
        padding: 7px;
    }

    .staffworks-public-shift {
        width: 100%;
    }

    .staffworks-punch-actions button {
        min-height: 96px;
        font-size: 50px;
        padding: 8px 2px;
    }
}
