:root {
    color-scheme: light;
    --primary: #407fa3;
    --secondary: #2e6688;
    --accent: #f1c94b;
    --primary-fg: #fff;
    --body-fg: #243541;
    --body-bg: #f4f6f9;
    --body-quiet-color: #6b7882;
    --body-medium-color: #475762;
    --body-loud-color: #14242e;
    --header-color: #243541;
    --header-bg: #fff;
    --header-link-color: #2e6688;
    --breadcrumbs-fg: #687680;
    --breadcrumbs-link-fg: #397b9f;
    --breadcrumbs-bg: transparent;
    --link-fg: #28779f;
    --link-hover-color: #155d82;
    --link-selected-fg: #174f6d;
    --hairline-color: #e1e6ea;
    --border-color: #d5dde2;
    --error-fg: #b42318;
    --message-success-bg: #e7f6ed;
    --message-warning-bg: #fff5d6;
    --message-error-bg: #fde8e7;
    --darkened-bg: #f3f6f8;
    --selected-bg: #e8f1f6;
    --selected-row: #f0f7fa;
    --button-fg: #fff;
    --button-bg: #3f84aa;
    --button-hover-bg: #2f7196;
    --default-button-bg: #347c9f;
    --default-button-hover-bg: #286984;
    --close-button-bg: #7b858c;
    --close-button-hover-bg: #626c73;
    --delete-button-bg: #ba4a45;
    --delete-button-hover-bg: #9e3935;
    --object-tools-fg: #fff;
    --object-tools-bg: #3f84aa;
    --object-tools-hover-bg: #2f7196;
    --sidebar-bg: #0d2232;
    --sidebar-text: #c4d0d8;
    --sidebar-muted: #7e91a0;
    --sidebar-active: #244f69;
    --sidebar-wide: 258px;
    --sidebar-narrow: 76px;
}

* { box-sizing: border-box; }
html[data-theme="dark"] { color-scheme: light; }
body { background: var(--body-bg); min-width: 0; }
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 2px solid #5aa6cf; outline-offset: 2px; }
.satvos-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.satvos-shell { min-height: 100vh; }

