* {
    box-sizing: border-box;
}

:root {
    --bg: #0b1020;
    --bg-2: #121933;
    --panel: rgba(19, 27, 52, 0.92);
    --panel-2: rgba(27, 37, 71, 0.95);
    --border: rgba(255, 255, 255, 0.08);
    --text: #eef2ff;
    --muted: #a7b0d1;
    --primary: #6d7cff;
    --primary-2: #8c6bff;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(109, 124, 255, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(140, 107, 255, 0.20), transparent 32%),
        linear-gradient(135deg, #080c18 0%, #0f1530 45%, #0a1020 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.page-auth-simple {
    padding: 24px;
}

.auth-simple-wrap {
    width: 100%;
    max-width: 460px;
}

.auth-simple-card {
    width: 100%;
    background: rgba(8, 13, 28, 0.88);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 34px;
    backdrop-filter: blur(14px);
}

.auth-simple-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 28px rgba(109, 124, 255, 0.28);
    margin-bottom: 20px;
}

.auth-simple-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.auth-simple-card p {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-shell {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: rgba(10, 15, 30, 0.72);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.auth-hero {
    padding: 54px;
    background:
        linear-gradient(160deg, rgba(109, 124, 255, 0.26), rgba(140, 107, 255, 0.14)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.00));
    position: relative;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #dbe4ff;
    margin-bottom: 26px;
}

.auth-title {
    font-size: 44px;
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 520px;
}

.auth-points {
    margin-top: 34px;
    display: grid;
    gap: 14px;
}

.auth-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-point-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    flex-shrink: 0;
}

.auth-form-wrap {
    padding: 42px;
    background: rgba(8, 13, 28, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.auth-card p {
    margin: 0 0 26px;
    color: var(--muted);
}

.label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #d9e1ff;
    font-weight: 600;
}

.input,
.select,
.textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #dfe5ff 50%), linear-gradient(135deg, #dfe5ff 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
    color-scheme: dark;
}

select,
select option,
select optgroup {
    background: #182344 !important;
    color: #eef2ff !important;
}


.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(109, 124, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(109, 124, 255, 0.14);
}



.textarea {
    min-height: 220px;
    resize: vertical;
    font-family: inherit;
}

.form-group {
    margin-bottom: 18px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 26px rgba(109, 124, 255, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(109, 124, 255, 0.32);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-small {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.25);
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.22);
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: rgba(7, 12, 25, 0.92);
    border-right: 1px solid var(--border);
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 34px;
}

.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px rgba(109, 124, 255, 0.26);
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 13px;
}

