:root {
  --sw-primary: #0f63f8;
  --sw-primary-600: #0a4dc6;
  --sw-accent: #17c964;
  --sw-bg: #eef1f9;
  --sw-card: #ffffff;
  --sw-text: #1f2440;
  --sw-muted: #667085;
  --sw-border: #d8deeb;
  --sw-sidebar: #f4f6fb;
  --sw-violet: #5a62ea;
  --sw-warn: #fdab3d;
  --sw-ok: #00c875;
  --sw-risk: #e2445c;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--sw-text);
  background: var(--sw-bg);
}

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

.app-logo {
  width: 150px;
  height: 40px;
  object-fit: contain;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--sw-border);
}

.app-card {
  background: var(--sw-card);
  border: 1px solid var(--sw-border);
  border-radius: 16px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  border: 1px solid var(--sw-border);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 6px;
  z-index: 40;
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--sw-text);
  border-radius: 8px;
}

.dropdown-item:hover {
  background: var(--sw-bg);
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sw-muted);
}

.dropdown-toggle:hover {
  color: var(--sw-primary);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 48%) 1fr;
  background: #f6f7fb;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(24px, 5vw, 84px);
}

.auth-panel-inner {
  width: min(520px, 100%);
}

.auth-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #0f1733;
}

.auth-subtitle {
  margin: 16px 0 28px;
  max-width: 44ch;
  color: #424e6a;
  line-height: 1.55;
  font-size: 17px;
}

.auth-card {
  border: 1px solid var(--sw-border);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 20px 44px rgba(26, 34, 65, 0.08);
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #243156;
}

.auth-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #ccd5e4;
  padding: 0 14px;
  outline: none;
  font-size: 15px;
  color: #121a33;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus {
  border-color: #2c73ff;
  box-shadow: 0 0 0 4px rgba(44, 115, 255, 0.16);
}

.auth-btn {
  width: 100%;
  border: 0;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0f63f8, #2178ff);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 99, 248, 0.28);
}

.auth-help {
  margin-top: 14px;
  font-size: 13px;
  color: #697287;
  line-height: 1.45;
}

.auth-help a {
  color: #0f63f8;
  font-weight: 600;
}

.auth-error {
  margin-bottom: 14px;
  border: 1px solid #ffc8cf;
  background: #fff4f6;
  color: #8a2334;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 22% 24%, #6c7cf6 0%, #5f6be9 38%, #505ee0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(26, 250, 174, 0.4);
  left: 15%;
  top: 21%;
  animation: pulseOrb 4.8s infinite;
}

.auth-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd23b;
  top: 28%;
  left: 42%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  animation: floatDot 3.4s ease-in-out infinite;
}

.auth-board {
  width: min(520px, 76%);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(252, 253, 255, 0.65);
  box-shadow: 0 30px 54px rgba(11, 18, 48, 0.26);
  overflow: hidden;
  animation: slideBoard .8s ease;
}

.auth-board-head {
  height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ebf4;
}

.auth-board-head span {
  display: block;
  width: 44%;
  height: 10px;
  border-radius: 12px;
  background: #dee4f1;
}

.auth-board-row {
  display: grid;
  grid-template-columns: 1.4fr .9fr .7fr;
  border-top: 1px solid #edf1f7;
}

.auth-board-cell {
  height: 42px;
  border-right: 1px solid #edf1f7;
}

.auth-board-cell:last-child {
  border-right: 0;
}

.auth-board-strip {
  display: inline-block;
  width: 82%;
  height: 10px;
  margin: 16px 0 0 14px;
  border-radius: 9px;
  background: #dce3f2;
}

.auth-board-state {
  height: 100%;
}

.state-progress {
  background: var(--sw-warn);
}

.state-done {
  background: var(--sw-ok);
}

.state-blocked {
  background: var(--sw-risk);
}

.auth-surface {
  position: absolute;
  bottom: 38px;
  width: 340px;
  height: 10px;
  border-radius: 50%;
  background: rgba(35, 42, 105, 0.35);
  filter: blur(1px);
}

.ws-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}

.ws-sidebar {
  background: var(--sw-sidebar);
  border-right: 1px solid var(--sw-border);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 14px;
  border-bottom: 1px solid var(--sw-border);
}

.ws-brand b {
  font-size: 28px;
  line-height: 1;
  color: #4452d7;
}

.ws-brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ws-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #7582a2;
  margin: 20px 8px 10px;
  font-weight: 700;
}

.ws-nav-separator {
  height: 1px;
  margin: 14px 0 12px;
  background: #e5e7eb;
}

.ws-brand + .ws-nav-separator {
  margin-top: 0;
}

.ws-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  padding: 9px 11px;
  font-size: 15px;
  border-radius: 10px;
  color: #2f3a5a;
}

.ws-link:hover {
  background: #e8ecf7;
}

.ws-link.active {
  background: #dfe7ff;
  color: #15357f;
  font-weight: 600;
}

.ws-badge {
  margin-left: auto;
  border-radius: 999px;
  background: #e8edfa;
  color: #516083;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

.ws-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: 100%;
}

