* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f4f7fb;
    color: #1e293b;
    margin: 0;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    min-width: 250px !important; 
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 600;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;    
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2563eb;
}
.logo img {
    width: 220px;
    padding-left: 10px;
}

.logo-login {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2563eb;
    text-align: center;
}

.logo-login img {
    width: 300px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    display: flex;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    gap: 10px;
    justify-content: space-between;
}

.sidebar li:hover,
.sidebar li.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.sidebar li i {
    margin-right: 12px;
    font-size: 16px;
}

.sidebar-help {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.sidebar-help-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.sidebar-help-text {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-size:12px;
    line-height:1.5;
    color:#64748b;
    margin-bottom:18px;
}

.sidebar-help-text img {
    width:80px;
    flex-shrink:0;
}

.sidebar-help-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #c7d2fe;
    background: white;
    color: #2563eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-help-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.sidebar-help-btn i {
    font-size: 16px;
    transition:color 0.2s ease;    
}

.content {
    flex: 1;
    padding-top: 5px;
    padding-left: 10px;
    padding-bottom: 30px;
    padding-right: 10px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr 0.45fr;
    gap: 20px;
    align-items: start;
}

.full-width {
    grid-column: span 3;
}

.grid-one {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding-top: 10px;
    gap: 20px;    
}
.grid-two {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0px;    
}
.grid-two-header {
    display: grid;
    grid-template-columns: 1fr 250px;
    padding-top: 10px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;    

}
.grid-header-templates {
    display: grid;
    grid-template-columns: 1fr 450px;
    padding-top: 10px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;    
}

.grid-header {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding-top: 10px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;    
}
.grid-3box {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 20px;  
}
.grid-4box {
    display: grid;
    grid-template-columns: repeat(4, 250px);
    gap: 20px;  
}

.grid-5box {
    display: grid;
    grid-template-columns: repeat(5, 240px);
    gap: 15px;  
}

.topheader-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: right;
    font-size: 12px;
    min-height: 25px;
    padding-right: 30px;
    background: #f4f7fb;
    padding-top: 10px;
    position: sticky;
    top: 0;
    z-index: 200;
}
.topheader-grid i {
    cursor: pointer;
}

.grid-top {
    display: grid;
    grid-template-columns: 1fr 0.30fr 0.30fr;
    padding-bottom: 10px;    
    gap: 20px;
    min-height: 50px;
    align-items: center;
}
.grid-top h1, .grid-top p {
    margin: 0;
}

.center-col {
    text-align:right;
    font-size:12px;
    display:block;
    justify-self:end;
    align-self:start;
}

.header-card > div:nth-child(3){
    grid-column:1;
}

.right-col {
    text-align: right;
    vertical-align: middle;
    font-size: 11px;
}

.rma-status_Afventer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FDF4DC;
    border-radius: 8px;
    font-size: 12px;
    min-height: 30px;
    padding: 0 14px;
    margin: 0;
    color: #d16319;
    font-weight: 600;
}

.ticket-status_Open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FDF4DC;
    border-radius: 8px;
    font-size: 12px;
    min-height: 30px;
    padding: 0 14px;
    margin: 0;
    color: #d16319;
    font-weight: 600;
}

.ticket-status_Closed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #d4ffcc;
    border-radius: 8px;
    font-size: 12px;
    min-height: 30px;
    padding: 0 14px;
    margin: 0;
    color: #125705;
    font-weight: 600;
}

.rma-status_Godkendt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dbf5d3;
    border-radius: 8px;
    font-size: 12px;
    min-height: 30px;
    padding: 0 14px;
    margin: 0;
    color: #248806;
    font-weight: 600;
}

.rma-status_Afvist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8e4e6;
    border-radius: 8px;
    font-size: 12px;
    min-height: 30px;
    padding: 0 14px;
    margin: 0;
    color: #da0c28;
    font-weight: 600;
}

