/* app.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.component-header h4 {
    margin-bottom: 1px;
    margin-top: 7px;
    display: none;
}

form {
    height: 157px;
    padding-top: 7px;
    border: 1px solid #CFCFCF;
    /*+border-radius: 9px 9px 0 0;*/
    -moz-border-radius: 9px 9px 0 0;
    -webkit-border-radius: 9px 9px 0 0;
    -khtml-border-radius: 9px 9px 0 0;
    border-radius: 9px 9px 0 0;
}

:root {
    --primary-bg: #2C3E50;
    --secondary-bg: #34495E;
    --accent-color: #1ABC9C;
    --text-color: #ECF0F1;
    --text-secondary-color: #BDC3C7;
    --hover-bg: #4A5568;
    --container-bg: #F4F6F9;
    --content-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --sidebar-width-open: 260px;
    --sidebar-width-collapsed: 45px;
    --header-height: 60px;
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
. {
    overflow: visible;
    border: 1px solid #DFDFDF;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--container-bg);
    display: block;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- Modern Animated Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width-open);
    height: 100%;
    background-color: var(--primary-bg);
    color: var(--text-color);
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
    transition: width var(--transition-speed) var(--transition-timing);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.iii {
    position: fixed;
    transition: width var(--transition-speed) var(--transition-timing);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    height: 103px;
}

.sidebar.hidden {
    width: 45px;
}

.sidebar-header {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #0A5DCA;
    flex-shrink: 0;
    position: relative;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
    display: flex;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}

.sidebar-header h2 i {
    margin-right: 12px;
    font-size: 1.2em;
}

.sidebar.hidden .sidebar-header h2 {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.burger-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.6em;
    cursor: pointer;
    padding: 10px 10px 13px 10px;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 1;
    margin-left: auto;
}

.burger-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.sidebar.hidden .sidebar-header {
    justify-content: center;
}

.sidebar.hidden .burger-btn {
    margin-left: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0px 15px 15px;
    margin: -2px 0 0 -11px;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--secondary-bg);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: var(--hover-bg);
}

.sidebar-menu li {
    margin-bottom: 5px;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-menu li .menu-item-wrapper,
.sidebar-menu li .sub-menu li > a {
    display: flex;
    align-items: center;
    padding: 2px 15px 5px 17px;
    color: var(--text-secondary-color);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s var(--transition-timing), color 0.2s var(--transition-timing), padding-left 0.2s var(--transition-timing);
}

.sidebar-menu li .menu-item-wrapper::before,
.sidebar-menu li .sub-menu li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.2s var(--transition-timing);
    border-radius: 0 2px 2px 0;
}

.sidebar-menu li:hover > .menu-item-wrapper,
.sidebar-menu li .sub-menu li > a:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
    padding-left: 20px;
}

.sidebar-menu li:hover > .menu-item-wrapper::before,
.sidebar-menu li .sub-menu li > a:hover::before {
    transform: scaleY(0.7);
}

.sidebar-menu li.active > .menu-item-wrapper,
.sidebar-menu li .sub-menu li.active > a {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    font-weight: normal;
    margin-left: 0px;
}

.sidebar-menu li.active > .menu-item-wrapper::before,
.sidebar-menu li .sub-menu li.active > a::before {
    transform: scaleY(1);
}

.sidebar-menu li .menu-item-wrapper i:first-child,
.sidebar-menu li .sub-menu li > a i:first-child {
    margin-right: 1px;
    font-size: 1.1em;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-menu li:hover .menu-item-wrapper i:first-child,
.sidebar-menu li .sub-menu li > a:hover i:first-child {
    transform: scale(1.1);
}

.sidebar-menu li .menu-name-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--transition-speed) var(--transition-timing) 0.1s, transform var(--transition-speed) var(--transition-timing) 0.1s;
    font-size: 12.9px;
    margin-left: 0;
}

.sidebar.hidden .sidebar-menu li .menu-name-text,
.sidebar.hidden .sidebar-menu li .submenu-arrow {
    opacity: 0;
    transform: translateX(-15px);
    pointer-events: none;
    width: 0;
}

