:root {
    --sv-red: #c8102e;
    --sv-red-dark: #9e0c24;
    --sv-gold: #d4a017;
    --sv-navy: #141a2b;
}
body { background: #f4f5f8; font-size: .925rem; }
a { color: #1f4fbf; }

/* sidebar */
.sv-sidebar { width: 250px; min-height: 100vh; background: var(--sv-navy); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sv-sidebar .nav-link { color: #c9cfdf; border-radius: .5rem; }
.sv-sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sv-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sv-sidebar .nav-link.active { background: var(--sv-red); color: #fff; }
.sv-brand { display: flex; flex-direction: column; line-height: 1; }
.sv-logo { font-weight: 800; letter-spacing: .12em; font-size: 1.35rem; color: #fff; }
/* the SERVIZIO logo is red on white: on the navy menu it sits on a white tile */
.sv-logo-tile { display: block; background: #fff; border-radius: .6rem; padding: .45rem .6rem; }
.sv-logo-tile img { display: block; width: 100%; height: auto; }
.sv-logo-sub { color: var(--sv-gold); font-size: .75rem; letter-spacing: .4em; margin-top: .5rem; padding-left: .2rem; }
.sv-muted { color: #8d95ab; }
.sv-hr { border-color: rgba(255,255,255,.15); }
.sv-main { min-width: 0; }

/* login */
.sv-login-logo { width: 300px; max-width: 80%; height: auto; }
.sv-login-sub { color: #9a7300; font-weight: 700; letter-spacing: .45em; font-size: .8rem; }
.sv-login-tile { width: 150px; height: 150px; border-radius: 28px; background: var(--sv-red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(200,16,46,.3); }
.sv-login-tile span { font-weight: 800; letter-spacing: .1em; font-size: 1.3rem; }
.sv-login-tile small { color: #ffe08a; letter-spacing: .35em; font-size: .7rem; margin-top: .3rem; }

/* buttons */
.btn-servizio { background: var(--sv-red); border-color: var(--sv-red); color: #fff; }
.btn-servizio:hover, .btn-servizio:focus { background: var(--sv-red-dark); border-color: var(--sv-red-dark); color: #fff; }
.bg-servizio { background: var(--sv-red) !important; }

/* stat tiles */
.sv-stat { display: block; background: #fff; border-radius: .75rem; padding: 1rem 1.1rem; text-decoration: none; color: inherit; border: 1px solid #e6e8ee; border-left: 4px solid #5b6b8c; height: 100%; }
.sv-stat:hover { box-shadow: 0 4px 14px rgba(20,26,43,.08); color: inherit; }
.sv-stat-n { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.sv-stat-l { font-size: .8rem; color: #6c7389; }
.sv-stat-warn { border-left-color: #e0a100; }
.sv-stat-danger { border-left-color: var(--sv-red); }
.sv-stat-ok { border-left-color: #198754; }

.card { border-color: #e6e8ee; border-radius: .75rem; }
.card-header:first-child { border-radius: .75rem .75rem 0 0; }
.sv-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #7a8197; margin-bottom: .15rem; }
.sv-pre { white-space: pre-line; }
.sv-sticky { position: sticky; top: 1rem; }
.sv-provider-list { max-height: 440px; overflow-y: auto; }

/* timeline */
.sv-timeline li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed #e6e8ee; }
.sv-timeline li:last-child { border-bottom: 0; }
.sv-timeline i { font-size: 1.1rem; margin-top: .1rem; }

/* stage tracker */
.sv-steps { display: flex; gap: .25rem; overflow-x: auto; }
.sv-step { flex: 1 1 0; min-width: 0; text-align: center; font-size: .68rem; line-height: 1.15; color: #8b92a7; }
.sv-step span { display: block; height: 6px; border-radius: 3px; background: #e3e6ee; margin-bottom: .35rem; }
.sv-step.done span { background: var(--sv-red); }
.sv-step.done { color: #333; }
.sv-step.current { font-weight: 700; color: var(--sv-red); }

@media (max-width: 991px) {
    .sv-sidebar { width: 76px; padding: .75rem !important; }
    .sv-sidebar .nav-link { font-size: 0; text-align: center; }
    .sv-sidebar .nav-link i { font-size: 1.2rem; width: auto; }
    .sv-logo { font-size: .7rem; }
    .sv-logo-tile { padding: .3rem; }
    .sv-logo-tile img { content: url("../img/icon-64.png"); }   /* narrow menu: just the ring */
    .sv-logo-sub { font-size: .5rem; letter-spacing: .15em; padding-left: 0; text-align: center; }
    .sv-sidebar .small, .sv-sidebar form .btn { font-size: 0; }
    .sv-sidebar form .btn i { font-size: 1rem; }
}

/* request types */
.sv-badge-premium { background: linear-gradient(135deg, #b8860b, #d4a017); color: #fff; }
.sv-badge-nri { background: #0b6e6e; color: #fff; }
.sv-type-picker .btn { background: #fff; color: #222; border-color: #d9dce4; }
.sv-type-picker .btn:hover { background: #fff7f8; color: #222; }
.sv-type-picker .btn-check:checked + .btn { background: #fff; color: #222; border: 2px solid var(--sv-red); box-shadow: 0 0 0 .2rem rgba(200,16,46,.15); }
.sv-type-picker .btn-check:checked + .btn i { color: var(--sv-red); }
.sv-type-picker .btn { text-align: left; }
.sv-type-picker .btn i { font-size: 1.2rem; }
.sv-hidden { display: none !important; }
.sv-doc img { max-height: 220px; object-fit: contain; width: 100%; background: #f4f5f8; }
.list-group-item-action:disabled { opacity: .6; cursor: not-allowed; }
.sv-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.sv-stars { color: #e8a317; letter-spacing: 1px; }
.sv-review-text { white-space: pre-line; }
.sv-steps { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; counter-reset: st; }
.sv-steps li { counter-increment: st; padding: .15rem .55rem; border-radius: 999px; background: #eef0f4; color: #5b6275; }
.sv-steps li::before { content: counter(st) ". "; }
.sv-steps li.done { background: #d9f2e3; color: #146c43; }
.sv-steps li.done::before { content: "✓ "; }
.sv-steps li.now { background: #cfe8ff; color: #084298; font-weight: 600; }
/* New request: service picker and address search */
.sv-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 340px; overflow-y: auto; box-shadow: 0 8px 24px rgba(20,26,43,.15); }
.sv-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .4rem; }
.sv-cat { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .3rem; border: 1px solid #e3e6ec; border-radius: .6rem; background: #fff; font-size: .82rem; line-height: 1.15; text-align: center; }
.sv-cat i { font-size: 1.25rem; color: #c8102e; }
.sv-cat small { color: #7a8197; font-size: .7rem; }
.sv-cat:hover { border-color: #c8102e; }
.sv-cat.active { border-color: #c8102e; background: #fdecef; box-shadow: inset 0 0 0 1px #c8102e; }
.sv-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem; padding: .6rem; background: #f7f8fb; border-radius: .6rem; }
.sv-svc-grid .sv-svc-pick { border: 1px solid #dde1e8; border-radius: .5rem; background: #fff; padding: .45rem .6rem; text-align: left; font-size: .88rem; }
.sv-svc-grid .sv-svc-pick small { display: block; color: #7a8197; font-size: .72rem; }
.sv-svc-pick.active, .sv-svc-grid .sv-svc-pick.active { background: #141a2b !important; color: #fff !important; border-color: #141a2b !important; }
.sv-svc-pick.active small { color: #c9cede !important; }
.sv-pin { border: 1px solid #b7e1c6; background: #f1faf4; border-radius: .6rem; padding: .55rem .75rem; font-size: .9rem; }
.sv-pin i { color: #198754; }
.sv-pin.sv-pin-missing { border-color: #f1d8a6; background: #fff8ea; }
.sv-pin.sv-pin-missing i { color: #c47f00; }
.sv-pin-map { display: block; width: 100%; max-width: 480px; aspect-ratio: 480 / 220; object-fit: cover; margin-top: .5rem; border-radius: .4rem; border: 1px solid #dde1e8; }
.sv-cat-list .list-group-item.active { background: #141a2b; border-color: #141a2b; }
/* Register a professional: chosen services */
.sv-chip { display: inline-flex; align-items: center; gap: .25rem; background: #141a2b; color: #fff; border-radius: 999px; padding: .2rem .35rem .2rem .7rem; font-size: .85rem; }
.sv-chip button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 50%; width: 1.3rem; height: 1.3rem; line-height: 1; padding: 0; }
.sv-chip button:hover { background: #c8102e; }
.sv-cat { position: relative; }
.sv-cat-n:not(:empty) { position: absolute; top: .25rem; right: .35rem; background: #c8102e; color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 .4rem; }
.sv-svc-grid-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
