/* wm_modern.css - shared look for the WM Construction pages, same style as drilling_daily.php
   (blue header bar with logo, light grey page, white cards). Plain CSS, no Tailwind or other library needed.
   A page uses it with:  <link rel="stylesheet" href="wm_modern.css">  in <head>,
   include('wm_modern_header.inc.php') right after <body> and include('wm_modern_footer.inc.php') before </body>. */

body.wm { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f0f2f5; color: #1f2937;
	font: 14px 'Roboto', Arial, Helvetica, sans-serif; }
.wm a { color: #2563eb; }
.wm-bar { background: linear-gradient(to right, #1e40af, #2563eb); color: #fff; padding: 12px 16px; display: flex;
	justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.wm-bar a { color: #fff; text-decoration: none; margin-left: 18px; white-space: nowrap; }
.wm-bar a:hover { color: #dbeafe; }
.wm-bar a:first-child { margin-left: 0; }
.wm-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: .03em; }
.wm-brand img { height: 40px; width: auto; }
.wm-main { flex: 1; padding: 16px; }
.wm-title { margin: 0 0 14px; font-size: 22px; font-weight: 500; color: #1e3a8a; }
.wm-card { background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 16px; margin-bottom: 16px; }
.wm-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 500; color: #1f2937; }

/* label / value grid for the top of a form */
.wm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; }
.wm-field label, .wm-field .wm-label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.wm-field .wm-value { min-height: 30px; line-height: 30px; font-size: 15px; }

/* inputs and buttons */
.wm input[type=text], .wm input[type=date], .wm input[type=number], .wm select, .wm textarea {
	box-sizing: border-box; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 4px; font: inherit; background: #fff; color: #111827; }
.wm input[type=text]:focus, .wm select:focus, .wm textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.wm input[readonly] { background: #f3f4f6; }
.wm textarea { width: 100%; min-height: 70px; resize: vertical; }
.wm-btn { display: inline-block; padding: 9px 18px; border: 0; border-radius: 5px; font: inherit; font-weight: 500; cursor: pointer;
	background: #e5e7eb; color: #1f2937; text-decoration: none; }
.wm-btn:hover { background: #d1d5db; }
.wm-btn.primary { background: #2563eb; color: #fff; }
.wm-btn.primary:hover { background: #1d4ed8; }
.wm-btn[disabled] { opacity: .5; cursor: default; }
.wm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.wm-note { color: #6b7280; font-size: 13px; }

/* data tables */
.wm-scroll { overflow-x: auto; }
.wm-table { border-collapse: collapse; width: 100%; }
.wm-table th, .wm-table td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: left; vertical-align: middle; }
.wm-table thead th { background: #f3f4f6; font-weight: 500; }
.wm-table tbody th { background: #f9fafb; font-weight: 500; white-space: nowrap; color: #374151; }
.wm-table tbody tr:hover td { background: #f8fafc; }

/* the searchable well list (well_search.inc.php) a bit larger on these pages */
.wm .ws-btn { padding: 5px 26px 5px 8px; border-color: #d1d5db; border-radius: 4px; font-size: 14px; min-height: 30px; }

.wm-foot { background: linear-gradient(to right, #1e40af, #2563eb); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.wm-foot a { color: #fff; text-decoration: underline; margin-right: 18px; }

@media (max-width: 600px) {
	.wm-main { padding: 8px; }
	.wm-card { padding: 12px; }
	.wm-brand { font-size: 16px; }
	.wm-brand img { height: 30px; }
}