.nav-section-title {
    color: #7f8ab6;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 28px 0 12px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
    color: #dce4ff;
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.main {
    padding: 34px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.topbar-title h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.topbar-title p {
    margin: 10px 0 0;
    color: var(--muted);
}

.userbox {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 18px;
    text-align: right;
    width: auto;
    min-width: 0;
    white-space: nowrap;
}


.userbox strong {
    display: block;
    margin-bottom: 0;
}

.userbox:hover {
    border-color: rgba(109, 124, 255, 0.35);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}


.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    line-height: 1.65;
}

.stat-value {
    font-size: 38px;
    font-weight: 800;
    margin: 8px 0 2px;
    letter-spacing: -0.03em;
}

.muted {
    color: var(--muted);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.contract-list,
.template-list {
    display: grid;
    gap: 16px;
}

.template-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.template-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.template-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.template-meta {
    color: var(--muted);
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.badge-default {
    background: rgba(109, 124, 255, 0.14);
    color: #cbd5ff;
    border-color: rgba(109, 124, 255, 0.24);
}

.badge-shared {
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.22);
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.table th,
.table td {
    text-align: left;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

.table th {
    color: #dfe5ff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table td {
    color: #eef2ff;
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    padding: 26px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: var(--muted);
}

.preview-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.form-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.actions-cell {
    min-width: 220px;
}

.inline-form {
    display: inline;
    margin: 0;
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: relative;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .userbox {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 18px;
    text-align: right;
    width: auto;
    min-width: 0;
    white-space: nowrap;
}


.app-tile-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.app-tile {
    width: 260px;
    min-height: 260px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: 0.2s ease;
    cursor: pointer;
}

.app-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(109, 124, 255, 0.35);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
}

.app-tile-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px rgba(109, 124, 255, 0.26);
}

.app-tile-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-tile h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.app-tile p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.apps-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, 240px);

    gap: 22px;

}



.app-card {

    text-decoration: none;

    color: inherit;

}



.card-app {

    width: 240px;

    height: 240px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 22px;

    cursor: pointer;

    transition: 0.2s ease;

}



.card-app:hover {

    transform: translateY(-4px);

    border-color: rgba(109,124,255,0.4);

    box-shadow: 0 20px 40px rgba(0,0,0,0.35);

}



.app-icon {

    width: 56px;

    height: 56px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    background: linear-gradient(135deg,var(--primary),var(--primary-2));

    box-shadow: 0 10px 24px rgba(109,124,255,0.3);

    margin-bottom: 10px;

}



.card-app h2 {

    margin: 0;

    font-size: 26px;

}



.card-app p {

    color: var(--muted);

    font-size: 14px;

}
.btn-full { width: 100%; }
.small-gap { margin-top: 8px; }
.no-margin { margin: 0; }
.grid-compact-gap { gap: 20px; }
.filters-row {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}
.filters-row-wide .form-group { min-width: 180px; }
.filters-vertical-margin { margin-top: 18px; }
.checkbox-group { display: flex; align-items: center; }
.checkbox-inline { display: inline-flex; gap: 10px; align-items: center; color: var(--text); }
.checkbox-inline input { accent-color: var(--primary); }
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid var(--border);
}
.status-pill-online { background: rgba(34,197,94,.16); color: #86efac; }
.status-pill-offline { background: rgba(148,163,184,.12); color: #cbd5e1; }
.status-pill-on_break { background: rgba(245,158,11,.16); color: #fcd34d; }
.stat-card strong { font-size: 28px; line-height: 1.15; }
.stat-label { display: block; color: var(--muted); margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.detail-list { display: grid; gap: 14px; }
.detail-list > div {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.detail-list span {
    color: var(--muted);
    display: block;
}
.detail-list strong {
    display: block;
    text-align: left;
    word-break: break-word;
}
.compact-empty { padding: 18px; margin-top: 0; }
.compact-table-wrap { margin-top: 12px; }
.quick-links { display: grid; gap: 12px; }
.quick-link {
    display: block; padding: 15px 16px; border-radius: 14px; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06); transition: .2s ease;
}
.quick-link:hover { transform: translateY(-2px); border-color: rgba(109,124,255,.4); }
.timeline-list { display: grid; gap: 12px; }
.timeline-item {
    padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
    display: grid; gap: 6px;
}
.timeline-item span, .timeline-item small { color: var(--muted); }
.nav-section-title-inline { margin-top: 18px; }
.textarea-medium { min-height: 150px; }
.ticket-list, .conversation-list { display: grid; gap: 14px; }
.ticket-item, .conversation-item {
    display: block; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06); transition: .2s ease;
}
.ticket-item:hover { transform: translateY(-2px); border-color: rgba(109,124,255,.4); }
.ticket-item h3, .conversation-item p { margin: 0; }
.ticket-item p, .ticket-meta, .ticket-date, .conversation-item-top .muted { color: var(--muted); }
.ticket-item-top, .conversation-item-top {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 10px;
}
.stack-form { display: grid; gap: 10px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; }
.chip-check {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); font-size: 13px;
}
.chip-check input { accent-color: var(--primary); }
.wrap-actions { flex-wrap: wrap; }
.page-actions-tight { margin-top: 0; }
@media (max-width: 900px) {
    .filters-row, .ticket-item-top, .conversation-item-top, .detail-list > div { flex-direction: column; }
    .chips-list { max-width: 100%; }
}


.apps-list-box {
    display: grid;
    gap: 12px;
}

.app-list-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.app-list-item p {
    margin: 6px 0 0;
}

.app-list-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px rgba(109,124,255,0.3);
}

.chips-list-wide {
    max-width: 100%;
}

.users-table-wide {
    min-width: 1100px;
}

@media (max-width: 1050px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .userbox {
        text-align: left;
        width: auto;
    }
}


.account-grid {
    align-items: start;
}

.account-card {
    position: relative;
    min-height: 100%;
}

.card-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.section-muted {
    margin: 8px 0 0;
    color: var(--muted);
}

.info-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.info-tile {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    display: grid;
    gap: 10px;
}

.info-tile span {
    color: var(--muted);
    font-size: 14px;
}

.info-tile strong {
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    white-space: nowrap;
    font-weight: 700;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}

.status-online .status-dot {
    background: var(--success);
}

.status-on_break .status-dot {
    background: var(--warning);
}

.status-offline .status-dot {
    background: var(--danger);
}

.breaks-panel {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.breaks-panel-title {
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 600;
}

.break-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.break-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    color: var(--text);
    flex-wrap: wrap;
}

.break-chip em {
    color: var(--muted);
    font-style: normal;
}

@media (max-width: 900px) {
    .card-header-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-tiles {
        grid-template-columns: 1fr;
    }
}


.break-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 20, 0.74);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.break-modal-overlay.is-visible {
    display: flex;
}

