.fdc-viewport {
  padding-left: 12px;
  padding-right: 12px;
}

.fdc-viewport > .fdc-shell {
  width: calc(100vw - 24px);
  max-width: none;
}

.fdc-toast {
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(520px, calc(100vw - 44px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  margin: 0;
  transform: translate(-50%, -50%);
  padding: 17px 15px 19px 18px;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(18, 38, 49, .24);
  overflow: hidden;
  animation: fdc-toast-in .24s ease-out;
  transition: opacity .25s ease, transform .25s ease;
}

.fdc-toast > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.fdc-toast > i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: currentColor;
  opacity: .42;
  transform-origin: left;
  animation: fdc-toast-timer 15s linear forwards;
}

.fdc-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 12px));
}

.fdc-toast.fdc-error {
  border: 2px solid #7c111b;
  border-left: 8px solid #680b13;
  background: #b4232f;
  color: #fff;
}

.fdc-toast.fdc-error > button {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.fdc-validation-popup {
  position: fixed;
  z-index: 100001;
  top: 50%;
  left: 50%;
  width: min(590px, calc(100vw - 36px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 3px solid #710d16;
  border-radius: 14px;
  background: #b4232f;
  color: #fff;
  box-shadow: 0 20px 64px rgba(75, 9, 15, .42);
  opacity: 0;
  transform: translate(-50%, calc(-50% - 12px)) scale(.97);
  transition: opacity .2s ease, transform .2s ease;
}

.fdc-validation-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fdc-validation-popup-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.fdc-validation-popup strong,
.fdc-validation-popup span {
  display: block;
}

.fdc-validation-popup strong {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.fdc-validation-popup button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.fdc-field-invalid {
  border-color: #c31324 !important;
  background: #fff0f1 !important;
  box-shadow: 0 0 0 3px rgba(195, 19, 36, .25) !important;
}

@keyframes fdc-toast-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 12px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fdc-toast-timer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.fdc-registration-number {
  max-width: 340px;
}

.fdc-registration-number input {
  border-color: #79a9c2;
  background: #edf6fa;
  color: #174f73;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.fdc-vat-box {
  margin: 8px 0 4px;
  padding: 18px;
  border: 2px solid #2f83b5;
  border-radius: 12px;
  background: #eef7fb;
}

.fdc-vat-box legend {
  padding: 0 9px;
  color: #174f73;
  font-size: 1.18rem;
  font-weight: 800;
}

.fdc-vat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 13px;
}

.fdc-vat-grid label {
  padding: 12px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(25, 72, 97, .08);
}

.fdc-vat-grid input,
.fdc-vat-grid select {
  border-width: 2px;
  border-color: #82aec4;
  font-size: 1.08rem;
  font-weight: 800;
}

.fdc-vat-grid input[readonly] {
  background: #d9ebf3;
  color: #174f73;
}

.fdc-vat-help {
  margin: 12px 0 0;
  color: #315365;
  font-size: .88rem;
}

.fdc-document-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.fdc-document-sources > label,
.fdc-document-sources > .fdc-scan-source {
  align-content: start;
  padding: 13px;
  border: 1px solid #c4d5de;
  border-radius: 9px;
  background: #fff;
}

.fdc-scan-source label{display:grid;gap:6px;font-weight:700;color:#334d5c}
.fdc-scan-refresh{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px}
.fdc-scan-refresh small{flex:1;min-width:180px;color:#687d88}
.fdc-scan-refresh small.is-success{color:#17652b;font-weight:700}
.fdc-scan-refresh small.is-error{color:#a62c32;font-weight:700}
.fdc-scan-refresh .fdc-button:disabled{cursor:wait;opacity:.65}

.fdc-vat-check {
  margin: 13px 0 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: #fff2cf;
  color: #714800;
  font-weight: 700;
}

.fdc-vat-check.is-ok {
  background: #dff2e4;
  color: #185d2b;
}

.fdc-vat-check.is-error {
  background: #f8dfe1;
  color: #852a31;
}

.fdc-purchases-table {
  min-width: 1720px;
}

.fdc-purchases-table th:nth-child(n+7),
.fdc-purchases-table td:nth-child(n+7) {
  white-space: nowrap;
}

.fdc-purchases-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #e5f0f5;
}

.fdc-purchases-footer > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #315365;
}

.fdc-purchases-footer strong {
  color: #174f73;
  font-size: 1.5rem;
}

.fdc-document-preview {
  position: relative;
  min-height: 420px;
  margin: 0 0 15px;
  border: 1px solid #cbd8df;
  border-radius: 10px;
  background: #f4f7f9;
  overflow: hidden;
}

.fdc-document-preview iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: #fff;
}

.fdc-document-preview img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #29363d;
}

.fdc-preview-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  box-sizing: border-box;
  color: #647984;
  text-align: center;
}

.fdc-preview-empty strong {
  color: #294c5e;
  font-size: 1.05rem;
}

.fdc-preview-caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 11px;
  border-radius: 7px;
  background: rgba(18,38,49,.82);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdc-dashboard-totals article {
  border-left-width: 7px;
}

.fdc-dashboard-row-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.fdc-dashboard-totals .fdc-kpi-sales {
  border-left-color: #2879a8;
}

.fdc-dashboard-totals .fdc-kpi-purchases {
  border-left-color: #b45f32;
}

.fdc-dashboard-totals .fdc-kpi-bank {
  border-left-color: #7a5ca7;
}

.fdc-dashboard-totals .fdc-kpi-expenses {
  border-left-color: #2c8a61;
}

.fdc-dashboard-totals small,
.fdc-dashboard-secondary small {
  display: block;
  margin-top: 6px;
  color: #687b86;
  line-height: 1.35;
}

.fdc-dashboard-secondary article {
  background: #f8fafb;
}

.fdc-dashboard-row .fdc-kpi-result {
  border-left-width: 7px;
}

.fdc-dashboard-row .fdc-kpi-result.is-positive {
  border-left-color: #238548;
  background: #e4f5e9;
}

.fdc-dashboard-row .fdc-kpi-result.is-positive strong {
  color: #176235;
}

.fdc-dashboard-row .fdc-kpi-result.is-negative {
  border-left-color: #bd3138;
  background: #f9e3e4;
}

.fdc-dashboard-row .fdc-kpi-result.is-negative strong {
  color: #92252b;
}

.fdc-dashboard-row .fdc-kpi-result.is-zero {
  border-left-color: #788a93;
  background: #edf1f3;
}

.fdc-dashboard-breakdown {
  margin-bottom: 18px;
}

.fdc-dashboard-breakdown .fdc-card-title p {
  margin: 5px 0 0;
  color: #60727d;
}

.fdc-dashboard-category-table {
  min-width: 720px;
}

.fdc-dashboard-category-table th:nth-child(1),
.fdc-dashboard-category-table td:nth-child(1) {
  width: 150px;
}

.fdc-dashboard-category-table th:nth-child(3),
.fdc-dashboard-category-table td:nth-child(3) {
  width: 100px;
  text-align: center;
}

.fdc-dashboard-category-table th:nth-child(4),
.fdc-dashboard-category-table td:nth-child(4) {
  width: 180px;
  text-align: right;
}

.fdc-dashboard-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #edf4f7;
  color: #425b68;
  font-size: .9rem;
}

.fdc-upload-box {
  border: 1px solid #c9d6dd;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafb;
}

.fdc-upload-box legend {
  padding: 0 7px;
  font-weight: 800;
  color: #294c5e;
}

.fdc-year-shell {
  max-width: 920px;
}

.fdc-year-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fdc-year-list form {
  margin: 0;
}

.fdc-year-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #d6e1e6;
  border-radius: 10px;
  background: #fff;
  color: #1f4052;
  padding: 17px;
  cursor: pointer;
}

.fdc-year-button:hover,
.fdc-year-button.is-active {
  border-color: #1f668f;
  background: #eef7fb;
}

.fdc-year-button strong {
  font-size: 1.35rem;
}

.fdc-year-button span {
  font-size: .82rem;
}

.fdc-sales-table {
  width: 100%;
  min-width: 2340px;
  font-size: .88rem;
}

.fdc-sales-table th,
.fdc-sales-table td {
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}

.fdc-warning-cell {
  background: #fff0cf;
  color: #724000;
  font-weight: 800;
}

.fdc-sales-refund {
  color: #8a2730;
}

.fdc-sales-position {
  font-weight: 800;
}

.fdc-sales-position.is-zero,
.fdc-sales-balance-legend .is-zero {
  background: #dff3e4;
  color: #176137;
}

.fdc-sales-position.is-receivable,
.fdc-sales-balance-legend .is-receivable {
  background: #ffe2b8;
  color: #7a4300;
}

.fdc-sales-position.is-refundable,
.fdc-sales-balance-legend .is-refundable {
  background: #dceeff;
  color: #15547c;
}

.fdc-sales-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.fdc-manual-cell {
  background: #fff5d9;
  font-weight: 800;
}

.fdc-manual-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0bf;
  color: #744700;
  font-size: .72rem;
  font-weight: 800;
}

.fdc-sale-auto-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.fdc-sale-auto-values div,
.fdc-sale-preview {
  padding: 13px;
  border-radius: 10px;
  background: #edf4f7;
}

.fdc-sale-auto-values span {
  display: block;
  margin-bottom: 5px;
  color: #566b78;
  font-size: .82rem;
}

.fdc-sale-auto-values strong {
  color: #174f73;
  font-size: 1.05rem;
}

.fdc-sale-preview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.fdc-reset-correction {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dbe4e9;
  text-align: right;
}

.fdc-supplier-card {
  width: 100%;
}

.fdc-supplier-toolbar {
  align-items: flex-start;
}

.fdc-supplier-toolbar .fdc-filter {
  margin-bottom: 0;
}

.fdc-supplier-table {
  width: 100%;
  min-width: 1220px;
}

.fdc-supplier-table th,
.fdc-supplier-table td {
  white-space: nowrap;
}

.fdc-supplier-number,
.fdc-nowrap,
.fdc-sales-invoice,
.fdc-sales-client {
  white-space: nowrap;
}

.fdc-supplier-number {
  min-width: 68px;
}

.fdc-supplier-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.fdc-supplier-actions form {
  flex: 0 0 auto;
}

