/*
 * My NMT: the old my.nmtshipping.com look (header photo, title bar, blue
 * #406E8F text, orange #D86A00 links, sky background) with Bootstrap 5.3
 * components inside the white content area.
 */
:root {
	--nmt-blue: #406E8F;
	--nmt-blue-dark: #2F566F;
	--nmt-blue-light: #EEF3F7;
	--nmt-line: #D5E0E8;
	--nmt-orange: #D86A00;
	--nmt-orange-dark: #8C4400;
	--bs-body-font-family: Arial, Helvetica, sans-serif;
	--bs-body-font-size: .875rem;
	--bs-body-color: #406E8F;
	--bs-body-bg: #fff;
	--bs-link-color: #D86A00;
	--bs-link-color-rgb: 216, 106, 0;
	--bs-link-hover-color: #8C4400;
	--bs-link-hover-color-rgb: 140, 68, 0;
	--bs-border-color: #D5E0E8;
	--bs-secondary-color: #7D97AB;
}
body {
	background: #9FB6C7 url(../img/elements/bg.jpg) repeat-x fixed;
	min-height: 100vh;
}
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--nmt-blue-dark); font-weight: bold; }

/* Page frame: 950 wide as before, fluid on small screens */
.nmt-page { max-width: 950px; margin: 0 auto; padding: 40px 0; }
.nmt-head { background: #fff; padding: 10px 10px 0; }
.nmt-head img { display: block; width: 100%; height: auto; }
.nmt-bar {
	background: #fff; min-height: 38px; padding: 9px 10px; margin-bottom: 5px;
	border-top: 10px solid #fff; box-shadow: inset 0 11px 0 #fff, inset 0 12px 0 var(--nmt-line);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem;
}
.nmt-bar-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-weight: bold; }
.nmt-bar-user { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .8125rem; }
.nmt-title { background: url(../img/elements/bg_title.gif) repeat-x; height: 50px; overflow: hidden; }
.nmt-title img { display: block; }
.nmt-content { background: #fff; padding: 24px 20px 28px; min-height: 260px; }
.nmt-foot {
	background: #fff; margin-top: 5px; padding: 10px; font-size: .75rem;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
}
.nmt-link { background: none; border: 0; padding: 0; font: inherit; font-weight: bold; color: var(--nmt-orange); cursor: pointer; }
.nmt-link:hover { color: var(--nmt-orange-dark); text-decoration: underline; }

/* Buttons in the old colours */
.btn { --bs-btn-font-size: .875rem; --bs-btn-border-radius: 3px; font-weight: bold; }
.btn:hover { text-decoration: none; }
.btn-primary {
	--bs-btn-color: #fff; --bs-btn-bg: var(--nmt-blue); --bs-btn-border-color: var(--nmt-blue);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--nmt-blue-dark); --bs-btn-hover-border-color: var(--nmt-blue-dark);
	--bs-btn-active-color: #fff; --bs-btn-active-bg: var(--nmt-blue-dark); --bs-btn-active-border-color: var(--nmt-blue-dark);
	--bs-btn-disabled-bg: var(--nmt-blue); --bs-btn-disabled-border-color: var(--nmt-blue);
}
.btn-accent {
	--bs-btn-color: #fff; --bs-btn-bg: var(--nmt-orange); --bs-btn-border-color: var(--nmt-orange);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: #B55700; --bs-btn-hover-border-color: #B55700;
	--bs-btn-active-color: #fff; --bs-btn-active-bg: var(--nmt-orange-dark); --bs-btn-active-border-color: var(--nmt-orange-dark);
}
.btn-outline-primary {
	--bs-btn-color: var(--nmt-blue); --bs-btn-bg: #fff; --bs-btn-border-color: var(--nmt-blue);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--nmt-blue); --bs-btn-hover-border-color: var(--nmt-blue);
	--bs-btn-active-color: #fff; --bs-btn-active-bg: var(--nmt-blue-dark); --bs-btn-active-border-color: var(--nmt-blue-dark);
}
.btn-outline-danger { --bs-btn-bg: #fff; }

.form-label { font-weight: bold; color: var(--nmt-blue-dark); margin-bottom: .25rem; }
.form-control { border-color: #A9BFCF; color: #23394A; border-radius: 3px; }
.form-control:focus { border-color: var(--nmt-blue); box-shadow: 0 0 0 .2rem rgba(64, 110, 143, .2); }
.form-text { color: var(--bs-secondary-color); }
.input-group-text { background: var(--nmt-blue-light); border-color: #A9BFCF; color: var(--nmt-blue); }
.alert { border-radius: 3px; }

/* Panels inside the content area */
.panel { border: 1px solid var(--nmt-line); border-radius: 3px; margin-bottom: 1.25rem; }
.panel-head { background: var(--nmt-blue-light); border-bottom: 1px solid var(--nmt-line); padding: .5rem .875rem; font-weight: bold; color: var(--nmt-blue-dark); }
.panel-body { padding: .875rem; }
.panel-note { background: var(--nmt-blue-light); border-radius: 3px; padding: .875rem; font-size: .8125rem; }
.panel-note p:last-child { margin-bottom: 0; }
.panel-note strong { color: var(--nmt-blue-dark); }

/* Page heading row */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--nmt-line); }
.page-head h1 { font-size: 1.375rem; margin: 0; }
.page-head .sub { color: var(--bs-secondary-color); font-size: .8125rem; margin-top: .15rem; }
.crumbs { font-size: .8125rem; margin-bottom: .35rem; color: var(--bs-secondary-color); }
.crumbs a { font-weight: bold; }

/* Port table */
.table { --bs-table-color: #23394A; --bs-table-hover-bg: #F5F8FB; margin: 0; }
.table > thead th { background: var(--nmt-blue-light); color: var(--nmt-blue-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; border-bottom-color: var(--nmt-line); white-space: nowrap; }
.table td { border-bottom-color: #E6EDF2; vertical-align: top; padding-top: .6rem; padding-bottom: .6rem; }
.table td.port a { font-weight: bold; }
.table td.folder { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; color: var(--nmt-blue); white-space: nowrap; }
.table td.emails { font-size: .8125rem; line-height: 1.45; color: #4A6478; overflow-wrap: anywhere; }
.table td.emails .more { color: var(--bs-secondary-color); }
.status { display: inline-block; font-size: .75rem; font-weight: bold; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .35rem; vertical-align: .05rem; }
.status-on { color: #2E7D32; }
.status-on::before { background: #2E7D32; }
.status-off { color: #8A8A8A; }
.status-off::before { background: #B0B0B0; }

/* Document list */
.file-list { border: 1px solid var(--nmt-line); border-radius: 3px; }
.file-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .875rem; border-bottom: 1px solid #E6EDF2; }
.file-row:last-child { border-bottom: 0; }
a.file-row:hover { background: #F5F8FB; text-decoration: none; }
.file-row .bi { font-size: 1.1rem; }
.file-row .bi-folder-fill { color: #E0A526; }
.file-row .bi-file-earmark-pdf { color: #C4302B; }
.file-row .name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: #23394A; }
a.file-row .name { color: var(--nmt-blue-dark); font-weight: bold; }
.file-row .meta { color: var(--bs-secondary-color); font-size: .75rem; white-space: nowrap; }
.file-row .actions { display: flex; gap: .4rem; flex-shrink: 0; }

.login-box { max-width: 380px; }
.new-password { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; letter-spacing: .05em; color: #23394A; }

@media (max-width: 990px) { .nmt-page { padding: 0; } }
