:root{--card-bg:#fff;--muted:#6c757d}
    
/* button  */
.btn-margin {
	margin-right: 4px;
}

/* Topbar layout */
.topbar{display:flex;align-items:center;gap:16px;margin-top: 18px;margin-bottom:18px;justify-content: space-between;}
.topbar .search {flex: 0 0 calc(30% - 12px)}
.topbar .create-lg{display:inline-flex;align-items:center;gap:10px}
.topbar .create-sm{display:none}

/* Table wrapper (desktop) */
.table-wrapper{overflow-x:auto}
.table-wrapper table{min-width:1000px}

/* Card view (mobile/tablet) hidden on desktop */
.cards { display:none }
.card-item{background:var(--card-bg);padding:14px;border: 1px solid #ababab;border-radius:10px;box-shadow:0 6px 18px rgba(20,40,80,.06);margin-bottom:12px}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.card-meta{font-size:13px;color:var(--muted)}
.card-thumb{width:80px;height:60px;object-fit:cover;border-radius:6px;flex-shrink:0}
.card-actions{display:flex;gap:8px}
.status-badge{padding:4px 10px;border-radius:8px;font-weight:600}
.st-inprogress{background:#ffc107; color:#212529}
.st-completed{background:#def7e7;color:#11672a}

/* TABLE  */
.table-light th {white-space: nowrap}
.table-icon {color: #11a4ee}
/* responsive rules */
@media (max-width: 991px){
	.topbar {
		gap: 12px;
		width: 100%;
	}
      
     .topbar .search {
        flex: 0 0 calc(50% - 12px);
     }
      
     .topbar .create-sm {
        flex: 0 0 auto;
     }
      
     /* hide table, show cards */
     .table-wrapper{display:none}
     .cards{display:block}
}
@media (max-width:500px){ 
	.project-layout .create-lg{display:none}
	.topbar .create-sm{display:inline-flex}

	.topbar .search {
		flex: 0 0 calc(87% - 12px);
	}
}
/* small mobiles tweak */
@media (max-width:400px){
	.card-thumb{width:64px;height:52px}
}

/* small utilities */
.muted{color:var(--muted)}
.btn-icon{width:38px;height:38px;border-radius:8px}