﻿/* =====================================================
   DOCUMENT MANAGEMENT SYSTEM
   Compact UI - WebForm Style Modernized
   ===================================================== */

/* =====================================================
   FONT TOÀN HỆ THỐNG
   ===================================================== */

html,
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #222;
    line-height: 1.35;
    margin: 0;
    padding: 0;
}

/* =====================================================
   CONTAINER
   ===================================================== */

.container-fluid {
    padding-left: 8px;
    padding-right: 8px;
}

/* =====================================================
   TIÊU ĐỀ
   ===================================================== */

h1 {
    font-size: 24px;
    font-weight: 600;
}

h2 {
    font-size: 21px;
    font-weight: 600;
}

h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

h4 {
    font-size: 17px;
    font-weight: 600;
}

h5 {
    font-size: 15px;
    font-weight: 600;
}

/* =====================================================
   NỘI DUNG
   ===================================================== */

.Content {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.contentB {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

/* =====================================================
   LINK
   ===================================================== */

a {
    color: #003399;
    text-decoration: none;
}

    a:hover {
        color: #003399;
        text-decoration: underline;
    }

.MenuLink {
    font-size: 13px;
    color: #003399;
    text-decoration: none;
}

    .MenuLink:hover {
        color: #003399;
        text-decoration: underline;
    }

/* =====================================================
   TABLE
   ===================================================== */

.table {
    font-size: 13px;
    margin-bottom: 0;
}

    .table thead th {
        padding: 6px 8px !important;
        font-weight: 600;
        vertical-align: middle !important;
    }

    .table th,
    .table td {
        padding: 4px 8px !important;
        vertical-align: middle !important;
        line-height: 1.2;
        height: 30px;
    }

/* hover nhẹ */

.table-hover tbody tr:hover {
    background-color: #f5f8ff;
}

/* =====================================================
   FORM
   ===================================================== */

.form-control,
.form-select {
    font-size: 13px;
    min-height: 32px;
    padding: 4px 8px;
}

textarea.form-control {
    min-height: 70px;
}

label {
    margin-bottom: 2px;
    font-size: 13px;
}

/* =====================================================
   CHECKBOX
   ===================================================== */

.form-check-input,
input[type=checkbox] {
    width: 15px;
    height: 15px;
}

input[type=checkbox] {
    transform: scale(0.9);
}

/* =====================================================
   BUTTON
   ===================================================== */

.btn {
    font-size: 12px;
    padding: 3px 10px;
}

.btn-sm {
    font-size: 12px;
    padding: 2px 8px;
}

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination .page-link {
    font-size: 13px;
    padding: 4px 10px;
}

/* =====================================================
   CARD
   ===================================================== */

.card-header {
    padding: 6px 10px;
}

.card-body {
    padding: 10px;
}

/* =====================================================
   ALERT
   ===================================================== */

.alert {
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* =====================================================
   DATATABLES
   ===================================================== */

.dataTables_wrapper {
    font-size: 13px;
}

    .dataTables_wrapper .form-control,
    .dataTables_wrapper .form-select {
        min-height: 30px;
    }

.dataTables_info,
.dataTables_length,
.dataTables_filter {
    font-size: 13px;
}

/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
    min-height: 40px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.navbar-brand {
    font-size: 14px;
    font-weight: 600;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-nav .nav-link {
    font-size: 13px;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    color: #003399 !important;
}

    .navbar-nav .nav-link:hover {
        text-decoration: underline;
    }

/* =====================================================
   DOCUMENT TITLE LINK
   ===================================================== */

.doc-title-link {
    color: #003399;
    text-decoration: none;
}

    .doc-title-link:hover {
        color: #003399;
        text-decoration: underline;
    }

/* =====================================================
   INPUT GROUP
   ===================================================== */

.input-group-text {
    font-size: 13px;
    padding: 4px 8px;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-header {
    padding: 8px 12px;
}

.modal-body {
    padding: 12px;
}

.modal-footer {
    padding: 8px 12px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {

    html,
    body {
        font-size: 12px;
    }

    .table {
        font-size: 12px;
    }

    .navbar-nav .nav-link {
        font-size: 12px;
    }
}
/* ===================================
   DOCUMENT NAVBAR
   =================================== */

.document-navbar {
    background-color: #0056b3 !important;
    border-bottom: 1px solid #002299;
}

    .document-navbar .nav-link {
        color: #ffffff !important;
        font-weight: 600;
        font-size: 13px;
    }

        .document-navbar .nav-link:hover {
            color: #ffeb99 !important;
            text-decoration: none;
        }       
    .document-navbar .navbar-brand {
        color: #ffffff !important;
    }

    .document-navbar .navbar-toggler {
        border-color: rgba(255,255,255,.4);
    }
    /* ngày hiện tại */

    .document-navbar .text-warning {
        color: #ffe082 !important;
    }
/* =====================================================
   HOME PAGE
   ===================================================== */

.site-container {
    max-width: 1200px;
    margin: auto;
    background: #ffffff;
}

/* =========================
   BANNER
   ========================= */

.home-banner {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    background: #0056b3;
}

/* =========================
   MENU TRANG CHỦ
   ========================= */

.main-menu {
    background: #0056b3;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

    .main-menu .navbar-nav .nav-link {
        color: #ffffff !important;
        font-size: 13px;
        font-weight: 600;
        padding: 6px 12px;
        margin: 2px;
        border-radius: 3px;
        transition: all .15s ease;
    }

        .main-menu .navbar-nav .nav-link:hover {
            color: #ffe082 !important;
            background-color: #003c80;
            border-radius: 3px;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
            text-decoration: none;
        }

/* =========================
   THÔNG TIN HÔM NAY
   ========================= */

.info-bar {
    background: #eaf4ff;
    border: 1px solid #c9def7;
    padding: 8px 15px;
    font-size: 13px;
    color: #004ea2;
}

/* =========================
   TIÊU ĐỀ CÁC KHỐI
   ========================= */

.box-title,
.login-title {
    background: #0056b3;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    height: 42px;
    line-height: 42px;
    padding: 0 15px;
}
.box-title-login
 {
    background: #0056b3;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    height: 42px;
    line-height: 42px;
    padding: 0 15px;
}


/* =========================
   TIN TỨC
   ========================= */

.news-item {
    border-bottom: 1px solid #e5e5e5;
    min-height: 36px;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

    .news-item:last-child {
        border-bottom: none;
    }

/* =========================
   NÚT ĐĂNG NHẬP
   ========================= */

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

    .btn-primary:hover {
        background-color: #004494;
        border-color: #004494;
    }

    .btn-primary.w-100 {
        height: 42px;
        font-size: 14px;
        font-weight: 600;
    }

/* =========================
   LOGIN BOX
   ========================= */

.login-title + .card-body {
    padding-top: 15px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {

    .home-banner {
        max-height: 120px;
    }

    .main-menu .navbar-nav .nav-link {
        padding: 8px 12px;
    }

    .box-title,
    .login-title {
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }
}
/* =========================
   TRANG CHỦ
   ========================= */

.site-container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
}

.home-banner {
    width: 100%;
    display: block;
}

.main-menu {
    background: #0056b3;
    min-height: 38px;
    padding: 0;
}

    .main-menu .nav-link {
        color: #fff !important;
        font-size: 13px;
        font-weight: 600;
        padding: 6px 12px !important;
        margin: 2px;
        border-radius: 3px;
    }

        .main-menu .nav-link:hover {
            color: #ffe082 !important;
            background: #003c80;
        }

.info-bar {
    background: #eaf4ff;
    border: 1px solid #c9def7;
    padding: 6px 12px;
    font-size: 13px;
    color: #004ea2;
}

/* card đồng bộ */

.card {
    border: 1px solid #d9e3f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);    
}

.box-title,
.login-title {
    background: #0056b3;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.card-body {
    font-size: 13px;
    padding: 10px;
}

.news-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
    font-size: 13px;
}

    .news-item:last-child {
        border-bottom: none;
    }

/* nút đăng nhập */

.btn-primary {
    background: #0056b3;
    border-color: #0056b3;
    font-size: 13px;
    font-weight: 600;
}

    .btn-primary:hover {
        background: #004494;
        border-color: #004494;
    }

.document-footer {
    width: 100%;
    background: #0056b3;
    color: #ffffff;
    text-align: center;
    padding: 15px 10px;
    font-size: 13px;
    line-height: 1.8;
    border-top: 1px solid #004494;
    clear: both;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-email {
    color: #ffe082;
    text-decoration: none;
}

    .footer-email:hover {
        color: #fff3c4;
        text-decoration: underline;
    }
/* DataTables */

.dataTables_wrapper {
    font-size: 13px;
}

    .dataTables_wrapper .row {
        margin-bottom: 4px !important;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .dataTables_wrapper .form-select,
    .dataTables_wrapper .form-control {
        min-height: 28px;
        padding: 2px 6px;
        font-size: 13px;
    }
.card-body {
    padding: 8px !important;
}

.dataTables_wrapper {
    font-size: 13px;
}
/* DataTable */

.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dataTables_processing {
    z-index: 1000;
}

table.dataTable {
    width: 100% !important;
}

/* tránh footer đè lên bảng */

.document-footer {
    clear: both;
}
.sidebar-menu a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
}

    .sidebar-menu a:hover {
        text-decoration: underline;
    }
.form-control,
.form-select {
    min-height: 32px;
}

#btnSearch {
    height: 32px;
    min-height: 32px;
    font-size: 13px;
    font-weight: 600;
}
/* Tối ưu tổng thể Layout */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Thanh Menu chính */
.main-menu {
    background-color: #0b5ed7 !important;
}

    .main-menu .nav-link {
        font-weight: 600;
        padding: 10px 18px !important;
        text-transform: uppercase;
        font-size: 0.9rem;
    }

        .main-menu .nav-link:hover,
        .main-menu .nav-link.active {
            background-color: #0a58ca;
            border-bottom: 3px solid #ffca28;
        }

/* Thanh thông báo tin tức */
.info-bar {
    background-color: #eef2f7;
    padding: 8px 15px;
    font-size: 0.88rem;
    border-bottom: 1px solid #e0e6ed;
}

.info-welcome {
    color: #0d6efd;
}

/* Thiết kế lại Thanh Tiêu Đề (Box Title) sang dạng Ribbon/Tab mỹ thuật */
.section-heading {
    border-bottom: 2px solid #0d6efd;
    position: relative;
    margin-bottom: 15px;
}

.heading-title {
    display: inline-block;
    background-color: #0d6efd;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 7px 18px;
    text-transform: uppercase;
    border-top-left-radius: 4px;
    border-top-right-radius: 12px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Tin tức */
.news-link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
}

    .news-link:hover {
        color: #0d6efd;
        padding-left: 5px;
    }

.border-bottom-dashed {
    border-bottom: 1px dashed #dee2e6 !important;
}

/* Card Đăng nhập bên phải */
.login-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e6ed !important;
}

.login-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-login {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #0b5ed7, #084298);
        box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    }

/* Thẻ Card nội dung */
.custom-card {
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
}
/* Custom Card & Viền */
.custom-box {
    border: 1px solid #c9def7 !important;
    border-radius: 2px !important;
    background: #fff;
}

/* Kỹ thuật tạo Thanh tiêu đề ngắn mỹ thuật */
.box-title-wrapper {
    background: #ffffff;
    border-bottom: 2px solid #0056b3; /* Đường chỉ xanh chạy ngang bên dưới */
    position: relative;
    padding: 0;
}

.box-title-short {
    display: inline-block;
    background: #0056b3; /* Thanh màu xanh chỉ chiếm 1 đoạn ngắn vừa chữ */
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 20px 6px 12px;
    text-transform: uppercase;
    /* Tạo góc vát chéo nghệ thuật ở đuôi thanh xanh */
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* Tiêu đề cột Đăng nhập bên phải */
.box-title-login-sidebar {
    background: #0056b3;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 10px;
    text-align: center;
    text-transform: uppercase;
}

/* Định dạng Tin tức */
.news-item {
    border-bottom: 1px dashed #e0e0e0;
    padding: 7px 0;
    font-size: 13px;
}

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item a {
        color: #003399;
        text-decoration: none;
        font-weight: 500;
    }

        .news-item a:hover {
            color: #d32f2f;
            text-decoration: underline;
        }

/* Form đăng nhập thu nhỏ vừa vặn */
.form-control-sm {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
}

    .form-control-sm:focus {
        border-color: #0056b3;
        box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
    }
/* =====================================================
   PORTAL LAYOUT RE-DESIGN (ĐÃ SỬA LỖI VÀ TỐI ƯU)
   ===================================================== */

/* Khung Card tổng thể */
.portal-box {
    border: 1px solid #b3d1f5 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* 1. Thanh tiêu đề màu xanh cho GIỚI THIỆU và TIN TỨC - SỰ KIỆN */
.portal-box-header {
    background: #0056b3 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #003c80 !important;
}

/* 2. Thanh tiêu đề ô ĐĂNG NHẬP */
.login-box-header {
    background: #0056b3 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 11px 10px !important;
    text-align: center !important;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #003c80 !important;
    width: 100%;
}

/* 3. TRIỆT ĐỂ XÓA CHẤM TRÒN THỪA VÀ CĂN LỀ TIN TỨC */
ul.portal-news-list,
.portal-news-list {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

    .portal-news-list li {
        list-style: none !important;
        list-style-type: none !important;
        border-bottom: 1px dashed #dcdcdc;
        padding: 10px 0 !important;
        font-size: 13.5px;
    }

        .portal-news-list li:last-child {
            border-bottom: none;
            padding-bottom: 2px !important;
        }

    .portal-news-list a {
        color: #003399 !important;
        text-decoration: none;
        font-weight: 500;
        display: inline-block;
        transition: all 0.2s ease;
    }

        .portal-news-list a:hover {
            color: #d32f2f !important;
            text-decoration: underline;
            transform: translateX(3px);
        }

/* Đồng bộ nút Đăng nhập */
.btn-primary {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

    .btn-primary:hover {
        background-color: #004085 !important;
        border-color: #004085 !important;
    }
/* =====================================================
   PORTAL SHORT HEADER (THANH TIÊU ĐỀ NGẮN MỸ THUẬT)
   ===================================================== */


/* Khung tiêu đề chứa đường chỉ kẻ ngang */
.portal-header-line2 {
    background-color: #f4f7fa !important;
    border-bottom: 2px solid #0056b3 !important;
    position: relative;
    height: 36px;
    display: flex;
    align-items: flex-end;
}

/* Thanh tiêu đề xanh: Hình chữ nhật bo nhẹ 2 góc trên */
.portal-title-short2 {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 36px;
    line-height: 36px;
    padding: 0 16px !important;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    /* Bo tròn nhẹ 2 góc phía trên (Trái-Trên và Phải-Trên) */
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    /* Xóa bỏ góc vát chéo clip-path cũ */
    clip-path: none !important;
}
/* Khung tiêu đề chứa đường chỉ kẻ ngang */
.portal-header-line {
    background-color: #f4f7fa !important;
    border-bottom: 2px solid #0056b3 !important;
    position: relative;
    height: 36px;
    display: flex;
    align-items: flex-end;
}

/* Thanh tiêu đề xanh: Góc trên-phải bo tròn cong hẳn */
.portal-title-short {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 36px;
    line-height: 36px;
    padding: 0 20px 0 14px !important;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    /* Cú pháp border-radius: [Trái-Trên] [Phải-Trên] [Phải-Dưới] [Trái-Dưới] */
    border-top-left-radius: 0px !important; /* Góc trên trái giữ thẳng vuông */
    border-top-right-radius: 14px !important; /* Góc trên phải bo tròn cong hẳn */
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    clip-path: none !important;
}