.ws-topbar {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid var(--sw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.ws-topbar h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.ws-top-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avatar-bg, #0f63f8);
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(16, 34, 86, 0.2);
}

.ws-icon-btn {
  width: 38px;
  padding: 0;
}

.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sw-border);
  background: #ffffff;
  color: #1d2a4d;
  height: 38px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.ws-btn.primary {
  border-color: #0f63f8;
  background: #0f63f8;
  color: #ffffff;
}

.postit-add-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  background: #1f2440;
  border-color: #1f2440;
  color: #ffffff;
}

.postit-top-new-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-color: #cfd9ea;
  color: #1f2937;
  box-shadow: 0 4px 10px rgba(30, 41, 59, 0.10);
  font-size: 14px;
  font-weight: 700;
}

.postit-top-new-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
}

.postit-top-new-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  color: #1f2937;
}

.ws-content {
  padding: 22px 24px 30px;
  min-width: 0;
  max-width: 100%;
}

.ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ws-pill {
  border: 1px solid var(--sw-border);
  background: #ffffff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 14px;
  color: #334164;
}

.ws-board {
  border: 1px solid var(--sw-border);
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}

.ws-board-header {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  background: #f9fbff;
  border-bottom: 1px solid var(--sw-border);
}

.ws-board-header div,
.ws-row div {
  padding: 12px 14px;
  font-size: 14px;
}

.ws-board-header div {
  font-weight: 700;
  color: #4b587b;
}

.ws-row {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #eef2fa;
}

.ws-row:last-child {
  border-bottom: 0;
}

.ws-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.ws-status.progress {
  background: var(--sw-warn);
}

.ws-status.done {
  background: var(--sw-ok);
}

.ws-status.blocked {
  background: var(--sw-risk);
}

.ws-date {
  color: #586486;
  font-weight: 600;
}

.ws-panel {
  border: 1px solid var(--sw-border);
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
}

.ws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ws-panel-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.ws-muted {
  margin: 0;
  color: var(--sw-muted);
}

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

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.dashboard-summary-card {
  grid-column: span 1;
  border: 1px solid #e1e6f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 16px 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(16, 37, 84, 0.08);
}

.dashboard-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9f0ff;
  color: #2463f3;
  flex: 0 0 auto;
}

.dashboard-summary-icon.is-success {
  background: #dcf8ef;
  color: #00a86b;
}

.dashboard-summary-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2440;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-title-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dashboard-title-logo {
  width: 34px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
}

.dashboard-summary-value {
  margin: 4px 0 2px;
  font-size: clamp(42px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -0.02em;
  color: #16234f;
}

.dashboard-summary-value-inline {
  display: inline-block;
  margin-left: 10px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: #2a3a65;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-summary-meta {
  margin: 0;
  font-size: 15px;
  color: #2a3a65;
  line-height: 1.35;
}

.dashboard-kpi-table-wrap {
  margin-top: 6px;
}

.dashboard-kpi-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.dashboard-kpi-table th,
.dashboard-kpi-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #edf1fa;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-kpi-table tr:last-child th,
.dashboard-kpi-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-kpi-table th {
  text-align: left;
  font-weight: 700;
  color: #4a5c87;
}

.dashboard-kpi-table td {
  text-align: right;
  font-weight: 800;
  color: #182754;
}

.dashboard-kpi-table td.is-danger {
  color: inherit;
}

.dashboard-kpi-table .dashboard-danger-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d12b2b;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
}

.dashboard-summary-btn {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
}

.dashboard-summary-card.dashboard-op-single {
  grid-column: span 1;
}

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

.reporting-agents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.reporting-agents-panel {
  border: 1px solid #e1e6f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(16, 37, 84, 0.08);
}

.reporting-filter-tools {
  width: auto;
  flex: 1 1 auto;
}

.reporting-filter-tools input,
.reporting-filter-tools select {
  flex: 0 0 auto;
  min-width: 0;
}

.reporting-filter-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.reporting-agents-table th,
.reporting-agents-table td {
  white-space: nowrap;
}

.reporting-agents-table-striped tbody tr:nth-child(even) {
  background: #f6f8fc;
}

.bp-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 4px;
}

.bp-price-table td {
  vertical-align: middle;
}

.bp-price-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bp-original-price {
  color: #7c879f;
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 600;
}

.bp-current-price {
  color: inherit;
}

.bp-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #b7c3df;
  color: #4a5c87;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: #f6f8fc;
}

.bp-info-trigger:hover {
  color: #182754;
  border-color: #7f95c7;
  background: #eef2fb;
}

.reporting-agents-mini {
  font-size: clamp(26px, 2.4vw, 34px);
}

.promo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.promo-kpi-card {
  border: 1px solid #dfe6f5;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
}

.promo-kpi-card.is-alert {
  border-color: #a11f35;
  background: #a11f35;
}

.promo-kpi-card.is-alert .promo-kpi-label,
.promo-kpi-card.is-alert .promo-kpi-value {
  color: #ffffff;
}

.promo-kpi-label {
  margin: 0;
  color: #4e5f87;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-kpi-value {
  margin: 8px 0 0;
  color: #16234f;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  font-weight: 800;
}

