:root {
    --bg: #080b0f;
    --sidebar: #0f1318;
    --panel: #14181d;
    --panel-soft: #1b2027;
    --panel-hover: #202630;
    --line: #2b323c;
    --line-soft: rgba(255,255,255,.07);
    --text: #f5f7fa;
    --muted: #9aa7b8;
    --accent: #ff5238;
    --accent-light: #ff7659;
    --success: #21c77a;
    --warning: #e4a321;
    --danger: #ff5b64;
    --info: #6988c7;
    --sidebar-width: 260px;
    --radius: 18px;
    --shadow: 0 22px 65px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 430px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background:
    linear-gradient(rgba(4,8,12,.78), rgba(4,8,12,.88)),
    url("../../images/3.jpg") center center / cover no-repeat fixed;
}

body.modal-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

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

.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar-width);
    padding: 24px 22px;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 34px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 10px 28px rgba(255,82,56,.22);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { color: var(--muted); font-size: 12px; }

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9db0c8;
    font-size: 14px;
    transition: .18s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: #fff;
    background: var(--panel-soft);
}

.nav-item.active {
    color: #fff;
    background: #1e232a;
    border-left-color: var(--accent);
}

.nav-icon {
    width: 20px;
    color: #95a6ba;
    text-align: center;
    font-size: 13px;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 14px;
}

.user-card {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.025);
    border-radius: 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #263140;
    font-size: 12px;
    font-weight: 800;
}

.user-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.user-card strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card small { color: var(--muted); font-size: 11px; }

.logout-link {
    padding: 8px 12px;
    color: #9fb0c4;
    text-align: center;
    font-size: 13px;
}

