:root {
    --primary: #27c6a3;
    --primary-hover: #20a78d;
    --secondary: #33b5e5;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --transition: 0.3s;
}

* {
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f9fafb;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

body.auth-page {
    align-items: center;
    background: linear-gradient(to right, #27c6a3, #33b5e5);
    display: flex;
    height: 100vh;
    justify-content: center;
}

body.auth-page .content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    max-width: 420px;
    width: 100%;
}

body.main-layout {
    display: flex;
    flex-direction: row;
}

button.batal {
    background-color: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 16px;
    transition: background-color var(--transition);
}

button.batal:hover {
    background-color: #e5e7eb;
}

button.hapus-row {
    align-items: center;
    background-color: #e11d48;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    justify-content: center;
    line-height: 1;
    padding: 8px 12px;
    transition: background-color var(--transition);
}

button.hapus-row:hover {
    background-color: #be123c;
}

button.simpan {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 16px;
    transition: background-color var(--transition);
}

button.simpan:hover {
    background-color: var(--primary-hover);
}

h1 {
    margin-bottom: 24px;
    font-size: 24px;
}

input[type="number"],
input[type="text"],
input[type="password"] {
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    margin: 8px 0 16px;
    padding: 12px 14px;
    width: 100%;
}

input.error {
    border-color: #e11d48;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}

input.satuan[readonly] {
    background: transparent;
    border: none;
    color: #374151;
    font-weight: 500;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

input.success {
    border-color: #27c6a3;
    box-shadow: 0 0 0 2px rgba(39, 198, 163, 0.2);
}

input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 198, 163, 0.2);
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

span.satuan {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    padding: 10px 14px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 6px;
    padding: 4px;
}

.action-btn.delete i {
    color: #e11d48;
}

.action-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.action-btn.edit i {
    color: var(--primary);
}

.action-btn i {
    height: 20px;
    width: 20px;
}

.add-btn {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px 16px;
    transition: background 0.2s ease;
}

.add-btn:hover {
    background-color: var(--primary-hover);
}

#addMoreItem {
    align-self: flex-start;
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 8px 12px;
}

.add-request-btn {
    background-color: var(--primary);
    border-radius: 12px;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.add-request-btn:hover {
    background-color: var(--primary-hover);
}

.add-request-btn.secondary {
    background-color: var(--primary-hover);
}

.add-row-btn {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 18px;
    transition: background-color 0.2s ease;
}

.add-row-btn:hover {
    background-color: var(--primary-hover);
}

.alert-box {
    background-color: #e0f7f4;
    border-left: 6px solid var(--primary);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
}

.alert-box-danger {
    background-color: #f5ddda;
    border-left: 6px var(--primary);
    border-radius: 6px;
    font-size: 14px;
    color: #6b2828;
    margin-bottom: 20px;
    padding: 5px 15px;
}

.alert-box-success {
    background-color: #e0f7f4;
    border-left: 6px var(--primary);
    border-radius: 6px;
    font-size: 14px;
    color: #2c5953;
    margin-bottom: 20px;
    padding: 5px 15px;
}

.auth-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    padding: 40px 30px;
    width: 100%;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-container h2 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.auth-container input[type="text"],
.auth-container input[type="password"] {
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 16px;
    transition: 0.3s;
    width: 100%;
}

.auth-container input:focus {
    border-color: #27c6a3;
    box-shadow: 0 0 0 3px rgba(39, 198, 163, 0.2);
    outline: none;
}

.auth-container .logo {
    color: #27c6a3;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.autocomplete {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 14px;
    transition: border 0.2s ease;
    width: 100%;
}

.autocomplete:focus {
    border-color: var(--primary);
    outline: none;
}

.autocomplete-suggestions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    left: 0;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
}

.autocomplete-suggestions div {
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 16px;
    transition: background 0.2s;
}

.autocomplete-suggestions div:hover {
    background-color: #f3f4f6;
    color: var(--primary);
}

.badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    text-transform: capitalize;
}

.badge.done {
    background-color: #e6f9f6;
    color: #0e9f6e;
}

.badge.pending {
    background-color: #fff7e6;
    color: #b58104;
}