.fdc-modal {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  padding: 24px;
  color: #1d2a32;
  background: #fff;
  box-shadow: 0 24px 70px rgba(14, 34, 45, .32);
}

.fdc-modal::backdrop {
  background: rgba(17, 36, 47, .62);
  backdrop-filter: blur(2px);
}

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

.fdc-modal-head h3 {
  margin: 0;
  color: #174f73;
  font-size: 26px;
}

.fdc-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #edf2f5;
  color: #294c5e;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fdc-modal-actions {
  justify-content: flex-end;
  margin-top: 5px;
}

.fdc-sales-invoice {
  min-width: 92px;
}

.fdc-sales-client {
  min-width: 220px;
}

.fdc-sales-filter{align-items:flex-end}
.fdc-sales-filter .fdc-sales-client-filter{min-width:min(360px,100%)}
.fdc-sales-balance-legend{display:flex;align-items:center;gap:6px;margin-left:auto;padding-bottom:2px}
.fdc-sales-balance-legend span{display:inline-flex;align-items:center;min-height:32px;padding:4px 9px;border-radius:7px;font-size:.78rem;font-weight:800}

.fdc-receivables-card {
  margin-bottom: 18px;
  border-top: 4px solid #d78a12;
}

.fdc-reminder-settings {
  margin-bottom: 18px;
  border-left: 4px solid #2f83b5;
}

.fdc-reminder-settings > summary {
  cursor: pointer;
  color: #174f73;
  font-size: 1.15rem;
  font-weight: 800;
}

.fdc-reminder-settings[open] > summary {
  margin-bottom: 18px;
}

.fdc-reminder-charges {
  margin: 0;
  padding: 16px;
  border: 1px solid #c8d7df;
  border-radius: 10px;
}

.fdc-reminder-charges legend {
  padding: 0 7px;
  color: #174f73;
  font-weight: 800;
}

.fdc-reminder-caution {
  margin: 0;
  border-left-color: #d78a12;
  background: #fff7df;
}

.fdc-sale-email-modal {
  width: min(680px, calc(100vw - 32px));
}

.fdc-reminder-modal {
  width: min(1500px, calc(100vw - 32px));
}

.fdc-reminder-workspace {
  display: grid;
  grid-template-columns: minmax(460px, .85fr) minmax(520px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.fdc-reminder-editor {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.fdc-save-reminder-template {
  padding: 12px 14px;
  border: 1px solid #b8cfdb;
  border-radius: 9px;
  background: #f0f7fa;
  font-weight: 700;
}

.fdc-reminder-preview-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c6d4dc;
  border-radius: 12px;
  background: #eaf1f5;
}

.fdc-reminder-preview-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 11px 14px;
  border-bottom: 1px solid #c6d4dc;
  background: #fff;
  color: #526c7a;
  font-size: .8rem;
}

.fdc-reminder-preview-heading > strong {
  color: #174f73;
  font-size: .95rem;
}

.fdc-mail-preview {
  width: calc(100% - 28px);
  max-width: 720px;
  margin: 14px auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 7px 22px rgba(21,52,68,.13);
  color: #171d21;
  font-family: Arial, Helvetica, sans-serif;
}

.fdc-mail-preview-logo {
  padding: 18px;
  text-align: center;
}

.fdc-mail-preview-logo img {
  width: 120px;
  max-width: 35%;
  height: auto;
}

.fdc-mail-preview-banner {
  padding: 20px 24px;
  background: #29466f;
  color: #fff;
  text-align: center;
  font-size: clamp(1.25rem,2vw,1.8rem);
  font-weight: 800;
}

.fdc-mail-preview-body {
  padding: 25px 28px;
  font-size: .93rem;
  line-height: 1.55;
}

.fdc-mail-preview-copy {
  white-space: pre-line;
}

.fdc-mail-preview-amounts {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 6px solid #2f83b5;
  background: #eef6fa;
}

.fdc-mail-preview-amounts > strong {
  display: block;
  margin-bottom: 9px;
  color: #174f73;
}

.fdc-mail-preview-amounts dl {
  margin: 0;
}

.fdc-mail-preview-amounts dl > div {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  padding: 3px 0;
}

.fdc-mail-preview-amounts dt,
.fdc-mail-preview-amounts dd {
  margin: 0;
}

.fdc-mail-preview-amounts dd {
  font-weight: 800;
  white-space: nowrap;
}

.fdc-mail-preview-amounts .is-total {
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid #bdd2de;
  color: #174f73;
  font-weight: 800;
}

.fdc-mail-preview-footer {
  padding: 17px 20px;
  border-top: 1px solid #dce5eb;
  background: #f4f7fa;
  color: #536778;
  text-align: center;
  font-size: .75rem;
  line-height: 1.5;
}

.fdc-mail-preview-footer strong {
  color: #176196;
}

.fdc-reminder-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.fdc-reminder-amounts > div,
.fdc-reminder-amounts > label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 74px;
  margin: 0;
  padding: 12px;
  border: 1px solid #c8d7df;
  border-radius: 9px;
  background: #f6f9fb;
}

.fdc-reminder-amounts span {
  color: #526c7a;
  font-size: .8rem;
}

.fdc-reminder-total {
  border-color: #2f83b5 !important;
  background: #e7f3f9 !important;
}

.fdc-reminder-total strong {
  color: #174f73;
  font-size: 1.2rem;
}

.fdc-annual-sync-card {
  margin-bottom: 18px;
  border-left: 4px solid #d78a12;
}

.fdc-annual-sync-card.is-current {
  border-left-color: #2a9255;
}

.fdc-annual-sync-table td:last-child,
.fdc-annual-sync-table th:last-child {
  font-weight: 800;
}

.fdc-annual-difference {
  color: #a94b00;
}

.fdc-annual-reconciliation {
  margin-bottom: 18px;
  border-left: 4px solid #2f83b5;
}

.fdc-annual-reconciliation-table {
  min-width: 760px;
}

.fdc-annual-reconciliation-table th:last-child,
.fdc-annual-reconciliation-table td:last-child {
  width: 190px;
  text-align: right;
  white-space: nowrap;
}

.fdc-annual-reconciliation-table .fdc-annual-result-row td {
  border-top: 2px solid #b9cbd5;
}

.fdc-annual-reconciliation-table .fdc-annual-result-row.is-positive td {
  color: #176235;
  background: #e4f5e9;
}

.fdc-annual-reconciliation-table .fdc-annual-result-row.is-negative td {
  color: #92252b;
  background: #f9e3e4;
}

.fdc-annual-reconciliation-table .fdc-annual-result-row.is-zero td {
  color: #526c7a;
  background: #edf1f3;
}

.fdc-annual-cash-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.fdc-annual-cash-summary > div {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #cbd9e2;
  border-radius: 8px;
  background: #f8fbfd;
}

.fdc-annual-cash-summary span {
  color: #526c7a;
  font-size: .82rem;
}

.fdc-annual-cash-summary strong {
  color: #174f73;
  font-size: 1.15rem;
}

.fdc-annual-cash-summary .is-positive {
  border-color: #78bd8d;
  background: #e4f5e9;
}

.fdc-annual-cash-summary .is-positive strong {
  color: #176235;
}

.fdc-annual-cash-summary .is-negative {
  border-color: #dd969a;
  background: #f9e3e4;
}

.fdc-annual-cash-summary .is-negative strong {
  color: #92252b;
}

.fdc-annual-cash-summary .is-difference {
  border-color: #e2bd72;
  background: #fff5db;
}

.fdc-annual-cash-summary .is-difference strong {
  color: #855400;
}

@media(max-width:800px) {
  .fdc-annual-cash-summary {
    grid-template-columns: 1fr;
  }
}

.fdc-analytics-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.fdc-chart-card {
  min-width: 0;
  overflow: hidden;
  color: #f5fbfc;
  background: linear-gradient(145deg,#0f4c57,#123b47);
}

.fdc-chart-events,
.fdc-chart-event-revenues {
  grid-column: 1 / -1;
  background: linear-gradient(145deg,#193f57,#173b43);
}

.fdc-chart-events .fdc-chart-layout,
.fdc-chart-event-revenues .fdc-chart-layout {
  grid-template-columns: minmax(300px,.7fr) minmax(420px,1.3fr);
}

.fdc-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.fdc-chart-heading h3,
.fdc-chart-heading p {
  color: #fff;
}

.fdc-chart-heading strong {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 1.15rem;
}

.fdc-chart-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, .9fr);
  gap: 24px;
  align-items: center;
}

.fdc-donut {
  display: grid;
  place-items: center;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
}

.fdc-donut::before {
  content: '';
  grid-area: 1/1;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #123f4a;
  box-shadow: 0 0 0 3px rgba(255,255,255,.75);
}

.fdc-donut > div {
  z-index: 1;
  grid-area: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.fdc-donut span {
  color: #bed4da;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fdc-donut strong {
  color: #fff;
  font-size: clamp(1rem,1.7vw,1.45rem);
}

.fdc-chart-legend {
  display: grid;
  gap: 9px;
  max-height: 440px;
  overflow: auto;
  padding-right: 5px;
}

.fdc-chart-legend-row {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 9px;
  align-items: start;
}

.fdc-chart-legend-row i {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border: 1px solid #fff;
  border-radius: 2px;
}

.fdc-chart-legend-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fdc-chart-legend-row strong {
  color: #fff;
  font-size: .83rem;
}

.fdc-chart-legend-row span {
  color: #bfd4da;
  font-size: .78rem;
}

.fdc-chart-bars {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.fdc-chart-bar-row {
  display: grid;
  grid-template-columns: minmax(120px,180px) 1fr 95px;
  gap: 9px;
  align-items: center;
  font-size: .76rem;
}

.fdc-chart-bar-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.13);
}

.fdc-chart-bar-row i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.fdc-chart-bar-row strong {
  text-align: right;
  white-space: nowrap;
}

.fdc-chart-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #6d3600;
  background: #fff1c7;
}

.fdc-receivables-table {
  min-width: 1180px;
}

.fdc-receivables-table td:nth-last-child(-n+4) {
  white-space: normal;
}

.fdc-receivables-table .fdc-actions {
  min-width: 310px;
}