.promo-kpi-currency {
  font-weight: 400;
}

.promo-alert-banner {
  margin: 10px 0 12px;
  border: 1px solid #a11f35;
  background: #a11f35;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.promo-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-row-actions form {
  margin: 0;
}

.promo-ops-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.promo-ops-wrap .promo-ops-table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: auto;
  background: #ffffff;
  border: 1px solid #dfe6f5;
  border-radius: 12px;
  overflow: hidden;
}

.promo-ops-wrap .promo-ops-table th,
.promo-ops-wrap .promo-ops-table td {
  white-space: normal;
}

.promo-ops-wrap .promo-ops-table td {
  background: #ffffff;
}

.promo-ops-table td.promo-status-cell,
.promo-ops-table td.promo-conditions-cell {
  padding: 0 !important;
  vertical-align: middle;
}

.promo-ops-table .promo-status-fill {
  margin-left: 0 !important;
  width: 100%;
  min-height: 62px;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.promo-ops-table .promo-conditions-fill {
  width: 100%;
  min-height: 62px;
  height: 100%;
  border-radius: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
}

.promo-ops-table .promo-conditions-fill:hover {
  text-decoration: none;
}

.promo-ops-table .promo-conditions-fill svg {
  color: #2a3f79;
}

.promo-ops-table td.promo-actions-cell {
  padding: 0 !important;
  vertical-align: stretch;
}

.promo-actions-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: 62px;
  height: 100%;
}

.promo-actions-split .promo-action-form {
  margin: 0;
  width: 100%;
  height: 100%;
}

.promo-actions-split > .promo-action-btn,
.promo-actions-split .promo-action-form .promo-action-btn {
  width: 100%;
}

.promo-actions-split .promo-action-btn {
  border-radius: 0;
  min-height: 62px;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.promo-actions-split .promo-action-edit {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.promo-actions-split .promo-action-btn:hover {
  text-decoration: none;
}

.promo-actions-split .promo-action-cancel {
  background: #fff2f4;
  border-color: #f4cbd3;
  color: #b4233e;
}

.promo-actions-split .promo-action-cancel:hover {
  background: #ffe7ec;
  border-color: #efb6c1;
  color: #9f1f37;
}

.promo-row-alert td {
  border-top: 2px solid #a11f35 !important;
  border-bottom: 2px solid #a11f35 !important;
}

.promo-row-alert td:first-child {
  border-left: 2px solid #a11f35 !important;
}

.promo-row-alert td:last-child {
  border-right: 2px solid #a11f35 !important;
}

.promo-conditions-modal {
  white-space: pre-wrap;
  color: #1f2b4b;
  font-size: 14px;
  line-height: 1.45;
}

.ws-badge.promo-status-planifiee {
  background: #eef2ff;
  color: #3346a8;
}

.ws-badge.promo-status-en_cours {
  background: #e8f8f0;
  color: #127a50;
}

.ws-badge.promo-status-terminee {
  background: #edf0f7;
  color: #425272;
}

.ws-badge.promo-status-annulee {
  background: #fcecef;
  color: #a12a3e;
}

.promo-planning-meta {
  margin-bottom: 8px;
  font-weight: 700;
  color: #425272;
}

.hotel-table-wrap.promo-planning-wrap {
  margin-top: 0;
  overflow: auto;
  max-height: min(72vh, 860px);
  scrollbar-gutter: stable both-edges;
}

.promo-planning-table th,
.promo-planning-table td {
  min-width: 86px;
}

.promo-planning-table thead th {
  position: sticky;
  top: 0;
  z-index: 30;
}

.promo-planning-table thead th:first-child {
  left: 0;
  z-index: 40;
}

.promo-planning-date {
  min-width: 124px;
  font-weight: 700;
  background: #ffffff;
  position: sticky;
  left: 0;
  z-index: 20;
}

.promo-planning-hotel-short {
  display: inline-block;
  letter-spacing: 0.04em;
}

.promo-planning-cell {
  vertical-align: top;
  padding: 0 !important;
  background: #ffffff;
}

.promo-planning-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  color: #9aa4bc;
}

.promo-plan-stack {
  display: grid;
}

.promo-plan-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 0;
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
}

.promo-plan-chip + .promo-plan-chip {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.promo-plan-chip:hover {
  text-decoration: none;
  filter: brightness(.96);
}

.promo-plan-chip-planifiee {
  background: #eef2ff;
  color: #3346a8;
}

.promo-plan-chip-en_cours {
  background: #e8f8f0;
  color: #127a50;
}

.promo-plan-chip-terminee {
  background: #edf0f7;
  color: #425272;
}

.promo-plan-chip-annulee {
  background: #fcecef;
  color: #a12a3e;
}

.promo-plan-chip-alert {
  color: #d12b2b;
  font-weight: 900;
}

.promo-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-hotel-picker-btn {
  min-width: 200px;
  justify-content: flex-start;
  gap: 6px;
}

.promo-hotel-modal {
  max-width: 560px;
}

.promo-hotel-modal-note {
  margin: 2px 0 10px;
  color: var(--sw-muted);
  font-size: 13px;
}

.promo-hotel-modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-hotel-modal-list {
  max-height: min(52vh, 420px);
  overflow: auto;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  padding: 8px;
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.promo-hotel-check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e9f6;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  color: #1f2b4b;
}

.promo-hotel-check input {
  width: 16px;
  height: 16px;
}

.promo-hotel-modal-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.postit-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.postit-tools input,
.postit-tools select {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--sw-border);
  background: #ffffff;
  padding: 0 10px;
  font-size: 14px;
}