.badge.status-atasan {
    background-color: #fff7e6;
    color: #b58104;
}

.badge.status-pejabat {
    background-color: #eef6ff;
    color: #2563eb;
}

.badge.status-pengelola {
    background-color: #fde6f9;
    color: #c026d3;
}

.badge.status-verifikasi {
    background-color: #dad2d8;
    color: #9f0e5b;
}

.badge.status-selesai {
    background-color: #e6f9f6;
    color: #0e9f6e;
}

.badge.status-ditolak {
    background-color: #f8d8d8;
    color: #ff0000;
}

.cancel-btn {
    background-color: #e5e7eb;
    border-radius: 6px;
    color: #333;
    display: block;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cancel-btn:hover {
    background-color: #d1d5db;
}

.lihat-btn {
    background-color: var(--primary);
    border-radius: 6px;
    color: white;
    display: block;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.lihat-btn:hover {
    background-color: var(--primary-hover);
}

.tolak-btn {
    background-color: #ffc19e;
    border-radius: 6px;
    color: #9e1616;
    display: block;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tolak-btn:hover {
    background-color: #ffad7d;
}

.card {
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 5px #ccc;
    display: flex;
    flex-direction: column;
    padding: 12px;
    text-align: center;
}

.card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.card img {
    background: #f5f5f5;
    border-radius: 8px;
    height: 120px;
    margin-bottom: 8px;
    object-fit: contain;
    width: 100%;
}

.change-password-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 60px auto;
    padding: 24px;
}

.change-password-container button {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 24px;
    padding: 10px 16px;
    width: 100%;
}

.change-password-container button:hover {
    background-color: var(--primary-hover);
}

.change-password-container h2 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 16px;
}

.change-password-container input {
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 6px;
    padding: 10px 14px;
    width: 100%;
}

.change-password-container label {
    color: #374151;
    display: block;
    font-weight: 600;
    margin-top: 16px;
}

.choose-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.choose-controls .count {
    font-weight: bold;
    font-size: 14px;
    min-width: 24px;
    text-align: center;
}

.choose-controls .count-display {
    width: 48px;
    height: 36px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    background-color: #fff;
    box-sizing: border-box;
    padding: 0;
    line-height: 36px;
    outline: none;
}

.choose-controls .count-input {
    width: 48px;
    height: 36px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    background-color: #fff;
    outline: none;
    box-sizing: border-box;
    padding-top: 4px;
    padding-bottom: 2px;
    line-height: 1;
    vertical-align: middle;
}

.choose-controls .count-input:focus,
.choose-controls .count-input:hover {
    border-color: var(--primary-hover);
}

.choose-controls .count-input::-webkit-inner-spin-button,
.choose-controls .count-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.choose-controls .selected-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.choose-controls button {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.choose-controls button:hover {
    background-color: var(--primary-hover);
}

.choose-controls button.disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.container {
    display: flex;
    flex: 1;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 2rem;
}

.dashboard-chart {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    height: 400px;
    padding: 20px;
    width: 100%;
}

.dashboard-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dashboard-filters .button-group {
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 0;
}

.dashboard-filters .button-group .filter-actions {
    height: 42px;
    display: flex;
    align-items: center;
}

.dashboard-filters .button-group .filter-btn {
    padding: 0 16px;
    height: 42px;
}

.dashboard-filters .form-group {
    flex: 1;
    min-width: 200px;
}

.dashboard-filters input[type="date"] {
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    padding: 6px 10px;
}

.dashboard-filters input[type="date"],
.dashboard-filters select,
.dashboard-filters .filter-btn {
    height: 42px;
    font-size: 14px;
    box-sizing: border-box;
    padding: 10px 12px;
}

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5px;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #22c55e;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.export-btn:hover {
    background-color: #16a34a;
}

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

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

.filter-btn {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 16px;
    transition: background 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--primary-hover);
}

.filter-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-search-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.form-actions button {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
}

.form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 960px;
    padding: 32px;
}

.form-container h2 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group.button-group {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
}

