:root[data-edition="TYC"] { --blue: #c97d24; --blue-dark: #9e5c16; }
:root[data-edition="PRM"] { --blue: #66717e; --blue-dark: #46515e; }
.line-options { display: block; margin-top: 10px; }
.line-options[hidden] { display: none; }
.report-control { display: grid; gap: 8px; margin: 20px 0; color: var(--ink); }
.report-control select { width: 100%; }
.record-tabs { display: flex; flex-shrink: 0; gap: 14px; padding: 0 24px; border-bottom: 1px solid var(--border); background: #fff; }
.record-tabs button { padding: 14px 10px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.record-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.header-company { position: relative; }
.company-switch-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 100; min-width: 205px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 10px 30px #17335120; }
.company-switch-menu button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 5px; background: transparent; text-align: left; color: var(--ink); font-size: 13px; }
.company-switch-menu button:hover { background: var(--page); }
@media (max-width: 700px) { .company-switch-menu { left: 0; right: auto; } }
.document-tabs { display: flex; gap: 6px; padding: 0 20px; overflow-x: auto; border-bottom: 1px solid var(--line, #e5eaf2); }
.document-tabs button { flex-shrink: 0; padding: 16px 12px 13px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.document-tabs button[aria-selected="true"] { border-bottom-color: var(--blue); color: var(--blue); font-weight: 600; }
.document-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.debug-details { margin-top: 16px; text-align: left; }
.debug-details summary { cursor: pointer; font-weight: 600; }
.debug-details pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; font-size: 11px; line-height: 1.5; }
.report-all { display: flex; align-items: center; gap: 9px; margin: 18px 0; font-size: 13px; }
.report-all input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.server-choice-content { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.remember-options { margin: 18px 0 24px; color: var(--muted); font-size: 12px; }
.remember-options summary { cursor: pointer; color: var(--ink); }
.remember-options p { margin: 10px 0; line-height: 1.6; }
.remember-options label { display: flex; gap: 9px; align-items: center; margin: 8px 0; font-weight: 400; }
.remember-options input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.product-help { margin: 20px 0 24px; font-size: 12px; color: var(--muted); }
.product-help summary { cursor: pointer; color: var(--blue); }
.product-help p { margin: 10px 0 0; line-height: 1.7; }
.choice.server-choice > input { flex-shrink: 0; }
.server-activity { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; }
.server-activity.recent { background: #edf8f2; }
.server-activity.warning { background: #fff4e2; }
.server-activity i { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border-radius: 50%; font-style: normal; font-size: 9px; line-height: 1; }
.server-activity.recent i { width: 7px; height: 7px; background: #309a79; }
.server-activity.warning i { background: #b97b22; color: #fff; }
:root {
    color-scheme: light;
    --blue: #175bd8;
    --blue-dark: #1046ae;
    --ink: #172a42;
    --muted: #758299;
    --border: #e5eaf2;
    --page: #f5f7fb;
    --green: #309a79;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 14px;
    font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, input, select { transition: border-color .15s, background .15s, box-shadow .15s; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8bb7ff; outline-offset: 3px; }
input, select { width: 100%; border: 1px solid #dce3ed; background: #fff; color: var(--ink); border-radius: 7px; min-height: 44px; padding: 10px 13px; }
input::placeholder { color: #939dae; }
input:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px #175bd812; }
input[type="radio"] { width: 16px; height: 16px; min-height: auto; accent-color: var(--blue); margin: 0; padding: 0; box-shadow: none; }
label { display: block; color: #3c4c63; font-size: 13px; font-weight: 600; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.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; }
.skip-link { position: fixed; top: -80px; left: 15px; padding: 10px; z-index: 20; background: white; }
.skip-link:focus { top: 10px; }
.first-load { min-height: 100vh; display: flex; gap: 15px; align-items: center; justify-content: center; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: inline-block; width: 34px; height: 34px; background: url("simplygest.png") center / contain no-repeat; flex-shrink: 0; }
.brand-name { font-size: 23px; font-weight: 700; letter-spacing: -.95px; color: #193756; display: inline-flex; align-items: center; gap: 9px; }
.brand-web { font-size: 11px; font-weight: 500; letter-spacing: .1px; background: #eaf1fd; color: var(--blue); border: 1px solid #dce8fe; border-radius: 5px; padding: 1px 7px 2px; margin-top: 5px; }
.brand-on-dark .brand-name { color: white; }
.brand-on-dark .brand-web { color: #d3e3ff; border-color: #ffffff25; background: #ffffff0c; }
.brand-on-dark .brand-mark { background-color: #ffffff12; border-radius: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; min-height: 43px; border-radius: 7px; font-size: 13px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.button.primary { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 3px #175bd80d; }
.button.primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { color: #44536b; background: white; border-color: #dfe5ee; }
.button.secondary:hover:not(:disabled) { background: #f7f9fd; border-color: #c4d0e2; }
.button.subtle { background: transparent; color: #64738a; }
.button.subtle:hover { background: #f0f4fa; }
.button.wide { width: 100%; margin-top: 26px; justify-content: space-between; padding-inline: 18px; min-height: 47px; }
.button.compact { min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: 5px; gap: 7px; }
.button.compact .icon { width: 16px; height: 16px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 12px; }
.text-button:hover { color: var(--blue-dark); }
.icon-button { border: 0; background: transparent; color: #8390a3; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; width: 33px; height: 33px; flex-shrink: 0; }
.icon-button:hover { color: var(--blue); background: #edf3fd; }
.section-label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.inline-error { background: #fff3f1; border: 1px solid #f5d7d0; border-radius: 7px; color: #a13c2f; font-size: 13px; padding: 12px 14px; margin-bottom: 20px; }
.inline-error strong { font-size: 12px; font-weight: 600; }
.inline-error p { font-size: 11px; line-height: 1.75; margin-top: 7px; }
.inline-error.access-notice { background: #f5f8ff; border-color: #dce7fa; color: #4d6b96; }
input[readonly] { background: #f5f7fa; color: #8291a6; }
.demo-banner { min-height: 27px; padding: 4px 14px; text-align: center; background: #fff5d8; border-bottom: 1px solid #f1dfab; color: #7c6020; font-size: 11px; letter-spacing: .15px; }
.access-layout { min-height: 100vh; display: grid; grid-template-columns: 48% 52%; }
.demo-banner + .access-layout { min-height: calc(100vh - 27px); }
.access-brand { background: #123359; color: #fff; padding: 42px 9%; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.access-brand::before { content: ''; width: 640px; height: 640px; border: 1px solid #ffffff07; border-radius: 50%; position: absolute; right: -300px; bottom: -300px; pointer-events: none; }
.access-brand::after { content: ''; width: 800px; height: 800px; border: 1px solid #ffffff06; border-radius: 50%; position: absolute; right: -375px; bottom: -375px; pointer-events: none; }
.access-message { margin: auto 0; padding: 70px 0 58px; position: relative; z-index: 1; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 500; }
.eyebrow.light { color: #8eafd6; }
.access-message h1 { font-size: clamp(35px, 3.4vw, 50px); font-weight: 550; letter-spacing: -1.8px; line-height: 1.19; margin: 19px 0 20px; }
.access-message > p { color: #afc3dc; font-size: 14px; line-height: 1.9; }
.access-points { display: flex; gap: 21px; margin-top: 31px; color: #b3c9e5; font-size: 11px; flex-wrap: wrap; }
.access-points span { display: flex; align-items: center; gap: 7px; }
.access-points .icon { width: 16px; height: 16px; color: #80a9de; }
.access-brand > footer { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #7899bf; position: relative; z-index: 1; }
.access-brand > footer > span { font-size: 10px; color: #7899bf; }
.desktop-illustration { margin-top: 42px; width: 100%; max-width: 460px; border: 1px solid #ffffff1f; border-radius: 10px; background: #163c65; box-shadow: 0 18px 50px #00152826; transform: perspective(1000px) rotateY(-3deg) rotateX(2deg); overflow: hidden; }
.illustration-top { height: 31px; padding: 0 12px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #ffffff0d; background: #1a426d; }
.illustration-top span { width: 4px; height: 4px; border-radius: 100%; background: #7896ba; }
.illustration-top b { margin-left: 9px; font-size: 7px; font-weight: 500; color: #c0d2e7; }
.illustration-tabs { height: 30px; padding: 0 15px; display: flex; gap: 15px; align-items: center; border-bottom: 1px solid #ffffff0e; }
.illustration-tabs i { font-style: normal; font-size: 7px; color: #6f98c8; height: 100%; display: flex; align-items: center; }
.illustration-tabs .selected { color: #c1d8f5; border-bottom: 2px solid #5f9feb; }
.illustration-content { padding: 19px; }
.illustration-greeting { height: 5px; width: 34%; background: #3c638f; border-radius: 10px; margin-bottom: 17px; }
.illustration-cards { display: flex; gap: 9px; }
.illustration-cards i { flex: 1; height: 46px; background: #204974; border: 1px solid #ffffff08; border-radius: 4px; position: relative; }
.illustration-cards i::before { content: ''; position: absolute; top: 11px; left: 10px; width: 35%; height: 3px; background: #3c638f; border-radius: 2px; }
.illustration-cards i::after { content: ''; position: absolute; top: 24px; left: 10px; width: 48%; height: 5px; background: #6b8eb9; border-radius: 2px; }
.illustration-chart { display: flex; gap: 12px; margin-top: 13px; padding: 16px 12px 6px; background: #173f6a; border-radius: 5px; height: 104px; }
.illustration-bars { display: flex; align-items: flex-end; gap: 9px; width: 65%; height: 71px; padding-bottom: 7px; border-bottom: 1px solid #466c954f; }
.illustration-bars i { width: 14px; background: #3f7fc6; border-radius: 3px 3px 0 0; }
.illustration-bars i:nth-child(even) { background: #6c9bd1; }
.h35 { height: 23px; }.h57 { height: 37px; }.h48 { height: 31px; }.h71 { height: 46px; }.h62 { height: 40px; }.h90 { height: 59px; }.h76 { height: 49px; }.h100 { height: 65px; }
.illustration-lines { display: flex; flex-direction: column; justify-content: space-evenly; width: 30%; padding-bottom: 7px; }
.illustration-lines i { height: 4px; background: #375c88; border-radius: 2px; }
.illustration-lines i:nth-child(even) { width: 70%; }
.access-main { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 58px 12%; position: relative; }
.access-card { width: 100%; max-width: 405px; padding: 35px 0 70px; }
.access-mobile-brand { display: none; }
.steps { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0 0 57px; color: #9ca6b5; font-size: 11px; }
.steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #e2e7ef; border-radius: 100%; font-size: 10px; font-weight: 600; }
.steps .current { color: var(--blue); font-weight: 600; }
.steps .current > span { background: var(--blue); color: white; border-color: var(--blue); }
.steps .complete { color: #639c83; }
.steps .complete > span { background: #edf7f2; border-color: #e3f1e9; }
.steps .icon { width: 12px; height: 12px; }
.access-card h2 { font-size: 27px; letter-spacing: -.8px; line-height: 1.3; margin: 11px 0 12px; }
.access-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 31px; }
#access-form > label, #password-field > label { margin: 21px 0 8px; }
.field-help { color: #8590a2; font-size: 11px; line-height: 1.65; margin-top: 9px; }
.access-footnote { color: #929dad; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 26px; }
.access-footnote .icon { width: 13px; height: 13px; }
.access-right-footer { position: absolute; bottom: 30px; left: 10%; right: 10%; display: flex; justify-content: space-between; font-size: 10px; color: #a1a9b5; }
.choice-list { display: flex; flex-direction: column; gap: 9px; max-height: 330px; overflow-y: auto; padding: 2px; }
.choice { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; position: relative; }
.choice:has(input:checked) { border-color: #92b6f4; background: #f5f8ff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); }
.choice > input { order: 3; margin-left: auto; }
.choice strong { display: block; font-size: 13px; font-weight: 600; }
.choice small { display: block; font-size: 11px; color: #7d8a9e; font-weight: 400; margin-top: 3px; }
.choice-icon { width: 36px; height: 36px; border-radius: 8px; background: #ecf2fc; color: #5b85c2; display: grid; place-items: center; flex-shrink: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e8f0fc; color: #5078b2; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.avatar.small { width: 29px; height: 29px; font-size: 10px; }
.back { margin-bottom: 24px; color: #8592a5; font-size: 11px; }
.back .icon { width: 15px; }
.connection-chip { display: inline-flex; align-items: center; gap: 7px; color: #749087; font-size: 11px; font-weight: 400; }
.connection-chip > i, .status-dot { display: inline-block; width: 6px; height: 6px; background: #48aa87; border-radius: 100%; flex-shrink: 0; }
.access-card > .connection-chip { display: flex; margin-bottom: 15px; color: #6c849a; }
.demo-help { margin-top: 17px; color: #8c7b53; background: #fffaf0; border-radius: 5px; font-size: 11px; padding: 10px; text-align: center; }
.empty-note { color: var(--muted); font-size: 13px; padding: 10px; }
.workspace { min-height: 100vh; display: flex; flex-direction: column; }
.demo-banner + .workspace { min-height: calc(100vh - 27px); }
.app-header { background: #fff; min-height: 76px; display: flex; align-items: center; gap: 36px; padding: 0 30px; border-bottom: 1px solid #ecf0f5; }
.app-header .brand-name { font-size: 23px; }
.header-company { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--border); padding-left: 27px; margin-left: 0; }
.company-symbol { color: #8a98ab; display: inline-flex; }
.company-symbol .icon { width: 20px; height: 20px; }
.company-symbol.has-logo { display: inline-flex; flex-shrink: 0; }
.company-symbol img { width: 42px; height: 34px; object-fit: contain; }
.article-photo:empty { display: none; }
.article-photo { margin-bottom: 20px; color: var(--muted); }
.article-photo img { display: block; max-width: 100%; width: 240px; height: 200px; object-fit: contain; }
.header-company strong { display: block; font-size: 12px; font-weight: 600; }
.header-company small { display: block; font-size: 10px; color: #8a97a8; margin-top: 2px; }
.header-company .icon-button { width: 22px; margin-left: 10px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.header-divider { width: 1px; height: 25px; background: var(--border); margin: 0 7px; }
.user-name { font-size: 12px; font-weight: 500; color: #4d5c72; }
.main-tabs { display: flex; align-items: stretch; min-height: 51px; background: white; border-bottom: 1px solid #dfe6f0; padding: 0 30px; gap: 10px; overflow-x: auto; }
.main-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #748197; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; white-space: nowrap; min-height: 51px; }
.main-tab:first-child { padding-left: 13px; }
.main-tab .icon { width: 17px; height: 17px; }
.main-tab:hover { background: #f9fbff; color: var(--blue); }
.main-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; background: linear-gradient(0deg, #175bd807, transparent); }
.tabs-trailing { margin-left: auto; display: flex; align-items: center; white-space: nowrap; font-size: 8px; letter-spacing: 1.7px; color: #a1acbb; padding-left: 30px; }
.action-toolbar { min-height: 58px; display: flex; align-items: center; gap: 15px; justify-content: space-between; padding: 9px 30px; border-bottom: 1px solid var(--border); background: #fff; }
.toolbar-actions { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 7px; }
.toolbar-divider { width: 1px; height: 23px; background: var(--border); margin: 0 4px 0 9px; }
.toolbar-note { color: #96a1b2; display: flex; align-items: center; gap: 8px; font-size: 10px; }
.toolbar-note .icon { width: 14px; height: 14px; color: #8aa4c6; }
.workspace-main { width: 100%; padding: 30px 36px 28px; max-width: 1660px; margin: 0 auto; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.85px; margin: 7px 0 5px; line-height: 1.2; }
.heading-dot { color: var(--blue); }
.page-heading p { font-size: 12px; color: #8b96a7; margin-top: 10px; }
.today-label { color: #8995a6; font-size: 11px; display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; }
.today-label .icon { width: 15px; height: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.metric-card { border: 1px solid var(--border); border-radius: 9px; background: white; padding: 19px 20px 17px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 11px; color: #718096; }
.metric-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.metric-icon .icon { width: 17px; height: 17px; }
.blue { background: #eaf1fe; color: #6088d5; }
.mint { background: #eaf6f1; color: #5f9e88; }
.lavender { background: #f0edfc; color: #9a86c8; }
.sand { background: #fcf3e6; color: #c3a16f; }
.metric-card > strong { display: block; font-size: clamp(22px, 2.3vw, 31px); font-weight: 600; letter-spacing: -.85px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.metric-card > p { font-size: 10px; color: #9aa4b2; margin-top: 11px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 22px 12px; }
.panel-heading h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.panel-heading p { font-size: 10px; color: #98a2b1; margin-top: 5px; }
.soft-badge { color: #8a96a9; background: #f5f7fa; border: 1px solid #edf0f5; padding: 5px 9px; border-radius: 5px; font-size: 9px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr); gap: 22px; margin-bottom: 22px; }
.dashboard-grid:not(:has(.sales-panel)) { grid-template-columns: minmax(280px, 650px); }
.chart-wrap { padding: 6px 21px 0 12px; position: relative; }
.sales-chart { width: 100%; height: 228px; display: block; overflow: visible; }
.sales-chart text { fill: #9aa5b5; font-family: inherit; font-size: 9px; }
.chart-grid line { stroke: #edf1f6; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-bar { fill: #b9d0f7; }
.chart-bar:hover, .chart-bar.current { fill: #4f86df; }
.chart-foot { padding: 10px 24px 17px; display: flex; justify-content: space-between; font-size: 9px; color: #a0a9b5; }
.chart-foot > span:first-child { color: #8a97aa; display: flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; background: #8cb2ef; border-radius: 100%; }
.chart-data { font-size: 10px; color: #9ba6b7; padding-left: 13px; }
.chart-data summary { cursor: pointer; width: fit-content; }
.chart-data dl { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 0; }
.chart-data dl > div { display: flex; gap: 7px; }
.chart-data dd { margin: 0; }
.quick-actions { padding: 0 16px 9px; }
.quick-actions > button { border: 0; border-radius: 6px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 7px; background: white; text-align: left; color: var(--ink); }
.quick-actions > button:hover { background: #f8faff; }
.quick-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-icon .icon { width: 17px; height: 17px; }
.quick-actions strong { font-size: 11px; font-weight: 600; display: block; }
.quick-actions small { font-size: 10px; color: #a2aaba; margin-top: 3px; display: block; }
.quick-actions > button > .icon { margin-left: auto; width: 15px; color: #a2afc0; }
.desktop-note { border-top: 1px solid #eff2f7; display: flex; align-items: center; gap: 10px; color: #9aa6b7; font-size: 9px; padding: 13px 23px; background: #fcfdff; }
.desktop-note > .icon { color: #a2b5cd; width: 18px; height: 18px; }
.recent-panel .panel-heading { padding-bottom: 20px; }
.table-scroll { overflow: auto; position: relative; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: 11px; }
th { font-size: 10px; color: #8b98aa; font-weight: 500; background: #fbfcfe; border-top: 1px solid #eff2f7; border-bottom: 1px solid #eff2f7; padding: 11px 22px; }
th > button { border: 0; color: inherit; background: transparent; padding: 0; font-size: inherit; }
td { padding: 14px 22px; border-bottom: 1px solid #f0f3f8; color: #5c6b80; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdff; }
.table-link { color: #355c95; background: transparent; border: 0; padding: 3px 0; text-align: left; font-size: 11px; font-weight: 600; }
.table-link:hover { color: var(--blue); text-decoration: underline; }
.table-customer { color: #5a6b81; font-weight: 500; }
.table-amount { font-weight: 600; font-variant-numeric: tabular-nums; color: #43556d; }
.type-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 9px; background: #f1f4f8; color: #8a98aa; }
.type-VENTA { color: #6089c9; background: #edf3fd; }
.type-PRESUP { color: #9680ba; background: #f3effb; }
.type-PEDICLI { color: #aa956c; background: #faf5e9; }
.type-ALBARAN { color: #5a9c83; background: #edf7f2; }
.table-open { width: 25px; height: 25px; }
.table-open .icon { width: 14px; }
.align-right { text-align: right; }
.nowrap { white-space: nowrap; }
.muted { color: #95a0b0; }
.code { font-size: 10px; }
.table-sub { display: block; color: #9ba6b5; font-size: 10px; font-weight: 400; margin-top: 3px; }
.stock-count, .stock-empty { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #edf7f2; color: #6b9a86; font-size: 10px; }
.stock-empty { background: #fff4e7; color: #b28b58; }
.workspace-caption { color: #a5adbb; font-size: 9px; margin: 16px 0 0; }
.workspace-footer { border-top: 1px solid #e4eaf2; display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 11px 29px; color: #97a3b4; font-size: 9px; background: #f9fbfd; }
.workspace-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.workspace-footer b { font-weight: 400; color: #c3cbd6; }
.status-dot { width: 5px; height: 5px; }
.loading-panel { min-height: 250px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; color: #8a97aa; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #dde8fc; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state, .error-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 55px 22px; gap: 12px; color: #95a1b2; text-align: center; }
.empty-state > .icon, .error-panel > .icon { width: 29px; height: 29px; color: #a7b8cf; margin-bottom: 6px; }
.empty-state strong, .error-panel h2 { font-size: 14px; font-weight: 500; color: #5f728d; }
.empty-state p, .error-panel p { font-size: 12px; max-width: 490px; }
.error-panel .button { margin-top: 6px; }
.welcome-note { border: 1px solid var(--border); border-radius: 8px; padding: 22px; background: white; color: #74839a; margin-bottom: 22px; }
.list-filters { padding: 18px 21px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid #e0e6ef; padding-left: 12px; border-radius: 6px; color: #99a8ba; width: min(350px, 100%); }
.search-field input { border: 0; background: transparent; font-size: 12px; min-height: 37px; padding: 8px 10px 8px 0; font-weight: 400; }
.search-field input:focus { box-shadow: none; }
.search-field:focus-within { box-shadow: 0 0 0 2px #175bd815; border-color: #7a9ed5; }
.search-field .icon { width: 16px; height: 16px; }
.date-filters { display: flex; align-items: center; gap: 12px; }
.date-filters label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #8997aa; font-weight: 400; }
.date-filters input, .date-filters select { min-height: 37px; padding: 7px 9px; width: auto; font-size: 11px; border-radius: 6px; }
.table-footer { border-top: 1px solid #edf1f6; padding: 14px 21px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #98a4b5; }
.table-footer > div { display: flex; gap: 7px; }
dialog { width: min(950px, calc(100vw - 36px)); max-height: 90vh; padding: 0; border: 1px solid #e1e7f1; border-radius: 12px; box-shadow: 0 22px 90px #17345230; color: var(--ink); }
dialog::backdrop { background: #152c4866; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: center; gap: 20px; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 23px 27px; }
.dialog-heading h2 { font-size: 21px; letter-spacing: -.5px; margin-top: 4px; }
.dialog-body { padding: 26px; }
.dialog-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 17px 26px; background: #fafbfe; border-top: 1px solid var(--border); }
.document-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 26px; }
.document-meta span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.document-meta strong { display: block; font-size: 13px; font-weight: 500; }
.document-meta small { display: block; color: #94a1b3; margin-top: 3px; }
.document-total { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 20px 12px; color: #7e8ba0; font-size: 12px; }
.document-total strong { color: var(--ink); font-weight: 500; }
.document-total b { font-size: 23px; font-weight: 600; margin-left: 16px; }
.detail-note { color: #9da8b7; font-size: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 38px; margin: 0; }
.detail-fields dt { font-size: 11px; color: #95a2b2; margin-bottom: 5px; }
.detail-fields dd { font-size: 14px; margin: 0; color: #425a78; overflow-wrap: anywhere; }
.composer-fields { display: grid; grid-template-columns: 1.5fr .5fr 1fr; gap: 15px; }
.record-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.record-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.record-fields input { margin-top: 6px; }
.record-fields .form-hint { align-self: end; }
.form-hint { color: var(--muted); font-size: 12px; }
.record-extra { margin-top: 24px; }
.record-extra summary { cursor: pointer; color: var(--blue); padding: 8px 0; }
.record-extra .record-fields { margin-top: 12px; }
.contact-addresses { margin-top: 24px; }
.contact-addresses summary { cursor: pointer; color: var(--blue); padding: 8px 0; }
.contact-address { padding: 16px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.contact-address p { color: var(--muted); margin-top: 5px; }
.sat-types { margin: 0; }
.sat-list-panel { overflow: hidden; }
.sat-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(0, 1fr)); gap: 15px; padding: 20px; border-bottom: 1px solid var(--border); }
.sat-filters label, .sat-filters input, .sat-filters select { min-width: 0; }
.sat-filters input, .sat-filters select { margin-top: 6px; }
.sat-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0 20px; }
.sat-part { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; padding: 20px 0; background: white; border: 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.sat-part:hover { color: var(--blue); }
.sat-part-top, .sat-part-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sat-part-top strong, .sat-part-client, .sat-part-problem { overflow-wrap: anywhere; }
.sat-part-client { font-weight: 600; }
.sat-part-problem { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sat-part-bottom { color: var(--muted); font-size: 12px; }
.sat-part-bottom > span { margin-left: auto; }
.sat-client-filter { padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sat-statistics { margin-top: 20px; padding: 20px; }
.sat-statistics summary { cursor: pointer; color: var(--blue); }
.sat-summary-grid { display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0; }
.sat-summary-grid span { display: block; color: var(--muted); }
.sat-summary-grid strong { display: block; font-size: 24px; }
#sat-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.sat-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sat-form-grid input, .sat-form-grid select { margin-top: 6px; }
.sat-selection-hint { color: var(--blue); font-size: 12px; margin-top: 12px; }
.sat-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#sat-remote-print label { margin: 12px 0; }
.sat-memo { display: block; margin-top: 18px; }
.sat-memo textarea { display: block; width: 100%; resize: vertical; min-height: 88px; margin-top: 6px; padding: 12px; border: 1px solid #dce3ed; border-radius: 7px; font: inherit; color: var(--ink); background: white; }
.sat-memo textarea:focus { outline: 2px solid #8bb7ff; }
.sat-check { display: flex; align-items: center; gap: 10px; }
.sat-check input { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--blue); }
.sat-signature { width: 100%; height: 180px; touch-action: none; border: 1px dashed #a8b9cf; border-radius: 7px; background: white; margin-top: 12px; }
.sat-photo-preview img { display: block; max-width: 100%; max-height: 240px; object-fit: contain; margin: 12px 0; }
.sat-photo-input { margin: 18px 0; }
.sat-attachments > .form-hint { margin-top: 20px; }
.sat-attachments .button { margin: 8px 8px 8px 0; }
.embedded-app .workspace-footer, .embedded-app .toolbar-note, .embedded-app .tabs-trailing, .embedded-app .connection-chip { display: none; }
.composer-fields input, .composer-fields select { margin-top: 7px; font-size: 12px; }
.composer-line-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 15px; gap: 15px; }
.composer-line-head h3 { font-size: 14px; }
.composer-line { display: grid; grid-template-columns: minmax(160px, 1fr) 90px 120px 75px 28px; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0f6; align-items: start; }
.composer-line label { font-size: 10px; color: #8595aa; font-weight: 400; }
.composer-line input { min-height: 37px; padding: 7px 9px; margin-top: 5px; font-size: 12px; }
.composer-line .icon-button { margin-top: 22px; }
.line-name { display: block; font-size: 10px; margin-top: 5px; color: #8597b0; }
.composer-summary { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding-top: 25px; }
.composer-summary p { max-width: 350px; font-size: 11px; color: #919fb0; }
.composer-summary strong { font-size: 12px; font-weight: 500; color: #8595aa; white-space: nowrap; }
.composer-summary strong > span { display: block; font-size: 23px; color: var(--ink); text-align: right; margin-top: 4px; }
.notifications { position: fixed; bottom: 35px; left: 50%; transform: translate(-50%, 15px); max-width: min(620px, 90vw); border-radius: 8px; padding: 13px 20px; background: #163f34; box-shadow: 0 5px 25px #172a4226; color: white; font-size: 12px; opacity: 0; pointer-events: none; z-index: 100; transition: .2s; }
.notifications.visible { opacity: 1; transform: translate(-50%, 0); }
.notifications.error { background: #943c37; }
.noscript { background: white; color: var(--muted); padding: 30px; text-align: center; }
@media (min-width: 1600px) { .access-brand { padding-inline: 13%; } .access-main { padding-inline: 17%; } }
@media (max-width: 1150px) {
    .app-header { gap: 20px; padding-inline: 22px; }
    .header-company { padding-left: 18px; }
    .header-right > .connection-chip { display: none; }
    .header-divider { display: none; }
    .main-tabs, .action-toolbar { padding-inline: 20px; }
    .main-tabs { gap: 2px; }
    .tabs-trailing { display: none; }
    .workspace-main { padding-inline: 24px; }
    .metric-grid { gap: 13px; }
    .metric-card { padding-inline: 16px; }
    .list-filters { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .search-field { width: 100%; max-width: 400px; }
    .date-filters { flex-wrap: wrap; }
    .access-brand { padding-inline: 9%; }
    .access-main { padding-inline: 10%; }
    .access-points { gap: 14px; }
}
@media (max-width: 850px) {
    .access-layout { grid-template-columns: 40% 60%; }
    .access-brand { padding-inline: 10%; padding-top: 35px; }
    .access-message h1 { font-size: 34px; }
    .access-message > p { font-size: 12px; }
    .desktop-illustration { margin-top: 30px; }
    .access-brand > footer > span { display: none; }
    .access-main { padding-inline: 9%; }
    .steps { gap: 17px; }
    .access-card h2 { font-size: 24px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card > strong { font-size: 27px; }
    .toolbar-note { display: none; }
    .main-tab { padding-inline: 14px; }
    .user-name { display: none; }
    .today-label { display: none; }
    .workspace-footer > span:last-child { display: none; }
    .composer-line { grid-template-columns: minmax(120px, 1fr) 70px 95px 60px 25px; gap: 8px; }
}
@media (max-width: 600px) {
    .access-layout { display: block; min-height: 100dvh; }
    .access-brand { display: none; }
    .access-main { min-height: 100dvh; padding: 25px 28px 85px; }
    .access-card { padding: 0; max-width: 400px; }
    .access-mobile-brand { display: inline-flex; margin-bottom: 42px; }
    .steps { margin-bottom: 38px; gap: 21px; font-size: 10px; }
    .access-card h2 { font-size: 25px; }
    .access-right-footer { left: 28px; right: 28px; }
    .app-header { min-height: 67px; padding-inline: 15px; gap: 6px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .app-header > .brand { grid-column: 1; grid-row: 1; padding-top: 12px; }
    .app-header .brand-name { font-size: 21px; gap: 5px; }
    .app-header .brand-mark { width: 29px; height: 29px; }
    .app-header .brand-web { font-size: 9px; padding-inline: 5px; }
    .header-company { border: 0; padding: 0 0 10px; margin-left: 0; gap: 8px; grid-column: 1 / -1; grid-row: 2; justify-self: start; }
    .company-symbol { display: none; }
    .header-company strong { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
    .header-company small { font-size: 9px; }
    .header-company .icon-button { margin: 0; width: 18px; }
    .header-right { margin-left: 0; gap: 0; grid-column: 2; grid-row: 1; padding-top: 12px; }
    .header-right .avatar { display: none; }
    .main-tabs { padding-inline: 7px; min-height: 47px; }
    .main-tab { min-height: 47px; padding-inline: 12px; font-size: 11px; gap: 6px; }
    .main-tab .icon { width: 15px; height: 15px; }
    .action-toolbar { padding-inline: 12px; min-height: 54px; }
    .toolbar-actions { gap: 2px; }
    .button.compact { font-size: 10px; padding: 6px 9px; }
    .toolbar-divider { margin-inline: 4px; }
    .workspace-main { padding: 24px 16px; }
    .page-heading { margin-bottom: 22px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading p { font-size: 11px; line-height: 1.65; }
    .section-label { font-size: 8px; letter-spacing: 1.4px; }
    .metric-grid { gap: 10px; margin-bottom: 16px; }
    .metric-card { padding: 13px; }
    .metric-top { font-size: 9px; gap: 4px; }
    .metric-icon { width: 25px; height: 25px; border-radius: 6px; }
    .metric-icon .icon { width: 14px; height: 14px; }
    .metric-card > strong { font-size: 23px; letter-spacing: -.8px; }
    .metric-card > p { font-size: 8px; margin-top: 9px; }
    .dashboard-grid { gap: 16px; margin-bottom: 16px; }
    .panel-heading { padding: 18px 16px 9px; }
    .panel-heading h2 { font-size: 13px; }
    .panel-heading p { font-size: 9px; }
    .quick-actions { display: block; padding: 5px 12px 12px; }
    .quick-actions > button { padding-block: 10px; }
    .sales-chart { height: 190px; }
    .chart-wrap { padding-right: 12px; padding-left: 6px; }
    .chart-foot { padding-inline: 16px; font-size: 8px; }
    .workspace-footer { padding-inline: 15px; font-size: 8px; gap: 10px; }
    .workspace-footer > span:first-child { max-width: 50%; overflow: hidden; white-space: nowrap; }
    th, td { padding-inline: 15px; }
    .list-filters { padding: 15px; }
    .date-filters { gap: 8px; }
    .date-filters label { flex-direction: column; align-items: flex-start; gap: 3px; }
    .date-filters input { min-width: 120px; }
    .table-footer { padding: 13px 15px; gap: 10px; }
    .table-footer > span { font-size: 9px; }
    dialog { width: calc(100vw - 18px); max-height: 94dvh; border-radius: 9px; }
    .dialog-heading { padding: 19px; }
    .dialog-heading h2 { font-size: 19px; }
    .dialog-body { padding: 19px; }
    .dialog-footer { padding: 15px 19px; }
    .document-meta { flex-wrap: wrap; }
    .document-meta > div:first-child { width: 100%; }
    .detail-fields { gap: 22px 18px; }
    .composer-fields { grid-template-columns: 1fr 1fr; }
    .record-fields { grid-template-columns: 1fr; }
    .sat-form-grid, .sat-parts { grid-template-columns: 1fr; }
    .sat-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px; }
    .sat-filters > label:first-child, .sat-filters > label:nth-child(2) { grid-column: 1 / -1; }
    #sat-form input, #sat-form select, #sat-form textarea, .sat-filters input, .sat-filters select { font-size: 16px; }
    #sat-form .dialog-footer { flex-wrap: wrap; position: sticky; bottom: 0; z-index: 1; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
    .sat-part { padding: 18px 0; }
    .sat-part-top { align-items: flex-start; }
    .sat-part-top .type-badge { flex-shrink: 0; }
    .sat-entry { min-height: 38px; padding: 7px 10px; }
    .record-form input, #composer-form input, #composer-form select { font-size: 16px; min-height: 44px; }
    .record-form .dialog-footer, #composer-form .dialog-footer { position: sticky; bottom: 0; padding-bottom: max(15px, env(safe-area-inset-bottom)); z-index: 1; }
    .composer-fields > label:first-child { grid-column: 1 / -1; }
    .composer-line { grid-template-columns: 1fr 1fr 1fr 25px; }
    .composer-line .line-article { grid-column: 1 / -1; }
    .composer-line .icon-button { margin-top: 21px; }
    .composer-summary { flex-direction: column; align-items: flex-end; gap: 15px; }
    .composer-summary p { max-width: none; }
    .notifications { bottom: 20px; font-size: 11px; width: 90vw; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    body.printing-blocked #app, body.printing-blocked dialog[open] { display: none !important; }
    body.printing-blocked::after { content: 'Tu usuario no tiene permiso para imprimir desde SimplyGest Web.'; display: block; padding: 30px; }
    :root { font-size: 11px; }
    body { background: white; }
    .main-tabs, .action-toolbar, .header-right, .workspace-footer, .workspace-caption, .skip-link, .notifications, .list-filters, .table-footer, .quick-panel, .chart-data, .icon-button, .text-button, .demo-banner { display: none !important; }
    .workspace-main { padding: 20px 0; }
    .app-header { padding: 0 0 15px; min-height: auto; }
    .metric-grid { grid-template-columns: repeat(4, 1fr); }
    .metric-card > strong { font-size: 22px; }
    .dashboard-grid { display: block; }
    .panel { break-inside: avoid; box-shadow: none; }
    .sales-panel { margin-bottom: 20px; }
    th, td { padding: 9px; }
    .table-scroll { overflow: visible; }
    .table-link { color: inherit; }
    dialog[open] { position: absolute; inset: 0; margin: 0; width: 100%; max-height: none; border: 0; box-shadow: none; overflow: visible; }
    dialog[open]::backdrop { background: white; }
    body:has(dialog[open]) #app { display: none; }
    .dialog-footer { display: none; }
}

#advanced-record-form fieldset {border: 0; padding: 0; margin: 0; min-width: 0;}
.step-remember {margin: 18px 0; display: grid; gap: 8px;}

.composer-line .line-description {grid-column: 1 / -1;}
.composer-line label {min-width: 0;}

@media (max-width: 720px) { .composer-fields > label:last-child {grid-column: 1 / -1;} }

.embedded-app .access-description,
.embedded-app .product-help,
.embedded-app .access-footnote,
.embedded-app .access-welcome { display: none; }

/* Keep the embedded sign-in steps compact and anchored to the same top edge. */
.embedded-app #app:has(.access-layout) { display: flex; flex-direction: column; min-height: 100dvh; }
.embedded-app .access-layout { display: flex; flex: 1; min-height: 0; }
.embedded-app .access-brand { display: none; }
.embedded-app .access-main { flex: 1; min-height: 0; justify-content: flex-start; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.embedded-app .access-card { max-width: 440px; padding: 0; }
.embedded-app .access-mobile-brand { display: flex; width: fit-content; margin-bottom: 24px; }
.embedded-app .steps { margin-bottom: 24px; gap: 20px; }
.embedded-app .access-card .back { margin-bottom: 14px; }
.embedded-app .access-card h2 { margin: 0 0 16px; font-size: 24px; }
.embedded-app #access-form > label, .embedded-app #password-field > label { margin-top: 16px; }
.embedded-app .remember-options { margin: 16px 0 12px; }
.embedded-app #access-form .button.wide { margin-top: 12px; }
.embedded-app .access-right-footer { position: static; max-width: 440px; width: 100%; margin-top: auto; padding-top: 28px; gap: 12px; }

.step-remember { gap: 0; }
.step-remember label { min-height: 36px; margin: 0; }
.step-remember input[type="checkbox"] { min-height: 0; padding: 0; flex-shrink: 0; }

.creation-dropdown { position: relative; }
.creation-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 110; width: 230px; max-width: calc(100vw - 32px); padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px #17335120; }
.creation-menu button { display: block; width: 100%; border: 0; border-radius: 5px; background: transparent; padding: 11px 12px; text-align: left; color: var(--ink); font-size: 13px; }
.creation-menu button:hover, .creation-menu button:focus-visible { background: var(--page); }
.embedded-app .app-header > .brand, .embedded-app .app-header > .header-right { display: none; }
.embedded-app .app-header { display: flex; min-height: 60px; }
.embedded-app .app-header .header-company { grid-column: 1; grid-row: 1; margin: 0; padding: 12px 0; border: 0; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.embedded-app .app-header .company-symbol { display: inline-flex; }
.embedded-app .app-header .header-company strong { max-width: min(60vw, 400px); }
.embedded-app .app-header .header-company > .icon-button { margin-left: 0; width: 32px; height: 32px; }
.embedded-app .company-switch-menu { left: 0; right: auto; }

.creation-menu { max-height: min(420px, calc(100dvh - 180px)); overflow-y: auto; }

.document-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.document-status { display: inline-block; white-space: nowrap; border-radius: 4px; padding: 4px 7px; font-size: 10px; line-height: 1.25; background: #f0f3f8; color: #55647a; }
.status-paid { background: #e9f6ef; color: #276c4b; }
.status-pending { background: #fff3db; color: #8c5b0c; }
.status-partial { background: #eaf1ff; color: #26549a; }
.status-correction { background: #fcebea; color: #a43d38; }
.status-corrected { background: #f1ebfa; color: #75509b; }

#sat-form .record-tabs { overflow-x: auto; }
#sat-form .record-tabs button { flex-shrink: 0; white-space: nowrap; cursor: pointer; }
#sat-form .record-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }

.report-default {padding:20px;border:1px solid var(--border);border-radius:10px;background:var(--page);}
.report-default h3 {margin:12px 0;font-size:20px;color:var(--ink);overflow-wrap:anywhere;}
.report-default p {margin:0;color:var(--muted);font-size:13px;line-height:1.6;}
#report-panel-more select {min-height:210px;padding:5px;}
#report-panel-more option {padding:9px 10px;}
.report-print-button {white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:center;}

.global-search-trigger { flex-shrink: 0; }
.global-search-form { display: flex; gap: 10px; align-items: center; }
.global-search-form input { flex: 1; min-width: 0; }
.global-search-group { margin-top: 24px; }
.global-search-group h3 { margin-bottom: 8px; }
.global-search-result { display: flex; width: 100%; text-align: left; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 7px; cursor: pointer; }
.global-search-result:hover, .global-search-result:focus-visible { background: #f3f7ff; border-color: #8babee; }
.global-search-result span { min-width: 0; overflow-wrap: anywhere; }
.global-search-result strong, .global-search-result small { display: block; }
.global-search-result small { margin-top: 4px; color: var(--muted); }
.global-search-result svg { flex-shrink: 0; }
.global-search-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
@media (max-width: 600px) { .global-search-trigger { padding-inline: 8px; } .toolbar-actions { gap: 7px; } .global-search-form { gap: 6px; } .global-search-form .button { padding-inline: 12px; } }

#composer-form .record-tabs { overflow-x: auto; }
#composer-form .record-tabs button { flex-shrink: 0; white-space: nowrap; cursor: pointer; }
#composer-form .record-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.composer-comment { display: block; margin-top: 20px; }
.composer-options { display: grid; gap: 18px; }
#composer-form .sat-check { margin: 0; }
#composer-form [hidden] { display: none; }
@media (max-width: 600px) { #composer-form .record-tabs { padding-inline: 12px; gap: 6px; } #composer-form textarea { font-size: 16px; } }

.document-detail-tabs { overflow-x: auto; }
.document-detail-tabs button { cursor: pointer; white-space: nowrap; }
.document-detail-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
#document-panel-general[hidden], #document-panel-lines[hidden] { display: none; }
