:root{
	--bg:#f5f7fb;
	--panel:#ffffff;
	--line:#e5e7eb;
	--text:#111827;
	--muted:#6b7280;
	--sidebar:#111827;
	--sidebar-hover:#1f2937;
	--primary:#2563eb;
	--radius:16px;
}

*{
	box-sizing:border-box;
}

*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

html, body{
	margin:0;
	padding:0;
	font-family:Arial, sans-serif;
	background:var(--bg);
	color:var(--text);
}

a{
	color:inherit;
    text-decoration: none;
}

/* LAYOUT */
.admin-shell{
	display:grid;
	grid-template-columns:240px 1fr;
	height:100vh;
}

.sidebar{
	position:fixed;
	top:0;
	left:0;
	width:240px;
	height:100vh;
	overflow-y:auto;
	background:var(--sidebar);
	color:#fff;
	padding:24px 18px;
}
.sidebar-clock{
	margin-top:auto;
	padding-top:18px;
	border-top:1px solid rgba(255,255,255,.08);
    position: fixed;
    bottom: 20px;
    left: 50px;
}
.sidebar-clock-time{
	font-size:24px;
	font-weight:800;
	line-height:1;
	color:#fff;
}
.admin-main{
	margin-left:240px;
	display:flex;
	flex-direction:column;
	min-width:0;
	height:100vh;
}

.sidebar-brand{
	padding-bottom:20px;
	border-bottom:1px solid rgba(255,255,255,.08);
}
.sidebar-brand h1{
	margin:0;
	font-size:24px;
	line-height:1;
}
.sidebar-brand p{
	margin:8px 0 0;
	font-size:13px;
	color:#cbd5e1;
}
.sidebar-nav{
	margin-top:24px;
	display:flex;
	flex-direction:column;
	gap:8px;
}
.sidebar-nav a{
	display:block;
	padding:12px 14px;
	text-decoration:none;
	border-radius:12px;
	font-weight:700;
	color:#d1d5db;
	transition:.15s ease;
}
.sidebar-nav a:hover{
	background:var(--sidebar-hover);
	color:#fff;
}
.sidebar-nav a.active{
	background:#fff;
	color:#111827;
}
.sidebar-section + .sidebar-section{
	margin-top:100px;
}
.sidebar-section-title{
	margin-bottom:10px;
	font-size:12px;
	font-weight:800;
	text-transform:uppercase;
	letter-spacing:.08em;
	color:#94a3b8;
	padding:0 6px;
}
/*.sidebar-toolbar {
    margin-left: 20px;
}
/*.sidebar-toolbar SELECT {
    padding: 0;
    width: 100%;
    height: 30px;
    border-radius: 4px;
    background:#eef2ff;
}
.sidebar-toolbar BUTTON {
    width: 100%;
}*/

.sidebar-subtools{
	margin: 10px 0 14px;
	padding: 10px;
	border-radius: 12px;
	background: rgba(255,255,255,.04);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sidebar-subtools-label{
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255,255,255,.55);
}

.sidebar-select-wrap{
	position: relative;
}

.sidebar-select{
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,.10);
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}
.sidebar-select OPTION {
    color: #000;
}
.sidebar-select:focus{
	border-color: rgba(255,255,255,.22);
	background: rgba(255,255,255,.11);
}

.sidebar-select-wrap::after{
	content: "▾";
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	font-size: 12px;
	color: rgba(255,255,255,.65);
	pointer-events: none;
}