.form-group.full-width {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.form-group label {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.form-group select {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.form-group select:focus {
    border-color: #27c6a3;
    outline: none;
}

.form-group.tom-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group.tom-select-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group.tom-select-group .ts-wrapper {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 8px;
    padding: 6px 8px;
    box-sizing: border-box;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.form-group.tom-select-group .ts-wrapper.focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 198, 163, 0.2);
}

.form-group.tom-select-group .ts-wrapper .item {
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    margin-right: 6px;
}

.form-message {
    color: #e11d48;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.full-width {
    flex: 1 1 100%;
}

.header-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper textarea {
    resize: vertical;
}

.input-wrapper input[type="text"]:focus,
.input-wrapper input[type="file"]:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 198, 163, 0.2);
}

.input-wrapper select,
.input-wrapper textarea,
.input-wrapper input[type="file"],
.input-wrapper input[type="text"] {
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    line-height: 1.5;
    transition: border 0.2s ease;
    appearance: none;
}

.logo-text {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 20px;
}

.menu-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.menu-grid-barang {
    display: grid;
    gap: 100px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.modal {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 100;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.modal-actions button {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    padding: 8px 14px;
}

.modal-actions button[type="submit"] {
    background-color: var(--primary);
    color: white;
}

.modal-actions button[type="button"] {
    background-color: #e5e7eb;
    color: #333;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    padding: 24px;
    position: relative;
    width: 100%;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-content h2 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 16px;
}

.order-item {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.order-item img {
    border-radius: 5px;
    height: 40px;
    object-fit: contain;
    width: 40px;
}

.order-list {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.order-list td {
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    padding: 20px 16px;
}

.order-list td[colspan="5"] {
    color: #888;
    font-style: italic;
}

.order-list th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    padding: 16px;
    text-align: left;
}

.order-list tr:hover {
    background: #f9f9f9;
}

.order-summary {
    background: white;
    border-left: 1px solid #ddd;
    overflow-y: auto;
    padding: 20px;
    width: 280px;
}

.order-summary h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.order-table {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    padding: 20px;
}

.barang-table {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    padding: 100px;
}

.page-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
}

.page-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 16px;
    padding: 10px 0;
}

.password-field {
    position: relative;
}

.password-field input {
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 40px 12px 16px;
    transition: 0.3s;
    width: 100%;
}

.process-btn {
    background-color: var(--secondary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease;
    width: 100%;
}

.process-btn:hover {
    background-color: #2aa8d7;
}

.remove-item {
    background-color: #e11d48;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
}

.remove-item:hover {
    background-color: #be123c;
}

.report-filter-form .filter-btn {
    height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.report-filter-form input[type="date"],
.report-filter-form select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

#reportResult {
    display: none;
    margin-top: 32px;
}

#searchInput {
    background: white;
    border: 1px solid #ccc;
    border-radius: 999px;
    font-size: 14px;
    padding: 8px 14px;
    transition: border 0.2s ease;
    width: 240px;
}

#searchInput:focus {
    border-color: var(--primary);
    outline: none;
}

.sidebar {
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px 16px;
    transition: width var(--transition);
    width: var(--sidebar-width);
}

.sidebar-bottom {
    border-top: 1px solid #ddd;
    margin-top: auto;
    padding: 12px;
}

.sidebar-item {
    align-items: center;
    border-radius: 8px;
    color: #374151;
    display: flex;
    font-weight: 500;
    height: 48px;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background-color: #f3f4f6;
}

.sidebar-item.active {
    background-color: #f0fdfb;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.sidebar-item.dropdown-toggle {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.sidebar-item i {
    align-items: center;
    display: flex;
    font-size: 1.2rem;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 24px;
}

.sidebar-item i svg {
    flex-shrink: 0;
    height: 24px !important;
    width: 24px !important;
}

