/* Beta 18 : actions d'administration et cloture de chasse */
.topbar{height:auto;min-height:74px;padding-top:8px;padding-bottom:8px;gap:18px}
.brand{flex:none;flex-wrap:wrap}
.header-reset{min-height:34px;padding:5px 8px!important;font-size:11px!important;background:#8d3f2f!important;border-color:#8d3f2f!important;color:#fff!important}
.header-reset::before{width:18px!important;min-width:18px!important;height:18px!important;background-size:18px 18px!important}
.top-actions{min-width:0;flex:1;justify-content:flex-end;flex-wrap:wrap}
.top-actions .local-state{margin-right:auto}
.top-actions .top-closure{background:#b84242!important;border-color:#b84242!important;color:#fff!important}
.top-actions .action-accounts{background:#314c6b!important;border-color:#314c6b!important;color:#fff!important}
.top-actions .action-kiosk,.top-actions .action-scan,.top-actions .action-back{background:#1c5d54!important;border-color:#1c5d54!important;color:#fff!important}
.page-heading{align-items:start;display:grid;grid-template-columns:minmax(190px,.34fr) minmax(650px,1fr);gap:24px}
.heading-actions.action-sectors{display:grid;grid-template-columns:1fr;gap:10px;width:100%;min-width:0}
.action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.action-row .button{width:100%;min-height:48px;white-space:normal;line-height:1.2}
.action-row-broadcast .action-display{background:#176d78!important;border-color:#176d78!important;color:#fff!important}
.action-row-broadcast .action-scan-target{background:#245873!important;border-color:#245873!important;color:#fff!important}
.action-row-management .action-add{background:#17695d!important;border-color:#17695d!important;color:#fff!important}
.action-row-management .action-replace{background:#536a63!important;border-color:#536a63!important;color:#fff!important}
.action-row-management .action-beaters{background:#8a6714!important;border-color:#8a6714!important;color:#fff!important}
.action-cancel-registration,.action-close-hunt,.action-individual,.action-accounts,.action-whatsapp,.document-preview-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.action-cancel-registration,.action-close-hunt,.document-preview-danger{color:#fff!important;background:var(--rose)!important;border-color:var(--rose)!important}
.action-close-hunt{background:#8c3028;border-color:#8c3028}
.action-individual{color:#fff!important;background:#314c6b!important;border-color:#314c6b!important}
.action-accounts{color:#fff!important;background:var(--pine)!important;border-color:var(--pine)!important}
.action-whatsapp{color:#536368;background:#e4e9e7;border-color:#c4ceca;cursor:not-allowed;opacity:.58}
.action-cancel-registration::before,.action-close-hunt::before,.action-individual::before,.action-accounts::before,.action-whatsapp::before,.document-preview-danger::before{content:"";width:20px;height:20px;flex:0 0 20px;background:currentColor;mask:center/20px 20px no-repeat;-webkit-mask:center/20px 20px no-repeat}
.action-cancel-registration::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;background-image:none!important;background-color:currentColor!important}
.action-close-hunt::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v14H4zM8 3v4M16 3v4M4 9h16M9 14l2 2 4-4' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v14H4zM8 3v4M16 3v4M4 9h16M9 14l2 2 4-4' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;background-image:none!important;background-color:currentColor!important}
.action-individual::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.5' fill='none' stroke='black' stroke-width='2.1'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.5' fill='none' stroke='black' stroke-width='2.1'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;background-image:none!important;background-color:currentColor!important}
.action-accounts::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;background-image:none!important;background-color:currentColor!important}
.action-gate::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V4h11v17M8 12h.01M15 12h6M18 9l3 3-3 3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/21px 21px no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V4h11v17M8 12h.01M15 12h6M18 9l3 3-3 3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/21px 21px no-repeat!important;background-image:none!important;background-color:currentColor!important}
.action-scan-target::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='14' r='3.5' fill='none' stroke='black' stroke-width='2.1'/%3E%3C/svg%3E") center/21px 21px no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='14' r='3.5' fill='none' stroke='black' stroke-width='2.1'/%3E%3C/svg%3E") center/21px 21px no-repeat!important;background-image:none!important;background-color:currentColor!important}
/* SVG directs : compatibles avec les anciennes regles d'icones et WebKit. */
.action-close-hunt::before{mask:none!important;-webkit-mask:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM8 3v4M16 3v4M4 9h16M9 14l2 2 4-4'/%3E%3C/svg%3E")!important;background-size:20px 20px!important}
.action-accounts::before{mask:none!important;-webkit-mask:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E")!important;background-size:20px 20px!important}
.action-individual::before{mask:none!important;-webkit-mask:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0'/%3E%3C/svg%3E")!important;background-size:20px 20px!important}
.action-cancel-registration::before{mask:none!important;-webkit-mask:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")!important;background-size:20px 20px!important}
.action-scan-target::before{mask:none!important;-webkit-mask:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.1' stroke-linejoin='round'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z'/%3E%3Ccircle cx='12' cy='14' r='3.5'/%3E%3C/svg%3E")!important;background-size:21px 21px!important}
.action-gate::before{mask:none!important;-webkit-mask:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2310231f' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4h11v17M8 12h.01M15 12h6M18 9l3 3-3 3'/%3E%3C/svg%3E")!important;background-size:21px 21px!important}
.action-gate.is-open::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4h11v17M8 12h.01M15 12h6M18 9l3 3-3 3'/%3E%3C/svg%3E")!important}
.action-whatsapp::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-11.8 7L4 20l1.5-4.1A8 8 0 1 1 20 11.5Z'/%3E%3Cpath d='M8.5 8.5c.3 2.3 2.7 4.7 5 5l1.2-1.2'/%3E%3C/svg%3E")}
.document-preview-danger::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 14h8l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E")}
.closure-dialog{width:min(820px,calc(100% - 24px));max-height:calc(100vh - 32px);overflow:auto}
.closure-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(250px,.9fr);gap:18px}
.closure-participant-list{display:grid;gap:8px;max-height:330px;overflow:auto;padding-right:3px}
.closure-person{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 12px;background:#f2f6f4;border:1px solid #d1dddd;color:var(--ink)}
.closure-person input{width:20px;height:20px;accent-color:var(--pine);flex:none}.closure-person strong{display:block}.closure-person small{display:block;color:var(--muted)}
.closure-person.is-excluded{background:#fff8f7;border-color:#e2b9b5;color:#7b3832}.closure-person.is-excluded small{color:#9a625d}
.closure-fields{display:grid;gap:11px}.closure-fields label{display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:700}.closure-fields input,.closure-fields textarea,.closure-fields select{width:100%;border:1px solid #bac6c5;background:#fff;color:var(--ink);font:inherit;border-radius:3px;padding:10px 11px}.closure-fields input,.closure-fields select{height:48px}.closure-fields textarea{min-height:92px;resize:vertical}
.closure-warning{margin:16px 0 0;padding:11px 12px;background:#fff0c9;border-left:4px solid #b98927;color:#5d4819;font-weight:650}
.closure-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:20px}
.document-preview-danger{min-height:40px;padding:7px 10px}.document-preview-danger:hover{background:#8c3028;border-color:#8c3028}
.action-cancel-registration:hover,.action-close-hunt:hover{filter:brightness(.93)}
.button:focus-visible,.icon-button:focus-visible,.closure-person:focus-within{outline:3px solid var(--lime);outline-offset:2px}
.button:disabled,.button[aria-disabled="true"],.action-whatsapp:disabled{filter:none;box-shadow:none}
.private-summary-card{position:relative}.summary-grid .private-summary-card:nth-child(4){padding-right:48px}
.summary-eye{position:absolute;right:12px;top:10px;width:32px;height:32px;border:0;background:transparent;color:var(--pine);cursor:pointer;padding:0}
.summary-eye::before{content:"";display:block;width:22px;height:22px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z' fill='none' stroke='black' stroke-width='2.1'/%3E%3Ccircle cx='12' cy='12' r='2.7' fill='none' stroke='black' stroke-width='2.1'/%3E%3C/svg%3E") center/22px 22px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z' fill='none' stroke='black' stroke-width='2.1'/%3E%3Ccircle cx='12' cy='12' r='2.7' fill='none' stroke='black' stroke-width='2.1'/%3E%3C/svg%3E") center/22px 22px no-repeat}
.summary-eye.is-hidden::after{content:"";position:absolute;width:25px;height:2px;left:4px;top:15px;background:var(--rose);transform:rotate(-42deg);transform-origin:center}
.summary-eye:focus-visible{outline:3px solid var(--lime);outline-offset:1px}
@media(max-width:1180px){.page-heading{grid-template-columns:1fr}.top-actions .local-state{width:100%;text-align:right;margin:0}}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  .topbar{align-items:stretch;flex-direction:column;height:auto;gap:9px}
  .brand{min-width:0}
  .brand{width:100%}.header-reset{margin-left:auto}
  .top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}
  .top-actions .local-state{grid-column:1/-1;text-align:left}
  .top-actions .button{width:100%;min-width:0;white-space:normal;line-height:1.2}
  .top-actions .action-back{display:inline-flex}
  .heading-actions.action-sectors{display:grid;grid-template-columns:1fr;width:100%;gap:8px}
  .action-row{grid-template-columns:1fr}
  .page-heading{display:grid;gap:14px;width:100%}
  .app-shell,.filters,.summary-grid,.workspace,.list-area,.table-frame,.details-panel{min-width:0;max-width:100%}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-frame{width:100%;overflow-x:auto}
  .closure-dialog{padding:16px;width:min(100% - 16px,620px)}
  .closure-grid{grid-template-columns:1fr;gap:14px}
  .closure-participant-list{max-height:none}
  .closure-actions{display:grid;grid-template-columns:1fr}
  .closure-actions .button{width:100%}
  .action-cancel-registration,.action-close-hunt,.action-individual,.action-accounts,.action-whatsapp{min-height:46px}
}
@media(max-width:430px){.top-actions{grid-template-columns:1fr}.top-actions .local-state{grid-column:1}.summary-grid article:last-child{grid-column:1/-1}}
@media print{.closure-dialog,.closure-warning,.closure-actions,.document-preview-danger,.action-cancel-registration,.action-close-hunt,.action-individual,.action-accounts,.action-whatsapp{display:none!important}}