.postit-form {
  display: grid;
  gap: 12px;
}

.postit-canvas-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.postit-filter-bar {
  justify-content: flex-start;
  width: calc(100% + 48px);
  margin: -22px -24px 20px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #c3cddd;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

.postit-filter-tools {
  gap: 12px;
}

.postit-filter-tools input {
  flex: 1 1 360px;
  min-width: 220px;
  background: #f6f8fc;
  border-color: #bcc7da;
}

.postit-filter-tools select {
  flex: 0 0 180px;
  background: #f6f8fc;
  border-color: #bcc7da;
}

.promo-filter-topbar {
  margin: 0 -24px 20px;
}

.promo-filter-tools {
  width: auto;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.promo-filter-tools input,
.promo-filter-tools select {
  flex: 0 0 auto;
  min-width: 0;
}

.promo-filter-topbar .promo-filter-tools {
  flex-wrap: wrap;
  align-items: center;
}

.promo-filter-topbar .promo-filter-tools > * {
  max-width: 100%;
}

.promo-filter-topbar .promo-filter-tools select {
  flex: 1 1 145px;
  min-width: 145px;
}

.promo-filter-topbar .promo-filter-tools input[type="date"] {
  flex: 1 1 135px;
  min-width: 135px;
}

.promo-filter-topbar .promo-filter-tools input[type="search"] {
  flex: 999 1 220px;
  min-width: 160px;
}

.promo-filter-topbar .promo-icon-btn {
  min-width: 44px;
  padding-left: 10px;
  padding-right: 10px;
}

.promo-filter-topbar .promo-view-btn {
  gap: 0;
}

.promo-filter-topbar .promo-hotel-picker-btn {
  min-width: 180px;
}

.promo-page-content {
  padding-top: 0;
}

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

.postit-card {
  position: relative;
  min-height: 220px;
  background: linear-gradient(180deg, #fff7bf 0%, #ffefa2 100%);
  border: 1px solid #f0df87;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 16px 20px rgba(106, 97, 37, 0.13);
  display: flex;
  flex-direction: column;
}

.postit-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 26px 26px;
  border-color: transparent transparent #e3d37a transparent;
  filter: drop-shadow(-1px -1px 0 rgba(118, 103, 40, 0.22));
}

.postit-card h3 {
  margin: 0 34px 8px 0;
  font-size: 18px;
  line-height: 1.25;
  color: #4a3f10;
}

.postit-card p {
  margin: 0;
  white-space: pre-wrap;
  color: #594c17;
  line-height: 1.45;
  flex: 1;
}

.postit-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #7a6b2f;
}

.postit-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.postit-action-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.postit-feature-form {
  position: absolute;
  right: 10px;
  top: 8px;
}

.postit-feature-btn {
  border: 0;
  background: transparent;
  color: #8b7b38;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}

.postit-feature-btn.is-featured {
  color: #1f4de6;
}

.change-supports-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 26, 51, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: min(640px, 100%);
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--sw-border);
  box-shadow: 0 20px 44px rgba(24, 33, 66, 0.2);
  padding: 18px;
}

.modal-overlay-full {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow-y: auto;
}

.modal-card-full {
  width: 100%;
  min-height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #526184;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #edf1fb;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-card .postit-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #243156;
}

.modal-card .postit-form input[type="text"],
.modal-card .postit-form input[type="date"],
.modal-card .postit-form select,
.modal-card .postit-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--sw-border);
  background: #ffffff;
  padding: 10px 12px;
  color: #121a33;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
}

.modal-card .postit-form input[type="text"]:focus,
.modal-card .postit-form input[type="date"]:focus,
.modal-card .postit-form select:focus,
.modal-card .postit-form textarea:focus {
  border-color: #2c73ff;
  box-shadow: 0 0 0 4px rgba(44, 115, 255, 0.16);
}

.modal-card .postit-form textarea {
  min-height: 120px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 140;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #ffffff;
  background: #1f2440;
  border: 1px solid #303a67;
  box-shadow: 0 10px 22px rgba(13, 18, 37, 0.34);
  animation: toastIn .2s ease;
}

.toast-success {
  background: #1f2440;
  border-color: #304c9a;
}

.toast-error {
  background: #1f2440;
  border-color: #7d3a4a;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.hotel-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hotel-filter-bar {
  width: calc(100% + 48px);
  margin: -22px -24px 20px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #c3cddd;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

.hotel-tab-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
}

.hotel-filter-actions {
  margin-left: auto;
}

.hotel-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sw-border);
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2f3a5a;
}

.hotel-tab-btn.active {
  border-color: #0f63f8;
  background: #eaf1ff;
  color: #15357f;
}

