/* Shared control boundaries, loaded after page styles.
   iOS date themes can override border-box and impose a locale-dependent min-width.
   Disable only that theme, retaining the native picker and ISO form values. */
body main input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"]) {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    box-sizing: border-box;
    min-height: 48px;
    line-height: 1.5;
    text-align: left;
}
body main input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"])::-webkit-date-and-time-value {
    min-width: 0;
    height: 1.5em;
    text-align: left;
}
body main input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"])::-webkit-datetime-edit {
    min-width: 0;
    padding: 0;
}
body main input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"])::-webkit-calendar-picker-indicator {
    flex: 0 0 auto;
    margin-left: 8px;
    cursor: pointer;
}
@media (max-width: 768px) {
    body main form > *, body main :is(.form-grid, .config-fields, .claim-fields, .profile-fields, .finance-entry-form) > * {
        min-width: 0;
    }
    body main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select, textarea) {
        min-height: 44px;
        max-inline-size: 100%;
        box-sizing: border-box;
        font-size: 16px !important;
    }
    body main input[type="file"] {
        min-width: 0;
        overflow: hidden;
    }
    body main :is(button, .button, .icon-link) {
        min-height: 44px;
        min-width: 44px;
        max-inline-size: 100%;
        flex-shrink: 1;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body main :is(button, .button, .icon-link) > svg {
        flex-shrink: 0;
    }
    body main :is(.actions, .finance-actions, .config-form-actions, .claim-action-buttons) {
        flex-wrap: wrap;
    }
}
