 //@import url(font-thai.css);
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Sarabun', sans-serif;
        }

        :root {
            --bg-main: #F9FAFB;
            --bg-sidebar: #F9FAFB;
            --primary: #0F172A;
            --primary-light: #1E293B;
            --accent: #2563EB;
            --accent-light: #EFF6FF;
            --text-main: #334155;
            --text-muted: #64748B;
            --border-color: #E2E8F0;
            --success: #10B981;
            --success-light: #ECFDF5;
            --warning: #F59E0B;
            --warning-light: #FEF3C7;
            --danger: #EF4444;
            --danger-light: #FEF2F2;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --radius-md: 8px;
            --radius-lg: 12px;
            --sidebar-width: 280px;
            --header-height: 100px;
        }
		
 body {
            background-color: var(--bg-main);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
			font-size: 14px;
        }

  /* ==========================================
           PURE CSS MENU TOGGLE (CHECKBOX HACK)
           ========================================== */
        #menu-drawer {
            display: block; /* ซ่อน Checkbox ไว้ไม่ให้เห็น */
        }

        /* ==========================================
           LAYOUT STRUCTURE
           ========================================== */
        .app-container {
            display: flex;
            flex: 1;
            margin-top: var(--header-height);
        }

        /* ==========================================
           HEADER COMPONENT
           ========================================== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            //background-color: var(--primary);
			//background:linear-gradient(135deg,#0072ff,#00c6ff);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
            z-index: 1000;
            box-shadow: var(--shadow-md);
			font-family: 'Sarabun', sans-serif;
			 background:

    radial-gradient(
        circle at 15% 20%,
        rgba(255,255,255,.18),
        transparent 25%
    ),

    radial-gradient(
        circle at 85% 30%,
        rgba(0,220,255,.25),
        transparent 30%
    ),

    linear-gradient(
        135deg,
        #0047d8 0%,
        #0077ff 45%,
        #00b7ff 100%
    );
			
			
        }

        .header-brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* เปลี่ยนมาใช้ Label ในการกดควบคุม Checkbox แทนปุ่ม Button */
        .menu-toggle-btn {
            display: none;
            color: white;
            font-size: 36px;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: var(--radius-md);
            transition: background-color 0.2s;
        }

        .menu-toggle-btn:hover {
            background-color: var(--primary-light);
        }

        .header-logo {
            width: 70px;
            height: 70px;
            //background-color: #F59E0B;
			background:linear-gradient(135deg,#ffd600,#ff7b00);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 20px;
            color: var(--primary);
            box-shadow: var(--shadow-sm);
			
        }

        .header-title h1 {
            font-size: 20px;
            font-weight: 600;
			color: #fff;
            letter-spacing: 0.5px;
			font-family:'Sarabun',sans-serif;
        }

        .header-title p {
            font-size: 16px;
            color: #fff;
			font-family:'Sarabun',sans-serif;
            font-weight: 300;
        }

        .header-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: var(--radius-md);
            transition: background 0.2s;
        }

        .header-profile:hover {
            background-color: var(--primary-light);
        }

        .profile-info {
            text-align: right;
        }

        .profile-name {
            font-size: 14px;
            font-weight: 500;
            display: block;
        }

        .profile-role {
            font-size: 11px;
            color: #94A3B8;
            display: block;
        }

        .profile-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }


.logout{

background:#ff4560;
text-align:center;

}


		
#label {
    background: #f2c40f;
    border-radius: 5px;
    padding: 1em 1.5em;
	border-bottom:3px solid #dba600;
    color: #fff;
    margin: 10px auto;
	font-family: "Sarabun", sans-serif;
	font-size: 20px;
	font-weight: bold;
}
#billhead{
    font: bold 27px Georgia, "Sarabun", Times, serif;
    color: #0A7A98;
}


h1, h2, h3 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: #3E3530;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 2.8em;
}

h3 {
    font-size: 1.6em;
}

p, ul, ol {
    margin-top: 0;
    line-height: 180%;
}

ul, ol {
}

a {
    text-decoration: none;
    color: #3E3530;
}

a:hover {
}

img.alignleft {
    float: left;
    padding: 0px 20px 0px 0px;
}





