/* ===== Bảng văn bản AL MEDIA - Desktop ===== */
.al-vanban {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 1.5em 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    font-size: 16px;
}

.al-vanban thead {
    background: linear-gradient(90deg, #00456e, #007dc7);
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    text-align: left;
}

.al-vanban th,
.al-vanban td {
    padding: 14px 18px !important;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.al-vanban th:nth-child(1), .al-vanban td:nth-child(1),
.al-vanban th:nth-child(3), .al-vanban td:nth-child(3),
.al-vanban th:nth-child(4), .al-vanban td:nth-child(4) {
    text-align: center;
    white-space: nowrap;
}

/* Width cố định */
.al-vanban th:nth-child(1), .al-vanban td:nth-child(1) { width: 60px; }
.al-vanban th:nth-child(3), .al-vanban td:nth-child(3) { width: 120px; }
.al-vanban th:nth-child(4), .al-vanban td:nth-child(4) { width: 130px; }

/* Tên văn bản */
.al-vanban td.vb-title {
    text-align: left;
    font-weight: 600;
    font-size: 17px;
    width: 50%;
    white-space: normal;
    word-wrap: break-word;
}

/* Hover & nền */
.al-vanban tbody tr:nth-child(even) { background-color: #f8faff; }
.al-vanban tbody tr:hover {
    background-color: #e6f0ff;
    transform: translateY(-2px);
    transition: all 0.2s;
}

/* Link */
.al-vanban a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: rgba(30,60,114,0.1);
    transition: all 0.2s;
}
.al-vanban a:hover {
    background-color: #1e3c72;
    color: #fff;
}

/* ===== Form đăng văn bản - Desktop & Mobile ===== */
.al-vanban-form {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2em 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    max-width: 700px;
    width: 100%;
}

.al-vanban-form p { margin-bottom: 15px; }

.al-vanban-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e3c72;
}

.al-vanban-form input[type="text"],
.al-vanban-form input[type="date"],
.al-vanban-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 49px;
}

.al-vanban-form input[type="text"]:focus,
.al-vanban-form input[type="date"]:focus,
.al-vanban-form select:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30,60,114,0.3);
    outline: none;
}

.al-vanban-form button {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.al-vanban-form button:hover {
    background: linear-gradient(90deg, #2a5298, #1e3c72);
    transform: translateY(-2px);
}

/* Input date đẹp hơn */
.al-vanban-form input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231e3c72" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H5V8h14v13z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.al-vanban-form input[type="date"]:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30,60,114,0.3);
    outline: none;
}

/* ===== Responsive cho form ===== */
@media screen and (max-width: 768px) {
    .al-vanban-form { padding: 15px 15px; }
    .al-vanban-form button { width: 100%; }
}

/* ===== Responsive Bảng - Mobile card ===== */
@media screen and (max-width: 768px) {
    .al-vanban thead { display: none; }

    .al-vanban, .al-vanban tbody, .al-vanban tr, .al-vanban td {
        display: block;
        width: 100%;
    }

    .al-vanban tr {
        margin-bottom: 1em;
        border-radius: 12px;
        border: 1px solid #ccc;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background-color: #fff;
        padding: 12px 15px;
    }

    .al-vanban td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0 !important;
        border-bottom: 1px solid #eee;
        align-items: center;
        flex-direction: row;
        width: 100% !important;
        text-align: center !important;
    }

    .al-vanban td:last-child { border-bottom: none; }

    .al-vanban td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1e3c72;
        width: 35%;
        min-width: 90px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .al-vanban td.vb-title::before {
        width: 40%;
    }

    .al-vanban td a {
        padding: 4px 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .al-vanban tr:hover {
        transform: translateY(-2px);
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}
/* ===== Form đăng văn bản AL MEDIA - Hiện đại & đẹp ===== */
.al-vanban-form {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2em 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    max-width: 700px;
    width: 100%;
}

/* Khoảng cách giữa các p */
.al-vanban-form p {
    margin-bottom: 18px;
}

/* Label */
.al-vanban-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e3c72;
    font-size: 15px;
}

/* Input & Select */
.al-vanban-form input[type="text"],
.al-vanban-form input[type="date"],
.al-vanban-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 48px;
    box-sizing: border-box;
}

/* Focus effect */
.al-vanban-form input[type="text"]:focus,
.al-vanban-form input[type="date"]:focus,
.al-vanban-form select:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30,60,114,0.3);
    outline: none;
}

/* Nút submit */
.al-vanban-form button {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Hover button */
.al-vanban-form button:hover {
    background: linear-gradient(90deg, #2a5298, #1e3c72);
    transform: translateY(-2px);
}

/* Input date đẹp hơn */
.al-vanban-form input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231e3c72" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H5V8h14v13z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

/* Focus date */
.al-vanban-form input[type="date"]:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30,60,114,0.3);
    outline: none;
}

/* ===== Responsive Form ===== */
@media screen and (max-width: 768px) {
    .al-vanban-form {
        padding: 20px 15px;
    }
    .al-vanban-form button {
        width: 100%;
    }
}
/* ===== Nút upload file ===== */
.al-vanban-form input[type="file"] {
    display: inline-block;
    padding: 8px 12px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.al-vanban-form input[type="file"]:hover {
    border-color: #0073aa; /* xanh WP */
    background: #f0f8ff;
}