/* Action buttons only. Calendar cells, cards, side navigation and the standalone kiosk retain their layouts. */
body button.ui-button{box-sizing:border-box!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:10px!important;font-size:14px!important;line-height:20px!important;padding:0 14px!important;font-family:inherit;box-shadow:none!important;vertical-align:middle}
body button.ui-secondary{background:#fdfcf9!important;border:1px solid #d2d3c7!important;color:#373d34!important}
body button.ui-primary{background:#57634d!important;border:0!important;color:#fff!important}
body button.ui-danger{background:#fdfaf7!important;border:1px solid #dac8c0!important;color:#966c62!important}
body button.ui-link{background:transparent!important;border:0!important;color:#57634d!important;text-decoration:none}
body button.ui-small{height:32px!important;min-height:32px!important;max-height:32px!important;border-radius:8px!important;font-size:13px!important;line-height:18px!important;padding:0 10px!important}
body button.ui-capsule{height:36px!important;min-height:36px!important;max-height:36px!important;border-radius:16px!important;font-size:14px!important}
body button.ui-button:focus-visible{outline:3px solid #b39776;outline-offset:3px}body button.ui-button:disabled{opacity:.5;cursor:not-allowed}
.ui-dialog-footer{display:flex!important;justify-content:flex-end!important;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}body .ui-dialog-footer>button{margin:0!important;width:auto!important;flex:0 1 auto!important}
body button.ui-back{width:44px;flex:0 0 44px;font-size:22px!important;margin:0 0 14px!important}
@media(max-width:640px){dialog.shared-dialog{max-width:calc(100vw - 24px);box-sizing:border-box}.ui-dialog-footer{justify-content:flex-end}.ui-dialog-footer>button{flex:0 1 auto;width:auto;max-width:100%}body button.ui-button{max-width:100%}.ui-back{width:44px!important}}

/* Let the actual header height participate in sizing: the body owns vertical scrolling. */
dialog.shared-dialog[open]{display:flex;flex-direction:column;box-sizing:border-box;max-height:calc(100dvh - 24px)!important;overflow:hidden}dialog.shared-dialog[open]>.shared-dialog-header{flex:0 0 auto;min-height:0;box-sizing:border-box}dialog.shared-dialog[open]>.shared-dialog-body{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto;box-sizing:border-box;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:28px}.shared-dialog-body .ui-dialog-footer{margin-bottom:0!important}@media(max-width:640px){dialog.shared-dialog[open]{max-height:calc(100dvh - 16px)!important}}