/* ==========================================
           SIDEBAR COMPONENT
           ========================================== */
        sidebar {
            width: var(--sidebar-width);
            background-color: var(--bg-sidebar);
            //border-right: 1px solid var(--border-color);
            position: fixed;
            top: var(--header-height);
            bottom: 0;
            left: 0;
            padding: 10px 10px;
            overflow-y: auto;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
        }
		

/*#sidebar {
    --width: 280px;
    margin: 0px 8px 0px 8px;
    padding: 0;
    color: #787878;
    box-sizing: border-box;
}*/

#sidebar ul {
    margin: 0px 0px 10px 0px;
    padding: 0;
    list-style: none;

--box-shadow:0 20px 50px #0002;

transition:.3s;


}

#sidebar li {
    border-radius: 10px;
   // border-top-right-radius: 10px;
  //  margin-bottom: 20px;
   // border-bottom: 1px solid #D6D6D6;
   // background: #FFFFFF;
	
	
}

#sidebar li ul {

    margin: 0px 0px 0px 0px;
	padding-top: 10px;
    padding-bottom: 10px;
    background: none;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background: #fff;
	    border: 1px solid var(--border-color);

}

#sidebar li li {
    padding: 0px 10px;
    margin: 5px 5px;
    
    //border-bottom: 1px dotted #D7D7D7;
    background: none;
}

#sidebar li li span {
    display: block;
    margin-top: -20px;
    padding: 0;
    font-size: 11px;
    font-style: italic;
}

#sidebar h2 {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
	border-bottom: 3px solid #ff7b00;
    padding: 10px 0px 10px 20px;
    background:#087cf0;
    color: #fff;
	font-family: "Sarabun", sans-serif;
	font-weight:bold;
	font-size: 16px;
}

#sidebar p {
    margin: 0 0px;
    //padding: 0px 30px 20px 30px;
    text-align: justify;
}

#sidebar a {
	display:block;
    border: none;
    color: #727272;
	padding:10px;
	cursor:pointer;
	border-radius:12px;
}

#sidebar li a:hover {
  color: var(--accent);
  font-weight:bold;
  
  background:#e8f1ff;

color:#0676ff;

padding-left:15px;
border-left: 2px solid #ff7b00;

}




 /* ฉากหลังมืด (Overlay) ตอนเปิดเมนูบน Mobile - ทำงานด้วย Pure CSS */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: var(--header-height);
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(2px);
            z-index: 998;
            transition: opacity 0.3s ease;
        }


  /* ==========================================
           MAIN CONTENT AREA
           ========================================== */
        main {
            flex: 1;
            margin-left: var(--sidebar-width);
            padding: 10px 10px 10px 32px;
            min-height: calc(100vh - var(--header-height) - 60px);
            transition: margin-left 0.3s ease;
        }



#content {
   /* flex: 1;
    min-width: 0;
    max-width: 100%;
    background: #fff;
    margin: 0 8px 20px 8px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-sizing: border-box;*/
	 background-color: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
            padding: 20px;
            margin-bottom: 24px;
}

.post {
    padding-top: 0px;
    //border-bottom: 1px solid #EAEAEA;
	
}

.post .title {
    clear: both;
    letter-spacing: -1px;
    padding: 10px 10px 0px 40px;
    font-size: 25px;
    color: #0A7A98;
}
.help {
    color: #ccc;
}
.post .title5 {
    clear: both;
    letter-spacing: -1px;
    padding: 10px 10px 0px 20px;
    font-size: 18px;
    color: #000000;
}
.post .title3 {
    clear: both;
    letter-spacing: -1px;
    padding: 10px 10px 0px 30px;
    font-size: 16px;
    color: #000000;
}
.post .title4 {
    clear: both;
    letter-spacing: -1px;
    padding: 10px 10px 0px 40px;
    font-size: 14px;
    color: #000000;
}
.post .title10 {
    clear: both;
    letter-spacing: -1px;
    padding: 10px 10px 10px 0px;
    font-size: 18px;
    color: #000000;
}