.smalltxt {
    font-size: 14px;
}
.infotxt {
    font-size: 12px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 15px 24px 10px 20px;
    box-shadow:  0 2px 10px rgba(15,23,42,0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cardbox {
    background: white;
    border-radius: 18px;
    padding: 15px 24px 10px 20px;
    box-shadow:  0 2px 10px rgba(15,23,42,0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.cardbox:hover{
    transform:translateY(-2px);
    box-shadow:
        0 3px 15px rgba(15,23,42,0.14);
}

.card-info {
    background: white;
    border-radius: 10px;
    padding: 24px;
    padding-top: 10px;
    padding-left: 15px;    
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-card {
    display:grid;
    grid-template-columns:1fr auto;
    align-items:start;
    gap:10px 20px;
}

.card h3 {
    margin-bottom: 18px;
    font-size: 16px;
}
.fullheight {
    min-height:92vh;
}
.card p, td {
    margin-bottom: 5px;
    font-size: 14px;
}

.card i {
    font-size: 20px;
    margin-right: 10px;
    color: #2563eb;
}
.card-i-red i {
     color: #ef4444;
}
.card-i-orange i {
     color: #f97316;
}

.card-i-green i {
     color: #248806;
}

.fakinfo {
    color: #2563eb;
    cursor: pointer;
}
.btn-header {
    display: inline-flex;    
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    align-items: center;
    justify-content: center;    
    gap: 8px; 
    margin-right: 5px;
}

.btn {
    display: inline-flex;    
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    align-items: center;
    justify-content: center;    
    gap: 8px; 
}


.primary, .rejectRMA, .approveRMA, .closeRMA {
    border:1px solid #2563eb;
    background:#F0F5FD;
    color:#2563eb;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.primary i, .rejectRMA i, .approveRMA i, .closeRMA i {
    color:#2563eb;
    transition:color 0.2s ease;
}

.primary:hover, .rejectRMA:hover, .approveRMA:hover, .closeRMA:hover {
    transform:translateY(-2px);
    background:#2563eb;
    color:white;
    box-shadow:
        0 8px 18px rgba(37,99,235,0.22);
}

.primary:hover i{
    color:white;
}

.rejectRMA {
    border: 1px solid #ef4444;
    background: #FBF5FB;
    color:  #ef4444;
}

.rejectRMA i {
    color:  #ef4444;
}

.rejectRMA:hover, .rejectRMA:hover i {
    background: #ef4444;
    color: white;
}
.approveRMA {
    border: 1px solid #10b981;
    background: #F7FCFB;
    color: #10b981;
}
.approveRMA i {
    color: #10b981;
}
.approveRMA:hover, .approveRMA:hover i{
    background: #10b981;
    color:  white;
}
.closeRMA {
    border: 1px solid black;
    background: #eeeeee;
    color: black;
}
.closeRMA i {
    color:  black;
}
.closeRMA:hover, .closeRMA:hover i{
    background: black;
    color:  white;
}

.li_approved i {
    color: #10b981;
}

.li_rejected i {
    color: #ef4444;
}

.li_settings i {
    color: black;
}

#chatContainer {
    display:flex;
    flex-direction:column;
    gap:28px;
}

.chat-tabs {
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.chat-tab {
    padding:8px 15px;
    border:1px solid #d7d7d7;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    background:#f5f5f5;
    font-weight:500;
}

.chat-tab.active {
    background:#4f46e5;
    color:#fff;
    border-color:#4f46e5;
}


.chat-box {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.message.ht {
    background: #eff6ff;
}

.message.lm {
    background: #f8fafc;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
}
textarea {
    display:block;
    width:100%;
    min-height:120px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    padding:14px;
    margin-bottom:4px;
    resize:vertical;
}

.chat-attachment{
    margin-top:14px;
    border-top:1px solid rgba(148,163,184,0.18);
    padding-top:12px;
}

.chat-attachment a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-decoration:none;
    border-radius:10px;
    padding:5px 12px;
    transition:0.2s ease;
    background:rgba(255,255,255,0.55);
}

.chat-attachment a:hover{
    background:rgba(255,255,255,0.9);
}

.attachment-left{
    display:flex;
    align-items:center;
    gap:10px;
    color:#334155;
    font-size:14px;
    font-weight:500;
}

.attachment-left i{
    color:#64748b;
    font-size:15px;
}

.attachment-right i{
    color:#94a3b8;
    font-size:13px;
    transition:0.2s;
}

.chat-attachment a:hover .attachment-right i{
    transform:translateX(2px);
    color:#2563eb;
}

.chat-message.ht .chat-attachment{
    border-top-color:#bfdbfe;
}

.chat-message.lm .chat-attachment{
    border-top-color:#ddd6fe;
}

.message-toolbar{
    display:flex;
    align-items:center;
    width:100%;
}

.toolbar-left{
    display:flex;
    align-items:center;
}

.toolbar-right{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:12px;
}

.message-quickactions {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-top: 14px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.message-quickactions-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}


.file-upload{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 18px;
    border-radius:10px;
    border:1px dashed #cbd5e1;
    background:white;
    color:#2563eb;
    font-weight:600;
    font-size:14px;
    cursor:pointer;
    transition:0.2s;
}

.file-upload:hover{
    background:#eff6ff;
    border-color:#2563eb;
}

#selectedFile{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
    color:#475569;
}

.file-tag{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:10px;
}
.remove-file{
    width:22px;
    height:22px;

    min-width:22px;

    border-radius:50%;
    background:#e2e8f0;

    position:relative;

    cursor:pointer;
    transition:0.2s ease;
}

.remove-file i{
    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%, -50%);

    font-size:11px;
    line-height:1;
}

.remove-file:hover{
    background:#ef4444;
    color:white;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f7fb;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.login-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-sub {
    color: #64748b;
    margin-bottom: 24px;
}

.login-card input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 15px;
}

.full-btn {
    width: 100%;
}

.error-box {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.btn i, .btn-header i {
    margin-right: 0px;
    font-size: 20px;
}


.dashboard i {
    color: #2563eb;
}

.new i {
    color: #7c3aed;
}
.waitingLM i {
    color: #8b5cf6;
}
.waitingHT i {
    color: #2563eb;
}
.waitingCust i {
    color: #f59e0b;
}


.chat-box {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;

    color: white;
}

.avatar.ht {
    background: #2563eb;
}

.avatar.lm {
    background: #8b5cf6;
}

.message-content {
    flex: 1;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.message-info strong {
    color: #1e293b;
}

.message-info span {
    color: #64748b;
}

.message-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    line-height: 1.5;
    color: #1e293b;
    max-width: 700px;
}

.message-bubble-ticket {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    line-height: 1.5;
    color: #1e293b;
    max-width: 700px;
    font-size: 13px;
}

.chat-message.ht .message-bubble {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.chat-message.lm .message-bubble {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.chat-message.ht .message-bubble-ticket {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.chat-message.lm .message-bubble-ticket {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.chat-message.ht {
    margin-left: 60px;
}

.message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quick-reply {
    border: 1px dashed #cbd5e1;
    background: white;
    color: #475569;
    font-size: 11px;
}

.quick-reply:hover {
    background: #f8fafc;
    background: #F0F5FD;
}

h3 i {
    margin-right: 12px;
    font-size: 22px;
}

.menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0;
    padding: 0 !important;
    border-radius: 999px;
    cursor: default;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.product-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: white;
}

.product-details p {
    margin-bottom: 8px;
}

.lightbox-image {
    cursor: pointer;
    transition: 0.2s ease;
}

.lightbox-image:hover {
    transform: scale(1.03);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
    backdrop-filter: blur(6px);
}


#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 42px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    z-index: 10000;
}

.swal-textarea {
    min-height: 240px !important;
    border-radius: 12px !important;
    padding: 14px !important;
    border: 1px solid #cbd5e1 !important;
}

.badge {
    min-width: 20px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}
.badge.blue {
    background: #2563eb;
}

.badge.orange {
    background: #f97316;
}

.badge.yellow {
    background: #fbbf24;
    color: #1e293b;
}

.badge.purple {
    background: #8b5cf6;
}

.badge.red {
    background: #ef4444;
}

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 5px 5px;
    align-items: start;
    justify-content: center;
}
.info-grid-label {
    font-size: 12px;
}
.info-grid-status {
    min-height: 20px;
    font-size: 10px;
}
.info-grid-label i {
    color: #d16319;
    margin-right: 12px;
    font-size: 10px;
}

.dataTables_wrapper {
    background: white;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.dataTables_wrapper {
    background: white;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
table.dataTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    padding: 18px 16px;
}
table.dataTable tbody td {
    padding: 18px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 11px;
}
table.dataTable tbody tr:hover {
    background: #f8fafc;
}
.priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.priority.normal {
    background: #eff6ff;
    color: #2563eb;
}

.priority.high {
    background: #fef3c7;
    color: #d97706;
}
.priority.low {
    background: #c5e4d7;
    color: #0A9A5C;
}

.table-btn {
    border: 1px solid #dbeafe;
    background: white;
    color: #2563eb;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 10px;
}

.table-btn:hover {
    background: #eff6ff;
}

small {
    color: #64748b;
    font-size: 12px;
}
.table-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.table-filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 42px 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: 0.2s ease;
    min-width: 220px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364758b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    margin-top: 5px;
}
.table-filters select:hover {
    border-color: #94a3b8;
}
.table-filters select:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37,99,235,0.12);
}
.table-filters {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_filter label {
    font-weight: 600;
    color: #475569;
    font-size: 12px;
}

.dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 10px !important;
    background: white !important;
    outline: none !important;
    margin-left: 10px !important;
    transition: 0.2s;
    font-size: 12px !important;
}
.dataTables_filter input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.dataTables_paginate {
    margin-top: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 30px;
    height: 30px;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 12px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #F0F5FD !important;
    border-color: #2563eb !important;
    color: white !important;
    font-weight: 700;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.45;
    cursor: default !important;
}
.dataTables_info {
    color: #64748b;
    font-size: 12px;
    margin-top: 12px;
}
.dt-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.dt-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;    
    border: 1px solid #2563eb !important;
    background: #F0F5FD !important;
    color: #2563eb !important;
    border-radius: 8px !important;
    padding: 5px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: 0.2s;
}
.dt-button:hover{
    background: #2563eb !important;
    border-color: #2563eb !important;    
    color: white !important;
}
.dt-button i {
    font-size: 12px;
}
.dt-button:hover i {
    color: white !important;
}
.bigNumber {
    font-size: 18px;
    font-weight: 600;
}

.rma-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(90px,1fr));
    gap:14px;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:14px;
    border:1px solid #e2e8f0;
    background:white;
    aspect-ratio:1/1;
}

