:root {
    --bs-primary: #0d6efd; --bs-danger: #dc3545; --bs-warning: #ffc107; --bs-success: #198754; 
    --bs-info: #0dcaf0; --bs-secondary: #6c757d; --bs-light: #f8f9fa; --bs-dark: #212529; --bs-white: #ffffff;
    --text-primary: #111827; --text-secondary: #111827; --text-muted: #111827;
    --border-color: #e5e7eb; --body-bg: #f9fafb;
    --font-family-base: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family-base); font-size: 13px; font-weight: 400; color: var(--text-primary); background-color: var(--body-bg); overflow-x: hidden; line-height: 1.4; }
a { text-decoration: none; color: var(--bs-primary); }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--bs-dark); margin-bottom: 0.5rem; line-height: 1.2; }
.modal-title { font-weight: 600; margin-bottom: 0 !important; line-height: 1.2; color: inherit; }
.fw-bold { font-weight: 600 !important; } .fw-semibold { font-weight: 500 !important; } .fst-italic { font-style: italic !important; }
.text-center { text-align: center !important; } .text-end { text-align: right !important; } .text-start { text-align: left !important; }
.text-uppercase { text-transform: uppercase !important; } .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small, small { font-size: 0.875em !important; }
.fs-1 { font-size: 2.5rem !important; } .fs-2 { font-size: 2rem !important; } .fs-3 { font-size: 1.75rem !important; } .fs-4 { font-size: 1.5rem !important; } .fs-5 { font-size: 1.25rem !important; } .fs-6 { font-size: 1rem !important; }

.text-primary { color: var(--bs-primary) !important; } .text-danger { color: var(--bs-danger) !important; } .text-warning { color: var(--bs-warning) !important; } .text-success { color: var(--bs-success) !important; } .text-secondary { color: var(--bs-secondary) !important; } .text-dark { color: var(--bs-dark) !important; } .text-muted { color: var(--text-muted) !important; } .text-white { color: var(--bs-white) !important; }
.bg-white { background-color: var(--bs-white) !important; } .bg-light { background-color: var(--bs-light) !important; } .bg-primary { background-color: var(--bs-primary) !important; color: white; } .bg-danger { background-color: var(--bs-danger) !important; color: white; } .bg-warning { background-color: var(--bs-warning) !important; color: black; } .bg-success { background-color: var(--bs-success) !important; color: white; } .bg-secondary { background-color: var(--bs-secondary) !important; color: white; } .bg-dark { background-color: var(--bs-dark) !important; color: white; }
.bg-primary.bg-opacity-10 { background-color: rgba(13,110,253,.1) !important; } .bg-danger.bg-opacity-10 { background-color: rgba(220, 53, 69, 0.1) !important; color: var(--bs-danger); } .bg-warning.bg-opacity-10 { background-color: rgba(255, 193, 7, 0.1) !important; color: #856404; } .bg-success.bg-opacity-10 { background-color: rgba(25,135,84,.1) !important; color: var(--bs-success); } .bg-secondary.bg-opacity-10 { background-color: rgba(108,117,125,.1) !important; }

.d-flex { display: flex !important; } .d-none { display: none !important; } .d-block { display: block !important; } .flex-column { flex-direction: column !important; } .flex-wrap { flex-wrap: wrap !important; } .justify-content-between { justify-content: space-between !important; } .justify-content-center { justify-content: center !important; } .align-items-center { align-items: center !important; } .align-items-start { align-items: flex-start !important; } .align-items-end { align-items: flex-end !important; } .flex-grow-1 { flex-grow: 1 !important; } .gap-1 { gap: 0.25rem !important; } .gap-2 { gap: 0.5rem !important; } .gap-3 { gap: 1rem !important; } .gap-4 { gap: 1.5rem !important; }
.m-0 { margin: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 0.25rem !important; } .mb-2 { margin-bottom: 0.5rem !important; } .mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mt-1 { margin-top: 0.25rem !important; } .mt-2 { margin-top: 0.5rem !important; } .mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .ms-auto { margin-left: auto !important; } .me-1 { margin-right: 0.25rem !important; } .me-2 { margin-right: 0.5rem !important; }
.p-0 { padding: 0 !important; } .p-2 { padding: 0.5rem !important; } .p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; } .px-1 { padding-left: 0.25rem; padding-right: 0.25rem; } .px-3 { padding-left: 1rem; padding-right: 1rem; } .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; } .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 1rem; padding-bottom: 1rem; } .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-5 { padding-top: 3rem; padding-bottom: 3rem; } .pt-3 { padding-top: 1rem !important; } .pb-2 { padding-bottom: 0.5rem !important; } .pb-3 { padding-bottom: 1rem !important; } .pe-3 { padding-right: 1rem !important; } .ps-4 { padding-left: 1.5rem !important; }