.hotel-tab-body.hidden {
  display: none;
}

.hotel-tab-body {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

[data-hotels] {
  min-width: 0;
  max-width: 100%;
}

.hotel-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.hotels-table {
  width: max-content;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
}

.hotels-table th,
.hotels-table td {
  border: 1px solid #c7d0e5;
  padding: 8px 12px;
  vertical-align: top;
  white-space: nowrap;
}

.hotels-table thead th {
  background: #1f2440;
  color: #ffffff;
  border-color: #2f3a67;
}

.hotel-sort-btn {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hotel-sort-btn::before {
  content: "\2195";
  font-size: 11px;
  color: #b5c5ff;
}

.hotel-sort-btn[data-sort-direction="asc"]::after {
  content: "A-Z";
  font-size: 10px;
  font-weight: 700;
  color: #b5c5ff;
}

.hotel-sort-btn[data-sort-direction="desc"]::after {
  content: "Z-A";
  font-size: 10px;
  font-weight: 700;
  color: #b5c5ff;
}

.hotel-cell {
  transition: background-color .15s ease;
}

.hotel-cell.is-empty {
  background: #ffe6e6;
}

.hotel-cell.is-filled {
  background: #dff9e2;
}

.hotel-cell [data-hotel-edit] {
  min-height: 22px;
  outline: none;
}

.hotel-cluster-select {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  outline: none;
}

.hotel-id-cell {
  background: #ffffff;
  font-weight: 700;
}

.hotel-name-cell [data-hotel-edit] {
  font-weight: 700;
}

.hotels-empty {
  color: var(--sw-muted);
  text-align: center;
}

.hotel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hotel-delete-btn {
  background: #b4233e;
  border-color: #b4233e;
  color: #ffffff;
}

.hotel-delete-btn:hover {
  background: #8f1b31;
  border-color: #8f1b31;
}

.incident-list {
  display: grid;
  gap: 10px;
}

.incident-item {
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.incident-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto 150px 18px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  min-height: 42px;
}

.incident-summary::-webkit-details-marker {
  display: none;
}

.incident-item[open] .incident-summary {
  border-bottom-color: var(--sw-border);
}

.incident-summary::after {
  content: "\203A";
  font-size: 18px;
  line-height: 1;
  color: #6f7da3;
  justify-self: end;
  transform: rotate(90deg);
  transition: transform .18s ease, color .18s ease;
}

.incident-item[open] .incident-summary::after {
  transform: rotate(270deg);
  color: #304c9a;
}

.incident-id {
  font-weight: 700;
  color: #122146;
}

.incident-owner-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.incident-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 14px;
}

.incident-summary-change {
  grid-template-columns: 56px minmax(240px, 1fr) auto auto 18px;
}

.incident-summary-ticket {
  grid-template-columns: 56px minmax(240px, 1fr) auto auto 150px 18px;
}

.incident-summary-change .incident-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.incident-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c62033;
  flex: 0 0 auto;
}

.incident-dot.is-open {
  background: #c62033;
}

.incident-dot.is-resolved {
  background: #1ea34a;
}

.incident-time {
  justify-self: end;
  color: var(--sw-muted);
  font-size: 12px;
  white-space: nowrap;
}

.change-summary-text {
  display: block;
  width: 100%;
  line-height: 1.35;
}

.change-support-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.change-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 6px;
  overflow-x: auto;
}

.change-meta-line .change-support-badges {
  margin-top: 0;
}

.change-support-badge {
  margin-left: 0;
  background: #e5e7eb;
  color: #374151;
}

.ws-badge.status-definitif {
  margin-left: 0;
  background: #dcfce7;
  color: #166534;
}

.ws-badge.status-temporaire {
  margin-left: 0;
  background: #fef3c7;
  color: #92400e;
}

.change-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.incident-body {
  padding: 12px;
}

.ticket-kpi-card {
  background: #1f2440;
  border-color: #2f3a67;
}

.ticket-kpi-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  flex-wrap: nowrap;
}

.ticket-kpi-line .ws-btn {
  margin-left: auto;
}

.ticket-kpi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ticket-kpi-dot.is-ok {
  background: #00c875;
}

.ticket-kpi-dot.is-alert {
  background: #e2445c;
}

.ticket-open-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ticket-open-section {
  width: 100%;
  max-width: 100%;
}

.changes-recent-section {
  margin-top: 36px !important;
}

.projects-tabs-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

.projects-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--sw-border);
  background: #fff;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}

.projects-tab.active {
  border-color: #0f63f8;
  color: #0f63f8;
}

