:root{font-family:Inter,Arial,sans-serif;color:#17212b;background:#f4f6f8}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}aside{width:240px;background:#123b2a;color:#fff;padding:26px 16px}.brand{font-size:24px;font-weight:800;padding:8px 12px 32px}.brand-logo{width:42px;height:42px;object-fit:contain;vertical-align:middle;margin-right:8px}.brand span{display:inline-block;font-size:11px;letter-spacing:3px;color:#b9d6c7;margin-top:4px;vertical-align:middle}nav button{width:100%;border:0;background:transparent;color:#dcebe4;text-align:left;padding:14px 12px;border-radius:9px;font-size:15px;cursor:pointer;margin:3px 0;display:flex;align-items:center;justify-content:flex-start;gap:7px}.nav-badge{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:12px;font-weight:800;align-items:center;justify-content:center;margin-left:auto}.pending-alert{margin:-10px 0 24px;padding:13px 16px;border:1px solid #f59e0b;background:#fff7ed;color:#9a3412;border-radius:10px;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.pending-alert button{border:1px solid #f59e0b;background:#fff;color:#9a3412;border-radius:7px;padding:7px 11px;font-weight:700;cursor:pointer}nav button:hover,nav button.active{background:#1d5a40;color:#fff}main{flex:1;padding:28px 34px;overflow:auto}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}h1{margin:0;font-size:30px}header p{margin:6px 0;color:#71808c}.primary{background:#17633f;color:white;border:0;border-radius:8px;padding:11px 16px;font-weight:700;cursor:pointer}.btn{border:1px solid #d5dce1;border-radius:8px;padding:9px 13px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;background:#fff;color:#344054;transition:.15s}.btn:hover{filter:brightness(.97);transform:translateY(-1px)}.btn.primary{background:#17633f;color:#fff;border-color:#17633f}.btn.secondary{background:#fff;color:#344054}.header-actions{display:flex;align-items:center;gap:10px}.usuario-logado{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;line-height:1.25;min-width:190px;font-size:13px;color:#52606b}.usuario-logado strong{font-size:14px;color:#17212b}.usuario-logado span{font-size:12px;color:#71808c}.actions{display:flex;align-items:center;gap:10px}.sortbtn{border:0;background:transparent;color:#687681;font:inherit;font-weight:700;cursor:pointer;padding:0}.sortbtn:hover{color:#17633f}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.panel{background:#fff;border:1px solid #e1e6ea;border-radius:12px;padding:22px;box-shadow:0 2px 8px #00000008}.card small{color:#77838c}.number{font-size:34px;font-weight:800;margin-top:8px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search{padding:11px 14px;border:1px solid #d5dce1;border-radius:8px;flex:1}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}.table th,.table td{padding:14px;text-align:left;border-bottom:1px solid #edf0f2;font-size:14px}.table th{background:#f8fafb;color:#687681}.badge{padding:5px 9px;border-radius:99px;font-size:12px;font-weight:700;background:#e5f4ec;color:#17633f}.badge.off{background:#f5e7e7;color:#a33}.empty{padding:45px;text-align:center;color:#77838c}.modal{position:fixed;inset:0;background:#0008;display:flex;align-items:center;justify-content:center;padding:20px}.hidden{display:none}.modalbox{background:white;border-radius:14px;width:min(760px,100%);max-height:calc(100vh - 40px);overflow-y:auto;overflow-x:hidden;padding:26px;position:relative}.close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:28px;cursor:pointer}.grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#52606b}.field input,.field select,.field textarea{padding:10px;border:1px solid #d5dce1;border-radius:7px;font:inherit}.formactions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.recibo-modal{padding:22px;max-width:820px}.inscricoes-modal-large{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:24px}.inscricoes-modal-large .ie-row{width:100%;overflow:hidden}.inscricoes-modal-large .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inscricoes-modal-large .field{min-width:0}.inscricoes-modal-large .field>div{min-width:0}.inscricoes-modal-large select,.inscricoes-modal-large input,.inscricoes-modal-large textarea{width:100%;max-width:100%;min-width:0}.inscricoes-modal-large .field select{overflow:hidden;text-overflow:ellipsis}.inscricoes-modal-large .ie-cavalo-select{flex:1;min-width:0}.inscricoes-modal-large .field .btn{flex-shrink:0;white-space:nowrap}@media(max-width:800px){.inscricoes-modal-large{width:calc(100vw - 20px);padding:16px}.inscricoes-modal-large .grid{grid-template-columns:1fr}.inscricoes-modal-large .field>div{flex-wrap:wrap}.inscricoes-modal-large .ie-cavalo-select{width:100%;flex-basis:100%}}.recibo-modal .grid{gap:10px}.recibo-modal .field{gap:3px}.recibo-modal .field input,.recibo-modal .field select,.recibo-modal .field textarea{padding:8px}.recibo-modal .field textarea{min-height:48px}.recibo-modal .formactions{margin-top:12px}/* Ajuste fino somente da tabela de atletas: usa toda a largura disponível e permite rolagem horizontal quando necessário. */
#tabela-atletas{width:100%;min-width:1180px;max-width:none;table-layout:fixed;font-size:11px}
#tabela-atletas th,#tabela-atletas td{padding:7px 5px;font-size:11px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
#tabela-atletas th:nth-child(1),#tabela-atletas td:nth-child(1){width:16%}
#tabela-atletas th:nth-child(2),#tabela-atletas td:nth-child(2){width:8%}
#tabela-atletas th:nth-child(3),#tabela-atletas td:nth-child(3){width:9%}
#tabela-atletas th:nth-child(4),#tabela-atletas td:nth-child(4){width:8%}
#tabela-atletas th:nth-child(5),#tabela-atletas td:nth-child(5){width:7%}
#tabela-atletas th:nth-child(6),#tabela-atletas td:nth-child(6){width:8%}
#tabela-atletas th:nth-child(7),#tabela-atletas td:nth-child(7){width:9%}
#tabela-atletas th:nth-child(8),#tabela-atletas td:nth-child(8){width:9%}
#tabela-atletas th:nth-child(9),#tabela-atletas td:nth-child(9){width:8%}
#tabela-atletas th:nth-child(10),#tabela-atletas td:nth-child(10){width:14%}
#tabela-atletas th:nth-child(11),#tabela-atletas td:nth-child(11){width:12%}
#tabela-atletas td:nth-child(11) .btn{padding:4px 6px;font-size:10px;line-height:1.15;border-radius:6px;margin:1px 0}
main{overflow-x:auto;overflow-y:auto}
@media(max-width:1400px){main{padding-left:18px;padding-right:18px}#tabela-atletas th,#tabela-atletas td{padding:6px 4px;font-size:10px}#tabela-atletas .btn{padding:5px 5px;font-size:10px;white-space:normal}}
@media(max-width:1150px){main{padding-left:14px;padding-right:14px}#tabela-atletas{min-width:1100px}#tabela-atletas th,#tabela-atletas td{padding:5px 3px;font-size:9px}#tabela-atletas .btn{padding:4px 4px;font-size:9px;white-space:normal}}
#tabela-cavalos td:last-child .btn{padding:4px 5px;font-size:10px;line-height:1.15;border-radius:6px;margin:1px 0;white-space:normal}
@media(max-width:1400px){#tabela-cavalos td:last-child .btn{padding:3px 4px;font-size:9px}}
@media(max-width:800px){aside{width:76px}.brand{font-size:16px}.brand span{display:none}nav button{font-size:0;text-align:center}nav button:first-letter{font-size:20px}.cards{grid-template-columns:1fr}main{padding:20px}.grid{grid-template-columns:1fr}.header-actions{gap:6px}.header-actions .btn{padding:9px 10px}.actions{flex-wrap:wrap}}