html {
  font-size: 14px;
}


html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: #f3f5f7;
  color: #27313d;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}
:root { --sidebar-width: 254px; --line: #e4e8ed; --muted: #687788; }
a { color: #087486; text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 25px; font-weight: 600; margin: 0 0 24px; }
h2,.h4 { font-size: 20px; font-weight: 600; } h3,.h5 { font-size: 17px; font-weight: 600; }
svg.lucide { width: 20px; height: 20px; stroke-width: 1.7; flex-shrink: 0; }
button:focus-visible,a:focus-visible { outline: 3px solid #1eb3c2; outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1100; background: white; padding: 12px; } .skip-link:focus { top: 8px; }
.portal-sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; background: #343e4d; color: #c4ccd5; z-index: 1040; display: flex; flex-direction: column; overflow-y: auto; transition: transform .2s; }
.portal-brand { display: flex; align-items: center; gap: 12px; padding: 25px 22px; color: white; font-size: 21px; font-weight: 600; line-height: 1.2; } .portal-brand:hover { text-decoration: none; color: white; }
.brand-mark { background: #10b8ac; border-radius: 7px; width: 36px; height: 36px; display: grid; place-items: center; color: white; flex-shrink: 0; }
.brand-caption { display: block; font-size: 12px; font-weight: 400; color: #c4ccd5; margin-top: 5px; }
.nav-caption { font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 24px 24px 8px; margin: 0; color: #aeb9c7; }
.sidebar-link { display: flex; gap: 13px; align-items: center; min-height: 48px; padding: 12px 21px; border-left: 3px solid transparent; color: #c4ccd5; font-size: 13px; }
.sidebar-link:hover { background: #2c3542; text-decoration: none; color: white; } .sidebar-link.active { background: #2b3441; border-left-color: #19c4b5; color: white; } .sidebar-link.active svg { color: #39d9c3; }
.sidebar-foot { margin-top: auto; padding: 30px 22px 22px; font-size: 11px; color: #b7c2ce; display: flex; gap: 8px; align-items: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #19b598; display: inline-block; flex-shrink: 0; }
.portal-workspace { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s; }
.portal-header { height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 30px; border-bottom: 1px solid var(--line); background: white; }
.icon-button { border: 0; background: transparent; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; color: #637285; } .icon-button:hover { background: #edf1f4; }
.header-workspace { color: var(--muted); font-size: 13px; } .account-menu,.header-signin { margin-left: auto; }
.account-trigger { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #27313d; min-height: 44px; max-width: 320px; }
.account-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e4f4f0; color: #087a70; }
.account-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } .account-trigger>svg { width: 16px; }
.dropdown-menu { border-color: var(--line); border-radius: 5px; box-shadow: 0 8px 24px #27313d16; max-width: min(320px,90vw); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; } .dropdown-item svg { width: 17px; } .header-signin { display: flex; align-items: center; gap: 8px; }
.portal-main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 26px 32px 40px; flex: 1; min-width: 0; }
.portal-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 16px; flex-wrap: wrap; } .portal-breadcrumb svg { width: 13px; height: 13px; }
.portal-footer { padding: 18px 32px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sidebar-backdrop { display: none; } .sidebar-collapsed .portal-sidebar { transform: translateX(-100%); } .sidebar-collapsed .portal-workspace { margin-left: 0; }
.sidebar-close { display: none; position: absolute; top: 20px; right: 10px; color: #c4ccd5; }
.portal-public .portal-main .col-md-4 { width: 100%; }
.public-brand { min-width: 0; } .header-signin { flex-shrink: 0; }
@media(max-width:767px) { .sidebar-close { display: grid; } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; } .page-heading h1 { margin: 0 0 4px; } .page-subtitle { color: var(--muted); margin: 0; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 32px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 5px; padding: 20px; min-width: 0; }
.metric-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; } .metric-label svg { color: #087f8c; } .metric:nth-child(2) svg { color: #357adb; } .metric:nth-child(3) svg { color: #b98016; } .metric:nth-child(4) svg { color: #379369; }
.metric-value { font-size: 30px; font-weight: 500; margin: 13px 0 6px; line-height: 1.2; } .metric-note { font-size: 12px; color: var(--muted); }
.workspace-section { margin: 28px 0; border-top: 1px solid var(--line); padding-top: 22px; } .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; } .section-heading h2 { margin: 0; font-size: 18px; }
.empty-state { padding: 32px 20px; text-align: center; color: var(--muted); background: white; border-bottom: 1px solid var(--line); } .empty-state svg { width: 30px; height: 30px; color: #8e9bab; display: block; margin: 0 auto 10px; } .empty-state strong { display: block; color: #27313d; font-weight: 500; } .empty-state p { font-size: 13px; margin: 5px 0 12px; }
.table-responsive { background: white; border: 1px solid var(--line); width: 100%; overflow: auto; } .table { margin: 0; font-size: 13px; color: #27313d; vertical-align: middle; } .table>:not(caption)>*>* { padding: 13px 16px; border-bottom-color: var(--line); background: transparent; } .table th { font-size: 12px; font-weight: 600; color: #667487; background: #fafbfc; white-space: nowrap; } .table tbody tr:hover { background: #f8fbfc; } .table code { font-size: 11px; overflow-wrap: anywhere; color: #627185; }
.table-tools { display: flex; align-items: center; gap: 12px; margin: 16px 0; justify-content: space-between; flex-wrap: wrap; } .table-search { display: flex; align-items: center; gap: 10px; max-width: 360px; flex: 1; background: white; border: 1px solid #d6dde5; border-radius: 4px; padding: 8px 12px; } .table-search input { border: 0; outline: 0; width: 100%; min-width: 80px; background: transparent; font-size: 13px; } .table-search:focus-within { outline: 2px solid #66b7bf; } .table-search svg { width: 17px; color: var(--muted); } .table-count { font-size: 12px; color: var(--muted); } .table-filter-empty { padding: 20px; background: white; text-align: center; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #e5f4ed; color: #21744d; } .status-badge.off { background: #eef0f3; color: #66717d; } .status-badge.warning { background: #fff2d9; color: #926012; }
.btn { border-radius: 4px; font-size: 13px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; min-height: 38px; } .btn svg { width: 16px; height: 16px; } .btn-primary { background: #087f8c; border-color: #087f8c; } .btn-primary:hover,.btn-primary:focus { background: #066775; border-color: #066775; } .btn-outline-primary { color: #087f8c; border-color: #087f8c; } .btn-outline-primary:hover { background: #087f8c; border-color: #087f8c; } .btn-success { background: #25845f; border-color: #25845f; } .btn-sm { padding: 5px 10px; min-height: 30px; font-size: 12px; }
.form-label { font-size: 12px; font-weight: 600; color: #516173; margin-bottom: 6px; } .form-control,.form-select { border-radius: 4px; font-size: 13px; border-color: #d6dde5; min-height: 40px; } .form-control:focus,.form-select:focus { border-color: #65b8c0; box-shadow: 0 0 0 3px #087f8c16; } .form-check { font-size: 13px; padding-top: 6px; } .form-check-input:checked { background-color: #087f8c; border-color: #087f8c; } .form-floating { margin-bottom: 16px; } .alert { border-radius: 5px; font-size: 13px; overflow-wrap: anywhere; } .nav-pills .nav-link.active { background: #087f8c; } .nav-pills .nav-link { border-radius: 4px; padding: 10px 14px; }
.management-section { padding: 24px 0; border-top: 1px solid var(--line); } .management-section h3 { margin-bottom: 18px; } .machine-row { background: white; padding: 20px; border-bottom: 1px solid var(--line); } .machine-row .table-responsive { border: 0; } .organization-create { max-width: 820px; } kbd { font-size: 13px; overflow-wrap: anywhere; white-space: normal; } .text-break { overflow-wrap: anywhere; }
.portal-public .portal-workspace { margin-left: 0; } .public-brand { color: #27313d; padding: 0; font-size: 18px; } .public-brand:hover { color: #27313d; } .portal-public .portal-main { max-width: 560px; padding-top: 60px; }
.login-panel { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 32px; } .login-panel h1 { font-size: 24px; margin-bottom: 6px; } .login-panel .page-subtitle { margin-bottom: 28px; } .login-panel .form-label { font-size: 13px; } .login-panel .form-control { min-height: 44px; } .login-panel .btn { width: 100%; min-height: 44px; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 12px; } .login-brand { display: flex; justify-content: center; margin-bottom: 24px; } .login-brand .brand-mark { width: 48px; height: 48px; } .login-brand svg { width: 26px; height: 26px; } .login-support { font-size: 12px; color: var(--muted); text-align: center; margin: 24px 0 0; } .portal-main>.row { margin-top: 16px; } .portal-main>.row>div { min-width: 0; }
@media(max-width:1100px) { .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .portal-main { padding: 24px; } .header-workspace { display: none; } }
@media(max-width:767px) { .portal-sidebar { transform: translateX(-100%); } .portal-workspace { margin-left: 0; } .sidebar-open .portal-sidebar { transform: translateX(0); } .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; border: 0; background: #15222b70; z-index: 1030; } .portal-header { padding: 0 16px; height: 64px; } .portal-main { padding: 20px 16px 30px; } .portal-footer { padding: 16px; } .account-name { display: none; } .portal-brand { padding: 22px; } .public-brand { padding: 0; font-size: 16px; } .page-heading,.section-heading { flex-wrap: wrap; } .metric-grid { gap: 12px; } .metric { padding: 16px; } .metric-value { font-size: 26px; } .table>:not(caption)>*>* { padding: 11px 12px; } .login-panel { padding: 24px; } .portal-public .portal-main { padding-top: 32px; } }
@media(max-width:767px) { .table-responsive>.table { min-width: 640px; } .metric-value { font-size: 30px; } .public-brand { font-size: 18px; } .public-brand>span:last-child { min-width: 0; } }
.workspace-section { background: white; border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.workspace-section .table-responsive { border-left: 0; border-right: 0; }
.organization-create,.organization-detail>form:not(.my-3),.management-section { background: white; border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.organization-create { max-width: none; margin-left: 0; margin-right: 0; }
.organization-detail>h3 { margin: 30px 0 14px; }
.profile-summary,.profile-panel { background: white; border: 1px solid var(--line); border-radius: 4px; padding: 24px; margin-bottom: 24px; }
.profile-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-summary h2 { margin-bottom: 6px; font-size: 18px; }
.profile-summary>.btn { margin-left: auto; }
.profile-emblem { width: 64px; height: 64px; background: #e4f4f0; color: #087f8c; border-radius: 50%; display: grid; place-items: center; }
.profile-emblem svg { width: 30px; height: 30px; }
.profile-panel form { max-width: 560px; }
.license-bars { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 30px; }
.license-bar { display: grid; grid-template-columns: 125px minmax(40px,1fr) 24px; gap: 12px; align-items: center; color: #516173; font-size: 13px; }
.license-bar meter { width: 100%; height: 18px; accent-color: #087f8c; }
.license-bar:nth-child(3n+2) meter { accent-color: #d7952a; }
.license-bar:nth-child(3n) meter { accent-color: #cc5964; }
.license-bar meter::-webkit-meter-optimum-value { background: #087f8c; }
.license-bar:nth-child(3n+2) meter::-webkit-meter-optimum-value { background: #d7952a; }
.license-bar:nth-child(3n) meter::-webkit-meter-optimum-value { background: #cc5964; }
.mfa-code { font-size: 24px; text-align: center; min-height: 56px; }
@media(max-width:767px) { .workspace-section,.profile-panel,.profile-summary,.management-section,.organization-detail>form:not(.my-3) { padding: 16px; } .license-bars { grid-template-columns: 1fr; } .profile-summary>.btn { margin-left: 0; } }
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }

.portal-app .portal-workspace { background: white; }
.portal-header { height: 64px; }
.header-workspace { border-left: 1px solid var(--line); padding-left: 22px; color: #27313d; }
.organization-tools { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; flex-wrap: wrap; }
.organization-tools .table-search { max-width: 420px; min-height: 42px; }
.organization-tools .form-select { max-width: 180px; }
.organization-tools .table-count { margin-left: auto; }
.organization-table { border-radius: 4px; }
.organization-table td:last-child { width: 55px; }
.organization-table tbody tr:hover { background: #ecf8fa; }
.status-badge { border-radius: 20px; padding: 4px 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 12px; }
.back-link svg { width: 16px; }
.organization-heading { align-items: center; margin-bottom: 16px; }
.organization-id { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.organization-id code { color: #27313d; overflow-wrap: anywhere; }
.organization-id .icon-button { width: 30px; height: 30px; color: #087486; }
.organization-id svg { width: 16px; }
.organization-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); padding: 14px 0; border-radius: 4px; margin-bottom: 14px; }
.organization-summary>div { display: flex; gap: 16px; align-items: center; padding: 0 24px; border-right: 1px solid var(--line); min-width: 0; }
.organization-summary>div:last-child { border-right: 0; }
.organization-summary svg { color: #087486; width: 26px; height: 26px; }
.organization-summary span { font-size: 12px; overflow-wrap: anywhere; }
.organization-summary strong { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; }
.organization-tabs { flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.organization-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px 22px; white-space: nowrap; color: #657286; font-size: 13px; }
.organization-tabs .nav-link.active { color: #087486; border-bottom-color: #008b9e; }
.organization-panels .tab-pane>form { padding: 18px 0; margin-left: 0; margin-right: 0; }
.organization-panels .management-section { border: 0; padding: 0; }
.machine-row { padding: 20px 0; border-top: 1px solid var(--line); }
.setup-entry { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:12px 0 18px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.setup-entry span, .setup-entry a { display:flex; align-items:center; gap:8px; }
.setup-entry svg { width:18px; height:18px; }
.setup-checklist { list-style:none; padding:0; margin:0; }
.setup-checklist li { display:grid; grid-template-columns:24px minmax(0,1fr) auto 32px; gap:14px; padding:18px 0; border-bottom:1px solid var(--line); align-items:center; }
.setup-checklist p { margin:4px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.check-complete { color:#15834f; }
.check-pending { color:#9c641b; }
.health-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.health-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.health-filters .table-search { flex:1; min-width:180px; }
.health-filters .form-select { max-width:230px; }
@media(max-width:767px) {
 .setup-checklist li { grid-template-columns:24px minmax(0,1fr) 32px; }
 .setup-checklist li>.status-badge { grid-column:2; grid-row:2; justify-self:start; }
 .setup-checklist li>.icon-button { grid-column:3; grid-row:1; }
 .health-metrics { grid-template-columns:1fr; }
 .health-filters .form-select { max-width:none; }
}
.modal-content { border-radius: 6px; }
.machine-access-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.machine-access-tool { border: 1px solid var(--line); border-radius: 4px; padding: 16px; min-width: 0; }
.machine-access-tool form.row>div { width: 100%; }
.machine-access-tool .table-responsive { border-radius: 0; }
@media(max-width:1000px) { .organization-summary>div { padding: 0 14px; gap: 10px; } }
@media(max-width:767px) {
    .machine-access-grid { grid-template-columns: 1fr; }
    .organization-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 0; }
    .organization-summary>div:nth-child(2) { border-right: 0; }
    .organization-tools .table-search { flex-basis: 100%; max-width: none; }
    .organization-heading { align-items: flex-start; }
    .organization-tabs .nav-link { padding: 10px 16px; }
}