.sidebar.hidden .sidebar-menu li .menu-item-wrapper,
.sidebar.hidden .sidebar-menu li .sub-menu li > a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.hidden .sidebar-menu li .menu-item-wrapper i:first-child,
.sidebar.hidden .sidebar-menu li .sub-menu li > a i:first-child {
    margin-right: 0;
    font-size: 1.3em;
}

.sidebar-menu li .submenu-arrow {
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.3s var(--transition-timing);
}

.sidebar-menu li .submenu-arrow.open {
    transform: rotate(90deg);
}

.sub-menu {
    list-style: none;
    padding-left: 29px;
    background-color: rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s ease-out, transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sub-menu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.sidebar.hidden .sub-menu {
    display: none !important;
}

.sub-menu li a {
    padding-left: 30px;
    font-size: 0.9em;
}

.sub-menu li a i {
    font-size: 0.9em;
    width: 20px;
}

/* --- Container & Konten Utama --- */
.container {
    flex-grow: 1;
    padding: 10px 7px 20px 8px;
    margin-left: var(--sidebar-width-open);
    transition: margin-left var(--transition-speed) var(--transition-timing);
    background-color: #C3D1C3;
    overflow: auto;
    height:1 00vh;
}

.container.sidebar-hidden {
    margin-left: var(--sidebar-width-collapsed);
}

h1 {
    color: #2C3E50;
    margin-top: 0;
    margin-bottom: 20px;
}

.tab-container {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px;
    height: 95%;
    overflow: auto;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0px;
    flex-shrink: 0;
}

.tab-button {
    background-color: rgba(255, 255, 255, 0);
    border-bottom: 3px solid transparent;
    padding: 4px 0px 3px 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: color 0.2s, border-bottom-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
    max-width: 200px;
    color: #555;
    margin-right: 1px;
    border: 1px solid #BFBFBF;
    border-radius: 0px 14px 0 0;
    width: 162px;
}

.tab-button i:first-child {
    font-size: 0.9em;
    margin-right: 5px;
}

.tab-button .tab-button-name {
    display: inline-block;
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    flex-grow: 1;
    font-weight: 400;
    font-size: 13.9px;
}

.tab-button.active {
    color: #FFFFFF;
    font-weight: 500;
    border-bottom-color: var(--accent-color);
    background-color: #003A85;
}

.tab-button:not(.active):hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.03);
}

