/* 11A-8.15.61 · Dépenses, modèles et justificatifs. */
.cc-expense-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:12px 0 22px
}

.cc-expense-intro h3 {
  font-size:21px;
  margin:6px 0 8px
}

.cc-expense-intro p {
  font-size:13px;
  color:var(--muted,#64748b);
  margin:0;
  line-height:1.6
}

.cc-expense-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:20px
}

.cc-expense-summary>.card {
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:20px;
  border-radius:14px;
  box-shadow:none
}

.cc-expense-summary span {
  font-size:12px;
  color:#64748b
}

.cc-expense-summary strong {
  font-size:23px;
  color:#334155
}

.cc-expense-summary small {
  font-size:11px;
  color:#64748b
}

.cc-expense-summary>.is-pending {
  background:#fffbeb;
  border-color:#fde68a
}

.cc-expense-summary>.is-pending strong {
  color:#b45309
}

.cc-expense-filter {
  display:flex;
  gap:12px;
  padding:14px;
  margin-bottom:20px;
  border-radius:12px;
  box-shadow:none
}

.cc-expense-filter>label {
  flex:1;
  position:relative;
  min-width:150px
}

.cc-expense-filter>label svg {
  position:absolute;
  left:11px;
  top:12px;
  width:16px;
  height:16px;
  color:#94a3b8
}

.cc-expense-filter input,.cc-expense-filter select {
  min-height:40px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#fff;
  font:inherit;
  font-size:12px;
  padding:8px 12px;
  color:#475569;
  min-width:0
}

.cc-expense-filter input {
  width:100%;
  padding-left:36px
}

.cc-expense-filter select {
  max-width:230px
}

.cc-expense-section {
  padding:22px;
  border-radius:15px;
  margin-bottom:20px;
  box-shadow:none
}

.cc-expense-section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px
}

.cc-expense-section-heading h3 {
  font-size:16px;
  display:flex;
  align-items:center;
  gap:9px;
  margin:0
}

.cc-expense-section-heading svg {
  width:19px;
  color:#64748b
}

.cc-expense-section-heading p {
  font-size:12px;
  color:#64748b;
  line-height:1.6;
  margin:7px 0 0
}

.cc-expense-section-heading>span {
  font-size:12px;
  color:#94a3b8
}

.cc-expense-table-head,.cc-expense-row {
  display:grid;
  grid-template-columns:minmax(220px,1fr) 95px 120px 120px 80px;
  gap:16px;
  align-items:center
}

.cc-expense-table-head {
  color:#94a3b8;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:0 0 12px;
  border-bottom:1px solid #e2e8f0
}

.cc-expense-row {
  padding:18px 0;
  border-bottom:1px solid #edf2f7;
  font-size:12px
}

.cc-expense-row:last-child {
  border-bottom:0;
  padding-bottom:0
}

.cc-expense-identity {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0
}

.cc-expense-identity>div {
  min-width:0
}

.cc-expense-identity strong {
  font-size:13px;
  display:block;
  overflow-wrap:anywhere
}

.cc-expense-identity small {
  display:block;
  font-size:11px;
  color:#64748b;
  margin:5px 0;
  overflow-wrap:anywhere;
  line-height:1.5
}

.cc-expense-icon {
  flex-shrink:0;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#f1f5f9;
  color:#64748b
}

.cc-expense-icon svg {
  width:18px
}

.cc-expense-tags {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}

.cc-expense-tags>span {
  display:inline-flex;
  gap:4px;
  align-items:center;
  font-size:10px;
  color:#64748b;
  background:#f8fafc;
  padding:3px 6px;
  border-radius:5px
}

.cc-expense-tags svg {
  width:11px;
  height:11px
}

.cc-expense-payer {
  color:#475569;
  overflow-wrap:anywhere
}

.cc-expense-amount {
  text-align:right;
  color:#334155;
  white-space:nowrap
}

.cc-expense-amount small {
  display:block;
  font-size:10px;
  color:#94a3b8;
  font-weight:400;
  margin-top:5px
}

.cc-expense-table-head>span:nth-child(4) {
  text-align:right
}

.cc-expense-actions {
  display:flex;
  justify-content:flex-end;
  gap:4px
}

.cc-expense-actions .btn-icon,.cc-model-actions .btn-icon {
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px
}

