/*
 * Organisation-owned cards, account list, forms and dialog styling.
 * Explicit values mirror the previous Bootstrap UI; no Bootstrap classes/variables
 * or shared Goal/YemCollection stylesheet rules are required by this View.
 */
.org-ui {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
}
.org-ui *, .org-ui *::before, .org-ui *::after { box-sizing: border-box; }
.org-ui [hidden], .org-dialog-backdrop[hidden] { display: none !important; }
#organisationViewId { background: rgb(225,235,247); }
.org-ui h5 { margin: 0 0 .5rem; font: inherit; font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.org-ui p { margin: 0 0 1rem; }
.org-ui label { display: inline-block; }
.org-ui small, .org-small { font-size: .875em; }
.org-ui strong { font-weight: 700; }
.org-ui img { vertical-align: middle; }
.org-ui form.org-signin { width: 100%; max-width: 330px; padding: 15px; margin: auto; }
.org-label { margin-bottom: .5rem; }
.org-muted { color: rgba(33,37,41,.75); }
.org-error { color: #dc3545; }
.org-primary-text { color: #0d6efd; }
.org-cards { display: flex; flex-wrap: wrap; justify-content: center; margin: 3rem -12px 0; }
.org-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 0;
    width: 18rem;
    max-width: 100%;
    padding: 0 12px;
    margin: 0 .5rem 1rem;
    text-align: center;
    overflow-wrap: break-word;
    background: #fff;
    border: 1px solid rgba(0,0,0,.175);
    border-radius: .375rem;
}
.org-ui .org-card-header {
    padding: .5rem 1rem;
    margin-bottom: 0;
    background: rgba(33,37,41,.03);
    border-bottom: 1px solid rgba(0,0,0,.175);
    border-radius: calc(.375rem - 1px) calc(.375rem - 1px) 0 0;
}
.org-card-body { flex: 1 1 auto; padding: 1rem; }
.org-save { display: block; }
.org-users-row { display: flex; justify-content: center; margin: 0 -12px; }
.org-users-column { flex: 0 0 auto; width: 66.66666667%; padding: 0 12px; }
.org-user-list { display: flex; flex-direction: column; padding: 0; margin: 0; border-radius: .375rem; }
.org-user, .org-list-header {
    position: relative;
    display: block;
    padding: .5rem 1rem;
    color: #212529;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dee2e6;
}
.org-list-header { color: #41464b; background: #e2e3e5; border-color: #c4c8cb; }
.org-user-list > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.org-user-list > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.org-user-list > * + * { border-top-width: 0; }
.org-user { width: 100%; color: #212529; text-align: inherit; }
.org-user:focus, .org-user:hover { z-index: 1; color: #000; text-decoration: none; background: #f8f9fa; }
.org-user:active { color: #212529; background: #e9ecef; }
.org-user-row { display: flex; justify-content: space-between; }
.org-user-avatar { width: 300px; }
.org-ui .org-user-name { margin-bottom: .25rem; }
.org-user-deleted { color: red; text-decoration: line-through; }
.org-user-actions { display: inline-block; margin-bottom: .25rem; }
.org-input {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 10px;
    margin: 0;
    font: inherit;
    color: #212529;
    line-height: 1.5;
    background: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.org-input:focus { z-index: 2; color: #212529; border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.org-input::placeholder { color: rgba(33,37,41,.75); opacity: 1; }
.org-input[type="email"] { margin-bottom: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.org-input[type="password"] { border-top-left-radius: 0; border-top-right-radius: 0; }
.org-password { margin-bottom: .5rem; }
.org-password-label { margin-top: 1rem; }
.org-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.org-invalid:focus { border-color: #dc3545; box-shadow: 0 0 0 .25rem rgba(220,53,69,.25); }
.org-button {
    display: inline-block;
    margin: 0;
    padding: .375rem .75rem;
    font: inherit;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background: #0d6efd;
    border: 1px solid transparent;
    border-radius: .375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.org-button:focus { outline: 0; }
.org-button:disabled { pointer-events: none; opacity: .65; }
.org-primary { background-color: #0d6efd; border-color: #0d6efd; }
.org-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; }
.org-primary:focus-visible { background-color: #0b5ed7; border-color: #0a58ca; box-shadow: 0 0 0 .25rem rgba(49,132,253,.5); }
.org-primary:active { background-color: #0a58ca; border-color: #0a53be; }
.org-secondary { background-color: #6c757d; border-color: #6c757d; }
.org-secondary:hover { background-color: #5c636a; border-color: #565e64; }
.org-secondary:focus-visible { background-color: #5c636a; border-color: #565e64; box-shadow: 0 0 0 .25rem rgba(130,138,145,.5); }
.org-secondary:active { background-color: #565e64; border-color: #51585e; }
.org-success { background-color: #198754; border-color: #198754; }
.org-success:hover { background-color: #157347; border-color: #146c43; }
.org-success:focus-visible { background-color: #157347; border-color: #146c43; box-shadow: 0 0 0 .25rem rgba(60,153,110,.5); }
.org-success:active { background-color: #146c43; border-color: #13653f; }
.org-danger { background-color: #dc3545; border-color: #dc3545; }
.org-danger:hover { background-color: #bb2d3b; border-color: #b02a37; }
.org-danger:focus-visible { background-color: #bb2d3b; border-color: #b02a37; box-shadow: 0 0 0 .25rem rgba(225,83,97,.5); }
.org-danger:active { background-color: #b02a37; border-color: #a52834; }

/* Non-top-layer shell: the unchanged shared overlays remain above this local dialog. */
.org-dialog-backdrop { position: fixed; inset: 0; z-index: 1039; background: rgba(0,0,0,.5); }
dialog.org-dialog {
    position: fixed;
    z-index: 1040;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: 500px;
    max-height: calc(100vh - 1rem);
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.175);
    border-radius: .5rem;
    outline: 0;
    overflow: hidden;
}
dialog.org-dialog:not([open]) { display: none; }
dialog.org-dialog[open], .org-dialog-content { display: flex; flex-direction: column; }
.org-dialog-content { min-height: 0; max-height: inherit; width: 100%; }
.org-dialog-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #dee2e6; }
.org-ui .org-dialog-header h5 { margin: 0; line-height: 1.5; }
.org-close { appearance: auto; margin: 0; padding: 1px 6px; font: inherit; line-height: inherit; color: ButtonText; background: ButtonFace; border: 2px outset ButtonBorder; border-radius: 0; cursor: pointer; }
.org-account-form { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.org-dialog-body { position: relative; flex: 1 1 auto; min-height: 0; padding: 1rem; overflow-y: auto; }
.org-dialog-fields { width: 100%; padding: 0 12px; margin: 0 auto; }
.org-dialog-footer { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: flex-end; padding: .75rem; border-top: 1px solid #dee2e6; }
.org-dialog-footer > * { margin: .25rem; }
@media (min-width: 576px) {
    dialog.org-dialog { top: 1.75rem; width: calc(100% - 3.5rem); max-height: calc(100vh - 3.5rem); }
}
@media (prefers-reduced-motion: reduce) { .org-input, .org-button { transition: none; } }
