/* Our Krewe Logistics /team - small overrides layered on the DreamsPOS CSS bundle. */

.okl-msg { margin-top: 14px; padding: 10px 12px; border-radius: 6px; display: none; font-size: 14px; line-height: 1.4; }
.okl-msg.err { background: #fdecea; color: #a3271c; display: block; }
.okl-msg.ok { background: #e7f5ec; color: #1e6b3a; display: block; }

.okl-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.login-logo.logo-normal img { max-height: 46px; width: auto; margin-bottom: 8px; }
#global-loader { display: none !important; }

/* contractor app shell */
body.okl-app { background: #f7f8fa; margin: 0; min-height: 100vh; }
.okl-app-header { display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e8eaed; padding: 14px 28px; }
.okl-app-logo img { max-height: 38px; width: auto; }
.okl-app-logout { color: #5b606b; text-decoration: none; font-weight: 600; font-size: 14px; }
.okl-app-logout:hover { color: #fd7e14; }
.okl-app-main { max-width: 1080px; margin: 0 auto; padding: 28px; }
.okl-app-main h1 { font-size: 1.6rem; }

/* tables + empty states (profile / approvals / files) */
.okl-app-main .table td, .okl-app-main .table th { vertical-align: middle; }
.okl-app-main .edit-delete-action a { display: inline-flex; align-items: center; }
.okl-empty-icon { font-size: 42px; color: #c4c9d0; }
.badge.badge-linewarning { background: #fff4e5; color: #b26a00; border: 1px solid #ffd596; }

/* ===== Phase C: horizontal menu app shell + file manager ===== */

/* top bar + horizontal menu (replaces the minimal okl-app-header) */
.okl-topbar { background: #fff; border-bottom: 1px solid #e8eaed; position: sticky; top: 0; z-index: 30; }
.okl-topbar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 24px; }
.okl-app-logo img { max-height: 38px; width: auto; display: block; }
.okl-nav { display: flex; flex: 1 1 auto; }
.okl-nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; width: 100%; }
.okl-nav-item a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; color: #5b606b; text-decoration: none; font-weight: 600; font-size: 14px; }
.okl-nav-item a:hover { background: #f5f6f8; color: #fd7e14; }
.okl-nav-item.active a { background: #fff4e9; color: #fd7e14; }
.okl-nav-item i { font-size: 17px; }
.okl-nav-logout { margin-left: auto; }
.okl-nav-toggle { display: none; background: none; border: 0; color: #5b606b; font-size: 22px; line-height: 1; padding: 6px 8px; cursor: pointer; }
.okl-page-wrapper { background: #f7f8fa; min-height: calc(100vh - 60px); }
.okl-page-wrapper .content { max-width: 1180px; margin: 0 auto; padding: 24px; }
@media (max-width: 768px) {
	.okl-topbar-inner { flex-wrap: wrap; }
	.okl-nav-toggle { display: inline-flex; margin-left: auto; }
	.okl-nav { display: none; width: 100%; }
	.okl-nav.open { display: block; }
	.okl-nav-menu { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0; }
	.okl-nav-logout { margin-left: 0; }
}

/* file manager layout */
.okl-files { display: flex; gap: 20px; align-items: flex-start; }
.okl-buckets { flex: 0 0 240px; }
.okl-files-main { flex: 1 1 auto; min-width: 0; }
.okl-bucket-list { list-style: none; margin: 0; padding: 0; }
.okl-bucket { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: #4b5159; font-weight: 600; font-size: 14px; }
.okl-bucket i { font-size: 18px; }
.okl-bucket:hover { background: #f5f6f8; }
.okl-bucket.active { background: #fff4e9; color: #fd7e14; }
.okl-breadcrumb a { color: #5b606b; text-decoration: none; }
.okl-breadcrumb a:hover { color: #fd7e14; }
.okl-breadcrumb .okl-crumb-sep { color: #c4c9d0; margin: 0 6px; }
.okl-breadcrumb .okl-crumb-current { color: #1f2329; font-weight: 600; }

/* grid of folder/file cards (the carousel replacement) */
.okl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.okl-card { position: relative; background: #fff; border: 1px solid #e8eaed; border-radius: 10px; padding: 16px 12px; text-align: center; }
.okl-card.okl-folder, .okl-card.okl-file { cursor: pointer; }
.okl-card:hover { border-color: #d3d8de; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.okl-card-icon i { font-size: 40px; color: #6c7280; }
.okl-folder .okl-card-icon i { color: #f4b740; }
.okl-card-name { font-weight: 600; font-size: 13px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2329; }
.okl-card-meta { font-size: 11px; color: #9aa0a6; margin-top: 2px; }
.okl-card-badges { margin-top: 6px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.okl-card-dl { position: absolute; left: 6px; top: 6px; padding: 2px 6px; }

/* custom dropdown (no bootstrap js) */
.okl-dropdown { position: absolute; top: 6px; right: 6px; }
.okl-dropdown-toggle { background: none; border: 0; color: #6c7280; cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1; }
.okl-dropdown-toggle:hover { background: #f0f1f3; }
.okl-dropdown-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 180px; background: #fff; border: 1px solid #e8eaed; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 50; padding: 6px; list-style: none; margin: 4px 0 0; text-align: left; }
.okl-dropdown.open .okl-dropdown-menu { display: block; }
.okl-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: #3b4148; text-decoration: none; font-size: 13px; }
.okl-dropdown-menu a:hover { background: #f5f6f8; }
.okl-dropdown-div { border-top: 1px solid #eee; margin: 4px 0; }

/* inline panel (replaces modals) */
.okl-panel { max-width: 540px; margin: 0 0 16px; border: 1px solid #e8eaed; }
.okl-panel .okl-folder-pick { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; border: 1px solid #eef0f2; border-radius: 8px; }
.okl-panel .okl-folder-pick li { padding: 8px 10px; cursor: pointer; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.okl-panel .okl-folder-pick li:hover { background: #f5f6f8; }
.okl-panel .okl-folder-pick li.sel { background: #fff4e9; color: #fd7e14; }

/* upload widget */
.okl-dropzone { border: 2px dashed #c9ced6; border-radius: 12px; padding: 26px; text-align: center; background: #fafbfc; }
.okl-dropzone.okl-dz-over { border-color: #fd7e14; background: #fff6ee; }
.okl-dz-icon { font-size: 40px; color: #b6bcc4; }
.okl-dz-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.okl-upload-queue { list-style: none; margin: 14px 0 0; padding: 0; }
.okl-up-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.okl-up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.okl-up-status { flex: 0 0 22px; text-align: center; }
.okl-progress { flex: 0 0 120px; height: 6px; background: #edeff2; border-radius: 4px; overflow: hidden; }
.okl-progress-bar { height: 100%; width: 0; background: #fd7e14; transition: width .15s ease; }
.okl-up-err .okl-progress-bar { background: #d9534f; }

@media (max-width: 768px) {
	.okl-files { flex-direction: column; }
	.okl-buckets { flex: 1 1 auto; width: 100%; }
	.okl-bucket-list { display: flex; flex-wrap: wrap; gap: 6px; }
	.okl-bucket { padding: 8px 10px; }
}

/* SPECIAL note editor: Visual / Plain Text / Code share one hidden source textarea. */
.okl-note-editor { margin: 0; }
.okl-note-editor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.okl-note-editor-head > label { color: #fd7e14; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.okl-note-editor-tabs { display: none; gap: 4px; flex-wrap: wrap; }
.okl-note-editor.is-ready .okl-note-editor-tabs { display: inline-flex; }
.okl-note-editor-tabs button { padding: 6px 13px; border: 1px solid #d7dce2; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f5f6f8; color: #4b5159; cursor: pointer; font-size: 13px; }
.okl-note-editor-tabs button.active { border-color: #fd7e14; background: #fd7e14; color: #fff; }
.okl-note-editor-source { min-height: 280px; resize: vertical; font-family: Consolas, Monaco, monospace; font-size: 13px; }
.okl-note-editor.is-ready .okl-note-editor-source { display: none; }
.okl-note-editor-panes { display: none; }
.okl-note-editor.is-ready .okl-note-editor-panes { display: block; }
.okl-note-editor-pane { display: none; min-height: 280px; border: 1px solid #d7dce2; border-radius: 0 0 5px 5px; background: #fff; }
.okl-note-editor-pane.active { display: block; }
.okl-note-editor-pane .tox-tinymce { min-height: 280px; border: 0; border-radius: 0 0 5px 5px; }
.okl-note-editor-pane .mce-tinymce { border: 0 !important; box-shadow: none !important; }
.okl-note-editor-fallback,
.okl-note-editor-plain,
.okl-note-editor-code-fallback { display: block; width: 100%; min-height: 280px; box-sizing: border-box; border: 0; padding: 10px; resize: vertical; font-family: Consolas, Monaco, monospace; font-size: 13px; }
.okl-note-editor-code-fallback { display: none; }
.okl-note-editor-pane .CodeMirror { height: auto; min-height: 280px; font-size: 13px; }
.okl-note-quicktags { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border-bottom: 1px solid #d7dce2; background: #f5f6f8; }
.okl-note-quicktags button { padding: 3px 9px; border: 1px solid #c8ced6; border-radius: 3px; background: #fff; color: #3b4148; cursor: pointer; font-family: Consolas, Monaco, monospace; font-size: 12px; }
.okl-note-quicktags button:hover { border-color: #fd7e14; color: #fd7e14; }
.okl-note-literal-option { display: inline-flex; align-items: center; gap: 8px; color: #5b606b; font-size: 13px; cursor: pointer; }
.okl-note-literal-option input { margin: 0; }
.okl-special-file-card { margin-top: 20px; }
.okl-special-file-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; user-select: none; }
.okl-special-file-card > summary::-webkit-details-marker { display: none; }
.okl-special-file-card > summary h4 { margin: 0; }
.okl-special-file-card > summary i { transition: transform .2s ease; }
.okl-special-file-card[open] > summary i { transform: rotate(180deg); }
.okl-special-file-card[open] > summary { border-bottom: 1px solid #e8eaed; }
.okl-special-file-body { overflow: visible; }
.okl-parent-note-card { margin-top: 20px; }
.okl-parent-note-content { overflow-wrap: anywhere; }
.okl-parent-note-content > :last-child { margin-bottom: 0; }
.okl-special-posted-content { overflow-wrap: anywhere; }
.okl-special-posted-content > :last-child { margin-bottom: 0; }
.okl-special-posted-content pre { max-width: 100%; overflow: auto; white-space: pre-wrap; }

@media (max-width: 576px) {
	.okl-note-editor-head { align-items: stretch; }
	.okl-note-editor-tabs { width: 100%; }
	.okl-note-editor-tabs button { flex: 1 1 auto; }
}