.projects-tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.project-header-card {
  border: 1px solid var(--sw-border);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.project-header-card h2 {
  margin: 0;
  font-size: 20px;
}

.project-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.project-header-actions form {
  margin: 0;
}

.projects-status-section {
  margin-bottom: 14px;
  max-width: 100%;
  overflow: hidden;
}

.projects-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.projects-status-head h3 {
  margin: 0;
  font-size: 16px;
}

.projects-inline-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.projects-inline-form select {
  min-width: 130px;
  width: 100%;
}

.projects-checklist-wrap {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  padding: 8px;
  margin-top: 6px;
  background: #fff;
}

.projects-checkline {
  margin-bottom: 6px;
}

.projects-checkline:last-child {
  margin-bottom: 0;
}

.projects-checkline label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.projects-checklist-cell {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.projects-checklist-btn {
  font-size: 12px;
  padding: 6px 10px;
  background: #ffffff;
  color: #157a39;
  border-color: #50b36f;
}

.projects-checklist-btn:hover {
  background: #f6fff8;
  color: #0f6a30;
  border-color: #3ea45f;
}

.projects-checklist-count {
  font-size: 13px;
  color: #243156;
  font-weight: 600;
}

.projects-hotel-picker {
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
  background: #fff;
}

.projects-hotel-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.projects-hotel-picker label:last-child {
  margin-bottom: 0;
}

.projects-drag-handle {
  border: 1px solid var(--sw-border);
  background: #fff;
  color: #667085;
  border-radius: 8px;
  width: 30px;
  height: 24px;
  margin-right: 6px;
  cursor: grab;
}

tr.is-dragging {
  opacity: 0.45;
}

.projects-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
}

.projects-table tbody tr {
  background: #ffffff;
}

.projects-table th,
.projects-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.12;
}

.projects-title-text {
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.12;
}

.projects-assignee-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.projects-assignee-cell {
  text-align: center;
}

.projects-assignee-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.priority-urgent-badge {
  background: #fff5d6;
  color: #8a6110;
  border-color: #f6df9a;
}

.projects-actions-cell {
  padding: 0 !important;
  vertical-align: stretch;
  width: 170px;
}

.projects-actions-stack {
  display: grid;
  gap: 8px;
  padding: 8px;
  min-height: 100%;
  justify-items: stretch;
}

.projects-eye-btn {
  width: 46px;
  min-height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
  margin-left: auto;
}

.projects-eye-btn:hover {
  text-decoration: none;
}

.projects-link-btn {
  margin-left: 0;
}

.projects-actions-stack .projects-inline-form {
  margin: 0;
}

.projects-actions-stack .projects-inline-form select {
  min-width: 0;
  width: 100%;
}

.projects-detail-block {
  margin-bottom: 12px;
}

.projects-detail-dates {
  margin: 8px 0 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  font-size: 12px;
  line-height: 1.25;
}

.projects-detail-dates > div {
  background: #f7f9ff;
  border: 1px solid #d9e2f5;
  border-radius: 10px;
  padding: 8px 10px;
}

.projects-detail-dates > div span {
  display: block;
  color: #6d7895;
  margin-bottom: 3px;
}

.projects-detail-dates > div strong {
  display: block;
  color: #1f2a4a;
  font-weight: 700;
}

.projects-checklist-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  max-height: 52vh;
  overflow: auto;
  margin-bottom: 12px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.projects-checklist-modal-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #243156;
}

.projects-checklist-modal-card {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  max-width: none;
  max-height: none;
}

.projects-checklist-modal-form {
  display: flex;
  flex-direction: column;
  height: calc(100% - 56px);
}

.projects-checklist-modal-form .projects-checklist-modal-grid {
  flex: 1 1 auto;
  max-height: none;
}

.projects-checklist-modal-form .modal-actions {
  margin-top: 8px;
}

.projects-board-card {
  border: 1px solid var(--sw-border);
  background: #fff;
  border-radius: 16px;
}

.projects-filter-toolbar {
  align-items: center;
  gap: 14px;
}

.projects-filter-tools {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.projects-filter-tools select[name="tag_id"] {
  flex: 0 1 240px;
  min-width: 180px;
}

.projects-scope-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-right: 4px;
}

.projects-scope-btn,
.projects-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sw-border);
  background: #fff;
  font-weight: 600;
  font-size: 12px;
}

.projects-scope-btn.active,
.projects-page-link.active,
.projects-status-tab.active {
  border-color: #0f63f8;
  color: #0f63f8;
}

.projects-filter-actions,
.projects-manager-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.tags-offcanvas-card {
  margin-left: auto;
  width: min(460px, calc(100vw - 18px));
  max-width: none;
  height: calc(100vh - 18px);
  max-height: none;
  border-radius: 18px 0 0 18px;
}

.tags-offcanvas-body {
  display: grid;
  gap: 14px;
}

.tags-offcanvas-form {
  display: grid;
  gap: 8px;
}

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

.tags-offcanvas-actions form {
  margin: 0;
}

.projects-status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-status-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.projects-status-tab {
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--sw-border);
  background: #fff;
  display: grid;
  gap: 4px;
  color: #23314d;
  position: relative;
  border-bottom: 0;
  opacity: 0.72;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.projects-status-tab:hover {
  opacity: 0.92;
}

