/* 1.11.2 - compact payment icons, differentiated actions and consistent spacing.
   The application roots below prevent these rules from styling other site pages. */
.bsgp-crm .bsgp-payment-indicator {
 display:inline-flex;align-items:center;justify-content:center;position:relative;
 width:36px;height:36px;min-width:36px;padding:0;border-radius:50%;border:1px solid;
 flex:0 0 36px;vertical-align:middle;line-height:1;box-shadow:none;
}
body.bsgp-workspace-page .bsgp-crm .bsgp-payment-indicator.is-paid {
 color:#15733f!important;background:#edf7ef!important;border-color:#aad0b8!important;
}
body.bsgp-workspace-page .bsgp-crm .bsgp-payment-indicator.is-unpaid {
 color:#bd2727!important;background:#fff2ef!important;border-color:#e9b5b1!important;
}
.bsgp-crm .bsgp-payment-indicator>span {display:inline-flex;align-items:center;justify-content:center;}
body.bsgp-workspace-page .bsgp-crm .bsgp-payment-indicator :is(svg,span) {color:inherit!important;}
.bsgp-crm .bsgp-payment-indicator svg {display:block;width:23px;height:23px;stroke-width:2.6;}
.bsgp-crm .bsgp-payment-indicator [hidden] {display:none!important;}
.bsgp-crm .bsgp-payment-test-label {position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:750;line-height:1.3;color:#171715!important;}
body.bsgp-workspace-page .bsgp-crm #bsgp-app-table :is(th,td):nth-child(5) {text-align:center!important;width:80px;min-width:80px;}
body.bsgp-workspace-page .bsgp-crm .bsgp-payment-tile {
 display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;
 cursor:default;scroll-margin-top:calc(var(--bsgp-toolbar-height,90px) + 16px);
}
body.bsgp-workspace-page .bsgp-crm .bsgp-payment-tile:hover {transform:none!important;box-shadow:none!important;}
/* Grey notes controls remain secondary, including hover/focus states. */
body.bsgp-workspace-page .bsgp-crm #bsgp-app-table .bsgp-note-quick-btn,
body.bsgp-workspace-page .bsgp-crm #bsgp-app-table .bsgp-note-quick-btn:is(:hover,:focus-visible),
.bsgp-crm #bsgp-app-table .bsgp-note-quick-btn {
 background:#e5e5e3!important;color:#171715!important;border:1px solid #cacac6!important;
 box-shadow:none!important;min-height:42px!important;padding:10px 13px!important;
 border-radius:10px!important;line-height:1.35!important;font-weight:600!important;font-size:12px!important;
}
body.bsgp-workspace-page .bsgp-crm #bsgp-app-table .bsgp-note-quick-btn:hover {background:#d7d7d4!important;border-color:#babbb6!important;}
/* Sending a message is a different action category: black with white text. */
body.bsgp-workspace-page .bsgp-crm .bsgp-dossier-mail-actions .bsgp-btn,
body.bsgp-workspace-page .bsgp-crm .bsgp-dossier-mail-actions .bsgp-btn:is(:hover,:focus-visible),
body.bsgp-workspace-page #bsgp-overview-action-menu .bsgp-mail-action,
body.bsgp-workspace-page #bsgp-overview-action-menu .bsgp-mail-action:is(:hover,:focus-visible),
.bsgp-crm .bsgp-dossier-mail-actions :is(.bsgp-mail-action,.bsgp-payment-reminder),
#bsgp-overview-action-menu .bsgp-mail-action {
 background:#171717!important;background-image:none!important;border-color:#171717!important;color:#fff!important;
 border-radius:10px!important;box-shadow:none!important;text-shadow:none!important;
}
body.bsgp-workspace-page .bsgp-crm .bsgp-dossier-mail-actions .bsgp-btn:hover,
body.bsgp-workspace-page #bsgp-overview-action-menu .bsgp-mail-action:hover {background:#303030!important;border-color:#303030!important;}
body.bsgp-workspace-page #bsgp-overview-action-menu:not([hidden]) {display:grid!important;gap:8px!important;padding:10px!important;}
body.bsgp-workspace-page #bsgp-overview-action-menu .bsgp-mail-action {margin:0!important;width:100%;padding:12px 14px!important;font-size:12px;line-height:1.45!important;text-align:left;}
#bsgp-overview-action-menu[hidden] {display:none!important;}
/* Login: proper separation between inputs, main action and a true text link. */
body.bsgp-workspace-page .bsgp-crm-auth {padding:32px 20px!important;min-height:100vh;min-height:100dvh;box-sizing:border-box;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card {
 width:100%;max-width:500px!important;padding:32px!important;border-radius:20px!important;
 box-shadow:0 12px 40px #30281910!important;box-sizing:border-box;
}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card>img {display:block;width:min(100%,300px)!important;height:auto;max-height:128px;object-fit:contain;padding:0!important;margin:0 auto 24px!important;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card>.bsgp-kicker {display:block;text-align:center;font-size:12px;line-height:1.5;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card>h1 {font-size:30px!important;line-height:1.25!important;text-align:center;letter-spacing:-.025em;margin:6px 0 28px!important;}
.bsgp-crm-auth .bsgp-auth-form:not([hidden]) {display:grid!important;gap:18px;}
.bsgp-crm-auth .bsgp-auth-form[hidden] {display:none!important;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-form>label {display:grid;gap:8px;margin:0!important;font-size:13px!important;font-weight:600;line-height:1.4;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-form input:not([type=hidden]) {width:100%;min-height:52px;margin:0!important;padding:12px 14px!important;border-radius:10px!important;font-size:16px!important;line-height:1.4;box-sizing:border-box;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-form>.bsgp-btn {width:100%;min-height:48px!important;margin:0!important;padding:13px 18px!important;border-radius:10px!important;line-height:1.4!important;}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card .bsgp-auth-link,
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card .bsgp-auth-link:is(:hover,:focus-visible),
.bsgp-crm-auth .bsgp-auth-card .bsgp-auth-form .bsgp-auth-link {
 background:transparent!important;border:0!important;color:#142d4e!important;box-shadow:none!important;
 display:block;width:fit-content!important;justify-self:center;margin:-2px auto 0!important;
 padding:8px 10px!important;min-height:40px;border-radius:6px!important;line-height:1.4!important;
 font-size:13px!important;font-weight:600!important;text-decoration:underline;text-underline-offset:3px;
}
body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card .bsgp-auth-link:hover {text-decoration-thickness:2px;background:#edeae3!important;}
.bsgp-crm-auth .bsgp-auth-form>.bsgp-alert:not([hidden]) {margin:0!important;}
.bsgp-crm-auth .bsgp-auth-form>h2 {margin:0!important;line-height:1.4;}
.bsgp-crm-auth .bsgp-auth-form>p {margin:0!important;line-height:1.6;}
/* Compact but usable table and dossier spacing; no wrapping of table cells. */
body.bsgp-workspace-page .bsgp-crm #bsgp-app-table :is(td,th) {padding:12px 14px!important;vertical-align:middle!important;}
body.bsgp-workspace-page .bsgp-crm #bsgp-app-table tbody tr {height:65px;}
body.bsgp-workspace-page .bsgp-crm .bsgp-ux-dossier-header {gap:24px!important;padding:28px 32px!important;margin-bottom:20px!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-dossier-identity {min-width:0;}
body.bsgp-workspace-page .bsgp-crm .bsgp-dossier-reference {gap:10px 16px!important;margin-top:16px!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-ux-workflow {padding:24px!important;margin-bottom:20px!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-ux-workflow-head {gap:16px!important;margin-bottom:18px!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-ux-workflow-links {gap:12px!important;margin-top:20px!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-workspace-toolbar .bsgp-dossier-mail-actions {gap:10px!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-workspace-toolbar .bsgp-dossier-mail-actions .bsgp-btn {min-height:44px!important;line-height:1.4!important;}
body.bsgp-workspace-page .bsgp-crm .bsgp-workspace-toolbar .bsgp-dossier-mail-actions .bsgp-btn:only-child {grid-column:1 / -1;}
.bsgp-crm .bsgp-payment-indicator:focus-visible {outline:3px solid #50739b;outline-offset:3px;}
@media(max-width:720px){
 body.bsgp-workspace-page .bsgp-crm .bsgp-ux-dossier-header {padding:20px!important;gap:18px!important;}
 body.bsgp-workspace-page .bsgp-crm .bsgp-ux-workflow {padding:16px!important;}
 body.bsgp-workspace-page .bsgp-crm .bsgp-ux-workflow-head h2 {font-size:17px!important;}
 body.bsgp-workspace-page .bsgp-crm .bsgp-workspace-toolbar .bsgp-dossier-mail-actions .bsgp-btn {padding:10px 8px!important;white-space:normal!important;min-height:48px!important;}
}
@media(max-width:480px){
 body.bsgp-workspace-page .bsgp-crm-auth {padding:20px 14px!important;}
 body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card {padding:24px 20px!important;border-radius:16px!important;}
 body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card>img {max-width:250px!important;max-height:112px;margin-bottom:20px!important;}
 body.bsgp-workspace-page .bsgp-crm-auth .bsgp-auth-card>h1 {font-size:27px!important;margin-bottom:24px!important;}
 body.bsgp-workspace-page .bsgp-crm .bsgp-ux-dossier-header {padding:18px!important;}
}