.cc-model-row {
  display:flex;
  align-items:center;
  gap:14px;
  border-bottom:1px solid #edf2f7;
  padding:18px 0
}

.cc-model-row:last-child {
  border-bottom:0;
  padding-bottom:0
}

.cc-model-identity {
  flex:1;
  min-width:0
}

.cc-model-identity>strong {
  font-size:13px;
  display:block;
  overflow-wrap:anywhere
}

.cc-model-identity>small {
  font-size:11px;
  color:#64748b;
  display:block;
  margin:5px 0
}

.cc-model-state {
  font-size:10px;
  color:#64748b;
  background:#f1f5f9;
  display:inline-block;
  padding:4px 7px;
  border-radius:5px
}

.cc-model-state.is-pending {
  color:#b45309;
  background:#fef3c7
}

.cc-model-amount {
  text-align:right;
  white-space:nowrap
}

.cc-model-amount strong {
  font-size:13px
}

.cc-model-amount small {
  display:block;
  margin-top:5px;
  font-size:10px;
  color:#94a3b8
}

.cc-model-actions {
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:10px
}

.cc-model-actions .btn-secondary {
  font-size:11px;
  min-height:34px;
  padding:7px 10px
}

.cc-expense-empty {
  font-size:13px;
  color:#94a3b8;
  text-align:center;
  padding:24px
}

.cc-expense-editor {
  max-width:920px;
  margin:0 auto 24px;
  padding:25px;
  border-radius:15px;
  border:1px solid #c7d2fe;
  scroll-margin-top:90px
}

.cc-expense-fields {
  border:0;
  margin:20px 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px
}

.cc-expense-fields textarea {
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:10px;
  font:inherit;
  font-size:13px;
  resize:vertical;
  background:#fff;
  color:#334155
}

.cc-expense-fields label {
  position:relative
}

.cc-field-optional {
  color:#94a3b8;
  font-size:10px;
  position:absolute;
  right:0;
  top:0;
  font-weight:400
}

.cc-expense-vat {
  color:#64748b;
  font-size:12px;
  background:#f8fafc;
  padding:11px 13px;
  border-radius:8px;
  line-height:1.5
}

.cc-expense-notice {
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  padding:13px 15px;
  border-radius:10px;
  line-height:1.6
}

.cc-expense-notice svg {
  width:18px;
  flex-shrink:0;
  margin-top:1px;
  color:#6366f1
}

.cc-expense-fields input:read-only {
  background:#f8fafc
}

.cc-expense-documents {
  border-top:1px solid #e2e8f0;
  padding-top:20px;
  margin-top:22px
}

.cc-expense-documents .cc-config-section-title {
  align-items:flex-start
}

.cc-expense-documents .cc-config-section-title>small {
  font-size:10px;
  color:#94a3b8;
  line-height:1.5
}

.cc-receipts-list>div {
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid #edf2f7;
  font-size:12px
}

.cc-receipts-list>div>svg {
  width:16px;
  color:#94a3b8;
  flex-shrink:0
}

.cc-receipt-name {
  flex:1;
  min-width:0;
  text-align:left;
  background:none;
  border:0;
  color:#2563eb;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  overflow-wrap:anywhere;
  padding:5px 0
}

.cc-receipts-list small {
  font-size:10px;
  color:#94a3b8;
  white-space:nowrap
}

.cc-expense-empty-doc {
  font-size:12px;
  color:#94a3b8;
  margin:10px 0 15px
}

.cc-receipt-picker {
  border:1px dashed #c7d2fe;
  background:#f8faff;
  color:#4f46e5;
  padding:15px;
  border-radius:10px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  font-size:12px;
  cursor:pointer
}

.cc-receipt-picker svg {
  width:18px
}

.cc-receipt-picker input {
  font-size:11px;
  max-width:100%;
  flex-basis:100%;
  border:0;
  background:none;
  padding:0
}

.cc-receipt-pending {
  font-size:11px;
  color:#64748b;
  line-height:1.6;
  overflow-wrap:anywhere;
  margin-top:8px
}

.cc-expense-categories {
  padding:22px;
  margin-top:20px;
  border-radius:15px;
  box-shadow:none
}

.cc-expense-categories .cc-config-section-title p {
  font-size:12px;
  color:#64748b;
  margin:8px 0;
  line-height:1.5
}

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

