/* Oficina · desktop layout, version 2 */
:root { --header-height: 80px; --menu-width: 252px; }
.office-shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--menu-width); grid-template-rows: var(--header-height) minmax(0, 1fr); }
.office-shell.landing-shell { grid-template-columns: minmax(0, 1fr); }
.app-header { grid-column: 1 / -1; grid-row: 1; height: var(--header-height); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 25px; padding: 0 34px; background: #fcfdfb; border-bottom: 1px solid var(--border); }
.office-brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; background: transparent; color: #294a3b; font-size: 26px; letter-spacing: -.9px; font-weight: 650; flex-shrink: 0; }
.office-brand:hover { color: #3d7053; }
.office-brand img { width: 36px; height: 36px; }
.header-location { display: flex; align-items: center; gap: 10px; color: #89957f; font-size: 12px; padding-left: 26px; margin-left: 8px; border-left: 1px solid #e4e9de; }
.header-location button { background: transparent; color: #6f8360; padding: 6px 0; font-size: 12px; }
.header-location button:hover { color: #255c4b; }
.header-location svg { width: 13px; height: 13px; }
.header-company-mark { margin-left: auto; }
.office-menu-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 66px; height: 43px; color: #6f8562; background: #f1f5ec; border: 1px solid #e2e9da; border-radius: 11px; }
.office-menu-toggle > svg:first-child { width: 22px; height: 22px; }
.office-menu-toggle > svg:last-child { width: 13px; height: 13px; }
.office-menu-toggle:hover, .office-menu-toggle.active { background: #e6efdd; border-color: #cbd9bd; color: #426c39; }
.office-shell .workspace { grid-column: 1; grid-row: 2; min-width: 0; width: auto; }
.office-shell .main { padding: 38px 42px 26px; }
.company-sidebar { position: fixed; top: var(--header-height); right: 0; bottom: 0; left: auto; width: var(--menu-width); padding: 27px 19px 22px; border-left: 1px solid var(--border); background: #fcfdfb; display: flex; flex-direction: column; z-index: 10; }
.sidebar-company { display: flex; align-items: center; gap: 10px; padding: 3px 11px 24px; margin-bottom: 17px; width: 100%; background: none; text-align: left; color: #607551; border-bottom: 1px solid var(--border); }
.sidebar-company strong { font-size: 13px; font-weight: 600; }
.sidebar-company:hover strong { color: #255c4b; }
.company-sidebar .nav-list { display: grid; gap: 6px; overflow: visible; margin: 0; padding: 0; }
.office-shell .nav-button { font-size: 13px; min-height: 45px; }
.company-sidebar .nav-button { padding: 13px 14px; width: 100%; }
.menu-divider { width: 100%; border: 0; border-top: 1px solid #e4e9dc; margin: 22px 0 15px; }
.company-sidebar .change-company { color: #8a967e; }
.company-sidebar .sidebar-bottom { padding: 20px 0 0; margin-top: auto; }
.company-sidebar .sidebar-bottom .nav-button { color: #758b63; border: 1px solid #e2e9d9; background: #f1f5eb; font-size: 12px; }
.company-sidebar .sidebar-bottom .nav-button.active { background: #e2ecd8; border-color: #cbdcbb; }
.company-sidebar .sidebar-bottom .nav-button.active::after { display: none; }
.landing-menu { position: fixed; top: calc(var(--header-height) + 10px); right: 25px; z-index: 30; width: 253px; background: #fff; border: 1px solid #dfe7d6; border-radius: 14px; box-shadow: 0 12px 45px #2b4c3614; padding: 13px; }
.landing-menu .nav-list { display: grid; margin: 0; padding: 0; gap: 3px; overflow: visible; }
.landing-menu .nav-button { padding: 12px 14px; width: 100%; font-size: 13px; }
.landing-menu .sidebar-bottom { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); }
.landing-menu button:disabled { opacity: .52; }
.landing-shell .landing-main { margin: 0; padding: 0 42px; min-height: calc(100svh - var(--header-height)); display: block; background: radial-gradient(ellipse at 50% 40%, #eaf0e566, transparent 60%), #f5f6f3; }
.landing-shell .landing { width: 100%; max-width: 930px; min-height: calc(100svh - var(--header-height)); margin: auto; display: flex; flex-direction: column; }
.landing-welcome { font-size: 11px; text-transform: uppercase; letter-spacing: 2.6px; font-weight: 600; color: #899d76; margin: 50px 0 0; text-align: center; }
.company-picker { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0 100px; }
.landing-shell .landing h1 { font-size: 48px; line-height: 1.19; font-weight: 580; letter-spacing: -1.9px; color: #34513a; }
.landing-shell .company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; width: 100%; max-width: 840px; margin: 45px auto 0; }
.landing-shell .company-card { min-height: 268px; padding: 35px 33px 31px; border-radius: 21px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; box-shadow: 0 7px 24px #304f3504; }
.landing-shell .company-monogram { width: 58px; height: 58px; border-radius: 15px; font-size: 18px; margin-bottom: 26px; }
.landing-shell .company-card > strong { font-size: 28px; letter-spacing: -.9px; font-weight: 580; line-height: 1.3; }
.company-arrow { align-self: flex-end; display: grid; place-items: center; margin-top: auto; padding-top: 17px; color: #8aa474; }
.company-arrow svg { width: 22px; height: 22px; }
.gold .company-arrow { color: #b79e6d; }
.company-home .page-heading { margin-bottom: 29px; }
.company-home .page-heading h1 { font-size: 37px; line-height: 1.2; font-weight: 600; letter-spacing: -1.2px; }
.company-home .page-heading .eyebrow { margin-bottom: 10px; }
.company-home .stats-grid { margin: 0 0 28px; gap: 18px; }
.company-home .stat-card { padding: 22px 23px 20px; display: block; }
.company-home .stat-top { align-items: flex-start; min-height: 36px; gap: 8px; font-size: 12px; line-height: 1.5; }
.company-home .stat-number { font-size: 34px; margin: 6px 0 9px; padding: 0; }
.company-home .severe-card .stat-number { color: #a2ad95; }
.company-home .stat-foot { font-size: 10px; }
.button.excel-state { min-width: 98px; min-height: 42px; padding: 10px 17px; font-size: 13px; font-weight: 600; }
.button.excel-state.current { background: #e2efde; color: #3d7238; border-color: #c6debc; }
.button.excel-state.current:hover { background: #d6e7cf; }
.button.excel-state.attention { background: #f9e9e5; color: #ab574d; border-color: #eccbc4; }
.button.excel-state.attention:hover { background: #f4ddd7; }
.button.excel-state::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.company-home .table-card { margin-top: 0; }
.contracts-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.connection-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.connection-tools .button { font-size: 11px; }
.office-shell .toast { left: calc(50% - var(--menu-width) / 2); }
@media (min-width: 1600px) {
  .landing-shell .company-grid { max-width: 920px; }
  .landing-shell .company-card { min-height: 290px; padding: 38px; }
  .landing-shell .landing h1 { font-size: 52px; }
}
@media (max-width: 1150px) {
  :root { --menu-width: 225px; }
  .office-shell .main { padding: 32px 28px 25px; }
  .company-sidebar { padding-left: 15px; padding-right: 15px; }
  .sidebar-company { padding-left: 7px; padding-right: 5px; }
  .sidebar-company strong { font-size: 12px; }
  .company-home .stat-card { padding: 18px; }
  .company-home .stat-top { font-size: 11px; }
  .company-home .page-heading h1 { font-size: 34px; }
  .landing-shell .company-grid { max-width: 780px; }
}
@media (max-width: 900px) {
  :root { --menu-width: 205px; }
  .app-header { padding-left: 25px; padding-right: 25px; }
  .office-shell .main { padding-left: 23px; padding-right: 23px; }
  .office-shell .nav-button { font-size: 12px; gap: 9px; }
  .company-home .stats-grid { gap: 10px; }
  .company-home .stat-card { padding: 15px 12px; }
  .company-home .stat-icon { width: 25px; height: 25px; }
  .company-home .stat-top { font-size: 10px; }
  .company-home .stat-foot { font-size: 9px; }
  .landing-shell .landing h1 { font-size: 42px; }
}
@media (max-width: 760px) {
  :root { --header-height: 69px; }
  .office-shell { display: flex; flex-direction: column; }
  .app-header { order: 0; flex-shrink: 0; padding: 0 19px; gap: 15px; }
  .office-brand { font-size: 23px; gap: 9px; }
  .office-brand img { width: 32px; height: 32px; }
  .header-location { margin-left: auto; padding-left: 0; border-left: 0; font-size: 10px; }
  .header-location button { font-size: 11px; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .header-company-mark { display: none; }
  .header-location span, .header-location svg { display: none; }
  .company-sidebar { order: 1; position: sticky; top: var(--header-height); width: 100%; padding: 9px 15px; border-left: 0; border-bottom: 1px solid var(--border); background: #fcfdfbf5; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 5px; }
  .sidebar-company { display: none; }
  .company-sidebar .nav-list { display: flex; flex: 1; gap: 3px; }
  .company-sidebar .nav-button { padding: 9px 8px; min-height: 34px; width: auto; white-space: nowrap; font-size: 11px; gap: 5px; }
  .company-sidebar .nav-button svg { width: 15px; height: 15px; }
  .company-sidebar .nav-button.active::after { display: none; }
  .company-sidebar .menu-divider { display: none; }
  .company-sidebar .change-company { margin-left: auto; font-size: 10px; }
  .company-sidebar .sidebar-bottom { margin: 0; padding: 0; width: 100%; border-top: 1px solid #edf0e7; padding-top: 6px; }
  .company-sidebar .sidebar-bottom .nav-button { min-height: 29px; padding: 5px 9px; font-size: 10px; background: transparent; border-color: transparent; }
  .office-shell .workspace { order: 2; width: 100%; }
  .office-shell .main { padding: 27px 20px 22px; }
  .company-home .page-heading h1 { font-size: 30px; }
  .company-home .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-home .stat-card:last-child { grid-column: auto; grid-row: auto; display: block; }
  .company-home .stat-card:last-child .stat-number { font-size: 30px; margin: 6px 0 9px; }
  .company-home .stat-card:last-child .stat-icon { display: grid; }
  .company-home .stat-number { font-size: 30px; }
  .company-home .stat-top { min-height: 43px; }
  .company-home .stat-icon { display: none; }
  .company-home .stat-card:last-child .stat-icon { display: none; }
  .landing-shell .landing-main { padding: 0 27px; }
  .landing-welcome { margin-top: 42px; font-size: 10px; letter-spacing: 2px; }
  .company-picker { padding: 55px 0 100px; }
  .landing-shell .landing h1 { font-size: 38px; }
  .landing-shell .company-grid { margin-top: 33px; gap: 17px; }
  .landing-shell .company-card { padding: 26px 24px 23px; min-height: 245px; }
  .landing-shell .company-card > strong { font-size: 24px; }
  .landing-shell .company-monogram { width: 49px; height: 49px; margin-bottom: 26px; }
  .landing-menu { right: 17px; }
  .toast { left: 50%; }
}
@media (max-width: 480px) {
  .landing-shell .landing h1 { font-size: 32px; letter-spacing: -1.2px; }
  .landing-shell .company-grid { grid-template-columns: minmax(0, 1fr); max-width: 340px; gap: 15px; margin-top: 29px; }
  .landing-shell .company-card { min-height: 158px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; align-items: center; gap: 15px; padding: 24px 22px; }
  .landing-shell .company-monogram { height: 45px; width: 45px; margin: 0; font-size: 14px; }
  .landing-shell .company-card > strong { font-size: 21px; }
  .company-arrow { padding: 0; margin: 0; align-self: center; }
  .company-picker { padding: 45px 0 65px; }
  .company-home .page-heading h1 { font-size: 27px; }
  .company-home .stat-top { font-size: 9px; }
  .company-home .stat-foot { font-size: 8px; }
  .company-sidebar .nav-button { font-size: 10px; padding: 8px 6px; }
  .company-sidebar .change-company span { max-width: 52px; white-space: normal; text-align: left; font-size: 9px; }
  .company-home .stat-card { padding: 13px 10px; }
}
