/* style.css */ /* Import Font Awesome webfonts secara eksplisit dari lokasi lokal */ /* Pastikan path ini sesuai dengan struktur folder Anda */ @font-face { font-family: 'Font Awesome 6 Free'; font-style: normal; font-weight: 900; font-display: swap; src: url('./node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2'); } @font-face { font-family: 'Font Awesome 6 Free'; font-style: normal; font-weight: 400; font-display: swap; src: url('./node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2') format('woff2'); } @font-face { font-family: 'Font Awesome 6 Brands'; font-style: normal; font-weight: 400; font-display: swap; src: url('./node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2') format('woff2'); } .fas, .far, .fab { font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands'; } .fa { font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands'; } /* Global Styles & Variables */ :root { --primary-color: #007bff; /* Blue */ --secondary-color: #6c757d; /* Gray */ --success-color: #28a745; /* Green */ --danger-color: #dc3545; /* Red */ --warning-color: #ffc107; /* Yellow */ --info-color: #17a2b8; /* Cyan */ --dark-blue: #2c3e50; /* Sidebar background */ --light-gray: #f8f9fa; /* Body background */ --medium-gray: #e9ecef; /* Border/separator */ --text-dark: #343a40; --text-light: #f8f9fa; --border-radius-sm: 4px; --border-radius-md: 8px; --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08); --box-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12); --transition-speed: 0.3s; /* New Sidebar Variables */ --sidebar-bg-start: #2c3e50; /* Dark Blue */ --sidebar-bg-end: #1a252f; /* Even darker blue */ --sidebar-item-hover: #34495e; --sidebar-active-bg: #0056b3; /* Darker primary for active */ --sidebar-active-border: var(--primary-color); --sidebar-text-color: #ecf0f1; --sidebar-submenu-bg: #3f5870; --sidebar-submenu-hover: #4a637d; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--light-gray); color: var(--text-dark); line-height: 1.6; } .container { display: flex; min-height: 100vh; /* Use min-height for better content handling */ } /* Sidebar */ .sidebar { width: 250px; background: linear-gradient(180deg, var(--sidebar-bg-start) 0%, var(--sidebar-bg-end) 100%); /* Gradient background */ color: var(--sidebar-text-color); padding: 20px 0; display: flex; flex-direction: column; box-shadow: var(--box-shadow-md); position: fixed; z-index: 100; overflow-y: auto; flex-shrink: 0; height: 100vh; transition: width var(--transition-speed) ease; /* Smooth width transition for responsive */ } .sidebar::-webkit-scrollbar { width: 8px; } .sidebar::-webkit-scrollbar-track { background: #34495e; } .sidebar::-webkit-scrollbar-thumb { background-color: #556c82; border-radius: 10px; border: 2px solid #34495e; } .sidebar::-webkit-scrollbar-thumb:hover { background-color: #6a849e; } .sidebar .logo { text-align: center; margin-bottom: 30px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; } .sidebar .logo img { max-width: 100px; /* Increased logo size */ height: auto; border-radius: 50%; /* Make it round */ box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); /* Glowing effect */ margin-bottom: 10px; transition: transform var(--transition-speed) ease; } .sidebar .logo img:hover { transform: scale(1.05); } .sidebar .logo h1 { font-size: 1.5em; color: white; margin: 0; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); } .nav-menu { flex-grow: 1; } .nav-menu ul { list-style: none; padding: 0; } .nav-menu ul li a { display: flex; align-items: center; padding: 14px 20px; color: var(--sidebar-text-color); text-decoration: none; transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-left var(--transition-speed) ease; position: relative; font-size: 1.05em; overflow: hidden; /* Hide overflowing text during collapse */ } .nav-menu ul li a .fas { margin-right: 15px; width: 20px; text-align: center; font-size: 1.2em; transition: margin-right var(--transition-speed) ease; } .nav-menu ul li a span { white-space: nowrap; /* Prevent text wrapping */ opacity: 1; transition: opacity var(--transition-speed) ease; } .nav-menu ul li a:hover { background-color: var(--sidebar-item-hover); color: var(--primary-color); } .nav-menu ul li a.active { background-color: var(--sidebar-active-bg); color: white; /* Active text color */ border-left: 5px solid var(--sidebar-active-border); padding-left: 15px; font-weight: 600; box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.2); /* Inner shadow for active state */ } .has-submenu > a .submenu-arrow { margin-left: auto; transition: transform var(--transition-speed) ease; font-size: 0.8em; color: #bdc3c7; } .submenu { list-style: none; padding-left: 30px; max-height: 0; overflow: hidden; transition: max-height var(--transition-speed) ease-out, background-color var(--transition-speed) ease; background-color: var(--sidebar-submenu-bg); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); } .submenu li a { padding: 10px 20px 10px 45px; font-size: 0.95em; color: #bdc3c7; border-left: none; } .submenu li a:hover { background-color: var(--sidebar-submenu-hover); color: #fff; } .has-submenu.open > .submenu { max-height: 1000px; /* Sufficiently large value */ overflow-y: auto; } .has-submenu.open > a .submenu-arrow { transform: rotate(180deg); } /* Main Content */ .main-content { flex-grow: 1; padding: 30px; overflow-y: auto; background-color: var(--light-gray); position: relative; z-index: 1; margin-left: 250px; transition: margin-left var(--transition-speed) ease; } .dashboard-header { margin-bottom: 30px; color: var(--text-dark); border-bottom: 1px solid var(--medium-gray); padding-bottom: 15px; } .dashboard-header h2 { font-size: 2.2em; font-weight: 700; color: var(--dark-blue); } /* Cards Section */ .cards-section { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; } .card { background-color: #ffffff; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow-sm); padding: 20px; display: flex; align-items: center; min-width: 180px; flex: 1; max-width: calc(20% - 16px); /* Adjusted for 5 cards per row */ text-align: center; flex-direction: column; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; position: relative; /* For pseudo-elements or overlays */ overflow: hidden; /* Ensures content stays within rounded corners */ } .card:hover { transform: translateY(-8px); box-shadow: var(--box-shadow-md); cursor: pointer; } .card .card-icon { font-size: 3.5em; margin-bottom: 10px; color: var(--primary-color); transition: color var(--transition-speed) ease; } .card-info { display: flex; flex-direction: column; align-items: center; } .card-value { font-size: 2.5em; font-weight: bold; color: var(--dark-blue); margin-bottom: 5px; } .card-label { font-size: 0.85em; color: #7f8c8d; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; } /* Card Specific Colors - Enhanced */ .card-total-formulir { background: linear-gradient(135deg, #007bff, #0056b3); color: white; } .card-total-formulir .card-icon, .card-total-formulir .card-value, .card-total-formulir .card-label { color: white; } .card-pending { background: linear-gradient(135deg, #ffc107, #e0a800); color: #212529; } .card-pending .card-icon, .card-pending .card-value, .card-pending .card-label { color: #212529; } .card-proses { background: linear-gradient(135deg, #6f42c1, #512b9a); color: white; } .card-proses .card-icon, .card-proses .card-value, .card-proses .card-label { color: white; } .card-selesai { background: linear-gradient(135deg, #28a745, #218838); color: white; } .card-selesai .card-icon, .card-selesai .card-value, .card-selesai .card-label { color: white; } .card-deadline { background: linear-gradient(135deg, #dc3545, #c82333); color: white; } .card-deadline .card-icon, .card-deadline .card-value, .card-deadline .card-label { color: white; } /* Formulir Table Section */ .formulir-table-section { background-color: #ffffff; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow-sm); padding: 25px; } .formulir-table-section h3 { color: var(--dark-blue); margin-bottom: 20px; font-size: 1.8em; border-bottom: 1px solid var(--medium-gray); padding-bottom: 15px; font-weight: 600; } .table-controls { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; align-items: flex-end; } .table-controls div { display: flex; flex-direction: column; } .table-controls label { font-size: 0.9em; color: #555; margin-bottom: 5px; font-weight: 500; } .table-controls input[type="text"], .table-controls select, .table-controls input[type="number"] { padding: 10px 12px; border: 1px solid #ced4da; border-radius: var(--border-radius-sm); font-size: 0.95em; min-width: 180px; transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease; } .table-controls input[type="text"]:focus, .table-controls select:focus, .table-controls input[type="number"]:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); outline: none; } .table-responsive { overflow-x: auto; margin-top: 15px; } .formulir-table { width: 100%; border-collapse: separate; /* Use separate for border-radius on cells */ border-spacing: 0; margin-top: 10px; table-layout: auto; border-radius: var(--border-radius-md); /* Apply to table */ overflow: hidden; /* Hide overflowing borders */ } .formulir-table thead th { background-color: var(--primary-color); color: white; font-weight: 600; text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.5px; } /* Rounded corners for table header */ .formulir-table thead th:first-child { border-top-left-radius: var(--border-radius-md); } .formulir-table thead th:last-child { border-top-right-radius: var(--border-radius-md); } .formulir-table tbody td { padding: 12px 18px; border-bottom: 1px solid var(--medium-gray); vertical-align: middle; color: var(--text-dark); font-size: 0.9em; word-wrap: break-word; overflow-wrap: break-word; } .formulir-table tbody tr:last-child td { border-bottom: none; } /* Rounded corners for table body last row */ .formulir-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--border-radius-md); } .formulir-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--border-radius-md); } .formulir-table tbody td:nth-child(2), /* TGL ORDER */ .formulir-table tbody td:nth-child(3) { /* TGL SELESAI */ font-size: 0.85em; white-space: nowrap; } .formulir-table tbody td:nth-child(4) { /* JENIS PEKERJAAN */ min-width: 180px; } .formulir-table tbody td:nth-child(5) { /* PARA PIHAK */ min-width: 200px; } .formulir-table tbody td:nth-child(6) { /* DATA */ width: 90px; text-align: center; } .formulir-table tbody td:nth-child(7) { /* STATUS */ width: 110px; text-align: center; } .formulir-table tbody td:nth-child(8) { /* KETERANGAN */ min-width: 180px; } .formulir-table tbody td:nth-child(9) { /* JENIS FORMULIR */ width: 130px; white-space: nowrap; } .formulir-table tbody td:nth-child(10) { /* AKSI */ width: 130px; text-align: center; } .formulir-table tbody tr:hover { background-color: #f1f3f5; } .table-actions { display: flex; gap: 8px; justify-content: center; } .table-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--medium-gray); } .pagination-info { font-size: 0.9em; color: var(--secondary-color); } .pagination-buttons button { background-color: var(--primary-color); color: white; padding: 9px 16px; border: none; border-radius: var(--border-radius-sm); cursor: pointer; font-size: 0.9em; margin-left: 8px; transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: var(--box-shadow-sm); } .pagination-buttons button:hover:not(:disabled) { background-color: #0056b3; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25); } .pagination-buttons button:disabled { background-color: #cccccc; cursor: not-allowed; box-shadow: none; } /* Form Card */ .form-card { background-color: #ffffff; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow-sm); padding: 30px; margin-bottom: 30px; } .form-card h4 { color: var(--dark-blue); margin-bottom: 25px; font-size: 1.6em; border-bottom: 1px solid var(--medium-gray); padding-bottom: 15px; font-weight: 600; } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-size: 1em; color: var(--text-dark); margin-bottom: 8px; font-weight: 500; } .form-group input[type="text"], .form-group input[type="date"], .form-group input[type="tel"], .form-group input[type="email"], .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ced4da; border-radius: var(--border-radius-sm); font-size: 1em; color: var(--text-dark); transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease; } .form-group input[type="text"]:focus, .form-group input[type="date"]:focus, .form-group input[type="tel"]:focus, .form-group input[type="email"]:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); outline: none; } .form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; } /* Buttons */ .btn { padding: 12px 22px; border: none; border-radius: var(--border-radius-sm); cursor: pointer; font-size: 1em; transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--box-shadow-sm); font-weight: 500; } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } .btn-primary { background-color: var(--primary-color); color: white; } .btn-primary:hover { background-color: #0056b3; } .btn-secondary { background-color: var(--secondary-color); color: white; } .btn-secondary:hover { background-color: #5a6268; } .btn-success { background-color: var(--success-color); color: white; } .btn-success:hover { background-color: #218838; } .btn-danger { background-color: var(--danger-color); color: white; } .btn-danger:hover { background-color: #c82333; } .btn-warning { background-color: var(--warning-color); color: #212529; } .btn-warning:hover { background-color: #e0a800; } .btn-info { background-color: var(--info-color); color: white; } .btn-info:hover { background-color: #138496; } .btn-sm { padding: 8px 15px; font-size: 0.85em; gap: 6px; } /* Form Sections */ .form-section-separator { /* border-top: 1px solid var(--medium-gray); padding-top: 25px; margin-top: 25px; */ } .form-section-separator h4 { color: var(--dark-blue); margin-bottom: 20px; font-size: 1.4em; font-weight: 600; } .data-entry-item { display: flex; flex-wrap: wrap; /* Allow wrapping for smaller screens */ align-items: center; gap: 12px; margin-bottom: 15px; background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: var(--border-radius-sm); padding: 10px 15px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); } .data-entry-item input[type="text"], .data-entry-item input[type="file"] { flex-grow: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: var(--border-radius-sm); font-size: 0.95em; } .data-entry-item input[type="file"] { padding: 8px 12px; } /* File Input Group Styling */ .file-input-group { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; /* Allow wrapping on smaller screens */ } .file-selector-button { background-color: #3498db; /* Blue */ color: white; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 0.9em; transition: background-color 0.2s ease; white-space: nowrap; /* Prevent text wrapping */ flex-shrink: 0; /* Don't shrink the button */ } .file-selector-button:hover { background-color: #2980b9; } .selected-file-name { flex-grow: 1; /* Allow text to take available space */ padding: 10px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; color: #555; font-size: 0.9em; overflow: hidden; /* Hide overflow text */ text-overflow: ellipsis; /* Add ellipsis for overflow */ white-space: nowrap; /* Keep text on single line */ } .file-path-input { display: none; /* Hidden input for storing file path */ } .total-data-uploaded { font-size: 0.9em; color: var(--secondary-color); margin-top: 10px; margin-bottom: 20px; } .form-group-checkbox { display: flex; align-items: center; margin-bottom: 12px; } .form-group-checkbox input[type="checkbox"] { margin-right: 12px; transform: scale(1.3); accent-color: var(--primary-color); /* Custom checkbox color */ } .form-group-checkbox label { margin-bottom: 0; font-weight: normal; cursor: pointer; } .form-group-inline { display: flex; align-items: center; gap: 12px; } .form-group-inline input[type="text"] { flex-grow: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: var(--border-radius-sm); font-size: 0.95em; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--medium-gray); padding-bottom: 15px; } .page-header h3 { font-size: 2.2em; font-weight: 700; color: var(--dark-blue); } @keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .close-button { color: #aaa; float: right; font-size: 28px; /* Larger close button */ font-weight: bold; position: absolute; right: 20px; top: 15px; transition: color var(--transition-speed) ease; } .close-button:hover, .close-button:focus { color: var(--danger-color); text-decoration: none; cursor: pointer; } #modal-file-list { margin-top: 20px; margin-bottom: 20px; border-top: 1px solid var(--medium-gray); padding-top: 15px; } .file-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e0e0e0; } .file-item:last-child { border-bottom: none; } .file-item span { flex-grow: 1; margin-right: 15px; color: var(--text-dark); font-size: 0.95em; } #dataDetailContent p { margin-bottom: 10px; font-size: 1em; color: #444; } #dataDetailContent p strong { color: var(--dark-blue); margin-right: 8px; } #modal-status-proses, #modal-additional-processes { list-style: none; /* Remove default list style */ padding-left: 0; margin-top: 15px; margin-bottom: 20px; border-top: 1px solid var(--medium-gray); padding-top: 15px; } #modal-status-proses li, #modal-additional-processes li { margin-bottom: 8px; color: #555; font-size: 0.95em; position: relative; padding-left: 25px; /* Space for custom bullet */ } #modal-status-proses li::before, #modal-additional-processes li::before { content: "\f058"; /* Font Awesome check-circle icon */ font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--success-color); position: absolute; left: 0; top: 0; font-size: 0.9em; } /* Deadline Reminder */ .deadline-reminder { background-color: #fff3cd; /* Light yellow */ border: 1px solid #ffeeba; padding: 12px 20px; margin-bottom: 25px; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow-sm); display: block; } .deadline-reminder marquee { font-weight: bold; color: #856404; /* Darker yellow text */ font-size: 1.1em; padding: 5px 0; } /* Status Buttons in Table */ .status-btn { padding: 6px 12px; border-radius: var(--border-radius-sm); font-size: 0.85em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: all var(--transition-speed) ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .status-pending { background-color: #ffc107; color: #212529; } .status-pending:hover { background-color: #e0a800; transform: translateY(-1px); } .status-proses { background-color: #6f42c1; color: white; } .status-proses:hover { background-color: #512b9a; transform: translateY(-1px); } .status-bpn { background-color: #007bff; color: white; } .status-bpn:hover { background-color: #0056b3; transform: translateY(-1px); } .status-selesai { background-color: #28a745; color: white; } .status-selesai:hover { background-color: #218838; transform: translateY(-1px); } /* Inline Editing */ .editable-cell { cursor: pointer; position: relative; } .editable-cell:hover { background-color: #f0f0f0; } .inline-edit-input { width: calc(100% - 4px); padding: 6px; border: 1px solid var(--primary-color); border-radius: var(--border-radius-sm); font-size: 0.9em; box-sizing: border-box; resize: vertical; min-height: 30px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } /* Additional Process Section in Modals/Forms */ .add-additional-process-section { display: flex; gap: 12px; margin-top: 20px; align-items: center; } .add-additional-process-section input[type="text"] { flex-grow: 1; padding: 10px 12px; border: 1px solid #ced4da; border-radius: var(--border-radius-sm); font-size: 0.95em; } .additional-process-item { display: flex; align-items: center; justify-content: space-between; background-color: #e6f7ff; /* Light blue background */ border: 1px solid #b3e0ff; padding: 10px 15px; border-radius: var(--border-radius-sm); margin-bottom: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); } .additional-process-item label { flex-grow: 1; margin-bottom: 0; font-weight: normal; color: var(--text-dark); } .additional-process-item input[type="checkbox"] { margin-right: 12px; } .additional-process-item .btn-danger { padding: 6px 10px; font-size: 0.8em; } /* Print Styles */ @media print { body { background-color: #fff; margin: 0; padding: 0; } .container, .sidebar, .dashboard-header, .cards-section, .table-controls, .table-pagination, .modal, .form-card, .table-actions button, .btn { display: none !important; } .main-content { width: 100%; padding: 20px; margin: 0; overflow: visible; } .formulir-table-section { box-shadow: none; border: none; padding: 0; } .formulir-table { width: 100%; border-collapse: collapse; /* Use collapse for print */ margin-top: 0; table-layout: fixed; border-radius: 0; /* No rounded corners for print */ overflow: visible; } .formulir-table thead th, .formulir-table tbody td { border: 1px solid #000; padding: 8px; font-size: 10px; word-wrap: break-word; overflow-wrap: break-word; border-radius: 0; /* No rounded corners for print */ } .formulir-table thead th { background-color: #e0e0e0; color: #000; } h2 { text-align: center; margin-bottom: 20px; color: #000; } .status-label { -webkit-print-color-adjust: exact; color-adjust: exact; print-color-adjust: exact; } } /* Responsive Adjustments */ @media (max-width: 1400px) { .card { max-width: calc(25% - 15px); /* 4 cards per row */ } } @media (max-width: 1366px) { .sidebar { width: 80px; padding: 15px 0; } .sidebar .logo { padding: 0 5px; margin-bottom: 20px; } .sidebar .logo img { max-width: 60px; } .sidebar .logo h1 { /* Hide title on small screens */ display: none; } .nav-menu ul li a { padding: 12px 5px; justify-content: center; font-size: 0.9em; } .nav-menu ul li a span { /* Hide text on small screens */ display: none; } .nav-menu ul li a .fas { margin-right: 0; font-size: 1.1em; } .has-submenu > a .submenu-arrow { display: none; } .submenu { padding-left: 0; text-align: center; } .submenu li a { padding: 8px 5px; font-size: 0.85em; } .nav-menu ul li a.active { padding-left: 5px; /* Adjust for no left border */ border-left: none; } .nav-menu ul li a.active::before { /* Add a small indicator */ content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 80%; background-color: var(--primary-color); border-radius: 0 4px 4px 0; } .main-content { padding: 20px; margin-left: 80px; } .table-controls { flex-direction: column; align-items: stretch; gap: 10px; } .table-controls div { width: 100%; } .table-controls input[type="text"], .table-controls select, .table-controls input[type="number"] { width: 100%; min-width: unset; } .formulir-table thead th, .formulir-table tbody td { padding: 10px 12px; font-size: 0.8em; } .formulir-table tbody td:nth-child(2), .formulir-table tbody td:nth-child(3) { font-size: 0.75em; } .formulir-table tbody td:nth-child(4), /* JENIS PEKERJAAN */ .formulir-table tbody td:nth-child(5), /* PARA PIHAK */ .formulir-table tbody td:nth-child(8) { /* KETERANGAN */ min-width: 120px; } .formulir-table tbody td:nth-child(6), /* DATA */ .formulir-table tbody td:nth-child(7), /* STATUS */ .formulir-table tbody td:nth-child(9), /* JENIS FORMULIR */ .formulir-table tbody td:nth-child(10) { /* AKSI */ width: auto; /* Allow content to dictate width */ min-width: 80px; } /* .data-entry-item, .form-group-inline, .add-additional-process-section { flex-direction: column; align-items: stretch; gap: 10px; } .data-entry-item input, .form-group-inline input, .form-group-inline button, .add-additional-process-section input, .add-additional-process-section button { width: 100%; margin-left: 0 !important; } */ /* .btn-sm { width: 100%; } */ .modal-content { padding: 20px; width: 95%; } .modal-content h4 { font-size: 1.4em; } .close-button { font-size: 24px; right: 10px; top: 10px; } } @media (max-width: 1024px) { .card { max-width: calc(33.33% - 13.33px); /* 3 cards per row */ } .formulir-table tbody td:nth-child(4), /* JENIS PEKERJAAN */ .formulir-table tbody td:nth-child(5), /* PARA PIHAK */ .formulir-table tbody td:nth-child(8) { /* KETERANGAN */ min-width: 150px; } } @media (max-width: 768px) { .sidebar { width: 80px; padding: 15px 0; } .sidebar .logo { padding: 0 5px; margin-bottom: 20px; } .sidebar .logo img { max-width: 60px; } .sidebar .logo h1 { /* Hide title on small screens */ display: none; } .nav-menu ul li a { padding: 12px 5px; justify-content: center; font-size: 0.9em; } .nav-menu ul li a span { /* Hide text on small screens */ display: none; } .nav-menu ul li a .fas { margin-right: 0; font-size: 1.1em; } .has-submenu > a .submenu-arrow { display: none; } .submenu { padding-left: 0; text-align: center; } .submenu li a { padding: 8px 5px; font-size: 0.85em; } .nav-menu ul li a.active { padding-left: 5px; /* Adjust for no left border */ border-left: none; } .nav-menu ul li a.active::before { /* Add a small indicator */ content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 80%; background-color: var(--primary-color); border-radius: 0 4px 4px 0; } .main-content { padding: 20px; } .cards-section { flex-direction: column; align-items: center; gap: 15px; } .card { max-width: 100%; width: 100%; padding: 15px; } .card .card-icon { font-size: 3em; } .card-value { font-size: 2em; } .card-label { font-size: 0.8em; } .table-controls { flex-direction: column; align-items: stretch; gap: 10px; } .table-controls div { width: 100%; } .table-controls input[type="text"], .table-controls select, .table-controls input[type="number"] { width: 100%; min-width: unset; } .formulir-table thead th, .formulir-table tbody td { padding: 10px 12px; font-size: 0.8em; } .formulir-table tbody td:nth-child(2), .formulir-table tbody td:nth-child(3) { font-size: 0.75em; } .formulir-table tbody td:nth-child(4), /* JENIS PEKERJAAN */ .formulir-table tbody td:nth-child(5), /* PARA PIHAK */ .formulir-table tbody td:nth-child(8) { /* KETERANGAN */ min-width: 120px; } .formulir-table tbody td:nth-child(6), /* DATA */ .formulir-table tbody td:nth-child(7), /* STATUS */ .formulir-table tbody td:nth-child(9), /* JENIS FORMULIR */ .formulir-table tbody td:nth-child(10) { /* AKSI */ width: auto; /* Allow content to dictate width */ min-width: 80px; } .data-entry-item, .form-group-inline, .add-additional-process-section { flex-direction: column; align-items: stretch; gap: 10px; } .data-entry-item input, .form-group-inline input, .form-group-inline button, .add-additional-process-section input, .add-additional-process-section button { width: 100%; margin-left: 0 !important; } .btn-sm { width: 100%; } .modal-content { padding: 20px; width: 95%; } .modal-content h4 { font-size: 1.4em; } .close-button { font-size: 24px; right: 10px; top: 10px; } } @media (max-width: 480px) { .sidebar { width: 60px; } .sidebar .logo img { max-width: 40px; } .nav-menu ul li a { padding: 10px 0; } .nav-menu ul li a .fas { font-size: 1em; } .nav-menu ul li a.active::before { width: 3px; } .main-content { padding: 15px; } .dashboard-header h2, .page-header h3 { font-size: 1.8em; } .formulir-table-section h3 { font-size: 1.5em; } .pagination-buttons button { padding: 7px 12px; font-size: 0.8em; } .pagination-info { font-size: 0.8em; } .btn { padding: 10px 18px; font-size: 0.9em; } .form-actions { flex-direction: column; gap: 10px; } .form-actions .btn { width: 100%; } } /* Styling untuk Modal */ .modal { display: none; /* Sembunyikan modal secara default */ position: fixed; /* Tetap di tempat */ z-index: 1000; /* Di atas elemen lain */ left: 0; top: 0; width: 100%; /* Lebar penuh */ height: 100%; /* Tinggi penuh */ overflow: auto; /* Aktifkan scroll jika konten terlalu besar */ background-color: rgba(0,0,0,0.4); /* Warna latar belakang gelap */ padding-top: 50px; /* Jarak dari atas */ } .modal-content { background-color: #fefefe; margin: 5% auto; /* 5% dari atas dan tengah secara horizontal */ padding: 20px; border: 1px solid #888; width: 90%; /* Lebar responsif */ max-width: 800px; /* Batasi lebar maksimum */ border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); position: relative; display: flex; flex-direction: column; gap: 15px; } .modal-content h4 { color: #333; margin-bottom: 15px; font-size: 1.5em; border-bottom: 1px solid #eee; padding-bottom: 10px; } .modal-content p { margin-bottom: 5px; } .modal-content strong { color: #555; } .close-button { color: #aaa; position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; cursor: pointer; } .close-button:hover, .close-button:focus { color: #000; text-decoration: none; cursor: pointer; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; } /* Styling untuk item data file di dalam modal */ .data-entry-item { display: flex; flex-wrap: wrap; /* Izinkan wrap pada layar kecil */ align-items: center; gap: 10px; /* Jarak antar elemen */ margin-bottom: 10px; padding: 8px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; } .data-entry-item .nama-data-input { flex-grow: 1; /* Memungkinkan input untuk tumbuh */ max-width: 200px; /* Batasi lebar maksimum input teks */ padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; } .data-entry-item .file-selector-button-modal, .data-entry-item .selected-file-name-modal { padding: 8px 12px; border: 1px solid #007bff; border-radius: 4px; background-color: #007bff; color: white; cursor: pointer; font-size: 0.9em; white-space: nowrap; /* Pastikan teks tidak pecah */ } .data-entry-item .selected-file-name-modal { background-color: #e9ecef; color: #495057; border: 1px solid #ced4da; cursor: default; overflow: hidden; text-overflow: ellipsis; /* Tambahkan elipsis jika teks terlalu panjang */ max-width: 150px; /* Batasi lebar untuk nama file */ } .data-entry-item .download-file-btn-modal, .data-entry-item .remove-data-entry-modal { padding: 8px 12px; border-radius: 4px; font-size: 0.9em; cursor: pointer; white-space: nowrap; } .data-entry-item .download-file-btn-modal { background-color: #17a2b8; color: white; border: 1px solid #17a2b8; } .data-entry-item .remove-data-entry-modal { background-color: #dc3545; color: white; border: 1px solid #dc3545; } /* Responsiveness untuk layar yang lebih kecil */ @media (max-width: 768px) { .modal-content { width: 95%; margin: 20px auto; } .data-entry-item { flex-direction: column; /* Tumpuk elemen secara vertikal */ align-items: stretch; /* Regangkan elemen agar memenuhi lebar */ } .data-entry-item .nama-data-input, .data-entry-item .file-selector-button-modal, .data-entry-item .selected-file-name-modal, .data-entry-item .download-file-btn-modal, .data-entry-item .remove-data-entry-modal { width: 100%; /* Ambil lebar penuh */ max-width: none; /* Hapus batasan max-width */ text-align: center; } } @media (max-width: 1366px) { /* Aturan untuk sidebar saat dihover */ .sidebar:hover { width: 250px; /* Lebar normal */ padding: 20px 0; } .sidebar:hover .logo { padding: 0 20px; flex-direction: column; align-items: center; margin-bottom: 30px; } .sidebar:hover .logo img { max-width: 100px; } .sidebar:hover .logo h1 { display: block; /* Tampilkan judul */ } .sidebar:hover .nav-menu ul li a { padding: 14px 20px; justify-content: flex-start; } .sidebar:hover .nav-menu ul li a .fas { margin-right: 15px; font-size: 1.2em; } .sidebar:hover .nav-menu ul li a span { display: inline; /* Tampilkan teks menu */ opacity: 1; } .sidebar:hover .has-submenu > a .submenu-arrow { display: inline-block; /* Tampilkan panah submenu */ } .sidebar:hover .submenu { padding-left: 30px; text-align: left; } .sidebar:hover .submenu li a { padding: 10px 20px 10px 45px; justify-content: flex-start; } .sidebar:hover .nav-menu ul li a.active { padding-left: 15px; border-left: 5px solid var(--sidebar-active-border); } .sidebar:hover .nav-menu ul li a.active::before { display: none; /* Sembunyikan indikator garis */ } }