.sidebar-action-btn{
	width: 100%;
	height: 40px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.sidebar-action-btn:hover{
	background: rgba(255,255,255,.14);
	border-color: rgba(255,255,255,.18);
}



/* TOPBAR */
.topbar{
	background:var(--panel);
	border-bottom:1px solid var(--line);
	padding:24px 28px 16px;
    width: calc(100svw - 240px);
}

.topbar-inner{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:20px;
}

.topbar-text h2{
	margin:0;
	font-size:26px;
	line-height:1.1;
}

.topbar-text p{
	margin:8px 0 0;
	font-size:14px;
	color:var(--muted);
}

/* CONTENT */
.admin-content{
	padding:20px;
	height:calc(100vh - 90px);
	overflow:hidden;
    width: calc(100svw - 240px);
}

/* COMMON */
.card{
	background:var(--panel);
	border:1px solid var(--line);
	border-radius:var(--radius);
	padding:20px;
}

.page-grid{
	display:grid;
	gap:20px;
}

.table{
	width:100%;
	border-collapse:collapse;
}

.table th,
.table td{
	padding:10px 12px;
	border-bottom:1px solid var(--line);
	text-align:left;
	font-size:14px;
}

.table th{
	font-size:12px;
	text-transform:uppercase;
	letter-spacing:.04em;
	color:var(--muted);
	background:#fafafa;
}
.table.teams TBODY {
    height: calc(100svh - 660px);
    overflow: hidden;
    overflow-Y: auto;
    display: block;
    width: 100%;
}
.table.teams tbody TR, .table.teams thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/*SETTING**************************************/                                               
.form-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:16px 20px;
}

.form-row{
	display:flex;
	flex-direction:column;
	gap:8px;
}

.form-row label{
	font-size:14px;
	font-weight:700;
}

.form-row input, .form-row SELECT{
	width:100%;
	padding:10px 12px;
	border:1px solid var(--line);
	border-radius:10px;
	font-size:14px;
	background:#fff;
}
.ligne {
    display:flex;
	gap:8px;
    margin-bottom: 30px;
}
.form-actions{
	grid-column:1 / -1;
	display:flex;
	justify-content:flex-end;
	margin-top:8px;
}

.btn-primary{
	border:none;
	background:var(--primary);
	color:#fff;
	padding:12px 18px;
	border-radius:10px;
	font-weight:700;
	cursor:pointer;
}

.alert{
	padding:12px 14px;
	border-radius:12px;
	margin-bottom:16px;
	font-weight:700;
	font-size:14px;
}

.alert.success{
	background:#dcfce7;
	color:#166534;
	border:1px solid #bbf7d0;
}

.phase1-top-actions{
	position: absolute;
    bottom: 0;
    width: 100%;
}
.phase1-top-actions a {
    display: block;
    width: 100%;
    text-align: center;
}

/*teams---------------------------------*/
.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border:none;
    background:#e5e7eb;
    color:#111827;
    padding:12px 18px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
    margin-left:10px;
}

.table-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.btn-table{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    border-radius:8px;
    background:#eef2ff;
    color:#1d4ed8;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
}

.btn-table.danger{
    background:#fee2e2;
    color:#b91c1c;
}

/*groups------------------------------------*/
.groups-head-actions {
    position: fixed;
    right: 30px;
    bottom: 20px;
}                                    
.groups-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:20px;
}

.groups-head h3{
    margin:0 0 6px;
}

.groups-head p{
    margin:0;
    color:var(--muted);
}

.groups-layout{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:20px;
    align-items:start;
}

.card-soft{
    background:#fafbfc;
    border:1px solid var(--line);
    border-radius:14px;
    padding:16px;
}

.card-soft h4{
    margin:0 0 14px;
}

.teams-assignment-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.team-assignment-row{
    display:block;
    padding:12px 14px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
}

