/* Shared Windows 95 shell; Django retains forms, permissions and navigation. */
:root, html[data-theme="light"], html[data-theme="dark"] {
  color-scheme: light;
  --primary: #000080; --secondary: #000080; --accent: #fff;
  --primary-fg: #fff; --body-fg: #111; --body-bg: #c0c0c0;
  --body-quiet-color: #444; --body-medium-color: #333; --body-loud-color: #000;
  --header-color: #fff; --header-branding-color: #fff; --header-bg: #000080; --header-link-color: #fff;
  --breadcrumbs-fg: #222; --breadcrumbs-link-fg: #000080; --breadcrumbs-bg: #c0c0c0;
  --link-fg: #000080; --link-hover-color: #000; --link-selected-fg: #000080;
  --hairline-color: #888; --border-color: #808080; --darkened-bg: #dedede;
  --selected-bg: #e4e4e4; --selected-row: #ffffcc;
  --button-fg: #111; --button-bg: #c0c0c0; --button-hover-bg: #d4d4d4;
  --default-button-bg: #c0c0c0; --default-button-hover-bg: #dedede;
  --close-button-bg: #c0c0c0; --close-button-hover-bg: #dedede;
  --delete-button-bg: #c0c0c0; --delete-button-hover-bg: #dedede;
  --object-tools-fg: #111; --object-tools-bg: #c0c0c0; --object-tools-hover-bg: #dedede;
  --font-family-primary: Tahoma, Verdana, Arial, sans-serif;
  --raised: inset 1px 1px #fff, inset -1px -1px #000, inset 2px 2px #dfdfdf, inset -2px -2px #808080;
  --sunken: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000, inset -2px -2px #dfdfdf;
}
body { background: #008080; font-size: 14px; line-height: 1.5; }
#container { height: auto; width: calc(100% - 32px); min-height: calc(100vh - 32px); margin: 16px; padding: 4px; box-sizing: border-box; background: #c0c0c0; box-shadow: var(--raised); }
#header { padding: 7px 10px 0; gap: 8px; flex-wrap: wrap; }
#site-name { font-size: 17px; font-weight: bold; }
.window-icon { color: #fff; margin-right: 7px; }
#user-tools { font-size: 12px; line-height: 1.8; }
.desktop-menu { display: flex; flex-wrap: wrap; gap: 4px; width: calc(100% + 20px); margin: 0 -10px; padding: 4px 8px; box-sizing: border-box; background: #c0c0c0; color: #111; }
#header .desktop-menu a { color: #111; padding: 5px 12px; }
#header .desktop-menu a:hover { box-shadow: var(--raised); }
div.breadcrumbs { padding: 8px 16px; border-top: 1px solid #fff; border-bottom: 1px solid #808080; }
#content { padding: 24px; }
h1 { color: #111; font-size: 23px; font-weight: bold; }
.module, .inline-group, .workspace-shortcuts, .occupancy section { background: #c0c0c0; border: 0; padding: 3px; box-shadow: var(--raised); margin-bottom: 20px; }
.module h2, .module caption, .inline-group h2, .workspace-shortcuts h2, .occupancy section > h2 { background: #000080; color: #fff; font-size: 14px; font-weight: bold; padding: 7px 10px; margin: 0; }
.module caption a, .module caption a:link, .module caption a:visited { color: #fff; }
.module table { background: #fff; }
.module td, .module th { padding: 10px; }
.module a:link, .module a:visited { text-decoration: underline; text-underline-offset: 2px; }
button, input, textarea, select, .button, .submit-row, .object-tools a, #changelist-filter { border-radius: 0 !important; font-family: var(--font-family-primary); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea, select { background: #fff; color: #111; border: 0; box-shadow: var(--sunken); padding: 8px; min-height: 34px; box-sizing: border-box; }
button, .button, input[type="submit"], input[type="button"], .submit-row a.deletelink, .object-tools a, .month-nav a { background: #c0c0c0; color: #111; border: 0; box-shadow: var(--raised); padding: 9px 16px; min-height: 36px; box-sizing: border-box; cursor: pointer; text-transform: none; }
button:active, .button:active, input[type="submit"]:active, .month-nav a:active { box-shadow: var(--sunken); }
input[type="submit"].default { border: 1px solid #000; font-weight: bold; }
#logout-form button { box-shadow: none; min-height: auto; padding: 0; color: #fff; background: transparent; }
:focus-visible { outline: 2px dashed #000080 !important; outline-offset: 3px; }
#header :focus-visible, .module caption :focus-visible { outline-color: #fff !important; }
.form-row { padding: 14px 12px; border-bottom: 1px solid #aaa; }
.submit-row { box-shadow: var(--raised); background: #c0c0c0; border: 0; padding: 12px; }
.submit-row a.deletelink { color: #800000; height: auto; }
.guest-link-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.guest-link-tools [hidden] { display: none; }
.guest-link-tools [data-copy-fallback] { flex: 1 1 100%; min-width: 0; width: 100%; }
.guest-link-tools [data-copy-status] { flex-basis: 100%; }
#changelist .actions, #changelist #toolbar, #changelist .paginator { background: #c0c0c0; }
#changelist-filter h2 { background: #000080; color: #fff; }
#changelist-filter { box-shadow: var(--raised); }
#nav-sidebar { background: #c0c0c0; }
#nav-sidebar .current-model { background: #ffffcc; }
.toggle-nav-sidebar { background: #c0c0c0; color: #000080; }
.workspace-shortcuts > p { padding: 0 12px; }
.shortcut-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 8px 12px 16px; }
.desktop-shortcut { display: flex; flex-direction: column; gap: 6px; color: #111 !important; padding: 16px; box-shadow: var(--raised); }
.desktop-shortcut:hover { background: #d4d4d4; }
.desktop-shortcut > span { color: #000080; font-size: 32px; line-height: 1; }
.desktop-shortcut small { color: #333; font-size: 12px; }
.dashboard #content { width: auto; }
.dashboard #content-main { min-width: 0; }
.occupancy section > p, .occupancy section > ul, .occupancy section > form, .occupancy section > label, .occupancy section > h3, .occupancy .month-nav { margin: 14px 12px; }
.occupancy .feed-url { width: calc(100% - 24px); margin: 12px; }
.calendar-scroll { margin: 12px; background: #fff; box-shadow: var(--sunken); padding: 2px; }
.calendar th { background: #c0c0c0; box-shadow: var(--raised); }
.calendar .occupied { background: #000080; color: #fff; border-color: #000080; }
.calendar .today { outline: 3px solid #000080; outline-offset: -3px; }
.calendar .free { color: #555; }
.desktop-status { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.desktop-status span { padding: 4px 10px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; flex: 1; }
#footer { padding: 4px; }
body.login { background: #008080; }
.login #container { width: min(440px, calc(100% - 24px)); min-height: auto; margin: 12vh auto 24px; }
.login #header { padding: 8px 10px; }
.login #content { padding: 24px; }
@media (max-width: 767px) {
  #container { width: calc(100% - 8px); margin: 4px; min-height: calc(100vh - 8px); }
  #content { padding: 16px 10px; }
  #header { align-items: flex-start; }
  .desktop-menu a { flex-grow: 1; text-align: center; }
  .shortcut-list { grid-template-columns: 1fr; }
  .desktop-shortcut { padding: 12px; }
  .desktop-status { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print { body { background: #fff; } #container { margin: 0; width: 100%; box-shadow: none; } .desktop-menu, .desktop-status { display: none; } }
