/*
 * Matches the Amazon Connect agent workspace, which uses Cloudscape's visual refresh theme.
 * Values are the workspace's own design tokens (contact-handling stylesheet).
 */
:root {
    --font-family-base: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
    --color-text-body-default: #0f141a;
    --color-text-body-secondary: #424650;
    --color-text-empty: #656871;
    --color-border-divider-default: #c6c6cd;
    --color-border-divider-secondary: #ebebf0;
    --color-background-container: #ffffff;
    --color-button-normal: #006ce0;
    --color-button-normal-hover: #002b66;
    --color-background-button-normal-hover: #f0fbff;
    --color-interactive-disabled: #b4b4bb;
    --color-status-error: #db0000;
    --color-status-warning: #855900;
    --color-status-info: #006ce0;
    --shadow-container: 0 0 1px 1px #e9ebed, 0 1px 8px 2px rgba(0, 7, 22, 0.12);
    --border-radius-container: 16px;
    --border-radius-button: 20px;
}

body {
    margin: 0;
    padding: 20px;
    font-family: var(--font-family-base);
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-body-default);
    background: var(--color-background-container);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

h1 { font-size: 20px; line-height: 24px; font-weight: 700; margin: 0; }
h2 { font-size: 18px; line-height: 22px; font-weight: 700; margin: 0 0 12px; }

/* Normal button, like the workspace's Apps button */
button {
    padding: 4px 20px;
    border: 2px solid var(--color-button-normal);
    border-radius: var(--border-radius-button);
    background: var(--color-background-container);
    color: var(--color-button-normal);
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    border-color: var(--color-button-normal-hover);
    background: var(--color-background-button-normal-hover);
    color: var(--color-button-normal-hover);
}

button:focus-visible {
    outline: 2px solid var(--color-button-normal);
    outline-offset: 2px;
}

button:disabled {
    border-color: var(--color-interactive-disabled);
    background: var(--color-background-container);
    color: var(--color-interactive-disabled);
    cursor: default;
}

#status { color: var(--color-text-body-secondary); margin: 8px 0 0; min-height: 20px; }

.container {
    margin: 16px 0 0;
    padding: 16px 20px;
    border-radius: var(--border-radius-container);
    background: var(--color-background-container);
    box-shadow: var(--shadow-container);
    /* The app's tab can be narrow beside the softphone, so wide tables scroll inside their container */
    overflow-x: auto;
}

/* Key-value pairs, like the workspace's contact attributes */
.summary { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.summary dt { color: var(--color-text-body-secondary); font-weight: 700; }
.summary dd { margin: 4px 0 0; font-size: 20px; line-height: 24px; font-weight: 700; }

table { width: 100%; border-collapse: collapse; }

th, td {
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border-divider-secondary);
}

th {
    color: var(--color-text-body-secondary);
    font-weight: 700;
    border-bottom-color: var(--color-border-divider-default);
    white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }

td.empty { padding: 16px 12px; color: var(--color-text-empty); text-align: center; }

/* Status indicators */
td.status { font-weight: 700; white-space: nowrap; }
td:nth-child(1), td:nth-child(3) { white-space: nowrap; }
td.status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}
td.status-missed { color: var(--color-status-warning); }
td.status-rejected { color: var(--color-status-error); }
td.status-voicemail { color: var(--color-status-info); }
