/*
 * The MIT License
 *
 * Copyright (c) 2018, CloudBees, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

.token-list {
  max-width: 700px;
}

.token-card__title,
.token-stats,
.token-never-used,
.token-list .jenkins-card,
.token-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.token-name {
  overflow-wrap: anywhere;
}

.token-card__title {
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-bold-weight);
  width: fit-content;
}

.token-controls {
  margin-left: auto;
  padding-right: 1rem;
  margin-right: -0.25rem;
}

.token-controls button {
  padding: 0;
  height: 2.5rem;
  width: 2.5rem;
}

.api-token-new-form-row.jenkins-quote {
  color: var(--text-color);
}

.api-token-new-form-row span:has(button) {
  margin-left: auto;
}

.api-token-new-form-row button {
  margin-right: 0 !important;
}

.token-card-inner {
  width: 100%;
  padding: 0.5rem 1rem;
}

.token-creation {
  font-size: var(--font-size-xs);
  color: var(--text-color-secondary);
  width: fit-content;
}

.token-last-used {
  font-size: var(--font-size-xs);
  color: var(--text-color-secondary);
  margin-left: auto;
}

.legacy-token {
  color: var(--warning-color);
}

.legacy-token svg {
  width: 20px;
  height: 20px;
}

.api-token-new-form-row {
  width: 100%;
}

.token-use-counter {
  display: none;
}
