/* invoice-sku-checker.css */
.banhang-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.invoice-sku-container {
    max-width: 1200px;
    margin: 20px auto 100px;
    font-family: Arial, sans-serif;
    font-size: 17px;
}

.invoice-sku-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.reset-form {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.invoice-sku-button.reset {
    background-color: #607d8b;
    color: white;
}

.invoice-sku-button.reset:hover {
    background-color: #455a64;
}

.invoice-sku-form {
    margin: 15px 0;
    /* display: flex; */
    gap: 10px;
    align-items: center;
}

.invoice-sku-form label {
    font-weight: bold;
    color: #333;
}

.invoice-sku-form input[type="text"],
.invoice-sku-form input[type="number"],
.invoice-sku-form input[type="date"] {
    width: 300px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
}

.invoice-sku-form input[type="submit"] {
    background-color: #2196f3;
    color: white;
}

.invoice-sku-form input[type="submit"]:hover {
    background-color: #1976d2;
}

.invoice-sku-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 17px;
}

.invoice-sku-table th,
.invoice-sku-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    max-height: 50px;
}

.invoice-sku-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.invoice-sku-table tr:nth-child(even) {
    background-color: #fafafa;
}

.invoice-sku-table tr:hover {
    background-color: #f0f0f0;
}

.invoice-sku-table .match {
    color: #4caf50;
    font-weight: bold;
}

.invoice-sku-table .no-match {
    color: #f44336;
    font-weight: bold;
}

.invoice-sku-table tr.row-mismatch,
.invoice-sku-table tr.row-mismatch:nth-child(even) {
    background-color: #ffcdd2;
}

.invoice-sku-table tr.row-mismatch:hover {
    background-color: #ef9a9a;
}

.invoice-sku-table .delete-button {
    background-color: #f44336;
    color: white;
}

.invoice-sku-table .delete-button:hover {
    background-color: #d32f2f;
}

.invoice-sku-action-buttons {
    display: flex;
    gap: 10px;
}

.invoice-sku-note-warning {
    padding: 15px;
    border: 2px solid red;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.invoice-sku-action-buttons input[name="exchange_sku"] {
    background-color: #ff9800;
    color: white;
}

.invoice-sku-action-buttons input[name="exchange_sku"]:hover {
    background-color: #f57c00;
}

.invoice-sku-action-buttons input[name="cancel_sku"] {
    background-color: #f44336;
    color: white;
}

.invoice-sku-action-buttons input[name="cancel_sku"]:hover {
    background-color: #d32f2f;
}

.invoice-sku-complete {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
}

.invoice-sku-complete:hover {
    background-color: #388e3c;
}

.invoice-sku-confirm {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ff9800;
    background-color: #fff3e0;
    border-radius: 4px;
}

.invoice-sku-confirm p {
    margin: 0 0 10px 0;
    color: #ff9800;
    font-weight: bold;
}

.invoice-sku-confirm-buttons {
    display: flex;
    gap: 10px;
}

.invoice-sku-confirm-buttons input[value="Lưu"] {
    background-color: #4caf50;
    color: white;
}

.invoice-sku-confirm-buttons input[value="Lưu"]:hover {
    background-color: #388e3c;
}

.invoice-sku-confirm-buttons input[value="Hủy"] {
    background-color: #f44336;
    color: white;
}

.invoice-sku-confirm-buttons input[value="Hủy"]:hover {
    background-color: #d32f2f;
}

.invoice-sku-message {
    font-size: 22px;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.invoice-sku-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.invoice-sku-message.warning {
    background-color: #fff3e0;
    color: #ff9800;
}

.invoice-sku-message.error {
    background-color: #ffebee;
    color: #d32f2f;
}

/* CSS cho tab */
.tab-container {
    width: 100%;
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
}

.tab-content.active {
    display: block;
}

/* CSS cho nút logout */
.logout-container {
    text-align: right;
    margin-bottom: 20px;
}

.logout-button {
    margin: 20px;
    padding: 6px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    width: 92px;
    box-sizing: border-box;
    text-decoration: unset;
}

.logout-button:hover {
    background-color: #c82333;
}

/* CSS cho phần chú ý */
.note-text {
    color: #e74c3c;
    font-style: italic;
    margin-right: 10px;
    font-size: 14px;
}

.user-name {
    color: #000;
    margin: 0 26px;
}
.logout-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Hiệu ứng phóng lớn hình ảnh khi hover */
.invoice-sku-table img {
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #000;
}

.invoice-sku-table img:hover {
    transform: scale(9); /* Phóng lớn gấp đôi */
    z-index: 1000;
    position: relative;
}

#exchange-sku-form {
    display: flex;
    align-items: flex-start;
}

#exchange-sku-form #exchange_note {
    width: 500px;
    height: 100px;
    margin: 0 20px;
}

/* Page kho */
#action_type, #warehouse {
    width: 150px;
    font-size: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.action-type-button {
    font-size: 20px;
    padding: 11px 56px;
    cursor: pointer;
}
.action-type-button.selected {
    background-color: #2196f3;
    color: white;
    border: 1px solid #2196f3;
}

.notice-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 8px;
    font-family: sans-serif;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
}

.success-box {
    background: #e6ffed;
    color: #270;
    border: 1px solid #270;
}

.error-box {
    background: #ffecec;
    color: #d8000c;
    border: 1px solid #d8000c;
}

.notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}