:root {
    --md-primary-fg-color: #6878ac;
    --md-primary-fg-color--light: #8ea3ea;
    --md-primary-fg-color--dark: #454f71;
}

.title-image {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

@media print {

    .md-sidebar--primary,
    .md-sidebar--secondary {
        display: none;
    }

    .md-content {
        margin-left: 0;
    }
}

table.invite {
    font-size: 0.8em;
    width: 80%;
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
    border: none;
    margin-bottom: 20px;
}

table.invite tr {
    display: flex;
    width: 100%;
    flex-direction: row;
}

table.invite td.label-required {
    position: relative;
    padding-right: 60px;
}

table.invite td.label-required::after {
    content: '必須';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    background: #d9534f;
    color: #fff;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
}

table.invite td {
    display: flex;
    width: 80%;
    padding: 10px;
    border: none;
    /*1px solid #ccc;*/
    align-items: center;
    justify-content: flex-start;
}

table.invite td:first-child {
    width: 15%;
    min-width: 120px;
    text-align: left;
    font-weight: bold;
    background-color: #f0f0f0;
    white-space: nowrap;
}

table.invite td.lid-input input.lid-input {
    width: 100%;
    margin-right: 10px;
}

table.invite input {
    width: 100%;
    padding: 8px;
    border: 2px solid #007BFF;
    border-radius: 4px;
    background-color: #f9f9f9;
}

table.invite input:focus {
    border-color: #0056b3;
    background-color: #e9f5ff;
}

table.invite span.comment {
    /*font-size: 0.7em;*/
    color: #555;
    white-space: nowrap;
}

table.invite textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #007BFF;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    /* 必要なら none に変更 */
    min-height: 3em;
}

table.invite textarea:focus {
    border-color: #0056b3;
    background-color: #e9f5ff;
}

.label-required::after {
    content: "*";
    color: #d9534f;
    margin-left: 2px;
    font-size: 0.9em;
    vertical-align: super;
}

.table-wrapper {
    text-align: left;
    width: 80%;
}

button.invite {
    font-size: 0.8em;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* display: block;  */
    margin: 0 auto;
}

button.invite:hover {
    background-color: #0056b3;
}

.result-box {
    margin-top: 1em;
    padding: 1em;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.result-success {
    background-color: #e6ffed;
    border: 1px solid #38c172;
    color: #1b5e20;
}

.result-error {
    background-color: #ffe6e6;
    border: 1px solid #e53935;
    color: #b71c1c;
}

.result-warn {
    background-color: #fffbe6;
    border: 1px solid #fbc02d;
    color: #795548;
}