.team-assignment-name{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.team-assignment-name span{
    font-size:13px;
    color:var(--muted);
}

.team-assignment-selects{
    display:grid;
    grid-template-columns:1fr 90px;
    gap:8px;
}

.team-assignment-selects select{
    width:100%;
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
}

.groups-preview{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.group-preview-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.group-preview-slot{
    display:grid;
    grid-template-columns:70px 1fr;
    gap:10px;
    align-items:center;
    padding:10px 12px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
}

.slot-label{
    font-weight:700;
    color:var(--primary);
}

.slot-team{
    font-weight:600;
}

.alert.error{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fecaca;
}

.team-assignment-controls{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
}

.btn-group-poules,
.btn-group-positions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.choice-btn{
    min-width:42px;
    height:38px;
    padding:0 12px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    color:var(--text);
    font-weight:800;
    cursor:pointer;
    transition:.15s ease;
}

.choice-btn:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.choice-btn.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.group-flash{
    padding:10px 14px;
    border-radius:10px;
    background:#dcfce7;
    color:#166534;
    font-weight:700;
    font-size:14px;
}

.group-flash.error{
    background:#fee2e2;
    color:#991b1b;
}

.groups-layout.compact{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 620px;
    gap:18px;
    align-items:start;
}

.groups-left{
    min-width:0;
    overflow: hidden;
    overflow-Y: auto;
    height: calc(100svh - 200px);
}

.groups-right{
    min-width:0;
}

.groups-preview.sticky{
    position:sticky;
    top:20px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    align-items:start;
}

.teams-assignment-list.compact{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.team-assignment-row.compact{
    display:grid;
    grid-template-columns:220px 180px 1fr;
    gap:12px;
    align-items:center;
    padding:8px 10px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
}

.team-name-col{
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.btn-group-poules,
.btn-group-positions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.choice-btn{
    min-width:34px;
    height:32px;
    padding:0 10px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
    color:var(--text);
    font-weight:800;
    font-size:13px;
    cursor:pointer;
    transition:.15s ease;
}

.choice-btn:hover:not(.disabled):not(:disabled){
    background:#bfdbfe;
    border-color:var(--primary);
    color:#1d4ed8;
}
.choice-btn.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.choice-btn.disabled,
.choice-btn:disabled{
    background:#f3f4f6;
    color:#9ca3af;
    border-color:#e5e7eb;
    cursor:not-allowed;
    opacity:1;
}

.group-preview-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.group-preview-slot{
    display:grid;
    grid-template-columns:54px 1fr;
    gap:10px;
    align-items:center;
    padding:8px 10px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
}

.slot-label{
    font-weight:800;
    color:var(--primary);
    font-size:13px;
}


.slot-team{
    font-weight:600;
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.group-flash{
    padding:8px 12px;
    border-radius:10px;
    background:#dcfce7;
    color:#166534;
    font-weight:700;
    font-size:13px;
}

.group-flash.error{
    background:#fee2e2;
    color:#991b1b;
}

.groups-right{
    min-width:0;
}

.groups-preview.sticky .card-soft{
    min-width:0;
}
.team-assignment-row.is-assigned{
    border-color:#bfdbfe;
    background:#f8fbff;
}

.team-assignment-row.is-invalid-assignment{
    border-color:#fecaca;
    background:#fff7f7;
}

/*phase1-----------------*/
.phase-block + .phase-block{
    margin-top:18px;
}

.phase-block-head{
    font-size:16px;
    font-weight:800;
    margin-bottom:10px;
}


/*P1-------------*/
.phase1-layout{
	display:grid;
	grid-template-columns:minmax(0, 1fr) 380px 400px;
	gap:18px;
	align-items:start;
	height:100%;
}

.phase1-main{
	min-width:0;
	height:100%;
	overflow-y:auto;
	padding-right:6px;
	display:flex;
	flex-direction:column;
	gap:14px;
}

.phase1-side,
.phase1-ranking-side{
	min-width:0;
	height:100%;
	overflow-y:auto;
	padding-right:4px;
    position: relative;
}

.phase1-filter-input{
	width:100%;
	height:42px;
	padding:0 14px;
	border:1px solid var(--line);
	border-radius:12px;
	font-size:14px;
	background:#fff;
    margin-bottom: 10px;
}
.phase1-side #openRankingModalBtn {

    width: 100%;
    background-color: #fff;
}


.phase1-sticky{
	display:flex;
	flex-direction:column;
	gap:16px;
}

.phase1-slot-card{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:16px;
    padding:14px;
}

.phase1-slot-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.phase1-slot-time{
    font-size:20px;
    font-weight:900;
}

.phase1-slot-matches{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.phase1-match{
    border:1px solid var(--line);
    border-radius:12px;
    padding:12px;
    background:#fff;
}

.phase1-match-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    font-size:12px;
    font-weight:800;
    position: relative;
}

.phase1-pitch{
    color:var(--primary);
}

.phase1-group{
    color:var(--muted);
    border: 1px solid var(--line);
    border-top: 0;
    border-right: 0;
    padding: 10px;
    border-radius: 0 0 0 4px;
    position: absolute;
    top: -12px;
    right: -12px;
}

.phase1-team-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:8px 0;
}

.phase1-team-row + .phase1-team-row{
    border-top:1px dashed var(--line);
}

.phase1-team-name{
    font-weight:700;
}
.phase1-team-name SPAN.team-code {
    display: inline-block;
    margin-right: 10px;
    background-color: #dedede;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
}

.phase1-team-score{
    min-width:24px;
    text-align:right;
    font-size:20px;
    font-weight:900;
}

.phase1-side-card + .phase1-side-card{
    border-top:1px solid var(--line);
    padding-top:16px;
}

.phase1-side-title{
    font-size:16px;
    font-weight:800;
    margin-bottom:12px;
}

.phase1-chrono-box{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.phase1-chrono-time{
    font-size:60px;
    line-height:1;
    font-weight:900;
    text-align:center;
}

.btn-block{
    width:100%;
}

.phase1-next-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.phase1-next-item{
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fafafa;
}

.phase1-next-item.strong{
    font-weight:800;
    text-align:center;
}
.phase1-next-item strong{
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 10px;
    
}

.phase1-next-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    font-size:14px;
    color:var(--muted);
    margin-bottom:6px;
    font-weight:700;
    font-variant: small-caps;
}
.phase1-next-top EM {
    color: orangered;
    font-style: normal;
    font-weight: bolder;
    font-size:16px;
}


.phase1-next-match{
    font-size:14px;
    font-weight:700;
    line-height: 20px;
}

.phase1-rankings{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.phase1-ranking-group{
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.phase1-ranking-head{
    padding:10px 12px;
    font-weight:800;
    border-bottom:1px solid var(--line);
    background:#fafafa;
}

.phase1-ranking-table{
    width:100%;
    border-collapse:collapse;
    font-size:12px;
}
.modal-overlay .phase1-ranking-table{
    font-size:14px;
}
.phase1-ranking-table th,
.phase1-ranking-table td{
    padding:8px 8px;
    border-bottom:1px solid var(--line);
    text-align:center;
}
.phase1-ranking-table th:last-child,
.phase1-ranking-table td:last-child{
    color: red;
    font-weight: 600;
}


.phase1-ranking-table tr.qualified-flag-blue td:first-child {
    background-color: #80a5f5;
}
.phase1-ranking-table tr.qualified-flag-green td:first-child {
    background-color: #80f5e5;
}
.phase1-ranking-table tr.qualified-flag-orange td:first-child {
    background-color: #f5c180;
}



.modal-overlay .phase1-ranking-table th,
.modal-overlay .phase1-ranking-table td{
    padding:12px;
}

.phase1-ranking-table th{
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
}

.phase1-ranking-table td.team{
    text-align:left;
    font-weight:700;
}

.phase1-ranking-table tr:last-child td{
    border-bottom:none;
}
.phase1-rankings-singlecol{
	display:flex;
	flex-direction:column;
	gap:12px;
}
/*@media (max-width: 1500px){
	.phase1-layout{
		grid-template-columns:minmax(0, 1fr) 280px;
	}

	.phase1-ranking-side{
		display:none;
	}
}*/

.phase1-chrono-actions{
	display:grid;
	grid-template-columns:1fr;
	gap:10px;
}

.phase1-chrono-actions.is-running{
	grid-template-columns:1fr 1fr;
}

.phase1-chrono-actions .btn-block{
	width:100%;
	min-width:0;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	font-size:18px;
}

.phase1-slot-card.is-live{
    background:#93b1f3;
}

.phase1-slot-head{
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-bottom:12px;
	gap:10px;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button{
	-webkit-appearance:none;
	margin:0;
}

.score-input{
	-moz-appearance:textfield;
	appearance:textfield;
	width:54px;
	height:24px;
	border:1px solid var(--line);
	border-radius:4px;
	text-align:center;
	font-size:16px;
	font-weight:800;
}

[hidden]{
	display:none !important;
}
.match-referee-inline{
	margin-top:6px;
	display:flex;
	align-items:center;
	gap:6px;
	font-size:12px;
}

.match-referee-label{
	opacity:.65;
	font-weight:700;
}

.match-referee-value{
	border:none;
	background:transparent;
	padding:0;
	font:inherit;
	font-weight:700;
	cursor:pointer;
	color:#1f2937;
}

.match-referee-value.is-empty{
	opacity:.55;
	font-weight:500;
}

.match-referee-inline select{
	height:28px;
	padding:0 8px;
	font-size:12px;
	border-radius:6px;
	border:1px solid #ddd;
	background:#fff;
}

.match-referee-inline select.is-saved{
	border-color:#16a34a;
	background:#f0fdf4;
}

.match-referee-inline select.is-error{
	border-color:#dc2626;
	background:#fef2f2;
}

/*modal-------------*/
.modal-overlay{
	position:fixed;
	inset:0;
	background:rgba(17,24,39,.45);
	display:flex;
	align-items:center;
	justify-content:center;
	padding:24px;
	z-index:2000;
}

.modal-box{
	background:#fff;
	border-radius:18px;
	width:min(1100px, 100%);
	max-height:90vh;
	display:flex;
	flex-direction:column;
	overflow:hidden;
	box-shadow:0 20px 60px rgba(0,0,0,.18);
}

.modal-ranking .modal-body{
	padding:18px;
	overflow:auto;
}

.modal-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:18px 20px;
	border-bottom:1px solid var(--line);
}

.modal-head h3{
	margin:0;
}

.modal-close{
	border:none;
	background:#f3f4f6;
	width:36px;
	height:36px;
	border-radius:10px;
	font-size:22px;
	cursor:pointer;
}

.phase1-rankings-modal{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:16px;
}



/*Phase2----------------------------*/
.phase2-tab-line{
	margin-top:8px;
	font-size:12px;
	opacity:.75;
	text-align:right;
}

.phase2-round-count{
	font-size:12px;
	font-weight:700;
	opacity:.7;
}

.phase2-tab-edit{
	margin-top:8px;
	display:flex;
	align-items:center;
	gap:8px;
	justify-content:flex-end;
}

.phase2-tab-label{
	font-size:12px;
	font-weight:700;
	opacity:.75;
}

.phase2-tab-sep{
	font-weight:700;
}
.phase1-score-wrap{
	display:inline-flex;
	align-items:center;
	gap:8px;
	min-width:42px;
	justify-content:flex-end;
}

.phase1-team-tab{
	font-size:12px;
	font-weight:700;
	min-width:10px;
	text-align:center;
    margin-top: 5px;
}
.score-input-tab{
	width:40px;
	min-width:40px;
	text-align:center;
	padding:2px 4px;
	font-size:12px;
}
.score-input-tab::placeholder {
    font: 0.74rem/3 sans-serif;
}

.phase1-team-row.is-winner{
	background: rgba(34, 197, 94, 0.08);
	/*border-radius: 8px;*/
	/*padding: 2px 6px;*/
}

.phase1-team-row.is-winner .phase1-team-name{
	font-weight: 700;
}

.phase1-team-row.is-winner .phase1-team-score{
	font-weight: 800;
}

.phase1-generate-buttons{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
}

.phase1-generate-buttons form{
	margin:0;
}

/*planning-----------------------*/
.planning-page{
	display:flex;
	flex-direction:column;
	gap:16px;
}

.planning-toolbar{
	padding:12px 16px;
    display: flex;
    gap: 50px;
}

.planning-filter-form{
	display:flex;
	align-items:center;
	gap:10px;
}

.planning-board{
	display:grid;
	grid-template-columns:repeat(4, minmax(0, 1fr));
	gap:16px;
	align-items:start;
}

.planning-pitch-card{
	background:#fff;
	border:1px solid #d8dde6;
	border-radius:18px;
	padding:14px;
 
}
.planning-pitch-body {
    height: calc(100svh - 280px);
    overflow: hidden;
    overflow-Y: auto;
}


.planning-pitch-head{
	font-size:20px;
	font-weight:800;
	margin-bottom:12px;
}

.planning-pitch-body{
	display:flex;
	flex-direction:column;
	gap:10px;
}

.planning-match-card{
	border:1px solid #e2e8f0;
	border-radius:14px;
	padding:10px 12px;
	cursor:pointer;
	background:#f8fafc;
}

.planning-match-card.is-selected{
	outline:2px solid #2563eb;
	background:#eff6ff;
}


.planning-empty-slot{
	border:1px dashed #cbd5e1;
	border-radius:14px;
	padding:10px 12px;
	background:#f8fafc;
	opacity:.75;
	cursor:pointer;
}

.planning-empty-slot:hover{
	background:#eff6ff;
}

.planning-empty-slot.is-selected{
	outline:2px solid #2563eb;
}
.planning-match-top {
    display: flex;
    margin-bottom:4px;
    font-size:13px;
	font-weight:800;
}
.planning-match-meta {
    margin-left: auto;
}

.planning-match-team{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	font-size:12px;
	font-weight:400;
	line-height:1.35;
}
.planning-score{
	font-weight:700;
	min-width:16px;
	text-align:right;
}

.planning-match-tab{
	margin-top:4px;
	font-size:12px;
	opacity:.75;
	text-align:right;
}

.planning-empty{
	font-size:14px;
	opacity:.6;
	padding:8px 0;
}
.planning-empty-slot{
	border:1px dashed #cbd5e1;
	border-radius:14px;
	padding:10px 12px;
	background:#f8fafc;
	opacity:.75;
}

.planning-empty-text{
	font-size:13px;
	font-weight:600;
	opacity:.7;
}
/*@media (max-width: 900px){
	.planning-board{
		grid-template-columns:1fr;
	}
}*/

.planning-slot-manager{
	margin-bottom:16px;
}

.planning-slot-manager-list{
	display:flex;
	flex-direction:column;
	gap:10px;
}

.planning-slot-manager-row{
	display:grid;
	grid-template-columns:180px 300px 300px 300px;
	gap:12px;
	align-items:center;
}
.planning-slot-manager-row:hover {
    background-color: #dedede;
}

.planning-slot-manager-label{
	font-weight:700;
}

.planning-slot-inline-form{
	display:flex;
	gap:8px;
	align-items:center;
	flex-wrap:wrap;
}

/*@media (max-width: 900px){
	.planning-slot-manager-row{
		grid-template-columns:1fr;
	}
}*/
.planning-mode-switch{
	display:flex;
	gap:8px;
	flex-wrap:wrap;
}
.btn-danger{
	background:#b91c1c;
	color:#fff;
	border:none;
	border-radius:8px;
	padding:.6rem .9rem;
	cursor:pointer;
}

.btn-danger:hover{
	background:#991b1b;
}

.slot-gap{
	display:inline-block;
	margin-left:6px;
	opacity:.7;
	font-weight:600;
    font-size: 11px;
}



.rankingManual {
    height: calc(100svh - 120px);
    overflow-Y: auto;
}
.flex {
    display: flex;
    gap: 10px;
    width: 100%;
}

.manual-group,
.manual-best6{
	margin-bottom:20px;
	padding:14px;
	border:1px solid #dbe3ec;
	border-radius:14px;
	background:#fff;
    width: 100%;
}

.manual-group-list{
	display:flex;
	flex-direction:column;
	gap:8px;
}

.manual-row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:10px 12px;
	border:1px solid #e5e7eb;
	border-radius:10px;
	background:#f8fafc;
}

.manual-row-left{
	display:flex;
	align-items:center;
	gap:10px;
	min-width:0;
}

.manual-pos{
	width:24px;
	text-align:center;
	font-weight:800;
}

.manual-team{
	font-weight:700;
}

.manual-row-right{
	display:flex;
	gap:8px;
}

.manual-best6-list{
	display:flex;
	flex-direction:column;
	gap:8px;
}

.manual-best6-item{
	display:flex;
	align-items:center;
	gap:8px;
	padding:8px 0;
}



.phase1-next-referee{
	margin-top: 6px;
}

.phase1-next-referee select{
	width: 100%;
	height: 30px;
	padding: 0 8px;
	font-size: 12px;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #fff;
}

.phase1-next-referee-add{
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.phase1-next-referee-add input{
	flex: 1;
	height: 30px;
	padding: 0 8px;
	font-size: 12px;
	border-radius: 6px;
	border: 1px solid #ddd;
}

.phase1-next-referee-add button{
	height: 30px;
	padding: 0 10px;
	border: none;
	border-radius: 6px;
	background: #333;
	color: #fff;
	font-size: 12px;
	cursor: pointer;
}

.js-referee-select.is-saved,
.phase1-next-referee-add input.is-saved{
	border-color: #16a34a;
	background: #f0fdf4;
}

.js-referee-select.is-error,
.phase1-next-referee-add input.is-error{
	border-color: #dc2626;
	background: #fef2f2;
}