.tab-button .close-tab {
    background: none;
    border: none;
    color: #999;
    font-size: 0.9em;
    cursor: pointer;
    opacity: 0.7;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 50%;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.tab-button .close-tab:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.tab-button.active .close-tab {
    color: var(--accent-color);
    opacity: 0.8;
}

.tab-button.active .close-tab:hover {
    opacity: 1;
    background-color: rgba(26, 188, 156, 0.1);
}

.tab-button .close-tab .x {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-size: 17px;
    font-weight: 900;
    display: inline-block;
    line-height: 1;
    color: #F78282;
    font-style: normal;
}

.tab-content {
    display: none;
    padding: 0px 15px 20px 0px;
    flex-grow: 1;
    overflow-y: no-content;
    /*+border-radius: 8px;*/
    /* -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    -khtml-border-radius: 8px; */
    border-radius: 8px;
    width: 100%;
}

.tab-content.active {
    display: block;
    height: 13px;
}

.grid-section {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 5px 15px 15px;
    background-color: #FFFFFF;
    border: 1px solid #CAE1CC;
    border-radius: 6px;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.grid-header h2 {
    margin: 0;
    color: #34495E;
    font-size: 1.25em;
    display: flex;
    align-items: center;
}

.grid-header h2 i {
    margin-right: 10px;
    font-size: 1em;
    color: inherit;
}

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

.navigation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-left: 15px;
}

.form-editor h3 {
    margin-top: 0;
    color: #2C3E50;
    margin-bottom: -1px;
    font-size: 1.15em;
    padding-bottom: 0px;
}

/* --- Form Group and Input Styling --- */
.form-group label {
    flex: 0 0 160px;
    /* Lebar label dari app.css */
    margin-right: 8px;
    font-weight: normal;
    text-align: right;
    font-size: 0.9em;
    padding-top: 1px;
    box-sizing: border-box;
}

.infokontak {
}

/* Wrapper untuk area input field, ini yang akan diberi default width */
.form-field-input-wrapper {
    width: 161px;
    /* Default width yang diminta */
    min-width: 99px;
    /* Lebar minimum absolut jika diperlukan, sesuaikan */
    box-sizing: border-box;
    position: relative;
    /* Untuk elemen anak seperti autocomplete list */
    /* Hapus flex-grow, flex-shrink, flex-basis jika ada, agar width 180px yang berlaku */
}

/* Elemen input, select, autocomplete wrapper di dalam .form-field-input-wrapper */
/* Harus mengisi lebar .form-field-input-wrapper */
/* Jika ada wrapper khusus checkbox */
.form-control,
.autocomplete-wrapper,
.file-upload-section,
.form-checkbox-container {
    /* Mengisi   .form-field-input-wrapper */
    box-sizing: border-box;
    /* Hapus flex-basis, flex-grow, flex-shrink dari sini jika sudah diatur oleh .form-field-input-wrapper */
    /* min-width: 180px; (dari app.css) -> mungkin tidak perlu jika wrapper sudah 180px */
    height: 24px;
}

/* Styling spesifik untuk elemen input sebenarnya */
.form-control {
    /* Untuk <input type="text">, <input type="number">, <select>, <textarea> */
    padding: 0px 1px 0px 5px;
    /* Padding dari app.css, sesuaikan tinggi dengan label */
    border: 1px solid #CED4DA;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
    /* Sesuaikan agar tinggi konsisten */
    height: 24px;
    /* Sesuaikan agar tinggi konsisten dengan tombol */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
}

.form-controlx {
    background-color: #5AF35F;
    width: 100%;
}

.htRowHeaders {
    width: 100%;
    min-width: 100%;
}

div.grid-container {
}

.detail-component-section {
    display: flex;
    flex-direction: column;
    border: 1px solid #D7D2D2;
    height: 311px;
    margin-top: 9px;
}

.summary-kesehatan-footer {
    font-weight: normal;
    background-color: #F3B3B3;
    color: #00134A;
    border-top-right-radius: 0px;
    height: 117px;
}

.footerx {
    display: flex;
    justify-content: flex-end;
    /* Posisikan item ke kiri dan kanan */
    align-items: normal;
    /* Sejajarkan secara vertikal */
    margin-top: -40px;
}

.halo {
    color: #6387F1;
    position: relative;
    /*+placement: 16px 16px;*/
    position: relative;
    left: 16px;
    top: 16px;
    border: 1px solid #E4D1D1;
    width: 149px;
    height: 112px;
}

.grid-summary-table {
    border-collapse: collapse;
    width: auto;
    /* Lebar sesuai konten */
    font-size: 1em;
    display: flex;
}

.grid-summary-table .summary-header {
    font-weight: bold;
    text-align: right;
    padding: 0px 8px;
    color: #333;
}

.grid-summary-table .summary-cell {
    text-align: right;
    padding: 0px 8px;
    min-width: 120px;
    /* Beri lebar minimum agar rapi */
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #0056B3;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
    height: ;
}

.form-control:read-only {
    background-color: #FFFFFF;
    /* Dari app.css (sebelumnya #e9ecef) */
    cursor: not-allowed;
    height: 26px;
    font-size: 12.9px;
}

input[type="checkbox"].form-checkbox {
    width: auto;
    /* Checkbox tidak perlu 100% width */
    height: auto;
    margin-top: 8px;
    margin-right: 5px;
}

.file-upload-section {
    display: flex;
    /* Agar input file dan tombol view sejajar */
    align-items: center;
    gap: 10px;
}

.form-control-file {
    flex-grow: 1;
    /* Input file mengambil sisa ruang di .file-upload-section */
    /* padding dan border diatur seperti .form-control jika diinginkan tampilan seragam */
    padding: 0px 12px 5px;
    border: 1px solid #CED4DA;
    border-radius: 4px;
    font-size: 0.9em;
    height: 34px;
    line-height: normal;
    /* Browser default untuk input file */
}

.btn-view-file {
    font-size: 0.85em !important;
    padding: 4px 8px !important;
    height: auto;
    /* Biarkan tinggi sesuai konten */
}

.no-file-text {
    font-size: 0.9em;
    color: #777;
    margin-left: 10px;
    line-height: 34px;
    /* Sejajarkan dengan input */
}

.form-control-static {
    /* Untuk field formula atau display teks saja */
    padding: 0px 10px 8px 0px;
    /* Dari app.css */
    font-size: 0.9em;
    word-break: break-all;
    line-height: 1.5;
    min-height: 34px;
    /* Agar tingginya konsisten */
    display: flex;
    align-items: center;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
    /* Sudah ada di .form-field-input-wrapper, mungkin tidak perlu di sini jika ini anak langsung */
    /* width: 100%; (sudah) */
}

.autocomplete-wrapper input.form-control {
    /* width: 100%; (sudah) */
}

.autocomplete-listxx {
    list-style: none;
    padding: 0;
    margin: 2px 0 0 0;
    border: 1px solid #DDD;
    max-height: 200px;
    overflow-y: auto;
    background-color: #F7FCD4;
    z-index: 1050;
    position: absolute;
    width: 320px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    background-position: ;
}

.autocomplete-list li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.15s ease;
}

