/* ==========================================================================
   SUPERADMIN MZ — rzeczy tylko superadmina (2026-11-14). Wygląd bazowy = arkusze panelu firm
   (panel/assets/css/app.css + mza.css, body.mz-app); tu klasy, których panel nie ma
   (kafelki firm, funkcje/moduły firmy, cennik, subskrypcja…) + dopasowanie do wyglądu „jak aplikacja”.
   ========================================================================== */

.badge--role-admin { background: var(--danger-d); color: #fff; }
.stat { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: 24px; font-weight: 700; }
.stat__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.stat, .stat-card { min-width: 0; }
@media (max-width: 720px) {
    .stat__value { font-size: 20px; overflow-wrap: anywhere; }
}
.form__check-group { display: flex; flex-direction: column; gap: 8px; }
.company-options .form__group__title { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.company-options__module { align-items: flex-start; }
.company-options__module input { margin-top: 0; flex: 0 0 26px; }
.company-options__name { display: block; font-weight: 700; }
.company-options__hint { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 18px; }
.feature-tile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.feature-tile__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }
.feature-tile__body { min-width: 0; }
.feature-tile__name { font-weight: 700; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.feature-tile__state { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.feature-tile__hint { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.feature-tile.is-on { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.feature-tile.is-on .feature-tile__icon { background: #e6f3ec; color: var(--ok); }
.feature-tile.is-on .feature-tile__state { background: var(--ok); color: #fff; }
.feature-tile.is-off { background: var(--bg); }
.feature-tile.is-off .feature-tile__icon { background: #eceff3; color: #9aa3ad; }
.feature-tile.is-off .feature-tile__name { color: var(--muted); }
.feature-tile.is-off .feature-tile__state { background: #eceff3; color: var(--muted); }
.feature-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.feature-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--rose-light); color: var(--primary); }
.feature-chip--module { background: #e6f3ec; color: var(--ok); }
.company-options__icon { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--primary); }
.company-options .form__check-group { gap: 6px; }
.company-options__module { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.company-options__module:hover { border-color: #c5ccd5; }
.company-options__module:has(input:checked) { border-color: var(--ok); background: #eef7f1; box-shadow: inset 3px 0 0 var(--ok); }
.company-options__module:has(input:checked) .company-options__name::after { content: "✓ " attr(data-on); margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.company-options__module:not(:has(input:checked)) .company-options__name { color: var(--muted); }
.data-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.data-split__col { min-width: 0; }
.data-split__col + .data-split__col { border-left: 1px solid var(--border); padding-left: 32px; }
.data-split .deflist { margin-bottom: 0; }
.data-split .deflist dt { min-width: 140px; }
.data-split .deflist dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .data-split { grid-template-columns: 1fr; gap: 18px; }
    .data-split__col + .data-split__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
.industry-icons { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.industry-icons__item { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #eceff3; color: #b3bac3; flex: 0 0 auto; }
.industry-icons__item.is-on { background: #e6f3ec; color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.company-row__addr { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.pricing-table__name { display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap; }
.pricing-table__input { max-width: 160px; }
.subscription-table { max-width: 560px; }
.subscription-table__price { text-align: right; white-space: nowrap; font-weight: 600; }
.subscription-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); padding-top: 10px; }
.tag--test { background: #f5a524; color: #3d2600; font-weight: 700; }
tr.is-test-company > td { background: #fff8e8; }
tr.is-test-company > td:first-child { box-shadow: inset 4px 0 0 #f5a524; }
.test-company-banner { border-left: 4px solid #f5a524; }
.company-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.company-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.company-tile:hover { border-color: #c5ccd5; }
.company-tile.is-active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.company-tile__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.company-tile__icon svg { width: 20px; height: 20px; }
.company-tile__body { display: flex; flex-direction: column; min-width: 0; }
.company-tile__value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.company-tile__label { font-size: 13px; color: var(--muted); }
.company-tile--all .company-tile__icon { background: var(--primary); }
.company-tile--active .company-tile__icon { background: var(--ok); }
.company-tile--inactive .company-tile__icon { background: #9aa3ad; }
@media (max-width: 640px) {
    .company-tiles { grid-template-columns: 1fr; gap: 10px; }
}

/* --- powłoka: znaczek „Superadmin” przy logo, tytuł w górnym pasku ------------------------- */
.su-app .sidebar__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.su-brand-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--accent-light), var(--accent) 60%, var(--accent-d)); box-shadow: 0 6px 14px -8px var(--accent); }
.su-topbar__title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.su-topbar__title strong { font-size: 16px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-topbar__crumb { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 820px) { .su-topbar__crumb { display: none; } }

/* --- Ustawienia: kolory ikon grup (mzset z mza.css) ---------------------------------------- */
.su-g--firmy       { background: linear-gradient(145deg, var(--accent-light), var(--accent)); }
.su-g--komunikacja { background: linear-gradient(145deg, #5aa2e6, #3a7fc4); }
.su-g--integracje  { background: linear-gradient(145deg, #a37ce0, #7b4fc0); }

/* =====================================================================================
   PULPIT SUPERADMINA „jak aplikacja” (2026-11-14, Dashboard/Views/index.php, .sud)
   ===================================================================================== */
@keyframes sua-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sua-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } }
.sud { max-width: 1180px; }
.sud-hello { margin: 4px 0 18px; animation: sua-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
.sud-hello__date { margin: 0 0 2px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sud-hello__title { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.sud-hello__sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.sud-wave { display: inline-block; transform-origin: 70% 70%; animation: sua-wave 2.4s ease-in-out 1s 2; }

.sud-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; color: #fff;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22) 0%, transparent 55%), linear-gradient(135deg, #e3a24b, #c97a24);
    box-shadow: 0 18px 34px -20px #c97a24; animation: sua-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
.sud-alert__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; }
.sud-alert__txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.sud-alert__txt strong { font-size: 16px; }
.sud-alert .btn { background: #fff !important; color: #a0601a !important; border: 0; }

.sud-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.sud-tile { --c1: #8a94a3; --c2: #5f6b7a; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 150px; padding: 16px 18px; border-radius: 22px; color: #fff !important; text-decoration: none !important;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .25) 0%, transparent 55%), linear-gradient(140deg, var(--c1), var(--c2));
    box-shadow: 0 18px 32px -20px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease; animation: sua-rise .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * .06s); }
.sud-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .25); }
.sud-tile:active { transform: scale(.97); }
.sud-tile__ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: auto; background: rgba(255, 255, 255, .2); }
.sud-tile__num { margin-top: 12px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sud-tile__lbl { font-size: 14px; font-weight: 800; }
.sud-tile__meta { font-size: 12px; opacity: .85; }
.sud-tile--main { --c1: var(--accent-light); --c2: var(--accent-d); }
.sud-tile--idea { --c1: #f0b65a; --c2: #d98a1f; }
.sud-tile--idea.is-hot .sud-tile__ico { animation: sud-pulse 1.8s ease-in-out infinite; }
.sud-tile--db   { --c1: #5cc4a8; --c2: #217a68; }
.sud-tile--db.is-low { --c1: #e8817a; --c2: #b8433b; }
.sud-tile--box  { --c1: #6f9de0; --c2: #3a66b0; }
@keyframes sud-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }

.sud-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.sud-quick a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 18px; background: var(--surface); color: var(--text) !important; text-decoration: none !important; font-size: 13px; font-weight: 700; text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 26px -22px rgba(0, 0, 0, .45), inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease; animation: sua-rise .5s cubic-bezier(.22, 1, .36, 1) both .15s; }
.sud-quick a:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .5), inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, var(--border)); }
.sud-quick a:active { transform: scale(.95); }
.sud-quick__ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.sud-quick a:hover .sud-quick__ico { transform: scale(1.08) rotate(-6deg); }
.sud-q--main  { background: linear-gradient(145deg, var(--accent-light), var(--accent-d)); }
.sud-q--idea  { background: linear-gradient(145deg, #f0b65a, #d98a1f); }
.sud-q--users { background: linear-gradient(145deg, #5aa2e6, #3a7fc4); }
.sud-q--ai    { background: linear-gradient(145deg, #a37ce0, #7b4fc0); }
.sud-q--cog   { background: linear-gradient(145deg, #7d8a99, #4f5b69); }
.sud-quick__dot { position: absolute; top: 10px; right: calc(50% - 30px); width: 10px; height: 10px; border-radius: 50%; background: #e0534a; box-shadow: 0 0 0 2px var(--surface); }

.sud-card { padding: 16px 16px 10px; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 30px -24px rgba(0, 0, 0, .5), inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent); animation: sua-rise .55s cubic-bezier(.22, 1, .36, 1) both .2s; }
.sud-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 8px; }
.sud-card__head h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.sud-card__head a { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* --- wiersze list z awatarem (pulpit, firmy, użytkownicy) ---------------------------------- */
.sua-list { list-style: none; margin: 0; padding: 0; }
.sua-list > li { animation: sua-rise .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(min(var(--i, 0), 12) * .035s + .1s); }
.sua-list > li + li { border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.sua-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; color: var(--text) !important; text-decoration: none !important; transition: background .15s ease, transform .2s ease; }
.sua-row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sua-row:hover .sua-row__go { transform: translateX(3px); color: var(--accent); }
.sua-row:active { transform: scale(.99); }
.sua-ava { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff;
    background: linear-gradient(145deg, hsl(var(--h, 10) 55% 62%), hsl(calc(var(--h, 10) + 25) 50% 44%)); box-shadow: 0 8px 16px -10px hsl(var(--h, 10) 50% 40%), inset 0 1px 0 rgba(255, 255, 255, .25); }
.sua-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sua-row__txt strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sua-row__txt small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sua-row__go { flex: none; color: color-mix(in srgb, var(--muted) 70%, transparent); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.sua-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sua-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sua-pill.is-on  { color: #2f8a5e; background: color-mix(in srgb, #2f8a5e 12%, transparent); }
.sua-pill.is-off { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }

@media (max-width: 1000px) { .sud-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .sud-tiles { gap: 10px; }
    .sud-tile { min-height: 132px; padding: 14px; border-radius: 20px; }
    .sud-tile__num { font-size: 28px; }
    .sud-quick { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px 18px; padding: 2px 22px 6px; scroll-padding: 0 22px; scrollbar-width: none; }
    .sud-quick::-webkit-scrollbar { display: none; }
    .sud-quick a { flex: 0 0 96px; scroll-snap-align: start; }
    .sua-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sud *, .sua-list > li { animation: none !important; } }

/* =====================================================================================
   STRONY LIST „jak aplikacja” (2026-11-14): nagłówek z licznikiem, przełącznik z pigułką, szklane wyszukiwanie
   ===================================================================================== */
.sua-page { max-width: 1180px; }
.sua-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; animation: sua-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
.sua-head__title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.sua-head__count { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-light), var(--accent-d)); box-shadow: 0 8px 16px -10px var(--accent); }
.sua-head__sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.sua-head__add { border-radius: 14px; min-height: 46px; }

.sua-bar { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px; border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 12px 28px -22px rgba(0, 0, 0, .45), inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent); animation: sua-rise .5s cubic-bezier(.22, 1, .36, 1) both .05s; }
.sua-seg { position: relative; display: grid; grid-template-columns: repeat(var(--seg-n, 3), minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); flex: 0 1 420px; min-width: 0; }
.sua-seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--seg-n, 3)); border-radius: 11px; background: var(--surface); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); transform: translateX(calc(var(--seg-i, 0) * 100%)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.sua-seg__btn { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 10px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--muted) !important; text-decoration: none !important; white-space: nowrap; }
.sua-seg__btn b { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.sua-seg__btn.is-on { color: var(--text) !important; }
.sua-seg__btn.is-on b { color: #fff; background: var(--accent); }
.sua-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--muted); transition: background .2s ease, box-shadow .25s ease; }
.sua-search:focus-within { background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent), 0 10px 24px -14px var(--accent); }
.sua-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); }
.sua-search__clr { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); background: color-mix(in srgb, var(--text) 8%, transparent); text-decoration: none; }

.sua-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.sua-empty strong { color: var(--text); font-size: 16px; }
.sua-empty__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* --- wiersz firmy ------------------------------------------------------------------------------ */
.sua-crow__ind { flex: none; display: inline-flex; gap: 4px; }
.sua-crow__ind .industry-icons__item { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.sua-crow__mods { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 4px; max-width: 280px; justify-content: flex-end; }
.sua-companies .is-test-company .sua-row { background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, #e3a24b 6%, transparent) 12px 24px); }
.sua-companies .pager, .sua-companies .pagination { margin-top: 10px; }
@media (max-width: 1100px) { .sua-crow__mods { display: none; } }
@media (max-width: 720px) {
    .sua-head__add { display: none; }
    .sua-bar { top: 0; margin-left: -6px; margin-right: -6px; }
    .sua-seg { flex: 1 1 100%; }
    .sua-crow__ind { display: none; }
}

/* =====================================================================================
   SZCZEGÓŁY FIRMY — karta nagłówka „jak aplikacja” (2026-11-14, Companies/Views/show.php, .sua-hero)
   ===================================================================================== */
.sua-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--accent) !important; text-decoration: none !important; background: color-mix(in srgb, var(--accent) 9%, transparent); transition: transform .2s ease, background .2s ease; }
.sua-back:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); transform: translateX(-2px); }
.sua-hero { position: relative; overflow: hidden; margin: 0 0 18px; padding: 20px; border-radius: 26px; color: #fff;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22) 0%, transparent 55%), linear-gradient(140deg, var(--accent-light), var(--accent) 55%, var(--accent-d));
    box-shadow: 0 24px 44px -26px var(--accent-d), inset 0 1px 0 rgba(255, 255, 255, .25); animation: sua-rise .55s cubic-bezier(.22, 1, .36, 1) both; }
.sua-hero.is-off { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .18) 0%, transparent 55%), linear-gradient(140deg, #8d97a5, #5f6b7a); box-shadow: 0 24px 44px -26px #4f5b69; }
.sua-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.sua-hero__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.sua-hero__ava { flex: none; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff;
    background: linear-gradient(145deg, hsl(var(--h, 10) 60% 66%), hsl(calc(var(--h, 10) + 25) 52% 44%)); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.sua-hero__txt { min-width: 0; flex: 1; }
.sua-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sua-hero__tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .22); }
.sua-hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: #9cf2c4; box-shadow: 0 0 8px #9cf2c4; }
.sua-hero.is-off .sua-hero__tag i { background: #e6e9ee; box-shadow: none; }
.sua-hero__tag--test { background: #f0b65a; color: #4a2c00; }
.sua-hero__tag--soft { background: rgba(255, 255, 255, .14); font-weight: 700; }
.sua-hero__name { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.sua-hero__url { margin: 4px 0 0; font-size: 13.5px; opacity: .88; overflow-wrap: anywhere; }
.sua-hero__acts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 18px; }
.sua-hero__acts a, .sua-hero__acts button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 16px; font: inherit; font-size: 12.5px; font-weight: 700; color: #fff !important; text-decoration: none !important; background: rgba(255, 255, 255, .14); cursor: pointer; transition: background .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.sua-hero__acts a:hover, .sua-hero__acts button:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.sua-hero__acts a:active, .sua-hero__acts button:active { transform: scale(.95); }
.sua-hero__acts span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.sua-hero__acts .is-main span { background: #fff; color: var(--accent-d); }
.sua-hero__acts .is-ok span { background: #9cf2c4; color: #145c3a; }
.sua-danger { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, var(--border)) !important; }
.sua-danger .card__title { color: var(--danger-d); }
@media (max-width: 720px) {
    .sua-hero { padding: 16px; border-radius: 22px; margin-left: -6px; margin-right: -6px; }
    .sua-hero__ava { width: 58px; height: 58px; border-radius: 18px; font-size: 21px; }
    .sua-hero__acts { display: flex; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 0 16px; }
    .sua-hero__acts::-webkit-scrollbar { display: none; }
    .sua-hero__acts a, .sua-hero__acts button { flex: 0 0 84px; }
}

/* --- zakładki (HelpDesk) jako pigułki jak w aplikacji ------------------------------------------ */
.su-app .tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 5px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, transparent); scrollbar-width: none; }
.su-app .tabs::-webkit-scrollbar { display: none; }
.su-app .tabs .tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0 !important; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.su-app .tabs .tab:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.su-app .tabs .tab.is-active { color: var(--text); background: var(--surface); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); }
.su-app .tabs .tab__count { padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--text) 8%, transparent); }
.su-app .tabs .tab.is-active .tab__count { color: #fff; background: var(--accent); }
/* --- funkcje / moduły firmy (szczegóły firmy) w stylu kafelków MZ ------------------------------- */
.su-app .feature-tile { border-radius: 18px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease; }
.su-app .feature-tile:hover { transform: translateY(-2px); }
.su-app .company-tiles { display: none; } /* stare kafelki liczb — zastąpione przełącznikiem z pigułką (lista firm) i kafelkami pulpitu */

/* =====================================================================================
   ABONAMENT (2026-11-14): plakietka stanu (lista firm, nagłówek firmy), karta „Abonament” w szczegółach firmy
   ===================================================================================== */
.sua-bstate { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; text-decoration: none !important; }
.sua-bstate.is-free     { color: #fff !important; background: linear-gradient(135deg, #5cc4a8, #2f9c85); box-shadow: 0 6px 14px -8px #2f9c85; letter-spacing: .01em; }
.sua-bstate.is-trial    { color: #3a66b0; background: color-mix(in srgb, #3a66b0 12%, transparent); }
.sua-bstate.is-active   { color: #2f8a5e; background: color-mix(in srgb, #2f8a5e 12%, transparent); }
.sua-bstate.is-grace    { color: #a0601a; background: color-mix(in srgb, #e3a24b 20%, transparent); }
.sua-bstate.is-readonly { color: #fff !important; background: linear-gradient(135deg, #e8817a, #b8433b); }
.sua-bstate.is-test     { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.sua-hero__tag.sua-bstate.is-free { background: rgba(255, 255, 255, .95); color: #217a68 !important; box-shadow: none; }
.sua-hero__tag.sua-bstate:not(.is-free) { background: rgba(255, 255, 255, .22); color: #fff !important; }
.sua-billing__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sua-billing__head .card__title { margin: 0; }
.sua-billing.is-free { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), inset 0 0 0 2px color-mix(in srgb, #2f9c85 40%, var(--border)) !important; }
.sua-free { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22) 0%, transparent 55%), linear-gradient(135deg, #5cc4a8, #217a68); box-shadow: 0 16px 30px -20px #217a68; }
.sua-free__ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: rgba(255, 255, 255, .2); }
.sua-free strong { display: block; font-size: 15.5px; }
.sua-free span { font-size: 13px; opacity: .92; }
.sua-bnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.sua-bnums > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, var(--border)); }
.sua-bnums small { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sua-bnums b { font-size: 20px; font-weight: 800; color: var(--text); }
.sua-bnums span { font-size: 12px; color: var(--muted); }
.sua-billing.is-readonly .sua-bnums > div:last-child { background: color-mix(in srgb, #b8433b 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #b8433b 30%, var(--border)); }
.sua-billing.is-grace .sua-bnums > div:last-child { background: color-mix(in srgb, #e3a24b 14%, var(--surface)); }
.sua-bmanual { margin: 4px 0 10px; }
.sua-bmanual summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent); padding: 6px 0; }
.sua-pay__ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff; background: #8a94a3; }
.sua-pay__ico.is-paid, .sua-pay__ico.is-manual { background: linear-gradient(145deg, #5cc4a8, #2f9c85); }
.sua-pay__ico.is-pending { background: linear-gradient(145deg, #f0b65a, #d98a1f); }
.sua-pay__ico.is-failed { background: linear-gradient(145deg, #e8817a, #b8433b); }
@media (max-width: 720px) { .sua-bnums { grid-template-columns: 1fr; } .sua-crow .sua-bstate { display: none; } .sua-crow .sua-bstate.is-free, .sua-crow .sua-bstate.is-readonly { display: inline-flex; } }
.sud-tile--pay { --c1: #a37ce0; --c2: #6a42b0; }
.sud-tile--pay.is-low { --c1: #e8817a; --c2: #b8433b; }
.sud-tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 720px) { .sud-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sud-tile__num { font-size: 24px; } }
