/* Shared CRM action buttons. Selection controls, chat and calendar cells keep their own geometry. */
:root{--crm-button-blue:#366fc0;--crm-button-hover:#2e61aa;--crm-button-radius:12px;--crm-button-height:40px}
:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--crm-button-height);height:auto;margin-top:0;padding:9px 15px;border:1px solid #dce5f2;border-radius:var(--crm-button-radius);background:#f0f5fc;color:#3567a8;font:700 12px/1.45 Manrope,sans-serif;text-decoration:none;text-align:center;vertical-align:middle;cursor:pointer;box-shadow:0 1px 2px #27476c05;transition:background .16s,border-color .16s,box-shadow .16s;transform:none;overflow-wrap:anywhere}
:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]):hover{background:#e5eefb;border-color:#c9daf0;color:#285997;box-shadow:0 3px 10px #355d8d10;transform:none}
:root body :is(.primary-button,.primary-action,.fleet-add-button,.visit-form-actions>button[value=completed]){background:linear-gradient(135deg,#3c79cc,#3066b1);border-color:#326ab8;color:white;box-shadow:0 3px 10px #366fc025}
:root body :is(.primary-button,.primary-action,.fleet-add-button,.visit-form-actions>button[value=completed]):hover{background:linear-gradient(135deg,#4282d7,#2d60a7);border-color:#2e61aa;color:white;box-shadow:0 5px 14px #366fc030}
:root body :is(.equipment-delete-confirm,.equipment-delete,.pin-disable,.profile-avatar-remove,.visit-form-actions>button[value=cancelled]){color:#b43e4d;background:#fff0f2;border-color:#f1d4da;box-shadow:none}:root body :is(.equipment-delete-confirm,.equipment-delete,.pin-disable,.profile-avatar-remove,.visit-form-actions>button[value=cancelled]):hover{color:#a32f3e;background:#ffe5e9;border-color:#e7b9c2}
:is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close]){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:40px;width:40px;height:40px;padding:0;border:1px solid #dce5f2;border-radius:12px;background:#f0f5fc;color:#55769f;cursor:pointer;font-family:inherit;text-decoration:none}
:is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close]):hover{background:#e5eefb;color:#285997}
:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]):focus-visible,:is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close]):focus-visible{outline:3px solid #9fc2f1;outline-offset:3px}
:root body :is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]):disabled,:root body :is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close]):disabled{opacity:.48;cursor:not-allowed;box-shadow:none;transform:none}
:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]):active:not(:disabled){box-shadow:inset 0 2px 5px #1f477c18}
body .primary-button>span{margin:0;color:inherit}.hero-actions{align-items:center;flex-wrap:wrap}.profile-shell .card>header{gap:12px;flex-wrap:wrap}.profile-shell .card>header>button{flex-shrink:0}.fleet-add-button .fleet-add-icon{color:white}.profile-alerts button{text-decoration:none}
@media(max-width:600px){:root{--crm-button-height:44px}:is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close]){min-width:44px;width:44px;height:44px}:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]){min-height:44px;padding:10px 13px}.hero-actions{gap:8px}.visit-month>button{min-width:44px}.visit-form-actions{gap:8px}}
@media(prefers-reduced-motion:reduce){:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit]),:is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close]){transition:none}}
/* Preserve hidden action states despite the shared inline-flex display. */
:is(.primary-button,.primary-action,.secondary-action,.fleet-add-button,.tasks-filter-apply,.crm-page-apply,.pin-secondary,.pin-disable,.profile-avatar-remove,.hero-actions>button,.profile-shell .card>header>button,.profile-shell .card>header>a,.profile-alerts button,.counterparty>footer>button,.visit-day-list>button,.visit-month>button,.visit-form-actions>button,.client-edit-dialog footer>button,.crm-entry-dialog footer>button,.server-page main form button[type=submit])[hidden],:is(.profile-shell .contact-person>button,.profile-shell .documents button,.profile-shell .claim>button,.client-edit-dialog header>button[aria-label],.crm-entry-dialog header>button[aria-label],.visit-dialog-header>[data-close])[hidden]{display:none}