.border { border: 1px solid var(--border-color) !important; } .border-0 { border: 0 !important; } .border-top { border-top: 1px solid var(--border-color) !important; } .border-bottom { border-bottom: 1px solid var(--border-color) !important; } .border-start-0 { border-left: 0 !important; } .border-end-0 { border-right: 0 !important; } .border-primary { border-color: var(--bs-primary) !important; } .border-danger { border-color: var(--bs-danger) !important; } .border-warning { border-color: var(--bs-warning) !important; } .border-success { border-color: var(--bs-success) !important; } .border-secondary { border-color: var(--bs-secondary) !important; } .border-opacity-25 { border-color: rgba(0,0,0,.25) !important; }
.rounded { border-radius: 0.375rem !important; } .rounded-pill { border-radius: 50rem !important; } .shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; } .shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; } .shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.position-relative { position: relative !important; } .position-absolute { position: absolute !important; } .position-fixed { position: fixed !important; } .bottom-0 { bottom: 0 !important; } .end-0 { right: 0 !important; } .w-25 { width: 25% !important; } .w-50 { width: 50% !important; } .w-75 { width: 75% !important; } .w-100 { width: 100% !important; } .w-auto { width: auto !important; } .h-100 { height: 100% !important; } .vh-100 { height: 100vh !important; } .overflow-auto { overflow: auto !important; } .opacity-25 { opacity: 0.25; }