@media (max-width: 760px) {
  .fdc-reminder-amounts {
    grid-template-columns: 1fr 1fr;
  }

  .fdc-analytics-kpis,
  .fdc-analytics-grid,
  .fdc-chart-layout,
  .fdc-chart-events .fdc-chart-layout,
  .fdc-chart-event-revenues .fdc-chart-layout {
    grid-template-columns: 1fr;
  }

  .fdc-chart-bar-row {
    grid-template-columns: 110px 1fr 85px;
  }
}

@media (max-width: 1280px) {
  .fdc-dashboard-row-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fdc-reminder-workspace {
    grid-template-columns: 1fr;
  }

  .fdc-analytics-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .fdc-analytics-kpis {
    grid-template-columns: 1fr;
  }

  .fdc-dashboard-row-5,
  .fdc-dashboard-row-3,
  .fdc-dashboard-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .fdc-dashboard-row-5,
  .fdc-dashboard-row-3,
  .fdc-dashboard-row-2 {
    grid-template-columns: 1fr;
  }
}

.fdc-row-overdue {
  background: #fff8f0;
}

.fdc-row-overdue:hover {
  background: #fff1df !important;
}

.fdc-overdue-label,
.fdc-missing {
  color: #a62c32;
  font-weight: 800;
}

.fdc-receivable-kpis article:nth-child(1) { border-left-color: #d78a12; }
.fdc-receivable-kpis article:nth-child(2) { border-left-color: #a62c32; }
.fdc-receivable-kpis article:nth-child(3) { border-left-color: #7751a8; }
.fdc-receivable-kpis article:nth-child(4) { border-left-color: #17652b; }

.fdc-purchase-summary-table {
  min-width: 900px;
}

.fdc-validated-edit {
  margin-top: 20px;
  border-top: 1px solid #dbe4e9;
  padding-top: 16px;
}

.fdc-validated-edit > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 10px 14px;
  background: #e4ebef;
  color: #1f4052;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.fdc-validated-edit > summary::-webkit-details-marker {
  display: none;
}

.fdc-validated-edit[open] > summary {
  margin-bottom: 12px;
  background: #d7e5ec;
}

.fdc-validated-lines {
  display: grid;
  gap: 10px;
}

.fdc-validated-line {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(320px, 1.6fr) 170px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe4e9;
  border-radius: 9px;
  background: #f8fafb;
}

.fdc-locked-amount {
  display: grid;
  gap: 7px;
  min-height: 66px;
  align-content: center;
  padding: 0 10px;
  border-left: 3px solid #9fb7c4;
}

.fdc-locked-amount span {
  color: #687d88;
  font-size: .78rem;
}

.fdc-locked-amount strong {
  color: #174f73;
}

.fdc-grid-bank-import,
.fdc-grid-bank-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.fdc-bank-kpis article:nth-child(2) {
  border-left-color: #a62c32;
}

.fdc-bank-kpis article:nth-child(3) {
  border-left-color: #d48a13;
}

.fdc-bank-kpis article:nth-child(4) {
  border-left-color: #17652b;
}

.fdc-bank-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fdc-bank-kpis article:nth-child(5) {
  border-left-color: #2f83b5;
}

.fdc-bank-current-balance {
  background: #e9f6ed !important;
}

.fdc-bank-balance-card {
  margin-bottom: 18px;
  border: 2px solid #6fa6c3;
}

.fdc-fields-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
}

.fdc-bank-balance-fields input {
  border-width: 2px;
  border-color: #82aec4;
  font-size: 1.05rem;
  font-weight: 750;
}

.fdc-bank-reconciliation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  border-radius: 9px;
  font-size: .92rem;
}

.fdc-bank-reconciliation.is-ok {
  background: #dff2e4;
  color: #185d2b;
}

.fdc-bank-reconciliation.is-error {
  background: #f8dfe1;
  color: #852a31;
}

.fdc-bank-list-card,
.fdc-bank-allocations {
  margin-top: 18px;
}

.fdc-bank-movement-group {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d4e0e6;
  border-left: 6px solid #a62c32;
  border-radius: 10px;
  background: #fff;
}

.fdc-bank-movement-group.is-credit {
  border-left-color: #27803e;
}

.fdc-bank-movement-group .fdc-card-title p {
  margin: 4px 0 0;
  color: #60727d;
}

.fdc-bank-table {
  min-width: 1250px;
}

.fdc-bank-communication {
  min-width: 280px;
  max-width: 520px;
  white-space: normal !important;
}

.fdc-bank-debit {
  color: #9a252d;
}

.fdc-bank-credit {
  color: #17652b;
}

@media (max-width: 720px) {
  .fdc-viewport > .fdc-shell {
    width: calc(100vw - 16px);
  }

  .fdc-year-list {
    grid-template-columns: 1fr;
  }

  .fdc-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding: 18px;
  }

  .fdc-toast {
    top: 50%;
    left: 50%;
    right: auto;
    width: calc(100vw - 20px);
  }

  .fdc-validation-popup {
    width: calc(100vw - 20px);
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 16px 13px;
  }

  .fdc-validation-popup-icon {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .fdc-document-preview,
  .fdc-preview-empty {
    min-height: 300px;
  }

  .fdc-document-preview iframe {
    height: 460px;
  }

  .fdc-vat-grid {
    grid-template-columns: 1fr;
  }

  .fdc-purchases-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .fdc-supplier-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .fdc-validated-line {
    grid-template-columns: 1fr;
  }

  .fdc-grid-bank-import,
  .fdc-grid-bank-detail,
  .fdc-sale-auto-values {
    grid-template-columns: 1fr;
  }

  .fdc-sale-preview {
    flex-direction: column;
  }

  .fdc-sales-filter .fdc-sales-client-filter{width:100%;min-width:0}
  .fdc-sales-balance-legend{width:100%;margin-left:0}
}

@media (max-width: 1100px) {
  .fdc-bank-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fdc-fields-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.fdc-expense-form {
  gap: 18px;
}

.fdc-expense-lines,
.fdc-travel-lines {
  min-width: 1120px;
}

.fdc-expense-lines input,
.fdc-travel-lines input {
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid #bacbd4;
  border-radius: 6px;
  padding: 7px 9px;
}

.fdc-expense-lines th:nth-child(1) { width: 31%; }
.fdc-expense-lines th:nth-child(2) { width: 31%; }
.fdc-expense-lines th:nth-child(3) { width: 18%; }
.fdc-expense-lines th:nth-child(4) { width: 20%; }
.fdc-travel-lines th:nth-child(1) { width: 13%; }
.fdc-travel-lines th:nth-child(2) { width: 22%; }
.fdc-travel-lines th:nth-child(3) { width: 30%; }
.fdc-travel-lines th:nth-child(4) { width: 13%; }
.fdc-travel-lines th:nth-child(5) { width: 10%; }
.fdc-travel-lines th:nth-child(6) { width: 12%; }

.fdc-money-input {
  text-align: right;
}

.fdc-travel-lines output {
  display: block;
  min-width: 86px;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.fdc-expense-grand-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  background: #dbeaf2;
  color: #174f73;
  font-size: 1.3rem;
  font-weight: 800;
}

.fdc-expense-grand-total strong {
  font-size: 1.65rem;
}

.fdc-expense-submit {
  justify-content: flex-end;
}

.fdc-expense-print-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
  border: 2px solid #2b8a47;
  background: linear-gradient(135deg, #e4f6e9 0%, #f7fcf8 100%);
  box-shadow: 0 8px 24px rgba(28, 112, 54, .13);
}

.fdc-expense-print-prompt > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fdc-expense-print-prompt h3 {
  margin: 0 0 4px;
  color: #155d2c;
}

.fdc-expense-print-prompt p {
  margin: 0;
  color: #315b3d;
}

.fdc-expense-print-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #21743a;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
}

.fdc-expense-list {
  min-width: 1180px;
}

.fdc-mileage-card,
.fdc-expense-document,
.fdc-expense-versions {
  margin-top: 18px;
}

.fdc-expense-versions .fdc-hash {
  max-width: 420px;
}

.fdc-grid-mileage,
.fdc-grid-expense-summary {
  grid-template-columns: minmax(620px, 1.5fr) minmax(320px, .7fr);
}

.fdc-mileage-table {
  min-width: 650px;
}

.fdc-badge-validated {
  background: #d7f0dc;
  color: #175c2a;
}

@media (max-width: 760px) {
  .fdc-expense-print-prompt {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .fdc-fields-3,
  .fdc-fields-4,
  .fdc-document-sources,
  .fdc-grid-mileage,
  .fdc-grid-expense-summary {
    grid-template-columns: 1fr;
  }

  .fdc-bank-reconciliation {
    grid-template-columns: 1fr;
  }
}
.fdc-bank-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;align-items:start}
.fdc-bank-targets>section{min-width:0;overflow:hidden;border:1px solid #cbd9e2;border-radius:8px;padding:14px;background:#f8fbfd;box-sizing:border-box}
.fdc-bank-targets>section>*{min-width:0;max-width:100%}
.fdc-bank-targets .fdc-form,.fdc-bank-targets .fdc-form label{min-width:0;max-width:100%}
.fdc-bank-targets input,.fdc-bank-targets select,.fdc-bank-targets textarea,.fdc-bank-targets .fdc-button{max-width:100%}
.fdc-bank-targets p,.fdc-bank-targets small,.fdc-bank-targets h4{overflow-wrap:anywhere}
.fdc-bank-targets h4{margin:0 0 10px;color:#174f73}
@media(max-width:1350px){.fdc-bank-targets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.fdc-bank-targets{grid-template-columns:1fr}}

.fdc-investment-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.fdc-investment-kpis article{border-left:4px solid #2879a8}
.fdc-investment-list .fdc-table{min-width:1550px}
.fdc-investment-list td:nth-child(4){min-width:260px}
.fdc-investment-list .fdc-table tbody tr.fdc-asset-review>td{background:#fff9e8}
.fdc-asset-review small{color:#8a5a00;font-weight:700}
.fdc-investment-list .fdc-table tbody tr.fdc-asset-new>td{background:#e3f4e8}
.fdc-investment-list .fdc-table tbody tr.fdc-asset-new>td:first-child{border-left:4px solid #20814a}
.fdc-asset-legend{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#176137;white-space:nowrap}
.fdc-asset-legend span{display:inline-block;width:22px;height:14px;background:#e3f4e8;border:1px solid #20814a;border-radius:3px}
.fdc-asset-form fieldset{border:1px solid #cbd9e2;border-radius:8px;padding:14px;background:#f8fbfd}
.fdc-asset-form legend{padding:0 8px;font-weight:800;color:#174f73}
@media(max-width:1100px){.fdc-investment-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fdc-investment-kpis{grid-template-columns:1fr}}

.fdc-legal-notice{border-left:5px solid #2b7aa4;background:#f3f9fc}
.fdc-legal-notice h3{margin-top:0}
.fdc-annual-form{display:grid;gap:18px}
.fdc-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fdc-inline-form{display:inline-flex;margin:0}
.fdc-annual-form h4{margin:12px 0 8px;color:#174f73}
.fdc-annual-grid-4{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}
.fdc-annual-money-table{border:1px solid #cad8e1;border-radius:8px;overflow:hidden;background:#f8fbfd}
.fdc-annual-money-table label{display:grid;grid-template-columns:minmax(180px,1fr) 145px;align-items:center;gap:12px;padding:8px 10px;margin:0;border-bottom:1px solid #dbe4ea}
.fdc-annual-money-table label:nth-child(even){background:#fff}
.fdc-annual-money-table input{text-align:right;margin:0}
.fdc-annual-total{display:flex;justify-content:space-between;padding:11px 12px;background:#dbeaf2;color:#174f73;font-weight:800}
.fdc-annual-sticky{position:sticky;bottom:12px;z-index:4;justify-content:flex-end;padding:12px;border-radius:8px;background:rgba(238,246,250,.96);box-shadow:0 4px 18px rgba(20,64,88,.16)}
.fdc-annual-exports{margin-top:18px}
.fdc-annual-exports .fdc-actions{flex-wrap:wrap}
.fdc-annual-links{display:flex;gap:18px;margin-bottom:0}
.fdc-recalculate-form{margin:18px 0;text-align:right}
@media(max-width:1100px){.fdc-annual-grid-4{grid-template-columns:repeat(2,minmax(150px,1fr))}.fdc-grid-2{grid-template-columns:1fr}}
@media(max-width:650px){.fdc-annual-grid-4{grid-template-columns:1fr}.fdc-annual-money-table label{grid-template-columns:1fr}.fdc-annual-sticky{position:static}}

.fdc-journal-summary .fdc-card-title>strong{padding:10px 14px;border-radius:8px;background:#dceef7;color:#0b5578;white-space:nowrap}
.fdc-journal-account{padding:0;overflow:hidden;border-left:5px solid #19729b}
.fdc-journal-account summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 18px;background:linear-gradient(90deg,#dceef7,#eef7f2);color:#123f57;cursor:pointer;list-style:none}
.fdc-journal-account summary::-webkit-details-marker{display:none}
.fdc-journal-account summary span{display:flex;align-items:center;gap:12px}
.fdc-journal-account summary small{padding:4px 8px;border-radius:999px;background:#fff;color:#486575}
.fdc-journal-account .fdc-table-wrap{border-top:1px solid #bfd3de}
.fdc-journal-account .fdc-table{margin:0}
@media(max-width:700px){.fdc-journal-account summary,.fdc-journal-account summary span{align-items:flex-start;flex-direction:column;gap:6px}}

.fdc-filter .fdc-purchase-supplier-filter{min-width:min(360px,100%)}
@media(max-width:650px){.fdc-filter .fdc-purchase-supplier-filter{width:100%;min-width:0}.fdc-filter .fdc-purchase-supplier-filter select{width:100%}}

/* Identité visuelle et sous-navigation du Syndicat d'Initiative. */
.fdc-brand img{object-fit:contain;background:#fff}
.fdc-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:8px;border-radius:10px;background:#e8f1e5}
.fdc-subnav a{display:inline-block;padding:9px 13px;border-radius:7px;color:#16410e;font-weight:800;text-decoration:none}
.fdc-subnav a:hover,.fdc-subnav a.is-active{background:#194f10;color:#fff}
.fdc-sales-position.is-receivable{background:#fff0c9;color:#6f4900}
.fdc-sales-position.is-zero{background:#dff2e3;color:#176137}
.fdc-card>summary{cursor:pointer;font-size:20px;font-weight:800;color:#174f21;padding:4px 0}
.fdc-card>summary+form{margin-top:18px}

.fdc-grid-event-editor{grid-template-columns:minmax(620px,1.45fr) minmax(300px,.55fr);align-items:start}
.fdc-event-poster-card{text-align:center}
.fdc-event-poster-card img{display:block;max-width:100%;max-height:560px;margin:0 auto;border:1px solid #cad8e1;border-radius:8px;object-fit:contain;background:#f7faf8}
.fdc-event-poster-empty{display:grid;place-items:center;min-height:280px;padding:24px;border:2px dashed #b9cbb6;border-radius:10px;background:#f5faf3;color:#567054;text-align:center}
.fdc-event-takings{border:1px solid #b9d0b5;border-radius:9px;padding:14px;background:#f3faf1}
.fdc-event-takings legend{padding:0 8px;color:#174f21;font-weight:800}
.fdc-event-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.fdc-event-kpis .is-balanced{border-left-color:#21864b;background:#e5f6e9}
.fdc-event-kpis .is-different{border-left-color:#d17a00;background:#fff2d8}
.fdc-grid-event-revenue{grid-template-columns:minmax(620px,1.3fr) minmax(320px,.7fr);align-items:start}
.fdc-event-products[open]>summary{margin-bottom:15px}
.fdc-bank-table tr[id]{scroll-margin-top:24px}
.fdc-bank-status-legend{display:flex;align-items:center;gap:9px;margin:10px 0 16px;padding:10px 12px;border:1px solid #a8d8b7;border-radius:8px;background:#f0faf3;color:#245c35}
.fdc-bank-archived-badge{background:#cdeed7!important;color:#14602d!important;border:1px solid #78bd8d}
.fdc-bank-table tr.is-archived td{background:#e9f8ee}
.fdc-bank-table tr.is-archived td:first-child{box-shadow:inset 4px 0 #26934e}
.fdc-bank-table tr.fdc-bank-focus td{background:#fff1b8!important;box-shadow:inset 0 2px #d39a00,inset 0 -2px #d39a00}
.fdc-inline-product-form{padding-bottom:14px;border-bottom:1px solid #d8e2d6}
.fdc-event-product-list{display:grid;gap:7px;margin-top:12px}
.fdc-event-product-list form{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #dbe4da;border-radius:7px;background:#f8fbf7}
.fdc-event-product-list span{font-weight:700}
.fdc-event-revenue-table{min-width:1320px}
.fdc-daily-takings{border-top:4px solid #2f8d58}
.fdc-cash-expense-box{margin:2px 0 4px;padding:16px;border:2px solid #d48b25;border-radius:10px;background:#fff8e9}
.fdc-cash-expense-box legend{padding:0 8px;color:#7a4700;font-weight:800}
.fdc-cash-expense-box>p{margin:0 0 13px;color:#614d31}
.fdc-cash-deposit-preview{margin-top:12px}
.fdc-cash-deposit-preview>div{padding:12px 14px;border-radius:8px;background:#fff;border:1px solid #e7c78d}
.fdc-cash-deposit-preview span,.fdc-cash-deposit-preview strong{display:block}
.fdc-cash-deposit-preview span{font-size:.82rem;color:#6b5a42}
.fdc-cash-deposit-preview strong{margin-top:4px;color:#174f73;font-size:1.08rem}
.fdc-cash-deposit-preview strong.is-negative{color:#a6242d}
.fdc-bank-event-cash{margin-top:0;padding-top:14px;border-top:4px solid #2f8d58!important}
.fdc-bank-cash-preview{margin:12px 0}
.fdc-bank-targets .fdc-bank-cash-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fdc-bank-cash-preview>div{padding:12px 14px;border:1px solid #a9c9d8;border-radius:8px;background:#f3f9fc}
.fdc-bank-cash-preview span,.fdc-bank-cash-preview strong{display:block}
.fdc-bank-cash-preview span{font-size:.82rem;color:#526d79}.fdc-bank-cash-preview strong{margin-top:4px;color:#174f73;font-size:1.08rem}
[data-fdc-bank-cash-control].fdc-success{border-color:#70bd88;background:#e6f6eb;color:#176137}
[data-fdc-bank-cash-control].fdc-warning{border-color:#df9b32;background:#fff1d5;color:#825100}

/* Stock boissons */
.fdc-stock-comments{border-top:5px solid #176b9a;margin:28px 0;background:linear-gradient(145deg,#fff 72%,#edf7fc)}
.fdc-stock-comment-form{padding:14px 16px;border:1px solid #c5dcea;border-radius:10px;background:#f3faff;margin:18px 0 22px}
.fdc-stock-comment-form textarea{min-height:90px}
.fdc-stock-comment-list{display:grid;gap:12px}
.fdc-stock-comment{padding:14px 16px;border-left:4px solid #16845f;border-radius:8px;background:#f5fbf7;overflow-wrap:anywhere}
.fdc-stock-comment>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.fdc-stock-comment>div span{color:#476275;font-size:.9rem}
.fdc-stock-comment p{margin:9px 0 0;white-space:normal}
.fdc-stock-title{border-left:5px solid #0b7a5c;background:linear-gradient(90deg,#e6f7ef 0,#f7fbf9 72%);padding:18px 20px;border-radius:12px}
.fdc-stock-kpis article:nth-child(1){border-top:4px solid #16845f;background:#e8f7ef}
.fdc-stock-kpis article:nth-child(2){border-top:4px solid #176b9a;background:#e8f3fb}
.fdc-stock-kpis article:nth-child(3){border-top:4px solid #d48a14;background:#fff3df}
.fdc-stock-kpis article:nth-child(4){border-top:4px solid #7b4eaf;background:#f1eafa}
.fdc-stock-editor-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.fdc-stock-form-card{border-top:5px solid #176b9a}
.fdc-stock-form-card [data-fdc-custom-category][hidden],.fdc-stock-form-card [data-fdc-custom-volume][hidden]{display:none!important}
.fdc-deposit-form-card{border-top:5px solid #d48a14}
.fdc-stock-crate-box{border:1px solid #d9a447;background:#fff8e9;border-radius:10px;padding:12px}
.fdc-stock-crate-box legend{font-weight:800;color:#855300;padding:0 8px}
.fdc-stock-live-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fdc-stock-form-card .fdc-stock-live-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
.fdc-stock-live-totals>div{border:1px solid #bdd7e5;background:#edf7fc;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:5px}
.fdc-stock-live-totals span{font-size:.8rem;color:#405d6a}
.fdc-stock-live-totals strong{font-size:1.1rem;color:#064f73}
.fdc-stock-inventory{border-top:4px solid #176b9a;margin:28px 0 34px}
.fdc-stock-deposits{border-top:4px solid #d48a14;margin:0 0 34px}
.fdc-stock-history{border-top:4px solid #704a9b;margin:0 0 34px}
.fdc-stock-inventory-table{min-width:1400px}
.fdc-stock-category-section{--stock-accent:#445467;--stock-soft:#eef2f7;--stock-head:#dce5ef;--stock-stripe:#fbfcfe;margin:22px 0;border:2px solid var(--stock-accent);border-radius:12px;overflow:hidden;background:#fff}
.fdc-stock-category-section:first-of-type{margin-top:18px}
.fdc-stock-category-section:last-of-type{margin-bottom:0}
.fdc-stock-category-section:not([open]){margin-bottom:14px}
.fdc-stock-category-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 19px;background:var(--stock-soft);border-bottom:2px solid var(--stock-accent);color:var(--stock-accent)}
.fdc-stock-category-section:not([open])>.fdc-stock-category-heading{border-bottom:0}
.fdc-stock-category-heading span{display:block;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.fdc-stock-category-heading h4{margin:4px 0 0;color:var(--stock-accent);font-size:1.27rem}
.fdc-stock-category-heading>strong{font-size:.9rem;text-align:right}
.fdc-stock-category-heading>strong{margin-left:auto}
.fdc-stock-category-heading,.fdc-stock-collapsible>summary{cursor:pointer;list-style:none}
.fdc-stock-category-heading::-webkit-details-marker,.fdc-stock-collapsible>summary::-webkit-details-marker{display:none}
.fdc-stock-category-heading:focus-visible,.fdc-stock-collapsible>summary:focus-visible{outline:3px solid #245d94;outline-offset:-4px}
.fdc-stock-toggle-label{flex:none;min-width:85px;padding:8px 10px;border-radius:7px;background:var(--stock-accent,#1c5877);color:#fff;font-size:.82rem;font-weight:800;text-align:center}
.fdc-stock-toggle-label::after{content:'− Fermer'}
details:not([open])>summary .fdc-stock-toggle-label::after{content:'+ Déplier'}
.fdc-stock-collapsible>summary{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding:6px;border-radius:8px}
.fdc-stock-collapsible:not([open])>summary{margin-bottom:0}
.fdc-stock-collapsible>summary>div:first-child{flex:1;min-width:0}
.fdc-stock-collapsible>summary h3,.fdc-stock-collapsible>summary h4{margin:0}
.fdc-stock-collapsible>summary p{margin:5px 0 0}
.fdc-stock-summary-info{margin-left:auto;color:#174b69;font-weight:800}
.fdc-stock-sheet-lines{margin-top:16px;border:1px solid #c4d7e0;border-radius:10px;padding:12px}
.fdc-stock-sheet-lines>summary{margin-bottom:12px}
.fdc-stock-sheet-lines>summary h4{font-size:1.1rem;color:#194963}
.fdc-stock-category-section thead th,.fdc-stock-category-section tfoot th{background:var(--stock-head);color:#233947}
.fdc-stock-category-section tbody tr:nth-child(even) td{background:var(--stock-stripe)}
.fdc-stock-tone-beer{--stock-accent:#92510d;--stock-soft:#fff0d7;--stock-head:#ffe3b6;--stock-stripe:#fffbf3}
.fdc-stock-tone-wine{--stock-accent:#7b284a;--stock-soft:#f9e8ef;--stock-head:#efd4df;--stock-stripe:#fcf7f9}
.fdc-stock-tone-sparkling{--stock-accent:#765b12;--stock-soft:#fbf3d5;--stock-head:#f3e6ab;--stock-stripe:#fdfbf2}
.fdc-stock-tone-water{--stock-accent:#165981;--stock-soft:#e8f4fd;--stock-head:#cde5f6;--stock-stripe:#f7fbff}
.fdc-stock-tone-soda{--stock-accent:#914319;--stock-soft:#fff0e6;--stock-head:#f8dccc;--stock-stripe:#fffaf7}
.fdc-stock-tone-juice{--stock-accent:#68448a;--stock-soft:#f2ebfa;--stock-head:#e5d7f4;--stock-stripe:#fcf9ff}
.fdc-stock-tone-syrup{--stock-accent:#196243;--stock-soft:#e9f6ec;--stock-head:#d0e9d8;--stock-stripe:#f8fcf9}
.fdc-stock-tone-other{--stock-accent:#445467;--stock-soft:#eef2f7;--stock-head:#dce5ef;--stock-stripe:#fbfcfe}
.fdc-stock-grand-total{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px;padding:16px;border-radius:10px;background:#163d55;color:#fff}
.fdc-stock-grand-total>div{display:flex;flex-direction:column;gap:5px;padding:11px 13px;border:1px solid #4e7489;border-radius:8px;background:#20516b}
.fdc-stock-grand-total span{font-size:.84rem;color:#e2eef4}
.fdc-stock-grand-total strong{font-size:1.25rem;color:#fff}
.fdc-stock-history .fdc-table{min-width:1080px}
.fdc-stock-history .fdc-table td:last-child{min-width:260px;white-space:normal}
.fdc-stock-history .fdc-positive{color:#176137;font-weight:700}
.fdc-stock-inventory tr.is-archived{background:#eceff1;color:#67727a}
.fdc-stock-category-section tbody tr.is-archived td{background:#eceff1;color:#67727a}
.fdc-stock-deposits td small,.fdc-stock-event-lines td small{display:block;margin-top:3px;color:#66737a}
.fdc-stock-sheet-grid{grid-template-columns:minmax(360px,.8fr) minmax(500px,1.2fr);align-items:start}
.fdc-stock-sheet-grid>.fdc-card{min-width:0}
.fdc-stock-new-sheet{border-left:5px solid #16845f}
.fdc-stock-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.fdc-stock-flow>div{min-width:0}
.fdc-kpi-stock{border-left-color:#16845f!important;background:#eefaf3!important}
.fdc-kpi-stock strong{color:#146037}
.fdc-stock-flow>div{background:#eff6f8;border:1px solid #c6d9e2;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:5px}
.fdc-stock-flow span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#0b5f82;color:#fff;font-weight:800}
.fdc-stock-flow strong{color:#0a4a68}
.fdc-stock-flow small{line-height:1.35;color:#4e626c}
.fdc-stock-sheet-list tr.is-validated{background:#eaf7ee}
.fdc-stock-manager-category{border-left:5px solid #176b9a;margin:18px 0}
.fdc-stock-manager-category:nth-of-type(2n){border-left-color:#16845f}
.fdc-stock-quantity-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fdc-stock-quantity-form input[type=number]{width:110px;min-width:85px}
.fdc-stock-sheet-editor{border-top:5px solid #16845f}
.fdc-stock-sheet-editor.is-validated{border-color:#176b9a}
.fdc-stock-event-lines input[type=number]{min-width:95px;width:100%}
.fdc-stock-event-lines [data-fdc-stock-used],.fdc-stock-event-lines [data-fdc-stock-line-cost]{color:#0b5f82}
.fdc-stock-validate-form{margin-top:14px;padding:15px;border:1px solid #e3a546;background:#fff5e2;border-radius:10px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.fdc-stock-validate-form small{color:#78500e}
.fdc-stock-validation-summary{margin:16px 0;display:grid;grid-template-columns:1fr auto;gap:4px 20px;align-items:center;padding:16px;border:1px solid #79bd91;background:#e8f7ee;border-radius:10px}
.fdc-stock-validation-summary span{font-weight:700;color:#155c32}
.fdc-stock-validation-summary strong{font-size:1.35rem;color:#0b6a35}
.fdc-stock-validation-summary small{grid-column:1/-1;color:#4f6859}
.fdc-stock-event-lines tfoot th{background:#dcedf5;color:#0a4d70}
@media(max-width:1100px){.fdc-stock-editor-grid,.fdc-stock-sheet-grid{grid-template-columns:1fr}.fdc-stock-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.fdc-stock-live-totals,.fdc-stock-form-card .fdc-stock-live-totals,.fdc-stock-flow{grid-template-columns:1fr}.fdc-stock-validation-summary{grid-template-columns:1fr}}
@media(max-width:700px){.fdc-stock-category-heading{align-items:flex-start;flex-direction:column}.fdc-stock-category-heading>strong{margin-left:0;text-align:left}.fdc-stock-grand-total{grid-template-columns:1fr}.fdc-stock-collapsible>summary{flex-wrap:wrap}.fdc-stock-collapsible>summary>div:first-child{flex-basis:100%}}
@media(max-width:1500px){.fdc-bank-targets .fdc-bank-cash-preview{grid-template-columns:1fr}}
.fdc-event-taking-table{min-width:1280px}
.fdc-event-taking-table tfoot th{background:#e8f4e9;font-weight:800}
.fdc-event-taking-table tfoot .fdc-control-total-row th{background:#d9edf7;color:#174f73;border-top:2px solid #4a8cad}
.fdc-cash-expense-cell{min-width:255px}
.fdc-cash-expense-cell>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #ead7b3}
.fdc-cash-expense-cell>div:last-child{border-bottom:0}
.fdc-cash-expense-cell form{margin:0}
.fdc-cash-expense-cell button{width:27px;height:27px;border:0;border-radius:50%;background:#a62c32;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.fdc-bank-deposit-cell{background:#e6f3f9;color:#174f73}
.fdc-event-cash-bank-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}
.fdc-event-cash-bank-kpis article:nth-child(1){border-left-color:#176c98;background:#edf8fd}
.fdc-event-cash-bank-kpis article:nth-child(2){border-left-color:#317c4c;background:#edf8f0}
.fdc-event-cash-bank-kpis .is-balanced{border-left-color:#21864b;background:#e5f6e9}
.fdc-event-cash-bank-kpis .is-different{border-left-color:#df8a00;background:#fff1d4}
.fdc-event-cash-bank-detail{margin-top:20px;padding-top:18px;border-top:2px solid #8ab6ca}
.fdc-event-cash-bank-detail h4{margin:0 0 5px;color:#174f73}.fdc-event-cash-bank-detail>p{margin:0 0 12px;color:#526a76}
.fdc-event-cash-bank-detail tfoot .is-balanced th{background:#dff2e3;color:#176137}
.fdc-event-cash-bank-detail tfoot .is-different th{background:#fff0c9;color:#8a5600}
.fdc-event-result{border-top:4px solid #174f21;scroll-margin-top:20px}
.fdc-event-result-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.fdc-event-result-kpis .is-positive{border-left-color:#21864b;background:#e5f6e9}
.fdc-event-result-kpis .is-negative{border-left-color:#c93b32;background:#fde7e5}
.fdc-event-result-details{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.fdc-event-result-details article{min-width:0}
.fdc-event-result-details .fdc-table{min-width:700px}

/* Nomenclature comptable */
.fdc-header .fdc-brand img{width:118px!important;height:76px!important;max-width:118px!important;object-fit:contain!important}
.fdc-category-title{margin-bottom:18px;padding:18px 22px;border-radius:14px;background:linear-gradient(110deg,#e9f4ec 0,#f8fbf9 58%,#edf4f8 100%);border:1px solid #c9dfd0}
.fdc-category-title h2{color:#174f3b}.fdc-category-title p{max-width:950px;color:#435f54}
.fdc-category-create-button{min-width:205px;padding:13px 20px;font-size:1rem;background:#176b38;box-shadow:0 6px 16px rgba(23,107,56,.22)}
.fdc-category-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.fdc-category-kpis article{min-height:114px;padding:17px 19px;border:1px solid transparent;border-left:0;display:flex;flex-direction:column;justify-content:center;box-shadow:0 5px 16px rgba(20,48,60,.08)}
.fdc-category-kpis article strong{order:0;margin:0 0 5px;font-size:2rem;line-height:1;color:#173f55}.fdc-category-kpis article span{order:1;font-size:1rem;font-weight:800;color:#243c48}.fdc-category-kpis article small{order:2;margin-top:4px;color:#526770}
.fdc-category-kpis .fdc-category-kpi-active{background:#dff3e4;border-color:#a9d3b5}.fdc-category-kpis .fdc-category-kpi-active strong{color:#176b38}
.fdc-category-kpis .fdc-category-kpi-expense{background:#fff0da;border-color:#ecc991}.fdc-category-kpis .fdc-category-kpi-expense strong{color:#98500f}
.fdc-category-kpis .fdc-category-kpi-income{background:#e3f0fb;border-color:#b4d2e9}.fdc-category-kpis .fdc-category-kpi-income strong{color:#145f91}
.fdc-category-kpis .fdc-category-kpi-total{background:#eee8f8;border-color:#d2c2ea}.fdc-category-kpis .fdc-category-kpi-total strong{color:#654497}
.fdc-category-editor{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;margin-bottom:18px;padding:0;overflow:visible!important;border:2px solid #62a978;box-shadow:0 8px 22px rgba(28,94,53,.12)}
.fdc-category-editor-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;background:linear-gradient(90deg,#d9f0df,#eef7f1)}
.fdc-category-editor-head>div{display:flex;align-items:center;gap:13px}.fdc-category-editor-head h3{margin:0;color:#155e32;font-size:1.3rem}.fdc-category-editor-head p{margin:4px 0 0;color:#486456}
.fdc-category-editor-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#176b38;color:#fff;font-size:1.65rem;font-weight:800}
.fdc-category-editor-body{display:block!important;height:auto!important;min-height:190px!important;overflow:visible!important;padding:19px 20px 20px;background:#fff;border-radius:0 0 12px 12px}
.fdc-category-editor form.fdc-category-form{display:block!important;position:static!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;min-height:150px!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff}
.fdc-category-form-grid{display:grid!important;position:static!important;visibility:visible!important;grid-template-columns:minmax(170px,.7fr) minmax(330px,1.6fr) minmax(190px,.8fr) minmax(150px,.6fr);gap:14px;align-items:start;width:100%!important;height:auto!important;min-height:76px!important;overflow:visible!important}
.fdc-category-form-grid>label{display:grid!important;position:static!important;visibility:visible!important;opacity:1!important;gap:6px!important;width:auto!important;height:auto!important;min-height:70px!important;margin:0!important;color:#253f4c!important;font-weight:800!important}
.fdc-category-form-grid>label>input:not([type="checkbox"]),.fdc-category-form-grid>label>select{display:block!important;position:static!important;visibility:visible!important;opacity:1!important;width:100%!important;height:42px!important;min-height:42px!important;margin:0!important;padding:9px 11px!important;border:1px solid #9fb9c7!important;border-radius:7px!important;background:#fff!important;color:#17242b!important;box-sizing:border-box!important}
.fdc-category-form-grid small{display:block!important;visibility:visible!important;color:#687d88!important;font-weight:400!important}
.fdc-category-active-check{align-self:end;min-height:42px;padding:0 13px;border:1px solid #b8d3c0;border-radius:8px;background:#edf7f0;color:#17582f!important}
.fdc-category-active-check input{display:inline-block!important;visibility:visible!important;opacity:1!important;width:auto!important;height:auto!important;min-height:0!important}
.fdc-category-form-footer{display:flex!important;position:static!important;visibility:visible!important;align-items:center;justify-content:space-between;gap:20px;width:100%!important;height:auto!important;min-height:56px!important;margin-top:12px;padding-top:15px;border-top:1px solid #dbe8df}.fdc-category-form-footer p{margin:0;color:#60746a;font-size:.9rem}.fdc-category-form-footer .fdc-button{display:inline-flex!important;visibility:visible!important;min-width:220px}
.fdc-category-list{border-top:5px solid #1f668f}.fdc-category-list .fdc-card-title p{margin:4px 0 0;color:#60727d}
.fdc-category-filter{padding:13px;border-radius:10px;background:#eef4f7;border:1px solid #d2e0e7}.fdc-category-filter label:first-of-type{min-width:270px}.fdc-category-filter select{min-width:210px}
.fdc-category-table{min-width:1030px}.fdc-category-table th{background:#cfdfe7;color:#173f55}.fdc-category-table td{padding-top:9px;padding-bottom:9px}.fdc-category-table td:first-child{border-left:5px solid transparent}.fdc-category-table tr.fdc-category-row-expense td:first-child{border-left-color:#d17a28}.fdc-category-table tr.fdc-category-row-income td:first-child{border-left-color:#2c83b8}.fdc-category-table tr.fdc-category-row-transfer td:first-child{border-left-color:#7657a5}.fdc-category-table tr.is-archived td{background:#f1f2f2;color:#6b7378}.fdc-category-table td:last-child{white-space:normal}
.fdc-category-type{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap}.fdc-category-type-expense{background:#ffead1;color:#82430b}.fdc-category-type-income{background:#dceefa;color:#155c87}.fdc-category-type-transfer{background:#e9e1f5;color:#5c3b8a}
.fdc-category-cell{min-width:190px}.fdc-category-cell span{display:block;line-height:1.35}.fdc-category-cell span+span{margin-top:4px;padding-top:4px;border-top:1px dotted #cbd5da}
.fdc-purchases-table{min-width:1650px}
@media(max-width:1100px){.fdc-category-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fdc-category-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fdc-category-editor-head,.fdc-category-form-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.fdc-category-kpis,.fdc-category-form-grid{grid-template-columns:1fr}.fdc-category-title{padding:15px}.fdc-category-create-button{width:100%}.fdc-category-filter label,.fdc-category-filter label:first-of-type{min-width:100%;width:100%}.fdc-category-form-footer .fdc-button{width:100%}}
.fdc-event-revenue-table tr.is-cancelled td{background:#f2f2f2;color:#777;text-decoration:none}
.fdc-event-list{min-width:1640px}
.fdc-event-balanced{background:#dff2e3;color:#176137;font-weight:800}
.fdc-event-different{background:#fff0c9;color:#8a5600;font-weight:800}
.fdc-event-positive{background:#dff2e3;color:#176137;font-weight:800}
.fdc-event-negative{background:#fde7e5;color:#9f231d;font-weight:800}
@media(max-width:1100px){.fdc-grid-event-editor,.fdc-grid-event-revenue,.fdc-event-result-details{grid-template-columns:1fr}.fdc-event-kpis,.fdc-event-result-kpis,.fdc-event-cash-bank-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fdc-event-kpis,.fdc-event-result-kpis,.fdc-event-cash-bank-kpis{grid-template-columns:1fr}}

/* Fiches de caisse, fonds permanents et suivi des jetons. */
.fdc-cash-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.fdc-cash-kpis article:nth-child(1){border-left-color:#166996;background:#eaf6fc}
.fdc-cash-kpis article:nth-child(2){border-left-color:#7245a5;background:#f4edfb}
.fdc-cash-kpis article:nth-child(3){border-left-color:#198754;background:#e8f7ef}
.fdc-cash-kpis article:nth-child(4){border-left-color:#d07a00;background:#fff4dc}
.fdc-grid-cash-settings{grid-template-columns:minmax(520px,1.3fr) minmax(320px,.7fr);margin-bottom:18px}
.fdc-cash-register-list{display:grid;gap:8px}
.fdc-cash-register-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d8e4d5;border-radius:8px;background:#f7fbf5}
.fdc-cash-base-card{border-top:5px solid #6c45a3;margin-bottom:18px;background:linear-gradient(180deg,#fbf8ff 0,#fff 180px)}
.fdc-grid-cash-base{grid-template-columns:minmax(420px,.8fr) minmax(560px,1.2fr);align-items:start}
.fdc-base-total{display:grid;grid-template-columns:1fr auto;gap:3px 20px;align-items:center;margin:14px 0;padding:15px 18px;border:2px solid;border-radius:10px}
.fdc-base-total span{font-weight:800}.fdc-base-total strong{font-size:1.45rem}.fdc-base-total small{grid-column:1/-1}
.fdc-base-total.is-ok{border-color:#2b914f;background:#e7f7ec;color:#176137}.fdc-base-total.is-warning{border-color:#e18b00;background:#fff0ce;color:#8c5700}
.fdc-cash-session-card{border-top:5px solid #176c98;margin-bottom:18px;background:linear-gradient(180deg,#f4fbff 0,#fff 170px)}
.fdc-grid-cash-counts{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.fdc-cash-count{min-width:0;margin:0;border:2px solid #b8d4e4;border-radius:10px;padding:14px;background:#eef8fd}
.fdc-cash-count-closing{border-color:#afd1ba;background:#eef9f1}.fdc-cash-count-base{border-color:#c8b6dd;background:#f7f0fc}
.fdc-cash-count legend{padding:0 8px;color:#155a7d;font-weight:800;font-size:1.05rem}.fdc-cash-count-closing legend{color:#176137}.fdc-cash-count-base legend{color:#593285}
.fdc-cash-count table{width:100%;border-collapse:collapse}
.fdc-cash-count th,.fdc-cash-count td{padding:6px 8px;border-bottom:1px solid #dce7da;text-align:right}
.fdc-cash-count th:first-child,.fdc-cash-count td:first-child{text-align:left}
.fdc-cash-count input{width:100%;min-width:75px;min-height:34px;padding:6px 8px;text-align:right}
.fdc-cash-count output{font-weight:700;white-space:nowrap}
.fdc-cash-count tfoot th{border-bottom:0;background:#d5edf9;color:#155a7d}.fdc-cash-count-closing tfoot th{background:#dcefe2;color:#176137}.fdc-cash-count-base tfoot th{background:#eadff4;color:#593285}
.fdc-token-panel{margin:16px 0;border:2px solid #7650a5;border-radius:10px;padding:14px;background:#faf6ff}.fdc-token-panel legend{padding:0 8px;color:#593285;font-weight:800;font-size:1.05rem}.fdc-token-panel>p{margin-top:0;color:#5c4f6b}
.fdc-token-panel table{width:100%;border-collapse:collapse;min-width:780px}.fdc-token-panel-base table{min-width:0}.fdc-token-panel th,.fdc-token-panel td{padding:8px;border-bottom:1px solid #ddd3e8;text-align:right}.fdc-token-panel th:first-child,.fdc-token-panel td:first-child{text-align:left}.fdc-token-panel input{width:100%;min-width:78px;text-align:right}.fdc-token-panel output{font-weight:800;white-space:nowrap}
.fdc-token-dot{display:inline-block;width:15px;height:15px;margin-right:8px;border:1px solid #777;border-radius:50%;vertical-align:-2px;background:#fff}.fdc-token-green .fdc-token-dot{background:#26934e}.fdc-token-red .fdc-token-dot{background:#b52f39}.fdc-token-rose .fdc-token-dot{background:#ed87a7}.fdc-token-gold .fdc-token-dot{background:#e9bd36}.fdc-token-chips .fdc-token-dot{background:#e17a24}.fdc-token-green{background:#f0fbf3}.fdc-token-red{background:#fff2f2}.fdc-token-rose{background:#fff5f8}.fdc-token-gold{background:#fff9e5}.fdc-token-chips{background:#fff4e9}
.fdc-cash-adjustments{margin-top:4px}
.fdc-cash-result{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px;border-radius:10px;background:#dcecf5}
.fdc-cash-result div{padding:12px;border:2px solid #84b3cc;border-radius:8px;background:#fff}.fdc-cash-result div.is-ok{border-color:#39925a;background:#e8f7ed}.fdc-cash-result div.is-warning{border-color:#e08a00;background:#fff0cf}.fdc-cash-result .fdc-result-revenue{border-color:#176c98;background:#edf8fd}.fdc-cash-result .fdc-result-tokens{border-color:#7650a5;background:#f7f0fc}
.fdc-cash-result span,.fdc-cash-result strong{display:block}
.fdc-cash-result span{color:#667984;font-size:.85rem}
.fdc-cash-result strong{margin-top:5px;color:#174f21;font-size:1.3rem}
.fdc-cash-result strong.is-negative{color:#a62c32}
.fdc-cash-session-list{min-width:1420px}.fdc-negative{color:#a62c32}
.fdc-inline-link{margin-top:4px;padding:0;border:0;background:transparent;color:#176c98;text-decoration:underline;cursor:pointer;text-align:left;font-weight:700}
@media(max-width:1100px){.fdc-cash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fdc-grid-cash-settings,.fdc-grid-cash-counts,.fdc-grid-cash-base{grid-template-columns:1fr}.fdc-cash-result{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fdc-cash-kpis,.fdc-cash-result{grid-template-columns:1fr}.fdc-cash-register-list>div{align-items:flex-start;flex-direction:column}}

/* Rapprochement SumUp des événements */
.fdc-bank-event-sumup{border-top:4px solid #7650a5!important;background:linear-gradient(180deg,#faf6ff 0,#f8fbfd 190px)!important}
.fdc-bank-sumup-preview{margin:12px 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fdc-bank-sumup-preview>div{padding:12px 14px;border:1px solid #c7b4dd;border-radius:8px;background:#fff}
.fdc-bank-sumup-preview span,.fdc-bank-sumup-preview strong,.fdc-bank-sumup-fee span,.fdc-bank-sumup-fee strong{display:block}
.fdc-bank-sumup-preview span,.fdc-bank-sumup-fee span{font-size:.82rem;color:#625672}
.fdc-bank-sumup-preview strong{margin-top:4px;color:#593285;font-size:1.08rem}
.fdc-bank-sumup-fee{padding:13px 15px;border:2px solid #7650a5;border-radius:9px;background:#f3eafb}
.fdc-bank-sumup-fee strong{margin-top:4px;color:#593285;font-size:1.25rem}.fdc-bank-sumup-fee strong.is-negative{color:#a62c32}
.fdc-event-sumup-bank-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}
.fdc-event-sumup-bank-kpis article:nth-child(1){border-left-color:#7650a5;background:#faf6ff}
.fdc-event-sumup-bank-kpis article:nth-child(2){border-left-color:#176c98;background:#edf8fd}
.fdc-event-sumup-bank-kpis article:nth-child(3){border-left-color:#c46a16;background:#fff6e9}
.fdc-event-sumup-bank-kpis .is-balanced{border-left-color:#21864b;background:#e5f6e9}
.fdc-event-sumup-bank-kpis .is-different{border-left-color:#df8a00;background:#fff1d4}
.fdc-event-sumup-bank-detail{margin-top:24px;padding-top:20px;border-top:2px solid #d9cbe7}
.fdc-event-sumup-bank-detail h4{color:#593285}
@media(max-width:1500px){.fdc-bank-targets .fdc-bank-sumup-preview{grid-template-columns:1fr}}
@media(max-width:1100px){.fdc-event-sumup-bank-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fdc-event-sumup-bank-kpis{grid-template-columns:1fr}}

/* Photographies datées du stock boissons. */
.fdc-stock-photo-card{margin-top:22px;border-top:5px solid #7252a3!important;background:linear-gradient(180deg,#faf6ff,#fff 145px)}
.fdc-stock-photo-card>summary{color:#382362}
.fdc-stock-photo-content{padding:16px 18px 20px}
.fdc-stock-photo-form{padding:16px;border:1px solid #d4c8e7;border-radius:10px;background:#f8f4ff}
.fdc-stock-photo-form small{display:block;margin:7px 0 14px;color:#554b66}
.fdc-stock-photo-form input[type=file]{width:100%;max-width:100%;padding:8px;background:white;border:1px solid #c8bada;border-radius:7px}
.fdc-stock-photo-entry{margin-top:15px;border:1px solid #ccddeb;border-radius:9px;background:#fff;overflow:hidden}
.fdc-stock-photo-entry>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 15px;padding:13px 16px;background:#eaf2f9;color:#174565;cursor:pointer}
.fdc-stock-photo-entry>summary strong{font-size:1.08rem}
.fdc-stock-photo-entry>summary span{color:#416077}
.fdc-stock-photo-entry>p{margin:14px 16px 0}
.fdc-stock-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px;padding:15px}
.fdc-stock-photo-grid a{min-width:0;padding:6px;border:1px solid #cbd8e4;border-radius:8px;background:#f6f9fc;text-decoration:none;color:#174565}
.fdc-stock-photo-grid img{display:block;width:100%;height:125px;object-fit:cover;border-radius:5px;background:#e9eff4}
.fdc-stock-photo-grid span{display:block;padding:6px 3px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}
@media(max-width:650px){.fdc-stock-photo-content{padding:12px}.fdc-stock-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Repères de péremption du stock boissons, calculés à la date du comptage. */
.fdc-expiry-status{display:inline-flex;align-items:center;gap:7px;font-weight:700;white-space:nowrap}
.fdc-expiry-dot{display:inline-block;width:12px;height:12px;min-width:12px;border-radius:50%;vertical-align:middle;background:#64748b;box-shadow:0 0 0 2px #fff,0 0 0 3px currentColor}
.fdc-expiry-good{color:#15803d}.fdc-expiry-good .fdc-expiry-dot,.fdc-expiry-dot.fdc-expiry-good{background:#16a34a}
.fdc-expiry-soon{color:#a16207}.fdc-expiry-soon .fdc-expiry-dot,.fdc-expiry-dot.fdc-expiry-soon{background:#eab308}
.fdc-expiry-expired{color:#b91c1c}.fdc-expiry-expired .fdc-expiry-dot,.fdc-expiry-dot.fdc-expiry-expired{background:#dc2626}
.fdc-stock-inventory-table{min-width:1520px}
.fdc-stock-inventory-table td small{display:block;margin-top:4px}

/* Journaux: catégories communes au récapitulatif et aux détails. */
.fdc-journal-family th{font-size:15px;padding:12px!important;border-top:2px solid #b9ccd7}
.fdc-journal-family-title{display:flex;justify-content:space-between;gap:12px;padding:14px 18px;border-radius:8px;margin:26px 0 12px}
.fdc-journal-family-title span{white-space:nowrap}
.fdc-journal-family-expense,.fdc-journal-family-expense>th{background:#fff0db!important;color:#75420c!important}
.fdc-journal-family-income,.fdc-journal-family-income>th{background:#ddf1e5!important;color:#195737!important}
.fdc-journal-family-transfer,.fdc-journal-family-transfer>th{background:#eee5fa!important;color:#56347b!important}
.fdc-journal-family-other,.fdc-journal-family-other>th{background:#e3edf6!important;color:#214b6c!important}
@media(max-width:700px){.fdc-journal-family-title{flex-direction:column}}

/* Réapprovisionnement et correction dans la fenêtre de la boisson. */
.fdc-stock-modal{width:min(980px,calc(100vw - 32px))}
.fdc-stock-current{padding:16px 20px;border:1px solid #b9d6e7;border-radius:10px;background:#edf6fb;margin-bottom:20px}
.fdc-stock-current h4,.fdc-stock-receipt h4{font-size:20px;margin:0 0 12px;color:#174f73}
.fdc-stock-current dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0}
.fdc-stock-current dt{color:#435e70;font-size:13px}
.fdc-stock-current dd{margin:4px 0 0;font-size:18px;font-weight:700;color:#153f58}
.fdc-stock-receipt{border-left:5px solid #26844e;padding:8px 0 8px 16px}
.fdc-stock-receipt textarea{min-height:74px}
.fdc-stock-receipt .fdc-stock-live-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
.fdc-stock-correction{margin-top:24px;border-top:1px solid #c8d6df;padding-top:18px}
.fdc-stock-correction>summary{cursor:pointer;color:#174f73;font-weight:700;padding:8px 0}
.fdc-stock-correction .fdc-card{margin:12px 0 0;box-shadow:none}
@media(max-width:700px){.fdc-stock-current dl,.fdc-stock-receipt .fdc-stock-live-totals{grid-template-columns:1fr}.fdc-stock-modal{padding:16px}.fdc-stock-modal .fdc-modal-head h3{font-size:21px}}

.fdc-stock-delete-form{display:inline-block;margin:4px 0 4px 8px;vertical-align:middle}
.fdc-stock-sheet-editor>.fdc-stock-delete-form{display:block;margin:18px 0 0}

.fdc-dashboard-collapsible>summary{cursor:pointer;list-style:none;margin-bottom:0}
.fdc-dashboard-collapsible>summary::-webkit-details-marker{display:none}
.fdc-dashboard-collapsible[open]>summary{margin-bottom:16px}
.fdc-dashboard-collapse-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.fdc-dashboard-collapse-actions>strong{white-space:nowrap;color:#195d82}
.fdc-dashboard-toggle-label{padding:7px 11px;border-radius:6px;background:#195d82;color:#fff;font-weight:700;font-size:13px;white-space:nowrap}
.fdc-dashboard-toggle-label::after{content:'+ Déplier'}
.fdc-dashboard-collapsible[open] .fdc-dashboard-toggle-label::after{content:'− Replier'}
@media(max-width:700px){.fdc-dashboard-collapse-actions{justify-content:flex-start}}

/* Consultation: existing values remain legible, with no editable controls. */
.fdc-readonly-fields{border:0;padding:0;margin:0;min-width:0}
[data-fdc-readonly-record] input:disabled,[data-fdc-readonly-record] select:disabled,[data-fdc-readonly-record] textarea:disabled{opacity:1;color:#173d50;background:#f3f7f9;cursor:default}
.fdc-readonly-notice{border-left:4px solid #195d82;background:#eaf4fa;color:#174f73}
.fdc-readonly [data-fdc-add-line],.fdc-readonly [data-fdc-remove-line]{display:none!important}

[data-fdc-readonly-record] input[type="submit"],[data-fdc-readonly-record] input[type="button"],[data-fdc-readonly-record] input[type="file"]{display:none!important}

.fdc-cash-delete-form{display:inline-block;margin:3px 0 3px 6px}
.fdc-cash-session-list td:last-child{white-space:nowrap}

.fdc-property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:14px}.fdc-property-grid label{display:flex;flex-direction:column;gap:6px}.fdc-property-grid input{width:100%;padding:8px;border:1px solid #cbd5e1;border-radius:5px}

/* Foyer du Cinéma — registre immobilier v0.1.3 */
.fdc-property-section{border:1px solid #d5e3ea;border-radius:9px;padding:15px 18px;margin:16px 0;background:#fbfdfe}
.fdc-property-section legend{font-weight:750;color:#17577b;padding:0 9px;font-size:16px}
.fdc-property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px;margin:12px 0 16px}
.fdc-property-grid label{display:flex;flex-direction:column;gap:6px;font-weight:600;min-width:0}
.fdc-property-grid input,.fdc-property-grid select{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #cbd5e1;border-radius:6px;background:white;color:#173c50}
.fdc-property-accordion>summary{font-size:17px;font-weight:700;color:#17577b;cursor:pointer;padding:12px 4px}
.fdc-property-accordion[open]>summary{margin-bottom:10px;border-bottom:1px solid #d5e3ea}
.fdc-property-success{padding:10px 15px;border-left:4px solid #247a55;background:#eaf7ef}
.fdc-property-help{color:#49667a;font-size:13px;line-height:1.5;padding:10px 14px}


/* Le Foyer du Cinema 0.1.4 - Contraste immobilier renforce, sans affecter les autres onglets */
.fdc-property-overview,.fdc-property-deadlines,.fdc-property-editor,.fdc-property-dossier{
  border:1px solid #bdcfdd!important;border-radius:12px!important;
  box-shadow:0 3px 12px rgba(22,55,81,.08)!important;
  background:#fff!important;margin-bottom:15px!important;
}
.fdc-property-overview{border-left:6px solid #2474a5!important;background:linear-gradient(90deg,#f3f9fd 0,#fff 22%)!important}
.fdc-property-deadlines{border-left:6px solid #c58a1b!important;background:linear-gradient(90deg,#fff8eb 0,#fff 25%)!important}
.fdc-property-dossier{border-left:6px solid #26806d!important}
.fdc-property-overview>h3,.fdc-property-deadlines>h3,.fdc-property-dossier>h3{
  color:#143e5c!important;font-weight:750!important;font-size:19px!important;
  padding-bottom:10px!important;border-bottom:1px solid #d4e0e9!important;
}
.fdc-property-editor{padding:16px!important;background:#f8fbfd!important}
.fdc-property-editor .fdc-property-accordion>summary{
  background:#dcebf5;color:#123e5d!important;border:1px solid #a8c7dc;
  border-radius:8px;padding:13px 16px!important;font-size:18px!important;
}
.fdc-property-editor .fdc-property-accordion[open]>summary{border-bottom:2px solid #74a5c7!important;margin-bottom:18px!important}
.fdc-property-section{position:relative;padding:20px 18px 17px!important;border:1.5px solid #b5cbdc!important;
  border-left:6px solid #1f699d!important;background:#f1f7fc!important;
  border-radius:10px!important;box-shadow:0 1px 4px rgba(20,55,80,.055);
  margin:20px 0 24px!important;min-width:0;
}
.fdc-property-section legend{font-weight:800!important;font-size:16px!important;line-height:1.35!important;
  padding:7px 13px!important;background:#dcecf8;color:#123c5a!important;
  border:1px solid #aac7dd;border-radius:7px;
}
.fdc-property-section:nth-of-type(2){border-left-color:#23856f!important;background:#eff9f5!important;border-color:#b5d9cb!important}
.fdc-property-section:nth-of-type(2) legend{background:#d9f0e7;color:#145442!important;border-color:#9ecdb8!important}
.fdc-property-section:nth-of-type(3){border-left-color:#c27a23!important;background:#fff8ee!important;border-color:#e7cba7!important}
.fdc-property-section:nth-of-type(3) legend{background:#ffebce;color:#704008!important;border-color:#dfba83!important}
.fdc-property-section:nth-of-type(4){border-left-color:#7959a7!important;background:#f7f3fc!important;border-color:#d1c3e4!important}
.fdc-property-section:nth-of-type(4) legend{background:#ece3f8;color:#533777!important;border-color:#c2afe0!important}
.fdc-property-section:nth-of-type(5){border-left-color:#347ba1!important;background:#eff7fa!important;border-color:#b5d2df!important}
.fdc-property-section:nth-of-type(5) legend{background:#deedf6;color:#1c5372!important;border-color:#a5cbdc!important}
.fdc-property-grid{gap:16px 13px!important}
.fdc-property-grid label,.fdc-property-observations{font-weight:700!important;color:#193b52!important;line-height:1.35!important}
.fdc-property-grid input,.fdc-property-grid select,.fdc-property-grid textarea,.fdc-property-observations textarea{
  background:#fff!important;color:#132f42!important;border:1.5px solid #a5bdce!important;
  border-radius:7px!important;min-height:39px!important;padding:9px 11px!important;
  box-shadow:0 1px 2px rgba(24,53,72,.05)!important;
}
.fdc-property-grid input:hover,.fdc-property-grid select:hover,.fdc-property-grid textarea:hover,.fdc-property-observations textarea:hover{border-color:#5686a6!important}
.fdc-property-grid input:focus,.fdc-property-grid select:focus,.fdc-property-grid textarea:focus,.fdc-property-observations textarea:focus{
  outline:3px solid rgba(40,120,174,.20)!important;outline-offset:1px!important;
  border-color:#1e6c9d!important;box-shadow:0 0 0 1px #1e6c9d!important;
}
.fdc-property-observations{display:block;margin:18px 0 14px!important;padding:15px!important;
  background:#edf1f5;border-left:6px solid #647b8b;border-radius:9px}
.fdc-property-observations textarea{display:block;width:100%;box-sizing:border-box;margin-top:9px}
.fdc-property-editor button.fdc-primary,.fdc-property-dossier button.fdc-primary{
  background:#115d86!important;border:1px solid #0e4969!important;color:#fff!important;
  min-height:44px!important;font-weight:750!important;font-size:15px!important;
  border-radius:7px!important;box-shadow:0 3px 7px rgba(9,68,100,.16)!important;
}
.fdc-property-editor button.fdc-primary:hover,.fdc-property-dossier button.fdc-primary:hover{background:#0b4769!important}
.fdc-property-editor button.fdc-primary:focus-visible,.fdc-property-dossier button.fdc-primary:focus-visible{outline:3px solid #f2ad3b!important;outline-offset:3px!important}
.fdc-property-overview .fdc-table th,.fdc-property-deadlines .fdc-table th,.fdc-property-dossier .fdc-table th{background:#dfeef7!important;color:#123f5d!important}
.fdc-property-overview .fdc-table tr:nth-child(even),.fdc-property-deadlines .fdc-table tr:nth-child(even),.fdc-property-dossier .fdc-table tr:nth-child(even){background:#f1f6fa!important}
@media(max-width:720px){.fdc-property-section{padding:14px 12px!important}.fdc-property-section legend{font-size:14px!important}.fdc-property-grid{grid-template-columns:1fr!important}}
