/* ============================================================
   JTEL WEB SUITE - 999-COMMON STYLES
   ------------------------------------------------------------
   Theme variables, base elements, app shell (header / logo /
   sidebar / footer), global loader, toast, JTEL dialog, modal frame,
   plus the layouts shared by more than one module:
     - invoice screens 010 + 011 (sidebar, header chip, modal frame)
     - client screens 020 + 021 (header chip, buttons)
     - report screens 050 + 051 (filter bar, report table, bottom bar)

   Loaded FIRST - every module stylesheet loads after it and may
   override it for its own screen only.

   Build 015 - module-wise split (2026-09-30). No visual change.
   ============================================================ */

/* ---------- from base ---------- */

:root {
  --bg-deep: #0f1821;
  --bg-deeper: #091018;
  --graphite: #17232e;
  --graphite-2: #223342;
  --steel: #4d6578;
  --steel-light: #7f96a8;
  --silver: #d8e0e6;
  --panel: #ffffff;
  --panel-soft: #f3f6f8;
  --text: #1d2934;
  --text-muted: #697987;
  --line: #d7e0e6;
  --jtel-red: #c92f38;
  --jtel-red-dark: #9f2028;
  --jtel-red-soft: #fae9eb;
  --success: #2c865d;
  --warning: #b87917;
  --danger: #bd2e38;
  --shadow-lg: 0 24px 70px rgba(6, 17, 27, 0.24);
  --shadow-md: 0 12px 30px rgba(14, 29, 42, 0.13);
  --shadow-sm: 0 5px 16px rgba(15, 31, 46, 0.10);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --header-height: 78px;
  --footer-height: 34px;
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

.hidden {
  display: none !important;
}

.app-shell,
.screen {
  width: 100%;
  height: 100%;
}

.screen {
  display: none;
}

.screen.is-active {
  display: flex;
}


/* ---------- from [module-login] ---------- */

.section-kicker {
  display: inline-block;
  color: var(--jtel-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
}

.server-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.server-pill-neutral {
  color: #61717e;
  background: #edf2f5;
}

.server-pill-neutral::before {
  background: #80919e;
}

.server-pill-success {
  color: #27724f;
  background: #e4f4ec;
}

.server-pill-success::before {
  background: #2e9668;
}

.server-pill-error {
  color: #9b2931;
  background: #f9e7e9;
}

.server-pill-error::before {
  background: #bd2e38;
}


/* ---------- from [module-landing] ---------- */

.app-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  flex: 0 0 var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 23px;
  color: white;
  background:
    linear-gradient(180deg, #334a5d 0%, #243746 48%, #182632 100%);
  border-bottom: 1px solid #0e1820;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    0 4px 14px rgba(8, 20, 30, 0.22);
}

.header-brand,
.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-brand {
  gap: 15px;
}

.header-logo-shell {
  width: 150px;
  height: 56px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff, #e8edf1);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 white,
    0 5px 15px rgba(0,0,0,0.18);
}

.header-logo {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.header-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header-suite-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.header-page-name {
  margin-top: 3px;
  color: rgba(231,239,245,0.64);
  font-size: 0.7rem;
}

.header-actions {
  gap: 15px;
}

.app-body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
}

.app-sidebar {
  position: relative;
  z-index: 15;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: white;
  background:
    linear-gradient(180deg, #1b2a36 0%, #111d26 100%);
  border-right: 1px solid #0b141b;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.04),
    4px 0 15px rgba(11,24,34,0.11);
}

.sidebar-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 11px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(234,241,246,0.72);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  color: white;
  background: rgba(255,255,255,0.06);
}

.nav-item.is-active {
  color: white;
  background:
    linear-gradient(180deg, rgba(91,119,139,0.46), rgba(53,76,94,0.46));
  border-color: rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-item.is-active::before {
  content: "";
  width: 3px;
  height: 24px;
  margin-left: -12px;
  background: var(--jtel-red);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  color: #dce7ee;
  background: rgba(255,255,255,0.07);
  border-radius: 7px;
  font-size: 0.79rem;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.logout-button {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f2c7ca;
  background: rgba(201,47,56,0.10);
  border: 1px solid rgba(215,73,82,0.22);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.logout-button:hover {
  color: white;
  background: rgba(201,47,56,0.21);
}

.workspace {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background:
    linear-gradient(180deg, #edf2f5, #e5ebef);
}

.workspace-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 22px;
}

.count-badge {
  padding: 7px 10px;
  color: #5a6d7b;
  background: #eaf0f4;
  border: 1px solid #d8e2e8;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 750;
}

.app-footer {
  position: relative;
  z-index: 25;
  height: var(--footer-height);
  flex: 0 0 var(--footer-height);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: rgba(235,241,245,0.68);
  background:
    linear-gradient(180deg, #17242e, #101a22);
  border-top: 1px solid #0a1117;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
  font-size: 0.62rem;
}

.footer-left,
.footer-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-left span,
.footer-right span {
  white-space: nowrap;
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3cb77e;
  box-shadow: 0 0 0 3px rgba(60,183,126,0.12);
}

.connection-dot.is-error {
  background: #db4b54;
  box-shadow: 0 0 0 3px rgba(219,75,84,0.12);
}

.footer-divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.13);
}

.mobile-only,
.mobile-overlay {
  display: none;
}


/* ---------- from [global-components] ---------- */

.icon-button {
  width: 42px;
  height: 42px;
  color: white;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
}

.global-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 14, 20, 0.68);
  backdrop-filter: blur(5px);
}

.loader-card {
  width: min(390px, calc(100% - 34px));
  padding: 29px 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  background:
    linear-gradient(145deg, #2c4354, #14232e 68%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    var(--shadow-lg);
}

.loader-orbit {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}

.spinner {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255,255,255,0.16);
  border-top-color: #de4b54;
  border-right-color: #91a8b8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-core {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #d9444d, #9f2028);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  font-size: 0.82rem;
  font-weight: 900;
}

.loader-card strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.loader-card > span {
  margin-top: 7px;
  color: rgba(231,239,245,0.70);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.loader-progress {
  width: 100%;
  margin-top: 18px;
}

.loader-progress-track {
  height: 7px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
}

.loader-progress-bar {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #8da4b4, #ffffff, #d9434d);
  border-radius: inherit;
  animation: loaderSweep 1.25s ease-in-out infinite;
}

.global-loader.is-determinate .loader-progress-bar {
  animation: none;
  transition: width 220ms ease;
}

.loader-progress small {
  display: block;
  margin-top: 7px;
  color: rgba(231,239,245,0.58);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.toast-container {
  position: fixed;
  z-index: 1100;
  right: 16px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  width: min(350px, calc(100vw - 32px));
  padding: 13px 15px;
  color: white;
  background: #263947;
  border: 1px solid rgba(255,255,255,0.11);
  border-left: 4px solid #718da0;
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  line-height: 1.45;
  animation: toast-in 180ms ease both;
}

.toast.is-error {
  border-left-color: #df4a54;
}

.toast.is-success {
  border-left-color: #3ab078;
}

@keyframes loaderSweep {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}


/* ---------- from RESPONSIVE RULES ---------- */

@media (max-width: 1120px) {
  .header-title-block {
      display: none;
    }
}

@media (max-width: 900px) {
  :root {
      --header-height: 70px;
      --footer-height: 32px;
    }

  .mobile-only {
      display: grid;
      place-items: center;
    }

  .header-logo-shell {
      width: 120px;
      height: 48px;
    }

  .header-logo {
      max-height: 37px;
    }

  .app-sidebar {
      position: fixed;
      z-index: 70;
      left: 0;
      top: var(--header-height);
      bottom: var(--footer-height);
      transform: translateX(-102%);
      transition: transform 180ms ease;
    }

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

  .mobile-overlay {
      position: fixed;
      z-index: 60;
      inset: var(--header-height) 0 var(--footer-height) 0;
      display: block;
      visibility: hidden;
      opacity: 0;
      background: rgba(5,13,19,0.50);
      transition: 180ms ease;
    }

  .mobile-overlay.is-open {
      visibility: visible;
      opacity: 1;
    }

  .workspace-scroll {
      padding: 16px;
    }
}

@media (max-width: 620px) {
  .server-pill {
      align-self: flex-end;
      margin-top: -31px;
    }

  .app-header {
      padding: 0 10px;
    }

  .header-brand {
      gap: 9px;
    }

  .header-logo-shell {
      width: 104px;
      height: 44px;
      padding: 4px 7px;
    }

  .header-logo {
      max-height: 34px;
    }

  .workspace-scroll {
      padding: 11px;
    }

  .app-footer {
      padding: 0 9px;
    }

  .footer-right {
      display: none;
    }

  .toast-container {
      right: 10px;
      bottom: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- from BUILD 002 REFINEMENTS ---------- */

:root {
  --header-height: 86px;
}

.header-brand {
  flex: 1;
}

.header-welcome-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-page-name {
  color: #ef737a;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-welcome-text {
  margin-top: 3px;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-welcome-subtitle {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(231, 239, 245, 0.62);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-heading {
  padding: 18px 17px 12px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-heading span {
  color: rgba(232,240,245,0.42);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-heading strong {
  margin-top: 4px;
  color: rgba(244,248,250,0.88);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  :root {
      --header-height: 76px;
    }

  .header-welcome-text {
      font-size: 0.9rem;
    }

  .header-welcome-subtitle {
      max-width: 310px;
    }
}

@media (max-width: 620px) {
  :root {
      --header-height: 70px;
    }

  .header-logo-shell {
      width: 92px;
      height: 42px;
    }

  .header-welcome-block {
      max-width: calc(100vw - 205px);
    }

  .header-page-name {
      font-size: 0.52rem;
    }

  .header-welcome-text {
      font-size: 0.78rem;
    }

  .header-welcome-subtitle {
      display: none;
    }

  .workspace-scroll {
      padding: 10px;
    }

  .sidebar-heading {
      padding-top: 15px;
    }
}


/* ---------- from [module-invoice-new] ---------- */

.invoice-header-actions {
  gap: 12px;
}

.invoice-number-chip {
  min-width: 112px;
  padding: 8px 13px;
  display: flex;
  flex-direction: column;
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
}

.invoice-number-chip span {
  color: rgba(230,239,245,0.58);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-number-chip strong {
  margin-top: 3px;
  font-size: 0.78rem;
}

.header-secondary-button {
  height: 40px;
  padding: 0 14px;
  color: #eef4f7;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.header-secondary-button:hover {
  background: rgba(255,255,255,0.14);
}

.small-metal-button {
  min-width: 86px;
  color: white;
  background: linear-gradient(180deg, #60798c, #294557);
  border: 1px solid #203948;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.small-metal-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* ---------- from [module-invoice-sales-summary-polish-010] ---------- */

.modal-layer {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7,15,21,0.70);
  backdrop-filter: blur(5px);
}

.modal-close-button {
  width: 38px;
  height: 38px;
  color: #6c7d88;
  background: #edf2f5;
  border: 1px solid #d1dce3;
  border-radius: 9px;
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .invoice-sidebar {
      position: fixed;
      z-index: 70;
      left: 0;
      top: 78px;
      bottom: var(--footer-height);
      transform: translateX(-102%);
      transition: transform 180ms ease;
    }

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

@media (max-width: 620px) {
  .invoice-number-chip {
      display: none;
    }

  .header-secondary-button {
      padding: 0 9px;
      font-size: 0.62rem;
    }

  .modal-layer {
      padding: 0;
    }
}


/* ---------- from [module-jtel-dialog] ---------- */

.jtel-dialog-layer {
  z-index: 320;
  padding: 18px;
  background: rgba(8, 18, 26, 0.68);
  backdrop-filter: blur(7px);
}

.jtel-dialog-card {
  position: relative;
  width: min(470px, 100%);
  padding: 0 24px 22px;
  overflow: hidden;
  color: #243744;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.995), rgba(235,241,245,0.99));
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 25px 75px rgba(4, 14, 22, 0.34);
  animation: jtelDialogEnter 155ms ease-out;
}

.jtel-dialog-shine {
  height: 5px;
  margin: 0 -24px 20px;
  background: linear-gradient(90deg, #536f82, #91a6b4, #c92f38, #91a6b4, #536f82);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.jtel-dialog-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jtel-dialog-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #69869a, #344f62);
  border: 1px solid #2e4758;
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 7px 16px rgba(31, 57, 74, 0.22);
  font-size: 1.15rem;
  font-weight: 900;
}

.jtel-dialog-layer[data-type="warning"] .jtel-dialog-icon {
  background: linear-gradient(145deg, #d39a35, #9b6715);
  border-color: #86570f;
}

.jtel-dialog-layer[data-type="danger"] .jtel-dialog-icon,
.jtel-dialog-layer[data-type="error"] .jtel-dialog-icon {
  background: linear-gradient(145deg, #df4d56, #a31f28);
  border-color: #8d1921;
}

.jtel-dialog-layer[data-type="success"] .jtel-dialog-icon {
  background: linear-gradient(145deg, #43a879, #287553);
  border-color: #226648;
}

.jtel-dialog-heading-copy {
  min-width: 0;
}

.jtel-dialog-heading-copy .section-kicker {
  font-size: 0.61rem;
}

.jtel-dialog-heading-copy h2 {
  margin: 5px 0 0;
  color: #243744;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.jtel-dialog-message {
  margin-top: 17px;
  color: #60717d;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.83rem;
  line-height: 1.65;
  white-space: pre-line;
}

.jtel-dialog-input-wrap {
  margin-top: 16px;
}

.jtel-dialog-input-wrap label {
  display: block;
  margin-bottom: 6px;
  color: #405561;
  font-size: 0.68rem;
  font-weight: 800;
}

.jtel-dialog-input-wrap input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  color: #263946;
  background: #fff;
  border: 1px solid #c4d1da;
  border-radius: 10px;
  outline: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
}

.jtel-dialog-input-wrap input:focus {
  border-color: #6c8a9e;
  box-shadow: 0 0 0 3px rgba(86,116,139,0.13);
}

.jtel-dialog-input-error {
  min-height: 18px;
  margin-top: 5px;
  color: #b42a34;
  font-size: 0.64rem;
  font-weight: 700;
}

.jtel-dialog-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.jtel-dialog-button {
  min-width: 132px;
  height: 43px;
  padding: 0 17px;
  border-radius: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: 140ms ease;
}

.jtel-dialog-button:hover {
  transform: translateY(-1px);
}

.jtel-dialog-button-secondary {
  color: #4d616e;
  background: linear-gradient(180deg, #fff, #e8eef2);
  border: 1px solid #c4d1d9;
  box-shadow: inset 0 1px 0 #fff;
}

.jtel-dialog-button-primary {
  color: white;
  background: linear-gradient(180deg, #dc4650, #ae222b);
  border: 1px solid #951b23;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 8px 18px rgba(171, 31, 40, 0.2);
}

.jtel-dialog-layer[data-type="info"] .jtel-dialog-button-primary,
.jtel-dialog-layer[data-type="question"] .jtel-dialog-button-primary {
  background: linear-gradient(180deg, #6c899d, #365568);
  border-color: #2d495b;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 8px 18px rgba(37, 70, 90, 0.2);
}

@keyframes jtelDialogEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .jtel-dialog-layer {
      align-items: flex-end;
      padding: 10px;
    }

  .jtel-dialog-card {
      width: 100%;
      padding-right: 18px;
      padding-left: 18px;
      border-radius: 17px;
    }

  .jtel-dialog-shine {
      margin-right: -18px;
      margin-left: -18px;
    }

  .jtel-dialog-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

  .jtel-dialog-button {
      width: 100%;
      min-width: 0;
    }
}


/* ---------- from [CLIENT-MODULE-001] ---------- */

.client-module-header {
  flex: 0 0 var(--header-height);
}

.client-header-actions {
  gap: 10px;
}

.client-mode-chip {
  min-width: 90px;
  height: 52px;
  padding: 6px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 11px;
}

.client-mode-chip span {
  color: rgba(235,242,247,0.62);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-mode-chip strong {
  margin-top: 2px;
  color: #fff;
  font-size: 0.88rem;
}

.client-button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.client-button.secondary {
  color: #405563;
  background: linear-gradient(#fff, #e8eef2);
  border: 1px solid #b8c7d0;
}

.client-button.primary {
  color: #fff;
  background: linear-gradient(#4f6c80, #29475c);
  border: 1px solid #213d50;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.client-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 620px) {
  .client-button {
      width: 100%;
    }

  .client-header-actions .client-mode-chip {
      display: none;
    }
}


/* ---------- from [JTEL-REPORTS-MODULE-001] ---------- */

.screen-jtel-report {
  flex-direction: column;
  background:
    radial-gradient(circle at 0 0, rgba(201,47,56,.06), transparent 28%),
    #e8eef2;
}

.jtel-report-workspace {
  min-height: 0;
  flex: 1 1 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
}

.jtel-report-filter,
.jtel-report-results {
  background: #fff;
  border: 1px solid #c5d1d9;
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(21,42,57,.10);
}

.jtel-report-filter {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(220px,1.4fr) 150px 150px auto;
  align-items: end;
  gap: 11px;
  border-top: 5px solid var(--jtel-red);
}

.jtel-report-filter label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jtel-report-filter label span {
  color: #445a68;
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.jtel-report-filter input,
.jtel-report-filter select {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  color: #203541;
  background: #fff;
  border: 1px solid #bdcad3;
  border-radius: 8px;
  outline: 0;
}

.jtel-report-filter input:focus,
.jtel-report-filter select:focus {
  border-color: #6c879a;
  box-shadow: 0 0 0 3px rgba(75,111,136,.12);
}

.jtel-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.report-button {
  min-height: 39px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 900;
  cursor: pointer;
}

.report-button.primary {
  color: #fff;
  background: linear-gradient(#da4650,#aa2029);
  border: 1px solid #941b23;
}

.report-button.secondary {
  color: #405563;
  background: linear-gradient(#fff,#e8eef2);
  border: 1px solid #b8c7d0;
}

.report-button.dark {
  color: #fff;
  background: linear-gradient(#526b7d,#273f51);
  border: 1px solid #203745;
}

.report-button.csv {
  color: #fff;
  background: linear-gradient(#3e8b67,#246246);
  border: 1px solid #20573f;
}

.report-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.jtel-report-results {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jtel-report-table-scroll {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.jtel-report-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: auto;
}

.jtel-report-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 8px;
  color: #fff;
  background: linear-gradient(#536d80,#304b5f);
  border-right: 1px solid rgba(255,255,255,.14);
  font-size: .59rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.jtel-report-table td {
  padding: 7px 8px;
  color: #344b59;
  border-bottom: 1px solid #e2e8ec;
  font-size: .66rem;
  vertical-align: top;
}

.jtel-report-table tbody tr:nth-child(even) {
  background: #f7f9fa;
}

.jtel-report-table tbody tr:hover {
  background: #edf4f8;
}

.jtel-report-table .number-cell {
  text-align: right;
  white-space: nowrap;
}

.report-balance-cell {
  color: #152f40 !important;
  font-weight: 900;
}

.jtel-report-empty {
  position: absolute;
  inset: 42px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #82909a;
  pointer-events: none;
}

.jtel-report-empty strong {
  color: #4f6675;
  font-size: .86rem;
}

.jtel-report-empty span {
  margin-top: 5px;
  font-size: .66rem;
}

.jtel-report-summary {
  padding: 10px 13px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  background: #f0f4f6;
  border-top: 1px solid #d0dbe1;
}

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

.jtel-report-summary div {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d2dce2;
  border-radius: 8px;
}

.jtel-report-summary div.emphasis {
  color: #fff;
  background: linear-gradient(#526d80,#2b475a);
  border-color: #294557;
}

.jtel-report-summary span,
.jtel-report-summary strong {
  display: block;
}

.jtel-report-summary span {
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.jtel-report-summary strong {
  margin-top: 3px;
  font-size: .87rem;
}

.jtel-report-status {
  min-height: 34px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #647784;
  background: #e8eef2;
  border-top: 1px solid #cfdae0;
  font-size: .63rem;
  font-weight: 750;
}

@media (max-width: 980px) {
  .jtel-report-filter {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }

  .jtel-report-actions {
      grid-column: 1 / -1;
      flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
  .jtel-report-workspace {
      padding: 10px;
    }

  .jtel-report-filter {
      grid-template-columns: 1fr;
    }

  .jtel-report-actions {
      grid-column: span 1;
    }

  .report-button {
      flex: 1 1 calc(50% - 7px);
    }

  .jtel-report-summary,
    .jtel-report-summary.compact-summary {
      grid-template-columns: 1fr 1fr;
    }
}


/* ---------- from [JTEL-REPORTS-REFINEMENT-002] ---------- */

.screen-jtel-report,
.screen-jtel-report button,
.screen-jtel-report input,
.screen-jtel-report select,
.screen-jtel-report table {
  font-family: "Segoe UI", Arial, sans-serif;
}

.jtel-report-filter {
  grid-template-columns: minmax(260px, 1.5fr) 160px 160px minmax(220px, auto);
}

.report-filter-right-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.jtel-report-table {
  font-size: 12pt;
}

.jtel-report-table th {
  padding: 7px 6px;
  font-size: 12pt;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}

.jtel-report-table td {
  padding: 7px 7px;
  font-size: 12pt;
  line-height: 1.3;
}

.jtel-report-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  color: #111;
  background: #eceeef;
  border-top: 2px solid #aeb9c0;
  font-size: 12pt;
  font-weight: 800;
}

.report-total-label {
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.closing-total {
  color: #fff !important;
  background: linear-gradient(#566c7b, #2f4657) !important;
}

.report-remarks-cell {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.report-bottom-bar {
  min-height: 49px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #5b6d79;
  background: #e9eef1;
  border-top: 1px solid #cbd5db;
  font-size: 12pt;
  font-weight: 650;
}

.report-bottom-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 1220px) {
  .jtel-report-filter {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

  .report-filter-right-actions {
      grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
  .jtel-report-filter {
      grid-template-columns: 1fr;
    }

  .report-filter-right-actions {
      grid-column: auto;
    }

  .report-bottom-bar {
      align-items: stretch;
      flex-direction: column;
    }

  .report-bottom-actions {
      width: 100%;
    }

  .report-bottom-actions .report-button {
      flex: 1;
    }
}
