@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap");
/* LSS portal look (Phase 7): a readable font and size, darker text, consistent tables and spacing.
   Loaded from theme-default.css, so every page gets it. */

body {
	font-family: "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 13px;
	color: #2f3640;
}
h1, h2, h3, h4, .panel-title, .page-title h2 { font-weight: 600; color: #263238; }
.page-title h2 { font-size: 20px; }
.panel .panel-title { font-size: 15px; }
p, label, .form-control, .btn, .breadcrumb, .x-navigation li > a { font-weight: 400; }
label { color: #37474f; font-weight: 600; }
.form-control { font-size: 13px; color: #263238; }
.text-muted { color: #607d8b; }

/* tables: readable, with clear rows */
.table > thead > tr > th, .table > tfoot > tr > th { font-size: 12.5px; font-weight: 600; color: #263238; background: #f1f4f7; }
.table > tbody > tr > td { font-size: 13px; color: #2f3640; vertical-align: middle; }
.table-stock td, .table-stock th { font-size: 12.5px; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fafbfc; }
.table-hover > tbody > tr:hover, .dataTable tbody tr:hover { background: #eef5fb; }
.num { text-align: right; white-space: nowrap; }

/* consistent spacing */
.panel { margin-bottom: 15px; }
.panel-body { padding: 12px 15px; }
.page-content-wrap { padding-top: 5px; }
.alert { font-size: 13.5px; }

/* required fields */
.lss-req:after { content: " *"; color: #c62828; font-weight: 700; }

/* searchable lists (DataTables) */
.dataTables_wrapper .dataTables_filter input { border: 1px solid #c9d1d9; border-radius: 3px; padding: 4px 8px; margin-left: 6px; }
.dataTables_wrapper .dataTables_length select { border: 1px solid #c9d1d9; border-radius: 3px; padding: 2px 4px; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { padding-top: 8px; font-size: 12.5px; }
.dataTables_wrapper .dataTables_paginate a { padding: 3px 9px; margin-left: 2px; cursor: pointer; border: 1px solid #dfe3e8; border-radius: 3px; }
.dataTables_wrapper .dataTables_paginate a.current { background: #1b6ca8; color: #fff; border-color: #1b6ca8; }
.dataTables_wrapper .dataTables_paginate a.disabled { color: #b0b8c0; cursor: default; }
table.dataTable thead th.sorting, table.dataTable thead th.sorting_asc, table.dataTable thead th.sorting_desc { cursor: pointer; }
table.dataTable thead th.sorting_asc:after { content: " \25B2"; font-size: 9px; }
table.dataTable thead th.sorting_desc:after { content: " \25BC"; font-size: 9px; }

/* delete warning: the record being deleted */
.lss-del-summary { background: rgba(255,255,255,.15); border-left: 3px solid #fff; padding: 6px 10px; font-weight: 600; }

/* menu: favourites */
.x-navigation li > a .lss-star { float: right; opacity: 0; color: #f6c343; padding: 0 4px; }
.x-navigation li:hover > a .lss-star, .x-navigation li > a .lss-star.on { opacity: 1; }
.x-navigation li.lss-fav-title { color: #f6c343; }

/* dashboard */
.lss-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.lss-tile { flex: 1 1 200px; background: #fff; border: 1px solid #e3e7eb; border-left: 4px solid #1b6ca8; border-radius: 4px; padding: 12px 14px; color: #263238; text-decoration: none; display: block; }
.lss-tile:hover { box-shadow: 0 2px 6px rgba(0,0,0,.08); text-decoration: none; color: #263238; }
.lss-tile .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
.lss-tile .l { font-size: 12.5px; color: #546e7a; margin-top: 2px; }
.lss-tile.warn { border-left-color: #e0a800; }
.lss-tile.bad { border-left-color: #c62828; }
.lss-tile.good { border-left-color: #2e7d32; }
.lss-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lss-links a { background: #f1f4f7; border: 1px solid #dfe3e8; border-radius: 3px; padding: 6px 12px; color: #1b4f72; }
.lss-links a:hover { background: #e3edf6; text-decoration: none; }
.lss-bars text { font-size: 11px; fill: #455a64; }

/* login page */
.lss-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f3d63 0%, #1b6ca8 100%); padding: 20px; }
.lss-login .box { background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); width: 100%; max-width: 380px; padding: 28px 28px 20px; }
.lss-login .brand { text-align: center; margin-bottom: 18px; }
.lss-login .brand img { max-height: 70px; max-width: 100%; }
.lss-login .brand h1 { font-size: 19px; margin: 10px 0 2px; color: #0f3d63; }
.lss-login .brand p { color: #607d8b; margin: 0; }
.lss-login .form-control { height: 38px; font-size: 14px; }
.lss-login .btn-primary { height: 40px; font-size: 15px; background: #1b6ca8; border-color: #1b6ca8; }
.lss-login .foot { text-align: center; margin-top: 14px; font-size: 12px; color: #78909c; }

/* phones and small tablets (Phase 9): receiving, issuing and counting work on a phone */
/* full width, so it never shrinks to nothing beside a floated column (it moves below it instead) */
.lss-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.row.panel > .card { clear: both; }
@media (max-width: 768px) {
	body { font-size: 14px; }
	.form-control, input[type=text], input[type=number], input[type=date], select, textarea { font-size: 16px !important; min-height: 40px; }
	.page-content-wrap [style*="width:"]:not(table):not(svg):not(img) { width: 100% !important; max-width: 100% !important; }
	.btn { padding: 8px 14px; }
	.btn-sm, .btn-condensed { padding: 7px 11px !important; font-size: 14px; }
	.btn-rounded.btn-condensed { min-width: 36px; min-height: 36px; }
	.panel-body { padding: 10px; }
	.page-title h2 { font-size: 18px; }
	.lss-tile { flex: 1 1 45%; }
	.lss-add-new { float: none !important; display: inline-block; margin: 6px 0 !important; }
	/* list tables marked lss-cards become one card per row */
	table.lss-cards thead { display: none; }
	table.lss-cards, table.lss-cards tbody, table.lss-cards tr, table.lss-cards td { display: block; width: 100%; }
	table.lss-cards tr { border: 1px solid #dfe3e8; border-radius: 4px; margin-bottom: 10px; background: #fff; padding: 4px 8px; }
	table.lss-cards td { border: none !important; padding: 4px 0 !important; text-align: left !important; }
	table.lss-cards td[data-label]:before { content: attr(data-label) ": "; font-weight: 600; color: #546e7a; }
	table.lss-cards td input.form-control { width: 100% !important; display: block !important; }
	table.lss-cards tfoot { display: block; }
}

/* menu bar on small screens (Phase 9): the menu stays closed until its button is tapped */
.page-sidebar .x-navigation > li.xn-logo { display: none; }
@media only screen and (max-width: 1024px) {
	.page-sidebar .x-navigation > li.xn-logo { display: block; }
	.page-sidebar .x-navigation > li.xn-logo > a:first-child { background: #0f3d63; text-indent: 0; font-size: 17px; font-weight: 600; line-height: 50px; padding-left: 15px; }
	.page-sidebar .x-navigation > li.xn-logo > a:first-child:hover { background: #0f3d63; }
}
table.lss-cards { clear: both; }
/* clickable chart bars (dashboard) */
.lss-bars a.lss-bar-link { cursor: pointer; }
.lss-bars a.lss-bar-link:hover rect { fill: #0f4f80; }
.lss-bars a.lss-bar-link:hover text { text-decoration: underline; }
/* report headings sort on click */
table.rep-sort thead th { cursor: pointer; user-select: none; }
table.rep-sort thead th:hover { background: #e3edf6; }
table.rep-sort thead th.rep-asc:after { content: " \25B2"; font-size: 9px; }
table.rep-sort thead th.rep-desc:after { content: " \25BC"; font-size: 9px; }
/* dashboard tiles open their details */
a.lss-tile .l:after { content: " \203A  View details"; color: #1b6ca8; font-weight: 600; white-space: nowrap; }
a.lss-tile[href="#pwreq"] .l:after { content: ""; }
.lss-bars a.lss-bar-link text { fill: #1b4f72; }
