.btn.toggle-card-body{
width: 20px;
}

.card-small .card-header {font-size: 0.8rem;height: 45px;}
.card-small *{
     font-size: 0.8rem;
}
.card-small .card-body {
    padding: 20px 20px 0px 20px;
}

.card-passport .card-header {
    background-color: #385d7a;
    border-color: #385d7a;
}   
.card-passport .card-body {
    background-color: #e2f0fb;
    color:#385d7a;
    border-color: #385d7a;
}
.card-passport .card-header .btn{
    margin-top: 0px !important;
}

.card-green .card-header {
    background-color: #1d643b;
    border-color: #1d643b;
}  
.card-green .card-header .btn{
    background-color: #d7f3e3 !important;
    border-color: #1d643b !important;
    color: #1d643b !important;
    margin-top: 0px !important;
}    
.card-green .card-body {
    background-color: #d7f3e3;
    color:#1d643b;
    border-color: #c7eed8;
}

.card-yellow .card-header {
    background-color: #857b26;
    border-color: #857b26;
}   

.card-yellow .card-header .btn{
    background-color: #fffbdb !important;
    border-color: #857b26 !important;
    color: #857b26 !important;
    margin-top: 0px !important;
} 

.card-yellow .card-body {
    background-color: #fffbdb;
    color:#857b26;
    border-color: #fffacc;
}


.tab-content{
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 20px;
    background: #fff;
}
.tab-content .btn.btn-danger{
    background-color: #DA6063 !important;
    border-color: #DA6063 !important;
}


.nav-tabs .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 1px solid #dee2e6;
    padding: 15px;
}
.nav-tabs .nav-link.active {
    background-color: #DA6063;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #ffffff;
}

.custom-field-groups .btn.btn-danger{border-radius: 0 !important;}

.person-item-template{
    display: none;
}
.person-list .person-item-inner{
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    background: #fff;
    /* position: relative; */
}

.person-list .person-item {
    position: relative;
}

.person-item .item-header-btn{
    position: absolute;
    padding: 2px 8px;
}
.person-item .btn-delete-person{
    top: 15px;
    right: 35px;
    padding: 2px 8px;
}

.person-item .btn-toogle-item{
    top: 15px;
    right: 70px;
    color: #fff;
    padding: 1px 6px;
}
.person-item .btn-toogle-item.pull-right{
    right: 35px;
}

.person-item .btn-toogle-item.show::after {
    content: "▲";
    font-size: 14px;
}

.person-item .btn-toogle-item.hide::after {
    content: "▼";
    font-size: 14px;
}

.form-control.datepicker {
    width: 120px; cursor: pointer;
}

.form-group-label {
    border-bottom: 3px solid #dee2e6;
}
.form-group-label label {font-size: 14px; font-weight: bold;}
.form-group .form-check-input.form-control{
    display: inline-block;
    height: 15px;
    width: 15px;
}

.form-check-item {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 15px;
    /* margin-left: 10px; */
    margin-bottom: 10px;
    border: 2px solid #dee2e6;
}

.credential-details {
    display: none;
    margin-top: 10px;
    margin-left: -15px;
}
.credential-type-heading{
    font-size: 16px;
    font-weight: 600;
}
.credential-details label {
    font-weight: 600;
    font-size: 12px;
}
.credential-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.tab-content .form-check-input {
    margin-top: 0.2rem;
    margin-left: -1.25rem;
}

.coi-conflict-exist-block .form-check-input {
    margin-top: 0rem;
}

.credential-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.credential-item-actions {
    display: flex;
    align-items: center;
}
.credential-item-actions .view-details-link {
    color: #385d7a;
    margin-right: 8px;
    font-size: 0.95rem;
}
.btn-toggle-credential-details {
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: 4px 6px;
}
.btn-toggle-credential-details i {
    font-size: 0.95rem;
}


.block-container .block-header{
    border-bottom: 2px solid #DA6063;
}
.block-container .block-content{
    padding: 20px;
}

.card-passport-inside {padding: 15px; border: 1px solid #ced4da; background-color: #dfdfdf;}

.btn-add-new-option { min-width: 100px; padding: 0px;}

#matterModal .modal-dialog{min-width: 95% !important}
#matterModal .matter_header{
    border-bottom: 3px solid #DA6063;
    padding: 10px 0px 10px;
    margin-bottom: 20px;
}

#matterModal .input-group-prepend .input-group-text{
    width: 180px; font-weight: 600;
}
#matterModal .referee-content {
    display: none;
}
#matterModal .matter-section { margin-bottom: 30px;}
.referee-person-block .person-info {
    border: 1px solid #ced4da;
    padding: 10px;
    background-color: #f8f9fa;
    margin-top: 10px;
}
#matterModal .referee-person-block {
    display: none;
}

/* Prevent table headers from wrapping */
#tbl-matters th,
#tbl-matters thead th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optionally limit width for long headers (tùy chỉnh giá trị) */
#tbl-matters th {
    max-width: 200px;
}

/* If you want to apply to all tables with your responsive class */
.rht-tbl-responsive-aa th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#tbl-matters .referee-container{
    width: 250px;
}

.target-list-container .btn-group {
    margin-bottom: 20px;
}
.target-list-container .new-user-template,
.target-list-container .choose-employee-template {
    display: none;
}