#satvos-sidebar {
    background: var(--sidebar-bg); bottom: 0; color: var(--sidebar-text); display: flex;
    flex-direction: column; left: 0; position: fixed; top: 0; width: var(--sidebar-wide);
    z-index: 100; transition: width .22s ease, transform .22s ease;
}
.satvos-brand { align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; height: 82px; justify-content: space-between; margin: 0 18px; padding: 0 8px; position: relative; }
.satvos-brand a { align-items: center; color: #fff; display: flex; min-width: 0; text-decoration: none; }
.satvos-brand img { max-height: 48px; max-width: 155px; object-fit: contain; }
.brand-full { color: #fff; font-size: 25px; font-weight: 700; letter-spacing: 2px; }
.brand-short { color: var(--accent); display: none; font-size: 25px; font-weight: 800; }
.sidebar-collapse, .mobile-menu, .icon-button, .account-button { background: transparent; border: 0; cursor: pointer; margin: 0; padding: 0; }
.sidebar-collapse { align-items: center; background: #fff; border: 1px solid #dbe3e8; border-radius: 50%; color: #315f79; display: flex; height: 30px; justify-content: center; position: absolute; right: -33px; width: 30px; }
.sidebar-collapse svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 22px; transform: rotate(180deg); }

.satvos-nav { display: flex; flex: 1; flex-direction: column; gap: 6px; overflow-y: auto; padding: 24px 14px; }
.satvos-nav a { align-items: center; border-radius: 9px; color: var(--sidebar-text); display: flex; font-size: 15px; font-weight: 600; gap: 15px; min-height: 48px; padding: 0 15px; text-decoration: none; white-space: nowrap; }
.satvos-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.satvos-nav svg, .sidebar-user svg { fill: none; flex: 0 0 23px; height: 23px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 23px; }
.sensoneo-dashboard .nav-sensoneo,
.dashboard .nav-dashboard, .model-project .nav-project, .model-customer .nav-customer,
.model-workitem .nav-workitem, .model-timeentry .nav-timeentry, .model-employee .nav-employee,
.model-calendarevent .nav-calendarevent,
.model-debt .nav-debt, .model-debtattachment .nav-debt,
.model-systemsettings .nav-systemsettings, .model-telegramaccount .nav-telegramaccount,
.model-telegramupdate .nav-telegramupdate, .model-user .nav-user, .model-group .nav-group { background: var(--sidebar-active); color: #fff; }
.sidebar-user { border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 8px; margin: 0 14px; padding: 12px 14px; }
.sidebar-user__identity { align-items: center; display: flex; gap: 12px; width: 100%; }
.sidebar-user__identity { flex-direction: row; }
.sidebar-user__identity > div { display: flex; flex-direction: column; min-width: 0; }
.sidebar-user strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span { color: var(--sidebar-muted); font-size: 12px; margin-top: 3px; }
.sidebar-user form { margin: 0; width: 100%; }
.sidebar-logout { align-items: center; background: rgba(255,255,255,.06); border: 0; border-radius: 7px; color: var(--sidebar-text); cursor: pointer; display: flex; font: inherit; gap: 11px; min-height: 40px; padding: 7px 10px; width: 100%; }
.sidebar-logout:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-logout span { font-size: 13px; font-weight: 600; margin: 0; }

.satvos-page { margin-left: var(--sidebar-wide); min-height: 100vh; transition: margin-left .22s ease; }
#header { align-items: center; background: #fff; box-shadow: 0 1px 0 #e2e7eb; color: var(--body-fg); display: flex; height: 72px; justify-content: flex-end; padding: 0 32px; position: relative; z-index: 70; }
.header-spacer { flex: 1; }
.header-actions { align-items: center; display: flex; gap: 10px; }
.mobile-menu { color: #37576a; display: none; }
.mobile-menu svg { fill: none; height: 25px; stroke: currentColor; stroke-width: 2; width: 25px; }
.dropdown { position: relative; }
.icon-button { align-items: center; border-radius: 50%; color: #3e83a9; display: flex; height: 42px; justify-content: center; position: relative; width: 42px; }
.icon-button:hover, .account-button:hover { background: #eef5f8; }
.icon-button svg { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 24px; }
.notification-badge { align-items: center; background: #d84d43; border: 2px solid #fff; border-radius: 12px; color: #fff; display: flex; font-size: 10px; font-weight: 700; height: 20px; justify-content: center; min-width: 20px; padding: 0 4px; position: absolute; right: -1px; top: -1px; }
.account-button { align-items: center; border-radius: 24px; color: var(--body-fg); display: flex; gap: 9px; min-height: 44px; padding: 4px 10px 4px 5px; }
.account-avatar { align-items: center; background: #3f84aa; border-radius: 50%; color: #fff; display: flex; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.account-name { font-weight: 600; }
.account-arrow { color: #6d7b84; font-size: 16px; }
.dropdown-panel { background: #fff; border: 1px solid #dde4e8; border-radius: 10px; box-shadow: 0 14px 40px rgba(31,48,60,.18); display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 140; }
.dropdown.open .dropdown-panel { display: block; }
.account-panel { min-width: 220px; padding: 8px; }
.account-panel a, .account-panel button { align-items: center; background: none; border: 0; border-radius: 7px; color: #253742; cursor: pointer; display: flex; font: inherit; gap: 10px; padding: 11px 12px; text-align: left; text-decoration: none; width: 100%; }
.account-panel a:hover, .account-panel button:hover { background: #eef5f8; }
.account-panel svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 19px; }
.notification-panel { max-height: 520px; min-width: 380px; overflow-y: auto; }
.panel-heading { align-items: center; border-bottom: 1px solid #e5eaed; display: flex; font-size: 16px; justify-content: space-between; padding: 16px 18px; }
.panel-heading span { background: #eaf3f7; border-radius: 12px; color: #347c9f; font-size: 12px; padding: 3px 8px; }
.notification-item { border-bottom: 1px solid #edf0f2; display: flex; flex-direction: column; padding: 13px 18px; text-decoration: none; }
.notification-item:hover { background: #f6f9fa; }
.notification-item strong { color: #243541; font-size: 13px; }
.notification-item span { color: #667680; font-size: 12px; margin-top: 3px; }
.notification-item time { color: #3b7f9f; font-size: 11px; margin-top: 5px; }
.notification-item.overdue time { color: #b42318; font-weight: 700; }
.notification-item.read { opacity: .72; }
.empty-notifications { color: #71808a; margin: 0; padding: 26px 18px; text-align: center; }
.notification-actions { background: #f6f8fa; border-top: 1px solid #e5eaed; padding: 10px 18px; position: sticky; bottom: 0; }
.notification-actions button { background: transparent; border: 0; color: #28779f; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 0; width: 100%; }
.notification-actions button:hover { color: #155d82; }

.timer-button { align-items: center; background: #edf7f1; border: 1px solid #cce5d6; border-radius: 22px; color: #246846; cursor: pointer; display: flex; gap: 8px; min-height: 44px; padding: 5px 13px 5px 10px; }
.timer-button:hover { background: #e2f2e8; }
.timer-button svg { fill: none; height: 23px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 23px; }
.timer-button__details { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.timer-button__details strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.timer-button__details small { color: #5b7568; font-size: 10px; margin-top: 2px; }
.timer-panel { min-width: 330px; }
.timer-panel__body { padding: 16px 18px 18px; }
.timer-panel__body > a { color: #244b60; display: block; line-height: 1.4; text-decoration: none; }
.timer-panel__body > p { color: #71808a; font-size: 12px; margin: 7px 0 0; }
.timer-panel__time { color: #1f5f41; font-size: 30px; font-variant-numeric: tabular-nums; font-weight: 700; margin: 17px 0; text-align: center; }
.timer-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.timer-panel__actions form { margin: 0; }
.timer-action, .timer-start-button { border: 0; border-radius: 7px; color: #fff; cursor: pointer; font: inherit; font-weight: 600; min-height: 38px; padding: 9px 15px; }
.timer-action--pause { background: #d3942c; }
.timer-action--resume, .timer-start-button { background: #36865d; }
.timer-action--finish { background: #3f718f; }
.timer-action--cancel { background: #c43f3f; }
.timer-action:hover, .timer-start-button:hover { filter: brightness(.92); }
.header-timer-start { margin: 0; }

body.sidebar-collapsed #satvos-sidebar { width: var(--sidebar-narrow); }
body.sidebar-collapsed .satvos-page { margin-left: var(--sidebar-narrow); }
body.sidebar-collapsed .satvos-brand { justify-content: center; margin: 0 8px; padding: 0; }
body.sidebar-collapsed .brand-full, body.sidebar-collapsed .satvos-brand img, body.sidebar-collapsed .satvos-nav span, body.sidebar-collapsed .sidebar-user__identity, body.sidebar-collapsed .sidebar-logout span { display: none; }
body.sidebar-collapsed .brand-short { display: inline; }
body.sidebar-collapsed .sidebar-collapse { right: -25px; }
body.sidebar-collapsed .sidebar-collapse svg { transform: rotate(0); }
body.sidebar-collapsed .satvos-nav { padding-left: 10px; padding-right: 10px; }
body.sidebar-collapsed .satvos-nav a { justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-user { align-items: center; margin: 0 10px; padding: 10px 0; }
body.sidebar-collapsed .sidebar-logout { justify-content: center; padding: 7px; }

nav[aria-label="Kelias"] { background: transparent; }
div.breadcrumbs { background: transparent; border: 0; color: #7a8790; font-size: 13px; padding: 20px 34px 0; }
div.breadcrumbs a { color: #3c7d9f; }
div.breadcrumbs span { margin: 0 8px; }
.content { padding: 0; }
#content { background: transparent; border: 0; box-shadow: none; margin: 0; padding: 28px 34px 46px; }
#content > h1 { color: #172a35; font-size: 27px; font-weight: 600; margin: 0 0 24px; }
#content-main { min-width: 0; }
.module, .inline-group { background: #fff; border: 1px solid #e0e6ea; border-radius: 8px; box-shadow: 0 2px 7px rgba(29,48,60,.05); overflow: hidden; }
.module h2, .module caption, .inline-group h2 { background: #edf4f7; color: #244b60; }
.object-tools { margin-top: -55px; }
.object-tools a { border-radius: 7px; padding: 9px 14px; }
.change-list .object-tools, .change-form .onecode-form-tools { display: flex; float: none; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0 0 14px; position: static; }
.change-list .object-tools li, .change-form .onecode-form-tools li { float: none; margin: 0; }
.onecode-back-link { background: #627784 !important; }
.onecode-back-link:hover { background: #4f6572 !important; }

#changelist { background: #fff; border: 1px solid #e0e6ea; border-radius: 9px; box-shadow: 0 2px 8px rgba(29,48,60,.06); overflow: visible; }
#changelist .changelist-form-container { float: none; width: 100% !important; }
#changelist.filtered .results, #changelist.filtered .paginator, #changelist.filtered #toolbar, #changelist.filtered div.xfull { margin-right: 0 !important; width: auto !important; }
#toolbar { align-items: center; background: #f2f5f7; border-bottom: 1px solid #e0e6ea; display: flex; min-height: 72px; padding: 14px 18px; }
#toolbar form { align-items: center; display: flex; flex: 1; }
.search-controls { align-items: center; display: flex; flex: 1; gap: 10px; position: relative; }
.search-controls label { align-items: center; display: flex; height: 40px; justify-content: center; left: 12px; margin: 0; position: absolute; width: 20px; z-index: 1; }
.search-controls label img { height: 17px; opacity: .65; width: 17px; }
#toolbar #searchbar { background: #fff; border: 1px solid #ccd6dc; border-radius: 7px; height: 40px; margin: 0; max-width: 410px; padding: 0 14px 0 39px; width: 100%; }
#toolbar input.search-submit { border-radius: 6px; flex: 0 0 auto; height: 36px; margin: 0; padding: 0 15px; width: auto; }
.filter-toggle { align-items: center; background: #fff; border: 1px solid #ccd6dc; border-radius: 50%; color: #347c9f; cursor: pointer; display: flex; height: 42px; justify-content: center; margin-left: 12px; width: 42px; }
.filter-toggle:hover, .filter-toggle.active { background: #347c9f; color: #fff; }
.filter-toggle svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 20px; }
#changelist-filter { background: #fff; border: 0; border-left: 1px solid #dbe2e6; border-radius: 0; bottom: 0; box-shadow: -12px 0 35px rgba(26,44,55,.16); display: block !important; margin: 0; max-width: 88vw; overflow-y: auto; padding-bottom: 35px; position: fixed; right: 0; top: 0; transform: translateX(105%); transition: transform .22s ease; width: 360px; z-index: 210; }
body.filter-open #changelist-filter { transform: translateX(0); }
#changelist-filter h2 { align-items: center; background: #347c9f; color: #fff; display: flex; font-size: 17px; height: 64px; justify-content: space-between; padding: 0 22px; }
#changelist-filter h3 { color: #334953; font-size: 13px; padding: 14px 22px 6px; }
#changelist-filter ul { padding: 0 22px 10px; }
#changelist-filter li { margin: 4px 0; }
.filter-close { background: none; border: 0; color: #fff; cursor: pointer; font-size: 25px; line-height: 1; }
.filter-backdrop { background: rgba(11,26,36,.32); display: none; inset: 0; position: fixed; z-index: 200; }
body.filter-open .filter-backdrop { display: block; }
.results { overflow-x: auto; }
#result_list { min-width: 780px; }
#result_list thead th { background: #fff; color: #51616b; padding: 15px 10px; }
#result_list tbody tr:nth-child(odd) { background: #f8fafb; }
#result_list tbody tr:hover { background: #edf5f8; }
#result_list td, #result_list th { padding: 13px 10px; }
.model-project #result_list .field-number { min-width: 132px; white-space: nowrap; }
.model-project #result_list .field-customer { font-weight: 700; min-width: 170px; }
.project-progress { background: #dfe8ec; border-radius: 8px; display: inline-block; height: 8px; overflow: hidden; vertical-align: middle; width: 72px; }
.project-progress > span { background: #4b9a70; display: block; height: 100%; }
.project-progress-value { display: inline-block; margin-left: 7px; min-width: 34px; }

.dashboard #content { max-width: none; width: auto; }
.dashboard #content-main { max-width: none; width: 100%; }
.dashboard-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(190px, 1fr)); margin-bottom: 22px; width: 100%; }
.stat-card { background: #fff; border: 1px solid #e0e6ea; border-left: 4px solid #3f84aa; border-radius: 9px; box-shadow: 0 2px 7px rgba(29,48,60,.05); display: flex; flex-direction: column; padding: 21px 22px; text-decoration: none; }
.stat-card:hover { box-shadow: 0 6px 18px rgba(29,48,60,.10); transform: translateY(-1px); }
.stat-card span { color: #6b7882; font-size: 13px; }
.stat-card strong { color: #1d3441; font-size: 27px; margin-top: 8px; }
.stat-card.money strong { white-space: nowrap; }
.stat-card.danger { border-left-color: #d65a50; }
.stat-card.danger strong { color: #b42318; }
.stat-card.money { border-left-color: #4b9a70; }
.dashboard-columns { display: grid; gap: 22px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.dashboard-card { background: #fff; border: 1px solid #e0e6ea; border-radius: 9px; box-shadow: 0 2px 7px rgba(29,48,60,.05); overflow: hidden; }
.card-heading { align-items: center; border-bottom: 1px solid #e6ebee; display: flex; justify-content: space-between; padding: 17px 20px; }
.card-heading h2 { color: #223944; font-size: 16px; margin: 0; }
.card-heading span { background: #eaf3f7; border-radius: 14px; color: #347c9f; font-size: 12px; padding: 3px 9px; }
.timer-card { margin-bottom: 22px; }
.timer-start-form { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(210px, 1.2fr) minmax(190px, 1fr) minmax(220px, 1.4fr) auto auto; padding: 18px 20px 20px; }
.timer-start-form label { color: #4a5d68; display: flex; flex-direction: column; font-size: 12px; font-weight: 600; gap: 6px; }
.timer-start-form label small { color: #80909a; font-weight: 400; }
.timer-start-form select, .timer-start-form input[type="text"] { background: #fff; border: 1px solid #ccd6dc; border-radius: 7px; color: #263b47; font: inherit; height: 42px; max-width: none; padding: 0 11px; width: 100%; }
.timer-start-form .timer-billable { align-items: center; flex-direction: row; gap: 7px; height: 42px; white-space: nowrap; }
.timer-start-form .timer-billable input { margin: 0; }
.timer-start-button { height: 42px; }
.timer-card__active { align-items: center; display: grid; gap: 18px; grid-template-columns: minmax(220px, 1fr) auto auto; padding: 18px 20px 20px; }
.timer-card__active > div:first-child { display: flex; flex-direction: column; }
.timer-card__active > div:first-child strong { color: #294554; }
.timer-card__active > div:first-child span { color: #71808a; font-size: 12px; margin-top: 5px; }
.timer-card__clock { color: #246846; font-size: 27px; font-variant-numeric: tabular-nums; font-weight: 700; }
.timer-quick-start { align-items: center; display: flex; gap: 18px; justify-content: space-between; padding: 20px; }
.timer-quick-start > div { display: flex; flex-direction: column; }
.timer-quick-start strong { color: #294554; }
.timer-quick-start span, .timer-finish-intro { color: #71808a; font-size: 13px; margin-top: 5px; }
.timer-finish-card { max-width: 850px; }
.timer-finish-form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; padding: 0 20px 22px; }
.timer-finish-card > .timer-finish-intro, .timer-finish-card > .errornote { margin-left: 20px; margin-right: 20px; }
.timer-finish-form label { color: #4a5d68; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 6px; }
.timer-finish-form select, .timer-finish-form input[type="text"] { background: #fff; border: 1px solid #ccd6dc; border-radius: 7px; box-sizing: border-box; color: #263b47; font: inherit; min-height: 42px; padding: 8px 11px; width: 100%; }
.timer-finish-form .timer-billable { align-items: center; flex-direction: row; }
.timer-project-field { position: relative; }
.timer-new-project { align-self: flex-start; color: #28789e; font-size: 12px; font-weight: 600; text-decoration: none; }
.timer-new-project:hover { text-decoration: underline; }
.timer-finish-actions { align-items: center; display: flex; gap: 10px; grid-column: 1 / -1; }
.object-tools li form { margin: 0; }
.time-report-card { align-items: end; background: #fff; border: 1px solid #dce5e9; border-radius: 9px; display: grid; gap: 18px; grid-template-columns: minmax(220px, .8fr) minmax(520px, 1.4fr); margin-bottom: 20px; padding: 18px 20px; }
.time-report-card h2 { color: #294554; font-size: 17px; margin: 0 0 5px; }
.time-report-card p { color: #71808a; font-size: 12px; margin: 0; }
.time-report-card form { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(170px, 1.2fr) repeat(2, minmax(125px, .75fr)) auto auto; }
.time-report-card label { color: #4a5d68; display: flex; flex-direction: column; font-size: 11px; font-weight: 600; gap: 5px; }
.time-report-card select, .time-report-card input { border: 1px solid #ccd6dc; border-radius: 6px; box-sizing: border-box; font: inherit; min-height: 38px; padding: 7px 9px; width: 100%; }
.time-report-card .time-report-amounts { align-items: center; flex-direction: row; font-size: 12px; min-height: 38px; white-space: nowrap; }
.time-report-card .time-report-amounts input { min-height: 0; width: auto; }
.time-report-card button { background: #3f84aa; border: 0; border-radius: 7px; color: #fff; cursor: pointer; font: inherit; font-weight: 600; min-height: 38px; padding: 8px 13px; white-space: nowrap; }
body.model-timeentry.change-list .object-tools { display: flex; float: none; justify-content: flex-end; margin: 0 0 14px; position: static; }
.dashboard-notification { align-items: center; border-bottom: 1px solid #edf0f2; display: flex; justify-content: space-between; padding: 13px 20px; text-decoration: none; }
.dashboard-notification:hover { background: #f7fafb; }
.dashboard-notification div { display: flex; flex-direction: column; }
.dashboard-notification strong { color: #2a3e49; font-size: 13px; }
.dashboard-notification span { color: #74818a; font-size: 12px; margin-top: 4px; }
.dashboard-notification time { color: #397d9f; font-size: 12px; margin-left: 15px; }
.dashboard-notification.overdue time { color: #b42318; font-weight: 700; }
.dashboard-empty { color: #74818a; margin: 0; padding: 35px 20px; text-align: center; }
.quick-actions { display: grid; gap: 10px; padding: 18px; }
.quick-actions a { background: #edf5f8; border-radius: 7px; color: #286e91; font-weight: 600; padding: 12px 14px; text-decoration: none; }
.quick-actions a:hover { background: #dfedf3; }
.debt-summary-strip { align-items: stretch; background: #fff; border: 1px solid #dce5e9; border-radius: 9px; display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; margin-bottom: 18px; overflow: hidden; }
.debt-summary-strip > div { display: flex; flex-direction: column; padding: 14px 17px; }
.debt-summary-strip span { color: #71808a; font-size: 11px; }
.debt-summary-strip strong { color: #294554; font-size: 18px; margin-top: 4px; }
.debt-summary-strip .danger strong { color: #b42318; }
.debt-summary-strip > a { align-items: center; background: #f8f7fc; color: #6545b5; display: flex; font-weight: 700; padding: 14px 18px; text-decoration: none; }
.debt-summary-strip > a:hover { background: #f1eef9; }
.debt-progress { background: #e5ecef; border-radius: 999px; display: inline-block; height: 8px; margin-right: 8px; overflow: hidden; vertical-align: middle; width: 150px; }
.debt-progress span { background: #36865d; display: block; height: 100%; }
.onecode-debt-installments td, .onecode-debt-payments td { vertical-align: middle; }
.inline-group .tabular fieldset.onecode-debt-installments tr.has_original td,
.inline-group .tabular fieldset.onecode-debt-payments tr.has_original td { padding-top: 8px; }
.inline-group .tabular fieldset.onecode-debt-installments td.original p,
.inline-group .tabular fieldset.onecode-debt-payments td.original p,
.onecode-debt-installments td.original p,
.onecode-debt-payments td.original p { display: none !important; }
.debt-ai-metrics { grid-template-columns: repeat(3, minmax(160px, 1fr)); }

.ai-dashboard-card { border-left: 4px solid #7657c5; margin-bottom: 22px; padding-bottom: 18px; }
.ai-dashboard-card .card-heading > div { display: flex; flex-direction: column; gap: 4px; }
.ai-dashboard-card .card-heading { border-bottom: 0; padding-bottom: 8px; }
.ai-dashboard-card > p { color: #586b76; margin: 0; padding: 0 20px 14px; }
.ai-eyebrow { color: #7657c5 !important; font-size: 10px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-dashboard-items { display: grid; gap: 1px; padding: 0 20px 16px; }
.ai-dashboard-items a { background: #f8f7fc; border-left: 3px solid #b4a4e0; display: flex; flex-direction: column; padding: 10px 12px; text-decoration: none; }
.ai-dashboard-items a:hover { background: #f1eef9; }
.ai-dashboard-items strong { color: #2f3e48; font-size: 13px; }
.ai-dashboard-items span { color: #6d7981; font-size: 12px; margin-top: 3px; }
.ai-summary-link { color: #6545b5; font-weight: 700; margin-left: 20px; text-decoration: none; }

.ai-manager-summary-page #content { max-width: 1180px; }
.ai-summary-page { display: grid; gap: 20px; }
.ai-summary-hero { align-items: center; background: linear-gradient(135deg, #faf9fd, #f0f5f8); display: flex; justify-content: space-between; padding: 24px; }
.ai-summary-hero h1 { color: #253d49; font-size: 25px; margin: 5px 0 7px; }
.ai-summary-hero p { color: #63737c; margin: 0; }
.ai-summary-hero form { align-items: flex-end; display: flex; flex-direction: column; gap: 7px; margin-left: 24px; }
.ai-summary-hero form small { color: #77858d; }
.ai-generate-button { background: #6847b8; border: 0; border-radius: 7px; color: #fff; cursor: pointer; font-weight: 700; padding: 11px 16px; }
.ai-generate-button:hover { background: #57389e; }
.ai-generate-button:disabled { background: #a8aeb3; cursor: not-allowed; opacity: .75; }
.ai-metrics-grid { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.ai-metrics-grid > div { background: #fff; border: 1px solid #e0e6ea; border-radius: 8px; display: flex; flex-direction: column; padding: 15px; }
.ai-metrics-grid span { color: #73818a; font-size: 11px; }
.ai-metrics-grid strong { color: #243b47; font-size: 20px; margin-top: 6px; }
.ai-generated-card { border-left: 4px solid #7657c5; }
.ai-generated-headline { color: #405761; line-height: 1.5; margin: 0; padding: 17px 20px 5px; }
.ai-insight-list { display: grid; gap: 12px; padding: 14px 20px 20px; }
.ai-insight { background: #f8f7fc; border: 1px solid #e5e0f2; border-left: 4px solid #8c73ca; border-radius: 8px; padding: 14px 16px; }
.ai-insight--high { border-left-color: #b42318; }
.ai-insight--low { border-left-color: #4c91b1; }
.ai-insight__heading { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.ai-insight__heading strong { color: #2d414b; }
.ai-insight__heading span { background: #eee9f8; border-radius: 999px; color: #6545b5; flex: 0 0 auto; font-size: 10px; font-weight: 700; padding: 5px 8px; }
.ai-insight--high .ai-insight__heading span { background: #fbe9e7; color: #a51d14; }
.ai-insight--low .ai-insight__heading span { background: #eaf3f7; color: #347c9f; }
.ai-insight p { color: #536873; line-height: 1.5; margin: 10px 0 0; }
.ai-insight p b { color: #2d414b; }
.ai-insight > a { color: #6545b5; display: inline-block; font-weight: 700; margin-top: 12px; text-decoration: none; }
.ai-insight > a:hover { text-decoration: underline; }
.ai-error { color: #9b2c24; margin: 0; padding: 20px; }
.ai-local-analysis { overflow: hidden; }
.ai-local-analysis > summary { align-items: center; color: #344b56; cursor: pointer; display: flex; font-weight: 700; justify-content: space-between; list-style: none; padding: 17px 20px; }
.ai-local-analysis > summary::-webkit-details-marker { display: none; }
.ai-local-analysis > summary::before { color: #7657c5; content: "›"; font-size: 24px; line-height: 1; margin-right: 10px; transform: rotate(0); transition: transform .15s ease; }
.ai-local-analysis[open] > summary::before { transform: rotate(90deg); }
.ai-local-analysis > summary span { flex: 1; }
.ai-local-analysis > summary small { color: #7a8790; font-size: 11px; font-weight: 500; }
.ai-local-analysis > summary:hover { background: #faf9fd; }
.ai-local-analysis__content { border-top: 1px solid #edf0f2; display: grid; gap: 16px; padding: 16px; }
.ai-local-analysis__content > .dashboard-card { border: 1px solid #e5eaed; box-shadow: none; margin: 0; }
.ai-priority-list { display: grid; gap: 1px; }
.ai-priority-item { align-items: start; border-bottom: 1px solid #edf0f2; display: grid; gap: 15px; grid-template-columns: 38px minmax(0, 1fr); padding: 18px 20px; text-decoration: none; }
.ai-priority-item:hover { background: #f8fafb; }
.ai-priority-number { align-items: center; background: #e9f1f5; border-radius: 50%; color: #347c9f; display: flex; font-size: 15px; font-weight: 800; height: 36px; justify-content: center; width: 36px; }
.ai-priority-item--danger .ai-priority-number { background: #fbe9e7; color: #b42318; }
.ai-priority-body { display: flex; flex-direction: column; min-width: 0; }
.ai-priority-body > strong { color: #2d414b; font-size: 15px; }
.ai-priority-body > small { color: #73818a; font-size: 12px; margin-top: 4px; }
.ai-priority-impact { color: #9b2c24; font-size: 12px; font-weight: 700; margin-top: 10px; }
.ai-priority-action { background: #f4f7f9; border-radius: 6px; color: #3f545f; line-height: 1.45; margin-top: 8px; padding: 9px 11px; }
.ai-priority-action b { color: #283f4b; }
.ai-management-signal { align-items: start; border-bottom: 1px solid #edf0f2; display: grid; gap: 18px; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); padding: 15px 20px; text-decoration: none; }
.ai-management-signal:hover { background: #f8fafb; }
.ai-management-signal > span { color: #536873; line-height: 1.45; }
.ai-management-signal > span:first-child { display: flex; flex-direction: column; }
.ai-management-signal strong { color: #2d414b; font-size: 13px; }
.ai-management-signal small { color: #9b2c24; font-size: 12px; margin-top: 4px; }
.ai-notification-note { background: #eef5f8; border-left: 4px solid #4c91b1; color: #47606c; margin: 0; padding: 13px 16px; }
.ai-privacy-note { color: #70808a; font-size: 12px; margin: -4px 2px 0; }

.aligned label { color: #3e4f59; }
input, textarea, select, .vTextField { background: #fff; color: #1e2b34; border-color: #bcc8cf; }
.onecode-attachments, .onecode-comments { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0 12px 12px; }
.onecode-comments { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.onecode-invoices td { vertical-align: middle; }
.onecode-invoices .original p { display: none; }
fieldset.onecode-timeentries td.original > p { display: none !important; }
.onecode-invoices input[type="text"], .onecode-invoices input[type="number"] { max-width: 150px; width: 100%; }
.onecode-invoices .field-purpose input { min-width: 145px; }
.onecode-invoices .field-invoice_number input { min-width: 125px; }
body.model-project.change-form .inline-group .tabular.inline-related {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
body.model-project.change-form .inline-group .tabular.inline-related > fieldset.module { min-width: 900px; }
.onecode-attachments > h2, .onecode-comments > h2,
.onecode-attachments > .add-row, .onecode-comments > .add-row,
.onecode-attachments > .nonform, .onecode-comments > .nonform { grid-column: 1 / -1; margin-left: -12px; margin-right: -12px; }
.onecode-attachments .inline-related, .onecode-comments .inline-related { background: #fff; border: 1px solid #dfe6ea; border-radius: 9px; min-width: 0; overflow: hidden; }
.onecode-attachments .inline-related:not(.has_original), .onecode-comments .inline-related:not(.has_original) { grid-column: 1 / -1; }
.onecode-attachments .inline-related h3, .onecode-comments .inline-related h3 { align-items: center; background: #f7f9fa; border-color: #e5eaed; color: #62717b; display: flex; min-height: 32px; padding: 6px 9px; }
.onecode-attachments .has_original > h3 b, .onecode-attachments .has_original > h3 .inline_label,
.onecode-comments .has_original > h3 b, .onecode-comments .has_original > h3 .inline_label { display: none; }
.onecode-attachments .has_original > h3 span.delete, .onecode-comments .has_original > h3 span.delete { float: none; margin-left: auto; }
.onecode-attachments .has_original fieldset, .onecode-comments .has_original fieldset { background: #fff; }
.onecode-attachments .has_original .form-row, .onecode-comments .has_original .form-row { padding: 8px 11px; }
.onecode-attachments .has_original .form-row .flex-container { align-items: stretch; flex-direction: column; }
.onecode-attachments .has_original .form-row label { min-width: 0; padding: 0 0 5px; width: auto; }
.onecode-attachments .has_original .field-file_card label { display: none; }
.onecode-comments .has_original .field-comment_card .flex-container { display: block; }
.onecode-comments .has_original .field-comment_card label { display: none; }
.onecode-attachments .has_original .field-file, .onecode-attachments .has_original .field-file .help { display: none; }
.onecode-attachments .inline-related:not(.has_original) .field-file_card,
.onecode-comments .inline-related:not(.has_original) .field-comment_card { display: none; }
.attachment-card { align-items: center; background: #f7fafc; border: 1px solid #dce5ea; border-radius: 8px; display: flex; gap: 10px; max-width: none; padding: 10px; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.attachment-card:hover { border-color: #8bb9d0; box-shadow: 0 4px 12px rgba(29,48,60,.08); }
.attachment-file-icon { align-items: center; background: #6d7b84; border-radius: 6px; color: #fff; display: flex; flex: 0 0 38px; font-size: 9px; font-weight: 800; height: 44px; justify-content: center; letter-spacing: -.2px; position: relative; width: 38px; }
.attachment-file-icon::after { border-left: 9px solid transparent; border-top: 9px solid rgba(255,255,255,.75); content: ""; position: absolute; right: 0; top: 0; }
.attachment-file-icon--pdf { background: #d14b45; }
.attachment-file-icon--word { background: #2f72b7; font-size: 19px; }
.attachment-file-icon--excel, .attachment-file-icon--csv { background: #2f8a5d; font-size: 18px; }
.attachment-file-icon--image { background: #7967ad; }
.attachment-file-icon--text { background: #607786; }
.attachment-card__details { display: flex; flex-direction: column; min-width: 0; }
.attachment-card__details strong { color: #243b48; font-size: 13px; overflow-wrap: anywhere; }
.attachment-card__details span { color: #70808a; font-size: 11px; margin-top: 3px; }
.onecode-attachments .field-description input { max-width: none; width: 100%; }
.onecode-comments .has_original .field-text { display: none; }
.onecode-comments .has_original.comment-is-editing .field-text { display: block; }
.onecode-comments .field-text textarea { max-width: none; min-height: 140px; width: 100%; }
.comment-card { max-width: none; padding: 2px 0; }
.comment-card__meta { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.comment-card__meta strong { color: #294554; }
.comment-card__meta time { color: #75848d; font-size: 12px; }
.comment-card__text { -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: #334650; display: -webkit-box; line-height: 1.5; margin-top: 9px; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-card.comment-is-expanded .comment-card__text { -webkit-line-clamp: unset; display: block; }
.comment-card__actions { display: flex; gap: 7px; margin-top: 10px; }
.comment-edit-toggle, .comment-expand-toggle { background: #edf5f8; border: 0; border-radius: 6px; color: #286e91; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; padding: 6px 9px; }
.comment-edit-toggle:hover, .comment-expand-toggle:hover { background: #dfedf3; }
.submit-row { background: #f3f6f8; border: 1px solid #dce3e7; border-radius: 7px; }
.submit-row a.deletelink { height: auto; line-height: normal; margin: 0; padding: 10px 15px; }
.onecode-project-submit-row { align-items: center; display: flex; justify-content: space-between; }
.onecode-project-submit-row .deletelink-box { margin: 0; }
.delete-confirmation form input[type="submit"] { min-height: 42px; padding: 10px 18px; }
.delete-confirmation form .cancel-link { align-items: center; display: inline-flex; height: auto; justify-content: center; line-height: 1.2; min-height: 42px; padding: 10px 18px; }
.password-change-card { max-width: 900px; }
.form-intro { color: #60707a; margin-bottom: 22px; }
.errorlist li { color: #b42318; }
.theme-toggle { display: none; }
.satvos-overlay { display: none; }
.settings-access { align-items: center; background: #fff; border: 1px solid #e0e6ea; border-radius: 9px; display: flex; justify-content: space-between; margin-bottom: 22px; padding: 20px 22px; }
.settings-access h2, .settings-section-title h2 { color: #233a46; font-size: 17px; margin: 0 0 6px; }
.settings-access p, .settings-section-title p { color: #71808a; margin: 0; }
.settings-access-links { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 20px; }
.settings-access-links a { background: #edf5f8; border-radius: 7px; color: #286e91; font-weight: 600; padding: 10px 13px; text-decoration: none; }
.settings-section-title { margin: 6px 0 15px; }

@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .timer-start-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .timer-description { grid-column: span 2; } }
@media (max-width: 767px) {
    body.model-order.change-form #content-main > form > div > fieldset.module {
        margin-left: 0;
        margin-right: 0;
        padding-left: 14px;
        padding-right: 14px;
    }

    body.model-order.change-form #content-main > form > div > fieldset.module > h2 {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    body.model-order.change-form .aligned .form-row {
        padding-left: 0;
        padding-right: 0;
    }

    body.model-order.change-form .aligned .form-row > div,
    body.model-order.change-form .aligned .flex-container {
        width: 100%;
    }

    body.model-order.change-form input[type="text"],
    body.model-order.change-form input[type="email"],
    body.model-order.change-form input[type="number"],
    body.model-order.change-form input[type="url"],
    body.model-order.change-form input[type="date"],
    body.model-order.change-form select,
    body.model-order.change-form textarea {
        max-width: 100%;
    }

    #satvos-sidebar { transform: translateX(-105%); width: min(290px, 88vw); }
    body.mobile-nav-open #satvos-sidebar { transform: translateX(0); }
    .satvos-page, body.sidebar-collapsed .satvos-page { margin-left: 0; }
    .sidebar-collapse { display: none; }
    #header { flex-direction: row; height: 72px; justify-content: space-between; padding: 0 20px; }
    .mobile-menu { align-items: center; background: #eef1f3; border-radius: 50%; color: #253742; display: flex; flex: 0 0 48px; height: 48px; justify-content: center; width: 48px; }
    .mobile-menu:hover { background: #e2e7ea; }
    .mobile-menu svg { height: 29px; width: 29px; }
    .header-spacer { display: none; }
    .header-actions { margin-left: auto; }
    .timer-button { border-radius: 50%; height: 48px; justify-content: center; padding: 0; width: 48px; }
    .timer-button__details { display: none; }
    .timer-panel { min-width: min(330px, calc(100vw - 24px)); right: -62px; }
    .account-dropdown { display: none; }
    .icon-button { height: 48px; width: 48px; }
    .icon-button svg { height: 28px; width: 28px; }
    .notification-panel { min-width: min(360px, calc(100vw - 24px)); right: -8px; }
    div.breadcrumbs { padding: 15px 17px 0; }
    #content { padding: 22px 16px 35px; }
    #content > h1 { font-size: 23px; }
    .dashboard-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-columns { grid-template-columns: 1fr; }
    .stat-card { min-height: 96px; padding: 13px 12px; }
    .stat-card span { font-size: 12px; line-height: 1.25; }
    .stat-card strong { font-size: 23px; margin-top: 7px; }
    .stat-card.money strong { font-size: clamp(17px, 5vw, 23px); white-space: normal; }
    .ai-summary-hero { align-items: stretch; flex-direction: column; }
    .ai-summary-hero form { align-items: stretch; margin: 18px 0 0; }
    .ai-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-management-signal { grid-template-columns: 1fr; }
    .timer-start-form, .timer-card__active { align-items: stretch; grid-template-columns: 1fr; }
    .timer-quick-start { align-items: stretch; flex-direction: column; }
    .timer-finish-form { grid-template-columns: 1fr; }
    .timer-finish-actions { align-items: stretch; flex-direction: column; }
    .time-report-card { align-items: stretch; grid-template-columns: 1fr; }
    .time-report-card form { grid-template-columns: 1fr; }
    .timer-description { grid-column: auto; }
    .timer-card__clock { text-align: left; }
    #toolbar { align-items: stretch; }
    #toolbar form { flex-wrap: wrap; }
    #toolbar #searchbar { max-width: none; }
    .object-tools { margin-top: 0; }
    .onecode-project-submit-row { align-items: stretch; flex-direction: column; gap: 8px; }
    .onecode-project-submit-row input[type="submit"],
    .onecode-project-submit-row .deletelink-box,
    .onecode-project-submit-row a.deletelink { display: block; margin: 0; text-align: center; width: 100%; }
    .settings-access { align-items: stretch; flex-direction: column; }
    .settings-access-links { margin: 16px 0 0; }
    .debt-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .debt-summary-strip > a { grid-column: 1 / -1; }
    .debt-progress { max-width: 110px; width: 45vw; }
    body.mobile-nav-open .satvos-overlay { background: rgba(9,24,34,.42); display: block; inset: 0; position: fixed; z-index: 90; }
}


.model-catalogitem .nav-catalog,
.model-catalogitemattribute .nav-catalog,
.model-productgroup .nav-catalog {
    background: var(--sidebar-active);
    color: #fff;
}


.model-order .nav-order {
    background: var(--sidebar-active);
    color: #fff;
}


.field-assigned_workers .help {
    color: #71808a;
    margin-top: 6px;
}

.field-assigned_workers ul {
    background: #fff;
    border: 1px solid #dce3e7;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    max-width: 560px;
    padding: 12px 14px;
}

.field-assigned_workers li {
    margin: 0;
}

.field-assigned_workers label {
    align-items: center;
    color: #2f414c;
    cursor: pointer;
    display: flex;
    gap: 9px;
    padding: 4px 2px;
    width: auto;
}

.field-assigned_workers input[type="checkbox"] {
    margin: 0;
}


.worker-mode .object-tools {
    display: none !important;
}




.worker-mode .inline-group .add-row a {
    outline: none !important;
    text-decoration: none !important;
}

.worker-mode .inline-group .add-row a:focus,
.worker-mode .inline-group .add-row a:active {
    outline: none !important;
    text-decoration: none !important;
}


.deadline-badge {
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    line-height: 1.25;
    padding: 5px 9px;
    white-space: nowrap;
}

.deadline-badge--soon {
    background: #fff3cd;
    border: 1px solid #f0d98b;
    color: #805b00;
}

.deadline-badge--overdue {
    background: #fde8e7;
    border: 1px solid #efb1ad;
    color: #a51d14;
}


/* Order attachments: prioritize fitting comfortably on common laptop widths. */
body.model-order.change-form .order-attachments {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.model-order.change-form .order-attachments table {
    table-layout: fixed;
    width: 100%;
}

body.model-order.change-form .order-attachments th,
body.model-order.change-form .order-attachments td {
    min-width: 0;
    vertical-align: middle;
}

body.model-order.change-form .order-attachments .column-attachment_type,
body.model-order.change-form .order-attachments .field-attachment_type {
    width: 15%;
}

body.model-order.change-form .order-attachments .column-title,
body.model-order.change-form .order-attachments .field-title {
    width: 22%;
}

body.model-order.change-form .order-attachments .column-position,
body.model-order.change-form .order-attachments .field-position {
    width: 24%;
}

body.model-order.change-form .order-attachments .column-file,
body.model-order.change-form .order-attachments .field-file {
    width: 31%;
}

body.model-order.change-form .order-attachments th:last-child,
body.model-order.change-form .order-attachments td:last-child {
    width: 8%;
}

body.model-order.change-form .order-attachments select,
body.model-order.change-form .order-attachments input[type="text"],
body.model-order.change-form .order-attachments input[type="file"] {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

body.model-order.change-form .order-attachments input[type="file"] {
    font-size: 13px;
}

@media (max-width: 1250px) and (min-width: 768px) {
    body.model-order.change-form #content {
        padding-left: 22px;
        padding-right: 22px;
    }

    body.model-order.change-form .order-attachments .column-attachment_type,
    body.model-order.change-form .order-attachments .field-attachment_type {
        width: 16%;
    }

    body.model-order.change-form .order-attachments .column-title,
    body.model-order.change-form .order-attachments .field-title {
        width: 20%;
    }

    body.model-order.change-form .order-attachments .column-position,
    body.model-order.change-form .order-attachments .field-position {
        width: 23%;
    }

    body.model-order.change-form .order-attachments .column-file,
    body.model-order.change-form .order-attachments .field-file {
        width: 33%;
    }
}


/* Unified settings page */
.settings-page .nav-settings {
    background: var(--sidebar-active);
    color: #fff;
}
.settings-card {
    background: #fff;
    border: 1px solid #e0e6ea;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(29,48,60,.06);
    overflow: hidden;
}
.settings-tabs {
    border-bottom: 1px solid #e5eaed;
    display: flex;
    gap: 4px;
    padding: 0 22px;
}
.settings-tab {
    color: #596a74;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 18px 14px;
    text-decoration: none;
}
.settings-tab:hover {
    color: var(--primary);
}
.settings-tab.active {
    border-bottom: 3px solid var(--primary);
    color: #233a46;
}
.settings-panel {
    padding: 24px;
}
.settings-panel__heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.settings-panel__heading h2 {
    color: #233a46;
    font-size: 18px;
    margin: 0 0 6px;
}
.settings-panel__heading p,
.settings-empty {
    color: #71808a;
    margin: 0;
}
.settings-primary-action {
    flex: 0 0 auto;
    text-decoration: none !important;
}
.settings-details {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px 0 0;
}
.settings-details > div {
    background: #f7f9fa;
    border: 1px solid #e5eaed;
    border-radius: 8px;
    padding: 14px 16px;
}
.settings-details dt {
    color: #71808a;
    font-size: 12px;
    margin-bottom: 5px;
}
.settings-details dd {
    color: #283f4b;
    font-size: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}
.settings-details__wide {
    grid-column: 1 / -1;
}
.settings-empty {
    margin-top: 22px;
}
@media (max-width: 767px) {
    .settings-tabs {
        overflow-x: auto;
        padding: 0 10px;
    }
    .settings-tab {
        white-space: nowrap;
    }
    .settings-panel {
        padding: 18px;
    }
    .settings-panel__heading {
        align-items: stretch;
        flex-direction: column;
    }
    .settings-details {
        grid-template-columns: 1fr;
    }
    .settings-details__wide {
        grid-column: auto;
    }
}


.onecode-password-link {
    background: #4f7185 !important;
}
.onecode-password-link:hover {
    background: #3f6073 !important;
}


/* Estimate preview */
.estimate-link {
    background: #3f84aa !important;
}
.estimate-link:hover {
    background: #2f7196 !important;
}
.estimate-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}
.estimate-toolbar form {
    margin: 0;
}
.estimate-toolbar .button,
.estimate-toolbar button.button {
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    min-height: 40px;
    padding: 10px 14px;
    text-decoration: none;
}
.estimate-primary {
    background: #3f84aa !important;
    color: #fff !important;
}
.estimate-send {
    background: #36865d !important;
    color: #fff !important;
}
.estimate-email-missing {
    color: #9b2c24;
    font-size: 13px;
    font-weight: 600;
}
.estimate-sheet {
    background: #fff;
    border: 1px solid #dfe6ea;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(29,48,60,.06);
    margin: 0 auto;
    max-width: 1050px;
    padding: 34px;
}
.estimate-header {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
}
.estimate-header h2,
.estimate-meta h1 {
    color: #1e3542;
    margin-top: 0;
}
.estimate-header p,
.estimate-meta p {
    margin: 4px 0;
}
.estimate-meta {
    text-align: right;
}
.estimate-meta h1 {
    font-size: 28px;
    letter-spacing: 1px;
}
.estimate-table-wrap {
    margin-top: 30px;
    overflow-x: auto;
}
.estimate-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}
.estimate-table th,
.estimate-table td {
    border: 1px solid #dbe2e6;
    padding: 10px 9px;
    vertical-align: top;
}
.estimate-table th {
    background: #edf4f7;
    color: #244b60;
    font-size: 12px;
    text-align: left;
}
.estimate-table td.number,
.estimate-table th.number {
    text-align: right;
}
.estimate-table tfoot td {
    background: #f7f9fa;
    font-weight: 700;
    text-align: right;
}
.estimate-description {
    color: #71808a;
    font-size: 12px;
    margin-top: 4px;
}
.estimate-empty {
    color: #71808a;
    text-align: center;
}
.estimate-bank {
    border-top: 1px solid #dfe6ea;
    color: #3f505a;
    margin-top: 28px;
    padding-top: 18px;
}
.estimate-bank > div {
    margin-top: 5px;
}
@media (max-width: 767px) {
    .estimate-sheet {
        padding: 18px;
    }
    .estimate-header {
        grid-template-columns: 1fr;
    }
    .estimate-meta {
        text-align: left;
    }
}


.history-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.history-toolbar .button {
    border-radius: 7px;
    text-decoration: none;
}


.account-logout-form {
    margin: 0;
}
.account-logout {
    align-items: center;
    background: transparent;
    border: 0;
    color: #286e91;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 10px;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
}
.account-logout:hover {
    background: #f1f5f7;
}
.account-logout svg {
    height: 20px;
    width: 20px;
}


.mobile-sidebar-logout-form {
    display: none;
}
@media (max-width: 767px) {
    .mobile-sidebar-logout-form {
        display: block;
        margin-top: 8px;
        width: 100%;
    }
}


.date-input-filter {
    padding: 8px 14px 12px;
}
.date-input-filter input[type="date"] {
    max-width: 100%;
    width: 100%;
}
.date-input-filter__actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.date-input-filter__actions button {
    background: #edf5f8;
    border: 0;
    border-radius: 6px;
    color: #286e91;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    padding: 7px 9px;
}
.date-input-filter__actions button:hover {
    background: #dfedf3;
}


/* Worker attachment rows: prevent long Django file labels from overlapping columns. */
body.worker-mode.model-order.change-form .order-attachments td,
body.worker-mode.model-order.change-form .order-attachments td * {
    min-width: 0;
}

body.worker-mode.model-order.change-form .order-attachments td {
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

body.worker-mode.model-order.change-form .order-attachments a,
body.worker-mode.model-order.change-form .order-attachments .readonly {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

body.worker-mode.model-order.change-form .order-attachments .field-file {
    overflow: hidden;
}


/* Worker Django file widget cleanup. */
body.worker-mode.model-order.change-form .order-attachments .file-upload,
body.worker-mode.model-order.change-form .order-attachments p.file-upload {
    display: block;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: normal !important;
}

body.worker-mode.model-order.change-form .order-attachments .file-upload a,
body.worker-mode.model-order.change-form .order-attachments p.file-upload a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    white-space: normal !important;
    word-break: break-word;
}

body.worker-mode.model-order.change-form .order-attachments .file-upload input[type="file"],
body.worker-mode.model-order.change-form .order-attachments p.file-upload input[type="file"] {
    display: block;
    margin-top: 6px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

body.worker-mode.model-order.change-form .order-attachments td.field-attachment_type,
body.worker-mode.model-order.change-form .order-attachments td.field-title,
body.worker-mode.model-order.change-form .order-attachments td.field-position,
body.worker-mode.model-order.change-form .order-attachments td.field-file {
    position: relative;
    overflow: hidden;
}


/* Hide Django tabular inline original-object label for worker attachments.
   The actual file remains visible in the File column. */
body.worker-mode.model-order.change-form .order-attachments td.original > p {
    display: none !important;
}

body.worker-mode.model-order.change-form .order-attachments td.original {
    overflow: hidden;
}


/* Global cleanup for Django tabular inline original label in order attachments.
   Django renders the attachment __str__ inside the first table cell; it can overlap
   the actual form controls. The file itself is already shown in the File column. */
body.model-order.change-form .order-attachments td.original > p,
body.model-order.change-form .order-attachments td.original > .inline_label,
body.model-order.change-form .order-attachments td.original > strong {
    display: none !important;
}

body.model-order.change-form .order-attachments td.original {
    overflow: hidden;
}

body.model-order.change-form .order-attachments td.original select,
body.model-order.change-form .order-attachments td.original input,
body.model-order.change-form .order-attachments td.original textarea {
    position: relative;
    z-index: 2;
}


/* Hide number spinners for order quantity; decimal values are entered manually. */
body.model-order.change-form input[name$="-quantity"]::-webkit-outer-spin-button,
body.model-order.change-form input[name$="-quantity"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.model-order.change-form input[name$="-quantity"] {
    -moz-appearance: textfield;
    appearance: textfield;
}


/* Salantų Granitas login */
body.login-page {
    background: #eef2f5;
    min-height: 100vh;
}

body.login-page .skip-to-content-link,
body.login-page .satvos-overlay {
    display: none;
}

body.login-page #container,
body.login-page .satvos-shell {
    min-height: 100vh;
}

body.login-page main.content {
    min-height: 100vh;
}

body.login-page #content {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

body.login-page #content-main {
    min-height: 100vh;
}

.sg-login-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.35fr);
    min-height: 100vh;
}

.sg-login-brand {
    background:
        radial-gradient(circle at 12% 12%, rgba(80, 147, 184, .25), transparent 34%),
        linear-gradient(145deg, #0b1f2d 0%, #102c3e 52%, #163d52 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: 62px 64px 48px;
    position: relative;
}

.sg-login-brand::after {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    content: "";
    height: 420px;
    position: absolute;
    right: -250px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
}

.sg-login-brand__inner {
    align-items: center;
    display: flex;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.sg-login-mark {
    align-items: center;
    background: #f1c94b;
    border-radius: 14px;
    color: #173247;
    display: flex;
    flex: 0 0 66px;
    font-size: 23px;
    font-weight: 800;
    height: 66px;
    justify-content: center;
    letter-spacing: 1px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.sg-login-brand__name {
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 750;
    letter-spacing: 2px;
    line-height: 1.15;
}

.sg-login-brand__inner p {
    color: #a9bdc9;
    font-size: 15px;
    margin: 10px 0 0;
}

.sg-login-brand__footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.sg-login-brand__footer span {
    color: #f1c94b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

.sg-login-brand__footer small {
    color: #8fa6b4;
    font-size: 12px;
}

.sg-login-panel {
    align-items: center;
    background: #f4f6f8;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 48px;
}

.sg-login-card {
    background: #fff;
    border: 1px solid #e0e6ea;
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(24, 48, 63, .12);
    max-width: 480px;
    padding: 44px 46px 38px;
    width: 100%;
}

.sg-login-card__eyebrow {
    color: #3f84aa;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sg-login-card h1 {
    color: #172a35;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.sg-login-card__heading p {
    color: #71808a;
    font-size: 14px;
    line-height: 1.55;
    margin: 12px 0 28px;
}

.sg-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sg-login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-login-field label {
    color: #314651;
    font-size: 13px;
    font-weight: 700;
}

.sg-login-field input {
    background: #fff;
    border: 1px solid #cad5dc;
    border-radius: 9px;
    color: #1f333f;
    font-size: 15px;
    height: 48px;
    padding: 0 14px;
    width: 100%;
}

.sg-login-field input:focus {
    border-color: #4b91b7;
    box-shadow: 0 0 0 3px rgba(75,145,183,.12);
    outline: none;
}

.sg-login-submit {
    background: #3f84aa;
    border: 0;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    height: 50px;
    margin-top: 4px;
    transition: background .16s ease, transform .16s ease;
    width: 100%;
}

.sg-login-submit:hover {
    background: #327596;
}

.sg-login-submit:active {
    transform: translateY(1px);
}

.sg-login-error {
    background: #fdeceb;
    border: 1px solid #f2c8c5;
    border-radius: 8px;
    color: #a52a22;
    font-size: 13px;
    margin: 0 0 20px;
    padding: 11px 13px;
}

.sg-login-help {
    border-top: 1px solid #e7ecef;
    color: #8a979f;
    font-size: 11px;
    margin-top: 28px;
    padding-top: 18px;
    text-align: center;
}

body.login-page .errorlist {
    color: #b42318;
    font-size: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .sg-login-shell {
        grid-template-columns: 1fr;
    }

    .sg-login-brand {
        min-height: auto;
        padding: 28px 28px 24px;
    }

    .sg-login-brand__footer {
        display: none;
    }

    .sg-login-panel {
        min-height: calc(100vh - 118px);
        padding: 30px 18px 42px;
    }

    .sg-login-card {
        border-radius: 14px;
        padding: 34px 28px 30px;
    }

    .sg-login-mark {
        flex-basis: 52px;
        height: 52px;
        font-size: 19px;
    }

    .sg-login-brand__name {
        font-size: 22px;
    }

    .sg-login-brand__inner p {
        font-size: 13px;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .sg-login-brand {
        padding: 22px 20px;
    }

    .sg-login-brand__inner {
        gap: 14px;
    }

    .sg-login-brand__name {
        font-size: 18px;
        letter-spacing: 1.4px;
    }

    .sg-login-panel {
        padding: 22px 14px 34px;
    }

    .sg-login-card {
        box-shadow: 0 14px 34px rgba(24,48,63,.10);
        padding: 30px 22px 26px;
    }
}


/* Login v1.0.2 — centered reference layout */
body.login-reference {
    background-color: #f7f7f8;
    background-image:
        linear-gradient(135deg, rgba(87,103,113,.07) 12%, transparent 12.5%, transparent 87%, rgba(87,103,113,.07) 87.5%),
        linear-gradient(45deg, rgba(87,103,113,.07) 12%, transparent 12.5%, transparent 87%, rgba(87,103,113,.07) 87.5%);
    background-position: 0 0, 42px 42px;
    background-size: 84px 84px;
}

body.login-reference #content,
body.login-reference #content-main,
body.login-reference main.content {
    min-height: 100vh;
}

body.login-reference #content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.sg-login-reference-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 34px 18px;
}

.sg-login-reference-card {
    background: #fff;
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(24,38,48,.12);
    max-width: 468px;
    padding: 34px 36px 35px;
    width: 100%;
}

.sg-login-reference-logo {
    align-items: center;
    display: flex;
    font-size: 34px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: -7px;
    line-height: 1;
    margin: 0 auto 27px;
}

.sg-login-reference-logo span:first-child {
    color: #111;
}

.sg-login-reference-logo span:last-child {
    color: #3f84aa;
    margin-left: 6px;
}

.sg-login-reference-heading {
    text-align: center;
}

.sg-login-reference-heading h1 {
    color: #111;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0;
}

.sg-login-reference-heading p {
    color: #6b6b6b;
    font-size: 15px;
    margin: 8px 0 30px;
}

.sg-login-reference-form {
    display: flex;
    flex-direction: column;
}

.sg-login-reference-field {
    background: #f6f6f6;
    border-bottom: 1px solid #aeb4b8;
    min-height: 79px;
    padding: 23px 15px 9px;
    position: relative;
}

.sg-login-reference-field + .sg-login-reference-field {
    margin-top: 35px;
}

.sg-login-reference-field label {
    color: #555;
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.sg-login-reference-field input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #222;
    font-size: 16px;
    height: 27px;
    outline: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.sg-login-password-field {
    padding-right: 48px;
}

.sg-password-toggle {
    background: none;
    border: 0;
    color: #202020;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    position: absolute;
    right: 8px;
    top: 30px;
}

.sg-password-toggle.is-visible {
    color: #3f84aa;
}

.sg-login-password-help {
    color: #666;
    font-size: 12px;
    margin: 9px 15px 0;
}

.sg-login-reference-submit {
    background: #3f84aa;
    border: 0;
    border-radius: 28px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    height: 52px;
    margin-top: 34px;
    transition: background .15s ease, transform .15s ease;
    width: 100%;
}

.sg-login-reference-submit:hover {
    background: #327596;
}

.sg-login-reference-submit:active {
    transform: translateY(1px);
}

.sg-login-reference-error {
    background: #fdeceb;
    border: 1px solid #efc7c4;
    border-radius: 6px;
    color: #a52a22;
    font-size: 13px;
    margin: -10px 0 20px;
    padding: 10px 12px;
}

body.login-reference .errorlist {
    color: #b42318;
    font-size: 12px;
    list-style: none;
    margin: 3px 0 0;
    padding: 0;
}

@media (max-width: 560px) {
    .sg-login-reference-shell {
        align-items: flex-start;
        padding: 28px 13px;
    }

    .sg-login-reference-card {
        margin-top: 5vh;
        padding: 29px 24px 30px;
    }

    .sg-login-reference-heading h1 {
        font-size: 22px;
    }

    .sg-login-reference-heading p {
        font-size: 14px;
    }
}


/* Login v1.0.3 — dark granite theme and polished controls */
body.login-reference {
    background-color: #15191c;
    background-image:
        radial-gradient(ellipse at 18% 14%, rgba(255,255,255,.10) 0, rgba(255,255,255,.025) 18%, transparent 34%),
        radial-gradient(ellipse at 82% 28%, rgba(255,255,255,.055) 0, transparent 27%),
        radial-gradient(ellipse at 34% 82%, rgba(255,255,255,.045) 0, transparent 32%),
        linear-gradient(118deg, transparent 0 21%, rgba(255,255,255,.035) 21.2% 21.8%, transparent 22% 46%, rgba(0,0,0,.20) 46.2% 47%, transparent 47.2% 100%),
        linear-gradient(27deg, #101416 0%, #22282c 34%, #171c1f 67%, #2a3034 100%);
    background-attachment: fixed;
    background-size: auto, auto, auto, 520px 420px, cover;
}

body.login-reference::before {
    background:
        repeating-linear-gradient(112deg, transparent 0 74px, rgba(255,255,255,.025) 75px, transparent 77px 151px),
        repeating-linear-gradient(14deg, transparent 0 103px, rgba(0,0,0,.14) 104px, transparent 106px 207px);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
}

.sg-login-reference-card {
    position: relative;
    z-index: 1;
    border-color: rgba(255,255,255,.3);
    box-shadow: 0 22px 60px rgba(0,0,0,.42);
}

.sg-login-reference-logo {
    letter-spacing: -4px;
}

.sg-login-reference-logo span:first-child {
    color: #0d2232;
}

.sg-login-reference-logo span:last-child {
    color: #3f84aa;
}

.sg-login-reference-field {
    background: #f1f1f1;
    border-bottom-color: #a8adb1;
}

.sg-login-reference-field:focus-within {
    border-bottom-color: #0d2232;
}

.sg-login-reference-field input,
.sg-login-reference-field input:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.sg-login-reference-field input:-webkit-autofill,
.sg-login-reference-field input:-webkit-autofill:hover,
.sg-login-reference-field input:-webkit-autofill:focus,
.sg-login-reference-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f1f1f1 inset !important;
    -webkit-text-fill-color: #222 !important;
    caret-color: #222;
    transition: background-color 9999s ease-out 0s;
}

.sg-password-toggle {
    align-items: center;
    display: flex;
    height: 38px;
    justify-content: center;
    right: 8px;
    top: 28px;
    width: 38px;
}

.sg-password-toggle:focus {
    outline: none;
}

.sg-eye {
    fill: none;
    height: 23px;
    stroke: #242a2e;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 23px;
}

.sg-eye-on {
    display: none;
}

.sg-password-toggle.is-visible .sg-eye-off {
    display: none;
}

.sg-password-toggle.is-visible .sg-eye-on {
    display: block;
}

.sg-password-toggle.is-visible {
    color: inherit;
}

.sg-login-reference-submit {
    background: #0d2232;
    color: #fff;
}

.sg-login-reference-submit:hover:not(:disabled) {
    background: #17384d;
}

.sg-login-reference-submit:disabled {
    background: #dedede;
    color: #a5a5a5;
    cursor: default;
    transform: none;
}

.sg-login-reference-submit:disabled:hover {
    background: #dedede;
}

@media (max-width: 560px) {
    body.login-reference {
        background-size: auto, auto, auto, 360px 300px, cover;
    }
}


/* Login v1.0.4 — more compact card */
.sg-login-reference-card {
    max-width: 404px;
    padding: 30px 30px 31px;
}

.sg-login-reference-logo {
    font-size: 31px;
    margin-bottom: 23px;
}

.sg-login-reference-heading h1 {
    font-size: 22px;
}

.sg-login-reference-heading p {
    font-size: 14px;
    margin-bottom: 26px;
}

.sg-login-reference-field {
    min-height: 72px;
    padding: 20px 14px 8px;
}

.sg-login-reference-field + .sg-login-reference-field {
    margin-top: 30px;
}

.sg-login-reference-submit {
    height: 50px;
    margin-top: 30px;
}

@media (max-width: 560px) {
    .sg-login-reference-card {
        max-width: 380px;
        padding: 27px 22px 28px;
    }
}


/* Login v1.0.5 — client logo */
.sg-login-reference-logo {
    margin: 0 auto 20px;
}

.sg-login-reference-logo img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 92px;
    width: auto;
}

@media (max-width: 560px) {
    .sg-login-reference-logo img {
        max-height: 82px;
    }
}


/* Login v1.0.6 — compact symbol only */
.sg-login-reference-logo {
    margin-bottom: 16px;
}

.sg-login-reference-logo img {
    max-height: 68px;
}

@media (max-width: 560px) {
    .sg-login-reference-logo img {
        max-height: 62px;
    }
}


/* Login v1.0.7 — full client logo at compact SG size */
.sg-login-reference-logo {
    margin-bottom: 16px;
}

.sg-login-reference-logo img {
    display: block;
    height: 58px;
    max-height: 58px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 560px) {
    .sg-login-reference-logo img {
        height: 54px;
        max-height: 54px;
    }
}


/* Login v1.0.8 — exact client-provided logo */
.sg-login-reference-logo {
    margin-bottom: 16px;
}

.sg-login-reference-logo img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 42px;
    max-width: 168px;
    object-fit: contain;
    width: auto;
}

@media (max-width: 560px) {
    .sg-login-reference-logo img {
        max-height: 38px;
        max-width: 152px;
    }
}


/* Sidebar branding v1.0.9 — approved Salantų Granitas logo */
.satvos-brand a {
    height: 100%;
}

.satvos-brand .brand-full {
    align-items: center;
    display: flex;
    height: 100%;
}

.satvos-brand .brand-full img {
    display: block;
    height: auto;
    max-height: 42px;
    max-width: 184px;
    object-fit: contain;
    width: auto;
}

.satvos-brand .brand-short {
    display: none;
    height: 42px;
    overflow: hidden;
    position: relative;
    width: 42px;
}

.satvos-brand .brand-short__crop {
    display: block;
    height: 42px;
    overflow: hidden;
    width: 42px;
}

.satvos-brand .brand-short__crop img {
    display: block;
    height: 42px;
    max-height: none;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

body.sidebar-collapsed .satvos-brand .brand-full {
    display: none;
}

body.sidebar-collapsed .satvos-brand .brand-short {
    align-items: center;
    display: flex;
    justify-content: center;
}

body.sidebar-collapsed .satvos-brand .brand-short img {
    display: block;
}
