:root {
    font-family: -apple-system, Roboto, sans-serif, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    padding: 0px; margin: 0px;
    box-sizing: border-box;
}

.blue {color: blue}
.red {color: red}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    background: linear-gradient(135deg, #d9d9d9, #ffffff);
    height: 100vh;
}

row {
    display: flex;
    min-height: 20px;
    flex-direction: row;
    /*justify-content: space-between;*/
    align-items: center;
}

col {
    display: flex;
    min-width: 20px;
    flex-direction: column;
    justify-content: space-between;
}

space {
    flex: 10;
}

button {
    height: 30px;
    font-weight: 400;
    padding: 0px 10px;
    cursor: pointer;
    border: 1px solid transparent;
    min-width: 70px;
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 0.25rem;
}

button i {
    margin-right: 5px;
}

button:hover {
    filter: brightness(80%);
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.toast-container {
    position: fixed;
    top: 0px;
    left: calc(50% - 150px);
    z-index: 9999;
}

.toast {
    width: 300px;               /* Cố định chiều rộng */
    height: 60px;               /* Cố định chiều cao cho 2 dòng */
    padding: 8px 12px;
    margin-bottom: 10px;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 14px;
    text-align: justify;

    display: flex;
    align-items: center;        /* Căn giữa dọc */
    justify-content: justify;    /* Căn giữa ngang */

    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.toast.info { background: #0ec554;}
.toast.error { background: #f74e59; }
.toast.warning { background: #db9b2d; }

.toast-close {
    position: absolute;
    top: 4px;
    right: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

.fa-trash {color:red}

input {
    padding: 3px;
}

input[type="text"] {
    padding: 3px;
    font-size: 12px;
}

view {
    display: none;
    width: 1000px; 
    height: 500px;
    position: absolute; 
    top: 50px; 
    left: calc(50vw - 500px);
    background: white;
    border: 1px solid black;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

cbb {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 25px;
    border: 1px solid #888;
    border-radius: 3px;
}

cbb .select-box {
    /*border: 1px solid #888;*/
    /*border-radius: 3px;*/
    padding: 3px;
    background-color: #fff;
    cursor: pointer;
    color: #333;
    font-size: 0.9em;
}

cbb .select-box::after {
    content: "▼";
    float: right;
    margin-right: 3px;
    color: #555555;
    font-size: 0.9em;
}

cbb .items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 300px;
    margin-top: 4px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

cbb .items .item_title {
    font-weight: bold;
    padding: 5px 8px;
}

cbb .items .item_row {
    cursor: pointer;
    padding: 5px 8px;
}

cbb .items .item_row:hover {
    background-color: #f2f2f2;
}

cbb .items .item_code {
    width: 100px;
}

