/*
 * 4sq-staff.css — 4Square overrides for the osTicket Awesome staff theme.
 * Live at ~/support.snappypay.com/osta/css/4sq-staff.css, linked as the last
 * stylesheet in osta/inc/staff-head.html. osTicket is not in git: a theme or
 * osTicket upgrade can drop the link line; re-add it (see the doc note).
 *
 * 2026-11-09 (Richard): ticket view Post Reply / Post Internal Note tabs had
 * poor contrast. Selected tab solid blue + white; other tab dark on grey;
 * panel border blue; Post Reply / Post Note buttons solid green.
 */
#response-tabs li {
    background: #e9edf1 !important;
    border: 1px solid #9aa5b1 !important;
    border-bottom: 0 !important;
    border-radius: 4px 4px 0 0;
    margin-right: 4px;
}
#response-tabs li a,
#response-tabs li:not(.active) a {
    color: #2b3440 !important;
    font-weight: 600 !important;
}
#response-tabs li.active {
    background: #1f6fb2 !important;
    border: 1px solid #1f6fb2 !important;
    border-bottom: 0 !important;
}
#response-tabs li.active a,
#response-tabs li.active a i {
    color: #fff !important;
}
#response_options > form.tab_content {
    border: 2px solid #1f6fb2 !important;
}
#response_options input.save.pending[type="submit"] {
    background-color: #2e8b3e !important;
    color: #fff !important;
}
#response_options input.save.pending[type="submit"]:hover {
    background-color: #246f31 !important;
    color: #fff !important;
}

/* 2026-11-19: "Sign in with Microsoft" on the agent login page shows the
   same Windows logo as the portal (image: /osta/css/4sq-windows-logo.png). */
.external-auth-icon i { display: none; }
.external-auth-icon {
    display: inline-block;
    width: 20px;
    height: 18px;
    vertical-align: middle;
    background: url("/osta/css/4sq-windows-logo.png?v=20261119") no-repeat center / contain;
}
/* Full width, like the portal button (Richard, 2026-11-19). */
/* Same width as the login fields / Log In button (270px fieldset). */
.external-auth { display: block; width: 270px; margin: 0 auto 4px; }
.external-auth .external-sign-in { display: block; width: 100%; }
.external-auth .external-auth-box { display: block; width: 100%; box-sizing: border-box; text-align: center; min-height: 36px; }
/* A shade darker than the login panel's blue, so it reads as a button. */
.external-auth .external-auth-box { background: rgba(0, 70, 140, 0.14); }
.external-auth .external-sign-in:hover .external-auth-box { background: rgba(0, 70, 140, 0.24); }
/* Microsoft first; password form behind "Emergency login" (4sq-auto-sso.js). */
html.osta-ms-first form#login, html.osta-ms-first .or { display: none; }
.external-auth { margin-top: 12px; }
.osta-emergency { text-align: center; margin-top: 18px; font-size: 12px; }
.osta-emergency a { color: inherit; opacity: 0.75; text-decoration: underline; }
