.notice-list,
.notice-admin-list,
.notice-history-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.notice-card,
.notice-admin-card,
.notice-history-item {
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.notice-card-important {
    border-color: #c62828;
}

.notice-important-bar {
    padding: 8px 16px;
    background: #c62828;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.notice-card-content,
.notice-admin-card-main,
.notice-history-item {
    padding: 20px;
}

.notice-header,
.notice-admin-title-row,
.notice-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-title,
.notice-admin-title-row h3 {
    margin: 0;
}

.notice-date,
.notice-updated,
.notice-admin-meta,
.notice-history-manager,
.notice-help,
.notice-admin-delete-meta {
    color: #65717d;
    font-size: 0.9rem;
}

.notice-body,
.notice-admin-body,
.notice-history-body {
    margin-top: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.notice-attachment,
.notice-admin-file {
    margin-top: 18px;
}

.notice-attachment-name {
    display: inline-block;
    margin-left: 10px;
    overflow-wrap: anywhere;
}

.notice-updated {
    margin-top: 18px;
    text-align: right;
}

.notice-important-label,
.notice-deleted-label,
.notice-private-label,
.notice-scheduled-label,
.notice-public-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.notice-important-label {
    background: #c62828;
    color: #ffffff;
}

.notice-deleted-label {
    background: #616161;
    color: #ffffff;
}

.notice-private-label {
    background: #eceff1;
    color: #37474f;
}

.notice-scheduled-label {
    background: #fff3cd;
    color: #7a5800;
}

.notice-public-label {
    background: #e4f5e9;
    color: #17652d;
}

.notice-admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.notice-admin-actions,
.notice-admin-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.notice-admin-card-main {
    padding: 0;
}

.notice-admin-card-actions {
    justify-content: flex-end;
}

.notice-admin-card-actions form {
    margin: 0;
}

.notice-admin-card.is-deleted {
    background: #f5f5f5;
    opacity: 0.88;
}

.notice-text-input,
.notice-textarea,
.notice-datetime-input {
    width: 100%;
    box-sizing: border-box;
}

.notice-textarea {
    resize: vertical;
}

.notice-error {
    color: #c62828;
    font-weight: 700;
}

.notice-current-file,
.notice-remove-file,
.notice-selected-file {
    margin-bottom: 10px;
}

.notice-drop-zone {
    display: flex;
    min-height: 130px;
    padding: 20px;
    border: 2px dashed #9aa8b5;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.notice-drop-zone:hover,
.notice-drop-zone.is-dragover {
    border-color: #1976d2;
    background: #edf6ff;
}

.notice-drop-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.notice-drop-main {
    font-weight: 700;
}

.notice-drop-sub {
    margin-top: 6px;
    color: #65717d;
    font-size: 0.9rem;
}

.notice-selected-file {
    margin-top: 10px;
    font-weight: 700;
}

.notice-history-head {
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8ef;
}

.notice-history-manager {
    margin-top: 12px;
}

@media (max-width: 760px), (max-device-width: 760px) {
    .notice-admin-card {
        grid-template-columns: 1fr;
    }

    .notice-admin-card-actions {
        justify-content: flex-start;
    }

    .notice-attachment-name {
        display: block;
        margin: 10px 0 0;
    }

    .notice-form-table,
    .notice-form-table tbody,
    .notice-form-table tr,
    .notice-form-table th,
    .notice-form-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .notice-form-table th {
        display: none;
    }

    .notice-form-table td:first-child {
        font-weight: 700;
        background: #f4f7fa;
    }
}

/* Public notice cards: match the regatta detail card width */
.notice-list {
    width: 100%;
    max-width: 1180px;
    margin: 20px auto 0;
}

.notice-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.notice-file-link {
    color: #1a5fb4;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.notice-file-link:hover,
.notice-file-link:focus {
    text-decoration: underline;
}

@media (max-width: 760px), (max-device-width: 760px) {
    .notice-list,
    .notice-card {
        width: 100%;
        max-width: none;
    }

    .notice-card-content {
        padding: 17px;
    }
}



/* Ver.1.1 official notice card refinements */
.notice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.notice-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.notice-category-info {
    color: #0F4C81;
    background: #E8F2FF;
    border: 1px solid #BFD8F5;
}

.notice-category-official {
    color: #0F4C81;
    background: #E8F2FF;
    border: 1px solid #BFD8F5;
}

.notice-public-date {
    color: #65717d;
    font-size: 0.9rem;
    text-align: right;
}

.notice-card .notice-title {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.4;
}

.notice-publisher-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.notice-publisher-label {
    color: #65717d;
    font-size: 0.9rem;
}

.notice-publisher-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 10px;
    border: 1px solid #D8E1EA;
    border-radius: 999px;
    background: #F4F7FA;
    color: #4A5568;
    font-size: 0.86rem;
    font-weight: 700;
}

.notice-card .notice-body {
    margin-top: 20px;
}

.notice-card .notice-attachment,
.notice-admin-card .notice-admin-file {
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid #e2e8ef;
}

.notice-admin-meta .notice-publisher-row {
    margin-top: 8px;
}

@media (max-width: 760px), (max-device-width: 760px) {
    .notice-card-header {
        align-items: flex-start;
    }

    .notice-public-date {
        width: 100%;
        text-align: left;
    }

    .notice-card .notice-title {
        font-size: 21px;
    }
}


.notice-update-date {
    color: #65717d;
    font-size: 0.9rem;
    text-align: right;
}


/* Ver.1.1 manager final layout */
.notice-date-group {
    color: #65717d;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: right;
}

.notice-update-date {
    color: #65717d;
    font-size: 0.9rem;
    text-align: right;
}

.notice-admin-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-admin-card .notice-title {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.4;
}

.notice-admin-card .notice-admin-file {
    color: #1a5fb4;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 760px), (max-device-width: 760px) {
    .notice-date-group,
    .notice-update-date {
        width: 100%;
        text-align: left;
    }

    .notice-admin-card .notice-title {
        font-size: 21px;
    }
}
