WIP compliance

This commit is contained in:
2026-03-28 14:41:15 -04:00
parent 1c9fbbda6c
commit 0521b8dfd6
7 changed files with 1931 additions and 76 deletions
+129 -10
View File
@@ -136,9 +136,9 @@ body {
header {
background: var(--primary-color);
color: var(--white);
padding: 40px 20px;
padding: 12px 20px;
border-radius: 8px;
margin-bottom: 30px;
margin-bottom: 22px;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
@@ -152,7 +152,8 @@ header {
.header-top h1 {
flex: 1;
font-size: 2.5em;
font-size: 3em;
line-height: 1;
}
.user-menu {
@@ -214,8 +215,8 @@ header {
}
header h1 {
font-size: 2.5em;
margin-bottom: 10px;
font-size: 3em;
margin-bottom: 0;
}
}
@@ -368,16 +369,34 @@ textarea:focus {
margin-bottom: 15px;
}
.inventory-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: nowrap;
}
.header-actions {
margin-bottom: 15px;
display: flex;
gap: 10px;
width: fit-content;
flex-shrink: 0;
}
.toolbar-search {
flex: 1;
min-width: 260px;
max-width: 520px;
}
.filters {
display: flex;
gap: 10px;
align-items: center;
margin-left: auto;
flex-wrap: nowrap;
flex-shrink: 0;
}
.filter-btn {
@@ -388,6 +407,17 @@ textarea:focus {
cursor: pointer;
transition: all 0.2s;
color: var(--text-dark);
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
min-height: 38px;
}
#showLowStockBtn {
padding-left: 14px;
padding-right: 14px;
}
.filter-btn:hover {
@@ -401,6 +431,22 @@ textarea:focus {
border-color: var(--secondary-color);
}
.filter-select {
min-width: 180px;
padding: 8px 12px;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--white);
color: var(--text-dark);
font-size: 0.95em;
}
.filter-select:focus {
outline: none;
border-color: var(--secondary-color);
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}
.drugs-list {
display: flex;
flex-direction: column;
@@ -571,10 +617,10 @@ footer {
.search-input {
width: 100%;
max-width: none;
padding: 12px 16px;
padding: 10px 14px;
border: 2px solid var(--border-color);
border-radius: 8px;
font-size: 1em;
font-size: 0.95em;
transition: border-color 0.2s;
}
@@ -627,6 +673,39 @@ footer {
overflow-y: auto;
}
#dispenseModal.show {
align-items: flex-start;
overflow-y: auto;
padding: 24px 0;
}
.dispense-modal-content {
max-width: 780px;
max-height: calc(100vh - 48px);
overflow-y: auto;
}
#dispenseForm {
display: block;
padding-right: 6px;
}
#batchInfoSection,
#allocationPreviewSection {
max-height: 220px;
overflow-y: auto;
min-height: fit-content;
}
#dispenseModal .form-actions {
position: sticky;
bottom: 0;
margin-top: 16px;
padding-top: 14px;
background: var(--white);
border-top: 1px solid var(--border-color);
}
.close {
color: var(--text-light);
float: right;
@@ -722,6 +801,26 @@ footer {
gap: 15px;
}
.inventory-toolbar {
width: 100%;
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.toolbar-search {
min-width: 0;
max-width: none;
width: 100%;
}
.header-actions,
.filters {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
.filters {
width: 100%;
}
@@ -730,6 +829,11 @@ footer {
flex: 1;
}
.filter-select {
min-width: 160px;
flex: 1;
}
.drug-details {
grid-template-columns: 1fr;
}
@@ -741,6 +845,20 @@ footer {
.modal-content {
width: 95%;
}
.dispense-modal-content {
max-width: 95%;
max-height: calc(100vh - 24px);
}
#dispenseModal.show {
padding: 12px 0;
}
#batchInfoSection,
#allocationPreviewSection {
max-height: 160px;
}
}
/* Variants Section */
@@ -918,7 +1036,7 @@ footer {
/* Responsive Styles */
@media (max-width: 768px) {
header {
padding: 20px 10px;
padding: 10px 10px;
}
.header-top {
@@ -929,7 +1047,8 @@ footer {
.header-top h1 {
flex: none;
font-size: 1.8em;
font-size: 2.4em;
line-height: 1;
}
.user-menu {