.gallery-item img{
    width:90px;
    height:90px;
    object-fit:cover;
    cursor:pointer;
    transition:0.25s ease;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

.lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:54px;
    height:54px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.12);
    color:white;
    cursor:pointer;
    backdrop-filter:blur(10px);
    transition:0.2s;
    z-index:10001;
}

.lightbox-nav:hover{
    background:rgba(255,255,255,0.22);
}

.lightbox-nav.prev{
    left:30px;
}

.lightbox-nav.next{
    right:30px;
}

.lightbox-nav i{
    font-size:18px;
}

.checkbox-col{
    width:20px !important;
    text-align:center !important;
    vertical-align:middle !important;
    padding:18px 10px !important;
}

table.dataTable tbody td.checkbox-col,
table.dataTable thead th.checkbox-col{
    text-align:center !important;
    vertical-align:middle !important;
}

.checkbox-col input[type="checkbox"]{
    appearance:none;
    -webkit-appearance:none;
    width:20px;
    height:20px;
    border:2px solid #dbe2ea;
    border-radius:6px;
    background:white;
    cursor:pointer;
    transition:0.2s ease;
    position:relative;
    display:inline-block;
    vertical-align:middle;
    margin:0;
}

.checkbox-col input[type="checkbox"]:hover{
    border-color:#2563eb;
    background:#eff6ff;
}

