:root {
  --bs-ink: #11324d;
  --bs-muted: #5d7183;
  --bs-blue: #0d6d91;
  --bs-blue-dark: #07536f;
  --bs-aqua: #2ab7a9;
  --bs-surface: #ffffff;
  --bs-bg: #eef5f8;
  --bs-line: #d5e5eb;
  --bs-success: #117a65;
  --bs-shadow: 0 18px 50px rgba(18, 62, 83, .12);
}

body { color: var(--bs-ink); background: radial-gradient(circle at 10% 0%, rgba(42,183,169,.1), transparent 26rem), linear-gradient(145deg, #edf7fa 0%, #f8fbfc 48%, #eef2f6 100%) !important; }
.navbar-laravel { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--bs-line); }
.app-navbar { position: sticky; top: 0; z-index: 1030; min-height: 78px; padding: .75rem clamp(1rem, 3vw, 2.75rem); box-shadow: 0 8px 30px rgba(17,50,77,.06); backdrop-filter: blur(14px); }
.app-navbar-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1540px; margin: 0 auto; padding: 0; }
.app-navbar-actions { display: flex; align-items: center; gap: .8rem; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.2; }
.brand-lockup { flex-direction: row; align-items: center; gap: .8rem; margin: 0; }
.brand-copy { display: flex; flex-direction: column; }
.brand-symbol { display: flex; align-items: center; justify-content: center; gap: 3px; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, var(--bs-blue-dark), var(--bs-aqua)); box-shadow: 0 9px 20px rgba(13,109,145,.2); }
.brand-symbol i { display: block; width: 3px; border-radius: 3px; background: white; }
.brand-symbol i:nth-child(1), .brand-symbol i:nth-child(5) { height: 10px; }.brand-symbol i:nth-child(2), .brand-symbol i:nth-child(4) { height: 20px; }.brand-symbol i:nth-child(3) { height: 30px; }
.brand-lockup strong { color: var(--bs-ink); font-size: 1.08rem; }
.brand-lockup small { color: var(--bs-muted); font-size: .78rem; margin-top: .2rem; }
.user-chip:not(:empty) { max-width: 260px; overflow: hidden; padding: .5rem .85rem; border: 1px solid var(--bs-line); border-radius: 999px; color: var(--bs-blue-dark); background: #f3fafb; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.language-switch { display: inline-flex; gap: .25rem; padding: .2rem; border: 1px solid var(--bs-line); border-radius: 999px; background: #f5fafb; }
.language-switch button { border: 0; border-radius: 999px; padding: .35rem .7rem; color: var(--bs-muted); background: transparent; font-weight: 700; cursor: pointer; }
.language-switch button.active { color: white; background: var(--bs-blue); }
.login-form { min-height: calc(100vh - 80px); padding: clamp(1rem, 4vw, 4rem) 1rem !important; display: grid; place-items: center; }
.auth-shell { width: min(1080px, 100%); display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: white; box-shadow: 0 30px 90px rgba(13, 74, 99, .2); }
.auth-intro { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: 610px; padding: clamp(2.4rem, 6vw, 5rem); color: white; background: linear-gradient(145deg, #073e59 0%, #08718a 55%, #25ad9f 100%); }
.auth-intro::before, .auth-intro::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.08); }
.auth-intro::before { width: 310px; height: 310px; inset-inline-end: -120px; top: -100px; }
.auth-intro::after { width: 230px; height: 230px; inset-inline-start: -95px; bottom: -85px; }
.auth-mark { height: 54px; display: flex; align-items: center; gap: 7px; margin-bottom: 1.6rem; }
.auth-mark span { display: block; width: 7px; border-radius: 99px; background: #9cf4df; box-shadow: 0 0 20px rgba(156,244,223,.35); }
.auth-mark span:nth-child(1), .auth-mark span:nth-child(5) { height: 18px; }.auth-mark span:nth-child(2), .auth-mark span:nth-child(4) { height: 36px; }.auth-mark span:nth-child(3) { height: 54px; }
.auth-kicker { margin: 0 0 .7rem; color: #bdf8eb; font-size: .8rem; font-weight: 900; letter-spacing: .24em; }
.auth-intro h1 { max-width: 560px; margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.auth-lead { max-width: 540px; margin: 1.25rem 0 2rem; color: rgba(255,255,255,.86); font-size: 1.08rem; line-height: 1.75; }
.auth-benefits { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: .85rem; font-weight: 650; line-height: 1.5; }
.auth-benefits i { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #c6fff1; background: rgba(255,255,255,.12); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; min-height: 610px; padding: clamp(2rem, 5vw, 4rem); background: rgba(255,255,255,.98); }
.auth-language-block { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; color: var(--bs-muted); font-size: .82rem; font-weight: 800; }
.language-switch-large button { min-width: 74px; padding: .5rem .85rem; }
.auth-heading h2 { margin: 0; color: var(--bs-ink); font-size: 2rem; font-weight: 800; }
.auth-heading p { margin: .6rem 0 2rem; color: var(--bs-muted); line-height: 1.6; }
.auth-form label { display: block; margin-bottom: .5rem; color: var(--bs-ink); font-weight: 750; }
.auth-form .form-group { margin-bottom: 1.15rem; }
.input-shell { position: relative; }
.input-shell i { position: absolute; top: 50%; inset-inline-start: 1rem; z-index: 2; color: #7793a3; transform: translateY(-50%); }
.input-shell .form-control { height: 54px; padding-inline-start: 3rem; border: 1px solid #c9dce4; border-radius: 13px; background: #f8fbfc; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-shell .form-control:focus { border-color: var(--bs-aqua); background: white; box-shadow: 0 0 0 4px rgba(42,183,169,.14); }
.auth-error { min-height: 1.5rem; margin: .25rem 0 .75rem; color: #a52b3a; font-weight: 650; }
.auth-submit { height: 54px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--bs-blue-dark), var(--bs-blue)); font-size: 1.05rem; font-weight: 800; box-shadow: 0 12px 25px rgba(13,109,145,.22); }
.auth-security { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: 1.25rem 0 0; color: var(--bs-muted); font-size: .8rem; text-align: center; }
.card, .manager-container .container, .sessionsContainer, .chartContainer { border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow); }
.card { border-radius: 18px; overflow: hidden; }
.card-header { background: linear-gradient(135deg, var(--bs-blue-dark), var(--bs-blue)); color: white; font-weight: 700; }
.btn-primary { background: var(--bs-blue); border-color: var(--bs-blue); }
.btn-primary:hover { background: var(--bs-blue-dark); border-color: var(--bs-blue-dark); }
.manager-container, .main-container { margin-top: clamp(1rem, 2vw, 2rem); }
.manager-container { padding: 0 clamp(.75rem, 2vw, 2rem) 2rem; }
.manager-container .container, .workspace-card { max-width: 1440px; margin: 0 auto; background: var(--bs-surface); padding: clamp(1rem, 2.5vw, 2rem); border-radius: 24px; }
.main-container { max-width: 1480px !important; width: calc(100% - clamp(1.5rem, 4vw, 4rem)); min-height: calc(100vh - 110px); margin-inline: auto; border-radius: 24px; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
.main-container .sessionsContainer { background: var(--bs-surface) !important; border-radius: 24px !important; padding: clamp(1rem, 2.5vw, 2rem) !important; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.workspace-heading h1, .chart-heading h2 { margin: .15rem 0 .35rem; color: var(--bs-ink); font-size: clamp(1.55rem, 2.6vw, 2.25rem); font-weight: 850; letter-spacing: -.025em; }
.workspace-heading p, .chart-heading p { margin: 0; color: var(--bs-muted); font-size: .97rem; }
.eyebrow { color: var(--bs-aqua); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.heading-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; color: white; background: linear-gradient(145deg, var(--bs-blue), var(--bs-aqua)); box-shadow: 0 10px 25px rgba(13,109,145,.2); font-size: 1.2rem; }
.session-help { color: var(--bs-muted); margin: -.25rem 0 1rem; }
.table-frame { overflow: auto; border: 1px solid var(--bs-line); border-radius: 16px; background: white; scrollbar-color: #9bbac7 #eef5f8; }
.modern-table { min-width: 720px; margin: 0 !important; border-collapse: separate; border-spacing: 0; }
.sessions-table { min-width: 1380px; }
.modern-table thead th { position: sticky; top: 0; z-index: 2; padding: .9rem .85rem; border: 0 !important; color: white; background: #123f5a; font-size: .8rem; font-weight: 800; text-align: start; vertical-align: middle; white-space: nowrap; }
.modern-table tbody th, .modern-table tbody td { padding: .8rem .85rem; border: 0 !important; border-bottom: 1px solid #e5eef2 !important; color: #24465b; vertical-align: middle; }
.modern-table tbody tr:last-child > * { border-bottom: 0 !important; }
.modern-table tbody tr.infos:hover > * { background: #f0faf9; }
.modern-table tbody tr.isSelected > * { background: #e9f8f5; }
.main-container .sessionsContainer .sessions { max-height: 510px; padding: 0 !important; margin: 0 0 1.25rem; }
.main-container table #datatable tr { height: auto !important; }
.main-container table #datatable tr.inactive td { padding: 0 !important; }
.main-container table #datatable tr:not(.inactive) .signal { padding: .9rem; }
.main-container table #datatable tr td .signal { display: flex; flex-wrap: wrap; gap: .55rem; background: #f4f9fb; }
.main-container table #datatable tr td .signal .signalCheckbox { margin: 0 !important; }
.main-container table #datatable tr td .signal > .signalCheckbox { padding: .45rem .7rem; border: 1px solid #d4e4ea; border-radius: 10px; background: white; }
.main-container table #datatable tr td .signal input { accent-color: var(--bs-aqua); }
.main-container table #datatable tr td .signal .hrvcontainer, .main-container table #datatable tr td .signal .ibicontainer { margin-top: .65rem; padding: .75rem; border-radius: 10px; background: #e6f5f6 !important; }
.session-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .2rem; }
.modern-check { display: inline-flex; align-items: center; gap: .65rem; margin: 0; color: var(--bs-muted); cursor: pointer; }
.modern-check input { position: absolute; opacity: 0; pointer-events: none; }
.modern-check > span { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #c8d7de; transition: .2s; }
.modern-check > span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.modern-check input:checked + span { background: var(--bs-aqua); }
.modern-check input:checked + span::after { transform: translateX(18px); }
html[dir="rtl"] .modern-check input:checked + span::after { transform: translateX(-18px); }
.modern-check b { font-size: .9rem; }
.action-button { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .65rem 1.1rem; border: 0; border-radius: 12px; font-weight: 800; box-shadow: 0 9px 22px rgba(13,109,145,.19); }
.report-actions { display: flex; justify-content: center; gap: .35rem; }
.summary-button { white-space: nowrap; border-color: var(--bs-aqua); color: #087568; }
.summary-button:hover { background: var(--bs-aqua); color: white; }
.demo-banner { display: none; background: #fff7d6; color: #705b00; text-align: center; padding: .6rem; font-weight: 700; }
body.demo-mode .demo-banner { display: block; }

.summary-dialog { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(8, 34, 48, .62); }
.summary-dialog.open { display: flex; }
.summary-document { width: min(940px, 100%); max-height: calc(100vh - 2.5rem); overflow: auto; background: white; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.summary-hero { padding: 2rem; color: white; background: linear-gradient(135deg, #07536f, #0d7990 56%, #21a99c); }
.summary-hero h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.summary-hero p { margin: .65rem 0 0; opacity: .88; }
.summary-body { padding: clamp(1.1rem, 4vw, 2rem); }
.summary-layer-label { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; color: var(--bs-blue-dark); background: #e6f6f5; font-weight: 800; font-size: .82rem; }
.summary-headline { color: var(--bs-success); font-size: 1.28rem; font-weight: 800; line-height: 1.65; margin: 1rem 0; }
.summary-details { display: grid; gap: .75rem; padding: 0; list-style: none; }
.summary-details li { border-inline-start: 4px solid var(--bs-aqua); background: #f4faf9; border-radius: 10px; padding: .75rem 1rem; line-height: 1.65; }
.summary-next { margin-top: 1.25rem; padding: 1rem 1.15rem; background: #eef5fb; border-radius: 12px; line-height: 1.7; }
.professional-panel { margin-top: 1.75rem; border-top: 1px solid var(--bs-line); padding-top: 1.5rem; }
.professional-panel summary { cursor: pointer; color: var(--bs-blue-dark); font-weight: 800; }
.professional-table { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.professional-table th, .professional-table td { border-bottom: 1px solid var(--bs-line); padding: .7rem; text-align: start !important; }
.summary-controls { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .65rem; padding: 1rem 2rem; background: rgba(255,255,255,.96); border-top: 1px solid var(--bs-line); }
.summary-error { padding: 2rem; color: var(--bs-ink); text-align: center; }
.summary-spinner { width: 38px; height: 38px; margin: 0 auto 1rem; border: 4px solid #d8e9ee; border-top-color: var(--bs-blue); border-radius: 50%; animation: summary-spin .8s linear infinite; }
@keyframes summary-spin { to { transform: rotate(360deg); } }

.chartContainer { min-height: 620px !important; height: auto !important; margin-top: 1.5rem; padding: clamp(1rem, 2.5vw, 2rem); border-radius: 24px; background: white; }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.chartContainer #charts { min-height: 500px; height: 62vh !important; overflow: hidden; border: 1px solid var(--bs-line); border-radius: 16px; }
.chartContainer .buttonsContainer { align-items: flex-start !important; width: 100% !important; padding: 1rem 0 0 !important; }
#nosessiondiv:not(:empty) { padding: 2rem; border: 1px dashed #b9d2dc; border-radius: 14px; color: var(--bs-muted); background: #f8fbfc; text-align: center; font-weight: 700; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { min-height: 38px; border: 1px solid #c9dce4; border-radius: 9px; background: white; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { border: 0 !important; border-radius: 8px; color: white !important; background: var(--bs-blue) !important; }

html[dir="rtl"] body, html[dir="rtl"] input, html[dir="rtl"] button { font-family: Arial, "Noto Sans Hebrew", sans-serif; }
html[dir="rtl"] .text-md-right { text-align: left !important; }
html[dir="rtl"] .brand-lockup, html[dir="rtl"] .summary-body, html[dir="rtl"] .summary-hero { text-align: right; }
html[dir="rtl"] .auth-intro, html[dir="rtl"] .auth-panel { text-align: right; }
html[dir="rtl"] .summary-controls { justify-content: flex-start; }
html[dir="rtl"] .professional-table { direction: rtl; }
html[dir="rtl"] .modern-table th, html[dir="rtl"] .modern-table td { text-align: right; }
html[dir="rtl"] #mainTable .customer-name-column { direction: rtl; text-align: right !important; }
html[dir="ltr"] #mainTable .customer-name-column { direction: ltr; text-align: left !important; }
html[dir="rtl"] .dataTables_wrapper .dataTables_filter { float: left; text-align: left; }
html[dir="rtl"] .dataTables_wrapper .dataTables_length { float: right; }

@media (max-width: 760px) {
  .navbar .container { gap: .75rem; }
  .app-navbar { min-height: 68px; padding: .55rem .75rem; }
  .app-navbar-inner { flex-wrap: nowrap; }
  .brand-symbol { width: 40px; height: 40px; border-radius: 12px; }
  .brand-lockup strong { font-size: .9rem; }
  .app-navbar-actions { gap: .35rem; }
  .user-chip:not(:empty) { display: none; }
  .brand-lockup small { display: none; }
  .navbar .language-switch { display: inline-flex; }
  .navbar .language-switch button { min-width: 0; padding: .32rem .5rem; font-size: .72rem; }
  .login-form { padding: .75rem !important; }
  .auth-shell { grid-template-columns: 1fr; border-radius: 20px; }
  .auth-intro { min-height: auto; padding: 2rem 1.5rem; }
  .auth-intro h1 { font-size: 2rem; }
  .auth-lead { margin-bottom: 1rem; }
  .auth-benefits { display: none; }
  .auth-mark { height: 34px; margin-bottom: .8rem; }
  .auth-mark span:nth-child(1), .auth-mark span:nth-child(5) { height: 12px; }.auth-mark span:nth-child(2), .auth-mark span:nth-child(4) { height: 24px; }.auth-mark span:nth-child(3) { height: 34px; }
  .auth-panel { min-height: auto; padding: 1.5rem; }
  .auth-language-block { margin-bottom: 2rem; }
  .main-container { width: calc(100% - 1rem); margin: .5rem; border-radius: 12px; }
  .manager-container { padding: 0 .5rem 1rem; }
  .manager-container .container, .workspace-card, .main-container .sessionsContainer, .chartContainer { border-radius: 16px !important; }
  .heading-icon { display: none; }
  .workspace-heading h1, .chart-heading h2 { font-size: 1.55rem; }
  .session-toolbar { align-items: stretch; flex-direction: column; }
  .action-button { justify-content: center; width: 100%; }
  .chartContainer #charts { min-height: 420px; height: 58vh !important; }
  .main-container .sessionsContainer .sessions { padding: 0 !important; }
  .summary-dialog { padding: 0; }
  .summary-document { max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .professional-table { font-size: .82rem; }
}

@media print {
  body > *:not(.summary-dialog) { display: none !important; }
  .summary-dialog { display: block !important; position: static; padding: 0; background: white; }
  .summary-document { max-height: none; width: 100%; box-shadow: none; border-radius: 0; }
  .summary-controls { display: none; }
  .professional-panel { break-inside: avoid; }
}
