.fi-body {
    background: #fffbf2;
    color: #1b1b1b;
}

body.fi-panel-home:has(.phone) {
    height: 100dvh;
    overflow: hidden;
}

.fi-simple-layout {
    background: #fffbf2;
    font-size: 20px;
}

.fi-simple-layout .grid {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
}

.fi-simple-layout .fi-simple-main {
    width: min(32rem, calc(100% - 32px));
    max-width: 32rem;
}

.fi-simple-header-heading {
    font-size: 28px;
    line-height: 1.3;
}

.fi-simple-layout .fi-btn {
    min-height: 56px;
    font-size: 20px;
}

.fi-simple-layout .fi-input,
.fi-simple-layout .fi-fo-field-wrp-label,
.fi-simple-layout .fi-simple-header-subheading {
    font-size: 20px;
}

.fi-simple-layout .fi-input-wrp {
    min-height: 56px;
    align-items: stretch;
}

.fi-simple-layout .fi-input-wrp-input {
    display: flex;
    align-items: center;
}

.fi-simple-layout input.fi-input {
    height: 56px;
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.phone {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    margin: 0 auto;
    background: #fffbf2;
    color: #1b1b1b;
    font-family: "Noto Sans", system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-h {
    flex-shrink: 0;
    background: #0f5f57;
    color: #fff;
    padding: 22px 20px 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.phone-h small {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 400;
}

.phone-b {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow: auto;
}

.phone-t {
    flex-shrink: 0;
    display: flex;
    background: #fff;
    border-top: 2px solid #d9d2c0;
}

.phone-t a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 64px;
    padding: 8px 2px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: #4a4a4a;
    text-decoration: none;
}

.phone-t a svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.phone-t a span {
    display: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-t a.on {
    color: #0f5f57;
    box-shadow: inset 0 4px 0 #0f5f57;
}

.phone-t a.on span {
    display: block;
}

.card {
    background: #fff;
    border: 2px solid #d9d2c0;
    border-radius: 16px;
    padding: 14px 16px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

button.row {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
}

.name {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.meta {
    font-size: 18px;
    color: #4a4a4a;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.pill.present,
.pill.extra_work {
    background: #d7eeea;
    color: #0a4a44;
}

.pill.absent {
    background: #ffe3c2;
    color: #7a3300;
}

.pill.half,
.pill.paid_leave,
.pill.unpaid_leave {
    background: #dce8fa;
    color: #12327a;
}

.btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 56px;
    width: 100%;
    border-radius: 14px;
    border: 2px solid #0f5f57;
    background: #0f5f57;
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
}

.btn.o,
a.btn.o {
    background: #fff;
    color: #0f5f57;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.push {
    flex: 1 0 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips button,
.legend span {
    padding: 10px 14px;
    border: 2px solid #7a7a7a;
    border-radius: 12px;
    background: #fff;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 20px;
}

.chips button.sel {
    background: #0f5f57;
    border-color: #0f5f57;
    color: #fff;
    font-weight: 700;
}

.field label,
.field-title {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 700;
}

.phone input[type="text"],
.phone input[type="tel"],
.phone input[type="date"] {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    padding: 0 14px;
    border: 2px solid #7a7a7a;
    border-radius: 12px;
    background: #fff;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 22px;
}

.pair {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.pair > div {
    flex: 1;
    min-width: 0;
}

.cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.cal .dow {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
}

.cal button {
    min-height: 44px;
    padding: 10px 0;
    border-radius: 10px;
    border: 2px solid #d9d2c0;
    background: #fff;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
}

.cal button.absent {
    background: #ffe3c2;
    border-color: #b45309;
    color: #7a3300;
}

.cal button.half,
.cal button.paid_leave {
    background: #dce8fa;
    border-color: #1d4ed8;
    color: #12327a;
}

.cal button.off {
    background: #e7e2d6;
    border-color: #e7e2d6;
    color: #4a4a4a;
}

.cal button.extra_work {
    background: #d7eeea;
    border-color: #0f5f57;
    color: #0a4a44;
}

.cal button.picked {
    outline: 3px solid #0f5f57;
}

.legend span.absent {
    background: #ffe3c2;
    border-color: #b45309;
}

.legend span.half {
    background: #dce8fa;
    border-color: #1d4ed8;
}

.legend span.off {
    background: #e7e2d6;
}

.line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 20px;
}

.minus {
    color: #7a3300;
}

.pay {
    background: #d7eeea;
    border: 2px solid #0f5f57;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.pay .meta {
    color: #0a4a44;
}

.pay .sum {
    color: #0a4a44;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
}

.switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.switch button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 16px;
    border: 2px solid #0f5f57;
    background: #fff;
    color: #0f5f57;
}

.switch button svg {
    width: 32px;
    height: 32px;
}

.notice {
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffe3c2;
    color: #7a3300;
    font-size: 18px;
    font-weight: 700;
}

.err {
    margin-top: 4px;
    color: #7a3300;
    font-size: 18px;
    font-weight: 700;
}