.target-list-container .remove-user-field {
    border-radius: 0;
}
.legal-case-template{display: none;}

.parties-container,
.legal-case-section {
    /* border-bottom: 2px solid #da6063; */
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.legal-case-section .case-title {
    font-size: 16px;
    font-weight: 600;
    border-bottom: 3px solid #DA6063;
    padding: 10px 0px 10px;
    margin-bottom: 20px;
    width: 100%;
    display: block;
    text-transform: uppercase;
}
.legal-case-section.no-border{border-bottom: none;}
.legal-case-section .case-party-template{display: none}

.attachment-item {
    position: relative;
}
.attachment-item-file-col {
    padding-right: 50px;position: relative;
}
.attachment-item .btn-remove-attachment{
    position: absolute;right: 2px; top: 2px; z-index: 9999;height: 25px;width: 25px; padding: 0px;
}
.attachment-item-file-col .uploaded-file-link{
    display: block; height: 34px;font-weight: 600;
}
.attachment-item .card-body{
    padding-top: 15px;
    padding-bottom: 10px;
}

.case-party-item .btn-delete-party-item{
    color: #fff !important;
    position: absolute;
    right: 10px;
    top: 10px;
}

.case-party-item .card-header{
    border-bottom: none !important;
}

.person-item.highlight-border .person-item-inner{
     /* border: 3px solid #DA6063 !important; */
}

.select-box-multiple option{
    display: block;
    padding: 5px 10px 5px 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.select-box-multiple option:checked{
    background-color: #3490dc;
    color: #fff;
}

.form-group-client-search {
    position: relative;
}
.autocomplete-list {
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    z-index: 1000;
}

.autocomplete-list .item {
    padding: 8px 10px;
    cursor: pointer;
}

.autocomplete-list .item:hover {
    background: #f0f0f0;
}

@media print {
  button { display: none; }
}

/* ── Conflict of Interest section ── */
.matter-coi-section .card-header {
    /* background-color: #f1f3f5; */
    font-weight: 600;
    font-size: 0.85rem;
}

.matter-coi-section .person-item-inner {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fafbfc;
    position: relative;
}

.matter-coi-section .item-header-btn {
    margin-right: 4px;
    padding: 2px 7px;
    font-size: 0.75rem;
}

.matter-coi-section .form-group-label .item-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.matter-coi-section .case-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.matter-coi-section .person-item-content {
    padding-top: 6px;
}

.matter-coi-block-item .item-header-btn{
    z-index: 9999;
    height: 30px;
    width: 30px;
    line-height: 15px;
    padding: 0;
    margin-bottom:10px;
    top: 10px;
}
.matter-coi-block-item .btn-toogle-item{
    margin-right: 0px;
}
.matter-coi-block-item .btn-delete-person {
    right : 25px;
}
.credential-type-heading {
    font-weight: bold;
    margin-top: 15px;
}
.credential-categories-container {
    margin-top: 0px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 15px;
}

.credential-category-group {
    margin-bottom: 10px;
}
.credential-category-children-roles {
    padding-left:0px;
}
.credential-role-item {
    border: 1px dashed #ccc;
    padding: 5px 10px;
    margin-bottom: 10px;
}
.credential-role-category {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}
.credential-role-category .form-check-label {
    font-size: 0.8rem;
}
.credential-role-children {
    margin-left: -3px;
    margin-top: 10px;
}
/* .btn-add-role-field-heading {
    display: flex;
    align-items: center;
    gap: 8px;
} */
.btn-add-role-field-heading {
    position: relative;
    height: 25px;
}
.btn-add-role-field-heading span {
    line-height: 25px;
}
.btn-add-role-field-heading .btn-add-role-field {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0px !important;
}

.role-custom-field-list-item {
    margin-top: 10px;
}

.btn-remove-role-field {
    border-radius: 0 !important;
}

.credential-role-row,
.role-row {margin-bottom: 10px; margin-top:5px}

.sub-category-row {
    background-color: #fff !important;
    padding:10px;
    margin-bottom: 20px;
}

/* Arrow-style breadcrumb */
.breadcrumb.breadcrumb-arrow {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: nowrap;
}
.breadcrumb-arrow .breadcrumb-item {
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    background-color: #e9ecef;
    color: #495057;
    padding: 8px 18px 8px 28px;
    margin: 0 4px 0 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
    min-width: 0;
    max-width: 100%;
    flex-shrink: 0;
}
.breadcrumb-arrow .breadcrumb-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.breadcrumb-arrow .breadcrumb-item:first-child {
    padding-left: 18px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.breadcrumb-arrow .breadcrumb-item + .breadcrumb-item {
    padding-left: 28px;
}
.breadcrumb-arrow .breadcrumb-item + .breadcrumb-item::before {
    content: none;
    padding: 0;
}
.breadcrumb-arrow .breadcrumb-item a {
    min-width: 0;
    max-width: 100%;
    color: #495057;
    text-decoration: none;
}
.breadcrumb-arrow .breadcrumb-item a:hover {
    color: #DA6063;
    text-decoration: underline;
}
.breadcrumb-arrow .breadcrumb-item.active {
    background-color: #DA6063;
    color: #fff;
    font-weight: 500;
    flex-shrink: 1;
}