.autocomplete-list li:hover,
.autocomplete-list li.selected {
    background-color: #000CA7;
    color: #FFFFFF;
}

/* Form Actions & Summary */
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.summary {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #E8F6F3;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    color: #2C3E50;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 6px 15px 8px;
    /* Padding dari app.css, disesuaikan sedikit */
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
    white-space: nowrap;
    height: 34px;
    margin-right: 1px;
    background-color: #032F93;
    color: #FFFFFF;
    border-color: #0788DE;
}

div.footerx button.btn.btn-primary {
    /*+placement: ;*/
    position: relative;
    left: 0;
    top: 0;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 0.95em;
}

.btn-primary {
    background-color: #3498DB;
    color: white;
    border-color: #3498DB;
}

.btn-primary:hover {
    background-color: #2980B9;
    border-color: #2980B9;
}

.btn-info {
    background-color: #337AB7;
    color: white;
    border-color: #337AB7;
}

.btn-info:hover {
    background-color: #286090;
    border-color: #286090;
}

.btn-danger {
    background-color: #E74C3C;
    color: white;
    border-color: #E74C3C;
}

.btn-danger:hover {
    background-color: #C0392B;
    border-color: #C0392B;
}

.btn-secondary {
    background-color: #7F8C8D;
    color: white;
    border-color: #7F8C8D;
}

.btn-secondary:hover {
    background-color: #6C7A7D;
    border-color: #6C7A7D;
}

