/* HerbiGuide Online - recreates the Silverlight 3 application (MainPage.xaml) with its default control styles. */

#sl-host { position: relative; width: 1000px; height: 740px; background: white; overflow: auto; font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Segoe UI', sans-serif; font-size: 11px; color: black; cursor: default; }
#sl-host.busy, #sl-host.busy * { cursor: wait !important; }

/* Title bar */
.sl-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sl-title { cursor: pointer; white-space: nowrap; user-select: none; }
.sl-title span { font-size: 32px; font-style: italic; font-weight: bold; vertical-align: top; }
.sl-title .herbi { font-family: 'Arial Black', Gadget, sans-serif; color: red; letter-spacing: -1px; }
.sl-title .guide { font-family: 'Arial Black', Gadget, sans-serif; color: green; letter-spacing: -1px; }
.sl-title .online { font-family: 'Times New Roman', Times, serif; padding: 6px; }
.sl-logon { display: flex; align-items: center; gap: 5px; margin: 5px; font-size: 9px; white-space: nowrap; }
.sl-logon .sl-button { min-width: 0; height: auto; padding: 2px 6px; font-size: 9px; }
.sl-logon label { display: flex; align-items: center; gap: 2px; }
.sl-logon input[type=text], .sl-logon input[type=password] { font-size: 9px; border: 1px solid #A3AEB9; padding: 2px; border-radius: 2px; }

/* Silverlight default Button */
.sl-button {
    font: inherit; font-size: 11px; color: black; min-width: 75px; height: 23px; padding: 0 8px; border-radius: 3px; cursor: pointer;
    border: 1px solid #7E8C99;
    background: linear-gradient(#FFFFFF 0%, #F6F8F9 35%, #E3E8EC 60%, #D3DCE3 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.sl-button:hover:not(:disabled) { border-color: #448DCA; background: linear-gradient(#FFFFFF 0%, #EAF4FC 40%, #CFE6F8 100%); }
.sl-button:active:not(:disabled) { background: linear-gradient(#CFE6F8, #B7D8F3); }
.sl-button:focus-visible { outline: 1px dashed #448DCA; outline-offset: -4px; }
.sl-button:disabled { opacity: .55; cursor: default; color: #555; }
.sl-button.bold { font-weight: bold; }

/* Silverlight default ListBox */
.sl-listbox { background: white; border: 1px solid #8399A9; border-radius: 2px; overflow-y: auto; padding: 1px; box-sizing: border-box; outline: none; user-select: none; }
.sl-listbox:focus-visible { border-color: #448DCA; }
.sl-listbox .items { display: grid; }
.sl-listbox .item { padding: 3px 4px; border: 1px solid transparent; border-radius: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-listbox .item:hover { background: rgba(186, 221, 233, .35); }
.sl-listbox .item.selected { background: #BADDE9; border-color: #6DBDD1; }

/* Introduction */
#grdIntroduction { width: 720px; margin: 6px 0 0 6px; font-size: 14px; }
#grdIntroduction .l1 { margin-left: 24px; font-weight: bold; }
#grdIntroduction .bullet { display: flex; margin-left: 48px; }
#grdIntroduction .bullet span:first-child { width: 24px; flex: none; }
#grdIntroduction .l2 { margin-left: 72px; font-weight: bold; font-style: italic; }
#grdIntroduction .l3 { margin-left: 96px; }
#grdIntroduction .link { color: black; text-decoration: none; cursor: pointer; }
#grdIntroduction .link:hover { text-decoration: underline; }
.big-buttons { display: grid; grid-template-columns: 300px 300px; column-gap: 38px; row-gap: 16px; justify-content: center; margin: 4px 0 6px; }
.big-buttons .sl-button { width: 300px; height: 110px; font-size: 14px; line-height: 26px; }
.big-buttons .sl-button b { display: block; }
.big-buttons .sl-button span { display: block; line-height: 18px; }

/* Lists screen */
#grdLists { margin-left: 6px; }
.instructions { width: 760px; margin: 0 auto 6px; font-size: 14px; }
.instructions h4 { margin: 0; font-size: 14px; }
.instructions p { margin: 0; font-style: italic; white-space: pre-line; }
.selected-panels { display: flex; width: 760px; margin: 6px auto; max-height: 200px; }
.selected-panel { width: 380px; box-sizing: border-box; padding: 6px 6px 6px 12px; }
.panel-title { font-size: 14px; font-weight: bold; margin: 0 0 4px; height: 20px; }
.selected-panel .sl-listbox { width: 340px; min-height: 40px; max-height: 158px; }
.selected-row { display: flex; align-items: center; padding: 1px 4px; }
.selected-row .name, .selected-row .stage { width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-row.wide .name { width: 300px; }
.selected-row img { width: 12px; height: 12px; cursor: pointer; }
.list-panels { display: flex; justify-content: center; margin: 6px auto; }
.list-panel { width: 380px; box-sizing: border-box; padding: 0 0 0 6px; }
.list-panel.narrow { width: 250px; }
.list-panel .panel-title { margin-left: 6px; }
.list-panel .sl-listbox { height: 360px; width: 332px; margin: 0 auto 6px; }
.list-panel .sl-listbox .items { grid-template-columns: 160px 160px; }
.list-panel.narrow .sl-listbox { height: 500px; width: 225px; margin: 0 0 6px 6px; }
.list-panel.narrow .sl-listbox .items { grid-template-columns: 215px; }
.list-panel .buttons { display: flex; gap: 9px; margin: 0 0 6px 23px; }
.list-panel.narrow .buttons { margin-left: 6px; gap: 3px; }
.list-panel.narrow .buttons .sl-button { min-width: 73px; padding: 0 4px; }
.bottom-buttons { width: 760px; margin: 6px auto; display: flex; justify-content: space-between; }
.bottom-buttons .right { display: flex; gap: 6px; }
.bottom-buttons .sl-button { height: 24px; }

.crop { color: green; } .weed, .herbicide { color: red; } .insect, .insecticide { color: blue; } .disease, .fungicide { color: purple; }
.bg-crop { background: #F5FFF5; } .bg-weed { background: #FFF5F5; } .bg-insect { background: #F5FFFF; } .bg-disease { background: #FFF5FF; } .bg-selected { background: #FFFFE5; }

/* ChildWindow */
.cw-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.cw { background: #F6F8F9; border: 1px solid #7E8C99; border-radius: 3px; box-shadow: 2px 2px 12px rgba(0, 0, 0, .45); min-width: 200px; font-size: 11px; }
.cw-title { display: flex; justify-content: space-between; align-items: center; height: 24px; padding: 0 4px 0 8px; font-weight: bold; border-bottom: 1px solid #C7D1DA;
    background: linear-gradient(#FFFFFF, #E5EBF0); border-radius: 3px 3px 0 0; }
.cw-close { width: 18px; height: 16px; border: 1px solid #7E8C99; border-radius: 2px; background: linear-gradient(#FFFFFF, #D3DCE3); font-size: 10px; line-height: 12px; padding: 0; cursor: pointer; }
.cw-close:hover { background: linear-gradient(#FFFFFF, #CFE6F8); border-color: #448DCA; }
.cw-body { background: white; margin: 6px; padding: 8px; border: 1px solid #C7D1DA; }
.cw-buttons { display: flex; justify-content: flex-end; gap: 4px; margin-top: 12px; }
.cw .sl-listbox .items { grid-template-columns: 150px 150px; }
.cw.message { width: 400px; }
.cw.message .cw-body { background: whitesmoke; font-size: 12px; white-space: pre-line; }
.cw.message .footnote { font-size: 10px; padding-top: 8px; }
.cw.wait { width: 400px; }
.cw.wait .cw-body { font-size: 21px; white-space: pre-line; min-height: 55px; }
