/* --- Base and Global Styles --- */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    /* Light grey background */
    min-height: 100vh;
    /* Ensure body takes full viewport height */
}



/* Specific styles for Login/OTP Pages */
.login-page,
.otp-page {
    display: flex;
    /* Centers the container (.container) */
    justify-content: center;
    align-items: center;
}

/* Specific styles for Dashboard Page */
/* The body itself does not need 'display: flex' for the dashboard layout.
   The .dashboard-wrapper inside it will handle the flex display. */
.dashboard-page {
    /* No flex properties directly on body for dashboard, it acts as a normal block container */
}

/* --- Container for Login and OTP Pages --- */
.container {
    display: flex;
    width: 1000px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.left-section,
.right-section {
    flex: 1;
    /* display: flex; */
    /* align-items: center; */
    justify-content: center;
    /* padding: 2rem; */
}

.left-section {
    background-color: #f8f8f8;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    max-width: 500px;
}

.right-section {
    /* background: linear-gradient(135deg, #4370f0, #a174f5); */
    background-image: url('/images/bg-login.png');
    color: #f8f8f8;
    flex-direction: column;
    text-align: center;
    /* border-top-left-radius: 120px; */
    border-bottom-left-radius: 120px;
}

/* --- Login and OTP Box Styles --- */
.login-box,
.otp-box {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.header-banner {
    background: linear-gradient(to right, #6A5ACD, #8A2BE2);
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top-left-radius: 8px;
    z-index: 0;
}

/* Ensure rounded corner for OTP page */
.otp-box .header-banner {
    border-top-right-radius: 8px;
}

/* Ensure no rounded corner for login page (left side) */
.login-box .header-banner {
    border-top-right-radius: 0;
}


.login-content,
.otp-content {
    margin-top: 60px;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.login-box h2,
.otp-box h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #333;
    text-align: left;
}

.login-box p,
.otp-box p {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

/* --- Input Field Base Styles --- */
.input-with-icon input,
.input-group input[type="text"]:not(.otp-digit),
/* Exclude OTP inputs */
.input-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    box-sizing: border-box;
}

/* --- Validation Styling for Inputs (Login Page) --- */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 40px;
    width: 100%;
    /* Space for validation icon */
}

.input-with-icon .validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.input-with-icon input.is-invalid {
    border-color: #e74c3c;
}

.input-with-icon input.is-valid {
    border-color: #4CAF50;
}

.validation-icon.error-icon {
    color: #e74c3c;
}

.validation-icon.success-icon {
    color: #4CAF50;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
}

/* --- Password Toggle Specifics --- */
.password-input-container {
    position: relative;
    width: 100%;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 40px;
    /* Adjust to avoid overlap with validation icon */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    z-index: 2;
}

/* --- Captcha Specifics --- */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-container span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    min-width: 70px;
}

.captcha-container input {
    flex-grow: 1;
}

/* --- Button Styles --- */
.sign-in-button,
.verify-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #5f52ff, #9c5fff);
    /* Warna biru-ungu yang diberikan */
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Tambahkan box-shadow ke transisi */
    margin-top: 15px;
    /* Tambahkan bayangan di sini */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Bayangan standar */
}

.sign-in-button:hover,
.verify-button:hover {
    background-color: #434cb8;
    /* Warna hover */
    /* Opsional: Tambahkan efek bayangan yang sedikit berbeda saat hover untuk interaksi */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    /* Bayangan sedikit lebih besar/gelap saat hover */
}

/* --- Branding Section (Right Side) --- */
.branding {
    flex: 1;
    background-color: #F8F9FA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.jagat-logo {
    max-width: 100%;
    width: 400px;
    height: auto;
    margin-bottom: 30px;
}

.branding h1 {
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 15px;
}

.branding p {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    /* max-width: 300px; */
}

/* --- OTP Specific Styles --- */
.masked-email {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #888;
    margin-top: -20px;
    margin-bottom: 25px;
}

.otp-input-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.otp-input-group input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 26px;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-grow: 1;
    max-width: 48px;
    margin: 0;
}

.otp-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    font-size: 14px;
}