.container-fluid { width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; margin-right: auto; margin-left: auto; }
.row { display: flex; flex-wrap: wrap; margin-top: 0; margin-right: -0.75rem; margin-left: -0.75rem; }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; }
.g-3, .row.g-3 { margin-top: -1rem; margin-right: -0.5rem; margin-left: -0.5rem; } .g-3 > * { padding-top: 1rem; padding-right: 0.5rem; padding-left: 0.5rem; }
.g-4, .row.g-4 { margin-top: -1.5rem; margin-right: -0.75rem; margin-left: -0.75rem; } .g-4 > * { padding-top: 1.5rem; padding-right: 0.75rem; padding-left: 0.75rem; }
.col-3 { width: 25%; } .col-6 { width: 50%; } .col-12 { flex: 0 0 auto; width: 100%; }
.collapse:not(.show) { display: none; }
.collapse.show { display: block; } .collapsing { height: 0; overflow: hidden; transition: height 0.35s ease; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 auto; width: 50%; } .d-sm-inline { display: inline !important; } }
@media (min-width: 768px) { .col-md-2 { width: 16.66666667%; } .col-md-3 { width: 25%; } .col-md-4 { width: 33.33333333%; } .col-md-6 { width: 50%; } }
@media (min-width: 992px) { .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333%; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid rgba(0,0,0,.125); border-radius: 0.25rem; }
.card-body { flex: 1 1 auto; padding: 1rem; }
.btn { display: inline-block; font-weight: 600; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; user-select: none; background-color: transparent; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 13px; border-radius: 0.375rem; transition: all .15s ease-in-out; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; } .btn-lg { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; }
.btn:disabled { opacity: 0.65; pointer-events: none; }
.btn-primary { color: #fff; background-color: var(--bs-primary); border-color: var(--bs-primary); } .btn-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; }
.btn-danger { color: #fff; background-color: var(--bs-danger); border-color: var(--bs-danger); } .btn-danger:hover { background-color: #bb2d3b; border-color: #b02a37; }
.btn-secondary { color: #fff; background-color: var(--bs-secondary); border-color: var(--bs-secondary); } .btn-secondary:hover { background-color: #5c636a; border-color: #565e64; }
.btn-warning { color: #000; background-color: var(--bs-warning); border-color: var(--bs-warning); } .btn-warning:hover { background-color: #ffca2c; border-color: #ffc720; }
.btn-success { color: #fff; background-color: var(--bs-success); border-color: var(--bs-success); } .btn-success:hover { color: #fff; background-color: #157347; border-color: #146c43; }
.btn-light { color: #000; background-color: var(--bs-light); border-color: var(--bs-light); } .btn-light:hover { color: #000; background-color: #e2e6ea; border-color: #d3d9df; }
.btn-outline-primary { color: var(--bs-primary); border-color: var(--bs-primary); } .btn-outline-primary:hover { color: #fff; background-color: var(--bs-primary); }
.btn-outline-danger { color: var(--bs-danger); border-color: var(--bs-danger); } .btn-outline-danger:hover { color: #fff; background-color: var(--bs-danger); }
.btn-outline-secondary { color: var(--bs-secondary); border-color: var(--bs-secondary); } .btn-outline-secondary:hover { color: #fff; background-color: var(--bs-secondary); }
.btn-outline-dark { color: var(--bs-dark); border-color: var(--bs-dark); } .btn-outline-dark:hover { color: #fff; background-color: var(--bs-dark); }
.btn-outline-success { color: var(--bs-success); border-color: var(--bs-success); } .btn-outline-success:hover { color: #fff; background-color: var(--bs-success); }

.form-label { margin-bottom: 0.5rem; font-weight: 500; display: inline-block; }
.form-control, .form-select { display: block; width: 100%; padding: 0.375rem 0.75rem; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--text-primary); background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.375rem; transition: all .15s ease-in-out; }
.form-control-lg { min-height: calc(1.5em + 1rem + 2px); padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; }
.form-control[readonly] { background-color: #e9ecef; opacity: 1; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; }
.form-control-sm, .form-select-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }
.form-control:focus, .form-select:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); }
.form-check { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: 0.125rem; }
.form-check-input { float: left; margin-left: -1.5em; width: 1em; height: 1em; margin-top: 0.25em; vertical-align: top; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: contain; border: 1px solid rgba(0,0,0,.25); appearance: none; }
.form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"); }
th > .form-check-input, td > .form-check-input { float: none; margin: 0; vertical-align: middle; cursor: pointer; width: 1.1em; height: 1.1em; }
.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-text { display: flex; align-items: center; padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: var(--bs-dark); text-align: center; white-space: nowrap; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: 0.375rem; }
.input-group > :not(:first-child):not(.dropdown-menu) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.table { width: 100%; margin-bottom: 1rem; color: var(--text-primary); vertical-align: top; border-collapse: collapse; }
.table > :not(caption) > * > * { padding: 0.5rem 0.5rem; background-color: transparent; border: 1px solid #ebedf3; }
.table-sm > :not(caption) > * > * { padding: 0.25rem; }
.table thead th { background-color: #f3f6f9; color: #3f4254; font-weight: 600; border-bottom-width: 1px; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(0, 0, 0, 0.03); }
.table-hover > tbody > tr:hover > * { background-color: rgba(0, 0, 0, 0.05); }
.table-danger, .table-danger > th, .table-danger > td { background-color: #f8d7da !important; }
.table-bordered > :not(caption) > * > * { border-width: 1px 1px; border-color: var(--border-color); }
.table-light { background-color: #f8f9fa; color: #000; }
.align-middle { vertical-align: middle !important; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.badge { display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; }
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: 0.5rem 1rem; color: var(--bs-primary); text-decoration: none; transition: all .15s ease-in-out; }
.pagination { display: flex; padding-left: 0; list-style: none; }
.page-link { position: relative; display: block; padding: 0.375rem 0.75rem; color: var(--bs-primary); text-decoration: none; background-color: #fff; border: 1px solid #dee2e6; transition: all .15s; }
.page-item.active .page-link { z-index: 3; color: #fff; background-color: var(--bs-primary); border-color: var(--bs-primary); }
.page-item.disabled .page-link { color: #6c757d; pointer-events: none; background-color: #fff; border-color: #dee2e6; }
.progress { display: flex; height: 1rem; overflow: hidden; font-size: .75rem; background-color: #e9ecef; border-radius: .25rem; }
.progress-bar { display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; text-align: center; white-space: nowrap; background-color: #0d6efd; transition: width .6s ease; }
.progress-bar-striped { background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); background-size: 1rem 1rem; }
.progress-bar-animated { animation: 1s linear infinite progress-bar-stripes; }
@keyframes progress-bar-stripes { 0% { background-position-x: 1rem; } }
.w-0 { width: 0 !important; }

.modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: #000; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 0.5; }
.modal { position: fixed; top: 0; left: 0; z-index: 1055; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal.show { display: block; }
.modal-dialog { position: relative; width: auto; margin: 0.5rem; pointer-events: none; transition: transform .3s ease-out; }
.modal.fade .modal-dialog { transform: translate(0, -50px); }
.modal.show .modal-dialog { transform: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: 0.3rem; outline: 0; }
.modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 1rem 1rem; border-bottom: 1px solid #dee2e6; border-top-left-radius: calc(0.3rem - 1px); border-top-right-radius: calc(0.3rem - 1px); }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: flex-end; padding: 0.75rem; border-top: 1px solid #dee2e6; border-bottom-right-radius: calc(0.3rem - 1px); border-bottom-left-radius: calc(0.3rem - 1px); }
.btn-close { box-sizing: content-box; width: 1em; height: 1em; padding: 0.25em 0.25em; color: #000; background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat; border: 0; border-radius: 0.25rem; opacity: 0.5; cursor: pointer; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }
@media (min-width: 576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto; } .modal-dialog-centered { min-height: calc(100% - 3.5rem); } }
@media (min-width: 992px) { .modal-lg { max-width: 800px; } }
@media (min-width: 1200px) { .modal-xl { max-width: 1140px; } }

#content-body { height: calc(100vh - 50px); overflow-y: auto; background-color: #f3f6f9 !important; }
.content-wrapper { max-width: none; width: 100%; margin: 0 auto; padding: 15px; }
.master-workspace { background-color: #ffffff !important; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 15px; border: 1px solid #ebedf3; display: flex; flex-direction: column; }
.workspace-toolbar { background-color: transparent; padding: 10px 0; border: none; margin-bottom: 10px !important; }
.crm-container .form-control, .crm-container .form-select, .inv-container .form-control, .inv-container .form-select { border-radius: 6px; border: 1px solid #ced4da; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); transition: all 0.2s; }
.crm-container .form-control:focus, .crm-container .form-select:focus { border-color: #86b7fe; box-shadow: 0 0 0 4px rgba(13,110,253,0.15); }
.crm-table-wrapper, .tmdt-table-wrapper { background: #fff; border-radius: 8px; border: 1px solid #e9ecef; overflow-y: auto; max-height: 60vh; }
.crm-table, .tmdt-table { font-size: 13px !important; margin-bottom: 0; width: 100%; }
.crm-table thead, .tmdt-table thead { position: sticky; top: 0; z-index: 1; }
.crm-table th, .tmdt-table th { background-color: #f3f6f9 !important; color: #3f4254 !important; font-weight: 600; font-size: 13px; padding: 10px 12px; white-space: nowrap; border: 1px solid #ebedf3 !important; vertical-align: middle; }
.crm-table td, .tmdt-table td { vertical-align: middle; padding: 10px 12px; border: 1px solid #ebedf3 !important; text-align: center; }
.col-wrap-200 { min-width: 120px; max-width: 200px; white-space: normal; word-wrap: break-word; } .col-wrap-250 { min-width: 150px; max-width: 250px; white-space: normal; word-wrap: break-word; }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
.clickable-row:hover { cursor: pointer; background-color: #f8f9fa; }

.crm-tabs { border-bottom: 2px solid #e9ecef; gap: 8px; margin-bottom: 20px; }
.crm-tabs .nav-link { color: #6c757d; background-color: transparent; border: none; border-bottom: 3px solid transparent; font-weight: 600; border-radius: 0; padding: 12px 20px; transition: all 0.2s ease-in-out; }
.crm-tabs .nav-link:hover { color: #0d6efd; border-bottom-color: #86b7fe; }
.crm-tabs .nav-link.active { color: #0d6efd; background-color: transparent; border-bottom: 3px solid #0d6efd; font-weight: 700; }

.col-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: #555; }
.badge-index { font-size: 0.75rem; padding: 0.4em 0.6em; }
.map-card { border-radius: 8px; border: 1px solid #d1d5db !important; border-start: 4px solid #111827 !important; background: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: transform 0.2s; }
.map-card:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }

.dashboard-section-title { font-size: 13px; font-weight: 700; color: #4b5563; letter-spacing: 0.5px; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.module-card { background: transparent; border: none; border-radius: 12px; padding: 12px 8px; text-decoration: none !important; transition: all 0.2s ease-in-out; display: flex; flex-direction: column; align-items: center; height: 100%; }
.module-card:hover { transform: translateY(-4px); background: #ffffff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #ffffff; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 0; text-align: center; line-height: 1.4; }

.login-body { background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0; }
.card-login { border: none; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 380px; max-width: 90vw; background: white; padding: 2rem; }

#mention-list { bottom: 100%; left: 0; z-index: 1060; max-height: 200px; overflow-y: auto; }
.custom-toast { position: relative; overflow: hidden; background: #ffffff; border-left: 5px solid #0d6efd; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: transform 0.2s, opacity 0.2s; animation: slideIn 0.3s ease-out; }
.custom-toast:hover { transform: translateY(-2px); }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 4px; animation: toastProgress linear forwards; opacity: 0.7; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }


.navbar { 
    position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; 
    background-color: #ffffff; padding: 0 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    border-bottom: 1px solid var(--border-color); min-height: 50px; 
}
.navbar-brand { display: flex; align-items: center; text-decoration: none; margin-right: 1.5rem; }
.navbar-brand img { border-radius: 4px; height: 50px; }
.navbar-nav { display: flex; flex-direction: row; align-items: center; list-style: none; padding: 0; margin: 0; gap: 10px; }

.nav-link { 
    color: #3f4254;
    font-weight: 500; font-size: 14px; text-decoration: none; padding: 15px 10px; 
    transition: all 0.2s; display: flex; align-items: center; cursor: pointer; 
}
.nav-link:hover { color: #0a58ca; }

.user-dropdown .nav-link { color: var(--bs-dark); font-weight: 600; }
.user-dropdown .nav-link:hover { color: var(--bs-primary); }

.dropdown { position: relative; }
.dropdown-toggle::after { display: inline-block; margin-left: 0.3em; vertical-align: middle; content: ""; border-top: 0.35em solid; border-right: 0.35em solid transparent; border-left: 0.35em solid transparent; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1050; display: none; min-width: 14rem; padding: 0.5rem 0; margin-top: 5px; font-size: 13px; color: var(--bs-dark); text-align: left; background-color: #ffffff; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.dropdown-menu::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; background: transparent; }
.dropdown-menu-end { left: auto; right: 0; }
.dropdown:hover .dropdown-menu, .dropdown-menu.show { display: block; }
.dropdown-item { display: flex; align-items: center; width: 100%; padding: 0.5rem 1.25rem; font-weight: 500; color: #3f4254; white-space: nowrap; background-color: transparent; border: 0; transition: all 0.2s; text-decoration: none; cursor: pointer;}
.dropdown-item i { margin-right: 10px; font-size: 1.1rem; color: #a1a5b7; }
.dropdown-item:hover, .dropdown-item:focus { color: var(--bs-primary); background-color: #f4f6f8; text-decoration: none; }
.dropdown-item:hover i { color: var(--bs-primary); }

.btn-blue-pro { background-color: #0d6efd !important; color: #ffffff !important; border: 1px solid #0b5ed7 !important; box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2) !important; transition: all 0.2s ease-in-out !important; }
.btn-blue-pro:hover { background-color: #0a58ca !important; color: #ffffff !important; box-shadow: 0 6px 10px rgba(13, 110, 253, 0.3) !important; transform: translateY(-1px) !important; }
.btn-blue-pro i { color: #ffffff !important; }

.header-dark-text .nav-link { color: #3f4254; }
.header-dark-text .nav-link:hover { color: var(--bs-primary); }

.header-nhanhvn { background-color: #1e1e2d !important; border-bottom: none; }
.header-nhanhvn .navbar-brand { color: #ffffff; font-size: 14px; font-weight: 600; }
.header-nhanhvn .nav-link { color: #9899ac !important; }
.header-nhanhvn .nav-link:hover { color: #ffffff !important; }
.header-nhanhvn .user-dropdown .nav-link { color: #ffffff !important; }

.custom-b2b-dropdown .list-group-item {
    padding: 10px 15px;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
    user-select: none;
}

.custom-b2b-dropdown .list-group-item:last-child {
    border-bottom: none;
}

.custom-b2b-dropdown .list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

.navbar-nav .dropdown-menu,
.user-dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    margin-top: 0 !important;
}

.navbar-nav .dropdown-menu {
    left: 0 !important;
}

.navbar-nav .dropdown, 
.navbar-nav .nav-item {
    position: relative !important;
    display: flex;
    align-items: center;
}

.navbar { flex-wrap: nowrap; } .d-mobile-block, .d-mobile-flex { display: none !important; } .navbar-toggler { display: none; } .navbar-collapse { display: flex !important; flex-grow: 1; align-items: center; justify-content: space-between; } .navbar > .d-flex:first-child { width: auto; }

.feed-container { max-width: 680px; margin: 0 auto; }
.post-card { border-radius: 12px; border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 20px; background: #fff; position: relative; }
.post-header { display: flex; align-items: center; gap: 12px; padding: 15px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-meta h6 { margin: 0; font-size: 15px; font-weight: 700; color: #1c1e21; }
.post-meta small { color: #65676b; font-size: 13px; }
.post-body { padding: 0 15px 15px; font-size: 15px; color: #050505; line-height: 1.5; }
.post-actions { display: flex; padding: 5px 15px; border-top: 1px solid #f0f2f5; position: relative; }
.post-actions button { flex: 1; background: none; border: none; padding: 8px; color: #65676b; font-weight: 600; border-radius: 6px; transition: 0.2s; font-size: 14px; }
.post-actions button:hover { background: #f0f2f5; }
.post-stats { display: flex; justify-content: space-between; padding: 10px 15px; font-size: 13px; color: #65676b; }
.comment-section { padding: 10px 15px; border-top: 1px solid #f0f2f5; background: #f8f9fa; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.comment-list { max-height: 300px; overflow-y: auto; margin-bottom: 10px; }
.comment-item { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-content { background: #fff; padding: 8px 12px; border-radius: 18px; font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: inline-block; word-break: break-word; max-width: 100%; }
.comment-author { font-weight: 700; margin-bottom: 2px; font-size: 13px; color: #1c1e21; }
.comment-text { color: #050505; white-space: pre-wrap; }
.comment-time { font-size: 12px; color: #65676b; margin-left: 12px; margin-top: 2px; margin-bottom: 6px; font-weight: 500; }
.comment-time a:hover { text-decoration: underline !important; color: #050505 !important; }
.comment-input-box { display: flex; gap: 10px; align-items: center; }
.comment-input { flex: 1; border: 1px solid #ccd0d5; border-radius: 20px; padding: 8px 15px; outline: none; font-size: 14px; }
.create-post-box { background: #fff; border-radius: 12px; padding: 15px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 20px; }
.create-post-input { border: none; background: #f0f2f5; border-radius: 20px; padding: 10px 15px; width: 100%; outline: none; resize: none; min-height: 80px; }
.reaction-box { position: absolute; bottom: 100%; left: 0; background: #fff; border-radius: 50px; padding: 5px 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); display: flex; gap: 8px; opacity: 0; visibility: hidden; transition: 0.2s; transform: translateY(10px); z-index: 10; border: 1px solid #f0f2f5; }
.reaction-box.show { opacity: 1; visibility: visible; transform: translateY(0); }
.reaction-box::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; background: transparent; }
.reaction-icon { width: 36px; height: 36px; cursor: pointer; transition: transform 0.2s; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.reaction-icon:hover { transform: scale(1.3) translateY(-5px); }
.preview-media-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-media-item { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; cursor: grab; transition: transform 0.2s; }
.preview-media-item:active { cursor: grabbing; }
.preview-media-item.dragging { opacity: 0.5; transform: scale(0.9); }
.preview-media-item.drag-over { border: 2px dashed var(--bs-primary); transform: scale(1.05); }
.preview-media-item img, .preview-media-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-media-remove { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 10px; }
.post-media-grid { display: grid; gap: 2px; }
.post-media-grid.grid-1 { grid-template-columns: 1fr; }
.post-media-grid.grid-2, .post-media-grid.grid-4 { grid-template-columns: 1fr 1fr; }
.post-media-grid.grid-3 { grid-template-columns: 1fr 1fr; }
.post-media-grid.grid-3 > *:first-child { grid-column: 1 / -1; }
.post-media-item { width: 100%; height: 100%; min-height: 200px; max-height: 400px; object-fit: cover; cursor: pointer; }

/* Tùy chỉnh CSS cho trạng thái (Badges) */
.crm-status-badge {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.75rem;
    border-radius: 6px;
}
.crm-status-badge.bg-success, 
.crm-status-badge.bg-danger, 
.crm-status-badge.bg-secondary, 
.crm-status-badge.bg-primary, 
.crm-status-badge.bg-dark {
    color: #ffffff !important;
}
.crm-status-badge.bg-warning, 
.crm-status-badge.bg-info, 
.crm-status-badge.bg-light {
    color: #000000 !important;
}