.logout-link:hover { color: var(--accent-light); }

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    min-height: 88px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(8,11,15,.93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar h1 {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 1;
}

.date-label,
.eyebrow {
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

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

.search-input {
    width: 260px;
    height: 44px;
    margin: 0;
    padding: 0 15px;
    background: #11151a;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    outline: none;
}

.search-input:focus { border-color: var(--accent); }

.notification-button,
.menu-button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: var(--panel);
    border-radius: 12px;
}

.notification-button {
    width: 44px;
    height: 44px;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
}

.page-content {
    padding: 32px;
}

.flash {
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
}

.flash.success {
    color: #8ae6b8;
    background: rgba(33,199,122,.1);
    border-color: rgba(33,199,122,.35);
}

.flash.error {
    color: #ff9ca3;
    background: rgba(255,91,100,.1);
    border-color: rgba(255,91,100,.35);
}

.hero-panel {
    min-height: 182px;
    padding: 30px;
    border: 1px solid #412b26;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 50%, rgba(255,82,56,.11), transparent 39%),
        linear-gradient(135deg, #181b20, #241512);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-panel h2 {
    margin: 14px 0 8px;
    font-size: clamp(25px, 3vw, 34px);
}

.hero-panel p {
    margin: 0;
    color: #9fb0c4;
    font-size: 15px;
}

.primary-button,
.secondary-button {
    min-height: 43px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 10px 24px rgba(255,82,56,.17);
}

.secondary-button {
    color: #dce4ed;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-1px); }

.stats-grid {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat-card {
    min-height: 130px;
    padding: 22px;
}

.stat-card span,
.stat-card small {
    display: block;
    color: #9cadc1;
}

.stat-card span { font-size: 14px; }

.stat-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: clamp(24px, 2.3vw, 31px);
    line-height: 1.1;
}

.stat-card small { font-size: 12px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
    gap: 18px;
}

.panel { padding: 20px; }

.panel-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h3 {
    margin: 10px 0 0;
    font-size: 18px;
}

.panel-heading > a {
    color: var(--accent-light);
    font-size: 13px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: #91a4bb;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

td {
    color: #f5f7fa;
    font-size: 13px;
}

td strong { font-weight: 750; }

.badge {
    display: inline-flex;
    min-height: 25px;
    padding: 0 10px;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge.ok {
    color: #62e6a2;
    background: rgba(33,199,122,.15);
}

.badge.warn {
    color: #ffc255;
    background: rgba(228,163,33,.16);
}

.badge.danger {
    color: #ff979d;
    background: rgba(255,91,100,.15);
}

.badge.info {
    color: #c1d1f4;
    background: rgba(105,136,199,.18);
}

.appointment-list {
    display: grid;
    gap: 11px;
}

.appointment-card,
.empty-card {
    padding: 14px;
    border-radius: 12px;
    background: var(--panel-soft);
}

.appointment-card {
    display: grid;
    gap: 11px;
}

.appointment-card > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.appointment-card strong { font-size: 14px; }
.appointment-card span { color: #d9e1eb; font-size: 13px; }
.appointment-card small { color: #91a4bb; font-size: 12px; }

.appointment-card form { margin: 0; }

.appointment-card select {
    height: 36px;
    margin: 0;
    padding: 0 10px;
    font-size: 12px;
}

.data-panel { margin-top: 18px; }

.empty-state {
    padding: 35px 12px;
    color: var(--muted);
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.modal.open { display: grid; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    background: #12161b;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--panel-soft);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

.modal-heading {
    padding-right: 45px;
    margin-bottom: 22px;
}

.modal-heading h2 {
    margin: 10px 0 6px;
    font-size: 27px;
}

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

.combined-form {
    display: grid;
    gap: 16px;
}

fieldset {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.012);
}

legend {
    padding: 0 9px;
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

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

label {
    display: block;
    color: #dbe3ed;
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d1115;
    color: var(--text);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 82px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,82,56,.08);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(255,82,56,.11), transparent 38%),
        linear-gradient(135deg, #070a0e, #10141a);
}

.login-card {
    width: 100%;
     max-width: 430px;
    padding: 32px;
    background: rgba(20,24,29,.97);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(18, 23, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.login-card h1 { margin: 0 0 6px; }
.login-card > p { margin: 0 0 25px; color: var(--muted); }
.login-card button {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    font-weight: 800;
    cursor: pointer;
}
.login-card > a {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1150px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    :root { --sidebar-width: 250px; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .24s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,.35);
    }

    .sidebar.open { transform: translateX(0); }

    .main-content { margin-left: 0; }

    .menu-button { display: grid; place-items: center; }

    .topbar { padding: 0 18px; }

    .page-content { padding: 20px 18px; }

    .search-input { width: min(220px, 30vw); }

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

@media (max-width: 620px) {
    .topbar { min-height: 78px; }
    .topbar h1 { font-size: 21px; }
    .date-label { font-size: 9px; }
    .search-input { display: none; }
    .page-content { padding: 16px 12px 24px; }
    .hero-panel {
        min-height: 220px;
        padding: 23px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
    .hero-panel .primary-button { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 112px; }
    .panel { padding: 15px; }
    .panel-heading { align-items: flex-start; }
    .form-grid,
    .form-grid.three-columns { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    fieldset { padding: 15px; }
    .modal { padding: 10px; }
    .modal-card {
        max-height: calc(100vh - 20px);
        padding: 22px 15px;
        border-radius: 17px;
    }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions button { width: 100%; }
}


/* Többoldalas admin kiegészítések */
.page-hero {
    margin-bottom: 18px;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid #3d2a25;
    border-radius: 18px;
    background: linear-gradient(135deg,#171b20,#211512);
}
.page-hero h2 { margin: 10px 0 6px; font-size: 26px; }
.page-hero p { margin: 0; color: var(--muted); }
.page-actions { display:flex; gap:10px; flex-wrap:wrap; }
.page-stats { margin-bottom:18px; }
.stack { display:grid; gap:18px; }
.two-column { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.75fr); gap:18px; align-items:start; }
.action-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.compact-form { display:flex; align-items:center; gap:8px; margin:0; }
.compact-form select, .compact-form input { margin:0; min-width:130px; padding:8px 10px; height:38px; }
.icon-action {
    min-width:36px; height:36px; padding:0 10px; display:inline-grid; place-items:center;
    border:1px solid var(--line); border-radius:9px; background:var(--panel-soft); color:#dce5ef; cursor:pointer;
}
.icon-action.danger { color:#ff969e; background:rgba(255,91,100,.08); }
.muted { color:var(--muted); }
.amount-positive { color:#70e6a9; font-weight:750; }
.amount-zero { color:var(--muted); }
.stock-low { color:#ffc15a; font-weight:750; }
.stock-empty { color:#ff8e96; font-weight:750; }
.progress-track { height:8px; overflow:hidden; background:#0d1115; border-radius:999px; }
.progress-bar { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-light)); border-radius:999px; }
.calendar-list { display:grid; gap:12px; }
.calendar-entry {
    padding:16px; display:grid; grid-template-columns:150px 1fr auto; gap:16px; align-items:center;
    background:var(--panel-soft); border:1px solid var(--line-soft); border-radius:13px;
}
.calendar-entry time { font-weight:800; color:var(--accent-light); }
.calendar-entry h4 { margin:0 0 4px; }
.calendar-entry p { margin:0; color:var(--muted); font-size:13px; }
.finance-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.finance-card { padding:22px; background:var(--panel); border:1px solid var(--line); border-radius:18px; }
.finance-card span { color:var(--muted); }
.finance-card strong { display:block; margin-top:10px; font-size:28px; }
.form-panel form { display:grid; gap:14px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; }
.role-owner { color:#70e6a9; }
.role-admin { color:#ffc15a; }
.role-employee { color:#b8c6d8; }
.inline-note { margin:8px 0 0; color:var(--muted); font-size:12px; }
.modal-card.small { width:min(620px,100%); }
@media(max-width:1050px){
    .two-column { grid-template-columns:1fr; }
    .finance-summary { grid-template-columns:1fr 1fr; }
}
@media(max-width:620px){
    .page-hero { align-items:flex-start; flex-direction:column; }
    .page-actions, .page-actions button, .page-actions a { width:100%; }
    .calendar-entry { grid-template-columns:1fr; gap:8px; }
    .finance-summary { grid-template-columns:1fr; }
    .compact-form { align-items:stretch; flex-direction:column; }
    .compact-form select, .compact-form input, .compact-form button { width:100%; }
}


/* Valós idejű online munkatársak */
.online-strip {
    margin-bottom: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.online-strip-title {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.online-strip-title > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.online-strip-title strong {
    font-size: 13px;
}

.online-strip-title small,
.online-loading {
    color: var(--muted);
    font-size: 11px;
}

.online-pulse {
    position: relative;
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(33,199,122,.10);
}

.online-pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(33,199,122,.4);
    border-radius: inherit;
    animation: onlinePulse 1.8s infinite;
}

.online-users {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.online-user {
    min-width: max-content;
    padding: 7px 10px 7px 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel-soft);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
}

.online-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #293341;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
}

.online-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.online-user-copy strong {
    max-width: 150px;
    overflow: hidden;
    color: #f5f7fa;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-user-copy small {
    color: var(--muted);
    font-size: 9px;
}

.online-dot {
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(33,199,122,.55);
}

@keyframes onlinePulse {
    0% { opacity: .8; transform: scale(.8); }
    75%, 100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 760px) {
    .online-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .online-users {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Pénzügyi dashboard */
.finance-hero .page-actions {
    align-items: flex-end;
}

.month-picker {
    margin: 0;
}

.month-picker label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.month-picker input {
    width: 168px;
    height: 43px;
    margin-top: 5px;
    padding: 0 12px;
    color-scheme: dark;
}

.finance-summary-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-finance-heading {
    margin: 28px 0 13px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-finance-heading h3 { margin: 7px 0 0; font-size: 19px; }
.dashboard-finance-heading a { color: var(--accent-light); font-size: 13px; }
.dashboard-finance-cards { margin-bottom: 18px; }

.finance-card {
    position: relative;
    overflow: hidden;
}

.finance-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--info);
}

.finance-card.income::before,
.finance-card.profit::before { background: var(--success); }
.finance-card.expense::before,
.finance-card.loss::before { background: var(--danger); }
.finance-card.receivable::before { background: var(--warning); }

.finance-card small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}

.finance-card.profit strong,
.split-total strong { color: #70e6a9; }
.finance-card.loss strong,
.amount-negative { color: #ff8f97; font-weight: 750; }
.finance-card.receivable strong { color: #ffc15a; }

.finance-overview-grid {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr);
    gap: 18px;
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--accent-light);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
}

.panel-meta {
    color: var(--muted);
    font-size: 12px;
}

.budget-panel {
    display: grid;
    gap: 22px;
}

.budget-panel .panel-heading { margin-bottom: 0; }

.budget-item {
    display: grid;
    gap: 10px;
}

.budget-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.budget-copy span { color: var(--muted); font-size: 13px; }
.budget-copy strong { font-size: 14px; }
.budget-item small { font-size: 11px; }

.progress-track.large { height: 10px; }
.progress-bar.success { background: linear-gradient(90deg, #1aa969, #40d893); }
.progress-bar.danger { background: linear-gradient(90deg, #db3e49, #ff727b); }

.split-panel {
    display: flex;
    flex-direction: column;
}

.split-rate {
    padding: 6px 10px;
    color: #ff9b86;
    background: rgba(255,82,56,.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.split-total {
    padding: 17px;
    background: var(--panel-soft);
    border: 1px solid var(--line-soft);
    border-radius: 13px;
}

.split-total span,
.owner-shares span { display: block; color: var(--muted); font-size: 12px; }
.split-total strong { display: block; margin-top: 7px; font-size: 25px; }
.split-total small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.owner-shares {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.owner-shares > div {
    padding: 14px;
    background: rgba(255,255,255,.025);
    border-radius: 11px;
}

.owner-shares strong { display: block; margin-top: 6px; font-size: 16px; }
.owner-shares small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.loss-note { margin: 13px 0 0; color: #ff9ca3; font-size: 11px; line-height: 1.5; }

@media (max-width: 1180px) {
    .finance-summary-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .finance-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .finance-summary-four { grid-template-columns: 1fr; }
    .finance-hero .page-actions { align-items: stretch; }
    .month-picker,
    .month-picker input { width: 100%; }
    .budget-copy { align-items: flex-start; flex-direction: column; gap: 5px; }
    .owner-shares { grid-template-columns: 1fr; }
    .panel-meta { max-width: 150px; text-align: right; }
}

/* Egyoldalas ügyfél + autó + munkalap rögzítés */
.job-entry-panel {
    margin-top: 18px;
    scroll-margin-top: 105px;
}

.job-entry-panel > .panel-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.formula-chip {
    padding: 8px 12px;
    color: #86e7b6;
    background: rgba(33,199,122,.1);
    border: 1px solid rgba(33,199,122,.25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.entry-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mode-card {
    min-height: 76px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0f1318;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mode-card:hover { transform: translateY(-1px); }

.mode-card.active {
    border-color: rgba(255,82,56,.65);
    background: rgba(255,82,56,.07);
    box-shadow: inset 0 0 0 1px rgba(255,82,56,.08);
}

.mode-card input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.mode-card span { display: grid; gap: 5px; }
.mode-card strong { color: #f7f9fb; font-size: 14px; }
.mode-card small { color: var(--muted); font-size: 11px; font-weight: 500; }
.entry-sections { display: grid; gap: 16px; }

.service-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.service-option {
    min-height: 45px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d1115;
    cursor: pointer;
}

.service-option:has(input:checked) {
    color: #fff;
    border-color: rgba(255,82,56,.6);
    background: rgba(255,82,56,.09);
}

.service-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.service-option span { font-size: 12px; }
.work-details-grid { margin-top: 14px; }
.finance-fieldset { background: linear-gradient(135deg, rgba(33,199,122,.035), rgba(255,82,56,.025)); }
.finance-entry-grid { align-items: stretch; }

.finance-entry-grid label small {
    display: block;
    margin: 7px 2px 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.profit-preview {
    min-height: 104px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(33,199,122,.3);
    border-radius: 12px;
    background: rgba(33,199,122,.08);
}

.profit-preview span,
.profit-preview small {
    color: #92bca7;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.profit-preview strong {
    margin: 7px 0 5px;
    color: #70e6a9;
    font-size: 24px;
}

.profit-preview.negative {
    border-color: rgba(255,91,100,.35);
    background: rgba(255,91,100,.08);
}

.profit-preview.negative span,
.profit-preview.negative small { color: #c89a9d; }
.profit-preview.negative strong { color: #ff8f97; }

.form-submit-bar {
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
}

.form-submit-bar > div { display: grid; gap: 4px; }
.form-submit-bar strong { font-size: 13px; }
.form-submit-bar span { color: var(--muted); font-size: 11px; }
.task-cell { min-width: 230px; white-space: normal; line-height: 1.45; }

@media (max-width: 820px) {
    .service-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .job-entry-panel > .panel-heading,
    .form-submit-bar { align-items: stretch; flex-direction: column; }
    .formula-chip { align-self: flex-start; }
    .entry-mode-switch,
    .service-choice-grid { grid-template-columns: 1fr; }
    .form-submit-bar .primary-button { width: 100%; }
}
