/* user.css - consistent styling for all pages */
body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    color: #2c7be5;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

a {
    color: #2c7be5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input[type='checkbox']{
	width: initial;
}

button {
    background: #2c7be5;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #1a5dbf;
}

.error {
    color: red;
}

.status-active {
    color: green;
}

.status-disabled {
    color: red;
}

.expired {
    background: #ffdddd;
}

.blocked {
    background: #ffeedd;
}

td[data-tooltip] {
    position: relative;
    cursor: pointer;
}

td[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    margin-top: 2px;
    z-index: 1000;
}

nav a {
    margin-right: 15px;
}

form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.tocs-container {
    max-height: 300px;      /* Keep the scrollable height */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    column-gap: 20px;       /* Space between columns */
}

.tocs-container label {
    display: block;
    margin-bottom: 6px;
}