* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #333;
}

.header {
    background: #1f2937;
    color: white;
    padding: 20px 30px;
}

.header h1 {
    margin: 0;
    font-size: 28px;
}

.header p {
    margin: 5px 0 0;
    color: #d1d5db;
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.search-box {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.site-list {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.site-list a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.site-list a:hover {
    background: #f0f4f8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 5px;
}

.info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.info-value {
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #374151;
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #f9fafb;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

/* MAIL BUTTON */
.button.mail-button {
    background: #16a34a !important;
    color: white !important;
}

.button.mail-button:hover {
    background: #15803d !important;
}

.button:hover {
    background: #1d4ed8;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #2563eb;
}

.status-open {
    font-weight: bold;
}

.status-closed {
    font-weight: bold;
}

@media (max-width: 800px) {

    .info-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 10px;
    }

    table {
        font-size: 13px;
    }

}
/* CALL HISTORY ACTION LINKS */

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

.action-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* EDIT */
.edit-dot {
    background: #2563eb;
}
/* MAIL */
.mail-dot {
    background: #16a34a;
}

.action-link:hover {
    text-decoration: underline;
}
/* COMPLETED CALLS */

.call-completed {
    background: #dcfce7 !important;
}

.call-completed:hover {
    background: #bbf7d0 !important;
}
/* Keep the page content comfortably inset */
body {
    padding: 24px;
}

/* Keep the account form at a readable width */
form:not(td form) {
    max-width: 560px;
}

/* Keep table action forms compact */
td form {
    max-width: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.login-heading {
    margin-bottom: 28px;
    text-align: center;
}

.login-heading h1 {
    margin: 0;
    color: #1f2937;
}

.login-heading p {
    margin: 8px 0 0;
    color: #6b7280;
}

.login-error {
    padding: 12px;
    color: #842029;
    background: #f8d7da;
    border-radius: 5px;
}

.login-button {
    width: 100%;
}

tr.closed-call,
tr.closed-call td {
    background-color: #fde8e8;
}