a{
    text-decoration:none;
}
* {
box-sizing: border-box;
}

.card {
background-color: dodgerblue;
color: white;
padding: 1rem;
height: 4rem;
}

.cards {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-gap: 1rem;
}

/* Screen larger than 600px? 2 column */
@media (min-width: 600px) {
.cards { grid-template-columns: repeat(2, 1fr); }
}

/* Screen larger than 900px? 3 columns */
@media (min-width: 900px) {
.cards { grid-template-columns: repeat(3, 1fr); }
}
html,body {
  height: 100%;
  font-size:18px;
}
.logo {
  display: inline-block;
  vertical-align: middle;
}
.version {
  display: inline-block;
  vertical-align: middle;
  text-align: right;
}
h4 {
  padding: 5px 0;
}
.topcontainer {
  margin-left: 20px;
}
.topblock {
  font-size: 60px;
  /* font-weight: bold; */
}

.topblock p {
    margin: 5px 0;
  max-width: 100%;
  max-height: 100%;
  padding: 40px 0;
  text-align: center;
}
.topblock svg{
  
}

.centercontainer {
  margin: 0 0 0 15px;
}
.centercontainer h3{
  text-align:center;
}
.pft {
  margin: 0 10px 0 0;
  padding-left:2px;
}
.pftlabel {
  font-weight:normal;
  margin:3px 0;
}
.sysinfo {
  font-weight: bold;
  border: none;
  margin: 0 0 0 5px;
  min-width: 20px;
}
.pftvalue input {
  margin: 3px;
  font-weight: bold;
  padding: 5px;
}
.pftvalue select {
  margin: 3px;
  font-weight: bold;
  padding: 5px;
}
.buttonline {
  margin: 15px 0 0 0;
  text-align: right;
}
.buttonline .btn {
  font-size: 20px;
}
.pftbutton {
  margin: 12px 0;
}
.btn {
  font-size:20px;
}
.styled-table {
    border-collapse: collapse; /* Use collapse for cleaner lines */
    margin: 0 auto;
    font-size: 0.9em;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    width: 99%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.styled-table thead tr {
    background-color: #ffffff; /* Remove heavy background */
    color: #333333; /* Darker text for contrast */
    text-align: left;
    font-weight: 600; /* Bolder headers */
    border-bottom: 2px solid #f0f0f0; /* Subtle separator */
}

.styled-table th,
.styled-table td {
    padding: 15px 20px; /* More vertical padding for readability */
    vertical-align: middle;
    border: none !important;
}

.styled-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease-in-out;
}

.styled-table tbody tr:last-of-type {
    border-bottom: none;
}

.styled-table tbody tr:hover {
    background-color: #f5f5f5; /* Subtle hover effect */
}

/* --- Action Buttons --- */
.styled-table td .dashicons {
    font-size: 18px;
    vertical-align: middle;
}

.styled-table td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Circular buttons */
    margin: 0 4px;
    text-decoration: none;
    cursor: pointer;
    color: #555;
    background-color: transparent;
    border: none;
    padding: 0 !important;
    transition: all 0.2s ease-in-out;
}

.styled-table td a:hover {
    color: #fff;
}

.styled-table .edit-pft-user:hover,
.styled-table .edit-button:hover {
    background-color: #0073aa; /* WordPress Blue */
    border-color: #0073aa;
}

.styled-table .remove-pft-user:hover,
.styled-table .delete-user:hover,
.styled-table .delete-service:hover,
.styled-table .remove-pft-device:hover,
.styled-table .remove-device-service:hover {
    background-color: #d63638; /* Red for destructive actions */
    border-color: #d63638;
}

.styled-table .save-pft-user:hover,
.styled-table .save-pft-device:hover {
    background-color: #46b450; /* Green for positive actions */
    border-color: #46b450;
}


/* --- SCFUSER-ID Styling --- */
.pft-user-id-chip {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eef7ff;
    border: 1px solid #d1e9ff;
    color: #0073aa;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
}