.break-modal-card {
    width: min(100%, 520px);
    background: linear-gradient(180deg, rgba(21, 30, 60, 0.98), rgba(15, 23, 47, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    padding: 28px;
}

.break-modal-header h2 {
    margin: 0 0 6px;
}

.break-modal-header p {
    margin: 0;
    color: var(--muted);
}

.break-modal-timer {
    margin-top: 22px;
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.break-modal-meta {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
}

.break-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}


.permission-cell {
    display: grid;
    gap: 12px;
    min-width: 340px;
}

.permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(109,124,255,.12);
    border: 1px solid rgba(109,124,255,.24);
    color: #e9edff;
    font-size: 13px;
    font-weight: 600;
}

.permission-toggle.is-open {
    background: rgba(109,124,255,.18);
    border-color: rgba(109,124,255,.36);
}

.permission-panel {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.permission-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,.06);
}

.permission-option input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.permission-option span {
    font-size: 14px;
    line-height: 1.4;
}


.permission-tag-admin {
    background: rgba(109, 124, 255, 0.18);
    color: #dfe5ff;
    border-color: rgba(109, 124, 255, 0.3);
}

.break-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.break-modal-close:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fff;
}


.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nav-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 20px;
}

.nav-bottom {
    margin-top: auto;
    padding-top: 18px;
    padding-bottom: 8px;
}

.nav-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-alert-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-alert-icon {
    font-size: 16px;
    line-height: 1;
    color: #ffd76a;
}

.report-problem-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(7, 12, 26, 0.95);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.report-problem-btn:hover .report-problem-tooltip {
    opacity: 1;
}

.toolbar-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-search {
    flex: 1 1 420px;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sortable-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.sortable-link:hover {
    color: #dbe4ff;
}


.directory-card {
    width: 100%;
}

.directory-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}

.directory-table th,
.directory-table td {
    white-space: normal;
    word-break: break-word;
}

.directory-table th:nth-child(1),
.directory-table td:nth-child(1) { width: 22%; }
.directory-table th:nth-child(2),
.directory-table td:nth-child(2) { width: 18%; }
.directory-table th:nth-child(3),
.directory-table td:nth-child(3) { width: 18%; }
.directory-table th:nth-child(4),
.directory-table td:nth-child(4) { width: 24%; }
.directory-table th:nth-child(5),
.directory-table td:nth-child(5) { width: 18%; }

/* === Profil: wizytówka firmowa === */
.profile-business-card-shell {
    padding: 0;
    overflow: hidden;
}

.profile-business-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    min-height: 100%;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 22%),
        linear-gradient(135deg, #050505 0%, #121212 100%);
    color: #d4af37;
    padding: 28px;
}

.profile-business-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-business-card-logo-wrap {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.profile-business-card-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.profile-business-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.profile-business-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-business-card-header h2 {
    margin: 0 0 6px;
    color: #f3deb0;
}

.profile-business-card-muted {
    color: rgba(243, 222, 176, 0.72);
}

.profile-business-card-name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f7e6b8;
}

.profile-business-card-lines {
    display: grid;
    gap: 12px;
}

.profile-business-card-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 16px;
    line-height: 1.6;
    color: #e0c77b;
}

.profile-business-card-line span {
    font-weight: 700;
    color: #b9942d;
}

.profile-business-card-line strong {
    font-weight: 700;
    color: #f6e4b3;
    word-break: break-word;
}

.profile-business-card .status-pill {
    background: rgba(255,255,255,.04);
    border-color: rgba(212, 175, 55, 0.18);
    color: #f7e6b8;
}

.profile-business-card .status-online {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #ddffea;
}

.profile-business-card .status-on_break {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #ffe7b9;
}

.profile-business-card .status-offline {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ffd7d7;
}

@media (max-width: 980px) {
    .profile-business-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-business-card-media {
        justify-content: flex-start;
    }

    .profile-business-card-logo-wrap {
        width: 160px;
        height: 160px;
    }

    .profile-business-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-business-card-name {
        font-size: 24px;
    }
}