.projects-status-count {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.projects-status-label {
  font-size: 13px;
  font-weight: 700;
}

.projects-status-tab:nth-child(1) {
  border-color: #efc5c1;
  background: #fff4f2;
  color: #b42318;
}

.projects-status-tab:nth-child(1) .projects-status-count,
.projects-status-tab:nth-child(1) .projects-status-label {
  color: #d92d20;
}

.projects-status-tab:nth-child(2) {
  border-color: #bfd4ff;
  background: #eef4ff;
  color: #175cd3;
}

.projects-status-tab:nth-child(2) .projects-status-count,
.projects-status-tab:nth-child(2) .projects-status-label {
  color: #175cd3;
}

.projects-status-tab:nth-child(3) {
  border-color: #b7e2c0;
  background: #ecfdf3;
  color: #027a48;
}

.projects-status-tab:nth-child(3) .projects-status-count,
.projects-status-tab:nth-child(3) .projects-status-label {
  color: #039855;
}

.projects-status-tab.active {
  margin-bottom: -1px;
  z-index: 3;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08), 0 1px 0 #fff;
  border-width: 2px;
}

.projects-status-tab.active::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 3px;
  background: #fff;
}

.projects-board-card {
  padding: 8px 10px 10px;
  border-top-left-radius: 0;
}

.projects-board-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.projects-board-head-meta {
  display: flex;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.projects-board-table {
  width: 100%;
  min-width: 980px;
}

.projects-board-table tbody tr {
  background: #fff;
}

.projects-board-table th,
.projects-board-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.projects-board-table th:nth-child(1),
.projects-board-table td:nth-child(1) {
  width: 92px;
}

.projects-board-table th:nth-child(3),
.projects-board-table td:nth-child(3) {
  width: 72px;
}

.projects-board-table th:nth-child(4),
.projects-board-table td:nth-child(4) {
  width: 160px;
}

.projects-board-table th:nth-child(5),
.projects-board-table td:nth-child(5) {
  width: 110px;
}

.projects-board-table th:nth-child(6),
.projects-board-table td:nth-child(6) {
  width: 110px;
}

.projects-order-cell,
.projects-assignee-line,
.projects-row-subline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-order-cell {
  justify-content: flex-start;
}

.projects-row-title {
  display: grid;
  gap: 8px;
}

.projects-row-subline {
  flex-wrap: wrap;
}

.projects-task-key {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.projects-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--project-color) 12%, white);
  color: #1f2937;
  border: 1px solid color-mix(in srgb, var(--project-color) 28%, white);
  font-size: 12px;
  font-weight: 700;
}

.projects-project-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--project-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.projects-assignee-line {
  justify-content: flex-start;
}

.projects-assignee-cell {
  text-align: center;
  width: 64px;
  max-width: 64px;
}

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

.projects-inline-form select {
  min-width: 120px;
  max-width: 120px;
  padding: 6px 26px 6px 8px;
  font-size: 12px;
  line-height: 1.1;
}

.projects-checklist-count {
  font-size: 13px;
}

.projects-actions-cell {
  width: 112px;
}

.projects-actions-stack {
  gap: 6px;
  padding: 6px 4px;
}

.projects-row-title {
  gap: 1px;
}

.projects-row-subline {
  gap: 5px;
  line-height: 0.95;
  margin-top: -8px;
}

.projects-task-key {
  font-size: 11px;
}

.projects-project-chip {
  gap: 6px;
  padding: 2px 7px;
  font-size: 11px;
}

.projects-project-chip-dot {
  width: 7px;
  height: 7px;
}

.projects-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 8px;
}

.projects-page-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .projects-checklist-modal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .projects-filter-toolbar,
  .projects-board-head {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-filter-tools,
  .projects-filter-actions {
    width: 100%;
  }

  .projects-filter-actions {
    margin-left: 0;
  }

  .projects-status-tab {
    min-width: 140px;
  }

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

.ticket-open-sep {
  border: 0;
  border-top: 1px solid var(--sw-border);
  margin: 10px 0 12px;
}

.ticket-open-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  background: #ffffff;
}

.ticket-open-table th,
.ticket-open-table td {
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  background: #ffffff;
}

.ticket-user-head,
.ticket-owner-cell {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

.ticket-owner-cell {
  min-width: 56px;
  max-width: 72px;
  padding: 6px;
}

.ticket-owner-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--owner-bg, #6b7280);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-owner-badge-unified {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
}

.ticket-link-head,
.ticket-link-cell {
  width: 1%;
  white-space: nowrap;
}

.ticket-link-cell {
  min-width: 149px;
  max-width: 168px;
  text-align: left;
  padding: 0;
}

.ticket-link-btn {
  display: flex;
  width: 100%;
  min-height: 62px;
  height: 100%;
  border-radius: 0;
  border: 0;
}

.incident-export-btn {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.incident-search-form {
  margin-left: auto;
}

.incident-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.change-toolbar {
  width: 100%;
}

.change-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-left: 0;
}

.change-filter-bar input[type="search"] {
  margin-left: auto;
  min-width: 220px;
  flex: 1 1 260px;
  max-width: 420px;
}

.incident-pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.incident-page-info {
  color: var(--sw-muted);
  font-size: 13px;
}

.ws-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

@keyframes pulseOrb {
  0% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: .6; }
}

@keyframes floatDot {
  0% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
  100% { transform: translateY(0); }
}

