.nsg-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    margin-bottom: 2em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nsg-header {
    background-color: #009ce6; /* Đã đổi mã màu */
    color: #fff;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 600;
}
.nsg-body {
    padding: 20px;
    background-color: #fff;
}
.nsg-body > div:not(:first-child) {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}
.nsg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.nsg-grid-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nsg-grid-row {
    display: flex;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.nsg-grid-label {
    background-color: #f7f7f7;
    padding: 8px 12px;
    font-weight: 500;
    color: #333;
    flex: 0 0 150px;
    border-right: 1px solid #f0f0f0;
}
.nsg-grid-value {
    padding: 8px 12px;
    color: #555;
    flex-grow: 1;
    white-space: pre-wrap;
}
.nsg-full-width-field {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.nsg-full-width-label {
    display: block;
    background-color: #f7f7f7;
    padding: 8px 12px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.nsg-full-width-value {
    padding: 12px;
    white-space: pre-wrap;
}
.nsg-main-content {
    line-height: 1.7;
}

/* CSS CHO PHẦN FILE ĐÍNH KÈM */
.nsg-attachment-container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.nsg-attachment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    padding: 8px 12px;
    font-weight: 500;
}
.nsg-button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #009ce6; /* Đã đổi mã màu */
    cursor: pointer;
    transition: all .2s ease-in-out;
}
.nsg-download-btn {
    background-color: #009ce6; /* Đã đổi mã màu */
    color: #fff;
}
.nsg-download-btn:hover {
    background-color: #0087c9; /* Màu sẫm hơn để hover */
    border-color: #0087c9;
}
.nsg-embedded-preview {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
}
.nsg-embedded-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Kết thúc CSS mới */

@media screen and (max-width:768px) {
    .nsg-grid { grid-template-columns: 1fr; }
    .nsg-grid-label { flex-basis: 120px; }
}
.nsg-doc-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.nsg-doc-card { background: #fff; border: 1px solid #e57373; border-radius: 8px; box-shadow: 0 2px 8px rgba(211,47,47,0.08); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.nsg-doc-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.nsg-doc-status { background: #e0f2f1; color: #388e3c; font-size: 13px; padding: 2px 10px; border-radius: 12px; font-weight: bold; }
.nsg-doc-so-ky-hieu { font-weight: bold; color: #d32f2f; font-size: 16px; }
.nsg-doc-card-title { font-size: 17px; font-weight: bold; color: #222; margin-bottom: 4px; }
.nsg-doc-card-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: #555; }
.nsg-doc-card-meta span { margin-bottom: 2px; }
.nsg-doc-card-actions { margin-top: 8px; }
.nsg-doc-card .attach-btn { background: #e57373; color: #fff; border: none; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.nsg-doc-card .attach-btn:hover { background: #d32f2f; }
.nsg-doc-card .pdf-icon { color: #d32f2f; font-size: 18px; vertical-align: middle; margin-right: 4px; }
.nsg-doc-empty { text-align: center; color: #888; font-size: 16px; padding: 24px 0; }
@media (max-width: 600px) {
    .nsg-doc-card-meta { flex-direction: column; gap: 6px; }
    .nsg-doc-card { padding: 12px 8px; }
}