.checkbox-col input[type="checkbox"]:checked{
    background:#2563eb;
    border-color:#2563eb;
}

.checkbox-col input[type="checkbox"]:checked::after{
    content:'';
    position:absolute;
    left:5px;
    top:1px;
    width:5px;
    height:10px;
    border:solid white;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
}

.quick-actions-card h3{
    display:flex;
    align-items:center;
    gap:12px;

    margin-bottom:20px;
}

.quick-actions{
    display:flex;
    flex-direction:column;
}

.quick-action-item{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:16px 4px;

    border-bottom:1px solid #edf2f7;

    cursor:pointer;

    transition:0.2s ease;
}

.quick-action-item:hover{
    background:#f8fafc;
}

.quick-action-left{
    display:flex;
    align-items:center;
    gap:14px;

    font-size:14px;
    font-weight:500;

    color:#334155;
}

.quick-action-left i{

    width:18px;

    color:#64748b;

    font-size:16px;
}

.quick-action-right i{

    color:#94a3b8;

    font-size:14px;

    transition:0.2s ease;
}

.quick-action-item:hover .quick-action-right i{
    transform:translateX(3px);
    color:#2563eb;
}

#rmaTable tbody tr{
    cursor:pointer;
    transition:0.15s ease;
}

#rmaTable tbody tr.selected-row{
    background:#eff6ff !important;
}

