
/*
 * Course Notices dashboard sidebar icon fallback.
 * Some Tutor/Edubin builds do not include the notification icon class in their icon font,
 * so we inject a small SVG icon and color it from the site's global primary variables.
 */
.tutor-dashboard a[href*="eduvalley-notices"],
.tutor-dashboard-sidebar a[href*="eduvalley-notices"],
.tutor-dashboard-left-menu a[href*="eduvalley-notices"],
.tutor-dashboard-menu a[href*="eduvalley-notices"],
.tutor-dashboard-permalinks a[href*="eduvalley-notices"],
.tutor-dashboard-nav a[href*="eduvalley-notices"] {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

.tutor-dashboard a[href*="eduvalley-notices"]::before,
.tutor-dashboard-sidebar a[href*="eduvalley-notices"]::before,
.tutor-dashboard-left-menu a[href*="eduvalley-notices"]::before,
.tutor-dashboard-menu a[href*="eduvalley-notices"]::before,
.tutor-dashboard-permalinks a[href*="eduvalley-notices"]::before,
.tutor-dashboard-nav a[href*="eduvalley-notices"]::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background-color: var(--tutor-color-primary, var(--edubin-primary-color, var(--e-global-color-primary, #f58220)));
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M7%203h10a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203H9.2l-4.1%203.2A.7.7%200%200%201%204%2020.65V6a3%203%200%200%201%203-3Zm0%202a1%201%200%200%200-1%201v12.6l2.45-1.9A1%201%200%200%201%209.07%2016H17a1%201%200%200%200%201-1V6a1%201%200%200%200-1-1H7Zm2%203h6a1%201%200%201%201%200%202H9a1%201%200%201%201%200-2Zm0%204h4a1%201%200%201%201%200%202H9a1%201%200%201%201%200-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M7%203h10a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203H9.2l-4.1%203.2A.7.7%200%200%201%204%2020.65V6a3%203%200%200%201%203-3Zm0%202a1%201%200%200%200-1%201v12.6l2.45-1.9A1%201%200%200%201%209.07%2016H17a1%201%200%200%200%201-1V6a1%201%200%200%200-1-1H7Zm2%203h6a1%201%200%201%201%200%202H9a1%201%200%201%201%200-2Zm0%204h4a1%201%200%201%201%200%202H9a1%201%200%201%201%200-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rtl .tutor-dashboard a[href*="eduvalley-notices"]::before,
.rtl .tutor-dashboard-sidebar a[href*="eduvalley-notices"]::before,
.rtl .tutor-dashboard-left-menu a[href*="eduvalley-notices"]::before,
.rtl .tutor-dashboard-menu a[href*="eduvalley-notices"]::before,
.rtl .tutor-dashboard-permalinks a[href*="eduvalley-notices"]::before,
.rtl .tutor-dashboard-nav a[href*="eduvalley-notices"]::before {
    margin-left: 0;
    margin-right: 0;
}

.ev-tcn-wrap {
    direction: ltr;
}

.ev-tcn-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ev-tcn-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #161616;
}

.ev-tcn-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ev-tcn-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid transparent;
}

.ev-tcn-alert-success {
    background: #ecfdf3;
    color: #067647;
    border-color: #abefc6;
}

.ev-tcn-alert-error {
    background: #fef3f2;
    color: #b42318;
    border-color: #fecdca;
}

.ev-tcn-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 22px;
    align-items: start;
}

.ev-tcn-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
    overflow: hidden;
}

.ev-tcn-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: #fbfbfc;
}

.ev-tcn-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.ev-tcn-card-body {
    padding: 20px;
}

.ev-tcn-field {
    margin-bottom: 16px;
}

.ev-tcn-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.ev-tcn-field input[type="text"],
.ev-tcn-field select,
.ev-tcn-field textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    box-shadow: none;
}

.ev-tcn-field textarea {
    min-height: 150px;
    resize: vertical;
}

.ev-tcn-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ev-tcn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    transition: 0.18s ease;
}

.ev-tcn-button-primary {
    background: #3057d5;
    color: #fff !important;
}

.ev-tcn-button-primary:hover {
    background: #2447b8;
    color: #fff !important;
}

.ev-tcn-button-secondary {
    background: #fff;
    color: #344054 !important;
    border-color: #d0d5dd;
}

.ev-tcn-button-secondary:hover {
    background: #f9fafb;
}

.ev-tcn-button-danger {
    background: #fff;
    color: #b42318 !important;
    border-color: #fecdca;
}

.ev-tcn-button-danger:hover {
    background: #fef3f2;
}

.ev-tcn-table-wrap {
    overflow-x: auto;
}

.ev-tcn-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ev-tcn-table th,
.ev-tcn-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.ev-tcn-table th {
    background: #fbfbfc;
    color: #344054;
    font-weight: 700;
}

.ev-tcn-table td {
    color: #444;
}

.ev-tcn-table tr:last-child td {
    border-bottom: none;
}

.ev-tcn-notice-title {
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.ev-tcn-muted {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.ev-tcn-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ev-tcn-status-publish {
    background: #ecfdf3;
    color: #067647;
}

.ev-tcn-status-draft {
    background: #f2f4f7;
    color: #344054;
}

.ev-tcn-empty {
    text-align: center;
    padding: 28px 16px;
    color: #667085;
}

@media (max-width: 991px) {
    .ev-tcn-grid {
        grid-template-columns: 1fr;
    }

    .ev-tcn-header {
        display: block;
    }
}

.ev-tcn-file-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    background: #f9fafb;
}

.ev-tcn-file-current .dashicons,
.ev-tcn-pdf-pill .dashicons {
    color: #d92d20;
}

.ev-tcn-pdf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 4px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fef3f2;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.ev-tcn-pdf-pill a {
    color: #b42318 !important;
    text-decoration: none !important;
}

.ev-tcn-field input[type="file"] {
    width: 100%;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}