.btn-success {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-success:hover {
    background-color: #16A085;
    border-color: #16A085;
}

.btn-outline-primary {
    border-color: #3498DB;
    color: #3498DB;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #3498DB;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 5px 10px 5px 4px;
    font-size: 0.8em;
    text-align: right;
    height: 29px;
}

/* Sesuaikan height untuk sm */
.htButtons.delete-row {
    background: #E74C3C;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.htButtons.delete-row:hover {
    background: #C0392B;
    transform: scale(1.05);
}

.htButtons.delete-row i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar:not(.hidden) {
        width: var(--sidebar-width-open);
        transform: translateX(0);
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }
    
    .container {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group label {
        text-align: left;
        margin-bottom: 5px;
        flex-basis: auto;
        padding-top: 0;
        width: 100%;
    }
    
    .form-group,
    .form-field-input-wrapper {
        overflow: visible !important;
    }
    
    .form-field-input-wrapper {
        width: 100% !important;
        /* Wrapper input mengambil lebar penuh di mobile */
    }
    
    .form-control,
    .autocomplete-wrapper,
    .file-upload-section,
    .form-control-static {
        max-width: 100%;
        min-width: 0;
    }
    
    .autocomplete-list {
        top: 0;
        /* Mulai dari atas input */
        left: 100%;
        /* Posisikan persis di sebelah kanan wrapper */
        margin-left: 5px;
        /* Beri sedikit jarak */
        position: static;
        box-shadow: none;
        margin-top: 5px;
        list-style: none;
        padding: 0;
        margin: 0;
        /* Hapus margin atas */
        border: 1px solid #DDD;
        max-height: 250px;
        /* Sedikit lebih tinggi */
        overflow-y: auto;
        background-color: #F7FCD4;
        z-index: 9999;
        /* Z-index sangat tinggi agar selalu di atas */
        position: absolute;
        /* Ubah ke absolute */
        width: 350px;
        /* Lebar yang lebih konsisten */
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        /* Shadow lebih jelas */
        border-radius: 4px;
        /* Border radius di semua sisi */
    }
    
    .record-actions,
    .navigation-actions,
    .form-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }
    
    .btn {
        padding: 10px 12px;
    }
    
    .tab-button .tab-button-name {
        max-width: 80px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: var(--primary-bg);
    z-index: 2000;
}

.loading-overlay i {
    margin-right: 10px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    /* Default dari app.css, bisa diubah ke 'wrap' jika perlu field pindah baris otomatis */
    /* Default position: static; Akan di-override oleh inline style jika layout.kiri/atas ada */
    max-width: 61%;
    margin-bottom: 0;
    margin-left: 0;
}

.gambar {
    display: flex;
}

. FORM {
}

. {
    overflow: visible;
}

.welcome-content {
    padding: 40px;
    text-align: center;
    background-color: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #34495E;
    margin: 50px auto;
    max-width: 600px;
}

/* Tambahan style untuk Modal Grid Pencarian */
.search-grid-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1050;
    /* Di atas elemen lain */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Semi-transparent background */
}

.search-grid-modal-content {
    background-color: #FEFEFE;
    margin: 3% auto 5%;
    /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 87%;
    /* Could be more or less, or use max-width */
    border-radius: 8px;
    position: relative;
    height: 100%;
}

.search-grid-modal-close {
    color: #AAA;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.search-grid-modal-close:hover,
.search-grid-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style untuk grid di dalam modal dari page.html */
.search-grid-modal-content .grid-viewer-wrapper {
    border: 1px solid #CCC;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: -4px;
    height: 351px;
    overflow: hidden;
}

.search-grid-modal-content .table th,
.search-grid-modal-content .table td {
    vertical-align: middle;
    font-size: smaller;
    overflow-x: no-display;
    overflow-wrap: normal;
    overflow-style: panner;
}

.thead-dark tr {
    background-color: #08744A;
    color: #FFFFFF;
}

.search-grid-modal-content .table tbody tr:hover {
    background-color: #F5F5F5;
    cursor: pointer;
}

.search-grid-modal-content #loadingSpinnerGridModal {
    /* Diberi ID unik untuk modal */
    position: absolute;
    /* relatif terhadap modal-content */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    /* Di atas konten modal lainnya */
    display: none;
}

.search-grid-modal-content .pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.search-grid-modal-content .pagination-controls .page-input {
    width: 60px;
    text-align: center;
    margin: 0 5px;
    font-size: 0.9em;
    padding: 0.25rem 0.5rem;
}

.search-grid-modal-content .pagination-controls .btn {
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
}

.search-grid-modal-content .search-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-grid-modal-content .search-controls .form-control,
.search-grid-modal-content .search-controls .btn {
    font-size: 0.9em;
    padding: 0.375rem 0.75rem;
    height: 35px;
}

