
/* SAA customization:
   Hide the "Notify people" checkbox in the Share dialog.
   This prevents users from accidentally sending FileRun's second share-notification email,
   which contains the authenticated /index.php/f/... link instead of the guest access link.
*/

/* Try likely FileRun/ExtJS checkbox containers where the checkbox field name/id references notify */
/*.x-form-item:has(input[type="checkbox"][name*="notify" i]),
.x-form-item:has(input[type="checkbox"][id*="notify" i]),
.x-form-item:has(input[type="checkbox"][aria-label*="notify" i]),
.x-field:has(input[type="checkbox"][name*="notify" i]),
.x-field:has(input[type="checkbox"][id*="notify" i]),
.x-container:has(input[type="checkbox"][name*="notify" i]) {
    display: none !important;
}

/ SA Architects: replace FileRun share message box with static notice */
#share-notify-message {
    display: none !important;
}

div:has(> #share-notify-message)::after {
    content: "A secure access email will be sent automatically to the recipient with a link to open the shared resource.";
    display: block;
    min-height: 72px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #5f6368;
    border-radius: 4px;
    background: #f6f7f9;
    color: #5f6368;
    line-height: 1.45;
    font-size: 14px;
    cursor: default;
}
/* SA Architects: hide direct user/email invite field in FileRun share dialog.
   External sharing should use Link access only to avoid creating licensed guest users. */

/*input[placeholder="Add by name, group or e-mail address"] {
    display: none !important;
}

/* Hide common ExtJS/Form wrappers around the invite input */
/*.x-field:has(input[placeholder="Add by name, group or e-mail address"]),
.x-form-item:has(input[placeholder="Add by name, group or e-mail address"]),
.x-form-trigger-wrap:has(input[placeholder="Add by name, group or e-mail address"]),
.x-form-text-wrap:has(input[placeholder="Add by name, group or e-mail address"]) {
    display: none !important;
}


/* SA Architects: hide invite-by-email field in share dialog.
   External sharing should use Link access only. */

/*.x-field:has(input[placeholder="Add by name, group or e-mail address"]),
.x-form-item:has(input[placeholder="Add by name, group or e-mail address"]),
.x-form-trigger-wrap:has(input[placeholder="Add by name, group or e-mail address"]),
.x-form-text-wrap:has(input[placeholder="Add by name, group or e-mail address"]),
div:has(> input[placeholder="Add by name, group or e-mail address"]) {
    display: none !important;
}
/* SA Architects: hide the invite-by-user/email panel in the FileRun Share dialog.
   This leaves Link access as the only external sharing workflow. */

/*.share-window .new-recipients-form {
    display: none !important;
}

/* Tighten spacing after removing the invite panel */
/*.share-window .x-window-body {
    padding-top: 0 !important;
}
/* Saccoccio Architects - hide FileRun "Notify people" option.
   Guest access email is the official external notification.
*/
.x-form-item:has(#share-notify-people) {
    display: none !important;
}