#rmaTable tbody tr.selected-row td{
    background:#eff6ff !important;
}

.notes-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.notes-header h3{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
}

.notes-header h3 span{
    font-size:14px;
    font-weight:600;
    color:#64748b;
}

.notes-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.note-item{
    background:#fffaf0;
    border:1px solid #fde7b0;
    border-radius:14px;
    padding:16px 18px;
    transition:0.2s ease;
}

.note-item:hover{
    border-color:#facc15;
    transform:translateY(-1px);
}

.note-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    margin-bottom:6px;
}

.note-date{
    font-size:14px;
    font-weight:700;
    color:#7c5a10;
}

.note-menu{
    width:30px;
    height:20px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:0.2s ease;
    color:#7c5a10;
}
.note-menu i{
    font-size: 14px;
}
.note-menu:hover{
    background:rgba(0,0,0,0.05);
}

.note-message{
    font-size:15px;
    line-height:1.5;
    color:#5b4636;
    margin-top:0;
}

.reminder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.reminder.scheduled {
    background: #e0f5da;
    color: #248806;
}
.reminder.sent {
    background: #f7dade;
    color: #F00C2C;

}

.reminder.necessary {
    background: #f8ecee;
    color: #F00C2C;

}

.reminder.sent_twice {
    background: #ded7e4;
    color: #751FB7;
}
.reminder.manuel {
    background: #fcf6f6;
    color: #939292;
}
.reminderDays {
    font-size: 12px;
    font-weight: 500;
    color: #F00C2C;
    text-align: center;
}

.reminder-status-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top: 10px;
}

.reminder-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.reminder-dot{
    width:10px;
    height:10px;
    min-width:10px;
    border-radius:50%;
    margin-top:4px;
}

.reminder-title{
    font-size:12px;
    font-weight:700;
    color:#1e293b;
    margin-bottom:2px;
}

.reminder-text{
    font-size:11px;
    color:#64748b;
    line-height:1.4;
}

.reminder-item.urgent .reminder-dot{
    background:#ef233c;
}

.reminder-item.planned .reminder-dot{
    background:#248806;
}

.reminder-item.sent .reminder-dot{
    background:#ef233c;
}

.reminder-item.repeated .reminder-dot{
    background:#7e22ce;
}

.reminder-item.inactive .reminder-dot{
    background:#a3a3a3;
}

.template-tabs{
    display:flex;
    align-items:center;
    gap:34px;

    border-bottom:1px solid #e2e8f0;

    margin-bottom:24px;

    padding:0 6px;
}

.template-tab{
    position:relative;

    border:none;
    background:none;

    padding:16px 0;

    font-size:15px;
    font-weight:600;

    color:#475569;

    cursor:pointer;

    transition:0.2s ease;
}

.template-tab:hover{
    color:#2563eb;
}

.template-tab.active{
    color:#2563eb;
}

