.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

th[data-name]:not([data-name=""])
{
    cursor: pointer;
}

.select2-close-mask {
    z-index: 2099;
}

.select2-dropdown {
    z-index: 3051;
}

select {
    width: 100%;
}

.hide-before-print {
    display: none;
}

#role-tree li {
    list-style: none;
}

  .table-bordered td, .table-bordered th {
          border:#333 1px solid
       }



@media print {
    @page  {

        margin-top: 2mm;
        margin-right: 2mm;
        margin-left: 2mm;
        padding-top: 40px;

        @bottom-right {
            content: counter(page) " of " counter(pages);
        }

    }

    .hide-before-print {
        display: initial;
    }




    textarea:empty {
        display: none;
    }



    a[href]:after { content: none !important; }


    .table-bordered td, .table-bordered th {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact;
    }
    table { page-break-inside:auto }
    tr    { page-break-inside:avoid; page-break-after:auto }





    .table-striped tr:nth-child(even) td {
        background-color: #F4F4F4 !important;
        -webkit-print-color-adjust: exact;
    }


    a[href]:after {
        content: none !important
    }


    .no-print, .d-print-none {
        display: none !important;
    }
    .pcoded-main-container {
        margin-left:  0;
    }

    .card {
        border: none;
    }


}

/* ==========================================================================
   Toast Notification System (Version 2 - 20s Auto-Close Toasts)
   ========================================================================== */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

.fugus-toast {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fugus-toast.toast-hiding {
    animation: toastSlideOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fugus-toast-body {
    display: flex;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
}

.fugus-toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
}

.fugus-toast-content {
    flex-grow: 1;
    min-width: 0;
}

.fugus-toast-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #1e293b;
}

.fugus-toast-msg {
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
    word-break: break-word;
}

.fugus-toast-msg ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.fugus-toast-msg li {
    margin-bottom: 3px;
}

.fugus-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    font-size: 16px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.fugus-toast-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

/* Toast Color Themes */
.fugus-toast.toast-success {
    border-left: 5px solid #10b981;
}
.fugus-toast.toast-success .fugus-toast-icon {
    background: #d1fae5;
    color: #059669;
}

.fugus-toast.toast-error,
.fugus-toast.toast-danger {
    border-left: 5px solid #ef4444;
}
.fugus-toast.toast-error .fugus-toast-icon,
.fugus-toast.toast-danger .fugus-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.fugus-toast.toast-warning {
    border-left: 5px solid #f59e0b;
}
.fugus-toast.toast-warning .fugus-toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.fugus-toast.toast-info {
    border-left: 5px solid #3b82f6;
}
.fugus-toast.toast-info .fugus-toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

/* 20 Seconds Progress Bar */
.fugus-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.5px;
    width: 100%;
    background: rgba(0, 0, 0, 0.06);
}

.fugus-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toastProgress 15s linear forwards;
}

.fugus-toast.toast-success .fugus-toast-progress-bar {
    background: #10b981;
}

.fugus-toast.toast-error .fugus-toast-progress-bar,
.fugus-toast.toast-danger .fugus-toast-progress-bar {
    background: #ef4444;
}

.fugus-toast.toast-warning .fugus-toast-progress-bar {
    background: #f59e0b;
}

.fugus-toast.toast-info .fugus-toast-progress-bar {
    background: #3b82f6;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