.cc-category-card {
  display:flex;
  gap:9px;
  align-items:center;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  padding:13px;
  text-align:left;
  font:inherit;
  font-size:12px;
  color:#475569;
  cursor:pointer
}

.cc-category-card>svg {
  width:17px;
  height:17px;
  flex-shrink:0;
  color:#94a3b8
}

.cc-category-card>svg:last-child {
  margin-left:auto;
  width:13px
}

.cc-category-card span {
  overflow-wrap:anywhere
}

.cc-category-card small {
  font-size:9px;
  color:#94a3b8;
  margin-left:auto
}

.cc-category-editor {
  max-width:600px;
  margin:20px auto 0;
  padding:20px;
  border:1px solid #c7d2fe;
  border-radius:12px;
  display:grid;
  gap:16px
}

.cc-category-archive {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap
}

.cc-category-archive small {
  font-size:11px;
  color:#94a3b8;
  flex-basis:100%
}

.cc-category-archive input {
  width:16px;
  min-width:16px;
  height:16px;
  min-height:16px;
  accent-color:#6366f1
}

.cc-expense-editor input:focus-visible,.cc-expense-editor textarea:focus-visible,.cc-expense-editor select:focus-visible {
  outline:2px solid #818cf8;
  outline-offset:2px
}

@media(max-width:1000px) {
  .cc-expense-table-head,.cc-expense-row {
    grid-template-columns:minmax(170px,1fr) 85px 90px 100px 80px;
    gap:10px
  }
  .cc-model-row {
    flex-wrap:wrap
  }
  .cc-model-actions {
    margin-left:auto
  }
  .cc-model-identity {
    min-width:140px
  }
}

@media(max-width:700px) {
  .cc-expense-summary {
    grid-template-columns:1fr;
    gap:9px
  }
  .cc-expense-summary>.card {
    padding:15px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:7px
  }
  .cc-expense-summary strong {
    font-size:20px;
    grid-row:1/3;
    grid-column:2;
    align-self:center
  }
  .cc-expense-filter {
    flex-wrap:wrap;
    padding:12px;
    gap:8px
  }
  .cc-expense-filter>label {
    flex-basis:100%
  }
  .cc-expense-filter select {
    flex:1;
    width:100px;
    max-width:none
  }
  .cc-expense-table-head {
    display:none
  }
  .cc-expense-row {
    grid-template-columns:1fr auto;
    gap:10px;
    padding:17px 0
  }
  .cc-expense-identity {
    grid-column:1/-1
  }
  .cc-expense-row>time {
    grid-column:1;
    font-size:11px;
    color:#94a3b8
  }
  .cc-expense-payer {
    grid-column:1;
    font-size:11px;
    grid-row:3
  }
  .cc-expense-amount {
    grid-column:2;
    grid-row:2;
    font-size:14px
  }
  .cc-expense-actions {
    grid-column:2;
    grid-row:3
  }
  .cc-expense-intro {
    flex-direction:column;
    align-items:flex-start
  }
  .cc-expense-intro h3 {
    font-size:18px
  }
  .cc-expense-section {
    padding:17px
  }
  .cc-expense-section-heading {
    flex-wrap:wrap
  }
  .cc-model-actions {
    width:100%;
    margin-left:0;
    justify-content:flex-end
  }
  .cc-expense-fields {
    grid-template-columns:1fr
  }
  .cc-expense-editor {
    padding:17px
  }
  .cc-expense-documents .cc-config-section-title {
    flex-direction:column;
    gap:6px
  }
  .cc-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .cc-category-card {
    padding:12px;
    font-size:11px
  }
  .cc-expense-categories {
    padding:17px
  }
}

@media(max-width:700px) {
  #main-content .list-operations-page > .list-page-header:has(.charges-page-actions) {
    flex-direction:column;
    align-items:flex-start;
  }
  #main-content .list-operations-page > .list-page-header:has(.charges-page-actions) .charges-page-actions {
    width:100%;
    margin-left:0;
    display:flex;
    justify-content:flex-start;
  }
  #main-content .list-operations-page > .list-page-header:has(.charges-page-actions) .charges-page-actions > button {
    width:auto;
    flex:0 1 auto;
    min-width:0;
  }
}