@keyframes slideBoard {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .auth-visual {
    min-height: 320px;
    padding: 20px;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .auth-board {
    width: min(580px, 92%);
  }

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

  .dashboard-summary-card {
    grid-column: span 1;
  }

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

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

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

  .dashboard-summary-card.dashboard-op-single {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .ws-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ws-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--sw-border);
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .ws-topbar {
    padding: 0 14px;
    height: auto;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .ws-top-title {
    width: 100%;
    justify-content: space-between;
  }

  .ws-content {
    padding: 14px;
  }

  .reporting-agents-grid {
    grid-template-columns: 1fr;
  }

  .ws-board {
    overflow-x: auto;
  }

  .ws-board-header,
  .ws-row {
    min-width: 640px;
  }

  .ws-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .postit-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .postit-canvas-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hotel-tabs {
    flex-wrap: wrap;
  }

  .hotel-tab-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .postit-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .promo-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-card.dashboard-op-single {
    grid-column: span 1;
  }

  .incident-summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .incident-time {
    justify-self: start;
  }

  .incident-search-form {
    margin-left: 0;
    width: 100%;
  }

  .incident-toolbar {
    flex-wrap: wrap;
  }

  .change-edit-grid {
    grid-template-columns: 1fr;
  }

  .incident-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.newsletter-summary-grid {
  margin-top: 0;
}

.newsletter-page-content {
  padding-top: 0;
}

.newsletter-filter-toolbar {
  margin-top: 0;
}

.newsletter-summary-card {
  grid-column: span 3;
}

.newsletter-summary-card-main {
  grid-column: span 2;
}

.newsletter-summary-card-todo {
  grid-column: span 1;
}

.newsletter-todo-brand {
  margin: 2px 0 10px;
}

.newsletter-todo-brand-icon {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.newsletter-todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.newsletter-brevo-btn {
  background: #0b996f;
  border-color: #0b996f;
  color: #ffffff;
  text-decoration: none;
}

.newsletter-brevo-btn:hover {
  background: #0a8763;
  border-color: #0a8763;
  color: #ffffff;
}

.newsletter-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.newsletter-card {
  border: 1px solid #dde3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 24px rgba(14, 33, 74, 0.08);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.newsletter-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111f44;
}

.newsletter-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 14px;
  color: #42527a;
}

.newsletter-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9ea0a5;
  line-height: 1;
}

.newsletter-meta-item.is-error {
  border-color: #f7ccd5;
  background: #fff4f6;
  color: #b4233e;
  font-weight: 700;
}

.newsletter-trend {
  display: inline-block;
  margin-left: 5px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  vertical-align: baseline;
}

.newsletter-trend.is-up {
  color: #0a9b3f;
}

.newsletter-trend.is-down {
  color: #c81e3a;
}

.newsletter-trend.is-equal {
  color: #7b879f;
}

.newsletter-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 0;
}

.newsletter-status-dot.is-scheduled {
  background: #2d7ff9;
}

.newsletter-status-dot.is-mapped {
  background: #00a86b;
}

.newsletter-status-dot.is-unmapped {
  background: #f59e0b;
}

.newsletter-status-dot.is-neutral {
  background: #7b879f;
}

.newsletter-card-actions {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-card-actions form {
  margin: 0;
  display: inline-flex;
}

.newsletter-sync-btn {
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-sync-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.newsletter-sync-icon-brevo {
  width: 25px;
  height: 11px;
}

.newsletter-sync-icon-ga4 {
  width: 12px;
  height: 12px;
}

.newsletter-sync-icon-excel {
  width: 14px;
  height: 14px;
}

.newsletter-sync-icon-json {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.change-export-btn {
  width: auto;
  gap: 8px;
}

.incidents-filter-tools input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 300px;
}

.ga4-row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ga4-row-icon {
  width: 11px;
  height: 11px;
  display: inline-block;
  flex: 0 0 auto;
}

.newsletter-card-stats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.newsletter-metric {
  border: 1px solid #e3e8f3;
  border-radius: 12px;
  background: #ffffff;
  padding: 7px 9px;
}

.newsletter-metric-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4f5f87;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.metric-label-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.brevo-label-icon {
  width: 25px;
  height: 11px;
}

.ga4-label-icon {
  width: 11px;
  height: 11px;
}

.newsletter-metric-value {
  margin: 6px 0 2px;
  font-size: 16px;
  line-height: 1.05;
  color: #16234f;
  font-weight: 800;
}

.newsletter-metric-rate {
  margin: 0;
  font-size: 11px;
  color: #42527a;
  font-weight: 700;
}

@media (max-width: 1450px) {
  .newsletter-metric {
    padding: 6px 8px;
  }

  .newsletter-metric-value {
    font-size: 15px;
  }
}

@media (max-width: 1180px) {
  .newsletter-card-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .newsletter-summary-card,
  .newsletter-summary-card-main,
  .newsletter-summary-card-todo {
    grid-column: span 1;
  }

  .newsletter-card-title {
    font-size: 18px;
  }

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

  .newsletter-card-meta {
    font-size: 13px;
    gap: 6px 8px;
  }

  .newsletter-meta-item {
    padding: 3px 7px;
  }

  .newsletter-todo-brand-icon {
    width: 100%;
    height: auto;
  }
}
