/*
 * Global styles
 */
.btn-jdpa {
    font-size: 10px;
    padding: 1px 4px;
    margin-top: 5px;
}
#api-search-list a {
    color:#333;
}
.c_line_break {
    word-wrap: break-word;
    word-break: break-all;
}

.text-center {
    text-align: center;
}

/* 
 *
 * Style for custom fields on pages in admin
 *
*/

#jdpower_metabox .col-field{
    margin-bottom:20px;
}
#jdpower_metabox #api_versions{
    height:200px;
}
#jdpower_metabox .col-field label{
    margin:0px 20px 10px 0px;
    font-weight: 600;
}
#tyk-dashboard table {
    font-size: 12px;
}

/* 
 *
 * Style log browser page
 *
*/
#filter-logs-form button{
    margin-top:22px;
}
.accordion-logs span{
    font-weight: 600;
}
.accordion-logs .r-type {
    padding: 9px;
    margin-right: 10px;
    border-top-left-radius:15px;
    border-bottom-left-radius: 15px;
}
.accordion-logs .a-span {
    width: 39%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.accordion-logs .as-span {
    width: 16%;
}
.accordion-logs .ah-span {
    width: 16%;
}
.accordion-logs .ac-span {
    width: 29%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.accordion-logs button {
    border-radius: 15px !important;
    padding: 0px 20px 0px 0px;
    margin-bottom: 5px;
    color: #ffffff !important;
    font-size: 12px;
}
.accordion-logs .log-type-green {
    background-color: #008000;
}
.accordion-logs .log-type-green .r-type{
    background-color: #006400;
}
.accordion-logs .log-type-yellow {
    background-color: #CCCC00;
}
.accordion-logs .log-type-yellow .r-type{
    background-color: #b0b03f;
}
.accordion-logs .log-type-red {
    background-color: #FF0000;
}
.accordion-logs .log-type-red .r-type{
    background-color: #CC0000;
}
.accordion-logs .accordion-body th, .accordion-logs .accordion-body td, .accordion-logs .accordion-body textarea {
    padding: 5px 0px 5px 10px;
    font-size: 12px;
}
.accordion-logs .accordion-body td {
    width: 74%;
}
.eye_text {
    margin-left: -18px;
}
.copy_text, .eye_text {
    padding: 1px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.copy_text:hover, .eye_text:hover {
    background: #ccc;
}
.copy_message {
    display: none;
    position: fixed;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}
.cus-position {
    position: absolute;
}
.cus-textarea {
    height: 42px;
    border: none;
    padding: 0;
    resize: none;
    background-color: transparent;
    outline: none;
    line-height: 1.5;
    overflow-y: hidden;
    white-space: pre-wrap;
    word-break: break-all;
    margin-left: 25px;
    margin-right: 20px;
    width:-webkit-fill-available;
}
.column-alias {
    width: 8%;
    word-wrap: break-word;
}
.column-key {
    width: 31%;
}
.column-secret{
    width: 27%;
}
.column-version{
    width: 6%;
}
.column-limit {
    width: 6%;
}
.column-quota {
    width: 6%;
}
.column-used-quota {
    width: 5%;
}
.column-expiry {
    width: 11%;
}
.key-item {
    margin-left: 24px;
    word-break: break-all;
    line-height: 17.5px;
    display: inline-block;
    font-size: 8px;
    color: #545454;
}

/* 
 *
 * Style for test client page
 *
*/

.test_client_nav{
    background-color: #f4f4f4;
    float: left;
    padding: 15px;
    height: 100vh;
    overflow-y: auto;
}
.test_client_nav a{
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ccc;
}
.test_client_main{
    min-height: 100vh;
}
.test_client_nav .dropdown-ul{
    display: none;
}
.test_client_nav .open-drop-down::after{
    content: '\25BC';
    position: absolute;
    right: 10px;
}
.swagger-ui section{
    padding: 0px !important;
}
.swagger-ui .auth-wrapper {
	display:none !important;
}

/*
 * API access page style
 */
.api_access_page {
    font-size: 10px;
}
.active_item {
    color: #012970 !important;
    font-weight: 600;
}
.active_item::after {
    content: '\25B7';
    position: absolute;
    color: #000;
    font-size: 16px;
    margin-left: 15px;
}
.api_access_page tbody td {
    padding:5px 4px;
}
.api_access_page tbody tr td:last-child {
    white-space: nowrap;
}
#api-search-list td, #api-search-list th {
    line-height: 37px;
    padding: 2px 20px;
}
.bg-deny td {
    background: #e08686;
}
.api-detail-table-container {
    padding-left: 20px;
}


/* 
 * Custom space classes
 *
 */
.jdp_mb {
    margin-bottom:20px !important;
}

.eval_page {
    font-size: 15px;
}
.c_select {
    background-position: right 0.1rem center !important;
    padding-left: 4px;
    padding-right: 2px;
}

/*
 * style for swagger detail page at admin
 *
 */
.swagger-details-table-container {
    display: flex;
}

.swagger-old-version {
    margin-left: 100px;
}

/*
 * Style for customers page
 *
*/
#customer-search {
    margin-bottom: 15px;
    flex: 1;
}

#pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

#pagination .page-btn {
  margin: 5px;
  padding: 8px 12px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#pagination .page-btn:hover {
  background-color: #0b5ed7;
  color: white;
}

#pagination .page-btn.active {
  background-color: #0a58ca;
  color: white;
  font-weight: bold;
}

#pagination .page-btn:disabled {
  background-color: darkgray;
  color: #000000;
  cursor: not-allowed;
}

.td-word-break {
    word-break: break-all;
}

.page-ellipsis {
  padding: 6px 12px;
  background-color: transparent;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: default;
}

/*
 * Style for customer details page
 *
*/

.customer_detail_page {
    font-size: 10px;
}
#customerTab .active {
    color: #012970 !important;
    font-weight: 600;
}
#customerTab .active::after {
    content: '\25B7';
    position: absolute;
    color: #000;
    font-size: 16px;
    margin-left: 15px;
}
#customerTabContent #details td{
    font-size: 13px;
}
#sales-person-select {
    font-size: 13px;
}
#sales-person-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.sales-person-filter-container {
    position: relative;
    flex: 1
}
