/* Gestão TT | Jornada */
#view-jornada{padding:4px 0 32px}
.journey-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-bottom:20px}
.journey-head h2{font-size:23px;color:#080808;margin:0;font-weight:800;letter-spacing:-.035em}
.journey-head p{font-size:13px;color:#626262;margin:5px 0 0}
.journey-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:23px}
.journey-stats>div{display:grid;gap:12px;border:1px solid #e9e5e6;border-radius:15px;padding:18px 20px;background:#fff}
.journey-stats span{color:#626262;font-size:12px;font-weight:650}
.journey-stats strong{font-size:30px;color:#080808;font-weight:850;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.journey-section-title{font-size:15px;font-weight:800;margin:0 0 12px;color:#080808}
.journey-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.journey-card{border:1px solid #E7E7E7;border-radius:17px;background:#fff;padding:19px;min-width:0;display:flex;flex-direction:column;gap:11px}
.journey-card-top{display:flex;justify-content:space-between;align-items:center;gap:6px}
.journey-type{color:#99001A;background:#FFF0F2;padding:6px 10px;border-radius:20px;font-size:10px;font-weight:800}
.journey-status{border-radius:20px;padding:5px 9px;font-size:10px;font-weight:800}
.journey-status.on{color:#236B46;background:#EAF8EF}.journey-status.off{color:#666;background:#eee}
.journey-card h3{font-size:17px;letter-spacing:-.02em;line-height:1.4;margin:1px 0;color:#080808}
.journey-description{margin:0;color:#626262;font-size:12px;line-height:1.5}
.journey-card-data{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:2px}
.journey-card-data>div{border:1px solid #f1eded;background:#fcfcfc;padding:11px 12px;border-radius:10px;display:grid;gap:5px}
.journey-card-data small{font-size:10px;color:#777}
.journey-card-data strong{font-size:19px;color:#080808;font-weight:800}
.journey-day-tags{display:flex;gap:6px;flex-wrap:wrap;min-height:25px}
.journey-day-tags span{font-size:10px;font-weight:650;border:1px solid #e7e7e7;padding:5px 8px;border-radius:7px;color:#505050}
.journey-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto;padding-top:7px}
.journey-actions button,.journey-qr-actions button,.journey-modal-foot button{cursor:pointer;font:750 11px/1.3 inherit;font-family:inherit;font-size:11px;font-weight:750;border:1px solid #e1e1e1;border-radius:9px;padding:10px 12px;min-height:36px;background:#fff;color:#080808}
.journey-actions button.primary,.journey-qr-actions button.primary,.journey-modal-foot button.primary{background:#E2001B;color:white;border-color:#E2001B}
.journey-actions button:hover,.journey-qr-actions button:hover{filter:brightness(.96)}
.journey-empty{background:#fff;border:1px dashed #ddd;padding:36px;border-radius:15px;color:#666;font-size:13px;grid-column:1/-1;text-align:center}
.journey-overlay{position:fixed;inset:0;z-index:100099;background:rgba(8,8,8,.55);backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:center;padding:16px}
.journey-modal{background:#fff;border-radius:18px;width:min(580px,100%);max-height:min(79dvh,680px);box-shadow:0 24px 80px #08080835;display:flex;flex-direction:column;overflow:hidden}
.journey-modal-header{padding:17px 20px 13px;background:#fff;border-bottom:1px solid #ececec;display:flex;justify-content:space-between;align-items:center;gap:15px;flex:none}
.journey-modal-header h2{font-size:18px;letter-spacing:-.025em;margin:0;color:#080808}
.journey-modal-header p{font-size:11px;margin:4px 0 0;color:#777}
.journey-x{width:30px;height:30px;border:0;background:#f5f5f5;border-radius:8px;color:#333;cursor:pointer;font-size:21px}
.journey-modal-body{display:flex;flex-direction:column;gap:16px;padding:17px 20px 0;min-height:0;overflow:auto}
.journey-modal-body>label{display:grid;gap:7px;font-size:11px;font-weight:800;color:#252525}
.journey-modal-body input:not([type=checkbox]):not([type=radio]),.journey-modal-body select,.journey-modal-body textarea,.journey-report select,.journey-qr-body input{min-height:40px;width:100%;border:1px solid #dedede;border-radius:9px;background:#fff;padding:10px 12px;font:500 12px/1.3 inherit;font-family:inherit;font-size:12px;color:#080808;outline:none}
.journey-modal-body input:focus,.journey-modal-body select:focus,.journey-modal-body textarea:focus,.journey-report select:focus{border-color:#E2001B;box-shadow:0 0 0 3px #e2001b15}
.journey-optional{color:#aaa;font-weight:450}
.journey-dates-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #efefef;padding-top:14px}
.journey-dates-heading div{display:grid;gap:4px}
.journey-dates-heading b{font-size:12px;color:#080808}
.journey-dates-heading small{font-size:10px;color:#666}
.journey-dates-heading button{background:#FFF0F2;color:#b4001b;border:1px solid #f1cbd0;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer;padding:9px 11px}
#journeyDays{display:grid;gap:9px}
.journey-day-row{display:grid;grid-template-columns:67px minmax(0,1fr) 32px;gap:10px;align-items:center;border:1px solid #eee;background:#fafafa;border-radius:10px;padding:8px}
.journey-day-row span{font-size:11px;font-weight:800;padding-left:5px}
.journey-day-row button{border:0;border-radius:7px;background:#fff;font-size:20px;color:#999;cursor:pointer;height:30px}
.journey-day-row button:disabled{opacity:.3;cursor:default}
.journey-toggle{display:flex!important;flex-direction:row;gap:10px!important;align-items:center;font-size:12px!important}
.journey-toggle input{accent-color:#E2001B;width:16px;height:16px}
.journey-modal-foot{position:sticky;bottom:0;z-index:2;padding:12px 0;background:#fff;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #eee;margin-top:4px}
.journey-modal-foot button:disabled{opacity:.5;cursor:wait}
.journey-qr-body{padding:20px;overflow-y:auto;text-align:center}
.journey-qr-img{display:grid;place-items:center;min-height:220px}
.journey-qr-body p{font-size:12px;line-height:1.55;color:#666;margin:12px auto;max-width:360px}
.journey-qr-actions{display:flex;justify-content:center;gap:10px;margin:13px 0 0}
.journey-report{overflow:auto;padding:15px 20px 0}
.journey-report-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;font-size:12px;font-weight:700}
.journey-report-head label{font-size:11px;display:flex;align-items:center;gap:8px}
.journey-report select{min-width:160px}
.journey-report-scroll{max-height:300px;overflow:auto}
.journey-report table{border-collapse:collapse;width:100%;font-size:11px}
.journey-report th,.journey-report td{padding:11px 9px;border-bottom:1px solid #eee;text-align:left}
.journey-report th{font-weight:800;background:#fbfbfb;position:sticky;top:0}
@media(max-width:640px){.journey-overlay{padding:10px}.journey-modal{max-height:86dvh}.journey-modal-header{padding:14px 16px}.journey-modal-body{padding:14px 16px 0}.journey-report{padding:14px 15px 0}.journey-report-head{flex-wrap:wrap}.journey-qr-actions{flex-wrap:wrap}.journey-cards{grid-template-columns:1fr}.journey-day-row{grid-template-columns:55px minmax(0,1fr) 32px;gap:5px}}
/* Seleção do tipo de evento: layout compacto, sem herdar estilos dos formulários do portal. */
#journeyForm .journey-type-field{
 display:block!important;width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;border:0!important;
 background:transparent!important;box-shadow:none!important;
}
#journeyForm .journey-type-field legend{
 display:block!important;float:none!important;width:auto!important;
 margin:0 0 7px!important;padding:0!important;border:0!important;
 font-size:12px!important;line-height:1.4!important;
 font-weight:750!important;color:#626262!important;
}
#journeyForm .journey-type-options{
 display:flex!important;flex-direction:row!important;
 justify-content:flex-start!important;align-items:center!important;
 flex-wrap:wrap!important;gap:17px!important;
 width:100%!important;margin:0!important;padding:0!important;
 border:0!important;background:transparent!important;
}
#journeyForm .journey-type-options>.journey-type-option{
 display:inline-flex!important;flex-direction:row!important;
 justify-content:flex-start!important;align-items:center!important;
 gap:6px!important;flex:0 0 auto!important;width:auto!important;
 min-width:0!important;max-width:none!important;
 margin:0!important;padding:0!important;border:0!important;
 background:transparent!important;box-shadow:none!important;
 font-size:12px!important;line-height:1.3!important;font-weight:450!important;
 color:#080808!important;white-space:nowrap!important;cursor:pointer!important;
}
#journeyForm .journey-type-option>input[type="radio"]{
 appearance:none!important;-webkit-appearance:none!important;
 display:inline-grid!important;place-items:center!important;
 box-sizing:border-box!important;flex:0 0 16px!important;
 width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;
 max-width:16px!important;max-height:16px!important;
 margin:0!important;padding:0!important;
 border:1.5px solid #D0D0D0!important;border-radius:50%!important;
 background:#fff!important;box-shadow:none!important;cursor:pointer!important;
}
#journeyForm .journey-type-option>input[type="radio"]:checked{
 border-color:#080808!important;background:#080808!important;
}
#journeyForm .journey-type-option>input[type="radio"]:checked::after{
 content:""!important;display:block!important;width:5px!important;height:5px!important;
 border-radius:50%!important;background:#fff!important;
}
#journeyForm .journey-type-option>input[type="radio"]:focus-visible{
 outline:3px solid #F7BCBC!important;outline-offset:3px!important;
}
#journeyForm .journey-type-option>span{
 display:inline!important;width:auto!important;max-width:none!important;
 padding:0!important;margin:0!important;font:inherit!important;
 color:inherit!important;line-height:inherit!important;
}
@media(max-width:400px){
 #journeyForm .journey-type-options{gap:12px!important}
 #journeyForm .journey-type-options>.journey-type-option{font-size:12px!important}
}

/* Presença | navegação por categoria */
#view-jornada .journey-category-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px;padding:5px;border:1px solid #e6e6e2;border-radius:12px;background:#fff}
#view-jornada .journey-category-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 1 auto;min-height:40px;padding:9px 12px;border:1px solid transparent;border-radius:8px;background:#fff;color:#444;font:700 12px Inter,Arial,sans-serif;cursor:pointer}
#view-jornada .journey-category-tabs button:hover{background:#f7f7f5}
#view-jornada .journey-category-tabs button.active{background:#E2001B;color:white;border-color:#E2001B}
#view-jornada .journey-category-tabs button span{background:#f1f1ef;border-radius:6px;padding:3px 7px;font-size:10px;color:#555;font-variant-numeric:tabular-nums}
#view-jornada .journey-category-tabs button.active span{background:#ffffff2c;color:white}
#view-jornada .journey-category-tabs button:focus-visible{outline:2px solid #99001A;outline-offset:2px}

/* Comparativo de presença: QR Code x contagem manual */
#view-jornada .journey-comparison{background:#fff;border:1px solid #e6e6e2;border-radius:14px;padding:16px 20px;margin:0 0 20px}
#view-jornada .journey-comparison h3{font-size:14px;margin:0 0 12px;color:#080808}
.journey-compare-bars{display:grid;gap:8px}.journey-compare-row{display:grid;grid-template-columns:62px minmax(0,1fr) 44px;gap:8px;align-items:center;font-size:11px;color:#444}.journey-compare-row strong{text-align:right;font-variant-numeric:tabular-nums}.journey-compare-track{height:10px;border-radius:5px;background:#f0f0ee;overflow:hidden}.journey-compare-track i{display:block;height:100%;border-radius:5px}.journey-compare-track .automatic{background:#080808}.journey-compare-track .manual{background:#E2001B}.journey-compare-note{font-size:11px;color:#626262;line-height:1.55;margin:9px 0 0}.journey-compare-note strong{color:#080808}.journey-card-comparison{padding:10px 0;border-top:1px solid #eee}.journey-manual-day{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;border:1px solid #eee;border-radius:10px;padding:10px}.journey-manual-day>div,.journey-manual-day>label{display:grid;gap:5px;font-size:12px}.journey-manual-day small{color:#626262}.journey-manual-day label{font-weight:700}

/* Horários da turma por dia */
#journeyDays .journey-day-row{grid-template-columns:48px minmax(112px,1.3fr) minmax(75px,1fr) minmax(75px,1fr) 28px;gap:7px;align-items:end}#journeyDays .journey-day-row>span{align-self:center;padding:0}#journeyDays .journey-day-row label{display:grid;gap:5px;font-size:10px;font-weight:700;color:#626262;min-width:0}#journeyDays .journey-day-row input{min-width:0;padding:8px 6px!important}#journeyDays .journey-day-row button{align-self:end;margin-bottom:5px}@media(max-width:520px){#journeyDays .journey-day-row{grid-template-columns:1fr 1fr 28px}#journeyDays .journey-day-row>span{grid-column:1/-1}#journeyDays .journey-day-row label:first-of-type{grid-column:1/-1}}

.journey-add-buttons{display:flex!important;gap:6px;flex-wrap:wrap;justify-content:flex-end}.journey-add-buttons button{white-space:nowrap}.journey-dates-heading>div:first-child{flex:1}

.journey-editor-error{background:#fff0f2;border:1px solid #f7bcbc;border-radius:9px;padding:12px;color:#99001a;font-size:13px;line-height:1.5;font-weight:600}.journey-editor-error[hidden]{display:none!important}

#journeyDays .journey-overnight-hint{grid-column:1/-1;color:#626262;background:#f7f7f5;padding:7px 9px;border-radius:6px;font-size:11px;font-weight:650}#journeyDays .journey-overnight-hint[hidden]{display:none!important}