.sidebar-logo {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-submenu {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: -6px;
    padding: 6px 0 0 40px;
}

.sidebar-submenu .sidebar-item {
    background-color: transparent;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 12px;
    transition: background 0.2s;
}

.sidebar-submenu .sidebar-item:hover {
    background-color: #f3f4f6;
}

.sidebar-submenu .sidebar-item.active {
    background-color: #f0fdfb;
    color: var(--primary);
}

.sidebar-user {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar-user .user-dropdown-icon {
    margin-left: auto;
}

.sidebar-user .user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user img {
    border-radius: 50%;
    flex-shrink: 0;
    height: 40px;
    width: 40px;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-item {
    justify-content: center;
}

.sidebar.collapsed .sidebar-item.active {
    background: transparent;
    border: none;
    color: var(--primary);
}

.sidebar.collapsed .sidebar-item i {
    font-size: 1.2rem;
    height: 48px;
    width: 48px;
}

.sidebar.collapsed .sidebar-item i svg {
    height: 28px !important;
    stroke-width: 1.5;
    width: 28px !important;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar.collapsed .sidebar-user {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    text-align: center;
}

.sidebar.collapsed .sidebar-user img {
    border-radius: 50%;
    height: 48px;
    margin-bottom: 6px;
    object-fit: cover;
    width: 48px;
}

.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .user-menu {
    bottom: 70px;
    left: 60px;
    position: absolute;
    width: 160px;
    z-index: 999;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-item.active::before,
.sidebar.collapsed .sidebar-item .nav-label,
.sidebar.collapsed .sidebar-user .user-dropdown-icon,
.sidebar.collapsed .sidebar-user .user-info {
    display: none;
}

.sign-in {
    background: #27c6a3;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 12px;
    transition: background 0.3s;
}

.sign-in:hover {
    background: #20a78d;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.slider.round {
    border-radius: 24px;
}

.stat-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    flex: 1 1 200px;
    padding: 16px;
    text-align: center;
}

.stat-box h4 {
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
}

.stat-box p {
    color: var(--primary);
    font-size: 22px;
    font-weight: bold;
}

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

.stok-item input[type="number"],
.stok-item input[type="text"] {
    border: 1px solid #ccc;
    border-radius: 8px;
    flex: 1;
    font-size: 14px;
    padding: 10px 12px;
}

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

#stokTable input[type="number"],
#stokTable input[type="text"] {
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
}

#stokTable .input-wrapper span.satuan_barang {
    display: block;
    width: 100%;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #374151;
    min-height: 42px;
    box-sizing: border-box;
}

#stokTable td input[type="number"],
#stokTable td input[type="text"] {
    border: 1px solid #d1d5db !important;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    margin: 0;
}

#stokTable td:last-child {
    text-align: center;
}

#stokTable td span.satuan {
    font-size: 14px;
    color: #374151;
}

#stokTable th {
    background-color: #f9fafb;
    color: #374151;
}

#stokTable td,
#stokTable th {
    border: 1px solid #e5e7eb;
    font-size: 14px;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tab {
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tabs {
    display: flex;
    gap: 10px;
}

#togglePassword {
    position: absolute;
    top: 45%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
}

.ts-control {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 0;
    min-height: 32px;
}

.ts-control::-webkit-scrollbar {
    height: 6px;
}

.ts-control::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.ts-control input {
    all: unset;
    width: 1px;
    min-width: 1px;
    border: none;
    padding: 0;
    margin: 0;
}

.ts-control .item {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 13px;
    background-color: var(--primary);
    border-radius: 6px;
    color: white;
    line-height: 1.3;
}

.ts-dropdown {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    padding: 8px;
    font-size: 14px;
    background: white;
}

.ts-wrapper.multi {
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ts-wrapper.multi.focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 198, 163, 0.2);
}

.ts-wrapper .item {
    background-color: var(--primary);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
}

.ts-wrapper .item .remove {
    color: white;
    margin-left: 6px;
}

.user-dropdown-icon {
    color: #6b7280;
    height: 20px;
    margin-left: auto;
    width: 20px;
}

.user-info {
    flex: 1;
}

.user-menu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    padding: 8px 0;
}

.user-menu-item {
    color: #374151;
    font-size: 14px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background-color: #f3f4f6;
}

.dropdown-menu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    margin-top: -10px;
    padding: 8px 0;
}

.dropdown-menu-item {
    color: #374151;
    font-size: 14px;
    padding: 12px 14px;
    text-decoration: none;
    transition: background 0.2s;
    gap: 12px;
}

