:root {
  --red: #b5121b;
  --red-dark: #8d0c14;
  --red-soft: #fff0f1;
  --ink: #20252b;
  --muted: #68727d;
  --line: #e5e8eb;
  --surface: #ffffff;
  --canvas: #f5f6f7;
  --green: #23815b;
  --amber: #a96808;
  --blue: #347196;
  --purple: #6d5798;
  --shadow: 0 10px 30px rgba(25, 31, 38, .06);
  --radius: 14px;
  --sidebar: 274px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: var(--red); }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { min-height: 88px; padding: 19px 24px; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f0f1f2; }
.brand-symbol { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--red); }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-symbol svg > path:first-child { fill: var(--red); }
.brand-symbol .pulse { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy, .login-brand > span:last-child, .login-mobile-brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong, .login-brand strong, .login-mobile-brand strong { font-size: 25px; font-weight: 800; letter-spacing: -.06em; text-transform: lowercase; }
.brand-copy small, .login-brand small, .login-mobile-brand small { margin-top: 5px; color: #70757a; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-context { margin: 20px 20px 8px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border-radius: 9px; background: var(--red-soft); color: var(--red-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.context-dot, .status-online { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(181,18,27,.1); }
.nav-menu { padding: 15px 14px; display: flex; flex-direction: column; gap: 4px; }
.nav-label { padding: 0 12px 8px; color: #9ba1a7; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item { min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 13px; border-radius: 9px; color: #59616a; font-weight: 600; text-decoration: none; transition: color .15s, background .15s, transform .15s; }
.nav-item svg { width: 20px; height: 20px; fill: #8e959d; transition: fill .15s; }
.nav-item:hover { color: var(--red); background: #faf1f2; transform: translateX(2px); }
.nav-item:hover svg, .nav-item.is-active svg { fill: var(--red); }
.nav-item.is-active { position: relative; color: var(--red); background: var(--red-soft); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--red); }
.sidebar-footer { margin-top: auto; }
.support-chip { margin: 12px 18px 16px; padding: 16px; display: flex; flex-direction: column; border: 1px solid #f0d7d9; border-radius: 11px; background: linear-gradient(135deg,#fff8f8,#fff); }
.support-chip span { color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.support-chip strong { margin-top: 4px; font-size: 12px; font-weight: 600; }
.user-card { min-height: 79px; padding: 13px 17px; display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--red),#d13e46); font-weight: 700; }
.user-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button, .menu-button { padding: 0; display: grid; place-items: center; border: 0; color: #747b83; background: transparent; cursor: pointer; }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.icon-button:hover { color: var(--red); }
.workspace { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar { height: 68px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.topbar-title { color: #959ba1; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.topbar-title span { padding: 0 7px; color: #c5c8cb; }
.topbar-title strong { color: #50575e; }
.topbar-user { display: flex; align-items: center; gap: 9px; color: #5e666e; font-size: 13px; font-weight: 600; }
.topbar-user .status-online { width: 7px; height: 7px; background: #2ea66e; box-shadow: 0 0 0 3px #e4f5ed; }
.menu-button, .mobile-brand { display: none; }
.page-content { width: min(1450px,100%); margin: 0 auto; padding: 36px 42px 54px; flex: 1; }
.app-footer { min-height: 54px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #93999f; background: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px,3vw,42px); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin-bottom: 5px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #f2a8ad; }
.page-heading, .detail-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading p, .detail-heading p, .form-card-header p, .card-heading p, .side-card-title p { margin: 0; color: var(--muted); }
.page-heading p { font-size: 15px; }
.form-heading { align-items: flex-start; }
.back-link { display: inline-flex; margin-bottom: 22px; color: #67717b; font-size: 12px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--red); }
.btn { min-height: 43px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--red); box-shadow: 0 6px 14px rgba(181,18,27,.18); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 18px rgba(181,18,27,.24); }
.btn-secondary { color: var(--red); border-color: #e8bfc2; background: #fff; }
.btn-secondary:hover { background: var(--red-soft); border-color: #d99da2; }
.btn-ghost { color: #65707a; border-color: var(--line); background: #fff; }
.btn-large { min-height: 49px; padding-inline: 22px; }
.btn-block { width: 100%; }
.welcome-panel { position: relative; min-height: 180px; margin-bottom: 25px; padding: 31px 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(112deg,#8f0d15 0%,#b5121b 58%,#ca2c35 100%); box-shadow: 0 12px 28px rgba(143,12,20,.16); }
.welcome-panel::after { content: ""; position: absolute; width: 320px; height: 320px; right: -85px; top: -175px; border: 45px solid rgba(255,255,255,.07); border-radius: 50%; }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel h1 { margin-bottom: 7px; font-size: clamp(26px,3vw,36px); }
.welcome-panel p { max-width: 680px; margin: 0; color: rgba(255,255,255,.78); }
.welcome-panel .eyebrow { color: #f1b5b8; }
.welcome-panel .btn { flex: 0 0 auto; color: var(--red); background: #fff; box-shadow: 0 8px 20px rgba(73,0,4,.16); }
.stats-grid { margin-bottom: 40px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat-card { min-height: 132px; padding: 21px; display: flex; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(30,36,42,.035); }
.stat-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 12px; }
.stat-icon svg { width: 22px; height: 22px; fill: currentColor; }
.stat-icon.total { color: #586675; background: #eef1f4; }.stat-icon.open { color: var(--amber); background: #fff4dc; }.stat-icon.progress { color: var(--blue); background: #e7f3fa; }.stat-icon.done { color: var(--green); background: #e6f5ee; }
.stat-card > div { min-width: 0; display: flex; flex-direction: column; }
.stat-label { color: #737b84; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-card strong { margin: 2px 0 0; font-size: 29px; line-height: 1.2; }
.stat-card small { overflow: hidden; color: #9ba1a7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.content-section { margin-top: 34px; }
.section-heading { margin-bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 5px; }.section-heading h2 { margin: 0; }
.text-link { font-size: 12px; font-weight: 700; text-decoration: none; }.text-link span { padding-left: 4px; }.text-link:hover { text-decoration: underline; }
.data-card, .info-card, .form-card, .message-card, .side-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 15px 18px; color: #878e95; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child { border-radius: 13px 0 0 0; }.data-table th:last-child { border-radius: 0 13px 0 0; }
.data-table td { padding: 17px 18px; border-bottom: 1px solid #eef0f1; color: #4f5861; font-size: 13px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }.data-table tbody tr { transition: background .15s; }.data-table tbody tr:hover { background: #fffafa; }
.ticket-code { color: var(--red); font-size: 12px; font-weight: 800; text-decoration: none; }.ticket-title { display: block; max-width: 330px; overflow: hidden; color: var(--ink); font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.ticket-title:hover { color: var(--red); }.company-name { font-weight: 600; }.data-table time { display: block; white-space: nowrap; }.data-table td > small { display: block; color: #9ca2a8; }
.badge { min-height: 25px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { color: #a55b00; background: #fff2d9; }.status-in_progress { color: #2b7197; background: #e7f3fa; }.status-waiting_customer { color: #72559a; background: #f0eafb; }.status-resolved,.status-closed,.badge.active { color: #1e7954; background: #e4f4ec; }.badge.neutral { color: #6e747a; background: #edf0f2; }
.priority { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750; }.priority::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #889098; }.priority-low::before { background: #7690a7; }.priority-normal::before { background: #4f7ca0; }.priority-high { color: #a55b00; }.priority-high::before { background: #d48a19; }.priority-urgent { color: var(--red); }.priority-urgent::before { background: var(--red); }
.row-action { width: 48px; }.row-action a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #9ba1a7; background: #f2f3f4; font-weight: 700; text-decoration: none; }.row-action a:hover { color: #fff; background: var(--red); }
.filter-bar { margin-bottom: 22px; padding: 17px 20px; display: grid; grid-template-columns: 1fr minmax(170px,230px) minmax(170px,230px) auto; align-items: end; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.filter-title { align-self: center; display: flex; align-items: center; gap: 9px; color: #555e66; font-size: 12px; font-weight: 750; }.filter-title svg { width: 18px; height: 18px; fill: var(--red); }
.field-group { min-width: 0; }.field-group > label:not(.check-card) { display: block; margin-bottom: 6px; color: #525b64; font-size: 11px; font-weight: 750; }.field-group label em { color: var(--red); font-style: normal; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d8dde1; border-radius: 7px; outline: none; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,18,27,.09); }
input::placeholder, textarea::placeholder { color: #a2a8ae; }
select { padding-right: 34px; }
.search-bar { max-width: 680px; margin-bottom: 26px; padding: 6px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(30,36,42,.03); }.search-bar > svg { width: 19px; height: 19px; margin-left: 10px; fill: #8b9299; }.search-bar input { min-height: 38px !important; border: 0 !important; box-shadow: none !important; }.search-bar .btn { min-height: 38px; }
.empty-state { padding: 55px 24px; text-align: center; border: 1px dashed #d9dddf; border-radius: var(--radius); background: #fff; }.empty-icon { width: 50px; height: 50px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #8b939a; background: #f0f2f3; }.empty-icon svg { width: 23px; fill: currentColor; }.empty-state h3 { margin-bottom: 5px; font-size: 17px; }.empty-state p { margin-bottom: 0; color: var(--muted); }.full-span { grid-column: 1/-1; }
.form-card { max-width: 1050px; overflow: hidden; }.form-card-header { padding: 23px 27px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: #fcfcfc; }.form-step { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--red); font-size: 11px; font-weight: 800; }.form-card-header h2 { margin: 0 0 2px; font-size: 17px; }.form-card-header p { font-size: 11px; }.form-card-body { padding: 29px 27px 33px; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 20px; }.field-full { grid-column: 1/-1; }.field-check { align-self: end; }
.check-card, .check-row { position: relative; min-height: 48px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #e0e3e5; border-radius: 8px; color: #4f5860; background: #fafafa; font-size: 12px; font-weight: 650; cursor: pointer; }.check-card input, .check-row input { position: absolute; opacity: 0; pointer-events: none; }.check-ui { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1.5px solid #bbc1c6; border-radius: 4px; background: #fff; }.check-card input:checked + .check-ui, .check-row input:checked + .check-ui { border-color: var(--red); background: var(--red); }.check-card input:checked + .check-ui::after, .check-row input:checked + .check-ui::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }.check-card:has(input:focus),.check-row:has(input:focus) { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,18,27,.09); }
.help-text { display: block; margin-top: 5px; color: #8b9299; font-size: 10px; }.field-error { margin-top: 5px; color: var(--red); font-size: 11px; font-weight: 650; }.form-actions { padding: 19px 27px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #fafafa; }
.detail-heading { align-items: flex-start; }.detail-heading h1 { margin: 8px 0 6px; font-size: clamp(28px,3vw,38px); }.detail-heading p span { padding: 0 5px; color: #b4b8bc; }.ticket-heading-line { display: flex; align-items: center; gap: 11px; }.ticket-id-large { color: var(--red); font-size: 14px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 335px; gap: 22px; align-items: start; }.detail-main { min-width: 0; }.info-card { padding: 25px; }.card-heading { margin-bottom: 24px; display: flex; align-items: center; gap: 13px; }.card-heading.compact { margin-bottom: 16px; }.card-heading-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 9px; color: var(--red); background: var(--red-soft); }.card-heading-icon svg { width: 20px; fill: currentColor; }.card-heading h2,.side-card-title h2 { margin: 0 0 2px; font-size: 16px; }.card-heading p,.side-card-title p { font-size: 11px; }.description-block { margin-bottom: 22px; padding: 18px; border-left: 3px solid var(--red); background: #fafafa; }.meta-label, .metadata-grid dt { display: block; margin-bottom: 5px; color: #8c939a; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.description-block p { margin: 0; color: #414950; }.pre-line { white-space: pre-line; }.metadata-grid { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.metadata-grid > div { min-height: 78px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.metadata-grid dd { margin: 0; color: #3e474f; font-size: 13px; font-weight: 650; }.condition-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.condition { padding: 10px; display: flex; align-items: center; gap: 8px; border-radius: 7px; color: #7c848c; background: #f3f4f5; font-size: 10px; font-weight: 700; }.condition i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e4e7e9; font-style: normal; }.condition.is-alert { color: var(--red-dark); background: var(--red-soft); }.condition.is-alert i { color: #fff; background: var(--red); }
.history-section { margin-top: 34px; }.event-count { padding: 4px 9px; border-radius: 20px; color: #7d858c; background: #e9ecee; font-size: 10px; font-weight: 700; }.timeline { position: relative; display: grid; gap: 14px; }.timeline::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 18px; width: 1px; background: #dddfe1; }.timeline-item { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; }.timeline-avatar { z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 4px solid var(--canvas); border-radius: 50%; color: var(--red); background: #f5d9db; font-size: 11px; font-weight: 800; }.timeline-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.timeline-head { display: flex; justify-content: space-between; gap: 15px; }.timeline-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.timeline-head strong { font-size: 12px; }.timeline-head time { color: #989ea4; font-size: 10px; white-space: nowrap; }.timeline-card p { margin: 9px 0 0; color: #535c65; font-size: 13px; }.empty-inline { padding: 18px; color: var(--muted); background: #fff; border-radius: 8px; text-align: center; }
.message-card { margin-top: 24px; padding: 22px; }.message-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.detail-sidebar { display: grid; gap: 18px; }.side-card { padding: 20px; }.quality-card { border-top: 3px solid var(--red); }.side-card-title { margin-bottom: 18px; display: flex; gap: 11px; align-items: center; }.side-card-title > span { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: var(--red-soft); }.side-card-title svg { width: 18px; fill: currentColor; }.side-form { display: grid; gap: 14px; margin-bottom: 16px; }.check-row { min-height: 42px; padding: 8px 10px; }.attachment-list { margin: 0 0 16px; padding: 0; list-style: none; }.attachment-list li { padding: 10px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f1; }.attachment-list li:last-child { border-bottom: 0; }.file-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 6px; color: var(--red); background: var(--red-soft); font-size: 8px; font-weight: 800; }.attachment-list a { min-width: 0; flex: 1; color: var(--ink); text-decoration: none; }.attachment-list a strong,.attachment-list a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attachment-list a strong { font-size: 11px; }.attachment-list a small { color: #979da3; font-size: 9px; }.download-icon { color: var(--red); font-weight: 700; }.attachment-list .no-attachment { display: block; color: var(--muted); font-size: 11px; }.upload-form input[type=file] { padding: 7px; font-size: 10px; }.upload-form .btn { margin-top: 9px; }
.companies-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }.company-card { padding: 21px; display: block; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 5px 18px rgba(30,36,42,.035); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }.company-card:hover { transform: translateY(-3px); border-color: #e7b7ba; box-shadow: 0 13px 28px rgba(38,31,31,.08); }.company-card-top { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }.company-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#990f17,#cd343d); font-size: 11px; font-weight: 800; }.company-avatar.large { width: 52px; height: 52px; flex: 0 0 52px; font-size: 14px; }.company-card h2 { margin-bottom: 17px; font-size: 17px; }.company-card dl { margin: 0 0 18px; }.company-card dl div { padding: 7px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #f0f1f2; }.company-card dt { color: #959ba1; font-size: 10px; text-transform: uppercase; }.company-card dd { max-width: 65%; margin: 0; overflow: hidden; color: #525b63; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.company-card-link { display: flex; justify-content: space-between; color: var(--red); font-size: 11px; font-weight: 750; }.company-info { margin-bottom: 35px; }.metadata-grid.three-cols { grid-template-columns: repeat(3,minmax(0,1fr)); }.inline-status { font-size: 10px; font-weight: 700; }.inline-status.active { color: var(--green); }.inline-status i { width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: currentColor; }
.alert { margin-bottom: 18px; padding: 13px 15px; display: flex; justify-content: space-between; gap: 15px; border: 1px solid; border-radius: 8px; font-size: 12px; font-weight: 650; }.alert button { padding: 0; border: 0; color: inherit; background: none; font-size: 18px; cursor: pointer; }.alert-success { color: #176846; border-color: #bce4d1; background: #e9f7f0; }.alert-danger,.alert-error { color: #971019; border-color: #efbfc2; background: #fff0f1; }.alert-info { color: #2d6686; border-color: #c5dfed; background: #edf7fc; }
.auth-page { background: #fff; }.auth-main { min-height: 100vh; }.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(430px,46%) 1fr; }.login-brand-panel { position: relative; padding: 46px clamp(38px,5vw,78px); display: flex; flex-direction: column; overflow: hidden; color: #fff; background: linear-gradient(145deg,#8a0b13 0%,#b5121b 54%,#cf313a 100%); }.login-brand-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: -150px; border: 70px solid rgba(255,255,255,.055); border-radius: 50%; }.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }.brand-symbol-large { width: 45px; height: 45px; flex-basis: 45px; }.login-brand strong { color: #fff; font-size: 29px; }.login-brand small { color: rgba(255,255,255,.64); }.login-message { position: relative; z-index: 1; margin: auto 0; }.login-message h1 { max-width: 590px; margin-bottom: 18px; font-size: clamp(38px,4vw,58px); letter-spacing: -.045em; }.login-message p { max-width: 520px; color: rgba(255,255,255,.72); font-size: 16px; }.ecg-line { position: absolute; left: 0; right: 0; top: 54%; opacity: .12; transform: translateY(-50%); }.ecg-line svg { width: 100%; height: 120px; }.ecg-line path { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }.login-panel-footer { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.48); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }.login-form-panel { padding: 45px; display: grid; place-items: center; background: #fff; }.login-card { width: min(410px,100%); }.login-card h2 { margin: 0 0 8px; font-size: 36px; letter-spacing: -.04em; }.login-intro { margin-bottom: 30px; color: var(--muted); }.login-form { display: grid; gap: 19px; }.login-form .btn { margin-top: 4px; }.input-with-icon { position: relative; }.input-with-icon svg { position: absolute; z-index: 1; left: 13px; top: 50%; width: 17px; height: 17px; fill: #92999f; transform: translateY(-50%); }.input-with-icon input { min-height: 49px !important; padding-left: 41px !important; }.secure-note { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #92999f; font-size: 10px; }.secure-note svg { width: 15px; fill: #6a9a80; }.login-mobile-brand { display: none; }
.sidebar-backdrop { display: none; }
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .companies-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout { grid-template-columns: minmax(0,1fr) 310px; }
  .filter-bar { grid-template-columns: 1fr 1fr auto; }.filter-title { display: none; }
}
@media (max-width: 900px) {
  :root { --sidebar: 278px; }
  .sidebar { transform: translateX(-102%); box-shadow: 12px 0 40px rgba(20,25,30,.18); transition: transform .23s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; display: block; pointer-events: none; opacity: 0; background: rgba(22,26,30,.45); transition: opacity .2s; }
  .menu-open .sidebar-backdrop { pointer-events: auto; opacity: 1; }
  .workspace { margin-left: 0; }.topbar { position: sticky; z-index: 30; top: 0; height: 62px; padding: 0 20px; }
  .menu-button { width: 38px; height: 38px; display: grid; border-radius: 7px; background: #f3f4f5; }.menu-button svg { width: 21px; fill: var(--ink); }
  .mobile-brand { display: flex; align-items: center; gap: 7px; }.mobile-brand .brand-symbol { width: 30px; height: 30px; flex-basis: 30px; }.mobile-brand strong { font-size: 19px; letter-spacing: -.05em; }
  .topbar-title { display: none; }.topbar-user span:last-child { display: none; }.page-content { padding: 28px 22px 45px; }
  .detail-layout { grid-template-columns: 1fr; }.detail-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }.quality-card { order: 1; }.side-card:not(.quality-card) { order: 2; }
  .login-layout { grid-template-columns: 40% 60%; }.login-brand-panel { padding: 38px; }.login-message h1 { font-size: 40px; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }.page-content { padding: 22px 15px 38px; }.app-footer { padding: 0 18px; }.app-footer span:last-child { display: none; }
  h1 { font-size: 29px; }.page-heading,.detail-heading { margin-bottom: 22px; align-items: stretch; flex-direction: column; }.page-heading > .btn { width: 100%; }
  .welcome-panel { min-height: 0; padding: 25px 22px; align-items: stretch; flex-direction: column; }.welcome-panel h1 { font-size: 27px; }.welcome-panel .btn { width: 100%; }.welcome-panel::after { right: -180px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 32px; }.stat-card { min-height: 134px; padding: 16px 13px; align-items: flex-start; flex-direction: column; gap: 11px; }.stat-icon { width: 38px; height: 38px; flex-basis: 38px; }.stat-icon svg { width: 19px; }.stat-card strong { font-size: 24px; }.stat-card small { display: none; }.stat-label { font-size: 9px; }
  .section-heading { align-items: center; }.filter-bar { padding: 15px; grid-template-columns: 1fr; }.filter-bar .btn { width: 100%; }
  .table-scroll { overflow: visible; }.data-card { border: 0; box-shadow: none; background: transparent; }.data-table,.data-table tbody,.data-table tr,.data-table td { display: block; width: 100%; }.data-table thead { display: none; }.data-table tbody { display: grid; gap: 11px; }.data-table tr { position: relative; padding: 15px 15px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(30,36,42,.035); }.data-table td { min-height: 29px; padding: 4px 40% 4px 0; display: flex; align-items: center; border: 0; font-size: 12px; }.data-table td::before { content: attr(data-label); width: 39%; flex: 0 0 39%; color: #92999f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.data-table td.row-action { position: absolute; top: 13px; right: 12px; width: 30px; padding: 0; }.data-table td.row-action::before { display: none; }.ticket-title { max-width: none; white-space: normal; }.data-table td > small { display: inline; margin-left: 4px; }.ticket-code { font-size: 11px; }.badge { font-size: 9px; }.priority { font-size: 10px; }
  .form-card-body { padding: 22px 17px 26px; }.form-card-header { padding: 18px 17px; }.form-grid { grid-template-columns: 1fr; gap: 17px; }.field-full { grid-column: auto; }.form-actions { padding: 15px 17px; flex-direction: column-reverse; }.form-actions .btn { width: 100%; }
  .info-card { padding: 18px 15px; }.metadata-grid,.metadata-grid.three-cols { grid-template-columns: 1fr; }.condition-grid { grid-template-columns: 1fr; }.timeline-head { flex-direction: column; gap: 5px; }.message-card { padding: 18px 15px; }.message-actions .btn { width: 100%; }.detail-sidebar { grid-template-columns: 1fr; }.detail-heading h1 { font-size: 28px; }.detail-heading p { font-size: 12px; }
  .companies-grid { grid-template-columns: 1fr; }.search-bar { align-items: stretch; flex-wrap: wrap; }.search-bar svg { align-self: center; }.search-bar input { width: calc(100% - 42px) !important; }.search-bar .btn { width: 100%; }
  .login-layout { display: block; min-height: 100vh; }.login-brand-panel { display: none; }.login-form-panel { min-height: 100vh; padding: 28px 22px; align-content: center; }.login-mobile-brand { margin-bottom: 62px; display: flex; align-items: center; gap: 10px; }.login-card h2 { font-size: 32px; }.login-intro { margin-bottom: 25px; }
}
@media (max-width: 380px) { .stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { padding: 13px 11px; }.page-content { padding-inline: 11px; }.topbar { padding-inline: 12px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Marchio ufficiale Progetti Medical */
.brand-logo { display: block; width: 100%; max-width: 215px; height: auto; }
.mobile-brand img { display: block; width: 142px; height: auto; }
.login-brand { width: fit-content; padding: 12px 16px; gap: 0; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(67,0,4,.15); }
.login-brand img { display: block; width: min(270px,28vw); height: auto; }
.login-mobile-brand img { display: block; width: 220px; max-width: 78vw; height: auto; }

@media (max-width: 680px) {
  .login-mobile-brand { justify-content: flex-start; }
}

.register-prompt { margin-top: 23px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.register-prompt a { font-weight: 750; text-decoration: none; }
.register-prompt a:hover { text-decoration: underline; }
.registration-page { min-height: 100vh; background: linear-gradient(180deg,#fff 0,#f7f7f8 100%); }
.registration-header { height: 82px; padding: 0 max(24px,5vw); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.registration-header img { display: block; width: 205px; height: auto; }
.registration-header .back-link { margin: 0; }
.registration-main { width: min(940px,calc(100% - 40px)); margin: 0 auto; padding: 48px 0 60px; }
.registration-intro { max-width: 680px; margin-bottom: 27px; }
.registration-intro h1 { margin-bottom: 9px; }
.registration-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.registration-form { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.registration-form > .alert { margin: 22px 24px 0; }
.registration-section { padding: 27px 29px 31px; border-bottom: 1px solid var(--line); }
.registration-section-head { margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.registration-section-head > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--red); font-size: 11px; font-weight: 800; }
.registration-section-head h2 { margin: 0 0 2px; font-size: 17px; }
.registration-section-head p { margin: 0; color: var(--muted); font-size: 11px; }
.registration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.registration-grid .field-wide { grid-column: 1/-1; }
.registration-consent { padding: 22px 29px 0; }
.registration-consent .check-card { background: var(--red-soft); border-color: #f0cfd2; }
.registration-actions { padding: 20px 29px 25px; display: flex; justify-content: flex-end; gap: 10px; }
.registration-note { margin: 17px 0 0; color: #858c93; font-size: 11px; text-align: center; }

@media (max-width: 680px) {
  .registration-header { height: 68px; padding: 0 17px; }
  .registration-header img { width: 155px; }
  .registration-header .back-link { font-size: 0; }
  .registration-header .back-link::first-letter { font-size: 18px; }
  .registration-main { width: min(100% - 24px,940px); padding: 30px 0 42px; }
  .registration-intro h1 { font-size: 29px; }
  .registration-grid { grid-template-columns: 1fr; gap: 17px; }
  .registration-grid .field-wide { grid-column: auto; }
  .registration-section { padding: 22px 17px 25px; }
  .registration-consent { padding: 18px 17px 0; }
  .registration-actions { padding: 17px; flex-direction: column-reverse; }
  .registration-actions .btn { width: 100%; }
}


/* Modulo richiesta assistenza tecnica */
.service-request-form { overflow: hidden; }
.form-top-alert { margin: 20px 24px 0; }
.service-section { padding: 27px 29px 30px; border-bottom: 1px solid var(--line); }
.service-section-title { margin-bottom: 22px; display: flex; align-items: center; gap: 13px; }
.service-section-title > span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 10px; font-weight: 800; }
.service-section-title h2 { margin: 0; font-size: 18px; }
.service-grid { display: grid; gap: 18px 22px; }
.service-grid.two-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-grid .field-full { grid-column: 1/-1; }
.service-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 18px; }
.service-check-wrap { min-width: 0; }
.service-check { min-height: 48px; padding: 11px 12px; align-items: flex-start; line-height: 1.35; }
.service-check span:last-child { font-size: 12px; }
.inline-detail { margin: 7px 0 3px 37px; }
.inline-detail input { min-height: 40px; }
.service-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.service-split .service-section { border-bottom: 0; }
.service-split .service-section + .service-section { border-left: 1px solid var(--line); }
.compact-section { padding-bottom: 27px; }
.service-check-stack { display: grid; gap: 10px; }
.accessory-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.file-upload-block { margin-top: 20px; padding: 16px; border: 1px dashed #d8dcdf; border-radius: 9px; background: #fafafa; }
.file-upload-block label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; }
.file-upload-block small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.instruction-section { position: relative; padding-right: 340px; min-height: 305px; }
.instruction-list { margin: 0; padding-left: 21px; display: grid; gap: 10px; }
.instruction-list li { padding-left: 4px; font-size: 12px; line-height: 1.45; }
.instruction-list small { display: block; color: var(--muted); font-size: 10px; font-style: italic; }
.shipping-box { position: absolute; top: 76px; right: 29px; width: 280px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }
.shipping-box span { display: block; margin-bottom: 12px; color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.shipping-box strong { display: block; margin-bottom: 5px; font-size: 16px; }
.shipping-box p { margin: 0; font-size: 12px; line-height: 1.5; }
.service-note { padding: 12px 29px; border-bottom: 1px solid var(--line); background: #fff7f7; font-size: 11px; }
.detail-subtitle { margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.selected-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.selected-items span { padding: 9px 11px; border: 1px solid #ecd9da; border-radius: 7px; background: #fff8f8; font-size: 11px; line-height: 1.4; }
.selected-items.compact { grid-template-columns: 1fr; }
.selected-items .muted-selection { border-color: var(--line); color: var(--muted); background: #fafafa; }
.detail-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 900px) {
  .service-split { grid-template-columns: 1fr; }
  .service-split .service-section + .service-section { border-left: 0; border-top: 1px solid var(--line); }
  .instruction-section { padding-right: 29px; }
  .shipping-box { position: static; width: auto; margin-top: 22px; }
}
@media (max-width: 680px) {
  .service-section { padding: 21px 16px 24px; }
  .service-grid.two-cols,.service-check-grid,.accessory-list,.selected-items,.detail-two-columns { grid-template-columns: 1fr; }
  .service-grid .field-full { grid-column: auto; }
  .service-section-title { align-items: flex-start; }
  .service-section-title h2 { font-size: 16px; }
  .service-check { min-height: 45px; }
  .instruction-section { padding-right: 16px; }
  .service-note { padding: 12px 16px; }
}

/* IT / EN interface selector */
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.language-switch { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.language-switch a { color: #91979d; text-decoration: none; }
.language-switch a.active { color: var(--red); }
.language-switch span { color: #c9cdd1; }
.auth-language-switch { position: fixed; z-index: 50; top: 18px; right: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }

/* PDF workflow */
.pdf-download-btn { flex: 0 0 auto; }
.pdf-after-submit-note { padding: 13px 29px; border-bottom: 1px solid var(--line); background: #f8fbfc; color: #5d6872; font-size: 11px; font-weight: 650; }
.instruction-section { min-height: 245px; }

@media (max-width: 680px) {
  .topbar-actions { gap: 9px; }
  .language-switch { padding: 4px 6px; font-size: 9px; }
  .detail-heading > .btn { width: 100%; }
  .pdf-after-submit-note { padding: 12px 16px; }
  .auth-language-switch { top: 10px; right: 10px; }
}


/* Multilingual selector ---------------------------------------------------- */
.language-dropdown{position:relative;font-size:.88rem}
.language-dropdown summary{list-style:none;display:flex;align-items:center;gap:7px;min-width:132px;padding:8px 10px;border:1px solid #e2e5e9;border-radius:10px;background:#fff;color:#2c3338;cursor:pointer;font-weight:650;user-select:none}
.language-dropdown summary::-webkit-details-marker{display:none}
.language-dropdown[open] summary{border-color:#b5121b;box-shadow:0 0 0 3px rgba(181,18,27,.08)}
.language-flag{font-size:1.1rem;line-height:1}
.language-current{flex:1;text-align:left}
.language-chevron{font-size:.9rem;color:#6d747a}
.language-dropdown-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;min-width:185px;padding:6px;background:#fff;border:1px solid #e4e6e8;border-radius:12px;box-shadow:0 14px 35px rgba(20,27,31,.16)}
.language-dropdown-menu a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;color:#30363b;text-decoration:none;white-space:nowrap}
.language-dropdown-menu a:hover,.language-dropdown-menu a.active{background:#fff3f3;color:#9c0e16}
.language-check{margin-left:auto;color:#b5121b;font-weight:800}
.auth-language-switch{position:fixed;right:24px;top:22px;z-index:50}
@media(max-width:720px){.language-current{display:none}.language-dropdown summary{min-width:auto;padding:8px}.language-dropdown-menu{right:0}.auth-language-switch{right:14px;top:12px}}
/* v1.4: stable SVG flags instead of OS-dependent emoji rendering. */
.language-flag-img{width:22px;height:15px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12);vertical-align:middle;flex:0 0 auto}
.content-grid.two-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:20px;align-items:start}
.btn-sm{padding:7px 10px;font-size:.85rem}
@media(max-width:900px){.content-grid.two-cols{grid-template-columns:1fr}}

/* v1.6 - compact profile, contact support box and RTL Arabic UI */
.profile-form-card { padding-top: 22px; }
.profile-form-card > .card-heading,
.profile-form-card > .form-grid { margin-left: 27px; margin-right: 27px; }
.profile-form-card > .form-grid { margin-bottom: 22px; }
.profile-form-card .form-actions { margin-top: 4px; }
.support-chip strong { line-height: 1.35; }
.support-chip a { color: #454c52; text-decoration: none; overflow-wrap: anywhere; }
.support-chip a:hover { color: var(--red); text-decoration: underline; }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .workspace { margin-left: 0; margin-right: var(--sidebar); }
html[dir="rtl"] .nav-item,
html[dir="rtl"] .side-card-title,
html[dir="rtl"] .card-heading,
html[dir="rtl"] .filter-title,
html[dir="rtl"] .user-card { text-align: right; }
html[dir="rtl"] .row-action a { transform: scaleX(-1); }
html[dir="rtl"] .back-link { display: inline-flex; flex-direction: row-reverse; }
html[dir="rtl"] select { padding-left: 34px; padding-right: 12px; }
html[dir="rtl"] .input-with-icon svg { left: auto; right: 13px; }
html[dir="rtl"] .input-with-icon input { padding-left: 12px !important; padding-right: 41px !important; }
html[dir="rtl"] .timeline::before { left: auto; right: 19px; }
html[dir="rtl"] .description-block { border-left: 0; border-right: 3px solid var(--red); }
html[dir="rtl"] .metadata-grid { border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 900px) {
  html[dir="rtl"] .sidebar { transform: translateX(102%); }
  html[dir="rtl"] .menu-open .sidebar { transform: translateX(0); }
  html[dir="rtl"] .workspace { margin-right: 0; }
}


/* Device catalog: category-filtered, searchable model selector */
.device-model-picker { display: grid; gap: 8px; }
.device-model-search { background: #fff; }
.device-model-search:disabled, select[data-device-model]:disabled { background: #f5f6f7; color: #8a9299; cursor: not-allowed; }
.field-help { display: block; margin-top: 2px; color: #747d85; font-size: 11px; line-height: 1.4; }

/* v2.0 complete test - dashboards, reports, quick actions */
.dashboard-hero{align-items:center}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.card-link{text-decoration:none;color:inherit}.service-stats .stat-icon{font-size:20px;font-weight:900}.dashboard-tools-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin:18px 0 24px}.quick-search-card,.quick-links-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 8px 28px rgba(21,31,40,.04)}.quick-search-card h2{margin:3px 0 4px}.quick-search-card p{margin:0;color:var(--muted)}.quick-search-row{display:flex;gap:10px;margin-top:18px}.quick-search-row input{flex:1}.quick-links-card{display:grid;gap:4px}.quick-links-card a{padding:12px 10px;border-bottom:1px solid var(--line);text-decoration:none;color:#26313a;display:flex;justify-content:space-between}.quick-links-card a:last-child{border-bottom:0}
.customer-home-hero{position:relative;overflow:hidden;min-height:205px;padding:34px 38px;margin-bottom:20px;border:1px solid #e1e7eb;border-radius:18px;background:linear-gradient(105deg,#f8fbfd 0%,#eef6fb 66%,#e9f3f8 100%);display:flex;align-items:center}.customer-hero-copy{position:relative;z-index:2;max-width:720px}.customer-hero-copy .hero-kicker{margin:8px 0 0;font-size:20px;font-weight:700;color:#314455}.customer-hero-copy h1{font-size:36px;margin:2px 0 12px;letter-spacing:-.03em}.customer-hero-copy>p:last-child{max-width:650px;color:#5f7180;font-size:15px;line-height:1.55}.customer-hero-mark{position:absolute;right:55px;font-size:160px;font-weight:200;color:rgba(181,18,27,.08);line-height:1}.customer-action-grid{display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:14px;margin-bottom:22px}.customer-action{min-height:112px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;text-decoration:none;color:#24323e;display:flex;align-items:center;gap:12px;box-shadow:0 5px 18px rgba(21,31,40,.035)}.customer-action:hover{transform:translateY(-1px);border-color:#d6b8ba}.customer-action b{margin-left:auto}.customer-action strong{display:block;font-size:14px}.customer-action small{display:block;color:var(--muted);margin-top:6px;line-height:1.35}.action-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:#eef4f8;font-size:22px;font-weight:800}.primary-action{border-color:#e4b8bb;background:linear-gradient(135deg,#fff,#fff7f7)}.primary-action .action-icon{background:var(--red);color:#fff}.draft-action .action-icon{background:#fff0d6;color:#a66b00}.open-mini{background:#fee9eb;color:#b5121b}.progress-mini{background:#e9f2ff;color:#2a65a8}.done-mini{background:#e5f5ec;color:#26724a}.recent-section{margin-top:0}.metric-text{font-size:24px!important;white-space:nowrap}.report-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.review-modal{position:fixed;inset:0;z-index:3000;background:rgba(15,24,32,.55);display:none;align-items:center;justify-content:center;padding:20px}.review-modal.is-open{display:flex}.review-card{width:min(760px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.24)}.review-head{padding:22px 24px;border-bottom:1px solid var(--line)}.review-body{padding:20px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.review-item{padding:12px;border-radius:10px;background:#f7f9fa}.review-item span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:800;margin-bottom:4px}.review-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid var(--line)}.draft-status{font-size:11px;color:var(--muted);margin-right:auto;align-self:center}.attachment-actions{display:flex;gap:6px;margin-left:auto}.attachment-actions a{font-size:11px}.archive-box{margin-top:12px}.new-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--red);margin-left:6px}.company-dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.company-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0}.company-users-table{margin-top:18px}
@media(max-width:1100px){.customer-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.primary-action{grid-column:1/-1}.dashboard-tools-grid,.company-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:680px){.customer-home-hero{padding:26px 20px;min-height:180px}.customer-hero-copy h1{font-size:28px}.customer-action-grid{grid-template-columns:1fr}.primary-action{grid-column:auto}.quick-search-row{flex-direction:column}.review-body{grid-template-columns:1fr}.report-stats,.company-stats{grid-template-columns:1fr}.hero-actions{width:100%}.hero-actions .btn{flex:1}}


/* v2.0.1 - UI fixes: language menu above dashboard cards */
.topbar { position: relative; z-index: 2500; overflow: visible; }
.topbar-actions { position: relative; z-index: 2600; overflow: visible; }
.topbar .language-dropdown { z-index: 2700; }
.topbar .language-dropdown[open] { z-index: 2800; }
.topbar .language-dropdown-menu { z-index: 2900; }
.page-content { position: relative; z-index: 1; }
.device-model-picker { display: block; }

/* v2.2 polished internal UI */
.ticket-filter-panel,.report-filter-panel,.report-table-card{border:1px solid #e4e7ea;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,38,45,.045)}
.ticket-filter-panel{margin:0 0 26px;overflow:hidden}.ticket-filter-head{padding:18px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f2;background:linear-gradient(180deg,#fff,#fbfcfc)}.ticket-filter-head strong{display:block;font-size:15px}.ticket-filter-head small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.ticket-filter-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--red-soft);color:var(--red)}.ticket-filter-icon svg{width:19px;fill:currentColor}.ticket-filter-grid{padding:20px;display:grid;grid-template-columns:minmax(260px,1.7fr) minmax(170px,.8fr) minmax(150px,.7fr) minmax(150px,.7fr) auto;gap:14px;align-items:end}.filter-actions{display:flex;gap:8px;align-items:center}.filter-actions .btn{white-space:nowrap}
.report-hero{margin-bottom:20px;padding:28px 30px;display:flex;justify-content:space-between;align-items:center;gap:22px;border:1px solid #ead4d6;border-radius:18px;background:linear-gradient(115deg,#fff 0%,#fff8f8 62%,#fdf1f2 100%);box-shadow:0 8px 30px rgba(99,18,24,.045)}.report-hero h1{margin-bottom:8px;font-size:34px}.report-hero p{max-width:760px;margin:0;color:var(--muted)}.report-filter-panel{margin-bottom:20px;padding:18px 20px;display:flex;align-items:end;justify-content:space-between;gap:24px}.report-filter-copy{display:flex;align-items:center;gap:12px;min-width:240px}.report-filter-copy strong,.report-filter-copy small{display:block}.report-filter-copy small{margin-top:2px;color:var(--muted);font-size:11px}.filter-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f3f5f7;color:#596775;font-size:20px}.report-filter-fields{display:grid;grid-template-columns:minmax(155px,1fr) minmax(155px,1fr) auto;gap:12px;align-items:end}.report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}.report-metric-card{min-height:136px;padding:22px;display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 24px rgba(31,38,45,.04)}.report-metric-card.primary{border-color:#ebc9cc;background:linear-gradient(135deg,#fff,#fff7f8)}.metric-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:13px;background:#f2f4f6;color:#566474;font-size:19px;font-weight:800}.report-metric-card.primary .metric-icon{background:var(--red);color:#fff}.report-metric-card span:not(.metric-icon){display:block;color:#747d85;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.report-metric-card strong{display:block;margin:3px 0;font-size:28px;line-height:1.1}.report-metric-card small{color:#9aa1a7}.report-table-card{overflow:hidden}.report-table-head{padding:21px 22px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f2}.report-table-head h2{margin:0}.report-count{padding:6px 10px;border-radius:999px;background:#f2f4f6;color:#65707a;font-size:11px;font-weight:750}.report-table{width:100%;border-collapse:collapse}.report-table th{padding:12px 16px;background:#fafbfc;color:#7d858d;font-size:10px;text-align:left;text-transform:uppercase;letter-spacing:.05em}.report-table td{padding:15px 16px;border-top:1px solid #eef0f2;font-size:12px}.duration-pill{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef5fa;color:#2f678c;font-weight:800}.mono-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.empty-inline{padding:28px;text-align:center;color:var(--muted)}
.polished-detail-heading{padding:24px 26px;border:1px solid #e4e7ea;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,38,45,.04);align-items:center}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.polished-detail-layout{gap:24px}.polished-service-card{padding:0;overflow:hidden}.detail-card-heading{margin:0;padding:22px 24px;border-bottom:1px solid #edf0f2;background:linear-gradient(180deg,#fff,#fbfcfc)}.detail-section-block{padding:24px;border-bottom:1px solid #edf0f2}.detail-section-block:last-child{border-bottom:0}.detail-section-title{margin-bottom:16px;display:flex;align-items:center;gap:11px}.detail-section-title>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:9px;background:var(--red-soft);color:var(--red);font-size:10px;font-weight:850}.detail-section-title h3{margin:0;font-size:16px}.detail-section-title p{margin:1px 0 0;color:#9aa0a6;font-size:10px}.compact-title{margin-bottom:12px}.detail-metadata-grid{border:0;gap:10px;background:transparent}.detail-metadata-grid>div{min-height:78px;padding:14px 15px;border:1px solid #e8ebed!important;border-radius:10px;background:#fcfdfd}.detail-metadata-grid dt{margin-bottom:6px}.detail-metadata-grid dd{font-size:13px}.polished-description{margin:14px 0 0;border:1px solid #e8ebed;border-left:3px solid var(--red);border-radius:10px;background:#fff}.polished-selected-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.polished-selected-items span{padding:10px 12px;border:1px solid #e7eaec;border-radius:9px;background:#fafbfb;color:#4d5861;font-size:11px;line-height:1.35}.polished-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.polished-two-columns>div{padding:18px;border:1px solid #e8ebed;border-radius:12px;background:#fcfdfd}.polished-two-columns .polished-selected-items{grid-template-columns:1fr}.sticky-quality-card{position:sticky;top:88px}.rma-required-note{margin:0 0 12px;padding:9px 10px;border-radius:8px;background:#fff5e6;color:#8a5a0a;font-size:10px;font-weight:700;line-height:1.4}
html[dir="rtl"] .report-table th,html[dir="rtl"] .report-table td{text-align:right}html[dir="rtl"] .polished-description{border-left:1px solid #e8ebed;border-right:3px solid var(--red)}
@media(max-width:1180px){.ticket-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-search-wide{grid-column:1/-1}.filter-actions{grid-column:1/-1}.report-filter-panel{align-items:stretch;flex-direction:column}.report-filter-fields{grid-template-columns:1fr 1fr auto}}
@media(max-width:900px){.report-metrics{grid-template-columns:1fr}.polished-selected-items{grid-template-columns:1fr}.polished-two-columns{grid-template-columns:1fr}.sticky-quality-card{position:static}}
@media(max-width:680px){.ticket-filter-grid,.report-filter-fields{grid-template-columns:1fr}.filter-search-wide,.filter-actions{grid-column:auto}.filter-actions{flex-direction:column}.filter-actions .btn{width:100%}.report-hero{padding:22px;align-items:stretch;flex-direction:column}.report-hero .btn{width:100%}.report-filter-panel{padding:16px}.report-table-card{overflow:auto}.report-table{min-width:760px}.polished-detail-heading{padding:19px}.detail-actions{width:100%;flex-direction:column}.detail-actions .btn{width:100%}.detail-section-block{padding:18px 15px}.detail-metadata-grid{grid-template-columns:1fr}.polished-selected-items{grid-template-columns:1fr}}


/* v2.3 - redesigned Requests list inspired by approved mockup */
.requests-heading{margin-bottom:24px}.requests-heading h1{position:relative;padding-left:18px}.requests-heading h1::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:5px;border-radius:999px;background:var(--red)}
.requests-filter-card{margin-bottom:24px;border:1px solid #e2e6ea;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(27,34,41,.055);overflow:hidden}.requests-filter-title{padding:17px 20px;border-bottom:1px solid #edf0f2;background:linear-gradient(180deg,#fff,#fcfcfd)}.requests-filter-title-main{display:flex;align-items:center;gap:11px}.requests-filter-title-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:var(--red);background:var(--red-soft)}.requests-filter-title-icon svg{width:18px;fill:currentColor}.requests-filter-title strong{display:block;font-size:15px}.requests-filter-title small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.requests-filter-grid{padding:18px 20px 12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 18px}.requests-filter-grid .field-group{min-width:0}.requests-filter-grid label{margin-bottom:6px;display:block;color:#333b43;font-size:11px;font-weight:750}.requests-filter-grid .form-control,.requests-filter-grid .form-select{width:100%;min-height:43px;border-color:#dfe4e8;border-radius:8px;background-color:#fff}.filter-input-with-icon{position:relative}.filter-input-with-icon svg{position:absolute;z-index:1;left:12px;top:50%;width:17px;fill:#8b949c;transform:translateY(-50%)}.filter-input-with-icon .form-control{padding-left:39px}.requests-filter-actions{padding:4px 20px 18px;display:flex;justify-content:flex-end;gap:10px}.requests-filter-actions .btn{min-width:116px}
.requests-table-card{border:1px solid #e2e6ea;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(27,34,41,.055);overflow:hidden}.requests-table-head{min-height:64px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f2}.requests-table-title{display:flex;align-items:center;gap:11px}.requests-table-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:var(--red);background:var(--red-soft)}.requests-table-title svg{width:18px;fill:currentColor}.requests-table-title h2{margin:0;font-size:18px}.requests-table-title small{display:block;margin-top:1px;color:#89919a;font-size:10px;font-weight:650}.requests-table-scroll{overflow-x:auto}.requests-table{min-width:960px}.requests-table th{padding:13px 14px;background:#fafbfc;color:#6f7881;font-size:10px;letter-spacing:.035em;text-transform:none}.requests-table td{padding:13px 14px;color:#46515b;font-size:12px}.requests-table tbody tr:hover{background:#fffafa}.request-model{color:#23292f;font-weight:700;text-decoration:none}.request-model:hover{color:var(--red)}.device-category{color:#58636d;font-weight:600}.serial-value,.rma-value{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.rma-value{font-weight:700;color:#48535d}.requests-table .badge{font-size:10px}.actions-column{min-width:220px;text-align:right!important}.requests-actions{min-width:220px;display:flex!important;justify-content:flex-end;align-items:center;gap:6px}.request-action-button{min-height:34px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #dde2e6;border-radius:7px;color:#4d5964;background:#fff;font-size:10px;font-weight:750;text-decoration:none;white-space:nowrap;transition:.15s}.request-action-button:hover{border-color:#e4b4b8;color:var(--red);background:#fff8f8}.request-action-button.primary{border-color:#e9c3c6;color:var(--red)}.request-action-button svg{width:15px;fill:currentColor}.request-action-button.attachment-count{min-width:42px;padding-inline:8px}.requests-empty-state{border:1px solid #e2e6ea;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(27,34,41,.055)}
html[dir="rtl"] .requests-heading h1{padding-left:0;padding-right:18px}html[dir="rtl"] .requests-heading h1::before{left:auto;right:0}html[dir="rtl"] .filter-input-with-icon svg{left:auto;right:12px}html[dir="rtl"] .filter-input-with-icon .form-control{padding-left:12px;padding-right:39px}html[dir="rtl"] .requests-table th,html[dir="rtl"] .requests-table td{text-align:right}html[dir="rtl"] .actions-column{text-align:left!important}html[dir="rtl"] .requests-actions{justify-content:flex-start}
@media(max-width:1180px){.requests-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.requests-filter-grid{grid-template-columns:1fr;padding:16px}.requests-filter-actions{padding:0 16px 16px;flex-direction:column-reverse}.requests-filter-actions .btn{width:100%}.requests-table-card{border:0;box-shadow:none;background:transparent;overflow:visible}.requests-table-head{margin-bottom:10px;border:1px solid #e2e6ea;border-radius:12px;background:#fff}.requests-table-scroll{overflow:visible}.requests-table{min-width:0}.requests-table td.requests-actions{position:static;width:100%;min-width:0;padding-top:10px;display:flex!important;justify-content:flex-start;flex-wrap:wrap}.requests-table td.requests-actions::before{display:none}.request-action-button{flex:1}.requests-table td[data-label]{padding-right:0}.requests-table td[data-label]::before{margin-right:10px}html[dir="rtl"] .requests-table td[data-label]{padding-left:0}.actions-column{min-width:0}}

/* v2.4 - UI cleanup and bug fixes */
.nav-item.is-active::before{left:4px;top:10px;bottom:10px;width:3px;border-radius:4px}.nav-item.is-active{padding-left:17px}

/* Customer home: clean, no decorative fake button, no repeated hero action. */
.customer-dashboard-intro{margin-bottom:22px;padding:4px 2px 2px}.customer-dashboard-intro h1{margin:0 0 8px;font-size:clamp(30px,3vw,40px);letter-spacing:-.035em}.customer-dashboard-intro p{max-width:830px;margin:0;color:var(--muted);font-size:15px;line-height:1.6}.customer-action-grid-clean{grid-template-columns:1.25fr repeat(4,minmax(0,1fr));gap:14px}.customer-action-grid-clean .customer-action{min-height:132px;align-items:flex-start;padding:20px}.customer-action-grid-clean .customer-action>div{min-width:0;padding-top:3px}.customer-action-grid-clean .customer-action strong{font-size:14px;line-height:1.25}.customer-action-grid-clean .customer-action small{font-size:11px}.customer-action-grid-clean .customer-action b{align-self:center}.customer-action-grid-clean .progress-mini+div strong{white-space:nowrap}

/* Password confirmation: centered, compact, spacious. */
.success-page{min-height:calc(100vh - 250px);display:grid;place-items:center;padding:30px 0}.success-card{width:min(620px,100%);padding:34px;display:grid;grid-template-columns:auto 1fr;gap:0 18px;align-items:center;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 40px rgba(25,31,38,.07)}.success-icon{width:54px;height:54px;grid-row:1/3;display:grid;place-items:center;border-radius:14px;background:#e8f6ef;color:var(--green);font-size:24px;font-weight:900}.success-copy h1{margin:0 0 8px;font-size:30px}.success-copy p{margin:0;color:var(--muted)}.success-card>.btn{grid-column:2;margin-top:22px;justify-self:start}

/* Search/filter fields: icon never overlaps placeholder. */
.filter-input-with-icon .form-control{padding-left:42px!important}.filter-input-with-icon svg{pointer-events:none}.quick-search-row .form-control{padding-left:14px!important}
html[dir="rtl"] .filter-input-with-icon .form-control{padding-left:12px!important;padding-right:42px!important}

/* Report: balanced card, no large dead area. */
.report-filter-panel{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(480px,1.2fr);align-items:center;gap:28px;padding:20px 22px}.report-filter-copy{min-width:0}.report-filter-fields{width:100%;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) auto}.report-filter-fields .btn{min-width:128px}.report-hero{padding:26px 28px}.report-hero h1{font-size:32px}

/* Detail: sidebar cards flow normally and never overlap each other during scroll. */
.sticky-quality-card{position:static!important;top:auto!important}.polished-sidebar{align-self:start;position:static;display:grid;gap:18px}.polished-sidebar .side-card{position:relative;z-index:auto}.polished-detail-layout{align-items:start}.archive-box .btn{min-height:40px;box-shadow:none}.archive-box{border-color:#efcfd1;background:#fff}.quality-card .btn-primary{box-shadow:0 5px 13px rgba(181,18,27,.14)}

/* Language dropdown remains over every page card. */
.topbar{z-index:5000}.topbar-actions{z-index:5100}.topbar .language-dropdown,.topbar .language-dropdown[open]{z-index:5200}.topbar .language-dropdown-menu{z-index:5300}

/* Cleaner global spacing for cards and page content. */
.page-content{padding-top:32px}.requests-filter-card,.requests-table-card,.report-table-card,.polished-detail-heading,.side-card{box-shadow:0 8px 24px rgba(25,31,38,.045)}

@media(max-width:1100px){.customer-action-grid-clean{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-action-grid-clean .primary-action{grid-column:1/-1}.report-filter-panel{grid-template-columns:1fr}.report-filter-fields{grid-template-columns:1fr 1fr auto}}
@media(max-width:680px){.customer-action-grid-clean{grid-template-columns:1fr}.customer-action-grid-clean .primary-action{grid-column:auto}.customer-action-grid-clean .progress-mini+div strong{white-space:normal}.success-page{min-height:auto;padding:8px 0}.success-card{padding:24px 20px;grid-template-columns:1fr;text-align:center}.success-icon{grid-row:auto;margin:0 auto 16px}.success-card>.btn{grid-column:1;justify-self:stretch;margin-top:20px}.report-filter-panel,.report-filter-fields{grid-template-columns:1fr}.report-filter-fields .btn{width:100%}}

/* v2.4.1 - sidebar viewport fix and final detail polish */
.sidebar{min-height:0;overflow:hidden}
.sidebar .brand,.sidebar-context{flex:0 0 auto}
.nav-menu{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d9dde1 transparent;padding-bottom:18px}
.nav-menu::-webkit-scrollbar{width:6px}.nav-menu::-webkit-scrollbar-thumb{border-radius:999px;background:#d9dde1}.nav-menu::-webkit-scrollbar-track{background:transparent}
.sidebar-footer{flex:0 0 auto;margin-top:0;border-top:1px solid #edf0f2;background:#fff;box-shadow:0 -8px 22px rgba(25,31,38,.035)}
.sidebar-footer .support-chip{margin-top:12px}
.user-card{margin-bottom:max(14px,env(safe-area-inset-bottom))}

/* Ticket detail: clearer hierarchy, less visual weight, no repeated heavy blocks. */
.polished-detail-heading{padding-bottom:18px;border-bottom:1px solid #edf0f2;margin-bottom:22px}
.polished-detail-heading h1{font-size:clamp(26px,2.6vw,34px);letter-spacing:-.025em}
.polished-detail-heading p{font-size:12px}
.polished-detail-layout{grid-template-columns:minmax(0,1fr) 320px;gap:20px}
.polished-main-card{padding:22px;border-radius:14px}
.polished-sidebar .side-card{padding:18px;border-radius:13px}
.polished-sidebar .side-card-title{margin-bottom:14px}
.polished-sidebar .side-form{gap:11px;margin-bottom:12px}
.polished-sidebar .btn-block{min-height:40px}
.archive-box{padding:14px 16px!important;border-style:dashed!important;background:#fff!important}
.archive-box .side-card-title{margin-bottom:10px}.archive-box .side-card-title h2{font-size:13px}.archive-box .side-card-title p{font-size:10px}
.archive-box .btn{min-height:36px;font-size:10px;background:#fff;color:#5c646c;border-color:#dfe3e6}
.archive-box .btn:hover{color:var(--red);border-color:#e5b9bc;background:#fff8f8}

@media(max-height:760px) and (min-width:901px){
  .brand{padding-top:18px;padding-bottom:14px}.brand-logo{max-height:42px}.sidebar-context{margin-top:8px}.nav-menu{padding-top:10px}.support-chip{display:none}.user-card{margin-top:8px}
}
@media(max-width:900px){
  .sidebar{overflow:hidden}.nav-menu{overflow-y:auto}.sidebar-footer{position:relative}
}
@media(max-width:1100px){.polished-detail-layout{grid-template-columns:1fr}.polished-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.polished-sidebar .quality-card{grid-column:1/-1}}
@media(max-width:680px){.polished-sidebar{grid-template-columns:1fr}.polished-sidebar .quality-card{grid-column:auto}.polished-main-card{padding:16px}.polished-detail-heading{padding-bottom:14px}}


/* v2.4.2 - robust sidebar at common laptop heights/zoom + cache-safe release */
.sidebar{height:100dvh;max-height:100dvh}
.sidebar-footer{min-height:0}
.user-card{min-height:64px;padding:10px 14px;margin-bottom:0}
.sidebar-footer .support-chip{margin:8px 14px 8px;padding:11px 13px}
.sidebar-footer .support-chip span{font-size:10px}
.sidebar-footer .support-chip strong{margin-top:2px;font-size:11px}
.nav-item{min-height:44px}
.nav-menu{padding-top:10px;padding-bottom:10px}

/* On laptop-height viewports or enlarged browser zoom, keep account/logout visible. */
@media (max-height:920px) and (min-width:901px){
  .brand{min-height:72px;padding:12px 20px}
  .brand-logo{max-width:195px;max-height:52px;object-fit:contain}
  .sidebar-context{margin:12px 16px 6px;padding:10px 12px}
  .nav-menu{padding:8px 12px}
  .nav-item{min-height:42px;padding-top:0;padding-bottom:0}
  .sidebar-footer .support-chip{display:none}
  .sidebar-footer{box-shadow:0 -8px 22px rgba(25,31,38,.045)}
  .user-card{min-height:62px}
}

@media (max-height:680px) and (min-width:901px){
  .brand{min-height:62px;padding:8px 18px}
  .brand-logo{max-height:42px}
  .sidebar-context{margin:7px 14px 4px;padding:8px 10px}
  .nav-label{padding-bottom:4px}
  .nav-item{min-height:38px}
}

/* v2.4.3 - centered workspace, no horizontal overflow, account pages and compact support */
html, body { max-width: 100%; overflow-x: hidden; }
.app-shell, .workspace { min-width: 0; max-width: 100%; }
.workspace { width: auto; overflow-x: clip; }
.page-content {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(24px, 3vw, 42px);
}
.topbar, .app-footer { min-width: 0; }
.topbar-title, .topbar-actions { min-width: 0; }

/* Ticket detail stays centered and never forces the viewport wider. */
.polished-detail-heading { min-width: 0; align-items: center; }
.polished-detail-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
.polished-detail-heading h1 { overflow-wrap: anywhere; }
.detail-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.polished-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 310px); gap: 20px; width: 100%; min-width: 0; }
.detail-main, .polished-sidebar, .side-card, .service-detail-card { min-width: 0; max-width: 100%; }
.detail-metadata-grid dd, .description-block, .selected-items span { overflow-wrap: anywhere; }
.attachment-list li { min-width: 0; align-items: flex-start; flex-wrap: wrap; }
.attachment-list li > div { min-width: 0; flex: 1 1 120px; }
.attachment-list li > div strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.attachment-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding-left: 41px; }
.attachment-actions .btn { width: 100%; min-width: 0; }
.upload-form, .upload-form input[type=file] { width: 100%; min-width: 0; max-width: 100%; }

/* Compact support box: visible without pushing the account/logout out of the viewport. */
.support-chip-compact { gap: 8px; }
.support-chip-compact > span { line-height: 1.25; }
.support-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.support-actions a { min-width: 0; padding: 7px 8px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #efd5d7; border-radius: 8px; color: var(--red-dark); background: #fff; font-size: 10px; text-decoration: none; white-space: nowrap; }
.support-actions a:hover { border-color: #dfacb0; background: var(--red-soft); color: var(--red); }

/* Override v2.4.2 hiding support on normal laptop screens. */
@media (max-height: 920px) and (min-width: 901px) {
  .sidebar-footer .support-chip-compact { display: flex; margin: 6px 12px; padding: 8px 10px; }
  .support-chip-compact > span { font-size: 9px; }
  .support-actions a { padding: 5px 6px; font-size: 9px; }
  .user-card { min-height: 58px; padding-block: 8px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .sidebar-footer .support-chip-compact { display: none; }
}

/* Password page */
.account-page-shell { width: min(760px, 100%); margin: 0 auto; }
.account-page-heading { margin-bottom: 22px; }
.account-page-heading h1 { font-size: clamp(32px, 4vw, 44px); }
.account-page-heading p { max-width: 620px; color: var(--muted); }
.account-alert { margin-bottom: 18px; }
.password-change-card { width: 100%; max-width: none; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.password-card-header { padding: 22px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: #fcfcfc; }
.password-card-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 10px; color: var(--red); background: var(--red-soft); font-size: 15px; font-weight: 900; letter-spacing: 2px; }
.password-card-header h2 { margin: 0 0 3px; font-size: 18px; }
.password-card-header p { margin: 0; color: var(--muted); font-size: 12px; }
.password-card-body { padding: 24px; display: grid; gap: 18px; }
.password-card-body .field-group { margin: 0; }
.password-card-body input { min-height: 46px; }
.password-card-body .help-text ul { margin: 7px 0 0; padding-left: 18px; }
.password-card-actions { padding: 17px 24px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #fafafa; }

/* Company users / invitation page */
.company-users-shell { width: min(1120px, 100%); margin: 0 auto; }
.company-users-heading { margin-bottom: 24px; }
.company-users-heading p { max-width: 780px; }
.company-users-top-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; align-items: stretch; }
.company-users-top-grid .info-card { min-width: 0; padding: 0; overflow: hidden; }
.company-users-card-heading { margin: 0; padding: 20px 22px 16px; border-bottom: 1px solid #edf0f2; background: #fcfcfc; }
.company-users-card-heading .card-heading-icon { font-size: 20px; font-weight: 400; }
.invite-form { padding: 20px 22px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.invite-form .field-group { margin: 0; }
.invite-form input { width: 100%; min-height: 44px; }
.invite-form .btn { min-height: 44px; white-space: nowrap; }
.pending-invites-list { padding: 16px 22px 22px; }
.pending-invite-row { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0f2; }
.pending-invite-row:last-child { border-bottom: 0; }
.pending-invite-row div { min-width: 0; }
.pending-invite-row strong, .pending-invite-row small { display: block; overflow-wrap: anywhere; }
.pending-invite-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.compact-empty-state { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); text-align: center; }
.compact-empty-state span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e8f6ef; font-weight: 800; }
.compact-empty-state p { margin: 0; }
.company-users-table-card { margin-top: 24px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.company-users-section-heading { margin: 0; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.company-users-section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.company-users-table-wrap { overflow-x: auto; }
.company-users-table-wrap table { width: 100%; border-collapse: collapse; }
.company-users-table-wrap th, .company-users-table-wrap td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #edf0f2; }
.company-users-table-wrap th { color: #858d95; background: #fafafa; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.company-users-table-wrap tbody tr:last-child td { border-bottom: 0; }
.member-status { display: inline-flex; align-items: center; gap: 6px; color: #7e868e; font-size: 11px; font-weight: 700; }
.member-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #aab0b6; }
.member-status.is-active { color: var(--green); }
.member-status.is-active::before { background: var(--green); }
.muted-self-label { color: var(--muted); font-size: 11px; }

@media (max-width: 1180px) {
  .polished-detail-heading { align-items: flex-start; flex-direction: column; }
  .detail-actions { width: 100%; justify-content: flex-start; }
  .polished-detail-layout { grid-template-columns: 1fr; }
  .polished-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .polished-sidebar > :last-child { grid-column: 1 / -1; }
  .attachment-actions { width: auto; min-width: 170px; padding-left: 0; }
}
@media (max-width: 900px) {
  .workspace { margin-left: 0; width: 100%; }
  .page-content { padding-inline: 20px; }
  .company-users-top-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .page-content { padding-inline: 14px; }
  .detail-actions { display: grid; grid-template-columns: 1fr; }
  .detail-actions .btn { width: 100%; }
  .polished-sidebar { grid-template-columns: 1fr; }
  .polished-sidebar > :last-child { grid-column: auto; }
  .attachment-actions { width: 100%; min-width: 0; padding-left: 41px; }
  .password-card-header, .password-card-body, .password-card-actions { padding-left: 18px; padding-right: 18px; }
  .password-card-actions { flex-direction: column-reverse; }
  .password-card-actions .btn { width: 100%; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .btn { width: 100%; }
  .company-users-table-wrap { overflow: visible; }
  .company-users-table-wrap table, .company-users-table-wrap tbody, .company-users-table-wrap tr, .company-users-table-wrap td { display: block; width: 100%; }
  .company-users-table-wrap thead { display: none; }
  .company-users-table-wrap tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .company-users-table-wrap td { padding: 5px 0; border: 0; overflow-wrap: anywhere; }
}


/* v2.4.5 - support details stay inside the portal; company invite flow removed */
.support-actions .support-action {
  min-width: 0; padding: 7px 8px; display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid #efd5d7; border-radius: 8px; color: var(--red-dark); background: #fff;
  font: inherit; font-size: 10px; cursor: pointer; white-space: nowrap;
}
.support-actions .support-action:hover, .support-actions .support-action.is-active {
  border-color: #dfacb0; background: var(--red-soft); color: var(--red);
}
.support-reveal {
  padding: 8px 9px; border: 1px solid #f0d7d9; border-radius: 8px; background: #fff; overflow-wrap: anywhere;
}
.support-reveal[hidden] { display: none !important; }
.support-reveal span { display: block; margin-bottom: 2px; font-size: 8px; color: #8a939d; letter-spacing: .06em; text-transform: uppercase; }
.support-reveal strong { display: block; margin: 0; color: #343b43; font-size: 10px; line-height: 1.3; user-select: text; }
.company-users-shell-list-only { max-width: 1100px; margin-inline: auto; }
.company-users-shell-list-only .company-users-table-card { margin-top: 22px; }
@media (max-height: 760px) {
  .support-reveal { padding: 6px 7px; }
  .support-reveal strong { font-size: 9px; }
}


/* v2.4.6 - Viewer dashboard: companies visible directly, no extra click */
.dashboard-tools-grid.viewer-tools { grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr); align-items: start; }
.viewer-company-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(21,31,40,.04); }
.viewer-company-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.viewer-company-head h2 { margin: 2px 0 0; font-size: 20px; }
.viewer-company-count { min-width: 34px; height: 34px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--red); background: #fff0f1; font-size: 12px; font-weight: 800; }
.viewer-company-list { max-height: 310px; overflow-y: auto; scrollbar-gutter: stable; }
.viewer-company-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #eef0f2; }
.viewer-company-row:last-child { border-bottom: 0; }
.viewer-company-main { min-width: 0; }
.viewer-company-main strong, .viewer-company-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-company-main strong { margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.viewer-company-main small { color: var(--muted); font-size: 11px; }
.viewer-company-meta { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 14px; }
.viewer-company-meta span { min-width: 0; color: #45515b; font-size: 11px; overflow-wrap: anywhere; }
.viewer-company-meta b { display: block; margin-bottom: 2px; color: #9299a0; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.viewer-company-empty { padding: 24px 20px; color: var(--muted); font-size: 12px; }
@media (max-width: 1180px) { .dashboard-tools-grid.viewer-tools { grid-template-columns: 1fr; } .viewer-company-list { max-height: 360px; } }
@media (max-width: 680px) { .viewer-company-row { grid-template-columns: 1fr; gap: 9px; padding: 14px 16px; } .viewer-company-meta { grid-template-columns: 1fr 74px; } .viewer-company-head { padding-inline: 16px; } }

/* v2.4.7 - notifications + audit log */
.notification-dropdown { position: relative; }
.notification-dropdown > summary { list-style: none; }
.notification-dropdown > summary::-webkit-details-marker { display: none; }
.notification-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.notification-button svg { width: 19px; height: 19px; fill: #66717b; }
.notification-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--red); font-size: 9px; font-weight: 800; }
.notification-menu { position: absolute; z-index: 60; top: calc(100% + 9px); right: 0; width: min(390px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(20,30,40,.15); }
.notification-menu-head { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.notification-menu-head strong { font-size: 14px; }
.notification-menu-head button { padding: 0; border: 0; color: var(--red); background: transparent; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.notification-list { max-height: 380px; overflow-y: auto; }
.notification-row { padding: 12px 15px; display: grid; grid-template-columns: 9px 1fr; gap: 9px; color: inherit; text-decoration: none; border-bottom: 1px solid #eef0f2; }
.notification-row:hover { background: #fafafa; }
.notification-row.is-unread { background: #fff7f7; }
.notification-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #c8cdd2; }
.notification-row.is-unread .notification-dot { background: var(--red); }
.notification-row strong, .notification-row small, .notification-row time { display: block; }
.notification-row strong { color: var(--ink); font-size: 12px; }
.notification-row small { margin-top: 2px; color: #58636d; font-size: 10px; }
.notification-row time { margin-top: 5px; color: #9aa1a8; font-size: 9px; }
.notification-empty { padding: 28px 16px; color: var(--muted); text-align: center; font-size: 11px; }
.audit-shell { width: min(1320px, 100%); margin: 0 auto; }
.audit-heading { margin-bottom: 20px; }
.audit-filters { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(180px, .8fr) 150px 150px auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(20,30,40,.04); }
.audit-filters .field-group { margin: 0; }
.audit-filters input, .audit-filters select { min-height: 42px; }
.audit-filters .btn { min-height: 42px; }
.audit-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(20,30,40,.04); }
.audit-table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.audit-table th { padding: 12px 14px; color: #8c949c; background: #fafafa; text-align: left; text-transform: uppercase; letter-spacing: .05em; font-size: 9px; white-space: nowrap; }
.audit-table td { padding: 13px 14px; border-top: 1px solid #eef0f2; vertical-align: top; }
.audit-table td strong, .audit-table td small { display: block; }
.audit-table td small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.audit-action-tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: var(--red-dark); background: var(--red-soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.audit-table a { color: var(--red); font-weight: 700; text-decoration: none; }
.audit-empty { padding: 34px !important; color: var(--muted); text-align: center; }
@media (max-width: 1050px) { .audit-filters { grid-template-columns: repeat(2, minmax(0,1fr)); } .audit-filters .btn { width: 100%; } }
@media (max-width: 680px) { .audit-filters { grid-template-columns: 1fr; } .notification-menu { position: fixed; top: 70px; right: 14px; left: 14px; width: auto; } }

/* v2.4.10 - Password recovery header + company access table polish */
.company-access-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.company-access-head,
.company-access-row {
  display: grid;
  grid-template-columns: minmax(220px,1.15fr) minmax(240px,1.35fr) minmax(150px,.65fr) minmax(190px,.7fr);
  gap: 22px;
  align-items: center;
}
.company-access-head {
  min-height: 48px;
  padding: 0 24px;
  color: #858d95;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.company-access-row {
  min-height: 82px;
  padding: 15px 24px;
  border-bottom: 1px solid #eef0f1;
}
.company-access-row:last-child { border-bottom: 0; }
.company-access-user { min-width: 0; display: flex; align-items: center; gap: 12px; }
.company-access-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
  font-weight: 800;
}
.company-access-user-copy { min-width: 0; display: flex; flex-direction: column; }
.company-access-user-copy strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.company-access-user-copy small { margin-top: 2px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.company-access-email { min-width: 0; overflow-wrap: anywhere; color: #4f5861; }
.company-access-status { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.account-status-badge { min-height: 26px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.account-status-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.account-status-badge.is-active { color: var(--green); background: #e9f6f0; }
.account-status-badge.is-disabled { color: #767e86; background: #eff1f3; }
.temporary-password-state { color: var(--amber); font-size: 10px; font-weight: 700; }
.company-access-actions { display: flex; justify-content: flex-end; }
.company-access-actions form { margin: 0; }
.reset-password-btn { min-width: 156px; white-space: nowrap; }
.company-access-empty { padding: 25px; color: var(--muted); text-align: center; }

@media (max-width: 820px) {
  .company-access-head { display: none; }
  .company-access-row {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px;
  }
  .company-access-row > [data-label]:not(.company-access-user)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #91989f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .company-access-actions { justify-content: flex-start; }
  .reset-password-btn { width: 100%; }
}

/* The auth language switch is fixed; on very narrow screens the back link
   moves below it instead of competing for the same horizontal space. */
@media (max-width: 480px) {
  .auth-page .registration-header {
    min-height: 106px;
    height: auto;
    padding: 58px 16px 14px;
    align-items: center;
  }
  .auth-page .registration-header > a:first-child { display: none; }
  .auth-page .registration-header .back-link {
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
  }
  .auth-page .registration-header .back-link::first-letter { font-size: inherit; }
  .auth-page .auth-language-switch { top: 12px; right: 14px; }
}


/* v2.4.11 - Password recovery header: back link lives in content, never beside language selector */
.password-recovery-main { padding-top: 30px; }
.password-recovery-nav { min-height: 28px; margin-bottom: 14px; display: flex; align-items: center; justify-content: flex-start; }
.password-recovery-nav .back-link { margin: 0; position: static; font-size: 12px; }
@media (max-width: 720px) {
  .password-recovery-main { padding-top: 22px; }
  .password-recovery-nav { margin-bottom: 12px; }
  .password-recovery-nav .back-link { font-size: 12px; }
}

/* v2.4.12 - reset password operatori interni */
.operator-actions{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}.operator-actions form{margin:0}.temporary-password-card{max-width:720px;margin-inline:auto}.temporary-password-box{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;margin:1rem 0;border:1px solid #e4e7eb;border-radius:14px;background:#f7f8fa}.temporary-password-box code{font-size:1.25rem;font-weight:700;letter-spacing:.06em;overflow-wrap:anywhere}.alert-warning{background:#fff8e7;border:1px solid #f1d38a;color:#684e13;border-radius:12px;padding:.9rem 1rem}@media(max-width:760px){.operator-actions{justify-content:flex-start}.temporary-password-box{align-items:flex-start;flex-direction:column}}

/* v2.4.14 - Report premium metrics */
.report-metrics-premium{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-bottom:26px;
}
.report-metric-premium{
  position:relative;
  min-height:168px;
  padding:26px 28px;
  gap:20px;
  overflow:hidden;
  border:1px solid #e7eaee;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
  box-shadow:0 12px 34px rgba(25,31,38,.055);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.report-metric-premium::after{
  content:"";
  position:absolute;
  right:-72px;
  bottom:-96px;
  width:210px;
  height:210px;
  border:28px solid rgba(132,145,160,.045);
  border-radius:50%;
  pointer-events:none;
}
.report-metric-premium:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(25,31,38,.075);
}
.report-metric-premium.primary{
  border-color:rgba(193,19,29,.24);
  background:
    radial-gradient(circle at 88% 112%,rgba(199,21,31,.075) 0,rgba(199,21,31,.035) 26%,transparent 27%),
    linear-gradient(135deg,#fff 0%,#fffafa 62%,#fff5f6 100%);
}
.report-metric-premium.primary::before{
  content:"";
  position:absolute;
  left:28px;
  top:0;
  width:74px;
  height:4px;
  border-radius:0 0 99px 99px;
  background:var(--red);
}
.report-metric-premium.primary::after{
  border-color:rgba(199,21,31,.055);
}
.report-premium-icon{
  width:62px;
  height:62px;
  flex:0 0 62px;
  border-radius:18px;
  font-size:24px;
  background:linear-gradient(145deg,#d11623 0%,#a70c17 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(181,18,27,.20);
}
.report-premium-icon-neutral{
  background:linear-gradient(145deg,#f3f5f8 0%,#e9edf2 100%);
  color:#5d6978;
  box-shadow:inset 0 0 0 1px rgba(91,105,120,.08);
}
.report-premium-copy{
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.report-metric-card .report-premium-label{
  display:block;
  margin-bottom:6px;
  color:#6f7a88;
  font-size:11px;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.report-metric-card .report-premium-value{
  display:block;
  margin:0 0 8px;
  color:#141d2b;
  font-size:clamp(30px,2.8vw,42px);
  line-height:1;
  font-weight:850;
  letter-spacing:-.035em;
}
.report-metric-card .report-premium-subtitle{
  display:block;
  color:#9099a6;
  font-size:13px;
  line-height:1.35;
  font-weight:500;
}
@media(max-width:900px){
  .report-metrics-premium{grid-template-columns:1fr}
}
@media(max-width:680px){
  .report-metric-premium{
    min-height:0;
    padding:22px 20px;
    gap:16px;
    border-radius:18px;
  }
  .report-premium-icon{
    width:54px;
    height:54px;
    flex-basis:54px;
    border-radius:15px;
    font-size:20px;
  }
  .report-metric-card .report-premium-value{font-size:30px}
  .report-metric-card .report-premium-subtitle{font-size:12px}
}


/* v2.4.15 - gestione seriale obbligatorio */
.serial-unavailable-block{margin-top:.65rem}
.serial-unavailable-check{max-width:100%;margin:0}
.serial-reason-wrap{margin-top:.7rem}
.serial-reason-wrap[hidden]{display:none!important}
[data-serial-number][disabled]{background:#f3f4f6;opacity:.75;cursor:not-allowed}


/* v2.4.17 - live registration validation + privacy */
.live-validation{display:block;margin-top:6px;min-height:18px;font-size:.82rem;font-weight:650}
.live-validation.is-valid{color:#167246}
.live-validation.is-invalid{color:#b42318}
.privacy-page{min-height:100vh;background:#f7f8fa}
.privacy-main{width:min(980px,calc(100% - 32px));margin:0 auto;padding:34px 0 64px}
.privacy-hero{background:#fff;border:1px solid #e7e8ec;border-radius:22px;padding:30px 34px;margin-bottom:18px;box-shadow:0 12px 32px rgba(18,24,40,.06)}
.privacy-hero h1{margin:6px 0 12px;font-size:clamp(1.8rem,3vw,2.5rem)}
.privacy-hero p{margin:0 0 8px;max-width:780px;color:#5c6470;line-height:1.6}
.privacy-hero small{color:#7a828e}
.privacy-card{background:#fff;border:1px solid #e7e8ec;border-radius:22px;padding:34px;box-shadow:0 12px 32px rgba(18,24,40,.05)}
.privacy-card h2{margin:28px 0 8px;font-size:1.08rem;color:#20252d}
.privacy-card h2:first-child{margin-top:0}
.privacy-card p{margin:0 0 10px;color:#4f5662;line-height:1.68}
.privacy-note{margin-top:30px;padding:18px 20px;border-left:4px solid #b5121b;background:#fff6f6;border-radius:10px;line-height:1.55}
.privacy-brand{font-weight:800;letter-spacing:.04em;color:#b5121b}
@media(max-width:700px){.privacy-main{width:min(100% - 20px,980px);padding-top:20px}.privacy-hero,.privacy-card{padding:22px 18px;border-radius:16px}}


/* v2.4.18 - privacy + live validation polish */
.privacy-page{min-height:100vh;background:radial-gradient(circle at top right,rgba(181,18,27,.06),transparent 28%),linear-gradient(180deg,#f7f8fa 0%,#f3f5f7 100%)}
.privacy-topbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:96px;padding:18px clamp(24px,5vw,86px);background:#fff;border-bottom:1px solid #e9ebef}
.privacy-logo-link{display:inline-flex;align-items:center;text-decoration:none}
.privacy-logo-link img{width:210px;max-height:70px;object-fit:contain}
.privacy-back-link{display:inline-flex;align-items:center;gap:8px;margin-right:190px;color:#4d5663;text-decoration:none;font-size:.92rem;font-weight:700;white-space:nowrap}
.privacy-back-link:hover{color:#b5121b}
.privacy-main{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:42px 0 72px}
.privacy-panel{background:#fff;border:1px solid #e4e7ec;border-radius:24px;box-shadow:0 18px 45px rgba(31,41,55,.07)}
.privacy-hero{padding:38px 42px;margin-bottom:22px}
.privacy-kicker{display:inline-block;margin-bottom:10px;color:#b5121b;font-size:.79rem;font-weight:800;letter-spacing:.12em}
.privacy-hero h1{margin:0;max-width:900px;color:#1f2933;font-size:clamp(2rem,3.1vw,3.2rem);line-height:1.07;letter-spacing:-.03em}
.privacy-hero p{max-width:860px;margin:18px 0 0;color:#5f6875;font-size:1rem;line-height:1.7}
.privacy-meta{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:20px;color:#8a93a0;font-size:.87rem}
.privacy-content{overflow:hidden}
.privacy-section{display:grid;grid-template-columns:56px 1fr;gap:20px;padding:28px 38px;border-bottom:1px solid #edf0f3}
.privacy-section:last-child{border-bottom:0}
.privacy-index{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#fff3f3;color:#b5121b;font-size:.78rem;font-weight:800}
.privacy-section h2{margin:2px 0 8px;color:#222934;font-size:1.06rem}
.privacy-section p{margin:0;color:#59616d;line-height:1.68}
.privacy-warning{margin-top:16px;padding:15px 17px;border:1px solid #f3c7ca;border-radius:12px;background:#fff8f8;color:#5f3033;line-height:1.55}
.privacy-actions{display:flex;justify-content:flex-end;margin-top:22px}
.live-validation{display:block;margin-top:8px;min-height:20px;font-size:.82rem;font-weight:700;line-height:1.35}
.live-validation.is-valid{color:#137a4a}
.live-validation.is-invalid{color:#b42318}
.live-validation.is-neutral{color:#697386}
.registration-form .field-error{margin-top:7px}
@media(max-width:900px){.privacy-back-link{margin-right:0}}
@media(max-width:700px){.privacy-topbar{min-height:80px;padding:14px 18px}.privacy-logo-link img{width:170px}.privacy-back-link span:last-child{display:none}.privacy-main{width:min(100% - 20px,1120px);padding:24px 0 48px}.privacy-hero{padding:26px 22px}.privacy-section{grid-template-columns:1fr;padding:24px 22px;gap:12px}.privacy-index{width:40px;height:40px}.privacy-actions{justify-content:stretch}.privacy-actions .btn{width:100%;justify-content:center}}