.table th,
.table td {
    white-space: nowrap;
    /* Mencegah teks untuk wrap ke baris baru */
    overflow: hidden;
    /* Menyembunyikan teks yang melebihi wadah */
    text-overflow: ellipsis;
}

.table tbody tr:hover {
    background-color: #F5F5F5;
    cursor: pointer;
    .table tbody tr:nth-child(odd) {
        background-color: #F5F5F5;
        /* Warna untuk baris ganjil */
        cursor: pointer;
    }
    .table tbody tr:nth-child(even) {
        background-color: #FFFFFF;
        /* Warna untuk baris genap, misalnya putih */
        cursor: pointer;
    }
}

.table tbody tr:nth-child(odd) {
    background-color: #F1F1F1;
    /* Warna untuk baris ganjil */
    cursor: pointer;
}

.table tbody tr:nth-child(even) {
    background-color: #FFFFFF;
    /* Warna untuk baris genap, misalnya putih */
    cursor: pointer;
}

 {
    display: flex;
    justify-content: center;
    justify-content: space-between;
    margin-top: -1px;
    font-size: 0.9em;
    +border-radius: 7px;
    margin-left: 9px;
    margin-right: 5px;
}
/* Anda bisa menambahkan CSS untuk .combined-button-frames dan .button-group-frame di sini
           atau lebih baik di file app.css atau layout.css */
.navigation-actions span {
    margin-right: 6px;
    font-size: 12.6px;
}

div.combined-button-frames {
    display: flex;
    justify-content: space-between;
}

.ff {
    display: flex;
    justify-content: center;
    justify-content: space-between;
    margin-top: -11px;
    font-size: 0.6em;
    padding-bottom: 0px;
    height: ;
}

.ff h3 {
    height: 0px;
}

.form-editor {
    position: relative;
    /* Diperlukan agar resizer absolut terhadap form */
    overflow: hidden;
    /* Mencegah konten meluap saat resize */
}

.form-frame-resizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    cursor: ns-resize;
    background-color: rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s;
    z-index: 100;
}

.form-frame-resizer:hover {
    background-color: rgba(0, 123, 255, 0.5);
}

.form-editor.is-resizing-height {
    user-select: none;
    -webkit-user-select: none;
}

htRight {
    font-weight: bold;
    color: #FF4040;
}

.iframe-container {
    display: flex;
    /* Menggunakan Flexbox */
    flex-direction: column;
    /* Menyusun elemen (header & iframe) secara vertikal */
    height: 100%;
    /* Memastikan wadah mengisi ruang vertikal yang tersedia di tab */
    overflow-y: auto;
    /* Tambahkan scrollbar jika kontennya melebihi tab */
    margin-left: 0;
}

.iframe-container .component-header {
    flex-shrink: 0;
    /* Mencegah header menyusut */
}

.iframe-container iframe {
    width: 100%;
    /* Lebar iframe 100% dari wadah */
    border: none;
    /* Menghilangkan border default */
    flex-grow: 1;
    /* Biarkan iframe mengisi sisa ruang yang tersedia */
    /* Properti 'height' akan dihapus dari inline style dan diatur oleh JavaScript */
    position: relative;
}

.handsontable.listbox {
    margin: 48px 0 0 145px;
}

/* File: app.css (tambahkan di bagian paling bawah) */
.detail-section-container {
    margin-top: 51px;
    border-top: 2px solid #E0E0E0;
    padding-top: 15px;
}

.detail-tabs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 17px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-bottom: 1px solid #CCC;
}

.detail-tab-button {
    padding: 8px 15px;
    border: 1px solid #CCC;
    border-bottom: none;
    background-color: #F1F1F1;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    font-size: 0.9em;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.detail-tab-button:hover {
    background-color: #E0E0E0;
}

.detail-tab-button.active {
    background-color: #FFF;
    color: #007BFF;
    border-top: 3px solid #007BFF;
    position: relative;
    top: 1px;
}

.detail-tabs-content {
    padding: 0px 10px 10px;
    border: 1px solid #CCC;
    border-top: none;
    background-color: #FFF;
    margin-top: -19px;
}