.post .title30 {
    clear: both;
    letter-spacing: -1px;
    padding: 10px 10px 0px 0px;
    font-size: 18px;
    color: #0A7A98;
}
.post .title20 {
    clear: both;
	display: inline-block;
	margin-top:40px;
	margin-bottom:40px;
    padding: 10px 50px 10px 15px;
	//border-radius: 10px;
	//border-bottom-right-radius: 10px;
    font-size: 16px;
    color:#344054;
	//background:#55aded;
	//border-bottom: 3px solid #318dce;
	font-family: "Sarabun", sans-serif;
	font-size: 18px;
	font-weight:bold;
	
	display:flex;
align-items:center;
gap:20px;


padding:22px 30px;
border-radius:10px;


/* Gradient 2 สี */

background:
linear-gradient(
135deg,
#ffd600,
#ff7b00
);





//box-shadow:0 15px 35px rgba(0,100,255,.35);


position:relative;

overflow:hidden;


transition:.35s;
	
}


.post .title20:before{


content:"";


position:absolute;


width:180px;
height:180px;


right:-60px;
top:-80px;


background:rgba(255,255,255,.18);


border-radius:50%;



}



.post .title a {
    color: #0A7A98;
    border: none;
}

.post .meta {
    float: right;
    height: 48px;
    text-align: left;
    margin-bottom: 0px;
     font-family: "Sarabun", sans-serif;
    font-size: 16px;
    font-weight: normal;
	
}

.post .meta .clip {
    display: none;
    width: 250px;
    /*height: 42px;*/
     padding: 5px 0px 5px 0px;
   /* background: url(../../resources/images/img05_1.jpg) no-repeat left top ;*/
   background:#b968c7;
    text-align: center;
	border-bottom: 3px solid #853a9f;
    color: #FFEEE7;
	border-radius: 10px;
}
.post .meta .clip2 {
    display: inline-block;
    width: 355px;
	border-radius:10px;
   /* height: 42px;*/
    padding: 5px 0px 5px 10px;
    /*background: url(../../resources/images/img05_2.jpg) no-repeat left top ;*/
	 background:#b968c7;'
    text-align: center;
    color: #FFEEE7;
}

.post .meta .posted {
    padding: 0px 10px 0px 0px;
    text-transform: lowercase;
    font-family: "Sarabun", serif;
    font-size: 18px;
    font-style: italic;
    color: #7c3aed;
}

.post .meta a {

}

.post .entry {
    padding: 0 15px 20px 15px;
    padding-bottom: 20px;
    text-align: justify;

}
.post .leaveform {
    padding: 0 100px 20px 80px;
    padding-bottom: 20px;
    text-align: justify;
    font-size: 14px;
}
.links {
    padding-top: 20px;
    font-size: 12px;
    font-weight: bold;
}
.post .docentry {
    padding: 0 70px 20px 70px;
    padding-bottom: 20px;
    text-align: justify;
    font-size: 1.1em;
}



/* Calendar */


#calendar {
}

#calendar_wrap {
    padding: 20px;
}

#calendar table {
    width: 100%;
}

#calendar tbody td {
    text-align: center;
}

#calendar #next {
    text-align: right;
}


 /* ==========================================
           FOOTER COMPONENT
           ========================================== */
        footer {
            background:#f5f8fc;
            border-top: 1px solid var(--border-color);
            padding: 18px 32px;
            font-size: 12px;
            color: var(--text-muted);
            text-align: center;
            margin-left: var(--sidebar-width);
            margin-top: auto;
            transition: margin-left 0.3s ease;
        }

footer p {
    margin: 0;
    padding-top: 20px;
    line-height: normal;
    font-size: 15px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

footer a {
    color: #fff;
}


        /* ==========================================
           RESPONSIVE & PURE CSS CONTROL LOGIC
           ========================================== */
        @media (max-width: 1024px) {
            :root {
                --sidebar-width: 0px;
            }
            
            /* ซ่อน Sidebar ไปทางซ้ายแบบ Default บนจอเล็ก */
            sidebar {
                transform: translateX(-300px);
                width: 280px;
            }

            main, footer {
                margin-left: 0;
            }

            /* แสดงปุ่มเปิดแฮมเบอร์เกอร์ */
            .menu-toggle-btn {
                display: block;
               // margin-right: 12px;
            }

            /* ⚡ [CSS MAGIC] เมื่อมีสถานะ Checked ให้ขยับ Sidebar ออกมา */
            #menu-drawer:checked ~ .app-container sidebar {
                transform: translateX(0);
                box-shadow: var(--shadow-md);
            }

            /* ⚡ [CSS MAGIC] เมื่อ Checked ให้เปิดตัวครอบ Overlay มืดด้านหลัง */
            #menu-drawer:checked ~ .app-container .sidebar-overlay {
                display: block;
            }

            .content-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .sparkline-container {
                width: 100%;
                justify-content: space-between;
            }
        }

        @media (max-width: 640px) {
            main { padding: 6px; }
            .header-title p { display: none; }
            .profile-info { display: none; }
            .action-toolbar {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }


#actions {
    margin-left: auto;
    margin-right: auto;
    width: 140px;
}

