/* 大襄物联品牌层：标识保持原图；告警的红、橙等语义色不改。 */
:root { --does-primary: #00807b; --does-ink: #142d36; --does-muted: #5e737b; }
body { font-family: Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; }
body .tb-primary-toolbar, body .tb-nav-header-toolbar { background: var(--does-primary) !important; }
body .tb-side-menu-toolbar { background: var(--does-primary) !important; }
body .tb-side-menu a.tb-active { background: #ffffff20 !important; color: white !important; }
body .tb-side-menu a:hover { background: #ffffff12 !important; }
body .tb-side-menu a.tb-active:hover { background: #ffffff2a !important; }
body .tb-loading-spinner > div { background-color: var(--does-primary); }
body tb-logo a.does-brand-link { display: flex !important; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
body tb-logo img.does-brand-logo { width: 50px !important; height: 46px !important; max-height: none !important; object-fit: contain; }
.does-brand-name { display: flex; flex-direction: column; line-height: 1.4; white-space: nowrap; text-align: left; }
.does-brand-name strong { font-size: 16px; font-weight: 600; letter-spacing: 2px; }
.does-brand-name small { font-size: 11px; font-weight: 400; letter-spacing: 1px; opacity: .88; }
body tb-login .tb-login-content { background: radial-gradient(ellipse at 15% 10%, #deeeea 0, transparent 50%), #f3f7f6 !important; }
body tb-login mat-card { background: var(--does-ink) !important; border-radius: 16px !important; box-shadow: 0 16px 60px #142d3626 !important; border-top: 5px solid #00807b; }
body tb-login .login-logo { margin: 12px 0 20px; }
body tb-login tb-logo a.does-brand-link { flex-direction: column; gap: 10px; }
body tb-login tb-logo img.does-brand-logo { width: 118px !important; height: 106px !important; }
body tb-login .does-brand-name strong { display: none; }
body tb-login .does-brand-name small { font-size: 17px; letter-spacing: 4px; opacity: 1; }
body tb-login button[type=submit] { background: #00807b !important; color: #fff !important; border-radius: 6px; min-height: 42px; }
body tb-login button[type=submit]:hover { background: #00958d !important; }
body tb-login .mat-mdc-form-field { --mat-form-field-outlined-focus-outline-color: #69c8bd; --mat-form-field-outlined-focus-label-text-color: #a5ded7; --mat-form-field-outlined-caret-color: #a5ded7; }

/* 紧凑字号：只调文字，不使用整页缩放，保留图标和操作区域大小。 */
body { font-size: 13px; }
body h1 { font-size: 26px !important; }
body h2 { font-size: 22px !important; }
body h3 { font-size: 20px !important; }
body h4 { font-size: 16px !important; }
body .tb-dashboard-title h3 { font-size: 22px !important; line-height: 30px !important; }
body .tb-side-menu a,
body .mdc-button__label,
body .mat-mdc-header-cell,
body .mat-mdc-cell,
body .mat-mdc-paginator { font-size: 12px !important; }
body .mat-toolbar,
body .tb-primary-toolbar a,
body .tb-primary-toolbar .divider,
body .tb-widget-title .title { font-size: 14px !important; }
body .tb-widget-title .title { line-height: 20px !important; }
body .mat-mdc-select-value-text,
body .mat-mdc-option,
body .mat-mdc-menu-item,
body .mat-mdc-tab .mdc-tab__text-label,
body .tb-timewindow-label,
body .tb-state-title,
body .mat-body-1,
body .mat-body-2,
body .mat-subtitle-1 { font-size: 13px !important; }
body .mat-mdc-form-field {
  --mat-form-field-container-text-size: 13px;
  --mat-form-field-outlined-label-text-size: 13px;
  --mat-form-field-filled-label-text-size: 13px;
  --mat-form-field-subscript-text-size: 11px;
}
@media (max-width: 600px) {
  body tb-login mat-card { width: calc(100vw - 32px) !important; }
  body tb-login tb-logo img.does-brand-logo { width: 98px !important; height: 88px !important; }
}
