317 lines
6.3 KiB
CSS
317 lines
6.3 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* กำหนดตัวแปรสีพื้นฐาน */
|
|
:root {
|
|
/* Default (Red Theme) */
|
|
--color-primary-50: #fef2f2;
|
|
--color-primary-100: #fee2e2;
|
|
--color-primary-500: #ef4444;
|
|
--color-primary-600: #dc2626;
|
|
--color-primary-900: #7f1d1d; /* สีแดงเข้มที่คุณใช้บ่อย */
|
|
--color-primary-950: #450a0a;
|
|
}
|
|
|
|
/* Blue Theme Override */
|
|
.theme-blue {
|
|
--color-primary-50: #eff6ff;
|
|
--color-primary-100: #dbeafe;
|
|
--color-primary-500: #3b82f6;
|
|
--color-primary-600: #2563eb;
|
|
--color-primary-900: #1e3a8a; /* สีน้ำเงินเข้ม */
|
|
--color-primary-950: #172554;
|
|
}
|
|
|
|
/* Green Theme Override */
|
|
.theme-green {
|
|
--color-primary-50: #f0fdf4;
|
|
--color-primary-100: #dcfce7;
|
|
--color-primary-500: #22c55e;
|
|
--color-primary-600: #16a34a;
|
|
--color-primary-900: #14532d;
|
|
--color-primary-950: #052e16;
|
|
}
|
|
|
|
/* ... CSS อื่นๆ ของคุณ ... */
|
|
html, body { height: 100%; }
|
|
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
|
|
|
|
/* Global base styles for the app. Keep lightweight and self-contained so
|
|
the login component can reliably fill the viewport without producing
|
|
an outer page scrollbar. */
|
|
|
|
/* Force ngx-toastr container to be fixed to the viewport and positioned correctly */
|
|
.toast-container.toast-top-right {
|
|
position: fixed !important;
|
|
top: 12px !important;
|
|
right: 12px !important;
|
|
z-index: 999999 !important;
|
|
}
|
|
|
|
/* Make sure the page and app root occupy full height so 100vh aligns */
|
|
html, body, app-root {
|
|
height: 100%;
|
|
min-height: 100%;
|
|
}
|
|
/* เริ่มต้น: สำหรับ Desktop */
|
|
.login-mobile {
|
|
width: 415px;
|
|
}
|
|
|
|
/* ถ้าเป็น Mobile (<=768px) ให้ลบ width ออก */
|
|
@media (max-width: 768px) {
|
|
.login-mobile {
|
|
width: auto !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
z-index: 50;
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
}
|
|
|
|
input::placeholder{
|
|
color: #9aa3ad;
|
|
}
|
|
input:focus{
|
|
border-color: var(--primary);
|
|
box-shadow: 0 6px 20px rgba(0,120,212,0.10);
|
|
transform: translateZ(0);
|
|
}
|
|
|
|
.ngx-toastr {
|
|
border-radius: 8px !important;
|
|
backdrop-filter: blur(6px);
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
|
font-family: "Segoe UI", Roboto, sans-serif;
|
|
padding: 12px 16px !important;
|
|
min-width: 260px;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.success-toast {
|
|
background: rgba(255, 255, 255, 0.8) !important;
|
|
color: #15803d !important;
|
|
border-left: 5px solid #16a34a;
|
|
}
|
|
|
|
.error-toast {
|
|
background: rgba(239, 68, 68, 0.8) !important;
|
|
color: #fff !important;
|
|
border-left: 5px solid #dc2626;
|
|
}
|
|
|
|
.toast-title {
|
|
font-weight: 600 !important;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.toast-message {
|
|
font-size: 14px;
|
|
}
|
|
|
|
|
|
|
|
|
|
/* sensible default box model */
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Kanit", sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
/* Prevent the browser from showing a scroll bar for the page itself;
|
|
the login card will scroll internally if needed. */
|
|
}
|
|
|
|
/* Simple utilities used by nested components in this workspace */
|
|
.content-box {
|
|
border: 2px solid black;
|
|
padding: 10px;
|
|
margin: 20px;
|
|
}
|
|
|
|
.comp-box {
|
|
border: 1px solid #555;
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
margin: 10px;
|
|
/* Use flex centering so nested components (like the login widget)
|
|
are centered without forcing the document to scroll. */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* If the project uses Bootstrap, the Bootstrap utilities will still apply.
|
|
These local utility rules only ensure a consistent appearance if Bootstrap
|
|
isn't available. */
|
|
|
|
|
|
|
|
|
|
|
|
.kanit-thin {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 100;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-extralight {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 200;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-light {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-regular {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-medium {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-semibold {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 600;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-bold {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-extrabold {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 800;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-black {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 900;
|
|
font-style: normal;
|
|
}
|
|
|
|
.kanit-thin-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 100;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-extralight-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 200;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-light-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 300;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-regular-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-medium-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 500;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-semibold-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 600;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-bold-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 700;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-extrabold-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 800;
|
|
font-style: italic;
|
|
}
|
|
|
|
.kanit-black-italic {
|
|
font-family: "Kanit", sans-serif;
|
|
font-weight: 900;
|
|
font-style: italic;
|
|
}
|
|
|
|
|
|
/* Custom-Table */
|
|
|
|
.ledger-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.ledger-table {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.ledger-table.is-scrollable {
|
|
max-height: 25rem;
|
|
overflow-y: auto;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
|
|
.ledger-row {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr 0.8fr 1.2fr;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
padding: 0.75rem 0.4rem;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
|
|
.ledger-row {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.ledger-row span:nth-child(3),
|
|
.ledger-row span:nth-child(4) {
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
.ledger-head {
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.08em;
|
|
color: #94a3b8;
|
|
}
|