#actions .button {
    display: block;
    padding: 0;
    height: 36px;
    background: url(bg-button.png) no-repeat top left;
}

#actions .button a {
    display: block;
    padding: 0;
}

#actions .button a:link,
#actions .button a:visited,
#actions .button a:hover,
#actions .button a:active {
    color: #696;
    text-decoration: none;
}

#actions .button a span {
    display: block;
    padding: 6px 10px;
    color: #666;
    text-shadow: 1px 1px 1px #fff;
    font-size: 10pt;
    font-weight: bold;
}
.tableSimple{
    border-collapse: collapse;
    text-align: left;  
	 width: 100%;
    font-size: 14px;
	
}
.tableSimple th{
    color: #222;
    background:#eee;
    padding: 5px 5px;
    border-bottom: 2px solid #ccc;

	
}
.tableSimple td{
    border-bottom: 1px solid #ccc;
    color: #666;
    background: #fff;
    padding: 4px;    
    vertical-align: top;
}

.tableNone{
    border-collapse: collapse;
    text-align: left;  
}
.tableNone th{
    color: #222;
    background:#eee;
    padding: 1px 1px;
}
.tableNone td{
    color: #666;
    background: #fff;
    padding: 4px;    
    vertical-align: top;
}

.tableSimply{
    border-collapse: collapse;
    text-align: left;  
}
.tableSimply th{
    color: #222;
    background:#eee;
    padding: 5px 5px;
    border-bottom: 2px solid #ccc;
	
	
}
.tableSimply td{
    border-bottom: 1px solid #ccc;
    color: #666;
    background: #fff;
    padding: 4px;    
    vertical-align: top;
}
.tableSimply tbody tr:hover td{
    color: #222;
    background: #eee;
}
.swhite{
    color: green;
}
.err{
    color: red;
}
.link{
    color:  blue;
}
.tableClass{
    border-collapse: collapse;
    text-align: left;  
}
.tableClass th{
    color: #222;
    background:#eee;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
}
.tableClass td{
    border-bottom: 2px solid #ccc;
    color: #666;
    background: #fff;
    padding: 4px;    
    vertical-align: top;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
}

.tableClass tbody tr:hover td{
    color: #222;
    background: #eee;
}


.tableAudit{
    border-collapse: collapse;
    text-align: left;  
}
.tableAudit th{
    color: #222;
    background:whitesmoke;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
}
.tableAudit .header {
    color: #222;
    background: #BBCEF1;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}
.tableAudit .tr1 {
    color: #222;
    background: #EAEAEA;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.tableAudit .tr2 {
    color: #222;
    background: #EAEAEA;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
}
.tableAudit .tr3 {
    color: #222;
    background: lightgoldenrodyellow;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
    font-weight: bold;
}
.tableAudit .table1{
    color: #222;
    background:#BBCEF1;
    padding: 5px 5px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
}
.tableAudit .td1{
    border-bottom: 2px solid #ccc;
    color: #666;
    background: whitesmoke;
    padding: 4px;    
    vertical-align: top;
    border-right: 2px solid #ccc;
    border-left: 2px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

input[type="submit"],input[type="button"] {
  background-color: #4CAF50; 
  color: white;             
  padding: 10px 10px;        
  border: none;             
  border-radius: 5px;        
  font-size: 16px;          
  cursor: pointer;           
  transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover ,input[type="button"]:hover{
  background-color: #45a049;
  transform: scale(1.05);    
}

 