.client-id-dropdown select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    margin-right: 8px;
    font-family: inherit;
    font-size: 0.95em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-id-dropdown select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.wrap h2 {
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    margin-left: 12px;
}

/* Material Design 3 Dropdown */
.client-id-dropdown {
margin-top: 8px;
animation: slideInDown 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.client-id-dropdown select:hover {
border-color: rgba(0, 152, 121, 0.6);
}

.client-id-dropdown select:focus {
outline: none;
border-color: #009879;
border-width: 2px;
box-shadow: 0 0 0 1px rgba(0, 152, 121, 0.2);
}

/* Material Design 3 User ID Display - Fixed */
.styled-table td a[id^="pft_user_text_"] {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    display: inline !important;
    margin: 0 !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
}

/* Actions column alignment */
.styled-table td:last-child {
text-align: left;
white-space: nowrap;
}

/* Material Design 3 Enhanced table header */
.wrap h2 {
color: #1a1a1a;
font-size: 28px;
font-weight: 400;
margin-bottom: 24px;
padding-bottom: 12px;
border-bottom: 1px solid rgba(0, 152, 121, 0.2);
position: relative;
}

.wrap h2::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 48px;
height: 2px;
background: #009879;
border-radius: 2px;
}

/* Material Design 3 Loading state */
.loading {
opacity: 0.6;
pointer-events: none;
position: relative;
}

.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
border: 2px solid transparent;
border-top: 2px solid currentColor;
border-radius: 50%;
animation: spin 1s linear infinite;
}

/* Material Design 3 Animations */
@keyframes slideInDown {
from {
    opacity: 0;
    transform: translateY(-8px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Material Design 3 Responsive adjustments */
@media (max-width: 768px) {
.styled-table {
    font-size: 0.8rem;
    margin: 16px 0;
    border-radius: 8px;
}

.styled-table th,
.styled-table td {
    padding: 12px 8px;
}

.styled-table td a {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin: 0 1px;
}

.styled-table td a::before {
    width: 28px;
    height: 28px;
}

.dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.wrap h2 {
    font-size: 24px;
    margin-bottom: 16px;
}
}

@media (max-width: 480px) {
.styled-table {
    font-size: 0.75rem;
    border-radius: 6px;
}

.styled-table th,
.styled-table td {
    padding: 8px 4px;
}

.styled-table td a {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}
}

/*
 * Style for inline ID assignment form
 */
.scf-assign-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scf-assign-form select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.9em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-grow: 1; /* Allow select to take up space */
}

.scf-assign-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.save-inline-user {
    background: none;
    border: none;
    cursor: pointer;
    color: #46b450;
    padding: 6px;
}
.save-inline-user .dashicons {
    font-size: 22px;
}

/* 
 * Improved User ID Chip with hover-reveal remove button
 */
.pft-user-id-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px 4px 12px;
    background-color: #eef7ff;
    border: 1px solid #d1e9ff;
    color: #0073aa;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.pft-user-id-chip .remove-chip-form {
    display: inline-flex;
    margin-left: 4px;
    opacity: 0; /* Hidden by default */
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pft-user-id-chip:hover .remove-chip-form {
    opacity: 1; /* Reveal on hover */
    transform: translateX(0);
}

.remove-inline-user {
    background: none;
    border: none;
    cursor: pointer;
    color: #d63638;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.remove-inline-user .dashicons {
    font-size: 16px;
    vertical-align: middle;
}

#show-add-service-form, input.button.button-primary{
    height: 43px;
    color: rgb(20, 179, 227);
    border-color: rgb(20, 179, 227);
}

#show-add-service-form:hover, input.button.button-primary:hover {
    height: 43px;
    background-color: rgb(20, 179, 227);
    color: white;
}

#show-add-service-form:hover, input.button.button-primary:focus {
    height: 43px;
    background-color: rgb(20, 179, 227);
    color: white;
}

#cancel-add-service {
    height: 43px;
}