.dropdown-menu-item:hover {
    /* background-color: #f3f4f6; */
    background-color: #f0fdfb;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
}

/* .dropdown-menu-item i {
    align-items: center; */
/* display: flex; */
/* font-size: 1.2rem; */
/* height: 24px; */
/* justify-content: center; */
/* line-height: 1; */
/* width: 24px; */
/* } */

/* .dropdown-menu-item i svg {
    flex-shrink: 0;
    height: 24px !important;
    width: 24px !important; */
/* } */

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

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

.form-message.error {
    animation: shake 0.3s;
}

.error-message {
    margin-top: 0px;
    color: rgb(247, 85, 85);
    font-size: 0.8em;
    padding-left: 5px;
}

/* css laporan permintaan */
body.laporan-permintaan {
    font-family: Arial, sans-serif; /* Pilih font yang umum */
    margin: 0;
    padding: 0;
}

.kop-surat {
    text-align: center; /* Pusatkan semua teks */
    margin-bottom: 20px; /* Jarak bawah kop surat */
    border-bottom: 2px solid black; /* Garis bawah kop surat */
}

.kop-surat .container {
    display: flex; /* Untuk menata logo dan info surat bersebelahan */
    align-items: center; /* Ratakan logo dan teks secara vertikal */
    padding: 10px 20px; /* Atur padding */
}

.kop-surat .logo {
    flex: 1; /* Logo mengambil ruang yang sesuai */
    margin-right: 20px; /* Jarak dari logo ke teks */
}

.kop-surat .logo img {
    max-width: 150px; /* Sesuaikan ukuran logo */
    height: auto; /* Pastikan rasio aspek terjaga */
}

.kop-surat .info-surat {
    flex: 3; /* Informasi surat mengambil lebih banyak ruang */
}

.kop-surat h1 {
    margin: 0; /* Hapus margin bawaan */
    font-size: 2em; /* Sesuaikan ukuran font judul */
    color: #333; /* Warna teks judul */
}

.kop-surat p {
    font-size: 0.9em; /* Sesuaikan ukuran font teks */
    color: #555; /* Warna teks */
}

.garis-pembatas {
    height: 2px; /* Ketebalan garis */
    background-color: black; /* Warna garis */
    width: 100%;
}

/* dashboard pabarsedia baru */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Header task */
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
}

.task-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.task-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 15px;
    color: #111827;
}

.task-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.task-icon.req {
    background: #3b82f6;
}

.task-icon.stock {
    background: #f59e0b;
}

.task-icon.expired {
    background: #ef4444;
}

.task-count {
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* Detail task */
.task-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 18px;
}

.task-item.open .task-detail {
    max-height: 500px;
    padding-bottom: 12px;
}

.task-detail li {
    list-style: disc;
    margin: 6px 0 6px 20px;
    font-size: 14px;
    color: #374151;
}

.task-detail-new {
    /* max-height: 0; */
    /* transition: max-height 0.35s ease; */
    padding: 0 18px;
    margin: 6px 0 6px 20px;
    font-size: 14px;
    color: #374151;
}
.task-detail-new li {
    list-style: disc;
    margin: 6px 0 6px 20px;
    font-size: 14px;
    color: #374151;
}

.task-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.task-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.today-tasks {
    margin-bottom: 0px;
}

.no-task {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    text-align: left;
    padding-left: 2px;
}

.form_tambah {
    display: flex; /* Menempatkan kolom-kiri dan kolom-kanan berdampingan */
    gap: 20px; /* Memberi jarak antar kolom */
}

.kolom-kiri,
.kolom-kanan {
    width: 50%; /* Membuat setiap kolom mengambil setengah lebar dari container */
}

/* Gaya tambahan untuk label dan input agar lebih rapi */
label {
    display: block; /* Agar label berada di baris baru */
    margin-bottom: 5px;
}

input {
    width: 100%; /* Agar input mengisi lebar kolom */
    padding: 8px;
    box-sizing: border-box; /* Memastikan padding tidak menambah lebar total */
    margin-bottom: 15px;
}
