/* Même arrière-plan AFMPro sur l'ensemble de l'application. */
html,body{min-height:100%;background:#f4f8f4 url("assets/afmpro-background.png") center/cover fixed no-repeat}
/* En-tête d’identité commun ; seule l’ancienne barre d’actions redondante est masquée. */
.app main>header.application-header{display:block!important;min-height:108px!important;height:auto!important;padding:0 36px!important;margin-bottom:22px!important}
.application-header .application-identity{display:flex!important;min-height:108px!important;border-bottom:0!important}
.application-header .current-view-heading,.application-header .header-actions{display:none!important}
.app main{padding-top:0!important}
.candidate-complete-wrap{overflow:auto!important;max-width:100%}
.candidate-complete-table{min-width:2200px}
.candidate-complete-table th,.candidate-complete-table td{white-space:nowrap;vertical-align:middle}
.candidate-complete-table .candidate-info-cell{white-space:normal;min-width:280px;max-width:420px;line-height:1.35}
.candidate-complete-table .sticky-actions{position:sticky;right:0;background:rgba(255,255,255,.97);box-shadow:-8px 0 14px rgba(7,122,4,.07)}
.candidate-complete-table thead th:last-child{position:sticky;right:0;z-index:3;background:#077A04}

/* La liste des non intéressés est plus courte : ne pas lui appliquer la largeur 2200 px
   ni l'en-tête Actions flottant prévus pour le tableau complet des candidats. */
#rejectedView .candidate-complete-table.rejected-table{width:100%!important;min-width:1080px!important;table-layout:fixed!important}
#rejectedView .rejected-table thead th:last-child{position:static!important;right:auto!important;z-index:auto!important}
#rejectedView .rejected-table th,#rejectedView .rejected-table td{padding:6px 7px!important;height:48px!important}
#rejectedView .rejected-table-wrap{overflow:auto!important;max-height:calc(100vh - 315px)!important}

/* Tableaux complets candidats/étudiants sans largeur excessive ni colonne flottante. */
#candidatesView .candidate-complete-table,#studentsView .candidate-complete-table{width:100%!important;min-width:1480px!important;table-layout:fixed!important;font-size:10px!important}
#candidatesView .candidate-complete-wrap,#studentsView .candidate-complete-wrap{width:100%!important;max-width:100%!important;max-height:calc(100vh - 315px)!important;overflow:auto!important;scrollbar-gutter:auto!important;padding-left:0!important}
#candidatesView .candidate-complete-table th,#candidatesView .candidate-complete-table td,#studentsView .candidate-complete-table th,#studentsView .candidate-complete-table td{height:46px!important;padding:6px 7px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
#candidatesView .candidate-complete-table thead th:last-child,#studentsView .candidate-complete-table thead th:last-child{position:static!important;right:auto!important;z-index:auto!important}
#candidatesView .candidate-complete-table .sticky-actions,#studentsView .candidate-complete-table .sticky-actions{position:static!important;right:auto!important;box-shadow:none!important}
#candidatesView .candidate-complete-table th:nth-child(1),#studentsView .candidate-complete-table th:nth-child(1){width:12%}
#candidatesView .candidate-complete-table th:nth-child(2),#candidatesView .candidate-complete-table th:nth-child(3),#studentsView .candidate-complete-table th:nth-child(2),#studentsView .candidate-complete-table th:nth-child(3){width:7%}
#candidatesView .candidate-complete-table th:nth-child(4),#studentsView .candidate-complete-table th:nth-child(4){width:7%}
#candidatesView .candidate-complete-table th:nth-child(5),#studentsView .candidate-complete-table th:nth-child(5){width:10%}
#candidatesView .candidate-complete-table th:nth-child(6),#studentsView .candidate-complete-table th:nth-child(6){width:8%}
#candidatesView .candidate-complete-table th:nth-child(7),#studentsView .candidate-complete-table th:nth-child(7){width:8%}
#candidatesView .candidate-complete-table th:nth-child(8),#studentsView .candidate-complete-table th:nth-child(8){width:5%}
#candidatesView .candidate-complete-table th:nth-child(9),#studentsView .candidate-complete-table th:nth-child(9){width:9%}
#candidatesView .candidate-complete-table th:nth-child(10),#studentsView .candidate-complete-table th:nth-child(10){width:8%}
#candidatesView .candidate-complete-table th:nth-child(11),#studentsView .candidate-complete-table th:nth-child(11){width:8%}
#candidatesView .candidate-complete-table th:nth-child(12),#studentsView .candidate-complete-table th:nth-child(12){width:11%}
#candidatesView .candidate-complete-table th:nth-child(13),#studentsView .candidate-complete-table th:nth-child(13){width:5%}
#candidatesView .candidate-complete-table th:nth-child(14),#studentsView .candidate-complete-table th:nth-child(14){width:11%}
#candidatesView .candidate-row-actions,#studentsView .candidate-row-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important}
#candidatesView .candidate-row-actions button,#studentsView .candidate-row-actions button{min-width:0!important;padding:6px 7px!important;font-size:10px!important;border-radius:7px!important}
.candidate-filters{align-items:center}
.candidate-count{margin-left:auto;padding:10px 14px;border:1px solid #077A04;border-radius:12px;color:#077A04;font-weight:800;background:rgba(255,255,255,.9)}
.people-print-heading{display:none}
.past-exchanges-wrap{margin-top:12px;max-height:360px;overflow:auto!important}
.past-exchanges-table{min-width:1050px}
.past-exchanges-table th{position:sticky;top:0;z-index:2;background:#077A04!important;color:#fff!important}
.past-exchanges-table td{vertical-align:top;white-space:nowrap}
.past-exchanges-table .exchange-note-cell{min-width:280px;max-width:440px;white-space:normal;line-height:1.4}
.exchange-status-cell{display:block;border-left:5px solid #077A04;padding-left:8px;font-weight:700}
.detail-information{grid-column:span 2}
@media print{
 .app main>header.application-header{display:none!important}
 .print-brand{display:flex!important}
 .people-print-heading{display:block!important;text-align:center;margin:0 0 10px;padding:7px 10px;border:1px solid #077A04;color:#077A04;font-size:14px;font-weight:900}
 .candidate-filters{display:none!important}
 .candidate-complete-table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:6.5px!important}
 .candidate-complete-table th,.candidate-complete-table td{white-space:normal!important;word-break:break-word;padding:3px!important}
 .candidate-complete-table th:last-child,.candidate-complete-table td:last-child{display:none!important}
 .candidate-complete-table .sticky-actions{position:static!important;box-shadow:none!important}
 .past-exchanges-wrap{max-height:none!important;overflow:visible!important}.past-exchanges-table{min-width:0!important;font-size:7px!important}.candidate-detail-actions{display:none!important}
}
.app main{
  background-image:linear-gradient(rgba(247,251,247,.72),rgba(247,251,247,.72)),url("assets/afmpro-background.png")!important;
  background-position:center!important;
  background-size:cover!important;
  background-attachment:fixed!important;
  background-repeat:no-repeat!important;
}
.app main>header.application-header{
  background-image:linear-gradient(rgba(255,255,255,.88),rgba(255,255,255,.88)),url("assets/afmpro-background.png")!important;
  background-position:center 18%!important;
  background-size:cover!important;
}
.view,.settings-grid,#dashboardView,#candidatesView,#studentsView,#agendaView,#usersView,#settingsView{background:transparent!important}
.card,.settings-card,.agenda-card,.table-wrap,.rights-toolbar,.rights-table-wrap{background-color:rgba(255,255,255,.90)!important;backdrop-filter:blur(1.5px)}
.afm-planner-shell{
  background-image:linear-gradient(rgba(255,255,255,.68),rgba(255,255,255,.68)),url("assets/afmpro-background.png")!important;
  background-position:center!important;
  background-size:cover!important;
  background-attachment:fixed!important;
}
.modal{background-image:linear-gradient(rgba(3,39,8,.55),rgba(3,39,8,.55)),url("assets/afmpro-background.png")!important;background-position:center!important;background-size:cover!important}
.modal-card{background-image:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.92)),url("assets/afmpro-background.png")!important;background-position:center!important;background-size:cover!important}
.login-form-side,.login-card{background-image:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.92)),url("assets/afmpro-background.png")!important;background-position:center!important;background-size:cover!important}
@media print{html,body,.app main,.modal-card{background:#fff!important}.card,.settings-card,.agenda-card,.table-wrap{background:#fff!important;backdrop-filter:none!important}}

/* Les impressions doivent contenir toutes les lignes, pas seulement la zone visible. */
@media print{
  #candidatesView,#studentsView,#rejectedView{width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
  #candidatesView.hidden,#studentsView.hidden,#rejectedView.hidden{display:none!important}
  #candidatesView .candidate-complete-wrap,#studentsView .candidate-complete-wrap,#rejectedView .candidate-complete-wrap,#rejectedView .rejected-table-wrap{display:block!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto!important}
  #candidatesView .candidate-complete-table,#studentsView .candidate-complete-table,#rejectedView .candidate-complete-table,#rejectedView .rejected-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  #candidatesView tbody,#studentsView tbody,#rejectedView tbody{display:table-row-group!important}
  #candidatesView tr,#studentsView tr,#rejectedView tr{display:table-row!important;break-inside:avoid!important;page-break-inside:avoid!important}
  #candidatesView th,#candidatesView td,#studentsView th,#studentsView td,#rejectedView th,#rejectedView td{display:table-cell!important}
  #candidatesView th:last-child,#candidatesView td:last-child,#studentsView th:last-child,#studentsView td:last-child,#rejectedView th:last-child,#rejectedView td:last-child{display:none!important}
}
