/* ==========================================================================
   TOMKE-Meldung

   Zwei Teile: die Meldung, wie der Kunde sie sieht (.tomke-notice), und die
   Verwaltung im Adminbereich (.notice-admin). Beides steht in einer eigenen
   Datei, weil die Anmeldeseite nicht dieselben Stylesheets laedt wie die
   angemeldete Anwendung.

   Die Art der Meldung traegt die Farbe: eine angekuendigte Wartung sieht anders
   aus als eine Stoerung. Das Symbol wiederholt die Aussage, damit die
   Unterscheidung nicht allein an der Farbe haengt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Meldung in der Kundenansicht
   -------------------------------------------------------------------------- */

.tomke-notice-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.tomke-notice {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #dde3e5;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(42, 49, 52, .05), 0 10px 26px -14px rgba(42, 49, 52, .3);
    overflow: hidden;
    transition: opacity .2s ease, transform .2s ease;
}

.tomke-notice[hidden] {
    display: none;
}

.tomke-notice.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
}

.tomke-notice-mark {
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a3134;
    color: #ffffff;
    font-size: 17px;
}

/* Art der Meldung */
.tomke-notice--information .tomke-notice-mark {
    background: #2a3134;
    color: #ffffff;
}

.tomke-notice--wartung .tomke-notice-mark {
    background: #f28600;
    color: #ffffff;
}

.tomke-notice--wartung {
    border-color: #f3d3a8;
}

.tomke-notice--stoerung .tomke-notice-mark {
    background: #b3382c;
    color: #ffffff;
}

.tomke-notice--stoerung {
    border-color: #eec4bf;
}

.tomke-notice-body {
    flex: 1 1 auto;
    padding: 16px 16px 14px 18px;
    min-width: 0;
}

.tomke-notice-title {
    font-family: 'AllianzNeo-SemiBold', sans-serif;
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 5px;
    color: #2a3134;
}

.tomke-notice-text {
    font-size: 14.5px;
    line-height: 1.5;
    color: #46504f;
}

.tomke-notice-text p {
    margin: 0 0 6px;
}

.tomke-notice-text p:last-child {
    margin-bottom: 0;
}

.tomke-notice-text a {
    color: #006192;
}

.tomke-notice-meta {
    margin: 9px 0 0;
    font-size: 12.5px;
    color: #949ea1;
}

.tomke-notice-close {
    flex: 0 0 auto;
    align-self: flex-start;
    appearance: none;
    background: none;
    border: 0;
    width: 40px;
    height: 44px;
    color: #949ea1;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.tomke-notice-close:hover {
    color: #2a3134;
}

.tomke-notice-close:focus-visible {
    outline: 2px solid #f28600;
    outline-offset: -4px;
    border-radius: 6px;
}

.dashboard-shortcuts .tomke-notice-stack {
    margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   Kennzeichen: Art und Status
   -------------------------------------------------------------------------- */

.notice-level,
.notice-state {
    display: inline-block;
    font-size: 12.5px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
}

.notice-level--information {
    color: #2a3134;
    background: #f2f4f5;
    border-color: #dde3e5;
}

.notice-level--wartung {
    color: #7a4b05;
    background: #fdf5e9;
    border-color: #f2ddba;
}

.notice-level--stoerung {
    color: #7d2b22;
    background: #fdf0ee;
    border-color: #f2cdc7;
}

/* Der Status ist abgeleitet, nicht gepflegt - deshalb ruhig gehalten */
.notice-state--laeuft {
    color: #1f5c39;
    background: #eef7f1;
    border-color: #cbe4d5;
}

.notice-state--geplant {
    color: #1d4e63;
    background: #eef4f7;
    border-color: #c9dde6;
}

.notice-state--abgelaufen {
    color: #667175;
    background: #f2f4f5;
    border-color: #dde3e5;
}

/* --------------------------------------------------------------------------
   Verwaltung im Adminbereich
   -------------------------------------------------------------------------- */

.notice-admin {
    padding-top: 36px;
    padding-bottom: 60px;
}

.notice-admin-head {
    margin-bottom: 26px;
}

.notice-admin-head h1 {
    font-family: 'AllianzNeo-SemiBold', sans-serif;
    font-size: 28px;
    margin: 0 0 8px;
    color: #2a3134;
}

.notice-admin-head p {
    color: #667175;
    max-width: 62ch;
    margin: 0 0 16px;
}

.notice-admin-back {
    display: inline-block;
    font-size: 14px;
    color: #006192;
    margin-bottom: 10px;
}

.notice-admin-table {
    background: #fff;
    border: 1px solid #dde3e5;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.notice-admin-table thead th {
    font-family: 'AllianzNeo-Regular', sans-serif;
    font-size: 12.5px;
    color: #667175;
    font-weight: normal;
    border-bottom: 1px solid #dde3e5;
    border-top: 0;
    padding: 12px 14px;
}

.notice-admin-table tbody td {
    vertical-align: middle;
    padding: 14px;
    border-top: 1px solid #eef1f2;
    font-size: 14.5px;
}

.notice-admin-title {
    font-family: 'AllianzNeo-SemiBold', sans-serif;
    color: #2a3134;
}

.notice-admin-title:hover {
    color: #f28600;
}

.notice-admin-sub {
    font-size: 12.5px;
    color: #949ea1;
}

.notice-admin-dates {
    white-space: nowrap;
    color: #46504f;
}

.notice-admin-places span {
    display: block;
    font-size: 12.5px;
    color: #667175;
}

.notice-admin-empty {
    background: #fff;
    border: 1px dashed #cfd7da;
    border-radius: 12px;
    padding: 32px;
    color: #667175;
    max-width: 62ch;
}

.notice-admin-empty p {
    margin: 0 0 6px;
}

.notice-admin-panel {
    background: #fff;
    border: 1px solid #dde3e5;
    border-radius: 12px;
    padding: 26px 24px 20px;
}

.notice-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #eef1f2;
    padding-top: 18px;
    margin-top: 6px;
}

.notice-admin-preview {
    margin-top: 32px;
}

.notice-admin-preview h2 {
    font-family: 'AllianzNeo-Regular', sans-serif;
    font-size: 14px;
    color: #667175;
    margin: 0 0 12px;
}

/* Kurzliste im Dashboard */
.notice-admin-compact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-admin-compact li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eef1f2;
    font-size: 14.5px;
}

.notice-admin-compact a {
    color: #2a3134;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-admin-compact a:hover {
    color: #f28600;
}

@media (max-width: 767px) {
    .notice-admin-table thead {
        display: none;
    }

    .notice-admin-table tbody td {
        display: block;
        border-top: 0;
        padding: 4px 14px;
    }

    .notice-admin-table tbody tr {
        display: block;
        border-top: 1px solid #eef1f2;
        padding: 10px 0;
    }
}

@media (max-width: 575px) {
    .tomke-notice-mark {
        flex-basis: 42px;
        font-size: 15px;
    }

    .tomke-notice-body {
        padding: 13px 10px 12px 14px;
    }
}