.otp-links a {
    color: #5A67D8;
    text-decoration: none;
}

.otp-timer {
    color: #666;
    font-weight: 600;
}

.resend-button {
    background: none;
    border: none;
    color: #5A67D8;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
    font-weight: 600;
}

.otp-content .error-message {
    /* Specific alignment for OTP error */
    text-align: center;
    margin-bottom: 15px;
}


/* --- Dashboard Specific Styles --- */
.dashboard-wrapper {
    display: flex;
    /* This is the main flex container for sidebar and main content */
    width: 100%;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    min-width: 250px;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.sidebar-logo {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.app-name {
    font-size: 28px;
    font-weight: 700;
    color: #5A67D8;
}

.sidebar-nav {
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #f0f2f5;
    color: #5A67D8;
}

.sidebar-nav a i {
    margin-right: 15px;
    font-size: 18px;
}

.sidebar-nav .nav-item.active a {
    background-color: #e0e7ff;
    color: #5A67D8;
    font-weight: 600;
    border-left-color: #5A67D8;
}

/* --- Main Content (Dashboard) --- */
.main-content {
    flex-grow: 1;
    padding: 30px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 14px;
    color: #888;
}

.breadcrumb span:last-child {
    font-weight: 600;
    color: #555;
}

.main-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

/* --- Dashboard Cards --- */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}


.card-body {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.master-data-content-wrapper {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
}

.card-icon i {
    color: #fff;
}

.pks-mou .card-icon {
    background-color: #5A67D8;
}

.moa .card-icon {
    background-color: #4CAF50;
}

.pks-mou-percent .card-icon {
    background-color: #FFC107;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 15px;
    color: #888;
    margin-bottom: 5px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* --- Dashboard Charts --- */
.dashboard-charts {
    margin-bottom: 30px;
}

.chart-panel {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-panel h3 {
    font-size: 20px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    display: inline-block;
}

.chart-toolbar {
    float: right;
}

.chart-toolbar select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
}

.chart-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 16px;
    margin-top: 20px;
}

.chart-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Top Activity Table --- */
.top-activity {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-activity h3 {
    font-size: 20px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table th,
table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f8f9fa;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

table td {
    font-size: 14px;
    color: #444;
}

/* --- Modal Styles (Global and Reused) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.loading-content p {
    font-size: 18px;
    color: #333;
    margin-top: 20px;
    font-weight: 500;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5A67D8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content p {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* --- Animasi Notifikasi (Tambahan) --- */

/* Animasi Lonceng Berdering (Ringing Bell) */
@keyframes ringing {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    90% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Animasi Guncangan (Shake) - Alternatif */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Terapkan animasi saat ada notifikasi baru */
.notification-icon.has-notifications i {
    color: #e74c3c;
    /* Ubah warna ikon notifikasi untuk menandakan ada yang baru */
    animation: ringing 1.5s ease-in-out infinite;
    /* Gunakan animasi lonceng */
    /* animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) infinite; */
    /* Atau gunakan animasi guncangan */
    transform-origin: top center;
    /* Penting untuk animasi berdering */
}

/* Optional: Sedikit membesar saat dihover jika ada notifikasi */
.notification-icon.has-notifications:hover i {
    transform: scale(1.1);
    /* Sedikit membesar saat hover */
    animation: none;
    /* Hentikan animasi saat dihover agar tidak mengganggu */
}

/* --- Pastikan CSS untuk navbar-top, icon-wrapper, dan user-profile-dropdown sudah seperti ini --- */
/* Ini adalah bagian dari CSS yang sudah saya berikan sebelumnya, hanya untuk referensi */
.navbar-top {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-wrapper {
    position: relative;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

.icon-wrapper:hover {
    background-color: #e9e9e9;
}

.icon-wrapper i {
    font-size: 20px;
    color: #555;
    /* Warna default ikon */
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    /* Tambahkan color transition */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.icon-wrapper:hover i {
    opacity: 1;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    min-width: 15px;
    text-align: center;
    box-sizing: border-box;
}

.user-profile-dropdown {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile-dropdown:hover {
    background-color: #e9e9e9;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5A67D8;
    display: block;
}

.username {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item i {
    margin-right: 10px;
    color: #888;
}

.dropdown-item:hover {
    background-color: #f0f2f5;
    color: #5A67D8;
}

.dropdown-item.logout-link {
    border-top: 1px solid #eee;
    color: #e74c3c;
}

.dropdown-item.logout-link i {
    color: #e74c3c;
}

.dropdown-item.logout-link:hover {
    background-color: #ffe0e0;
    color: #c0392b;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.main-header h1 {
    margin-right: auto;
    margin-bottom: 0;
}

/* --- Notification Dropdown Styles (Tambahan) --- */
.notification-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    /* Posisikan di bawah ikon notifikasi */
    right: -50px;
    /* Sesuaikan posisi agar lebih ke tengah atau ke kanan dari ikon */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Bayangan yang lebih menonjol */
    min-width: 300px;
    /* Lebar minimum untuk notifikasi */
    max-width: 350px;
    /* Lebar maksimum */
    max-height: 400px;
    /* Tinggi maksimum, agar bisa di-scroll */
    overflow-y: auto;
    /* Aktifkan scroll jika konten melebihi max-height */
    z-index: 1002;
    /* Lebih tinggi dari dropdown profil */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    padding: 10px 0;
    /* Padding vertikal */
}

.notification-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown-menu .dropdown-header {
    font-weight: 600;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    margin-bottom: 5px;
}

.notification-dropdown-menu .notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    /* Garis pemisah antar notifikasi */
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-dropdown-menu .notification-item:last-of-type {
    border-bottom: none;
    /* Hapus border pada item terakhir */
}

.notification-dropdown-menu .notification-item:hover {
    background-color: #f0f2f5;
}

.notification-item .notification-status {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Warna status notifikasi */
.notification-item .status-pending {
    color: #f39c12;
    /* Orange */
}

.notification-item .status-rejected {
    color: #e74c3c;
    /* Red */
}

.notification-item .status-approved {
    color: #27ae60;
    /* Green */
}

.notification-item .notification-details {
    font-size: 12px;
    color: #777;
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.notification-item .notification-transaction {
    font-size: 13px;
    color: #555;
    font-weight: 400;
}

.notification-dropdown-menu .dropdown-footer {
    display: block;
    text-align: center;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    color: #5A67D8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.notification-dropdown-menu .dropdown-footer:hover {
    background-color: #f0f2f5;
}

/* Penyesuaian posisi right pada .notification-dropdown-menu */
/* ini bisa disesuaikan lagi jika posisi dropdown kurang pas */
@media (max-width: 768px) {
    .notification-dropdown-menu {
        right: 0;
        /* Geser ke kanan jika layar kecil */
        left: auto;
    }
}

/* === Sidebar Styles (MODERN) === */
.sidebar {
    min-width: 240px;
    background: #fff;
    box-shadow: 2px 0 12px rgba(44, 62, 80, 0.05);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-nav {
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #bbb;
    margin: 12px 0 6px 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
    position: relative;
}

.sidebar-nav .nav-link,
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 22px;
    color: #222;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.18s;
    background: transparent;
    gap: 14px;
}

.sidebar-nav .nav-link i {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
    color: #6C63FF;
    opacity: 0.85;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
    background: rgba(108, 99, 255, 0.08);
    color: #6C63FF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(108,99,255,0.08);
    outline: none;
}

.sidebar-nav .nav-item.active > .nav-link,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, #6C63FF 0%, #1E1E88 100%);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(108,99,255,0.16);
    border-left: 4px solid #fff;
}

.sidebar-nav .nav-item.active > .nav-link i,
.sidebar-nav .nav-link.active i {
    color: #fff;
}

.sidebar-nav .nav-link .submenu-arrow {
    margin-left: auto;
    font-size: 14px;
    transition: transform 0.2s;
}

.sidebar-nav .nav-item.has-submenu.expanded .submenu-arrow {
    transform: rotate(90deg);
}

.sidebar-nav .submenu {
    list-style: none;
    padding: 0;
    margin: 5px 0 5px 0;
    background: #f5f6ff;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(44,62,80,0.02) inset;
    margin-left: 20px;
}

.sidebar-nav .submenu.show {
    max-height: 300px;
    opacity: 1;
}

.sidebar-nav .submenu li a {
    padding: 10px 15px 10px 36px;
    font-size: 14px;
    color: #666;
    border-radius: 0 8px 8px 0;
    transition: background 0.18s, color 0.18s;
}

.sidebar-nav .submenu li a:hover {
    background: #e0e2f8;
    color: #6C63FF;
}

.sidebar-nav .submenu li.active a {
    background: #d7d9ef;
    color: #6C63FF;
    font-weight: 600;
}

/* --- Master Data Page Content Styles --- */
/* Hapus semua gaya yang terkait dengan .master-data-horizontal-submenu */
/* dan perbarui .master-data-content-wrapper jika perlu */

/* Pastikan gaya ini ada dan benar */
.master-data-content-wrapper {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.content-header-master {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-header-master h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.sync-button {
    background-color: #5A67D8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.sync-button:hover {
    background-color: #4a54c9;
    transform: translateY(-1px);
}

.sync-button i {
    font-size: 16px;
}

/* Table and CRUD button styles (ensure these are present) */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #555;
}

table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

table tbody tr:hover {
    background-color: #f0f2f5;
}

.action-btn {
    background: none;
    border: none;
    color: #5A67D8;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.action-btn:hover {
    color: #4a54c9;
}

.delete-btn {
    color: #e74c3c;
}

.delete-btn:hover {
    color: #c0392b;
}

.add-button-container {
    text-align: right;
    margin-top: 20px;
}

.add-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.add-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.add-btn i {
    font-size: 16px;
}

.roles-note {
    font-style: italic;
    color: #888;
    font-size: 13px;
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-nav .submenu {
        margin-left: 0;
        /* Remove indent on smaller screens if sidebar is collapsed */
        background-color: transparent;
        /* No background if sidebar is narrow */
        box-shadow: none;
        position: static;
        /* Allows it to flow with parent */
        width: 100%;
        max-height: unset;
        /* Let height be natural */
        opacity: 1;
        /* Always visible if parent is visible */
        transition: none;
    }

    .sidebar-nav .submenu.show {
        max-height: unset;
        opacity: 1;
    }

    .sidebar-nav .submenu li a {
        padding-left: 20px;
        /* Less indent for sub-items */
    }

    .sidebar-nav .nav-item.has-submenu.expanded .submenu-arrow {
        transform: rotate(0deg);
        /* Don't rotate if sidebar is collapsed */
    }

    /* Master Data content responsive */
    .master-data-content-wrapper {
        padding: 15px;
        margin-top: 15px;
    }

    .content-header-master {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content-header-master h2 {
        font-size: 20px;
    }

    .sync-button {
        width: 100%;
        justify-content: center;
    }

    table th,
    table td {
        padding: 10px;
    }

    /* ... (Gaya sebelumnya untuk dropdown sidebar, main content wrapper, sync button, table, add button) ... */

    /* New styles for Soft Delete Status Toggle Buttons */
    .status-toggle-btn {
        background-color: #f0f0f0;
        color: #555;
        border: 1px solid #ccc;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        margin: 0 3px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .status-toggle-btn:hover {
        filter: brightness(0.95);
        transform: translateY(-0.5px);
    }

    .status-toggle-btn.active-btn {
        color: #28a745;
        /* Green for Active */
        border-color: #28a745;
    }

    .status-toggle-btn.inactive-btn {
        color: #dc3545;
        /* Red for Inactive */
        border-color: #dc3545;
    }

    .status-toggle-btn.active-btn:hover {
        background-color: #e6ffe6;
        /* Lighter green on hover */
    }

    .status-toggle-btn.inactive-btn:hover {
        background-color: #ffe6e6;
        /* Lighter red on hover */
    }

    .status-toggle-btn i {
        font-size: 14px;
    }


    /* Existing .action-btn (edit/delete) styles, make sure they are still there */
    .action-btn {
        background: none;
        border: none;
        color: #5A67D8;
        cursor: pointer;
        font-size: 16px;
        margin: 0 5px;
        transition: color 0.2s ease;
    }

    .action-btn:hover {
        color: #4a54c9;
    }

    .delete-btn {
        color: #e74c3c;
    }

    .delete-btn:hover {
        color: #c0392b;
    }

    /* Ensure these are present as well */
    .add-button-container {
        text-align: right;
        margin-top: 20px;
    }

    .add-btn {
        background-color: #28a745;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: background-color 0.3s ease, transform 0.1s ease;
    }

    .add-btn:hover {
        background-color: #218838;
        transform: translateY(-1px);
    }

}

/* ... (Existing styles for sidebar, main content, buttons, tables) ... */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure it's on top */
    opacity: 0;
    /* Start hidden */
    visibility: hidden;
    /* Start hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show-modal {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    /* Max width for readability */
    transform: translateY(-20px);
    /* Initial slight lift */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Limit height for scrollability */
    overflow-y: auto;
    /* Enable scrolling if content is too long */
}

.modal-overlay.show-modal .modal-content {
    transform: translateY(0);
    /* Slide up into view */
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #555;
}

/* Modal Body */
.modal-body {
    padding: 10px 0;
    line-height: 1.6;
    color: #555;
}

.modal-body p {
    margin-bottom: 10px;
    font-size: 15px;
}

.modal-body strong {
    color: #333;
}

.modal-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-section h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Modal Table */
.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.modal-table th,
.modal-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.modal-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #444;
}

.modal-table td {
    color: #666;
}

/* Checkbox styling within modal table */
.modal-table input[type="checkbox"] {
    transform: scale(1.2);
    /* Make checkboxes slightly larger */
    cursor: pointer;
    accent-color: #5A67D8;
    /* Color the checkbox when checked */
}


/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #5A67D8;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #4a54c9;
}

.btn-secondary {
    background-color: #f0f2f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e2e4e8;
}

/* Specific style for the access button (user-shield) */
.action-btn.access-btn {
    color: #17a2b8;
    /* A shade of blue-teal */
    font-size: 18px;
}

.action-btn.access-btn:hover {
    color: #138496;
}

/* ... (existing styles) ... */

/* Form Specific Styles for Mail Server */
.form-container {
    padding: 20px;
    background-color: #fcfcfc;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 500px;
    /* Limit width for form readability */
    margin: 20px auto;
    /* Center the form */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-container p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: calc(100% - 24px);
    /* Full width minus padding */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #5A67D8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
    outline: none;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#testConnectionStatus {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 1.0em;
}

/* Responsive untuk Login dan OTP Pages */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        width: 90%;
    }

    .left-section,
    .right-section {
        max-width: 100%;
        padding: 20px;
        border-radius: 0;
    }

    .right-section {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        border-bottom-right-radius: 8px;
        text-align: center;
    }

    .login-box,
    .otp-box {
        padding: 30px 20px;
        max-width: 100%;
    }

    .branding h1 {
        font-size: 28px;
    }

    .branding p {
        font-size: 14px;
    }
}

/* Responsive tambahan untuk layar sangat kecil */
@media (max-width: 576px) {
    .otp-input-group input {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .sign-in-button,
    .verify-button {
        font-size: 15px;
        padding: 12px;
    }
}

.row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.col-4 {
    padding: 13px;
    flex: 0 0 auto;
    width: 30.96%;
}


.btn-view {
    padding: 4px 12px;
    background-color: #002955;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.card-details-task {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.title-task {
    font-size: 18px;
    font-weight: bold;
    color: #4370f0;
}

.card-details-task .row- {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card-details-task .col-4 {
    width: 100%;
    max-width: 33.3333%;
    box-sizing: border-box;
}

.card-details-task .card-body {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 16px;
}

.info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-left h4 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

.info-left span {
    font-size: 14px;
    color: #666;
}

.info-right {
    text-align: right;
}

.info-right span {
    font-size: 13px;
    color: #888;
}

.card-bottom {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-bottom .avatars {
    display: flex;
}

.card-bottom .avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
}

.card-bottom .avatars img:first-child {
    margin-left: 0;
}

.card-bottom .btn-view-task {
    background-color: #00c38c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
}

.pagination-task {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 12px;
}

.pagination-btn {
    background-color: #1da1f2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: #1da1f2;
}

.nav-card-btn {
    display: flex;
    gap: 12px;
    border-radius: 10px;
}

.card-btn {
    background-color: #fff;
    color: #1a1a40;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.card-btn i {
    font-size: 18px;
    color: #1da1f2;
}

.card-btn.active {
    background: linear-gradient(to right, #5f52ff, #9c5fff);
    color: white;
}

.card-btn.active i {
    color: white;
}

.approval-wrapper {
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
}

.approval-wrapper .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.approval-wrapper .avatar-group {
    display: flex;
    align-items: center;
}

.approval-wrapper .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
    margin-left: -10px;
    position: relative;
    z-index: 1;
    transition: z-index 0.2s;
}

.approval-wrapper .add-profil {
    color: #00a2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    margin-right: 16px;
}

.form-row-task {
    margin-top: 20px;
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.form-group-task {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.label-task {
    font-weight: 600;
    color: #1f2a4c;
    font-size: 14px;
    margin-bottom: 6px;
}

.required {
    color: red;
}

.form-control {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-next {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-next:hover {
    background-color: #0056b3;
}

.btn-back {
    padding: 10px 20px;
    background-color: #fd7e14;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #e07b00;
}

.title-workflow {
    font-size: 18px;
    font-weight: 600;
}

.hr-blue {
    border: 2px solid #1da1f2;
}

.workflow-left {
    width: 100%;
    max-width: 30%;
    box-sizing: border-box;
}

.workflow-card {
    position: relative;
    background-color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.workflow-card.active {
    background-color: #41E15C;
    color: #fff;
}

.workflow-card h5 {
    margin-bottom: 0;
}

.workflow-card p {
    font-size: 12px;
    margin-top: 0;
}

.status-label {
    position: absolute;
    top: 12px;
    right: 16px;
    background-color: white;
    color: #41E15C;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.workflow-card.active .status-label {
    background-color: white;
    color: #41E15C;
}

.active-outline {
    background-color: #41E15C;
    color: white;
}

.workflow-right {
    width: 67.79%;
    box-sizing: border-box;
    margin-left: 20px;
}

.card-list-workflow {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 10px;
}

.workflow-header {
    font-size: 16px;
    color: #001c5b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workflow-section {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
    padding-left: 20px;
}

.section-icon {
    font-size: 16px;
    color: #2f80ed;
    margin-top: 4px;
    width: 20px;
}

.label-items,
.badges,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.label-tag {
    background: #eaf4d3;
    color: #333;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.avatars-section .avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    margin-left: -10px;
}

.avatars-section .avatars {
    margin-left: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.badge-blue {
    background-color: #2f80ed;
}

.badge-yellow {
    background-color: #f2c94c;
    color: #333;
}

.badge-green {
    background-color: #27ae60;
}

.badge-red {
    background-color: #eb5757;
}

.btn-action {
    background: #d7f2ed;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.workflow-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 20px;
    font-size: 12px;
    color: gray;
    margin-top: 6px;
}

.list-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.icon-flag {
    color: #2f80ed;
    font-size: 16px;
}

.label-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-label .avatars {
    display: flex;
    align-items: center;
}

.list-label .avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    margin-left: -10px;
}

.upload-container {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
}

.upload-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333333;
    font-size: 18px;
}

.upload-info {
    margin-top: 0;
    margin-bottom: 20px;
    color: #666666;
    font-size: 14px;
}

.upload-area {
    border: 2px dashed #cccccc;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #999999;
}

.file-input {
    display: none;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-icon {
    display: block;
    font-size: 32px;
    color: #007bff;
    margin-bottom: 10px;
}

.upload-text {
    color: #666666;
    font-size: 14px;
}

.document-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #ffffff;
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 320px;
    margin: 8px 0;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.document-icon {
    color: #4a6fa5;
    font-size: 20px;
    flex-shrink: 0;
}

.document-details {
    min-width: 0; /* Enables text truncation */
}

.document-type {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.document-name {
    margin: 0;
    font-size: 14px;
    color: #24292e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-action {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    margin-left: 12px;
    border-radius: 4px;
}