/* Seamless Systems brand: navy from the logo mark, periwinkle from the word "SYSTEMS". */
:root {
    --sh-navy: #232B5E;
    --sh-navy-dark: #1A2048;
    --sh-periwinkle: #8F97C4;
    --sh-tint: #EEF0F8;
    --sh-border: #DADDEE;
    --sh-good: #1B7F4B;
    --sh-good-bg: #E3F4EA;
    --bs-primary: #232B5E;
    --bs-primary-rgb: 35, 43, 94;
    --bs-link-color: #232B5E;
    --bs-link-color-rgb: 35, 43, 94;
    --bs-link-hover-color: #1A2048;
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { background: #F6F7FB; color: #1d2142; }

.sh-navbar { background: var(--sh-navy); }
.sh-navbar .navbar-brand { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1rem; }
.sh-brand-light { color: var(--sh-periwinkle); font-weight: 400; }
.sh-navbar .nav-link { color: rgba(255,255,255,.75); }
.sh-navbar .nav-link:hover { color: #fff; }
.sh-navbar .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--sh-periwinkle); }

.btn-primary { --bs-btn-bg: var(--sh-navy); --bs-btn-border-color: var(--sh-navy); --bs-btn-hover-bg: var(--sh-navy-dark);
    --bs-btn-hover-border-color: var(--sh-navy-dark); --bs-btn-active-bg: var(--sh-navy-dark); --bs-btn-active-border-color: var(--sh-navy-dark);
    --bs-btn-disabled-bg: var(--sh-periwinkle); --bs-btn-disabled-border-color: var(--sh-periwinkle); }
.btn-outline-primary { --bs-btn-color: var(--sh-navy); --bs-btn-border-color: var(--sh-navy); --bs-btn-hover-bg: var(--sh-navy); --bs-btn-hover-border-color: var(--sh-navy); --bs-btn-active-bg: var(--sh-navy); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--sh-periwinkle); box-shadow: 0 0 0 .2rem rgba(35,43,94,.15); }
.form-check-input:checked { background-color: var(--sh-navy); border-color: var(--sh-navy); }

.sh-card { background: #fff; border: 1px solid var(--sh-border); border-radius: .6rem; }
.sh-card-header { padding: .75rem 1rem; border-bottom: 1px solid var(--sh-border); background: var(--sh-tint); border-radius: .6rem .6rem 0 0; font-weight: 600; }

.sh-table { margin: 0; }
.sh-table thead th { background: var(--sh-tint); color: var(--sh-navy); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--sh-border); white-space: nowrap; }
.sh-table td, .sh-table th { padding: .5rem .75rem; vertical-align: middle; }
.sh-table tr.sh-group-head td { background: #fff; border-top: 2px solid var(--sh-border); padding-top: .75rem; }
.sh-table tr.sh-offer td { font-size: .92rem; border-top: 0; }
.sh-table tr.sh-best td { background: var(--sh-good-bg); }
.sh-table tr.sh-gone td, .sh-table tr.sh-out .sh-cost { color: #8a8fa8; }

.sh-money { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sh-title { font-weight: 600; color: var(--sh-navy); text-decoration: none; }
.sh-title:hover { text-decoration: underline; }
.sh-meta { color: #6a6f8c; font-size: .82rem; }

.sh-badge { display: inline-block; padding: .15rem .5rem; border-radius: 1rem; font-size: .75rem; font-weight: 600; }
.sh-badge-good { background: var(--sh-good-bg); color: var(--sh-good); }
.sh-badge-out { background: #F1F2F7; color: #6a6f8c; }
.sh-badge-warn { background: #FFF1D6; color: #8a5a00; }
.sh-badge-bad { background: #FCE4E4; color: #A12626; }
.sh-badge-run { background: var(--sh-tint); color: var(--sh-navy); }

.sh-stat { padding: .9rem 1.1rem; }
.sh-stat .num { font-size: 1.6rem; font-weight: 700; color: var(--sh-navy); line-height: 1.1; }
.sh-stat .lbl { color: #6a6f8c; font-size: .82rem; }

.sh-login { max-width: 420px; margin: 8vh auto 0; }
.sh-login img { max-width: 260px; width: 100%; display: block; margin: -.5rem auto .25rem; }
.sh-form-check-nowrap .form-check-label { white-space: nowrap; }

.sh-thumb { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--sh-border); border-radius: .35rem; }

/* Tickets */
.sh-rte-bar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .4rem; border: 1px solid var(--sh-border); border-bottom: 0; border-radius: .4rem .4rem 0 0; background: var(--sh-tint); }
.sh-rte-area { min-height: 140px; max-height: 420px; overflow: auto; padding: .6rem .75rem; border: 1px solid var(--sh-border); border-radius: 0 0 .4rem .4rem; background: #fff; }
.sh-rte-area:focus { outline: 0; border-color: var(--sh-periwinkle); box-shadow: 0 0 0 .2rem rgba(35,43,94,.15); }
.sh-rte-area p:last-child { margin-bottom: 0; }
.sh-body { overflow-wrap: anywhere; }
.sh-body p { margin-bottom: .5rem; }
.sh-body blockquote { border-left: 3px solid var(--sh-border); margin: 0 0 .5rem; padding-left: .75rem; color: #555b7a; }
.sh-body pre { background: var(--sh-tint); padding: .5rem; border-radius: .35rem; white-space: pre-wrap; }
.sh-msg { border: 1px solid var(--sh-border); border-radius: .6rem; background: #fff; margin-bottom: .75rem; }
.sh-msg-head { padding: .5rem .85rem; border-bottom: 1px solid var(--sh-border); background: var(--sh-tint); border-radius: .6rem .6rem 0 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.sh-msg-body { padding: .75rem .85rem; }
.sh-msg-customer .sh-msg-head { background: #E9F2FB; }
.sh-msg-note { border-color: #E6C873; }
.sh-msg-note .sh-msg-head { background: #FFF4D2; }
.sh-msg-system { border: 0; background: transparent; text-align: center; color: #6a6f8c; font-size: .8rem; margin-bottom: .4rem; }
.sh-files a { display: inline-block; margin-right: .75rem; font-size: .85rem; }
.sh-portal-nav { background: var(--sh-navy); }
