/* Central CSS */
/* Version 3.0.37 */

/* This will make the visited links in home buttons stay white text
#homeHeaderButtons>.btn-group>a:visited {
    color: #fff; 
}
 */
.btn {
    width: 150px;  /* You can adjust this value to your preference */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn i {
    margin-right: 10px; /* Add some space between the icon and text */
}

a.central-btn::selection {
    background-color: transparent;
    color: #fff;
}

/* To prevent it from showing the default 'visited' color */
a.central-btn:visited {
    color: #fff;
}

a.central-icon::selection {
    background-color: transparent;
    color: #007bff;
}

/* To prevent it from showing the default 'visited' color */
a.central-icon:visited {
    color: #007bff;
}

/* ============================= */
/* ========== TOP BAR ========== */
/* ============================= */
/*
#topBarArea4 {
	text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
*/
/* ========================== */
/* ========== HOME ========== */
/* ========================== */

.grid-home {
	display: grid;
	grid-gap: 4em;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	grid-template-rows: auto;
	margin-top: 2em;
	padding-bottom: 2em;
}

@media (max-width: 600px) {
    .grid-home {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1em;
    }
    #main-no-menu {
        padding: 0px 0px 0px 0px;
     }
}

table.dataTable thead th {
    border-bottom: none;
}

table.dataTable.no-footer {
    border-bottom: none;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 0px solid #fff;
}

.dashboard-show-more {
	text-align: right;
	margin-top: 10px;
}

input[type="search"] {
    outline: none;
}

.central-home-button-container {
    display: flex;
    gap: 1em;
    width: 100%;
    padding: 1em;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: stretch;
  }
  
  .central-home-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    max-width: 180px;
    min-width: 120px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
  }
  
  .central-home-button:hover {
    background-color: #0056b3;
    color: white;
  }
  
  .central-home-button:active {
    transform: scale(0.95);
  }
  
  @media (max-width: 600px) {
    .central-home-button-container {
      flex-direction: column;
      align-items: center;
    }
  
    .central-home-button {
      max-width: 100%;
    }
  }
  
  @media (min-width: 601px) {
    .central-home-button-container {
      justify-content: center;
    }
  }

/* ============================== */
/* ========== SETTINGS ========== */
/* ============================== */

.grid-settings-name {
	display: inline-grid;
	grid-template-columns: auto auto;
	grid-template-rows: repeat(0, 24px);
	grid-gap: 1em;
	padding-bottom: 2em;
}

/* ================================== */
/* ========== REQUEST ITEM ========== */
/* ================================== */

.request-item-container {
    /*display: flex;
    justify-content: space-between;*/
	
	display: grid;
	grid-gap: 2em;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	grid-template-rows: auto;
	margin-top: 2em;
	padding-bottom: 2em;
}

.request-item {
    /*flex: 1;
    padding: 2em;
    box-sizing: border-box;*/
}

.request-header-container {
    background: url('/common/assets/images/Firefly-a-close-up-factory-machine-in-monochrome-viewed-from-8-degree-angle-14051.jpg') center/cover;
    position: relative;
    height: 80px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
	margin-bottom: 2em;
}

.request-header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
}

.request-header-title {
    z-index: 1;
	font-size: 125%;
}

.grid-request-format-container {
	display: grid;
	grid-template-columns: minmax(auto, max-content) 1fr;
	grid-gap: 1em;
	margin: 4em 0;
}


/*
textarea([name="remark"]) {
    border: 1px solid #ced4da !important;
}
*/

/* =================================== */
/* ========== OUR APPROVALS ========== */
/* =================================== */

/* Credits */
.grid-credits {
	display: grid;
	grid-column-gap: 2em;
	grid-template-columns: repeat(auto-fit, 150px);
	margin-bottom: 1em;
}
.grid-credit {
	display: grid;
	grid-template-columns: 75px 75px;
	grid-template-rows: 40px;
}
.grid-credit > div:nth-child(1) {
	background: #6c757d;
	color: #FFF;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	border: 2px solid #6c757d;
	display: grid;
	justify-items: center;
	align-items: center;	
}
.grid-credit > div:nth-child(2) {
	background: #FFF;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border: 2px solid #6c757d;
	display: grid;
	justify-items: center;
	align-items: center;
}

/* Button classes for approve or reject our requests */
.accept-request-btn {
	color: #28a745;
	cursor: pointer;
}
.reject-request-btn {
	color: #dc3545;
	cursor: pointer;
}
.inactive-request-btn {
	color: #6c757d;
}

/* ============================================== */
/* ========== CREATE AND CANCEL ACCESS ========== */
/* ============================================== */

.access-overlay {
	display: none; /* Hidden by default */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	z-index: 1000;
}

.access-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 16px solid #f3f3f3; /* Light grey */
	border-top: 16px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: access-spin 2s linear infinite;
}

@keyframes access-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ============================== */
/* ========== ACCOUNTS ========== */
/* ============================== */

.product-inactive {
	color: var(--main-button-color);
	cursor: pointer;
}

.grid-search {
	display: grid;
	grid-template-columns: minmax(0, auto) 50px minmax(0, auto) 1fr;
	grid-template-rows: auto;
	margin: 1em 0;
}

/* ============================= */
/* ========== LEAGUES ========== */
/* ============================= */

#add_league_row, .add-user-row {
	margin-bottom: 1em;
	float: right;
}

#leagueSeason, #leagueProblems, #leagueSupport { width: 40px; }
#leagueInterval, #leagueUsersMax { width: 50px; }
#leagueStartDate { width: 130px; }

#display_league_users, #display_league_dashboard { display: none; }

.grid-horizontal-menu {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, auto)) 1fr;
	grid-gap: 2em;
	grid-auto-rows: minmax(0, auto);
	margin-bottom: 2em;
}