
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    overflow: hidden;
}

.page-header {
    margin-bottom: 18px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 700;
    color: #1a1a1a;
}

.page-subtitle {
    color: #7a8597;
    font-size: 14px;
    margin-top: 4px;
}

.obat-table {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border-collapse: collapse;
}

.obat-table thead {
    background: #f4f7f8;
}

.obat-table th {
    padding: 14px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    background: #39c5b4;
    border: 2px solid #39c5b4;
}

.obat-table td {
    text-align: center;
    vertical-align: middle;
}

.obat-table td:last-child,
.obat-table th:last-child {
    text-align: center;
    width: 90px;
}

.btn-add-row {
    margin: auto;
}

.obat-table td {
    padding: 12px 8px;
    font-size: 13px;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.obat-table tbody tr:hover {
    background: #f9fafb;
}

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

.search-card {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.search-box {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1.5px solid #8bc7c0;
    border-radius: 10px;
    padding: 12px 15px;
    gap: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: #42b7aa;
    box-shadow: 0 0 0 3px rgba(66, 183, 170, 0.12);
}

.search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #475569;
    font-family: 'Poppins', sans-serif;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-icon {
    width: 16px;
    opacity: 0.55;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #475569;
}

.table-header-action {
    display: flex;
    justify-content: flex-end;
}

.table-head {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-add-row {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-row:hover {
    background: #e8f5e9;
}

.btn-add-row img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.list-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-label {
    color: #9fb0c2;
    font-size: 18px;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

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

.page-nav,
.page-number {
    width: 30px;
    height: 30px;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.page-number.active {
    background: #0d8d85;
    color: #fff;
    border-color: #0d8d85;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 37, 45, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    width: min(470px, calc(100vw - 28px));
    background: #eeeeef;
    border-radius: 18px;
    padding: 28px 36px 30px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    border: none;
    background: transparent;
    font-size: 44px;
    line-height: 1;
    color: #868c93;
    cursor: pointer;
    font-weight: 400;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.2;
    color: #1b1f24;
    margin-bottom: 20px;
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.modal-field input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #89cec4;
    border-radius: 8px;
    background: #dfe1e4;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    color: #334155;
}

.modal-field input:focus {
    border-color: #56b9aa;
    background: #f3f4f6;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
}

.btn-cancel,
.btn-save {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-cancel {
    background: #ff0d0d;
}

.btn-save {
    background: #0c5d69;
}

.btn-cancel:hover {
    background: #e10b0b;
}

.btn-save:hover {
    background: #0b4f58;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 37, 45, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-overlay.show {
    display: flex;
}

.confirm-card {
    width: min(500px, calc(100vw - 30px));
    background: #ffffff;
    border-radius: 18px;
    padding: 44px 56px 46px;
    position: relative;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.confirm-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #8f97a1;
    cursor: pointer;
    font-weight: 600;
}

.confirm-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    margin: 0 auto 16px;
    border: 5px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon-inner {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
}

.confirm-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 800;
}

.confirm-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.confirm-warn {
    color: #ff0000;
    font-weight: 800;
}

.confirm-actions {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.btn-confirm-cancel,
.btn-confirm-danger {
    height: 50px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-confirm-cancel {
    background: #9e9e9e;
    color: #ffffff;
}

.btn-confirm-cancel:hover {
    background: #8a8a8a;
}

.btn-confirm-danger {
    background: #ff0000;
    color: #ffffff;
}

.btn-confirm-danger:hover {
    background: #e60000;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:12px;

    text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.admin-profile:hover{
    opacity:0.85;
}