.template-tab.active::after{
    content:'';

    position:absolute;

    left:0;
    bottom:-1px;

    width:100%;
    height:3px;

    border-radius:999px;

    background:#2563eb;
}

.template-layout{
    display:grid;
    grid-template-columns:1fr 340px;
    gap:20px;
}

.template-preview-card{
    background:white;
    border-radius:18px;
    padding:22px;
    box-shadow:0 2px 10px rgba(15,23,42,0.08);

    position:sticky;
    top:90px;

    height:fit-content;
}

.preview-section{
    margin-bottom:24px;
}

.preview-section label{
    display:block;

    font-size:13px;
    font-weight:700;

    color:#334155;

    margin-bottom:10px;
}

.preview-subject{
    border:1px solid #dbe3ee;
    border-radius:10px;

    padding:14px;

    background:#f8fafc;

    font-size:14px;
    color:#1e293b;
}

.preview-body{
    border:1px solid #dbe3ee;
    border-radius:12px;

    background:#f8fafc;

    padding:18px;

    min-height:300px;

    font-size:14px;
    line-height:1.7;

    color:#334155;

    white-space:pre-line;
}

.template-row-title{
    font-size:14px;
    font-weight:700;
    color:#1e293b;

    margin-bottom:4px;
}

.template-row-desc{
    font-size:12px;
    color:#64748b;
}

.template-category{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:5px 10px;

    border-radius:999px;

    font-size:11px;
    font-weight:700;
}

.template-category.info{
    background:#eff6ff;
    color:#2563eb;
}

.template-category.request{
    background:#fff7ed;
    color:#f97316;
}

.template-category.approve{
    background:#ecfdf5;
    color:#10b981;
}

.template-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:5px 10px;

    border-radius:999px;

    font-size:11px;
    font-weight:700;
}

.template-status.active{
    background:#ecfdf5;
    color:#10b981;
}

.template-actions{
    display:flex;
    gap:8px;
}

.template-icon-btn{
    width:34px;
    height:34px;
    border-radius:10px;
    border:1px solid #e2e8f0;
    background:white;
    position:relative;
    cursor:pointer;
    transition:0.2s ease;
    color:#64748b;
    flex-shrink:0;
}

.template-icon-btn i{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    font-size:15px;
    line-height:1;
}

.template-icon-btn:hover{
    background:#eff6ff;
    color:#2563eb;
    border-color:#bfdbfe;
}


.template-sidebar-actions{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.template-side-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    height:46px;
    border-radius:12px;
    border:1px solid #dbe3ee;
    background:white;
    color:#2563eb;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:0.2s ease;
}

.template-side-btn i{
    font-size:15px;
}

.template-side-btn:hover{
    background:#eff6ff;
    border-color:#bfdbfe;

    transform:translateY(-1px);
}

.template-variable-info{
    display:flex;
    background:#f3f7ff;
    border:1px solid #cfe0ff;
    border-radius:12px;
    padding:16px;
    font-size:13px;
    line-height:1.6;
    color:#2563eb;
}

.template-action-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.template-side-btn.danger{
    border-color:#fecaca;

    background:#fff5f5;

    color:#ef4444;
}

.template-side-btn.danger:hover{
    background:#ef4444;
    border-color:#ef4444;

    color:white;
}

.template-side-btn.danger:hover i{
    color:white;
}

#rmaTickets tbody tr {
    cursor: pointer;
}


#rmaTickets tbody tr:hover {
    background-color: #f5f5f5;
}

#users tbody tr {
    cursor: pointer;
}

#users tbody tr:hover {
    background-color: #f5f5f5;
}

#users tbody tr.selected-row{
    background:#eff6ff !important;
}

#users tbody tr.selected-row td{
    background:#78b2fd !important;
}



.unread-ticket {
    background-color: #ff9999 !important;
}

.message-text {
    display: -webkit-box;
    line-clamp: 8;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.message-text.expanded {
    display: block;
}

.toggle-message {
    display: block;
    margin-top: 8px;
    color: #0d6efd;
    cursor: pointer;
    text-decoration: none;
}