/* Resolvix portal shell: bar, sub-navigation, dashboard tiles.
   All classes are px- prefixed so they never collide with a tool's own CSS. */

.px-bar { background: #0d2a5e; color: #fff; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; position: relative; z-index: 50; }
.px-bar-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.px-wide .px-bar-in, .px-wide .px-sub-in { max-width: 1100px; }
.px-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.px-logo { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.px-name small { font-weight: 400; font-size: 13px; opacity: .8; margin-left: 6px; }

.px-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.px-link { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; opacity: .92; }
.px-link:hover { background: rgba(255,255,255,.14); }
.px-link.on { background: rgba(255,255,255,.22); font-weight: 600; opacity: 1; }

.px-menu { position: relative; }
.px-menu summary { list-style: none; cursor: pointer; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 14px; opacity: .92; }
.px-menu summary::-webkit-details-marker { display: none; }
.px-menu summary:hover, .px-menu[open] summary { background: rgba(255,255,255,.16); }
.px-menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: #1d2a3f; border-radius: 8px; box-shadow: 0 8px 24px rgba(13,42,94,.28); min-width: 230px; padding: 6px; z-index: 60; }
.px-menu-list a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 6px; color: #1d2a3f; text-decoration: none; font-size: 14px; }
.px-menu-list a:hover { background: #eef4fc; }
.px-menu-list a.on { background: #e8f1fb; font-weight: 600; }
.px-menu-list hr { border: 0; border-top: 1px solid #dfe5ef; margin: 4px 0; }

.px-sub { background: #fff; border-bottom: 1px solid #dfe5ef; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.px-sub-in { max-width: 760px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.px-sub a { display: inline-block; padding: 10px 12px; color: #1d2a3f; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; white-space: nowrap; }
.px-sub a:hover { color: #1565C0; }
.px-sub a.on { color: #1565C0; border-bottom-color: #1565C0; }

.px-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2a3f; }
.px-foot { max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; color: #5b6b82; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; }

/* Dashboard */
.px-greet { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.px-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 20px; }
.px-stat { display: block; background: #fff; border-radius: 8px; padding: 12px 14px; text-decoration: none; color: #1d2a3f; box-shadow: 0 1px 4px rgba(13,42,94,.10); border-left: 4px solid #1565C0; }
.px-stat:hover { box-shadow: 0 2px 8px rgba(13,42,94,.2); }
.px-stat b { display: block; font-size: 26px; line-height: 1.1; color: #0d2a5e; }
.px-stat span { color: #5b6b82; font-size: 14px; }
.px-stat.warn { border-left-color: #e0a100; }
.px-h2 { font-size: 18px; color: #0d2a5e; margin: 22px 0 10px; }
.px-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.px-tile { display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: 8px; padding: 14px 16px; text-decoration: none; color: #1d2a3f; box-shadow: 0 1px 4px rgba(13,42,94,.10); }
.px-tile:hover { box-shadow: 0 2px 8px rgba(13,42,94,.2); }
.px-tile-icon { flex: 0 0 44px; height: 44px; border-radius: 10px; background: #e8f1fb; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.px-tile h3 { margin: 0 0 2px; font-size: 16px; color: #1565C0; }
.px-tile p { margin: 0; color: #5b6b82; font-size: 14px; }
.px-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fff3d6; color: #7a5200; margin-left: 6px; text-transform: uppercase; }

@media (min-width: 640px) {
    .px-stats { grid-template-columns: repeat(5, 1fr); }
    .px-grid { grid-template-columns: 1fr 1fr; }
}
