/* Solis CSS Design System Theme: Sunlight & Clarity (Amber, Gold, Cream, Slate) */ @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap'); :root { --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Warm sunlight colors */ --color-bg-base: #fafaf9; /* Stone 50 - creamy clean background */ --color-bg-surface: #ffffff; /* Pure white cards */ --color-bg-warm: #fef3c7; /* Amber 100 - warm highlights */ --color-text-main: #1c1917; /* Stone 900 - extreme readability */ --color-text-muted: #6b6661; /* Stone 500 */ --color-text-light: #a8a29e; /* Stone 400 */ --color-brand-primary: #d97706; /* Amber 600 - solar branding */ --color-brand-hover: #b45309; /* Amber 700 */ --color-brand-light: #fef3c7; /* Amber 100 */ --color-brand-accent: #f59e0b; /* Gold 500 */ --color-border: #e7e5e4; /* Stone 200 - subtle separations */ --color-border-warm: #fcd34d; /* Amber 300 - highlight borders */ /* Status codes */ --color-status-in-use: #d1fae5; --color-status-in-use-txt: #065f46; --color-status-storage: #dbeafe; --color-status-storage-txt: #1e40af; --color-status-borrowed: #fef3c7; --color-status-borrowed-txt: #92400e; --color-status-lost: #fee2e2; --color-status-lost-txt: #991b1b; --color-status-disposed: #f3f4f6; --color-status-disposed-txt: #374151; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(217, 119, 6, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); --shadow-lg: 0 10px 15px -3px rgba(217, 119, 6, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03); --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: var(--font-sans); background-color: var(--color-bg-base); color: var(--color-text-main); line-height: 1.5; -webkit-font-smoothing: antialiased; } html, body { width: 100%; max-width: 100%; } /* Global Grid Layout */ .app-container { display: flex; min-height: 100vh; min-width: 0; } /* Premium Sidebar Navigation */ .sidebar { width: 260px; background-color: var(--color-bg-surface); border-right: 1px solid var(--color-border); padding: 2rem 1.5rem; display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100; } .brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 3rem; } .brand-logo { width: 38px; height: 38px; background: linear-gradient(135deg, var(--color-brand-accent), var(--color-brand-primary)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.25rem; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25); } .brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(to right, var(--color-brand-primary), var(--color-text-main)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; } .nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--color-text-muted); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.2s ease; } .nav-link:hover { color: var(--color-brand-primary); background-color: #fefaf0; } .nav-item.active .nav-link { color: var(--color-brand-primary); background-color: var(--color-brand-light); font-weight: 600; box-shadow: inset 3px 0 0 var(--color-brand-primary); } .nav-link svg { width: 20px; height: 20px; transition: transform 0.2s ease; } .nav-link:hover svg { transform: translateX(2px); } .sidebar-footer { margin-top: auto; border-top: 1px solid var(--color-border); padding-top: 1.5rem; } /* Main Content Area */ .main-wrapper { margin-left: 260px; flex-grow: 1; padding: 2.5rem 3.5rem; max-width: 1400px; min-width: 0; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; } .page-title h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; } .page-title p { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 0.25rem; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease; text-decoration: none; } .btn-primary { background-color: var(--color-brand-primary); color: white; box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15); } .btn-primary:hover { background-color: var(--color-brand-hover); box-shadow: 0 4px 8px rgba(217, 119, 6, 0.25); } .btn-secondary { background-color: var(--color-bg-surface); border-color: var(--color-border); color: var(--color-text-main); } .btn-secondary:hover { background-color: var(--color-bg-base); border-color: var(--color-text-light); } .btn-danger { background-color: #fee2e2; border-color: #fca5a5; color: #b91c1c; } .btn-danger:hover { background-color: #fecaca; color: #991b1b; } /* Beautiful Premium Cards */ .card { background-color: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 1.75rem; margin-bottom: 2rem; transition: box-shadow 0.3s ease, border-color 0.3s ease; min-width: 0; } .card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-border-warm); } /* Search bar & filter cards */ .filter-bar { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: center; background-color: var(--color-bg-surface); border: 1px solid var(--color-border); padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); } .search-input-wrapper { flex-grow: 1; position: relative; } /* Filter dropdowns size to content on desktop, full-width on mobile */ .filter-select { flex: 0 1 auto; min-width: 160px; } .search-input-wrapper svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-text-light); width: 18px; height: 18px; } .form-control { width: 100%; padding: 0.625rem 1rem; font-size: 0.95rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background-color: var(--color-bg-surface); color: var(--color-text-main); transition: all 0.2s ease; } .form-control:focus { outline: none; border-color: var(--color-brand-primary); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); } .search-input-wrapper .form-control { padding-left: 2.5rem; } /* Items Tables and Layouts */ .data-table-wrapper { overflow-x: auto; max-width: 100%; } .data-table { width: 100%; border-collapse: collapse; text-align: left; } .data-table th { padding: 1rem; font-weight: 600; color: var(--color-text-muted); border-bottom: 2px solid var(--color-border); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; } .data-table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; } .data-table tr:last-child td { border-bottom: none; } .data-table tr:hover td { background-color: #fffbeb; /* Solar hover highlight */ } /* Custom pills and tags */ .status-pill { display: inline-flex; padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 600; border-radius: 9999px; text-transform: uppercase; } .status-pill.in-use { background-color: var(--color-status-in-use); color: var(--color-status-in-use-txt); } .status-pill.in-storage { background-color: var(--color-status-storage); color: var(--color-status-storage-txt); } .status-pill.borrowed { background-color: var(--color-status-borrowed); color: var(--color-status-borrowed-txt); } .status-pill.lost { background-color: var(--color-status-lost); color: var(--color-status-lost-txt); } .status-pill.disposed { background-color: var(--color-status-disposed); color: var(--color-status-disposed-txt); } .tag-pill { display: inline-flex; padding: 0.15rem 0.5rem; font-size: 0.75rem; font-weight: 600; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.05); } .tag-list { display: flex; flex-wrap: wrap; gap: 0.35rem; } /* Reusable responsive form grids (replace inline grid-template styles) */ .form-grid { display: grid; gap: 1.5rem; } .form-grid--2-1 { grid-template-columns: 2fr 1fr; } .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--3 { grid-template-columns: repeat(3, 1fr); } .form-grid--4 { grid-template-columns: repeat(4, 1fr); } /* Asset Detail Grid */ .detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; } .detail-main { display: flex; flex-direction: column; gap: 2rem; min-width: 0; } .item-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } .visual-box { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background-color: var(--color-bg-base); position: relative; } .visual-box img { width: 100%; height: 100%; object-fit: cover; } .visual-placeholder { color: var(--color-text-light); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } /* Sidebar QR Codes and metadata */ .detail-sidebar { display: flex; flex-direction: column; gap: 2rem; min-width: 0; } .qr-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; } .qr-image { width: 180px; height: 180px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.5rem; background-color: white; box-shadow: var(--shadow-sm); } /* Toast System */ #toast-container { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 1000; } .toast { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background-color: var(--color-bg-surface); border-left: 4px solid var(--color-brand-primary); border-top: 1px solid var(--color-border); border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); min-width: 300px; max-width: 450px; } .toast.toast-success { border-left-color: #10b981; } .toast.toast-error { border-left-color: #ef4444; } .toast-message { font-size: 0.9rem; font-weight: 500; flex-grow: 1; } .toast-close { background: none; border: none; color: var(--color-text-light); cursor: pointer; } @keyframes slideIn { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } } /* Login Page Styling */ .login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: var(--color-bg-base); } .login-card { width: 100%; max-width: 420px; padding: 2.5rem; background-color: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); } .login-header { text-align: center; margin-bottom: 2rem; } .login-header .brand { justify-content: center; margin-bottom: 1rem; } /* Form Group Utilities */ .form-group { margin-bottom: 1.25rem; } .form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--color-text-muted); } /* PRINT SUB-SYSTEM: Sticker Sheets */ @media print { body { background-color: white; color: black; } .sidebar, .main-wrapper > .page-header, .filter-bar, .btn, #toast-container { display: none !important; } .main-wrapper { margin-left: 0 !important; padding: 0 !important; max-width: 100% !important; } /* Print Label grid settings */ .print-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 15px !important; padding: 10px !important; } .print-label-item { border: 1px solid #000 !important; border-radius: 4px !important; padding: 8px !important; text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: space-between !important; aspect-ratio: 1/1 !important; page-break-inside: avoid !important; } .print-label-name { font-size: 10pt !important; font-weight: bold !important; margin-bottom: 4px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; width: 100% !important; } .print-label-qr { width: 1.8in !important; height: 1.8in !important; } .print-label-slug { font-size: 8pt !important; font-family: monospace !important; margin-top: 4px !important; } } /* ========================================================================== Solis Lifecycle Styles (Archive, Soft-Remove & Premium Dropdowns) ========================================================================== */ /* Actions Dropdown Container */ .actions-dropdown { position: relative; display: inline-block; text-align: left; } /* Actions Menu Popup */ .actions-dropdown-menu { position: absolute; right: 0; top: 100%; margin-top: 0.35rem; background-color: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); z-index: 999; min-width: 160px; display: none; flex-direction: column; padding: 0.35rem 0; animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } /* Toggle Menu Display */ .actions-dropdown.show .actions-dropdown-menu { display: flex; } /* Menu Items (Forms & Buttons) */ .actions-dropdown-item { background: none; border: none; width: 100%; text-align: left; padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 500; color: var(--color-text-main); cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: background-color 0.15s ease, color 0.15s ease; text-decoration: none; font-family: var(--font-sans); } .actions-dropdown-item:hover { background-color: var(--color-bg-base); color: var(--color-brand-primary); } /* Muted / Red text variations for drop options */ .actions-dropdown-item.text-danger { color: #b91c1c; } .actions-dropdown-item.text-danger:hover { background-color: #fee2e2; color: #991b1b; } .actions-dropdown-item.text-warning { color: #b45309; } .actions-dropdown-item.text-warning:hover { background-color: #fef3c7; color: #92400e; } /* Visual States for Soft Removed Elements */ tr.lifecycle-removed { opacity: 0.65; background-color: var(--color-bg-base) !important; } tr.lifecycle-removed td:not(.actions-cell) { text-decoration: line-through; color: var(--color-text-light); } /* Visual States for Archived Elements */ tr.lifecycle-archived { background-color: #fcfbfb; } .status-pill.archived { background-color: var(--color-bg-base); color: var(--color-text-muted); border: 1px solid var(--color-border); } /* Open dropdown upwards for the last row of the table to prevent clipping in overflow wrappers */ tr:last-child .actions-dropdown-menu { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 0.35rem; box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -2px rgba(0, 0, 0, 0.05); animation: dropdownFadeInUp 0.15s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes dropdownFadeInUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } /* ========================================================================== Solis Public Layout, Folder Explorer & Drag & Drop Styles ========================================================================== */ /* Public Layout modifications */ .public-layout { flex-direction: column; } .public-layout .main-wrapper { margin-left: 0; margin-top: 0; padding: 2.5rem 2rem; max-width: 1200px; width: 100%; align-self: center; } .public-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 3.5rem; background-color: var(--color-bg-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); } .public-brand { display: flex; align-items: center; gap: 0.75rem; } /* Folder browser layouts */ .folder-view-container { display: flex; flex-direction: column; gap: 2rem; } .folder-header { border-bottom: 1px solid var(--color-border); padding-bottom: 1.5rem; } .folder-breadcrumbs { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; } .breadcrumb-item { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--color-text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); transition: all 0.2s ease; border: 1px solid transparent; } .breadcrumb-item:hover { color: var(--color-brand-primary); background-color: var(--color-brand-light); } .breadcrumb-item.active { color: var(--color-text-main); cursor: default; background: none; pointer-events: none; } .breadcrumb-separator { color: var(--color-text-light); font-weight: 500; font-size: 0.9rem; } .folder-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-text-main); } .folder-description { color: var(--color-text-muted); margin-top: 0.35rem; font-size: 1rem; max-width: 700px; } /* Drag-and-drop active visual indicators */ .dragging { opacity: 0.45 !important; transform: scale(0.96); box-shadow: 0 12px 24px -10px rgba(217, 119, 6, 0.25) !important; border: 2px dashed var(--color-brand-primary) !important; transition: transform 0.15s ease, opacity 0.15s ease; } .dropzone { transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .dropzone.drop-active { background-color: #fffbeb !important; border-color: var(--color-brand-accent) !important; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), var(--shadow-lg) !important; outline: 2px dashed var(--color-brand-primary) !important; outline-offset: -2px !important; transform: translateY(-2px); animation: dropPulse 1.5s infinite ease-in-out; } @keyframes dropPulse { 0% { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), var(--shadow-lg); } 50% { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.4), var(--shadow-lg); } 100% { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), var(--shadow-lg); } } /* Move Up Drop Zone card */ .move-up-zone { background-color: var(--color-bg-surface); border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--color-text-muted); font-weight: 600; font-size: 0.95rem; cursor: pointer; box-shadow: var(--shadow-sm); } .move-up-zone svg { transition: transform 0.2s ease; } .move-up-zone:hover svg { transform: translateY(-3px); } /* Sub-folder list grid styling */ .directory-section { display: flex; flex-direction: column; gap: 1.25rem; } .section-title { font-size: 1.25rem; font-weight: 700; color: var(--color-text-main); letter-spacing: -0.01em; } .folders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; } .folder-card { background: linear-gradient(145deg, var(--color-bg-surface), #fbfaf8); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; justify-content: space-between; align-items: center; position: relative; box-shadow: var(--shadow-sm); transition: all 0.25s ease; } .folder-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-warm); transform: translateY(-2px); } .folder-card-main { display: flex; align-items: center; gap: 1rem; flex-grow: 1; min-width: 0; } .folder-icon-wrapper { width: 44px; height: 44px; background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--color-brand-primary); box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.1); } .folder-icon { width: 24px; height: 24px; } .folder-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; } .folder-name-link { font-weight: 600; color: var(--color-text-main); text-decoration: none; font-size: 1.05rem; transition: color 0.2s ease; overflow-wrap: anywhere; } .folder-name-link:hover { color: var(--color-brand-primary); } .folder-badge { font-size: 0.75rem; color: var(--color-text-light); font-weight: 500; } .btn-icon { background: none; border: none; color: var(--color-text-light); cursor: pointer; padding: 0.35rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .btn-icon:hover { color: var(--color-brand-primary); background-color: var(--color-brand-light); } .empty-state-card { background-color: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2rem; text-align: center; color: var(--color-text-muted); font-size: 0.95rem; font-weight: 500; } /* Assets grid layout */ .items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; } .item-card { background-color: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: all 0.25s ease; position: relative; } .item-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-border-warm); transform: translateY(-3px); } .item-card-image { height: 180px; background-color: var(--color-bg-base); border-bottom: 1px solid var(--color-border); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; } .item-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; } .item-card:hover .item-card-image img { transform: scale(1.05); } .item-image-placeholder { color: var(--color-text-light); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; } .item-image-placeholder svg { width: 48px; height: 48px; } .item-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; flex-grow: 1; } .item-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; min-width: 0; } .item-card-title { font-weight: 700; color: var(--color-text-main); text-decoration: none; font-size: 1.15rem; transition: color 0.2s ease; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; } .item-card-title:hover { color: var(--color-brand-primary); } .item-card-meta { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 500; display: flex; gap: 0.5rem; flex-wrap: wrap; } .item-card-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.35rem; } .card-actions-btn { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); color: var(--color-text-muted); } .card-actions-btn:hover { background: #fff; color: var(--color-brand-primary); } /* Mobile top bar + drawer backdrop (hidden on desktop) */ .mobile-topbar { display: none; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background-color: var(--color-bg-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 90; } .mobile-topbar .brand { margin-bottom: 0; } .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-main); cursor: pointer; } .mobile-menu-btn svg { width: 22px; height: 22px; } .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 99; } @media (max-width: 768px) { body { overflow-x: hidden; } .public-header { padding: 1rem 1.5rem; flex-wrap: wrap; gap: 1rem; } .folders-grid { grid-template-columns: 1fr; min-width: 0; } .items-grid { grid-template-columns: 1fr; min-width: 0; } /* Stack vertically so the top bar spans full width above content instead of becoming a flex item beside it */ .app-container { display: block; width: 100%; overflow-x: hidden; } /* Show the mobile top bar */ .mobile-topbar { display: flex; } /* Sidebar becomes an off-canvas drawer */ .sidebar { width: min(260px, 86vw); transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); } .sidebar.open { transform: translateX(0); } /* Backdrop visible only while the drawer is open */ .sidebar-backdrop.show { display: block; } /* Content takes the full width; no reserved sidebar gutter */ .main-wrapper { margin-left: 0; padding: 1.25rem 1rem; width: 100%; max-width: 100%; overflow-x: hidden; } /* Collapse all multi-column layouts to a single column */ .detail-grid, .item-visuals, .form-grid--2-1, .form-grid--2, .form-grid--3, .form-grid--4 { grid-template-columns: 1fr; min-width: 0; } .detail-main, .detail-sidebar, .folder-view-container, .directory-section, .card, .filter-bar, .data-table-wrapper { width: 100%; max-width: 100%; min-width: 0; } .card { padding: 1rem; margin-bottom: 1.25rem; } /* Search & filter bar stacks vertically with full-width controls */ .filter-bar { flex-wrap: wrap; align-items: stretch; gap: 0.75rem; padding: 0.75rem; } .filter-bar > * { width: 100%; } .filter-bar .filter-select { width: 100%; min-width: 0; } /* Page header: title and actions stack instead of overflowing */ .page-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; } .page-title h1, .folder-title { font-size: 1.6rem; overflow-wrap: anywhere; } .page-header > div, .page-header .btn, .folder-controls > div, .folder-controls .btn { max-width: 100%; } .btn { max-width: 100%; white-space: normal; } .status-pill, .tag-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; } .item-card-header { flex-wrap: wrap; } .folder-card { align-items: flex-start; gap: 0.75rem; } .actions-dropdown-menu { max-width: calc(100vw - 2rem); } #toast-container { left: 1rem; right: 1rem; bottom: 1rem; } .toast { width: 100%; min-width: 0; max-width: none; } .main-wrapper .category-grid, .main-wrapper .pills-grid { grid-template-columns: 1fr; } .wizard-progress-bar { max-width: 100%; } .wizard-step .step-label { max-width: 5.5rem; text-align: center; font-size: 0.75rem; } .data-table-wrapper:has(.data-table--responsive) { overflow-x: visible; } .data-table--responsive, .data-table--responsive thead, .data-table--responsive tbody, .data-table--responsive tr, .data-table--responsive td { display: block; width: 100%; } .data-table--responsive thead, .data-table--responsive thead tr, .data-table--responsive thead th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } .data-table--responsive thead th { padding: 0; border: 0; } .data-table--responsive tr { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); } .data-table--responsive tr:last-child { border-bottom: none; } .data-table--responsive td { border-bottom: none; padding: 0.45rem 0; text-align: left !important; } .data-table--responsive td:not([colspan]) { display: grid; grid-template-columns: minmax(6.75rem, 36%) minmax(0, 1fr); gap: 0.75rem; align-items: start; } .data-table--responsive td::before { content: attr(data-label); color: var(--color-text-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; } .data-table--responsive td[colspan]::before { content: none; } .data-table--responsive td > *, .data-table--responsive td div, .data-table--responsive td form { min-width: 0; } .data-table--responsive .actions-cell > div { display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem; } .data-table--responsive .actions-cell .btn { flex: 0 1 auto; } .data-table--responsive td a, .data-table--responsive td code, .data-table--responsive td span, .data-table--responsive td div { overflow-wrap: anywhere; } .data-table--responsive td div[title] { max-width: 100% !important; overflow: visible !important; text-overflow: clip !important; white-space: normal !important; } } /* ========================================== Container Array Drawer Grid (3D view) ========================================== */ .drawer-array-hint { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 0.85rem; } .drawer-cabinet-wrapper { overflow-x: auto; padding: 1rem 0.25rem 1.5rem; -webkit-overflow-scrolling: touch; } .drawer-cabinet { display: grid; grid-template-columns: repeat(var(--drawer-cols, 4), minmax(86px, 1fr)); gap: 10px; padding: 14px; background: linear-gradient(160deg, #57534e, #3f3c39); border-radius: 14px; border: 1px solid #292524; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.18); perspective: 1100px; width: max-content; min-width: 100%; } .drawer-cell { position: relative; aspect-ratio: 5 / 4; min-width: 86px; transform-style: preserve-3d; perspective: 700px; } /* Dark cavity revealed behind a slid-out drawer */ .drawer-cavity { position: absolute; inset: 0; border-radius: 8px; background: radial-gradient(ellipse at 50% 30%, #1c1917 20%, #000 100%); box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8); } .drawer-tray { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; touch-action: pan-y; } .drawer-tray.empty-tray { cursor: pointer; } .drawer-front { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--drawer-color, #e7e5e4) 88%, white), var(--drawer-color, #d6d3d1)); border: 1px solid rgba(0, 0, 0, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35); overflow: hidden; } /* Drawer side walls give depth when the tray slides forward */ .drawer-tray::before, .drawer-tray::after { content: ""; position: absolute; top: 6%; bottom: 6%; width: 34px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)); transform-origin: left center; opacity: 0; transition: opacity 0.25s ease; } .drawer-tray::before { left: 1px; transform: rotateY(-86deg); } .drawer-tray::after { right: 1px; transform-origin: right center; transform: rotateY(86deg); } .drawer-label { font-size: 0.72rem; font-weight: 700; color: rgba(28, 25, 23, 0.85); text-align: center; line-height: 1.15; max-height: 2.3em; overflow: hidden; text-overflow: ellipsis; word-break: break-word; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); } .drawer-handle { width: 46%; height: 7px; border-radius: 4px; background: linear-gradient(180deg, #fafaf9, #a8a29e); border: 1px solid rgba(0, 0, 0, 0.35); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); } /* Slide-out animation: hover (desktop) or .open (tap on mobile) */ @media (hover: hover) { .drawer-cell.has-drawer:hover .drawer-tray { transform: translate3d(0, 12%, 46px) rotateX(-7deg); z-index: 5; } .drawer-cell.has-drawer:hover .drawer-tray::before, .drawer-cell.has-drawer:hover .drawer-tray::after { opacity: 1; } } .drawer-cell.open .drawer-tray { transform: translate3d(0, 12%, 46px) rotateX(-7deg); z-index: 5; } .drawer-cell.open .drawer-tray::before, .drawer-cell.open .drawer-tray::after { opacity: 1; } /* Empty slot */ .drawer-cell.empty .drawer-front { background: rgba(255, 255, 255, 0.04); border: 1.5px dashed rgba(255, 255, 255, 0.28); box-shadow: none; } .drawer-cell.empty .drawer-add-icon { font-size: 1.3rem; font-weight: 600; color: rgba(255, 255, 255, 0.45); transition: color 0.2s ease, transform 0.2s ease; } .drawer-cell.empty:hover .drawer-add-icon, .drawer-cell.empty:focus-visible .drawer-add-icon { color: rgba(255, 255, 255, 0.85); transform: scale(1.2); } /* Drag & drop swap states */ .drawer-cell.drag-source .drawer-tray { opacity: 0.35; } .drawer-cell.drop-target .drawer-front { outline: 3px solid var(--color-brand-accent); outline-offset: 2px; } .drawer-drag-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: 0.85; transform: translate(-50%, -50%) scale(1.05) rotate(-2deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); border-radius: 8px; } /* Content summary peek (relocated to and fixed-positioned by JS) */ .drawer-peek { display: none; position: fixed; z-index: 900; width: 215px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); padding: 0.7rem 0.8rem; font-size: 0.82rem; } .drawer-peek.show { display: block; } .drawer-peek-name { display: block; font-weight: 700; margin-bottom: 0.15rem; } .drawer-peek-count { display: block; color: var(--color-brand-primary); font-weight: 600; } .drawer-peek-items { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text-muted); font-style: normal; margin-top: 0.2rem; } .drawer-peek-actions { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; } .drawer-peek-btn { border: 1px solid var(--color-border); background: var(--color-bg-base); color: var(--color-text-main); border-radius: 6px; padding: 0.25rem 0.55rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; } .drawer-peek-btn:hover { border-color: var(--color-brand-primary); color: var(--color-brand-primary); } .drawer-peek-btn.danger { color: #b91c1c; } .drawer-peek-btn.danger:hover { border-color: #b91c1c; } /* ========================================== Locations tree table & sorting mode ========================================== */ .loc-name-cell { display: flex; align-items: center; gap: 0.35rem; } .loc-caret { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border: none; background: none; color: var(--color-text-muted); cursor: pointer; border-radius: 4px; padding: 0; flex-shrink: 0; transition: transform 0.18s ease, background-color 0.15s ease; } .loc-caret:hover { background: var(--color-bg-base); color: var(--color-brand-primary); } .loc-caret.expanded { transform: rotate(90deg); } .loc-caret-spacer { display: inline-block; width: 1.4rem; flex-shrink: 0; } .loc-grid-badge { font-size: 0.68rem; font-weight: 700; color: var(--color-brand-primary); background: var(--color-brand-light); border: 1px solid var(--color-border-warm); border-radius: 4px; padding: 0.05rem 0.3rem; margin-left: 0.35rem; white-space: nowrap; } /* Root drop strip, shown only while sorting */ .sort-root-dropzone { display: none; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.75rem; border: 2px dashed var(--color-border-warm); border-radius: 10px; color: var(--color-brand-primary); font-size: 0.9rem; font-weight: 600; background: var(--color-bg-surface); } body.sorting-mode .sort-root-dropzone { display: flex; } body.sorting-mode .loc-row[draggable="true"] { cursor: grab; } body.sorting-mode .drawer-tray { cursor: grab; } body.sorting-mode .drawer-cabinet { outline: 2px dashed var(--color-brand-accent); outline-offset: 4px; } /* Keep drags from selecting text */ .folder-card[draggable="true"], .item-card[draggable="true"], .loc-row[draggable="true"], .drawer-tray { user-select: none; -webkit-user-select: none; } body.drag-no-select, body.drag-no-select * { user-select: none !important; -webkit-user-select: none !important; } /* 404 Not Found page */ .notfound-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60vh; padding: 2rem 1rem; } .notfound-code { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--color-brand-primary); text-shadow: 0 4px 0 var(--color-brand-light); margin-bottom: 1rem; } .notfound-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; } .notfound-message { color: var(--color-text-muted); margin-bottom: 1.5rem; max-width: 28rem; } .notfound-countdown { color: var(--color-text-light); font-size: 0.85rem; margin-top: 1rem; } /* Drawer modal */ .drawer-modal-backdrop[hidden] { display: none !important; } .drawer-modal-backdrop { position: fixed; inset: 0; z-index: 950; background: rgba(28, 25, 23, 0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; } .drawer-modal { width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; } .drawer-swatch { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.15); cursor: pointer; padding: 0; } .drawer-swatch:hover { transform: scale(1.12); } @media (max-width: 768px) { .drawer-cabinet { grid-template-columns: repeat(var(--drawer-cols, 4), minmax(64px, 1fr)); gap: 7px; padding: 10px; } .drawer-cell { min-width: 64px; } .drawer-label { font-size: 0.6rem; } }